update.
[chise/xemacs-chise.git.1] / src / ChangeLog
1 2005-09-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2
3         * chartab.c (Fput_char_attribute): For each character relation
4         feature `{<-|->}FOO', set up the reversed link `{->|<-}FOO'.
5
6 2005-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
7
8         * chartab.c (Fput_char_attribute): Use
9         `Fchar_refs_simplify_char_specs' for `=>decomposition' before
10         calling `put_char_composition'.
11
12 2005-08-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
13
14         * chartab.c (Q_halfwidth_of): New variable.
15         (put_char_composition): Return `<-halfwidth' instead of
16         `=decomposition' for compatibility mapping to single character
17         tagged `narrow'.
18         (Fput_char_attribute): Convert char-specs in value of
19         `{<-|->}halfwidth[^*]*' to characters and put reverse links.
20         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
21         for `<-halfwidth'.
22         (syms_of_chartab): Add new symbol `<-halfwidth'.
23
24 2005-08-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
25
26         * chartab.c (put_char_composition): Return
27         `<-formed@{isolated|initial|medial|final}' for compatibility
28         mapping to single character tagged
29         `{isolated|initial|medial|final}'.
30
31 2005-08-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
32
33         * chartab.c (Q_compat_of): Deleted.
34         (put_char_composition): Return `<-FOO' for compatibility mapping
35         to single character tagged `FOO'; use `Fsymbol_name (...)' instead
36         of `symbol_name (XSYMBOL(...))'.
37         (Fput_char_attribute): Convert char-specs in value of
38         `{<-|->}font[^*]*' to characters and put reverse links.
39         (Fsave_char_attribute_table): Don't refer Q_compat_of.
40         (syms_of_chartab): Delete builtin symbol `<-compat'.
41
42 2005-08-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
43
44         * chartab.c (Q_circled_of): New variable.
45         (put_char_composition): Return `<-circled' instead of
46         `=decomposition' for compatibility mapping to single character
47         tagged `circle'.
48         (Fput_char_attribute): Convert char-specs in value of
49         `{<-|->}circled[^*]*' to characters and put reverse links.
50         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
51         for `<-circled'.
52         (syms_of_chartab): Add new symbol `<-circled'.
53
54 2005-08-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
55
56         * chartab.c (Qto_decomposition_at_circled): New variable.
57         (put_char_composition): Return `=>decomposition@circled' instead
58         of `=decomposition' for compatibility decomposition mapping tagged
59         `circle'.
60         (syms_of_chartab): Add new symbol `=>decomposition@circled'.
61
62 2005-08-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
63
64         * chartab.c (Q_subscript_of): New variable.
65         (put_char_composition): Return `<-subscript' instead of
66         `=decomposition' for compatibility mapping to single character
67         tagged `sub'.
68         (Fput_char_attribute): Convert char-specs in value of
69         `{<-|->}subscript[^*]*' to characters and put reverse links.
70         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
71         for `<-subscript'.
72         (syms_of_chartab): Add new symbol `<-subscript'.
73
74 2005-08-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
75
76         * chartab.c (Q_superscript_of): New variable.
77         (put_char_composition): Return `<-superscript' instead of
78         `=decomposition' for compatibility mapping to single character
79         tagged `super'.
80         (Fput_char_attribute): Convert char-specs in value of
81         `{<-|->}superscript[^*]*' to characters and put reverse links.
82         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
83         for `<-superscript'.
84         (syms_of_chartab): Add new symbol `<-superscript'.
85
86 2005-08-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
87
88         * chartab.c (Qto_decomposition_at_compat): Deleted.
89         (Qto_decomposition_at_superscript): New variable.
90         (put_char_composition): Use `=>decomposition@superscript' instead
91         of `=decomposition' for compatibility decomposition mapping tagged
92         `super'.
93         (Fput_char_attribute): Fix condition about `put_char_composition'.
94         (syms_of_chartab): Delete builtin symbol `=>decomposition@compat';
95         add news symbol `=>decomposition@superscript'.
96
97 2005-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
98
99         * chartab.c (put_char_composition): Return `=>decomposition@FOO'
100         for compatibility decomposition mapping tagged FOO.
101         (Fput_char_attribute): Modify for `put_char_composition'.
102
103 2005-07-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
104
105         * chartab.c (Qto_decomposition_at_compat): New variable.
106         (Q_compat_of): Renamed from `Q_compatibility_of'.
107         (put_char_composition): Rename `Q_compatibility_of' to
108         `Q_compat_of'; return `=>decomposition@compat' for compatibility
109         decomposition mapping.
110         (Fsave_char_attribute_table): Rename `Q_compatibility_of' to
111         `Q_compat_of'.
112         (syms_of_chartab): Add new symbol `=>decomposition@compat'; rename
113         `<-compatibility' to `<-compat'.
114
115 2005-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
116
117         * chartab.c (Q_compatibility_of): New variable.
118         (put_char_composition): Use XCAR/XCDR instead of Fcar/Fcdr if an
119         object is proved to be a cons cell; return `<-compatibility' if
120         the first element of argument `value' is `compat'.
121         (Fput_char_attribute): Eliminate the first value if
122         `put_char_composition' returns `<-compatibility'.
123         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
124         for `<-compatibility'.
125         (syms_of_chartab): Add new symbol `<-compatibility'.
126
127 2005-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
128
129         * chartab.c (Q_canonical): New variable.
130         (put_char_composition): Return a feature name: return
131         `->canonical' if argument `value' specifies single character.
132         (Fput_char_attribute): Use `put_char_composition' to determine
133         feature name for `=decomposition' or `->denotational'.
134         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
135         for `->canonical'.
136         (syms_of_chartab): Add new symbol `->canonical'.
137
138 2005-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
139
140         * chartab.c (Qmap_decomposition): New variable.
141         (Fput_char_attribute): Convert `->decomposition' to
142         `=decomposition'.
143         (syms_of_chartab): Add new symbol `=decomposition'.
144
145 2005-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
146
147         * chartab.c (Fget_range_char_table): Fix serious problem when
148         `range' is nil.
149
150 2005-06-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
151
152         * chartab.c (char_table_get_db): Use `read_from_c_string'.
153
154 2005-06-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
155
156         * lread.c (read_from_c_string): New function.
157
158         * lisp.h (read_from_c_string): New prototype.
159
160 2005-05-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
161
162         * chartab.c (Fput_char_attribute): Convert char-specs in value of
163         `{<-|->}Oracle-Bones[^*]*' to characters and put reverse links.
164         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
165         for `{<-|->}Oracle-Bones[^*]*'.
166
167 2005-05-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
168
169         * mule.c (vars_of_mule): Update `xemacs-chise-version' to 0.22
170         (Kizu).
171
172 2005-02-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
173
174         * text-coding.c (Qccs_priority_list): New variable in XEmacs
175         CHISE.
176         (Fmake_coding_system): Support new property `ccs-priority-list' in
177         XEmacs CHISE.
178         (Fcoding_system_property): Likewise.
179         (char_encode_iso2022): Prefer CODING_SYSTEM_CCS_PRIORITY_LIST than
180         Vdefault_coded_charset_priority_list in XEmacs CHISE.
181         (syms_of_file_coding): Add builtin symbol `ccs-priority-list' in
182         XEmacs CHISE.
183         (complex_vars_of_file_coding): Define new coding-system-property
184         `ccs-priority-list' in XEmacs CHISE.
185
186         * file-coding.h (XCODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
187
188 2004-12-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
189
190         * char-ucs.h (decoding_table_put_char): Moved to mule-charset.c;
191         changed to normal function.
192         (encode_char_2): Likewise.
193
194         * mule-charset.c (decoding_table_put_char): Copied from
195         char-ucs.h; changed to normal function.
196         (encode_char_2): Likewise.
197
198 2004-12-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
199
200         * char-ucs.h (Vdisplay_coded_charset_priority_use_inheritance):
201         New extern.
202         (Vdisplay_coded_charset_priority_use_hierarchy_order): Likewise.
203         (encode_char_2_search_children): New inline function.
204         (encode_char_2): Refer
205         `Vdisplay_coded_charset_priority_use_{inheritance|hierarchy_order}'
206         and use `encode_char_2_search_children'.
207
208 2004-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
209
210         * mule-charset.c
211         (Vdisplay_coded_charset_priority_use_inheritance): New variable.
212         (Vdisplay_coded_charset_priority_use_hierarchy_order): Likewise.
213         (vars_of_mule_charset): Add new variable
214         `display-coded-charset-priority-use-inheritance' and
215         `display-coded-charset-priority-use-hierarchy-order'.
216
217 2004-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
218
219         * char-ucs.h (Q_subsumptive): New extern.
220         (Q_denotational): Likewise.
221         (encode_char_2): Search children specified by `->subsumptive' and
222         `->denotational'.
223
224 2004-11-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
225
226         * mule-charset.c (complex_vars_of_mule_charset): Modify the
227         X-registry of `ucs-bmp'.
228
229 2004-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
230
231         * chartab.c (char-variants): Refer `->subsumptive',
232         `->denotational' and `->identical' as same as `->ucs-unified'.
233
234 2004-10-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
235
236         * chartab.c (Fput_char_attribute): Convert char-specs in value of
237         `{<-|->}{fullwidth|halfwidth}[^*]*' to characters and put reverse
238         links.
239
240 2004-09-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
241
242         * text-coding.c: Add EXFUN for `Fregexp_quote'.
243         (decode_add_er_char): Fix problem about infinite loop when a CCS
244         specified in `coded-charset-entity-reference-alist' is not
245         existed.
246
247 2004-09-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
248
249         * mule-charset.c (syms_of_mule_charset): Rename
250         `=jis-x0208-{1978|1983|1990}' to `=jis-x0208@{1978|1983|1990}'.
251
252 2004-08-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
253
254         * fns.c (simplify_char_spec): Don't allocate new character-object
255         if specified char_spec does not have any CCS-features.
256
257         * chartab.h: Add EXFUN for Fdefine_char.
258
259         * chartab.c: Delete EXFUN for Fdefine_char.
260
261 2004-08-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
262
263         * fns.c (simplify_char_spec): Use Fdefine_char instead of
264         Ffind_char for char-spec.
265
266 2004-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
267
268         * lisp-disunion.h (XCHARVAL): Fix condition about
269         SIZEOF_EMACS_INT.
270
271 2004-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
272
273         * mule-charset.c (decode_builtin_char): Use <EMACS_INT> instead of
274         <int> for `code'.
275         (Fdecode_builtin_char): Use <EMACS_INT> instead of <int> for code
276         point; use <Emchar> instead of <int> for character-id.
277
278 2004-07-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
279
280         * lisp-disunion.h (make_int): Cast the argument into <EMACS_INT>.
281         (make_char): Likewise.
282         (XCHARVAL): Don't use the inline function for UTF-2000 in 64 bit
283         environment.
284         (XCHARVAL[for UTF-2000 in 32 bit environment]): Use <Emchar>
285         instead of <int> as the type of return value; use <Lisp_Object>
286         instead of <Emchar> as the type of argument.
287         (XCHARVAL[macro version]): Cast the result into <Emchar>.
288
289         * syntax.h (SYNTAX_CODE_UNSAFE): Use <Lisp_Object> and <enum
290         syntaxcode> instead of <int>.
291
292 2004-07-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
293
294         * chartab.c (put_char_composition): Use DECODE_CHAR to get
295         character corresponding with UCS code point.
296         (Fput_char_attribute): Likewise.
297
298         * mule-charset.c (put_char_ccs_code_point): Don't omit a UCS
299         character in the UCS decoding-table if the char-id is not equal to
300         the UCS code point.
301
302 2004-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
303
304         * mule-charset.c (Fsave_charset_properties): Use `true-name' only
305         for aliases; write `description'; write
306         `mother-code-{min|max|offset|conversion}' if CHARSET_MAX_CODE is
307         not 0.
308
309 2004-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
310
311         * chartab.c (Fsave_char_attribute_table): Don't use
312         `save_charset_properties'.
313
314         * mule-charset.c (Fsave_charset_properties): Renamed from
315         `save_charset_properties' and changed to Lisp function again;
316         write property `type' as `CCS'; write properties `final-byte' and
317         `mother' if they exists.
318         (syms_of_mule_charset): Revive builtin function
319         `save-charset-properties' when HAVE_LIBCHISE is defined.
320
321 2004-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
322
323         * chartab.c (open_chise_data_source_maybe): Use Vdata_directory
324         instead of Vexec_directory.
325         (char_attribute_system_db_file): Likewise.
326
327 2004-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
328
329         * chartab.c (Fsave_char_attribute_table): Use
330         `save_charset_properties' for CCS features when HAVE_LIBCHISE is
331         defined.
332
333         * mule-charset.c (save_charset_properties): Renamed from
334         `Fsave_charset_properties'; changed to non-Lisp function.
335         (syms_of_mule_charset): Abolish builtin function
336         `save-charset-properties'.
337
338 2004-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
339
340         * mule-charset.c (Fsave_charset_properties): New function when
341         HAVE_LIBCHISE is defined.
342         (syms_of_mule_charset): Add new builtin function
343         `save-charset-properties' when HAVE_LIBCHISE is defined.
344
345 2004-06-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
346
347         * chartab.c (Fput_char_attribute): Convert char-specs in value of
348         `{<-|->}ancient[^*]*' to characters and put reverse links.
349         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
350         for `{<-|->}ancient[^*]*'.
351
352 2004-06-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
353
354         * chartab.c (Fput_char_attribute): Convert char-specs in value of
355         `{<-|->}original[^*]*' to characters and put reverse links.
356         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
357         for `{<-|->}original[^*]*'.
358
359 2004-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
360
361         * mule-canna.c (m2c): Fix problem with XEmacs CHISE.
362
363 2004-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
364
365         * mule-charset.c (Qsystem_char_id): New variable.
366
367         * chartab.c (Qsystem_char_id): Deleted even if HAVE_CHISE is
368         defined and HAVE_LIBCHISE_LIBCHISE is not defined.
369
370 2004-05-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
371
372         * chartab.c (Fput_char_attribute): When processing a reference of
373         a character, put into the end of the reversed reference of each
374         target character.
375
376 2004-05-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
377
378         * chartab.c (Q_same): Deleted.
379         (Q_same_of): Deleted.
380         (Fput_char_attribute): Use Fstring_match to find `{<-|->}same'.
381         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
382         for `{<-|->}same'.
383         (syms_of_chartab): Delete builtin symbol `{<-|->}same'.
384
385 2004-05-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
386
387         * chartab.c (Q_vulgar): Deleted.
388         (Q_vulgar_of): Deleted.
389         (Fput_char_attribute): Use Fstring_match to find `{<-|->}vulgar'.
390         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
391         for `{<-|->}vulgar'.
392         (syms_of_chartab): Don't define `{<-|->}vulgar'.
393
394 2004-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
395
396         * chartab.c (Fput_char_attribute): Convert char-specs in value of
397         `{<-|->}wrong[^*]*' to characters and put reverse links.
398         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
399         for `{<-|->}wrong[^*]*'.
400
401 2004-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
402
403         * chartab.c (Q_vulgar): New variable.
404         (Q_vulgar_of): New variable.
405         (Fput_char_attribute): Convert char-specs in value of
406         `{->|<-}vulgar' to characters and put reverse links.
407         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
408         for `{->|<-}vulgar'.
409         (syms_of_chartab): Add new symbols `{->|<-}vulgar'.
410
411 2004-04-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
412
413         * text-coding.c (decode_add_er_char): Must to quote prefix string
414         as regexp.
415
416 2004-04-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
417
418         * mule-charset.c (put_char_ccs_code_point): Store characters of
419         =ucs whose code_points >= 0xF0000.
420
421 2004-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
422
423         * mule-charset.c (Vcharset_system_char_id): New variable in XEmacs
424         CHISE.
425         (syms_of_mule_charset): Add new symbol `system-char-id' in XEmacs
426         CHISE.
427         (complex_vars_of_mule_charset): Add new coded-charset
428         `system-char-id' in XEmacs CHISE; modify `=ucs' to eliminate
429         builtin characters over 0xEFFFF.
430
431         * chartab.c (syms_of_chartab): Don't define symbol
432         `system-char-id' in every case.
433
434         * char-ucs.h (Qsystem_char_id): New extern variable.
435         (LEADING_BYTE_SYSTEM_CHAR_ID): New macro.
436
437 2004-04-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
438
439         * text-coding.c (char_encode_utf8): Try to use entity-references
440         for U-000F0000 ...  U-0010FFFF.
441
442 2004-04-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
443
444         * text-coding.c (ER_BUF_SIZE): New macro.
445         (struct decoding_stream): Use `ER_BUF_SIZE' to specify size of
446         `er_buf'.
447         (decode_add_er_char): Use `ER_BUF_SIZE' instead of 16.
448         (char_encode_as_entity_reference): Use `ER_BUF_SIZE'.
449
450 2004-03-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
451
452         * chartab.c (find_char_feature_in_family): New function.
453         (Fchar_feature): Use `find_char_feature_in_family' with
454         `->identical', `<-subsumptive' and `<-denotational'.
455
456 2004-03-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
457
458         * text-coding.c (char_encode_as_entity_reference): Allow prefix
459         within 8 characters; fix infinite loop.
460
461 2004-03-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
462
463         * chartab.c (Q_same): New variable.
464         (Q_same_of): New variable.
465         (Fput_char_attribute): Convert char-specs in value of
466         `{->|<-}same' to characters and put reverse links.
467         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
468         for `{->|<-}same'.
469         (syms_of_chartab): Add new symbols `{->|<-}same'.
470
471 2004-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
472
473         * chartab.c (Q_component): New variable.
474         (Q_component_of): Likewise.
475         (Fput_char_attribute): Convert char-specs in value of
476         `{->|<-}ideographic-component-forms' to characters and put reverse
477         links.
478         (syms_of_chartab): Add new symbols
479         `{->|<-}ideographic-component-forms'.
480
481 2004-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
482
483         * chartab.c (Q_identical): New variable.
484         (Q_identical_from): New variable.
485         (Fchar_feature): Regard `->identical' as a feature to find
486         ancestors.
487         (Fput_char_attribute): Add reversed link for `{->|<-}identical'.
488         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
489         for `{->|<-}identical'.
490         (syms_of_chartab): Add new symbols `{->|<-}identical'.
491
492 2004-02-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
493
494         * char-ucs.h (encode_char_2): New inline function.
495         (CHAR_TO_CHARC): Use `encode_char_2' instead of `encode_char_1'.
496
497 2004-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
498
499         * chartab.c (Fput_char_attribute): Convert char-specs to
500         characters in value of `ideographic-structure'.
501         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
502         for `{<-|->}simplified(@...)'.
503         (Fdefine_char): Try to use predefined character's id.
504
505 2004-02-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
506
507         * fns.c (simplify_char_spec): Try to convert builtin chars to
508         defined chars.
509
510 2004-02-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
511
512         * chartab.c (Fput_char_attribute): Convert char-specs in value of
513         `<-simplified[^*]*' to characters and put reverse links.
514
515 2004-02-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
516
517         * chartab.c (Q_subsumptive): Renamed from Q_unified.
518         (Q_subsumptive_from): Renamed from Q_unified_from.
519         (Fchar_feature): Use `Q_subsumptive_from' instead of
520         `Q_unified_from'.
521         (Fput_char_attribute): Likewise; Use `Q_subsumptive' instead of
522         `Q_unified'.
523         (syms_of_chartab): Rename `->unified' to `->subsumptive' and
524         `<-unified' to `<-subsumptive'.
525
526 2004-02-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
527
528         * chartab.c (Fchar_feature): Check `<-denotational' to avoid
529         inheritance itself; fix typo; stop recursive search if cyclic
530         inheritance is found.
531
532 2004-02-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
533
534         * chartab.c (Q_denotational): New variable.
535         (Q_denotational_from): New variable.
536         (Fchar_feature): Refer `<-denotational' as same as `<-unified'.
537         (put_char_attribute): New function.
538         (Fput_char_attribute): Use `put_char_attribute'; regard
539         `->denotational' and `<-denotational' as same as `->unified' and
540         `<-unified'.
541         (syms_of_chartab): Add new symbols `->denotational' and
542         `<-denotational'.
543
544 2004-02-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
545
546         * chartab.c (Fget_composite_char): Use `Fchar_feature' instead of
547         `Fget_char_attribute'.
548         (Fchar_variants): Likewise.
549         (get_char_table): Likewise.
550         (Fchar_feature): New function.
551         (put_char_composition): Use `Fchar_feature' instead of
552         `Fget_char_attribute'.
553         (Fput_char_attribute): Likewise; don't put the target character
554         into its `->unified' value.
555         (syms_of_chartab): Add new builtin function `char-feature'.
556
557 2004-01-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
558
559         * text-coding.c (COMPOSE_ADD_CHAR): Use `Fchar_feature' instead of
560         `Fget_char_attribute'.
561         (char_encode_utf8): Likewise.
562
563         * chartab.h: Add an EXFUN for `Fchar_feature'.
564
565 2004-01-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
566
567         * chartab.c (Vnext_defined_char_id): New variable.
568         (Fput_char_attribute): Accept characters in `->unified'.
569         (Fdefine_char): Refer and update Vnext_defined_char_id to allocate
570         new characters which are not related with builtin char-id ranges.
571         (vars_of_chartab): Add new variable `next-defined-char-id'.
572
573 2004-01-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
574
575         * chartab.c (Q_unified): New variable.
576         (Q_unified_from): New variable.
577         (Fput_char_attribute): Add code for `->unified'.
578         (syms_of_chartab): Add new symbols `->unified' and `<-unified' in
579         XEmacs CHISE.
580
581 2003-11-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
582
583         * mule-charset.c (decode_ccs_conversion): New function.
584         (decode_defined_char): Use `decode_ccs_conversion'.
585         (decode_builtin_char): Likewise.
586
587 2003-11-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
588
589         * char-ucs.h: Change some charset-ids of private coded-charsets.
590
591 2003-11-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
592
593         * text-coding.c (decode_add_er_char): Modify for `DECODE_CHAR'.
594         (char_encode_as_entity_reference): Likewise.
595         (decode_coding_big5): Modify for `decode_defined_char' and
596         `DECODE_CHAR'.
597         (decode_coding_utf8): Modify for `decode_defined_char'; modify to
598         avoid compiler warning.
599         (decode_coding_iso2022): Modify for `DECODE_CHAR'.
600
601         * mule-charset.c (decode_defined_char): Add new argument
602         `without_inheritance'.
603         (Fdecode_char): Add new optional argument `without_inheritance'.
604         (Fdecode_builtin_char): Modify for `Fdecode_char'.
605
606         * fns.c (ids_format_unit): Modify for `Fdecode_char'.
607         (simplify_char_spec): Likewise.
608
609         * chartab.h (Fdecode_char): Modify number of arguments of EXFUN
610         setting.
611
612         * chartab.c (put_char_table): Modify for `DECODE_CHAR'.
613         (map_char_table): Likewise.
614         (Fdefine_char): Use `Fdecode_char' without inheritance.
615         (Ffind_char): Modify for `Fdecode_char'.
616
617         * character.h (CHARC_TO_CHAR): Modify for `DECODE_CHAR'.
618
619         * char-ucs.h (decode_defined_char): Add new argument
620         `without_inheritance'.
621         (DECODE_CHAR): Likewise.
622         (MAKE_CHAR): Modify for `DECODE_CHAR'.
623
624 2003-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
625
626         * chartab.c (Vchise_system_db_directory): New variable.
627         (vars_of_chartab): Add new variable `chise-system-db-directory'.
628
629 2003-10-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
630
631         * chartab.c: EXFUN `Fmount_char_attribute_table'.
632         (print_chartab_range): Don't define when `UTF2000' is defined.
633         (open_chise_data_source_maybe): Specify 0 instead of DB_HASH for
634         `CHISE_DS_open'.
635
636 2003-10-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
637
638         * chartab.c (Fchar_attribute_list): When HAVE_LIBCHISE is defined
639         and optional argument `rehash' is specified, call
640         `open_chise_data_source_maybe' before
641         `chise_ds_foreach_char_feature_name' is called.
642
643 2003-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
644
645         * chartab.c (char_attribute_list_reset_map_func): New function
646         when HAVE_LIBCHISE is defined.
647         (Fchar_attribute_list): Add new optional argument `rehash' when
648         HAVE_LIBCHISE is defined.
649         (open_chise_data_source_maybe): Use "chise-db" instead of
650         "char-db".
651         (char_attribute_system_db_file): Likewise.
652         (Fload_char_attribute_table): Use
653         `chise_feature_foreach_char_with_value' instead of
654         `chise_char_feature_value_iterate'.
655
656 2003-10-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
657
658         * chartab.c (Vchise_db_directory): New variable.
659         (vars_of_chartab): Add new built-in variable `chise-db-directory'.
660
661 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
662
663         * mule-charset.c (Freset_charset_mapping_table): Use HAVE_LIBCHISE
664         instead of HAVE_CHISE to specify using with libchise.
665
666         * config.h.in (HAVE_CHISE_CLIENT): Deleted.
667
668         * chartab.h: Don't use HAVE_CHISE_CLIENT.
669
670         * chartab.c (Qsystem_char_id): Don't define when HAVE_CHISE is not
671         defined or HAVE_LIBCHISE_LIBCHISE is defined.
672         (char_attribute_system_db_file): Don't define when HAVE_LIBCHISE
673         is defined.
674         (Freset_char_attribute_table): Use HAVE_LIBCHISE instead of
675         HAVE_CHISE to specify using with libchise.
676         (syms_of_chartab): Don't define symbol `system-char-id' when
677         HAVE_CHISE is not defined or HAVE_LIBCHISE_LIBCHISE is defined.
678
679 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
680
681         * mule-charset.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
682         specify CHISE DB support.
683         (Freset_charset_mapping_table): Use `chise_ccs_setup_db' instead
684         of `char_attribute_system_db_file' to check feature DB file.
685
686         * chartab.h, casetab.c, char-ucs.h: Use HAVE_CHISE instead of
687         HAVE_CHISE_CLIENT to specify CHISE DB support.
688
689         * chartab.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
690         specify CHISE DB support.
691         (open_chise_data_source_maybe): Don't define when HAVE_LIBCHISE is
692         not defined.
693         (Freset_char_attribute_table): Use `chise_feature_setup_db'
694         instead of `char_attribute_system_db_file' to check feature DB
695         file.
696
697 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
698
699         * mule.c (vars_of_mule): Use `HAVE_CHISE' instead of `CHISE' and
700         `HAVE_CHISE_CLIENT'.
701
702 2003-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
703
704         * mule-charset.c: Use HAVE_LIBCHISE instead of CHISE.
705         (Fsave_charset_mapping_table): Don't use
706         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
707
708         * config.h.in (HAVE_CHISE): Renamed from `CHISE'.
709         (HAVE_LIBCHISE): New macro.
710
711         * chartab.h: Use HAVE_LIBCHISE instead of CHISE.
712
713         * chartab.c: Use HAVE_LIBCHISE instead of CHISE.
714         (Fsave_char_attribute_table): Don't use
715         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
716
717 2003-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
718
719         * chartab.c (save_uint8_byte_table): Use libchise when CHISE is
720         defined.
721         (save_uint16_byte_table): Likewise.
722         (save_byte_table): Likewise.
723         (char_table_get_db): Use `chise_ds_load_char_feature_value'
724         instead of `chise_char_load_feature_value'.
725         (Fsave_char_attribute_table): Use libchise when CHISE is defined.
726
727 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
728
729         * chartab.h (struct Lisp_Char_Table): Delete member
730         `feature_table' if CHISE is defined.
731
732         * chartab.c (Fmake_char_table): Don't refer `ct->feature_table'.
733         (Fcopy_char_table): Likewise.
734         (char_table_open_db_maybe): Likewise.
735         (char_table_close_db_maybe): Likewise.
736         (char_table_get_db): Likewise.
737         (Fmount_char_attribute_table): Likewise.
738         (Fload_char_attribute_table): Likewise.
739
740 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
741
742         * mule-charset.c (load_char_decoding_entry_maybe): Use
743         `chise_ds_decode_char' instead of `chise_ds_get_ccs' and
744         `chise_ccs_decode'.
745
746 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
747
748         * chartab.c (open_chise_data_source_maybe): Use `CHISE_DS_open'
749         instead of `chise_open_data_source'.
750         (Fclose_char_data_source): Use `CHISE_DS_close' instead of
751         `chise_ds_close'.
752
753 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
754
755         * chartab.c (char_table_open_db_maybe): Use `chise_ds_get_feature'
756         instead of `chise_ds_open_feature_table'.
757         (char_table_close_db_maybe): Don't use `chise_ft_close'.
758
759 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
760
761         * mule-charset.c (Fsave_charset_mapping_table): Use
762         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; use
763         `chise_ccs_set_decoded_char' instead of `chise_ccst_put_char'; use
764         `chise_ccs_sync' instead of `chise_ccst_close'.
765         (load_char_decoding_entry_maybe): Modify for `chise_ds_get_ccs'.
766
767         * chartab.c (open_chise_data_source_maybe): Modify for
768         `chise_open_data_source'.
769         (char_table_open_db_maybe): Modify for
770         `chise_ds_open_feature_table'.
771
772 2003-08-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
773
774         * mule-charset.c (load_char_decoding_entry_maybe): Use
775         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; don't use
776         `chise_ccst_close'.
777
778 2003-08-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
779
780         * mule-charset.c (Fsave_charset_mapping_table): Use
781         `chise_ds_open_ccs_table', `chise_ccst_put_char' and
782         `chise_ccst_close' instead of `chise_ds_open_decoding_table',
783         `chise_dt_put_char' and `chise_dt_close'.
784         (load_char_decoding_entry_maybe): Use `chise_ds_open_ccs_table',
785         `chise_ccs_decode' and `chise_ccst_close' instead of
786         `chise_ds_open_decoding_table', `chise_dt_get_char' and
787         `chise_dt_close'.
788
789         * chartab.c (char_table_get_db): Use
790         `chise_char_load_feature_value' instead of `chise_ft_get_value'.
791         (load_char_attribute_table_map_func): Modify for
792         `chise_char_feature_value_iterate'.
793         (Fload_char_attribute_table): Use
794         `chise_char_feature_value_iterate' instead of `chise_ft_iterate'.
795
796 2003-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
797
798         * text-coding.c (COMPOSE_ADD_CHAR): Fixed.
799
800 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
801
802         * chartab.c (put_char_table): Modify for inherited coded-charsets
803         in XEmacs CHISE.
804
805 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
806
807         * chartab.c (Fput_char_table_map_function): Fixed.
808         (word_boundary_p): Don't check charset in XEmacs CHISE.
809
810 2003-08-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
811
812         * mule-charset.c (Fsave_charset_mapping_table): Use
813         `open_chise_data_source_maybe'; use `chise_ds_open_decoding_table'
814         instead of `chise_open_decoding_table'; refer
815         `default_chise_data_source'; use `chise_dt_close' instead of
816         `chise_close_decoding_table'.
817         (load_char_decoding_entry_maybe): Likewise.
818
819         * chartab.c (default_chise_data_source): New variable when `CHISE'
820         is defined.
821         (Fcopy_char_table): `ct->ds' is deleted.
822         (open_chise_data_source_maybe): New function.
823         (Fclose_char_data_source): New function.
824         (char_table_open_db_maybe): Use `open_chise_data_source_maybe';
825         use `chise_ds_open_feature_table' instead of
826         `chise_open_feature_table'.
827         (char_table_close_db_maybe): Use `chise_ft_close' instead of
828         `chise_close_feature_table'; `cit->ds' is deleted.
829         (syms_of_chartab): Add new builtin function
830         `close-char-data-source' when `HAVE_CHISE_CLIENT' is defined.
831
832         * chartab.h (default_chise_data_source): New extern variable.
833         (open_chise_data_source_maybe): New prototype.
834         (struct Lisp_Char_Table): Delete `ds'.
835
836 2003-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
837
838         * mule-charset.c (Fsave_charset_mapping_table): Use libchise when
839         `CHISE' is defined.
840
841 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
842
843         * chartab.c (char_table_open_db_maybe): Defined even if `CHISE' is
844         not defined; add code for non-libchise setting.
845         (char_table_close_db_maybe): Likewise.
846         (char_table_get_db): New function when `HAVE_CHISE_CLIENT' is
847         defined.
848         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'
849         even if `CHISE' is not defined.
850         (Freset_char_attribute_table): Likewise.
851         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
852         `char_table_close_db_maybe' even if `CHISE' is not defined; use
853         `char_table_get_db'.
854         (Fload_char_attribute_table): Use `char_table_open_db_maybe' and
855         `char_table_close_db_maybe' even if `CHISE' is not defined.
856
857 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
858
859         * chartab.c (char_table_open_db_maybe): New function.
860         (char_table_close_db_maybe): New function.
861         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'.
862         (Freset_char_attribute_table): Likewise.
863         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
864         `char_table_close_db_maybe'.
865         (Fload_char_attribute_table): Likewise.
866
867 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
868
869         * chartab.c: Don't include <chise.h> because it is included in
870         chartab.h.
871         (Fmake_char_table): Initialize `ct->feature_table' when `CHISE' is
872         defined.
873         (Fcopy_char_table): Copy `ct->ds' and `ct->feature_table' when
874         `CHISE' is defined.
875         (Fmount_char_attribute_table): Initialize `ct->feature_table' when
876         `CHISE' is defined.
877         (Fclose_char_attribute_table): Close `ct->feature_table' and
878         `ct->ds' when `CHISE' is defined.
879         (Freset_char_attribute_table): Likewise.
880         (load_char_attribute_maybe): Use `cit->ds' and
881         `cit->feature_table' when `CHISE' is defined.
882         (Fload_char_attribute_table): Likewise.
883
884         * chartab.h: Include <chise.h> when `CHISE' is defined.
885         (struct Lisp_Char_Table): Add new member `ds' and `feature_table'
886         when `CHISE' is defined.
887
888 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
889
890         * chartab.c (mark_char_table): Member `db' is deleted when `CHISE'
891         is defined.
892         (char_table_description): Likewise.
893         (Fmake_char_table): Likewise.
894         (Fcopy_char_table): Likewise.
895         (Fmount_char_attribute_table): Likewise.
896         (Fclose_char_attribute_table): Likewise.
897         (Freset_char_attribute_table): Likewise.
898         (load_char_attribute_maybe): Likewise.
899         (Fload_char_attribute_table): Likewise.
900
901         * chartab.h (struct Lisp_Char_Table): Delete `db' when `CHISE' is
902         defined.
903
904 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
905
906         * chartab.c (load_char_attribute_table_map_func): New function
907         when CHISE is defined.
908         (Qload_char_attribute_table_map_function): Don't define when CHISE
909         is defined.
910         (Fload_char_attribute_table_map_function): Likewise.
911         (Fload_char_attribute_table): Use libchise when `CHISE' is
912         defined.
913         (syms_of_chartab): Don't define
914         `load-char-attribute-table-map-function' when CHISE is defined.
915
916 2003-08-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
917
918         * chartab.c: Include <chise.h> when `CHISE' is defined.
919         (load_char_attribute_maybe): Use libchise when `CHISE' is defined.
920
921 2003-07-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
922
923         * mule-charset.c (charset_code_point): Fix problem when searching
924         in mother CCS fails with `defined_only' mode.
925
926 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
927
928         * chartab.c (Q_ucs_unified): Renamed from `Q_ucs_variants'.
929         (Fchar_variants): Rename `Q_ucs_variants' to `Q_ucs_unified'.
930         (put_char_composition): Likewise.
931         (Fput_char_attribute): Likewise.
932         (syms_of_chartab): Rename `->ucs-variants' to `->ucs-unified'.
933
934 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
935
936         * chartab.c (Q_ucs): Deleted.
937         (Fput_char_attribute): Don't refer `->ucs'.
938         (Fdefine_char): Likewise.
939         (Ffind_char): Likewise.
940         (syms_of_chartab): Delete `->ucs'.
941
942 2003-04-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
943
944         * mule-charset.c (Qmap_cns11643_2): Renamed from
945         `Qchinese_cns11643_2'.
946         (syms_of_mule_charset): Add new symbol `=cns11643-2' instead of
947         `chinese-cns11643-2'.
948         (complex_vars_of_mule_charset): Rename `chinese-cns11643-2' to
949         `=cns11643-2'.
950
951 2003-04-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
952
953         * mule-charset.c (Qmap_cns11643_1): Renamed from
954         `Qchinese_cns11643_1'.
955         (syms_of_mule_charset): Add new symbol `=cns11643-1' instead of
956         `chinese-cns11643-1'.
957         (complex_vars_of_mule_charset): Rename `chinese-cns11643-1' to
958         `=cns11643-1'.
959
960 2003-04-24  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
961
962         * mule-charset.c (Qmap_gb12345): Renamed from `Qchinese_gb12345'.
963         (syms_of_mule_charset): Add new symbol `=gb12345' instead of
964         `chinese-gb12345'.
965         (complex_vars_of_mule_charset): Rename `chinese-gb12345' to
966         `=gb12345'.
967
968 2003-04-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
969
970         * mule-charset.c (Qmap_gb2312): Renamed from `Qchinese_gb2312'.
971         (syms_of_mule_charset): Add new symbol `=gb2312' instead of
972         `chinese-gb2312'.
973         (complex_vars_of_mule_charset): Rename `chinese-gb2312' to
974         `=gb2312'.
975
976 2003-04-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
977
978         * mule-charset.c (Qmap_big5): Renamed from `Qchinese_big5'.
979         (syms_of_mule_charset): Add new symbol `=big5' instead of
980         `chinese-big5'.
981         (complex_vars_of_mule_charset): Rename `chinese-big5' to `=big5'.
982
983 2003-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
984
985         * mule-charset.c (Qmap_ks_x1001): Renamed from `Qkorean_ksc5601'.
986         (syms_of_mule_charset): Add new symbol `=ks-x1001' instead of
987         `korean-ksc5601'.
988         (complex_vars_of_mule_charset): Rename `korean-ksc5601' to
989         `=ks-x1001'.
990
991 2003-04-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
992
993         * mule-charset.c (Qmap_jis_x0212): Renamed from
994         `Qjapanese_jisx0212'.
995         (syms_of_mule_charset): Add new symbol `=jis-x0212' instead of
996         `japanese-jisx0212'.
997         (complex_vars_of_mule_charset): Rename `japanese-jisx0212' to
998         `=jis-x0212'.
999
1000 2003-04-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1001
1002         * mule-charset.c (Qmap_jis_x0208_1983): Renamed from
1003         `Qjapanese_jisx0208'.
1004         (syms_of_mule_charset): Add new symbol `=jis-x0208-1983' instead
1005         of `japanese-jisx0208'.
1006         (complex_vars_of_mule_charset): Rename `japanese-jisx0208' to
1007         `=jis-x0208-1983'.
1008
1009 2003-04-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1010
1011         * mule-charset.c (Qmap_jis_x0208_1978): Renamed from
1012         `Qjapanese_jisx0208_1978'.
1013         (syms_of_mule_charset): Add new symbol `=jis-x0208-1978' instead
1014         of `japanese-jisx0208-1978'.
1015         (complex_vars_of_mule_charset): Rename `japanese-jisx0208-1978' to
1016         `=jis-x0208-1978'.
1017
1018 2003-04-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1019
1020         * chartab.c (decode_char_table_range): CHARTAB_RANGE_DEFAULT is
1021         only for XEmacs CHISE.
1022
1023 2003-04-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1024
1025         * char-ucs.h: Compact non-ISO-IR charset-ids.
1026         (LEADING_BYTE_UCS): Changed to -177.
1027         (LEADING_BYTE_CONTROL_1): Changed to -77.
1028         (LEADING_BYTE_UCS_BMP): Changed to -176.
1029         (LEADING_BYTE_JAPANESE_JISX0208_1990): Changed to -168.
1030
1031 2003-04-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1032
1033         * mule-charset.c (Qiso_ir): New variable.
1034         (Fmake_charset): Recognise new property `iso-ir'.
1035         (syms_of_mule_charset): Add new symbol `iso-ir'.
1036
1037 2003-04-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1038
1039         * char-ucs.h: Change charset-id of ISO-IR sets from ISO-IR-number
1040         n to -n; charset-id of non ISO-IR sets are changed to positive
1041         numbers.
1042
1043 2003-03-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1044
1045         * text-coding.c (decode_add_er_char): Use XUINT instead of XINT
1046         for &MCS-XXXXXXXX; values.
1047
1048 2003-03-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1049
1050         * mule.c (Vxemacs_chise_version): Renamed from
1051         `Vutf_2000_version'.
1052         (vars_of_mule): Add new variable `xemacs-chise-version'; define
1053         `utf-2000-version' as an alias for `xemacs-chise-version'.
1054
1055 2003-03-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1056
1057         * mule-charset.c: Include <chise.h> when `CHISE' is defined.
1058         (load_char_decoding_entry_maybe): Use libchise when `CHISE' is
1059         defined.
1060
1061         * config.h.in (CHISE): New macro.
1062
1063 2003-03-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1064
1065         * mule-charset.c (put_char_ccs_code_point): Refer `=ucs' instead
1066         of `ucs'.
1067         (Qmap_ucs): New variable.
1068         (syms_of_mule_charset): Add new symbol `=ucs'.
1069         (complex_vars_of_mule_charset): Rename `ucs' to `=ucs'.
1070
1071         * fns.c (ids_format_unit): Refer `=ucs' instead of `ucs'.
1072         (simplify_char_spec): Likewise.
1073
1074         * chartab.c (Fdefine_char): Refer `=ucs' as same as `ucs'.
1075
1076         * char-ucs.h (Qmap_ucs): New extern variable.
1077
1078 2003-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1079
1080         * mule-charset.c (Qmap_jis_x0208): Renamed from `Qjis_x0208'.
1081         (Qmap_jis_x0208_1990): Renamed from `Qjapanese_jisx0208_1990';
1082         don't define it when UTF2000 is not defined.
1083         (syms_of_mule_charset): Modify for `Qmap_jis_x0208'; rename
1084         `japanese-jisx0208-1990' to `=jis-x0208-1990'; don't define it
1085         when UTF2000 is not defined.
1086         (complex_vars_of_mule_charset): Modify for `Qmap_jis_x0208';
1087         rename `japanese-jisx0208-1990' to `=jis-x0208-1990'.
1088
1089 2003-03-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1090
1091         * char-ucs.h (LEADING_BYTE_UCS_GB): Deleted.
1092
1093         * mule-charset.c (Vcharset_ucs_gb): Deleted.
1094         (Qucs_gb): Deleted.
1095         (syms_of_mule_charset): Delete `ucs-gb'.
1096         (complex_vars_of_mule_charset): Likewise.
1097
1098 2003-03-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1099
1100         * char-ucs.h (LEADING_BYTE_UCS_CNS): Deleted.
1101
1102         * mule-charset.c (Vcharset_ucs_cns): Deleted.
1103         (Qucs_cns): Deleted.
1104         (syms_of_mule_charset): Delete `ucs-cns'.
1105         (complex_vars_of_mule_charset): Likewise.
1106
1107 2003-03-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1108
1109         * char-ucs.h (LEADING_BYTE_UCS_JIS): Deleted.
1110
1111         * mule-charset.c (Vcharset_ucs_jis): Deleted.
1112         (Qucs_jis): Deleted.
1113         (syms_of_mule_charset): Delete `ucs-jis'.
1114         (complex_vars_of_mule_charset): Likewise.
1115
1116 2003-03-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1117
1118         * char-ucs.h (LEADING_BYTE_UCS_KS): Deleted.
1119
1120         * mule-charset.c (Vcharset_ucs_ks): Deleted.
1121         (Qucs_ks): Deleted.
1122         (syms_of_mule_charset): Delete `ucs-ks'.
1123         (complex_vars_of_mule_charset): Likewise.
1124
1125 2003-03-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1126
1127         * mule-charset.c (Vcharset_ideograph_daikanwa_2): Deleted.
1128         (Qideograph_daikanwa_2): Deleted.
1129         (syms_of_mule_charset): Delete `ideograph-daikanwa-2'.
1130         (complex_vars_of_mule_charset): Likewise.
1131
1132         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): Deleted.
1133         (LEADING_BYTE_DAIKANWA_1): Deleted.
1134         (LEADING_BYTE_DAIKANWA_2): Deleted.
1135         (MIN_CHAR_DAIKANWA): Deleted.
1136         (MAX_CHAR_DAIKANWA): Deleted.
1137
1138 2003-02-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1139
1140         * char-ucs.h (LEADING_BYTE_DAIKANWA_3): Deleted.
1141         (LEADING_BYTE_HANZIKU_{1..12}): Deleted.
1142         ({MIN|MAX}_CHAR_HANZIKU_{1..12}): Deleted.
1143
1144         * mule-charset.c (Vcharset_ideograph_hanziku_{1..12}): Deleted.
1145         (Vcharset_ideograph_daikanwa): Deleted.
1146         (Qideograph_hanziku_{1..12}): Deleted.
1147         (Qideograph_daikanwa): Deleted.
1148         (encode_builtin_char_1): Don't use {MIN|MAX}_CHAR_DAIKANWA and
1149         Vcharset_ideograph_daikanwa.
1150         (syms_of_mule_charset): Delete `ideograph-daikanwa' and
1151         `ideograph-hanziku-{1..12}'.
1152         (complex_vars_of_mule_charset): Likewise.
1153
1154 2003-02-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1155
1156         * char-ucs.h (LEADING_BYTE_GT_PJ_{1..11}): Deleted.
1157
1158         * mule-charset.c (Vcharset_ideograph_gt_pj_{1..11}): Deleted.
1159         (Qideograph_gt_pj_{1..11}): Deleted.
1160         (syms_of_mule_charset): Delete `ideograph-gt-pj-{1..11}'.
1161         (complex_vars_of_mule_charset): Likewise.
1162
1163 2003-02-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1164
1165         * mule-charset.c (Vcharset_ucs_big5): Deleted.
1166         (Vcharset_ideograph_gt): Deleted.
1167         (Qucs_big5): Deleted.
1168         (Qideograph_gt): Deleted.
1169         (syms_of_mule_charset): Delete symbol `ucs-big5' and
1170         `ideograph-gt'.
1171         (complex_vars_of_mule_charset): Delete coded-charset `ucs-big5'
1172         and `ideograph-gt'.
1173
1174         * char-ucs.h (LEADING_BYTE_UCS_BIG5): Deleted.
1175         (LEADING_BYTE_GT): Deleted.
1176         (MIN_CHAR_GT): Deleted.
1177         (MAX_CHAR_GT): Deleted.
1178
1179 2003-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1180
1181         * chartab.c (Fput_char_attribute): Canonicalise charset-aliases.
1182
1183 2003-01-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1184
1185         * chartab.c (save_uint8_byte_table): Add new argument `filter'.
1186         (save_uint16_byte_table): Likewise.
1187         (save_byte_table): Likewise; convert values by it.
1188         (Fput_char_attribute): Don't use `char-refs-simplify-char-specs'
1189         for `ideographic-structure'.
1190         (Fsave_char_attribute_table): Use `char-refs-simplify-char-specs'
1191         as the filter for `ideographic-structure'.
1192
1193 2003-01-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1194
1195         * chartab.c (put_char_composition): New function.
1196         (Fput_char_attribute): Use `put_char_composition'; use
1197         `Fchar_refs_simplify_char_specs' for `ideographic-structure'.
1198
1199         * fns.c (simplify_char_spec): New function.
1200         (char_ref_simplify_spec): New function.
1201         (Fchar_refs_simplify_char_specs): New function.
1202         (syms_of_fns): Add new builtin function
1203         `char-refs-simplify-char-specs'.
1204
1205 2003-01-05  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1206
1207         * mule-charset.c (Vcharset_ideograph_cbeta): Deleted.
1208         (Qideograph_cbeta): Deleted.
1209         (syms_of_mule_charset): Don't define `ideograph-cbeta'.
1210         (complex_vars_of_mule_charset): Likewise.
1211
1212         * char-ucs.h (LEADING_BYTE_CBETA): Deleted.
1213         (MIN_CHAR_CBETA): Comment out.
1214         (MAX_CHAR_CBETA): Likewise.
1215
1216 2002-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1217
1218         * mule-charset.c, chartab.h, casetab.c, char-ucs.h, chartab.c: Use
1219         `HAVE_CHISE_CLIENT' instead of `HAVE_DATABASE' to indicate the
1220         CHISE client feature.
1221
1222 2002-12-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1223
1224         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.20.
1225
1226 2002-12-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1227
1228         * mule-charset.c (charset_lookup_description_1): Use
1229         `NUM_LEADING_BYTES' in UTF-2000.
1230
1231 2002-12-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1232
1233         * char-ucs.h (GC_CHARSETP): Deleted.
1234
1235 2002-12-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1236
1237         * char-ucs.h (MAX_CHAR_GT): Updated.
1238
1239 2002-12-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1240
1241         * text-coding.c: Sync with XEmacs 21.4.10.
1242
1243 2002-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1244
1245         * mule-charset.c (Vcharset_china3_jef): Deleted.
1246         (Qchina3_jef): Deleted.
1247         (syms_of_mule_charset): Don't define `china3-jef'.
1248         (complex_vars_of_mule_charset): Likewise.
1249
1250         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Deleted.
1251         (MIN_CHAR_CHINA3_JEF): Comment out.
1252         (MAX_CHAR_CHINA3_JEF): Comment out.
1253
1254 2002-11-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1255
1256         * mule-charset.c (Vcharset_ucs_gb): New variable.
1257         (Qucs_gb): New variable.
1258         (syms_of_mule_charset): Add new symbol `ucs-gb'.
1259         (complex_vars_of_mule_charset): Add new coded-charset `ucs-gb'.
1260
1261         * char-ucs.h (LEADING_BYTE_UCS_GB): New macro.
1262
1263 2002-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1264
1265         * mule-charset.c (charset_code_point): if a coded-charset has a
1266         final-byte, don't inherit the builtin range of the mother CCS.
1267
1268 2002-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1269
1270         * mule-charset.c (charset_code_point): Fix problem about
1271         inheritance.
1272
1273 2002-11-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1274
1275         * mule-charset.c (decode_builtin_char): Reorganized.
1276
1277 2002-10-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1278
1279         * text-coding.c (char_encode_as_entity_reference): Modify for
1280         `charset_code_point'.
1281         (char_encode_shift_jis): Likewise.
1282         (char_encode_big5): Likewise.
1283         (char_encode_utf8): Likewise.
1284         (char_encode_iso2022): Likewise.
1285
1286         * mule-charset.c (charset_code_point): Add new argument
1287         `defined_only'.
1288         (Fencode_char): Add new optional argument `defined_only'.
1289
1290         * chartab.c (put_char_table): Modify for `charset_code_point'.
1291
1292         * char-ucs.h (charset_code_point): Add new argument
1293         `defined_only'.
1294         (encode_char_1): Modify for `charset_code_point'.
1295
1296 2002-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1297
1298         * mule-charset.c (complex_vars_of_mule_charset): Don't specify
1299         `MIN_CHAR_THAI' and `MAX_CHAR_THAI' for `thai-tis620'.
1300
1301 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1302
1303         * mule-charset.c (Vcharset_jis_x0208): New variable in UTF-2000.
1304         (Qjis_x0208): Likewise.
1305         (decode_builtin_char): Prefer XCHARSET_MAX_CODE(charset) than
1306         XCHARSET_FINAL(charset).
1307         (charset_code_point): Modify condition for final-byte based
1308         builtin-chars.
1309         (syms_of_mule_charset): Add new symbol `=jis-x0208' in UTF-2000.
1310         (complex_vars_of_mule_charset): Add new coded-charset `=jis-x0208'
1311         in UTF-2000; specify `=jis-x0208' as the mother of
1312         `japanese-jisx0208-1978', `japanese-jisx0208' and
1313         `japanese-jisx0208-1990' in UTF-2000.
1314
1315 2002-10-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1316
1317         * char-ucs.h (LEADING_BYTE_JIS_X0208): New macro.
1318
1319 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1320
1321         * text-coding.c (decode_coding_utf16): Support UTF-16.
1322         (char_encode_utf16): Fixed.
1323
1324 2002-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1325
1326         * text-coding.c (Qutf16): New variable in MULE.
1327         (Fmake_coding_system): Accept `utf-16' as `type' in MULE.
1328         (Fcoding_system_type): Add `utf-16' in MULE.
1329         (struct detection_state): Add a structure for utf16 in MULE.
1330         (detect_coding_type): Setup st->utf16.mask in MULE.
1331         (mule_decode): Use `decode_coding_utf16' for `CODESYS_UTF16' in
1332         MULE.
1333         (reset_encoding_stream): Use `char_encode_utf16' and
1334         `char_finish_utf16' for `CODESYS_UTF16' in MULE.
1335         (detect_coding_utf16): New function [incomplete].
1336         (decode_coding_utf16): New function [support only UCS-2].
1337         (char_encode_utf16): New function.
1338         (char_finish_utf16): New function.
1339         (syms_of_file_coding): Add new symbol `utf-16'; setup
1340         `coding_category_symbol[CODING_CATEGORY_UTF16]'.
1341
1342         * file-coding.h (enum coding_system_type): Add `CODESYS_UTF16' in
1343         UTF-2000.
1344         (enum coding_category_type): Add `CODING_CATEGORY_UTF16' in MULE.
1345         (CODING_CATEGORY_UTF16_MASK): New macro in MULE.
1346
1347 2002-10-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1348
1349         * chartab.c (put_char_table): When a charset is specified as a
1350         range in UTF-2000, don't support builtin characters.
1351
1352 2002-09-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1353
1354         * mule-charset.c (decode_defined_char): Don't refer external
1355         database if Qunbound or Qnil are found.
1356         (Fsave_charset_mapping_table): Don't define it if
1357         HAVE_CHISE_CLIENT is not defined.
1358         (Freset_charset_mapping_table): New function.
1359         (load_char_decoding_entry_maybe): Store Qnil if a character is not
1360         found in external database.
1361         (syms_of_mule_charset): Don't define `save-charset-mapping-table'
1362         if HAVE_CHISE_CLIENT is not defined; add new builtin function
1363         `reset-charset-mapping-table' if HAVE_CHISE_CLIENT is defined.
1364
1365 2002-09-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1366
1367         * text-coding.c (decode_coding_utf8): Check CCS is specified or
1368         not.
1369
1370 2002-08-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1371
1372         * chartab.h: Add extern declarations for Qdowncase, Qflippedcase,
1373         Q_lowercase, Q_uppercase in UTF-2000.
1374
1375         * chartab.c (get_char_table): Add special code for the standard
1376         case table to use character attribute `->downcase' and
1377         `->uppercase' for case operations in UTF-2000.
1378
1379         * casetab.c (Qflippedcase): New variable in UTF-2000.
1380         (Q_lowercase): Likewise.
1381         (Q_uppercase): Likewise.
1382         (syms_of_casetab): Add new symbols `flippedcase', `->lowercase'
1383         and `->uppercase' in UTF-2000.
1384         (complex_vars_of_casetab): Assign attribute name `downcase' to
1385         downcase and CANON table of Vstandard_case_table in UTF-2000;
1386         assign attribute name `flippedcase' to upcase and EQV table of
1387         Vstandard_case_table in UTF-2000.
1388
1389 2002-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1390
1391         * text-coding.c (decode_add_er_char): Support isolated-chars.
1392         (char_encode_as_entity_reference): Likewise.
1393
1394 2002-08-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1395
1396         * emacs.c (Vutf_2000_lisp_directory): New variable.
1397         (Vconfigure_utf_2000_lisp_directory): Likewise.
1398         (complex_vars_of_emacs): Add new variable
1399         `utf-2000-lisp-directory' and `configure-utf-2000-lisp-directory'.
1400
1401 2002-08-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1402
1403         * char-ucs.h (DECODE_CHAR): Delete special code for
1404         `chinese-big5-1' and `chinese-big5-2'.
1405
1406         * mule-charset.c (Qbig5_1): New variable in UTF-2000.
1407         (Qbig5_2): Likewise.
1408         (decode_defined_char): Support CONVERSION_BIG5_1 and
1409         CONVERSION_BIG5_2.
1410         (decode_builtin_char): Likewise.
1411         (charset_code_point): Likewise.
1412         (Fmake_charset): Accept `big5-1' and `big5-2' as a value of
1413         'conversion in UTF-2000.
1414         (syms_of_mule_charset): Add new symbol `big5-1' and `big5-2'.
1415         (complex_vars_of_mule_charset): Define `chinese-big5-1' and
1416         `chinese-big5-2' as children of `chinese-big5'.
1417
1418         * char-ucs.h (CONVERSION_BIG5_1): New macro.
1419         (CONVERSION_BIG5_2): New macro.
1420
1421 2002-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1422
1423         * text-coding.c (char_encode_big5): Support entity-reference.
1424
1425 2002-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1426
1427         * text-coding.c (char_encode_as_entity_reference): New function.
1428         (char_encode_utf8): Use `char_encode_as_entity_reference'.
1429
1430 2002-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1431
1432         * text-coding.c (decode_coding_big5): Support entity-reference
1433         decoding feature.
1434
1435 2002-08-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1436
1437         * text-coding.c (allocate_coding_system): Initialize initial
1438         charsets for CODESYS_UTF8.
1439         (Fmake_coding_system): Accept charset-g0, charset-g1 and
1440         charset-g2 for CODESYS_UTF8.
1441         (decode_coding_utf8): Use charset-g0.
1442         (char_encode_utf8): Use charset-g0; use charset-g1 and charset-g2
1443         to force variants to map to UCS.
1444
1445 2002-07-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1446
1447         * text-coding.c (Qutf_8_mcs): New variable.
1448         (syms_of_file_coding): Add new symbol `utf-8-mcs' in UTF-2000.
1449         (complex_vars_of_file_coding): Define coding-system `utf-8-mcs'
1450         instead of `utf-8' in UTF-2000.
1451
1452 2002-07-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1453
1454         * mule-charset.c (charset_code_point): If CHARSET_CONVERSION is
1455         CONVERSION_IDENTICAL, identical conversion is used even if a CCS
1456         is ISO-2022 style; instead of it, CONVERSION_94, CONVERSION_96,
1457         CONVERSION_94x94, CONVERSION_96x96, CONVERSION_94x94x94,
1458         CONVERSION_96x96x96, CONVERSION_94x94x94x94 and
1459         CONVERSION_96x96x96x96 are introduced.
1460         (complex_vars_of_mule_charset): Specify CONVERSION_96 instead of
1461         CONVERSION_IDENTICAL for thai-tis620; Specify CONVERSION_94x94
1462         instead of CONVERSION_IDENTICAL for japanese-jisx0208-1990.
1463
1464         * char-ucs.h (CONVERSION_94): New macro.
1465         (CONVERSION_96): New macro.
1466         (CONVERSION_94x94): New macro.
1467         (CONVERSION_96x96): New macro.
1468         (CONVERSION_94x94x94): New macro.
1469         (CONVERSION_96x96x96): New macro.
1470         (CONVERSION_94x94x94x60): New macro.
1471         (CONVERSION_94x94x94x94): New macro.
1472         (CONVERSION_96x96x96x96): New macro.
1473
1474 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1475
1476         * chartab.c (Vcharacter_variant_table): Deleted.
1477         (Fchar_variants): Use character-attribute `->ucs-variants' instead
1478         of `Vcharacter_variant_table'.
1479         (Fput_char_attribute): Likewise.
1480         (vars_of_chartab): Don't setup `Vcharacter_variant_table'.
1481         (complex_vars_of_chartab): Likewise.
1482
1483 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1484
1485         * lisp.h: Add an EXFUN for `Fchar_ref_p'.
1486
1487         * fns.c (Qideographic_structure): New variable.
1488         (Qkeyword_char): New variable.
1489         (ids_format_unit): New function.
1490         (Fideographic_structure_to_ids): New function.
1491         (syms_of_fns): Add new symbols `ideographic-structure' and
1492         `:char'; add new builtin function `ideographic-structure-to-ids'.
1493
1494         * data.c (Fchar_ref_p): New function.
1495         (syms_of_data): Add new builtin function `char-ref-p'.
1496
1497         * chartab.h: Add an EXFUN for `Ffind_char'.
1498
1499 2002-07-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1500
1501         * text-coding.c (Vcharacter_composition_table): Deleted.
1502         (COMPOSE_ADD_CHAR): Use the implementation for external-DB support
1503         in every UTF-2000.
1504
1505         * chartab.c: Add EXFUN for `Fmap_char_attribute' in every
1506         UTF-2000.
1507         (Vcharacter_composition_table): Deleted.
1508         (Fget_composite_char): Use the implementation for external-DB
1509         support in every UTF-2000.
1510         (Fput_char_attribute): Likewise.
1511         (char_attribute_system_db_file): Don't define if external-DB
1512         feature is not available.
1513         (Fsave_char_attribute_table): Likewise.
1514         (Fmount_char_attribute_table): Likewise.
1515         (Fclose_char_attribute_table): Likewise.
1516         (Freset_char_attribute_table): Likewise.
1517         (Fload_char_attribute_table): Likewise.
1518         (syms_of_chartab): Don't define `save-char-attribute-table',
1519         `mount-char-attribute-table', `reset-char-attribute-table',
1520         `close-char-attribute-table' and `load-char-attribute-table' if
1521         external-DB feature is not available.
1522         (vars_of_chartab): Don't setup `Vcharacter_composition_table'.
1523
1524 2002-07-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1525
1526         * text-coding.c (Qcomposition): Add extern if external-DB feature
1527         is supported.
1528         (Vcharacter_composition_table): Don't add extern if external-DB
1529         feature is supported.
1530         (COMPOSE_ADD_CHAR): Modify for new data-representation of
1531         character composition rule if external-DB feature is supported.
1532
1533         * chartab.c (Vcharacter_composition_table): Don't define if
1534         external-DB feature is supported.
1535         (Qcomposition): New variable.
1536         (Fget_composite_char): New implementation for external-DB support.
1537         (Fput_char_attribute): Use `composition' property of each
1538         character instead of `Vcharacter_composition_table' to store
1539         character-composition rules if external-DB feature is supported.
1540         (syms_of_chartab): Add new symbol `composition'.
1541         (vars_of_chartab): Don't setup `Vcharacter_composition_table' if
1542         external-DB feature is supported.
1543
1544 2002-07-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1545
1546         * chartab.c (Vchar_db_stingy_mode): New variable.
1547         (load_char_attribute_maybe): Close database if
1548         Vchar_db_stingy_mode is not NIL.
1549         (Fload_char_attribute_table_map_function): Use
1550         `get_char_id_table_0' instead of `get_char_id_table'.
1551         (vars_of_chartab): Add new variable `char-db-stingy-mode'.
1552
1553         * chartab.h (get_char_id_table_0): New inline function.
1554         (get_char_id_table): Use `get_char_id_table_0'.
1555
1556 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1557
1558         * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
1559         and `COMPOSE_ADD_CHAR'.
1560         (decode_coding_iso2022): Use `decode_flush_er_chars'.
1561
1562 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1563
1564         * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
1565         instead of `DECODE_ADD_UCS_CHAR'.
1566         (COMPOSE_ADD_CHAR): Likewise.
1567
1568 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1569
1570         * text-coding.c (decode_flush_er_chars): New inline function.
1571         (decode_add_er_char): New function.
1572         (decode_coding_utf8): Use `decode_flush_er_chars' and
1573         `decode_add_er_char'.
1574
1575 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1576
1577         * text-coding.c (decode_coding_utf8): Flush for er_buf must be
1578         done before `decode_output_utf8_partial_char'.
1579
1580         * mule-charset.c (complex_vars_of_mule_charset): Specify
1581         `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
1582         `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
1583
1584 2002-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1585
1586         * mule-charset.c (decode_defined_char): New function; search
1587         mother.
1588         (decode_builtin_char): Don't search mother if
1589         XCHARSET_MAX_CODE(charset) == 0.
1590         (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
1591         == 0 even if code >= XCHARSET_MAX_CODE(charset).
1592         (Fdecode_char): Use `decode_defined_char' instead of
1593         `DECODE_DEFINED_CHAR'.
1594         (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
1595         mother of `Vcharset_ucs_jis'.
1596
1597         * text-coding.c (decode_coding_big5): Use `decode_defined_char'
1598         instead of `DECODE_DEFINED_CHAR'.
1599
1600         * char-ucs.h (decode_defined_char): Renamed from
1601         `DECODE_DEFINED_CHAR'; changed to normal function.
1602         (DECODE_CHAR): Use `decode_defined_char' instead of
1603         `DECODE_DEFINED_CHAR'.
1604
1605         * lisp.h: Add `EXFUN' for `Fstring_to_number'.
1606
1607 2002-07-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1608
1609         * char-ucs.h: Add `extern' for `Vcharset_ucs'.
1610
1611         * text-coding.c (Vcoded_charset_entity_reference_alist): New
1612         variable.
1613         (Quse_entity_reference): New variable.
1614         (Qd): New variable.
1615         (Qx): New variable.
1616         (QX): New variable.
1617         (coding_system_description): Add description for
1618         `ccs_priority_list'.
1619         (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
1620         (allocate_coding_system): Initialize `ccs_priority_list' in
1621         UTF-2000.
1622         (Fmake_coding_system): Add description about
1623         'use-entity-reference; setup CODING_SYSTEM_USE_ENTITY_REFERENCE
1624         (codesys).
1625         (Fcoding_system_property): Accept `disable-composition' and
1626         `use-entity-reference' in UTF-2000.
1627         (struct decoding_stream): Add new member `er_counter' and `er_buf'
1628         in UTF-2000.
1629         (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
1630         (decode_coding_utf8): Decode entity-reference if
1631         CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
1632         (char_encode_utf8): Encode non-Unicode characters as
1633         entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
1634         (str->codesys).
1635         (syms_of_file_coding): Add new symbols `use-entity-reference',
1636         `d', `x', `X'.
1637         (vars_of_file_coding): Add new variable
1638         `coded-charset-entity-reference-alist'.
1639         (complex_vars_of_file_coding): Declare `disable-composition' and
1640         `use-entity-reference' to be coding-system-properties in UTF-2000.
1641
1642         * file-coding.h (struct Lisp_Coding_System): Add new member
1643         `use_entity_reference' and `ccs_priority_list'.
1644         (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
1645         (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
1646         (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
1647
1648 2002-07-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1649
1650         * chartab.c (save_uint8_byte_table): Don't clear the table.
1651         (save_uint16_byte_table): Likewise.
1652         (save_byte_table): Likewise.
1653         (Fmount_char_attribute_table): New function.
1654         (syms_of_chartab): Add new builtin function
1655         `mount-char-attribute-table'.
1656
1657 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1658
1659         * mule-charset.c (Fsave_charset_mapping_table): Open database as
1660         "w+" mode.
1661         (load_char_decoding_entry_maybe): Open database as read-only mode.
1662
1663         * chartab.c (Fsave_char_attribute_table): Don't share `ct->db';
1664         open database as "w+" mode.
1665         (load_char_attribute_maybe): Open database as read-only mode.
1666         (Fload_char_attribute_table): Likewise.
1667
1668 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1669
1670         * chartab.c (mark_char_table): Don't refer `ct->db_file'.
1671         (char_table_description): Delete member `db_file'.
1672         (Fmake_char_table): Don't refer `ct->db_file'.
1673         (Fcopy_char_table): Likewise.
1674         (Fsave_char_attribute_table): Likewise.
1675         (Fclose_char_attribute_table): Likewise.
1676         (Freset_char_attribute_table): Likewise.
1677         (load_char_attribute_maybe): Likewise.
1678         (Fload_char_attribute_table): Likewise.
1679
1680         * chartab.h (struct Lisp_Char_Table): Delete member `db_file'.
1681
1682 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1683
1684         * chartab.c: Add an EXFUN for `Fmap_char_attribute'.
1685         (Fsave_char_attribute_table): Don't check `ct->db_file' if
1686         `ct->db' is living.
1687         (load_char_attribute_maybe): Likewise.
1688         (Fload_char_attribute_table): Likewise.
1689
1690 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1691
1692         * chartab.c (Fclose_char_attribute_table): Set Qnil on
1693         `ct->db_file' unconditionally.
1694
1695 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1696
1697         * chartab.c (mark_char_table): Mark `ct->db_file' and `ct->db' in
1698         UTF-2000.
1699         (char_table_description): Add description for `db_file' and `db'
1700         in UTF-2000.
1701         (Fmake_char_table): Initialize `ct->db_file' and `ct->db' in
1702         UTF-2000.
1703         (Fcopy_char_table): Copy `ct->db_file' and `ct->db' in UTF-2000.
1704         (Fsave_char_attribute_table): Use `ct->db_file' and `ct->db'.
1705         (Fclose_char_attribute_table): New function.
1706         (Freset_char_attribute_table): Reset `ct->db_file' and `ct->db'.
1707         (load_char_attribute_maybe): Change interface; use `cit->db_file'
1708         and `cit->db'.
1709         (Fload_char_attribute_table): Use `ct->db_file' and `ct->db'.
1710         (syms_of_chartab): Add new builtin function
1711         `Fclose_char_attribute_table'.
1712
1713 2002-06-28  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1714
1715         * chartab.h (struct Lisp_Char_Table): Add new member `db_file' and
1716         `db' in UTF-2000.
1717         (load_char_attribute_maybe): Change interface.
1718         (get_char_id_table): Modify for `load_char_attribute_maybe'.
1719
1720 2002-06-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1721
1722         * database.h: Add an EXFUN for `Fdatabase_live_p'.
1723
1724 2002-04-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1725
1726         * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
1727         instead of `DECODE_CHAR' for mother; don't use special code for
1728         chinese-big5 to use code space of chinese-big5-1 and
1729         chinese-big5-2.
1730         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
1731         `MAX_CHAR_BIG5_CDP' for chinese-big5.
1732
1733         * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
1734         (MAX_CHAR_BIG5_CDP): Revival.
1735
1736 2002-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1737
1738         * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
1739         the XLFD registry-encoding name of `chinese-big5'.
1740
1741 2002-04-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1742
1743         * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
1744         (Qchinese_big5_cdp): Deleted.
1745         (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
1746         (complex_vars_of_mule_charset): Delete coded-charset
1747         `chinese-big5-cdp'.
1748
1749         * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
1750         (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
1751         `CHARSET_ID_OFFSET - n' for private CCS.
1752         (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
1753         (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
1754         of `MIN_LEADING_BYTE'.
1755         (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
1756         `(CHARSET_ID_OFFSET - 97)'.
1757         (MIN_CHAR_BIG5_CDP): Deleted.
1758         (MAX_CHAR_BIG5_CDP): Deleted.
1759
1760 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1761
1762         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.19.
1763
1764 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1765
1766         * mule.c (Vutf_2000_version): New variable [moved from chartab.c].
1767         (vars_of_mule): Add new variable `utf-2000-version' [moved from
1768         chartab.c].
1769
1770         * chartab.c (Vutf_2000_version): Moved to mule.c.
1771         (vars_of_chartab): Move code about `utf-2000-version' into mule.c.
1772
1773 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1774
1775         * mule-charset.c (load_char_decoding_entry_maybe): Don't define it
1776         when HAVE_CHISE_CLIENT is not defined.
1777
1778         * mule.c (vars_of_mule): Provide feature `chise' when
1779         HAVE_CHISE_CLIENT is defined.
1780
1781 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1782
1783         * config.h.in (UTF2000): Add comment.
1784         (HAVE_CHISE_CLIENT): New macro.
1785
1786 2002-02-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1787
1788         * chartab.c (Fchar_variants): Check Vcharacter_variant_table is
1789         CONSP.
1790         (Fput_char_attribute): Likewise.
1791         (char_attribute_system_db_file): Encode file-name of attribute.
1792         (vars_of_chartab): Set Qunbound into Vcharacter_variant_table as
1793         the initial value.
1794
1795 2002-02-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1796
1797         * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
1798         (Fsave_charset_mapping_table): Use
1799         `char_attribute_system_db_file'.
1800         (load_char_decoding_entry_maybe): Likewise.
1801
1802         * chartab.h (Qsystem_char_id): New external variable.
1803         (char_attribute_system_db_file): New prototype.
1804
1805         * chartab.c (Qsystem_char_id): New variable in UTF-2000.
1806         (char_attribute_system_db_file): New function.
1807         (Fsave_char_attribute_table): Use `char_attribute_system_db_file'.
1808         (Freset_char_attribute_table): Likewise.
1809         (load_char_attribute_maybe): Likewise.
1810         (Fload_char_attribute_table): Likewise.
1811         (syms_of_chartab): Add new symbol `system-char-id'.
1812
1813 2002-02-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1814
1815         * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
1816         `XCHARSET_GRAPHIC(ccs)'.
1817
1818 2002-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1819
1820         * mule-charset.c (Fsave_charset_mapping_table): Fixed.
1821
1822 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1823
1824         * chartab.c (Q_ucs_variants): New variable.
1825         (syms_of_chartab): Add new symbol `->ucs-variants'.
1826         (complex_vars_of_chartab): Set `Vcharacter_variant_table' on
1827         `Vchar_attribute_hash_table' as the value of `->ucs-variants'; set
1828         `->ucs-variants' on `XCHAR_TABLE_NAME (Vcharacter_variant_table)'.
1829
1830         * mule-charset.c (load_char_decoding_entry_maybe): New function.
1831
1832         * char-ucs.h (load_char_decoding_entry_maybe): New prototype when
1833         `HAVE_DATABASE' is defined.
1834         (DECODE_DEFINED_CHAR): Use `load_char_decoding_entry_maybe' when
1835         `HAVE_DATABASE' is defined.
1836
1837 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1838
1839         * chartab.c (Fsave_char_attribute_table): Don't clear internal
1840         attribute-table.
1841         (Freset_char_attribute_table): New function.
1842         (syms_of_chartab): Add new builtin function
1843         `reset-char-attribute-table'.
1844
1845 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1846
1847         * chartab.c (load_char_attribute_maybe): Don't make directories.
1848
1849 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1850
1851         * char-ucs.h: Add EXFUN for `Fmake_directory_internal'.
1852
1853         * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
1854         for decoding-table.
1855
1856 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1857
1858         * mule-charset.c (Fsave_charset_mapping_table): Use
1859         `XCHARSET_BYTE_SIZE' instead of `XCHARSET_CHARS'.
1860
1861         * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
1862         instead of `XCHARSET_CHARS'.
1863
1864 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1865
1866         * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
1867         (XCHARSET_BYTE_SIZE): Likewise.
1868
1869         * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
1870         mule-charset.c].
1871         (XCHARSET_BYTE_SIZE): Likewise.
1872
1873 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1874
1875         * chartab.c (Fput_char_attribute): Use exec-directory instead of
1876         data-directory to store database.
1877         (Fsave_char_attribute_table): Likewise.
1878         (load_char_attribute_maybe): Likewise.
1879         (Fload_char_attribute_table): Likewise.
1880
1881 2002-02-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1882
1883         * mule-charset.c (Fsave_charset_mapping_table): New function.
1884         (syms_of_mule_charset): Add new builtin function
1885         `save-charset-mapping-table'.
1886
1887 2002-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1888
1889         * char-ucs.h (decoding_table_check_elements): Delete prototype.
1890         (get_ccs_octet_table): New inline function.
1891         (put_ccs_octet_table): Likewise.
1892         (decoding_table_put_char): Use `get_ccs_octet_table' and
1893         `put_ccs_octet_table'.
1894         (decoding_table_remove_char): Use `decoding_table_put_char'.
1895         (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
1896
1897         * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
1898         into encoding_table.
1899         (make_charset): Use Qunbound instead Qnil as initial value of
1900         decoding_table.
1901
1902 2002-02-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1903
1904         * chartab.c (map_over_uint8_byte_table): Set Qunbound if an
1905         element is Qunloaded.
1906         (map_over_uint16_byte_table): Likewise.
1907         (map_over_byte_table): Likewise.
1908         (map_char_table): Likewise for CHARTAB_RANGE_ALL in UTF-2000; when
1909         CHARTAB_RANGE_CHARSET is specified in UTF-2000 with external
1910         database support, load encoding-table of the specified
1911         coded-charset if it is not loaded yet.
1912         (save_uint8_byte_table): New function of UTF-2000 with external
1913         database support.
1914         (save_uint16_byte_table): Likewise.
1915         (save_byte_table): Likewise.
1916         (Fput_char_attribute): Don't store value into external database
1917         even if the external database feature is supported in UTF-2000;
1918         set `attribute' as name of char-table if the external database
1919         feature is supported.
1920         (Fsave_char_attribute_table): New function in UTF-2000.
1921         (syms_of_chartab): Add new builtin function
1922         `save-char-attribute-table' in UTF-2000.
1923
1924 2002-02-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1925
1926         * chartab.c (char_attribute_table_to_put): New variable in
1927         UTF-2000.
1928         (Qput_char_table_map_function): Likewise.
1929         (value_to_put): Likewise.
1930         (Fput_char_table_map_function): New function in UTF-2000.
1931         (put_char_table): Use `Fmap_char_attribute' for
1932         CHARTAB_RANGE_CHARSET in UTF-2000.
1933         (Fput_char_attribute): Store symbol instead of string in
1934         `XCHAR_TABLE_NAME (table)'.
1935         (load_char_attribute_maybe): Likewise.
1936         (syms_of_chartab): Add new symbol/function
1937         `put-char-table-map-function'.
1938
1939 2002-01-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1940
1941         * database.h: Add new EXFUN for `Fmap_database'.
1942
1943         * database.c (Fmap_database): Renamed from `Fmapdatabase'.
1944         (syms_of_database): Likewise.
1945
1946         * chartab.h (struct Lisp_Char_Table): Add new member `unloaded' in
1947         UTF-2000.
1948         (CHAR_TABLE_UNLOADED): New macro of UTF-2000.
1949         (XCHAR_TABLE_UNLOADED): Likewise.
1950
1951         * chartab.c (fill_char_table): Initialize `ct->unloaded'.
1952         (Fput_char_attribute): Set XCHAR_TABLE_UNLOADED(table) if
1953         HAVE_DATABASE is defined.
1954         (char_attribute_table_to_load): New variable of UTF-2000 with
1955         external database support.
1956         (Qload_char_attribute_table_map_function): Likewise.
1957         (Fload_char_attribute_table_map_function): New function of
1958         UTF-2000 with external database support.
1959         (Fload_char_attribute_table): New function of UTF-2000.
1960         (Fmap_char_attribute): Call Fload_char_attribute_table if
1961         CHAR_TABLE_UNLOADED(ct) is set when HAVE_DATABASE is defined.
1962         (syms_of_chartab): Add new symbol and function
1963         `load-char-attribute-table-map-function' in UTF-2000 with external
1964         database support; add new function `load-char-attribute-table' in
1965         UTF-2000.
1966
1967 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1968
1969         * chartab.h (load_char_attribute_maybe): New prototype for
1970         UTF-2000 with DATABASE support.
1971         (get_char_id_table): Use `load_char_attribute_maybe' if
1972         HAVE_DATABASE is defined.
1973
1974         * chartab.c (load_char_attribute_maybe): New function in UTF-2000
1975         with DATABASE support.
1976
1977 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1978
1979         * chartab.c (Fput_char_attribute): Use S-expression as key of
1980         external database.
1981
1982         * chartab.h (get_char_id_table): Use S-expression as key of
1983         external database.
1984
1985 2002-01-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1986
1987         * chartab.c (map_over_uint8_byte_table): Add new argument `root';
1988         if an element is not loaded, load the corresponding attributes
1989         from an external database.
1990         (map_over_uint16_byte_table): Likewise.
1991         (map_over_byte_table): Likewise.
1992         (map_char_table): Modify for `map_over_uint8_byte_table',
1993         `map_over_uint16_byte_table' and `map_over_byte_table'; if an
1994         element is not loaded, load the corresponding attributes from an
1995         external database.
1996         (Fput_char_attribute): Change initial values to Qunloaded.
1997
1998         * chartab.h (get_char_id_table): If a character attribute is not
1999         loaded and the attribute value is not found in an external
2000         database, store Qunbound as the attribute value.
2001
2002 2002-01-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2003
2004         * chartab.c (BT_UINT8_unloaded): New macro.
2005         (UINT8_VALUE_P): Accept Qunloaded.
2006         (UINT8_ENCODE): Likewise.
2007         (UINT8_DECODE): Likewise.
2008         (BT_UINT16_unloaded): New macro.
2009         (UINT16_VALUE_P): Accept Qunloaded.
2010         (UINT16_ENCODE): Likewise.
2011         (UINT16_DECODE): Likewise.
2012         (UINT8_TO_UINT16): Convert BT_UINT8_unloaded into
2013         BT_UINT16_unloaded.
2014         (mark_char_table): Mark `ct->name' in UTF-2000.
2015         (char_table_description): Add `name' in UTF-2000.
2016         (Fmake_char_table): Initialize `ct->name'.
2017         (Fcopy_char_table): Copy `ct->name'.
2018         (Fput_char_attribute): Store value into an external database if
2019         HAVE_DATABASE is defined.
2020
2021         * chartab.h (struct Lisp_Char_Table): Add new member `name' in
2022         UTF-2000.
2023         (CHAR_TABLE_NAME): New macro in UTF-2000.
2024         (XCHAR_TABLE_NAME): New macro in UTF-2000.
2025         (get_char_id_table): Try to read an external database if Qunloaded
2026         is stored in a table.
2027
2028         * symbols.c (init_symbols_once_early): Assign '#<unloaded> into
2029         Qunloaded.
2030
2031 2002-01-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2032
2033         * database.h: Add EXFUN definitions for Fopen_database,
2034         Fput_database, Fget_database and Fclose_database.
2035
2036         * data.c (Qunloaded): New variable in UTF-2000.
2037
2038         * lisp.h (Qunloaded): New variable in UTF-2000.
2039
2040 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2041
2042         * mule-charset.c (put_char_ccs_code_point): Modify for
2043         `decoding_table_remove_char' and `decoding_table_put_char'.
2044         (remove_char_ccs): Modify for `decoding_table_remove_char'.
2045
2046         * char-ucs.h (decoding_table_remove_char): Change arguments to
2047         hide decoding_table vector.
2048         (decoding_table_put_char): Likewise.
2049
2050 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2051
2052         * mule-charset.c (decoding_table_remove_char): Moved to
2053         char-ucs.h.
2054         (decoding_table_put_char): Likewise.
2055
2056         * char-ucs.h (decoding_table_check_elements): New prototype [moved
2057         from mule-charset.c].
2058         (decoding_table_remove_char): New inline function [moved from
2059         mule-charset.c].
2060         (decoding_table_put_char): Likewise.
2061
2062 2002-01-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2063
2064         * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
2065         extension.
2066
2067 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2068
2069         * mule-charset.c (decode_builtin_char): Support mother charsets.
2070
2071 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2072
2073         * mule-charset.c (Q94x94x60): New variable.
2074         (charset_code_point): Support conversion `94x94x60'.
2075         (Fmake_charset): Likewise.
2076         (syms_of_mule_charset): Add new symbol `94x94x60'.
2077
2078         * char-ucs.h (CONVERSION_94x94x60): New macro.
2079
2080 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2081
2082         * mule-charset.c (charset_code_point): Unify code about
2083         `code-offset'.
2084
2085 2001-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2086
2087         * mule-charset.c (charset_code_point): Merge code about builtin
2088         characters into code about mother charsets; don't use
2089         `range_charset_code_point'.
2090         (range_charset_code_point): Deleted.
2091
2092 2001-12-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2093
2094         * mule-charset.c (Qcode_offset): New variable.
2095         (Fmake_charset): Use `XUINT' to get value of `min-code' and
2096         `max-code'; accept new property `code-offset'.
2097         (syms_of_mule_charset): Add new symbol `code-offset'.
2098
2099 2001-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2100
2101         * mule-charset.c (range_charset_code_point): Fixed.
2102
2103 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2104
2105         * mule-charset.c (decode_builtin_char): Change semantics of
2106         code-offset of coded-charset.
2107         (charset_code_point): Likewise.
2108         (range_charset_code_point): Likewise.
2109         (complex_vars_of_mule_charset): Modify for the change.
2110
2111 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2112
2113         * mule-charset.c (Fencode_char): Reverse arguments.
2114
2115         * mule-charset.c (charset_code_point): Fixed.
2116
2117 2001-12-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2118
2119         * mule-charset.c (Vcharset_mojikyo): Deleted.
2120         (Vcharset_mojikyo_2022_1): Deleted.
2121         (Vcharset_mojikyo_pj_{1..21}): Deleted.
2122         (Qmin_code): New variable in UTF-2000.
2123         (Qmax_code): Likewise.
2124         (Qmother): Likewise.
2125         (Qconversion): Likewise.
2126         (Q94x60): Likewise.
2127         (Qmojikyo): Deleted.
2128         (Qmojikyo_2022_1): Deleted.
2129         (Qmojikyo_pj_{1..22}): Deleted.
2130         (mark_charset): Mark `cs->mother'.
2131         (charset_description): Add description for `mother'.
2132         (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
2133         new arguments `mother' and `conversion'; use
2134         `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
2135         (charset_code_point): Moved from char-ucs.h; support `mother'
2136         charset feature.
2137         (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
2138         of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
2139         (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
2140         UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
2141         allow 2 as the value of `graphic' in UTF-2000; add new properties
2142         `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
2143         require `final' in UTF-2000; modify for `make_charset'.
2144         (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
2145         instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
2146         (Fcharset_property): Support `mother', `min-code' and `max-code'.
2147         (Fencode_char): New function.
2148         (syms_of_mule_charset): Add new builtin function `encode-char' in
2149         UTF-2000; add new symbols `min-code', `max-code', `mother',
2150         `conversion' and `94x60'; delete symbols `mojikyo',
2151         `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
2152         (complex_vars_of_mule_charset): Modify for `make_charset' change;
2153         delete coded-charsets `mojikyo', `mojikyo-2022-1' and
2154         `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
2155
2156         * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
2157         `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
2158
2159         * char-ucs.h (Vcharset_mojikyo): Deleted.
2160         (Vcharset_mojikyo_2022_1): Deleted.
2161         (LEADING_BYTE_MOJIKYO): Deleted.
2162         (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
2163         (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
2164         (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
2165         (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
2166         add new member `mother'; add new member `conversion'.
2167         (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
2168         (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
2169         (CHARSET_MOTHER): New macro.
2170         (CHARSET_CONVERSION): New macro.
2171         (CONVERSION_IDENTICAL): New macro.
2172         (CONVERSION_94x60): New macro.
2173         (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
2174         (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
2175         (XCHARSET_MOTHER): New macro.
2176         (XCHARSET_CONVERSION): New macro.
2177         (MIN_CHAR_MOJIKYO): Deleted.
2178         (MAX_CHAR_MOJIKYO): Deleted.
2179         (DECODE_MOJIKYO_2022): Deleted.
2180         (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
2181         (charset_code_point): Changed to non-inline function.
2182         (encode_char_1): Use `charset_code_point'.
2183         (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
2184
2185 2001-12-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2186
2187         * lread.c (read_compiled_function): Fix prototype.
2188         (read_vector): Likewise.
2189
2190 2001-12-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2191
2192         * lrecord.h (struct lrecord_header): Delete `older'.
2193         (set_lheader_implementation): Delete code for `older'.
2194         (set_lheader_older_implementation): Deleted.
2195         (enum lrecord_type): Delete `lrecord_type_char_id_table'.
2196         (OLDER_RECORD_P): Deleted.
2197         (OLDER_RECORD_HEADER_P): Deleted.
2198         (alloc_older_lcrecord): Deleted.
2199         (alloc_older_lcrecord_type): Deleted.
2200
2201         * alloc.c (all_older_lcrecords): Deleted.
2202         (alloc_older_lcrecord): Deleted.
2203         (disksave_object_finalization_1): Delete code for older objects.
2204         (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
2205         (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
2206
2207 2001-12-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2208
2209         * mule-charset.c (decoding_table_put_char): Use `make_vector'
2210         instead of `make_older_vector'.
2211         (put_char_ccs_code_point): Likewise.
2212         (mark_charset): Mark `cs->decoding_table'.
2213         (Fset_charset_mapping_table): Don't use `make_vector_newer'.
2214
2215         * lisp.h (make_older_vector): Deleted.
2216         (make_vector_newer): Deleted.
2217
2218         * config.h.in (HAVE_GGC): Deleted.
2219
2220         * alloc.c (make_older_vector): Deleted.
2221         (make_vector_newer_1): Deleted.
2222         (make_vector_newer): Deleted.
2223
2224 2001-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2225
2226         * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
2227         (Qideograph_daikanwa_2): New variable.
2228         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
2229         (complex_vars_of_mule_charset): Add new coded-charset
2230         `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
2231         `LEADING_BYTE_DAIKANWA'.
2232
2233         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
2234         (LEADING_BYTE_DAIKANWA_1): New macro.
2235         (LEADING_BYTE_DAIKANWA_2): New macro.
2236         (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
2237
2238 2001-12-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2239
2240         * mule-charset.c (complex_vars_of_mule_charset): Change
2241         DOC-strings and registry of `ideograph-daikanwa'; now it indicates
2242         the second revised version.
2243
2244 2001-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2245
2246         * mule-charset.c (Vcharset_ucs_smp): New variable.
2247         (Vcharset_ucs_sip): New variable.
2248         (Qucs_smp): New variable.
2249         (Qucs_sip): New variable.
2250         (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
2251         MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
2252         (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
2253         (complex_vars_of_mule_charset): Modify middle-DOC and registry of
2254         `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
2255         charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
2256
2257         * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
2258         (LEADING_BYTE_UCS_SIP): New macro.
2259         (MIN_CHAR_SMP): New macro.
2260         (MAX_CHAR_SMP): New macro.
2261         (MIN_CHAR_SIP): New macro.
2262         (MAX_CHAR_SIP): New macro.
2263
2264 2001-11-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
2265
2266         * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
2267         utf-2000.
2268
2269 2001-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2270
2271         * mule-charset.c (put_char_ccs_code_point): Return canonicalized
2272         value; don't store value into `encoding_table' of `Lisp_Charset'.
2273         (mark_charset): `encoding_table' was deleted.
2274         (charset_description): Likewise.
2275         (make_charset): Likewise.
2276         (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
2277         `put_char_ccs_code_point'.
2278
2279         * chartab.h (Fput_char_attribute): New EXFUN.
2280
2281         * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
2282         is unified with normal symbol space.
2283         (Fget_char_attribute): Likewise.
2284         (Fput_char_attribute): Likewise; behavior of
2285         `put_char_ccs_code_point' is changed.
2286
2287         * char-ucs.h: Include "elhash.h".
2288         (Vchar_attribute_hash_table): New external variable.
2289         (struct Lisp_Charset): Delete `encoding_table'.
2290         (CHARSET_ENCODING_TABLE): New implementation; refer
2291         `Vchar_attribute_hash_table' instead of `encoding_table' of struct
2292         `Lisp_Charset'.
2293
2294 2001-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2295
2296         * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
2297         (cs) == 0.
2298
2299 2001-11-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2300
2301         * text-coding.c (char_encode_big5): Prefer charset-g1 than
2302         `chinese-big5'.
2303
2304 2001-11-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2305
2306         * chartab.c (uint8_byte_table_description): New constant.
2307         (uint8-byte-table): Use `uint8_byte_table_description'.
2308         (uint16_byte_table_description): New constant.
2309         (uint16-byte-table): Use `uint16_byte_table_description'.
2310
2311 2001-10-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2312
2313         * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
2314         range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
2315
2316 2001-10-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2317
2318         * mule-charset.c (Vcharset_ucs_ks): New variable.
2319         (Qucs_ks): New variable.
2320         (syms_of_mule_charset): Add new symbol `ucs-ks'.
2321         (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
2322
2323         * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
2324
2325 2001-10-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2326
2327         * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
2328         (Fdecode_char): Likewise.
2329
2330         * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
2331         chartab.h.
2332         (Fdefine_char): Modify for Fdecode_char.
2333         (Ffind_char): Likewise.
2334
2335         * mule-charset.c (Fdecode_char): Add new optional argument
2336         `defined-only'.
2337         (Fdecode_builtin_char): Modify for `Fdecode_char'.
2338
2339 2001-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2340
2341         * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
2342         -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
2343         (allocate_coding_system): Initialize initial-charsets of
2344         CODESYS_BIG5 in XEmacs UTF-2000.
2345         (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
2346         CODESYS_BIG5 in XEmacs UTF-2000.
2347         (decode_coding_big5): Use initial-charset-g0 and -g1 of
2348         CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
2349
2350         * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
2351         variables.
2352         (Qideograph_hanziku_{1 .. 12}): Likewise.
2353         (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
2354         .. 12}'.
2355         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
2356         `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
2357         `ideograph-hanziku-{1 .. 12}'.
2358
2359         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
2360         (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
2361         ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
2362         ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
2363         (DECODE_DEFINED_CHAR): New inline function.
2364         (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
2365
2366 2001-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2367
2368         * mule-charset.c (Vcharset_china3_jef): Renamed from
2369         `Vcharset_japanese_jef_china3'.
2370         (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
2371         (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
2372         `{MIN|MAX}_CHAR_JEF_CHINA3'..
2373         (syms_of_mule_charset): Rename `china3-jef' from
2374         `japanese-jef-china3'.
2375         (complex_vars_of_mule_charset): Likewise; rename
2376         `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
2377
2378         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
2379         `LEADING_BYTE_JEF_CHINA3'.
2380         (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
2381         (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
2382
2383 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2384
2385         * mule-charset.c (encode_builtin_char_1): Comment out special code
2386         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
2387
2388         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
2389         (MAX_CHAR_MOJIKYO_0): Comment out.
2390         (MIN_CHAR_CBETA): Changed to 0x00E20000.
2391         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
2392         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
2393         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
2394
2395 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2396
2397         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
2398         (Qideograph_cbeta): New variable.
2399         (encode_builtin_char_1): Comment out special code for
2400         coded-charset `mojikyo' and `japanese-jef-china3'.
2401         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
2402         (complex_vars_of_mule_charset): Add new coded-charset
2403         `ideograph-cbeta'.
2404
2405         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
2406         (MIN_CHAR_CBETA): New macro.
2407         (MAX_CHAR_CBETA): New macro.
2408
2409 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2410
2411         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
2412         (LEADING_BYTE_JEF_CHINA3): New macro.
2413         (MIN_CHAR_JEF_CHINA3): New macro.
2414         (MAX_CHAR_JEF_CHINA3): Likewise.
2415         (DECODE_CHAR): Fixed.
2416
2417 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2418
2419         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
2420         (Qjapanese_jef_china3): New variable.
2421         (encode_builtin_char_1): Support `japanese-jef-china3'.
2422         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
2423         (complex_vars_of_mule_charset): Add new coded-charset
2424         `japanese-jef-china3'.
2425
2426 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2427
2428         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
2429         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
2430         94^4, 96^3, 96^4, 128^n and 256^n set.
2431         (put_char_table): Use `XCHARSET_CELL_RANGE'.
2432         (map_char_table): Likewise.
2433
2434 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2435
2436         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
2437         UTF-2000.
2438
2439 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2440
2441         * chartab.h (get_char_id_table): New inline function.
2442
2443         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
2444         function.
2445
2446 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2447
2448         * chartab.h (decode_char_table_range): New prototype in XEmacs
2449         UTF-2000.
2450         (put_char_id_table): New inline function in XEmacs UTF-2000.
2451
2452         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
2453         function.
2454         (decode_char_table_range): Delete static declaration in XEmacs
2455         UTF-2000.
2456
2457 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2458
2459         * chartab.c (put_char_id_table): Use `put_char_table'.
2460
2461 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2462
2463         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
2464         (map_over_uint16_byte_table): Likewise.
2465         (map_over_byte_table): Likewise.
2466         (map_char_table): Modify for `map_over_uint8_byte_table',
2467         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
2468         UTF-2000.
2469
2470 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2471
2472         * chartab.c (struct map_char_table_for_charset_arg): New
2473         structure.
2474         (map_char_table_for_charset_fun): New function.
2475         (map_char_table): Use `map_char_table' for encoding_table of
2476         `range->charset'.
2477
2478 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2479
2480         * chartab.c (map_char_table): Check a character is found in
2481         range->charset instead of non default value is defined in
2482         char-table when range is CHARTAB_RANGE_ROW.
2483
2484 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2485
2486         * chartab.c (map_char_id_table): Deleted.
2487         (Fmap_char_attribute): Use `map_char_table' instead of
2488         `map_char_id_table'.
2489
2490 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2491
2492         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
2493         UTF-2000.
2494         (update_syntax_table): Deleted in XEmacs UTF-2000.
2495
2496         * syntax.c (find_defun_start): Use `syntax_table' instead of
2497         `mirror_syntax_table' in XEmacs UTF-2000.
2498         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
2499         UTF-2000.
2500         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
2501         XEmacs UTF-2000.
2502         (Fmatching_paren): Likewise.
2503         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
2504         in XEmacs UTF-2000.
2505         (find_start_of_comment): Likewise.
2506         (find_end_of_comment): Likewise.
2507         (Fforward_comment): Likewise.
2508         (scan_lists): Likewise.
2509         (char_quoted): Likewise.
2510         (Fbackward_prefix_chars): Likewise.
2511         (scan_sexps_forward): Likewise.
2512         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
2513         (update_syntax_table): Likewise.
2514
2515         * search.c (skip_chars): Use `syntax_table' instead of
2516         `mirror_syntax_table' in XEmacs UTF-2000.
2517         (wordify): Likewise.
2518         (Freplace_match): Likewise.
2519
2520         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
2521         `mirror_syntax_table' in XEmacs UTF-2000.
2522         (WORDCHAR_P_UNSAFE): Likewise.
2523         (re_match_2_internal): Likewise.
2524
2525         * font-lock.c (find_context): Use `buf->syntax_table' instead of
2526         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2527
2528         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
2529         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
2530
2531         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
2532         XEmacs UTF-2000.
2533
2534         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
2535         UTF-2000.
2536         (print_char_table): Print `default_value' in XEmacs UTF-2000.
2537         (char_table_description): Delete `mirror_table' in XEmacs
2538         UTF-2000.
2539         (fill_char_table): Don't call `update_syntax_table' in XEmacs
2540         UTF-2000.
2541         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
2542         (Fcopy_char_table): Likewise.
2543         (put_char_table): Don't call `update_syntax_table' in XEmacs
2544         UTF-2000.
2545
2546         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
2547         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2548         (casify_region_internal): Likewise.
2549
2550         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
2551
2552         * buffer.c (common_init_complex_vars_of_buffer): Don't use
2553         `mirror_syntax_table' in XEmacs UTF-2000.
2554
2555         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
2556         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2557         (Fexpand_abbrev): Likewise.
2558
2559 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2560
2561         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
2562
2563 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2564
2565         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
2566         (map_over_uint16_byte_table): Likewise.
2567         (map_over_byte_table): Likewise.
2568         (get_char_id_table): Refer `cit->default_value'.
2569         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
2570         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
2571         of character-id ranges.
2572         (mark_char_table): Mark `ct->default_value'.
2573         (char_table_description): Add `default_value'.
2574         (fill_char_table): Use `default_value'.
2575         (decode_char_table_range): Decode `nil' as
2576         `CHARTAB_RANGE_DEFAULT'.
2577         (get_char_id_table): Refer `cit->default_value'.
2578         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
2579         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
2580         temporary hack; check value of char-table is bound or not.
2581         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
2582
2583         * chartab.h (struct Lisp_Char_Table): Add new member
2584         `default_value' in XEmacs UTF-2000.
2585         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
2586         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
2587         UTF-2000.
2588
2589 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2590
2591         * chartab.h (Lisp_Char_ID_Table): Deleted.
2592
2593         * chartab.c (char_table_description): Fix typo.
2594         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
2595         `Lisp_Char_ID_Table'.
2596
2597 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2598
2599         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
2600         `CHAR_ID_TABLE_P'.
2601
2602         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
2603         `CHAR_ID_TABLE_P'.
2604
2605         * chartab.h (XCHAR_ID_TABLE): Deleted.
2606         (XSETCHAR_ID_TABLE): Deleted.
2607         (CHAR_ID_TABLE_P): Deleted.
2608
2609         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
2610         `CHAR_ID_TABLE_P'.
2611         (Fget_composite_char): Likewise.
2612         (put_char_table): Likewise.
2613         (add_char_attribute_alist_mapper): Fixed.
2614         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
2615         `CHAR_ID_TABLE_P'.
2616         (Fget_char_attribute): Likewise.
2617         (Fget_char_attribute): Likewise.
2618         (Fmap_char_attribute): Likewise.
2619
2620         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
2621         `CHAR_ID_TABLE_P'.
2622         (encode_char_1): Likewise.
2623
2624 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2625
2626         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
2627         `XCHAR_ID_TABLE'.
2628
2629         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
2630         instead of `XCHAR_ID_TABLE'.
2631         (remove_char_ccs): Likewise.
2632
2633         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
2634         `XCHAR_ID_TABLE'.
2635         (Fget_composite_char): Likewise.
2636         (Fchar_variants): Likewise.
2637         (put_char_table): Likewise.
2638         (add_char_attribute_alist_mapper): Likewise.
2639         (Fchar_attribute_alist): Likewise.
2640         (Fget_char_attribute): Likewise.
2641         (Fput_char_attribute): Likewise.
2642         (Fmap_char_attribute): Likewise.
2643         (Fmap_char_attribute): Likewise.
2644
2645         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
2646         `XCHAR_ID_TABLE'.
2647         (encode_char_1): Likewise.
2648
2649 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2650
2651         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
2652         `Lisp_Char_ID_Table'.
2653         (mark_char_id_table): Deleted.
2654         (print_char_id_table): Likewise.
2655         (char_id_table_equal): Likewise.
2656         (char_id_table_hash): Likewise.
2657         (char_id_table_description): Likewise.
2658         (char_id_table): Likewise.
2659         (make_char_id_table): Use `Fmake_char_table' and
2660         `fill_char_table'.
2661         (get_char_id_table): Use `Lisp_Char_Table' instead of
2662         `Lisp_Char_ID_Table'.
2663         (put_char_id_table): Likewise.
2664         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
2665         `XCHAR_ID_TABLE'.
2666         (Fremove_char_attribute): Likewise.
2667         (syms_of_chartab): Don't define type `char-id-table'.
2668
2669         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
2670         (char_id_table): Likewise.
2671         (GC_CHAR_ID_TABLE_P): Likewise.
2672         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
2673         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
2674         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
2675         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
2676         (get_char_id_table): Use `Lisp_Char_Table' instead of
2677         `Lisp_Char_ID_Table'.
2678         (put_char_id_table_0): Likewise.
2679         (put_char_id_table): Likewise.
2680
2681 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2682
2683         * chartab.h: Lisp_Byte_Table related codes are moved from
2684         chartab.h.
2685
2686         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
2687
2688 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2689
2690         * chartab.h: Don't include "chartab.h".
2691         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
2692         (Lisp_Char_ID_Table): Likewise.
2693         (char_id_table): Likewise.
2694         (XCHAR_ID_TABLE): Likewise.
2695         (XSETCHAR_ID_TABLE): Likewise.
2696         (CHAR_ID_TABLE_P): Likewise.
2697         (GC_CHAR_ID_TABLE_P): Likewise.
2698         (get_char_id_table): Likewise.
2699
2700         * char-ucs.h: Include "chartab.h".
2701         (struct Lisp_Char_ID_Table): Moved to chartab.h.
2702         (Lisp_Char_ID_Table): Likewise.
2703         (char_id_table): Likewise.
2704         (XCHAR_ID_TABLE): Likewise.
2705         (XSETCHAR_ID_TABLE): Likewise.
2706         (CHAR_ID_TABLE_P): Likewise.
2707         (GC_CHAR_ID_TABLE_P): Likewise.
2708         (get_char_id_table): Likewise.
2709
2710 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2711
2712         * chartab.c (copy_uint8_byte_table): New function.
2713         (copy_uint16_byte_table): New function.
2714         (copy_byte_table): New function.
2715         (map_over_uint8_byte_table): Modify to avoid huge numbers of
2716         characters to call.
2717         (map_over_uint16_byte_table): Likewise.
2718         (map_over_byte_table): Likewise.
2719         (get_byte_table): Move prototype to chartab.h.
2720         (put_byte_table): Likewise.
2721         (put_char_id_table_0): Moved to chartab.h.
2722         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
2723         (char_table_entry_equal): Likewise.
2724         (char_table_entry_hash): Likewise.
2725         (char_table_entry_description): Likewise.
2726         (char_table_entry): Likewise.
2727         (make_char_table_entry): Likewise.
2728         (copy_char_table_entry): Likewise.
2729         (get_non_ascii_char_table_value): Likewise.
2730         (map_over_charset_ascii): Likewise.
2731         (map_over_charset_control_1): Likewise.
2732         (map_over_charset_row): Likewise.
2733         (map_over_other_charset): Likewise.
2734         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
2735         (print_char_table): Likewise.
2736         (char_table_equal): Likewise.
2737         (char_table_hash): Likewise.
2738         (char_table_description): Likewise.
2739         (fill_char_table): Likewise.
2740         (Fcopy_char_table): Likewise.
2741         (get_char_table): Likewise.
2742         (Fget_range_char_table): Likewise.
2743         (put_char_table): Likewise.
2744         (map_char_table): Likewise.
2745         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
2746         UTF-2000.
2747
2748 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2749
2750         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
2751         `Vauto_fill_chars' in XEmacs UTF-2000.
2752
2753         * chartab.h (get_byte_table): New prototype [moved from
2754         chartab.c].
2755         (put_byte_table): Likewise [moved from chartab.c].
2756         (put_char_id_table_0): New inline function [moved from chartab.c].
2757         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
2758         (Lisp_Char_Table_Entry): Likewise.
2759         (char_table_entry): Likewise.
2760         (XCHAR_TABLE_ENTRY): Likewise.
2761         (XSETCHAR_TABLE_ENTRY): Likewise.
2762         (CHAR_TABLE_ENTRYP): Likewise.
2763         (CHECK_CHAR_TABLE_ENTRY): Likewise.
2764         (NUM_ASCII_CHARS): Likewise.
2765         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
2766         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
2767
2768 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2769
2770         * chartab.c (get_char_id_table): Change interface.
2771         (put_char_id_table_0): New function.
2772         (put_char_id_table): Change interface; new implementation.
2773         (Fget_composite_char): Modify for interface change of
2774         `get_char_id_table'.
2775         (Fchar_variants): Likewise.
2776         (add_char_attribute_alist_mapper): Likewise.
2777         (Fchar_attribute_alist): Likewise.
2778         (Fget_char_attribute): Likewise.
2779         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
2780         as same as character as the first argument like `put-char-table';
2781         modify for interface change of `put_char_id_table'.
2782         (Fremove_char_attribute): Modify for interface change of
2783         `put_char_id_table'.
2784
2785 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2786
2787         * text-coding.c: Sync up with XEmacs 21.2.41.
2788         (COMPOSE_ADD_CHAR): Modify for interface change of
2789         `get_char_id_table'.
2790
2791         * mule-charset.c (put_char_ccs_code_point): Modify for interface
2792         change of `put_char_id_table'.
2793         (remove_char_ccs): Likewise.
2794
2795         * chartab.h (put_char_id_table): Change interface.
2796
2797         * char-ucs.h (get_char_id_table): Change interface.
2798         (charset_code_point): Modify for interface change of
2799         `get_char_id_table'.
2800         (encode_char_1): Likewise.
2801
2802 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2803
2804         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
2805         argument `ccs'.
2806         (map_over_uint16_byte_table): Likewise.
2807         (map_over_byte_table): Likewise.
2808         (map_char_id_table): Add new argument `range' like
2809         `map_char_table'.
2810         (Fmap_char_attribute): Add new argument `range' like
2811         `Fmap_char_table'.
2812
2813 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2814
2815         * chartab.c (map_over_uint8_byte_table): Change interface of
2816         mapping function to use struct chartab_range instead of Emchar.
2817         (map_over_uint16_byte_table): Likewise.
2818         (map_over_byte_table): Likewise.
2819         (map_char_id_table): Likewise.
2820         (struct slow_map_char_id_table_arg): Deleted.
2821         (slow_map_char_id_table_fun): Deleted.
2822         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
2823         function `slow_map_char_table_fun' instead of struct
2824         `slow_map_char_id_table_arg' and function
2825         `slow_map_char_id_table_fun'.
2826
2827 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2828
2829         * mule-charset.c: Move char-it-table related codes to chartab.c.
2830         (Vutf_2000_version): Moved to chartab.c.
2831         (Fdefine_char): Likewise.
2832         (Ffind_char): Likewise.
2833         (syms_of_mule_charset): Move types `uint8-byte-table',
2834         `uint16-byte-table', `byte-table' and `char-id-table' to
2835         chartab.c; move functions `char_attribute_list,
2836         `find_char_attribute_table, `char_attribute_alist,
2837         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
2838         `map_char_attribute, `define_char, `find_char, `char_variants and
2839         `get_composite_char to chartab.c; move symbols `=>ucs',
2840         `->decomposition', `compat', `isolated', `initial', `medial',
2841         `final', `vertical', `noBreak', `fraction', `super', `sub',
2842         `circle', `square', `wide', `narrow', `small' and `font' to
2843         chartab.c.
2844         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
2845         setting codes for `Vcharacter_composition_table' and
2846         `Vcharacter_variant_table' to chartab.c.
2847         (complex_vars_of_mule_charset): Move setting code for
2848         `Vchar_attribute_hash_table' to chartab.c.
2849
2850         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
2851         (make_char_id_table): New prototype.
2852         (put_char_id_table): Likewise.
2853         (Fget_char_attribute): Likewise.
2854
2855         * chartab.c: Move char-id-table related code from mule-charset.c.
2856         (Vutf_2000_version): Moved from mule-charset.c.
2857
2858         * char-ucs.h (Qucs): New external variable.
2859         (put_char_ccs_code_point): New prototype.
2860         (remove_char_ccs): Likewise.
2861
2862 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2863
2864         * mule-charset.c (Vcharset_ucs_jis): New variable.
2865         (Qucs_jis): Likewise.
2866         (syms_of_mule_charset): Add new symbol `ucs-jis'.
2867         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
2868
2869         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
2870
2871 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2872
2873         * mule-charset.c (map_over_uint8_byte_table): New function.
2874         (map_over_uint16_byte_table): Likewise.
2875         (map_over_byte_table): Likewise.
2876         (map_char_id_table): Likewise.
2877         (slow_map_char_id_table_fun): Likewise.
2878         (Fmap_char_attribute): Likewise.
2879         (syms_of_mule_charset): Add new function `map-char-attribute'.
2880
2881 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2882
2883         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
2884         (syms_of_mule_charset): Add new function `find-char'.
2885
2886 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2887
2888         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
2889         XEmacs UTF-2000.
2890         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
2891         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
2892         XEmacs UTF-2000.
2893         (complex_vars_of_mule_charset): Add new coded-charset
2894         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
2895         `ideograph-gt-pj-*'.
2896
2897         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
2898
2899 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2900
2901         * mule-charset.c (encode_builtin_char_1): Purge codes about
2902         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
2903         {MIN|MAX}_CHAR_HEBREW.
2904         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
2905         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
2906
2907         * char-ucs.h (MIN_CHAR_GREEK): Purged.
2908         (MAX_CHAR_GREEK): Purged.
2909         (MIN_CHAR_CYRILLIC): Purged.
2910         (MAX_CHAR_CYRILLIC): Purged.
2911         (MIN_CHAR_HEBREW): Commented out.
2912         (MAX_CHAR_HEBREW): Likewise.
2913
2914 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2915
2916         * mule-charset.c (Qto_ucs): New variable.
2917         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
2918         (Fdefine_char): Likewise.
2919         (syms_of_mule_charset): Add new symbol `=>ucs'.
2920
2921 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2922
2923         * mule-charset.c (Fdecode_char): Fixed.
2924
2925 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2926
2927         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
2928         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
2929         "tcvn5712-1".
2930
2931 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2932
2933         * mule-charset.c (Vcharset_ucs_big5): New variable.
2934         (Qucs_big5): Likewise.
2935         (syms_of_mule_charset): Add new symbol `ucs-big5'.
2936         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
2937
2938         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
2939
2940 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2941
2942         * mule-charset.c (decode_builtin_char): Check Big5 code range
2943         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
2944
2945 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2946
2947         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
2948         (Qchinese_gb12345): Likewise.
2949         (Fdecode_builtin_char): Fixed.
2950         (syms_of_mule_charset): Add `chinese-gb12345'.
2951         (complex_vars_of_mule_charset): Add coded-charset
2952         `chinese-gb12345'.
2953
2954         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
2955         (LEADING_BYTE_CHINESE_GB12345): New macro.
2956
2957 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2958
2959         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
2960         and `latin-viscii-upper' for `latin-viscii'.
2961
2962 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2963
2964         * mule-charset.c (Fdecode_builtin_char): Comment out
2965         regularization code for ISO-IR GR representation.
2966
2967 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2968
2969         * mule-charset.c (decode_builtin_char): New function; renamed from
2970         `make_builtin_char'; return -1 instead of signal.
2971         (Fdecode_builtin_char): Use `decode_builtin_char'.
2972
2973         * char-ucs.h (decode_builtin_char): New prototype; renamed from
2974         `make_builtin_char'.
2975         (DECODE_CHAR): Use `decode_builtin_char' instead of
2976         `make_builtin_char'; use mapping table of `chinese-big5' for
2977         `chinese-big5-{1,2}'.
2978
2979 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2980
2981         * text-coding.c (char_encode_big5): New function.
2982         (char_finish_big5): Likewise.
2983         (reset_encoding_stream): Use `char_encode_big5' and
2984         `char_finish_big5' for CODESYS_BIG5.
2985         (mule_encode): Don't use `encode_coding_big5'.
2986         (encode_coding_big5): Deleted.
2987
2988 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2989
2990         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
2991         0x81- in XEmacs UTF-2000.
2992         (detect_coding_big5): Likewise.
2993
2994 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2995
2996         * mule-charset.c (Fdefine_char): Don't use a CCS property to
2997         generate character-id if the CCS property does not have
2998         corresponding predefined character.
2999         (make_builtin_char): Return -1 if corresponding predefined
3000         character is not found.
3001         (Fdecode_char): Return nil if corresponding character is not
3002         found.
3003         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
3004         don't map to builtin ucs space.
3005
3006 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3007
3008         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
3009         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
3010
3011 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3012
3013         * mule-charset.c (Vcharset_ideograph_gt): New variable.
3014         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
3015         (Qideograph_gt): Likewise.
3016         (Qideograph_gt_pj_{1..11}): Likewise.
3017         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
3018         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
3019         `ideograph-gt-pj-11'.
3020         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
3021         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
3022         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
3023
3024         * char-ucs.h (LEADING_BYTE_GT): New macro.
3025         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
3026         (MIN_CHAR_GT): Likewise.
3027         (MAX_CHAR_GT): Likewise.
3028
3029 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3030
3031         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
3032         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
3033
3034         * doprnt.c (unsigned_int_converters): Add `c'.
3035         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
3036
3037         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
3038         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
3039         `MIN_CHAR_MOJIKYO'.
3040         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
3041         (MAX_CHAR_MOJIKYO_0): New macro.
3042         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
3043
3044 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3045
3046         * mule-charset.c (Fdefine_char): Delete cemented out code.
3047         (encode_builtin_char_1): Modify for new allocation of builtin
3048         Mojikyo characters.
3049
3050         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
3051
3052 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3053
3054         * mule-charset.c (Vcharset_ucs_cns): New variable.
3055         (Qucs_cns): New variable.
3056         (syms_of_mule_charset): Add new symbol `ucs-cns'.
3057         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
3058
3059 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3060
3061         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
3062
3063 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
3064
3065         * search.c (search_buffer): Make `charset_base_code' as
3066         character-id >> 6 to eliminate the corresponding last byte in
3067         UTF-8 representation [I'm not sure it is right thing].
3068         (boyer_moore): Likewise.
3069
3070 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
3071
3072         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
3073         representation in MULE.
3074
3075 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3076
3077         * text-coding.c (Fmake_coding_system): Use
3078         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
3079         `EXTERNAL_PROPERTY_LIST_LOOP'.
3080
3081 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3082
3083         * text-coding.c (decode_output_utf8_partial_char): New function.
3084         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
3085
3086 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3087
3088         * text-coding.c (decode_coding_utf8): Output original byte
3089         sequence if it is broken; change order of conditions.
3090
3091         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
3092         of conditions.
3093
3094         * mb-multibyte.h (BYTE_ASCII_P):
3095         Use bit ops for char-signedness safety.
3096         (BYTE_C0_P): Use bit ops for char-signedness safety.
3097         (BYTE_C1_P): Use bit ops for char-signedness safety.
3098
3099         * character.h: (XCHAR_OR_CHAR_INT):
3100         Always use inline function.
3101         Remove redundant type checking assert() - XINT will abort quite
3102         nicely.
3103
3104 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3105
3106         * text-coding.c: (Fencode_shift_jis_char):
3107         (Fencode_big5_char):
3108         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
3109         Replace 0 with '\0' when working with bytes.
3110         Replace initial "(" with "\(" in docstrings.
3111
3112         (Fmake_coding_system):
3113         When type is ccl and value is vector, register it with a proper
3114         symbol.  And checks whether the given ccl program is valid.
3115         (mule_decode): When calling ccl_driver, if src indicates
3116         NULL pointer, set an empty string instead.
3117         (mule_encode): Likewise.
3118
3119         (detect_eol_type):
3120         (detect_coding_sjis):
3121         (decode_coding_sjis):
3122         (detect_coding_big5):
3123         (decode_coding_big5):
3124         (detect_coding_ucs4):
3125         (decode_coding_ucs4):
3126         (detect_coding_utf8):
3127         (decode_coding_utf8):
3128         (detect_coding_iso2022):
3129         (decode_coding_iso2022):
3130         (decode_coding_no_conversion):
3131         (mule_decode):
3132         Make all detecting and decoding functions take an Extbyte * arg.
3133         (text_encode_generic):
3134         (encode_coding_big5):
3135         (encode_coding_no_conversion):
3136         (mule_encode):
3137         Make all encoding functions take a Bufbyte * arg.
3138         Use size_t instead of unsigned int for memory sizes.
3139         Only cast to unsigned char whenever dereferencing Extbyte *.
3140
3141         (struct lrecord_description fcd_description_1): Use countof.
3142         (complex_vars_of_file_coding):
3143         Use countof instead of sizeof.
3144         Use CHECK_NATNUM instead of CHECK_INT.
3145
3146 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3147
3148         * mule-charset.c (Fget_char_attribute): Add new optional argument
3149         `default-value'.
3150         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
3151         (remove_char_ccs): Likewise.
3152
3153 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3154
3155         * text-coding.c (char_encode_shift_jis): New implementation in
3156         UTF-2000.
3157         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
3158         ...)'.
3159
3160         * mule-charset.c (Vcharset_chinese_big5): New variable in
3161         UTF-2000.
3162         (Qchinese_big5): New variable in UTF-2000.
3163         (BIG5_SAME_ROW): New macro in UTF-2000.
3164         (make_builtin_char): Use builtin characters of
3165         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
3166         characters of `Vcharset_chinese_big5'.
3167         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
3168         (complex_vars_of_mule_charset): Add new coded-charset
3169         `chinese-big5' in UTF-2000.
3170
3171         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
3172         (Vcharset_chinese_big5): New external variable declaration.
3173         (Vcharset_japanese_jisx0208_1990): Likewise.
3174
3175 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3176
3177         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
3178         function.
3179         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
3180
3181 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3182
3183         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
3184         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
3185         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
3186         `mojikyo-pj-*'.
3187
3188 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3189
3190         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
3191
3192 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3193
3194         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3195         to 0.17.
3196
3197 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3198
3199         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
3200         for `CHARSET_BY_ATTRIBUTES'.
3201         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
3202         `CHARSET_BY_ATTRIBUTES'.
3203
3204         * text-coding.c (struct decoding_stream): Rename member `CH' to
3205         `CPOS'.
3206         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
3207         (decode_coding_sjis): Likewise.
3208         (decode_coding_big5): Likewise.
3209         (decode_coding_ucs4): Likewise.
3210         (decode_coding_utf8): Likewise.
3211         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
3212         `CHARSET_BY_ATTRIBUTES'.
3213         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
3214         `str->counter'; decode 3, 4 bytes sets.
3215         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
3216         sets.
3217         (decode_coding_no_conversion): Use `str->cpos' instead of
3218         `str->ch'.
3219
3220         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
3221         (Qmojikyo_2022_1): New variable.
3222         (make_charset): Don't use `CHARSET_TYPE_*'.
3223         (range_charset_code_point): Support coded-charset
3224         `mojikyo-2022-1'.
3225         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
3226         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
3227         `CHARSET_BY_ATTRIBUTES'.
3228         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
3229         `CHARSET_BY_ATTRIBUTES'.
3230         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
3231         (complex_vars_of_mule_charset): Add new coded-charset
3232         `mojikyo-2022-1'.
3233
3234         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
3235         interface; changed to inline function.
3236
3237         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
3238         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
3239         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
3240         (CHARSET_TYPE_94): Deleted.
3241         (CHARSET_TYPE_94X94): Deleted.
3242         (CHARSET_TYPE_96): Deleted.
3243         (CHARSET_TYPE_96X96): Deleted.
3244         (CHARSET_TYPE_128): Deleted.
3245         (CHARSET_TYPE_128X128): Deleted.
3246         (CHARSET_TYPE_256): Deleted.
3247         (CHARSET_TYPE_256X256): Deleted.
3248         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
3249         to inline function.
3250         (DECODE_MOJIKYO_2022): New inline function.
3251         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
3252         `Vcharset_mojikyo_2022_1'.
3253
3254 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3255
3256         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
3257         instead of `EQ'.
3258         (put_byte_table): Likewise.
3259         (char_id_table_equal): Use `get_byte_table' [new implementation].
3260
3261 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3262
3263         * mule-charset.c: Include <limits.h> in UTF-2000.
3264         (BT_UINT8_MIN): New macro in UTF-2000.
3265         (BT_UINT8_MAX): New macro in UTF-2000.
3266         (BT_UINT8_t): New macro in UTF-2000.
3267         (BT_UINT8_nil): New macro in UTF-2000.
3268         (BT_UINT8_unbound): New macro in UTF-2000.
3269         (INT_UINT8_P): New inline function in UTF-2000.
3270         (UINT8_VALUE_P): New inline function in UTF-2000.
3271         (UINT8_ENCODE): New inline function in UTF-2000.
3272         (UINT8_DECODE): New inline function in UTF-2000.
3273         (mark_uint8_byte_table): New function in UTF-2000.
3274         (print_uint8_byte_table): New function in UTF-2000.
3275         (uint8_byte_table_equal): New function in UTF-2000.
3276         (uint8_byte_table_hash): New function in UTF-2000.
3277         (make_uint8_byte_table): New function in UTF-2000.
3278         (uint8_byte_table_same_value_p): New function in UTF-2000.
3279         (BT_UINT16_MIN): New macro in UTF-2000.
3280         (BT_UINT16_MAX): New macro in UTF-2000.
3281         (BT_UINT16_t): New macro in UTF-2000.
3282         (BT_UINT16_nil): New macro in UTF-2000.
3283         (BT_UINT16_unbound): New macro in UTF-2000.
3284         (INT_UINT16_P): New inline function in UTF-2000.
3285         (UINT16_VALUE_P): New inline function in UTF-2000.
3286         (UINT16_ENCODE): New inline function in UTF-2000.
3287         (UINT16_DECODE): New inline function in UTF-2000.
3288         (UINT8_TO_UINT16): New inline function in UTF-2000.
3289         (mark_uint16_byte_table): New function in UTF-2000.
3290         (print_uint16_byte_table): New function in UTF-2000.
3291         (uint16_byte_table_equal): New function in UTF-2000.
3292         (uint16_byte_table_hash): New function in UTF-2000.
3293         (make_uint16_byte_table): New function in UTF-2000.
3294         (uint16_byte_table_same_value_p): New function in UTF-2000.
3295         (print_byte_table): New function in UTF-2000.
3296         (byte-table): Use `print_byte_table' as printer.
3297         (make_byte_table): Delete second argument `older'.
3298         (byte_table_same_value_p): New function in UTF-2000.
3299         (copy_byte_table): Deleted.
3300         (get_byte_table): New function in UTF-2000.
3301         (put_byte_table): New function in UTF-2000.
3302         (print_char_id_table): New function in UTF-2000.
3303         (char-id-table): Use `print_char_id_table' as printer.
3304         (make_char_id_table): Delete second argument `older'.
3305         (get_char_id_table): Use `get_byte_table [new implementation].
3306         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
3307         implementation].
3308         (Ffind_char_attribute_table): New function in UTF-2000.
3309         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
3310         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
3311         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
3312         (syms_of_mule_charset): Add new function
3313         `find-char-attribute-table' in UTF-2000.
3314
3315         * lrecord.h (enum lrecord_type): Add
3316         `lrecord_type_uint16_byte_table' and
3317         `lrecord_type_uint8_byte_table'.
3318
3319         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
3320         (Lisp_Uint8_Byte_Table): New type.
3321         (XUINT8_BYTE_TABLE): New macro.
3322         (XSETUINT8_BYTE_TABLE): New macro.
3323         (UINT8_BYTE_TABLE_P): New macro.
3324         (GC_UINT8_BYTE_TABLE_P): New macro.
3325         (struct Lisp_Uint16_Byte_Table): New structure.
3326         (Lisp_Uint16_Byte_Table): New type.
3327         (XUINT16_BYTE_TABLE): New macro.
3328         (XSETUINT16_BYTE_TABLE): New macro.
3329         (UINT16_BYTE_TABLE_P): New macro.
3330         (GC_UINT16_BYTE_TABLE_P): New macro.
3331
3332 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3333
3334         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
3335         (Vcharacter_ideographic_strokes_table): Deleted.
3336         (Vcharacter_total_strokes_table): Deleted.
3337         (Vcharacter_morohashi_daikanwa_table): Deleted.
3338         (Vcharacter_decomposition_table): Deleted.
3339         (Qname): Deleted because it is duplicated.
3340         (Qideographic_radical): Deleted.
3341         (Qideographic_strokes): Deleted.
3342         (Qtotal_strokes): Deleted.
3343         (Qmorohashi_daikanwa): Deleted.
3344         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
3345         `ideographic-radical', `ideographic-strokes', `total-strokes',
3346         `morohashi-daikanwa' and `->decomposition'.
3347         (Fget_char_attribute): Likewise.
3348         (Fput_char_attribute): Likewise; use `make-vector' instead of
3349         `make_older_vector' for `->decomposition' value.
3350         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
3351         `ideograph-daikanwa'.
3352         (syms_of_mule_charset): Delete builtin symbols `name',
3353         `ideographic-radical', `ideographic-strokes', `total-strokes' and
3354         `morohashi-daikanwa'.
3355         (vars_of_mule_charset): Don't setup
3356         `Vcharacter_ideographic_radical_table',
3357         `Vcharacter_ideographic_strokes_table',
3358         `Vcharacter_total_strokes_table',
3359         `Vcharacter_morohashi_daikanwa_table' and
3360         `Vcharacter_decomposition_table'.
3361
3362 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3363
3364         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
3365         `make_older_vector', `make_vector_newer_1' and
3366         `make_vector_newer'.
3367
3368         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
3369         `make_older_vector' and `make_vector_newer'.
3370
3371         * config.h.in (HAVE_GGC): New macro.
3372
3373 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3374
3375         * mule-charset.c (struct char_attribute_list_closure): New
3376         structure in UTF-2000.
3377         (add_char_attribute_to_list_mapper): New function in UTF-2000.
3378         (Fchar_attribute_list): Likewise.
3379         (Fset_charset_mapping_table): Use `make_vector_newer'.
3380         (Fdecode_builtin_char): New function in UTF-2000.
3381         (syms_of_mule_charset): Add new function `char-attribute-list' and
3382         `decode-builtin-char' in UTF-2000.
3383
3384         * lisp.h (make_vector_newer): New prototype.
3385
3386         * alloc.c (make_vector_newer_1): New function.
3387         (make_vector_newer): New function.
3388
3389 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3390
3391         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
3392         50100)'.
3393
3394 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3395
3396         * mule-charset.c (Vchar_attribute_hash_table): New variable.
3397         (Vcharacter_attribute_table): Deleted.
3398         (Vcharacter_name_table): Deleted.
3399         (put_char_attribute): Deleted.
3400         (remove_char_attribute): Deleted.
3401         (struct char_attribute_alist_closure): New structure.
3402         (add_char_attribute_alist_mapper): New function.
3403         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
3404         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
3405         (Fget_char_attribute): Likewise.
3406         (Fput_char_attribute): Likewise.
3407         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
3408         of `remove_char_attribute'.
3409         (Fdefine_char): Return character.
3410         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
3411         and `Vcharacter_name_table'.
3412         (complex_vars_of_mule_charset): Likewise
3413         `Vchar_attribute_hash_table'.
3414
3415 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3416
3417         * character.h (CHARC_CHARSET): New macro.
3418         (CHARC_CHARSET_ID): New macro.
3419         (CHARC_CODE_POINT): New macro.
3420         (CHARC_COLUMNS): New macro.
3421         (CHARC_TO_CHAR): New inline function.
3422         (CHARC_EQ): New inline function.
3423         (CHARC_ASCII_EQ): New inline function.
3424         (CHARC_IS_SPACE): New inline function.
3425         (ASCII_TO_CHARC): New inline function.
3426
3427         * char-ucs.h (encode_char_2): Deleted.
3428         (ENCODE_CHAR): Use `encode_char_1' again.
3429         (breakup_char_1): Likewise.
3430         (CHAR_TO_CHARC): New inline function.
3431
3432         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
3433
3434 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3435
3436         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
3437         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
3438         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
3439         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
3440         (create_string_text_block): Use `CHARC_ASCII_EQ' and
3441         `CHARC_IS_SPACE'.
3442         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
3443
3444         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
3445         `CHARC_CODE_POINT'.
3446         (x_output_display_block): Use `CHARC_CHARSET' and
3447         `CHARC_ASCII_EQ'.
3448
3449         * redisplay-tty.c (tty_output_display_block): Use
3450         `CHARC_ASCII_EQ'.
3451         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
3452
3453         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
3454
3455         * insdel.c (find_charsets_in_charc_string): Use
3456         `CHARC_CHARSET_ID'.
3457         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
3458         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
3459         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
3460         (convert_charc_string_into_malloced_string): Likewise.
3461
3462 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3463
3464         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
3465         instead of <Emchar_dynarr *> for buf; use
3466         `convert_bufbyte_string_into_charc_dynarr' instead of
3467         `convert_bufbyte_string_into_emchar_dynarr'; use
3468         `find_charsets_in_charc_string' instead of
3469         `find_charsets_in_emchar_string'.
3470
3471         * redisplay.h:
3472         - Include "character.h".
3473         (struct rune): New member `cglyph'; delete member `chr'.
3474
3475         * redisplay.c (redisplay_text_width_charc_string): New function;
3476         delete `redisplay_text_width_emchar_string'.
3477         (rtw_charc_dynarr): New variable; renamed from
3478         `rtw_emchar_dynarr'.
3479         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
3480         `rtw_emchar_dynarr'; use
3481         `convert_bufbyte_string_into_charc_dynarr' instead of
3482         `convert_bufbyte_string_into_emchar_dynarr'; use
3483         `redisplay_text_width_charc_string' instead of
3484         `redisplay_text_width_emchar_string'.
3485         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
3486         instead of `rtw_emchar_dynarr'; use
3487         `convert_bufbyte_string_into_charc_dynarr' instead of
3488         `convert_bufbyte_string_into_emchar_dynarr'.
3489         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
3490         `redisplay_text_width_charc_string' instead of
3491         `redisplay_text_width_emchar_string'.
3492         (create_text_block): Modify for <struct rune> change.
3493         (generate_formatted_string_db): Likewise.
3494         (create_string_text_block): Likewise.
3495         (pixel_to_glyph_translation): Likewise.
3496
3497         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
3498         instead of <const Emchar *>.
3499         (x_text_width): Likewise.
3500         (x_output_display_block): Use <Charc_dynarr *> instead
3501         <Emchar_dynarr *>; modify for <structure rune> change.
3502         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
3503         *>.
3504
3505         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
3506         <const Emchar *>; use `charc_string_displayed_columns' instead of
3507         `emchar_string_displayed_columns'.
3508         (tty_output_display_block): Use <Charc_dynarr *> instead of
3509         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
3510         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
3511         (tty_output_charc_dynarr_dynarr): New variable; renamed from
3512         `tty_output_emchar_dynarr_dynarr'.
3513         (tty_output_charc_dynarr): New function; delete
3514         `tty_output_charc_dynarr'.
3515
3516         * redisplay-output.c (compare_runes): Modify for `struct rune'.
3517         (redisplay_output_layout): Use <Charc_dynarr *> instead of
3518         <Emchar_dynarr *> for buf; use
3519         `convert_bufbyte_string_into_charc_dynarr' instead of
3520         `convert_bufbyte_string_into_emchar_dynarr'.
3521
3522         * frame.c (title_string_charc_dynarr): New variable; renamed from
3523         `title_string_emchar_dynarr'.
3524         (generate_title_string): Use `title_string_charc_dynarr' instead
3525         of `title_string_emchar_dynarr'; use
3526         `convert_charc_string_into_malloced_string' instead of
3527         `convert_emchar_string_into_malloced_string'.
3528         (init_frame): Use `title_string_charc_dynarr' instead of
3529         `title_string_emchar_dynarr'.
3530
3531         * console.h:
3532         - Include "character.h".
3533         (struct console_methods): Use <const Charc *> instead of <const
3534         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
3535         <Emchar_dynarr *> in output_string_method.
3536
3537         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
3538         <Emchar_dynarr *>.
3539
3540         * console-stream.c (stream_text_width): Use <const Charc *>
3541         instead of <const Emchar *>.
3542
3543         * character.h (Charc_dynarr): New type.
3544
3545         * char-ucs.h (structure Charc): New structure; define new type
3546         `Charc'.
3547
3548         * char-lb.h (DECODE_CHAR): New inline function.
3549         (encode_char_1): New inline function.
3550         (ENCODE_CHAR): New macro.
3551         (structure Charc): New structure; define new type `Charc'.
3552
3553         * char-1byte.h (Vcharset_control_1): New macro.
3554         (Vcharset_latin_iso8859_1): New macro.
3555         (DECODE_CHAR): New inline function.
3556         (encode_char_1): New inline function.
3557         (ENCODE_CHAR): New macro.
3558         (structure Charc): New structure; define new type `Charc'.
3559
3560         * insdel.c (find_charsets_in_charc_string): New function; delete
3561         `find_charsets_in_emchar_string'.
3562         (charc_string_displayed_columns): New function; delete
3563         `emchar_string_displayed_columns'.
3564         (convert_bufbyte_string_into_charc_dynarr): New function; delete
3565         `convert_bufbyte_string_into_emchar_dynarr'.
3566         (convert_charc_string_into_bufbyte_dynarr): New function; delete
3567         `convert_charc_string_into_bufbyte_dynarr'.
3568         (convert_charc_string_into_malloced_string): New function; delete
3569         `convert_charc_string_into_malloced_string'.
3570
3571         * buffer.h (find_charsets_in_charc_string): New prototype; delete
3572         `find_charsets_in_emchar_string'.
3573         (charc_string_displayed_columns): New prototype; delete
3574         `emchar_string_displayed_columns'.
3575         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
3576         `convert_charc_string_into_bufbyte_dynarr'.
3577         (convert_charc_string_into_malloced_string): New prototype; delete
3578         `convert_charc_string_into_malloced_string'.
3579
3580 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3581
3582         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
3583
3584 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3585
3586         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
3587
3588         * char-ucs.h: Use <short> for <Charset_ID>.
3589
3590         * mule-charset.h, char-1byte.h: Use <unsigned char> for
3591         <Charset_ID>.
3592
3593 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3594
3595         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3596         to 0.16.
3597
3598 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3599
3600         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
3601         variable.
3602         (Qmorohashi_daikanwa): New variable.
3603         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
3604         for `morohashi-daikanwa' attribute.
3605         (Fget_char_attribute): Likewise.
3606         (Fput_char_attribute): Likewise.
3607         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
3608         has the same value of `ideograph-daikanwa'.
3609         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
3610         (vars_of_mule_charset): Setup
3611         `Vcharacter_morohashi_daikanwa_table'.
3612
3613 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3614
3615         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
3616         attributes.
3617         (add_charset_to_list_mapper): Add `key' instead of
3618         `XCHARSET_NAME (value)' to return aliases.
3619
3620 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3621
3622         * mule-charset.c (Vcharacter_ideographic_radical_table): New
3623         variable.
3624         (Vcharacter_ideographic_strokes_table): New variable.
3625         (Qideographic_radical): New variable.
3626         (Qideographic_strokes): New variable.
3627         (Fchar_attribute_alist): Use
3628         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
3629         attribute; use `Vcharacter_ideographic_strokes_table' for
3630         `ideographic-strokes' attribute.
3631         (Fget_char_attribute): Likewise.
3632         (Fput_char_attribute): Likewise.
3633         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
3634         `ideographic-strokes'.
3635         (vars_of_mule_charset): Setup
3636         `Vcharacter_ideographic_radical_table' and
3637         `Vcharacter_ideographic_strokes_table'.
3638
3639 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3640
3641         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
3642         (Qtotal_strokes): New variable.
3643         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
3644         `total-strokes' attribute.
3645         (Fget_char_attribute): Likewise.
3646         (Fput_char_attribute): Likewise.
3647         (syms_of_mule_charset): Add new symbol `total-strokes'.
3648         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
3649
3650 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3651
3652         * mule-charset.c (Vcharacter_decomposition_table): New variable.
3653         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
3654         are found.
3655         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
3656         `->decomposition' attribute.
3657         (Fput_char_attribute): Likewise.
3658         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
3659
3660 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3661
3662         * mule-charset.c (decoding_table_check_elements): New function.
3663         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
3664
3665 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3666
3667         * mule-charset.c (Fset_charset_mapping_table): Use
3668         `put_char_ccs_code_point'.
3669
3670 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3671
3672         * mule-charset.c (decoding_table_put_char): New inline function.
3673         (put_char_ccs_code_point): Use `decoding_table_put_char'.
3674
3675 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3676
3677         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
3678         (XCHARSET_BYTE_SIZE): New macro.
3679         (decoding_table_remove_char): New inline function.
3680         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
3681         `decoding_table_remove_char'.
3682         (remove_char_ccs): Use `decoding_table_remove_char'.
3683         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
3684
3685 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3686
3687         * mule-charset.c (Vcharacter_name_table): New variable.
3688         (Qname): New variable.
3689         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
3690         attribute.
3691         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
3692         `Vcharacter_name_table' for `name' attribute.
3693         (Fremove_char_attribute): Use function `remove_char_ccs'.
3694         (put_char_ccs_code_point): New function.
3695         (remove_char_ccs): New function.
3696         (syms_of_mule_charset): Add new symbol `name'.
3697         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
3698
3699 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3700
3701         * mule-charset.c (make_byte_table): Add new argument `older'.
3702         (make_char_id_table): Likewise.
3703         (copy_char_id_table): Comment out because it is not used.
3704         (put_char_id_table): Modify for `make_byte_table'.
3705         (Fput_char_attribute): Make encoding_table as older object;
3706         inherit older bit of `Vcharacter_composition_table'.
3707         (mark_charset): Don't mark `cs->encoding_table'.
3708         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
3709         normal object; make `Vcharacter_composition_table' as an older
3710         object; delete staticpro for `Vcharacter_composition_table'; make
3711         `Vcharacter_variant_table' as a normal object.
3712
3713         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
3714         (mark_object): Don't check older object in UTF-2000.
3715
3716         * lrecord.h (struct lrecord_header): Add new member `older' in
3717         UTF-2000.
3718         (set_lheader_implementation): Setup `SLI_header->older' in
3719         UTF-2000.
3720         (set_lheader_older_implementation): New macro in UTF-2000.
3721         (OLDER_RECORD_P): New macro in UTF-2000.
3722         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
3723         (alloc_older_lcrecord): New prototype in UTF-2000.
3724         (alloc_older_lcrecord_type): New macro in UTF-2000.
3725
3726 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3727
3728         * mule-charset.c (byte_table_description): Use
3729         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
3730         (char_id_table_description): Delete bogus `, 1'.
3731         (Fget_char_attribute): Refer encoding_table of each coded-charset
3732         to get value of coded-charset attribute of a character.
3733         (Fput_char_attribute): Use `make_older_vector' instead of
3734         `make_vector'; use encoding_table of each coded-charset to store
3735         value of coded-charset attribute of a character.
3736         (Fremove_char_attribute): Use encoding_table of each coded-charset
3737         to store value of coded-charset attribute of a character.
3738         (mark_charset): Mark `cs->encoding_table'; don't mark
3739         `cs->decoding_table'.
3740         (charset_description): Add description of new member
3741         `encoding_table'.
3742         (make_charset): Initialize `encoding_table'.
3743
3744         * char-ucs.h (struct Lisp_Charset): Add new member
3745         `encoding_table'.
3746         (CHARSET_ENCODING_TABLE): New macro.
3747         (XCHARSET_ENCODING_TABLE): New macro.
3748         (charset_code_point): New implementation.
3749         (encode_char_1): Likewise.
3750
3751         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
3752         (disksave_object_finalization_1): Call finalizers of
3753         `all_older_lcrecords' in UTF-2000.
3754         (make_older_vector): New function in UTF-2000.
3755         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
3756         UTF-2000.
3757
3758         * lisp.h (make_older_vector): New prototype in UTF-2000.
3759
3760 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3761
3762         * lrecord.h (enum lrecord_type): Rename
3763         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
3764
3765         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
3766         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
3767         `get_char_code_table'.
3768
3769         * mule-charset.c (mark_char_id_table): Renamed from
3770         `mark_char_code_table'.
3771         (char_id_table_equal): Renamed from `char_code_table_equal'.
3772         (char_id_table_hash): Renamed from `char_code_table_hash'.
3773         (make_char_id_table): Renamed from `make_char_code_table'.
3774         (copy_char_id_table): Renamed from `copy_char_code_table'.
3775         (get_char_id_table): Renamed from `get_char_code_table'.
3776         (put_char_id_table): Renamed from `put_char_code_table'.
3777         (to_char_id): Renamed from `to_char_code'.
3778
3779         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
3780         `Lisp_Char_Code_Table'.
3781         (char_id_table): Renamed from `char_code_table'.
3782         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
3783         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
3784         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
3785         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
3786         (get_char_id_table): Renamed from `get_char_code_table'.
3787
3788 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3789
3790         * lrecord.h (enum lrecord_type): Rename
3791         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
3792
3793         * mule-charset.c (mark_byte_table): Renamed from
3794         `mark_char_byte_table'.
3795         (byte_table_equal): Renamed from `char_byte_table_equal'.
3796         (byte_table_hash): Renamed from `byte_table_hash'.
3797         (make_byte_table): Renamed from `make_byte_table'.
3798         (copy_byte_table): Renamed from `copy_char_byte_table'.
3799
3800         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
3801         `Lisp_Char_Byte_Table'.
3802         (byte_table): Renamed from `char_byte_table'.
3803         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
3804         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
3805         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
3806         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
3807
3808 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3809
3810         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
3811         (dfc_convert_to_internal_format): Likewise.
3812         
3813         * text-coding.c (Fcoding_system_canonical_name_p): New function.
3814         * text-coding.c (Fcoding_system_alias_p): New function.
3815         * text-coding.c (Fcoding_system_aliasee): New function.
3816         * text-coding.c (append_suffix_to_symbol): New function.
3817         * text-coding.c (dangling_coding_system_alias_p): New function.
3818         * text-coding.c (Ffind_coding_system):
3819         * text-coding.c (Fcopy_coding_system):
3820         * text-coding.c (encode_coding_no_conversion):
3821         * text-coding.c (syms_of_file_coding):
3822         * text-coding.c (vars_of_file_coding):
3823         Rewrite coding system alias code.
3824         Allow nested aliases, like symbolic links.
3825         Allow redefinition of coding system aliases.
3826         Prevent existence of dangling coding system aliases.
3827         Eliminate convert_to_external_format.
3828         Eliminate convert_to_internal_format.
3829         
3830         * text-coding.c: Change enum eol_type to eol_type_t.
3831
3832 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3833
3834         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
3835         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
3836
3837         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
3838         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
3839
3840 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3841
3842         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
3843         `ideograph-daikanwa'.
3844
3845         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
3846         (Vcharset_ucs_bmp): Likewise.
3847         (Vcharset_mojikyo): Add new extern variable definition.
3848         (Vcharset_latin_iso8859_2): Deleted because it is not used.
3849         (Vcharset_latin_iso8859_3): Likewise.
3850         (Vcharset_latin_iso8859_4): Likewise.
3851         (Vcharset_latin_iso8859_9): Likewise.
3852         (Vcharset_latin_viscii_lower): Likewise.
3853         (Vcharset_latin_viscii_upper): Likewise.
3854         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
3855         `mojikyo' code-point is used to decode.
3856         (encode_char_2): New function [to convert `mojikyo' code-point to
3857         Mojikyo font encoding].
3858         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
3859         (breakup_char_1): Likewise.
3860         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
3861
3862 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3863
3864         * text-coding.c (Fmake_coding_system): Add document about
3865         `disable-composition' property.
3866
3867 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3868
3869         * text-coding.c (Qdisable_composition): New variable; delete
3870         `Qcomposite'.
3871         (Fmake_coding_system): Add new property `disable-composite';
3872         delete property `composite'.
3873         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
3874         instead of `!CODING_SYSTEM_COMPOSITE'.
3875         (syms_of_file_coding): Add new symbol `disable-composition';
3876         delete symbol `composite'.
3877
3878         * file-coding.h (struct Lisp_Coding_System): Add
3879         `disable_composition'; delete `enable_composition'.
3880         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
3881         `CODING_SYSTEM_COMPOSITE'.
3882         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
3883         `XCODING_SYSTEM_COMPOSITE'.
3884
3885 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3886
3887         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3888         to 0.15.
3889
3890 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3891
3892         * text-coding.c (Qcomposite): New variable.
3893         (Fmake_coding_system): Add new property `composite'.
3894         (struct decoding_stream): Add `combined_char_count',
3895         `combined_chars' and `combining_table' in UTF-2000.
3896         (COMPOSE_FLUSH_CHARS): New macro.
3897         (COMPOSE_ADD_CHAR): New macro.
3898         (reset_decoding_stream): Reset `str->combined_char_count' and
3899         `str->combining_table' in UTF-2000.
3900         (decode_coding_iso2022): Modify for character-decomposition.
3901         (syms_of_file_coding): Add new symbol `composite'.
3902
3903 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3904
3905         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
3906         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
3907         of `Vcharacter_composition_table' if `->decomposition' property
3908         has only 1 element.
3909         (Qlatin_tcvn5712): New variable.
3910         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
3911         (complex_vars_of_mule_charset): Add new coded-charset
3912         `latin-tcvn5712'.
3913
3914         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
3915
3916 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3917
3918         * file-coding.h (struct Lisp_Coding_System): Add
3919         `enable_composition'.
3920         (CODING_SYSTEM_COMPOSITE): New macro.
3921         (XCODING_SYSTEM_COMPOSITE): New macro.
3922
3923 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
3924
3925         * mule-canna.c (c2mu): Fix problem with UTF-2000.
3926
3927 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
3928
3929         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
3930         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
3931
3932 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
3933
3934         * mule-charset.c (Vcharset_mojikyo): New variable.
3935         (Fdefine_char): Don't use coded-charset which does not have
3936         non-builtin character range to allocate character-id.
3937         (Qmojikyo): New variable.
3938         (syms_of_mule_charset): Add new symbol `mojikyo'.
3939         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
3940
3941         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
3942         (LEADING_BYTE_MOJIKYO): New macro.
3943         (MIN_CHAR_MOJIKYO): New macro.
3944         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
3945         (MAX_CHAR_MOJIKYO): New macro.
3946
3947 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
3948
3949         * mule-charset.c (remove_char_attribute): Fixed.
3950
3951 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
3952
3953         * mule-charset.c (remove_char_attribute): New function.
3954         (Fremove_char_attribute): New function.
3955         (encode_builtin_char_1): Comment out builtin-support for
3956         greek-iso8859-7 and cyrillic-iso8859-5.
3957         (Fdecode_char): Check `code' is an integer.
3958         (syms_of_mule_charset): Add `remove-char-attribute'.
3959         (MIN_CHAR_GREEK): Deleted.
3960         (MAX_CHAR_GREEK): Likewise.
3961         (MIN_CHAR_CYRILLIC): Likewise.
3962         (MAX_CHAR_CYRILLIC): Likewise.
3963         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
3964         MAX_CHAR_GREEK for `greek-iso8859-7'.
3965
3966         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
3967         (MAX_CHAR_GREEK): Likewise.
3968         (MIN_CHAR_CYRILLIC): Likewise.
3969         (MAX_CHAR_CYRILLIC): Likewise.
3970
3971 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
3972
3973         * mule-charset.c (Fdefine_char): Fix problem when new code-point
3974         format is used without `ucs' property.
3975         (Fdecode_char): Fix problem with GR representation.
3976         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
3977         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
3978
3979 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3980
3981         * mule-charset.c (make_builtin_char): New function.
3982         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
3983         (Fset_charset_mapping_table): Modify for new representation of
3984         code-point.
3985         (Fdecode_char): New function.
3986         (syms_of_mule_charset): Add new builtin function `decode-char' in
3987         UTF-2000.
3988
3989         * char-ucs.h (make_builtin_char): New prototype.
3990         (DECODE_CHAR): New inline function.
3991         (MAKE_CHAR): Use `DECODE_CHAR'.
3992
3993 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
3994
3995         * text-coding.c (parse_charset_conversion_specs): Use
3996         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
3997         `XCHARSET_TYPE'.
3998         (iso2022_designate): Likewise.
3999
4000         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
4001         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
4002
4003         * mule-charset.c (Vcharset_ucs): New variable.
4004         (print_charset): Change design; use `CHARSET_CHARS' and
4005         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
4006         (make_charset): Change signature to specify `chars' and
4007         `dimension' instead of `type'.
4008         (range_charset_code_point): Modify for 256^n-set.
4009         (encode_builtin_char_1): Encode as `ucs' in default.
4010         (Fmake_charset): Modify for `make_charset'.
4011         (Fmake_reverse_direction_charset): Likewise.
4012         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
4013         UTF-2000.
4014         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
4015         for `make_charset'.
4016
4017         * char-ucs.h (Vcharset_ucs): New variable.
4018         (LEADING_BYTE_UCS): New macro.
4019         (struct Lisp_Charset): Delete `type'; change type of `dimension'
4020         and `chars' to `unsigned short' from `unsigned int'.
4021         (CHARSET_TYPE): Deleted.
4022         (XCHARSET_TYPE): Deleted.
4023
4024 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
4025
4026         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
4027
4028         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
4029         (ENCODE_CHAR): New macro.
4030
4031 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
4032
4033         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4034         to 0.14 (Kawachi-Katakami).
4035
4036 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
4037
4038         * text-coding.c (char_encode_shift_jis): Modify for
4039         `charset_code_point'.
4040         (char_encode_iso2022): Likewise.
4041
4042         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
4043         (integer) instead of list of <Lisp_Object>s (integers) as the
4044         format of code-point of a coded-charset.
4045         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
4046         (encode_builtin_char_1): New function; delete
4047         `split_builtin_char'.
4048         (charset_code_point): Return <int> instead of <Lisp_Object>.
4049         (Fsplit_char): Don't use `SPLIT_CHAR'.
4050
4051         * char-ucs.h (encode_builtin_char_1): New prototype; delete
4052         prototype for `split_builtin_char'.
4053         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
4054         (charset_code_point): Likewise.
4055         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
4056         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
4057
4058 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
4059
4060         * mule-charset.c (complex_vars_of_mule_charset): Don't define
4061         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
4062
4063 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4064
4065         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
4066
4067         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
4068         (MAX_CHAR_OBS_94x94): Deleted.
4069
4070 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4071
4072         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
4073
4074         * char-ucs.h (MAX_CHAR_BMP): New macro.
4075
4076 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4077
4078         * text-coding.c: Sync with r21-2-24.
4079
4080 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
4081
4082         * file-coding.c: Modify for UTF-2000.
4083
4084 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4085
4086         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4087         to 0.13 (Takaida).
4088
4089 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4090
4091         * mule-charset.c (split_builtin_char): Delete builtin support for
4092         `katakana-jisx0201'.
4093         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
4094         BMP area in builtin representation.
4095
4096         * char-ucs.h (MAKE_CHAR): Delete builtin support for
4097         `Vcharset_katakana_jisx0201'.
4098
4099 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
4100
4101         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
4102         (Qisolated): New variable.
4103         (Qinitial): New variable.
4104         (Qmedial): New variable.
4105         (Qfinal): New variable.
4106         (Qvertical): New variable.
4107         (Qsmall): New variable.
4108         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
4109         `Qvertical' and `Qsmall'.
4110         (Qmojikyo_pj_[1 .. 21]): New variable.
4111         (syms_of_mule_charset): Add new symbols `isolated', `initial',
4112         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
4113         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
4114         .. 21]'.
4115
4116 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
4117
4118         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
4119         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
4120         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
4121
4122 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4123
4124         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
4125         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
4126         BMP.
4127         (Qjapanese_jisx0208_1990): New variable.
4128         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
4129         (complex_vars_of_mule_charset): Add new coded-charset
4130         `japanese-jisx0208-1990'.
4131
4132         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
4133         (MIN_CHAR_JIS_X0208_1990): New macro.
4134         (MAX_CHAR_JIS_X0208_1990): New macro.
4135
4136 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4137
4138         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
4139         coded-charset is not found.
4140
4141 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4142
4143         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
4144         (Fdefine_char): Use `Fmake_char'.
4145
4146 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4147
4148         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
4149         (Vcharset_hiragana_jisx0208): Deleted.
4150         (Vcharset_katakana_jisx0208): Deleted.
4151         (Qideograph_daikanwa): New variable.
4152         (Qhiragana_jisx0208): Deleted.
4153         (Qkatakana_jisx0208): Deleted.
4154         (split_builtin_char): Split `ideograph-daikanwa'.
4155         (Fsplit_char): New implementation for UTF-2000.
4156         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
4157         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
4158         (complex_vars_of_mule_charset): Add new coded-charset
4159         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
4160         `katakana-jisx0208'.
4161
4162         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
4163         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
4164         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
4165         (MIN_CHAR_DAIKANWA): New macro.
4166         (MAX_CHAR_DAIKANWA): New macro.
4167
4168 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4169
4170         * data.c (Fstring_to_number): Don't recognize floating point if
4171         base is not 10.
4172
4173 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4174
4175         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
4176
4177 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4178
4179         * mule-charset.c (Qsquare): New variable.
4180         (to_char_code): Add `Qsquare'.
4181         (syms_of_mule_charset): Add new symbol `square'.
4182
4183 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4184
4185         * mule-charset.c (Qcircle): New variable.
4186         (to_char_code): Add `Qcircle'.
4187         (syms_of_mule_charset): Add new symbol `circle'.
4188
4189 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4190
4191         * mule-charset.c (Qfont): New variable.
4192         (to_char_code): Add `Qfont'.
4193         (syms_of_mule_charset): Add new symbol `font'.
4194
4195 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4196
4197         * mule-charset.c (Qsub): New variable.
4198         (to_char_code): Add `Qsub'.
4199         (syms_of_mule_charset): Add new symbol `sub'.
4200
4201 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4202
4203         * mule-charset.c (Fput_char_attribute): Convert each element of
4204         VALUE to GL position if ATTRIBUTE is a GR-set,
4205
4206 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4207
4208         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
4209         coded-charset is a GR-set.
4210
4211 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4212
4213         * mule-charset.c (Fput_char_attribute): Check each element of
4214         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
4215
4216 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4217
4218         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
4219         UTF-2000.
4220         (Qethiopic_ucs): New variable in UTF-2000.
4221         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
4222         (complex_vars_of_mule_charset): Add new coded-charset
4223         `ethiopic-ucs' in UTF-2000.
4224
4225         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
4226         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
4227         9)'.
4228         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
4229         10)'.
4230         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
4231
4232 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
4233
4234         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
4235         `ascii'.
4236
4237 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4238
4239         * mule-charset.c (Vcharacter_variant_table): New variable.
4240         (Q_ucs): New variable.
4241         (Fchar_variants): New function.
4242         (Fput_char_attribute): Register `->ucs' value to
4243         `Vcharacter_variant_table'.
4244         (syms_of_mule_charset): Add new function `char-variants' and new
4245         symbol `->ucs'.
4246         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
4247
4248 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4249
4250         * mule-charset.c (get_char_code_table): Allow negative character
4251         code.
4252         (put_char_code_table): Likewise.
4253         (Vcharacter_composition_table): New variable.
4254         (Q_decomposition): New variable.
4255         (Qwide): New variable.
4256         (Qnarrow): New variable.
4257         (Qcompat): New variable.
4258         (QnoBreak): New variable.
4259         (Qsuper): New variable.
4260         (Qfraction): New variable.
4261         (to_char_code): New function.
4262         (Fget_composite_char): New function.
4263         (Fput_char_attribute): Register `->decomposition' value to
4264         `Vcharacter_composition_table'.
4265         (syms_of_mule_charset): Add new function `get-composite-char', new
4266         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
4267         `super' and `fraction'.
4268         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
4269
4270 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4271
4272         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
4273         character; copy the return value.
4274
4275 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4276
4277         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
4278
4279         * mule-charset.c (range_charset_code_point): Must use make_int.
4280         (split_builtin_char): New function.
4281
4282 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4283
4284         * mule-charset.c (char_byte_table): Change name from
4285         "char-code-table" to "char-byte-table".
4286         (mark_char_code_table): New function.
4287         (char_code_table_equal): New function.
4288         (char_code_table_hash): New function.
4289         (char_code_table_description): New constant.
4290         (char_code_table): New type.
4291         (make_char_code_table): New function.
4292         (copy_char_code_table): New function.
4293         (get_char_code_table): Modify for `char_code_table' type.
4294         (put_char_code_table): Likewise.
4295         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
4296         (Kashiwara).
4297
4298         * char-ucs.h (char_code_table): New type.
4299         (XCHAR_CODE_TABLE): New macro.
4300         (XSETCHAR_CODE_TABLE): New macro.
4301         (CHAR_CODE_TABLE_P): New macro.
4302         (GC_CHAR_CODE_TABLE_P): New macro.
4303         (struct Lisp_Char_Code_Table): New structure.
4304
4305 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4306
4307         * mule-charset.c (Fmake_charset): Setup byte_offset for
4308         {94|96}^n-set.
4309
4310 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4311
4312         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
4313         character.
4314
4315 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4316
4317         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
4318         is found.
4319
4320 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4321
4322         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
4323         charset, it is regarded as a charset.
4324         (put_char_attribute): New function in UTF-2000.
4325         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
4326         charset, mapping-table of the charset is modified.
4327         (Fdefine_char): New function in UTF-2000.
4328         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
4329         `Fput_char_attribute'.
4330         (syms_of_mule_charset): Add new function `define-char' and new
4331         symbol `ucs' in UTF-2000.
4332         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
4333
4334 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4335
4336         * mule-charset.c (Fcharset_name): Define `byte_offset' in
4337         non-UTF-2000 configuration.
4338
4339 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4340
4341         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
4342         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
4343
4344         * mule-charset.c (mark_charset): `cs->encoding_table' has been
4345         deleted.
4346         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
4347         (Fset_charset_mapping_table): Likewise.
4348
4349         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
4350         (CHARSET_ENCODING_TABLE): Delete.
4351         (XCHARSET_ENCODING_TABLE): Delete.
4352         (charset_code_point): New interface.
4353
4354 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4355
4356         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
4357         instead of `charset_get_byte1' and `charset_get_byte2'.
4358
4359         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
4360         (charset_get_byte2): Deleted.
4361
4362 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4363
4364         * char-ucs.h (SPLIT_CHAR): New inline function.
4365         (breakup_char_1): Use `SPLIT_CHAR'.
4366
4367         * mule-charset.c (range_charset_code_point): New function.
4368         (charset_code_point): New function.
4369
4370         * char-ucs.h (range_charset_code_point): New interface.
4371         (breakup_char_1): Use `range_charset_code_point'.
4372
4373 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4374
4375         * mule-charset.c (Fmake_charset): Delete unused local variable
4376         `code_offset'.
4377
4378         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
4379         (breakup_char_1): Find a charset and code-point in
4380         `Vcharacter_attribute_table'.
4381
4382 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4383
4384         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4385         to 0.10 (Yao).
4386
4387 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
4388
4389         * mule-charset.c (Vcharacter_attribute_table): New variable.
4390         (Fchar_attribute_alist): New function.
4391         (Fget_char_attribute): New function.
4392         (Fput_char_attribute): New function.
4393         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
4394         too.
4395         (syms_of_mule_charset): Add new function `char-attribute-alist',
4396         `get-char-attribute' and `put-char-attribute'.
4397         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
4398
4399 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
4400
4401         * mule-charset.c (Fmake_charset): Just use
4402         `get_unallocated_leading_byte'.
4403
4404         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
4405         sets; don't use final-byte based number for private sets.
4406
4407 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4408
4409         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
4410         integer.
4411
4412 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4413
4414         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4415         to 0.9.
4416
4417 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4418
4419         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
4420         of `CHAR_LEADING_BYTE' in UTF-2000.
4421
4422         * insdel.c (find_charsets_in_bufbyte_string): Use
4423         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
4424         (find_charsets_in_emchar_string): Likewise.
4425
4426         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
4427         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
4428
4429         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
4430         (CHAR_CHARSET_ID): New macro.
4431
4432 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4433
4434         * chartab.c (get_char_table): Don't use type `Charset_ID' for
4435         charset-id - MIN_LEADING_BYTE.
4436         (put_char_table): Likewise.
4437
4438 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4439
4440         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
4441         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
4442         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
4443         (CHARSET_ID_OFFSET): New macro.
4444         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
4445         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
4446         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
4447         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
4448         4).
4449         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
4450         5).
4451         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
4452         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
4453         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
4454         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
4455         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
4456
4457 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4458
4459         * mule-charset.c (next_allocated_leading_byte): New variable in
4460         UTF-2000.
4461         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
4462         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
4463         (get_unallocated_leading_byte): Simply use
4464         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
4465         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
4466         UTF-2000.
4467
4468         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
4469         (MAX_LEADING_BYTE_PRIVATE): New macro.
4470         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
4471         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
4472
4473 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4474
4475         * mule-charset.c (Fmake_charset): Allocate final-byte based
4476         charset-id for 94-set, 96-set and 94x94-set.
4477
4478 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4479
4480         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
4481         ambiguous `else'.
4482         (Fmake_charset): Likewise.
4483         (complex_vars_of_mule_charset): Modify the font registry of
4484         `ucs-bmp' not to match `Ethiopic-Unicode'.
4485
4486 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4487
4488         * mule-charset.c (complex_vars_of_mule_charset): Add font
4489         registory of `ucs-bmp'.
4490
4491 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4492
4493         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
4494         coded-charsets in `default-coded-charset-priority-list' when
4495         breaking up a character.
4496
4497         * mule-charset.c (Vcharset_latin_viscii): New variable.
4498         (Qlatin_viscii): New variable.
4499         (make_charset): Don't use `decoding_table'.
4500         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
4501         byte_offset.
4502         (Fset_charset_mapping_table): New implementation.
4503         (syms_of_mule_charset): Add new symbol `latin-viscii'.
4504         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
4505         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
4506         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
4507         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
4508         charset `latin_viscii'.
4509
4510         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
4511         (CHARSET_TYPE_94X94): Change to 1 from 2.
4512         (CHARSET_TYPE_96): Change to 2 from 1.
4513         (CHARSET_TYPE_128): New macro.
4514         (CHARSET_TYPE_128X128): Change to 5 from 4.
4515         (CHARSET_TYPE_256): New macro.
4516         (CHARSET_TYPE_256X256): Change to 7 from 5.
4517         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
4518
4519 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4520
4521         * text-coding.c (char_encode_shift_jis): Refer
4522         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
4523         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
4524
4525         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
4526         (char_byte_table_equal): New function in UTF-2000.
4527         (char_byte_table_hash): New function in UTF-2000.
4528         (char_byte_table_description): New constant in UTF-2000.
4529         (char_byte_table): New type in UTF-2000.
4530         (make_char_byte_table): New function in UTF-2000.
4531         (copy_char_byte_table): New function in UTF-2000.
4532         (make_char_code_table): New macro in UTF-2000.
4533         (get_char_code_table): New function in UTF-2000.
4534         (put_char_code_table): New function in UTF-2000.
4535         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
4536         (charset_description): Add setting in UTF-2000.
4537         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
4538         `CHARSET_TO_BYTE1_TABLE(cs)'.
4539         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
4540         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
4541         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
4542         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
4543         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
4544         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
4545         `CHARSET_TO_BYTE2_TABLE(cs)'.
4546
4547         * char-ucs.h (char_byte_table): New type.
4548         (XCHAR_BYTE_TABLE): New macro.
4549         (XSETCHAR_BYTE_TABLE): New macro.
4550         (CHAR_BYTE_TABLE_P): New macro.
4551         (GC_CHAR_BYTE_TABLE_P): New macro.
4552         (struct Lisp_Char_Byte_Table): New structure.
4553         (get_char_code_table): New interface.
4554         (Emchar_to_byte_table): Deleted.
4555         (get_byte_from_character_table): Deleted.
4556         (struct Lisp_Charset): Add `encoding_table'; delete
4557         `to_byte1_table' and `to_byte2_table'.
4558         (CHARSET_ENCODING_TABLE): New macro.
4559         (CHARSET_TO_BYTE1_TABLE): Deleted.
4560         (CHARSET_TO_BYTE2_TABLE): Deleted.
4561         (XCHARSET_ENCODING_TABLE): New macro.
4562         (XCHARSET_TO_BYTE1_TABLE): Deleted.
4563         (XCHARSET_TO_BYTE2_TABLE): Deleted.
4564
4565 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4566
4567         * mule-charset.c (syms_of_mule_charset): Delete charset alias
4568         `vietnamese-viscii-*'.
4569
4570 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4571
4572         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
4573         (Qvietnamese_viscii_upper): New variable.
4574         (Fdefine_charset_alias): New function.
4575         (syms_of_mule_charset): Add new function `define-charset-alias'.
4576         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
4577         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
4578         `latin-viscii-*'.
4579
4580 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
4581
4582         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
4583         (MAX_CHAR_OBS_94x94): New macro.
4584         (breakup_char_1): Support obsolete XEmacs-UCS private code space
4585         for 94x94 sets.
4586
4587         * mule-charset.c (put_byte_from_character_table): Change unit size
4588         from 128 to 256.
4589         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
4590         not defined.
4591         (Fmake_reverse_direction_charset): Modify dummy argument of
4592         `make_charset' for non-UTF-2000 environment.
4593
4594 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4595
4596         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
4597
4598         * mule-charset.c (destroy_byte_from_character_table): New macro.
4599         (latin_jisx0201_to_ucs): Deleted.
4600         (latin_iso8859_2_to_ucs): Deleted.
4601         (latin_iso8859_3_to_ucs): Deleted.
4602         (latin_iso8859_4_to_ucs): Deleted.
4603         (latin_iso8859_9_to_ucs): Deleted.
4604         (latin_viscii_lower_to_ucs): Deleted.
4605         (latin_viscii_upper_to_ucs): Deleted.
4606         (mark_charset): Mark `cs->decoding_table'.
4607         (Fcharset_mapping_table): Fix DOC-string.
4608         (Fset_charset_mapping_table): New function.
4609         (syms_of_mule_charset): Add nwe function
4610         `set-charset-mapping-table'.
4611         (complex_vars_of_mule_charset): Don't setup and use
4612         `latin_*_to_ucs'.
4613
4614 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4615
4616         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
4617         charset.
4618
4619 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4620
4621         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
4622         (Vcharset_katakana_jisx0208): New variable.
4623         (Qhiragana_jisx0208): New variable.
4624         (Qkatakana_jisx0208): New variable.
4625         (make_charset): Add new argument `byte_offset'.
4626         (charset_get_byte1): Modify for new coded-charset definition; use
4627         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
4628         `XCHARSET_BYTE_OFFSET'.
4629         (Fmake_charset): Modify for `make_charset'.
4630         (Fmake_reverse_direction_charset): Likewise.
4631         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
4632         `katakana-jisx0208'.
4633         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
4634         `.'  in font registry of charset `katakana-jisx0201',
4635         `latin-jisx0201', `vietnamese-viscii-lower' and
4636         `vietnamese-viscii-upper'; modify DOC-string of charset
4637         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
4638         registry of charset `japanese-jisx0208' not to use font for JIS
4639         X0208:1990; add new charset `hiragana-jisx0208' and
4640         `katakana-jisx0208'.
4641
4642         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
4643         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
4644         (struct Lisp_Charset): Add `byte_offset'.
4645         (CHARSET_BYTE_OFFSET): New macro.
4646         (XCHARSET_UCS_MIN): New macro.
4647         (XCHARSET_UCS_MAX): New macro.
4648         (XCHARSET_CODE_OFFSET): New macro.
4649         (XCHARSET_BYTE_OFFSET): New macro.
4650         (MIN_CHAR_HIRAGANA): New macro.
4651         (MAX_CHAR_HIRAGANA): New macro.
4652         (MIN_CHAR_KATAKANA): New macro.
4653         (MAX_CHAR_KATAKANA): New macro.
4654         (MAKE_CHAR): Modify for new coded-charset definition; use
4655         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
4656         `XCHARSET_BYTE_OFFSET'.
4657
4658 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4659
4660         * mule-charset.c (CHAR96): Deleted.
4661         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
4662         <Lisp_Object>.
4663         (latin_iso8859_2_to_ucs): Likewise.
4664         (latin_iso8859_3_to_ucs): Likewise.
4665         (latin_iso8859_4_to_ucs): Likewise.
4666         (latin_iso8859_9_to_ucs): Likewise.
4667         (latin_viscii_lower_to_ucs): Likewise.
4668         (latin_viscii_upper_to_ucs): Likewise.
4669         (latin_tcvn5712_to_ucs): Commented out.
4670         (make_charset): Change type of argument `decoding_table' from
4671         <Emchar*> to <Lisp_Object> [vector of characters].
4672         (Fmake_charset): Modify for `make_charset'.
4673         (Fmake_reverse_direction_charset): Likewise.
4674         (Fcharset_mapping_table): New function in UTF-2000.
4675         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
4676         UTF-2000.
4677         (complex_vars_of_mule_charset): Modify for type change of
4678         `*_to_ucs'; modify for `make_charset'.
4679
4680         * char-ucs.h (struct Lisp_Charset): Change type of
4681         `decoding_table' from <Emchar*> to <Lisp_Object>.
4682         (MAKE_CHAR): Modify for new specification of `decoding_table'.
4683
4684 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
4685
4686         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
4687         error with non-UTF-2000-Mule.
4688
4689 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
4690
4691         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
4692         in lisp again].
4693         (Vcharset_chinese_cns11643_4): Likewise.
4694         (Vcharset_chinese_cns11643_5): Likewise.
4695         (Vcharset_chinese_cns11643_6): Likewise.
4696         (Vcharset_chinese_cns11643_7): Likewise.
4697         (Qchinese_cns11643_3): Likewise.
4698         (Qchinese_cns11643_4): Likewise.
4699         (Qchinese_cns11643_5): Likewise.
4700         (Qchinese_cns11643_6): Likewise.
4701         (Qchinese_cns11643_7): Likewise.
4702         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
4703         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
4704         and `chinese-cns11643-7' to lisp/mule/chinese.el.
4705         (complex_vars_of_mule_charset): Likewise.
4706
4707 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4708
4709         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
4710         96-set.
4711         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
4712         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
4713
4714 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4715
4716         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
4717         0xFF60.
4718         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
4719         (breakup_char_1): Likewise.
4720
4721         * text-coding.c (char_encode_iso2022): Keep designated charsets if
4722         one of them includes the specified character.
4723
4724 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4725
4726         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
4727
4728 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4729
4730         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
4731
4732 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4733
4734         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
4735         definition for non-UTF-2000 Mule.
4736         (latin_iso8859_3_to_ucs): Likewise.
4737         (latin_iso8859_4_to_ucs): Likewise.
4738         (latin_iso8859_9_to_ucs): Likewise.
4739         (latin_jisx0201_to_ucs): Likewise.
4740         (MIN_CHAR_THAI): Likewise.
4741         (MAX_CHAR_THAI): Likewise.
4742         (MIN_CHAR_GREEK): Likewise.
4743         (MAX_CHAR_GREEK): Likewise.
4744         (MIN_CHAR_HEBREW): Likewise.
4745         (MAX_CHAR_HEBREW): Likewise.
4746         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
4747         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
4748         (MIN_CHAR_CYRILLIC): Likewise.
4749         (MAX_CHAR_CYRILLIC): Likewise.
4750
4751 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4752
4753         * char-ucs.h (breakup_char_1): Use
4754         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
4755         thai-tis620 and katakana-jisx0201 area.
4756
4757 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4758
4759         * char-ucs.h (breakup_char_1): Use
4760         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
4761         area.
4762
4763         * text-coding.c (reset_encoding_stream): Fixed.
4764         (char_encode_ucs4): Delete `& 255'.
4765
4766         * char-ucs.h (breakup_char_1): Use
4767         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
4768
4769 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4770
4771         * file-coding.c (Fmake_coding_system): Don't set up
4772         `codesys->fixed.size'.
4773         (encode_coding_no_conversion): Don't refer
4774         `str->codesys->fixed.size'.
4775
4776 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4777
4778         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
4779         (latin_a_char_to_byte1): Deleted.
4780         (latin_a_char_to_byte2): Deleted.
4781
4782 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4783
4784         * mule-charset.c (make_charset): Add new argument `ucs_min',
4785         `ucs_max' and `code_offset'.
4786         (charset_get_byte1): New implementation [delete specific charset
4787         depended implementations].
4788         (Fmake_charset): Modify for `make_charset'.
4789         (Fmake_reverse_direction_charset): Likewise.
4790         (complex_vars_of_mule_charset): Likewise.
4791
4792         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
4793         `code_offset'.
4794         (CHARSET_UCS_MIN): New macro.
4795         (CHARSET_UCS_MAX): New macro.
4796         (CHARSET_CODE_OFFSET): New macro.
4797         (MAKE_CHAR): Delete charset depended definitions [except
4798         katakana-jisx0201].
4799
4800 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
4801
4802         * char-ucs.h (breakup_char_1): Use
4803         `Vdefault_coded_charset_priority_list' for C0-Controls,
4804         Basic-Latin, C1-Controls and Latin-1-Supplement area.
4805
4806 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4807
4808         * char-ucs.h (charset_get_byte1): New function.
4809         (XCHARSET_GET_BYTE1): Deleted.
4810         (charset_get_byte2): New function.
4811         (XCHARSET_GET_BYTE2): Deleted.
4812         (Vdefault_coded_charset_priority_list): New external variable.
4813         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
4814         `Vdefault_preferred_coded_charset_list'.
4815
4816         * mule-charset.c (charset_get_byte1): New function.
4817         (charset_get_byte2): New function.
4818         (Vdefault_coded_charset_priority_list): New variable.
4819         (vars_of_mule_charset): Add new variable
4820         `default-coded-charset-priority-list'.
4821
4822 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4823
4824         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
4825         (XCHARSET_GET_BYTE2): New inline function.
4826         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
4827         `XCHARSET_GET_BYTE2'.
4828
4829 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4830
4831         * mule-charset.c (make_charset): Initialize
4832         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
4833         NULL if table is not defined.
4834
4835 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4836
4837         * text-coding.c (char_encode_shift_jis): Use
4838         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
4839         `ucs_to_latin_jisx0201'.
4840
4841         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
4842         (ucs_to_latin_iso8859_2): Deleted.
4843         (ucs_to_latin_iso8859_3): Deleted.
4844         (ucs_to_latin_iso8859_4): Deleted.
4845         (ucs_to_latin_iso8859_9): Deleted.
4846         (ucs_to_latin_viscii_lower): Deleted.
4847         (ucs_to_latin_viscii_upper): Deleted.
4848         (ucs_to_latin_tcvn5712): Deleted.
4849         (make_charset): Add new argument `decoding_table'; set up
4850         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
4851         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
4852         `decoding_table' is defined in UTF-2000.
4853         (Fmake_charset): Modify for `make_charset'.
4854         (Fmake_reverse_direction_charset): Likewise.
4855         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
4856         and `GENERATE_96_SET'.
4857
4858         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
4859         (ucs_to_latin_jisx0201): Deleted.
4860         (latin_iso8859_2_to_ucs): Deleted.
4861         (ucs_to_latin_iso8859_2): Deleted.
4862         (latin_iso8859_3_to_ucs): Deleted.
4863         (ucs_to_latin_iso8859_3): Deleted.
4864         (latin_iso8859_4_to_ucs): Deleted.
4865         (ucs_to_latin_iso8859_4): Deleted.
4866         (latin_iso8859_9_to_ucs): Deleted.
4867         (ucs_to_latin_iso8859_9): Deleted.
4868         (latin_viscii_lower_to_ucs): Deleted.
4869         (ucs_to_latin_viscii_lower): Deleted.
4870         (latin_viscii_upper_to_ucs): Deleted.
4871         (ucs_to_latin_viscii_upper): Deleted.
4872         (struct Lisp_Charset): Renamed `encoding_table' to
4873         `to_byte1_table'; add `to_byte2_table'.
4874         (CHARSET_DECODING_TABLE): New macro.
4875         (CHARSET_TO_BYTE1_TABLE): New macro.
4876         (CHARSET_TO_BYTE2_TABLE): New macro.
4877         (XCHARSET_DECODING_TABLE): New macro.
4878         (XCHARSET_TO_BYTE1_TABLE): New macro.
4879         (XCHARSET_TO_BYTE2_TABLE): New macro.
4880         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
4881         tables.
4882         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
4883         don't use `ucs_to_*' tables.
4884
4885 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4886
4887         * text-coding.c (Fmake_coding_system): Don't set up
4888         `codesys->fixed.size'.
4889         (encode_coding_no_conversion): Use `if' instead of `switch'.
4890
4891         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
4892
4893 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4894
4895         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
4896         (Fmake_charset): Modify for `make_charset'.
4897         (Fmake_reverse_direction_charset): Likewise.
4898         (complex_vars_of_mule_charset): Likewise.
4899
4900 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4901
4902         * text-coding.c (char_encode_shift_jis): Use table
4903         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
4904
4905 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4906
4907         * text-coding.c (text_encode_generic): Use `if' instead of
4908         `switch'.
4909         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
4910         decode JIS-Latin.
4911
4912 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4913
4914         * text-coding.c (encode_coding_sjis): Deleted.
4915         (char_encode_shift_jis): New function.
4916         (char_finish_shift_jis): New function.
4917         (reset_encoding_stream): Set up `encode_char' and `finish' for
4918         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
4919         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
4920         (char_encode_utf8): Treat `eol_type'.
4921
4922 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4923
4924         * file-coding.c (decode_coding_iso2022): Use
4925         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
4926
4927 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4928
4929         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4930         to 0.7 (Hirano).
4931
4932 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4933
4934         * char-lb.h (CHAR_COLUMNS): New macro.
4935
4936 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4937
4938         * text-coding.c (char_encode_ucs4): New function.
4939         (char_finish_ucs4): New function.
4940         (encode_coding_ucs4): Deleted.
4941         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
4942         (text_encode_generic): Delete local variable `charset' and `half'.
4943         (ucs_to_mule_table): Deleted.
4944         (mule_to_ucs_table): Deleted.
4945         (Fset_ucs_char): Deleted.
4946         (ucs_to_char): Deleted.
4947         (Fucs_char): Deleted.
4948         (Fset_char_ucs): Deleted.
4949         (Fchar_ucs): Deleted.
4950         (decode_ucs4): Deleted.
4951         (mule_char_to_ucs4): Deleted.
4952         (encode_ucs4): Deleted.
4953         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
4954         (decode_coding_utf8): Likewise.
4955         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
4956         (char_encode_iso2022): Fixed.
4957         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
4958         `Fset_char_ucs' and `Fchar_ucs'.
4959         (complex_vars_of_file_coding): Don't initialize
4960         `ucs_to_mule_table'.
4961
4962         * objects-tty.c (tty_initialize_font_instance): Don't use
4963         `XCHARSET_COLUMNS'.
4964
4965         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
4966         UTF-2000.
4967
4968         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
4969         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4970
4971         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
4972         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4973         (emchar_string_displayed_columns): Likewise.
4974
4975         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
4976         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4977         (string_column_at_point): Likewise.
4978         (Fmove_to_column): Likewise.
4979
4980         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
4981         `encoding_table' and `decoding_table'.
4982         (CHARSET_REP_BYTES): Deleted.
4983         (XCHARSET_REP_BYTES): Deleted.
4984         (XCHARSET_COLUMNS): Deleted.
4985         (CHAR_COLUMNS): New macro.
4986         (lookup_composite_char): Deleted unconditionally.
4987         (composite_char_string): Likewise.
4988
4989 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4990
4991         * char-ucs.h (Emchar_to_byte_table): New type.
4992         (get_byte_from_character_table): New function interface.
4993         (Vcharset_latin_jisx0201): New variable.
4994         (latin_jisx0201_to_ucs): New variable.
4995         (ucs_to_latin_jisx0201): New variable.
4996         (Vcharset_latin_iso8859_2): New variable.
4997         (latin_iso8859_2_to_ucs): New variable.
4998         (ucs_to_latin_iso8859_2): New variable.
4999         (Vcharset_latin_iso8859_3): New variable.
5000         (latin_iso8859_3_to_ucs): New variable.
5001         (ucs_to_latin_iso8859_3): New variable.
5002         (Vcharset_latin_iso8859_4): New variable.
5003         (latin_iso8859_4_to_ucs): New variable.
5004         (ucs_to_latin_iso8859_4): New variable.
5005         (Vcharset_latin_iso8859_9): New variable.
5006         (latin_iso8859_9_to_ucs): New variable.
5007         (ucs_to_latin_iso8859_9): New variable.
5008         (Vcharset_latin_viscii_lower): New variable.
5009         (latin_viscii_lower_to_ucs): New variable.
5010         (ucs_to_latin_viscii_lower): New variable.
5011         (Vcharset_latin_viscii_upper): New variable.
5012         (latin_viscii_upper_to_ucs): New variable.
5013         (ucs_to_latin_viscii_upper): New variable.
5014         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
5015         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
5016         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
5017         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
5018         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
5019         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
5020         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
5021         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
5022         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
5023         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
5024
5025         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
5026         (Vcharset_latin_viscii_upper): New variable.
5027         (make_byte_from_character_table): New function.
5028         (put_byte_from_character_table): New function.
5029         (get_byte_from_character_table): New function.
5030         (CHAR96): New macro.
5031         (ucs_to_latin_jisx0201): New variable.
5032         (latin_jisx0201_to_ucs): New variable.
5033         (ucs_to_latin_iso8859_2): New variable.
5034         (latin_iso8859_2_to_ucs): New variable.
5035         (ucs_to_latin_iso8859_3): New variable.
5036         (latin_iso8859_3_to_ucs): New variable.
5037         (ucs_to_latin_iso8859_4): New variable.
5038         (latin_iso8859_4_to_ucs): New variable.
5039         (ucs_to_latin_iso8859_9): New variable.
5040         (latin_iso8859_9_to_ucs): New variable.
5041         (ucs_to_latin_viscii_lower): New variable.
5042         (latin_viscii_lower_to_ucs): New variable.
5043         (ucs_to_latin_viscii_upper): New variable.
5044         (latin_viscii_upper_to_ucs): New variable.
5045         (ucs_to_latin_tcvn5712): New variable.
5046         (latin_tcvn5712_to_ucs): New variable.
5047         (Qlatin_viscii_lower): New variable.
5048         (Qlatin_viscii_upper): New variable.
5049         (syms_of_mule_charset): Set up new symbol
5050         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
5051         (complex_vars_of_mule_charset): Set up new charset
5052         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
5053         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
5054         `ucs_to_<CHARSET>' tables.
5055
5056 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
5057
5058         * text-coding.c: New file.
5059
5060 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
5061
5062         * mule-charset.c (Fmake_char): Fix problem of 256-set.
5063
5064         * char-ucs.h (Vcharset_ucs_bmp): New variable.
5065         (MAKE_CHAR): Modify for `ucs-bmp'.
5066         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
5067         non-MULE characters of BMP.
5068
5069 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
5070
5071         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
5072         to 0.6.
5073
5074 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5075
5076         * lstream.h:
5077         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
5078         - Include character.h for `CHAR_ASCII_P'.
5079
5080         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
5081
5082         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
5083         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
5084
5085         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
5086         (BYTE_C0_P): Likewise.
5087         (BYTE_C1_P): Likewise.
5088         (Lstream_get_emchar_1): Likewise.
5089         (Lstream_fput_emchar): Likewise.
5090         (Lstream_funget_emchar): Likewise.
5091         (copy_internal_to_external): Likewise.
5092         (copy_external_to_internal): Likewise.
5093
5094         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
5095         (BYTE_C0_P): Likewise.
5096         (BYTE_C1_P): Likewise.
5097         (Lstream_get_emchar_1): Likewise.
5098         (Lstream_fput_emchar): Likewise.
5099         (Lstream_funget_emchar): Likewise.
5100         (copy_internal_to_external): Likewise.
5101         (copy_external_to_internal): Likewise.
5102
5103         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
5104         (REP_BYTES_BY_FIRST_BYTE): Likewise.
5105
5106         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
5107         (BYTE_ASCII_P): Moved to mb-1byte.h.
5108
5109 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5110
5111         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
5112
5113         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
5114         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
5115         (VALID_CHARPTR_P): Moved to mb-*byte.h.
5116         (VALIDATE_CHARPTR_BACKWARD): Likewise.
5117         (VALIDATE_CHARPTR_FORWARD): Likewise.
5118         (simple_charptr_emchar): Moved to mb-multibyte.h.
5119         (simple_set_charptr_emchar): Likewise.
5120         (simple_charptr_copy_char): Likewise.
5121         (non_ascii_charptr_emchar): Likewise.
5122         (non_ascii_set_charptr_emchar): Likewise.
5123         (non_ascii_charptr_copy_char): Likewise.
5124         (charptr_emchar): Moved to mb-*byte.h.
5125         (set_charptr_emchar): Likewise.
5126         (charptr_copy_char): Likewise.
5127
5128         * mb-1byte.h, mb-multibyte.h: New files.
5129
5130 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5131
5132         * mb-utf-8.h (MULTIBYTE): New macro.
5133         (MAX_EMCHAR_LEN): Moved from buffer.h.
5134         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
5135
5136         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
5137
5138         * mb-lb.h, multibyte.h: New files.
5139
5140         * char-1byte.h (Charset_ID): Moved from buffer.h.
5141         (MIN_LEADING_BYTE): Likewise.
5142         (LEADING_BYTE_ASCII): Likewise.
5143         (NUM_LEADING_BYTES): Likewise.
5144         (CHARSETP): Likewise.
5145         (CHARSET_BY_LEADING_BYTE): Likewise.
5146         (XCHARSET_LEADING_BYTE): Likewise.
5147         (XCHARSET_GRAPHIC): Likewise.
5148         (XCHARSET_COLUMNS): Likewise.
5149         (XCHARSET_DIMENSION): Likewise.
5150         (CHAR_CHARSET): Likewise.
5151         (CHAR_LEADING_BYTE): Likewise.
5152         (BREAKUP_CHAR): Likewise.
5153         (Vcharset_ascii): Likewise.
5154
5155         * buffer.h: Include multibyte.h unconditionally.
5156         (VALID_CHARPTR_P): Moved to multibyte.h.
5157         (ASSERT_VALID_CHARPTR): Likewise.
5158         (REAL_INC_CHARPTR): Likewise.
5159         (REAL_INC_CHARBYTIND): Likewise.
5160         (REAL_DEC_CHARPTR): Likewise.
5161         (INC_CHARPTR): Likewise.
5162         (INC_CHARBYTIND): Likewise.
5163         (DEC_CHARPTR): Likewise.
5164         (VALIDATE_CHARPTR_BACKWARD): Likewise.
5165         (VALIDATE_CHARPTR_FORWARD): Likewise.
5166         (charptr_n_addr): Likewise.
5167         (MAX_EMCHAR_LEN): Moved to mb-*.h.
5168         (simple_charptr_emchar): Moved to multibyte.h.
5169         (simple_set_charptr_emchar): Likewise.
5170         (simple_charptr_copy_char): Likewise.
5171         (non_ascii_charptr_emchar): Likewise.
5172         (non_ascii_set_charptr_emchar): Likewise.
5173         (non_ascii_charptr_copy_char): Likewise.
5174         (charptr_emchar): Likewise.
5175         (set_charptr_emchar): Likewise.
5176         (charptr_copy_char): Likewise.
5177         (charptr_emchar_n): Likewise.
5178         (Charset_ID): Moved to char-1byte.h.
5179         (Vcharset_ascii): Likewise.
5180         (CHAR_CHARSET): Likewise.
5181         (CHAR_LEADING_BYTE): Likewise.
5182         (LEADING_BYTE_ASCII): Likewise.
5183         (NUM_LEADING_BYTES): Likewise.
5184         (MIN_LEADING_BYTE): Likewise.
5185         (CHARSETP): Likewise.
5186         (CHARSET_BY_LEADING_BYTE): Likewise.
5187         (XCHARSET_LEADING_BYTE): Likewise.
5188         (XCHARSET_GRAPHIC): Likewise.
5189         (XCHARSET_COLUMNS): Likewise.
5190         (XCHARSET_DIMENSION): Likewise.
5191         (BREAKUP_CHAR): Likewise.
5192
5193 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5194
5195         * character.h: Add document about interface for characters.
5196
5197         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
5198         (MAKE_CHAR): Delete comment about
5199         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
5200         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
5201         (BREAKUP_CHAR): Modify name of arguments.
5202         (CHAR_CHARSET): Modify name of argument.
5203
5204         * buffer.h: Delete document about Emchar accessors.
5205
5206 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5207
5208         * character.h (CHAR_INTP): Moved from buffer.h
5209         (CHAR_OR_CHAR_INTP): Likewise.
5210         (XCHAR_OR_CHAR_INT): Likewise.
5211         (CHECK_CHAR_COERCE_INT): Likewise.
5212
5213         * buffer.h (CHAR_INTP): Moved to character.h
5214         (CHAR_OR_CHAR_INTP): Likewise.
5215         (XCHAR_OR_CHAR_INT): Likewise.
5216         (CHECK_CHAR_COERCE_INT): Likewise.
5217
5218 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5219
5220         * character.h:
5221         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
5222         - Include char-1byte.h, char-lb.h or char-ucs.h.
5223
5224         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
5225
5226         * buffer.h: Include character unconditionally.
5227         (valid_char_p): Moved to char-*.h.
5228         (non_ascii_valid_char_p): Moved to char-lb.h.
5229
5230         * char-1byte.h, char-lb.h, char-ucs.h: New files.
5231
5232 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5233
5234         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
5235         in UTF-2000 because it is not ported yet and not to use
5236         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
5237         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
5238         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
5239
5240         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
5241         (CHAR_ASCII_P): Moved from character.h.
5242
5243         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
5244         (CHAR_ASCII_P): Likewise.
5245         (CHAR_FIELD1_MASK): Deleted.
5246         (CHAR_FIELD2_MASK): Deleted.
5247         (CHAR_FIELD3_MASK): Deleted.
5248         (MAX_CHAR_BASIC_LATIN): New macro.
5249         (CHAR_FIELD1): Deleted.
5250         (CHAR_FIELD2_INTERNAL): Deleted.
5251         (CHAR_FIELD3_INTERNAL): Deleted.
5252         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
5253         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
5254         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
5255         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
5256         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
5257         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
5258         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
5259         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
5260         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
5261         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
5262         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
5263         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
5264         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
5265         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
5266         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
5267         (MIN_CHAR_COMPOSITION): Deleted.
5268         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
5269         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
5270
5271 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
5272
5273         * buffer.h: Include mb-utf-8.h in UTF-2000.
5274
5275         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
5276
5277         * mb-utf-8.h: New file.
5278
5279 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
5280
5281         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
5282         instead of `int'.
5283
5284         * mule-charset.h, buffer.h (Charset_ID): New type.
5285
5286 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
5287
5288         * mule-canna.c (c2mu): Use `MAKE_CHAR',
5289         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
5290         instead of `MULE_CHAR_PRIVATE_OFFSET',
5291         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
5292         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
5293         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
5294
5295         * character.h (Vcharset_japanese_jisx0212): New variable
5296         definition.
5297
5298 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
5299
5300         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
5301         (charset_by_attributes): Delete array about direction.
5302         (latin_a_char_to_charset): New variable in UTF-2000.
5303         (latin_a_char_to_byte1): New variable in UTF-2000.
5304         (latin_a_char_to_byte2): New variable in UTF-2000.
5305         (Qucs_bmp): New variable.
5306         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
5307         `Bufbyte'.
5308         (next_allocated_2_byte_leading_byte): Likewise.
5309         (non_ascii_set_charptr_emchar): Likewise.
5310         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
5311         `CHARSET_TYPE_256X256' in UTF-2000; modify for
5312         `charset_by_attributes'.
5313         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
5314         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
5315         and `CHARSET_BY_LEADING_BYTE'.
5316         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
5317         `utf-2000-version' to `vars_of_mule_charset'.
5318         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
5319         define `leading-code-private-11' in UTF-2000; move setting of
5320         `utf-2000-version' from `syms_of_mule_charset'.
5321         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
5322         UTF-2000.
5323
5324         * character.h (Charset_ID): New type.
5325         (LEADING_BYTE_UCS_BMP): New macro.
5326         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
5327         (CHARSET_ID_OFFSET_94): New macro.
5328         (MIN_CHARSET_ID_PRIVATE_94): New macro.
5329         (MAX_CHARSET_ID_PRIVATE_94): New macro.
5330         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
5331         final-byte.
5332         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
5333         (LEADING_BYTE_LATIN_JISX0201): Likewise.
5334         (CHARSET_ID_OFFSET_96): New macro.
5335         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
5336         CHARSET_ID_OFFSET_96 and final-byte.
5337         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
5338         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
5339         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
5340         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
5341         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
5342         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
5343         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
5344         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
5345         (LEADING_BYTE_THAI_TIS620): Likewise.
5346         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
5347         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
5348         (CHARSET_ID_OFFSET_94x94): New macro.
5349         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
5350         CHARSET_ID_OFFSET_94x94 and final-byte.
5351         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
5352         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
5353         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
5354         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
5355         (LEADING_BYTE_CHINESE_GB2312): Likewise.
5356         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
5357         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
5358         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
5359         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
5360         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
5361         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
5362         (CHARSET_TYPE_128X128): New macro.
5363         (CHARSET_TYPE_256X256): New macro.
5364         (XCHARSET_PRIVATE_P): Delete unconditionally.
5365         (charset_by_attributes): Delete array about direction.
5366         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
5367         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
5368         (MIN_CHAR_94): New macro.
5369         (MAX_CHAR_94): New macro.
5370         (MIN_CHAR_96): New macro.
5371         (MAX_CHAR_96): New macro.
5372         (MIN_CHAR_94x94): New macro.
5373         (MAX_CHAR_94x94): New macro.
5374         (MIN_CHAR_96x96): New macro.
5375         (MAX_CHAR_96x96): New macro.
5376         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
5377         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
5378         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
5379         - 32)'.
5380         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
5381         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
5382         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
5383         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
5384         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
5385         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
5386         `XCHARSET_LEADING_BYTE' to make code-point.
5387         (latin_a_char_to_charset): New variable.
5388         (latin_a_char_to_byte1): New variable.
5389         (latin_a_char_to_byte2): New variable.
5390         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
5391         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
5392         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
5393
5394         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
5395         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
5396         (find_charsets_in_emchar_string): Likewise.
5397         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
5398
5399         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
5400         `int'.
5401         (decode_coding_iso2022): Likewise.
5402
5403         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
5404         of `unsigned char'.
5405
5406         * redisplay.c (redisplay_text_width_emchar_string): Use
5407         `Charset_ID' instead of `unsigned char'.
5408         (redisplay_frame_text_width_string): Likewise.
5409
5410         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
5411         `unsigned char'.
5412
5413         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
5414         instead of `unsigned char'.
5415         (face_cachel_charset_font_metric_info): Likewise.
5416
5417         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
5418         (get_non_ascii_char_table_value): Likewise.
5419         (get_char_table): Likewise.
5420         (put_char_table): Likewise.
5421         (map_over_other_charset): Likewise.
5422         (map_char_table): Likewise.
5423
5424         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
5425         instead of `unsigned char'.
5426
5427 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
5428
5429         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
5430         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
5431
5432         * mule-charset.c (leading_code_private_11): Don't define in
5433         UTF-2000.
5434
5435         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
5436         in UTF-2000 because it is not ported yet and not to use
5437         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
5438
5439 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
5440
5441         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
5442
5443 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
5444
5445         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
5446         in UTF-2000.
5447
5448         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
5449         of unsigned char to store leading-byte.
5450
5451         * chartab.c (get_non_ascii_char_table_value): Don't use
5452         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
5453
5454         * file-coding.c (encode_coding_big5): Delete bogus implementation
5455         in UTF2000.
5456
5457         * character.h (LEADING_BYTE_*): Delete definition for
5458         non-UTF-2000.
5459         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
5460         (LEADING_BYTE_PREFIX_P): Deleted.
5461         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
5462         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
5463         (BUFBYTE_LEADING_BYTE_P): Deleted.
5464         (CHARSET_PRIVATE_P): Deleted unconditionally.
5465         (rep_bytes_by_first_byte): Deleted unconditionally.
5466         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
5467         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
5468         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
5469         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
5470         (CHAR_FIELD2): Deleted.
5471         (CHAR_FIELD3): Deleted.
5472         (MAKE_CHAR): Delete definition for non-UTF-2000.
5473         (BREAKUP_CHAR_1_UNSAFE): Deleted.
5474         (breakup_char_1): New implementation.
5475         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
5476         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
5477
5478 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
5479
5480         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
5481         condition.
5482
5483 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
5484
5485         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
5486         (CHARSET_PRIVATE_P): Likewise.
5487         (XCHARSET_PRIVATE_P): Likewise.
5488         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
5489
5490         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
5491         UTF2000.
5492         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
5493
5494 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
5495
5496         * character.h (LEADING_BYTE_*): Changed in UTF2000.
5497         (NUM_LEADING_BYTES): Changed from 128 to 256.
5498         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
5499         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
5500         UTF2000.
5501         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
5502
5503         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
5504         UTF2000.
5505         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
5506         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
5507         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
5508         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
5509         (Qchinese_cns11643_3): New variable in UTF2000.
5510         (Qchinese_cns11643_4): New variable in UTF2000.
5511         (Qchinese_cns11643_5): New variable in UTF2000.
5512         (Qchinese_cns11643_6): New variable in UTF2000.
5513         (Qchinese_cns11643_7): New variable in UTF2000.
5514         (syms_of_mule_charset): Define `chinese-cns11643-3',
5515         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
5516         and `chinese-cns11643-7' in UTF2000.
5517         (vars_of_mule_charset): Initialize
5518         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
5519         + 1 in UTF2000.
5520         (complex_vars_of_mule_charset): Setup charset
5521         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
5522         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
5523
5524 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5525
5526         * mule-charset.c: Move setting for `leading-code-private-11' from
5527         `syms_of_mule_charset' to `vars_of_mule_charset'.
5528
5529 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5530
5531         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
5532         and `NUM_LEADING_BYTES' in assert.
5533
5534 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5535
5536         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
5537         instead of 128.
5538         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
5539         `NUM_LEADING_BYTES' instead of 128.
5540
5541 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
5542
5543         * mule-charset.h (charset_by_leading_byte): Use
5544         `NUM_LEADING_BYTES' instead of 128.
5545         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
5546
5547         * mule-charset.c (charset_by_leading_byte): Use
5548         `NUM_LEADING_BYTES' instead of 128.
5549         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
5550
5551         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
5552         128.
5553
5554 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
5555
5556         * mule-charset.c (syms_of_mule_charset): Update to
5557         0.4 (Shin-Imamiya).
5558
5559 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
5560
5561         * file-coding.c (encode_coding_sjis): New implementation for
5562         UTF2000.  (decode_coding_sjis): Ditto.
5563
5564 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
5565
5566         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
5567         Don't define in UTF2000.
5568
5569         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
5570         defined.
5571
5572         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
5573         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
5574         MULE.
5575
5576 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
5577
5578         * config.h.in (CHAR_IS_UCS4): New macro.
5579
5580         * mule-charset.c (rep_bytes_by_first_byte): Modify for
5581         conventional MULE representation.
5582         (syms_of_mule_charset): Update to 0.3 (Imamiya).
5583
5584         * mule-charset.h: Reverted to original.
5585
5586         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
5587         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
5588         "mule-charset.h" if CHAR_IS_UCS4 is defined.
5589
5590         * character.h: New file.
5591
5592         * file-coding.c (Fmake_coding_system): Set 1 to
5593         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
5594         defined.
5595         (encode_coding_no_conversion): New implementation for UTF2000.
5596
5597         * file-coding.h (struct Lisp_Coding_System): Add new member
5598         `fixed.size'.
5599
5600 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
5601
5602         * file-coding.c (decode_coding_iso2022): Code-point arguments of
5603         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
5604         (encode_coding_iso2022): New implementation for UTF2000.
5605
5606 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5607
5608         * mule-canna.c (c2mu): New implementation for UTF2000.
5609         (m2c): Likewise.
5610
5611 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5612
5613         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
5614
5615 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5616
5617         * file-coding.c (reset_encoding_stream): Set 0 to
5618         `str->iso2022.current_char_boundary' in UTF2000.
5619         (encode_utf8): Don't define in UTF2000.
5620         (encode_coding_utf8): New implementation for UTF-8 representation
5621         of UTF2000.
5622         (complex_vars_of_file_coding): Define coding-system `utf-8'.
5623
5624 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5625
5626         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
5627
5628         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
5629         UTF2000.
5630         (REP_BYTES_BY_FIRST_BYTE): Likewise.
5631
5632         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
5633
5634         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
5635         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
5636         as UTF-8 in UTF2000.
5637         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
5638         (non_ascii_valid_char_p): Don't define in UTF2000.
5639         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
5640         (Lstream_get_emchar_1): Likewise.
5641         (utf-2000-version): New variable in UTF2000.
5642
5643         * lread.c (read_escape): Add new reader `u'.
5644
5645         * insdel.c (three_to_one_table): Don't define in UTF2000.
5646         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
5647         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
5648         UTF2000.
5649         (bytind_to_bufpos_func): Likewise.
5650         (buffer_mule_signal_inserted_region): Likewise.
5651         (vars_of_insdel): Don't initialize `three_to_one_table'.
5652         (init_buffer_text): Use `buf->text->mule_size' instead of
5653         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
5654         UTF2000.
5655
5656         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
5657         UTF-8 representation in UTF2000.
5658         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
5659         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
5660         (decode_coding_iso2022): Don't define local variable `lb' in
5661         UTF2000; don't use LEADING_BYTE in UTF2000; use
5662         `DECODE_ADD_UCS_CHAR' in UTF2000.
5663         (convert_to_external_format): Decode as UTF-8 in UTF2000.
5664
5665         * config.h.in (UTF2000): New macro.
5666
5667         * buffer.h (struct buffer_text): Add new member `mule_size' and
5668         don't add `mule_shifter' and `mule_three_p' in UTF2000.
5669         (valid_char_p): Return always 1 in UTF2000.
5670         (MAX_EMCHAR_LEN): 6 in UTF2000.
5671         (three_to_one_table): Don't define in UTF2000.
5672         (real_bufpos_to_bytind): Modify for UTF-8 representation in
5673         UTF2000.
5674         (real_bytind_to_bufpos): Likewise.
5675
5676         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
5677
5678 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5679
5680         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
5681         representation change.
5682         (Vutf_2000_version): New variable.
5683         (leading_code_private_11): New variable.
5684         (syms_of_mule_charset): Add new variables `utf-2000-version' and
5685         `leading-code-private-11'.
5686
5687         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
5688         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
5689         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
5690         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
5691         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
5692         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
5693         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
5694         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
5695         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
5696         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
5697         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
5698         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
5699         (MIN_CHAR_GREEK): New macro.
5700         (MAX_CHAR_GREEK): New macro.
5701         (MIN_CHAR_CYRILLIC): New macro.
5702         (MAX_CHAR_CYRILLIC): New macro.
5703         (MIN_CHAR_HEBREW): New macro.
5704         (MAX_CHAR_HEBREW): New macro.
5705         (MIN_CHAR_THAI): New macro.
5706         (MAX_CHAR_THAI): New macro.
5707         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
5708         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
5709         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
5710         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
5711         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
5712         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
5713         (CHAR_FIELD2): New inline function.
5714         (CHAR_FIELD3): New inline function.
5715         (MULE_CHAR_PRIVATE_OFFSET): New macro.
5716         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
5717         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
5718         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
5719         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
5720         (MIN_CHAR_COMPOSITION): Likewise.
5721         (CHAR_LEADING_BYTE): Modified for character representation change.
5722         (MAKE_CHAR): Likewise.
5723
5724         * lisp.h (Vcharset_latin_iso8859_1): New variable.
5725         (Vcharset_greek_iso8859_7): Likewise.
5726         (Vcharset_cyrillic_iso8859_5): Likewise.
5727         (Vcharset_hebrew_iso8859_8): Likewise.
5728         (Vcharset_thai_tis620): Likewise.
5729         (Vcharset_katakana_jisx0201): Likewise.
5730
5731 2005-02-06  Vin Shelton <acs@xemacs.org>
5732
5733         * XEmacs 21.4.17 is released
5734
5735 2005-01-31  Ben Wing  <ben@xemacs.org>
5736
5737         * emacs.c:
5738         Define assert_failed() always.
5739         * lisp.h:
5740         Always define ABORT().
5741
5742 2005-01-25  Ben Wing  <ben@xemacs.org>
5743
5744         * Makefile.in.in:
5745         * Makefile.in.in (%.o):
5746         Don't compile executable as Windows (-mwindows) under Cygwin.
5747         Semi-recent changes to Cygwin's executable-startup handling make
5748         it impossible to access the TTY this way.
5749
5750         Don't use special linker file under Cygwin (cygwin.sc) except
5751         when non-PDUMP (even in this case it is highly questionable); you
5752         get errors like
5753
5754       1 [main] temacs 1364 fhandler_console::fixup_after_exec: error opening input console handle after exec, errno 13, Win32 error 5
5755    5820 [main] temacs 1364 fhandler_console::fixup_after_exec: error opening output console handle after exec, errno 13, Win32 error 5
5756
5757 2005-01-29  Ben Wing  <ben@xemacs.org>
5758
5759         Port this: 2003-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
5760
5761         * mule-charset.c (get_unallocated_leading_byte): Compiler quietus.
5762
5763 2005-01-29  Ben Wing  <ben@xemacs.org>
5764
5765         * bytecode.c (optimize_compiled_function):
5766         * print.c (FROB):
5767         * print.c (long_to_string):
5768         Add casts to avoid warning.
5769         
5770         * glyphs-eimage.c:
5771         Some really nasty hacks to allow TIFF and JPEG to both be compiled.
5772         #### The better solution is to move the TIFF and JPEG code to
5773         different files.
5774         
5775         * glyphs-msw.c (mswindows_xbm_instantiate):
5776         Define __STDC__ to avoid problems with compface.h.
5777         
5778         * EmacsFrame.c (EmacsFrameRecomputeCellSize):
5779         * EmacsShell-sub.c:
5780         * EmacsShell-sub.c (ABORT):
5781         * EmacsShell-sub.c (SuperClassRootGeometryManager):
5782         * EmacsShell-sub.c (RootGeometryManager):
5783         * EmacsShell.c:
5784         * EmacsShell.c (ABORT):
5785         * EmacsShell.c (EmacsShellUpdateSizeHints):
5786         * alloc.c (free_lcrecord):
5787         * alloca.c (i00afunc):
5788         * buffer.c (delete_from_buffer_alist):
5789         * buffer.c (MARKED_SLOT):
5790         * bytecode.c (execute_rare_opcode):
5791         * bytecode.c (optimize_byte_code):
5792         * bytecode.c (Ffetch_bytecode):
5793         * chartab.c (char_table_type_to_symbol):
5794         * chartab.c (Freset_char_table):
5795         * chartab.c (decode_char_table_range):
5796         * chartab.c (Fget_range_char_table):
5797         * chartab.c (check_valid_char_table_value):
5798         * chartab.c (map_char_table):
5799         * chartab.c (slow_map_char_table_fun):
5800         * chartab.c (chartab_instantiate):
5801         * cm.c (cmcheckmagic):
5802         * console-msw.c (DHEADER):
5803         * console.c (MARKED_SLOT):
5804         * data.c (finish_marking_weak_lists):
5805         * data.c (encode_weak_list_type):
5806         * debug.h (DASSERT):
5807         * device-gtk.c (gtk_init_device):
5808         * device-msw.c (mswindows_get_default_margin):
5809         * device-tty.c (tty_init_device):
5810         * device-x.c (get_device_from_display):
5811         * device-x.c (x_get_visual_depth):
5812         * doprnt.c (parse_doprnt_spec):
5813         * doprnt.c (get_doprnt_args):
5814         * dumper.c (pdump_get_indirect_count):
5815         * dumper.c (pdump_register_sub):
5816         * dumper.c (pdump_register_object):
5817         * dumper.c (pdump_register_struct):
5818         * dumper.c (pdump_dump_data):
5819         * dumper.c (pdump_reloc_one):
5820         * elhash.c (print_hash_table):
5821         * elhash.c (make_standard_lisp_hash_table):
5822         * elhash.c (hash_table_instantiate):
5823         * emacs.c:
5824         * emacs.c (Fforce_debugging_signal):
5825         * emacs.c (sort_args):
5826         * emacs.c (main):
5827         * emacs.c (assert_failed):
5828         * eval.c (throw_or_bomb_out):
5829         * eval.c (signal_1):
5830         * eval.c (Fsignal):
5831         * event-Xt.c:
5832         * event-Xt.c (emacs_Xt_mapping_action):
5833         * event-Xt.c (Xt_process_to_emacs_event):
5834         * event-msw.c:
5835         * event-stream.c (check_event_stream_ok):
5836         * event-stream.c (Fadd_timeout):
5837         * event-stream.c (Fadd_async_timeout):
5838         * event-stream.c (Fdiscard_input):
5839         * event-stream.c (execute_internal_event):
5840         * event-stream.c (Frecent_keys):
5841         * event-stream.c (extract_this_command_keys_nth_mouse_event):
5842         * event-stream.c (lookup_command_event):
5843         * event-unixoid.c (poll_fds_for_input):
5844         * events.c:
5845         * events.c (mark_event):
5846         * events.c (event_equal):
5847         * events.c (event_hash):
5848         * events.c (Fmake_event):
5849         * events.c (Fdeallocate_event):
5850         * events.c (event_chain_find_previous):
5851         * events.c (event_to_character):
5852         * events.c (format_event_object):
5853         * events.c (Fevent_type):
5854         * events.c (event_pixel_translation):
5855         * events.c (Fevent_properties):
5856         * extents.c (extent_in_region_p):
5857         * extents.c (print_extent):
5858         * extents.c (process_extents_for_insertion_mapper):
5859         * extents.c (report_extent_modification_mapper):
5860         * extents.c (glyph_layout_to_symbol):
5861         * faces.c (face_validate):
5862         * file-coding.c (eol_type_to_symbol):
5863         * file-coding.c (subsidiary_coding_system):
5864         * file-coding.c (Fcoding_system_type):
5865         * file-coding.c (Fcoding_system_property):
5866         * file-coding.c (mule_decode):
5867         * file-coding.c (mule_encode):
5868         * file-coding.c (encode_coding_ucs4):
5869         * file-coding.c (encode_coding_utf8):
5870         * file-coding.c (parse_iso2022_esc):
5871         * file-coding.c (encode_coding_iso2022):
5872         * fileio.c:
5873         * fns.c (concat):
5874         * fns.c (Fsubseq):
5875         * fns.c (mapcar1):
5876         * fns.c (Fbase64_encode_region):
5877         * fns.c (Fbase64_encode_string):
5878         * fns.c (Fbase64_decode_region):
5879         * fns.c (Fbase64_decode_string):
5880         * font-lock.c (find_context):
5881         * font-lock.c (context_to_symbol):
5882         * frame-gtk.c (gtk_set_frame_pointer):
5883         * frame-gtk.c (gtk_update_frame_external_traits):
5884         * frame-x.c (x_wm_mark_shell_size_user_specified):
5885         * frame-x.c (x_wm_mark_shell_position_user_specified):
5886         * frame-x.c (x_wm_set_shell_iconic_p):
5887         * frame-x.c (x_wm_set_cell_size):
5888         * frame-x.c (x_wm_set_variable_size):
5889         * frame-x.c (x_wm_store_class_hints):
5890         * frame-x.c (x_wm_maybe_store_wm_command):
5891         * frame-x.c (x_initialize_frame_size):
5892         * frame-x.c (x_update_frame_external_traits):
5893         * frame.c:
5894         * frame.c (delete_frame_internal):
5895         * frame.c (mouse_pixel_position_1):
5896         * frame.c (change_frame_size_1):
5897         * free-hook.c (check_free):
5898         * free-hook.c (check_realloc):
5899         * free-hook.c (note_block_input):
5900         * free-hook.c (log_gcpro):
5901         * gccache-gtk.c (gc_cache_lookup):
5902         * glyphs-eimage.c (tiff_memory_write):
5903         * glyphs-gtk.c (gtk_finalize_image_instance):
5904         * glyphs-gtk.c (init_image_instance_from_gdk_pixmap):
5905         * glyphs-gtk.c (init_image_instance_from_xbm_inline):
5906         * glyphs-gtk.c (gtk_xpm_instantiate):
5907         * glyphs-gtk.c (gtk_unmap_subwindow):
5908         * glyphs-gtk.c (gtk_map_subwindow):
5909         * glyphs-gtk.c (gtk_button_redisplay):
5910         * glyphs-msw.c:
5911         * glyphs-msw.c (init_image_instance_from_xbm_inline):
5912         * glyphs-x.c (init_image_instance_from_xbm_inline):
5913         * glyphs-x.c (extract_xpm_color_names):
5914         * glyphs-x.c (x_xpm_instantiate):
5915         * glyphs.c (get_image_instantiator_governing_domain):
5916         * glyphs.c (print_image_instance):
5917         * glyphs.c (image_instance_equal):
5918         * glyphs.c (image_instance_hash):
5919         * glyphs.c (encode_image_instance_type):
5920         * glyphs.c (make_image_instance_1):
5921         * glyphs.c (inherit_instantiate):
5922         * glyphs.c (image_instantiate):
5923         * glyphs.c (allocate_glyph):
5924         * glyphs.c (Fglyph_type):
5925         * glyphs.c (redisplay_subwindow):
5926         * glyphs.c (display_table_entry):
5927         * gtk-glue.c (xemacs_list_to_gtklist):
5928         * gtk-glue.c (xemacs_gtklist_to_list):
5929         * gtk-glue.c (xemacs_list_to_array):
5930         * gutter.c (SET_GUTTER_WAS_VISIBLE_FLAG):
5931         * gutter.c (gutter_was_visible):
5932         * gutter.c (get_gutter_coords):
5933         * input-method-xlib.c (get_XIM_input):
5934         * insdel.c (bufpos_to_bytind_func):
5935         * insdel.c (bytind_to_bufpos_func):
5936         * insdel.c (move_gap):
5937         * intl.c (x_get_composed_input):
5938         * keymap.c (keymap_lookup_directly):
5939         * keymap.c (keymap_delete_inverse_internal):
5940         * keymap.c (ensure_meta_prefix_char_keymapp):
5941         * keymap.c (accessible_keymaps_mapper_1):
5942         * keymap.c (where_is_recursive_mapper):
5943         * lisp.h:
5944         * lisp.h (ABORT):
5945         * lread.c (read_atom):
5946         * lstream.c (Lstream_delete):
5947         * lstream.c (make_lisp_buffer_stream_1):
5948         * macros.c (pop_kbd_macro_event):
5949         * malloc.c (malloc):
5950         * malloc.c (free):
5951         * marker.c (bi_marker_position):
5952         * marker.c (set_bi_marker_position):
5953         * menubar-gtk.c (menu_descriptor_to_widget_1):
5954         * menubar-msw.c (prune_menubar):
5955         * menubar-x.c (set_frame_menubar):
5956         * mule-charset.c (get_unallocated_leading_byte):
5957         * mule-charset.h (CHAR_LEADING_BYTE):
5958         * native-gtk-toolbar.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
5959         * nt.c (init_environment):
5960         * nt.c (generate_inode_val):
5961         * ntproc.c (delete_child):
5962         * ntproc.c (_sys_read_ahead):
5963         * ntproc.c (create_child):
5964         * objects.c (color_instantiate):
5965         * objects.c (font_instantiate):
5966         * objects.c (face_boolean_instantiate):
5967         * print.c (printing_major_badness):
5968         * process-nt.c (nt_send_process):
5969         * process-unix.c (unix_send_process):
5970         * process.c (get_process):
5971         * ralloc.c (obtain):
5972         * ralloc.c (relinquish):
5973         * ralloc.c (relocate_blocs):
5974         * ralloc.c (resize_bloc):
5975         * ralloc.c (r_alloc_free):
5976         * ralloc.c (r_re_alloc):
5977         * ralloc.c (r_alloc_thaw):
5978         * ralloc.c (init_ralloc):
5979         * ralloc.c (Free_Addr_Block):
5980         * ralloc.c (r_alloc):
5981         * redisplay-gtk.c (gtk_output_display_block):
5982         * redisplay-msw.c (mswindows_output_display_block):
5983         * redisplay-output.c (get_next_display_block):
5984         * redisplay-output.c (get_cursor_size_and_location):
5985         * redisplay-output.c (redisplay_output_layout):
5986         * redisplay-output.c (redisplay_clear_region):
5987         * redisplay-tty.c (tty_output_display_block):
5988         * redisplay-x.c (x_output_display_block):
5989         * redisplay.c (add_propagation_runes):
5990         * redisplay.c (add_glyph_rune):
5991         * redisplay.c (create_text_block):
5992         * redisplay.c (add_margin_runes):
5993         * redisplay.c (create_left_glyph_block):
5994         * redisplay.c (create_right_glyph_block):
5995         * redisplay.c (create_string_text_block):
5996         * redisplay.c (regenerate_window):
5997         * redisplay.c (REGEN_INC_FIND_START_END):
5998         * redisplay.c (redisplay_frame):
5999         * redisplay.c (point_in_line_start_cache):
6000         * regex.c:
6001         * regex.c (ABORT):
6002         * regex.c (re_compile_fastmap):
6003         * regex.c (re_match_2_internal):
6004         * regex.c (regerror):
6005         * scrollbar-gtk.c (gtk_scrollbar_loop):
6006         * scrollbar-gtk.c (scrollbar_cb):
6007         * scrollbar-gtk.c (gtk_update_frame_scrollbars):
6008         * scrollbar-msw.c (mswindows_handle_scrollbar_event):
6009         * scrollbar-x.c (x_update_scrollbar_instance_status):
6010         * scrollbar-x.c (x_scrollbar_loop):
6011         * scrollbar-x.c (x_update_frame_scrollbars):
6012         * search.c (search_command):
6013         * search.c (Fmatch_data):
6014         * select-x.c (motif_clipboard_cb):
6015         * signal.c (interrupt_signal):
6016         * specifier.c (specifier_add_spec):
6017         * specifier.c (specifier_instance_from_inst_list):
6018         * specifier.c (specifier_instance):
6019         * specifier.h:
6020         * specifier.h (struct specifier_methods):
6021         * strftime.c (add_num_time_t):
6022         * sunplay.c (init_device):
6023         * symbols.c (Fsetplist):
6024         * symbols.c (do_symval_forwarding):
6025         * symbols.c (store_symval_forwarding):
6026         * symbols.c (Fset):
6027         * symbols.c (Fbuilt_in_variable_type):
6028         * symbols.c (decode_magic_handler_type):
6029         * symbols.c (handler_type_from_function_symbol):
6030         * syntax.c (update_syntax_cache):
6031         * sysdep.c (init_baud_rate):
6032         * toolbar-gtk.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6033         * toolbar-msw.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6034         * toolbar-x.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6035         * toolbar.c (get_toolbar_coords):
6036         * ui-gtk.c (build_gtk_boxed):
6037         * ui-gtk.c (describe_gtk_arg):
6038         * ui-gtk.c (gtk_type_to_lisp):
6039         * ui-gtk.c (lisp_to_gtk_type):
6040         * ui-gtk.c (lisp_to_gtk_ret_type):
6041         * ui-gtk.c (lisp_to_flag):
6042         * unexnt.c (read_in_bss):
6043         * unexnt.c (map_in_heap):
6044         * window.c (real_window):
6045         * window.c (window_display_lines):
6046         * window.c (window_display_buffer):
6047         * window.c (set_window_display_buffer):
6048         * window.c (window_modeline_height):
6049         * window.c (unshow_buffer):
6050         * window.c (window_loop):
6051         * window.c (Fget_lru_window):
6052         * window.c (Fsplit_window):
6053         * window.c (Fset_window_configuration):
6054         * window.c (saved_window_index):
6055         * xgccache.c (gc_cache_lookup):
6056         abort() -> ABORT().  Eliminate preprocessor games with abort()
6057         since it creates huge problems in VC7, solvable only by including
6058         massive amounts of files in every compile (and not worth it).
6059
6060         * sysdep.c:
6061         * sysproc.h:
6062         Inclusion of process.h does not need to be before lisp.h any more.
6063         Move later and remove comment about abort().
6064
6065 2005-01-26  Arnaud Giersch  <arnaud.giersch@free.fr>
6066
6067         * regex.c (re_match_2_internal):
6068         Correctly initialize loop which clears uninitialized registers.
6069
6070 2005-01-28  Vin Shelton  <acs@xemacs.org>
6071
6072         * sheap.c (more_static_core): Applied Ben's version of the long
6073         string patch.
6074
6075 2005-01-24  Vin Shelton  <acs@xemacs.org>
6076
6077         * sheap.c (more_static_core): Reformatted printf string so
6078         gcc-3.3.3 will compile this on Cygwin.
6079
6080 2004-02-22  Stephen J. Turnbull  <stephen@xemacs.org>
6081
6082         * console.c (function_key_map): Reference `key-binding'.
6083
6084         * keymap.c (Vkey_translation_map): Improve docstring.
6085
6086 2004-03-30  Zajcev Evgeny  <zevlg@yandex.ru>
6087
6088         * window.c: Declare `allow_deletion_of_last_visible_frame' extern.
6089         * window.c (window_loop): [fix] Take into account
6090         `allow-deletion-of-last-visible-frame' variable.
6091         * window.c (replace-buffer-in-windows): Ditto.
6092
6093 2004-12-15  Stephen J. Turnbull  <stephen@xemacs.org>
6094
6095         * EmacsManager.c (EmacsManagerChangeSize): Respect XtGeometryNo.
6096
6097 2005-01-20  Malcolm Purvis  <malcolmp@xemacs.org>
6098
6099         * event-gtk.c: Recognise AltGr as a valid modifier.
6100
6101 2005-01-12  Ville Skyttä  <scop@xemacs.org>
6102
6103         * console-x.h: #include X11/keysym.h before xintrinsic.h.
6104
6105 2005-01-13  Stephen J. Turnbull  <stephen@xemacs.org>
6106
6107         Fix backreference bug caught by test suite.
6108
6109         * regex.c (regex_compile):
6110         Make backref duplicate internal register.
6111
6112 2005-01-13  Stephen J. Turnbull  <stephen@xemacs.org>
6113
6114         Documentation, code clarification, and warning suppression.
6115         
6116         * regex.c (regex_compile):
6117         Improve comments.
6118         (re_match_2_internal):
6119         Improve comments and avoid redundant braces.  [Most of the big hunk
6120         at l. 4710 is indentation; use diff -w to see the real changes.]
6121         (alt_match_null_string_p):
6122         (common_op_match_null_string_p):
6123         Avoid shadowing global on Mac OS X 10.4, at least.
6124
6125 2004-09-08  Stephen J. Turnbull  <stephen@xemacs.org>
6126
6127         * regex.c (regcomp): Fix "unsigned comparison" warning (maybe
6128         introduced with shy groups fix).  [Already applied, probably
6129         with the second "fix shy groups" patch of 2004-10-07.] 
6130
6131 2005-01-10  Steve Youngs  <steve@sxemacs.org>
6132
6133         From Andrey Slusar <anrays@gmail.com>:
6134
6135         * unexelf.c: define `Elfw(type)' for FreeBSD alpha and amd64.
6136
6137 2004-11-21  Malcolm Purvis  <malcolmp@xemacs.org>
6138
6139         * Makefile (RECURSIVE_MAKE): Removed.
6140         * Makefile (RECURSIVE_MAKE_ARGS): New.  The new method for
6141         handling parallel builds.
6142
6143 2004-09-08  Malcolm Purvis  <malcolmp@xemacs.org>
6144
6145         * Makefile.in.in: Enable support for parallel builds.
6146
6147 2005-01-09  Steve Youngs  <steve@sxemacs.org>
6148
6149         From Andrey Slusar <anrays@gmail.com>:
6150
6151         * s/freebsd.h (LIBS_SYSTEM): Only set to "-lutil -lxpg4" if
6152         FreeBSD version is >= 199701 _and_ < 600006.
6153
6154 2005-01-06  Zajcev Evgeny <zevlg@yandex.ru>
6155
6156         * scrollbar.c (compute_scrollbar_instance_usage):
6157         Only call device method compute_scrollbar_instance_usage() if it
6158         is defined.
6159
6160 2004-12-05  Vin Shelton <acs@xemacs.org>
6161
6162         * XEmacs 21.4.16 is released
6163
6164 2004-12-04  Vin Shelton  <acs@xemacs.org>
6165
6166         * depend: Regenerated.
6167
6168 2004-10-07  Stephen J. Turnbull  <stephen@xemacs.org>
6169
6170         * regex.c (re_match_2_internal): Map internal to external
6171         registers.  Fixes bug identified by Steve Youngs 2004-09-30
6172         <microsoft-free.87ekkjhj7t.fsf@youngs.au.com>.
6173
6174 2004-09-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
6175
6176         * buffer.c (Frecord_buffer): Make sure the argument is buffer
6177         to fix a crash.  Also, check the buffer is live and it
6178         really exists in buffer_list.  If the buffer is not in the list,
6179         prepend it.
6180
6181 2004-09-08  Stephen J. Turnbull  <stephen@xemacs.org>
6182
6183         Fix shy groups by implementing recording of all groups for
6184         repetition and backtracking.  Backport from 21.5.
6185         
6186         * regex.h (struct re_pattern_buffer): Add members re_ngroups,
6187         external_to_internal_register, external_to_internal_register_size,
6188         and update comments for re_nsub.
6189
6190         * regex.c (re_opcode_t): Update comments.
6191         (print_compiled_pattern): Ouput external_to_internal_register,
6192         external_to_internal_register_size, and re_ngroups for debugging.
6193         (INIT_REG_TRANSLATE_SIZE): New manifest constant.
6194         (regex_compile): Update header comment.
6195         Ensure that all groups are recorded so that repeat matches and
6196         backtracking work correctly.  Comment related warning for groups >
6197         255.
6198         (re_search_2): Construct map of API indexes (which count only
6199         nonshy groups) to internal register numbers, and keep it updated.
6200
6201 2004-07-27  Malcolm Purvis  <malcolmp@xemacs.org>
6202
6203         * frame-gtk.c (gtk_make_frame_visible):
6204         * frame-gtk.c (gtk_make_frame_invisible): Use map/unmap instead of
6205         show/hide.  This is what X uses and is prevents previously hidden
6206         widgets from suddenly reappearing.
6207         * gtk-xemacs.c (gtk_xemacs_paint):
6208         * gtk-xemacs.c (gtk_xemacs_draw):
6209         * gtk-xemacs.c (gtk_xemacs_expose): Only operate if the widget is
6210         drawable.
6211         * scrollbar-gtk.c (gtk_update_scrollbar_instance_status): Force
6212         size and location changes so that they can be seen before the next
6213         idle event.  Without this rapid changes to scrollbar properties
6214         are not seen.
6215
6216 2004-07-02  Malcolm Purvis  <malcolmp@xemacs.org>
6217
6218         * console-gtk.h:
6219         * console-gtk.h (struct gtk_frame):
6220         * console-gtk.h (FRAME_GTK_WIDGET_INSTANCE_HASH_TABLE):
6221           Add hash tables track tab_control callback data.
6222           Added #defines for GTK object data names.
6223           Declaration of gtk_widget_to_frame().
6224         * event-gtk.c (enqueue_gtk_dispatch_event) No longer static:
6225         * frame-gtk.c (gtk_widget_to_frame): New.
6226         * frame-gtk.c (gtk_create_widgets):
6227         * frame-gtk.c (allocate_gtk_frame_struct):
6228         * frame-gtk.c (gtk_mark_frame):
6229         Manage frame callbakc hash tables.
6230         * glyphs-gtk.c (gtk_map_subwindow): Fix size and moving bugs.
6231         * glyphs-gtk.c (gtk_redisplay_widget): Use correct size for widgets.
6232         * glyphs-gtk.c (gtk_widget_instantiate_1): Force reconsideration
6233         of widget size.
6234         * glyphs-gtk.c (gtk_widget_query_geometry): New
6235         * glyphs-gtk.c (gtk_register_gui_item): New
6236         * glyphs-gtk.c (gtk_add_tab_item): New
6237         * glyphs-gtk.c (gtk_tab_control_callback): New
6238         * glyphs-gtk.c (gtk_tab_control_instantiate): New
6239         * glyphs-gtk.c (gtk_tab_control_redisplay): Set notebook page.
6240         Use correct list when loading item.
6241         * glyphs-gtk.c (image_instantiator_format_create_glyphs_gtk):
6242         Register new methods.
6243         * gtk-xemacs.c (gtk_xemacs_size_allocate): Use XEmacs size, not
6244         default size, for widgets.
6245         * gui-x.c:  Improved comment.
6246         * menubar-gtk.c (__generic_button_callback): Use
6247         gtk_widget_to_frame instead of __get_channel.
6248         * scrollbar-gtk.c:
6249         * ui-gtk.c: Use symbolic names for GTK object data.
6250
6251 2004-06-23  Ilya N. Golubev <gin@mo.msk.ru>
6252
6253         * s/usg5-4.h (NSIG): Define only inside emacs binary.
6254
6255 2002-03-04  Stephen J. Turnbull  <stephen@xemacs.org>
6256
6257         * fileio.c (Fwrite_region_internal): Document use of start == Qnil.
6258
6259 2004-06-16  Malcolm Purvis  <malcolmp@xemacs.org>
6260
6261         * malloc.c (morecore): siz is a long because in some architectures
6262         (eg ia-64) an int cannot hold the address range.  Additional patch
6263         from the SuSe distribution.
6264
6265 2004-06-13  Malcolm Purvis  <malcolmp@xemacs.org>
6266
6267         * emacs.c:
6268         * malloc.c: lim_data is a long because in some architectures
6269         (eg ia-64) an int cannot hold the address range.
6270         * mem-limits.h: lim-data is a long.  Linux uses getrlimit()
6271         instead of ulimit() because ulimit() always returns -1.
6272
6273 2004-06-09  Stephen J. Turnbull  <stephen@xemacs.org>
6274
6275         * search.c: Reenable an ansync semaphore.  Remove bogus comments.
6276
6277 2004-06-11  David Kastrup  <dak@gnu.org>
6278
6279         * search.c (match_limit): Don't flag an error if match-data
6280         exceeding the allocated search_regs.num_regs gets requested, just
6281         return Qnil.
6282
6283 2003-07-21  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
6284
6285         * glyphs-gtk.c (gtk_xpm_instantiate): Rewrite the XPM data to
6286         replace symbolic color entries with the real colors specified in
6287         xpm-color-symbols, before passing the XPM to gtk.
6288         * glyphs-gtk.h: Use the generic pixmap_image_instance.mask for masks,
6289         instead of a GTK specific field, so that it is used in by generic
6290         code.
6291
6292 2004-05-05  Chuck Hines <chuck.hines@baesystems.com>
6293
6294        * dgif_lib.c (DGifSlurp): Changed do-while to while to stop
6295         coredump from deref of NULL ptr (ExtData)
6296
6297 2004-04-19  Jerry James  <james@xemacs.org>
6298
6299         * data.c (sign_extend_lisp_int): Use INT_VALBITS instead of
6300         VALBITS to compute the location of the sign bit.
6301         * event-stream.c (Fcurrent_event_timestamp): Replace incorrect use
6302         of VALBITS with EMACS_INT_MAX.
6303         * events.c (Fevent_timestamp): Ditto.
6304         * events.c (TIMESTAMP_HALFSPACE): Change VALBITS to INT_VALBITS to
6305         compute the halfway point to timestamp wraparound.
6306         * floatfns.c (float_to_int): Compare against EMACS_INT_MAX and
6307         EMACS_INT_MIN instead of using VALBITS.
6308         * floatfns.c (Flogb): Use EMACS_INT_MIN instead of building an
6309         incorrect number with VALBITS.
6310         * fns.c (Frandom): Correct number of integer bits in docstring.
6311         Use INT_VALBITS instead of VALBITS to compute the denominator.
6312         * sysdep.c (get_random): Use INT_VALBITS instead of VALBITS to
6313         build random numbers.
6314
6315 2004-03-23  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
6316         * event-gtk.c:
6317         * event-gtk.c (gtk_event_to_emacs_event):
6318         * menubar-gtk.c:
6319         * menubar-gtk.c (gtk_xemacs_menubar_class_init):
6320         * menubar-gtk.c (gtk_xemacs_menubar_size_request):
6321         * menubar-gtk.c (gtk_xemacs_accel_label_get_type):
6322         * menubar-gtk.c (gtk_xemacs_set_accel_keys):
6323         * menubar-gtk.c (__activate_menu):
6324         * menubar-gtk.c (convert_underscores):
6325         * menubar-gtk.c (remove_underscores):
6326         * menubar-gtk.c (menu_convert):
6327         * menubar-gtk.c (menu_descriptor_to_widget_1):
6328         * menubar-gtk.c (menu_descriptor_to_widget):
6329         * menubar-gtk.c (menu_can_reuse_widget):
6330         * menubar-gtk.c (menu_create_menubar):
6331         * menubar-gtk.c (gtk_popup_menu):
6332         * menubar-gtk.c (Fgtk_build_xemacs_menu):
6333         Added support for Gtk menu bar and menu item mnemonics.
6334
6335 2004-03-23  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
6336
6337         * sysdll.c: (dll_function): Added support for finding symbols in
6338         Darwin shared libraries as well in Darwin bundles.
6339         * sysdll.c (image_for_address): New
6340         * sysdll.c (my_find_image): New
6341         * sysdll.c (search_linked_libs): New
6342
6343 2004-03-23  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
6344
6345         * ui-gtk.c (__internal_callback_marshal): Marshalling data to
6346         return to GTK requires a different API to marshalling data to use
6347         as GTK parameters.
6348         * ui-gtk.c (lisp_to_gtk_ret_type): New.
6349
6350 2004-03-08  Lutz Euler  <lutz.euler@freenet.de>
6351
6352         * lstream.c (Lstream_pseudo_close): Fix test for LSTREAM_FL_IS_OPEN.
6353
6354 2004-02-19  Stephen J. Turnbull  <stephen@xemacs.org>
6355
6356         * glyphs.c (process_image_string_instantiator):
6357         (Fset_console_type_image_conversion_list):
6358         Stop GCC from warning about shadowing of `exp'.
6359
6360         * redisplay-x.c (x_output_string): Fix unsigned lossage.
6361
6362 2004-02-19  Stephen J. Turnbull  <stephen@xemacs.org>
6363
6364         * regex.c (re_match_2_internal): Shut up GCC about syn1, syn2.
6365
6366 2004-02-03  Vin Shelton  <acs@xemacs.org>
6367
6368         * glyphs.c (image_instance_layout): Remove pointless assertion.
6369         * regex.c (regex_grow_registers): Return type is void.
6370
6371 2004-02-02  Vin Shelton <acs@xemacs.org>
6372
6373         * XEmacs 21.4.15 is released
6374
6375 2004-01-30  Glynn Clements  <glynn.clements@virgin.net>
6376
6377         * device-x.c (x_error_handler): Don't call stderr_out
6378
6379 2003-11-07  Katsumi Yamaoka <yamaoka@jpl.org>
6380
6381         * buffer.c (other-buffer): Clarify documentation of order of
6382         arguments for FSF Emacs.
6383
6384 2003-10-11  Olivier Galibert  <galibert@pobox.com>
6385
6386         * window.c (Fdelete_window): Dirty the mirror structure _before_
6387         marking the window deleted.
6388
6389 2003-09-15  Jerry James  <james@xemacs.org>
6390
6391         * event-msw.c (debug_mswin_messages): Conditionally compile
6392         messages missing from the Cygwin headers.
6393
6394 2003-06-16  Stephen J. Turnbull  <stephen@xemacs.org>
6395
6396         * data.c (eq_with_ebola_notice): Fix typo in comment.
6397         (Ftrue_list_p): Improve docstring.
6398
6399 2003-10-13  Stephen J. Turnbull  <stephen@xemacs.org>
6400
6401         * frame-x.c (x_update_frame_external_traits): Fix XtSetArg idiom.
6402
6403 2003-09-27  Stephen J. Turnbull  <stephen@xemacs.org>
6404
6405         * search.c (trivial_regexp_p): Regexps containing "\{" are
6406         nontrivial.  Thanks to Manfred Bartz for reporting the bug and
6407         Stefan Monnier for suggesting a diagnosis.
6408
6409 2003-09-25  Stephen J. Turnbull  <stephen@xemacs.org>
6410
6411         * elhash.c (make-hash-table): Clarify use of :test #'equal.
6412
6413 2003-09-12  Stephen J. Turnbull  <stephen@xemacs.org>
6414
6415         * search.c (Fsearch_forward):
6416         (Fsearch_backward):
6417         Document negative count.
6418
6419 2003-09-13  Stephen J. Turnbull  <stephen@xemacs.org>
6420
6421         * regex.c (re_max_failures): Bump to 20000 for REGEX_MALLOC, too.
6422
6423 2003-09-13  Martin Buchholz  <martin@xemacs.org>
6424
6425         * s/sol2.h: Use OS_RELEASE=os_release_major*100+os_release_minor
6426
6427 2003-09-15  Vin Shelton  <acs@xemacs.org>
6428
6429         * .gdbinit (pobj): Remove Ilya's fix that was only intended for
6430         21.5.
6431
6432 2003-09-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
6433
6434         * regex.c (TRANSLATE_EXTENDED_UNSAFE): Remove.
6435         (re_search_2): Match the first byte of Bufbyte, not Emchar.
6436         (re_match_2_internal): Use TRANSLATE instead of
6437         TRANSLATE_EXTENDED_UNSAFE.  The latter was a hack to bypass
6438         non-ASCII char case conversion.
6439
6440 2003-09-08  Mike Sperber  <mike@xemacs.org>
6441
6442         * symbols.c (Fvariable_binding_locus): Add, as per suggestion from
6443         RMS at: http://article.gmane.org/gmane.emacs.pretest.bugs/1010
6444
6445 2003-06-14  Ilya N. Golubev  <gin@mo.msk.ru>
6446
6447        * .gdbinit (pobj): fix printing of symbol name.
6448
6449 2003-08-01  Ilya N. Golubev  <gin@mo.msk.ru>
6450
6451         * frame-x.c (x_layout_widgets): When resizing is about to cause
6452         frame size slip, mark it for redisplay.
6453
6454 2003-08-18  Jerry James  <james@xemacs.org>
6455
6456         * opaque.h: Remove unused (X)OPAQUE_MARKFUN definitions.
6457
6458 2003-09-03  Vin Shelton <acs@xemacs.org>
6459
6460         * XEmacs 21.4.14 is released
6461
6462 2003-08-15  Stephen J. Turnbull  <stephen@xemacs.org>
6463
6464         * config.h.in (REGEX_MALLOC): Make it configure'able.
6465
6466 2003-08-14  Andrew Begel  <abegel@CS.Berkeley.EDU>
6467
6468         * config.h.in: Add HAVE_DYLD to indicate Darwin/MacOSX dynamic
6469         linking.
6470         * sysdll.c (dll_init):
6471         * sysdll.c (dll_open):
6472         * sysdll.c (dll_close):
6473         * sysdll.c (dll_function):
6474         * sysdll.c (dll_variable):
6475         * sysdll.c (dll_error):
6476         Add support for loading bundles using Darwin/MacOSX
6477         native API.
6478
6479 2003-08-12  Stephen J. Turnbull  <stephen@xemacs.org>
6480
6481         * process.c (start-process-internal): Document coding systems.
6482
6483 2003-07-30  Jerry James  <james@xemacs.org>
6484
6485         * sysdll.c: configure sets HAVE_DLD_INIT, not HAVE_INIT_DLD.
6486
6487 2003-07-31  René Kyllingstad  <listmailxemacs@kyllingstad.com>
6488
6489         * event-msw.c (mswindows_enqueue_mouse_button_event):
6490         * event-msw.c (mswindows_wnd_proc):
6491           enqueue button event when scrollwheel event isn't handled by 
6492           mswindows_handle_mousewheel_event, such as when the scrollbars
6493           are not showing.
6494
6495 2003-07-29  Stephen J. Turnbull  <stephen@xemacs.org>
6496
6497         * EmacsFrame.c (emacsFrameClassRec): Motif groks not XtCompress*.
6498
6499 2003-03-24  Stephen J. Turnbull  <stephen@xemacs.org>
6500
6501         * database.c (Fopen_database): Don't use DB_AUTO_COMMIT.
6502
6503 2003-03-21  Stephen J. Turnbull  <stephen@xemacs.org>
6504
6505         * regex.c (re_match_2_internal): Fix matching degenerate word
6506         boundaries.
6507
6508 2003-05-25  XEmacs Build Bot <builds@cvs.xemacs.org>
6509
6510         * XEmacs 21.4.13 is released
6511
6512 2003-03-20  Stephen J. Turnbull  <stephen@xemacs.org>
6513
6514         * config.h.in (INTPTR_T_IN_CYGWIN_TYPES_H): 
6515         * lisp.h (<inttypes.h>):
6516         Cygwin defines these types in <cygwin/types.h>.  Don't duplicate
6517         the definition.
6518
6519 2003-03-15  Martin Buchholz  <martin@xemacs.org>
6520
6521         * dumper.c (pdump_load): Pdump'ed XEmacs can't find its .dmp file.
6522         Scenario: Prepend ~/bin to PATH; then `mkdir ~/bin/xemacs'
6523         Result: "temacs can only be run in -batch mode."
6524         Fix: Check xemacs executable candidate for directory-ness.
6525
6526 2003-03-03  Robert Pluim  <rpluim@bigfoot.com>
6527
6528         * database.c: Don't use the u_int8_t etc typedefs on FreeBSD,
6529           they conflict with <sys/types.h>.
6530
6531 2003-02-14  Martin Buchholz  <martin@xemacs.org>
6532
6533         * database.c: Berkeley DB wants __STDC__ to be defined.
6534
6535 2003-02-13  Martin Buchholz  <martin@xemacs.org>
6536
6537         * EmacsFrame.c: Use symbolic name `NotUseful' in lieu of `0'.
6538
6539 2003-02-01  Martin Buchholz  <martin@xemacs.org>
6540
6541         * process-unix.c (unix_send_process): Fix C++ compile error.
6542
6543 2003-02-25  Andrew Begel  <abegel@cs.berkeley.edu>
6544
6545         * Added .dylib as an acceptable shared library file extension
6546         * to support MacOSX.
6547
6548 2003-02-01  Martin Buchholz  <martin@xemacs.org>
6549
6550         * EmacsFrameP.h (EmacsFramePart):
6551         Kludge to allow compiling with Motif1, but linking with Motif2.
6552
6553 2003-01-28  Martin Buchholz  <martin@xemacs.org>
6554
6555         * config.h.in (_ALL_SOURCE): Guard against multiple definition.
6556
6557
6558 2003-02-23  Stephen J. Turnbull  <stephen@xemacs.org>
6559
6560         * config.h.in (DLSYM_NEEDS_UNDERSCORE): Define on darwin.
6561
6562 2003-02-06  Andrew Begel  <abegel@CS.Berkeley.EDU>
6563
6564         * sysdll.c: Included lisp.h to define needed alloca_array.
6565
6566 2003-02-13  Martin Buchholz  <martin@xemacs.org>
6567
6568         Make XEmacs redisplay 10 times faster.
6569         If, that is, you're using a slow X connection and MoveOpaque.
6570         Use compress_exposure = XtExposeCompressMaximal | XtExposeNoRegion.
6571         Use compress_motion = TRUE.
6572         * EmacsFrame.c (emacsFrameClassRec): 
6573         * EmacsShell-sub.c (EMACS_SHELL_CLASS_REC):
6574         * EmacsManager.c (emacsManagerClassRec):
6575         * xintrinsicp.h: Make sure XtExposeNoRegion is defined.
6576
6577 2003-01-30  Vin Shelton  <acs@xemacs.org>
6578
6579         * s/linux.h (ORDINARY_LINK): define ORDINARY_LINK for linux.
6580
6581 2003-01-17  Stephen J. Turnbull  <stephen@xemacs.org>
6582
6583         * glyphs-eimage.c (tiff_memory_seek): Lobotomize unsigned typedef.
6584         Patch by Martin Buchholz.
6585
6586 2003-01-16  Stephen J. Turnbull  <stephen@xemacs.org>
6587
6588         * glyphs-eimage.c (tiff_instantiate): Fix unsigned comparison.
6589         Thanks to icc for warning and Martin Buchholz for reporting.
6590
6591 2003-01-29  Vin Shelton <acs@xemacs.org>
6592
6593         Patch courtesy of Andrew Begel <abegel@cs.berkeley.edu>
6594
6595         * dynarr.c (Dynarr_realloc): memcpy copies number of bytes, so
6596         remember to multiply by the element size.
6597
6598 2003-01-15  Stephen J. Turnbull  <stephen@xemacs.org>
6599
6600         * XEmacs 21.4.12 "Portable Code" is released.
6601
6602 2003-01-14  Sergey Okhapkin <sos@prospect.com.ru>
6603
6604         * Makefile.in.in (ldflags): re-order sections for gcc 3.2.
6605         * s/cygwin.sc: new linker file.
6606
6607 2003-01-14  Stephen J. Turnbull  <stephen@xemacs.org>
6608
6609         Build fixes courtesy Martin Buchholz <martin@xemacs.org>:
6610
6611         * redisplay-x.c (x_output_string): Use X11-specified types.
6612         * syntax.c, syntax.h (SYNTAX_CODE): Use enum syntaxcode, not int.
6613         * emacs.c (__free_hook): Use typeof with Intel compiler.
6614         * config.h.in (alloca.h): Quick safe hack to please Intel compiler.
6615
6616 2003-01-08  Andy Piper  <andy@xemacs.org>
6617
6618         * unexcw.c (copy_executable_and_dump_data_section): Set the stack
6619         reserve size during unexec().
6620
6621 2003-01-07  Daiki Ueno  <daiki@xemacs.org>
6622
6623         * process-unix.c (unix_create_process): Don't let outchannel block.
6624
6625 2003-01-05  Rick Rankin  <rick_rankin@yahoo.com>
6626
6627         * emacs.c: Include "syswindows.h" when compiling under Cygwin.
6628         Needed for IsBadReadPtr().
6629
6630 2003-01-03  Stephen J. Turnbull  <stephen@xemacs.org>
6631
6632         * XEmacs 21.4.11 "Native Windows TTY Support" is released.
6633
6634 2002-12-14  Ben Wing  <ben@xemacs.org>
6635
6636         * callint.c: Declaration error.
6637         * dumper.c (pdump):
6638         * dumper.c (pdump_load): Warning fix.
6639         * process.c: GCPRO error.
6640         * glyphs.c (unmap_subwindow):
6641         * glyphs.c (map_subwindow): Parenthesizing errors with ! and &&.
6642         * event-stream.c (maybe_kbd_translate): Wrong argument to
6643         character_to_event().
6644
6645         * alloc.c (garbage_collect_1):
6646         * emacs.c:
6647         * emacs.c (debug_can_access_memory):
6648         * emacs.c (fatal_error_signal):
6649         * emacs.c (mswindows_handle_hardware_exceptions):
6650         * emacs.c (main_1):
6651         * emacs.c (main):
6652         * emacs.c (assert_failed):
6653         * emacs.c (syms_of_emacs):
6654         * lisp.h:
6655         * print.c:
6656         * print.c (std_handle_out_va):
6657         * print.c (write_string_to_stdio_stream):
6658         * print.c (write_fmt_string):
6659         * print.c (printing_badness):
6660         * print.c (printing_major_badness):
6661         * print.c (print_internal):
6662         * print.c (debug_print_no_newline):
6663         * print.c (debug_backtrace):
6664         Be more defensive in handling bad values when printing.  Add code
6665         from trunk involving inhibit_non_essential_printing_operations.
6666         When going down or in debug_print(), don't do external conversion
6667         and such and try really, really hard when printing to avoid core
6668         dumping.  Add force-debugging-signal, debug_break().
6669
6670 2002-12-12  Stephen J. Turnbull  <stephen@xemacs.org>
6671
6672         * dumper.c (pdump_load): Include sysdep.h; retry with truename.
6673         Analysis and original patch by Vin Shelton <acs@xemacs.org>.
6674
6675 2002-12-02  Greg Allen  <greg_allen@westlb-systems.co.uk>
6676
6677         * database.c: Fix open_database. Berkeley DB API has changed in
6678         4.1. see: http://www.sleepycat.com/docs/ref/upgrade.4.1/fop.html
6679
6680 2002-11-26  Stephen J. Turnbull  <stephen@xemacs.org>
6681
6682         * specifier.c (Fvalid_specifier_type_p): Typo in comment.
6683
6684 2002-11-13  Stephen J. Turnbull  <stephen@xemacs.org>
6685
6686         * event-Xt.c (Xt_timeout):
6687         (Xt_timeout_callback):
6688         (emacs_Xt_add_timeout):
6689         (emacs_Xt_remove_timeout):
6690         (Xt_timeout_to_emacs_event):
6691         Turn completed_timeouts from a stack into a queue.  Fixes
6692         deadlocks <15829.21626.171573.994716@sinisa.nasamreza.org>.
6693
6694 2002-11-07  Wolfram Gloger  <wg@malloc.de>
6695
6696         * alloc.c (reinit_alloc_once_early): Disable mmap in Doug Lea malloc.
6697         * emacs.c (main): Assert that mmap'd allocation is disabled.
6698
6699 2002-10-14  Andy Piper  <andy@xemacs.org>
6700
6701         * glyphs-widget.c (layout_query_geometry): add in fiddle
6702         factor. Include border text in width layout calculation.
6703         (layout_layout): use BORDER_FIDDLE_FACTOR instead of 10.
6704
6705 2002-11-02  Stephen J. Turnbull  <stephen@xemacs.org>
6706
6707         * XEmacs 21.4.10 "Military Intelligence" is released.
6708
6709 2002-10-17  Raymond Toy  <toy@rtp.ericsson.se>
6710
6711         * nas.c: Update for NAS 1.6 and later, from Jon Trulson.  Was
6712         using the NAS private array SoundFileInfo that no longer exists in
6713         NAS 1.6 and later.  Preserve backward compatibility with NAS 1.5a
6714         and earlier.  This is broken for some versions between 1.5a and
6715         1.5f.
6716
6717 2002-10-10  Stephen J. Turnbull  <stephen@xemacs.org>
6718
6719         * realpath.c (win32_readlink): Try to fix truename of wildcard bug.
6720
6721         * emacs.c (shut_down_emacs): Improve crash message.
6722
6723 2002-10-09  Stephen J. Turnbull  <stephen@xemacs.org>
6724
6725         * file-coding.c (determine_real_coding_system): Check for coding
6726         cookie in first LINES_TO_CHECK lines (currently 2).  Cater to
6727         shebangs and Python PEP 263.
6728
6729 2002-10-08  Andy Piper  <andy@xemacs.org>
6730
6731         * glyphs-widget.c (layout_query_geometry): only resize dynamically
6732         if static sizes haven't been set.
6733
6734 2002-08-30  Mike Alexander  <mta@arbortext.com>
6735
6736         * event-msw.c (winsock_closer): Use closesocket, not CloseHandle
6737         to close a socket.
6738
6739 2002-10-03  Stephen J. Turnbull  <stephen@xemacs.org>
6740
6741         * callproc.c (child_setup): 21.4 doesn't have retry_close.
6742
6743 2002-09-20  Mike Sperber <mike@xemacs.org>
6744
6745         (This partially gets back my patch from 2002-07-20 without the
6746         bug.)
6747         * callproc.c (child_setup): Remove Ben's comment noting confusion
6748         over the file descriptors >= 3: close_process_descs() doesn't
6749         close those.  Fix fd range to go up to MAXDESC-1 instead of 64.
6750         * process-unix.c (unix_create_process): Call
6751         begin_dont_check_for_quit to inhibit unwanted interaction (and
6752         thus breaking of X event synchronicity) in the child.
6753
6754 2002-09-26  Golubev I. N.  <gin@mo.msk.ru>
6755
6756         * frame-x.c (x_delete_frame): do not call XtDisplay on a destroyed
6757         widget.
6758
6759 2002-08-20  Ben Sigelman  <bhsigelm@cs.brown.edu>
6760
6761         * event-Xt.c (drain_X_queue): loop over while(XEventsQueued())
6762         instead of while(XtAppPending()&XtIMXEvent).  Upon a gdm logout,
6763         the xemacs process did not exit, but looped infinitely here.  This
6764         fixes that problem.
6765
6766 2002-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
6767
6768         * font-lock.c (SYNTAX_START_STYLE, SYNTAX_END_STYLE): Quiet GCC.
6769         (find_context): Improve comments.
6770
6771         * regex.c (re_compile_fastmap):  Gratuitous #ifdef comment fixes.
6772         (re_match_2): An XCHAR_TABLE operation was missing.
6773
6774         Many of the following changes were inspired by Andy Piper's (now
6775         obsolete) patch to make syntax-table text property lookup optional.
6776
6777         [Documentation]
6778
6779         * syntax.h (top level): Document semantics of syntax flags.
6780         * syntax.c (comstr_start, Fforward_comment): Improve comments.
6781         * syntax.c, syntax.h (top level): Document syntax cache better in
6782         comments.
6783
6784         [Instrument syntax caching (temporary change)]
6785
6786         * syntax.h (enum syntax_cache_statistics_functions, struct
6787         syntax_cache_statistics, SCS_STATISTICS_SET_FUNCTION,
6788         SYNTAX_CACHE_STATISTICS_COUNT_INIT): New types and macros.
6789         * syntax.c (scan_words, Fforward_comment, scan_lists,
6790         Fbackward_prefix_characters):
6791         * font-lock.c (find_context):
6792         Use them to instrument syntax caching. 
6793         * syntax.c (struct syntax_cache_statistics, scs_statistics,
6794         syntax_cache_statistics_function_names): New type and variables.
6795         * syntax.c (update_syntax_cache): Update and report statistics.
6796
6797         [Major syntax cache optimizations]
6798
6799         syntax.c (lookup_syntax_properties): Default off.
6800
6801         * syntax.h (UPDATE_SYNTAX_INTERNAL): New, implements UPDATE_SYNTAX*.
6802         * syntax.c (update_syntax_cache):
6803         Move init test from update_syntax_cache to UPDATE_SYNTAX_INTERNAL.
6804
6805         [Minor syntax cache optimizations and code clarifications]
6806
6807         * syntax.h (SYNTAX_COMMENT_BITS, SYNTAX_START_P, SYNTAX_END_P,
6808         SYNTAX_STYLES_MATCH_START_P, SYNTAX_STYLES_MATCH_1CHAR_P,
6809         SYNTAX_STYLES_MATCH_END_P, STYLE_FOUND_1CHAR_P, STYLE_FOUND_P,
6810         SYNTAX_COMMENT_MASK_END, SYNTAX_COMMENT_MASK_START,
6811         SYNTAX_COMMENT_1CHAR_MASK): Remove redundant argument `table'.
6812         (Code clarification.)
6813
6814         * syntax.c (scan_words, find_end_of_comment, scan_sexps_forward,
6815         scan_lists): Compute code from syncode, use Boolean macros instead
6816         of redundant masking operations.  (Code clarification; any decent
6817         compiler can do this optimization.)
6818
6819         * syntax.c (scan_lists): Rearrange switches (case Sstring_fence)
6820         for clarity.
6821
6822         * syntax.h, syntax.c (NEXT_SINGLE_PROPERTY_CHANGE,
6823         PREVIOUS_SINGLE_PROPERTY_CHANGE, update_syntax_cache): Conditionally
6824         use F*_single_property_change instead of F*_extent_change.
6825         Currently F*_single_property_change is _much_ less efficient.
6826
6827         * dired.c (Fdirectory_files): Qt not valid in syntax_cache.object.
6828         * syntax.h (SETUP_SYNTAX_CACHE_FOR_OBJECT):  Initialize
6829         syntax_cache.object properly, don't leave Qt or Qnil.
6830         (SYNTAX_CACHE_BYTE_TO_CHAR): Use SETUP_SYNTAX_CACHE_FOR_OBJECT.
6831         * syntax.c (update_syntax_cache): Use BUFFERP and STRINGP, not
6832         tests for Qt or Qnil.
6833
6834 2002-09-21  Stephen J. Turnbull  <stephen@xemacs.org>
6835
6836         * redisplay.c (point_in_line_start_cache): 
6837         * extents.c (print_extent_1):
6838         Fix warnings.
6839
6840         * extents.c (Fset_extent_property): Document `syntax-table' property.
6841
6842         * extents.h (Fnext_single_property_change): EXFUN it.
6843
6844 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
6845
6846         * search.c (clear_unused_search_regs): New static function.
6847         (search_buffer): 
6848         (simple_search): 
6849         (boyer_moore):
6850         Use it.  Fixes "stale match data" bug reported by Martin Stjernholm.
6851         Minor clarifications in comments.
6852
6853         * regex.c (re_match_2_internal): Ensure no stale submatches.
6854
6855 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
6856
6857         * event-Xt.c (enqueue_focus_event): Add missing prototype.
6858
6859 2002-08-29  Jerry James  <james@xemacs.org>
6860
6861         * lisp.h: structrures -> structures.
6862
6863 2002-06-03  Andy Piper  <andy@xemacs.org>
6864
6865         * frame.c (frame_conversion_internal): add conversion appropriate
6866         for setting frame dimensions in pixels.
6867
6868         * console.h (struct console_methods): add device-specific widget
6869         layout functions.
6870
6871         * emacs.c (main_1): initialize glyph vars.
6872
6873         * event-Xt.c (handle_focus_event_1): call handle_focus_event_2
6874         (handle_focus_event_2): new function. Allow focus to
6875         be set to a particular window and widget.
6876         (enqueue_focus_event): new function. Create a
6877         synthetic focus event.
6878         (emacs_Xt_handle_magic_event): call
6879         handle_focus_event_2.
6880
6881         * frame.c (Fset_frame_pixel_height): new function. Allow
6882         pixel-based sizing. Does the right thing on character-oriented
6883         displays.
6884         (Fset_frame_pixel_width): ditto.
6885         (Fset_frame_pixel_size): ditto.
6886         (syms_of_frame): declare.
6887
6888         * general-slots.h: add :vertically-justify and
6889         :horizontally-justify.
6890
6891         * glyphs-msw.c (xbm_create_bitmap_from_data): warning fix.
6892         (mswindows_widget_border_width): new function.
6893         (mswindows_combo_box_instantiate): set border widths.
6894         (console_type_create_glyphs_mswindows): declare.
6895
6896         * glyphs-widget.c:
6897         (check_valid_justification): allow vertical and horizontal
6898         justification.
6899         (widget_border_width): new function. Call device methods.
6900         (widget_instance_border_width): ditto.
6901         (logical_unit_height): new function. Determine the height of a
6902         logical-unit. Logical units are intended to provide grid-like
6903         layout for subcontrols in a layout. If the layout is
6904         :vertically-justify top then subcontrols will be positioned on
6905         logical-unit boundaries, thus allowing adjacent subcontrols to
6906         line up.
6907         (widget_logical_unit_height): ditto for widgets.
6908         (redisplay_widget): misc cleanup.
6909         (widget_spacing): new function. Call device specific
6910         methods. Intended to be the default gap between adjacent widgets.
6911         (widget_query_geometry): use new spacing functions to determine
6912         appropriate geometry.
6913         (initialize_widget_image_instance): initialize horizontal and
6914         vertical justification.
6915         (widget_instantiate): use logica-units where appropriate for
6916         sizing large widgets.
6917         (button_query_geometry): use widget_instance_border_width.
6918         (tree_view_query_geometry): ditto.
6919         (tab_control_query_geometry): ditto.
6920         (edit_field_query_geometry): new function.
6921         (layout_update): pick up :justify, :horizontally-justify and
6922         :vertically-justify none of which worked previously. :justify is
6923         used as a fallback for both horizontal and vertical justification.
6924         (layout_query_geometry): use logical units to size appropriately.
6925         (layout_layout): ditto.
6926         (Fwidget_logical_to_character_width): new function. Allow users to
6927         convert from logical units to characters so that frame sizes can
6928         be set appropriately.
6929         (Fwidget_logical_to_character_height): ditto.
6930         (syms_of_glyphs_widget): declare.
6931         (image_instantiator_edit_fields): add edit_field_query_geometry.
6932         (VALID_LAYOUT_KEYWORDS): declare :vertically-justify and
6933         :horizontally-justify.
6934         (specifier_vars_of_glyphs_widget): new function. Declare
6935         Vwidget_border_width which is not yet used.
6936
6937         * glyphs-x.c (x_map_subwindow): enqueue appropriate focus events.
6938         (x_widget_border_width): new function.
6939         (x_widget_instantiate): create a sensible name for widgets.
6940         (console_type_create_glyphs_x): declare x_widget_border_width.
6941
6942         * glyphs.h (DEFAULT_WIDGET_BORDER_WIDTH): new macro.
6943         (struct Lisp_Image_Instance): add :vertically-justify and
6944         :horizontally-justify.
6945         (LAYOUT_JUSTIFY_TOP): new.
6946         (IMAGE_INSTANCE_SUBWINDOW_H_JUSTIFY): new.
6947         (ROUND_UP): new macro. Round argument up to next integral
6948         interval.
6949
6950         * redisplay-output.c (redisplay_output_layout): misc formatting.
6951
6952         * symsinit.h: declare specifier_vars_of_glyphs_widget.
6953
6954 2002-08-23  Stephen J. Turnbull  <stephen@xemacs.org>
6955
6956         * XEmacs 21.4.9 "Informed Management" is released.
6957
6958 2002-08-19  Andy Piper  <andy@xemacs.org>
6959
6960         * fileio.c (Ffile_truename): on cygwin using win32 normalize to
6961         win32 format.
6962
6963         * realpath.c (xrealpath): normalize drive spec also so that dir
6964         sep chars are not mixed on cygwin.
6965
6966 2002-08-06  Jerry James  <james@xemacs.org>
6967
6968         * window.c (Fsplit_window): Count only half of the divider width
6969         against the left window when splitting horizontally. 
6970
6971 2002-06-24  Andy Piper  <andy@xemacs.org>
6972
6973         * toolbar-gtk.c (GTK_OUTPUT_BUTTONS_LOOP): output button if whole
6974         toolbar was cleared.
6975
6976         * toolbar-msw.c (mswindows_clear_frame_toolbars): new
6977         function. Split out from mswindows_output_frame_toolbars.
6978         (mswindows_output_frame_toolbars): move clear pieces to
6979         mswindows_output_frame_toolbars.
6980
6981         * toolbar-gtk.c (gtk_clear_frame_toolbars): new function. Split
6982         out from gtk_output_frame_toolbars.
6983         (gtk_output_frame_toolbars): move clear pieces to
6984         gtk_clear_frame_toolbars.
6985
6986         * toolbar-x.c (X_OUTPUT_BUTTONS_LOOP): always output buttons when
6987         the frame is cleared. How this ever worked before is a mystery.
6988         (x_output_frame_toolbars): Only output toolbars.
6989         (x_clear_frame_toolbars): new. Clear previous toolbar locations.
6990
6991         * gutter.c (update_gutter_geometry):
6992         Mark frame layout changed.
6993         (update_frame_gutter_geometry, update_frame_gutters):
6994         Respect frame_layout_changed.
6995
6996         * console.h (struct console_methods): add
6997         clear_frame_toolbars_method.
6998
6999         * redisplay.c (redisplay_frame): call
7000         update_frame_toolbars_geometry and re-order update_frame_toolbars.
7001
7002         * toolbar.h: declare update_frame_toolbars_geometry.
7003
7004         * toolbar.c (update_frame_toolbars_geometry): new function. Split
7005         out from update_frame_toolbars.  Call clear_frame_toolbars.
7006         (update_frame_toolbars): only output, do not change geometry.
7007
7008         * redisplay.c: add frame_layout_changed.
7009
7010         * redisplay.h: add frame_layout_changed.
7011         (CLASS_RESET_CHANGED_FLAGS): set it.
7012         (GLOBAL_RESET_CHANGED_FLAGS): ditto.
7013         (CLASS_REDISPLAY_FLAGS_CHANGEDP): test it.
7014         (GLOBAL_REDISPLAY_FLAGS_CHANGEDP): ditto.
7015
7016         * device.h (struct device): add frame_layout_changed.
7017         (MARK_DEVICE_FRAME_LAYOUT_CHANGED): new.
7018
7019         * frame.h (struct frame): add frame_layout_changed.
7020         (MARK_FRAME_LAYOUT_CHANGED): new.
7021
7022 2002-06-30  Mike Alexander  <mta@arbortext.com>
7023
7024         * event-msw.c (mswindows_need_event): Don't wait for a new message
7025         if the queue is not empty.  Suggested by Paul Moore.
7026
7027 2002-06-12  Andy Piper  <andy@xemacs.org>
7028
7029         * frame-msw.c (msprinter_init_frame_3): calculate the frame size
7030         for printing on accurately.
7031
7032 2002-06-09  Rick Rankin <rick_rankin@yahoo.com>
7033
7034         * event-msw.c (mswindows_wnd_proc): Add a handler for the
7035         WM_ACTIVATE message. Make sure that the frame is visible if the
7036         window is visible. This seemss to fix the problem where XEmacs
7037         appears to freeze after switching desktops with certain virtual
7038         window managers.
7039         (debug_output_mswin_message): Added code to output message
7040         parameters for WM_WINDOWPOSCHANGED, 
7041         WM_WINDOWPOSCHANGING, WM_MOVE, and WM_SIZE messages.
7042
7043 2002-05-25  Andy Piper  <andy@xemacs.org>
7044
7045         * select-x.c (vars_of_select_x): Fix docstring of
7046         x-selection-strict-motif-ownership
7047
7048 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
7049
7050         * keymap.c (get_keymap):
7051         Add comment about do_autoload GCPROs own args.
7052
7053 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
7054
7055         * bytecode.c (execute_optimized_program): check_opcode ifdef
7056         ERROR_CHECK_BYTE_CODE.
7057
7058 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
7059
7060         Thanks to Ben Wing and Michael Sperber.
7061
7062         * eval.c (Fcommand_execute):
7063         (Feval):
7064         (Ffuncall):
7065         (Fmacroexpand_internal):
7066         (function_argcount):
7067         callint.c (Fcall_interactively):
7068         Add comment about do_autoload GCPROs own args.
7069
7070         * (do_autoload): GCPRO both args as well as local Lisp_Object.
7071
7072         * eval.c (Ffuncall): Extra braces to placate GCC.
7073
7074 2002-08-10  Stephen J. Turnbull  <stephen@xemacs.org>
7075
7076         * backtrace.h (grow_specpdl):
7077         (SPECPDL_RESERVE):
7078         * EmacsFrame.c (EmacsFrameSetValues):
7079         * eval.c (grow_specpdl):
7080         * ExternalShell.c (hack_event_masks_1):
7081         * glyphs-x.c (convert_EImage_to_XImage): 
7082         (x_finalize_image_instance):
7083         * ralloc.c (page_size):
7084         (r_alloc_sbrk):
7085         * xgccache.c (gc_cache_hash):
7086         Fix unsigned comparison warnings.
7087
7088 2002-07-29  Jerry James  <james@xemacs.org>
7089
7090         * lread.c (locate_file): Any nonnegative return value indicates
7091         success if MODE is nonnegative.
7092
7093 2002-08-03  Brian A Palmer  <bpalmer@rescomp.Stanford.EDU>
7094
7095         * emacs.c (Fsplit_string_by_char): Make 2nd arg SEPCHAR a required
7096         argument. 
7097
7098 2002-07-17  Stephen J. Turnbull  <stephen@xemacs.org>
7099
7100         * process-unix.c (unix_send_process): #ifdef the coding_stream member.
7101
7102         * dumper.c (pdump_get_indirect_count):
7103         (pdump_scan_by_alignment):
7104         (pdump_dump_root_struct_ptrs):
7105         (pdump_dump_rtables):
7106         (pdump_dump_root_objects):
7107         (pdump):
7108         * nas.c (WaveOpenDataForReading):
7109         * fns.c (print_bit_vector):
7110         * font-lock.c (SINGLE_SYNTAX_STYLE):
7111         * glyphs.c (check_for_ignored_expose):
7112         (find_matching_subwindow):
7113         * glyphs-eimage.c:
7114         * imgproc.c (get_histogram):
7115         * redisplay.c (point_in_line_start_cache):
7116         * redisplay-output.c (redisplay_unmap_subwindows):
7117         * symbols.c (defsymbol_massage_name_1):
7118         (defkeyword_massage_name):
7119         (deferror_massage_name_and_message):
7120         * redisplay-x.c (x_output_string): 
7121         * emacs.c (run_temacs_argv_size, run_temacs_args_size):
7122         * frame.h (struct frame):
7123         * filelock.c (current_lock_owner):
7124         * doprnt.c (emacs_doprnt_1):
7125         * lisp.h (struct Lisp_Bit_Vector):
7126         (DO_REALLOC):
7127         Fix warnings.
7128
7129 2002-02-13  Ben Wing  <ben@xemacs.org>
7130
7131         * event-stream.c (reset_key_echo):
7132         * event-stream.c (reset_this_command_keys):
7133         * event-stream.c (execute_command_event):
7134         If console is dead as a result of C-x 5 0, then post-command stuff
7135         needs to be careful and do only non-console-specific stuff.
7136
7137 2002-07-01  Mike Sperber <mike@xemacs.org>
7138
7139         * process-unix.c (unix_send_process): Mark coding_outstream as
7140         non-open upon SIGPIPE.
7141
7142         * event-stream.c (Fnext_event): Reorder switch cases to something
7143         that makes sense.
7144
7145 2001-08-13  Dmitry Astapov  <adept@umc.com.ua>
7146
7147         * event-Xt.c (maybe_define_x_key_as_self_inserting_character):
7148         Don't bogusly reinitialize ascii_character property.
7149
7150 2002-07-08  Mike Sperber <mike@xemacs.org>
7151
7152         * process.c (Fstart_process_internal): Do error checking before we
7153         fork off the child, so the child can't muck with the state of the
7154         parent.
7155
7156 2002-07-08  Mike Sperber <mike@xemacs.org>
7157
7158         * ralloc.c (init_ralloc): Allocate properly for pdump.
7159
7160 2002-06-12  Andy Piper  <andy@xemacs.org>
7161
7162         * glyphs.c (query_string_geometry): check the string.
7163
7164         * glyphs-widget.c (widget_logical_unit_height): cope with nil
7165         widget names.
7166
7167 2002-06-17  Jerry James  <james@xemacs.org>
7168
7169         * sysdll.c: Remove RTLD_GLOBAL initialization.
7170         * sysdll.c (dll_open): Do not use RTLD_GLOBAL.
7171
7172 2002-06-25  Stephen J. Turnbull  <stephen@xemacs.org>
7173
7174         * search.c (skip_chars): Port Ben's crash fix and efficiency patch.
7175
7176 2002-05-16  Mathias Grimmberger  <mgri@zaphod.sax.de>
7177
7178         * sysdep.c (sys_rename): Make sys_rename work for the case where
7179         Windows rename sets errno to EACCES if target file exists.
7180
7181 2002-05-21  Jonathan Harris  <jonathan@xemacs.org>
7182
7183         * device-msw.c (mswindows_handle_page_setup_dialog_box):
7184         Fix detection of metric units to work on Win95
7185
7186 2002-05-21  Stephen J. Turnbull  <stephen@xemacs.org>
7187
7188         * syswindows.h: #define LOCALE_RETURN_NUMBER.  Why, I don't know.
7189
7190 2002-04-25  Andy Piper  <andy@xemacs.org>
7191
7192         * redisplay.c (create_text_block): Remove extra comment trailer.
7193
7194 2002-04-24  Andy Piper  <andy@xemacs.org>
7195
7196         * redisplay.c (create_text_block): Don't actually add propagation
7197         data if the line ends after we have added a glyph.
7198
7199 2002-04-22  Andy Piper  <andy@xemacs.org>
7200
7201         * extents.c (extent_fragment_update): check for glyphs we have
7202         previously displayed.
7203         * extents.c (print_extent_1): warning removal.
7204         * extents.h: change prototype.
7205         * redisplay-output.c (redisplay_normalize_glyph_area): calculate
7206         widths correctly for wide glyphs.
7207         * redisplay.c (position_redisplay_data_type): add end_glyph_width.
7208         * redisplay.c (prop_type): add PROP_GLYPH.
7209         * redisplay.c (struct prop_block): add glyph type
7210         * redisplay.c (add_glyph_rune): when adding part of a glyph add it
7211         to the propagation data.
7212         * redisplay.c (create_text_block): if there is a glyph in the
7213         propagation data use it to salt extent_fragment_update.
7214         * redisplay.c (create_string_text_block): ditto.
7215
7216 2002-04-13  Nix  <nix@esperi.demon.co.uk>
7217
7218         * redisplay.h (struct rune): Add ascent, descent, and yoffset fields.
7219         * redisplay-output.c (compare_runes): Compare them.
7220         * redisplay.c: Update copyright date.
7221         * redisplay.c (pos_data): Add need_baseline_computation field.
7222         * redisplay.c (add_glyph_rune): Update ascent, descent, and
7223         need_baseline_computation; zero yoffset. Set max_pixmap_height
7224         for all pixmaps, not just automatically positioned ones.
7225         * redisplay.c (calculate_yoffset): New, compute yoffset values.
7226         * redisplay.c (calculate_baseline): New, compute textual baseline.
7227         * redisplay.c (add_glyph_rune): Call them.
7228         * redisplay.c (create_text_block): Likewise.
7229         * redisplay.c (create_overlay_glyph_block): Likewise.
7230         * redisplay.c (add_margin_runes): Likewise.
7231         * redisplay.c (create_string_text_block): Likewise. Fix tabdamage.
7232
7233         * redisplay.h: (redisplay_calculate_display_boxes): Change prototype.
7234         * redisplay-output.c (redisplay_calculate_display_boxes): Use yoffset.
7235         * redisplay-msw.c (mswindows_output_blank): Pass 0 as yoffset.
7236         * redisplay-msw.c (mswindows_output_string): Likewise.
7237         * redisplay-msw.c (mswindows_output_display_block): Pass yoffset.
7238         * redisplay-gtk.c (gtk_output_display_block): Likewise.
7239         * redisplay-x.c (x_output_display_block): Likewise.
7240
7241 2002-03-28  Ben Wing  <ben@xemacs.org>
7242
7243         * redisplay.c: Fixed bug in redisplay
7244         w.r.t. hscroll/truncation/continuation glyphs causing jumping up
7245         and down of the lines, since they're bigger than the line
7246         size. (It was seen most obviously when there's a horizontal scroll
7247         bar, e.g. do C-h a glyph or something like that.) The problem was
7248         that the glyph-contrib-p setting on glyphs was ignored even if it
7249         was set properly, which it wasn't until now.
7250
7251 2002-04-24  Andy Piper  <andy@xemacs.org>
7252
7253         * lisp.h (Dynarr_end): Fix definition.
7254
7255 2002-02-06  Adrian Aichner  <adrian@xemacs.org>
7256
7257         * redisplay.c (mark_redisplay): Remove call to
7258         update_frame_window_mirror.
7259
7260 2001-11-15  Andy Piper  <andy@xemacs.org>
7261
7262         * win32.c (Fmswindows_shell_execute): fix handling of URL's under
7263         cygwin (again).
7264
7265 2002-02-13  Andy Piper  <andy@xemacs.org>
7266
7267         * event-msw.c (mswindows_wnd_proc): only mark the frame visible if
7268         we did in fact enqueue the XM_MAPFRAME event.
7269
7270 2002-01-15  Adrian Aichner  <adrian@xemacs.org>
7271
7272         * event-msw.c (mswindows_wnd_proc): Add handling of WM_SHOWWINDOW
7273         to fix problem switching between virtual desktops under virtuawin
7274         virtual window manager.
7275
7276 2001-07-30  Adrian Aichner  <adrian@xemacs.org>
7277
7278         * event-msw.c: Typo fix.
7279         * event-msw.c (mswindows_wnd_proc): Set FRAME_VISIBLE_P after
7280         magic XM_MAPFRAME event has been sent.
7281
7282 2001-11-23  Andy Piper  <andy@xemacs.org>
7283
7284         * event-msw.c (mswindows_wnd_proc): Don't pump mousewheel events.
7285
7286 2001-11-21  Andy Piper  <andy@xemacs.org>
7287
7288         * scrollbar-msw.c (mswindows_handle_mousewheel_event): cope with
7289         mouse events outside the frame.
7290
7291 2002-03-20  Andy Piper  <andy@xemacs.org>
7292
7293         * menubar-msw.c (mswindows_popup_menu): warning removal.
7294         * dialog-msw.c (dialog_popped_down): ditto.
7295
7296 2001-12-11  Andy Piper  <andy@xemacs.org>
7297
7298         * dialog-msw.c (dialog_popped_down): new function. unset popup_up_p.
7299         * dialog-msw.c (mswindows_make_dialog_box_internal): set
7300         popup_up_p.
7301         * menubar-msw.c (unsafe_handle_wm_initmenupopup_1): ditto.
7302         * menubar-msw.c (mswindows_handle_wm_command): ditto.
7303         * menubar-msw.c (mswindows_popup_menu): ditto.
7304
7305 2001-10-29  Andy Piper  <andy@xemacs.org>
7306
7307         * dialog-msw.c (handle_directory_dialog_box): quit if the user
7308         cancels.
7309
7310 2002-01-03  Andy Piper  <andy@xemacs.org>
7311
7312         * realpath.c (ABS_LENGTH): dtrt for cygwin systems using drive
7313         letters.
7314         (xrealpath): ditto.
7315
7316 2002-03-29  Jonathan Harris  <jonathan@xemacs.org>
7317
7318         * device-msw.c (plist_get_margin): Add arg specifying mm or inches
7319         * device-msw.c (plist_set_margin): Fix multiplicand used for mm
7320         * device-msw.c (mswindows_handle_page_setup_dialog_box):
7321         Detect and handle case where machine is set up for metric units
7322
7323 2002-04-02  Andy Piper  <andy@xemacs.org>
7324
7325         * dired-msw.c (mswindows_get_files): 
7326         * nt.c (mswindows_stat): SetErrorMode() so that file errors are
7327         completely handled by XEmacs. Suggested by Thomas Vogler
7328         <mail@thomas-vogler.de>.
7329
7330 2001-11-14  Andy Piper  <andy@xemacs.org>
7331
7332         * nt.c (REG_ROOT): change registry key to XEmacs.
7333
7334 2002-04-27  Andy Piper  <andy@xemacs.org>
7335
7336         * glyphs-msw.c (mswindows_widget_instantiate): remove dead-code.
7337
7338 2002-04-26  Andy Piper  <andy@xemacs.org>
7339
7340         * glyphs-msw.c (mswindows_map_subwindow): observe :initial-focus
7341         behavior.
7342
7343 2002-03-14  Mike Alexander  <mta@arbortext.com>
7344
7345         * event-msw.c (mswindows_unwait_process): New, remove process from
7346         wait list
7347         * process-nt.c (nt_finalize_process_data): Call
7348         mswindows_unwait_process
7349         * console-msw.h: Declare mswindows_unwait_process
7350
7351 2002-05-14  Stephen J. Turnbull  <stephen@xemacs.org>
7352
7353         * editfns.c (Fdecode_time):
7354         (Fformat_time_string):
7355         Check for invalid time.  Thanks to Nick Pakoulin <npak@ispras.ru>.
7356         (make_time): Warning elimination (change arg name).
7357
7358 2001-11-24  Andy Piper  <andy@xemacs.org>
7359
7360         * window.c (Fsplit_window): Doc return type.
7361
7362 2002-04-01  Andy Piper  <andy@xemacs.org>
7363
7364         * emacs.c (Fkill_emacs): Only output message box in interactive
7365         mode.
7366
7367 2002-04-26  Andy Piper  <andy@xemacs.org>
7368  
7369         * config.h.in: pull in 21.5.x change to stop alloca warnings under
7370         cygwin.
7371
7372 2002-03-18  Gregory Steuck  <greg-xemacs-patch@nest.cx>
7373
7374         * unexelf.c:  Use ELFSIZE or define from _LP64 to indicate a 64
7375         bit platform.
7376
7377 2002-05-09  Stephen J. Turnbull  <stephen@xemacs.org>
7378
7379         * XEmacs 21.4.8 "Honest Recruiter" is released.
7380
7381 2002-05-07  Nix  <nix@esperi.demon.co.uk>
7382
7383         Supersedes 2002-04-17 patch.
7384
7385         * process.h (PROCESS_LIVE_P): Use the process status as
7386         evidence of health, not the state of the input stream.
7387         (PROCESS_READABLE_P): Say if the process is readable
7388         from. (It may be dead nonetheless.)
7389         (CHECK_READABLE_PROCESS): Test for that condition.
7390
7391         * process.c (create_process): Use PROCESS_READABLE_P.
7392         (read_process_output, set_process_filter): Likewise.
7393
7394         * process.c (Fprocess_input_coding_system): Use CHECK_READABLE_PROCESS.
7395         (Fset_process_input_coding_system, Fprocess_coding_system): Likewise.
7396
7397         This code is #if 0'd, this is not the time to add new functions:
7398
7399         * process.c (Fprocess_readable_p): Report readability status.
7400         * process.c (Qprocess_readable_p): New, associated symbol...
7401         * process.c (syms_of_process): ... initialize it.
7402
7403 2002-05-04  Stephen J. Turnbull  <stephen@xemacs.org>
7404
7405         * XEmacs 21.4.7 "Economic Science" is released.
7406
7407 2002-04-17  Nix  <nix@esperi.demon.co.uk>
7408
7409         * process.h (PROCESS_LIVE_P): Use the process status as
7410         evidence of health, not the state of the input stream.
7411
7412 2002-04-30  Charles G. Waldman <cgw@xemacs.org>
7413
7414         * sysdep.c (sys_siglist): change "signum" to "signal"
7415
7416 2001-04-21  Martin Buchholz  <martin@xemacs.org>
7417
7418         * s/darwin.h: New file.
7419         Thanks to Greg Parker <gparker@cs.stanford.edu>.
7420         
7421 2002-04-23  Andreas Jaeger  <aj@suse.de>
7422
7423         * s/linux.h (LIB_STANDARD): Define correctly for x86-64 and s390x
7424         which use lib64 for 64-bit libs.
7425         (START_FILES): Likewise.
7426
7427 2002-02-11  Mike Sperber  <mike@xemacs.org>
7428
7429         * device-x.c: 
7430         (x_IO_error_handler):
7431         (x_init_device): Temporarily keep device in static variable
7432         `device_being_initialized' so we can recover gracefully from
7433         internal XOpenDevice failure.  (XOpenDevice is documented to
7434         return NULL on failure, but sometimes calls the IO error handler
7435         instead.)
7436
7437 2002-01-31  John H. Palmieri  <palmieri@math.washington.edu>
7438
7439         * dired.c (Ffile_name_all_completions): Change documentation --
7440         remove reference to completion-ignored-extensions.
7441         * dired.c (vars_of_dired): Change documentation for
7442         completion-ignored-extensions -- remove reference to
7443         file-name-all-completions.
7444
7445 2002-03-06  Jerry James  <james@xemacs.org>
7446
7447         * emodules.c (emodules_load): Fix multiple loading of same module.
7448
7449 2002-01-25  Andrew Begel <abegel@cs.berkeley.edu>
7450         * sysdll.c (dll_open): Changed to use RTLD_NOW instead of
7451         RTLD_LAZY to avoid incorrect symbol binding when using nested
7452         shared libraries on Solaris.
7453
7454 2002-02-12  Stephen J. Turnbull  <stephen@xemacs.org>
7455
7456         * fileio.c (Ffind_file_name_handler): Improve docstring.
7457
7458 2002-01-20  Stephen J. Turnbull  <stephen@xemacs.org>
7459
7460         * fns.c (Fmapconcat): Improve docstring.
7461
7462 2002-01-03  Eric Gillespie, Jr.  <epg@pretzelnet.org>
7463
7464         * device-gtk.c: Add prototype for
7465         emacs_gtk_selection_clear_event_handle.
7466         (gtk_init_device): Call gtk_selection_add_target for CLIPBOARD
7467         selection.  Setup signal handler for "selection_clear_event"
7468         (emacs_gtk_selection_clear_event_handle).
7469
7470         * select-gtk.c (emacs_gtk_selection_clear_event_handle): Handle
7471         other applications owning the clipboard (based on
7472         x_handle_selection_clear).
7473
7474 2001-12-23  William M. Perry  <wmperry@gnu.org>
7475
7476         * menubar-gtk.c (gtk_popup_menu)  Add sanity checks, fix crash.
7477         
7478 2002-01-04  Martin Buchholz  <martin@xemacs.org>
7479
7480         * keymap.c (define_key_alternate_name): Parenthesize EQ.
7481
7482 2001-12-17  Stephen J. Turnbull  <stephen@xemacs.org>
7483
7484         * XEmacs 21.4.6 "Common Lisp" is released.
7485
7486 2001-12-16  Torsten Duwe  <duwe@caldera.de>
7487
7488         * search.c (Freplace_match): Add missing sub-expression functionality.
7489
7490         * buffer.c (decode_buffer): Add a check for pointer type to
7491         decode_buffer, before gcc's CSE optimization reorders a
7492         dereference in front of the allow_string test.
7493
7494 2001-11-16  Darryl Okahata  <darrylo@xemacs.org>
7495
7496         * window.c (window_loop): Fix bug that sometimes prevented
7497         window_loop() from iterating across multiple devices.  Also, at
7498         Ben's request, changed infloop-detecting code to abort() instead
7499         of silently terminating window_loop().
7500
7501 2001-11-21  Stephen J. Turnbull  <stephen@xemacs.org>
7502
7503         Based on analysis and patch by Simon Josefson <jas@extundo.com>.
7504         * editfns.c (make_time): New function.
7505         (Fencode_time): Use it instead of wasteful_word_to_lisp.
7506         * lisp.h (make_time): Prototype and comment it.
7507         * dired.c (wasteful_word_to_lisp): Deprecate.
7508         (Ffile_attributes): Use make_time() instead of wasteful_word_to_lisp().
7509
7510 2001-10-31  Kyle Jones  <kyle_jones@wonderworks.com>
7511
7512         * fileio.c (auto_save_1): Use current coding system, not
7513         escape-quoted.
7514
7515 2001-11-13  Ben Wing  <ben@xemacs.org>
7516
7517         * window.c:
7518         * window.c (window_truncation_on):
7519         * window.c (syms_of_window):
7520         truncate-partial-width-windows should respect the buffer being
7521         displayed, like other redisplay vars.
7522
7523 2001-11-13  Hirokazu FUKUI  <hfukui@sannet.ne.jp>
7524
7525         * event-stream.c (Fread_key_sequence): save current buffer.
7526
7527 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
7528
7529         * ntheap.c (_heap_init): Don't redefine in VS.NET (MSC >= 1300).
7530
7531 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
7532
7533         * alloc.c (lcrecord_stats): Add space for types defined in modules.
7534
7535 2001-10-26  Mike Alexander  <mta@arbortext.com>
7536
7537         * event-msw.c (slurper_free_shared_data_maybe): Free the pipe handle.
7538
7539 2001-10-25  Andy Piper  <andy@xemacs.org>
7540
7541         * ChangeLog:
7542         * dialog-msw.c (handle_directory_proc): new function.
7543          (handle_directory_dialog_box): new fucntion.
7544          (handle_file_dialog_box): use new directory dialog support.
7545          (mswindows_make_dialog_box_internal): ditto.
7546         * event-msw.c (mswindows_wnd_proc): minor fix to scrollbar event
7547         handling.
7548         (mswindows_find_frame): make global.
7549         * fileio.c (Fexpand_file_name): build fix.
7550         * general-slots.h: add Qdirectory.
7551         * scrollbar-msw.c (mswindows_handle_scrollbar_event): fix focus
7552         handling.
7553         * syswindows.h (LOCAL_TO_WIN32_FILE_FORMAT): fix problem with
7554         cygwin not leaving win32 paths unchanged.
7555         * win32.c (Fmswindows_cygwin_to_win32_path): new function. Use the
7556         cygwin runtime to do path conversion.
7557         (Fmswindows_shell_execute): fix cygwin handling of URLs.
7558         (syms_of_win32): add new function.
7559         * window.c (window_loop): build fix.
7560
7561 2001-10-15  Andy Piper  <andy@xemacs.org>
7562
7563         (Fmswindows_shell_execute): fix handling of URL's under cygwin.
7564
7565 2001-10-23  Stephen J. Turnbull  <stephen@xemacs.org>
7566
7567         * XEmacs 21.4.5 "Civil Service" is released.
7568
7569 2001-04-08  Danny Colascione  <qtmstr@optonline.net>
7570
7571         * glyphs-x.c: Force buffer-tab highlight update when moving the
7572         buffer, avoiding an ugly black border, used for keyboard focus
7573         indication, on a widget that can never have keyboard focus, the
7574         buffer tab.
7575
7576 2001-08-30  Daiki Ueno  <ueno@unixuser.org>
7577
7578         * process-unix.c (unix_open_multicast_group): Remove too much
7579         conversion between host and network byte order.
7580
7581 2001-09-10  Nix  <nix@esperi.demon.co.uk>
7582
7583         * src/buffer.c (kill_buffer): Undedicate windows showing BUF
7584         before replacing them.
7585
7586         * src/window.c (window_loop): Implement new UNDEDICATE_BUFFER
7587         operation.
7588
7589         * src/window.c (undedicate_windows): Use it.
7590         * src/window.h: Add prototype.
7591
7592 2001-09-17  Ben Wing  <ben@xemacs.org>
7593
7594         * fileio.c (normalize_filename):
7595         * fileio.c (Fexpand_file_name):
7596         Fix various C++ compile errors in Andy's recent code.
7597         
7598         * callint.c (Fcall_interactively):
7599         * editfns.c (Ftemp_directory):
7600         * editfns.c (Fuser_full_name):
7601         * emacs.c (argmatch):
7602         * lread.c (locate_file_map_suffixes):
7603         * redisplay-x.c (x_ring_bell):
7604         Fix sign-compare warnings.
7605         
7606 2001-09-08  Andy Piper  <andy@xemacs.org>
7607
7608         * fileio.c (normalize_filename): copied from nt.c
7609         * (Ffile_name_directory): enable win32 paths under cygwin.
7610         * (Ffile_name_nondirectory): ditto.
7611         * (directory_file_name): ditto.
7612         * (Fexpand_file_name): ditto.
7613         * (Ffile_truename): ditto.
7614         * (Fsubstitute_in_file_name): ditto.
7615         * (Ffile_name_absolute_p): ditto.
7616         * (Ffile_readable_p): ditto.
7617
7618 2001-09-08  Andy Piper  <andy@xemacs.org>
7619
7620         * device-msw.c (mswindows_finish_init_device): remove dde
7621         initialization.
7622         * device-msw.c (mswindows_init_dde): factor out from
7623         mswindows_finish_init_device()
7624         * device-msw.c (init_mswindows_very_early): new function
7625         initialize but don't enable dde.
7626         * emacs.c (main_1): call init_mswindows_very_early.
7627         * event-msw.c:
7628         * event-msw.c (mswindows_dde_callback): only execute when we are
7629         ready.
7630         * symsinit.h: declare init_mswindows_very_early.
7631
7632 2001-05-02  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7633
7634         [sjt: This has been in 21.5 for months with no complaints.]
7635
7636         * console.h (struct console_methods): Added flags member.
7637         (CONSOLE_IMPLEMENTATION_FLAGS): Defined.
7638         (CONMETH_IMPL_FLAG):
7639         (CONSOLE_IMPL_FLAG): Macro to check implememntation flags.
7640         Defined XDEVIMPF_DONT_PREEMPT_REDISPLAY.
7641
7642         * device.c (window_system_pixelated_geometry): Use the above macros.
7643
7644         * device.h (DEVICE_IMPL_FLAG): Macro to check a device
7645         implememntation flag.
7646         * device.h (DEVICE_DISPLAY_P): Use it.
7647
7648         * frame.c (delete_frame_internal): Use the above macro.
7649
7650         * redisplay.c (redisplay_device): Use it.
7651         (redisplay_device): Obey XDEVIMPF_DONT_PREEMPT_REDISPLAY.
7652         (redisplay_frame): Ditto.
7653
7654         * device-msw.c (mswindows_device_implementation_flags): Removed.
7655         (msprinter_device_implementation_flags): Removed.
7656         (console_type_create_device_mswindows): Removed references to
7657         implementation_flags methods, set implementation flags here.
7658         (console_type_create_device_mswindows): Added XDEVIMPF_DONT_PREEMPT.
7659
7660         * device-gtk.c (gtk_device_implementation_flags): Removed method.
7661         (console_type_create_device_gtk): Removed method declaration.
7662         Added commented out statement which semantically matches the
7663         commented out statement in the above removed method.
7664
7665 2001-04-14  Gordon Sadler  <gbsadler1@lcisp.com>
7666
7667         The attached patch fixes a few warnings. 
7668
7669         * src/emacs.c: prototype console_type_create_select_gtk for GTK only
7670         * src/frame-gtk.c: guard against GNOME calls in GTK only
7671         * src/redisplay-gtk.c: include <sys/poll.h> #ifdef HAVE_POLL
7672         * src/select-gtk.c: prototype lisp_to_time
7673
7674 2001-06-08  Ben Wing  <ben@xemacs.org>
7675
7676         ------ gc-in-window-procedure fixes ------
7677         
7678         * alloc.c:
7679         * alloc.c (struct post_gc_action):
7680         * alloc.c (register_post_gc_action):
7681         * alloc.c (run_post_gc_actions):
7682         * alloc.c (garbage_collect_1):
7683         Create "post-gc actions", to avoid those dreaded "GC during window
7684         procedure" problems.
7685
7686         * event-msw.c:
7687         Abort, clean and simple, when GC in window procedure.  We want
7688         to flush these puppies out.
7689
7690         * glyphs-msw.c:
7691         * glyphs-msw.c (finalize_destroy_window):
7692         * glyphs-msw.c (mswindows_finalize_image_instance):
7693         Use a post-gc action when destroying subwindows.
7694
7695         * lisp.h:
7696         Declare register_post_gc_action().
7697
7698         * scrollbar-msw.c:
7699         * scrollbar-msw.c (unshow_that_mofo):
7700         Use a post-gc action when unshowing scrollbar windows, if in gc.
7701
7702         * redisplay.c (mark_redisplay):
7703         Add comment about the utter evilness of what's going down here.
7704
7705         ------ cygwin setitimer fixes ------
7706         
7707         * Makefile.in.in (sheap_objs):
7708         * Makefile.in.in (profile_objs):
7709         * Makefile.in.in (objs):
7710         Compile profile.c only when HAVE_SETITIMER.
7711         
7712         * nt.c (mswindows_sigset):
7713         * nt.c (mswindows_sighold):
7714         * nt.c (mswindows_sigrelse):
7715         * nt.c (mswindows_sigpause):
7716         * nt.c (mswindows_raise):
7717         * nt.c (close_file_data):
7718         Style fixes.
7719         
7720         * nt.c:
7721         Move setitimer() emulation to win32.c, because Cygwin needs it too.
7722         
7723         * profile.c:
7724         * profile.c (Fstart_profiling):
7725         * profile.c (Fstop_profiling):
7726         Make sure we don't compile if no setitimer().  Use qxe_setitimer()
7727         instead of just plain setitimer().
7728         
7729         * signal.c:
7730         * signal.c (set_one_shot_timer):
7731         * signal.c (alarm):
7732         Define qxe_setitimer() as an encapsulation around setitimer() --
7733         call setitimer() directly unless Cygwin or MS Win, in which case
7734         we use our simulated version in win32.c.
7735         
7736         * systime.h:
7737         * systime.h (struct itimerval):
7738         * systime.h (ITIMER_REAL):
7739         Prototype mswindows_setitimer() and qxe_setitimer().  Long
7740         comment about "qxe" and the policy regarding encapsulation.
7741
7742         * win32.c:
7743         * win32.c (setitimer_helper_proc):
7744         * win32.c (setitimer_helper_period):
7745         * win32.c (setitimer_helper):
7746         * win32.c (mswindows_setitimer):
7747         Move setitimer() emulation here, so Cygwin can use it.
7748         Rename a couple of functions and variables to be longer and more
7749         descriptive.  In setitimer_helper_proc(), send the signal
7750         using either mswindows_raise() or (on Cygwin) kill().  If for
7751         some reason we are still getting lockups, we'll change the kill()
7752         to directly invoke the signal handlers.
7753
7754         ------ windows shell fixes ------
7755         
7756         * callproc.c:
7757         * ntproc.c:
7758         Comments about how these two files must die.
7759
7760         * callproc.c (init_callproc):
7761         On MS Windows, init shell-file-name from SHELL, then COMSPEC,
7762         not just COMSPEC. (more correct and closer to FSF.) Don't
7763         force a value for SHELL into the environment. (Comments added
7764         to explain why not.)
7765         
7766         * nt.c (init_user_info):
7767         Don't shove a fabricated SHELL into the environment.  See above.
7768
7769 2001-06-01  Ben Wing  <ben@xemacs.org>
7770
7771         * Makefile.in.in (ldflags):
7772         eliminate that pesky "defaulting to 00401000" warning.
7773         * nt.h:
7774         eliminate warnings.
7775
7776 2001-06-15  Golubev I. N.  <gin@mo.msk.ru>
7777
7778         * s/sco5.h (FORCE_ALLOCATE_PTY_THE_OLD_FASHIONED_WAY): #define.
7779         * process-unix.c (allocate_pty): #ifndef "modern" pty allocation.
7780
7781 2001-04-24  Jerry James <james@xemacs.org>
7782
7783         * faces.h: pass parameters to Fadd_spec_to_specifier in the
7784         correct order.
7785
7786 2001-06-01  Ben Wing  <ben@xemacs.org>
7787
7788         * event-msw.c (debug_mswin_messages):
7789         conditionalize the messages that were causing compile errors.
7790         (if only macros could generate #ifdef statements ...)
7791
7792 2001-07-28  Stephen J. Turnbull  <stephen@xemacs.org>
7793
7794         * XEmacs 21.4.4 "Artificial Intelligence" is released.
7795
7796 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
7797
7798         * event-msw.c (mswindows_wnd_proc): Add GC debugging assert.
7799
7800 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
7801
7802         * config.h.in (IPV6_CANONICALIZE): New #define for --with-ipv6-lookup.
7803         * process-unix.c (unix_canonicalize_host_name):
7804         sysdep.c (init_system_name):
7805         Use it to conditionally support IPv6 canonicalization.
7806
7807 2001-05-31  Paul Stodghill  <stodghil@cs.cornell.edu>
7808
7809         * event-msw.c:
7810         Cygwin does not define WM_IME_xxx. Modify the #if's accordingly.
7811
7812 2001-05-19  Paul Krause  <paulkrause1@mediaone.net>
7813
7814         * scrollbar-msw.c: Fixes a crash that occurs on Windows when an
7815         attempt is made to scroll when no scroll bar is available.
7816
7817 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
7818
7819         * input-method-motif.c (XIM_delete_frame): New callback.
7820         (XIM_init_frame): Register it.  (Reapplied by SJT, it somehow
7821         got deleted from 21.4.3.)
7822
7823 2001-06-01  Ben Wing  <ben@xemacs.org>
7824
7825         * nt.c (mswindows_utime):
7826         * nt.c (close_file_data):
7827         fix off-by-one-indirection error.
7828
7829 2001-05-29  Adrian Aichner  <adrian@xemacs.org>
7830
7831         * fileio.c: Include nt.h.  Remove lisp_string_set_file_times()
7832         because set_file_times() now takes Lisp_Object path, instead of
7833         char*.
7834         * nt.c: Include buffer.h.
7835         * nt.c (convert_from_time_t): New.
7836         * nt.c (mswindows_utime): New.  Use utime, since SetFileTime does
7837         not set mtime correctly.
7838         * nt.h: Declare mswindows_utime().
7839         * sysdep.c (set_file_times): set_file_times() now takes Lisp_Object
7840         path, instead of char*.
7841         * systime.h: Include <sys/utime.h> on WIN32_NATIVE.
7842
7843 2001-05-30  Ben Wing  <ben@xemacs.org>
7844
7845         For 21.4:
7846
7847         (Stephen, just take all event-msw.c patches.  This includes
7848         the "iconify" fix below.)
7849
7850         * event-msw.c:
7851         * event-msw.c (mswindows_dequeue_dispatch_event):
7852         * event-msw.c (assert):
7853         * event-msw.c (emacs_mswindows_quit_p):
7854         * event-msw.c (debug_mswin_messages):
7855         * event-msw.c (debug_output_mswin_message):
7856         * event-msw.c (vars_of_event_mswindows):
7857         Fix yet more problems with C-g handling.
7858         Implement debug-mswindows-events.
7859         
7860 2001-05-24  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7861
7862         * event-msw.c (WM_DROPFILES): Use correct type for OLE characters.
7863         
7864 2001-05-23  Ben Wing  <ben@xemacs.org>
7865
7866         * event-msw.c (winsock_writer):
7867         * event-msw.c (winsock_closer):
7868         prior kludgy code was clobbering the buffer, thinking it was
7869         "unused" space to store an unneeded return value; instead, use
7870         the variable we've already got staring us in the face.
7871
7872 2001-05-17  Andy Piper  <andy@xemacs.org>
7873
7874         * sysfile.h: don't assume that file attributes are boolean
7875
7876 2001-05-23  Ben Wing  <ben@xemacs.org>
7877
7878         * device-msw.c (msprinter_init_device):
7879         signal an error rather than crash with an unavailable network
7880         printer (from Mike Alexander).
7881         
7882         * event-msw.c:
7883         * event-msw.c (struct winsock_stream):
7884         * event-msw.c (winsock_writer):
7885         * event-msw.c (winsock_closer):
7886         * event-msw.c (make_winsock_stream_1):
7887         cleanup headers.  fix (hopefully) an error with data corruption
7888         when sending to a network connection.
7889
7890         * fileio.c (Fexpand_file_name): Fix evil code that attempts
7891         to handle the ~user prefix by (a) always assuming we're referencing
7892         ourselves and not even verifying the user -- hence any file with
7893         a tilde as its first char is invalid! (b) if there wasn't a slash
7894         following the filename, the pointer was set *past* the end of
7895         file and we started reading from uninitialized memory.  Now we
7896         simply treat these as files, always.
7897
7898         * buffer.c (common_init_complex_vars_of_buffer): comment change.
7899         
7900 2001-05-19  Ben Wing  <ben@xemacs.org>
7901
7902         * eval.c: doc comment about gcpro'ing in record_unwind_protect.
7903
7904         * process-nt.c:
7905         * process-nt.c (vars_of_process_nt):
7906         remove unused mswindows-quote-process-args.  rec for 21.4.
7907         
7908 2001-05-12  Ben Wing  <ben@xemacs.org>
7909
7910         * event-msw.c (mswindows_dde_callback):
7911         * event-msw.c (mswindows_wnd_proc):
7912         eliminate cygwin warnings.
7913
7914 2001-05-06  Ben Wing  <ben@xemacs.org>
7915
7916         * console-msw.h:
7917         * device-msw.c:
7918         * device-msw.c (print_dialog_worker):
7919         * device-msw.c (mswindows_handle_print_dialog_box):
7920         * device-msw.c (syms_of_device_mswindows):
7921         * dialog-msw.c (mswindows_make_dialog_box_internal):
7922         * general-slots.h:
7923         implement printing the selection when it's selected.
7924
7925 2001-05-20  Drazen Kacar  <dave@arsdigita.com>
7926
7927         * glyphs-gtk.c (gtk_resource_instantiate): C++ comment -> #if 0
7928
7929 2001-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
7930
7931         * lisp.h (EMACS_INT_MAX): This should be one bit less since
7932         EMACS_INT is signed.
7933
7934 2001-04-15  Michael Lausch  <mla@1012surf.net>
7935
7936         * scrollbar-gtk.c (gtk_create_scrollbar_instance): Call
7937         gtk_widget_request_size() to give scrollbar >0 width for
7938         GTK >1.2.8.
7939
7940 2001-05-30  William M. Perry  <wmperry@gnu.org>
7941
7942         * event-gtk.c: Check for buttons as modifier keys.
7943
7944 2001-05-25  Craig Lanning  <CraigL@Knology.net>
7945
7946         * s\mingw32.h:
7947         Properly find MinGW's <process.h> inside Cygwin's restructured
7948         include directories.  Don't try to include <cygwin/version.h>
7949         since we are dropping support for MinGW in versions of Cygwin
7950         earlier than b21.
7951         * nt.c:
7952         Drop support for MinGW in versions of Cygwin before b21.
7953         * sysdep.c:
7954         Properly find MinGW's <process.h> inside Cygwin's restructured
7955         include directories.
7956         * syswindows.h:
7957         Drop support for MinGW in versions of Cygwin before b21.
7958         * unexcw.c:
7959         Even though a.out.h is no longer detected by configure, allow
7960         MinGW to use it until we figure out how to do the job with Win32.
7961
7962 2001-07-11  Matt Tucker  <tuck@whistlingfish.net>
7963
7964         * syntax.c (find_start_of_comment):
7965         Fix `unbalanced parentheses' bug when dealing with mixed comment
7966         styles in c++/java/etc. mode
7967
7968 2001-05-29  Mike Alexander  <mta@arbortext.com>
7969
7970         * console-msw.h (FRAME_MSPRINTER_CHARHEIGHT): Unswap
7971         FRAME_MSPRINTER_CHARWIDTH and FRAME_MSPRINTER_CHARHEIGHT
7972
7973 2001-05-17  Andrew Begel  <abegel@eecs.berkeley.edu>
7974
7975         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Add needed cast.
7976
7977 2001-03-31  Mike Sperber <mike@xemacs.org>
7978
7979         * search.c (Freplace_match): Support FSF-style specification of
7980         match subexpression when applied to a buffer.
7981
7982 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
7983
7984         * event-stream.c (is_scrollbar_event): add missing semicolon
7985
7986 2001-05-22  Isaac Hollander  <ysh@mindspring.com>
7987
7988         * Makefile.in.in: Use TAR macro instead of hardcoding
7989           tar.  Allows use of GNU tar instead of system tar
7990
7991 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
7992
7993         * event-stream.c (is_scrollbar_event): add missing semicolon
7994
7995 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
7996
7997         * XEmacs 21.4.3 "Academic Rigor" is released.
7998
7999 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
8000
8001         * regex.c: Define DECLARE_NOTHING when "lisp.h" is not included.
8002
8003 2001-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
8004
8005         * buffer.c (Vcase_fold_search): Remove obsolete
8006           comment about non ASCII case-fold-search.  This
8007           bug has been fixed by case-table changes.
8008
8009 2001-05-11  Stephen J. Turnbull  <stephen@xemacs.org>
8010
8011         * event-msw.c: Restore include of events-mod.h.
8012
8013 2001-04-22   zhaoway  <zw@debian.org>
8014
8015         * event-stream.c (is_scrollbar_event): Noop returning 0 if
8016         !HAVE_SCROLLBARS.
8017
8018 2001-05-10  Stephen J. Turnbull  <stephen@xemacs.org>
8019
8020         * XEmacs 21.4.2 "Developer-Friendly Unix APIs" is released.
8021
8022 2001-05-08  Yoshiaki Kasahara  <kasahara@nc.kyushu-u.ac.jp>
8023
8024         * mule-charset.c (Fmake_charset): Add missing else.
8025
8026 2001-04-23  Ben Wing  <ben@xemacs.org>
8027
8028         * event-msw.c (FAKE_MOD_QUIT):
8029         * event-msw.c (mswindows_dequeue_dispatch_event):
8030         * event-msw.c (mswindows_wnd_proc):
8031         * event-msw.c (emacs_mswindows_quit_p):
8032         Get critical quit working.
8033
8034 2001-05-05  Ben Wing  <ben@xemacs.org>
8035
8036         * console-msw.h:
8037         * device-msw.c:
8038         * device-msw.c (mswindows_get_default_margin):
8039         * frame-msw.c (mswindows_size_frame_internal):
8040         * frame-msw.c (msprinter_init_frame_1):
8041         * frame-msw.c (vars_of_frame_mswindows):
8042         Change top/bottom margin defaults to 0.5 inches.
8043
8044 2001-05-01  Martin Buchholz  <martin@xemacs.org>
8045
8046         Fix link error with gcc 3.0 on Linux.
8047         * terminfo.c (UP): Remove.
8048         * terminfo.c (BC): Remove.
8049         * terminfo.c (PC): Remove.
8050         They weren't used, and in any case, these symbols should be
8051         defined in the *library*.
8052
8053 2001-05-03  Martin Buchholz  <martin@xemacs.org>
8054
8055         * s/aix4.h: Fix crash with xlc -O3.
8056         Improve comment explaining how -O3 works.
8057
8058 2001-04-15  Ben Wing  <ben@xemacs.org>
8059
8060         * event-stream.c:
8061         * event-stream.c (Fnext_event):
8062         * event-stream.c (is_scrollbar_event):
8063         * event-stream.c (execute_command_event):
8064         Better fix for Yoshiki's `C-x @ h <scrollbar-drag> x causes a
8065         crash' problem.  His fix introduces other problems.  We filter
8066         out scrollbar events specifically, making them somewhat invisible
8067         to command-building, and not appearing in `this-command-keys'.
8068         More work is still needed (see comments in event-stream.c), but
8069         this fixes all the major problems.
8070
8071 2001-04-20  Ben Wing  <ben@xemacs.org>
8072
8073         * .cvsignore: Added stuff for Windows.
8074
8075 2001-04-28  Ben Wing  <ben@xemacs.org>
8076
8077         * buffer.c (Ferase_buffer):
8078         * editfns.c (buffer_insert1):
8079         * editfns.c (Finsert_before_markers):
8080         * editfns.c (Finsert_string):
8081         * editfns.c (Finsert_char):
8082         * editfns.c (Fdelete_region):
8083         * editfns.c (Fwiden):
8084         * editfns.c (Fnarrow_to_region):
8085         remove bogus lines setting zmacs_region_stays to 0.
8086         
8087 2001-04-15  Gunnar Evermann  <ge204@eng.cam.ac.uk>
8088
8089         * process-unix.c (unix_open_network_stream): If connect() fails
8090         invalidate file descriptor after closing it.
8091
8092 2001-03-08  Mike Alexander  <mta@arbortext.com>
8093
8094         * event-msw.c (mswindows_need_event_in_modal_loop):
8095         Don't dispatch a message if we didn't get one.
8096         (mswindows_need_event):
8097         Terminate the correct process when one exits instead of the first
8098         one on Vprocess_list and look for process termination when in
8099         mswindows_protect_modal_loop.
8100
8101 2001-04-19  Stephen J. Turnbull  <stephen@xemacs.org>
8102
8103         * XEmacs 21.4.1 "Copyleft" is released.
8104
8105 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
8106
8107         * input-method-motif.c (XIM_delete_frame): New callback.
8108         (XIM_init_frame): Register it.
8109
8110 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
8111
8112         * XEmacs 21.4.0 "Solid Vapor" is released.
8113
8114 2001-04-15  Ben Wing  <ben@xemacs.org>
8115
8116         * cmdloop.c (call_command_loop):
8117         Fix braino in bit-rotting code.
8118         
8119 2001-04-07  Hrvoje Niksic  <hniksic@arsdigita.com>
8120
8121         * extents.c (Fset_extent_endpoints): Force creation of extent info
8122         in buffer_or_string.
8123
8124         * extents.c (process_extents_for_insertion_mapper): Correctly
8125         check for open-open zero-length extents.
8126
8127 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
8128
8129         * lisp.h: New typedefs Memory_count, Element_count.
8130         * regex.c:
8131         * regex.h:
8132         Sign-compare warning elimination: several unsigned -> signed.
8133         Based on work by Ben Wing <ben@xemacs.org>.
8134
8135 2001-04-14  Stephen J. Turnbull  <stephen@xemacs.org>
8136
8137         * XEmacs 21.2.47 "Zephir" is released.
8138
8139 2001-04-02  Jan Vroonhof  <jan@xemacs.org>
8140
8141         * redisplay.c (add_bufbyte_string_runes): Update data->bytepos
8142
8143 2001-04-03  Mike Sperber <mike@xemacs.org>
8144
8145         * search.c: Revert previous patch due because of release.
8146
8147 2001-03-30  Ben Wing  <ben@xemacs.org>
8148
8149         * s\cygwin32.h:
8150         Add missing killpg prototype.
8151
8152         * elhash.c:
8153         Add a comment about fixing problems when a new entry is added
8154         while mapping.
8155
8156         * frame-msw.c (mswindows_init_frame_1):
8157         Fix compile warnings.
8158
8159         * menubar.c (vars_of_menubar):
8160         Provide `menu-accelerator-support' to indicate that we properly
8161         support %_ in menu specifications, so that package code can
8162         conditionalize on this (and remove %_ from menu specifications
8163         on older versions).
8164
8165         * event-msw.c:
8166         * scrollbar-msw.c:
8167         * scrollbar-msw.c (can_scroll):
8168         * scrollbar-msw.h:
8169         Fix handling of mouse wheel under Windows to follow standards --
8170         now scrolls window under pointer, not selected window.
8171
8172 2001-03-31  Mike Sperber <mike@xemacs.org>
8173
8174         * search.c (Freplace_match): Support FSF-style specification of
8175         match subexpression when applied to a buffer.
8176
8177 2001-03-15  Martin Buchholz  <martin@xemacs.org>
8178
8179         * keymap.c (Fmap_keymap): map-keymap explicitly allows a mapping
8180         function to modify KEYMAP, so map over a copy of the hash table.
8181
8182 2001-03-21  Martin Buchholz <martin@xemacs.org>
8183
8184         * XEmacs 21.2.46 "Urania" is released.
8185
8186 2001-03-20  Dan Holmsand  <dan@eyebee.com>
8187
8188         * realpath.c (xrealpath): Make file-truename work with symlinks to
8189         /cygdrive paths on cygwin. Always lowercase drive-letters on
8190         native windows.
8191         (cygwin_readlink): Don't try to find canonical filename unless
8192         file exists.
8193
8194 2001-03-15  Stephen J. Turnbull  <stephen@xemacs.org>
8195
8196         * ChangeLog: Log GTK merge.
8197
8198         * dumper.c:
8199         * select-x.c:
8200         * specifier.c:
8201         * symeval.h:
8202         Revert gratuitous whitespace changes from GTK merge.
8203
8204         * emacs.c: Document end of complex #ifdef @ l. 1495.
8205
8206
8207 2001-03-12  Andy Piper  <andy@xemacs.org>
8208
8209         * mingw32.h: unfortunately cygnus changed mingw32 -> mingw so we
8210         have to do likewise.
8211
8212 2001-03-12  Andy Piper  <andy@xemacs.org>
8213
8214         * sysdep.c: we only support mingw now.
8215
8216 2001-03-09  Andy Piper  <andy@xemacs.org>
8217
8218         * unexcw.c (copy_executable_and_dump_data_section): making approx
8219         overrun a warning only.
8220
8221 2001-03-10  William M. Perry  <wmperry@aventail.com>
8222
8223         * faces.c (complex_vars_of_faces): Rewrote the font mucking to
8224         satisfy Stephen's identical-after-cpp plea.
8225
8226 2001-03-02  Ben Wing  <ben@xemacs.org>
8227
8228         * cmds.c:
8229         * cmds.c (Fforward_char):
8230         * syntax.c:
8231         * window.c:
8232
8233         Augment documentation of the most common motion commands to make
8234         note of the shifted-motion support.
8235         
8236 2001-03-02  Ben Wing  <ben@xemacs.org>
8237
8238         * nt.c (mswindows_fstat):
8239         * nt.c (mswindows_stat):
8240         * search.c (boyer_moore):
8241         Fix compile warnings under Windows.
8242         
8243         * sysdep.c (sys_readdir):
8244         Fix buggy filename-conversion code under Mule.
8245
8246 2001-03-09  William M. Perry  <wmperry@aventail.com>
8247
8248         * Makefile.in.in:
8249         * config.h.in:
8250         * console.c:
8251         * console.h:
8252         * device.c:
8253         * device.h:
8254         * dragdrop.c:
8255         * emacs.c:
8256         * event-stream.c:
8257         * events.c:
8258         * events.h:
8259         * faces.c:
8260         * frame.h:
8261         * general-slots.h:
8262         * glyphs.c:
8263         * gutter.c:
8264         * inline.c:
8265         * lisp.h:
8266         * lrecord.h:
8267         * make-src-depend:
8268         * redisplay-output.c:
8269         * redisplay.c:
8270         * symsinit.h:
8271         * sysfile.h:
8272         * toolbar.c:
8273         * window.c:
8274         The Great GTK Merge.
8275
8276         * ChangeLog.GTK:
8277         * console-gtk.c:
8278         * console-gtk.h:
8279         * device-gtk.c:
8280         * emacs-marshals.c:
8281         * emacs-widget-accessors.c:
8282         * event-gtk.c:
8283         * frame-gtk.c:
8284         * gccache-gtk.c:
8285         * gccache-gtk.h:
8286         * glade.c:
8287         * glyphs-gtk.c:
8288         * glyphs-gtk.h:
8289         * gtk-glue.c:
8290         * gtk-xemacs.c:
8291         * gtk-xemacs.h:
8292         * gui-gtk.c:
8293         * gui-gtk.h:
8294         * menubar-gtk.c:
8295         * native-gtk-toolbar.c:
8296         * objects-gtk.c:
8297         * objects-gtk.h:
8298         * redisplay-gtk.c:
8299         * scrollbar-gtk.c:
8300         * scrollbar-gtk.h:
8301         * select-gtk.c:
8302         * toolbar-gtk.c:
8303         * ui-byhand.c:
8304         * ui-gtk.c:
8305         * ui-gtk.h:
8306         The Great GTK Merge: new files.
8307
8308 2001-02-26  Ben Wing  <ben@xemacs.org>
8309
8310         Reapplied Lstream change.
8311
8312 2001-02-26  Ben Wing  <ben@xemacs.org>
8313
8314         Undid the last change, since it is more controversial than I
8315         thought.  It should be back in at some point soon.
8316         
8317 2001-02-25  Ben Wing  <ben@xemacs.org>
8318
8319         * buffer.c:
8320         * callproc.c (Fold_call_process_internal):
8321         * event-msw.c (ntpipe_slurp_reader):
8322         * event-msw.c (ntpipe_shove_writer):
8323         * event-msw.c (winsock_reader):
8324         * event-msw.c (winsock_writer):
8325         * file-coding.c:
8326         * file-coding.c (detect_eol_type):
8327         * file-coding.c (detect_coding_type):
8328         * file-coding.c (determine_real_coding_system):
8329         * file-coding.c (Fdetect_coding_region):
8330         * file-coding.c (decoding_reader):
8331         * file-coding.c (decoding_writer):
8332         * file-coding.c (mule_decode):
8333         * file-coding.c (Fdecode_coding_region):
8334         * file-coding.c (encoding_reader):
8335         * file-coding.c (encoding_writer):
8336         * file-coding.c (mule_encode):
8337         * file-coding.c (Fencode_coding_region):
8338         * file-coding.c (detect_coding_sjis):
8339         * file-coding.c (decode_coding_sjis):
8340         * file-coding.c (encode_coding_sjis):
8341         * file-coding.c (detect_coding_big5):
8342         * file-coding.c (decode_coding_big5):
8343         * file-coding.c (encode_coding_big5):
8344         * file-coding.c (detect_coding_ucs4):
8345         * file-coding.c (decode_coding_ucs4):
8346         * file-coding.c (encode_coding_ucs4):
8347         * file-coding.c (detect_coding_utf8):
8348         * file-coding.c (decode_coding_utf8):
8349         * file-coding.c (encode_coding_utf8):
8350         * file-coding.c (detect_coding_iso2022):
8351         * file-coding.c (decode_coding_iso2022):
8352         * file-coding.c (encode_coding_iso2022):
8353         * file-coding.c (decode_coding_no_conversion):
8354         * file-coding.c (encode_coding_no_conversion):
8355         * glyphs-x.c (write_lisp_string_to_temp_file):
8356         * gpmevent.c (tty_get_foreign_selection):
8357         * lisp.h:
8358         * lstream.c:
8359         * lstream.c (Lstream_flush_out):
8360         * lstream.c (Lstream_adding):
8361         * lstream.c (Lstream_write_1):
8362         * lstream.c (Lstream_write):
8363         * lstream.c (Lstream_raw_read):
8364         * lstream.c (Lstream_read_more):
8365         * lstream.c (Lstream_read):
8366         * lstream.c (Lstream_unread):
8367         * lstream.c (Lstream_fputc):
8368         * lstream.c (stdio_reader):
8369         * lstream.c (stdio_writer):
8370         * lstream.c (filedesc_reader):
8371         * lstream.c (filedesc_writer):
8372         * lstream.c (lisp_string_reader):
8373         * lstream.c (struct fixed_buffer_stream):
8374         * lstream.c (make_fixed_buffer_input_stream):
8375         * lstream.c (make_fixed_buffer_output_stream):
8376         * lstream.c (fixed_buffer_reader):
8377         * lstream.c (fixed_buffer_writer):
8378         * lstream.c (struct resizing_buffer_stream):
8379         * lstream.c (resizing_buffer_writer):
8380         * lstream.c (dynarr_writer):
8381         * lstream.c (lisp_buffer_reader):
8382         * lstream.c (lisp_buffer_writer):
8383         * lstream.h:
8384         * lstream.h (lstream_implementation):
8385         * lstream.h (struct lstream):
8386         * md5.c (Fmd5):
8387         * process-nt.c (nt_send_process):
8388         * process-unix.c (unix_send_process):
8389         
8390         Correct Lstream lossage due to mixing of signed and unsigned
8391         quantities.  All Lstream uses of size_t and ssize_t are now a
8392         single signed data type Lstream_data_count.  This fixes problems
8393         under Windows with sending large quantities of data to a process,
8394         and may well fix other subtle bugs.
8395
8396 2001-02-23  Martin Buchholz <martin@xemacs.org>
8397
8398         * XEmacs 21.2.45 "Thelxepeia" is released.
8399
8400 2001-02-21  Martin Buchholz  <martin@xemacs.org>
8401
8402         * lisp-union.h (XSETINT): 
8403         (XSETCHAR):
8404         (XSETOBJ): 
8405         Reverse previous change of 2001-02-06.
8406
8407 2001-02-20  Matt Tucker  <tuck@whistlingfish.net>
8408
8409         Fix `VALID_BYTIND_P' crashes in regex.c when using narrowed
8410         buffers.
8411         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
8412         * syntax.h (SYNTAX_CACHE_OBJECT_BYTE_TO_CHAR):
8413         Add `BI_BUF_BEGV' to bytepos before calculating bufpos.
8414         * regex.c (POS_AS_IN_BUFFER): removed
8415         * regex.c (re_search_2):
8416         * regex.c (re_match_2):
8417         Don't use an offset of 1 when calculating buffer positions, since
8418         `BI_BUF_BEGV' does it already.
8419
8420 2001-02-18  Wim Dumon  <wim@easics.be>
8421
8422         * insdel.c (prepare_to_modify_buffer): Also check for
8423         supersession when clash-detection is enabled. 
8424
8425 2001-02-17  Matt Tucker  <tuck@whistlingfish.net>
8426
8427         * regex.c (re_match_2_internal):
8428         Convert temp characters from 'const unsigned char' to 're_char'.
8429         Fix crashing bug with extended characters under mule.
8430         * syntax.c (Qsyntax_table): Moved from vars_of_syntax to
8431         syms_of_syntax. Use defsymbol to define. Fixes hanging bug with
8432         font-lock, pdump, and new syntax-table code.
8433         * syntax.c (find_start_of_comment):
8434         (find_end_of_comment):
8435         (forward-comment):
8436         Fix crashing bugs involving moving beyond end of buffer.
8437         * syntax.c (find_start_of_comment):
8438         Fixed logic to allow proper detection of cases where the same
8439         character is used to end both a two-char comment start and a
8440         two-char comment end sequence. Fixes `(forward-comment -1)'.
8441         * syntax.c (find_start_of_comment):
8442         Return position just past last comment-end character for all cases
8443         (previously was only done for two-char comment-end sequences).
8444         * syntax.c (forward-comment):
8445         Take value returned from `find_end_of_comment', rather than
8446         incrementing it.
8447         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
8448         Properly deal with BUFFERP (syntax_cache.object)
8449
8450 2001-02-17  Martin Buchholz  <martin@xemacs.org>
8451
8452         * alloc.c (Fgarbage_collect): 
8453         * alloc.c (make_bit_vector_from_byte_vector):
8454         -Wsign-compare-correctness.
8455
8456 2001-02-16  Martin Buchholz  <martin@xemacs.org>
8457
8458         * lisp-union.h (XSETINT): Eliminate unnecessary temp var.
8459         (XSETCHAR): Likewise.
8460         (XSETOBJ): Likewise.
8461
8462 2001-02-15  Martin Buchholz  <martin@xemacs.org>
8463
8464         * mule-canna.c (canna-func-delete_previous): 
8465         Rename to canna-func-delete-previous.
8466
8467 2001-02-14  Martin Buchholz  <martin@xemacs.org>
8468
8469         * mule-ccl.c (ccl_driver): Warning suppression.  Use countof.
8470
8471 2001-02-13  Matt Tucker  <tuck@whistlingfish.net>
8472
8473         * font-lock.c (find_context): Fix C++ compile errors introduced by
8474         recent patch
8475
8476 2001-02-13  Martin Buchholz  <martin@xemacs.org>
8477
8478         * s/aix4.h: Later versions of IBM C compiler need a bug workaround
8479         pragma, but earlier ones barf on the same pragma.
8480
8481 2001-02-06  Mike Sperber <mike@xemacs.org>
8482
8483         * emacs.c (complex_vars_of_emacs): Add `mule-lisp-directory' and
8484         `configure-mule-lisp-directory'.
8485
8486 2001-02-12  Martin Buchholz  <martin@xemacs.org>
8487
8488         Make sure dump-id.c is compiled in the same way as other .c's.
8489         Fixes pdump compilation failure with HP's cc, which defaults to K&R.
8490         * dump-id.h: Remove.
8491         * emacs.c: Move dump-id.h into dumper.h.
8492         * dumper.h: Move dump-id.h into dumper.h.
8493         * Makefile.in.in:
8494         Use standard .c.o rule for building dump-id.o.
8495         Remove preprocessor flags from link command.
8496         Add dump-id.o to ${otherobjs} if PDUMP.
8497
8498 2001-02-07  Matt Tucker  <tuck@whistlingfish.net>
8499
8500         Port FSF 20.7 syntax table improvements.
8501         * syntax.c.
8502         * syntax.h.
8503
8504         Fixups for new syntax table stuff.
8505         * dired.c: Include syntax.c.
8506         (Fdirectory_files): Initialize regex_match_object and
8507         regex_emacs_buffer.
8508         * extents.h: EXFUN Fnext_extent_change, Fprevious_extent_change,
8509         and Fget_char_property.
8510
8511         Use ported FSF 20.7 syntax table improvements.
8512         * font-lock.c.
8513         * regex.c.
8514         * search.c.
8515         
8516 2001-02-09  Martin Buchholz  <martin@xemacs.org>
8517
8518         * regex.c (Boolean): Renamed to `re_bool', to avoid conflict with
8519         Unixware's enum boolean from sys/types.h.
8520
8521 2001-02-10  Martin Buchholz  <martin@xemacs.org>
8522
8523         Fix support for building with latest Purify.
8524         * Makefile.in.in (PURIFY_LIBS): Remove thread flags.
8525         (PURIFY_FLAGS): Likewise.
8526
8527 2001-02-09  Martin Buchholz  <martin@xemacs.org>
8528
8529         * fileio.c (lisp_string_set_file_times): New.
8530         * fileio.c (Fcopy_file): Use it.
8531         Fixes bug:
8532         (copy-file filename non-ascii-filename t t)
8533         ==> No such file or directory, non-ascii-filename
8534
8535 2001-02-10  Martin Buchholz  <martin@xemacs.org>
8536
8537         * glyphs-x.c (generate_cursor_fg_bg): Avoid a warning.
8538         USHRT_MAX seems clearer than ~0 anyways.
8539
8540 2001-02-09  Martin Buchholz  <martin@xemacs.org>
8541
8542         dumper improvements.  Inspired by Olivier.
8543         * dumper.c (pdump_max_align): New.
8544         * dumper.c (pdump_add_entry): Use pdump_max_align.
8545         * dumper.c (pdump_get_entry_list): Likewise.
8546         * dumper.c (pdump_scan_by_alignment): Likewise.
8547         Don't iterate through unnecessary alignments.
8548         * dumper.c (pdump_file_get): No need to align result of malloc().
8549         * dumper.c (pdump_mallocadr): Remove.  
8550         The result of malloc() is guaranteed to be maximally aligned.
8551         * dumper.c: s/elmt/elt/g;
8552         * dumper.c (pdump_object_table): Allocate dynamically, not statically.
8553         * dumper.c (pdump_alert_undump_object): Likewise.
8554         * dumper.c (pdump_align_table): 
8555         Don't support alignments > 64.
8556         Store ALIGNOF's, not shift counts, in table.
8557
8558 2001-02-09  Martin Buchholz  <martin@xemacs.org>
8559
8560         * s/mingw32.h (HAVE_STRUCT_UTIMBUF): Remove.
8561         * s/windowsnt.h (HAVE_STRUCT_UTIMBUF): Remove.
8562         * systime.h: Use HAVE_UTIME.
8563         * sysdep.c (struct utimbuf): Remove.
8564         * sysdep.c (set_file_times): Prefer utime() to utimes().
8565         * config.h.in (HAVE_UTIME): New.
8566         * config.h.in (HAVE_UTIME_H): Remove.
8567         * config.h.in (HAVE_STRUCT_UTIMBUF): Remove.
8568
8569 2001-02-09  Martin Buchholz  <martin@xemacs.org>
8570
8571         * s/aix4.h: Hide #pragmas inside #ifndef NOT_C_CODE.
8572
8573 2001-02-08  Martin Buchholz  <martin@xemacs.org>
8574
8575         * s/irix6-0.h: Use the standard system memmove, not bcopy.
8576
8577 2001-02-08  Martin Buchholz <martin@xemacs.org>
8578
8579         * XEmacs 21.2.44 "Thalia" is released.
8580
8581 2001-02-06  Martin Buchholz  <martin@xemacs.org>
8582
8583         Fixes crashes in kill-emacs on some systems.
8584         * process-unix.c (unix_kill_child_process):
8585         It's OK for kill() to fail with ESRCH.
8586
8587 2001-02-07  Martin Buchholz  <martin@xemacs.org>
8588
8589         Contortions to make .gdbinit tricks work on most systems.
8590         * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
8591         * alloc.c (dbg_valmask): Make non-const.
8592         * alloc.c (dbg_typemask): Make non-const.
8593         * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
8594         * alloc.c (dbg_valbits): Make non-const.
8595         * alloc.c (dbg_gctypebits): Make non-const.
8596         * .gdbinit (decode_object): Make it work with AIX cc.
8597
8598 2001-02-06  Martin Buchholz  <martin@xemacs.org>
8599
8600         * elhash.c (make_general_lisp_hash_table):
8601         Use simpler and more efficient calloc to clear entries.
8602
8603 2001-02-07  Martin Buchholz  <martin@xemacs.org>
8604
8605         * window.c (window_scroll): Work around an AIX C compiler bug.
8606         Fixes 'scroll-up' does nothing problem with xlC.
8607
8608 2001-02-05  Martin Buchholz  <martin@xemacs.org>
8609
8610         * .gdbinit: Remove obsolete comment.
8611
8612 2001-01-31  Mike Alexander  <mta@arbortext.com>
8613
8614         * select.c (Fown_selection_internal): Set owned_p for device
8615         method correctly.
8616
8617 2001-02-01  Martin Buchholz  <martin@xemacs.org>
8618
8619         Port to g++ 2.97.
8620         "not" cannot be used as a macro name as it is an operator in C++
8621         * config.h.in: Stop #defining `not'.
8622         * chartab.c (check_category_char): not ==> not_p
8623         * chartab.h: Likewise.
8624         * regex.c (re_match_2_internal): Likewise.
8625
8626 2001-02-02  Martin Buchholz  <martin@xemacs.org>
8627
8628         * lisp-disunion.h: Fix up comments.
8629
8630 2001-01-31  Martin Buchholz  <martin@xemacs.org>
8631
8632         * keymap.c (define_key_check_and_coerce_keysym):
8633         (syms_of_keymap):
8634         Support mouse-6 and mouse-7 bindings in the obvious way.
8635
8636 2001-02-01  Martin Buchholz  <martin@xemacs.org>
8637
8638         * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
8639
8640 2001-01-30  Martin Buchholz  <martin@xemacs.org>
8641
8642         Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
8643         Previous patch missed DEFVAR_INT_MAGIC.
8644         Make sure future DEFVAR_foo use correct types.
8645         * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
8646         * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
8647         * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
8648         * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
8649         * (DEFVAR_INT): Likewise.
8650         * redisplay.c (vertical_clip): Should be of type Fixnum.
8651         * redisplay.c (horizontal_clip): Likewise.
8652         * lisp.h (dump_add_opaque_int): New.
8653         (dump_add_opaque_fixnum): New.
8654
8655 2001-01-29  Andy Piper  <andy@xemacs.org>
8656
8657         * glyphs-widget.c (check_valid_int_or_function): allow symbols
8658         since they can be eval'ed
8659
8660 2001-01-29  Martin Buchholz  <martin@xemacs.org>
8661
8662         * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
8663         Oops, XEmacs redefines `class'.  Use `typename' instead.
8664
8665 2001-01-28  Martin Buchholz  <martin@xemacs.org>
8666
8667         * dumper.c: Fix C++ compile errors.
8668
8669 2001-01-29  Martin Buchholz  <martin@xemacs.org>
8670
8671         * tparam.c: Use correct prototypes.
8672
8673 2001-01-28  Martin Buchholz  <martin@xemacs.org>
8674
8675         * sysproc.h: #include util.h for NetBSD's openpty.
8676
8677 2001-01-27  Martin Buchholz  <martin@xemacs.org>
8678
8679         More 64-bit correctness.
8680         The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
8681         Use a typedef `fixnum' for the type used for DEFVAR_INT.
8682         Fix up comments.
8683         This finally finishes the 64-bit SGI port.
8684         Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
8685         * symbols.c: Fix up comments and type casts.
8686         * symbols.c (do_symval_forwarding): s/int/Fixnum/g
8687         * symbols.c (store_symval_forwarding): s/int/Fixnum/g
8688         * symeval.h (Fixnum): New type.
8689         * symeval.h (symbol_value_type): Fix up comment.
8690
8691         * commands.h:
8692         * nt.c:
8693         * emacs.c:
8694         * data.c:
8695         * redisplay.c:
8696         * abbrev.c:
8697         * dired-msw.c:
8698         * event-Xt.c:
8699         * eldap.c:
8700         * window.c:
8701         * sound.c:
8702         * event-stream.c:
8703         * eval.c:
8704         * buffer.c:
8705         * mule-canna.c: A million DEFVAR_INTs here...
8706         * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
8707         * extents.c:
8708         * cmdloop.c:
8709         * lisp.h:
8710         * select-x.c:
8711         * console-x.h:
8712         * event-msw.c:
8713         * mule-wnnfns.c:
8714         * hpplay.c:
8715         * ralloc.c:
8716         * alloc.c:
8717         * keymap.c:
8718         * profile.c:
8719         s/int/Fixnum/g in DEFVAR_INT declarations.
8720
8721 2001-01-26  Martin Buchholz  <martin@xemacs.org>
8722
8723         Port pdump to SGI alignment-sensitive environment.
8724         Lisp Object sizeof methods now return aligned sizes.  Rely on that.
8725         Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
8726         properly aligned.
8727         Define and use aligned reading and writing macros.
8728         Use buffered stdio instead of posix i/o for faster dumping.
8729         Eliminate kludgy 256 byte space for header.
8730         Read and write from dump file using structs for alignment safety.
8731         * dumper.c (pdump_align_stream): New.
8732         * dumper.c (PDUMP_ALIGN_OUTPUT): New.
8733         * dumper.c (PDUMP_READ_ALIGNED): New.
8734         * dumper.c (PDUMP_WRITE_ALIGNED): New.
8735         * dumper.c (pdump_static_Lisp_Object): New struct.
8736         * dumper.c (pdump_static_pointer): New struct.
8737         * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
8738         * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
8739         * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
8740         * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
8741
8742         * dumper.c (pdump_backtrace):
8743         * dumper.c (pdump_get_indirect_count):
8744         * dumper.c (pdump_register_object):
8745         * dumper.c (pdump_register_struct):
8746         * dumper.c (pdump_reloc_one):
8747         * dumper.c (pdump_scan_by_alignment):
8748         * dumper.c (pdump_dump_from_root_struct_ptrs):
8749         * dumper.c (pdump_dump_opaques):
8750         * dumper.c (pdump_dump_rtables):
8751         * dumper.c (pdump_dump_from_root_objects):
8752         * dumper.c (pdump):
8753         * dumper.c (pdump_load_finish):
8754         Use aligned reading and writing.
8755
8756         * dumper.c (pdump_free): Make static.
8757         * dumper.c (pdump_hFile): Likewise.
8758         * dumper.c (pdump_hMap): Likewise.
8759
8760 2001-01-26  Martin Buchholz <martin@xemacs.org>
8761
8762         * XEmacs 21.2.43 "Terspichore" is released.
8763
8764 2001-01-25  Martin Buchholz  <martin@xemacs.org>
8765
8766         Type fiddling for window_config.saved_windows_count
8767         * window.c (struct window_config): 
8768         Make saved_windows_count member unsigned.
8769         * window.c (sizeof_window_config_for_n_windows): 
8770         Make parameter unsigned.
8771         * window.c (mark_window_config):
8772         * window.c (window_config_equal):
8773         * window.c (free_window_configuration):
8774         * window.c (Fset_window_configuration):
8775         * window.c (count_windows):
8776         * window.c (Fcurrent_window_configuration):
8777         * window.c (reinit_vars_of_window):
8778         Update all callers and users.
8779
8780 2001-01-25  Martin Buchholz  <martin@xemacs.org>
8781
8782         Alignment correctness for flexible arrays.
8783         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
8784         Make alignment-correct. Add interesting comments.
8785         * alloc.c (size_vector):
8786         * alloc.c (make_vector_internal):
8787         * alloc.c (make_bit_vector_internal):
8788         * alloc.c (sweep_bit_vectors_1):
8789         * fns.c (size_bit_vector):
8790         Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
8791         * window.c (sizeof_window_config_for_n_windows): 
8792         Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
8793
8794 2001-01-24  Martin Buchholz  <martin@xemacs.org>
8795
8796         * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
8797
8798 2001-01-23  Andy Piper  <andy@xemacs.org>
8799
8800         * select.c (Fown_selection_internal): pass owned_p
8801
8802         * select-msw.c (mswindows_own_selection): New Signature.
8803
8804         * console.h (struct console_methods): add owned_p to
8805         _own_selection.
8806
8807         * select-x.c (x_own_selection): pass owned_p
8808         (hack_motif_clipboard_selection): use owned_p
8809         (vars_of_select_x): new variable -
8810         x_selection_strict_motif_ownership.
8811
8812 2001-01-23  Martin Buchholz  <martin@xemacs.org>
8813
8814         * specifier.h (specifier_data_offset): Remove pointless parens.
8815         * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
8816
8817 2001-01-24  Martin Buchholz  <martin@xemacs.org>
8818
8819         Make Lisp_Object sizeof methods be alignment-correct.
8820         pdump must restore objects to the same alignment as the C compiler
8821         assumes.  It really matters on SGIs.
8822         * lstream.c (aligned_sizeof_lstream): New.
8823         (sizeof_lstream): Use aligned_sizeof_lstream.
8824         (Lstream_new): Likewise.
8825         * opaque.c (aligned_sizeof_opaque): New.
8826         (sizeof_opaque): Use aligned_sizeof_opaque.
8827         (make_opaque): Likewise.
8828         * specifier.c (aligned_sizeof_specifier): New.
8829         (sizeof_specifier): Use aligned_sizeof_specifier.
8830         (make_specifier_internal): Likewise.
8831
8832 2001-01-23  Martin Buchholz  <martin@xemacs.org>
8833
8834         * lstream.h (struct lstream): Use max_align_t for trailing data.
8835         * specifier.h (struct Lisp_Specifier): Likewise.
8836
8837 2001-01-22  Martin Buchholz  <martin@xemacs.org>
8838
8839         * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
8840         (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
8841         (CCL_SUSPEND): Likewise.
8842         (CCL_INVALID_CMD): Likewise.
8843         (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
8844         (ccl_driver): Likewise.
8845         (CCL_WRITE_CHAR): Macro hygiene.
8846         (CCL_WRITE_STRING): Macro hygiene.
8847
8848 2001-01-22  Martin Buchholz  <martin@xemacs.org>
8849
8850         Port "portable" dumper to SunOS 4 and HP-UX.
8851         * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
8852         * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
8853         * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
8854
8855 2001-01-22  Martin Buchholz  <martin@xemacs.org>
8856
8857         * lisp.h (ALIGNOF): A better definition for C++.
8858
8859 2001-01-20  Martin Buchholz  <martin@xemacs.org>
8860
8861         Macro hygiene.
8862         Fix printf warnings: int format, long int arg.
8863         * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
8864         (PUSH_FAILURE_POINT): Use correct printf formats.
8865         (POP_FAILURE_POINT): Use correct printf formats.  
8866         Use do {...} while (0)
8867
8868 2001-01-20  Martin Buchholz <martin@xemacs.org>
8869
8870         * XEmacs 21.2.42 "Poseidon" is released.
8871
8872 2001-01-20  Martin Buchholz  <martin@xemacs.org>
8873
8874         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
8875
8876 2001-01-19  Martin Buchholz  <martin@xemacs.org>
8877
8878         De-kludgify FIXED_TYPE free list frobbing.
8879         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
8880         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
8881         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
8882         * alloc.c (Lisp_Free): New pseudo lisp object definition.
8883         * alloc.c (LRECORD_FREE_P): New.
8884         * alloc.c (MARK_LRECORD_AS_FREE): New.
8885         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
8886         * alloc.c (STRUCT_FREE_P): Deleted.
8887         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
8888         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
8889         * alloc.c (STRING_CHARS_FREE_P): New.
8890         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
8891         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
8892         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
8893         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
8894         * alloc.c (resize_string): Use new definitions.
8895         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
8896         * alloc.c (verify_string_chars_integrity): Use new definitions.
8897         * alloc.c (compact_string_chars): Use new definitions.
8898         * alloc.c: Update monster comments.
8899         * lrecord.h (lrecord_type): Add some new lrecord types for
8900         alloc.c's use.
8901
8902 2001-01-18  Martin Buchholz  <martin@xemacs.org>
8903
8904         Improve alignment hackery.
8905         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
8906         (max_align_t): Moved from opaque.h - general purpose.
8907         (ALIGN_PTR): Use size_t, not long.
8908         * opaque.h (max_align_t): Move to lisp.h.
8909
8910 2001-01-18  Norbert Koch  <nk@LF.net>
8911
8912         * gui.h: Fix and add prototypes to fix build problems.
8913
8914 2001-01-18  Martin Buchholz  <martin@xemacs.org>
8915
8916         temacs is going away, so `dump-temacs' is now a bad name.
8917         * .dbxrc (dump-temacs): Rename to `dmp'.
8918         * .gdbinit (dump-temacs): Rename to `dmp'.
8919
8920 2001-01-17  Andy Piper  <andy@xemacs.org>
8921
8922         * glyphs.c (print_image_instance): comment to make martin happy.
8923
8924         * glyphs-x.c (x_redisplay_widget): update faces after a frame
8925         change.
8926
8927         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
8928         activation.
8929         (mswindows_tab_control_redisplay): warning suppression.
8930
8931         * glyphs-widget.c (widget_update): re-write to cope with updated
8932         items.
8933         (widget_instantiate): use new gui_item functions.
8934         (tab_control_update): deleted.
8935         (progress_gauge_update): deleted.
8936         (image_instantiator_progress_guage): take out update reference.
8937         (image_instantiator_tree_view): ditto.
8938         (image_instantiator_tab_control): ditto.
8939
8940         * gui.c (widget_gui_parse_item_keywords): new function. Do things
8941         Right the new way.
8942         (gui_item_add_keyval_pair): re-write to cope with descriptors and
8943         return whether anything was changed.
8944         (update_gui_item_keywords): as it sounds.
8945
8946         * gui.h: declare widget_gui_parse_item_keywords.
8947
8948         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
8949         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
8950
8951 2001-01-17  Martin Buchholz <martin@xemacs.org>
8952
8953         * XEmacs 21.2.41 "Polyhymnia" is released.
8954
8955 2001-01-16  Didier Verna  <didier@xemacs.org>
8956
8957         * glyphs.c (image_instantiate): don't use fallbacks when
8958         instantiating a face's background pixmap by inheritance.
8959
8960 2001-01-14  Mike Sperber <mike@xemacs.org>
8961
8962         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
8963         Conditionalize accordingly.
8964
8965 2001-01-16  Martin Buchholz  <martin@xemacs.org>
8966
8967         * dumper.c (pdump_file_get): Fix a compiler warning.
8968
8969 2001-01-15  Martin Buchholz  <martin@xemacs.org>
8970
8971         Make Purify happy when pdumping.
8972         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
8973         iniitalizing all bits of new lisp object memory.
8974         * symbols.c (Fmake_local_variable): Likewise.
8975         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
8976         * symbols.c (Fdefvaralias): Likewise.
8977         * mule-charset.c (vars_of_mule_charset): Likewise.
8978
8979 2001-01-15  Martin Buchholz  <martin@xemacs.org>
8980         Add the `-nd' flag when running pre-dump operations under the debugger.
8981         * .dbxrc (run-temacs): Add `-nd'.
8982         * .dbxrc (update-elc): Likewise.
8983         * .dbxrc (dump-temacs): Likewise.
8984         * .gdbinit (run-temacs): Likewise.
8985         * .gdbinit (check-temacs): Likewise.
8986         * .gdbinit (update-elc): Likewise.
8987         * .gdbinit (dump-temacs): Likewise.
8988
8989 2001-01-14  Martin Buchholz  <martin@xemacs.org>
8990
8991         Allow building 64-bit executables on AIX with GNU malloc, e.g.
8992         export OBJECT_MODE=64
8993         configure --pdump --use-union-type=no
8994         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
8995         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
8996
8997         * miscplay.c (sndcnv8U_2mono):
8998         Avoid two uses of `++' in the same expression.
8999         Suppresses a GCC warning.
9000
9001 2001-01-13  Martin Buchholz  <martin@xemacs.org>
9002
9003         Make sure future compilers don't miscompile alloc.c.
9004         * alloc.c:
9005         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
9006         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
9007
9008 2001-01-12  Martin Buchholz  <martin@xemacs.org>
9009
9010         * dumper.c: A little post-pdump-rename comment fixup.
9011
9012 2001-01-09  Jerry James  <james@eecs.ku.edu>
9013
9014         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
9015
9016 2001-01-13  Martin Buchholz  <martin@xemacs.org>
9017
9018         * *.[ch]: Globally rename symbols using the following `pdump-rename'
9019         script:
9020         #!/bin/sh
9021         replace_symbol () {
9022           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
9023         }
9024
9025         replace_symbol pdump_wire_lists pdump_weak_object_chains
9026         replace_symbol pdump_wire_list dump_add_weak_object_chain
9027
9028         replace_symbol pdump_wires pdump_root_objects
9029         replace_symbol pdump_wire dump_add_root_object
9030
9031         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
9032         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
9033
9034         replace_symbol dumpstructinfos pdump_root_struct_ptrs
9035         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
9036         replace_symbol dumpstructinfo pdump_root_struct_ptr
9037         replace_symbol dumpstruct dump_add_root_struct_ptr
9038
9039         replace_symbol dumpopaque dump_add_opaque
9040         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
9041         replace_symbol dumpopaqueinfos pdump_opaques
9042         replace_symbol dumpopaqueinfo pdump_opaque
9043
9044         replace_symbol nb_structdump nb_root_struct_ptrs
9045         replace_symbol nb_opaquedump nb_opaques
9046
9047         replace_symbol align_table pdump_align_table
9048         replace_symbol dump_header pdump_header
9049
9050         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
9051         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
9052
9053
9054 2001-01-12  Martin Buchholz  <martin@xemacs.org>
9055
9056         * s/aix4.h: Keep the C for AIX compiler from overaggressively
9057         optimizing bytecount_to_charcount().
9058
9059 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
9060
9061         * config.h.in:
9062         (HAVE_DLFCN_H): Removed.
9063         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
9064
9065 2001-01-06  Martin Buchholz  <martin@xemacs.org>
9066
9067         Portable dumper maintainability improvements.
9068         * alloc.c (staticpro):
9069         * alloc.c (staticpro_nodump):
9070         * alloc.c (garbage_collect_1):
9071         * alloc.c (reinit_alloc_once_early):
9072         * alloc.c (init_alloc_once_early):
9073         * alloc.c: Move dumper functions to alloc.c.
9074         * dumper.c (pdump_backtrace):
9075         * dumper.c (pdump_dump_structs):
9076         * dumper.c (pdump_dump_opaques):
9077         * dumper.c (pdump_dump_rtables):
9078         * dumper.c (pdump_dump_wired):
9079         * dumper.c (pdump):
9080         * dumper.c (pdump_load_check):
9081         * dumper.c (pdump_load_finish):
9082         * dumper.c (pdump_file_unmap):
9083         * dumper.c (pdump_file_get):
9084         * dumper.c (pdump_resource_free):
9085         * dumper.c (pdump_resource_get):
9086         * dumper.c (pdump_file_free):
9087         * dumper.c (pdump_file_try):
9088         * dumper.c (pdump_load):
9089         Remove fixed size limits on staticpro(), staticpro_nodump(),
9090         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
9091         Remove custom code for dumping lrecord_implementations_table - use
9092         dumpopaque instead.
9093         Remove (most of the) custom code for dumping staticpros - dump it
9094         like any other dynarr.
9095
9096         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
9097         * dumper.c: Moved functions from alloc.c.
9098         * alloc.c (dumpstruct): Moved to dumper.c.
9099         * alloc.c (dumpopaque): Likewise.
9100         * alloc.c (pdump_wire): Likewise.
9101         * alloc.c (pdump_wire_list): Likewise.
9102
9103         * lisp.h (Dynarr_sizeof): New.
9104         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
9105         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
9106         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
9107
9108         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
9109         * lisp.h (dumpopaque): ditto.
9110         * lisp.h (pdump_wire): ditto.
9111         * lisp.h (pdump_wire_list): ditto.
9112
9113 2001-01-09  Martin Buchholz  <martin@xemacs.org>
9114
9115         * make-src-depend (PrintPatternDeps):
9116         Use `sort' to make output independent of perl version.
9117
9118 2001-01-08  Martin Buchholz  <martin@xemacs.org>
9119
9120         Port to Netbsd 1.5.
9121         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
9122         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
9123
9124 2001-01-03  Didier Verna  <didier@xemacs.org>
9125
9126         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
9127         that `focus_frame' is alive before thinking of calling
9128         `redisplay_redraw_cursor' on it.
9129
9130 2001-01-08  Martin Buchholz <martin@xemacs.org>
9131
9132         * XEmacs 21.2.40 is released.
9133
9134 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
9135
9136         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
9137
9138 2001-01-06  Martin Buchholz  <martin@xemacs.org>
9139
9140         * alloc.c (dbg_valmask): Make const.
9141         * alloc.c (dbg_typemask): Make const.
9142         * alloc.c (dbg_USE_UNION_TYPE): Make const.
9143         * alloc.c (dbg_valbits): Make const.
9144         * alloc.c (dbg_gctypebits): Make const.
9145
9146 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
9147
9148         * redisplay-x.c (x_bevel_area):
9149         redisplay.h (struct rune):
9150         Typo fixes in comments.
9151
9152 2001-01-05  Andy Piper  <andy@xemacs.org>
9153
9154         * glyphs-x.c (x_redisplay_widget): use size changed for offset
9155         adjustment.
9156
9157         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
9158
9159 2001-01-05  Martin Buchholz  <martin@xemacs.org>
9160
9161         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
9162
9163         * mule-ccl.c (stack_idx_of_map_multiple):
9164         Non const global data must not be initialized!
9165         Found by MIYASHITA Hisashi.
9166
9167 2001-01-02  Andy Piper  <andy@xemacs.org>
9168
9169         * frame.c (change_frame_size): make sure frame size is always
9170         marked as changed.
9171
9172         * glyphs.c (image_instance_layout): minor code reuse.
9173
9174         * window.c (Fcurrent_window_configuration): revert previous
9175         change.
9176
9177 2001-01-02  Martin Buchholz  <martin@xemacs.org>
9178
9179         * glyphs.h:
9180         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
9181
9182 2000-12-31  Andy Piper  <andy@xemacs.org>
9183
9184         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
9185         when widget gets unmapped.
9186
9187         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
9188         function. Make sure widgets losing focus don't just drop it.
9189         (handle_focus_event_1): record the widget with focus.
9190
9191 2000-12-31  Andy Piper  <andy@xemacs.org>
9192
9193         * window.c (allocate_window): use
9194         make_image_instance_cache_hash_table.
9195         (make_dummy_parent): ditto.
9196         (Fset_window_configuration): ditto.
9197
9198         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
9199
9200         * glyphs.c (process_image_string_instantiator): use
9201         INSTANTIATOR_TYPE.
9202         (get_image_instantiator_governing_domain): ditto.
9203         (normalize_image_instantiator): ditto.
9204         (instantiate_image_instantiator): ditto.
9205         (make_image_instance_1): ditto.
9206         (image_instantiate): ditto. Key on glyph *and* instantiator type.
9207         (instantiator_eq_equal): new function for use with instance hash
9208         tables.
9209         (instantiator_eq_hash): ditto.
9210         (make_image_instance_cache_hash_table): create a suitable hash
9211         table for storing image instances.
9212
9213         * elhash.h (hash_table_weakness): new internal weakness type
9214         HASH_TABLE_KEY_CAR_VALUE_WEAK.
9215         declare new functions.
9216
9217         * elhash.c (finish_marking_weak_hash_tables): introduce yet
9218         another weakness type for glyphs.
9219         (make_standard_lisp_hash_table): new function split out from
9220         make_general_lisp_hash_table.
9221         (make_lisp_hash_table): call make_standard_lisp_hash_table.
9222         (hash_table_instantiate): ditto.
9223         (Fmake_hash_table): ditto.
9224
9225 2000-12-31  Martin Buchholz <martin@xemacs.org>
9226
9227         * XEmacs 21.2.39 is released.
9228
9229 2000-12-29  Andy Piper  <andy@xemacs.org>
9230
9231         * menubar.c (menubar_visible_p_changed): signal the frame changed.
9232
9233         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
9234         the frame has changed so that we pick up geometry changes such as
9235         menubar visibility.
9236
9237 2000-12-28  Andy Piper  <andy@xemacs.org>
9238
9239         * lastfile.c (my_ebss): make a char array so we can pad the
9240         bss. Fixes cygwin unexec.
9241
9242         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
9243
9244 2000-12-26  Andy Piper  <andy@xemacs.org>
9245
9246         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
9247         comments and try and be more precise about a non-/SIGIO world.
9248         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
9249         SIGIO.
9250
9251         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
9252         we don't normalize to zero width or height.
9253
9254 2000-12-24  Andy Piper  <andy@xemacs.org>
9255
9256         * Makefile.in.in (ldflags): add -mwindows when appropriate.
9257
9258 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
9259
9260         * s/sco5.h: SCO 5 has pty support.
9261
9262 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
9263
9264         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
9265         input-method-xlib.c contains whole contents of input-method-xfs.c,
9266         so we can use input-method-xlib.c's code for USE_XFONTSET
9267         using #ifdefs.
9268         * input-method-xfs.c: removed.
9269
9270 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
9271
9272         * file-coding.h (enum coding_category_type): reorder enumerators to
9273         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
9274         (now one greater than largest real coding_category_type enumerator).
9275         * file-coding.c (coding_category_symbol, coding_category_by_priority,
9276         coding_category_system, fcd_descriptihon_1, decode_coding_category,
9277         Fcoding_category_list, Fset_coding_priority_list,
9278         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
9279         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
9280
9281 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
9282
9283         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
9284         * redisplay-output.c (redisplay_output_window): Clear top of window
9285         when face is changed.
9286         * redisplay-x.c (x_redraw_exposed_window): Call
9287         redisplay_clear_top_of_window.
9288         * redisplay.h: Publish redisplay_clear_top_of_window.
9289
9290 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
9291
9292         * buffer.c (Fkill_buffer): Map over all devices.
9293         * window.c (window_loop): Remove UNSHOW_BUFFER code.
9294         (list_windows): New function.
9295         (list_all_windows): Ditto.
9296         (Freplace_buffer_in_windows): Use them.
9297
9298 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
9299
9300         * database.c (berkdb_subtype): Recognize new subtype `queue'.
9301         (Fopen_database): Use `db_create' instead of `db_open'.
9302         (syms_of_database): Initialize Qqueue.
9303
9304 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
9305
9306         * buffer.c (common_init_complex_vars_of_buffer): Initialize
9307         buffer_local_face_property.
9308         * buffer.h (struct buffer): New member buffer_local_face_property.
9309         * window.c (Fset_window_buffer):  Mark window's face as changed
9310         when buffer has buffer local face.
9311         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
9312         * objects.c (color_after_change): Set buffer_local_face_property
9313         when locale of face specifier is buffer.
9314         * objects.c (font_after_change): Ditto.
9315         * objects.c (face_boolean_after_change): Ditto.
9316         * glyphs.c (image_after_change): Ditto.
9317
9318 2000-12-09  Dan Holmsand  <dan@eyebee.com>
9319
9320         * nt.c (mswindows_fstat): Report file permissions, volume serial
9321         number, etc. Code adapted from FSF Emacs 20.7.
9322
9323 2000-12-09  Dan Holmsand  <dan@eyebee.com>
9324
9325         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
9326         of stat when we don't have symbolic links, to make sure
9327         mswindows_stat is called on mswindows.
9328
9329 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
9330
9331         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
9332
9333 2000-12-12  Martin Buchholz  <martin@xemacs.org>
9334
9335         * doprnt.c (emacs_doprnt_1): More printing fixes.
9336         Make printing of numbers compatible with libc and FSF Emacs.
9337         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
9338         Use the system printf to do most of the hard work of formatting,
9339         instead of doprnt_1().
9340         Calculate memory to allocate for format string.
9341         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
9342         (doprnt_1): Cleaner code and documentation.
9343
9344 2000-12-01  Jerry James  <james@eecs.ukans.edu>
9345
9346         * Makefile.in.in: Use the loop variable to install headers.
9347
9348 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
9349
9350         * window.c (Fsplit_window): Don't invalidate face cache.
9351
9352 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
9353
9354         * minibuf.c (Fall_completions): Undo the previous change
9355         which removed checking elements start with space.
9356
9357 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
9358
9359         * mule-canna.c: Didier suppression.
9360
9361 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
9362
9363         * mule-canna.c: rename static unsigned char buf[] to key_buffer
9364         (warning suppression).  Add English comment translations.
9365
9366 2000-12-05  Martin Buchholz  <martin@xemacs.org>
9367
9368         * unexelfsgi.c (unexec): Better test for mmap failure.
9369
9370 2000-12-05  Martin Buchholz <martin@xemacs.org>
9371
9372         * XEmacs 21.2.38 is released.
9373
9374 2000-12-05  Martin Buchholz  <martin@xemacs.org>
9375
9376         * redisplay.c (bar-cursor): Make a user variable.
9377
9378         * symsinit.h: Add init_postgresql_from_environment.
9379
9380 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
9381
9382         * regex.c: Convert to clean C.
9383
9384 2000-12-05  Dan Holmsand  <dan@eyebee.com>
9385
9386         * realpath.c:
9387         Don't #include sysfile.h. Revert to duplicating PATH_MAX
9388         initialization.
9389         (sys_readlink): renamed to system_readlink to avoid conflict with
9390         the other sys_readlink.
9391
9392 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
9393
9394         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
9395
9396 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
9397
9398         * postgresql.c (init_postgresql_from_environment): new function.
9399         (vars_of_postgresql): Move code initializing Lisp variables out and
9400         into init_postgresql_from_environment.
9401         emacs.c (main_1): Call init_postgresql_from_environment if and only
9402         if running a dumped XEmacs.
9403
9404 2000-08-31  Dan Holmsand  <dan@eyebee.com>
9405
9406         * buffer.c: Make find-file-compare-truenames default to true on
9407         windows.
9408
9409         * realpath.c (win32_abs_start):
9410         (cygwin_readlink):
9411         (win32_readlink): New functions.
9412         (xrealpath): Return really real filenames on windows.
9413
9414         * fileio.c (Ffile_truename): Make file-truename work on windows.
9415
9416 2000-11-29  Didier Verna  <didier@xemacs.org>
9417
9418         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
9419         * faces.c (update_face_cachel_data): use it.
9420         * faces.c (add_face_cachel): use it. Complete background pixmap
9421         frobbing in face cache if `update_face_cachel_data' has not done so.
9422
9423 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
9424
9425         * search.c (string_match_1): Don't set last_thing_searched
9426         when search failed.
9427
9428 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
9429
9430         * buffer.c: Include casetab.h
9431         (common_init_complex_vars_of_buffer): Use new case-table object.
9432         * buffer.h: Include casetab.h
9433         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
9434         (DOWNCASE_TABLE_OF): Ditto.
9435         * bufslots.h: Remove char-tables and add case-table.
9436         * casetab.c: Include casetab.h
9437         (CASE_TABLE_P): Removed.
9438         (mark_case_table): New function.
9439         (allocate_case_table): New function.
9440         (Fcase_table_p): Use new case-table.
9441         (case_table_char): New function.
9442         (Fget_case_table): Ditto.
9443         (Fput_case_table): Ditto.
9444         (Fput_case_table_pair): Ditto.
9445         (Fcopy_case_table): Ditto.
9446         (Fcurrent_case_table): Return case-table.
9447         (Fstandard_case_table): Return case-table.
9448         (Fset_case_table): Fix doc-string.
9449         (set_case_table): Use case-table
9450         (syms_of_casetab): DEFSUBR new functions.
9451         (complex_vars_of_casetab): Set up standard case-table.
9452         * casetab.h: New file.
9453         * editfns.c: Include casetab.h
9454         (Fcompare_buffer_substrings): Use case-table.
9455         * inline.c: Include casetab.h
9456         * lisp.h: Remove bogus extern.
9457         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
9458         * search.c: Include casetab.h
9459         (TRANSLATE_ASCII): Removed.
9460         (TRANSLATE): Unconditionally translate character.
9461         (looking_at_1): Use case-table.
9462         (string_match_1): Ditto.
9463         (fast_string_match): Ditto.
9464         (search_command): Ditto.
9465         (search_buffer): Separate boyer_moore.  Check whether
9466         boyer_moore is possible.
9467         (simple_search): New function.
9468         (boyer_moore): Separated from search_buffer. Translate char.
9469
9470 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
9471
9472         * regex.c (RE_TR_ASCII): Removed.
9473         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
9474         (PATFETCH): Call PATFETCH_RAW.
9475         (PATFETCH_RAW): Fetch Emchar.
9476         (PATUNFETCH): Decrement charptr.
9477         (GET_BUFFER_SPACE): Rename b to buf_end.
9478         (BUF_PUSH): Ditto.
9479         (BUF_PUSH_2): Ditto.
9480         (BUF_PUSH_3): Ditto.
9481         (EXTEND_BUFFER): Ditto.
9482         (SET_LIST_BIT): Ditto.
9483         (regex_compile): Ditto.  Translate non ASCII char.
9484         (compile_range): Ditto.
9485         (re_search_2): Ditto.
9486         (re_match_2_internal): Compare Emchar.
9487         (bcmp_translate): Ditto.
9488
9489 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
9490
9491         * lisp.h (basic char/int typedefs):  comment improvement.
9492
9493 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
9494
9495         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
9496         unstomp inhibit_site_lisp.  Improve comments.
9497
9498 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
9499
9500         * mule-charset.c (Fcharset_property):  improve type checking, comments.
9501
9502 2000-11-28  Andy Piper  <andy@xemacs.org>
9503
9504         * redisplay-output.c (redisplay_output_subwindow): make sure we do
9505         clipped display for windows in the gutter also.
9506         (redisplay_display_boxes_in_window_p): change semantics of return
9507         codes to be more intuitive.
9508
9509         * gutter.h: declare display_boxes_in_gutter_p.
9510
9511         * gutter.c (display_boxes_in_gutter_p): new function for
9512         redisplay.
9513
9514 2000-11-22  Andy Piper  <andy@xemacs.org>
9515
9516         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
9517         autodetect domain.
9518
9519 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
9520
9521         * callproc.c (Fold_call_process_internal):
9522         * gpm.c (Freceive_gpm_event):
9523         (tty_get_foreign_selection): Might be just warning supression.
9524         * fileio.c (Fwrite_region_internal):
9525         (Fset_visited_file_modtime):
9526         * keymap.c (event_matches_key_specifier_p):
9527         Initialize GCPROed variable.
9528
9529         * menubar-x.c (command_builder_find_menu_accelerator):
9530         Initialize before use.
9531
9532 2000-11-23  Andy Piper  <andy@xemacs.org>
9533
9534         * unexcw.c (unexec): make the resulting executable executable.
9535
9536 2000-11-21  Martin Buchholz  <martin@xemacs.org>
9537
9538         * doc.c (get_doc_string):
9539         Use size_t, not int, for result of XSTRING_LENGTH.
9540
9541         * cmds.c (Fdelete_char):
9542         * cmds.c (Fpoint_at_eol):
9543         * cmds.c (Fself_insert_command):
9544         Use EMACS_INT, not int, for result of XINT.
9545         Someday, someone will want to insert more than 2**31 identical characters.
9546
9547         * cmds.c (Fdelete_char):
9548         * cmds.c (Fdelete_backward_char):
9549         * syntax.c (Fforward_word):
9550         * syntax.c (Fforward_comment):
9551         Make COUNT argument optional, for consistency with forward-char et al.
9552
9553 2000-11-22  Martin Buchholz  <martin@xemacs.org>
9554
9555         * lisp.h:
9556         * print.c (long_to_string):
9557         Return a useful value: the pointer at end of data written.
9558
9559         * doprnt.c:
9560         Use `static const char * const' for constant strings.
9561         (union printf_arg): Delete `i', `ui' members.
9562         (get_doprnt_args):
9563         (emacs_doprnt_1):
9564         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
9565         Do all printf-ing via the `l' specifier.
9566         Use EMACS_INT instead of int.
9567         Optimize.
9568
9569 2000-11-20  Didier Verna  <didier@xemacs.org>
9570
9571         * faces.c (update_face_cachel_data): don't frob the background
9572         pixmap when the window is being created. The face is needed but
9573         does not exist yet.
9574
9575 2000-11-20  Andy Piper  <andy@xemacs.org>
9576
9577         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
9578         messing with a debug environment.
9579
9580 2000-11-20  Martin Buchholz  <martin@xemacs.org>
9581
9582         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
9583
9584 2000-11-20  Martin Buchholz  <martin@xemacs.org>
9585
9586         * casetab.c (Fcase_table_p): Fix compile error and crash.
9587
9588 2000-11-18  Philip Aston  <philipa@mail.com>
9589
9590         * s/cygwin32.h: Cygwin has SVR4-like pty support.
9591
9592 2000-11-18  Martin Buchholz  <martin@xemacs.org>
9593
9594         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
9595         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
9596
9597 2000-11-17  Martin Buchholz  <martin@xemacs.org>
9598
9599         * config.h.in: Define HAVE_ELF_H if elf.h exists.
9600         * unexelf.c: Use HAVE_ELF_H.
9601         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
9602         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
9603         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
9604         Greg Harrington <greg_harrington@hotmail.com> provided a machine
9605         for testing.
9606         So this is an unexelfsgi.c from a different line of development.
9607
9608 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
9609
9610         * regex.c (RE_TR_ASCII): New function.
9611         (RE_TRANSLATE): Call it.
9612
9613 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
9614
9615         * buffer.h (TRT_TABLE_OF): Remove assert.
9616         (IN_TRT_TABLE_DOMAIN): Removed.
9617
9618 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
9619
9620         * free-hook.c (log_gcpro):
9621         (show_gcprohist): Add support for GCPRO5.
9622
9623 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
9624
9625         * emacs.c (main_1): Improve -sd error message when --pdump=no.
9626
9627 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
9628
9629         * symeval.h: Declare flush_all_buffer_local_cache.
9630
9631         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
9632         (flush_buffer_local_cache): Added.
9633         (flush_all_buffer_local_cache): Added.
9634
9635         * lrecord.h: Remove unused XD_LO_RESET_NIL.
9636
9637         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
9638         (pdump_dump_data): Ditto.
9639         (pdump_reloc_one): Ditto.
9640         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
9641         before dumping.
9642
9643
9644 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
9645
9646         * buffer.c: Remove if 0'ed entry.
9647         * buffer.h: Rewrite TRT to use char-table.
9648         * bufslots.h: Remove mirror tables.
9649         * casetab.c: Remove mirror tables.
9650         (CASE_TABLE_P): New macro.
9651         (Fcase_table_p): Element of a case table is string or char-table.
9652         (make_mirror_trt_table): Removed.
9653         (set_case_table): Setup char-table from strings for backward
9654         compatibility.
9655         * dired.c (Fdirectory_files):
9656         * dired-msw.c: (mswindows_get_files):
9657         * lisp.h: Change prototype of re_pattern_buffer.
9658         * regex.c: (RE_TRANSLATE): New macro.
9659         (TRANSLATE_P): Ditto.
9660         Change translate to type RE_TRANSLATE_TYPE.
9661         * regex.h: Define RE_TRANSLATE_TYPE
9662         * search.c (TRANSLATE): New macro.
9663         (TRANSLATE_ASCII): New macro.
9664         Translate table is changed to Lisp_Object.
9665         (signal_failure): Inhibit return.
9666
9667 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
9668
9669         * device-msw.c:
9670         * eldap.c:
9671         * event-Xt.c:
9672         * event-stream.c:
9673         * print.c:
9674         Do UNGCPRO before return.
9675
9676 2000-11-14  Martin Buchholz <martin@xemacs.org>
9677
9678         * XEmacs 21.2.37 is released.
9679
9680 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
9681
9682         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
9683         Add comments about discarded return value.
9684
9685 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
9686
9687         * callint.c:
9688         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
9689
9690 2000-10-27  Andy Piper  <andy@xemacs.org>
9691
9692         * gutter.c (Fset_default_gutter_position): default left and right
9693         gutters to visible.
9694         (calculate_gutter_size): calculate resonable heuristic for left
9695         and right gutter sizes.
9696         (specifier_vars_of_gutter): change left and right gutter sizes to
9697         autodetect.
9698         (calculate_gutter_size_from_display_lines): new function.
9699         (output_gutter): check for resizing on left and right gutters.
9700         (clear_gutter): don't special case top and left gutters.
9701         (specifier_vars_of_gutter): use new signature for
9702         set_specifier_caching.
9703
9704         * glyphs-x.c (x_redisplay_widget): spelling fix.
9705         * glyphs.c (specifier_vars_of_glyphs):
9706         * menubar.c (specifier_vars_of_menubar):
9707         * redisplay.c (specifier_vars_of_redisplay):
9708         * toolbar.c (specifier_vars_of_toolbar):
9709         * window.c (specifier_vars_of_window):
9710         * scrollbar.c (specifier_vars_of_scrollbar):
9711         (complex_vars_of_scrollbar): use new signature for
9712         set_specifier_caching.
9713
9714         * specifier.c (set_specifier_caching): include recompute flag.
9715         (recompute_one_cached_specifier_in_window): always recompute if
9716         flag set.
9717         (recompute_one_cached_specifier_in_frame): ditto.
9718
9719         * specifier.h (struct specifier_caching): add recompute flag.
9720
9721 2000-10-24  Andy Piper  <andy@xemacs.org>
9722
9723         * unexcw.c (copy_executable_and_dump_data_section): add new
9724         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
9725         5.0 happy.
9726
9727 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
9728
9729         * console-x.h (x_device): New member modifier_release_time.
9730         * event-Xt.c (x_handle_sticky_modifiers):
9731         Bound interval modifier keys are sticky.
9732         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
9733         * events.h: extern it.
9734
9735 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
9736
9737         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
9738
9739 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
9740
9741         * event-stream.c (execute_command_event): Preserve current_events
9742         and the like when event is misc-user-event.
9743         Inhibit quit during the call to maybe_echo_keys.
9744
9745 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
9746
9747         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
9748         symlink when buffer is killed.
9749         (inhibit_clash_detection): New variable.
9750
9751 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
9752
9753         * console.c (Fset_input_method): Trigger redisplay on tty.
9754
9755 2000-11-07  Martin Buchholz  <martin@xemacs.org>
9756
9757         * process.c (Fprocess_status): Revert to previous behavior:
9758         (process-status "nosuchprocess") ==> nil
9759
9760 2000-11-06  Martin Buchholz  <martin@xemacs.org>
9761
9762         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
9763         Work around another GCC 2.95.2 optimizer bug.
9764
9765 2000-11-02  Martin Buchholz  <martin@xemacs.org>
9766
9767         * process.c (Fget_process): Use LIST_LOOP_2.
9768         (kill_buffer_processes): Use LIST_LOOP_2.
9769
9770         * minibuf.c (Fall_completions):
9771         Delete old non-functional code for FSF fourth argument.
9772
9773         * frame.c (frame_matches_frame_spec):
9774         Renamed from `frame_matches_frametype'.  Update all callers.
9775         (device_matches_device_spec):
9776         Renamed from 'device_matches_console_spec'.  Update all callers.
9777
9778         * doc.c (Fsubstitute_command_keys):
9779         Remove buffer overflow crash.  Small code cleanups.
9780
9781         * casetab.c (check_case_table): Simpler code.
9782
9783         * window.c (Freplace_buffer_in_windows):
9784         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
9785         (and similar implementation) as Fdelete_windows_on.
9786         Update all callers.
9787
9788         * alloc.c (Fmake_list):
9789         * alloc.c (make_vector):
9790         * alloc.c (Fmake_vector):
9791         * alloc.c (make_bit_vector):
9792         * alloc.c (Fmake_bit_vector):
9793         * alloc.c (Fbit_vector):
9794         * alloc.c (Fmake_string):
9795         * alloc.c (Fpurecopy):
9796         * alloc.c (Fmemory_limit):
9797         * buffer.c:
9798         * buffer.c (Fget_buffer):
9799         * buffer.c (Fkill_buffer):
9800         * buffer.c (complex_vars_of_buffer):
9801         * bytecode.c (Fcompiled_function_stack_depth):
9802         * callint.c (Fprefix_numeric_value):
9803         * event-stream.c:
9804         * event-stream.c (Fread_key_sequence):
9805         * casetab.c:
9806         * casetab.c (Fcase_table_p):
9807         * casetab.c (check_case_table):
9808         * casetab.c (Fset_case_table):
9809         * casetab.c (Fset_standard_case_table):
9810         * chartab.c:
9811         * chartab.c (Fchar_table_type):
9812         * chartab.c (Freset_char_table):
9813         * chartab.c (Fget_char_table):
9814         * chartab.c (Fget_range_char_table):
9815         * chartab.c (Fput_char_table):
9816         * chartab.c (Fmap_char_table):
9817         * chartab.c (Fcategory_table_p):
9818         * chartab.c (Fcheck_category_at):
9819         * chartab.c (Fchar_in_category_p):
9820         * chartab.c (Fcategory_table):
9821         * chartab.c (Fcopy_category_table):
9822         * chartab.c (Fset_category_table):
9823         * chartab.c (Fcategory_designator_p):
9824         * chartab.c (Fcategory_table_value_p):
9825         * cmds.c (Fdelete_char):
9826         * cmds.c (Fdelete_backward_char):
9827         * cmds.c (Fself_insert_command):
9828         * cmds.c (Fself_insert_internal):
9829         * console.c (Fvalid_console_type_p):
9830         * console.c (Fcdfw_console):
9831         * console.c (Fconsole_type):
9832         * console.c (Fconsole_name):
9833         * console.c (Fconsole_device_list):
9834         * console.c (Fconsole_on_window_system_p):
9835         * data.c:
9836         * data.c (Feq):
9837         * data.c (Fold_eq):
9838         * data.c (Fsubr_interactive):
9839         * data.c (Fchar_to_int):
9840         * data.c (Fint_to_char):
9841         * data.c (Fsetcar):
9842         * data.c (Fsetcdr):
9843         * data.c (Fnumber_to_string):
9844         * data.c (Fstring_to_number):
9845         * data.c (Frem):
9846         * database.c (mark_database):
9847         * database.c (finalize_database):
9848         * database.c (Fdatabase_live_p):
9849         * database.c (Fdatabasep):
9850         * device-x.c (Fx_get_resource):
9851         * device.c (Fdfw_device):
9852         * dired.c:
9853         * dired.c (Ffile_name_completion):
9854         * dired.c (Ffile_name_all_completions):
9855         * dired.c (Fuser_name_completion):
9856         * dired.c (Fuser_name_completion_1):
9857         * dired.c (Fuser_name_all_completions):
9858         * doc.c (Fdocumentation):
9859         * doc.c (Fdocumentation_property):
9860         * doc.c (Fsubstitute_command_keys):
9861         * editfns.c:
9862         * editfns.c (Fchar_to_string):
9863         * editfns.c (Fstring_to_char):
9864         * editfns.c (Ftemp_directory):
9865         * editfns.c (Finsert_char):
9866         * editfns.c (Fbuffer_substring_no_properties):
9867         * editfns.c (Fnarrow_to_region):
9868         * editfns.c (Fchar_equal):
9869         * editfns.c (Fchar_Equal):
9870         * editfns.c (Ftranspose_regions):
9871         * emacs.c (Fdump_emacs):
9872         * eval.c (Fthrow):
9873         * eval.c (Fcommand_execute):
9874         * eval.c (Fautoload):
9875         * eval.c (Fbacktrace):
9876         * eval.c (Fbacktrace_frame):
9877         * events.c:
9878         * events.c (Fcopy_event):
9879         * events.c (Fcharacter_to_event):
9880         * events.c (Fevent_button):
9881         * events.c (Fevent_process):
9882         * extents.c:
9883         * extents.c (Fnext_extent_change):
9884         * extents.c (Fextent_property):
9885         * faces.c (Ffacep):
9886         * faces.c (Fmake_face):
9887         * file-coding.c:
9888         * file-coding.c (Fencode_shift_jis_char):
9889         * file-coding.c (Fencode_big5_char):
9890         * fileio.c (Ffile_name_directory):
9891         * fileio.c (Ffile_name_nondirectory):
9892         * fileio.c (Ffile_name_as_directory):
9893         * fileio.c (Fdirectory_file_name):
9894         * fileio.c (Ffile_truename):
9895         * fileio.c (Fsubstitute_in_file_name):
9896         * fileio.c (Ffile_modes):
9897         * fileio.c (Fset_file_modes):
9898         * fileio.c (Fset_default_file_modes):
9899         * fileio.c (Fverify_visited_file_modtime):
9900         * floatfns.c (Facos):
9901         * floatfns.c (Fasin):
9902         * floatfns.c (Fatan):
9903         * floatfns.c (Fcos):
9904         * floatfns.c (Fsin):
9905         * floatfns.c (Ftan):
9906         * floatfns.c (Fbessel_j0):
9907         * floatfns.c (Fbessel_j1):
9908         * floatfns.c (Fbessel_jn):
9909         * floatfns.c (Fbessel_y0):
9910         * floatfns.c (Fbessel_y1):
9911         * floatfns.c (Fbessel_yn):
9912         * floatfns.c (Ferf):
9913         * floatfns.c (Ferfc):
9914         * floatfns.c (Flog_gamma):
9915         * floatfns.c (Fexp):
9916         * floatfns.c (Fexpt):
9917         * floatfns.c (Flog):
9918         * floatfns.c (Flog10):
9919         * floatfns.c (Fsqrt):
9920         * floatfns.c (Fcube_root):
9921         * floatfns.c (Facosh):
9922         * floatfns.c (Fasinh):
9923         * floatfns.c (Fatanh):
9924         * floatfns.c (Fcosh):
9925         * floatfns.c (Fsinh):
9926         * floatfns.c (Ftanh):
9927         * floatfns.c (Fabs):
9928         * floatfns.c (Ffloat):
9929         * floatfns.c (Flogb):
9930         * floatfns.c (Fceiling):
9931         * floatfns.c (Ffloor):
9932         * floatfns.c (Fround):
9933         * floatfns.c (Ftruncate):
9934         * floatfns.c (Ffceiling):
9935         * floatfns.c (Fffloor):
9936         * floatfns.c (Ffround):
9937         * floatfns.c (Fftruncate):
9938         * fns.c (Fstring_equal):
9939         * fns.c (Fstring_lessp):
9940         * fns.c (concat2):
9941         * fns.c (concat3):
9942         * fns.c (vconcat2):
9943         * fns.c (vconcat3):
9944         * fns.c (Fsubstring):
9945         * fns.c (Fassoc):
9946         * fns.c (Fold_assoc):
9947         * fns.c (assoc_no_quit):
9948         * fns.c (Fassq):
9949         * fns.c (Fold_assq):
9950         * fns.c (assq_no_quit):
9951         * fns.c (Frassoc):
9952         * fns.c (Fold_rassoc):
9953         * fns.c (Frassq):
9954         * fns.c (Fold_rassq):
9955         * fns.c (rassq_no_quit):
9956         * fns.c (Fremassoc):
9957         * fns.c (remassoc_no_quit):
9958         * fns.c (Fremassq):
9959         * fns.c (remassq_no_quit):
9960         * fns.c (Fremrassoc):
9961         * fns.c (Fremrassq):
9962         * fns.c (remrassq_no_quit):
9963         * fns.c (Fsort):
9964         * fns.c (Fplist_get):
9965         * fns.c (Fplist_put):
9966         * fns.c (Fplist_remprop):
9967         * fns.c (Fplist_member):
9968         * fns.c (Flax_plist_get):
9969         * fns.c (Flax_plist_put):
9970         * fns.c (Flax_plist_remprop):
9971         * fns.c (Flax_plist_member):
9972         * fns.c (Fequal):
9973         * fns.c (Fold_equal):
9974         * fns.c (Frequire):
9975         * fns.c (Fbase64_encode_region):
9976         * fns.c (Fbase64_encode_string):
9977         * fns.c (Fbase64_decode_region):
9978         * frame.c:
9979         * frame.c (frame_matches_frame_spec):
9980         * frame.c (device_matches_device_spec):
9981         * frame.c (next_frame):
9982         * frame.c (previous_frame):
9983         * frame.c (Fnext_frame):
9984         * frame.c (Fprevious_frame):
9985         * frame.c (Fframe_property):
9986         * frame.c (Fset_frame_height):
9987         * frame.c (Fset_frame_size):
9988         * frame.h:
9989         * glyphs.c:
9990         * glyphs.c (if):
9991         * glyphs.c (decode_error_behavior_flag):
9992         * glyphs.c (Fmake_image_instance):
9993         * indent.c (Findent_to):
9994         * intl.c (Fignore_defer_gettext):
9995         * keymap.c (Fkeymapp):
9996         * keymap.c (Flookup_key):
9997         * lread.c:
9998         * lread.c (Fload_internal):
9999         * lread.c (Feval_buffer):
10000         * lread.c (Feval_region):
10001         * macros.c (Fexecute_kbd_macro):
10002         * marker.c (set_marker_internal):
10003         * marker.c (Fset_marker):
10004         * marker.c (set_marker_restricted):
10005         * marker.c (Fcopy_marker):
10006         * marker.c (noseeum_copy_marker):
10007         * menubar.c:
10008         * menubar.c (Fpopup_menu):
10009         * minibuf.c:
10010         * mule-charset.c (Fcharset_name):
10011         * mule-charset.c (Fchar_charset):
10012         * mule-charset.c (Fchar_octet):
10013         * mule-charset.c (Fsplit_char):
10014         * mule-wnnfns.c (Fwnn_open):
10015         * mule-wnnfns.c (Fwnn_dict_comment):
10016         * mule-wnnfns.c (Fwnn_quit_henkan):
10017         * mule-wnnfns.c (Fwnn_word_toroku):
10018         * mule-wnnfns.c (Fwnn_word_sakujo):
10019         * mule-wnnfns.c (Fwnn_word_use):
10020         * mule-wnnfns.c (Fwnn_hindo_set):
10021         * objects.c:
10022         * objects.c (Fmake_color_instance):
10023         * objects.c (Fmake_font_instance):
10024         * print.c (Fwrite_char):
10025         * process.c:
10026         * process.c (mark_process):
10027         * process.c (print_process):
10028         * process.c (get_process_from_usid):
10029         * process.c (Fprocessp):
10030         * process.c (Fprocess_live_p):
10031         * process.c (Fget_process):
10032         * process.c (Fget_buffer_process):
10033         * process.c (get_process):
10034         * process.c (Fprocess_id):
10035         * process.c (Fprocess_name):
10036         * process.c (Fprocess_command):
10037         * process.c (init_process_io_handles):
10038         * process.c (start_process_unwind):
10039         * process.c (Fstart_process_internal):
10040         * process.c (Fopen_multicast_group_internal):
10041         * process.c (Fset_process_window_size):
10042         * process.c (read_process_output):
10043         * process.c (send_process):
10044         * process.c (Fprocess_tty_name):
10045         * process.c (Fset_process_buffer):
10046         * process.c (Fprocess_buffer):
10047         * process.c (Fprocess_mark):
10048         * process.c (set_process_filter):
10049         * process.c (Fset_process_filter):
10050         * process.c (Fprocess_filter):
10051         * process.c (Fprocess_send_region):
10052         * process.c (Fprocess_send_string):
10053         * process.c (exec_sentinel):
10054         * process.c (Fset_process_sentinel):
10055         * process.c (Fprocess_sentinel):
10056         * process.c (status_notify):
10057         * process.c (Fprocess_status):
10058         * process.c (Fprocess_exit_status):
10059         * process.c (process_send_signal):
10060         * process.c (Fprocess_send_eof):
10061         * process.c (deactivate_process):
10062         * process.c (remove_process):
10063         * process.c (Fdelete_process):
10064         * process.c (kill_buffer_processes):
10065         * process.c (Fprocess_kill_without_query):
10066         * process.c (Fprocess_kill_without_query_p):
10067         * rangetab.c:
10068         * rangetab.c (Fget_range_table):
10069         * rangetab.c (Fput_range_table):
10070         * rangetab.c (Fremove_range_table):
10071         * rangetab.c (Fclear_range_table):
10072         * search.c:
10073         * search.c (Fskip_chars_forward):
10074         * search.c (Fskip_chars_backward):
10075         * search.c (Fskip_syntax_forward):
10076         * search.c (Fskip_syntax_backward):
10077         * search.c (search_command):
10078         * search.c (Freplace_match):
10079         * search.c (Fregexp_quote):
10080         * select.c (Fown_selection_internal):
10081         * select.c (Fselection_owner_p):
10082         * select.c (Fselection_exists_p):
10083         * select.c (Fget_selection_internal):
10084         * specifier.c:
10085         * symbols.c:
10086         * symbols.c (Fintern):
10087         * symbols.c (Fintern_soft):
10088         * symbols.c (Funintern):
10089         * symbols.c (Fapropos_internal):
10090         * symbols.c (Fset_default):
10091         * syntax.c:
10092         * syntax.c (Fsyntax_table_p):
10093         * syntax.c (Fcopy_syntax_table):
10094         * syntax.c (Fset_syntax_table):
10095         * syntax.c (Fchar_syntax):
10096         * syntax.c (syntax_match):
10097         * syntax.c (Fmatching_paren):
10098         * syntax.c (Fforward_word):
10099         * syntax.c (scan_lists):
10100         * syntax.c (Fscan_lists):
10101         * syntax.c (Fscan_sexps):
10102         * syntax.c (Fparse_partial_sexp):
10103         * toolbar.c (Fcheck_toolbar_button_syntax):
10104         * tooltalk.doc:
10105         * window.c:
10106         * window.c (Fwindowp):
10107         * window.c (Fwindow_live_p):
10108         * window.c (Fwindow_point):
10109         * window.c (Fdelete_window):
10110         * window.c (Fnext_window):
10111         * window.c (Fprevious_window):
10112         * window.c (Fother_window):
10113         * window.c (window_loop):
10114         * window.c (Fget_lru_window):
10115         * window.c (Fsplit_window):
10116         * window.c (Fenlarge_window):
10117         * window.c (Fenlarge_window_pixels):
10118         * window.c (Fshrink_window):
10119         * window.c (Fshrink_window_pixels):
10120         * window.c (change_window_height):
10121         * window.c (Fwindow_configuration_p):
10122         * window.c (Fcurrent_window_configuration):
10123         * window.h:
10124         * casefiddle.c (casify_object):
10125         * casefiddle.c (Fupcase):
10126         * casefiddle.c (Fdowncase):
10127         * casefiddle.c (Fcapitalize):
10128         * casefiddle.c (Fupcase_initials):
10129         * casefiddle.c (casify_region_internal):
10130         * casefiddle.c (casify_region):
10131         * casefiddle.c (Fupcase_region):
10132         * casefiddle.c (Fdowncase_region):
10133         * casefiddle.c (Fcapitalize_region):
10134         * casefiddle.c (Fupcase_initials_region):
10135         * casefiddle.c (Fupcase_word):
10136         * casefiddle.c (Fdowncase_word):
10137         * casefiddle.c (Fcapitalize_word):
10138         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
10139         Replace 0 with '\0' when working with bytes.
10140         Replace initial "(" with "\(" in docstrings.
10141
10142 2000-11-01  Martin Buchholz  <martin@xemacs.org>
10143
10144         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
10145
10146         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
10147
10148 2000-10-31  Martin Buchholz  <martin@xemacs.org>
10149
10150         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
10151
10152 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
10153
10154         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
10155         correctly.
10156
10157 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
10158
10159         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
10160         (inhibit_auto_save_session): New variable.
10161         (vars_of_fileio): Declare and initialize them.
10162         * fileio.c (Fdo_auto_save): Don't create session file if
10163         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
10164
10165 2000-10-31  Martin Buchholz  <martin@xemacs.org>
10166
10167         * sgiplay.c (play_internal): C++ compilability.
10168         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
10169         * callproc.c (Fold_call_process_internal):
10170         Remove unused vars `env', `first'.
10171         * scrollbar.c (update_scrollbar_instance):
10172         #### unused var `current_window'.
10173         * redisplay-tty.c: Put currently unused vars insert_mode_on,
10174         etc. within #ifdef NOT_YET.
10175         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
10176         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
10177         * specifier.c (specifier_instance):
10178         #### unused var `tag'.
10179         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
10180
10181 2000-10-27  Martin Buchholz  <martin@xemacs.org>
10182
10183         * fns.c (Fbutlast):
10184         * fns.c (list_sort):
10185         * fns.c (Ffillarray):
10186         * fns.c (bytecode_nconc2):
10187         * fns.c (Fnconc):
10188         * fns.c (mapcar1):
10189         * fns.c (Fmapconcat):
10190         Be pedantically 64-bit correct.  For the time when someone will
10191         want to have a list with length > 2**32.
10192
10193         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
10194         Work around MIPSpro compiler bug.
10195
10196         * process-unix.c (unix_kill_child_process): Add snarky comment.
10197         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
10198
10199         * config.h.in: Oops, _getpt ==> _getpty
10200
10201 2000-10-26  Martin Buchholz  <martin@xemacs.org>
10202
10203         * config.h.in:
10204         * regex.c:
10205         Use void*, not char*, as return type of alloca().
10206
10207         * alloc.c (free_marker): Side effect inside assert expression!
10208
10209 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
10210
10211         * mule-charset.c (Fset_charset_ccl_program): To check
10212         if the given ccl program is valid, use setup_ccl_program()
10213         instead of CHECK_VECTOR().
10214         (Fmake_charset): Likewise.
10215
10216 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
10217
10218         * faces.c (get_extent_fragment_face_cache_index):
10219         Fix cachel.merged_faces memory leak.
10220
10221 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
10222
10223         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
10224         Reset MSB of octets obtained by DECODE_SJIS
10225         because of the incompatibility with Emacs.
10226         (ccl_driver)<CCL_ENCODE_SJIS>:
10227         Set MSB of octets before passing them to
10228         ENCODE_SJIS because of the incompatibility
10229         with Emacs.
10230
10231 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
10232
10233         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
10234         (DECLARE_LRECORD): Undo the last change.
10235         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
10236
10237 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
10238
10239         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
10240         the implementation to lrecord_implementations_table.
10241
10242 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
10243
10244         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
10245         initial value of `lrecord_type_##c_name' and
10246         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
10247         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
10248         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
10249         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
10250         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
10251
10252 2000-10-17  Martin Buchholz  <martin@xemacs.org>
10253
10254         * miscplay.c (sndcnv8S_2mono):
10255         (sndcnv2monounsigned):
10256         (sndcnvULaw_2linear):
10257         (sndcnv16swap):
10258         Remove implementation-defined behavior.
10259
10260 2000-10-12  Martin Buchholz  <martin@xemacs.org>
10261
10262         * input-method-xlib.c: Warning suppression.
10263
10264 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
10265
10266         * mule-ccl.c: Sync up with Emacs 21.0.90.
10267         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
10268         Do nothing.
10269         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
10270         Likewise.
10271         (ccl_driver[WriteMultibyteChar2]): Bug fix.
10272         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
10273         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
10274         leading char belongs to official 2-dimensional charset.
10275         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
10276         write the given character as is.  Otherwise,
10277         if it is a multibyte char, convert it by
10278         non_ascii_set_charptr_emchar, then write it.
10279         (CCL_WRITE_STRING): Likewise.
10280         (ccl_get_compiled_code): New function.
10281         (setup_ccl_program): When ccl_prog is invalid,
10282         return -1.
10283         (Fregister_code_conversion_map): New function.
10284         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
10285
10286         * mule-ccl.h: Sync up with Emacs 21.0.90.
10287         (Fregister_ccl_program): export it.
10288
10289         * redisplay-msw.c (separate_textual_runs):
10290         If ccl program is not valid, don't do ccl conversion.
10291
10292         * redisplay-x.c (separate_textual_runs): Ditto.
10293
10294         * file-coding.c (Fmake_coding_system):
10295         When type is ccl and value is vector, register it
10296         with a proper symbol.  And checks whether the
10297         given ccl program is valid.
10298         (mule_decode): When calling ccl_driver, if src indicates
10299         NULL pointer, set an empty string instead.
10300         (mule_encode): Likewise.
10301
10302 2000-10-11  Martin Buchholz  <martin@xemacs.org>
10303
10304         The following large batch of changes gets us back to a state of
10305         C++ compilability.  Extbyte is now a char, which means that
10306         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
10307
10308         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
10309
10310         * sound.c (Fplay_sound): Type correctness.
10311
10312         * select-x.c (hack_motif_clipboard_selection): Type correctness.
10313         (x_get_window_property): Type correctness.
10314         (receive_incremental_selection): unsigned char ==> Extbyte
10315         (selection_data_to_lisp_data): unsigned char ==> Extbyte
10316         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
10317         (Fx_store_cutbuffer_internal): Type correctness.
10318
10319         * process-unix.c (try_to_initialize_subtty): Type correctness.
10320
10321         * objects-x.c (x_print_color_instance): Type correctness.
10322         (x_print_font_instance): Type correctness.
10323         (x_list_fonts): SExtbyte ==> Extbyte.
10324         (valid_x_font_name_p): SExtbyte ==> Extbyte.
10325         (x_find_charset_font): SExtbyte ==> Extbyte.
10326         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
10327         (truename_via_XListFonts): SExtbyte ==> Extbyte.
10328         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
10329         Use bufbyte_strcmp.
10330
10331         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
10332         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
10333         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
10334         (BYTE_C0_P): Use bit ops for char-signedness safety.
10335         (BYTE_C1_P): Use bit ops for char-signedness safety.
10336         (CHARSET_BY_LEADING_BYTE):
10337         (CHARSET_BY_ATTRIBUTES):
10338         Always use inline function.
10339         Use type_checking_assert.
10340         Hide chlook.
10341
10342         * mule-charset.c (non_ascii_charptr_copy_char):
10343         Modify to work with both ASCII and non-ASCII characters.
10344         Improve docs and variable names.
10345         Replace over-clever fall-through switch with a simple loop.
10346         (Lstream_get_emchar_1):
10347         Replace over-clever fall-through switch with a simple loop.
10348
10349         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10350         Warning suppression.
10351
10352         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
10353         the return value of Lstream_getc, which could be EOF as well.
10354
10355         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
10356
10357         * lisp.h: Make Extbyte a char, not unsigned char, so that external
10358         APIs can be used on Extbytes without casts.  Risky!
10359         (SExtbyte): Remove.
10360         (UExtbyte): Remove.
10361
10362         * input-method-xlib.c (XIM_init_device):
10363         Use Xlib.h instead of IntrinsicP.h.
10364         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
10365         which will break in X11R7.
10366         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
10367         to call XRegisterIMInstantiateCallback with correct types.
10368
10369         * gui-x.c (button_item_to_widget_value): Type correctness.
10370
10371         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
10372
10373         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
10374         (xbm_instantiate_1): Type correctness.
10375         (BUILD_GLYPH_INST):  Type correctness.
10376
10377         * fileio.c (Fsubstitute_in_file_name): Type correctness.
10378
10379         * file-coding.c:
10380         (decode_coding_sjis):
10381         (decode_coding_big5):
10382         (decode_coding_ucs4):
10383         (decode_coding_utf8):
10384         (decode_coding_iso2022):
10385         (decode_coding_no_conversion):
10386         Make all decoding functions take an Extbyte * arg.
10387         (encode_coding_sjis):
10388         (encode_coding_big5):
10389         (encode_coding_ucs4):
10390         (encode_coding_utf8):
10391         (encode_coding_iso2022):
10392         (encode_coding_no_conversion):
10393         Make all encoding functions take a Bufbyte * arg.
10394         Use size_t instead of unsigned int for memory sizes.
10395         Only cast to unsigned char whenever dereferencing Extbyte *.
10396
10397         * doc.c (unparesseuxify_doc_string): Type correctness.
10398
10399         * console-x.c (split_up_display_spec):
10400         Rewrite without using details of internal string representation.
10401         (x_semi_canonicalize_device_connection): Type correctness.
10402
10403         * config.h.in:
10404         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
10405         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
10406         (HAVE_XFREE386): Removed.
10407
10408         * buffer.h (DEC_CHARPTR): `const' correctness.
10409         (bufbyte_strcmp): New.
10410         (bufbyte_memcmp): New.
10411
10412         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
10413
10414         * buffer.h (XCHAR_OR_CHAR_INT):
10415         Always use inline function.
10416         Remove redundant type checking assert() - XINT will abort quite nicely.
10417
10418 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
10419
10420         * search.c (Freplace_match): Set newtext to an empty string.
10421
10422 2000-10-10  Martin Buchholz  <martin@xemacs.org>
10423
10424         * s/decosf1-3.h: Remove #include of stropts.h
10425         * s/ptx.h: Remove #include of stropts.h
10426         * s/usg5-4.h: Remove #include of stropts.h
10427         * sysproc.h:
10428         * config.h.in:
10429         Use stropts.h, not sys/stropts.h.
10430         Use strtio.h, not sys/strtio.h.
10431
10432 2000-10-04  Martin Buchholz <martin@xemacs.org>
10433
10434         * XEmacs 21.2.36 is released.
10435
10436 2000-09-21  Andy Piper  <andy@xemacs.org>
10437
10438         * glyphs-x.c (x_redisplay_widget): make sure non-structural
10439         changes still involve copying the widget tree.
10440         (update_widget_face): make sure a change is register in the widget
10441         tree. Call update_tab_widget_face appropriately.
10442         (update_tab_widget_face): ditto.
10443         (x_tab_control_redisplay): make sure non-structural changes still
10444         involve copying the widget tree.
10445
10446 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
10447
10448         * lread.c (locate_file): Check the path element is non-nil.
10449
10450 2000-10-02  Martin Buchholz  <martin@xemacs.org>
10451
10452         * lisp.h: Warning suppression for SCO compilers.
10453
10454         * redisplay-tty.c (reset_tty_modes): Fix crash.
10455         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
10456
10457 2000-09-27  Martin Buchholz  <martin@xemacs.org>
10458
10459         Big signal/process handling overhaul.  Bugs fixed:
10460         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
10461         M-x comint-kill-subjob should work for both values nil and t of
10462         process-connection-type. It was broken on most platforms.
10463         Testing on Irix and Cygwin still needed.  Other plaforms tested.
10464         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
10465         * process-unix.c: Signal/Process handling overhaul.
10466         (pty_name): make 64 bytes, as `expect' does, for paranoia.
10467         (allocate_pty): Use all available modern methods of allocating
10468         ptys, falling back to old style BSD allocation as a last resort.
10469         Use allegedly more secure Unix98 pty allocation by default.
10470         (allocate_pty_the_old_fashioned_way): New. the last resort.
10471         (unix_create_process): Push ptem, ldterm, ttcompat where
10472         available.  Autoconfiscate.
10473         (try_to_initialize_subtty): New.
10474         (unix_kill_child_process): Proper signal handling for ptys on most
10475         platforms, using special knowledge of AIX, BSD, etc...
10476         (unix_create_process): Always disconnect_controlling_terminal() for
10477         subprocesses, whether using ptys or not.
10478         * process.h: Remove old getpt-dependent PTY code.
10479         * process.c (Fprocess_send_signal): New, obvious generic function.
10480         (decode_signal): New.
10481         (Finterrupt_process):
10482         (Fkill_process):
10483         (Fquit_process):
10484         (Fstop_process):
10485         (Fcontinue_process):
10486         (Fsignal_process): Use decode_signal.
10487         (process_send_signal):
10488         Many docstring corrections.
10489         Allow any signal to be sent to a process object.
10490         * config.h.in: Add symbols for big signal/process overhaul.
10491         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
10492         * sysproc.h: Include process-related headers, where available:
10493         sys/stropts.h sys/strtio.h pty.h libutil.h
10494         * s/irix4-0.h:
10495         * s/irix5-0.h:
10496         * s/cygwin32.h:
10497         * s/gnu.h:
10498         * s/linux.h:
10499         * s/hpux.h:
10500         * s/aix3-1.h:
10501         Remove old S&M pty stuff.
10502         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
10503         * systty.h: Simplify cpp hackery, improve comments.
10504         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
10505
10506         * editfns.c (Fformat_time_string):
10507         Be a little more paranoid with the return value of ctime.
10508
10509         * fileio.c (check_executable):
10510         (check_writable):
10511         Use symbolic constants X_OK, W_OK.
10512
10513         * console-x.c (split_up_display_spec): Fix a warning.
10514
10515 2000-10-02  Martin Buchholz  <martin@xemacs.org>
10516
10517         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
10518         * ntproc.c (sys_spawnve): make_string ==> build_string
10519         Small clarity improvements.
10520
10521 2000-09-30  Martin Buchholz  <martin@xemacs.org>
10522
10523         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
10524
10525         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
10526
10527         * config.h.in (HAVE_STRCASECMP): Remove.
10528
10529 2000-09-29  Martin Buchholz  <martin@xemacs.org>
10530
10531         * redisplay-output.c (redisplay_output_pixmap):
10532         Cleaner and possibly more 64-bit correct code.
10533
10534 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
10535
10536         * dumper.c (pdump_load_finish): move restoration of
10537         `noninteractive1' to emacs.c (main_1).
10538         * emacs.c (main_1): protect LISP-visible command-line flags
10539         from pdump_load().
10540
10541 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
10542
10543         * Makefile.in.in (versionclean):  Use EXE_TARGET and
10544         DUMP_TARGET instead of literal program names.
10545
10546 2000-09-20  Martin Buchholz  <martin@xemacs.org>
10547
10548         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
10549
10550 2000-09-19  Martin Buchholz  <martin@xemacs.org>
10551
10552         * *: Spelling mega-patch
10553
10554 2000-09-19  Martin Buchholz  <martin@xemacs.org>
10555
10556         * fns.c (bad_bad_turtle):
10557         Delete "Eek!" comment, since we fixed the bug to which it refers.
10558
10559 2000-09-16  Martin Buchholz  <martin@xemacs.org>
10560
10561         * alloca.c: Replace REGISTER with register.
10562
10563 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
10564
10565         * file-coding.c (ucs_to_char): Use countof.
10566
10567 2000-09-16  Martin Buchholz  <martin@xemacs.org>
10568
10569         * file-coding.c: (ucs_to_char):
10570         (complex_vars_of_file_coding):
10571         Use countof instead of sizeof.
10572         Use CHECK_NATNUM instead of CHECK_INT.
10573
10574         * sysdep.c (strcasecmp): Remove.
10575         * device-x.c (ascii_strcasecmp): New.
10576         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
10577         Avoid using non-standard non-portable strcasecmp.
10578
10579 2000-09-16  Martin Buchholz  <martin@xemacs.org>
10580
10581         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
10582         * font-lock.c: remove reference to emacsfns.h.
10583         * search.c: small doc improvement.
10584         * event-Xt.c: correct file names in comments.
10585         * console-x.h Correct file names in comments.
10586         * frame.c: Correct file names in comments.
10587         * event-stream.c: remove Energize from comments.
10588
10589 2000-09-15  Martin Buchholz  <martin@xemacs.org>
10590
10591         * symeval.h (DEFERROR_STANDARD):
10592         (DEFERROR):
10593         (DEFSYMBOL):
10594         (DEFSYMBOL_NO_DUMP):
10595         (DEFSYMBOL_MULTIWORD_PREDICATE):
10596         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
10597         (DEFKEYWORD):
10598         The construct &##name is not sensible C.
10599         Fixes compilation errors with Unixware native compiler.
10600
10601 2000-09-14  Martin Buchholz  <martin@xemacs.org>
10602
10603         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
10604         (next_frame_internal): Removed.  We now just have next_frame.
10605         (next_frame):
10606         Write a simpler and cleaner one-pass algorithm.
10607         Remove called_from_delete_device arg and #ifdefed-out code.
10608         (previous_frame):
10609         Renamed from prev_frame.  Update callers.
10610         Cleaned up to have an analogous implementation to next_frame.
10611         (other_visible_frames_internal): Remove the
10612         called_from_delete_device bogus arg, and hence, remove this
10613         function.  Just use other_visible_frames().
10614
10615         * window.c (Fnext_window):
10616         Prettify docstring.
10617         Since next_frame() is guaranteed to return a frame, remove check
10618         for nil inserted in previous patch.
10619         (Fprevious_window):
10620         Prettify docstring.
10621         Make code look more like Fnext_window.
10622         (window_loop):
10623         Respect the `console' arg when iterating through windows.
10624         Fixes bug: (get-buffer-window buffer t device) not respecting
10625         the `device' arg.
10626         This function needs more work, as others have pointed out.
10627
10628         * frame.h: Rename prev_frame to previous_frame.
10629         device_matches_console_spec no longer takes a `frame' arg.
10630
10631         * s/gnu.h:
10632         * s/linux.h:
10633         * s/hpux.h:
10634         Use EMACS_BLOCK_SIGNAL instead of sigblock.
10635         From "Golubev I. N." <gin@mo.msk.ru>.
10636
10637         * make-src-depend: Fix typo.
10638
10639 2000-09-13  Martin Buchholz  <martin@xemacs.org>
10640
10641         * window.c (Fnext_window):
10642         next_frame() might return nil, not a frame.
10643         Fixes this crash:
10644         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
10645
10646         * frame.c (next_frame_internal):
10647         We've passed a frame if we've passed its device.
10648         Fixes this crash:
10649         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
10650 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
10651
10652 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10653
10654         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
10655         Allow option to suppress accelerators in menu/dialog items.
10656         (populate_or_checksum_helper): Pass dialog title through above.
10657
10658 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10659
10660         * event-msw.c (mswindows_key_to_emacs_keysym):
10661         Add "pause" key, fix "menu" key.
10662
10663 2000-09-09  Martin Buchholz  <martin@xemacs.org>
10664
10665         * eval.c (reinit_vars_of_eval):
10666         Increase max_lisp_eval_depth to 1000,
10667         required for thai-xtis.el to byte-compile under some circumstances.
10668
10669 2000-09-04  Martin Buchholz  <martin@xemacs.org>
10670
10671         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
10672         From Kenichi Handa.
10673
10674 2000-09-01  Martin Buchholz  <martin@xemacs.org>
10675
10676         * make-src-depend: Make the generated Makefiles smaller.
10677
10678         * s/hpux.h (SETUP_SLAVE_PTY):
10679         Provide a %d in the format string for the errno argument.
10680
10681         * editfns.c (Ftemp_directory):
10682         Warning fix.
10683         Avoid buffer overrun on very long file name.
10684
10685         * input-method-xlib.c (XIM_init_device):
10686         6th parameter of XRegisterIMInstantiateCallback has different
10687         pointer types on different OSes, so simply cast to (void *).
10688
10689         * unexhp9k800.c: Warning fixes.  Fiddly changes.
10690
10691         * sysdll.c (dll_open):
10692         shl_load will hang hard if passed a NULL filename.
10693         Simply return NULL for compatibility with dlopen.
10694         * sysdll.c: Conform to XEmacs coding standards.
10695
10696         * sysdep.c (get_pty_max_bytes):
10697         Support pty input lines longer than 512 bytes on HP-UX 10.20.
10698
10699 2000-08-31  Martin Buchholz  <martin@xemacs.org>
10700
10701         * tooltalk.c: Add #include <syssignal.h>
10702
10703 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
10704
10705         * s/hpux.h: Don't use undefined function sigunblock().
10706
10707 2000-08-31  Martin Buchholz  <martin@xemacs.org>
10708
10709         * config.h.in: Add HAVE_BALLOON_HELP.
10710         * emacs.c: Use HAVE_BALLOON_HELP.
10711         * Makefile.in.in (x_objs):
10712         Make Balloon Help conditional on finding shape.h.
10713
10714 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
10715
10716         * syntax.c (regex_emacs_buffer_p): New variable.
10717         * syntax.h (regex_emacs_buffer_p): extern.
10718         * search.c (looking_at_1):
10719         (string_match_1):
10720         (fast_string_match):
10721         (search_buffer): Set regex_emacs_buffer_p.
10722         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
10723         when before_dot, at_dot, after_dot.
10724
10725 2000-08-23  Andy Piper  <andy@xemacs.org>
10726
10727         * gui-x.c (popup_selection_callback): Only set action_occurred
10728         when we really have an image instance.
10729         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
10730
10731 2000-08-23  Andy Piper  <andy@xemacs.org>
10732
10733         * gui-msw.c (mswindows_handle_gui_wm_command): set
10734         action_occurred.
10735         * gui-x.c (popup_selection_callback): ditto.
10736
10737         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
10738         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
10739         (struct Lisp_Image_Instance): add action_occurred flag.
10740
10741         * glyphs.c (redisplay_subwindow): use action_occurred flag.
10742         (image_instance_changed): ditto.
10743         (reset_frame_subwindow_instance_cache): only unmap windows - do
10744         not remove them from the cache also.
10745
10746         * glyphs-widget.c (tab_control_update): better debug.
10747         (progress_gauge_update): ditto.
10748         (layout_update): ditto.
10749         (layout_instantiate): ditto.
10750         (tab_control_order_only_changed): cope with null pending items.
10751
10752         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
10753         debug. Force selection of an item when an action occurred. Cope
10754         with null pending_items.
10755         (mswindows_progress_gauge_redisplay): better debug.
10756         * glyphs-x.c (x_tab_control_redisplay): ditto.
10757
10758         * redisplay.c (redisplay_frame): reset the frame cache if the
10759         frame is garbaged.
10760
10761         * window.c (Fset_window_configuration): potentially re-enable
10762         frame cache reset.
10763         (window_unmap_subwindows): need to finalize instances here since
10764         it is only used in mark_window_as_deleted.
10765
10766 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
10767
10768         * nas.c (SndOpenDataForReading):
10769         nas.c (WaveOpenDataForReading):
10770         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
10771         Somehow escaped from the 2000-08-14 patch.
10772
10773 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
10774
10775         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
10776         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
10777
10778 2000-08-21  Andy Piper  <andy@xemacs.org>
10779
10780         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
10781         window if it is not already displayed.
10782
10783         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
10784         it is not already displayed.
10785
10786         * window.c (Fset_window_configuration): don't reset the frame
10787         cache.
10788
10789         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
10790         instances from the frame cache if we are actually finalizing them.
10791         (reset_frame_subwindow_instance_cache): reset frame cache only
10792         after unmapping everything.
10793         (map_subwindow): set displayed flag after mapping.
10794
10795 2000-08-21  Martin Buchholz  <martin@xemacs.org>
10796
10797         * data.c (indirect_function):
10798         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
10799
10800         * eval.c (function_argcount):
10801         Use original function when signaling errors.
10802
10803 2000-08-18  Andy Piper  <andy@xemacs.org>
10804
10805         * frame.c (delete_frame_internal): use new
10806         free_frame_subwindow_instances name.
10807
10808         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
10809         (add_tab_item): make return type correct.
10810         (mswindows_tab_control_instantiate): assert index of tab.
10811         (mswindows_tab_control_redisplay): Re-code to use
10812         gui_item_equal_sans_selected and gui_item_list_find_selected.
10813
10814         * glyphs-widget.c (tab_control_update): Correct comment.
10815
10816         * window.c (window_unmap_subwindows): use new
10817         unmap_subwindow_instance_cache_mapper.
10818         (window_unmap_subwindows_cache_mapper): deleted.
10819         (Fset_window_configuration): comparisons should now be with
10820         EQ. Preserve the subwindow instance cache across configuration
10821         changes.
10822         (allocate_window): ditto.
10823         (make_dummy_parent): ditto.
10824
10825         * glyphs.c (free_frame_subwindow_instances): rename from
10826         free_frame_subwindow_instance_cache. finalize all instances rather
10827         than just those in the display cache.
10828         (finalize_all_subwindow_instances): walk windows unmapping and
10829         finalizing subwindows.
10830         (unmap_subwindow_instance_cache_mapper): moved from
10831         window.c. Allow finalization as well as unmapping.
10832
10833         * gui.c (gui_item_list_find_selected): new function.
10834
10835         * gui.h (gui_item_list_find_selected): declare.
10836
10837         * glyphs-x.c (x_tab_control_redisplay): pick tab
10838         explicitly. Re-code to use gui_item_equal_sans_selected and
10839         gui_item_list_find_selected.
10840
10841         * glyphs-x.h: add lwlib-utils.h
10842
10843         * buffer.c (Frecord_buffer): undo previous change.
10844
10845 2000-08-09  Vin Shelton  <acs@xemacs.org>
10846
10847         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
10848         possible.  Create temporary files more securely.  The patch was
10849         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
10850         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
10851         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
10852         for details.
10853
10854 2000-08-07  Ben Wing  <ben@xemacs.org>
10855
10856         * getloadavg.c: remove duplicate (and windows-breaking)
10857         includes of fcntl.h and sys/file.h.
10858
10859         * nt.c: remove duplicate getloadavg() definition.
10860
10861         * sysdll.h (Qdll_filename_encoding): add missing stand-in
10862         encodings.
10863
10864 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
10865
10866         * eval.c (function_argcount): If function needs to be autoloaded
10867         actually use the loaded definition.
10868         GCPRO function.
10869
10870 2000-08-05  Ben Wing  <ben@xemacs.org>
10871
10872         * getloadavg.c: add prototype for getloadavg().  remove
10873         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
10874         of the code).  remove duplicate header includes.
10875
10876         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
10877
10878         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
10879         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
10880         useful load average.
10881
10882         * alloc.c (reinit_alloc_once_early): removed references to
10883         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
10884         the lisp vars are the only things referencing the malloc_sbrk_*
10885         vars, and they were already if 0'd out.  these vars only exist
10886         in the older malloc.c, which is basically unused, and they're
10887         only for informational purposes.
10888
10889         * m\*.h: removed useless VIRT_ADDR_VARIES.
10890
10891         * m\powerpc.h: removed stray NO_ARG_ARRAY.
10892
10893 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
10894
10895         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
10896         color if the image is a mono pixmap.
10897
10898 2000-07-30  Ben Wing  <ben@xemacs.org>
10899
10900         * Makefile.in.in (release):
10901         Remove stray @.
10902
10903         * buffer.c (directory_is_current_directory):
10904         * dired-msw.c (mswindows_get_files):
10905         * dired.c:
10906         * dired.c (Fdirectory_files):
10907         * dired.c (file_name_completion_stat):
10908         * dired.c (Ffile_attributes):
10909         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
10910         preprocessor tricks, to avoid problems on some machines
10911         (e.g. SCO).
10912
10913         * callproc.c (egetenv): GC docs.
10914
10915         * console-msw.h:
10916         * console-msw.h (struct mswindows_dialog_id):
10917         * lrecord.h (lrecord_type):
10918         New object for use with MSW dialogs.
10919
10920         * console.h (struct console_methods):
10921         New enable/disable frame methods, for proper modal dialogs.
10922
10923         * device-msw.c (msprinter_default_printer): Fix to follow
10924         proper Mule conventions.
10925
10926         * device-msw.c:
10927         * device-msw.c (signal_open_printer_error):
10928         * device-msw.c (msprinter_init_device):
10929         * device-msw.c (ensure_not_printing):
10930         * device-msw.c (plist_get_margin):
10931         * device-msw.c (Fmsprinter_select_settings):
10932         * device-msw.c (finalize_devmode):
10933         * device-msw.c (Fmsprinter_settings_despecialize):
10934         * device-msw.c (signal_enum_priner_error):
10935         * extents.c (decode_extent):
10936         * extents.c (decode_map_extents_flags):
10937         * extents.c (decode_extent_at_flag):
10938         * extents.c (Fextent_at):
10939         * extents.c (Fextents_at):
10940         * extents.c (symbol_to_glyph_layout):
10941         [[[[2]]]] Use structured errors.
10942
10943         * dialog-msw.c:
10944         * dialog-msw.c (mswindows_is_dialog_msg):
10945         * dialog-msw.c (mark_mswindows_dialog_id):
10946         * dialog-msw.c (dialog_proc):
10947         * dialog-msw.c (handle_question_dialog_box):
10948         * dialog-msw.c (syms_of_dialog_mswindows):
10949         Define new object to clean up marking; use it as a dialog identifier.
10950         Call new delete-dialog-box-hook.
10951
10952         * dialog-x.c (dbox_selection_callback):
10953         * dialog-x.c (dbox_descriptor_to_widget_value):
10954         * dialog-x.c (x_make_dialog_box_internal):
10955         Call new delete-dialog-box-hook.
10956         Return an id.
10957
10958         * dialog.c:
10959         * dialog.c (syms_of_dialog):
10960         * dialog.c (vars_of_dialog):
10961         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
10962
10963         * eval.c:
10964         * eval.c (signal_call_debugger):
10965         when noninteractive, output stack traces on the console instead
10966         of in a (never-seen) buffer.
10967
10968         * eval.c (signal_type_error):
10969         * eval.c (invalid_argument_2):
10970         * lisp.h:
10971         new funs for use w/structured errors.
10972
10973         * event-Xt.c:
10974         * event-Xt.c (x_to_emacs_keysym):
10975         * event-Xt.c (describe_event):
10976         * event-Xt.c (emacs_Xt_event_handler):
10977         * event-Xt.c (vars_of_event_Xt):
10978         * event-msw.c:
10979         * event-msw.c (mswindows_wnd_proc):
10980         * event-msw.c (vars_of_event_mswindows):
10981         rename {x,mswindows}-debug-events to debug-{}-events for
10982         consistency with other debug-foo variables.
10983
10984         * event-stream.c:
10985         document next-event more clearly.
10986
10987         * fileio.c (Ffile_name_directory):
10988         * fileio.c (Ffile_name_nondirectory):
10989         * fileio.c (Funhandled_file_name_directory):
10990         * fileio.c (file_name_as_directory):
10991         * fileio.c (Ffile_name_as_directory):
10992         * fileio.c (directory_file_name):
10993         * fileio.c (Fdirectory_file_name):
10994         * fileio.c (Fmake_temp_name):
10995         * fileio.c (Ffile_truename):
10996         * fileio.c (Fsubstitute_in_file_name):
10997         * fileio.c (expand_and_dir_to_file):
10998         * fileio.c (barf_or_query_if_file_exists):
10999         * fileio.c (check_executable):
11000         * fileio.c (Ffile_exists_p):
11001         * fileio.c (Ffile_writable_p):
11002         * fileio.c (Ffile_directory_p):
11003         * fileio.c (Ffile_regular_p):
11004         * fileio.c (Ffile_modes):
11005         * fileio.c (Ffile_newer_than_file_p):
11006         * fileio.c (Fverify_visited_file_modtime):
11007         * fileio.c (Fset_visited_file_modtime):
11008         * fileio.c (auto_save_1):
11009         (1). (2).
11010         fix up gcpro's.
11011
11012         * frame-msw.c:
11013         * frame-msw.c (mswindows_init_frame_1):
11014         * frame-msw.c (mswindows_enable_frame):
11015         * frame-msw.c (error_frame_unsizable):
11016         * frame-msw.c (msprinter_init_frame_1):
11017         * frame-msw.c (msprinter_init_frame_3):
11018         * frame-msw.c (console_type_create_frame_mswindows):
11019         (2).
11020         implement new enable/disable frame methods.
11021
11022         * frame-x.c:
11023         * frame-x.c (x_enable_frame):
11024         * frame-x.c (console_type_create_frame_x):
11025         implement new enable/disable frame methods.
11026
11027         * frame.c:
11028         * frame.c (Fdisable_frame):
11029         * frame.c (syms_of_frame):
11030         * frame.h (struct frame):
11031         implement new enable/disable frame methods/functions.
11032
11033         * general-slots.h:
11034         add initial-focus.
11035
11036         * glyphs-msw.c (mswindows_widget_instantiate):
11037         comment that initial-focus should be implemented.
11038
11039         * glyphs-widget.c:
11040         * glyphs-widget.c (check_valid_instantiator):
11041         * glyphs-widget.c (check_valid_orientation):
11042         * glyphs-widget.c (check_valid_tab_orientation):
11043         * glyphs-widget.c (check_valid_justification):
11044         * glyphs-widget.c (check_valid_border):
11045         * glyphs-widget.c (check_valid_callback):
11046         * glyphs-widget.c (check_valid_int_or_function):
11047         * glyphs-widget.c (check_valid_string_or_vector):
11048         * glyphs-widget.c (check_valid_item_list_1):
11049         * glyphs-widget.c (widget_validate):
11050         * glyphs-widget.c (combo_box_validate):
11051         * glyphs-widget.c (widget_instantiate):
11052         * glyphs-widget.c (syms_of_glyphs_widget):
11053         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
11054         * glyphs-widget.c (image_instantiator_combo_box):
11055         * glyphs-widget.c (image_instantiator_scrollbar):
11056         * glyphs-widget.c (image_instantiator_tab_control):
11057         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
11058         (2).
11059         support (unimplemented) keyword initial-focus.
11060         reindent long macros.
11061
11062         * glyphs-x.c (x_redisplay_widget):
11063         * glyphs-x.c (x_button_instantiate):
11064         * glyphs-x.c (x_button_redisplay):
11065         * glyphs-x.c (x_progress_gauge_instantiate):
11066         * glyphs-x.c (x_edit_field_instantiate):
11067         * glyphs-x.c (x_combo_box_instantiate):
11068         * glyphs-x.c (x_tab_control_instantiate):
11069         * glyphs-x.c (x_label_instantiate):
11070         * gui-x.c:
11071         * gui-x.c (button_item_to_widget_value):
11072         * gui-x.c (gui_items_to_widget_values_1):
11073         * gui-x.c (gui_item_children_to_widget_values):
11074         * gui-x.c (gui_items_to_widget_values):
11075         * gui-x.h:
11076         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
11077         add new flag to gui-parsing routines to indicate whether
11078         accelerator specs should be supported.
11079
11080         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
11081
11082         * glyphs.h (struct Lisp_Image_Instance):
11083         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
11084         add initial-focus flag.
11085
11086         * gui.c:
11087         * gui.c (syms_of_gui):
11088         * gui.c (vars_of_gui):
11089         clean up menu-no-selection-hook.
11090
11091         * gui.h:
11092         support delete-dialog-box-hook.
11093
11094         * lread.c (Fload_internal):
11095         * lread.c (locate_file_in_directory_mapper):
11096         (1).
11097
11098         * lrecord.h:
11099         * lrecord.h (struct toolbar_button):
11100         * lrecord.h (syms_of_toolbar):
11101         document how to create a new object.
11102
11103         * menubar-msw.c (mswindows_char_is_accelerator):
11104         may be called on frames w/o menus.
11105
11106         * menubar.c (vars_of_menubar):
11107         clean up :filter docs.
11108
11109         * nt.c (readdir):
11110         * ntproc.c:
11111         (1).
11112
11113         * process-nt.c:
11114         * process-nt.c (validate_signal_number):
11115         * process-nt.c (signal_cannot_launch):
11116         * process-nt.c (nt_create_process):
11117         * process-nt.c (nt_send_process):
11118         * process-nt.c (nt_kill_child_process):
11119         * process-nt.c (nt_open_network_stream):
11120         * process-nt.c (syms_of_process_nt):
11121         (2).
11122         delete quote-handling.  call new lisp code that does it better.
11123
11124         * process-unix.c (connect_to_file_descriptor):
11125         * process-unix.c (allocate_pty):
11126         * process-unix.c (unix_send_process):
11127         * process-unix.c (unix_kill_child_process):
11128         * process-unix.c (unix_open_network_stream):
11129         * process-unix.c (unix_open_multicast_group):
11130         (1). (2).
11131
11132         * process.c:
11133         * process.c (Fstart_process_internal):
11134         (2).  need to canonicalize process path even if absolute.
11135
11136         * select-msw.c (symbol_to_ms_cf):
11137         * select-msw.c (ms_cf_to_symbol):
11138         * select-msw.c (cf_is_autofreed):
11139         * select-msw.c (mswindows_destroy_selection):
11140         * select.c:
11141         * select.c (syms_of_select):
11142         * select.h:
11143         support dibv5, fix bugs. (from Mike Alexander)
11144
11145         * select.c (Fget_selection_internal):
11146         * select.c (select_convert_out):
11147
11148         * sysdep.c:
11149         * sysdep.c (xemacs_stat):
11150         renamed.
11151
11152         * sysdep.c (mkdir):
11153         * sysdep.c (rmdir):
11154         but keep original stat() here because we provide encapsulation
11155         around these funs.
11156
11157         * sysfile.h:
11158         * sysfile.h (fstat):
11159         remove stat garbage.
11160
11161         * syswindows.h:
11162         fix X/MSW conflict.
11163         don't include tchar.h.  it's inappropriate because it makes
11164         compile-time distinctions when we want runtime distinctions.
11165         (we provide our own tchar replacements)
11166
11167         * toolbar.c:
11168         use default object printer for toolbar-button.
11169
11170         * unexcw.c:
11171         make sure we don't encapsulate.
11172
11173         * window.c (vars_of_window):
11174         emphasize that temp-buffer-show-hook is obsolete.
11175
11176 2000-08-05  Martin Buchholz  <martin@xemacs.org>
11177
11178         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
11179         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
11180
11181         * events.c (Fevent_timestamp_lessp):
11182         Not 64-bit clean.  Use EMACS_INT, not int.
11183
11184 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
11185
11186         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
11187         unsigned int and changed the last enum to
11188         lrecord_type_last_built_in_type.
11189         (lrecord_implementations_table): changed prototype to know how
11190         long the array is supposed to be.
11191         (lrecord_type_count): new unsigned int to keep track of the
11192         current number of lisp lrecord types.
11193         (DEFINE_EXTERNAL_LRECORD):
11194         (DECLARE_EXTERNAL_LRECORD): Added these two for external
11195         dynamic-modules to declare new lisp types. They are the same
11196         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
11197         int for each new type, and increment lrecord_type_count by 1.
11198
11199         * alloc.c (lrecord_implementations_table): Changed to reference
11200         lrecord_type_last_built_in_type for the size of the array.
11201         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
11202
11203 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
11204
11205         * glyphs.h (check_valid_item_list): Renamed from
11206         check_valid_item_list_1.
11207
11208 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
11209
11210         * select.c (Qselect_coerce): New.
11211         * select.c (Vselection_coercion_alist): New.
11212         * select.c (syms_of_select): Declare.
11213         * select.c (get-selection-internal): Use it.
11214         Use the new select-coerce functionality.
11215
11216         * select.c (select_coerce): New.
11217         * select.h (select_coerce): Declare.
11218         New function to coerce one type of data into another.
11219
11220 2000-08-03  Martin Buchholz  <martin@xemacs.org>
11221
11222         * callproc.c (Fcall_process_internal):
11223         (Fcall_process_internal):
11224         * process-unix.c (unix_create_process):
11225         Save and restore the value of errno, so that error messages are accurate.
11226
11227 2000-08-01  Martin Buchholz  <martin@xemacs.org>
11228
11229         * elhash.c (print_hash_table):
11230         Fix printing of hash tables to also use `key-and-value' instead of `t'.
11231         Prettify docstrings and indentation.
11232
11233 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
11234
11235         * window.c (Fwindow_pixel_edges): Subtract frame border and
11236         gutter size.
11237
11238 2000-07-31  Andy Piper  <andy@xemacs.org>
11239
11240         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
11241         will acknowledge the change.
11242
11243         * glyphs.h: declare tab_control_order_only_changed.
11244
11245         * glyphs-x.c (x_tab_control_redisplay): use
11246         tab_control_order_only_changed.
11247
11248         * glyphs-widget.c (tab_control_order_only_changed): new function.
11249
11250         * glyphs-msw.c (mswindows_tab_control_redisplay): use
11251         tab_control_order_only_changed.
11252
11253         * gui.c (gui_item_equal_sans_selected): new function.
11254         (gui_item_equal): use it.
11255
11256         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
11257         :properties in favor of :items..
11258
11259         * glyphs-widget.c (check_valid_item_list): rename from
11260         check_valid_item_list_1.
11261         (check_valid_item_list_1): renamed.
11262         (combo_box_validate): deprecate :properties in favor of :items.
11263         (widget_instantiate): ditto.
11264         (tab_control_update): ditto.
11265         (image_instantiator_combo_box): ditto.
11266         (image_instantiator_tree_view): ditto.
11267         (image_instantiator_tab_control): ditto.
11268         (layout_post_instantiate): remove dead code.
11269
11270         * print.c (debug_print_no_newline): only write to debugger if in
11271         WIN32_NATIVE.
11272
11273         * elhash.c (Fmake_hash_table): update doc string.
11274
11275         * event-msw.c (mswindows_wnd_proc): don't allow processing of
11276         messages whilst in GC. This at least stops XEmacs crashing but has
11277         the potential for wierd behaviour.
11278
11279 2000-07-31  Martin Buchholz  <martin@xemacs.org>
11280
11281         * config.h.in:
11282         Make existence of s&m files optional.
11283
11284         * s/bsd386.h: Remove HAVE_GETLOADAVG.
11285         * s/freebsd.h: Remove HAVE_GETLOADAVG.
11286         * s/gnu.h: Remove HAVE_GETLOADAVG.
11287         * s/netbsd.h: Remove HAVE_GETLOADAVG.
11288         * s/sol2.h: Remove HAVE_GETLOADAVG.
11289         * lisp.h: Remove getloadavg() declaration.
11290         * fns.c:
11291         Include <sys/loadavg.h> if available.
11292         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
11293         * config.h.in:  Group together getloadavg()-related macros.
11294         Use only configure-time tests to detect getloadavg().
11295
11296 2000-07-30  Martin Buchholz  <martin@xemacs.org>
11297
11298         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
11299
11300 2000-07-25  Andy Piper  <andy@xemacs.org>
11301
11302         * syswindows.h: add tchar.h for native builds.
11303
11304         * frame.c (syms_of_frame): remove set-glyph-image.
11305
11306         * general-slots.h: add Qset_glyph_image.
11307
11308         * glyphs-widget.c (layout_update): add domain arg to
11309         set-glyph-image.
11310         (syms_of_glyphs_widget): remove set-glyph-image.
11311
11312 2000-07-23  Ben Wing  <ben@xemacs.org>
11313
11314         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
11315         Vpopup_frame_list.
11316
11317 2000-07-22  Andy Piper  <andy@xemacs.org>
11318
11319         * symsinit.h: add syms_of_win32().
11320
11321         * gui-msw.c (syms_of_gui_mswindows): remove
11322         Fmswindows_shell_execute.
11323         (Fmswindows_shell_execute): moved to win32.c.
11324
11325         * emacs.c (main_1): add syms_of_win32 ().
11326
11327         * win32.c (init_potentially_nonexistent_functions): rewrite in
11328         compiler-friendly terms.
11329         (Fmswindows_shell_execute): move here from gui-msw.c.
11330         (syms_of_win32): new.
11331
11332         * device-msw.c (Fmswindows_printer_list): clean up args to
11333         EnumPrinters.
11334         Don't include tchar under cygwin or mingw.
11335         (msprinter_default_printer): make cygwin-friendly.
11336
11337 2000-07-21  Andy Piper  <andy@xemacs.org>
11338
11339         * glyphs-widget.c (image_instantiator_tree_view): use tab
11340         control's update function.
11341         (layout_property): new function. Retrieve items.
11342
11343         * glyphs-msw.c (mswindows_tree_view_redisplay): new
11344         function. Re-populate the tree view from the pending items.
11345
11346         * glyphs.c (instantiate_image_instantiator): Make sure the domain
11347         is designated the parent if the domain is an image instance. This
11348         is needed so that dirtiness can be cascade up the hierarchy and
11349         thus for layout children to be redisplayed correctly.
11350         (allocate_image_instance): rename glyph -> parent.
11351
11352         * redisplay.h: change redisplay_output_layout signature.
11353
11354         * redisplay-msw.c (mswindows_output_display_block): use domain
11355         arg.
11356
11357         * redisplay-x.c (x_output_display_block): use domain arg.
11358
11359 2000-07-10  Andy Piper  <andy@xemacs.org>
11360
11361         * window.c (Fset_window_configuration): add comment.
11362
11363         * redisplay-output.c (compare_runes):
11364         (redisplay_output_subwindow): redisplay rather than update subwindow.
11365         (redisplay_output_layout): ditto.
11366
11367         * redisplay-msw.c (mswindows_frame_output_end):
11368         (mswindows_frame_output_end): make defer window pos optional.
11369
11370         * lisp.h: add Flast.
11371
11372         * glyphs.h (struct image_instantiator_methods): add dest_mask top
11373         normalize method. Change update method to be for changed
11374         instantiators. Add redisplay method. Change signature of layout
11375         method.
11376         (struct Lisp_Image_Instance): add instantiator.
11377         (IMAGE_INSTANCE_INSTANTIATOR): new.
11378         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
11379         (XIMAGE_INSTANCE_INSTANTIATOR): new.
11380         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
11381
11382         * glyphs.c:
11383         (find_instantiator_differences): new function.
11384         (Fset_instantiator_property): new convenience function.
11385         (check_image_instance_structure): strictly check for vector
11386         instantiators.
11387         (normalize_image_instantiator): make non-static.
11388         (instantiate_image_instantiator): pass on dest_mask and use new
11389         signatures for image_instance_layout and friends.
11390         (mark_image_instance): mark the instantiator. Mark the subwindow
11391         face not the widget face.
11392         (image_instance_equal): add instantiator.
11393         (image_instance_hash): ditto.
11394         (allocate_image_instance): ditto.
11395         (Fset_image_instance_property): removed.
11396         (Fimage_instance_file_name): ditto.
11397         (Fcolorize_image_instance): ditto.
11398         (image_instance_layout): add offsets to be set.
11399         (update_image_instance): new function. update an image instance
11400         from its changed instantiator.
11401         (inherit_normalize): add dest_mask.
11402         (xbm_normalize): ditto.
11403         (xface_normalize): ditto.
11404         (xpm_normalize): ditto.
11405         (text_update): set_property -> update.
11406         (image_instantiate): use the glyph identity as a hash key, not the
11407         instantiator.
11408         (glyph_width): use new image_instance_layout signature.
11409         (glyph_ascent): ditto.
11410         (glyph_descent): ditto.
11411         (glyph_height): ditto.
11412         (glyph_query_geometry): ressurrect.
11413         (glyph_layout): ditto.
11414         (redisplay_subwindow): update -> redisplay.
11415         (syms_of_glyphs): add Fset_instantiator_property.
11416         (image_instantiator_format_create): set_property -> update.
11417
11418         * glyphs-x.c:
11419         (autodetect_normalize): add dest_maks to signature.
11420         (x_redisplay_subwindow): update -> redisplay.
11421         (x_redisplay_widget): ditto.
11422         (x_button_redisplay): ditto.
11423         (x_progress_gauge_redisplay): ditto.
11424         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
11425         stacking order.
11426         (console_type_create_glyphs_x): update -> redisplay.
11427         (image_instantiator_format_create_glyphs_x): ditto.
11428
11429         * glyphs-widget.c:
11430         (check_valid_instantiator): disallow glyphs in the instantiator,
11431         they must now be vectors.
11432         (check_valid_instantiator_list): ditto.
11433         (glyph_instantiator_to_glyph): use internal symbol rather than
11434         intern.
11435         (widget_update): renamed from widget_set_property. Call cascaded
11436         update methods.
11437         (redisplay_widget): renamed from update_widget.
11438         (widget_layout): image_instance_layout now takes position as well
11439         as size.
11440         (widget_normalize): ditto.
11441         (widget_instantiate): ditto.
11442         (tab_control_query_geometry) ditto.:
11443         (tab_control_update): renamed from tab_control_set_property.
11444         (progress_gauge_update): set_property -> update.
11445         (layout_normalize): rewrite so that child instantiators are
11446         normalized also.
11447         (layout_update): new function. Create glyphs from the normalized
11448         children and cope with any other layout keywords. We do not
11449         instantiate children here that will be take care of by
11450         redisplay_output_layout.
11451         (layout_instantiate): call layout_update and not much else.
11452         (layout_post_instantiate): not sure whether this is needed
11453         anymore.
11454         (layout_query_geometry): query glyph geometry rather than
11455         image_instance geometry.
11456         (layout_layout): set offsets from pass in parameters. Use glyph
11457         geometry and layout functions rather than image instance ones.
11458         (native_layout_layout): ditto.
11459         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
11460         (image_instantiator_widget): set_property -> update.
11461         (image_instantiator_buttons): ditto.
11462         (image_instantiator_progress_guage): ditto.
11463         (image_instantiator_tab_control): ditto.
11464         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
11465         (image_instantiator_layout): add update method.
11466
11467         * glyphs-msw.c (bmp_normalize):
11468         (mswindows_resource_normalize): add dest_mask so that it can be
11469         proprogated by layout_normalize.
11470         (begin_defer_window_pos): make optional because it may not be the
11471         right thing to do and it introduces differences with X.
11472         (mswindows_unmap_subwindow): ditto.
11473         (mswindows_map_subwindow): ditto.
11474         (mswindows_redisplay_subwindow): renamed from
11475         mswindows_update_subwindow.
11476         (mswindows_redisplay_widget): ditto.
11477         (mswindows_button_redisplay): renamed from
11478         mswindows_button_update. Update is now what the instantiation
11479         function does for a changed instantiator.
11480         (mswindows_progress_gauge_instantiate): set the progress value
11481         here if appropriate.
11482         (mswindows_tab_control_redisplay): cope with re-ordering of the
11483         members of the tab widget by simply selecting the new top
11484         widget. This makes things appear ok if you click on a tab.
11485         (mswindows_combo_box_instantiate): image_instance_layout now takes
11486         position as well as size.
11487         (mswindows_progress_gauge_redisplay): renamed from
11488         mswindows_progress_gauge_update.
11489         (console_type_create_glyphs_mswindows): fix update -> redisplay.
11490         (image_instantiator_format_create_glyphs_mswindows): ditto.
11491
11492         * glyphs-eimage.c (jpeg_normalize):
11493         (gif_normalize):
11494         (png_normalize):
11495         (tiff_normalize): add dest_mask so that it can be proprogated by
11496         layout_normalize.
11497
11498         * elhash.c:
11499         (print_hash_table):
11500         (hash_table_weakness_validate):
11501         (decode_hash_table_weakness):
11502         (Fhash_table_weakness):
11503         (Fhash_table_type):
11504         (syms_of_elhash): use Ben's naming scheme for hashtable types..
11505
11506         * console.h (struct console_methods): move update_* to
11507         redisplay_*.
11508
11509 2000-07-20  Ben Wing  <ben@xemacs.org>
11510
11511         * *.[ch] (XSETOBJ): remove unused middle argument.
11512         lisp-disunion.h: correct wrap_object() to one argument.
11513
11514 2000-07-15  Ben Wing  <ben@xemacs.org>
11515
11516         * s/cygwin32.h:
11517         * s/cygwin32.h (CYGWIN_CONV_PATH):
11518         Add missing logb prototype for v1.1.
11519         Use post-b20 names and alias to pre-b20 names when pre-b20.
11520
11521         * s/windowsnt.h: [5].
11522
11523 2000-07-15  Ben Wing  <ben@xemacs.org>
11524
11525         * Makefile.in.in (x_objs):
11526         * Makefile.in.in (sheap_objs):
11527         * Makefile.in.in (objs):
11528         added win32.o, cosmetic cleanups.
11529
11530         * alloc.c (Fmake_byte_code):
11531         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
11532         etc. macros which declare their own args now.
11533
11534         * alloc.c (syms_of_alloc):
11535         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
11536
11537         * buffer.c:
11538         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
11539
11540         * buffer.c (Fget_file_buffer):
11541         Fixed GCPRO problem.
11542
11543         * buffer.c (get_truename_buffer):
11544         Fixed comment about GC checking.
11545
11546         * buffer.c (syms_of_buffer):
11547         Undeclared those dedicated frame funs.
11548         [2].
11549
11550         * buffer.h:
11551         Define convenience macros for internal/external conversions.
11552         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
11553         and Qenvironment_variable_encoding for cleaner code.
11554
11555         * bufslots.h:
11556         Remove dedicated-frame; in lisp.
11557
11558         * bytecode.c (funcall_compiled_function):
11559         [1].
11560
11561         * bytecode.c (syms_of_bytecode):
11562         [2].
11563
11564         * console-msw.c:
11565         * console-msw.c (mswindows_show_console): Rewrote.
11566
11567         * console-msw.c (Fmswindows_debugging_output): New.
11568         Sends to OutputDebugString (special MSWin debugger interface).
11569
11570         * console-msw.c (Fmswindows_message_box):
11571         Fixed stupid bugs so it works when called from kill-emacs.
11572
11573         * console-msw.c (syms_of_console_mswindows):
11574         Declare Fmswindows_debugging_output.
11575
11576         * console-msw.h:
11577         New MSWin prototypes.
11578
11579         * console-msw.h (struct mswindows_frame):
11580         New entry last-click-mods for improved button-modifier support.
11581
11582         * console-msw.h (FRAME_MSWINDOWS_POPUP):
11583         New struct entry `popup' with corresponding accessor.
11584
11585         * console-x.c:
11586         * console-x.c (split_up_display_spec):
11587         * console-x.c (get_display_arg_connection):
11588         * console-x.c (x_semi_canonicalize_console_connection):
11589         * console-x.c (x_canonicalize_device_connection):
11590         [[[6]]]: Change char to more specific type.
11591         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
11592
11593         * console-x.c (x_semi_canonicalize_console_connection):
11594         * console-x.c (x_canonicalize_device_connection):
11595         [[[9]]]: Fix up error signalling to use new structured error system.
11596
11597         * console-x.h:
11598         [[[4]]]: Define codesys aliases:
11599         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
11600         Qx_color_name_encoding, Qx_display_name_encoding.
11601
11602         * console.h (struct console_methods):
11603         New method make_dialog_box_internal supersedes older
11604         popup_dialog_box method.
11605
11606         * data.c:
11607         Define many new errors, part of new structured errors.
11608
11609         * data.c (init_errors_once_early):
11610         * data.c (syms_of_data):
11611         [2].
11612
11613         * device-msw.c (mswindows_init_device):
11614         [[[5]]]: Cleanup to support NT 3.51.
11615
11616         * device-msw.c (decode_devmode): Cleanup.
11617
11618         * device-msw.c (mswindows_handle_print_setup_dialog_box):
11619         * device-msw.c (mswindows_handle_print_dialog_box):
11620         * device-msw.c (mswindows_handle_page_setup_dialog_box):
11621         * device-msw.c (syms_of_device_mswindows):
11622         Delete the dialog box primitives recently introduced by Kirill and
11623         instead interface to general dialog box interface.
11624
11625         * device-x.c:
11626         * device-x.c (compute_x_app_name):
11627         * device-x.c (x_init_device):
11628         * device-x.c (Fx_valid_keysym_name_p):
11629         * device-x.c (Fx_set_font_path):
11630         [6].
11631         [7].
11632
11633         * device.h (wrap_device): New.
11634         First of its kind; meant to replace XSETDEVICE.
11635
11636         * dialog-msw.c: Many file-dialog symbols.
11637
11638         * dialog-msw.c (mswindows_register_popup_frame): New.
11639         * dialog-msw.c (mswindows_is_dialog_msg): New.
11640         For supporting kbd traversal in dialog boxes.
11641
11642         * dialog-msw.c (dialog_proc):
11643         Support hitting ESC in dialogs.
11644
11645         * dialog-msw.c (struct):
11646         Common dialog box errors.
11647
11648         * dialog-msw.c (handle_file_dialog_box): New.
11649         Add file dialog code.
11650
11651         * dialog-msw.c (handle_question_dialog_box):
11652         Redo existing code to support new question dialog syntax.
11653
11654         * dialog-msw.c (console_type_create_dialog_mswindows):
11655         We support new dialog console method.
11656
11657         * dialog-msw.c (syms_of_dialog_mswindows):
11658         * dialog-msw.c (vars_of_dialog_mswindows):
11659         New file dialog symbols, vars.
11660
11661         * dialog-x.c:
11662         * dialog-x.c (maybe_run_dbox_text_callback):
11663         * dialog-x.c (dbox_descriptor_to_widget_value):
11664         * dialog-x.c (x_make_dialog_box_internal):
11665         * dialog-x.c (console_type_create_dialog_x):
11666         Mule-ize entire file.
11667         Redo to support question dialog syntax.
11668         [6].
11669
11670         * dialog.c:
11671         * dialog.c (Fmake_dialog_box_internal):
11672         * dialog.c (syms_of_dialog):
11673         Kill old popup-dialog-box, replace with new primitive.
11674         Just call device method or signal error.
11675
11676         * eldap.c (Fldap_open):
11677         * eldap.c (Fldap_search_basic):
11678         * eldap.c (Fldap_add):
11679         * eldap.c (Fldap_modify):
11680         [1].
11681         [7].
11682
11683         * emacs.c:
11684         * emacs.c (make_arg_list_1):
11685         * emacs.c (make_arg_list):
11686         Mule-ize call to dll_init().
11687         [6].
11688         [8].
11689
11690         * emacs.c (make_argc_argv):
11691         * emacs.c (free_argc_argv):
11692         * emacs.c (init_cmdargs):
11693         * emacs.c (main_1):
11694         * emacs.c (Fkill_emacs):
11695         * emacs.c (Fdump_emacs):
11696         Update comments about what can be used in syms_* etc.
11697         Call init_win32() when necessary.
11698         Fix up MS Win dialog box in kill-buffer to actually work right.
11699         [7].
11700
11701         * eval.c:
11702         * eval.c (For):
11703         * eval.c (Fand):
11704         * eval.c (Fprogn):
11705         * eval.c (Fprog1):
11706         * eval.c (Fprog2):
11707         * eval.c (FletX):
11708         * eval.c (Flet):
11709         * eval.c (condition_case_3):
11710         * eval.c (Feval):
11711         * eval.c (function_argcount):
11712         * eval.c (funcall_lambda):
11713         [1].
11714
11715         * eval.c (type_error): New.
11716         * eval.c (maybe_type_error): New.
11717         * eval.c (continuable_type_error): New.
11718         * eval.c (maybe_continuable_type_error): New.
11719         * eval.c (type_error_with_frob): New.
11720         * eval.c (maybe_type_error_with_frob): New.
11721         * eval.c (continuable_type_error_with_frob): New.
11722         * eval.c (maybe_continuable_type_error_with_frob): New.
11723         New functions for use with structured errors.
11724
11725         * event-Xt.c:
11726         * event-Xt.c (x_event_to_emacs_event):
11727         Buttons are now modifiers too.
11728
11729         * event-Xt.c (emacs_Xt_current_event_timestamp):
11730         Implement new event method.
11731         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
11732
11733         * event-msw.c:
11734         * event-msw.c (ntpipe_shove_writer): [5].
11735         * event-msw.c (mswindows_enqueue_mouse_button_event):
11736         * event-msw.c (mswindows_drain_windows_queue):
11737         * event-msw.c (mswindows_wnd_proc): [7].
11738         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
11739         * event-msw.c (mswindows_modifier_state):
11740         Throughout: support new button modifiers.
11741
11742         * event-msw.c (emacs_mswindows_current_event_timestamp):
11743         Implement new event method.
11744         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
11745
11746         * event-stream.c:
11747         * event-stream.c (event_stream_current_event_timestamp): New.
11748         * event-stream.c (maybe_kbd_translate): New functionality.
11749         * event-stream.c (vars_of_event_stream):
11750         Document new kbd-translate-table functionality.
11751
11752         * event-stream.c (Fcurrent_event_timestamp): New.
11753         New primitive for use in fabricated events.
11754         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
11755
11756         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
11757
11758         * events.c:
11759         * events.c (Fmake_event):
11760         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
11761         [1].
11762         [9].
11763
11764         * events.c (format_event_object): fix gcc warnings.
11765
11766         * events.c (Fevent_timestamp): Document new primitives.
11767
11768         * events.c (TIMESTAMP_HALFSPACE): New.
11769
11770         * events.c (Fevent_timestamp_lessp): New.  New primitive for
11771         comparing timestamps correctly (half-space algorithm).
11772
11773         * events.c (Fevent_modifier_bits): Doc fix.
11774
11775         * events.c (Fevent_modifiers): Major doc addition.
11776         * events.c (event_x_y_pixel_internal): Typo fix.
11777         * events.c (syms_of_events): Declare new primitives.
11778
11779         * events.h:
11780         Update long comment for button modifiers, timestamps.
11781
11782         * events.h (struct event_stream):
11783         New current_event_timestamp method.
11784
11785         * extents.c:
11786         * extents.c (extent_in_region_p):
11787         * extents.c (decode_extent):
11788         * extents.c (Fset_extent_parent):
11789         * extents.c (decode_map_extents_flags):
11790         Fix gcc warnings.
11791         [9].
11792
11793         * extents.c (struct extent_at_arg):
11794         * extents.c (decode_extent_at_flag):
11795         * extents.c (extent_at_mapper):
11796         * extents.c (extent_at_bytind):
11797         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
11798         * extents.c (Fextents_at): New primitive. [9].
11799         * extents.c (symbol_to_glyph_layout): [9].
11800         Support new primitive `extents-at'.
11801
11802
11803         * extents.c (get_text_property_bytind):
11804         extent_at_bytind has another arg.
11805         [9].
11806
11807         * extents.c (syms_of_extents): New primitive.
11808
11809         * file-coding.c (Fmake_coding_system): [1].
11810         * file-coding.c (subsidiary_coding_system): fix gcc warning
11811         * file-coding.c (syms_of_file_coding): [2].
11812
11813         * fileio.c (Fexpand_file_name):
11814         * fileio.c (Fsysnetunam):
11815         * fileio.c (Ffile_exists_p):
11816         * fileio.c (Ffile_executable_p):
11817         * fileio.c (Fverify_visited_file_modtime):
11818         Clean up GCPROing.
11819
11820         * fileio.c (syms_of_fileio): [2].
11821
11822         * filelock.c (lock_file_1):
11823         * filelock.c (current_lock_owner):
11824         * filelock.c (lock_if_free):
11825         * filelock.c (lock_file):
11826         * filelock.c (unlock_file):
11827         Clean up GCPROing.
11828
11829         * fns.c (concat): Fix gcc warning.
11830
11831         * fns.c (Fmember):
11832         * fns.c (Fold_member):
11833         * fns.c (Fmemq):
11834         * fns.c (Fold_memq):
11835         * fns.c (memq_no_quit):
11836         * fns.c (Fassoc):
11837         * fns.c (Fold_assoc):
11838         * fns.c (Fassq):
11839         * fns.c (Fold_assq):
11840         * fns.c (assq_no_quit):
11841         * fns.c (Frassoc):
11842         * fns.c (Fold_rassoc):
11843         * fns.c (Frassq):
11844         * fns.c (Fold_rassq):
11845         * fns.c (rassq_no_quit):
11846         * fns.c (Fdelete):
11847         * fns.c (Fold_delete):
11848         * fns.c (Fdelq):
11849         * fns.c (Fold_delq):
11850         * fns.c (delq_no_quit):
11851         * fns.c (Fremassoc):
11852         * fns.c (Fremassq):
11853         * fns.c (remassq_no_quit):
11854         * fns.c (Fremrassoc):
11855         * fns.c (Fremrassq):
11856         * fns.c (remrassq_no_quit):
11857         * fns.c (Freverse):
11858         * fns.c (mapcar1):
11859         [1].
11860
11861         * frame-msw.c (mswindows_init_frame_1):
11862         * frame-msw.c (mswindows_delete_frame):
11863         Register popups with dialog code so keyboard traversing works.
11864
11865         * frame-tty.c (tty_raise_frame_no_select): [1].
11866
11867         * frame-x.c:
11868         * frame-x.c (x_set_frame_text_value):
11869         * frame-x.c (x_set_frame_properties):
11870         * frame-x.c (x_create_widgets):
11871         [7].
11872
11873         * frame.c:
11874         * frame.c (Fmouse_pixel_position): Minor doc fixes.
11875
11876         * frame.h (wrap_frame): New.
11877         Macro like wrap_device.
11878
11879         * general.c:
11880         * general.c (SYMBOL):
11881         * general.c (syms_of_general):
11882         Major reorg.  This is now just a wrapper and symbols themselves
11883         are listed in general-slots.h.
11884
11885         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
11886         * glyphs-msw.c (mswindows_resource_instantiate): [5].
11887
11888         * glyphs-msw.c (mswindows_native_layout_instantiate):
11889         Add DS_CONTROL so keyboard traversal will work.
11890
11891         * glyphs-widget.c:
11892         * glyphs-widget.c (syms_of_glyphs_widget):
11893         Move some symbols to general-slots.h.
11894
11895         * glyphs-x.c:
11896         * glyphs-x.c (xbm_instantiate_1):
11897         * glyphs-x.c (x_xbm_instantiate):
11898         * glyphs-x.c (x_xface_instantiate):
11899         * glyphs-x.c (autodetect_instantiate):
11900         * glyphs-x.c (cursor_font_instantiate):
11901         * glyphs-x.c (x_update_widget):
11902         * glyphs-x.c (x_widget_instantiate):
11903         * glyphs.c (bitmap_to_lisp_data):
11904         * glyphs.c (pixmap_to_lisp_data):
11905         [7].
11906
11907         * glyphs.c (syms_of_glyphs):
11908         [2].
11909
11910         * gui-x.c:
11911         * gui-x.c (print_widget_value):
11912         * gui-x.c (menu_separator_style_and_to_external):
11913         * gui-x.c (add_accel_and_to_external):
11914         * gui-x.c (button_item_to_widget_value):
11915         * gui-x.c (gui_items_to_widget_values_1):
11916         * gui-x.c (gui_items_to_widget_values):
11917         * gui-x.c (syms_of_gui_x):
11918         * gui-x.c (vars_of_gui_x):
11919         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
11920         [9].
11921
11922         * gui-x.h:
11923         Muleize, prototype changes matching gui-x.c.
11924
11925         * gui.c:
11926         * gui.c (separator_string_p):
11927         * gui.c (gui_item_add_keyval_pair):
11928         * gui.c (make_gui_item_from_keywords_internal):
11929         * gui.c (signal_too_long_error):
11930         * gui.c (parse_gui_item_tree_item):
11931         * gui.c (syms_of_gui):
11932         * gui.c (vars_of_gui):
11933         * gui.h:
11934         menu-no-selection-hook moved here (used by MSWin).
11935         Move some symbols to general-slots.h.
11936         [6].
11937         [9].
11938
11939         * insdel.c (get_buffer_pos_char):
11940         * insdel.c (get_buffer_range_char):
11941         Add GC comments.
11942
11943         * keymap.c (keymap_lookup_directly):
11944         * keymap.c (keymap_store):
11945         * keymap.c (ensure_meta_prefix_char_keymapp):
11946         * keymap.c (describe_map):
11947         * keymap.h:
11948         Support new button modifiers.
11949
11950         * lisp-disunion.h (wrap_object):
11951         * lisp-disunion.h (XSETOBJ):
11952         Rename make_obj to wrap_object.
11953
11954         * lisp-union.h:
11955         * lisp-union.h (make_int):
11956         * lisp-union.h (make_char):
11957         Support wrap_object.
11958
11959         * lisp.h:
11960         * lisp.h (LIST_LOOP):
11961         * lisp.h (EXTERNAL_LIST_LOOP):
11962         * lisp.h (LIST_LOOP_2):
11963         * lisp.h (EXTERNAL_LIST_LOOP_1):
11964         * lisp.h (EXTERNAL_LIST_LOOP_2):
11965         * lisp.h (EXTERNAL_LIST_LOOP_3):
11966         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
11967         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
11968         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
11969         * lisp.h (EXTERNAL_ALIST_LOOP_5):
11970         * lisp.h (EXTERNAL_ALIST_LOOP_6):
11971         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
11972         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
11973         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
11974         * lisp.h (struct Lisp_Symbol):
11975         * lisp.h (maybe_continuable_error_with_frob):
11976         Fix up section comments.
11977         Add new types for char to indicate usage.
11978         Delete symbols auto-generated from general-slots.h.
11979         Add prototypes for structured error functions.
11980         Add long comments describing looping macros and change interface
11981         so that lvalues are automatically declared.
11982         Add NO_DECLARE macro in case callers want to declare lvalues
11983         themselves.
11984
11985         * lread.c (read_syntax_error):
11986         * lread.c (continuable_read_syntax_error):
11987         * lread.c (read_structure):
11988         * lread.c (sequence_reader):
11989         * lread.c (read_list_conser):
11990         * lread.c (read_compiled_function):
11991         Rename syntax_error and continuable_syntax_error to avoid clash
11992         with same-named structured error functions.
11993
11994         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
11995         * menubar-msw.c (populate_menu_add_item):
11996         * menubar-msw.c (populate_or_checksum_helper):
11997         [5].
11998         [9].
11999
12000         * menubar-x.c:
12001         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
12002         Mule-ize whole file.
12003
12004         * menubar.c (Fnormalize_menu_item_name): Add optimization.
12005
12006         * mule-charset.c (Fmake_charset):
12007         * mule-wnnfns.c (Fwnn_set_param):
12008         [1].
12009
12010         * ntproc.c (create_child):
12011         * ntproc.c (Fwin32_set_current_locale):
12012         Add comments portending doom.
12013
12014         * objects-msw.c:
12015         * objects-msw.c (old_font_enum_callback_2):
12016         * objects-msw.c (font_enum_callback_1):
12017         * objects-msw.c (mswindows_enumerate_fonts):
12018         [5].
12019
12020         * objects-x.c:
12021         * objects-x.c (allocate_nearest_color):
12022         * objects-x.c (x_parse_nearest_color):
12023         * objects-x.c (x_initialize_color_instance):
12024         * objects-x.c (x_print_color_instance):
12025         * objects-x.c (x_finalize_color_instance):
12026         * objects-x.c (x_valid_color_name_p):
12027         * objects-x.c (x_initialize_font_instance):
12028         * objects-x.c (x_print_font_instance):
12029         * objects-x.c (valid_x_font_name_p):
12030         * objects-x.c (truename_via_FONT_prop):
12031         * objects-x.c (truename_via_random_props):
12032         * objects-x.c (truename_via_XListFonts):
12033         * objects-x.c (x_font_truename):
12034         * objects-x.c (x_font_instance_truename):
12035         * objects-x.c (x_font_instance_properties):
12036         * objects-x.c (x_list_fonts):
12037         * objects-x.c (x_find_charset_font):
12038         Mule-ize entire file.
12039         [7].
12040
12041         * objects-x.h:
12042         Mule-verify.
12043
12044         * print.c:
12045         * print.c (std_handle_out_external):
12046         * print.c (debug_print_no_newline):
12047         * print.c (syms_of_print):
12048         Output to all debugger kinds in debug-print.
12049         Fix console-output code under MSWin to actually work.
12050
12051         * process-nt.c (send_signal):
12052         * process-nt.c (nt_create_process):
12053         Use newer Unicode macros.
12054
12055         * process-unix.c (unix_create_process):
12056         * process-unix.c (unix_canonicalize_host_name):
12057         * process-unix.c (unix_open_network_stream):
12058         [7].
12059
12060         * scrollbar-x.c:
12061         Mule-verify.
12062
12063         * search.c (syms_of_search):
12064         [2].
12065
12066         * select-msw.c (mswindows_destroy_selection):
12067         Use LIST_LOOP_2.
12068
12069         * select-x.c (symbol_to_x_atom):
12070         [7].
12071
12072         * select.c (syms_of_select):
12073         [2].
12074
12075         * sound.c (Fplay_sound_file):
12076         [7].
12077
12078         * specifier.c:
12079         * specifier.c (decode_specifier_type):
12080         * specifier.c (Fvalid_specifier_locale_type_p):
12081         * specifier.c (check_valid_locale_or_locale_type):
12082         * specifier.c (decode_locale):
12083         * specifier.c (decode_locale_type):
12084         * specifier.c (decode_locale_list):
12085         * specifier.c (check_valid_domain):
12086         * specifier.c (decode_specifier_tag_set):
12087         * specifier.c (Fcanonicalize_tag_set):
12088         * specifier.c (Fdefine_specifier_tag):
12089         * specifier.c (Fspecifier_tag_predicate):
12090         * specifier.c (check_valid_inst_list):
12091         * specifier.c (check_valid_spec_list):
12092         * specifier.c (decode_how_to_add_specification):
12093         * specifier.c (check_modifiable_specifier):
12094         * specifier.c (specifier_add_spec):
12095         * specifier.c (boolean_validate):
12096         * specifier.c (display_table_validate):
12097         [9].
12098
12099         * specifier.c (syms_of_specifier):
12100         Move some symbols to general-slots.h.
12101         [2].
12102
12103         * symbols.c:
12104         * symbols.c (Fmapatoms):
12105         * symbols.c (Fapropos_internal):
12106         Add GCPROs.
12107
12108         * symbols.c (set_default_buffer_slot_variable):
12109         * symbols.c (set_default_console_slot_variable):
12110         [1].
12111
12112         * symbols.c (defsymbol_massage_name_1):
12113         * symbols.c (defkeyword_massage_name):
12114         * symbols.c (deferror_1):
12115         * symbols.c (deferror):
12116         * symbols.c (deferror_massage_name_and_message):
12117         * symeval.h:
12118         * symeval.h (DEFSYMBOL):
12119         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
12120
12121         * symbols.c (syms_of_symbols):
12122         [2].
12123
12124         * symsinit.h:
12125         * symsinit.h (init_win32): New.
12126         Also new is syms_of_dialog_mswindows.
12127
12128         * syswindows.h:
12129         Add new Unicode macros, missing Cygwin wide-char functions,
12130         convenience conversion macros for Qmswindows_tstr, macros for
12131         encapsulating required MSWin <-> Cygwin filename conversions,
12132         prototype for dynamically-extracted (not in NT 3.51) functions.
12133
12134         * toolbar-x.c:
12135         Mule-verify.
12136
12137         * tooltalk.c (Fadd_tooltalk_message_arg):
12138         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
12139         * tooltalk.c (Fadd_tooltalk_pattern_arg):
12140         [7].
12141
12142         * tooltalk.c (syms_of_tooltalk):
12143         [2].
12144
12145         * unexnt.c:
12146         * unexnt.c (unexec):
12147         Fix up headers, declaration of unexec() to be more standard.
12148
12149 2000-07-20  Martin Buchholz  <martin@xemacs.org>
12150
12151         * offix.h: Revert change to guard macros - they're used in offix.c!
12152
12153 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12154
12155         * lisp.h: Defsubred Fdelete.
12156
12157         * console-msw.h:  (msprinter_default_printer): Added.
12158
12159         * console-msw.c (msprinter_canonicalize_console_connection):
12160         (msprinter_canonicalize_device_connection): Added.
12161
12162         * device-msw.c (msprinter_default_printer):
12163         (Fmswingows_get_default_printer):
12164         (signal_enum_priner_error):
12165         (Fmswingows_printer_list): Added.
12166
12167 2000-07-19  Martin Buchholz <martin@xemacs.org>
12168
12169         * XEmacs 21.2.35 is released.
12170
12171 2000-07-19  Martin Buchholz  <martin@xemacs.org>
12172
12173         * select-x.c (x_handle_selection_request):
12174         Text selected in xemacs and pasted into xterm failed to appear.
12175         Spelling fixes and cosmetic changes.
12176
12177 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12178
12179         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
12180         XEmacs frame (fix for doubling chars in dialog boxes).
12181
12182 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
12183
12184         * select.c (select_convert_in, select_convert_out):
12185         Don't call intern() every time.
12186
12187         * select.c (Qselect_convert_in, Qselect_convert_out): New.
12188         * select.c (vars_of_select): Initialise them.
12189
12190 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
12191
12192         * select.c (selection-coercible-types): New.
12193
12194         * select.c (own-selection-internal):
12195         * select.c (get-selection-internal):
12196         MULE bug fix - these should default to COMPOUND_TEXT and not
12197         STRING for MULE. I think.
12198
12199         * select.c (select_convert_out): Use selection-coercible-types
12200         to find types that we can attempt to perform coercions on.
12201
12202 2000-07-18  Martin Buchholz  <martin@xemacs.org>
12203
12204         * mule-wnnfns.c:
12205         * mule-canna.c:
12206         Add coding: cookie to identify encoding.
12207
12208         * mule-canna.c (CANNA_mode_keys): make static.
12209         Use proper prototypes, even for functions of no arguments.
12210         Remove external prototype for Fding().
12211
12212         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
12213
12214         * select.c (syms_of_select): Add missing DEFSUBR.
12215
12216 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
12217
12218         * select.c (get_selection_internal, own_selection_internal):
12219         Make the type default to STRING, rather than placing a nil type
12220         into Vselection_alist.
12221
12222 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
12223
12224         * gpmevent.c (tty_selection_exists_p):
12225         * gpmevent.c (tty_own_selection):
12226         Updated parameter lists.
12227
12228 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
12229
12230         * select.h (selection-alist): Removed declaration.
12231
12232         * select.h (get_local_selection):
12233         * select.c (get_local_selection):
12234         Made static.
12235
12236         * select.h (convert_selection): Removed declaration.
12237         * select.c (convert_selection): Removed.
12238         This function belongs in Lisp.
12239
12240         * select.h (select_convert_in): Declare.
12241         * select.h (select_convert_out): Declare.
12242         * select.c (select_convert_in): New.
12243         * select.c (select_convert_out): New.
12244         New conversion functions for other files to call.
12245
12246         * select.h (select_notify_buffer_kill): Declare.
12247         * select.c (select_notify_buffer_kill): New.
12248         New functions that get called from kill-buffer.
12249
12250         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
12251         X-specific lisp code.
12252
12253         * select.h: Declare some of the lisp-visible functions for
12254         external use.
12255
12256         * select.c (clean_local_selection_data): Removed. This was
12257         a disgusting function, and previously should have been in
12258         select-x.c in any case. The functionality is now provided
12259         in select-convert-from-integer (select.el).
12260
12261         * select.c (available-selection-types): Fixed stupidity where
12262         INTEGER and ATOM got added twice. Also add STRING when we see an
12263         extent.
12264
12265         * select.c (get-selection-internal): Removed symbol stripping. No
12266         longer causes conversion when data comes from the internal cache.
12267
12268         * select.c (syms_of_select): Added new functions.
12269
12270         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
12271         error checking - previously this called abort!
12272
12273         * select-x.c (x_own_selection): Changed comment.
12274
12275         * select-x.c (x_handle_selection_request): Use select_convert_out.
12276         Don't mess with selection-alist; it's an internal variable of select.c.
12277
12278         * select-x.c (x_get_foreign_selection): Use select_convert_in.
12279
12280         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
12281         rather than messing with selection-alist.
12282
12283         * select-msw.c (mswindows_get_foreign_selection):
12284         Use TO_INTERNAL_FORMAT rather than hacking.
12285
12286 2000-07-14  Martin Buchholz  <martin@xemacs.org>
12287
12288         * process-unix.c (unix_open_multicast_group):
12289         (unix_open_multicast_group): Remove useless casts.
12290
12291 2000-07-13  Martin Buchholz  <martin@xemacs.org>
12292
12293         * sound.c (Fplay_sound): Fix `unused variable' warning.
12294
12295         * emacs.c (main): Use correct type for _environ on SCO5.
12296
12297 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
12298
12299         * console.h (own_selection_method):
12300         * console.h (selection_exists_p_method):
12301         * console.h (available_selection_types_method): New.
12302         * console.h (register_selection_data_type_method): New.
12303         * console.h (selection_data_type_name): New.
12304
12305         * console-msw.h (mswindows_destroy_selection): Declare it.  New
12306         function & alist to track GlobalAlloc()'d handles that need
12307         releasing when the clipboard data gets replaced or emptied.
12308
12309         * event-msw.c (mswindows_wnd_proc): Call it.
12310
12311         * lisp.h, general.c (Qappend): New symbol representing a
12312         `how-to-add' mode.
12313
12314         * select.c (own-selection-internal):
12315         * select.c (selection-exists-p):
12316         * select.c (available-selection-types): New.
12317         * select.c (register-selection-data-type): New.
12318         * select.c (selection-data-type-name): New.  New functions to deal
12319         with device-specific selection data formats.
12320         * select.c (selection-converter-out-alist): Renamed.
12321         * select.c (selection-converter-in-alist): New.
12322         * select.c (selection-appender-alist): New.  Added new alists.
12323         * select.c (syms_of_select, vars_of_select): Added new symbols &
12324         variables.
12325         * select.c (get_local_selection): Split.
12326         * select.c: Removed spurious type checking - selections may now be
12327         of any type, not just strings.
12328         * select.c (own-selection-internal):
12329
12330         * select.h, select.c (convert_selection): New. Created
12331         convert_selection() function based on get_local_selection().
12332         * select.h, select.c (QCF_*): New symbols representing mswindows
12333         clipboard formats.
12334         * select.h, select.c (Qreplace_all, Qreplace_existing): New
12335         symbols representing `how-to-add' modes.
12336
12337         * select-msw.c (x_sym_p): New.
12338         * select-msw.c (symbol_to_ms_cf): New.
12339         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
12340         symbols & clipboard formats. Can also handle string names.
12341         * select-msw.c (mswindows_own_selection):
12342         * select-msw.c (mswindows_selection_exists_p):
12343         Added `data-type' parameter. Use it.
12344         * select-msw.c (mswindows_available_selection_types): New.
12345         * select-msw.c (mswindows_register_selection_data_type): New.
12346         * select-msw.c (mswindows_selection_data_type_name): New.
12347         * select-msw.c (mswindows_own_selection):
12348         * select-msw.c (mswindows_get_foreign_selection):
12349         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
12350         * select-msw.c (console_create_select_mswindows): Added new methods.
12351         * select-msw.c (mswindows_destroy_selection): New.
12352         * select-msw.c (Vhandle_alist): New list.
12353         * select-msw.c (mswindows_own_selection):
12354
12355         * select-x.c (x_own_selection):
12356         * select-x.c (x_selection_exists_p):
12357         * select-x.c: Added some comments about maybe using new
12358         functionality.
12359         * select-x.c (x_own_selection):
12360
12361         * specifier.c: Remove definition of Qappend (now in general.c)
12362         * specifier.c (syms_of_specifier): Remove Qappend.
12363
12364 2000-07-12  Martin Buchholz  <martin@xemacs.org>
12365
12366         * config.h.in: Add socklen_t.
12367
12368         * s/decosf4-0.h: No special compiler flags needed or desired.
12369         In particular, undefine _BSD for DEC OSF 4.0.
12370
12371 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12372
12373         * redisplay-msw.c (msprinter_frame_output_end): Added.
12374         (console_type_create_redisplay_mswindows): Referred the above.
12375
12376         * frame.c (setup_frame_without_minibuffer): Do not create a
12377         default minibuffer frame on a printer device.
12378
12379         * frame-msw.c (apply_dc_geometry): Added.
12380         (msprinter_start_page):
12381         (msprinter_init_frame_3):
12382         (msprinter_eject_page): Use it.
12383
12384         * console-msw.h (struct msprinter_frame): Added pix_left and top,
12385         and removed residual duplex and orientation properties.
12386
12387 2000-07-11  Martin Buchholz  <martin@xemacs.org>
12388
12389         * eval.c (function_argcount): Work around a DEC CC compiler bug.
12390
12391         * unexalpha.c: Remove system prototypes from C sources!
12392
12393 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
12394
12395         * eval.c: Remove references to M-x edit-options in DEFUNs for
12396         `defvar' and `defconst'.
12397
12398 2000-07-09  Martin Buchholz  <martin@xemacs.org>
12399
12400         * config.h.in: Remove SMART_INCLUDE hackery.
12401
12402         PostgreSQL hacking:
12403         * config.h.in: Don't use SMART_INCLUDE.
12404
12405         * postgresql.h: Include libpq-fe.h here.  Fix typo.
12406         * inline.c: Simply #include "postgresql.h"
12407         * postgresql.c:
12408         - Don't use SMART_INCLUDE
12409         - Use simply "const".
12410         - Use standard doc string conventions.
12411         - Use correct type for result of PQstatus.
12412
12413 2000-07-09  Martin Buchholz  <martin@xemacs.org>
12414
12415         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
12416
12417         C++ compilation changes.
12418         * config.h.in (EXTERN_C): Define.
12419         * config.h.in (not): This is also a C++ keyword.
12420         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
12421         * cm.c: Use EXTERN_C.
12422         * redisplay-tty.c: Use EXTERN_C.
12423         * sysdep.c: Use EXTERN_C.  Remove Gould support.
12424
12425 2000-07-09  Martin Buchholz  <martin@xemacs.org>
12426
12427         * general.c: Remove duplicate definition for Qfunction.
12428
12429 2000-07-08  Ben Wing  <ben@xemacs.org>
12430
12431         * device-msw.c (msprinter_init_device):
12432         * device-msw.c (sync_printer_with_devmode):
12433         * device-msw.c (handle_devmode_changes):
12434         * device-msw.c (print_dialog_worker):
12435         * device-msw.c (Fmsprinter_apply_settings):
12436         * device-msw.c (hash_devmode):
12437         * device-msw.c (Fmsprinter_settings_despecialize):
12438         use Qmswindows_tstr, not Qctext.
12439
12440         * vm-limit.c (check_memory_limits):
12441         avoid infinite loop printing warning messages.
12442
12443 2000-07-05  Craig Lanning  <lanning@scra.org>
12444
12445         * Makefile.in.in: Add support for including the Windows resources
12446         when building with the cygwin and mingw targets.
12447
12448         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
12449         not set or not correct.
12450         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
12451         (init_initial_directory): Don't try to use $PWD on the
12452         WIN32_NATIVE target.
12453
12454         * s\cygwin32.h:
12455         [[Add -mwindows to eliminate console window.]] not required --ben
12456         (HAVE_NATIVE_SOUND): removed; now handled by configure.
12457         (MAIL_USE_POP): removed; now handled by configure.
12458
12459         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
12460         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
12461         (HAVE_NATIVE_SOUND): removed; now handled by configure.
12462         (MAIL_USE_POP): removed; now handled by configure.
12463         (ENCAPSULATE_STAT): from Dan Holmsand, added.
12464         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
12465         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
12466         constant string.
12467         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
12468         up from <winsock.h> via systime.h.
12469         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
12470         (getpagesize): from Dan Holmsand, added.
12471         Added #endif which was left dangling by Ben's mega patch; added
12472         comment to help prevent this in the future.
12473
12474         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
12475
12476 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12477
12478         * console-msw.h (struct mswindows_device): Removed unnecessary
12479         cached device geometry values.
12480         Added update_tick and an accessor macro.
12481         (Lisp_Devmode): Added lrecord declaration.
12482         (struct msprinter_device): Contain devmode as a Lisp object.
12483         Added mswindows_get_selected_frame_hwnd();
12484
12485         * console.h (struct console_methods): Indentation nitpicking.
12486
12487         * device-msw.c (mswindows_init_device): Do not initialize geometry
12488         cache. Initialize update tick.
12489         (mswindows_device_system_metrics): Ask the device for its geometry.
12490         (global_free_2_maybe):
12491         (devmode_to_hglobal):
12492         (handle_printer_changes):
12493         (ensure_not_printing):
12494         (print_dialog_worker):
12495         (Fmsprinter_print_setup_dialog):
12496         (Fmsprinter_print_dialog):
12497         (plist_get_margin):
12498         (plist_set_margin):
12499         (Fmsprinter_page_setup_dialog): Added functions.
12500         (sync_printer_with_devmode):
12501         (handle_devmode_changes):
12502         (Fmsprinter_get_settings):
12503         (Fmsprinter_select_settings):
12504         (Fmsprinter_apply_settings):
12505         (allocate_devmode):
12506         (Fmsprinter_settings_copy):
12507         (Fmsprinter_settings_despecialize):
12508         (print_devmode):
12509         (finalize_devmode):
12510         (equal_devmode):
12511         (hash_devmode): Added functions
12512         (syms_of_device_mswindows): Init devmode lrecord class.
12513
12514         * device.h: Added an exfun for find-device.
12515
12516         * event-msw.c (mswindows_wnd_proc): Do not update the cached
12517         geometry; although, recreate the device compatible DC.
12518
12519         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
12520         (msprinter_init_frame_3):
12521         (msprinter_frame_property):
12522         (msprinter_internal_frame_property_p):
12523         (msprinter_frame_properties):
12524         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
12525         print job properties (will move to device settings).
12526
12527         * lisp.h: Added symbols.
12528
12529         * general.c (syms_of_general): Declared them.
12530
12531         * hash.c (string_hash): Added.
12532
12533         * lrecord.h (lrecord_type): Added devmode lrecord type.
12534
12535 2000-07-02  Mike Sperber <mike@xemacs.org>
12536
12537         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
12538         FreeBSD 4.0.
12539
12540 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
12541
12542         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
12543         integer.
12544
12545 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
12546
12547         * data.c (Fstring_to_number): Don't recognize floating point if
12548         base is not 10.
12549
12550 2000-06-22  Martin Buchholz  <martin@xemacs.org>
12551
12552         * glyphs-widget.c (tab_control_query_geometry):
12553         (widget_query_geometry):
12554         (button_query_geometry):
12555         * glyphs.c (text_query_geometry):
12556         Enforce type correctness.
12557
12558 2000-06-18  Martin Buchholz  <martin@xemacs.org>
12559
12560         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
12561         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
12562
12563 2000-06-17  Martin Buchholz  <martin@xemacs.org>
12564
12565         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
12566         conflicts with gcc's fixincluded version of FOO.h.
12567
12568         * glyphs.h (image_instance_geometry): Remove trailing `,'
12569
12570 2000-06-08  Mike Alexander  <mta@arbortext.com>
12571
12572         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
12573         (shove_thread): Don't write the same output twice
12574         (make_ntpipe_output_stream): Increase priority of shove thread
12575         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
12576         chance to run
12577         (ntpipe_shove_closer): Don't delete the pipe until we're done with
12578         it.
12579
12580 2000-06-12  Ben Wing  <ben@xemacs.org>
12581
12582         * s\mingw32.h (sigset):
12583         * s\windowsnt.h (sigset):
12584         rename msw_ to mswindows_ for consistency with general convention.
12585
12586 2000-06-12  Ben Wing  <ben@xemacs.org>
12587
12588         * console-msw.c:
12589         * console-msw.c (mswindows_get_console_hwnd):
12590         * console-msw.c (mswindows_ensure_console_allocated):
12591         * console-msw.c (mswindows_hide_console):
12592         * console-msw.c (mswindows_show_console):
12593         * console-msw.c (mswindows_ensure_console_buffered):
12594         * console-msw.c (mswindows_output_console_string):
12595         * console-msw.c (mswindows_windows9x_p):
12596         * console-msw.h:
12597         * device-msw.c (mswindows_get_workspace_coords):
12598         * device-msw.c (mswindows_device_system_metrics):
12599         * dialog-msw.c (mswindows_popup_dialog_box):
12600         * event-msw.c (mswindows_wnd_proc):
12601         * frame-msw.c (mswindows_size_frame_internal):
12602         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
12603         * menubar-msw.c (displayable_menu_item):
12604         * menubar-msw.c (mswindows_char_is_accelerator):
12605         * nt.c:
12606         * nt.c (mswindows_sigset):
12607         * nt.c (mswindows_sigrelse):
12608         * nt.c (mswindows_sigpause):
12609         * nt.c (mswindows_raise):
12610         * nt.c (timer_proc):
12611         * ntproc.c:
12612         * ntproc.c (find_child_console):
12613         * ntproc.c (sys_kill):
12614         * print.c:
12615         * print.c (std_handle_out_external):
12616         * process-nt.c (find_child_console):
12617         * process-nt.c (send_signal_the_95_way):
12618         * process-nt.c (ensure_console_window_exists):
12619         * process-nt.c (nt_create_process):
12620         * syssignal.h:
12621         rename msw_ to mswindows_ for consistency with general convention.
12622
12623         * emacs.c:
12624         * dumper.c:
12625         include nt.h, not syswindows.h.
12626
12627         * nt.c (mswindows_fstat):
12628         * nt.c (mswindows_stat):
12629         prefix mswindows_ instead of attempting to directly override the
12630         library functions.  fix declarations.
12631
12632         * nt.h:
12633         include syswindows.h.  move some sysdep.h stuff here.
12634
12635         * ntheap.h:
12636         include syswindows.h, not <windows.h>.
12637
12638         * ntplay.c:
12639         clean up headers.
12640
12641         * sysdep.c:
12642         clean up headers.
12643
12644         * sysdep.c (sys_fstat):
12645         * sysdep.c (sys_stat):
12646         call mswindows versions when appropriate.
12647
12648         * sysdep.h:
12649         move mswin decls to nt.h.
12650
12651         * syswindows.h:
12652         add long comment describing appropriate use of the various windows
12653         headers.
12654
12655 2000-06-11  Ben Wing  <ben@xemacs.org>
12656
12657         * device-x.c: Correct doc string for sixth arg of x-get-resource.
12658
12659 2000-06-10  Ben Wing  <ben@xemacs.org>
12660
12661         * Makefile.in.in (release):
12662         Correction to make sure xemacs.exe always dumped when correct.
12663
12664         * alloca.c:
12665         * balloon_help.c:
12666         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
12667
12668         * buffer.c (set_buffer_internal):
12669         [[[[2]]]]: Remove HAVE_FEP code.
12670
12671         * buffer.c (init_initial_directory):
12672         [3].
12673
12674         * bytecode.c:
12675         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
12676         individual files.
12677
12678         * callproc.c:
12679         * callproc.c (call_process_cleanup):
12680         * callproc.c (Fold_call_process_internal):
12681         * callproc.c (child_setup):
12682         * callproc.c (getenv_internal):
12683         * callproc.c (init_callproc):
12684         * callproc.c (vars_of_callproc):
12685         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
12686         __CYGWIN32__ -> CYGWIN.
12687         DOS_NT -> WIN32_NATIVE.
12688         Remove MSDOS support/references, converting to WIN32_NATIVE
12689           where correct.
12690         __MINGW32__ -> MINGW.
12691         Fix windows.h includes.
12692         Remove bogus HAVE_NTGUI.
12693
12694         * config.h.in:
12695         [2].
12696
12697         * console-msw.c:
12698         mswindows_message_outputted added for use in allowing startup
12699         errors on the console to be seen.
12700
12701         * console-msw.c (msw_ensure_console_allocated):
12702         * console-msw.c (msw_output_console_string):
12703         * console-msw.c (DHEADER):
12704         * console-msw.c (DOPAQUE_DATA):
12705         * console-msw.c (DEVENT):
12706         * console-msw.c (DCONS):
12707         * console-msw.c (DCONSCDR):
12708         * console-msw.c (DSTRING):
12709         * console-msw.c (DVECTOR):
12710         * console-msw.c (DSYMBOL):
12711         * console-msw.c (DSYMNAME):
12712         Fix warnings.
12713
12714         * console-stream.c (stream_init_console):
12715         Fix text/binary problems.
12716
12717         * device-msw.c:
12718         * device-msw.c (mswindows_finish_init_device):
12719         * device-msw.c (mswindows_delete_device):
12720         [1].
12721
12722         * device.c (handle_asynch_device_change):
12723         [3].
12724
12725         * dgif_lib.c:
12726         * dgif_lib.c (DGifOpenFileName):
12727         * dgif_lib.c (DGifOpenFileHandle):
12728         * dgif_lib.c (DGifGetLine):
12729         * dgif_lib.c (DGifGetPixel):
12730         Added config.h/lisp.h, fix up includes.
12731         [1].
12732
12733         * dired-msw.c:
12734         [4].
12735
12736         * dired.c:
12737         * dired.c (file_name_completion):
12738         * dired.c (Ffile_attributes):
12739         * dired.c (syms_of_dired):
12740         [1].
12741
12742         * dumper.c:
12743         * dumper.c (pdump_file_unmap):
12744         * dumper.c (pdump_load):
12745         [1].
12746
12747         * editfns.c:
12748         * editfns.c (Ftemp_directory):
12749         * editfns.c (user_login_name):
12750         * editfns.c (Fuser_real_login_name):
12751         * editfns.c (get_home_directory):
12752         [1].
12753
12754         * elhash.c (finish_marking_weak_hash_tables):
12755         [[[[5]]]]: Fix GCC warnings.
12756
12757         * emacs.c:
12758         * emacs.c (mswindows_handle_hardware_exceptions):
12759         * emacs.c (make_arg_list_1):
12760         * emacs.c (main_1):
12761         * emacs.c (Fkill_emacs):
12762         * emacs.c (Fdump_emacs):
12763         [1].
12764         Fix problems with nested crashes, add long comment.
12765
12766         * event-Xt.c (init_event_Xt_late):
12767         [1].
12768
12769         * event-msw.c:
12770         * event-msw.c (mswindows_dde_callback):
12771         * event-msw.c (mswindows_handle_sticky_modifiers):
12772         * event-msw.c (mswindows_wnd_proc):
12773         [1].
12774         [5].
12775
12776         * events.c (character_to_event):
12777         [1].
12778
12779         * fileio.c:
12780         * fileio.c (Ffile_name_directory):
12781         * fileio.c (Ffile_name_nondirectory):
12782         * fileio.c (directory_file_name):
12783         * fileio.c (Fexpand_file_name):
12784         * fileio.c (Fsubstitute_in_file_name):
12785         * fileio.c (Ffile_name_absolute_p):
12786         * fileio.c (check_executable):
12787         * fileio.c (Ffile_readable_p):
12788         * fileio.c (Ffile_accessible_directory_p):
12789         * fileio.c (Ffile_modes):
12790         * fileio.c (Funix_sync):
12791         * fileio.c (vars_of_fileio):
12792         [1]. [4].
12793
12794         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
12795
12796         Expand getdefdir defn.
12797         Fix bogus rename() comment.
12798
12799         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
12800         to use standard XEmacs include files, e.g. sysfile.h, rather
12801         than system-specific includes.
12802
12803         * fns.c:
12804         * fns.c (Fsubseq):
12805         [5]. [6].
12806
12807         * frame.c (vars_of_frame):
12808         [1].
12809
12810         * getloadavg.c:
12811         * getloadavg.c (getloadavg):
12812         [1]. [6].
12813         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
12814         (We don't use it elsewhere in the code; just add a comment.)
12815
12816         * gif_io.c:
12817         [6].
12818         Add config.h.
12819
12820         * glyphs-msw.c:
12821         * glyphs-msw.c (mswindows_resource_instantiate):
12822         [1].
12823
12824         * glyphs-x.c (x_native_layout_instantiate):
12825         [5].
12826
12827         * gui-msw.c (Fmswindows_shell_execute):
12828         [1].
12829
12830         * insdel.c:
12831         [4].
12832
12833         * lisp.h:
12834         [4]. [5].
12835
12836         * lread.c (locate_file_in_directory_mapper):
12837         [1].
12838
12839         * lstream.c:
12840         [4].
12841
12842         * mem-limits.h:
12843         * mem-limits.h (get_lim_data):
12844         [1].
12845
12846         * menubar-msw.c:
12847         [4].
12848
12849         * ndir.h:
12850         [1].
12851
12852         * nt.c:
12853         * nt.c (getwd):
12854         * nt.c (closedir):
12855         * nt.c (rva_to_section):
12856         * nt.c (mswindows_executable_type):
12857         [1]. [6].
12858         Fix closedir() defn.
12859
12860         * nt.h:
12861         [[[[8]]]]: *_OK defs moved to sysfile.h.
12862
12863         * ntproc.c:
12864         [6]. [7].
12865
12866         * objects-x.c:
12867         [4].
12868
12869         * print.c:
12870         * print.c (std_handle_out_external):
12871         [1]. [4].
12872
12873         * process-nt.c:
12874         * process-nt.c (nt_create_process):
12875         [6].
12876         try to fix process quoting somewhat.
12877
12878         * process-unix.c (unix_create_process):
12879         [1].
12880
12881         * process.c:
12882         * process.c (vars_of_process):
12883         Add Vnull_device.
12884
12885         * process.h:
12886         [1].
12887
12888         * realpath.c:
12889         * realpath.c (xrealpath):
12890         [1].
12891
12892         * redisplay-tty.c (init_tty_for_redisplay):
12893         [3].
12894
12895         * redisplay.c:
12896         [4]. [6].
12897
12898         * scrollbar-msw.c:
12899         [4].
12900
12901         * sheap.c:
12902         * sheap.c (more_static_core):
12903         * sheap.c (report_sheap_usage):
12904         [5]. [6].
12905
12906         * signal.c:
12907         * signal.c (alarm_signal):
12908         [1]. [6].
12909
12910         * sound.c:
12911         [6].
12912
12913         * strftime.c:
12914         * strftime.c (zone_name):
12915         [1]. [5].
12916
12917         * symsinit.h (init_sunpro):
12918         [1].
12919
12920         * syscommctrl.h:
12921         commctrl.h not in Cygwin b20.1.
12922
12923         * sysdep.c:
12924         * sysdep.c (endif):
12925         * sysdep.c (sys_subshell):
12926         * sysdep.c (init_baud_rate):
12927         * sysdep.c (emacs_get_tty):
12928         * sysdep.c (emacs_set_tty):
12929         * sysdep.c (tty_init_sys_modes_on_device):
12930         * sysdep.c (init_system_name):
12931         * sysdep.c (sys_open):
12932         * sysdep.c (interruptible_open):
12933         * sysdep.c (sys_fopen):
12934         * sysdep.c (sys_mkdir):
12935         * sysdep.c (sys_rename):
12936         * sysdep.c (get_process_times_1):
12937         [1]. [6].
12938
12939         * sysdep.h:
12940         [1].
12941
12942         * sysdir.h:
12943         * sysdir.h (DIRENTRY_NONEMPTY):
12944         [1]. [6].
12945
12946         * sysdll.c (dll_init):
12947         * sysdll.h:
12948         [1].
12949
12950         * sysfile.h:
12951         [1]. [6]. [8].
12952         added text/binary defs.
12953
12954         * sysfloat.h:
12955         [1].
12956
12957         * sysproc.h:
12958         * sysproc.h (EDESTADDRREQ):
12959         * sysproc.h (poll_fds_for_input):
12960         [1]. [6].
12961
12962         * syspwd.h:
12963         [6].
12964
12965         * syssignal.h:
12966         [1].
12967
12968         * systime.h:
12969         [1]. [6].
12970
12971         * systty.h:
12972         [1].
12973
12974         * syswindows.h:
12975         [1].
12976         Always define WIN32_LEAN_AND_MEAN.
12977
12978         * unexcw.c (unexec):
12979         [5].
12980
12981         * unexec.c:
12982         * unexec.c (copy_text_and_data):
12983         * unexec.c (adjust_lnnoptrs):
12984         [1].
12985
12986         * unexnt.c:
12987         * unexnt.c (_start):
12988         [1].
12989
12990 2000-06-07  Ben Wing  <ben@xemacs.org>
12991
12992         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
12993         was used only as a model.  We've long since extracted any useful
12994         logic or code out of this. (I just did an exhaustive search.)
12995
12996         * s\msdos.h: Removed.
12997
12998         * s\windows95.h: Removed.
12999
13000 2000-06-10  Ben Wing  <ben@xemacs.org>
13001
13002         * s\cygwin32.h:
13003         [1]. [5].
13004         Don't use extern with fun defs.
13005
13006         * s\mingw32.h:
13007         [1]. [7].
13008         Remove nt\inc include.
13009         Remove getdisk, getdefdir. (The former is unused, the latter
13010         expanded in fileio.h.)
13011
13012         * s\windowsnt.h:
13013         * s\windowsnt.h (WIN32_NATIVE):
13014         * s\windowsnt.h (HAVE_STRCASECMP):
13015         [1]. [7].
13016         Add long comment about preprocessor changes.
13017         Remove getdisk, getdefdir. (The former is unused, the latter
13018         expanded in fileio.h.)
13019
13020 2000-06-10  Ben Wing  <ben@xemacs.org>
13021
13022         * m\arm.h:
13023         * m\delta.h:
13024         * m\intel386.h:
13025         * m\sequent.h:
13026         * m\template.h:
13027         * m\windowsnt.h:
13028         [1].
13029         Remove bogus/unused NO_SOCK_SIGIO.
13030
13031 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
13032
13033         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
13034         not an Emchar.
13035
13036 2000-06-04  Mike Sperber <mike@xemacs.org>
13037
13038         * casetab.c (set_case_table): For `set-standard-case-table',
13039         actually deposit the new case tables where the rest of XEmacs can
13040         see them.
13041
13042 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
13043
13044         * data.c (Faset): Don't cast XCHAR() to unsigned char.
13045
13046 2000-06-05  Ben Wing  <ben@xemacs.org>
13047
13048         * callproc.c (child_setup): Don't do close_load_descs() under
13049         MS Windows.  Put in a comment explaining why.
13050
13051 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
13052
13053         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
13054         Toolkit shell" which breaks `kill-compilation' on Windows NT
13055         native, retaining STDERR handling improvements.
13056
13057 2000-06-01  Andreas Jaeger  <aj@suse.de>
13058
13059         * s/s390.h: Support for S390, based on a patch by Martin
13060         Schwidefsky <schwidefsky@de.ibm.com>.
13061
13062 2000-05-30  Andy Piper  <andy@xemacs.org>
13063
13064         * window.c (allocate_window):
13065         (make_dummy_parent):
13066         (Fset_window_configuration): use new hashtable type.
13067
13068         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
13069         (struct image_instantiator_methods):
13070         (struct Lisp_Image_Instance): make instance geometry signed.
13071
13072         * glyphs.c (instantiate_image_instantiator):
13073         (image_instance_query_geometry):
13074         (image_instance_layout):
13075         (image_instance_layout):
13076         (query_string_geometry):
13077         (text_query_geometry):
13078         (image_instantiate):
13079         (image_instantiate):
13080         (cache_subwindow_instance_in_frame_maybe):
13081         (subwindow_query_geometry): make instance geometry signed.
13082
13083         * glyphs-widget.c (widget_query_geometry):
13084         (widget_layout):
13085         (button_query_geometry):
13086         (tree_view_query_geometry):
13087         (tab_control_query_geometry):
13088         (layout_query_geometry):
13089         (layout_layout):
13090         (native_layout_layout): make instance geometry signed.
13091
13092 2000-05-29  Olivier Galibert  <galibert@pobox.com>
13093
13094         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
13095         constant.
13096
13097         * general.c (syms_of_general): Add Qfull_assoc symbol.
13098
13099         * data.c (finish_marking_weak_lists): Mark full-assoc lists
13100         correctly.
13101         (decode_weak_list_type): Decode full-assoc type.
13102         (encode_weak_list_type): Encode full-assoc type.
13103         (Fmake_weak_list): Update doc string.
13104
13105 2000-05-30  Andy Piper  <andy@xemacs.org>
13106
13107         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
13108
13109         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
13110         (decode_hash_table_weakness): ditto.
13111         (Fhash_table_weakness): ditto.
13112         (Fhash_table_type): ditto.
13113         (finish_marking_weak_hash_tables): ditto.
13114         (hash_table_weakness_validate): ditto.
13115         (syms_of_elhash): ditto.
13116
13117 2000-05-28  Martin Buchholz <martin@xemacs.org>
13118
13119         * XEmacs 21.2.34 is released.
13120
13121 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
13122
13123         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
13124         start cache.
13125         (updating_line_start_cache): Gone.
13126         (regenerate_window): Replace resetting of VERTICAL_CLIP by
13127         generic code to force a minimum of 1 line laid out in the
13128         CMOTION_DISP case.
13129
13130 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
13131
13132         * glyphs.c (instantiate_image_instantiator): Check for initialized
13133         height & width no longer special cases IMAGE_NOTHING.
13134         (nothing_instantiate): Set height and width of instance.
13135
13136 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
13137
13138         * unexelf.c (unexec): Search for ".data" section.
13139         Initialize new_data2_offset from old_data_index.
13140         Remove redundant check for ElfW.
13141
13142 2000-05-23  Andy Piper  <andy@xemacs.org>
13143
13144         * glyphs.c (get_image_instantiator_governing_domain): allow more
13145         specific domains as the governing domain rather than expecting an
13146         exact match. This fixes problems with layouts.
13147
13148 2000-05-22  Andy Piper  <andy@xemacs.org>
13149
13150         * redisplay-output.c (compare_runes): check for non-images
13151
13152         * glyphs.c (set_glyph_dirty_p): ditto.
13153         (update_glyph_cachel_data): ditto.
13154
13155         * glyphs-widget.c (layout_post_instantiate): ditto.
13156         (layout_post_instantiate): ditto.
13157
13158         * event-msw.c (mswindows_wnd_proc): warning removal.
13159
13160 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
13161
13162         * s\mingw32.h: Added #undef for CLASH_DETECTION.
13163
13164         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
13165
13166         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
13167
13168         * nt.c (rva_to_section): mingw32 needs rva_to_section.
13169         (mswindows_executable_type): mingw32 now has enough headers for
13170         this to work.
13171
13172 2000-05-20  Andy Piper  <andy@xemacs.org>
13173
13174         * console-msw.c (mswindows_output_last_error): ; -> ,
13175
13176 2000-05-12  Andy Piper  <andy@xemacs.org>
13177
13178         * console-msw.c (FROB): compare ints with ints.
13179
13180 2000-05-11  Andy Piper  <andy@xemacs.org>
13181
13182         * glyphs-x.c (x_finalize_image_instance): make minimal build
13183         happy.
13184
13185 2000-05-20  Ben Wing  <ben@xemacs.org>
13186
13187         * event-Xt.c:
13188         * event-Xt.c (vars_of_event_Xt):
13189         move modifier-keys-are-sticky to event-stream.c.
13190
13191         * event-msw.c:
13192         * event-msw.c (mswindows_enqueue_mouse_button_event):
13193         * event-msw.c (key_needs_default_processing_p):
13194         * event-msw.c (XEMSW_LCONTROL):
13195         * event-msw.c (mswindows_handle_sticky_modifiers):
13196         * event-msw.c (FROB):
13197         * event-msw.c (clear_sticky_modifiers):
13198         * event-msw.c (output_modifier_keyboard_state):
13199         * event-msw.c (output_alt_keyboard_state):
13200         * event-msw.c (mswindows_wnd_proc):
13201         * event-msw.c (mswindows_modifier_state):
13202         * event-msw.c (emacs_mswindows_handle_magic_event):
13203         implement sticky modifiers.
13204
13205         * event-stream.c:
13206         * event-stream.c (vars_of_event_stream):
13207         move modifier-keys-are-sticky here.
13208
13209         * lisp.h:
13210         add CHECK_FUNCTION.
13211
13212         * rangetab.c:
13213         implement map-range-table.
13214
13215
13216 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
13217
13218         * redisplay-tty.c (reset_tty_modes):
13219         (tty_redisplay_shutdown): Adjust argument type to
13220         tty_frame_output_end.
13221
13222 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
13223
13224         * eval.c (Fbacktrace): Don't output a line with only right
13225         parenthesis.
13226
13227 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
13228
13229         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
13230         (Fpq_reset_poll): Ditto.
13231
13232 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
13233
13234         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
13235
13236 2000-05-16  Ben Wing  <ben@xemacs.org>
13237
13238         * buffer.c:
13239         * buffer.c (dfc_convert_to/from_internal_format):
13240         * buffer.c (reinit_vars_of_buffer):
13241         Fix conversion functions to allow reentrancy.
13242
13243         * console-msw.c:
13244         * console-msw.c (mswindows_output_last_error):
13245         New fun, generally useful -- output a human-readable
13246         version of GetLastError() on the console.
13247
13248         * console-msw.h:
13249         * console-msw.h (struct mswindows_frame):
13250         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
13251
13252         * console-stream.c (stream_output_begin):
13253         * console-stream.c (stream_output_end):
13254         * console-stream.c (stream_output_vertical_divider):
13255         * console-stream.c (stream_clear_region):
13256         * console-stream.c (stream_flash):
13257         * console-stream.c (console_type_create_stream):
13258         Delete blank stream methods, not needed.
13259
13260         * console.h (struct console_methods):
13261         Split begin/end methods into window and frame.
13262
13263         * event-msw.c:
13264         * event-msw.c (mswindows_handle_paint):
13265         * event-msw.c (output_alt_keyboard_state):
13266         * event-msw.c (mswindows_wnd_proc):
13267         * event-msw.c (vars_of_event_mswindows):
13268         Comment about problems with ignored-expose.
13269         Define mswindows-debug-events; not really implemented.
13270
13271         * frame-msw.c (mswindows_init_frame_1):
13272         random cleanups.
13273
13274         * glyphs-msw.c:
13275         * glyphs-msw.c (begin_defer_window_pos):
13276         * glyphs-msw.c (mswindows_unmap_subwindow):
13277         * glyphs-msw.c (mswindows_map_subwindow):
13278         * glyphs-msw.c (mswindows_resize_subwindow):
13279         Use DeferWindowPos to reduce flashing when mapping/unmapping.
13280
13281         * glyphs.c (make_image_instance_1):
13282         Fix crash.
13283
13284         * gutter.c (Fredisplay_gutter_area):
13285         Use new begin/end methods.
13286
13287         * lisp.h (Dynarr_new2):
13288         New creation fun.
13289
13290         * redisplay-msw.c:
13291         * redisplay-msw.c (mswindows_frame_output_begin):
13292         * redisplay-msw.c (mswindows_frame_output_end):
13293         * redisplay-msw.c (console_type_create_redisplay_mswindows):
13294         New begin/end methods -- handle DeferWindowPos.
13295
13296         * redisplay-output.c (redisplay_move_cursor):
13297         * redisplay-output.c (redraw_cursor_in_window):
13298         * redisplay-output.c (redisplay_update_line):
13299         * redisplay-output.c (redisplay_output_window):
13300         New begin/end methods.
13301
13302         * redisplay-tty.c:
13303         * redisplay-tty.c (tty_frame_output_begin):
13304         * redisplay-tty.c (tty_frame_output_end):
13305         * redisplay-tty.c (console_type_create_redisplay_tty):
13306         New begin/end methods.
13307
13308         * redisplay-x.c:
13309         * redisplay-x.c (x_window_output_begin):
13310         * redisplay-x.c (x_window_output_end):
13311         * redisplay-x.c (console_type_create_redisplay_x):
13312         New begin/end methods.
13313
13314         * redisplay.c (redisplay_frame):
13315         * redisplay.c (Fredisplay_echo_area):
13316         New begin/end methods.
13317         use MAYBE_DEVMETH for clear_frame; it may not exist.
13318
13319         * window.h (WINDOW_XFRAME):
13320         WINDOW_XFOO macros -- get locale and decode struct pointer.
13321
13322
13323 2000-05-12  Ben Wing  <ben@xemacs.org>
13324
13325         * emacs.c:
13326         * emacs.c (ensure_no_quitting_from_now_on):
13327         * emacs.c (fatal_error_signal):
13328         * emacs.c (mswindows_handle_hardware_exceptions):
13329         * emacs.c (main):
13330         * emacs.c (Fkill_emacs):
13331         * emacs.c (shut_down_emacs):
13332         * emacs.c (assert_failed):
13333         various improvements in fatal error handling.
13334
13335         * eval.c:
13336         move preparing_for_armageddon to emacs.c.
13337
13338         * lisp.h:
13339         declare fatal_error_in_progress.
13340
13341         * print.c:
13342         * print.c (std_handle_out_external):
13343         * print.c (std_handle_out_va):
13344         * print.c (stderr_out):
13345         * print.c (stdout_out):
13346         use console under mswin when no standard output.
13347         don't do code conversion during fatal error.
13348
13349         * scrollbar.c (Fscrollbar_page_up):
13350         * scrollbar.c (Fscrollbar_page_down):
13351         fix missing else.  reindent.
13352
13353 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
13354
13355         Emergency fix.
13356
13357         * glyphs.h (GLYPH_CACHEL_DESCENT):
13358         (GLYPH_CACHEL_DESCENT):
13359         (GLYPH_CACHEL_DESCENT):
13360         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
13361         used in case these are inline functions.
13362         Use more absurd values to error check.
13363
13364         include window.h for error check functions.
13365
13366 2000-05-11  Ben Wing  <ben@xemacs.org>
13367
13368         * cmdloop.c (Freally_early_error_handler):
13369         Display message box under windows; otherwise, message will disappear
13370         before it can be viewed.
13371
13372         * console-msw.c:
13373         * console-msw.c (Fmswindows_message_box):
13374         * console-msw.c (FROB):
13375         * console-msw.c (syms_of_console_mswindows):
13376         Define new fun `mswindows-message-box'.
13377         #### I will merge this into `popup-dialog-box'; just give me
13378         a bit of time.
13379
13380         * general.c:
13381         * general.c (syms_of_general):
13382         Some new symbols used in `mswindows-message-box'.
13383
13384         * glyphs.c:
13385         * glyphs.c (Fset_image_instance_property):
13386         put warning in this fun.
13387
13388         * glyphs.h:
13389         * glyphs.h (GLYPH_CACHEL_WIDTH):
13390         * glyphs.h (GLYPH_CACHEL_ASCENT):
13391         * glyphs.h (GLYPH_CACHEL):
13392         * glyphs.h (GLYPH_CACHEL_GLYPH):
13393         define error-checking versions to try to catch a bug i've seen --
13394         redisplay gets in an infinite loop because the glyph width of the
13395         continuation glyph is 65535.
13396
13397         * lisp.h:
13398         Extern message-box stuff.
13399
13400         * window.c (allocate_window):
13401         * window.c (make_dummy_parent):
13402         * window.c (Fset_window_configuration):
13403         Use EQUAL not EQ for subwindow caches to make them work a bit
13404         better. (Something is still very broken.)
13405
13406
13407 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
13408
13409         * glyphs.c (image_instantiate): Suppress gcc warnings.
13410         (Fmake_image_instance): Fix doc string.
13411         * specifier.c (Fmake_specifier): Ditto.
13412
13413 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
13414
13415         * paths.h.in (PATH_LOCK): Removed.
13416         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
13417         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
13418
13419 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
13420
13421         * fns.c (Ffeaturep): Update e-mail address in doc-string.
13422         Document (featurep '(and xemacs 21.02)).
13423
13424 2000-05-09  Ben Wing  <ben@xemacs.org>
13425
13426         * buffer.c (complex_vars_of_buffer):
13427         update modeline-format doc.
13428
13429         * device.h:
13430         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
13431
13432         * emacs.c:
13433         timeline of all released versions of Emacs, for use in creating
13434         authorship comments and in synching up.
13435
13436         * glyphs-widget.c (image_instantiator_buttons):
13437         * glyphs-widget.c (image_instantiator_edit_fields):
13438         * glyphs-widget.c (image_instantiator_combo_box):
13439         * glyphs-widget.c (image_instantiator_scrollbar):
13440         * glyphs-widget.c (image_instantiator_progress_guage):
13441         * glyphs-widget.c (image_instantiator_tree_view):
13442         * glyphs-widget.c (image_instantiator_tab_control):
13443         * glyphs-widget.c (image_instantiator_labels):
13444         * glyphs-widget.c (image_instantiator_layout):
13445         * glyphs-widget.c (image_instantiator_native_layout):
13446         rename decode_domain method to governing_domain.
13447
13448         * glyphs.c:
13449         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
13450         * glyphs.c (add_entry_to_device_ii_format_list):
13451         make sure we don't put an entry more than once into the list.
13452         * glyphs.c (check_instance_cache_mapper):
13453         *************************************************************
13454         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
13455         HAVE BEEN GETTING.
13456         *************************************************************
13457         * glyphs.c (get_image_instantiator_governing_domain):
13458         clean up, expand on new concept of governing domain.
13459         * glyphs.c (instantiate_image_instantiator):
13460         * glyphs.c (allocate_image_instance):
13461         use governing_domain instead of cache_domain in naming.
13462         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
13463         * glyphs.c (make_image_instance_1):
13464         * glyphs.c (Fmake_image_instance):
13465         allow for any domain (not just device), and process the
13466         governing domain correctly.  very big doc fix.
13467         * glyphs.c (Fimage_instance_domain):
13468         new primitive, to retrieve the governing domain of an image instance.
13469         * glyphs.c (image_instantiate):
13470         use new governing_domain stuff.  this fixes a crash you could get
13471         by instantiating certain widget glyphs in frame locales. (should
13472         signal an error instead of crashing.)
13473         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
13474         * glyphs.c (Fglyphp): clean up doc.
13475         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
13476         * glyphs.c (syms_of_glyphs):
13477         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
13478         * glyphs.c (image_instantiator_format_create): add some comments about
13479         bogus code.
13480         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
13481         for current-display-table. (Apparently Hrjove implemented in 1998 a
13482         design I wrote up in 1996, but didn't update the doc string.)
13483
13484         * glyphs.h: clean up a doc string.
13485         * glyphs.h (governing_domain):
13486         * glyphs.h (struct image_instantiator_methods):
13487         changes for governing_domain stuff.
13488
13489         * gutter.c:
13490         * gutter.c (Fgutter_specifier_p):
13491         * gutter.c (Fgutter_size_specifier_p):
13492         * gutter.c (Fgutter_visible_specifier_p):
13493         * objects.c:
13494         * objects.c (Fcolor_specifier_p):
13495         * objects.c (Ffont_specifier_p):
13496         * objects.c (Fface_boolean_specifier_p):
13497         doc strings moved to make-*-specifier.
13498
13499         * redisplay.c (add_disp_table_entry_runes_1):
13500         * redisplay.c (generate_fstring_runes):
13501         * redisplay.c (screen):
13502         add random comments and doc strings.
13503
13504         * specifier.c:
13505         * specifier.c (Fmake_specifier):
13506         major overhaul of this doc string.
13507
13508         * specifier.c (Fvalid_specifier_domain_p):
13509         comment about the bogosity of image instances being domains.
13510         * specifier.c (decode_domain):
13511         now non-static, used in glyphs.c.
13512         * specifier.c (specifier_instance):
13513         comment about the bogosity of image instances being domains.
13514         * specifier.c (Fgeneric_specifier_p):
13515         move doc string to make-generic-specifier.
13516         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
13517         rebackslashify.
13518
13519         * specifier.h:
13520         * specifier.h (DOMAIN_FRAME):
13521         * specifier.h (DOMAIN_LIVE_P):
13522         * specifier.h (DOMAIN_XDEVICE):
13523         rebackslashify.
13524         add comments about problems with these macros.
13525         prototype for decode_domain.
13526
13527         * toolbar.c:
13528         * toolbar.c (Ftoolbar_specifier_p):
13529         move doc string to `make-toolbar-specifier'.
13530
13531         * window.c (window_unmap_subwindows_cache_mapper):
13532         *************************************************************
13533         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
13534         HAVE BEEN GETTING.
13535         *************************************************************
13536
13537 2000-05-09  Andy Piper  <andy@xemacs.org>
13538
13539         * glyphs.h: declare reset_frame_subwindow_instance_cache.
13540
13541         * window.c (Fset_window_configuration): reset the frame subwindow
13542         cache and re-initialize the window subwindow caches.
13543
13544         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
13545
13546 2000-05-09  Ben Wing  <ben@xemacs.org>
13547
13548         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
13549         DWORD.
13550
13551 2000-04-26  Mike Woolley  <mike@bulsara.com>
13552
13553         * ntheap.c: Changed recreate_heap to limit the amount reserved
13554         for the heap to that which is actually available. Also now
13555         displays a message box (with some dignostics) in the event that
13556         it still can't start.
13557
13558 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
13559
13560         * callproc.c (Fold_call_process_internal): GCPRO path
13561
13562 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
13563
13564         Patch by Bill Perry.
13565
13566         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
13567         back data instead of #ifdef.
13568         (Fscrollbar_page_down): ditto.
13569
13570 2000-05-07  Ben Wing  <ben@xemacs.org>
13571
13572         * buffer.h:
13573         Kludge for defining Qmswindows_tstr.
13574
13575         * nt.c:
13576         * nt.c (open_input_file):
13577         * nt.c (open_output_file):
13578         * nt.c (rva_to_section):
13579         * nt.c (mswindows_executable_type):
13580         Move all memory-mapped-file routines here (some were in unexnt.c,
13581         which is bad because they are used by process-nt.c, and unexnt
13582         won't be around when portable dumping).  Synched the above routines
13583         with FSF 20.6.
13584
13585         * nt.h:
13586         Removed ifdef'd out bogus code.
13587         Fixed some prototypes.
13588
13589         * nt.h (file_data):
13590         * nt.h (OFFSET_TO_RVA):
13591         * nt.h (RVA_TO_OFFSET):
13592         * nt.h (RVA_TO_PTR):
13593         Moved the memory-mapped-file structures, macros and prototypes
13594         here, to parallel nt.c.  ntheap.h should really be removed
13595         entirely, and it's a non-portable-dumper specific file.
13596
13597         * ntheap.h (round_to_next):
13598         Moved the memory-mapped-file structures, macros and prototypes
13599         to nt.h.
13600
13601         * ntproc.c (compare_env):
13602         Moved rva_to_section and mswindows_executable_type to nt.c.
13603         Moved compare_env to process-nt.c.
13604         ntproc.c will die, one day.
13605
13606         * ntproc.c (sys_spawnve):
13607         Account for win32_ -> mswindows_.
13608
13609         * process-nt.c:
13610         * process-nt.c (struct nt_process_data):
13611         * process-nt.c (ensure_console_window_exists):
13612         * process-nt.c (compare_env):
13613         * process-nt.c (nt_create_process):
13614         * process-nt.c (nt_kill_process_by_pid):
13615         * process-nt.c (syms_of_process_nt):
13616         * process-nt.c (vars_of_process_nt):
13617         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
13618         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
13619         changes).  Eliminate our old `nt-quote-process-args' mechanism.
13620         Synch up nt_create_process with FSF 20.6 sys_spawnve.
13621         Move compare_env here from ntproc.c.
13622
13623         * process.c (Fprocess_send_region):
13624         Takes an optional fourth argument, BUFFER, which should fix some
13625         problems with call-process.
13626
13627         * syscommctrl.h:
13628         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
13629
13630         * syswindows.h:
13631         Move ICC_BAR_CLASSES to syscommctrl.h.
13632         Add preliminary macros for MSWindows/Mule.  More to come.
13633
13634         * unexnt.c:
13635         * unexnt.c (unexec):
13636         open_output_file moved to nt.c.
13637
13638
13639 2000-05-05  Andy Piper  <andy@xemacs.org>
13640
13641         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
13642         instance from the frame cache also since GC may catch up too late
13643         to make frame deletion sane.
13644
13645 2000-05-04  Andy Piper  <andy@xemacs.org>
13646
13647         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
13648         (x_finalize_image_instance): ungcpro on deletion.
13649
13650         * glyphs.c (image_instantiator_format_create): give pointers a
13651         query geometry method so that the geometry is at least set.
13652
13653         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
13654         initialize layouts if using widgets.
13655
13656 2000-05-03  Andy Piper  <andy@xemacs.org>
13657
13658         * nt.c: remove bogus reference to sysmmsystem.h
13659
13660         * gui-x.c (popup_selection_callback): fix no selection abort.
13661
13662 2000-05-02  Andy Piper  <andy@xemacs.org>
13663
13664         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
13665         (mswindows_widget_instantiate): ditto.
13666
13667         * glyphs-widget.c (initialize_widget_image_instance): initialize
13668         children correctly.
13669         (widget_instantiate): cope with children and items in the same
13670         instance.
13671
13672         * glyphs.c (mark_image_instance): cope with children as a first
13673         class member.
13674         (image_instance_equal): ditto.
13675         (image_instance_hash): ditto.
13676         (image_instance_changed): ditto.
13677
13678 2000-04-30  Andy Piper  <andy@xemacs.org>
13679
13680         * glyphs.c (subwindow_query_geometry): new function. Return some
13681         defaults.
13682         (subwindow_instantiate): don't assign dimensions if none have been
13683         given.
13684         (image_instantiator_format_create): add subwindow_query_geometry.
13685         (print_image_instance): cope with layouts as widgets.
13686
13687 2000-04-29  Andy Piper  <andy@xemacs.org>
13688
13689         * frame.c (delete_frame_internal): call
13690         free_frame_subwindow_instance_cache so that all subwindows are
13691         finalized before their parent.
13692         (mark_frame): remove subwindow_cachels.
13693         (Fmake_frame): remove subwindow_cachel manipulation.
13694         (allocate_frame_core): subwindow_instance_cache is a weak list.
13695         (delete_frame_internal): set subwindow_instance_cache to nil.
13696
13697         * glyphs-msw.c (mswindows_finalize_image_instance): make double
13698         finalization safe.
13699         (mswindows_finalize_image_instance): use the device
13700         not the domain as the domain may have died already.
13701
13702         * glyphs-x.c (x_finalize_image_instance): ditto.
13703         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
13704         HEIGHT.
13705
13706         * redisplay-output.c (redisplay_unmap_subwindows): update for
13707         subwindow instance cache as a weak list.
13708         (redisplay_unmap_subwindows_maybe): ditto.
13709         (redisplay_unmap_subwindows_except_us): ditto.
13710
13711         * glyphs.c (unmap_subwindow): error checking will check the domain
13712         so don't deal with it here. Don't use cachels anymore.
13713         (map_subwindow): ditto.
13714         (update_subwindow_cachel_data): remove old accessor names.
13715         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
13716         (Fresize_subwindow): don't update cachel.
13717         (mark_subwindow_cachels):
13718         (update_subwindow_cachel_data):
13719         (add_subwindow_cachel):
13720         (get_subwindow_cachel_index):
13721         (update_subwindow_cachel):
13722         (reset_subwindow_cachels):
13723         (mark_subwindow_cachels_as_not_updated): deleted.
13724         (cache_subwindow_instance_in_frame_maybe): new function. Add a
13725         subwindow instance to the frame cache.
13726         (find_matching_subwindow): update for subwindow instance cache as
13727         a weak list.
13728         (update_widget_instances): ditto.
13729         (image_instance_type_to_mask):inlined.
13730         (free_frame_subwindow_instance_cache): new function. finalize all
13731         subwindows that are instantiated.
13732
13733         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
13734         of cachel information.
13735         (IMAGE_INSTANCE_DISPLAY_X):
13736         (IMAGE_INSTANCE_DISPLAY_Y):
13737         (IMAGE_INSTANCE_DISPLAY_WIDTH):
13738         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
13739         (XIMAGE_INSTANCE_DISPLAY_X):
13740         (XIMAGE_INSTANCE_DISPLAY_Y):
13741         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
13742         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
13743         remove subwindow_cachel structure and function references.
13744         (image_instance_type_to_mask): inline from glyphs.c
13745
13746         * redisplay.c (redisplay_frame): remove subwindow_cachel
13747         references.
13748
13749         * frame.h (struct frame): remove subwindow_cachels.
13750         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
13751
13752         * frameslots.h: add subwindow_instance_cache.
13753
13754         * window.c (replace_window): check subwindow cache of replacement.
13755         (window_unmap_subwindows_cache_mapper):
13756         (window_unmap_subwindows): new functions. Unmap all subwindows
13757         cached on this window.
13758         (mark_window_as_deleted): unmap all subwindows.
13759
13760 2000-04-27  Andy Piper  <andy@xemacs.org>
13761
13762         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
13763
13764         * glyphs-widget.c (widget_layout): return something.
13765         (layout_layout): return something. Fail if not initialized.
13766         (layout_query_geometry): ditto.
13767         (image_instantiator_native_layout): new function. Initialized the
13768         native layout type.
13769         (widget_instantiate): don't do layout stuff here.
13770
13771         * glyphs.c (instantiate_image_instantiator): reorded calling or
13772         instantiate and post_instantiate with layout in between.
13773         (image_instance_layout): be more selective about deciding whether
13774         the layout has been done or not.
13775
13776         * glyphs.h (struct image_instantiator_methods): return a value
13777         from layout_method.
13778
13779 2000-04-26  Andy Piper  <andy@xemacs.org>
13780
13781         * glyphs.c (allocate_image_instance): make initial width and
13782         height unspecified. Set initialized to 0.
13783
13784         * syscommctrl.h new file. Encapsulates commctrl.h.
13785
13786         * syswindows.h new file. Encapsulates windows.h.
13787
13788         * ntplay.c: use new syswindows.h and syscommctrl.h header.
13789         * nt.c: ditto.
13790         * console-msw.h: ditto.
13791
13792         * redisplay-tty.c (tty_output_display_block): remove layout references.
13793
13794         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
13795         window handle rather than just the frame.
13796
13797         * glyphs.c (mark_image_instance): remove layout references.
13798         (print_image_instance): ditto.
13799         (image_instance_equal): ditto.
13800         (image_instance_hash): ditto.
13801         (decode_image_instance_type): ditto.
13802         (encode_image_instance_type): ditto.
13803         (image_instantiate): ditto.
13804         (allocate_glyph): ditto.
13805         (Fimage_instance_height): ditto.
13806         (Fimage_instance_width): ditto.
13807         (update_subwindow): ditto.
13808
13809         * redisplay-x.c (x_output_display_block): recode for layouts as
13810         widgets.
13811
13812         * redisplay-output.c (redisplay_output_layout): recode for layouts
13813         as widgets.
13814         (compare_runes): remove layout references.
13815
13816         * redisplay-msw.c (mswindows_output_display_block): recode for
13817         layouts as widgets.
13818
13819         * glyphs-widget.c (image_instantiator_layout): remove
13820         layout_possible_dest_types.
13821         (layout_possible_dest_types): deleted.
13822
13823         * glyphs.h (image_instance_type): remove layout references.
13824         (struct Lisp_Image_Instance): ditto. Add initialized flag.
13825         (IMAGE_INSTANCE_INITIALIZED): new accessor.
13826         (XIMAGE_INSTANCE_INITIALIZED): ditto.
13827
13828 2000-04-25  Andy Piper  <andy@xemacs.org>
13829
13830         * glyphs-widget.c (image_instantiator_buttons):
13831         (image_instantiator_edit_fields):
13832         (image_instantiator_combo_box):
13833         (image_instantiator_scrollbar):
13834         (image_instantiator_progress_guage):
13835         (image_instantiator_tree_view):
13836         (image_instantiator_tab_control):
13837         (image_instantiator_labels):
13838         (image_instantiator_layout): call default post_instantiate method.
13839         (widget_post_instantiate): new function. Simply lays out the
13840         widgets.
13841
13842         * glyphs.h (struct image_instantiator_methods): add
13843         post_instantiate method.
13844
13845         * glyphs.c (instantiate_image_instantiator): add post_instantiate
13846         method calls.
13847
13848 2000-04-23  Andy Piper  <andy@xemacs.org>
13849
13850         * glyphs.h (struct image_instantiator_methods): add
13851         decode_domain_method.
13852         (struct Lisp_Image_Instance): remove subwindow frame - it can be
13853         derived from the domain.
13854         (IMAGE_INSTANCE_FRAME): new accessor.
13855         (XIMAGE_INSTANCE_FRAME): ditto.
13856
13857         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
13858         instead of _SUBWINDOW_FRAME.
13859         (finalize_image_instance): ditto.
13860         (Fimage_instance_foreground): ditto.
13861         (Fimage_instance_background): ditto.
13862         (image_instantiate): ditto.
13863         (update_subwindow_cachel): ditto.
13864         (update_subwindow): ditto.
13865         (unmap_subwindow): ditto.
13866         (map_subwindow): ditto
13867         (subwindow_instantiate): ditto.
13868         * glyphs-msw.c (mswindows_update_widget): ditto.
13869         (mswindows_progress_gauge_instantiate): ditto.
13870         (mswindows_tab_control_update): ditto.
13871         * glyphs-x.c (x_update_widget): ditto.
13872         (x_widget_instantiate): ditto.
13873         (x_tab_control_instantiate): ditto.
13874         (x_tab_control_update): ditto.
13875         * event-msw.c (mswindows_wnd_proc): ditto
13876
13877         * glyphs-widget.c (image_instantiator_layout): use
13878         subwindow_decode_domain.
13879         (image_instantiator_buttons): ditto.
13880         (image_instantiator_edit_fields): ditto.
13881         (image_instantiator_combo_box): ditto.
13882         (image_instantiator_scrollbar): ditto.
13883         (image_instantiator_progress_guage): ditto.
13884         (image_instantiator_tree_view): ditto.
13885         (image_instantiator_tab_control): ditto.
13886         (image_instantiator_labels): ditto.
13887         (image_instantiator_layout): ditto.
13888
13889         * glyphs.c: add instance error checking to many functions.
13890         (instantiate_image_instantiator): decode device from cache_domain.
13891         (image_instantiate): partially rewrite by using
13892         decode_image_instantiator_domain to determine what domain the
13893         instance needs to be cached in.
13894         (decode_image_instantiator_domain): new function. Determine what
13895         domain the image needs to be cached in.
13896         (check_window_subwindow_cache): new error checking function.
13897         (check_instance_cache_mapper): ditto.
13898         (check_image_instance_structure): ditto.
13899         (subwindow_decode_domain): new function. Encodes a window as a
13900         subwindow's cache domain.
13901         (image_instantiator_format_create): use it for text and
13902         subwindows.
13903
13904 2000-04-21  Andy Piper  <andy@xemacs.org>
13905
13906         * glyphs.c (image_instance_device): new function.
13907         (image_instance_frame): new function.
13908         (image_instance_window): new function.
13909         (image_instance_live_p): new function.
13910
13911         * window.c (mark_window_as_deleted): reset the subwindow_instance_
13912         cache to nil.
13913
13914         * glyphs.h (struct Lisp_Image_Instance): device->domain.
13915         (IMAGE_INSTANCE_DOMAIN): new accessor.
13916         (XIMAGE_INSTANCE_DOMAIN): ditto.
13917
13918         * glyphs-x.c (x_finalize_image_instance): device->domain.
13919
13920         * glyphs-msw.c (init_image_instance_geometry): device->domain.
13921         (mswindows_finalize_image_instance): ditto.
13922
13923         * glyphs-eimage.c (jpeg_instantiate): device->domain.
13924         (gif_instantiate): ditto.
13925         (png_instantiate): ditto.
13926         (tiff_instantiate): ditto.
13927
13928         * glyphs.c (instantiate_image_instantiator): use domain rather
13929         than device.
13930         (mark_image_instance): device -> domain.
13931         (print_image_instance): ditto.
13932         (finalize_image_instance): ditto.
13933         (image_instance_equal): ditto.
13934         (allocate_image_instance): ditto.
13935         (Fcolorize_image_instance): ditto.
13936         (query_string_geometry): ditto.
13937         (image_instantiate): ditto
13938         (query_string_font): ditto.
13939         (image_instantiate): ditto.
13940         (update_subwindow): ditto.
13941         (unmap_subwindow): ditto.
13942         (map_subwindow): ditto.
13943         (subwindow_instantiate): ditto.
13944
13945         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
13946         (DOMAIN_FRAME): ditto.
13947         (DOMAIN_WINDOW): ditto.
13948         (DOMAIN_LIVE_P): ditto.
13949         (XDOMAIN_DEVICE): ditto.
13950         (XDOMAIN_FRAME): ditto.
13951         (XDOMAIN_WINDOW): ditto.
13952
13953         * specifier.c (Fvalid_specifier_domain_p): add image instances as
13954         a valid specifier domain.
13955
13956 2000-04-19  Andy Piper  <andy@xemacs.org>
13957
13958         * glyphs-widget.c (syms_of_glyphs_widget): remove
13959         widget-callback-current-channel.
13960         (vars_of_glyphs_widget): ditto.
13961         * glyphs.h: ditto
13962
13963         * gui.c (get_gui_callback): revert to previous behaviour.
13964
13965 2000-04-18  Andy Piper  <andy@xemacs.org>
13966
13967         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
13968         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
13969         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
13970
13971         * glyphs.c (image_instance_equal): add margin_width.
13972         (image_instance_hash): ditto.
13973
13974         * glyphs-widget.c (widget_instantiate): deal with margin-width.
13975         (layout_query_geometry): ditto.
13976         (layout_layout): ditto.
13977         (syms_of_glyphs_widget): add margin-width.
13978         (image_instantiator_layout): allow margin-width.
13979
13980         * glyphs.c (update_widget_instances): make a normal function.
13981         (syms_of_glyphs): remove Qupdate_widget_instances.
13982         * glyphs.h: ditto.
13983
13984         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
13985         so that we don't corrupt ideas about the last event or
13986         command. Remove widget-callback-current-channel fiddling.
13987         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
13988
13989 2000-05-01  Martin Buchholz <martin@xemacs.org>
13990
13991         * XEmacs 21.2.33 is released.
13992
13993 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
13994
13995         * make-src-depend: Allow dots in header file name.
13996
13997 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
13998
13999         * mule-charset.h (struct charset_lookup): Add
14000         next_allocated_1_byte_leading_byte and
14001         next_allocated_2_byte_leading_byte.
14002         * mule-charset.c: Move above two variables so that those values
14003         will be dumped.
14004
14005 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
14006
14007         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
14008         when string length is zero.
14009         (find_charsets_in_emchar_string): Ditto.
14010
14011 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
14012
14013         * lisp.h: extern Qdialog and Qmenubar.
14014
14015         * gui-x.c: added events.h.
14016                 also fixed typo which made the file uncompilable.
14017
14018         * general.c: Added Qmenubar and Qdialog
14019
14020 2000-04-28  Ben Wing  <ben@xemacs.org>
14021
14022         * frame-msw.c (mswindows_init_frame_1):
14023         * frame-msw.c (mswindows_mark_frame):
14024         * event-msw.c (mswindows_enqueue_dispatch_event):
14025         * console-msw.h:
14026         * console-msw.h (struct mswindows_frame):
14027         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
14028         there are now three hash tables for callbacks.
14029         mswindows_enqueue_dispatch_event is no longer static.
14030
14031         * dialog-x.c (maybe_run_dbox_text_callback):
14032         * dialog-x.c (dbox_descriptor_to_widget_value):
14033         switch to new cons3 form for callbacks.
14034
14035         * glyphs-msw.c (mswindows_register_gui_item):
14036         * glyphs-msw.c (mswindows_widget_instantiate):
14037         * glyphs-msw.c (add_tree_item):
14038         * glyphs-msw.c (add_tab_item):
14039         new image instance parameter, so it can be passed to callback-ex.
14040         respect :callback-ex as well as :callback.
14041
14042         * glyphs-widget.c (VALID_GUI_KEYWORDS):
14043         add :callback-ex.
14044
14045         * glyphs.c (print_image_instance):
14046         prettify, e.g. now prints widget type.
14047
14048         * gui-x.h:
14049         certain funs have new image instance parameter.
14050
14051         * gui.c:
14052         * gui.c (get_gui_callback):
14053         * gui.c (gui_item_add_keyval_pair):
14054         * gui.c (gui_item_init):
14055         * gui.c (gui_add_item_keywords_to_plist):
14056         * gui.c (mark_gui_item):
14057         * gui.c (gui_item_hash):
14058         * gui.c (gui_item_equal):
14059         * gui.c (copy_gui_item):
14060         * gui.c (syms_of_gui):
14061         recognize callback-ex in a number of places.
14062         also, fix the annoying "can't get out of yes-no dialog" bug.
14063
14064         * gui.h:
14065         * gui.h (struct Lisp_Gui_Item):
14066         recognize callback-ex in a number of places.
14067
14068         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
14069         new parameter in button_item_to_widget_value.
14070
14071         * glyphs-x.c (x_update_widget):
14072         * glyphs-x.c (x_button_instantiate):
14073         * glyphs-x.c (x_button_update):
14074         * glyphs-x.c (x_progress_gauge_instantiate):
14075         * glyphs-x.c (x_edit_field_instantiate):
14076         * glyphs-x.c (x_combo_box_instantiate):
14077         * glyphs-x.c (x_tab_control_instantiate):
14078         * glyphs-x.c (x_label_instantiate):
14079         new image instance parameter in various places.
14080
14081         * event-Xt.c:
14082         * event-Xt.c (enqueue_Xt_dispatch_event):
14083         this fun gets exported.
14084
14085         * gui-msw.c:
14086         * gui-msw.c (mswindows_handle_gui_wm_command):
14087         handle both :callback and :callback-ex, and generate our own
14088         event because it's one of the callback-ex arguments.
14089
14090         * gui-x.c:
14091         * gui-x.c (popup_selection_callback):
14092         handle both :callback and :callback-ex, and generate our own
14093         event because it's one of the callback-ex arguments.
14094         * gui-x.c (button_item_to_widget_value):
14095         * gui-x.c (gui_items_to_widget_values_1):
14096         * gui-x.c (gui_item_children_to_widget_values):
14097         * gui-x.c (gui_items_to_widget_values):
14098         new image instance parameter in various places.
14099
14100         * fns.c (Freplace_list):
14101         fix small typo in doc string.
14102
14103         * lisp.h:
14104         declare enqueue_Xt_dispatch_event.
14105
14106 2000-04-28  Ben Wing  <ben@xemacs.org>
14107
14108         * buffer.c:
14109         * buffer.c (Frecord_buffer):
14110         * buffer.c (syms_of_buffer):
14111         delete record-buffer-hook.
14112
14113         * fns.c:
14114         * fns.c (Freplace_list):
14115         * fns.c (syms_of_fns):
14116         new primitive replace-list.
14117
14118         * frameslots.h:
14119         slot for old buffer-alist.
14120
14121         * lisp.h:
14122         exfun replace-list.
14123
14124         * redisplay.c:
14125         * redisplay.c (redisplay_frame):
14126         * redisplay.c (syms_of_redisplay):
14127         * redisplay.c (vars_of_redisplay):
14128         new hook buffer-list-changed-hook.
14129         call it.
14130
14131 2000-04-27  Ben Wing  <ben@xemacs.org>
14132
14133         * extents.h: extern in_modeline_generation.
14134
14135         * redisplay.c (generate_formatted_string_db): set
14136         in_modeline_generation.
14137
14138         * extents.c (extent_changed_for_redisplay): don't mark redisplay
14139         flags if in modeline generation.  otherwise frame-modified-tick
14140         is ticked far too often.
14141         Declare in_modeline_generation.
14142
14143 2000-04-26  Ben Wing  <ben@xemacs.org>
14144
14145         * emacs.c (vars_of_emacs): document quick-build "error-checking"
14146         option.
14147         (vars_of_emacs): add quick-build as an error-checking option.
14148         A bit kludgy, but there doesn't seem much point in creating
14149         a real var for this.
14150
14151         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
14152
14153 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
14154
14155         * redisplay.h (struct display_line): Add a new variable,
14156         line_continuation.
14157
14158         * redisplay.c (create_text_block): Set dl->line_continuation if
14159         the line continues.
14160         (create_string_text_block): Ditto.
14161         (regenerate_window_incrementally): Use line_continuation instead
14162         of searching continuation glyph.
14163         (add_margin_runes): Call add_glyph_rune.
14164         (add_glyph_rune): Handle margin glyph.
14165
14166 2000-04-20  Martin Buchholz  <martin@xemacs.org>
14167
14168         * filelock.c (fill_in_lock_file_name):
14169         ANSIfy.
14170         Check for IS_ANY_SEP instead of '/'.
14171         (lock_file_1):
14172         Avoid generating gratuitous garbage.  Call user_login_name() directly.
14173         Never check errno without first seeing that system call failed.
14174         (unlock_file): Add GCPRO.
14175         (Flock_buffer): Fix docstring.
14176         (Ffile_locked_p): Fix docstring.  Add GCPRO.
14177
14178 2000-04-19  Martin Buchholz  <martin@xemacs.org>
14179
14180         * sysdep.c (get_pty_max_bytes):
14181         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
14182         strings longer than 252 bytes.
14183
14184         * md5.c: Unconditionally include ANSI header <limits.h>
14185
14186         * glyphs-x.c (convert_EImage_to_XImage):
14187         * lisp-union.h (union Lisp_Object):
14188         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
14189
14190 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
14191
14192         * filelock.c (current_lock_owner): Remove unused variable o, p.
14193
14194 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
14195
14196         * callint.c: Remove multiply defined symbol Qlet
14197         (syms_of_callint): ditto.
14198
14199 2000-04-14  Andy Piper  <andy@xemacs.org>
14200
14201         * general.c (syms_of_general): add last-command, this-command, let
14202         and funcall.
14203
14204         * lisp.h: declare various symbols.
14205
14206         * glyphs.h: declare Qwidget_callback_current_channel;
14207
14208         * glyphs-widget.c (syms_of_glyphs_widget): add
14209         Qgui_callback_current_channel.
14210         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
14211
14212         * gui-msw.c (mswindows_handle_gui_wm_command): bind
14213         widget-callback-current-channel when invoking the interactive
14214         arg. Also bind last-command and next-command when invoking the
14215         widget updates.
14216         * gui-x.c (popup_selection_callback): ditto.
14217
14218         * gui.c (get_gui_callback): massage args so that we are always
14219         calling eval. This allows us to add our own variable bindings
14220         outside.
14221
14222         * glyphs-x.c (x_button_instantiate): use
14223         gui_items_to_widget_values since this is GC safe.
14224         (x_progress_gauge_instantiate): ditto.
14225         (x_edit_field_instantiate): ditto.
14226         (x_label_instantiate): ditto.
14227
14228         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
14229         (emacs_Xt_event_widget_focus_out): new function
14230         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
14231         focus.
14232         (emacs_Xt_event_add_widget_actions): new function. add focus
14233         functions as actions.
14234         (init_event_Xt_late): use it.
14235
14236 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
14237
14238         * event-stream.c (Fdispatch_event): Doc fix.
14239
14240 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
14241
14242         * postgresql.c: Remove all references to PQsetenv*.
14243
14244         * postgresql.h: Remove references to PGsetenvHandler object.
14245         * lrecord.h (lrecord_type): Ditto.
14246
14247 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14248
14249         * glyphs-msw.h (struct mswindows_image_instance_data): Added
14250         real_heigh and real_width members, and accessor macros for these.
14251
14252         * glyphs-msw.c (init_image_instance_geometry): New function.
14253         (init_image_instance_from_dibitmap): Use it.
14254         (mswindows_resource_instantiate): Use it.
14255         (init_image_instance_from_xbm_inline): Use it.
14256         (mswindows_initialize_image_instance_mask): Use real bitmap
14257         geometry.
14258         (mswindows_create_resized_bitmap): Ditto.
14259         (mswindows_create_resized_mask): Ditto.
14260
14261         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
14262         and bitmap to their surface size.
14263
14264 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
14265
14266         * process-unix.c (unix_send_process): Guard against process MIA
14267         after Faccept_process_output.
14268
14269 2000-04-11  Ben Wing  <ben@xemacs.org>
14270
14271         * eval.c (unbind_to_hairy): fix brokenness introduced by
14272         nanosecond speed improvements.
14273
14274 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
14275
14276         * sunplay.c (init_device): To play sounds correctly, the device
14277         apparently needs to be initialized at least once by XEmacs.  Make
14278         it so.
14279
14280 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
14281
14282         * redisplay.c (add_margin_runes): Add text image glyph
14283           handling.
14284
14285 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
14286
14287         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
14288         gcc is newer than 2.5.
14289
14290 2000-04-06  Colin Rafferty  <colin@xemacs.org>
14291
14292         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
14293
14294         * fns.c (size_bit_vector):
14295         * alloc.c (size_vector):
14296         (make_vector_internal):
14297         (make_bit_vector_internal):
14298         (sweep_bit_vectors_1):
14299         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
14300
14301 2000-04-06  Andy Piper  <andy@xemacs.org>
14302
14303         * gmalloc.c (malloc): undo previous change.
14304         (malloc): ditto.
14305         (free): ditto.
14306         (realloc): ditto.
14307
14308 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
14309
14310         * line-number.c (buffer_line_number): Revert to former version.
14311
14312 2000-04-06  Andy Piper  <andy@xemacs.org>
14313
14314         * gmalloc.c (malloc): add error checking.
14315         (malloc): ditto.
14316         (free): ditto.
14317         (realloc): ditto.
14318
14319         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
14320         button_item_to_widget_value arg.
14321
14322         * glyphs-x.c (x_button_instantiate): add extra
14323         button_item_to_widget_value arg.
14324         (x_progress_gauge_instantiate): ditto.
14325         (x_edit_field_instantiate): ditto.
14326         (x_label_instantiate): ditto.
14327
14328         * gui-x.c (gui_items_to_widget_values_1): add extra
14329         button_item_to_widget_value arg.
14330         (button_item_to_widget_value): add extra menu_item_p arg.
14331
14332         * gui-x.h: change signature of button_item_to_widget_value.
14333
14334         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
14335         button_item_to_widget_value arg.
14336
14337 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
14338
14339         * buffer.h (struct buffer): auto_save_modified should be long.
14340
14341 2000-04-05  Andy Piper  <andy@xemacs.org>
14342
14343         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
14344         type.
14345         (button_query_geometry): give a little more room so that athena
14346         buttons fit.
14347
14348 2000-04-05  Andy Piper  <andy@xemacs.org>
14349
14350         * faces.c (complex_vars_of_faces): The widget face should inherit
14351         the font of the gui-element face.
14352
14353 2000-04-04  Andy Piper  <andy@xemacs.org>
14354
14355         * glyphs-x.c (x_button_update): new function. unconditionally
14356         update a button's state when the instance is dirty.
14357         (image_instantiator_format_create_glyphs_x): add x_button_update.
14358         (x_widget_instantiate): remove old resize cruft.
14359
14360 2000-04-02  Andy Piper  <andy@xemacs.org>
14361
14362         * frame.c (change_frame_size_1): The introduction of gutters means
14363         that we need to allow 0 as a potential frame dimension.
14364
14365 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
14366
14367         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
14368         image glyph if allow_cursor.
14369         (add_hscroll_rune): Don't allow cursor to border glyph.
14370         (create_text_block): Ditto.
14371
14372         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
14373         text not in buffer.
14374         (redisplay_output_layout): Call ensure_face_cachel_complete for
14375         text image glyph.
14376
14377
14378 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
14379
14380         * redisplay.c (add_glyph_rune): Adding text image as text runes.
14381
14382         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
14383         not in buffer
14384
14385         * redisplay-tty.c (tty_output_display_block): Delete the routine
14386         for text image glyph
14387         * redisplay-x.c (x_output_display_block): ditto
14388         * redisplay-msw.c (mswindows_output_display_block): ditto
14389
14390 2000-02-02  Mike Alexander  <mta@arbortext.com>
14391
14392         Note: Some of these were committed by accident as part of other
14393         patches.
14394
14395         * regex.c (regex_compile): Avoid compiler warnings.
14396
14397         * ntproc.c (sys_spawnve): Avoid compiler warnings.
14398
14399         * nt.h: Declare term_ntproc correctly.
14400
14401         * nt.c: Remove incorrect declaration of get_home_directory which
14402         is declared correctly in lisp.h.
14403
14404         * keymap.c (get_keyelt): Avoid compiler warnings.
14405         (raw_lookup_key_mapper): Avoid compiler warnings.
14406
14407         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
14408
14409         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
14410
14411         * filemode.c (mode_string): Avoid compiler warnings.
14412
14413         * file-coding.c (Fcoding_system_aliasee): Add return statement to
14414         avoid warning.
14415
14416         * events-mod.h: Undef some things that winuser.h defines differently.
14417
14418         * data.c (Faset): Avoid compiler warnings.
14419
14420         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
14421
14422 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
14423
14424         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
14425         Fall through to simple beep on error.
14426         Replace "extern" by real header file.
14427
14428         * linuxplay.c: Use nativesound.h
14429         (play_sound_data): Return error code. Be less verbose on error.
14430
14431         * sunplay.c: Use nativesound.h
14432         (play_sound_data): Return error code. Be less verbose on error.
14433
14434         * ntplay.c: Use nativesound.h
14435         (play_sound_data): Return fake error code
14436
14437         * sgiplay.c: Use nativesound.h
14438         (play_sound_data): Return error code
14439
14440         * hpplay.c: Use nativesound.h, partially implement
14441         new error code. Break compilation until finished.
14442         (play_sound_data): error code.
14443
14444         * nativesound.h (play_sound_file):
14445           (play_sound_data): Prototype in new header.
14446
14447 2000-03-31  Andy Piper  <andy@xemacs.org>
14448
14449         * glyphs-widget.c: (button_query_geometry): new function. Adjust
14450         for toggle and radio buttons.
14451         (image_instantiator_buttons): use it.
14452
14453 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
14454
14455         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
14456         (x_update_horizontal_scrollbar_callback): Return if no mirror was
14457         found. Scrollbar event probably belonged to some old config.
14458
14459 2000-03-31  Andy Piper  <andy@xemacs.org>
14460
14461         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
14462         than 1.
14463         (initialize_widget_image_instance): default layout to
14464         LAYOUT_HORIZONTAL rather than 0.
14465         (widget_instantiate): reverse the item list at the end rather than
14466         every iteration.
14467         (layout_layout): re-code for the border text at the front of the
14468         item list rather than at the end.
14469         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
14470         provided by the user.
14471         (widget_query_geometry): comment.
14472
14473 2000-03-30  Andy Piper  <andy@xemacs.org>
14474
14475         * glyphs-widget.c (image_instantiator_layout): allow standard
14476         widget keywords in layouts.
14477
14478         * gutter.c (output_gutter): cope with nil gutter contents.
14479
14480         * frame.c (Fset_frame_properties): add gutter docs.
14481
14482 2000-03-29  Andy Piper  <andy@xemacs.org>
14483
14484         * toolbar-msw.c (TBSTYLE_FLAT): add.
14485         (mswindows_output_toolbar): minor fiddling.
14486
14487 2000-03-29  Andy Piper  <andy@xemacs.org>
14488
14489         * gutter.c (output_gutter): force gutter size recalculation if
14490         what we are trying to display won't fit.
14491         (update_gutter_geometry): new function. A per-gutter version of
14492         update_frame_gutter_geometry.
14493         (update_frame_gutter_geometry): use it.
14494         (redraw_exposed_gutter): add extra debugging output.
14495
14496 2000-03-28  Mike Alexander  <mta@arbortext.com>
14497
14498         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
14499         (pdump_file_unmap): Implement it on Windows
14500         (pdump_file_get): Save alocated handles for pdump_file_unmap
14501
14502 2000-03-28  Andy Piper  <andy@xemacs.org>
14503
14504         * gui.c (get_gui_callback): treat Quit specially.
14505
14506 2000-03-27  Andy Piper  <andy@xemacs.org>
14507
14508         * glyphs.c (image_instantiate): be careful to check in the same
14509         way we assigned.
14510
14511 2000-03-27  Didier Verna  <didier@xemacs.org>
14512
14513         * config.h.in: define the proper SMART_INCLUDE macro.
14514         handle renaming of `foo_h_path' to `foo_h_file'.
14515
14516         * database.c: ditto.
14517
14518         * emacs.c: ditto.
14519
14520         * linuxplay.c: ditto.
14521
14522         * terminfo.c: ditto.
14523
14524         * tooltalk.h: ditto.
14525
14526 2000-03-27  Andy Piper  <andy@xemacs.org>
14527
14528         * glyphs-msw.c (mswindows_update_widget): make sure the widget
14529         gets updated whenever the face might have changed.
14530
14531 2000-03-26  Mike Alexander  <mta@arbortext.com>
14532
14533         * dumper.c (pdump_resource_free): Fix the comment.
14534
14535 2000-03-21  Olivier Galibert  <galibert@pobox.com>
14536
14537         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
14538
14539 2000-03-22  Mike Alexander  <mta@arbortext.com>
14540
14541         * dumper.c: Include Windows headers on Windows
14542         (pdump_resource_free): Add a body to the function
14543         (pdump_load): exe_name -> exe_path and add some comments.
14544
14545 2000-03-25  Mike Alexander  <mta@arbortext.com>
14546
14547         * gui.c (copy_gui_item_tree): Return a value in all cases
14548
14549 2000-03-21  Didier Verna  <didier@xemacs.org>
14550
14551         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
14552         lwlib/config.h.in.
14553         (SMART_INCLUDE): new macro.
14554         (POSTGRES_INCLUDE): new macro to include postgresql headers from
14555         the proper location.
14556
14557         * postgresql.c: use it.
14558
14559         * inline.c: ditto.
14560
14561 2000-03-24  Andy Piper  <andy@xemacs.org>
14562
14563         * gutter.c (redraw_exposed_gutters): must be "in display" when we
14564         do this.
14565
14566 2000-03-24  Andy Piper  <andy@xemacs.org>
14567
14568         * redisplay-output.c (compare_runes): use image_instance_changed
14569         to detect changes. Do not depend on glyphs_changed, only depend on
14570         dirtiness.
14571          (redisplay_output_layout): add debug messages.
14572         (compare_runes): ditto.
14573
14574         * glyphs.h: declare new functions.
14575         (struct Lisp_Image_Instance): remove percent and associated
14576         accessors.
14577
14578         * gui.h: declare new copying functions.
14579
14580         * gui.c (copy_gui_item_tree): new function.
14581         (copy_gui_item): new function.
14582         (gui_item_id_hash): revert to standard hash.
14583         (gui_item_hash): ditto.
14584         (gui_item_hash_internal): deleted.
14585         (mark_gui_item): mark value.
14586         (gui_item_add_keyval_pair): add value.
14587         (gui_item_init): ditto.
14588         (gui_add_item_keywords_to_plist): ditto.
14589         (gui_item_equal): ditto.
14590         (syms_of_gui): add Q_value.
14591
14592         * glyphs-x.c (x_progress_gauge_update): use pending items and
14593         value for setting the state.
14594         (x_update_widget): don't set items from pending here.
14595
14596         * glyphs-widget.c (update_widget): update items here.
14597         (progress_gauge_set_property): use items for storing value. Put
14598         new value in pending items.
14599
14600         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
14601         items for new value. Convert percent -> value.
14602         (mswindows_tab_control_update): don't update items here.
14603
14604         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
14605         (update_subwindow): ditto.
14606         (image_instance_changed): new function. Compare hash values and
14607         past and present widget items.
14608         (image_instantiate): We more careful about where we instantiate
14609         things.
14610         (image_instantiate): add error checking.
14611
14612         * gutter.c (syms_of_gutter): use -hook.
14613
14614 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
14615
14616         * console-tty.c (Fset_console_tty_input_coding_system): Use
14617         Qkeyboard.
14618         (Fset_console_tty_output_coding_system): Use Qterminal.
14619         (tty_init_console): Use Qkeyboard and Qterminal.
14620
14621 2000-03-21  Ben Wing  <ben@xemacs.org>
14622
14623         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
14624         From Mike Alexander <mta@arbortext.com>.
14625
14626 2000-03-21  Ben Wing  <ben@xemacs.org>
14627
14628         * event-msw.c (mswindows_need_event): Horrible kludge to fix
14629         process brokenness.  Proper implementation to come.
14630         * callproc.c:
14631         Rename call-process-internal to old-call-process-internal.
14632         New impl. in process.el.
14633
14634 2000-03-21  Martin Buchholz  <martin@xemacs.org>
14635
14636         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
14637
14638 2000-03-20  Andy Piper  <andy@xemacs.org>
14639
14640         * glyphs.c (full_list_hash): make hashes of the same elements in
14641         different orders return different values.
14642
14643 2000-03-20  Martin Buchholz <martin@xemacs.org>
14644
14645         * XEmacs 21.2.32 is released.
14646
14647 2000-03-20  Martin Buchholz  <martin@xemacs.org>
14648
14649         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
14650         (DFC_MALLOC_USE_CONVERTED_DATA):
14651         Add aliasing-safe casts to allow use with char* or unsigned char*
14652         lvalues.
14653
14654         * eldap.c (Fldap_open):
14655         (Fldap_search_basic):
14656         (Fldap_add):
14657         (Fldap_modify):
14658         Make C++-compilable.
14659         Make sure GCPRO'ed variables are initialized.
14660         Use temp variables to avoid repeated calls to Flength.
14661
14662 2000-03-16  Martin Buchholz  <martin@xemacs.org>
14663
14664         * sysfile.h:
14665         Make sure PATH_MAX is always defined.
14666         Include limits.h for PATH_MAX.
14667         Deprecate use of MAXPATHLEN.
14668
14669 2000-03-10  Martin Buchholz  <martin@xemacs.org>
14670
14671         * emacs.c: Add reinit_vars_of_fileio.
14672         * symsinit.h: Add reinit_vars_of_fileio.
14673         * fileio.c (reinit_vars_of_fileio): New.
14674         * fileio.c (Fmake_temp_name):
14675         Initialize temp_name random number from microseconds to make
14676         collisions even less likely.  Initialize always at process startup
14677         time.  (make-temp-name) used to return the same file name twice in
14678         a row when PDUMP.
14679         Random stylistic fiddling.
14680         Comment fixes.
14681
14682 2000-03-20  Andy Piper  <andy@xemacs.org>
14683
14684         * glyphs.c (image_instantiate): allow text glyphs to be
14685         instantiated in the minibuffer window.
14686
14687 2000-03-19  Andy Piper  <andy@xemacs.org>
14688
14689         * glyphs.c (image_instance_hash): be careful about which items we
14690         hash on.
14691
14692         * glyphs-widget.c (tab_control_set_property): record into pending
14693         items rather than the actual items.
14694
14695         * glyphs-x.c (x_update_widget): use pending items to update with.
14696
14697         * glyphs-msw.c (mswindows_tab_control_update): use pending items
14698         to update with.
14699
14700         * glyphs.c (mark_image_instance): mark pending items.
14701
14702         * window.c (Fset_window_configuration): record the buffer.
14703         (Fselect_window): totally revert previous change which breaks many
14704         things.
14705
14706 2000-03-18  Andy Piper  <andy@xemacs.org>
14707
14708         * glyphs-msw.c (mswindows_tab_control_update): force selected
14709         item.
14710
14711         * glyphs.c (image_instantiate): don't allow the minibuffer as a
14712         window domain cache, otherwise we get inconsistencies at
14713         startup. There is something fishy at startup which can lead to the
14714         minibuffer being the selected window when the gutter content is
14715         instantiated.
14716
14717         * gui.c (parse_gui_item_tree_list): add probably unnecessary
14718         gcpros.
14719         (parse_gui_item_tree_children): ditto.
14720         (parse_gui_item_tree_item): ditto.
14721
14722         * glyphs.c (Fupdate_widget_instances): return something.
14723
14724 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
14725
14726         * window.c (Fselect_window): Undo 2000-03-17 change.
14727
14728 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
14729
14730         * postgresql.c (Fpq_setenv): Remove this turkey when linking
14731         against v7.0 libraries.  Insta-coredump city until the postgres
14732         folks fix it.
14733
14734 2000-03-17  Andy Piper  <andy@xemacs.org>
14735
14736         * faces.c (complex_vars_of_faces): don't give the widget face an
14737         inherited background pixmap.
14738
14739         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
14740         selected item.
14741
14742         * event-stream.c (Fdispatch_non_command_events): return something.
14743
14744         * gutter.c (output_gutter): use widget face.
14745         (clear_gutter): ditto.
14746
14747         * NEWS: adjust again.
14748
14749         * window.c (Fselect_window): make sure this runs to completion to
14750         avoid oddities with Fset_window_configuration.
14751         (Fcurrent_window_configuration): in general do not save the
14752         minibuffer as the selected window.
14753
14754         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
14755
14756 2000-03-16  Olivier Galibert  <galibert@pobox.com>
14757
14758         * emacs.c (Frunning_temacs_p): Revert previous patch.
14759         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
14760
14761 2000-03-16  Andy Piper  <andy@xemacs.org>
14762
14763         * glyphs-x.c (x_tab_control_update): if no widget values then
14764         return.
14765
14766         * NEWS: update for new features.
14767
14768         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
14769         synthetic event to the native system.
14770         (reinit_vars_of_event_Xt): set force_event_pending to
14771         emacs_Xt_force_event_pending.
14772
14773         * events.h (struct event_stream): add force_event_pending.
14774
14775         * specifier.c (recompute_one_cached_specifier_in_window): add
14776         comment.
14777
14778         * redisplay.c (redisplay_frame): don't call
14779         update_frame_subwindows. Reset subwindow cachels when
14780         subwindows_changed, removing this was an optimization too far.
14781
14782         * redisplay-output.c (compare_runes): reorganize so that we catch
14783         glyph changes when we want them. Set optimize_output when this
14784         would help layouts.
14785         (redisplay_output_layout): remove frame_really_changed, use
14786         optimize_output instead.
14787
14788         * redisplay-msw.c (mswindows_output_display_block): reset
14789         optimize_output after outputting a glyph.
14790         * redisplay-x.c (x_output_display_block): ditto.
14791         * redisplay-tty.c (tty_output_display_block): ditto.
14792
14793         * gutter.c: (specifier_vars_of_gutter): use new spec changed
14794         functions.
14795         (gutter_specs_changed): do specific gutter positions.
14796         (top_gutter_specs_changed): new function. Only update the
14797         specified gutter specs.
14798         (bottom_gutter_specs_changed): ditto.
14799         (left_gutter_specs_changed): ditto.
14800         (right_gutter_specs_changed): ditto.
14801
14802         * gui.c (gui_item_hash_internal): new function, does a real hash.
14803         (gui_item_id_hash): use it.
14804         (gui_item_hash): hash the eval'ed gui_item.
14805
14806         * gui-x.c (popup_selection_callback): send an eval event to call
14807         Fupdate_widget_instances.
14808
14809         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
14810         to call Fupdate_widget_instances.
14811
14812         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
14813         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
14814
14815         * glyphs.c: (update_frame_subwindows): deleted.
14816         (Fupdate_widget_instances): new function for updating the dirty
14817         state of widgets that might have changed.
14818         (syms_of_glyphs): add Qupdate_widget_instances.
14819         (full_list_hash): hash a list completely.
14820         (image_instance_hash): use it for items and properties.
14821
14822         * frame-msw.c (mswindows_size_frame_internal): remove unused
14823         variable.
14824
14825         * faces.h (struct face_cachel): fix comment.
14826
14827         * event-stream.c (Fdispatch_non_command_events): new
14828         function. Process non-command events, forcing an event cycle
14829         beforehand.
14830         (syms_of_event_stream): declare.
14831         (event_stream_force_event_pending): new function. Force an event
14832         on the native event queue so that an event cycle will occur next
14833         time we check.
14834
14835         * event-msw.c:
14836         (struct ntpipe_shove_stream):
14837         (mswindows_enqueue_dispatch_event):
14838         (mswindows_dequeue_dispatch_event):
14839         (mswindows_cancel_dispatch_event):
14840         (mswindows_pump_outstanding_events):
14841         (mswindows_drain_windows_queue):
14842         (mswindows_handle_paint):
14843         (mswindows_wnd_proc):
14844         (mswindows_key_to_emacs_keysym):
14845         (get_process_input_waitable):
14846         (emacs_mswindows_delete_stream_pair): re-indent file.
14847         (mswindows_need_event): do not process further fds if the windows
14848         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
14849         fixes the 100% cpu problem.
14850         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
14851
14852 2000-03-15  Olivier Galibert  <galibert@pobox.com>
14853
14854         * alloc.h: New.
14855         * dumper.h: New.
14856         * dumper.c: New.
14857
14858         * emacs.c: Moved dump file searching to dumper.c.
14859         (Frunning_temacs_p): Fixed.
14860
14861         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
14862         last_lrecord_type_index_assigned.
14863
14864 2000-02-20  Olivier Galibert  <galibert@pobox.com>
14865
14866         * symsinit.h: Added reinit parameter to init_console_stream
14867         declaration.
14868
14869         * lisp.h: Added file parameter to pdump_load declaration.
14870
14871         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
14872         support.  Added dump file searching.
14873
14874         * config.h.in: Added EMACS_PROGNAME.
14875
14876         * console-stream.c (init_console_stream): Fix reinitialisation
14877         when running from temacs.
14878
14879         * alloc.c (pdump): Add id support.
14880         (pdump_load): Add file parameter and signature/id support.
14881
14882         * Makefile.in.in: Add full pdump support.
14883
14884 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
14885
14886         * postgresql.c: Update documentation to reflect latest code
14887         status.
14888         (print_result): Show tuple counts in printed representation when
14889         appropriate.
14890         (Fpq_put_nbytes): MULE-ize.
14891         (Fpq_get_line_async): Ditto.
14892
14893 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
14894
14895         * postgresql.c (Fpq_lo_import): Fix return value.
14896         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
14897
14898 2000-03-13  Ben Wing  <ben@xemacs.org>
14899
14900         * alloc.c (pdump_load):
14901         Fix compile warning under mswin.
14902
14903 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
14904
14905         * postgresql.c: Mule-ization, bug fixes.
14906         Use PG_CODING to encapsulate coding system name changes.
14907         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
14908         (pg-coding-system): Create.
14909
14910         (Fpq_conn_defaults): Mule-ize.
14911         (Fpq_connectdb): Mule-ize & bug fix.
14912         (Fpq_connect_start): Mule-ize.
14913         (Fpq_set_client_encoding): Mule-ize.
14914         (Fpq_finish): Document `DEAD' connection status.
14915         (Fpq_clear): Ditto.
14916         (Fpq_pgconn): Mule-ize.
14917         (Fpq_exec): Mule-ize & bug fix.
14918         (Fpq_send_query): Ditto.
14919         (Fpq_get_result): Ditto.
14920         (Fpq_res_status): Mule-ize.
14921         (Fpq_result_error_message): Mule-ize.
14922         (Fpq_ntuples): fix comments.
14923         (Fpq_fname): Mule-ize.
14924         (Fpq_fnumber): Mule-ize.
14925         (Fpq_ftype): fix comments.
14926         (Fpq_get_value): Mule-ize.
14927         (Fpq_cmd_status): Ditto.
14928         (Fpq_cmd_tuples): Ditto.
14929         (Fpq_oid_value): Ditto.
14930         (Fpq_notifies): Ditto.
14931         (Fpq_lo_import): Ditto.
14932         (Fpq_lo_export): Ditto.
14933         (Fpq_get_line): Ditto.
14934         (Fpq_put_line): Mule-ize and bug fix.
14935         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
14936
14937 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
14938
14939         * postgresql.c (vars_of_postgresql): Mule-ize.
14940         (Fpq_conn_defaults): Ditto.
14941
14942 2000-03-12  Ben Wing  <ben@xemacs.org>
14943
14944         * alloc.c (Fmake_byte_code):
14945         * alloc.c (debug_string_purity_print):
14946         * alloc.c (pdump_backtrace):
14947         * alloc.c (pdump_get_indirect_count):
14948         * alloc.c (pdump_register_sub):
14949         * alloc.c (pdump_register_object):
14950         * alloc.c (pdump_register_struct):
14951         * alloc.c (pdump_dump_data):
14952         * alloc.c (pdump_reloc_one):
14953         Minor cleanups.
14954
14955         * console-msw.c:
14956         * console-msw.c (GetConsoleHwnd):
14957         * console-msw.c (msw_hide_console):
14958         * console-msw.c (msw_show_console):
14959         * console-msw.c (msw_ensure_console_buffered):
14960         * console-msw.c (msw_output_console_string):
14961         * console-msw.c (console_type_create_mswindows):
14962
14963         a) Added functions to manipulate the console window for use with
14964         shell support.
14965
14966         b) Added support for writing text to the console, which is now
14967         used under Windows when xemacs is not being run non-interactively,
14968         to write text that would otherwise be destined for stdout because
14969         under these circumstances, text written to stdout tends to
14970         disappear and not be seen.
14971
14972         * console-msw.h:
14973         * event-Xt.c:
14974         * event-Xt.c (x_event_to_emacs_event):
14975         * event-Xt.c (describe_event_window):
14976         * events-mod.h (XEMACS_MOD_CONTROL):
14977         * events.c:
14978         * events.c (Fmake_event):
14979         * events.c (character_to_event):
14980         * events.c (event_to_character):
14981         * events.c (format_event_object):
14982         * events.c (Fevent_modifiers):
14983         * events.h:
14984         * events.h (struct key_data):
14985         * events.h (struct button_data):
14986         * events.h (struct misc_user_data):
14987         * frame-x.c (Fcde_start_drag_internal):
14988         * frame-x.c (Foffix_start_drag_internal):
14989         * gpmevent.c (Freceive_gpm_event):
14990         * keymap.c:
14991         * keymap.c (bucky_sym_to_bucky_bit):
14992         * keymap.c (control_meta_superify):
14993         * keymap.c (make_key_description):
14994         * keymap.c (keymap_lookup_directly):
14995         * keymap.c (create_bucky_submap):
14996         * keymap.c (keymap_store):
14997         * keymap.c (define_key_check_and_coerce_keysym):
14998         * keymap.c (define_key_parser):
14999         * keymap.c (define_key_alternate_name):
15000         * keymap.c (Fdefine_key):
15001         * keymap.c (raw_lookup_key_mapper):
15002         * keymap.c (struct map_keymap_unsorted_closure):
15003         * keymap.c (map_keymap_unsorted_mapper):
15004         * keymap.c (map_keymap_sort_predicate):
15005         * keymap.c (map_keymap_sorted):
15006         * keymap.c (accessible_keymaps_mapper_1):
15007         * keymap.c (where_is_recursive_mapper):
15008         * keymap.c (describe_map_mapper):
15009         * keymap.c (describe_map_sort_predicate):
15010         * keymap.c (describe_map):
15011         * keymap.c (complex_vars_of_keymap):
15012         And a number of other files, the key modifier preprocessor
15013         constants that xemacs uses have names that conflict with constants
15014         defined under MS Windows for other purposes, so they were renamed
15015         to begin with the prefix XEMACS_. The variables that hold such
15016         modifiers were changed to consistently be of type int to fix
15017         various compile warnings.
15018
15019         * console.c (complex_vars_of_console):
15020         * device.c:
15021         * device-msw.c:
15022         * device-msw.c (mswindows_finish_init_device):
15023         * device-msw.c (msw_get_workspace_coords):
15024         * device-msw.c (mswindows_device_system_metrics):
15025         and various other files, added support for a new
15026         device property called offset-workspace which returns the position
15027         of the upper left corner of the workspace area and goes along with
15028         the existing size-workspace property.
15029
15030         * dialog-msw.c:
15031         * dialog-msw.c (push_bufbyte_string_as_unicode):
15032         * dialog-msw.c (mswindows_popup_dialog_box):
15033         Added support for XEmacs-style accelerator specifications in
15034         button text.  Note: I didn't add support for this under X Windows,
15035         and somebody needs to do this.
15036
15037         * dialog.c:
15038         * dialog.c (Fpopup_dialog_box):
15039         Documented the support for accelerators that was just mentioned.
15040
15041         editfns.c (get_home_directory): Changed behavior under Windows
15042         when HOME not defined; former behavior was irretrievably broken.
15043
15044         * emacs.c:
15045         * emacs.c (main_1):
15046         * emacs.c (main):
15047         * minibuf.c (clear_echo_area_internal):
15048         * minibuf.c (echo_area_append):
15049         * print.c:
15050         * print.c (std_handle_out_external):
15051         * print.c (std_handle_out_va):
15052         * print.c (fatal):
15053         * print.c (write_string_to_stdio_stream):
15054         * print.c (output_string):
15055         * print.c (debug_print):
15056         * print.c (debug_backtrace):
15057         * print.c (debug_short_backtrace):
15058         Cleaned up the code that prints text to stdout so that this can be
15059         changed to output into a console window instead under MS Windows,
15060         as described above.
15061
15062         * eval.c:
15063         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
15064         * eval.c (internal_catch):
15065         * eval.c (unwind_to_catch):
15066         * eval.c (throw_or_bomb_out):
15067         * eval.c (condition_case_1):
15068         * eval.c (signal_1):
15069         * eval.c (check_error_state_sanity):
15070         * eval.c (call_with_suspended_errors_1):
15071         * eval.c (call_with_suspended_errors):
15072         * eval.c (reinit_vars_of_eval):
15073         Added code to catch throw loops and check for a pesky bug that may
15074         be gone now.
15075
15076         * event-msw.c:
15077         * event-msw.c (key_needs_default_processing_p):
15078         * event-msw.c (mswindows_wnd_proc):
15079         * event-msw.c (mswindows_modifier_state):
15080         * event-msw.c (emacs_mswindows_quit_p):
15081         * event-msw.c (vars_of_event_mswindows):
15082         a) Added support for using the alt key to select menu items as is
15083         standard under MS Windows.  This is controlled using the variable
15084         menu-accelerator-enabled, just like under X Windows.  There is an
15085         option on the options menu to turn this support on.  I really
15086         think that it should be on by default under Windows, but I'm not
15087         going to make this change yet.
15088
15089         b)  Added support for dynamic display size changes under Windows.
15090
15091         * event-stream.c:
15092         * event-stream.c (maybe_echo_keys):
15093         * event-stream.c (Fnext_event):
15094         * event-stream.c (command_builder_find_leaf):
15095         * event-stream.c (lookup_command_event):
15096         * event-stream.c (execute_command_event):
15097         * event-stream.c (pre_command_hook):
15098         * event-stream.c (post_command_hook):
15099         * event-stream.c (syms_of_event_stream):
15100         * event-stream.c (vars_of_event_stream):
15101         * event-stream.c (complex_vars_of_event_stream):
15102         * events.h (struct command_builder):
15103
15104         a) Tried to clean up a little bit the horribly written x-specific
15105         accelerator code that crept into this file.  I moved this code
15106         into menubar-x.c where it belongs. I also needed to move the
15107         command builder structure into the file events.h because it is
15108         accessed directly by this accelerator code.  What I didn't do, but
15109         which should be done at some point, is to properly abstract this
15110         code using device methods instead of the kludgy way that it
15111         currently hooks into the event code.
15112
15113         b) Added the lisp variables this-command-properties and
15114         last-command- properties, which should be used to synchronize two
15115         adjacent commands in preference to playing games with the variable
15116         this-command, which is typically what happens.
15117
15118         c) Added some slightly nasty code to hook into the lisp support
15119         for shifted- motion-key selection.  This is actually necessary for
15120         somewhat complicated reasons, which are described in
15121         simple.el. (NB: I think the proper thing would be to have the code
15122         that calls the pre and post command hooks also call out to generic
15123         lisp functions in simple.el, where all built-in stuff could be
15124         added.  I will think about this more.)
15125
15126         * event-unixoid.c (poll_fds_for_input):
15127         * lread.c (readchar):
15128         * redisplay-tty.c (tty_clear_frame):
15129         * redisplay-x.c (x_get_gc):
15130         * signal.c (interrupt_signal):
15131         And a whole bunch of other files: fixed up places that printed
15132         directly to stderr to instead call the function stderr_out so that
15133         the changes I made under Windows work correctly.
15134
15135         * filemode.c (mode_string):
15136         Warning fixes.
15137
15138         * frame-msw.c:
15139         * frame-msw.c (mswindows_size_frame_internal):
15140         Fixed the computation of frame size and position to keep the frame
15141         within the workspace area, rather than within the physical
15142         dimensions of the screen, so that the frame doesn't overlap window
15143         manager decorations, such as the start menu and toolbar, typically
15144         at the bottom of the screen.
15145
15146         * frame.c (vars_of_frame):
15147         Changed the default frame title format under MS Windows to consist
15148         of buffername-XEmacs, which is standard under MS Windows.  I think
15149         it might be a good idea to change this everywhere because I think
15150         it is superior to the current frame title format, but this is the
15151         kind of change that is likely to cause some people to get annoyed,
15152         so I'm not making it.
15153
15154         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
15155
15156         * gui-msw.c (mswindows_handle_gui_wm_command):
15157         Fixed compile warnings.
15158
15159         * gui-x.c:
15160         * gui-x.c (strdup_and_add_accel):
15161         * gui-x.c (button_item_to_widget_value):
15162         * gui-x.h:
15163         Added code to automatically put an accelerator onto the beginning
15164         of menu items that don't have one as is now the standard, and is
15165         described more later.  Also fixed things so that the menu item
15166         name can be an evaluated expression, again a new standard.
15167
15168         * gui.c:
15169         * gui.c (gui_item_add_keyval_pair):
15170         * gui.c (make_gui_item_from_keywords_internal):
15171         * gui.c (gui_add_item_keywords_to_plist):
15172         * gui.c (gui_item_accelerator):
15173         * gui.c (gui_name_accelerator):
15174         * gui.c (gui_item_included_p):
15175         * gui.c (gui_item_display_flush_left):
15176         * gui.c (gui_item_display_flush_right):
15177         * gui.c (parse_gui_item_tree_item):
15178         * gui.c (parse_gui_item_tree_children):
15179         * gui.c (parse_gui_item_tree_list):
15180         Mule-ized.  Cleanup.  GCPRO addition.
15181
15182         * line-number.c (buffer_line_number):
15183         * lisp.h:
15184         * lisp.h (EMACS_INT_MAX):
15185         Added the manifest constant EMACS_INT_MIN corresponding to the
15186         existing constant EMACS_INT_MAX.  This is partially to fix compile
15187         warnings under Windows, and partly for cleanliness.
15188
15189         * menubar-msw.c:
15190         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
15191         * menubar-msw.c (msw_translate_menu_or_dialog_item):
15192         * menubar-msw.c (displayable_menu_item):
15193         * menubar-msw.c (populate_menu_add_item):
15194         * menubar-msw.c (populate_or_checksum_helper):
15195         * menubar-msw.c (populate_menu):
15196         * menubar-msw.c (update_frame_menubar_maybe):
15197         * menubar-msw.c (prune_menubar):
15198         * menubar-msw.c (msw_char_is_accelerator):
15199         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
15200         * menubar-msw.c (mswindows_handle_wm_command):
15201         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
15202         * menubar-msw.c (mswindows_handle_wm_initmenu):
15203         * menubar-msw.c (mswindows_update_frame_menubars):
15204         * menubar-msw.c (mswindows_free_frame_menubars):
15205         * menubar-msw.c (mswindows_popup_menu):
15206         Fixed a bug in handling accelerators where an extra character
15207         would be displayed in the menu item.  Also generalized the
15208         function displayable_menu_item because it is now used by the
15209         dialog box code as well.  And finally, added code in the functions
15210         that create the menubar to extract a list of accelerators for the
15211         top level menubar, which is used in the event code to determine
15212         whether a particular alt-key combination should be used to invoke
15213         a menu item, or should be passed through to access the standard
15214         XEmacs keymap binding for this key combination.
15215
15216         Much needed GCPROing.
15217
15218         * menubar-x.c:
15219         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
15220         * menubar-x.c (menu_item_descriptor_to_widget_value):
15221         * menubar-x.c (restore_in_menu_callback):
15222         * menubar-x.c (x_popup_menu):
15223         * menubar-x.c (menu_move_up):
15224         * menubar-x.c (menu_move_down):
15225         * menubar-x.c (menu_move_left):
15226         * menubar-x.c (menu_move_right):
15227         * menubar-x.c (menu_select_item):
15228         * menubar-x.c (command_builder_operate_menu_accelerator):
15229         * menubar-x.c (menu_accelerator_junk_on_error):
15230         * menubar-x.c (command_builder_find_menu_accelerator):
15231         * menubar-x.c (Faccelerate_menu):
15232         * menubar.h:
15233         Moved a whole bunch of code here that was previously in
15234         event-stream.c as described above.  There is also code connected
15235         to the new standard of adding an accelerator to the beginning of
15236         menu items that don't have one as described above and below.
15237
15238         * menubar.c:
15239         * menubar.c (menu_parse_submenu_keywords):
15240         * menubar.c (Fmenu_find_real_submenu):
15241         * menubar.c (Fnormalize_menu_item_name):
15242         * menubar.c (syms_of_menubar):
15243         * menubar.c (vars_of_menubar):
15244         * menubar.c (complex_vars_of_menubar):
15245
15246         a) Cleaned up a bunch of documentation and improved it.
15247
15248         b) XEmacs now automatically adds an accelerator onto the beginning
15249         of any menu items that don't have one.  I did this because there
15250         will inevitably be some menu items on the main menubar that don't
15251         have accelerators on them because the package that adds that
15252         particular menu item hasn't yet been fixed up to have accelerators
15253         in them and it looked rather strange to have some items with and
15254         some items without accelerators, especially since even in items
15255         without accelerators, you can, at least under windows, still
15256         access the item through an accelerator corresponding to the first
15257         character in the item's name.  If people don't like this behavior,
15258         I can add a variable to turn it off optionally, but I'm not sure
15259         this is a good idea because we really do need to have accelerators
15260         on all of the menu items, and if a package doesn't like the
15261         accelerators being put on the first character, then it should put
15262         the accelerators where they belong.
15263
15264         c) I made a behavior change, which is that the descriptor that
15265         specifies the text of the menu item, which formerly was just a
15266         string, can now also be an evaluated expression.  This makes this
15267         descriptor parallel with all of the others, which could also be
15268         evaluated expressions.  This also obviates the need for the
15269         keyword :label, which was previously listed in the documentation
15270         as unimplemented, and which was for the same purpose.
15271
15272         d) GCPROing.
15273
15274         * ntproc.c:
15275         * ntproc.c (new_child):
15276         * ntproc.c (sys_spawnve):
15277         * ntproc.c (find_child_console):
15278         * ntproc.c (sys_kill):
15279         Fixed compile warnings.  By the way, this file should really go
15280         away entirely, and this will happen as soon as Kirill makes his
15281         final round of process cleanups, which affect the function
15282         call-process.
15283
15284         * process-nt.c:
15285         * process-nt.c (struct nt_process_data):
15286         * process-nt.c (find_process_from_pid):
15287         * process-nt.c (send_signal_the_nt_way):
15288         * process-nt.c (enable_child_signals):
15289         * process-nt.c (find_child_console):
15290         * process-nt.c (send_signal_the_95_way):
15291         * process-nt.c (nt_finalize_process_data):
15292         * process-nt.c (ensure_console_window_exists):
15293         * process-nt.c (nt_create_process):
15294         * process-nt.c (nt_kill_child_process):
15295         * process-nt.c (nt_kill_process_by_pid):
15296         * process-nt.c (nt_open_network_stream):
15297         * process-nt.c (vars_of_process_nt):
15298         Copied over code from Emacs 20.5 to correctly send signals to sub-
15299         processes under Windows 95.  Also added code to automatically
15300         create and hide console window when a sub-process is created under
15301         Windows 95, which obviates the need for the separate runemacs.exe
15302         executable, and finally implemented some variables that were
15303         implemented in Emacs 20.5, but previously not in XEmacs.  These
15304         include mswindows- start-process-share-console and
15305         mswindows-start-process-inherit-error-mode. (Both of these only
15306         apply to Windows 95.)
15307
15308         * regex.c (regex_compile): Fixed a compile warning.
15309
15310         * select-msw.c:
15311         * select-msw.c (mswindows_own_selection):
15312         * select-msw.c (mswindows_get_foreign_selection):
15313         * select-msw.c (mswindows_disown_selection):
15314         * select-msw.c (console_type_create_select_mswindows):
15315         * select-msw.c (syms_of_select_mswindows):
15316         Cleaned up the file and implemented the device method
15317         selection_exists_p, which had accidentally been left out.  Also
15318         removed four lisp functions that were remnants from before the
15319         time when the selection code was properly device abstracted.
15320         These functions are no longer needed because there are generic
15321         equivalents, and because they were added recently and don't exist
15322         in FSF Emacs, I don't think there's any problem with just deleting
15323         them.
15324
15325         * sysdep.c:
15326         * sysdep.c (sys_subshell):
15327         Fixed a compile warning, although in this case there's probably
15328         something wrong with this code, and it ought to be looked into
15329         more thoroughly by somebody who understands it.
15330
15331         * window.c:
15332         * window.c (Fwindow_text_area_height):
15333         * window.c (Fwindow_width):
15334         * window.c (Fwindow_full_width):
15335         * window.c (Fwindow_pixel_width):
15336         * window.c (debug_print_window):
15337         * window.c (syms_of_window):
15338         Added functions window-text-area-height and window-full-width,
15339         which are functions for returning various width and height
15340         characteristics of a window. (One of these functions is necessary
15341         for making the file dialog box work correctly, and the other one
15342         was added for completeness.)  Also added a table to the
15343         documentation for window-height which describes the entire scheme
15344         for accessing width and height characteristics of a window.
15345
15346 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15347
15348         * nt.c (fstat): Added a comment for another problem with
15349         non-encapsulated [f]stat(), reported by Adrian Aichner
15350         <aichner@ecf.teradyne.com>.
15351
15352 2000-03-11  Andy Piper  <andy@xemacs.org>
15353
15354         * window.c (make_dummy_parent): initialize subwindow instance
15355         cache.
15356         (Fset_window_configuration): zero extent_modiff.
15357
15358 2000-03-10  Andy Piper  <andy@xemacs.org>
15359
15360         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
15361         more changes can be triggered.
15362         (Fredisplay_frame): ditto.
15363         (Fredraw_device): ditto.
15364         (Fredisplay_device): ditto.
15365         (redisplay_frame): make non-static.
15366         (redisplay_frame): call update_frame_gutter_geometry outside of
15367         display proper.
15368
15369         * gutter.h: declare update_frame_gutter_geometry.
15370
15371         * redisplay.h: declare redisplay_frame.
15372
15373         * gutter.c (update_frame_gutter_geometry): move geometry changes
15374         in update_frame_gutters here. Geometry changes can only occur
15375         outside of redisplay.
15376         (update_frame_gutters): remove geometry change code.
15377         (Fredisplay_gutter_area): make sure that we are in display when we
15378         update and that we have flushed any size changes.
15379
15380 2000-03-11  Andy Piper  <andy@xemacs.org>
15381
15382         * alloc.c (pdump_dump_data): remove i & count shadows.
15383
15384 2000-02-27  Mike Alexander  <mta@arbortext.com>
15385
15386         * sysdep.h: Declare pdump_read_file
15387
15388         * sysdep.c (pdump_read_file): New function
15389
15390         * alloc.c (pdump_load): Call pdump_read_file to get the portable
15391         dump data
15392
15393 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
15394
15395         * lrecord.h: add `lrecord_type_pgsetenv'.
15396
15397 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
15398
15399         * symsinit.h: declare (vars|syms)_of* functions.
15400         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
15401
15402 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
15403
15404         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
15405
15406         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
15407         GCCs.
15408
15409         * emacs.c (main_1): Call postgres initialization code.
15410
15411         * postgresql.h: New file.  PostgreSQL RDBMS support.
15412         * postgresql.c: New file.
15413
15414 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
15415
15416         * redisplay-output.c (redisplay_output_display_block): Disable
15417         redundant code.
15418
15419 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
15420
15421         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
15422         (Fcanna_henkan_next): Ditto.
15423         (Fcanna_bunsetu_henkou): Ditto.
15424         (Fcanna_henkan_kakutei): Ditto.
15425         (Fcanna_henkan_end): Ditto.
15426         (Fcanna_henkan_quit): Ditto.
15427         (Fcanna_henkan_next): Set retun value correctly.
15428         (c2mu): Use unsigned char instead of signed char.
15429
15430 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
15431
15432         * emacs.c (main_1): Always call syms_of_gui.
15433         * inline.c: include gui.h
15434
15435 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
15436
15437         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
15438         converted to Lisp_Object.
15439         (Qtop_bottom): New variable.
15440         (syms_of_redisplay): Initialize it.
15441         * redisplay.h (Vvisible_bell): Ditto.
15442         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
15443         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
15444         only flash top and bottom.
15445
15446 2000-03-08  Andy Piper  <andy@xemacs.org>
15447
15448         * buffer.c (Frename_buffer): record new buffer name the right way.
15449
15450 2000-03-08  Andy Piper  <andy@xemacs.org>
15451
15452         * glyphs.c (update_subwindow): increase hash depth so that widget
15453         items get picked up properly.
15454
15455         * redisplay-output.c (compare_runes): increase hash depth so that
15456         widget items get picked up properly.
15457
15458 2000-03-08  Andy Piper  <andy@xemacs.org>
15459
15460         * gutter.c (output_gutter): add some debug.
15461
15462         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
15463         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
15464         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
15465
15466         * redisplay-output.c (compare_runes): use display_hash to
15467         determine if glyphs really are not the same.
15468
15469         * glyphs.c (update_subwindow): check display_hash to see if
15470         anything really needs to be updated. If not then do
15471         nothing. Record the display_hash after updating.
15472         (image_instance_equal): compare the image_instance face also.
15473
15474 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
15475
15476         * redisplay.h: Fix comment style.
15477
15478 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15479
15480         * consle-msw.h (struct mswindows_frame):
15481         Added new member paint_pending to indicate whether a WM_PAINT
15482         magic event has been queued for this frame.
15483
15484         * event-msw.c (mswindows_drain_windows_queue):
15485         Don't queue a WM_PAINT magic event if one is already queued.
15486         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
15487
15488         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
15489
15490 2000-03-07  Didier Verna  <didier@xemacs.org>
15491
15492         * dired.c: #include `regex.h' after `sysfile.h'.
15493
15494 2000-03-06  Martin Buchholz  <martin@xemacs.org>
15495
15496         * sound.c (init_nas_sound): Fix compiler warning.
15497
15498         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
15499         (FREE_STRUCT_P):
15500         (MARK_STRUCT_AS_FREE):
15501         (MARK_STRUCT_AS_NOT_FREE):
15502         Make `gcc -fstrict-aliasing' work properly.
15503
15504 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15505
15506         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
15507         (mswindows_delete_device): Call CoUnnitialize().
15508
15509         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
15510
15511 2000-02-25    <CraigL@DyCon.com>
15512
15513         * process-nt.c: MinGW now has <shellapi.h>, but still needs
15514         <errno.h>.
15515
15516         * sysdep.c: This extern declaration for environ prevents MinGW
15517         from finding the variable in CRTDLL.DLL.
15518
15519         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
15520         windows headers.
15521         (SHGFI_EXETYPE): ..
15522         (WM_MOUSEWHEEL): ..
15523         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
15524         definitions.
15525         (MMRESULT): Removed, now defined in cygwin's windows headers.
15526         (TIMECAPS): ..
15527         (uid_t,gid_t,pid_t,ssize_t): ..
15528         (_timeb): Removed, MinGW defines both _timeb and timeb.
15529         (HAVE_H_ERRNO): Added.
15530         (HAVE_TZNAME): Added, configure is not detecting this.
15531
15532 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
15533
15534         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
15535         * syntax.c (syntax_match): Use it.
15536
15537         * cmds.c: Import auto-fill-chars from FSF Emacs.
15538         (Vauto_fill_chars): New variables.
15539         (internal_self_insert): Check Vauto_fill_chars.
15540         (vars_of_cmds):
15541         Declare auto-fill-chars as a Lisp variable and initialize it.
15542
15543 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15544
15545         * fileio.c (Fmake_symbolic_link):
15546         (Ffile_symlink_p):
15547         Run handlers even if local machine doesn't have symlinks.
15548
15549 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15550
15551         * event-msw.c (mswindows_drain_windows_queue):
15552         Don't generate paint magic events for non-XEmacs frames.
15553
15554 2000-03-05  Andy Piper  <andy@xemacs.org>
15555
15556         * redisplay.c (redisplay_frame): generate_displayable_area and
15557         friends assumes that we are not in GC, we therefore have to make
15558         sure that this doesn't happen.
15559
15560         * gutter.c (calculate_gutter_size): generate_displayable_area
15561         assumes that we are not in GC, we therefore have to make sure that
15562         this doesn't happen.
15563
15564 2000-03-05  Martin Buchholz  <martin@xemacs.org>
15565
15566         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
15567
15568 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
15569
15570         * redisplay.c (regenerate_window): Make sure we set a sane value
15571         for end_pos even if we jump out of the loop.
15572         (regenerate_window): Answer Ben's question :-).
15573         (start_end_of_last_line): Add may_error argument.
15574         (start_of_last_line):
15575         (end_of_last_line): Pass may_error = 0.
15576         (end_of_last_line_may_error): New function.
15577         (pixel_to_glyph_translation): Use it, so we don't crash in
15578         event_to_glyph.
15579
15580 2000-03-04  Andy Piper  <andy@xemacs.org>
15581
15582         * window.h (struct window): add gutter_extent_modiff.
15583
15584         * window.c (allocate_window): zero out gutter_extent_modiff.
15585
15586         * redisplay.h: declare sync_display_line_structs.
15587
15588         * redisplay.c (add_glyph_rune): add a better comment.
15589
15590         * redisplay-output.c (sync_display_line_structs): made non-static.
15591         (compare_runes): remove unneccesary glyph cachel access.
15592
15593         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
15594
15595         * gutter.c (output_gutter): don't output the gutter if extent
15596         changes only involve extents in buffers. use 4 sets of display
15597         lines.
15598         (gutter_extent_signal_changed_region_maybe): new function. Mark
15599         extents in gutters as changed.
15600         (update_frame_gutters): use 4 sets of display lines.
15601         (reset_gutter_display_lines): ditto.
15602         (free_frame_gutters): ditto.
15603         (redraw_exposed_gutter): force output of gutters.
15604
15605         * frame.h (struct frame): add 4 sets of gutter display lines.
15606
15607         * extents.c: (extent_changed_for_redisplay): signal changes to
15608         extents in strings in the gutter as well as extents in buffers.
15609
15610 2000-03-02  Andy Piper  <andy@xemacs.org>
15611
15612         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
15613
15614         * frame.c (Fmake_frame): make sure the gutters get initialized
15615         after the frame is visible.
15616         (set_frame_selected_window): re-arrange compilation macros a
15617         little.
15618         (change_frame_size_1): mark gutters changed.
15619
15620         * device.c (Fset_device_class): mark gutters changed.
15621
15622 2000-03-01  Andy Piper  <andy@xemacs.org>
15623
15624         * window.c (window_top_frame_gutter_height): deleted.
15625         (window_bottom_frame_gutter_height): ditto.
15626         (window_left_frame_gutter_height): ditto.
15627         (window_right_frame_gutter_height): ditto.
15628         (window_top_gutter_height): don't use them.
15629         (window_bottom_gutter_height): ditto.
15630         (window_left_gutter_width): ditto.
15631         (window_right_gutter_width): ditto.
15632         (Fsplit_window): ditto.
15633         (Fwindow_pixel_edges): don't use border dimensions here.
15634
15635         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
15636         (update_scrollbar_instance): ditto.
15637
15638         * redisplay.c (generate_modeline): don't take gutters into account.
15639         (generate_modeline): ditto.
15640         (redisplay_frame): small gutter display optimization.
15641
15642         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
15643
15644         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
15645         gutters into account.
15646
15647         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
15648         for window position and type.
15649
15650         * gutter.c (get_gutter_coords): fix for frame gutters.
15651         (update_frame_gutters): update frame geometry if the gutters have
15652         changed.
15653         (init_frame_gutters): record current gutter geometries.
15654
15655         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
15656         var.
15657         (mswindows_widget_instantiate): ditto.
15658
15659         * frame.h (struct frame): add current_gutter_bounds.
15660
15661         * frame.c (change_frame_size_1): position window and minibuffer
15662         appropriately taking into account the frame gutters.
15663
15664         * frame-x.c: (x_initialize_frame_size): take into account the
15665         frame gutters.
15666
15667 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
15668
15669         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
15670
15671 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
15672
15673         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
15674
15675 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15676
15677         * file-coding.c (reset_decoding_stream): Clear previous
15678         detection state when autodetect.
15679
15680 2000-02-29  Didier Verna  <didier@xemacs.org>
15681
15682         * extents.c (set_extent_glyph_1): don't require extents to be
15683         attached.
15684
15685 2000-02-27  Andy Piper  <andy@xemacs.org>
15686
15687         * gutter.c (Fset_default_gutter_position): don't default left and
15688         right gutter visibility to t.
15689         (Fset_default_gutter_position): run
15690         default-gutter-position-changed-hook.
15691         (syms_of_gutter): add default-gutter-position-changed-hook.
15692
15693 2000-02-26  Andy Piper  <andy@xemacs.org>
15694
15695         * specifier.c (Fmake_specifier): add gutter references.
15696
15697         * gutter.h (RAW_WINDOW_GUTTER): new macro.
15698
15699         * lisp.h: declare Fvalid_plist_p.
15700
15701         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
15702         as changed.
15703         (default_gutter_visible_p_changed_in_window): invalidate gutter as
15704         well as its visibility so that it gets reconstructed.
15705         (construct_window_gutter_spec): new function. Construct a string
15706         to be displayed in the gutter from a plist of strings. Take care
15707         to only use elements that are declared as visible.
15708         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
15709         WINDOW_GUTTER.
15710         (gutter_validate): allow plists of strings in the specifier.
15711         (gutter_specs_changed): construct the real_gutter from the gutter
15712         specs using construct_window_gutter_spec.
15713         (gutter_visible_validate): gutter-visible is a new specifier type.
15714         (Fgutter_visible_specifier_p): new function for the new specifier.
15715         (syms_of_gutter): declare gutter-visible and
15716         Fgutter_visible_specifier_p.
15717         (specifier_type_create_gutter): intitalize new gutter-visible
15718         specifier.
15719         (reinit_specifier_type_create_gutter): ditto.
15720         (specifier_vars_of_gutter): use new specifier type for gutter
15721         visibility.
15722         (init_frame_gutters): construct real_gutter correctly.
15723         (Fgutter_specifier_p): beef up documentation.
15724         (Fgutter_size_specifier_p): ditto.
15725
15726         * winslots.h: add real_gutter slots.
15727
15728 2000-02-25  Andy Piper  <andy@xemacs.org>
15729
15730         * device-msw.c: Be kind to older cygwin versions. From Raymond
15731         Toy <toy@rtp.ericsson.se>.
15732
15733         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
15734         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
15735
15736 2000-02-25  Martin Buchholz  <martin@xemacs.org>
15737
15738         * elhash.c (MARK_OBJ): Practice macro hygiene.
15739
15740 2000-02-24  Martin Buchholz  <martin@xemacs.org>
15741
15742         * miscplay.c: s/__inline__/inline/g;
15743         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
15744         (get_device_compdc): INLINE ==> static inline
15745         * *.[ch]: Change INLINE to INLINE_HEADER globally.
15746         find -name '*.h' | \
15747         xargs global-replace \
15748         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
15749
15750 2000-02-25  Andy Piper  <andy@xemacs.org>
15751
15752         * window.c (window_top_frame_gutter_height): new function.
15753         (window_top_window_gutter_height): ditto.
15754         (window_top_gutter_height): use them.
15755         (window_bottom_frame_gutter_height): new function.
15756         (window_bottom_window_gutter_height): ditto.
15757         (window_bottom_gutter_height): use them.
15758         (window_left_window_gutter_width): new function.
15759         (window_left_frame_gutter_width): ditto.
15760         (window_left_gutter_width): use them.
15761         (window_right_window_gutter_width): new function.
15762         (window_right_frame_gutter_width): ditto.
15763         (window_right_gutter_width): use them.
15764         (window_pixel_height): new function. calulate window pixel height
15765         with frame gutter involvement.
15766         (Fsplit_window): calculate new sizes taking frame gutters into
15767         account.
15768         (window_char_height_to_pixel_height): don't include frame gutters.
15769         (window_char_height): use window_pixel_height.
15770         (window_pixheight): rename from window_pixel_height.
15771         (change_window_height): use it.
15772         (window_pixel_height_to_char_height): don't include frame gutters.
15773         (window_char_width_to_pixel_width): ditto.
15774
15775 2000-02-25  Andy Piper  <andy@xemacs.org>
15776
15777         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
15778         if it is.
15779
15780 2000-02-24  Martin Buchholz  <martin@xemacs.org>
15781
15782         * alloc.c (staticpro):
15783         (staticpro_nodump):
15784         (dumpstruct):
15785         (dumpopaque):
15786         (pdump_wire):
15787         (pdump_wire_list):
15788         (compact_string_chars):
15789         (pdump_dump_wired):
15790         Convert:  if (foo) abort();  ==>  assert (! foo);
15791
15792         * eldap.c (Fldap_search_basic):
15793         (Fldap_add):
15794         (Fldap_modify):
15795         (Fldap_delete):
15796         Fix compiler warnings, and possible crashes if (random) return
15797         value were to be used.
15798
15799 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15800
15801         * device-msw.c: Workaround ResetDC failure.
15802
15803         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
15804         applying a devmode.
15805
15806         * redisplay-msw.c (get_frame_dc): Added start_page_p.
15807         (mswindows_text_width): Do not start printer page.
15808
15809         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
15810
15811         * glyphs-msw.c: Added image methods to msprinter console and
15812         msprinter-specific image instantiation.
15813
15814 2000-02-20  Mike Alexander  <mta@arbortext.com>
15815
15816         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
15817         to avoid crashes when selection-sets-clipboard is on
15818         (mswindows_own_selection): ditto
15819
15820 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15821
15822         * glyphs-msw.c:
15823         * redisplay-msw.c (get_frame_dc):
15824         (get_frame_compdc):
15825         * console-msw.h:
15826         * device-msw.c (mswindows_init_device):
15827         (mswindows_delete_device):
15828         (msprinter_init_device):
15829         (msprinter_delete_device):
15830         * frame-msw.c (mswindows_init_frame_1):
15831         (mswindows_delete_frame):
15832         (msprinter_init_frame_3):
15833         (msprinter_delete_frame): Move compatible DC to device object from
15834         frame object, for both mswindows and msprinter. Only one at a time
15835         is needed, it is a real waste to have one per frame!
15836
15837 2000-02-23  Andy Piper  <andy@xemacs.org>
15838
15839         * glyphs.c: add dynamic width and height elements.
15840         (image_instance_equal): ditto.
15841
15842         * glyphs-widget.c (widget_query_geometry): calculate width and
15843         height dynamically if required.
15844         (initialize_widget_image_instance): initialize dynamic dimensions.
15845         (widget_instantiate): pick-up dynamic dimensions.
15846
15847         * glyphs.h (struct Lisp_Image_Instance): add width and height for
15848         dynamic determination. Add appropriate macros.
15849
15850         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
15851         dimensions safe.
15852         (WINDOW_GUTTER_SIZE): ditto.
15853         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
15854
15855         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
15856         inline.
15857         (get_frame_dc): ditto.
15858
15859         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
15860         here.
15861
15862 2000-02-23  Martin Buchholz <martin@xemacs.org>
15863
15864         * XEmacs 21.2.31 is released.
15865
15866 2000-02-22  Ben Wing <ben@xemacs.org>
15867
15868         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
15869
15870 2000-02-22  Andy Piper  <andy@xemacs.org>
15871
15872         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
15873
15874 2000-02-21  Mike Sperber <mike@xemacs.org>
15875
15876         * .dbxrc:
15877         * .gdbinit:
15878         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
15879         variables.
15880
15881 2000-02-21  Mike Sperber <mike@xemacs.org>
15882
15883         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
15884
15885 2000-02-21  Martin Buchholz <martin@xemacs.org>
15886
15887         * XEmacs 21.2.30 is released.
15888
15889 2000-02-20  Martin Buchholz  <martin@xemacs.org>
15890
15891         Performance hacking.
15892         * *.c (syms_of_*):
15893         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
15894         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
15895         * emacs.c (main_1):
15896         * lisp.h (DEFUN):
15897         * console.c (DEFVAR_CONSOLE_LOCAL_1):
15898         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
15899         * symeval.h (DEFVAR_SYMVAL_FWD):
15900         * symbols.c (guts_of_unbound_marker):
15901         Make all c_readonly objects also lisp_readonly and marked for life.
15902         * lrecord.h (struct lrecord_implementation):
15903         Document flags better.
15904         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
15905         * lrecord.h (DECLARE_LRECORD):
15906         * lrecord.h (XSETRECORD):
15907         * lrecord.h (RECORDP):
15908         * lrecord.h (RECORD_TYPEP):
15909         * lrecord.h (RECORD_MARKER): New.
15910         * lrecord.h (error_check_*):
15911         * lrecord.h (CONCHECK_NONRECORD):
15912         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
15913         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
15914         * lrecord.h (set_lheader_implementation):
15915         * lrecord.h (enum lrecord_type): New.
15916         * symeval.h (SYMBOL_VALUE_MAGIC_P):
15917         * alloc.c (disksave_object_finalization_1):
15918         * alloc.c (mark_object):
15919         * alloc.c (lrecord_type_index):
15920         * alloc.c (tick_lcrecord_stats):
15921         * alloc.c (Fgarbage_collect):
15922         * alloc.c (init_alloc_once_early):
15923         * alloc.c (pdump_load):
15924         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
15925         * alloc.c (lrecord_type_index): Delete.
15926         Make lisp object type indexes be constant.
15927           Makes (byte-compile) 5% faster.
15928         Put all marker functions into their own array.
15929           Makes (garbage-collect) 5% faster.
15930         Optimize SYMBOL_VALUE_MAGIC_P.
15931           Makes (byte-compile) 2-3% faster.
15932         * config.h.in (gc_checking_assert): New.
15933         * alloc.c: Use gc_checking_assert().
15934         * .dbxrc: Make compatible with new object type implementation.
15935         * .gdbinit: Make compatible with new object type implementation.
15936         * alloc.c: Delete all symbols defined only for debugging, such as
15937         Lisp_Type_Vector and lrecord_charset.
15938
15939 2000-02-21  Andy Piper  <andy@xemacs.org>
15940
15941         * gui-msw.c (Fmswindows_shell_execute): fix file location
15942         problems.
15943
15944         * buffer.c (Fkill_buffer): remove buffer from alist buffer
15945         unshowing so that set_window_buffer doesn't undo
15946         kill_buffer_hook's hard work.
15947
15948         * glyphs-widget.c (tab_control_query_geometry): don't count the
15949         first item when calculating geometry.
15950
15951         * glyphs.c (map_subwindow): remove redundant code.
15952         (update_frame_subwindows): be more circumspect about when to
15953         update subwindows.
15954
15955         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
15956         when items haven't changed. Update faces if faces have changed as
15957         well as just the widget face.
15958         (x_tab_control_update): Update faces if faces have changed as well
15959         as just the widget face.
15960
15961 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15962
15963         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
15964         registration.
15965         (build_syscolor_string): Use mswindows_color_to_string to try to
15966         get a named color.
15967         (mswindows_device_system_metrics): Reverse the foreground and
15968         background colors so that they match the documentation.
15969
15970         * objects-msw.c: (mswindows_X_color_map): tweak some values so
15971         they match the default Windows palette.
15972         (mswindows_color_to_string): New function.
15973
15974 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15975
15976         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
15977
15978 2000-02-18  Olivier Galibert  <galibert@pobox.com>
15979
15980         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
15981         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
15982
15983         * symbols.c (init_symbols_once_early): Removed obsolete
15984         DATA_SEG_BITS related kludge.
15985         (defvar_magic): Ditto.
15986
15987         * malloc.c: Removed obsolete DATA_SEG_BITS
15988         * ralloc.c: Ditto.
15989         * mem-limits.h: Ditto.
15990
15991         * Makefile.in.in: Removed obsolete HAVE_SHM
15992         * emacs.c: Ditto.
15993
15994 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15995
15996         *  device-msw.c (mswindows_delete_device): Free DDE string
15997         handles.
15998
15999 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16000
16001         * keymap.c (get_keyelt):
16002         * unexnt.c (unexec):
16003         * vm-limit.c (memory_warnings):
16004         * ntheap.c (recreate_heap):
16005         * ntheap.h (UNINIT_PTR):
16006         * select-msw.c (Fmswindows_get_clipboard):
16007         (Fmswindows_set_clipboard):
16008         * objects-msw.h (MSWINDOWS_BAD_HFONT):
16009         * objects-msw.c:
16010         * menubar-msw.c (displayable_menu_item):
16011         * glyphs-msw.c:
16012         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
16013         * sysdep.c (sys_subshell):
16014         * process-nt.c (nt_create_process):
16015         * nt.c (normalize_filename):
16016         (dostounix_filename):
16017         (unixtodos_filename):
16018         * ntproc.c (win32_executable_type):
16019         * ntplay.c (play_sound_data_1):
16020         (play_sound_file):
16021         * editfns.c (get_home_directory):
16022         * event-msw.c (struct winsock_stream):
16023         (mswindows_dde_callback):
16024         * device-msw.c (msprinter_init_device):
16025         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
16026
16027         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
16028         mswindows_clear_toolbar were swapped!
16029
16030         * objects-msw.c:(colormap_t):
16031         (fontmap_t):
16032         * emacs.c (struct standard_args): Fixed const jumble.
16033
16034         * glyphs-widget.c (update_widget): Fixed comparison notation.
16035
16036         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
16037
16038         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
16039         __declspec(noreturn) syntax.
16040
16041 2000-02-19  Martin Buchholz  <martin@xemacs.org>
16042
16043         * eldap.c (Fldap_open):
16044         (Fldap_search_basic):
16045         (Fldap_add):
16046         (Fldap_modify):
16047         Use new coding system conversion macros.
16048
16049 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16050
16051         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
16052
16053 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
16054
16055         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
16056         (Fldap_add, Fldap_modify, Fldap_delete): New functions
16057
16058         * eldap.c (Qadd, Qreplace): New constant symbols
16059         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
16060         interruptions by XEmacs signals
16061         Remove unnecessary calls to slow_down_interrupts and
16062         speed_up_interrupts
16063         (Fldap_search_basic): Renamed from Fldap_search_internal
16064         Added new optional parameter VERBOSE that triggers the
16065         display of progress messages
16066         Remove unnecessary calls to slow_down_interrupts and
16067         speed_up_interrupts
16068         LDAP result code analysis rewritten
16069         (Fldap_add, Fldap_modify, Fldap_delete): New functions
16070         (syms_of_eldap): Define the new symbols and functions
16071
16072
16073 2000-02-17  Martin Buchholz  <martin@xemacs.org>
16074
16075         * realpath.c: Determine PATH_MAX maximally portably.
16076
16077         * insdel.c (bytecount_to_charcount): Optimize.
16078         The function used to be optimized for entirely ASCII sequences.
16079         Now it is optimized for successive characters from the same
16080         charset.  This also wins big for _mostly_ ASCII sequences.
16081
16082         * fileio.c (Ffile_truename): convert return from realpath() using
16083         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
16084         - Rewrite GCPROing slightly.
16085
16086         * sysdep.c (sys_open): Do filename conversion, like all other
16087         sys_* functions.  Fixes bug:
16088         (let ((file-name-coding-system 'iso-8859-2))
16089            (write-region x y latin2-name))
16090         ==> writes filename using internal encoding.
16091
16092 2000-02-18  Martin Buchholz  <martin@xemacs.org>
16093
16094         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
16095         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
16096         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
16097         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
16098         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
16099         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
16100         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
16101         (CONST_IF_NOT_DEBUG): Delete.
16102         * alloc.c (this_one_is_unmarkable): Delete.
16103         (mark_object): Don't check for this_one_is_unmarkable. Use the
16104         c_readonly flag instead.
16105         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
16106
16107 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16108
16109         * event-msw.c (mswindows_drain_windows_queue):
16110         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
16111         away redundant repaint events.
16112
16113 2000-02-17  Andy Piper  <andy@xemacs.org>
16114
16115         * redisplay.h: declare mark_redisplay_structs.
16116
16117         * redisplay.c (redisplay_window):
16118         (redisplay_frame): don't check subwindows_state_changed.
16119         (mark_redisplay): mark gutters here.
16120
16121         * glyphs.c: (instantiate_image_instantiator): always layout if we
16122         haven't done so already.
16123         (allocate_image_instance): don't mark as dirty.
16124         (update_subwindow): bind inhibit_quit.
16125
16126         * gutter.c (mark_gutters): new function.
16127
16128         * glyphs-x.c (x_update_widget): Always resize to get round a
16129         widget bug.
16130
16131         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
16132         breaking absolutely everything.
16133
16134         * gutter.h: declare mark_gutters.
16135
16136 2000-02-16  Martin Buchholz <martin@xemacs.org>
16137
16138         * XEmacs 21.2.29 is released.
16139
16140 2000-02-15  Olivier Galibert  <galibert@pobox.com>
16141
16142         * fns.c (size_bit_vector): Fix computation of the size.
16143
16144 2000-02-15  Martin Buchholz  <martin@xemacs.org>
16145
16146         * *.[ch]: Change CONST to const globally.
16147         find -name '*.[ch]' | \
16148         xargs global-replace \
16149         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
16150         - Remove vestigial references to CONST_IS_LOSING
16151
16152 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16153
16154         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
16155         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
16156         events instead of dispatching them directly.
16157         (mswindows_handle_paint): New function to do repainting.
16158         (mswindows_wnd_proc):
16159         (emacs_mswindows_handle_magic_event): Call above function.
16160
16161 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16162
16163         * objects-msw.c (mswindows_create_font_variant): Return the new
16164         font handle.
16165         (initialize_font_instance): Get font metrics from the underlined
16166         variant of the font to cope with the case where the underlined
16167         font has a bigger descent.
16168
16169 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
16170
16171         * gui.c (gui_item_accelerator): Return the first underlined
16172         character in item name.
16173
16174 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16175
16176         * lisp.h: Added Qprinter.
16177
16178         * general.c (syms_of_general): Initialized it.
16179
16180         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
16181         (get_frame_dc):
16182         (get_frame_compdc): Made inline.
16183
16184         * console.h (struct console_methods): Added eject_page method.
16185
16186         * frame.h: Added FRAME_DISPLAY_P and friends.
16187         Aligned backslahes in many macros in more readable fashion.
16188         Added page_number to struct frame, and an accessor macro
16189         for it.
16190
16191         * defice.h: Added DEVICE_DISPLAY_P and friends.
16192
16193         * device.c (Fdevice_printer_p): Used these.
16194
16195         * frame.c (allocate_frame_core): Initialize page number.
16196         (Fprint_job_page_number):
16197         (Fprint_job_eject_page): Implemented.
16198
16199         * frame-msw.c (msprinter_eject_page): Added method.
16200         (msprinter_start_page): Added.
16201
16202         * window.c (Fwindow_truncated_p): Fixed docstring.
16203         (Fwindow_last_line_visible_height): Implemented.
16204
16205 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
16206
16207         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
16208
16209 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16210
16211         * syntax.c (scan_words): Always advance at least one character.
16212
16213 2000-02-13  Andy Piper  <andy@xemacs.org>
16214
16215         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
16216         to make sure the glyph is in the cachels.
16217
16218         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
16219         global image instance flag.
16220         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
16221         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
16222
16223         * glyphs.c (allocate_image_instance): set dirty bits correctly.
16224         (Fset_image_instance_property): mark layout as changed.
16225         (invalidate_glyph_geometry_maybe): mark layout as changed.
16226         (glyph_width): use new NEEDS_LAYOUT macro.
16227         (glyph_ascent): ditto.
16228         (glyph_descent): ditto.
16229         (glyph_height): ditto.
16230         (image_instance_layout): mark layout as clean after laying out.
16231         (update_subwindow): don't mark layout as clean here.
16232
16233         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
16234         should no longer be needed.
16235
16236         * glyphs-x.c (x_update_widget): sanitize asserts.
16237         (x_finalize_image_instance): sanitize assignment to widgets.
16238
16239         * glyphs-widget.c (widget_instantiate): don't need to clear the
16240         layout flag here.
16241
16242 2000-02-13  Martin Buchholz  <martin@xemacs.org>
16243
16244         * sysdep.c (getcwd): Use standard prototype.
16245         * sysdep.h (getcwd): Use standard prototype.
16246
16247         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
16248         (sequence, start, end).
16249         Remove redundant type checking.
16250         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
16251         view of `caller-protects') to avoid a crash where the real fix was
16252         found elsewhere.
16253
16254 2000-02-12  Martin Buchholz  <martin@xemacs.org>
16255
16256         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
16257
16258         * s/sol2.h: Remove feature macro initialization.
16259
16260         * alloc.c (alloc_lcrecord): Add more type checking assertions.
16261         (vector_hash): New.  Code from internal_hash.
16262         * lrecord.h:
16263         Fix up allocation subsystem comments.
16264
16265         * config.h.in: Add __EXTENSIONS__ for Solaris.
16266
16267         * systime.h (EMACS_GETTIMEOFDAY): New.
16268         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
16269         Remove Solaris-specific code.
16270         Use void* for the (ignored) second arg for gettimeofday().
16271
16272         * elhash.c (hash_table_hash): Implement it, finally.
16273         * elhash.c:  Use hashcode_t.
16274
16275         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
16276         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
16277
16278         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
16279         * fns.c (size_bit_vector):
16280         * alloc.c (size_vector):
16281         (make_vector_internal):
16282         (make_bit_vector_internal):
16283         (sweep_bit_vectors_1):
16284         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
16285
16286 2000-02-10  Martin Buchholz  <martin@xemacs.org>
16287
16288         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
16289         Include strings.h to avoid warnings for bzero and strcasecmp.
16290
16291 2000-02-10  Olivier Galibert  <galibert@pobox.com>
16292
16293         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
16294         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
16295
16296         * fns.c (size_bit_vector): New.  Declare bit vectors as a
16297         sequence.
16298
16299 2000-02-10  Olivier Galibert  <galibert@pobox.com>
16300
16301         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
16302         use a value field instead.
16303         (symbol_value_forward_forward): Use value field.
16304         (DEFVAR_SYMVAL_FWD): Use value field.
16305         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
16306         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
16307         (DEFVAR_CONST_INT): Ditto.
16308         (DEFVAR_BOOL): Ditto.
16309         (DEFVAR_CONST_BOOL): Ditto.
16310         (DEFVAR_INT_MAGIC): Ditto.
16311         (DEFVAR_BOOL_MAGIC): Ditto.
16312
16313         * symbols.c (guts_of_unbound_marker): Use value field.
16314         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
16315         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
16316
16317         * lisp.h: Declare dumpopaque and noninteractive1.
16318
16319         * alloc.c (dumpopaque): Added.
16320         (pdump_dump_opaquevec): Added.
16321         (pdump): Call pdump_dump_opaquevec to dump opaque data.
16322         (pdump_load): Reload opaque data.  Sync noninteractive1 with
16323         noninteractive.
16324
16325 2000-02-10  Andy Piper  <andy@xemacs.org>
16326
16327         * glyphs.c (image_instance_layout): if the size changes, mark it
16328         as such.
16329
16330         * redisplay-output.c (redisplay_output_layout): Update the
16331         subwindow here.
16332         (redisplay_output_subwindow): ditto.
16333
16334         * glyphs.c (update_subwindow): make sure we reset flags for
16335         layouts as well as everything else.
16336
16337         * glyphs-widget.c (layout_layout): don't need to set the instances
16338         dimensions here.
16339
16340 2000-02-09  Martin Buchholz  <martin@xemacs.org>
16341
16342         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
16343         not HAVE_DLOPEN, which is a lower-level thing.
16344
16345         * .cvsignore: Ignore gmon.out
16346
16347 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
16348
16349         * .cvsignore: Ignore portable dumper xemacs.dmp file
16350
16351 2000-02-09  Andy Piper  <andy@xemacs.org>
16352
16353         * redisplay-output.c (redisplay_output_layout): be more clever
16354         about when we output based on the changed flags.
16355
16356         * glyphs.h (struct image_instantiator_methods): add update_method.
16357         (struct Lisp_Image_Instance): add changed flags. Declare new
16358         macros for manipulating them.
16359
16360         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
16361         (image_instance_parent_glyph): find an image_instance's parent
16362         glyph or image_instance.
16363         (image_instance_layout): mark the size as changed.
16364         (set_image_instance_dirty_p): new function. mark an image
16365         instance, plus all of its parents, as dirty.
16366         (Fset_image_instance_property): use it.
16367         (Fglyph_animated_timeout_handler): use it.
16368         (update_subwindow): call update_widget and device methods for
16369         update_subwindow. Mark all changed flags as clean.
16370         (Fresize_subwindow): mark size as changed.
16371
16372         * glyphs-x.c (x_finalize_image_instance): try and detect gc
16373         failures.
16374         (x_update_subwindow): only resize subwindows here.
16375         (x_update_widget): new function. Update all changed properties of
16376         a widget.
16377         (x_resize_subwindow): deleted.
16378         (x_widget_set_property): deleted.
16379         (x_progress_gauge_set_property): deleted.
16380         (x_progress_gauge_update): new function. Implement recorded
16381         changes.
16382         (x_tab_control_update): ditto.
16383         (x_tab_control_set_property): deleted.
16384         (console_type_create_glyphs_x): declare new functions.
16385         (image_instantiator_format_create_glyphs_x): ditto.
16386
16387         * glyphs-widget.c (widget_set_property): mark text changed.
16388         (update_widget): new function. Update properties of a widget.
16389         (widget_instantiate): for layouts make sure we set their
16390         children's parent correctly.
16391         (tab_control_set_property): new function. Record changes that will
16392         take place under redisplay's control.
16393         (progress_gauge_set_property): ditto.
16394         (image_instantiator_progress_guage): declare new functions.
16395         (image_instantiator_tab_control): ditto.
16396
16397         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
16398         now.
16399         (mswindows_update_widget): new function. Update all properties on
16400         a widget that have changed.
16401         (mswindows_button_update): new function. Update a button's set
16402         state.
16403         (mswindows_tab_control_update): new function. Update the items in
16404         a tab.
16405         (mswindows_tab_control_set_property): deleted.
16406         (mswindows_progress_gauge_update): new function. Update the
16407         progress gauge's progress.
16408         (mswindows_widget_set_property): deleted. This is all done
16409         asynchronously now.
16410         (mswindows_progress_gauge_set_property): ditto.
16411         (console_type_create_glyphs_mswindows): declare new methods.
16412         (image_instantiator_format_create_glyphs_mswindows): ditto.
16413
16414         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
16415         (msprinter_set_frame_properties): ditto.
16416
16417         * console.h (struct console_methods): Add update_widget_method.
16418
16419 2000-02-09  Andy Piper  <andy@xemacs.org>
16420
16421         * gui-msw.c (Fmswindows_shell_execute): Make
16422         mswindows-shell-execute industrial strength.
16423
16424 2000-02-08  Martin Buchholz  <martin@xemacs.org>
16425
16426         * lrecord.h: Make macro argument `props' match member function `plist'.
16427         * fns.c (Fget):
16428         * fns.c (Fput):
16429         * fns.c (Fremprop):
16430         * fns.c (Fobject_plist):
16431         * alloc.c:
16432         * symbols.c:
16433         Object property list frobbing cleanup.
16434         - Allow any lisp object (compared with `eq'), not just symbols, as
16435           keys in object plists.
16436         - Move symbol plist frobbing into symbols.c, where it belongs.
16437         - Move string plist frobbing into alloc.c, where it belongs.
16438         - Everything's an lrecord now, so no need to test for symbolp, etc.
16439         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
16440
16441         * extents.c: Reorder code to remove declarations.
16442
16443         * frame.h (store_in_alist): Remove useless declaration.
16444
16445 2000-02-07  Martin Buchholz  <martin@xemacs.org>
16446
16447         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
16448         * config.h.in: Add HAVE_XCONVERTCASE.
16449
16450 2000-02-07  Andy Piper  <andy@xemacs.org>
16451
16452         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
16453         it breaks many things.
16454
16455 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
16456
16457         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
16458         actually can start a common comment type.
16459         * src/syntax.h (SYNTAX_END_P): ditto for end.
16460
16461 2000-02-07  Martin Buchholz <martin@xemacs.org>
16462
16463         * XEmacs 21.2.28 is released.
16464
16465 2000-02-06  Martin Buchholz  <martin@xemacs.org>
16466
16467         * event-Xt.c (x_keysym_to_character): New.
16468         (maybe_define_x_key_as_self_inserting_character): New.
16469         (x_has_keysym): New.
16470         Auto-define all keys on the keyboard as self-insert-key.
16471
16472 2000-02-02  Martin Buchholz  <martin@xemacs.org>
16473
16474         * menubar.c (vars_of_menubar): A small code simplification.
16475
16476         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
16477
16478         * ExternalShell.c:
16479         * ExternalClient.c:
16480         * EmacsShell-sub.c:
16481         * EmacsManager.c:
16482         * EmacsFrame.c:
16483         Use consistent style for specifying X resources.
16484
16485         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
16486         This makes (dontusethis-set-symbol-value-handler) actually usable.
16487
16488         * lrecord.h (lrecord_decription_type):
16489         * alloc.c (pdump_register_sub):
16490         (pdump_dump_data):
16491         (pdump_reloc_one):
16492         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
16493         Comply with XEmacs coding style.
16494         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
16495         args, and XD_LISP_OBJECT_ARRAY with 3 args.
16496
16497         * keymap.c (Faccessible_keymaps):
16498         Make (accessible-keymaps map "\C-h") do the Right Thing.
16499         Make (accessible-keymaps map []) do the Right Thing.
16500         Make (accessible-keymaps map "") do the Right Thing.
16501         (check_keymap_definition_loop): New function.
16502         (keymap_store_internal): Keep luser from shooting self in foot,
16503           via (define-key ctl-x-4-map "p" global-map).
16504         Remove fullness slot from struct Lisp_Keymap, since hash tables
16505         are now reliable.
16506         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
16507
16508 2000-01-30  Martin Buchholz  <martin@xemacs.org>
16509
16510         * redisplay.c (init_redisplay): Fix small memory leak.
16511         * elhash.h:
16512         * elhash.c (pdump_reorganize_hash_table):
16513         Rename from reorganize_hash_table. Change prototype.
16514         Reuse the original memory for hentries.  Save 100k.
16515         * alloc.c (PDUMP_READ): new macro.
16516         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
16517         * alloc.c: No need to #ifndef before #undef.
16518
16519         * print.c: Allow debug_print() to print readably by modifying
16520         debug_print_readably.  Use consistent variable names.
16521
16522         * .dbxrc: Try to get things to work even if stopped in a function
16523         without source available by explicitly specifying source files.
16524 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16525
16526         * unexnt.c (_start): Removed bogus code which caused loading heap
16527         from differrent executable file.
16528         Removed bogus assignment to _fmode, which caused inconsistencies.
16529
16530 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16531
16532         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
16533         Have spawnve encapsulation regard DONT_ENCAPSULATE.
16534         Do not preliminary `#define signal sigset'.
16535
16536         * systime.h: Do not prototype environ on windows nt and cygwin,
16537         this conflicts with system header.
16538
16539         * syssignal.h: Use correct define for WINDOWSNT
16540
16541         * sysdep.h: Do not prototype environ on windows nt, this conflicts
16542         with system header.
16543
16544         * sysdep.c (near start of file): Fixed commentary and rearranged
16545         ifdefs in readable order.
16546         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
16547         (start_of_text):
16548         (end_of_text):
16549         (end_of_data): Do not compile in if using PDUMP.
16550
16551         * symsinit.h: Prototyped vars_of_nt().
16552
16553         * ntproc.c (windows9x_p): Added, instead of os_subtype.
16554         (find_child_console): Use it.
16555         (sys_kill): Use it.
16556
16557         * ntheap.h: Do not extern os_subtype.
16558
16559         * ntheap.c (cache_system_info): Do not cache unneeded:
16560         nt_major_version, nt_minor_version and os_subtype.
16561         (recreate_heap): Do not compile in when PDUMPing.
16562
16563         * nt.c (geteuid and friends): Use the new varibale
16564         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
16565         (init_user_info): Removed the above mentioned hackery.
16566         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
16567         stat has been fixed in the C runtime.
16568         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
16569
16570         * file-coding.c (struct file_coding_dump): Do not define
16571         ucs_to_mule_table in the struct if not MULE.
16572         (struct struct lrecord_description fcd_description_1): Do not dump
16573         the above.
16574
16575         * emacs.c (main_1): Call vars_of_nt().
16576         (right before Fdump_emacs_data): Don't need lastfile if using both
16577         portabe dumper and system malloc.
16578
16579         * alloc.c (Fmemory_limit): Conditionalized out.
16580         (pdump): Use OPEN_BINARY for the portable dump file.
16581         (pdump_load): Ditto.
16582
16583 2000-02-02  Mike Alexander  <mta@arbortext.com>
16584
16585         * nt.c (convert_time): Set tm_isdst before calling mktime and
16586         avoid calling it at all if the compiler supports 64 bit integers.
16587         Also initialize utc_base_ft before using it.
16588
16589 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
16590
16591         * frame.c (change_frame_size_1): Take f->internal_border_width
16592         into consideration when calculating the width of the frame.
16593
16594 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16595
16596         * window.c (frame_min_height):
16597         (frame_size_valid_p):
16598         (frame_pixsize_valid_p): Added.
16599         (check_frame_size): Generalized.
16600
16601         * window.h: Prototyped the above.
16602
16603         * lisp.h:
16604         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
16605         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
16606         Deleted Vwin32_* and Vbinary_process_* unused variables.
16607
16608         * device-msw.c (msprinter_init_device): Do not get printer font
16609         list; Added DEVMODE functions.
16610
16611         * frame-msw.c: Added lots of printer code.
16612
16613         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
16614         general.c.
16615
16616         * console-msw.h: Added more msprinter device private slots.
16617
16618 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16619
16620         * event-msw.c (key_needs_default_processing_p): Added.
16621         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
16622
16623 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16624
16625         * glyphs.c (image_instance_layout): Mark image instance as clean
16626         after layout.
16627         (glyph_dirty_p): Removed redundant function.
16628         (invalidate_glyph_geometry_maybe): Added.
16629         (update_glyph_cachel_data): Call it.
16630
16631         * glyphs.h: Prototyped it.
16632
16633         * redisplay.c (add_glyph_rune): Call it.
16634         (redisplay_window): Reset glyphs cachels when frame faces have
16635         changed, thus forcing recomputation of built-in border glyphs.
16636
16637 2000-01-30  Martin Buchholz  <martin@xemacs.org>
16638
16639         * Makefile.in.in: Make portable dumper and purify play well together.
16640         Add imperfect, but better than nothing, support for pdump.
16641         Remove xemacs.dmp when temacs is re-generated.
16642         Don't ignore errors when dumping xemacs.
16643
16644         * symbols.c (maybe_call_magic_handler): Remove one magic number.
16645
16646 2000-01-28  Andy Piper  <andy@xemacs.org>
16647
16648         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
16649         (setup_normal_frame): ditto.
16650         (setup_frame_without_minibuffer): ditto.
16651         (setup_minibuffer_frame): ditto.
16652         (delete_frame_internal): ditto.
16653         (Fmake_frame_invisible): ditto.
16654         (Ficonify_frame): ditto.
16655
16656         * window.h: change Fset_window_buffer signature.
16657
16658         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
16659         (Fset_window_buffer): allow recording of buffer if the window is
16660         the selected window.
16661         (window_loop): Use new Fset_window signature.
16662
16663 2000-01-23  Daniel Pittman  <daniel@danann.net>
16664
16665         * config.h.in: Added template for `HAVE_ATHENA_3D'
16666
16667 2000-01-29  Andy Piper  <andy@xemacs.org>
16668
16669         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
16670
16671         * gutter.c (output_gutter): Don't output if the window isn't live.
16672
16673 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16674
16675         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
16676         of 01/12/00: Moved SetFocus back here where it belongs.
16677
16678 2000-01-23  Andy Piper  <andy@xemacs.org>
16679
16680         * s/cygwin32.h: declare printer things.
16681
16682 2000-01-26  Andy Piper  <andy@xemacs.org>
16683
16684         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
16685         Alexander.
16686
16687 2000-01-24  Andy Piper  <andy@xemacs.org>
16688
16689         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
16690         (mswindows_button_instantiate): Make sure glyph is a pixmap.
16691
16692         * glyphs-widget.c (widget_instantiate): Avoid shadows.
16693
16694         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
16695
16696         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
16697
16698         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
16699         (mswindows_output_display_block): Avoid local shadows.
16700
16701         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
16702         (mswindows_enqueue_mouse_button_event): ditto.
16703         (mswindows_handle_gui_wm_command): remove declaration.
16704
16705         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
16706         warnings.
16707
16708         * console-msw.h: Avoid shadows.
16709         (mswindows_get_toolbar_button_text):
16710         (emacs_mswindows_create_stream_pair):
16711         (emacs_mswindows_delete_stream_pair):
16712         (mswindows_handle_toolbar_wm_command): declare.
16713
16714         * device-msw.c (build_syscolor_string): Avoid shadows.
16715
16716 2000-01-23  Andy Piper  <andy@xemacs.org>
16717
16718         * glyphs-widget.c (widget_instantiate): reverse the items for
16719         layouts so that children are in the expected order.
16720
16721 2000-01-28  Martin Buchholz  <martin@xemacs.org>
16722
16723         * ralloc.c: safe_bcopy ==> memmove
16724         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
16725         * s/msdos.h: Remove BCOPY macros.
16726         * insdel.c (gap_right): Remove BCOPY conditional code.
16727         * insdel.c (gap_left): Remove BCOPY conditional code.
16728         XEmacs demands a working ANSI C compiler - hence memmove.
16729
16730         * regex.c (regex_compile): Remove accidental use of trigraphs.
16731
16732 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16733
16734         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
16735         event timestamp.
16736
16737 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16738
16739         * event-msw.c (mswindows_drain_windows_queue): Added the
16740         parameter.
16741         (mswindows_need_event): Commented the call to
16742         mswindows_drain_windows_queue().
16743         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
16744         only.
16745
16746         * console-msw.h: Moved a few function prototypes here from
16747         event-msw.c.
16748
16749         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
16750         parameter from unsigned short to unsigned long.
16751         (Fmswindows_shell_execute): Added return value.
16752
16753 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
16754
16755         * sysdep.c (init_system_name):
16756           process-unix.c (unix_canonicalized_host_name):
16757         Don't call freeaddrinfo() if getaddrinfo() fails.
16758
16759         * process-unix.c (unix_open_unix_network_stream):
16760         Moved the code to get a port # into address loop.
16761
16762 2000-01-27  Martin Buchholz  <martin@xemacs.org>
16763
16764         * buffer.c (reinit_vars_of_buffer):
16765         The right place to initialize conversion_in_dynarr and
16766         conversion_out_dynarr.
16767
16768         * alloc.c (pdump): Use the real open() till sys_open() is functional.
16769
16770         * process-unix.c (unix_canonicalize_host_name): Muleize.
16771         (unix_open_network_stream): Muleize.
16772
16773         * buffer.h: Fix up prototypes for ralloc.c functions.
16774
16775 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
16776         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
16777         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
16778                 instead of gethostbyname()
16779         * process-unix.c: In unix_canonicalize_host_name() and
16780                 unix_open_network_stream(), add code to use getaddrinfo()
16781                 instead of gethostbyname().
16782
16783 2000-01-27  Daniel Pittman <daniel@danann.net>
16784
16785         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
16786         libs when built with flat Athena.
16787
16788 2000-01-27  Martin Buchholz  <martin@xemacs.org>
16789
16790         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
16791         Use coding standards for function prototypes.
16792
16793 2000-01-25  Martin Buchholz  <martin@xemacs.org>
16794
16795         * dialog-msw.c (push_lisp_string_as_unicode):
16796         * doc.c (unparesseuxify_doc_string):
16797         * dired.c (Fuser_name_completion_1):
16798         * dired.c (Fuser_name_all_completions):
16799         * dired.c (free_user_cache):
16800         * dired.c (user_name_completion):
16801         * console-x.c (get_display_arg_connection):
16802         * minibuf.c (clear_echo_area_internal):
16803         * minibuf.c (echo_area_append):
16804         * eldap.c (Fldap_open):
16805         * eldap.c (Fldap_search_internal):
16806         * frame-x.c (x_set_frame_text_value):
16807         * frame-x.c (x_set_frame_properties):
16808         * frame-x.c (x_create_widgets):
16809         * redisplay-tty.c (term_get_fkeys_1):
16810         * objects-x.c (x_parse_nearest_color):
16811         * objects-x.c (x_valid_color_name_p):
16812         * objects-x.c (x_initialize_font_instance):
16813         * objects-x.c (x_list_fonts):
16814         * objects-x.c (x_find_charset_font):
16815         * tooltalk.c (Fadd_tooltalk_message_arg):
16816         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
16817         * tooltalk.c (Fadd_tooltalk_pattern_arg):
16818         * process-unix.c (unix_create_process):
16819         * ntproc.c (sys_spawnve):
16820         * sound.c (Fplay_sound_file):
16821         * sound.c (Fplay_sound):
16822         * buffer.c (init_initial_directory):
16823         * buffer.c (init_buffer):
16824         * editfns.c (init_editfns):
16825         * editfns.c (Ftemp_directory):
16826         * editfns.c (Fuser_full_name):
16827         * editfns.c (uncache_home_directory):
16828         * editfns.c (get_home_directory):
16829         * editfns.c (Fuser_home_directory):
16830         * editfns.c (Fformat_time_string):
16831         * editfns.c (Fcurrent_time_string):
16832         * gui-x.c (button_item_to_widget_value):
16833         * database.c (Fopen_database):
16834         * event-Xt.c (x_to_emacs_keysym):
16835         * event-Xt.c (x_event_to_emacs_event):
16836         * event-Xt.c (describe_event_window):
16837         * event-msw.c (mswindows_wnd_proc):
16838         * glyphs-eimage.c (jpeg_instantiate):
16839         * glyphs-eimage.c (gif_instantiate):
16840         * glyphs-eimage.c (png_instantiate):
16841         * glyphs-eimage.c (tiff_instantiate):
16842         * glyphs-x.c (xbm_instantiate_1):
16843         * glyphs-x.c (x_xbm_instantiate):
16844         * glyphs-x.c (x_xface_instantiate):
16845         * glyphs-x.c (autodetect_instantiate):
16846         * glyphs-x.c (cursor_font_instantiate):
16847         * glyphs-x.c (x_widget_instantiate):
16848         * glyphs-x.c (x_widget_set_property):
16849         * glyphs-x.c (x_widget_property):
16850         * glyphs-x.c (BUILD_GLYPH_INST):
16851         * print.c (write_string_to_stdio_stream):
16852         * print.c (output_string):
16853         * print.c (Falternate_debugging_output):
16854         * print.c (Fexternal_debugging_output):
16855         * glyphs-msw.c (extract_xpm_color_names):
16856         * glyphs-msw.c (mswindows_xpm_instantiate):
16857         * glyphs-msw.c (bmp_instantiate):
16858         * glyphs-msw.c (resource_name_to_resource):
16859         * glyphs-msw.c (mswindows_resource_instantiate):
16860         * glyphs-msw.c (xbm_instantiate_1):
16861         * glyphs-msw.c (mswindows_xbm_instantiate):
16862         * glyphs-msw.c (mswindows_xface_instantiate):
16863         * glyphs-msw.c (mswindows_widget_instantiate):
16864         * glyphs-msw.c (add_tree_item):
16865         * glyphs-msw.c (add_tab_item):
16866         * glyphs-msw.c (mswindows_combo_box_instantiate):
16867         * glyphs-msw.c (mswindows_widget_property):
16868         * glyphs-msw.c (mswindows_combo_box_property):
16869         * glyphs-msw.c (mswindows_widget_set_property):
16870         * console.c (stuff_buffered_input):
16871         * objects-msw.c (mswindows_initialize_color_instance):
16872         * objects-msw.c (mswindows_valid_color_name_p):
16873         * objects-msw.c (mswindows_list_fonts):
16874         * objects-msw.c (mswindows_font_instance_truename):
16875         * bytecode.c (optimize_compiled_function):
16876         * select-x.c (symbol_to_x_atom):
16877         * select-x.c (x_atom_to_symbol):
16878         * select-x.c (hack_motif_clipboard_selection):
16879         * select-x.c (selection_data_to_lisp_data):
16880         * select-x.c (lisp_data_to_selection_data):
16881         * select-x.c (Fx_get_cutbuffer_internal):
16882         * select-x.c (Fx_store_cutbuffer_internal):
16883         * buffer.h (TO_EXTERNAL_FORMAT): New function.
16884         * buffer.h (TO_INTERNAL_FORMAT): New function.
16885         * emacs.c (make_arg_list_1):
16886         * emacs.c (make_argc_argv):
16887         * emacs.c (main_1):
16888         * emacs.c (Fdump_emacs):
16889         * emacs.c (split_string_by_emchar_1):
16890         * file-coding.h:
16891         * lisp.h:
16892         * lstream.h:
16893         * symsinit.h:
16894         * device-x.c (x_init_device):
16895         * device-x.c (Fx_valid_keysym_name_p):
16896         * device-x.c (Fx_get_font_path):
16897         * device-x.c (Fx_set_font_path):
16898         * glyphs.c (bitmap_to_lisp_data):
16899         * glyphs.c (pixmap_to_lisp_data):
16900         * alloc.c (make_ext_string): Use coding system arguments.  Update
16901         all callers.
16902         * alloc.c (build_string):
16903         * callproc.c (child_setup):
16904         * callproc.c (init_callproc):
16905         * fileio.c (lisp_strerror):
16906         * fileio.c (directory_file_name):
16907         * fileio.c (Fexpand_file_name):
16908         * fileio.c (Ffile_truename):
16909         * fileio.c (Fsysnetunam):
16910         * fileio.c (Fdo_auto_save):
16911         * sysdep.c (sys_readdir):
16912         * tests.c: New file.  Allow adding C tests.
16913         Replace GET_* macros with a more comprehensible and flexible
16914         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
16915         Modify all calls.
16916         Any coding system can be used to do format conversion.
16917         Eliminate enum external_data_format.
16918         Eliminate convert_to_external_format.
16919         Eliminate convert_to_internal_format.
16920         Make sure file-name, keyboard, terminal, and ctext are always
16921         defined as coding systems or aliases.  Make
16922         file-name-coding-system, terminal-coding-system, and
16923         keyboard-coding-system magical variables that are equivalent to
16924         defining the corresponding coding system aliases.
16925
16926         * file-coding.c (Fcoding_system_canonical_name_p): New function.
16927         * file-coding.c (Fcoding_system_alias_p): New function.
16928         * file-coding.c (Fcoding_system_aliasee): New function.
16929         * file-coding.c (append_suffix_to_symbol): New function.
16930         * file-coding.c (dangling_coding_system_alias_p): New function.
16931         * file-coding.c (Ffind_coding_system):
16932         * file-coding.c (Fcopy_coding_system):
16933         * file-coding.c (encode_coding_no_conversion):
16934         * file-coding.c (syms_of_file_coding):
16935         * file-coding.c (vars_of_file_coding):
16936         Rewrite coding system alias code.
16937         Allow nested aliases, like symbolic links.
16938         Allow redefinition of coding system aliases.
16939         Prevent existence of dangling coding system aliases.
16940
16941         * dired.c (Fuser_name_completion_1):
16942         * dired.c (Fuser_name_all_completions):
16943         A crash would happen if user did QUIT in the middle of building
16944         user_name_cache.  Remove redundant code in mainline and unwind_protect.
16945
16946         * lisp.h:
16947         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
16948
16949         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
16950         an unsigned char *.  Update all callers.
16951
16952 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16953
16954         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
16955
16956 2000-01-25  Martin Buchholz  <martin@xemacs.org>
16957
16958         * elhash.c (hentry_description): Use more portable definition.
16959         (resize_hash_table): Initialize new hentries using
16960         xnew_array_and_zero, thereby simplifying the code.
16961
16962         * mule-charset.c (make_charset): Make sure entire object is
16963         initialized, to avoid Purify warnings.
16964
16965         * alloc.c (resize_string): Fix unlikely crash with big strings.
16966
16967 2000-01-24  Martin Buchholz  <martin@xemacs.org>
16968
16969         * realpath.c (xrealpath):
16970         Don't call getwd().
16971
16972 2000-01-25  Martin Buchholz  <martin@xemacs.org>
16973
16974         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
16975
16976 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
16977
16978         * unexelfsgi.c (unexec): Change the way we decide which segment
16979         should be extended.
16980
16981         Assumption that .bss section should be outside the PT_LOADable
16982         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
16983         it's present) is inside the 'data' segment. This would fail the
16984         test which was used to find a segment to grow and cover new
16985         heap. Instead of this assumption, I created another one - on IRIX
16986         the segment to grow should start below .bss and it's address
16987         should extent above the end of .bss. Once this segment is
16988         identified, it's grown to accommodate the new heap and new
16989         zero-length .bss section is added at the end of .data2.
16990
16991 2000-01-25  Martin Buchholz  <martin@xemacs.org>
16992
16993         * eval.c (Feval): Wrong number of arguments should use original
16994         function, not the indirect_function version of it.
16995
16996 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
16997
16998         * glyphs-x.c (x_button_instantiate): Don't add image if
16999         it is not a pixmap.
17000         (x_locate_pixmap_file): Call Fexpand_file_name when file name
17001         is relative.
17002
17003 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
17004
17005         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
17006         declaration.
17007         (DEFVAR_INT_MAGIC): Ditto.
17008         (DEFVAR_BOOL_MAGIC): Ditto.
17009         * glyphs.h: Reindent backslash.
17010
17011 2000-01-24  Martin Buchholz  <martin@xemacs.org>
17012
17013         * glyphs-widget.c (layout_query_geometry):
17014         (layout_layout): Use correct types for gheight, gwidth.
17015
17016 2000-01-24  Martin Buchholz  <martin@xemacs.org>
17017
17018         * EmacsManager.c (QueryGeometry): Purified.
17019
17020 2000-01-23  Martin Buchholz  <martin@xemacs.org>
17021
17022         * alloc.c (make_float): Make sure entire object is initialized, to
17023         avoid Purify warnings.
17024         (pdump_register_sub): Remove useless assignment.
17025         (pdump): Use xmalloc, not malloc.
17026         (pdump_load): Use xmalloc, not malloc.
17027
17028 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17029
17030         * callproc.c:
17031         * dired-msw.c:
17032         * fileio.c:
17033         * process-nt.c:
17034         * redisplay-msw.c:
17035         * sysdep.c: Removed redundant #include <windows.h>
17036
17037 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17038
17039         * frame.c (delete_frame_internal): Do not delete device when its
17040         implementation so declares.
17041         (delete_frame_internal): Set device selected frame to nil when
17042         last frame goes away.
17043
17044         * device-msw.c (msprinter_device_system_metrics): Implemented.
17045         (mswindows_device_system_metrics): Added 'device-dpi property.
17046
17047         * device.c: (Fdevice_printer_p): Added.
17048         Added 'offset-workspace device metric.
17049
17050         * console.h (device_metrics): Declared DM_offset_workspace.
17051
17052 2000-01-23  Martin Buchholz  <martin@xemacs.org>
17053
17054         * fileio.c (Ffile_truename): Remove pointless and confusing
17055         initialization of elen.
17056
17057         * glyphs-widget.c: Compiler warning fixes.
17058
17059 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
17060
17061         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
17062         instead of a Lisp_Object as argument to make it consistent with
17063         the other LIVE_P macros.
17064         (CHECK_LIVE_PROCESS): New macro.
17065
17066         * process.c: Declare Qprocess_live_p.
17067         (Fprocess_live_p): New function.
17068         (create_process): Use PROCESS_LIVE_P.
17069         (read_process_output): Ditto.
17070         (set_process_filter): Ditto.
17071         (Fdelete_process): Ditto.
17072         (kill_buffer_processes): Ditto
17073         (process_send_signal): Use CHECK_LIVE_PROCESS.
17074         (Fprocess_input_coding_system): Check whether process is still
17075         alive (fix PR#1061).
17076         (Fprocess_output_coding_system): Ditto.
17077         (Fprocess_coding_system): Ditto.
17078         (Fset_process_input_coding_system): Ditto.
17079         (Fset_process_output_coding_system): Ditto.
17080
17081 2000-01-23  Andy Piper  <andy@xemacs.org>
17082
17083         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
17084         layout and widget.
17085
17086         * glyphs.c (mark_image_instance): take into account changed
17087         image_instance format.
17088         (image_instance_equal): ditto.
17089         (image_instance_hash): ditto.
17090
17091         * glyphs-widget.c (widget_instantiate): Incorporate layout
17092         instantiation here. Delay layout of the layout until later.
17093         (layout_instantiate): deleted.
17094         (layout_query_geometry): new function. get the geometry of a
17095         layout.
17096         (layout_layout): layout a layout dynamically.
17097         (image_instantiator_widget): New function - splitting up
17098         image_instantiator_format_create_glyphs_widget for netwinder
17099         compilation.
17100         (image_instantiator_buttons):
17101         (image_instantiator_edit_fields):
17102         (image_instantiator_combo_box):
17103         (image_instantiator_scrollbar):
17104         (image_instantiator_progress_guage):
17105         (image_instantiator_tree_view):
17106         (image_instantiator_tab_control):
17107         (image_instantiator_labels):
17108         (image_instantiator_layout): ditto.
17109         (image_instantiator_format_create_glyphs_widget): Call preceding
17110         functions.
17111
17112 2000-01-22  Martin Buchholz  <martin@xemacs.org>
17113
17114         * process.c (Fset_process_coding_system):
17115         * device-x.c (Fx_keysym_hash_table):
17116         Docstring fixes.
17117
17118         * lstream.c (Lstream_write): Return documented value, not 0.
17119
17120         * fileio.c (directory_file_name):
17121         (Fsubstitute_in_file_name):
17122         (Fsubstitute_insert_file_contents_internal):
17123         (Fwrite_region_internal):
17124         * emacs.c:
17125         * sysdep.c:
17126         * getloadavg.c:
17127         * systty.h:
17128         Remove vestigial APOLLO-conditional code.
17129
17130 2000-01-21  Martin Buchholz  <martin@xemacs.org>
17131
17132         * getpagesize.h: Add guard macros.
17133         * libsst.h: Add guard macros.
17134         * libst.h: Add guard macros.
17135         * line-number.h: Add guard macros.
17136         * ndir.h: Add guard macros.
17137         * sysfloat.h: Add guard macros.
17138         * sysfile.h: Add guard macros.
17139         * sysproc.h: Add guard macros.
17140         * syswait.h: Add guard macros.
17141         * xintrinsic.h: Add guard macros.
17142         * xintrinsicp.h: Add guard macros.
17143         * xmmanager.h: Add guard macros.
17144         * xmmanagerp.h: Add guard macros.
17145         * xmprimitive.h: Add guard macros.
17146         * xmu.h: Add guard macros.
17147         * gpmevent.h: Add copyright statement. Add guard macros.
17148         * miscplay.h: Add guard macros.
17149         * *.h: Use consistent C-standards-approved guard macro names.
17150
17151         * opaque.c (make_opaque): Switch parameter order.
17152         * opaque.h (make_opaque): Switch parameter order.
17153         Update all callers.
17154         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
17155
17156         * config.h.in (type_checking_assert): Added.
17157         (bufpos_checking_assert): Added.
17158
17159 2000-01-21  Martin Buchholz  <martin@xemacs.org>
17160
17161         * alloc.c: Harmless pdump changes.
17162         - Use countof().
17163         - spell alignment correctly.
17164         * sysdep.c: Use countof()
17165
17166 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17167
17168         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
17169         initially_selected_for_input() console method, default to 0.
17170         (semi_canonicalize_console_connection): Try to delegate to
17171         canonicalize_console_connection if no such console method.
17172         (canonicalize_console_connection): Vice versa.
17173         (print_console): Do not print nil connection.
17174
17175         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
17176         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
17177         (XDEVIMPF_FRAMELESS_OK): Added.
17178         (CONSOLE_INHERITS_METHOD): Added.
17179
17180         * console-msw.c (mswindows_canonicalize_console_connection):
17181         Added.
17182         (mswindows_canonicalize_device_connection): Added.
17183
17184         * console-msw.h (struct msprinter_device): Added this struct and
17185         accessor macros.
17186         (mswindows_device): Made fontlist a lisp object.
17187
17188         * device.c (semi_canonicalize_device_connection):  Try to delegate
17189         to canonicalize_device_connection if no such console method.
17190         (canonicalize_device_connection): Vice versa.
17191         (print_device): Do not print nil connection.
17192
17193         * device-msw.c (mswindows_init_device): Call InitCommonControls
17194         when have widgets.
17195         (mswindows_delete_device): Removed fontlist deallocation.
17196         (mswindows_mark_device): Added.
17197
17198         * events.c (event_equal): Added abort() at unreached code.
17199         (event_hash): Ditto.
17200
17201         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
17202         fallback tags of Windows devices.
17203
17204         * general.c (syms_of_general): Initialized Qmsprinter.
17205
17206         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
17207         of fallback tags of Windows devices.
17208
17209         * lisp.h: Declared Qmsprinter.
17210
17211         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
17212         of strings.
17213         (mswindows_list_fonts): Ditto.
17214         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
17215         that it can be used by both mswindows and msprinter devices.
17216         (initialize_font_instance): Added.
17217         (mswindows_initialize_font_instance): Use it.
17218         (msprinter_initialize_font_instance): Added.
17219
17220         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
17221         and implementation flags check.
17222         (redisplay_without_hooks): Changed the call to the above.
17223         (Fredraw_device): Ditto.
17224         (Fredisplay_device): Ditto.
17225
17226         * redisplay-msw.c (get_frame_dc): Implemented.
17227         (get_frame_compdc): Implemented.
17228         (many functions): Use the two functions above to get device
17229         contexts, ether for a window or a printer.
17230
17231 2000-01-21  Olivier Galibert  <galibert@pobox.com>
17232
17233         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
17234         initialization here.
17235         (init_symbols_once_early): Call it.
17236         * emacs.c (main_1): Call it.
17237         * symsinit.h: Declare it.
17238
17239 2000-01-19  Olivier Galibert  <galibert@pobox.com>
17240
17241         * alloc.c: Use a lrecord_header * in the backtrace instead of a
17242         Lisp_Object.
17243         (pdump_backtrace): Ditto.
17244         (pdump_register_object): Ditto.  Cleanup use of the pointers.
17245         (pdump_get_entry): Abort if trying to register a null pointer.
17246         (pdump_dump_data): Cleanup types when relocating.
17247         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
17248         (pdump_dump_rtables): Remove bad casts.
17249         (pdump_load): Cleanup relocation w.r.t union type.  Use a
17250         Lisp_Object instead of a EMACS_INT for the hashtable
17251         reorganization.
17252
17253 2000-01-20  Martin Buchholz  <martin@xemacs.org>
17254
17255         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
17256
17257         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
17258
17259         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
17260
17261         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
17262
17263 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17264
17265         * faces.h (FACE_STRIKETHRU_P): Added.
17266
17267         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
17268         of font variants.
17269
17270         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
17271         (mswindows_set_dc_font): New function, aware of font variants,
17272         separated from mswindows_update_dc.
17273
17274         * objects-msw.h (struct mswindows_font_instance_data): Added
17275         definition.
17276
17277         * objects-msw.c (mswindows_finalize_font_instance): Delete all
17278         cached fonts and the data structure.
17279         (mswindows_initialize_font_instance): Added creation of font data
17280         structure.
17281         (mswindows_print_font_instance): Print at least something.
17282         (mswindows_create_font_variant): Implemented.
17283         (mswindows_get_hfont): Implemented.
17284
17285 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
17286
17287         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
17288         prototyping problem with msvc.
17289
17290         * emacs.c (main_1): added syms_of_gui_mswindows() call
17291
17292         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
17293         syms_of_gui_mswindows() function
17294
17295         * symsinit.h: added the prototype for syms_of_gui_mswindows()
17296
17297 2000-01-18  Martin Buchholz <martin@xemacs.org>
17298
17299         * XEmacs 21.2.27 is released.
17300
17301 2000-01-18  Martin Buchholz  <martin@xemacs.org>
17302
17303         * glyphs-eimage.c (struct tiff_error_struct):
17304         (tiff_error_func):
17305         (tiff_warning_func):
17306         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
17307
17308         * unexmips.c:
17309         * unexhp9k3.c:
17310         * unexfreebsd.c:
17311         * unexec.c: Remove vestigial Lucid C code.
17312         * unexalpha.c:
17313         * unexaix.c:
17314         * termcap.c:
17315         * libsst.c: Ansify.
17316         Remove declarations of errno and strerror().
17317
17318         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
17319
17320         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
17321
17322 2000-01-16  Martin Buchholz  <martin@xemacs.org>
17323
17324         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
17325         Optimize.
17326
17327 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
17328
17329         * md5.c:
17330         * file-coding.c:
17331         * file-coding.h:
17332         Change enum eol_type to eol_type_t.
17333
17334 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
17335
17336         * gui.c (get_gui_callback): Check cons before accessing car.
17337
17338 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
17339
17340         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
17341         (XSETSPECIFIER_TYPE): Ditto.
17342
17343 2000-01-17  Didier Verna  <didier@xemacs.org>
17344
17345         * redisplay.c (generate_fstring_runes): compute string size in
17346         characters, not bytes.
17347
17348 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
17349
17350         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
17351
17352 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
17353
17354         * print.c (print_error_message): Call print_prepare().
17355
17356 2000-01-14  Martin Buchholz  <martin@xemacs.org>
17357
17358         * .dbxrc: Renamed from dbxrc.
17359
17360         * events.c (event_to_character):
17361         Use `assert (foo)' instead of `if (!foo) abort()'
17362
17363         * .gdbinit (xtype): Add documentation.
17364         * .gdbinit (check-temacs): New function.
17365         * .gdbinit (check-xemacs): New function.
17366         * dbxrc (check-xemacs): New function.
17367         * dbxrc (check-xemacs): New function.
17368
17369 2000-01-14  Andy Piper  <andy@xemacs.org>
17370
17371         * glyphs-widget.c (widget_query_geometry): Make sure that we
17372         calculate default dimensions correctly.
17373
17374 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17375
17376         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
17377
17378         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
17379         pdump_wire'd variable.
17380
17381         * emacs.c: (main_1): Conditionalized calls to
17382         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
17383
17384 2000-01-13  Martin Buchholz  <martin@xemacs.org>
17385
17386         * window.c (Fset_window_configuration):
17387         * sysdep.c (_start):
17388         * input-method-motif.c (res):
17389         * event-Xt.c (Xt_process_to_emacs_event):
17390         Simple compiler warning fixes.
17391
17392         * bytecode.c (funcall_compiled_function): Use the original
17393         function symbol on the backtrace list in preference to the
17394         compiled_function object in error messages.
17395
17396 2000-01-13  Andy Piper  <andy@xemacs.org>
17397
17398         * glyphs-x.c (update_widget_face): Make sure we update the widget
17399         background as well as foreground.
17400
17401 2000-01-13  Andy Piper  <andy@xemacs.org>
17402
17403         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
17404         fields to subwindow.
17405         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
17406         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
17407         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
17408         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
17409
17410         * glyphs-widget.c (check_valid_tab_orientation): new function.
17411         (initialize_widget_image_instance): zero orientation and
17412         justification.
17413         (widget_instantiate): pick up orientation.
17414         (tab_control_query_geometry): return appropriate values for
17415         vertical tabs.
17416
17417         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
17418         appropriate creation flags for left, right and bottom tabs.
17419
17420         * s/cygwin32.h: add tab definitions.
17421
17422 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17423
17424         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
17425         frame upon hiding a subwindow.
17426         (mswindows_button_instantiate): Changed the push button style to
17427         BS_PUSHBUTTON.
17428         (mswindows_button_instantiate): Removed button BS_NOTIFY
17429         style.
17430         (mswindows_button_instantiate): Removed redundant check for
17431         a disabled gui item.
17432         (mswindows_button_instantiate): Made use of WS_TABSTOP
17433         consistent: "operable" controls (edit, button, tree, scroll) have
17434         this style, "display-only" ones (static, progress gauge) do
17435         not. This style is currently ignored by XEmacs though. Also,
17436         removed the WS_EX_CONTROLPARENT style - it is not for children,
17437         it is for their parents!
17438         (mswindows_edit_field_instantiate): Ditto.
17439         (mswindows_progress_gauge_instantiate): Ditto.
17440         (mswindows_tree_view_instantiate): Ditto.
17441         (mswindows_tab_control_instantiate): Ditto.
17442         (mswindows_scrollbar_instantiate): Ditto.
17443         (mswindows_combo_box_instantiate): Ditto.
17444         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
17445         style to the "clip" window.
17446         (mswindows_button_instantiate): Removed compilation warning by
17447         equally typing terms of the ?: operator.
17448
17449 2000-01-12  Didier Verna  <didier@xemacs.org>
17450
17451         * redisplay.c (generate_fstring_runes): new parameter holding the
17452         last modeline-format extent.
17453         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
17454         extent, fill the glyph block with it.
17455         (generate_fstring_runes): handle these parameters.
17456         (generate_formatted_string_db): ditto.
17457
17458         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
17459         glyphs'extents in the modeline.
17460
17461 1999-01-11  Mike Woolley  <mike@bulsara.com>
17462
17463         * ntheap.c: Reduced the reserved heap space from 1Gb down to
17464         256Mb, as a workaround for the non-starting problem many people
17465         have experienced.
17466
17467 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
17468
17469         * console-tty.c (Fset_console_tty_output_coding_system):
17470         Force redrawing tty frame.
17471
17472 2000-01-10  Didier Verna  <didier@xemacs.org>
17473
17474         * redisplay.c (generate_fstring_runes): fix size computation bug.
17475
17476 2000-01-09  William M. Perry <wmperry@aventail.com>
17477
17478         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
17479
17480 2000-01-09  Andy Piper  <andy@xemacs.org>
17481
17482         * glyphs-msw.c: index -> i to avoid shadows.
17483         (xbm_create_bitmap_from_data): make static.
17484         (check_valid_string_or_int): deleted.
17485         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
17486
17487         * glyphs-x.c (x_update_subwindow): remove unused args.
17488
17489         * glyphs.c (glyph_image_instance): return the thing. Don't set the
17490         back pointer - this is done in allocate_image_instance.
17491         (query_string_font): return Qnil to make the compiler happy.
17492         (unmap_subwindow): set to ~0 to make the compiler happy.
17493         (glyph_query_geometry): comment out until used.
17494         (glyph_layout): ditto.
17495
17496 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
17497
17498         * insdel.c (signal_after_change): Remove extraneous unbind_to().