update.
[chise/xemacs-chise.git.1] / src / ChangeLog
1 2005-08-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2
3         * chartab.c (Qto_decomposition_at_circled): New variable.
4         (put_char_composition): Return `=>decomposition@circled' instead
5         of `=decomposition' for compatibility decomposition mapping tagged
6         `circle'.
7         (syms_of_chartab): Add new symbol `=>decomposition@circled'.
8
9 2005-08-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
10
11         * chartab.c (Q_subscript_of): New variable.
12         (put_char_composition): Return `<-subscript' instead of
13         `=decomposition' for compatibility mapping to single character
14         tagged `sub'.
15         (Fput_char_attribute): Convert char-specs in value of
16         `{<-|->}subscript[^*]*' to characters and put reverse links.
17         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
18         for `<-subscript'.
19         (syms_of_chartab): Add new symbol `<-subscript'.
20
21 2005-08-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
22
23         * chartab.c (Q_superscript_of): New variable.
24         (put_char_composition): Return `<-superscript' instead of
25         `=decomposition' for compatibility mapping to single character
26         tagged `super'.
27         (Fput_char_attribute): Convert char-specs in value of
28         `{<-|->}superscript[^*]*' to characters and put reverse links.
29         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
30         for `<-superscript'.
31         (syms_of_chartab): Add new symbol `<-superscript'.
32
33 2005-08-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
34
35         * chartab.c (Qto_decomposition_at_compat): Deleted.
36         (Qto_decomposition_at_superscript): New variable.
37         (put_char_composition): Use `=>decomposition@superscript' instead
38         of `=decomposition' for compatibility decomposition mapping tagged
39         `super'.
40         (Fput_char_attribute): Fix condition about `put_char_composition'.
41         (syms_of_chartab): Delete builtin symbol `=>decomposition@compat';
42         add news symbol `=>decomposition@superscript'.
43
44 2005-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
45
46         * chartab.c (put_char_composition): Return `=>decomposition@FOO'
47         for compatibility decomposition mapping tagged FOO.
48         (Fput_char_attribute): Modify for `put_char_composition'.
49
50 2005-07-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
51
52         * chartab.c (Qto_decomposition_at_compat): New variable.
53         (Q_compat_of): Renamed from `Q_compatibility_of'.
54         (put_char_composition): Rename `Q_compatibility_of' to
55         `Q_compat_of'; return `=>decomposition@compat' for compatibility
56         decomposition mapping.
57         (Fsave_char_attribute_table): Rename `Q_compatibility_of' to
58         `Q_compat_of'.
59         (syms_of_chartab): Add new symbol `=>decomposition@compat'; rename
60         `<-compatibility' to `<-compat'.
61
62 2005-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
63
64         * chartab.c (Q_compatibility_of): New variable.
65         (put_char_composition): Use XCAR/XCDR instead of Fcar/Fcdr if an
66         object is proved to be a cons cell; return `<-compatibility' if
67         the first element of argument `value' is `compat'.
68         (Fput_char_attribute): Eliminate the first value if
69         `put_char_composition' returns `<-compatibility'.
70         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
71         for `<-compatibility'.
72         (syms_of_chartab): Add new symbol `<-compatibility'.
73
74 2005-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
75
76         * chartab.c (Q_canonical): New variable.
77         (put_char_composition): Return a feature name: return
78         `->canonical' if argument `value' specifies single character.
79         (Fput_char_attribute): Use `put_char_composition' to determine
80         feature name for `=decomposition' or `->denotational'.
81         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
82         for `->canonical'.
83         (syms_of_chartab): Add new symbol `->canonical'.
84
85 2005-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
86
87         * chartab.c (Qmap_decomposition): New variable.
88         (Fput_char_attribute): Convert `->decomposition' to
89         `=decomposition'.
90         (syms_of_chartab): Add new symbol `=decomposition'.
91
92 2005-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
93
94         * chartab.c (Fget_range_char_table): Fix serious problem when
95         `range' is nil.
96
97 2005-06-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
98
99         * chartab.c (char_table_get_db): Use `read_from_c_string'.
100
101 2005-06-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
102
103         * lread.c (read_from_c_string): New function.
104
105         * lisp.h (read_from_c_string): New prototype.
106
107 2005-05-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
108
109         * chartab.c (Fput_char_attribute): Convert char-specs in value of
110         `{<-|->}Oracle-Bones[^*]*' to characters and put reverse links.
111         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
112         for `{<-|->}Oracle-Bones[^*]*'.
113
114 2005-05-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
115
116         * mule.c (vars_of_mule): Update `xemacs-chise-version' to 0.22
117         (Kizu).
118
119 2005-02-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
120
121         * text-coding.c (Qccs_priority_list): New variable in XEmacs
122         CHISE.
123         (Fmake_coding_system): Support new property `ccs-priority-list' in
124         XEmacs CHISE.
125         (Fcoding_system_property): Likewise.
126         (char_encode_iso2022): Prefer CODING_SYSTEM_CCS_PRIORITY_LIST than
127         Vdefault_coded_charset_priority_list in XEmacs CHISE.
128         (syms_of_file_coding): Add builtin symbol `ccs-priority-list' in
129         XEmacs CHISE.
130         (complex_vars_of_file_coding): Define new coding-system-property
131         `ccs-priority-list' in XEmacs CHISE.
132
133         * file-coding.h (XCODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
134
135 2004-12-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
136
137         * char-ucs.h (decoding_table_put_char): Moved to mule-charset.c;
138         changed to normal function.
139         (encode_char_2): Likewise.
140
141         * mule-charset.c (decoding_table_put_char): Copied from
142         char-ucs.h; changed to normal function.
143         (encode_char_2): Likewise.
144
145 2004-12-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
146
147         * char-ucs.h (Vdisplay_coded_charset_priority_use_inheritance):
148         New extern.
149         (Vdisplay_coded_charset_priority_use_hierarchy_order): Likewise.
150         (encode_char_2_search_children): New inline function.
151         (encode_char_2): Refer
152         `Vdisplay_coded_charset_priority_use_{inheritance|hierarchy_order}'
153         and use `encode_char_2_search_children'.
154
155 2004-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
156
157         * mule-charset.c
158         (Vdisplay_coded_charset_priority_use_inheritance): New variable.
159         (Vdisplay_coded_charset_priority_use_hierarchy_order): Likewise.
160         (vars_of_mule_charset): Add new variable
161         `display-coded-charset-priority-use-inheritance' and
162         `display-coded-charset-priority-use-hierarchy-order'.
163
164 2004-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
165
166         * char-ucs.h (Q_subsumptive): New extern.
167         (Q_denotational): Likewise.
168         (encode_char_2): Search children specified by `->subsumptive' and
169         `->denotational'.
170
171 2004-11-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
172
173         * mule-charset.c (complex_vars_of_mule_charset): Modify the
174         X-registry of `ucs-bmp'.
175
176 2004-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
177
178         * chartab.c (char-variants): Refer `->subsumptive',
179         `->denotational' and `->identical' as same as `->ucs-unified'.
180
181 2004-10-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
182
183         * chartab.c (Fput_char_attribute): Convert char-specs in value of
184         `{<-|->}{fullwidth|halfwidth}[^*]*' to characters and put reverse
185         links.
186
187 2004-09-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
188
189         * text-coding.c: Add EXFUN for `Fregexp_quote'.
190         (decode_add_er_char): Fix problem about infinite loop when a CCS
191         specified in `coded-charset-entity-reference-alist' is not
192         existed.
193
194 2004-09-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
195
196         * mule-charset.c (syms_of_mule_charset): Rename
197         `=jis-x0208-{1978|1983|1990}' to `=jis-x0208@{1978|1983|1990}'.
198
199 2004-08-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
200
201         * fns.c (simplify_char_spec): Don't allocate new character-object
202         if specified char_spec does not have any CCS-features.
203
204         * chartab.h: Add EXFUN for Fdefine_char.
205
206         * chartab.c: Delete EXFUN for Fdefine_char.
207
208 2004-08-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
209
210         * fns.c (simplify_char_spec): Use Fdefine_char instead of
211         Ffind_char for char-spec.
212
213 2004-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
214
215         * lisp-disunion.h (XCHARVAL): Fix condition about
216         SIZEOF_EMACS_INT.
217
218 2004-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
219
220         * mule-charset.c (decode_builtin_char): Use <EMACS_INT> instead of
221         <int> for `code'.
222         (Fdecode_builtin_char): Use <EMACS_INT> instead of <int> for code
223         point; use <Emchar> instead of <int> for character-id.
224
225 2004-07-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
226
227         * lisp-disunion.h (make_int): Cast the argument into <EMACS_INT>.
228         (make_char): Likewise.
229         (XCHARVAL): Don't use the inline function for UTF-2000 in 64 bit
230         environment.
231         (XCHARVAL[for UTF-2000 in 32 bit environment]): Use <Emchar>
232         instead of <int> as the type of return value; use <Lisp_Object>
233         instead of <Emchar> as the type of argument.
234         (XCHARVAL[macro version]): Cast the result into <Emchar>.
235
236         * syntax.h (SYNTAX_CODE_UNSAFE): Use <Lisp_Object> and <enum
237         syntaxcode> instead of <int>.
238
239 2004-07-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
240
241         * chartab.c (put_char_composition): Use DECODE_CHAR to get
242         character corresponding with UCS code point.
243         (Fput_char_attribute): Likewise.
244
245         * mule-charset.c (put_char_ccs_code_point): Don't omit a UCS
246         character in the UCS decoding-table if the char-id is not equal to
247         the UCS code point.
248
249 2004-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
250
251         * mule-charset.c (Fsave_charset_properties): Use `true-name' only
252         for aliases; write `description'; write
253         `mother-code-{min|max|offset|conversion}' if CHARSET_MAX_CODE is
254         not 0.
255
256 2004-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
257
258         * chartab.c (Fsave_char_attribute_table): Don't use
259         `save_charset_properties'.
260
261         * mule-charset.c (Fsave_charset_properties): Renamed from
262         `save_charset_properties' and changed to Lisp function again;
263         write property `type' as `CCS'; write properties `final-byte' and
264         `mother' if they exists.
265         (syms_of_mule_charset): Revive builtin function
266         `save-charset-properties' when HAVE_LIBCHISE is defined.
267
268 2004-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
269
270         * chartab.c (open_chise_data_source_maybe): Use Vdata_directory
271         instead of Vexec_directory.
272         (char_attribute_system_db_file): Likewise.
273
274 2004-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
275
276         * chartab.c (Fsave_char_attribute_table): Use
277         `save_charset_properties' for CCS features when HAVE_LIBCHISE is
278         defined.
279
280         * mule-charset.c (save_charset_properties): Renamed from
281         `Fsave_charset_properties'; changed to non-Lisp function.
282         (syms_of_mule_charset): Abolish builtin function
283         `save-charset-properties'.
284
285 2004-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
286
287         * mule-charset.c (Fsave_charset_properties): New function when
288         HAVE_LIBCHISE is defined.
289         (syms_of_mule_charset): Add new builtin function
290         `save-charset-properties' when HAVE_LIBCHISE is defined.
291
292 2004-06-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
293
294         * chartab.c (Fput_char_attribute): Convert char-specs in value of
295         `{<-|->}ancient[^*]*' to characters and put reverse links.
296         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
297         for `{<-|->}ancient[^*]*'.
298
299 2004-06-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
300
301         * chartab.c (Fput_char_attribute): Convert char-specs in value of
302         `{<-|->}original[^*]*' to characters and put reverse links.
303         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
304         for `{<-|->}original[^*]*'.
305
306 2004-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
307
308         * mule-canna.c (m2c): Fix problem with XEmacs CHISE.
309
310 2004-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
311
312         * mule-charset.c (Qsystem_char_id): New variable.
313
314         * chartab.c (Qsystem_char_id): Deleted even if HAVE_CHISE is
315         defined and HAVE_LIBCHISE_LIBCHISE is not defined.
316
317 2004-05-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
318
319         * chartab.c (Fput_char_attribute): When processing a reference of
320         a character, put into the end of the reversed reference of each
321         target character.
322
323 2004-05-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
324
325         * chartab.c (Q_same): Deleted.
326         (Q_same_of): Deleted.
327         (Fput_char_attribute): Use Fstring_match to find `{<-|->}same'.
328         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
329         for `{<-|->}same'.
330         (syms_of_chartab): Delete builtin symbol `{<-|->}same'.
331
332 2004-05-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
333
334         * chartab.c (Q_vulgar): Deleted.
335         (Q_vulgar_of): Deleted.
336         (Fput_char_attribute): Use Fstring_match to find `{<-|->}vulgar'.
337         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
338         for `{<-|->}vulgar'.
339         (syms_of_chartab): Don't define `{<-|->}vulgar'.
340
341 2004-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
342
343         * chartab.c (Fput_char_attribute): Convert char-specs in value of
344         `{<-|->}wrong[^*]*' to characters and put reverse links.
345         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
346         for `{<-|->}wrong[^*]*'.
347
348 2004-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
349
350         * chartab.c (Q_vulgar): New variable.
351         (Q_vulgar_of): New variable.
352         (Fput_char_attribute): Convert char-specs in value of
353         `{->|<-}vulgar' to characters and put reverse links.
354         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
355         for `{->|<-}vulgar'.
356         (syms_of_chartab): Add new symbols `{->|<-}vulgar'.
357
358 2004-04-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
359
360         * text-coding.c (decode_add_er_char): Must to quote prefix string
361         as regexp.
362
363 2004-04-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
364
365         * mule-charset.c (put_char_ccs_code_point): Store characters of
366         =ucs whose code_points >= 0xF0000.
367
368 2004-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
369
370         * mule-charset.c (Vcharset_system_char_id): New variable in XEmacs
371         CHISE.
372         (syms_of_mule_charset): Add new symbol `system-char-id' in XEmacs
373         CHISE.
374         (complex_vars_of_mule_charset): Add new coded-charset
375         `system-char-id' in XEmacs CHISE; modify `=ucs' to eliminate
376         builtin characters over 0xEFFFF.
377
378         * chartab.c (syms_of_chartab): Don't define symbol
379         `system-char-id' in every case.
380
381         * char-ucs.h (Qsystem_char_id): New extern variable.
382         (LEADING_BYTE_SYSTEM_CHAR_ID): New macro.
383
384 2004-04-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
385
386         * text-coding.c (char_encode_utf8): Try to use entity-references
387         for U-000F0000 ...  U-0010FFFF.
388
389 2004-04-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
390
391         * text-coding.c (ER_BUF_SIZE): New macro.
392         (struct decoding_stream): Use `ER_BUF_SIZE' to specify size of
393         `er_buf'.
394         (decode_add_er_char): Use `ER_BUF_SIZE' instead of 16.
395         (char_encode_as_entity_reference): Use `ER_BUF_SIZE'.
396
397 2004-03-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
398
399         * chartab.c (find_char_feature_in_family): New function.
400         (Fchar_feature): Use `find_char_feature_in_family' with
401         `->identical', `<-subsumptive' and `<-denotational'.
402
403 2004-03-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
404
405         * text-coding.c (char_encode_as_entity_reference): Allow prefix
406         within 8 characters; fix infinite loop.
407
408 2004-03-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
409
410         * chartab.c (Q_same): New variable.
411         (Q_same_of): New variable.
412         (Fput_char_attribute): Convert char-specs in value of
413         `{->|<-}same' to characters and put reverse links.
414         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
415         for `{->|<-}same'.
416         (syms_of_chartab): Add new symbols `{->|<-}same'.
417
418 2004-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
419
420         * chartab.c (Q_component): New variable.
421         (Q_component_of): Likewise.
422         (Fput_char_attribute): Convert char-specs in value of
423         `{->|<-}ideographic-component-forms' to characters and put reverse
424         links.
425         (syms_of_chartab): Add new symbols
426         `{->|<-}ideographic-component-forms'.
427
428 2004-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
429
430         * chartab.c (Q_identical): New variable.
431         (Q_identical_from): New variable.
432         (Fchar_feature): Regard `->identical' as a feature to find
433         ancestors.
434         (Fput_char_attribute): Add reversed link for `{->|<-}identical'.
435         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
436         for `{->|<-}identical'.
437         (syms_of_chartab): Add new symbols `{->|<-}identical'.
438
439 2004-02-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
440
441         * char-ucs.h (encode_char_2): New inline function.
442         (CHAR_TO_CHARC): Use `encode_char_2' instead of `encode_char_1'.
443
444 2004-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
445
446         * chartab.c (Fput_char_attribute): Convert char-specs to
447         characters in value of `ideographic-structure'.
448         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
449         for `{<-|->}simplified(@...)'.
450         (Fdefine_char): Try to use predefined character's id.
451
452 2004-02-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
453
454         * fns.c (simplify_char_spec): Try to convert builtin chars to
455         defined chars.
456
457 2004-02-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
458
459         * chartab.c (Fput_char_attribute): Convert char-specs in value of
460         `<-simplified[^*]*' to characters and put reverse links.
461
462 2004-02-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
463
464         * chartab.c (Q_subsumptive): Renamed from Q_unified.
465         (Q_subsumptive_from): Renamed from Q_unified_from.
466         (Fchar_feature): Use `Q_subsumptive_from' instead of
467         `Q_unified_from'.
468         (Fput_char_attribute): Likewise; Use `Q_subsumptive' instead of
469         `Q_unified'.
470         (syms_of_chartab): Rename `->unified' to `->subsumptive' and
471         `<-unified' to `<-subsumptive'.
472
473 2004-02-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
474
475         * chartab.c (Fchar_feature): Check `<-denotational' to avoid
476         inheritance itself; fix typo; stop recursive search if cyclic
477         inheritance is found.
478
479 2004-02-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
480
481         * chartab.c (Q_denotational): New variable.
482         (Q_denotational_from): New variable.
483         (Fchar_feature): Refer `<-denotational' as same as `<-unified'.
484         (put_char_attribute): New function.
485         (Fput_char_attribute): Use `put_char_attribute'; regard
486         `->denotational' and `<-denotational' as same as `->unified' and
487         `<-unified'.
488         (syms_of_chartab): Add new symbols `->denotational' and
489         `<-denotational'.
490
491 2004-02-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
492
493         * chartab.c (Fget_composite_char): Use `Fchar_feature' instead of
494         `Fget_char_attribute'.
495         (Fchar_variants): Likewise.
496         (get_char_table): Likewise.
497         (Fchar_feature): New function.
498         (put_char_composition): Use `Fchar_feature' instead of
499         `Fget_char_attribute'.
500         (Fput_char_attribute): Likewise; don't put the target character
501         into its `->unified' value.
502         (syms_of_chartab): Add new builtin function `char-feature'.
503
504 2004-01-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
505
506         * text-coding.c (COMPOSE_ADD_CHAR): Use `Fchar_feature' instead of
507         `Fget_char_attribute'.
508         (char_encode_utf8): Likewise.
509
510         * chartab.h: Add an EXFUN for `Fchar_feature'.
511
512 2004-01-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
513
514         * chartab.c (Vnext_defined_char_id): New variable.
515         (Fput_char_attribute): Accept characters in `->unified'.
516         (Fdefine_char): Refer and update Vnext_defined_char_id to allocate
517         new characters which are not related with builtin char-id ranges.
518         (vars_of_chartab): Add new variable `next-defined-char-id'.
519
520 2004-01-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
521
522         * chartab.c (Q_unified): New variable.
523         (Q_unified_from): New variable.
524         (Fput_char_attribute): Add code for `->unified'.
525         (syms_of_chartab): Add new symbols `->unified' and `<-unified' in
526         XEmacs CHISE.
527
528 2003-11-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
529
530         * mule-charset.c (decode_ccs_conversion): New function.
531         (decode_defined_char): Use `decode_ccs_conversion'.
532         (decode_builtin_char): Likewise.
533
534 2003-11-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
535
536         * char-ucs.h: Change some charset-ids of private coded-charsets.
537
538 2003-11-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
539
540         * text-coding.c (decode_add_er_char): Modify for `DECODE_CHAR'.
541         (char_encode_as_entity_reference): Likewise.
542         (decode_coding_big5): Modify for `decode_defined_char' and
543         `DECODE_CHAR'.
544         (decode_coding_utf8): Modify for `decode_defined_char'; modify to
545         avoid compiler warning.
546         (decode_coding_iso2022): Modify for `DECODE_CHAR'.
547
548         * mule-charset.c (decode_defined_char): Add new argument
549         `without_inheritance'.
550         (Fdecode_char): Add new optional argument `without_inheritance'.
551         (Fdecode_builtin_char): Modify for `Fdecode_char'.
552
553         * fns.c (ids_format_unit): Modify for `Fdecode_char'.
554         (simplify_char_spec): Likewise.
555
556         * chartab.h (Fdecode_char): Modify number of arguments of EXFUN
557         setting.
558
559         * chartab.c (put_char_table): Modify for `DECODE_CHAR'.
560         (map_char_table): Likewise.
561         (Fdefine_char): Use `Fdecode_char' without inheritance.
562         (Ffind_char): Modify for `Fdecode_char'.
563
564         * character.h (CHARC_TO_CHAR): Modify for `DECODE_CHAR'.
565
566         * char-ucs.h (decode_defined_char): Add new argument
567         `without_inheritance'.
568         (DECODE_CHAR): Likewise.
569         (MAKE_CHAR): Modify for `DECODE_CHAR'.
570
571 2003-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
572
573         * chartab.c (Vchise_system_db_directory): New variable.
574         (vars_of_chartab): Add new variable `chise-system-db-directory'.
575
576 2003-10-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
577
578         * chartab.c: EXFUN `Fmount_char_attribute_table'.
579         (print_chartab_range): Don't define when `UTF2000' is defined.
580         (open_chise_data_source_maybe): Specify 0 instead of DB_HASH for
581         `CHISE_DS_open'.
582
583 2003-10-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
584
585         * chartab.c (Fchar_attribute_list): When HAVE_LIBCHISE is defined
586         and optional argument `rehash' is specified, call
587         `open_chise_data_source_maybe' before
588         `chise_ds_foreach_char_feature_name' is called.
589
590 2003-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
591
592         * chartab.c (char_attribute_list_reset_map_func): New function
593         when HAVE_LIBCHISE is defined.
594         (Fchar_attribute_list): Add new optional argument `rehash' when
595         HAVE_LIBCHISE is defined.
596         (open_chise_data_source_maybe): Use "chise-db" instead of
597         "char-db".
598         (char_attribute_system_db_file): Likewise.
599         (Fload_char_attribute_table): Use
600         `chise_feature_foreach_char_with_value' instead of
601         `chise_char_feature_value_iterate'.
602
603 2003-10-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
604
605         * chartab.c (Vchise_db_directory): New variable.
606         (vars_of_chartab): Add new built-in variable `chise-db-directory'.
607
608 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
609
610         * mule-charset.c (Freset_charset_mapping_table): Use HAVE_LIBCHISE
611         instead of HAVE_CHISE to specify using with libchise.
612
613         * config.h.in (HAVE_CHISE_CLIENT): Deleted.
614
615         * chartab.h: Don't use HAVE_CHISE_CLIENT.
616
617         * chartab.c (Qsystem_char_id): Don't define when HAVE_CHISE is not
618         defined or HAVE_LIBCHISE_LIBCHISE is defined.
619         (char_attribute_system_db_file): Don't define when HAVE_LIBCHISE
620         is defined.
621         (Freset_char_attribute_table): Use HAVE_LIBCHISE instead of
622         HAVE_CHISE to specify using with libchise.
623         (syms_of_chartab): Don't define symbol `system-char-id' when
624         HAVE_CHISE is not defined or HAVE_LIBCHISE_LIBCHISE is defined.
625
626 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
627
628         * mule-charset.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
629         specify CHISE DB support.
630         (Freset_charset_mapping_table): Use `chise_ccs_setup_db' instead
631         of `char_attribute_system_db_file' to check feature DB file.
632
633         * chartab.h, casetab.c, char-ucs.h: Use HAVE_CHISE instead of
634         HAVE_CHISE_CLIENT to specify CHISE DB support.
635
636         * chartab.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
637         specify CHISE DB support.
638         (open_chise_data_source_maybe): Don't define when HAVE_LIBCHISE is
639         not defined.
640         (Freset_char_attribute_table): Use `chise_feature_setup_db'
641         instead of `char_attribute_system_db_file' to check feature DB
642         file.
643
644 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
645
646         * mule.c (vars_of_mule): Use `HAVE_CHISE' instead of `CHISE' and
647         `HAVE_CHISE_CLIENT'.
648
649 2003-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
650
651         * mule-charset.c: Use HAVE_LIBCHISE instead of CHISE.
652         (Fsave_charset_mapping_table): Don't use
653         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
654
655         * config.h.in (HAVE_CHISE): Renamed from `CHISE'.
656         (HAVE_LIBCHISE): New macro.
657
658         * chartab.h: Use HAVE_LIBCHISE instead of CHISE.
659
660         * chartab.c: Use HAVE_LIBCHISE instead of CHISE.
661         (Fsave_char_attribute_table): Don't use
662         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
663
664 2003-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
665
666         * chartab.c (save_uint8_byte_table): Use libchise when CHISE is
667         defined.
668         (save_uint16_byte_table): Likewise.
669         (save_byte_table): Likewise.
670         (char_table_get_db): Use `chise_ds_load_char_feature_value'
671         instead of `chise_char_load_feature_value'.
672         (Fsave_char_attribute_table): Use libchise when CHISE is defined.
673
674 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
675
676         * chartab.h (struct Lisp_Char_Table): Delete member
677         `feature_table' if CHISE is defined.
678
679         * chartab.c (Fmake_char_table): Don't refer `ct->feature_table'.
680         (Fcopy_char_table): Likewise.
681         (char_table_open_db_maybe): Likewise.
682         (char_table_close_db_maybe): Likewise.
683         (char_table_get_db): Likewise.
684         (Fmount_char_attribute_table): Likewise.
685         (Fload_char_attribute_table): Likewise.
686
687 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
688
689         * mule-charset.c (load_char_decoding_entry_maybe): Use
690         `chise_ds_decode_char' instead of `chise_ds_get_ccs' and
691         `chise_ccs_decode'.
692
693 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
694
695         * chartab.c (open_chise_data_source_maybe): Use `CHISE_DS_open'
696         instead of `chise_open_data_source'.
697         (Fclose_char_data_source): Use `CHISE_DS_close' instead of
698         `chise_ds_close'.
699
700 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
701
702         * chartab.c (char_table_open_db_maybe): Use `chise_ds_get_feature'
703         instead of `chise_ds_open_feature_table'.
704         (char_table_close_db_maybe): Don't use `chise_ft_close'.
705
706 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
707
708         * mule-charset.c (Fsave_charset_mapping_table): Use
709         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; use
710         `chise_ccs_set_decoded_char' instead of `chise_ccst_put_char'; use
711         `chise_ccs_sync' instead of `chise_ccst_close'.
712         (load_char_decoding_entry_maybe): Modify for `chise_ds_get_ccs'.
713
714         * chartab.c (open_chise_data_source_maybe): Modify for
715         `chise_open_data_source'.
716         (char_table_open_db_maybe): Modify for
717         `chise_ds_open_feature_table'.
718
719 2003-08-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
720
721         * mule-charset.c (load_char_decoding_entry_maybe): Use
722         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; don't use
723         `chise_ccst_close'.
724
725 2003-08-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
726
727         * mule-charset.c (Fsave_charset_mapping_table): Use
728         `chise_ds_open_ccs_table', `chise_ccst_put_char' and
729         `chise_ccst_close' instead of `chise_ds_open_decoding_table',
730         `chise_dt_put_char' and `chise_dt_close'.
731         (load_char_decoding_entry_maybe): Use `chise_ds_open_ccs_table',
732         `chise_ccs_decode' and `chise_ccst_close' instead of
733         `chise_ds_open_decoding_table', `chise_dt_get_char' and
734         `chise_dt_close'.
735
736         * chartab.c (char_table_get_db): Use
737         `chise_char_load_feature_value' instead of `chise_ft_get_value'.
738         (load_char_attribute_table_map_func): Modify for
739         `chise_char_feature_value_iterate'.
740         (Fload_char_attribute_table): Use
741         `chise_char_feature_value_iterate' instead of `chise_ft_iterate'.
742
743 2003-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
744
745         * text-coding.c (COMPOSE_ADD_CHAR): Fixed.
746
747 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
748
749         * chartab.c (put_char_table): Modify for inherited coded-charsets
750         in XEmacs CHISE.
751
752 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
753
754         * chartab.c (Fput_char_table_map_function): Fixed.
755         (word_boundary_p): Don't check charset in XEmacs CHISE.
756
757 2003-08-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
758
759         * mule-charset.c (Fsave_charset_mapping_table): Use
760         `open_chise_data_source_maybe'; use `chise_ds_open_decoding_table'
761         instead of `chise_open_decoding_table'; refer
762         `default_chise_data_source'; use `chise_dt_close' instead of
763         `chise_close_decoding_table'.
764         (load_char_decoding_entry_maybe): Likewise.
765
766         * chartab.c (default_chise_data_source): New variable when `CHISE'
767         is defined.
768         (Fcopy_char_table): `ct->ds' is deleted.
769         (open_chise_data_source_maybe): New function.
770         (Fclose_char_data_source): New function.
771         (char_table_open_db_maybe): Use `open_chise_data_source_maybe';
772         use `chise_ds_open_feature_table' instead of
773         `chise_open_feature_table'.
774         (char_table_close_db_maybe): Use `chise_ft_close' instead of
775         `chise_close_feature_table'; `cit->ds' is deleted.
776         (syms_of_chartab): Add new builtin function
777         `close-char-data-source' when `HAVE_CHISE_CLIENT' is defined.
778
779         * chartab.h (default_chise_data_source): New extern variable.
780         (open_chise_data_source_maybe): New prototype.
781         (struct Lisp_Char_Table): Delete `ds'.
782
783 2003-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
784
785         * mule-charset.c (Fsave_charset_mapping_table): Use libchise when
786         `CHISE' is defined.
787
788 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
789
790         * chartab.c (char_table_open_db_maybe): Defined even if `CHISE' is
791         not defined; add code for non-libchise setting.
792         (char_table_close_db_maybe): Likewise.
793         (char_table_get_db): New function when `HAVE_CHISE_CLIENT' is
794         defined.
795         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'
796         even if `CHISE' is not defined.
797         (Freset_char_attribute_table): Likewise.
798         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
799         `char_table_close_db_maybe' even if `CHISE' is not defined; use
800         `char_table_get_db'.
801         (Fload_char_attribute_table): Use `char_table_open_db_maybe' and
802         `char_table_close_db_maybe' even if `CHISE' is not defined.
803
804 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
805
806         * chartab.c (char_table_open_db_maybe): New function.
807         (char_table_close_db_maybe): New function.
808         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'.
809         (Freset_char_attribute_table): Likewise.
810         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
811         `char_table_close_db_maybe'.
812         (Fload_char_attribute_table): Likewise.
813
814 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
815
816         * chartab.c: Don't include <chise.h> because it is included in
817         chartab.h.
818         (Fmake_char_table): Initialize `ct->feature_table' when `CHISE' is
819         defined.
820         (Fcopy_char_table): Copy `ct->ds' and `ct->feature_table' when
821         `CHISE' is defined.
822         (Fmount_char_attribute_table): Initialize `ct->feature_table' when
823         `CHISE' is defined.
824         (Fclose_char_attribute_table): Close `ct->feature_table' and
825         `ct->ds' when `CHISE' is defined.
826         (Freset_char_attribute_table): Likewise.
827         (load_char_attribute_maybe): Use `cit->ds' and
828         `cit->feature_table' when `CHISE' is defined.
829         (Fload_char_attribute_table): Likewise.
830
831         * chartab.h: Include <chise.h> when `CHISE' is defined.
832         (struct Lisp_Char_Table): Add new member `ds' and `feature_table'
833         when `CHISE' is defined.
834
835 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
836
837         * chartab.c (mark_char_table): Member `db' is deleted when `CHISE'
838         is defined.
839         (char_table_description): Likewise.
840         (Fmake_char_table): Likewise.
841         (Fcopy_char_table): Likewise.
842         (Fmount_char_attribute_table): Likewise.
843         (Fclose_char_attribute_table): Likewise.
844         (Freset_char_attribute_table): Likewise.
845         (load_char_attribute_maybe): Likewise.
846         (Fload_char_attribute_table): Likewise.
847
848         * chartab.h (struct Lisp_Char_Table): Delete `db' when `CHISE' is
849         defined.
850
851 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
852
853         * chartab.c (load_char_attribute_table_map_func): New function
854         when CHISE is defined.
855         (Qload_char_attribute_table_map_function): Don't define when CHISE
856         is defined.
857         (Fload_char_attribute_table_map_function): Likewise.
858         (Fload_char_attribute_table): Use libchise when `CHISE' is
859         defined.
860         (syms_of_chartab): Don't define
861         `load-char-attribute-table-map-function' when CHISE is defined.
862
863 2003-08-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
864
865         * chartab.c: Include <chise.h> when `CHISE' is defined.
866         (load_char_attribute_maybe): Use libchise when `CHISE' is defined.
867
868 2003-07-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
869
870         * mule-charset.c (charset_code_point): Fix problem when searching
871         in mother CCS fails with `defined_only' mode.
872
873 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
874
875         * chartab.c (Q_ucs_unified): Renamed from `Q_ucs_variants'.
876         (Fchar_variants): Rename `Q_ucs_variants' to `Q_ucs_unified'.
877         (put_char_composition): Likewise.
878         (Fput_char_attribute): Likewise.
879         (syms_of_chartab): Rename `->ucs-variants' to `->ucs-unified'.
880
881 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
882
883         * chartab.c (Q_ucs): Deleted.
884         (Fput_char_attribute): Don't refer `->ucs'.
885         (Fdefine_char): Likewise.
886         (Ffind_char): Likewise.
887         (syms_of_chartab): Delete `->ucs'.
888
889 2003-04-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
890
891         * mule-charset.c (Qmap_cns11643_2): Renamed from
892         `Qchinese_cns11643_2'.
893         (syms_of_mule_charset): Add new symbol `=cns11643-2' instead of
894         `chinese-cns11643-2'.
895         (complex_vars_of_mule_charset): Rename `chinese-cns11643-2' to
896         `=cns11643-2'.
897
898 2003-04-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
899
900         * mule-charset.c (Qmap_cns11643_1): Renamed from
901         `Qchinese_cns11643_1'.
902         (syms_of_mule_charset): Add new symbol `=cns11643-1' instead of
903         `chinese-cns11643-1'.
904         (complex_vars_of_mule_charset): Rename `chinese-cns11643-1' to
905         `=cns11643-1'.
906
907 2003-04-24  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
908
909         * mule-charset.c (Qmap_gb12345): Renamed from `Qchinese_gb12345'.
910         (syms_of_mule_charset): Add new symbol `=gb12345' instead of
911         `chinese-gb12345'.
912         (complex_vars_of_mule_charset): Rename `chinese-gb12345' to
913         `=gb12345'.
914
915 2003-04-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
916
917         * mule-charset.c (Qmap_gb2312): Renamed from `Qchinese_gb2312'.
918         (syms_of_mule_charset): Add new symbol `=gb2312' instead of
919         `chinese-gb2312'.
920         (complex_vars_of_mule_charset): Rename `chinese-gb2312' to
921         `=gb2312'.
922
923 2003-04-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
924
925         * mule-charset.c (Qmap_big5): Renamed from `Qchinese_big5'.
926         (syms_of_mule_charset): Add new symbol `=big5' instead of
927         `chinese-big5'.
928         (complex_vars_of_mule_charset): Rename `chinese-big5' to `=big5'.
929
930 2003-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
931
932         * mule-charset.c (Qmap_ks_x1001): Renamed from `Qkorean_ksc5601'.
933         (syms_of_mule_charset): Add new symbol `=ks-x1001' instead of
934         `korean-ksc5601'.
935         (complex_vars_of_mule_charset): Rename `korean-ksc5601' to
936         `=ks-x1001'.
937
938 2003-04-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
939
940         * mule-charset.c (Qmap_jis_x0212): Renamed from
941         `Qjapanese_jisx0212'.
942         (syms_of_mule_charset): Add new symbol `=jis-x0212' instead of
943         `japanese-jisx0212'.
944         (complex_vars_of_mule_charset): Rename `japanese-jisx0212' to
945         `=jis-x0212'.
946
947 2003-04-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
948
949         * mule-charset.c (Qmap_jis_x0208_1983): Renamed from
950         `Qjapanese_jisx0208'.
951         (syms_of_mule_charset): Add new symbol `=jis-x0208-1983' instead
952         of `japanese-jisx0208'.
953         (complex_vars_of_mule_charset): Rename `japanese-jisx0208' to
954         `=jis-x0208-1983'.
955
956 2003-04-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
957
958         * mule-charset.c (Qmap_jis_x0208_1978): Renamed from
959         `Qjapanese_jisx0208_1978'.
960         (syms_of_mule_charset): Add new symbol `=jis-x0208-1978' instead
961         of `japanese-jisx0208-1978'.
962         (complex_vars_of_mule_charset): Rename `japanese-jisx0208-1978' to
963         `=jis-x0208-1978'.
964
965 2003-04-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
966
967         * chartab.c (decode_char_table_range): CHARTAB_RANGE_DEFAULT is
968         only for XEmacs CHISE.
969
970 2003-04-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
971
972         * char-ucs.h: Compact non-ISO-IR charset-ids.
973         (LEADING_BYTE_UCS): Changed to -177.
974         (LEADING_BYTE_CONTROL_1): Changed to -77.
975         (LEADING_BYTE_UCS_BMP): Changed to -176.
976         (LEADING_BYTE_JAPANESE_JISX0208_1990): Changed to -168.
977
978 2003-04-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
979
980         * mule-charset.c (Qiso_ir): New variable.
981         (Fmake_charset): Recognise new property `iso-ir'.
982         (syms_of_mule_charset): Add new symbol `iso-ir'.
983
984 2003-04-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
985
986         * char-ucs.h: Change charset-id of ISO-IR sets from ISO-IR-number
987         n to -n; charset-id of non ISO-IR sets are changed to positive
988         numbers.
989
990 2003-03-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
991
992         * text-coding.c (decode_add_er_char): Use XUINT instead of XINT
993         for &MCS-XXXXXXXX; values.
994
995 2003-03-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
996
997         * mule.c (Vxemacs_chise_version): Renamed from
998         `Vutf_2000_version'.
999         (vars_of_mule): Add new variable `xemacs-chise-version'; define
1000         `utf-2000-version' as an alias for `xemacs-chise-version'.
1001
1002 2003-03-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1003
1004         * mule-charset.c: Include <chise.h> when `CHISE' is defined.
1005         (load_char_decoding_entry_maybe): Use libchise when `CHISE' is
1006         defined.
1007
1008         * config.h.in (CHISE): New macro.
1009
1010 2003-03-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1011
1012         * mule-charset.c (put_char_ccs_code_point): Refer `=ucs' instead
1013         of `ucs'.
1014         (Qmap_ucs): New variable.
1015         (syms_of_mule_charset): Add new symbol `=ucs'.
1016         (complex_vars_of_mule_charset): Rename `ucs' to `=ucs'.
1017
1018         * fns.c (ids_format_unit): Refer `=ucs' instead of `ucs'.
1019         (simplify_char_spec): Likewise.
1020
1021         * chartab.c (Fdefine_char): Refer `=ucs' as same as `ucs'.
1022
1023         * char-ucs.h (Qmap_ucs): New extern variable.
1024
1025 2003-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1026
1027         * mule-charset.c (Qmap_jis_x0208): Renamed from `Qjis_x0208'.
1028         (Qmap_jis_x0208_1990): Renamed from `Qjapanese_jisx0208_1990';
1029         don't define it when UTF2000 is not defined.
1030         (syms_of_mule_charset): Modify for `Qmap_jis_x0208'; rename
1031         `japanese-jisx0208-1990' to `=jis-x0208-1990'; don't define it
1032         when UTF2000 is not defined.
1033         (complex_vars_of_mule_charset): Modify for `Qmap_jis_x0208';
1034         rename `japanese-jisx0208-1990' to `=jis-x0208-1990'.
1035
1036 2003-03-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1037
1038         * char-ucs.h (LEADING_BYTE_UCS_GB): Deleted.
1039
1040         * mule-charset.c (Vcharset_ucs_gb): Deleted.
1041         (Qucs_gb): Deleted.
1042         (syms_of_mule_charset): Delete `ucs-gb'.
1043         (complex_vars_of_mule_charset): Likewise.
1044
1045 2003-03-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1046
1047         * char-ucs.h (LEADING_BYTE_UCS_CNS): Deleted.
1048
1049         * mule-charset.c (Vcharset_ucs_cns): Deleted.
1050         (Qucs_cns): Deleted.
1051         (syms_of_mule_charset): Delete `ucs-cns'.
1052         (complex_vars_of_mule_charset): Likewise.
1053
1054 2003-03-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1055
1056         * char-ucs.h (LEADING_BYTE_UCS_JIS): Deleted.
1057
1058         * mule-charset.c (Vcharset_ucs_jis): Deleted.
1059         (Qucs_jis): Deleted.
1060         (syms_of_mule_charset): Delete `ucs-jis'.
1061         (complex_vars_of_mule_charset): Likewise.
1062
1063 2003-03-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1064
1065         * char-ucs.h (LEADING_BYTE_UCS_KS): Deleted.
1066
1067         * mule-charset.c (Vcharset_ucs_ks): Deleted.
1068         (Qucs_ks): Deleted.
1069         (syms_of_mule_charset): Delete `ucs-ks'.
1070         (complex_vars_of_mule_charset): Likewise.
1071
1072 2003-03-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1073
1074         * mule-charset.c (Vcharset_ideograph_daikanwa_2): Deleted.
1075         (Qideograph_daikanwa_2): Deleted.
1076         (syms_of_mule_charset): Delete `ideograph-daikanwa-2'.
1077         (complex_vars_of_mule_charset): Likewise.
1078
1079         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): Deleted.
1080         (LEADING_BYTE_DAIKANWA_1): Deleted.
1081         (LEADING_BYTE_DAIKANWA_2): Deleted.
1082         (MIN_CHAR_DAIKANWA): Deleted.
1083         (MAX_CHAR_DAIKANWA): Deleted.
1084
1085 2003-02-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1086
1087         * char-ucs.h (LEADING_BYTE_DAIKANWA_3): Deleted.
1088         (LEADING_BYTE_HANZIKU_{1..12}): Deleted.
1089         ({MIN|MAX}_CHAR_HANZIKU_{1..12}): Deleted.
1090
1091         * mule-charset.c (Vcharset_ideograph_hanziku_{1..12}): Deleted.
1092         (Vcharset_ideograph_daikanwa): Deleted.
1093         (Qideograph_hanziku_{1..12}): Deleted.
1094         (Qideograph_daikanwa): Deleted.
1095         (encode_builtin_char_1): Don't use {MIN|MAX}_CHAR_DAIKANWA and
1096         Vcharset_ideograph_daikanwa.
1097         (syms_of_mule_charset): Delete `ideograph-daikanwa' and
1098         `ideograph-hanziku-{1..12}'.
1099         (complex_vars_of_mule_charset): Likewise.
1100
1101 2003-02-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1102
1103         * char-ucs.h (LEADING_BYTE_GT_PJ_{1..11}): Deleted.
1104
1105         * mule-charset.c (Vcharset_ideograph_gt_pj_{1..11}): Deleted.
1106         (Qideograph_gt_pj_{1..11}): Deleted.
1107         (syms_of_mule_charset): Delete `ideograph-gt-pj-{1..11}'.
1108         (complex_vars_of_mule_charset): Likewise.
1109
1110 2003-02-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1111
1112         * mule-charset.c (Vcharset_ucs_big5): Deleted.
1113         (Vcharset_ideograph_gt): Deleted.
1114         (Qucs_big5): Deleted.
1115         (Qideograph_gt): Deleted.
1116         (syms_of_mule_charset): Delete symbol `ucs-big5' and
1117         `ideograph-gt'.
1118         (complex_vars_of_mule_charset): Delete coded-charset `ucs-big5'
1119         and `ideograph-gt'.
1120
1121         * char-ucs.h (LEADING_BYTE_UCS_BIG5): Deleted.
1122         (LEADING_BYTE_GT): Deleted.
1123         (MIN_CHAR_GT): Deleted.
1124         (MAX_CHAR_GT): Deleted.
1125
1126 2003-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1127
1128         * chartab.c (Fput_char_attribute): Canonicalise charset-aliases.
1129
1130 2003-01-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1131
1132         * chartab.c (save_uint8_byte_table): Add new argument `filter'.
1133         (save_uint16_byte_table): Likewise.
1134         (save_byte_table): Likewise; convert values by it.
1135         (Fput_char_attribute): Don't use `char-refs-simplify-char-specs'
1136         for `ideographic-structure'.
1137         (Fsave_char_attribute_table): Use `char-refs-simplify-char-specs'
1138         as the filter for `ideographic-structure'.
1139
1140 2003-01-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1141
1142         * chartab.c (put_char_composition): New function.
1143         (Fput_char_attribute): Use `put_char_composition'; use
1144         `Fchar_refs_simplify_char_specs' for `ideographic-structure'.
1145
1146         * fns.c (simplify_char_spec): New function.
1147         (char_ref_simplify_spec): New function.
1148         (Fchar_refs_simplify_char_specs): New function.
1149         (syms_of_fns): Add new builtin function
1150         `char-refs-simplify-char-specs'.
1151
1152 2003-01-05  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1153
1154         * mule-charset.c (Vcharset_ideograph_cbeta): Deleted.
1155         (Qideograph_cbeta): Deleted.
1156         (syms_of_mule_charset): Don't define `ideograph-cbeta'.
1157         (complex_vars_of_mule_charset): Likewise.
1158
1159         * char-ucs.h (LEADING_BYTE_CBETA): Deleted.
1160         (MIN_CHAR_CBETA): Comment out.
1161         (MAX_CHAR_CBETA): Likewise.
1162
1163 2002-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1164
1165         * mule-charset.c, chartab.h, casetab.c, char-ucs.h, chartab.c: Use
1166         `HAVE_CHISE_CLIENT' instead of `HAVE_DATABASE' to indicate the
1167         CHISE client feature.
1168
1169 2002-12-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1170
1171         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.20.
1172
1173 2002-12-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1174
1175         * mule-charset.c (charset_lookup_description_1): Use
1176         `NUM_LEADING_BYTES' in UTF-2000.
1177
1178 2002-12-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1179
1180         * char-ucs.h (GC_CHARSETP): Deleted.
1181
1182 2002-12-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1183
1184         * char-ucs.h (MAX_CHAR_GT): Updated.
1185
1186 2002-12-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1187
1188         * text-coding.c: Sync with XEmacs 21.4.10.
1189
1190 2002-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1191
1192         * mule-charset.c (Vcharset_china3_jef): Deleted.
1193         (Qchina3_jef): Deleted.
1194         (syms_of_mule_charset): Don't define `china3-jef'.
1195         (complex_vars_of_mule_charset): Likewise.
1196
1197         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Deleted.
1198         (MIN_CHAR_CHINA3_JEF): Comment out.
1199         (MAX_CHAR_CHINA3_JEF): Comment out.
1200
1201 2002-11-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1202
1203         * mule-charset.c (Vcharset_ucs_gb): New variable.
1204         (Qucs_gb): New variable.
1205         (syms_of_mule_charset): Add new symbol `ucs-gb'.
1206         (complex_vars_of_mule_charset): Add new coded-charset `ucs-gb'.
1207
1208         * char-ucs.h (LEADING_BYTE_UCS_GB): New macro.
1209
1210 2002-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1211
1212         * mule-charset.c (charset_code_point): if a coded-charset has a
1213         final-byte, don't inherit the builtin range of the mother CCS.
1214
1215 2002-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1216
1217         * mule-charset.c (charset_code_point): Fix problem about
1218         inheritance.
1219
1220 2002-11-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1221
1222         * mule-charset.c (decode_builtin_char): Reorganized.
1223
1224 2002-10-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1225
1226         * text-coding.c (char_encode_as_entity_reference): Modify for
1227         `charset_code_point'.
1228         (char_encode_shift_jis): Likewise.
1229         (char_encode_big5): Likewise.
1230         (char_encode_utf8): Likewise.
1231         (char_encode_iso2022): Likewise.
1232
1233         * mule-charset.c (charset_code_point): Add new argument
1234         `defined_only'.
1235         (Fencode_char): Add new optional argument `defined_only'.
1236
1237         * chartab.c (put_char_table): Modify for `charset_code_point'.
1238
1239         * char-ucs.h (charset_code_point): Add new argument
1240         `defined_only'.
1241         (encode_char_1): Modify for `charset_code_point'.
1242
1243 2002-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1244
1245         * mule-charset.c (complex_vars_of_mule_charset): Don't specify
1246         `MIN_CHAR_THAI' and `MAX_CHAR_THAI' for `thai-tis620'.
1247
1248 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1249
1250         * mule-charset.c (Vcharset_jis_x0208): New variable in UTF-2000.
1251         (Qjis_x0208): Likewise.
1252         (decode_builtin_char): Prefer XCHARSET_MAX_CODE(charset) than
1253         XCHARSET_FINAL(charset).
1254         (charset_code_point): Modify condition for final-byte based
1255         builtin-chars.
1256         (syms_of_mule_charset): Add new symbol `=jis-x0208' in UTF-2000.
1257         (complex_vars_of_mule_charset): Add new coded-charset `=jis-x0208'
1258         in UTF-2000; specify `=jis-x0208' as the mother of
1259         `japanese-jisx0208-1978', `japanese-jisx0208' and
1260         `japanese-jisx0208-1990' in UTF-2000.
1261
1262 2002-10-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1263
1264         * char-ucs.h (LEADING_BYTE_JIS_X0208): New macro.
1265
1266 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1267
1268         * text-coding.c (decode_coding_utf16): Support UTF-16.
1269         (char_encode_utf16): Fixed.
1270
1271 2002-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1272
1273         * text-coding.c (Qutf16): New variable in MULE.
1274         (Fmake_coding_system): Accept `utf-16' as `type' in MULE.
1275         (Fcoding_system_type): Add `utf-16' in MULE.
1276         (struct detection_state): Add a structure for utf16 in MULE.
1277         (detect_coding_type): Setup st->utf16.mask in MULE.
1278         (mule_decode): Use `decode_coding_utf16' for `CODESYS_UTF16' in
1279         MULE.
1280         (reset_encoding_stream): Use `char_encode_utf16' and
1281         `char_finish_utf16' for `CODESYS_UTF16' in MULE.
1282         (detect_coding_utf16): New function [incomplete].
1283         (decode_coding_utf16): New function [support only UCS-2].
1284         (char_encode_utf16): New function.
1285         (char_finish_utf16): New function.
1286         (syms_of_file_coding): Add new symbol `utf-16'; setup
1287         `coding_category_symbol[CODING_CATEGORY_UTF16]'.
1288
1289         * file-coding.h (enum coding_system_type): Add `CODESYS_UTF16' in
1290         UTF-2000.
1291         (enum coding_category_type): Add `CODING_CATEGORY_UTF16' in MULE.
1292         (CODING_CATEGORY_UTF16_MASK): New macro in MULE.
1293
1294 2002-10-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1295
1296         * chartab.c (put_char_table): When a charset is specified as a
1297         range in UTF-2000, don't support builtin characters.
1298
1299 2002-09-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1300
1301         * mule-charset.c (decode_defined_char): Don't refer external
1302         database if Qunbound or Qnil are found.
1303         (Fsave_charset_mapping_table): Don't define it if
1304         HAVE_CHISE_CLIENT is not defined.
1305         (Freset_charset_mapping_table): New function.
1306         (load_char_decoding_entry_maybe): Store Qnil if a character is not
1307         found in external database.
1308         (syms_of_mule_charset): Don't define `save-charset-mapping-table'
1309         if HAVE_CHISE_CLIENT is not defined; add new builtin function
1310         `reset-charset-mapping-table' if HAVE_CHISE_CLIENT is defined.
1311
1312 2002-09-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1313
1314         * text-coding.c (decode_coding_utf8): Check CCS is specified or
1315         not.
1316
1317 2002-08-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1318
1319         * chartab.h: Add extern declarations for Qdowncase, Qflippedcase,
1320         Q_lowercase, Q_uppercase in UTF-2000.
1321
1322         * chartab.c (get_char_table): Add special code for the standard
1323         case table to use character attribute `->downcase' and
1324         `->uppercase' for case operations in UTF-2000.
1325
1326         * casetab.c (Qflippedcase): New variable in UTF-2000.
1327         (Q_lowercase): Likewise.
1328         (Q_uppercase): Likewise.
1329         (syms_of_casetab): Add new symbols `flippedcase', `->lowercase'
1330         and `->uppercase' in UTF-2000.
1331         (complex_vars_of_casetab): Assign attribute name `downcase' to
1332         downcase and CANON table of Vstandard_case_table in UTF-2000;
1333         assign attribute name `flippedcase' to upcase and EQV table of
1334         Vstandard_case_table in UTF-2000.
1335
1336 2002-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1337
1338         * text-coding.c (decode_add_er_char): Support isolated-chars.
1339         (char_encode_as_entity_reference): Likewise.
1340
1341 2002-08-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1342
1343         * emacs.c (Vutf_2000_lisp_directory): New variable.
1344         (Vconfigure_utf_2000_lisp_directory): Likewise.
1345         (complex_vars_of_emacs): Add new variable
1346         `utf-2000-lisp-directory' and `configure-utf-2000-lisp-directory'.
1347
1348 2002-08-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1349
1350         * char-ucs.h (DECODE_CHAR): Delete special code for
1351         `chinese-big5-1' and `chinese-big5-2'.
1352
1353         * mule-charset.c (Qbig5_1): New variable in UTF-2000.
1354         (Qbig5_2): Likewise.
1355         (decode_defined_char): Support CONVERSION_BIG5_1 and
1356         CONVERSION_BIG5_2.
1357         (decode_builtin_char): Likewise.
1358         (charset_code_point): Likewise.
1359         (Fmake_charset): Accept `big5-1' and `big5-2' as a value of
1360         'conversion in UTF-2000.
1361         (syms_of_mule_charset): Add new symbol `big5-1' and `big5-2'.
1362         (complex_vars_of_mule_charset): Define `chinese-big5-1' and
1363         `chinese-big5-2' as children of `chinese-big5'.
1364
1365         * char-ucs.h (CONVERSION_BIG5_1): New macro.
1366         (CONVERSION_BIG5_2): New macro.
1367
1368 2002-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1369
1370         * text-coding.c (char_encode_big5): Support entity-reference.
1371
1372 2002-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1373
1374         * text-coding.c (char_encode_as_entity_reference): New function.
1375         (char_encode_utf8): Use `char_encode_as_entity_reference'.
1376
1377 2002-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1378
1379         * text-coding.c (decode_coding_big5): Support entity-reference
1380         decoding feature.
1381
1382 2002-08-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1383
1384         * text-coding.c (allocate_coding_system): Initialize initial
1385         charsets for CODESYS_UTF8.
1386         (Fmake_coding_system): Accept charset-g0, charset-g1 and
1387         charset-g2 for CODESYS_UTF8.
1388         (decode_coding_utf8): Use charset-g0.
1389         (char_encode_utf8): Use charset-g0; use charset-g1 and charset-g2
1390         to force variants to map to UCS.
1391
1392 2002-07-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1393
1394         * text-coding.c (Qutf_8_mcs): New variable.
1395         (syms_of_file_coding): Add new symbol `utf-8-mcs' in UTF-2000.
1396         (complex_vars_of_file_coding): Define coding-system `utf-8-mcs'
1397         instead of `utf-8' in UTF-2000.
1398
1399 2002-07-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1400
1401         * mule-charset.c (charset_code_point): If CHARSET_CONVERSION is
1402         CONVERSION_IDENTICAL, identical conversion is used even if a CCS
1403         is ISO-2022 style; instead of it, CONVERSION_94, CONVERSION_96,
1404         CONVERSION_94x94, CONVERSION_96x96, CONVERSION_94x94x94,
1405         CONVERSION_96x96x96, CONVERSION_94x94x94x94 and
1406         CONVERSION_96x96x96x96 are introduced.
1407         (complex_vars_of_mule_charset): Specify CONVERSION_96 instead of
1408         CONVERSION_IDENTICAL for thai-tis620; Specify CONVERSION_94x94
1409         instead of CONVERSION_IDENTICAL for japanese-jisx0208-1990.
1410
1411         * char-ucs.h (CONVERSION_94): New macro.
1412         (CONVERSION_96): New macro.
1413         (CONVERSION_94x94): New macro.
1414         (CONVERSION_96x96): New macro.
1415         (CONVERSION_94x94x94): New macro.
1416         (CONVERSION_96x96x96): New macro.
1417         (CONVERSION_94x94x94x60): New macro.
1418         (CONVERSION_94x94x94x94): New macro.
1419         (CONVERSION_96x96x96x96): New macro.
1420
1421 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1422
1423         * chartab.c (Vcharacter_variant_table): Deleted.
1424         (Fchar_variants): Use character-attribute `->ucs-variants' instead
1425         of `Vcharacter_variant_table'.
1426         (Fput_char_attribute): Likewise.
1427         (vars_of_chartab): Don't setup `Vcharacter_variant_table'.
1428         (complex_vars_of_chartab): Likewise.
1429
1430 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1431
1432         * lisp.h: Add an EXFUN for `Fchar_ref_p'.
1433
1434         * fns.c (Qideographic_structure): New variable.
1435         (Qkeyword_char): New variable.
1436         (ids_format_unit): New function.
1437         (Fideographic_structure_to_ids): New function.
1438         (syms_of_fns): Add new symbols `ideographic-structure' and
1439         `:char'; add new builtin function `ideographic-structure-to-ids'.
1440
1441         * data.c (Fchar_ref_p): New function.
1442         (syms_of_data): Add new builtin function `char-ref-p'.
1443
1444         * chartab.h: Add an EXFUN for `Ffind_char'.
1445
1446 2002-07-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1447
1448         * text-coding.c (Vcharacter_composition_table): Deleted.
1449         (COMPOSE_ADD_CHAR): Use the implementation for external-DB support
1450         in every UTF-2000.
1451
1452         * chartab.c: Add EXFUN for `Fmap_char_attribute' in every
1453         UTF-2000.
1454         (Vcharacter_composition_table): Deleted.
1455         (Fget_composite_char): Use the implementation for external-DB
1456         support in every UTF-2000.
1457         (Fput_char_attribute): Likewise.
1458         (char_attribute_system_db_file): Don't define if external-DB
1459         feature is not available.
1460         (Fsave_char_attribute_table): Likewise.
1461         (Fmount_char_attribute_table): Likewise.
1462         (Fclose_char_attribute_table): Likewise.
1463         (Freset_char_attribute_table): Likewise.
1464         (Fload_char_attribute_table): Likewise.
1465         (syms_of_chartab): Don't define `save-char-attribute-table',
1466         `mount-char-attribute-table', `reset-char-attribute-table',
1467         `close-char-attribute-table' and `load-char-attribute-table' if
1468         external-DB feature is not available.
1469         (vars_of_chartab): Don't setup `Vcharacter_composition_table'.
1470
1471 2002-07-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1472
1473         * text-coding.c (Qcomposition): Add extern if external-DB feature
1474         is supported.
1475         (Vcharacter_composition_table): Don't add extern if external-DB
1476         feature is supported.
1477         (COMPOSE_ADD_CHAR): Modify for new data-representation of
1478         character composition rule if external-DB feature is supported.
1479
1480         * chartab.c (Vcharacter_composition_table): Don't define if
1481         external-DB feature is supported.
1482         (Qcomposition): New variable.
1483         (Fget_composite_char): New implementation for external-DB support.
1484         (Fput_char_attribute): Use `composition' property of each
1485         character instead of `Vcharacter_composition_table' to store
1486         character-composition rules if external-DB feature is supported.
1487         (syms_of_chartab): Add new symbol `composition'.
1488         (vars_of_chartab): Don't setup `Vcharacter_composition_table' if
1489         external-DB feature is supported.
1490
1491 2002-07-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1492
1493         * chartab.c (Vchar_db_stingy_mode): New variable.
1494         (load_char_attribute_maybe): Close database if
1495         Vchar_db_stingy_mode is not NIL.
1496         (Fload_char_attribute_table_map_function): Use
1497         `get_char_id_table_0' instead of `get_char_id_table'.
1498         (vars_of_chartab): Add new variable `char-db-stingy-mode'.
1499
1500         * chartab.h (get_char_id_table_0): New inline function.
1501         (get_char_id_table): Use `get_char_id_table_0'.
1502
1503 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1504
1505         * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
1506         and `COMPOSE_ADD_CHAR'.
1507         (decode_coding_iso2022): Use `decode_flush_er_chars'.
1508
1509 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1510
1511         * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
1512         instead of `DECODE_ADD_UCS_CHAR'.
1513         (COMPOSE_ADD_CHAR): Likewise.
1514
1515 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1516
1517         * text-coding.c (decode_flush_er_chars): New inline function.
1518         (decode_add_er_char): New function.
1519         (decode_coding_utf8): Use `decode_flush_er_chars' and
1520         `decode_add_er_char'.
1521
1522 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1523
1524         * text-coding.c (decode_coding_utf8): Flush for er_buf must be
1525         done before `decode_output_utf8_partial_char'.
1526
1527         * mule-charset.c (complex_vars_of_mule_charset): Specify
1528         `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
1529         `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
1530
1531 2002-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1532
1533         * mule-charset.c (decode_defined_char): New function; search
1534         mother.
1535         (decode_builtin_char): Don't search mother if
1536         XCHARSET_MAX_CODE(charset) == 0.
1537         (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
1538         == 0 even if code >= XCHARSET_MAX_CODE(charset).
1539         (Fdecode_char): Use `decode_defined_char' instead of
1540         `DECODE_DEFINED_CHAR'.
1541         (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
1542         mother of `Vcharset_ucs_jis'.
1543
1544         * text-coding.c (decode_coding_big5): Use `decode_defined_char'
1545         instead of `DECODE_DEFINED_CHAR'.
1546
1547         * char-ucs.h (decode_defined_char): Renamed from
1548         `DECODE_DEFINED_CHAR'; changed to normal function.
1549         (DECODE_CHAR): Use `decode_defined_char' instead of
1550         `DECODE_DEFINED_CHAR'.
1551
1552         * lisp.h: Add `EXFUN' for `Fstring_to_number'.
1553
1554 2002-07-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1555
1556         * char-ucs.h: Add `extern' for `Vcharset_ucs'.
1557
1558         * text-coding.c (Vcoded_charset_entity_reference_alist): New
1559         variable.
1560         (Quse_entity_reference): New variable.
1561         (Qd): New variable.
1562         (Qx): New variable.
1563         (QX): New variable.
1564         (coding_system_description): Add description for
1565         `ccs_priority_list'.
1566         (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
1567         (allocate_coding_system): Initialize `ccs_priority_list' in
1568         UTF-2000.
1569         (Fmake_coding_system): Add description about
1570         'use-entity-reference; setup CODING_SYSTEM_USE_ENTITY_REFERENCE
1571         (codesys).
1572         (Fcoding_system_property): Accept `disable-composition' and
1573         `use-entity-reference' in UTF-2000.
1574         (struct decoding_stream): Add new member `er_counter' and `er_buf'
1575         in UTF-2000.
1576         (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
1577         (decode_coding_utf8): Decode entity-reference if
1578         CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
1579         (char_encode_utf8): Encode non-Unicode characters as
1580         entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
1581         (str->codesys).
1582         (syms_of_file_coding): Add new symbols `use-entity-reference',
1583         `d', `x', `X'.
1584         (vars_of_file_coding): Add new variable
1585         `coded-charset-entity-reference-alist'.
1586         (complex_vars_of_file_coding): Declare `disable-composition' and
1587         `use-entity-reference' to be coding-system-properties in UTF-2000.
1588
1589         * file-coding.h (struct Lisp_Coding_System): Add new member
1590         `use_entity_reference' and `ccs_priority_list'.
1591         (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
1592         (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
1593         (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
1594
1595 2002-07-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1596
1597         * chartab.c (save_uint8_byte_table): Don't clear the table.
1598         (save_uint16_byte_table): Likewise.
1599         (save_byte_table): Likewise.
1600         (Fmount_char_attribute_table): New function.
1601         (syms_of_chartab): Add new builtin function
1602         `mount-char-attribute-table'.
1603
1604 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1605
1606         * mule-charset.c (Fsave_charset_mapping_table): Open database as
1607         "w+" mode.
1608         (load_char_decoding_entry_maybe): Open database as read-only mode.
1609
1610         * chartab.c (Fsave_char_attribute_table): Don't share `ct->db';
1611         open database as "w+" mode.
1612         (load_char_attribute_maybe): Open database as read-only mode.
1613         (Fload_char_attribute_table): Likewise.
1614
1615 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1616
1617         * chartab.c (mark_char_table): Don't refer `ct->db_file'.
1618         (char_table_description): Delete member `db_file'.
1619         (Fmake_char_table): Don't refer `ct->db_file'.
1620         (Fcopy_char_table): Likewise.
1621         (Fsave_char_attribute_table): Likewise.
1622         (Fclose_char_attribute_table): Likewise.
1623         (Freset_char_attribute_table): Likewise.
1624         (load_char_attribute_maybe): Likewise.
1625         (Fload_char_attribute_table): Likewise.
1626
1627         * chartab.h (struct Lisp_Char_Table): Delete member `db_file'.
1628
1629 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1630
1631         * chartab.c: Add an EXFUN for `Fmap_char_attribute'.
1632         (Fsave_char_attribute_table): Don't check `ct->db_file' if
1633         `ct->db' is living.
1634         (load_char_attribute_maybe): Likewise.
1635         (Fload_char_attribute_table): Likewise.
1636
1637 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1638
1639         * chartab.c (Fclose_char_attribute_table): Set Qnil on
1640         `ct->db_file' unconditionally.
1641
1642 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1643
1644         * chartab.c (mark_char_table): Mark `ct->db_file' and `ct->db' in
1645         UTF-2000.
1646         (char_table_description): Add description for `db_file' and `db'
1647         in UTF-2000.
1648         (Fmake_char_table): Initialize `ct->db_file' and `ct->db' in
1649         UTF-2000.
1650         (Fcopy_char_table): Copy `ct->db_file' and `ct->db' in UTF-2000.
1651         (Fsave_char_attribute_table): Use `ct->db_file' and `ct->db'.
1652         (Fclose_char_attribute_table): New function.
1653         (Freset_char_attribute_table): Reset `ct->db_file' and `ct->db'.
1654         (load_char_attribute_maybe): Change interface; use `cit->db_file'
1655         and `cit->db'.
1656         (Fload_char_attribute_table): Use `ct->db_file' and `ct->db'.
1657         (syms_of_chartab): Add new builtin function
1658         `Fclose_char_attribute_table'.
1659
1660 2002-06-28  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1661
1662         * chartab.h (struct Lisp_Char_Table): Add new member `db_file' and
1663         `db' in UTF-2000.
1664         (load_char_attribute_maybe): Change interface.
1665         (get_char_id_table): Modify for `load_char_attribute_maybe'.
1666
1667 2002-06-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1668
1669         * database.h: Add an EXFUN for `Fdatabase_live_p'.
1670
1671 2002-04-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1672
1673         * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
1674         instead of `DECODE_CHAR' for mother; don't use special code for
1675         chinese-big5 to use code space of chinese-big5-1 and
1676         chinese-big5-2.
1677         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
1678         `MAX_CHAR_BIG5_CDP' for chinese-big5.
1679
1680         * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
1681         (MAX_CHAR_BIG5_CDP): Revival.
1682
1683 2002-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1684
1685         * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
1686         the XLFD registry-encoding name of `chinese-big5'.
1687
1688 2002-04-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1689
1690         * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
1691         (Qchinese_big5_cdp): Deleted.
1692         (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
1693         (complex_vars_of_mule_charset): Delete coded-charset
1694         `chinese-big5-cdp'.
1695
1696         * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
1697         (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
1698         `CHARSET_ID_OFFSET - n' for private CCS.
1699         (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
1700         (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
1701         of `MIN_LEADING_BYTE'.
1702         (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
1703         `(CHARSET_ID_OFFSET - 97)'.
1704         (MIN_CHAR_BIG5_CDP): Deleted.
1705         (MAX_CHAR_BIG5_CDP): Deleted.
1706
1707 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1708
1709         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.19.
1710
1711 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1712
1713         * mule.c (Vutf_2000_version): New variable [moved from chartab.c].
1714         (vars_of_mule): Add new variable `utf-2000-version' [moved from
1715         chartab.c].
1716
1717         * chartab.c (Vutf_2000_version): Moved to mule.c.
1718         (vars_of_chartab): Move code about `utf-2000-version' into mule.c.
1719
1720 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1721
1722         * mule-charset.c (load_char_decoding_entry_maybe): Don't define it
1723         when HAVE_CHISE_CLIENT is not defined.
1724
1725         * mule.c (vars_of_mule): Provide feature `chise' when
1726         HAVE_CHISE_CLIENT is defined.
1727
1728 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1729
1730         * config.h.in (UTF2000): Add comment.
1731         (HAVE_CHISE_CLIENT): New macro.
1732
1733 2002-02-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1734
1735         * chartab.c (Fchar_variants): Check Vcharacter_variant_table is
1736         CONSP.
1737         (Fput_char_attribute): Likewise.
1738         (char_attribute_system_db_file): Encode file-name of attribute.
1739         (vars_of_chartab): Set Qunbound into Vcharacter_variant_table as
1740         the initial value.
1741
1742 2002-02-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1743
1744         * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
1745         (Fsave_charset_mapping_table): Use
1746         `char_attribute_system_db_file'.
1747         (load_char_decoding_entry_maybe): Likewise.
1748
1749         * chartab.h (Qsystem_char_id): New external variable.
1750         (char_attribute_system_db_file): New prototype.
1751
1752         * chartab.c (Qsystem_char_id): New variable in UTF-2000.
1753         (char_attribute_system_db_file): New function.
1754         (Fsave_char_attribute_table): Use `char_attribute_system_db_file'.
1755         (Freset_char_attribute_table): Likewise.
1756         (load_char_attribute_maybe): Likewise.
1757         (Fload_char_attribute_table): Likewise.
1758         (syms_of_chartab): Add new symbol `system-char-id'.
1759
1760 2002-02-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1761
1762         * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
1763         `XCHARSET_GRAPHIC(ccs)'.
1764
1765 2002-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1766
1767         * mule-charset.c (Fsave_charset_mapping_table): Fixed.
1768
1769 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1770
1771         * chartab.c (Q_ucs_variants): New variable.
1772         (syms_of_chartab): Add new symbol `->ucs-variants'.
1773         (complex_vars_of_chartab): Set `Vcharacter_variant_table' on
1774         `Vchar_attribute_hash_table' as the value of `->ucs-variants'; set
1775         `->ucs-variants' on `XCHAR_TABLE_NAME (Vcharacter_variant_table)'.
1776
1777         * mule-charset.c (load_char_decoding_entry_maybe): New function.
1778
1779         * char-ucs.h (load_char_decoding_entry_maybe): New prototype when
1780         `HAVE_DATABASE' is defined.
1781         (DECODE_DEFINED_CHAR): Use `load_char_decoding_entry_maybe' when
1782         `HAVE_DATABASE' is defined.
1783
1784 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1785
1786         * chartab.c (Fsave_char_attribute_table): Don't clear internal
1787         attribute-table.
1788         (Freset_char_attribute_table): New function.
1789         (syms_of_chartab): Add new builtin function
1790         `reset-char-attribute-table'.
1791
1792 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1793
1794         * chartab.c (load_char_attribute_maybe): Don't make directories.
1795
1796 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1797
1798         * char-ucs.h: Add EXFUN for `Fmake_directory_internal'.
1799
1800         * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
1801         for decoding-table.
1802
1803 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1804
1805         * mule-charset.c (Fsave_charset_mapping_table): Use
1806         `XCHARSET_BYTE_SIZE' instead of `XCHARSET_CHARS'.
1807
1808         * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
1809         instead of `XCHARSET_CHARS'.
1810
1811 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1812
1813         * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
1814         (XCHARSET_BYTE_SIZE): Likewise.
1815
1816         * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
1817         mule-charset.c].
1818         (XCHARSET_BYTE_SIZE): Likewise.
1819
1820 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1821
1822         * chartab.c (Fput_char_attribute): Use exec-directory instead of
1823         data-directory to store database.
1824         (Fsave_char_attribute_table): Likewise.
1825         (load_char_attribute_maybe): Likewise.
1826         (Fload_char_attribute_table): Likewise.
1827
1828 2002-02-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1829
1830         * mule-charset.c (Fsave_charset_mapping_table): New function.
1831         (syms_of_mule_charset): Add new builtin function
1832         `save-charset-mapping-table'.
1833
1834 2002-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1835
1836         * char-ucs.h (decoding_table_check_elements): Delete prototype.
1837         (get_ccs_octet_table): New inline function.
1838         (put_ccs_octet_table): Likewise.
1839         (decoding_table_put_char): Use `get_ccs_octet_table' and
1840         `put_ccs_octet_table'.
1841         (decoding_table_remove_char): Use `decoding_table_put_char'.
1842         (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
1843
1844         * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
1845         into encoding_table.
1846         (make_charset): Use Qunbound instead Qnil as initial value of
1847         decoding_table.
1848
1849 2002-02-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1850
1851         * chartab.c (map_over_uint8_byte_table): Set Qunbound if an
1852         element is Qunloaded.
1853         (map_over_uint16_byte_table): Likewise.
1854         (map_over_byte_table): Likewise.
1855         (map_char_table): Likewise for CHARTAB_RANGE_ALL in UTF-2000; when
1856         CHARTAB_RANGE_CHARSET is specified in UTF-2000 with external
1857         database support, load encoding-table of the specified
1858         coded-charset if it is not loaded yet.
1859         (save_uint8_byte_table): New function of UTF-2000 with external
1860         database support.
1861         (save_uint16_byte_table): Likewise.
1862         (save_byte_table): Likewise.
1863         (Fput_char_attribute): Don't store value into external database
1864         even if the external database feature is supported in UTF-2000;
1865         set `attribute' as name of char-table if the external database
1866         feature is supported.
1867         (Fsave_char_attribute_table): New function in UTF-2000.
1868         (syms_of_chartab): Add new builtin function
1869         `save-char-attribute-table' in UTF-2000.
1870
1871 2002-02-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1872
1873         * chartab.c (char_attribute_table_to_put): New variable in
1874         UTF-2000.
1875         (Qput_char_table_map_function): Likewise.
1876         (value_to_put): Likewise.
1877         (Fput_char_table_map_function): New function in UTF-2000.
1878         (put_char_table): Use `Fmap_char_attribute' for
1879         CHARTAB_RANGE_CHARSET in UTF-2000.
1880         (Fput_char_attribute): Store symbol instead of string in
1881         `XCHAR_TABLE_NAME (table)'.
1882         (load_char_attribute_maybe): Likewise.
1883         (syms_of_chartab): Add new symbol/function
1884         `put-char-table-map-function'.
1885
1886 2002-01-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1887
1888         * database.h: Add new EXFUN for `Fmap_database'.
1889
1890         * database.c (Fmap_database): Renamed from `Fmapdatabase'.
1891         (syms_of_database): Likewise.
1892
1893         * chartab.h (struct Lisp_Char_Table): Add new member `unloaded' in
1894         UTF-2000.
1895         (CHAR_TABLE_UNLOADED): New macro of UTF-2000.
1896         (XCHAR_TABLE_UNLOADED): Likewise.
1897
1898         * chartab.c (fill_char_table): Initialize `ct->unloaded'.
1899         (Fput_char_attribute): Set XCHAR_TABLE_UNLOADED(table) if
1900         HAVE_DATABASE is defined.
1901         (char_attribute_table_to_load): New variable of UTF-2000 with
1902         external database support.
1903         (Qload_char_attribute_table_map_function): Likewise.
1904         (Fload_char_attribute_table_map_function): New function of
1905         UTF-2000 with external database support.
1906         (Fload_char_attribute_table): New function of UTF-2000.
1907         (Fmap_char_attribute): Call Fload_char_attribute_table if
1908         CHAR_TABLE_UNLOADED(ct) is set when HAVE_DATABASE is defined.
1909         (syms_of_chartab): Add new symbol and function
1910         `load-char-attribute-table-map-function' in UTF-2000 with external
1911         database support; add new function `load-char-attribute-table' in
1912         UTF-2000.
1913
1914 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1915
1916         * chartab.h (load_char_attribute_maybe): New prototype for
1917         UTF-2000 with DATABASE support.
1918         (get_char_id_table): Use `load_char_attribute_maybe' if
1919         HAVE_DATABASE is defined.
1920
1921         * chartab.c (load_char_attribute_maybe): New function in UTF-2000
1922         with DATABASE support.
1923
1924 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1925
1926         * chartab.c (Fput_char_attribute): Use S-expression as key of
1927         external database.
1928
1929         * chartab.h (get_char_id_table): Use S-expression as key of
1930         external database.
1931
1932 2002-01-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1933
1934         * chartab.c (map_over_uint8_byte_table): Add new argument `root';
1935         if an element is not loaded, load the corresponding attributes
1936         from an external database.
1937         (map_over_uint16_byte_table): Likewise.
1938         (map_over_byte_table): Likewise.
1939         (map_char_table): Modify for `map_over_uint8_byte_table',
1940         `map_over_uint16_byte_table' and `map_over_byte_table'; if an
1941         element is not loaded, load the corresponding attributes from an
1942         external database.
1943         (Fput_char_attribute): Change initial values to Qunloaded.
1944
1945         * chartab.h (get_char_id_table): If a character attribute is not
1946         loaded and the attribute value is not found in an external
1947         database, store Qunbound as the attribute value.
1948
1949 2002-01-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1950
1951         * chartab.c (BT_UINT8_unloaded): New macro.
1952         (UINT8_VALUE_P): Accept Qunloaded.
1953         (UINT8_ENCODE): Likewise.
1954         (UINT8_DECODE): Likewise.
1955         (BT_UINT16_unloaded): New macro.
1956         (UINT16_VALUE_P): Accept Qunloaded.
1957         (UINT16_ENCODE): Likewise.
1958         (UINT16_DECODE): Likewise.
1959         (UINT8_TO_UINT16): Convert BT_UINT8_unloaded into
1960         BT_UINT16_unloaded.
1961         (mark_char_table): Mark `ct->name' in UTF-2000.
1962         (char_table_description): Add `name' in UTF-2000.
1963         (Fmake_char_table): Initialize `ct->name'.
1964         (Fcopy_char_table): Copy `ct->name'.
1965         (Fput_char_attribute): Store value into an external database if
1966         HAVE_DATABASE is defined.
1967
1968         * chartab.h (struct Lisp_Char_Table): Add new member `name' in
1969         UTF-2000.
1970         (CHAR_TABLE_NAME): New macro in UTF-2000.
1971         (XCHAR_TABLE_NAME): New macro in UTF-2000.
1972         (get_char_id_table): Try to read an external database if Qunloaded
1973         is stored in a table.
1974
1975         * symbols.c (init_symbols_once_early): Assign '#<unloaded> into
1976         Qunloaded.
1977
1978 2002-01-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1979
1980         * database.h: Add EXFUN definitions for Fopen_database,
1981         Fput_database, Fget_database and Fclose_database.
1982
1983         * data.c (Qunloaded): New variable in UTF-2000.
1984
1985         * lisp.h (Qunloaded): New variable in UTF-2000.
1986
1987 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1988
1989         * mule-charset.c (put_char_ccs_code_point): Modify for
1990         `decoding_table_remove_char' and `decoding_table_put_char'.
1991         (remove_char_ccs): Modify for `decoding_table_remove_char'.
1992
1993         * char-ucs.h (decoding_table_remove_char): Change arguments to
1994         hide decoding_table vector.
1995         (decoding_table_put_char): Likewise.
1996
1997 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1998
1999         * mule-charset.c (decoding_table_remove_char): Moved to
2000         char-ucs.h.
2001         (decoding_table_put_char): Likewise.
2002
2003         * char-ucs.h (decoding_table_check_elements): New prototype [moved
2004         from mule-charset.c].
2005         (decoding_table_remove_char): New inline function [moved from
2006         mule-charset.c].
2007         (decoding_table_put_char): Likewise.
2008
2009 2002-01-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2010
2011         * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
2012         extension.
2013
2014 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2015
2016         * mule-charset.c (decode_builtin_char): Support mother charsets.
2017
2018 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2019
2020         * mule-charset.c (Q94x94x60): New variable.
2021         (charset_code_point): Support conversion `94x94x60'.
2022         (Fmake_charset): Likewise.
2023         (syms_of_mule_charset): Add new symbol `94x94x60'.
2024
2025         * char-ucs.h (CONVERSION_94x94x60): New macro.
2026
2027 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2028
2029         * mule-charset.c (charset_code_point): Unify code about
2030         `code-offset'.
2031
2032 2001-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2033
2034         * mule-charset.c (charset_code_point): Merge code about builtin
2035         characters into code about mother charsets; don't use
2036         `range_charset_code_point'.
2037         (range_charset_code_point): Deleted.
2038
2039 2001-12-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2040
2041         * mule-charset.c (Qcode_offset): New variable.
2042         (Fmake_charset): Use `XUINT' to get value of `min-code' and
2043         `max-code'; accept new property `code-offset'.
2044         (syms_of_mule_charset): Add new symbol `code-offset'.
2045
2046 2001-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2047
2048         * mule-charset.c (range_charset_code_point): Fixed.
2049
2050 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2051
2052         * mule-charset.c (decode_builtin_char): Change semantics of
2053         code-offset of coded-charset.
2054         (charset_code_point): Likewise.
2055         (range_charset_code_point): Likewise.
2056         (complex_vars_of_mule_charset): Modify for the change.
2057
2058 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2059
2060         * mule-charset.c (Fencode_char): Reverse arguments.
2061
2062         * mule-charset.c (charset_code_point): Fixed.
2063
2064 2001-12-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2065
2066         * mule-charset.c (Vcharset_mojikyo): Deleted.
2067         (Vcharset_mojikyo_2022_1): Deleted.
2068         (Vcharset_mojikyo_pj_{1..21}): Deleted.
2069         (Qmin_code): New variable in UTF-2000.
2070         (Qmax_code): Likewise.
2071         (Qmother): Likewise.
2072         (Qconversion): Likewise.
2073         (Q94x60): Likewise.
2074         (Qmojikyo): Deleted.
2075         (Qmojikyo_2022_1): Deleted.
2076         (Qmojikyo_pj_{1..22}): Deleted.
2077         (mark_charset): Mark `cs->mother'.
2078         (charset_description): Add description for `mother'.
2079         (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
2080         new arguments `mother' and `conversion'; use
2081         `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
2082         (charset_code_point): Moved from char-ucs.h; support `mother'
2083         charset feature.
2084         (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
2085         of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
2086         (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
2087         UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
2088         allow 2 as the value of `graphic' in UTF-2000; add new properties
2089         `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
2090         require `final' in UTF-2000; modify for `make_charset'.
2091         (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
2092         instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
2093         (Fcharset_property): Support `mother', `min-code' and `max-code'.
2094         (Fencode_char): New function.
2095         (syms_of_mule_charset): Add new builtin function `encode-char' in
2096         UTF-2000; add new symbols `min-code', `max-code', `mother',
2097         `conversion' and `94x60'; delete symbols `mojikyo',
2098         `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
2099         (complex_vars_of_mule_charset): Modify for `make_charset' change;
2100         delete coded-charsets `mojikyo', `mojikyo-2022-1' and
2101         `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
2102
2103         * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
2104         `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
2105
2106         * char-ucs.h (Vcharset_mojikyo): Deleted.
2107         (Vcharset_mojikyo_2022_1): Deleted.
2108         (LEADING_BYTE_MOJIKYO): Deleted.
2109         (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
2110         (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
2111         (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
2112         (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
2113         add new member `mother'; add new member `conversion'.
2114         (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
2115         (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
2116         (CHARSET_MOTHER): New macro.
2117         (CHARSET_CONVERSION): New macro.
2118         (CONVERSION_IDENTICAL): New macro.
2119         (CONVERSION_94x60): New macro.
2120         (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
2121         (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
2122         (XCHARSET_MOTHER): New macro.
2123         (XCHARSET_CONVERSION): New macro.
2124         (MIN_CHAR_MOJIKYO): Deleted.
2125         (MAX_CHAR_MOJIKYO): Deleted.
2126         (DECODE_MOJIKYO_2022): Deleted.
2127         (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
2128         (charset_code_point): Changed to non-inline function.
2129         (encode_char_1): Use `charset_code_point'.
2130         (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
2131
2132 2001-12-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2133
2134         * lread.c (read_compiled_function): Fix prototype.
2135         (read_vector): Likewise.
2136
2137 2001-12-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2138
2139         * lrecord.h (struct lrecord_header): Delete `older'.
2140         (set_lheader_implementation): Delete code for `older'.
2141         (set_lheader_older_implementation): Deleted.
2142         (enum lrecord_type): Delete `lrecord_type_char_id_table'.
2143         (OLDER_RECORD_P): Deleted.
2144         (OLDER_RECORD_HEADER_P): Deleted.
2145         (alloc_older_lcrecord): Deleted.
2146         (alloc_older_lcrecord_type): Deleted.
2147
2148         * alloc.c (all_older_lcrecords): Deleted.
2149         (alloc_older_lcrecord): Deleted.
2150         (disksave_object_finalization_1): Delete code for older objects.
2151         (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
2152         (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
2153
2154 2001-12-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2155
2156         * mule-charset.c (decoding_table_put_char): Use `make_vector'
2157         instead of `make_older_vector'.
2158         (put_char_ccs_code_point): Likewise.
2159         (mark_charset): Mark `cs->decoding_table'.
2160         (Fset_charset_mapping_table): Don't use `make_vector_newer'.
2161
2162         * lisp.h (make_older_vector): Deleted.
2163         (make_vector_newer): Deleted.
2164
2165         * config.h.in (HAVE_GGC): Deleted.
2166
2167         * alloc.c (make_older_vector): Deleted.
2168         (make_vector_newer_1): Deleted.
2169         (make_vector_newer): Deleted.
2170
2171 2001-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2172
2173         * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
2174         (Qideograph_daikanwa_2): New variable.
2175         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
2176         (complex_vars_of_mule_charset): Add new coded-charset
2177         `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
2178         `LEADING_BYTE_DAIKANWA'.
2179
2180         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
2181         (LEADING_BYTE_DAIKANWA_1): New macro.
2182         (LEADING_BYTE_DAIKANWA_2): New macro.
2183         (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
2184
2185 2001-12-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2186
2187         * mule-charset.c (complex_vars_of_mule_charset): Change
2188         DOC-strings and registry of `ideograph-daikanwa'; now it indicates
2189         the second revised version.
2190
2191 2001-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2192
2193         * mule-charset.c (Vcharset_ucs_smp): New variable.
2194         (Vcharset_ucs_sip): New variable.
2195         (Qucs_smp): New variable.
2196         (Qucs_sip): New variable.
2197         (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
2198         MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
2199         (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
2200         (complex_vars_of_mule_charset): Modify middle-DOC and registry of
2201         `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
2202         charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
2203
2204         * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
2205         (LEADING_BYTE_UCS_SIP): New macro.
2206         (MIN_CHAR_SMP): New macro.
2207         (MAX_CHAR_SMP): New macro.
2208         (MIN_CHAR_SIP): New macro.
2209         (MAX_CHAR_SIP): New macro.
2210
2211 2001-11-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
2212
2213         * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
2214         utf-2000.
2215
2216 2001-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2217
2218         * mule-charset.c (put_char_ccs_code_point): Return canonicalized
2219         value; don't store value into `encoding_table' of `Lisp_Charset'.
2220         (mark_charset): `encoding_table' was deleted.
2221         (charset_description): Likewise.
2222         (make_charset): Likewise.
2223         (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
2224         `put_char_ccs_code_point'.
2225
2226         * chartab.h (Fput_char_attribute): New EXFUN.
2227
2228         * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
2229         is unified with normal symbol space.
2230         (Fget_char_attribute): Likewise.
2231         (Fput_char_attribute): Likewise; behavior of
2232         `put_char_ccs_code_point' is changed.
2233
2234         * char-ucs.h: Include "elhash.h".
2235         (Vchar_attribute_hash_table): New external variable.
2236         (struct Lisp_Charset): Delete `encoding_table'.
2237         (CHARSET_ENCODING_TABLE): New implementation; refer
2238         `Vchar_attribute_hash_table' instead of `encoding_table' of struct
2239         `Lisp_Charset'.
2240
2241 2001-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2242
2243         * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
2244         (cs) == 0.
2245
2246 2001-11-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2247
2248         * text-coding.c (char_encode_big5): Prefer charset-g1 than
2249         `chinese-big5'.
2250
2251 2001-11-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2252
2253         * chartab.c (uint8_byte_table_description): New constant.
2254         (uint8-byte-table): Use `uint8_byte_table_description'.
2255         (uint16_byte_table_description): New constant.
2256         (uint16-byte-table): Use `uint16_byte_table_description'.
2257
2258 2001-10-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2259
2260         * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
2261         range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
2262
2263 2001-10-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2264
2265         * mule-charset.c (Vcharset_ucs_ks): New variable.
2266         (Qucs_ks): New variable.
2267         (syms_of_mule_charset): Add new symbol `ucs-ks'.
2268         (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
2269
2270         * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
2271
2272 2001-10-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2273
2274         * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
2275         (Fdecode_char): Likewise.
2276
2277         * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
2278         chartab.h.
2279         (Fdefine_char): Modify for Fdecode_char.
2280         (Ffind_char): Likewise.
2281
2282         * mule-charset.c (Fdecode_char): Add new optional argument
2283         `defined-only'.
2284         (Fdecode_builtin_char): Modify for `Fdecode_char'.
2285
2286 2001-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2287
2288         * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
2289         -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
2290         (allocate_coding_system): Initialize initial-charsets of
2291         CODESYS_BIG5 in XEmacs UTF-2000.
2292         (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
2293         CODESYS_BIG5 in XEmacs UTF-2000.
2294         (decode_coding_big5): Use initial-charset-g0 and -g1 of
2295         CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
2296
2297         * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
2298         variables.
2299         (Qideograph_hanziku_{1 .. 12}): Likewise.
2300         (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
2301         .. 12}'.
2302         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
2303         `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
2304         `ideograph-hanziku-{1 .. 12}'.
2305
2306         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
2307         (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
2308         ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
2309         ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
2310         (DECODE_DEFINED_CHAR): New inline function.
2311         (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
2312
2313 2001-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2314
2315         * mule-charset.c (Vcharset_china3_jef): Renamed from
2316         `Vcharset_japanese_jef_china3'.
2317         (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
2318         (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
2319         `{MIN|MAX}_CHAR_JEF_CHINA3'..
2320         (syms_of_mule_charset): Rename `china3-jef' from
2321         `japanese-jef-china3'.
2322         (complex_vars_of_mule_charset): Likewise; rename
2323         `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
2324
2325         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
2326         `LEADING_BYTE_JEF_CHINA3'.
2327         (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
2328         (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
2329
2330 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2331
2332         * mule-charset.c (encode_builtin_char_1): Comment out special code
2333         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
2334
2335         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
2336         (MAX_CHAR_MOJIKYO_0): Comment out.
2337         (MIN_CHAR_CBETA): Changed to 0x00E20000.
2338         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
2339         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
2340         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
2341
2342 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2343
2344         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
2345         (Qideograph_cbeta): New variable.
2346         (encode_builtin_char_1): Comment out special code for
2347         coded-charset `mojikyo' and `japanese-jef-china3'.
2348         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
2349         (complex_vars_of_mule_charset): Add new coded-charset
2350         `ideograph-cbeta'.
2351
2352         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
2353         (MIN_CHAR_CBETA): New macro.
2354         (MAX_CHAR_CBETA): New macro.
2355
2356 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2357
2358         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
2359         (LEADING_BYTE_JEF_CHINA3): New macro.
2360         (MIN_CHAR_JEF_CHINA3): New macro.
2361         (MAX_CHAR_JEF_CHINA3): Likewise.
2362         (DECODE_CHAR): Fixed.
2363
2364 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2365
2366         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
2367         (Qjapanese_jef_china3): New variable.
2368         (encode_builtin_char_1): Support `japanese-jef-china3'.
2369         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
2370         (complex_vars_of_mule_charset): Add new coded-charset
2371         `japanese-jef-china3'.
2372
2373 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2374
2375         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
2376         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
2377         94^4, 96^3, 96^4, 128^n and 256^n set.
2378         (put_char_table): Use `XCHARSET_CELL_RANGE'.
2379         (map_char_table): Likewise.
2380
2381 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2382
2383         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
2384         UTF-2000.
2385
2386 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2387
2388         * chartab.h (get_char_id_table): New inline function.
2389
2390         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
2391         function.
2392
2393 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2394
2395         * chartab.h (decode_char_table_range): New prototype in XEmacs
2396         UTF-2000.
2397         (put_char_id_table): New inline function in XEmacs UTF-2000.
2398
2399         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
2400         function.
2401         (decode_char_table_range): Delete static declaration in XEmacs
2402         UTF-2000.
2403
2404 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2405
2406         * chartab.c (put_char_id_table): Use `put_char_table'.
2407
2408 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2409
2410         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
2411         (map_over_uint16_byte_table): Likewise.
2412         (map_over_byte_table): Likewise.
2413         (map_char_table): Modify for `map_over_uint8_byte_table',
2414         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
2415         UTF-2000.
2416
2417 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2418
2419         * chartab.c (struct map_char_table_for_charset_arg): New
2420         structure.
2421         (map_char_table_for_charset_fun): New function.
2422         (map_char_table): Use `map_char_table' for encoding_table of
2423         `range->charset'.
2424
2425 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2426
2427         * chartab.c (map_char_table): Check a character is found in
2428         range->charset instead of non default value is defined in
2429         char-table when range is CHARTAB_RANGE_ROW.
2430
2431 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2432
2433         * chartab.c (map_char_id_table): Deleted.
2434         (Fmap_char_attribute): Use `map_char_table' instead of
2435         `map_char_id_table'.
2436
2437 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2438
2439         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
2440         UTF-2000.
2441         (update_syntax_table): Deleted in XEmacs UTF-2000.
2442
2443         * syntax.c (find_defun_start): Use `syntax_table' instead of
2444         `mirror_syntax_table' in XEmacs UTF-2000.
2445         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
2446         UTF-2000.
2447         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
2448         XEmacs UTF-2000.
2449         (Fmatching_paren): Likewise.
2450         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
2451         in XEmacs UTF-2000.
2452         (find_start_of_comment): Likewise.
2453         (find_end_of_comment): Likewise.
2454         (Fforward_comment): Likewise.
2455         (scan_lists): Likewise.
2456         (char_quoted): Likewise.
2457         (Fbackward_prefix_chars): Likewise.
2458         (scan_sexps_forward): Likewise.
2459         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
2460         (update_syntax_table): Likewise.
2461
2462         * search.c (skip_chars): Use `syntax_table' instead of
2463         `mirror_syntax_table' in XEmacs UTF-2000.
2464         (wordify): Likewise.
2465         (Freplace_match): Likewise.
2466
2467         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
2468         `mirror_syntax_table' in XEmacs UTF-2000.
2469         (WORDCHAR_P_UNSAFE): Likewise.
2470         (re_match_2_internal): Likewise.
2471
2472         * font-lock.c (find_context): Use `buf->syntax_table' instead of
2473         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2474
2475         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
2476         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
2477
2478         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
2479         XEmacs UTF-2000.
2480
2481         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
2482         UTF-2000.
2483         (print_char_table): Print `default_value' in XEmacs UTF-2000.
2484         (char_table_description): Delete `mirror_table' in XEmacs
2485         UTF-2000.
2486         (fill_char_table): Don't call `update_syntax_table' in XEmacs
2487         UTF-2000.
2488         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
2489         (Fcopy_char_table): Likewise.
2490         (put_char_table): Don't call `update_syntax_table' in XEmacs
2491         UTF-2000.
2492
2493         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
2494         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2495         (casify_region_internal): Likewise.
2496
2497         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
2498
2499         * buffer.c (common_init_complex_vars_of_buffer): Don't use
2500         `mirror_syntax_table' in XEmacs UTF-2000.
2501
2502         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
2503         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2504         (Fexpand_abbrev): Likewise.
2505
2506 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2507
2508         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
2509
2510 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2511
2512         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
2513         (map_over_uint16_byte_table): Likewise.
2514         (map_over_byte_table): Likewise.
2515         (get_char_id_table): Refer `cit->default_value'.
2516         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
2517         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
2518         of character-id ranges.
2519         (mark_char_table): Mark `ct->default_value'.
2520         (char_table_description): Add `default_value'.
2521         (fill_char_table): Use `default_value'.
2522         (decode_char_table_range): Decode `nil' as
2523         `CHARTAB_RANGE_DEFAULT'.
2524         (get_char_id_table): Refer `cit->default_value'.
2525         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
2526         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
2527         temporary hack; check value of char-table is bound or not.
2528         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
2529
2530         * chartab.h (struct Lisp_Char_Table): Add new member
2531         `default_value' in XEmacs UTF-2000.
2532         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
2533         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
2534         UTF-2000.
2535
2536 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2537
2538         * chartab.h (Lisp_Char_ID_Table): Deleted.
2539
2540         * chartab.c (char_table_description): Fix typo.
2541         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
2542         `Lisp_Char_ID_Table'.
2543
2544 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2545
2546         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
2547         `CHAR_ID_TABLE_P'.
2548
2549         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
2550         `CHAR_ID_TABLE_P'.
2551
2552         * chartab.h (XCHAR_ID_TABLE): Deleted.
2553         (XSETCHAR_ID_TABLE): Deleted.
2554         (CHAR_ID_TABLE_P): Deleted.
2555
2556         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
2557         `CHAR_ID_TABLE_P'.
2558         (Fget_composite_char): Likewise.
2559         (put_char_table): Likewise.
2560         (add_char_attribute_alist_mapper): Fixed.
2561         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
2562         `CHAR_ID_TABLE_P'.
2563         (Fget_char_attribute): Likewise.
2564         (Fget_char_attribute): Likewise.
2565         (Fmap_char_attribute): Likewise.
2566
2567         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
2568         `CHAR_ID_TABLE_P'.
2569         (encode_char_1): Likewise.
2570
2571 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2572
2573         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
2574         `XCHAR_ID_TABLE'.
2575
2576         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
2577         instead of `XCHAR_ID_TABLE'.
2578         (remove_char_ccs): Likewise.
2579
2580         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
2581         `XCHAR_ID_TABLE'.
2582         (Fget_composite_char): Likewise.
2583         (Fchar_variants): Likewise.
2584         (put_char_table): Likewise.
2585         (add_char_attribute_alist_mapper): Likewise.
2586         (Fchar_attribute_alist): Likewise.
2587         (Fget_char_attribute): Likewise.
2588         (Fput_char_attribute): Likewise.
2589         (Fmap_char_attribute): Likewise.
2590         (Fmap_char_attribute): Likewise.
2591
2592         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
2593         `XCHAR_ID_TABLE'.
2594         (encode_char_1): Likewise.
2595
2596 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2597
2598         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
2599         `Lisp_Char_ID_Table'.
2600         (mark_char_id_table): Deleted.
2601         (print_char_id_table): Likewise.
2602         (char_id_table_equal): Likewise.
2603         (char_id_table_hash): Likewise.
2604         (char_id_table_description): Likewise.
2605         (char_id_table): Likewise.
2606         (make_char_id_table): Use `Fmake_char_table' and
2607         `fill_char_table'.
2608         (get_char_id_table): Use `Lisp_Char_Table' instead of
2609         `Lisp_Char_ID_Table'.
2610         (put_char_id_table): Likewise.
2611         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
2612         `XCHAR_ID_TABLE'.
2613         (Fremove_char_attribute): Likewise.
2614         (syms_of_chartab): Don't define type `char-id-table'.
2615
2616         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
2617         (char_id_table): Likewise.
2618         (GC_CHAR_ID_TABLE_P): Likewise.
2619         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
2620         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
2621         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
2622         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
2623         (get_char_id_table): Use `Lisp_Char_Table' instead of
2624         `Lisp_Char_ID_Table'.
2625         (put_char_id_table_0): Likewise.
2626         (put_char_id_table): Likewise.
2627
2628 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2629
2630         * chartab.h: Lisp_Byte_Table related codes are moved from
2631         chartab.h.
2632
2633         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
2634
2635 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2636
2637         * chartab.h: Don't include "chartab.h".
2638         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
2639         (Lisp_Char_ID_Table): Likewise.
2640         (char_id_table): Likewise.
2641         (XCHAR_ID_TABLE): Likewise.
2642         (XSETCHAR_ID_TABLE): Likewise.
2643         (CHAR_ID_TABLE_P): Likewise.
2644         (GC_CHAR_ID_TABLE_P): Likewise.
2645         (get_char_id_table): Likewise.
2646
2647         * char-ucs.h: Include "chartab.h".
2648         (struct Lisp_Char_ID_Table): Moved to chartab.h.
2649         (Lisp_Char_ID_Table): Likewise.
2650         (char_id_table): Likewise.
2651         (XCHAR_ID_TABLE): Likewise.
2652         (XSETCHAR_ID_TABLE): Likewise.
2653         (CHAR_ID_TABLE_P): Likewise.
2654         (GC_CHAR_ID_TABLE_P): Likewise.
2655         (get_char_id_table): Likewise.
2656
2657 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2658
2659         * chartab.c (copy_uint8_byte_table): New function.
2660         (copy_uint16_byte_table): New function.
2661         (copy_byte_table): New function.
2662         (map_over_uint8_byte_table): Modify to avoid huge numbers of
2663         characters to call.
2664         (map_over_uint16_byte_table): Likewise.
2665         (map_over_byte_table): Likewise.
2666         (get_byte_table): Move prototype to chartab.h.
2667         (put_byte_table): Likewise.
2668         (put_char_id_table_0): Moved to chartab.h.
2669         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
2670         (char_table_entry_equal): Likewise.
2671         (char_table_entry_hash): Likewise.
2672         (char_table_entry_description): Likewise.
2673         (char_table_entry): Likewise.
2674         (make_char_table_entry): Likewise.
2675         (copy_char_table_entry): Likewise.
2676         (get_non_ascii_char_table_value): Likewise.
2677         (map_over_charset_ascii): Likewise.
2678         (map_over_charset_control_1): Likewise.
2679         (map_over_charset_row): Likewise.
2680         (map_over_other_charset): Likewise.
2681         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
2682         (print_char_table): Likewise.
2683         (char_table_equal): Likewise.
2684         (char_table_hash): Likewise.
2685         (char_table_description): Likewise.
2686         (fill_char_table): Likewise.
2687         (Fcopy_char_table): Likewise.
2688         (get_char_table): Likewise.
2689         (Fget_range_char_table): Likewise.
2690         (put_char_table): Likewise.
2691         (map_char_table): Likewise.
2692         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
2693         UTF-2000.
2694
2695 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2696
2697         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
2698         `Vauto_fill_chars' in XEmacs UTF-2000.
2699
2700         * chartab.h (get_byte_table): New prototype [moved from
2701         chartab.c].
2702         (put_byte_table): Likewise [moved from chartab.c].
2703         (put_char_id_table_0): New inline function [moved from chartab.c].
2704         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
2705         (Lisp_Char_Table_Entry): Likewise.
2706         (char_table_entry): Likewise.
2707         (XCHAR_TABLE_ENTRY): Likewise.
2708         (XSETCHAR_TABLE_ENTRY): Likewise.
2709         (CHAR_TABLE_ENTRYP): Likewise.
2710         (CHECK_CHAR_TABLE_ENTRY): Likewise.
2711         (NUM_ASCII_CHARS): Likewise.
2712         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
2713         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
2714
2715 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2716
2717         * chartab.c (get_char_id_table): Change interface.
2718         (put_char_id_table_0): New function.
2719         (put_char_id_table): Change interface; new implementation.
2720         (Fget_composite_char): Modify for interface change of
2721         `get_char_id_table'.
2722         (Fchar_variants): Likewise.
2723         (add_char_attribute_alist_mapper): Likewise.
2724         (Fchar_attribute_alist): Likewise.
2725         (Fget_char_attribute): Likewise.
2726         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
2727         as same as character as the first argument like `put-char-table';
2728         modify for interface change of `put_char_id_table'.
2729         (Fremove_char_attribute): Modify for interface change of
2730         `put_char_id_table'.
2731
2732 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2733
2734         * text-coding.c: Sync up with XEmacs 21.2.41.
2735         (COMPOSE_ADD_CHAR): Modify for interface change of
2736         `get_char_id_table'.
2737
2738         * mule-charset.c (put_char_ccs_code_point): Modify for interface
2739         change of `put_char_id_table'.
2740         (remove_char_ccs): Likewise.
2741
2742         * chartab.h (put_char_id_table): Change interface.
2743
2744         * char-ucs.h (get_char_id_table): Change interface.
2745         (charset_code_point): Modify for interface change of
2746         `get_char_id_table'.
2747         (encode_char_1): Likewise.
2748
2749 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2750
2751         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
2752         argument `ccs'.
2753         (map_over_uint16_byte_table): Likewise.
2754         (map_over_byte_table): Likewise.
2755         (map_char_id_table): Add new argument `range' like
2756         `map_char_table'.
2757         (Fmap_char_attribute): Add new argument `range' like
2758         `Fmap_char_table'.
2759
2760 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2761
2762         * chartab.c (map_over_uint8_byte_table): Change interface of
2763         mapping function to use struct chartab_range instead of Emchar.
2764         (map_over_uint16_byte_table): Likewise.
2765         (map_over_byte_table): Likewise.
2766         (map_char_id_table): Likewise.
2767         (struct slow_map_char_id_table_arg): Deleted.
2768         (slow_map_char_id_table_fun): Deleted.
2769         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
2770         function `slow_map_char_table_fun' instead of struct
2771         `slow_map_char_id_table_arg' and function
2772         `slow_map_char_id_table_fun'.
2773
2774 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2775
2776         * mule-charset.c: Move char-it-table related codes to chartab.c.
2777         (Vutf_2000_version): Moved to chartab.c.
2778         (Fdefine_char): Likewise.
2779         (Ffind_char): Likewise.
2780         (syms_of_mule_charset): Move types `uint8-byte-table',
2781         `uint16-byte-table', `byte-table' and `char-id-table' to
2782         chartab.c; move functions `char_attribute_list,
2783         `find_char_attribute_table, `char_attribute_alist,
2784         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
2785         `map_char_attribute, `define_char, `find_char, `char_variants and
2786         `get_composite_char to chartab.c; move symbols `=>ucs',
2787         `->decomposition', `compat', `isolated', `initial', `medial',
2788         `final', `vertical', `noBreak', `fraction', `super', `sub',
2789         `circle', `square', `wide', `narrow', `small' and `font' to
2790         chartab.c.
2791         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
2792         setting codes for `Vcharacter_composition_table' and
2793         `Vcharacter_variant_table' to chartab.c.
2794         (complex_vars_of_mule_charset): Move setting code for
2795         `Vchar_attribute_hash_table' to chartab.c.
2796
2797         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
2798         (make_char_id_table): New prototype.
2799         (put_char_id_table): Likewise.
2800         (Fget_char_attribute): Likewise.
2801
2802         * chartab.c: Move char-id-table related code from mule-charset.c.
2803         (Vutf_2000_version): Moved from mule-charset.c.
2804
2805         * char-ucs.h (Qucs): New external variable.
2806         (put_char_ccs_code_point): New prototype.
2807         (remove_char_ccs): Likewise.
2808
2809 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2810
2811         * mule-charset.c (Vcharset_ucs_jis): New variable.
2812         (Qucs_jis): Likewise.
2813         (syms_of_mule_charset): Add new symbol `ucs-jis'.
2814         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
2815
2816         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
2817
2818 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2819
2820         * mule-charset.c (map_over_uint8_byte_table): New function.
2821         (map_over_uint16_byte_table): Likewise.
2822         (map_over_byte_table): Likewise.
2823         (map_char_id_table): Likewise.
2824         (slow_map_char_id_table_fun): Likewise.
2825         (Fmap_char_attribute): Likewise.
2826         (syms_of_mule_charset): Add new function `map-char-attribute'.
2827
2828 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2829
2830         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
2831         (syms_of_mule_charset): Add new function `find-char'.
2832
2833 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2834
2835         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
2836         XEmacs UTF-2000.
2837         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
2838         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
2839         XEmacs UTF-2000.
2840         (complex_vars_of_mule_charset): Add new coded-charset
2841         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
2842         `ideograph-gt-pj-*'.
2843
2844         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
2845
2846 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2847
2848         * mule-charset.c (encode_builtin_char_1): Purge codes about
2849         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
2850         {MIN|MAX}_CHAR_HEBREW.
2851         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
2852         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
2853
2854         * char-ucs.h (MIN_CHAR_GREEK): Purged.
2855         (MAX_CHAR_GREEK): Purged.
2856         (MIN_CHAR_CYRILLIC): Purged.
2857         (MAX_CHAR_CYRILLIC): Purged.
2858         (MIN_CHAR_HEBREW): Commented out.
2859         (MAX_CHAR_HEBREW): Likewise.
2860
2861 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2862
2863         * mule-charset.c (Qto_ucs): New variable.
2864         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
2865         (Fdefine_char): Likewise.
2866         (syms_of_mule_charset): Add new symbol `=>ucs'.
2867
2868 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2869
2870         * mule-charset.c (Fdecode_char): Fixed.
2871
2872 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2873
2874         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
2875         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
2876         "tcvn5712-1".
2877
2878 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2879
2880         * mule-charset.c (Vcharset_ucs_big5): New variable.
2881         (Qucs_big5): Likewise.
2882         (syms_of_mule_charset): Add new symbol `ucs-big5'.
2883         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
2884
2885         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
2886
2887 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2888
2889         * mule-charset.c (decode_builtin_char): Check Big5 code range
2890         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
2891
2892 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2893
2894         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
2895         (Qchinese_gb12345): Likewise.
2896         (Fdecode_builtin_char): Fixed.
2897         (syms_of_mule_charset): Add `chinese-gb12345'.
2898         (complex_vars_of_mule_charset): Add coded-charset
2899         `chinese-gb12345'.
2900
2901         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
2902         (LEADING_BYTE_CHINESE_GB12345): New macro.
2903
2904 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2905
2906         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
2907         and `latin-viscii-upper' for `latin-viscii'.
2908
2909 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2910
2911         * mule-charset.c (Fdecode_builtin_char): Comment out
2912         regularization code for ISO-IR GR representation.
2913
2914 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2915
2916         * mule-charset.c (decode_builtin_char): New function; renamed from
2917         `make_builtin_char'; return -1 instead of signal.
2918         (Fdecode_builtin_char): Use `decode_builtin_char'.
2919
2920         * char-ucs.h (decode_builtin_char): New prototype; renamed from
2921         `make_builtin_char'.
2922         (DECODE_CHAR): Use `decode_builtin_char' instead of
2923         `make_builtin_char'; use mapping table of `chinese-big5' for
2924         `chinese-big5-{1,2}'.
2925
2926 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2927
2928         * text-coding.c (char_encode_big5): New function.
2929         (char_finish_big5): Likewise.
2930         (reset_encoding_stream): Use `char_encode_big5' and
2931         `char_finish_big5' for CODESYS_BIG5.
2932         (mule_encode): Don't use `encode_coding_big5'.
2933         (encode_coding_big5): Deleted.
2934
2935 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2936
2937         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
2938         0x81- in XEmacs UTF-2000.
2939         (detect_coding_big5): Likewise.
2940
2941 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2942
2943         * mule-charset.c (Fdefine_char): Don't use a CCS property to
2944         generate character-id if the CCS property does not have
2945         corresponding predefined character.
2946         (make_builtin_char): Return -1 if corresponding predefined
2947         character is not found.
2948         (Fdecode_char): Return nil if corresponding character is not
2949         found.
2950         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
2951         don't map to builtin ucs space.
2952
2953 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2954
2955         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
2956         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
2957
2958 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2959
2960         * mule-charset.c (Vcharset_ideograph_gt): New variable.
2961         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
2962         (Qideograph_gt): Likewise.
2963         (Qideograph_gt_pj_{1..11}): Likewise.
2964         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
2965         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
2966         `ideograph-gt-pj-11'.
2967         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
2968         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
2969         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
2970
2971         * char-ucs.h (LEADING_BYTE_GT): New macro.
2972         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
2973         (MIN_CHAR_GT): Likewise.
2974         (MAX_CHAR_GT): Likewise.
2975
2976 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2977
2978         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
2979         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
2980
2981         * doprnt.c (unsigned_int_converters): Add `c'.
2982         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
2983
2984         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
2985         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
2986         `MIN_CHAR_MOJIKYO'.
2987         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
2988         (MAX_CHAR_MOJIKYO_0): New macro.
2989         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
2990
2991 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2992
2993         * mule-charset.c (Fdefine_char): Delete cemented out code.
2994         (encode_builtin_char_1): Modify for new allocation of builtin
2995         Mojikyo characters.
2996
2997         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
2998
2999 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3000
3001         * mule-charset.c (Vcharset_ucs_cns): New variable.
3002         (Qucs_cns): New variable.
3003         (syms_of_mule_charset): Add new symbol `ucs-cns'.
3004         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
3005
3006 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3007
3008         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
3009
3010 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
3011
3012         * search.c (search_buffer): Make `charset_base_code' as
3013         character-id >> 6 to eliminate the corresponding last byte in
3014         UTF-8 representation [I'm not sure it is right thing].
3015         (boyer_moore): Likewise.
3016
3017 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
3018
3019         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
3020         representation in MULE.
3021
3022 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3023
3024         * text-coding.c (Fmake_coding_system): Use
3025         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
3026         `EXTERNAL_PROPERTY_LIST_LOOP'.
3027
3028 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3029
3030         * text-coding.c (decode_output_utf8_partial_char): New function.
3031         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
3032
3033 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3034
3035         * text-coding.c (decode_coding_utf8): Output original byte
3036         sequence if it is broken; change order of conditions.
3037
3038         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
3039         of conditions.
3040
3041         * mb-multibyte.h (BYTE_ASCII_P):
3042         Use bit ops for char-signedness safety.
3043         (BYTE_C0_P): Use bit ops for char-signedness safety.
3044         (BYTE_C1_P): Use bit ops for char-signedness safety.
3045
3046         * character.h: (XCHAR_OR_CHAR_INT):
3047         Always use inline function.
3048         Remove redundant type checking assert() - XINT will abort quite
3049         nicely.
3050
3051 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3052
3053         * text-coding.c: (Fencode_shift_jis_char):
3054         (Fencode_big5_char):
3055         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
3056         Replace 0 with '\0' when working with bytes.
3057         Replace initial "(" with "\(" in docstrings.
3058
3059         (Fmake_coding_system):
3060         When type is ccl and value is vector, register it with a proper
3061         symbol.  And checks whether the given ccl program is valid.
3062         (mule_decode): When calling ccl_driver, if src indicates
3063         NULL pointer, set an empty string instead.
3064         (mule_encode): Likewise.
3065
3066         (detect_eol_type):
3067         (detect_coding_sjis):
3068         (decode_coding_sjis):
3069         (detect_coding_big5):
3070         (decode_coding_big5):
3071         (detect_coding_ucs4):
3072         (decode_coding_ucs4):
3073         (detect_coding_utf8):
3074         (decode_coding_utf8):
3075         (detect_coding_iso2022):
3076         (decode_coding_iso2022):
3077         (decode_coding_no_conversion):
3078         (mule_decode):
3079         Make all detecting and decoding functions take an Extbyte * arg.
3080         (text_encode_generic):
3081         (encode_coding_big5):
3082         (encode_coding_no_conversion):
3083         (mule_encode):
3084         Make all encoding functions take a Bufbyte * arg.
3085         Use size_t instead of unsigned int for memory sizes.
3086         Only cast to unsigned char whenever dereferencing Extbyte *.
3087
3088         (struct lrecord_description fcd_description_1): Use countof.
3089         (complex_vars_of_file_coding):
3090         Use countof instead of sizeof.
3091         Use CHECK_NATNUM instead of CHECK_INT.
3092
3093 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3094
3095         * mule-charset.c (Fget_char_attribute): Add new optional argument
3096         `default-value'.
3097         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
3098         (remove_char_ccs): Likewise.
3099
3100 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3101
3102         * text-coding.c (char_encode_shift_jis): New implementation in
3103         UTF-2000.
3104         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
3105         ...)'.
3106
3107         * mule-charset.c (Vcharset_chinese_big5): New variable in
3108         UTF-2000.
3109         (Qchinese_big5): New variable in UTF-2000.
3110         (BIG5_SAME_ROW): New macro in UTF-2000.
3111         (make_builtin_char): Use builtin characters of
3112         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
3113         characters of `Vcharset_chinese_big5'.
3114         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
3115         (complex_vars_of_mule_charset): Add new coded-charset
3116         `chinese-big5' in UTF-2000.
3117
3118         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
3119         (Vcharset_chinese_big5): New external variable declaration.
3120         (Vcharset_japanese_jisx0208_1990): Likewise.
3121
3122 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3123
3124         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
3125         function.
3126         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
3127
3128 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3129
3130         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
3131         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
3132         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
3133         `mojikyo-pj-*'.
3134
3135 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3136
3137         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
3138
3139 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3140
3141         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3142         to 0.17.
3143
3144 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3145
3146         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
3147         for `CHARSET_BY_ATTRIBUTES'.
3148         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
3149         `CHARSET_BY_ATTRIBUTES'.
3150
3151         * text-coding.c (struct decoding_stream): Rename member `CH' to
3152         `CPOS'.
3153         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
3154         (decode_coding_sjis): Likewise.
3155         (decode_coding_big5): Likewise.
3156         (decode_coding_ucs4): Likewise.
3157         (decode_coding_utf8): Likewise.
3158         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
3159         `CHARSET_BY_ATTRIBUTES'.
3160         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
3161         `str->counter'; decode 3, 4 bytes sets.
3162         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
3163         sets.
3164         (decode_coding_no_conversion): Use `str->cpos' instead of
3165         `str->ch'.
3166
3167         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
3168         (Qmojikyo_2022_1): New variable.
3169         (make_charset): Don't use `CHARSET_TYPE_*'.
3170         (range_charset_code_point): Support coded-charset
3171         `mojikyo-2022-1'.
3172         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
3173         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
3174         `CHARSET_BY_ATTRIBUTES'.
3175         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
3176         `CHARSET_BY_ATTRIBUTES'.
3177         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
3178         (complex_vars_of_mule_charset): Add new coded-charset
3179         `mojikyo-2022-1'.
3180
3181         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
3182         interface; changed to inline function.
3183
3184         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
3185         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
3186         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
3187         (CHARSET_TYPE_94): Deleted.
3188         (CHARSET_TYPE_94X94): Deleted.
3189         (CHARSET_TYPE_96): Deleted.
3190         (CHARSET_TYPE_96X96): Deleted.
3191         (CHARSET_TYPE_128): Deleted.
3192         (CHARSET_TYPE_128X128): Deleted.
3193         (CHARSET_TYPE_256): Deleted.
3194         (CHARSET_TYPE_256X256): Deleted.
3195         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
3196         to inline function.
3197         (DECODE_MOJIKYO_2022): New inline function.
3198         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
3199         `Vcharset_mojikyo_2022_1'.
3200
3201 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3202
3203         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
3204         instead of `EQ'.
3205         (put_byte_table): Likewise.
3206         (char_id_table_equal): Use `get_byte_table' [new implementation].
3207
3208 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3209
3210         * mule-charset.c: Include <limits.h> in UTF-2000.
3211         (BT_UINT8_MIN): New macro in UTF-2000.
3212         (BT_UINT8_MAX): New macro in UTF-2000.
3213         (BT_UINT8_t): New macro in UTF-2000.
3214         (BT_UINT8_nil): New macro in UTF-2000.
3215         (BT_UINT8_unbound): New macro in UTF-2000.
3216         (INT_UINT8_P): New inline function in UTF-2000.
3217         (UINT8_VALUE_P): New inline function in UTF-2000.
3218         (UINT8_ENCODE): New inline function in UTF-2000.
3219         (UINT8_DECODE): New inline function in UTF-2000.
3220         (mark_uint8_byte_table): New function in UTF-2000.
3221         (print_uint8_byte_table): New function in UTF-2000.
3222         (uint8_byte_table_equal): New function in UTF-2000.
3223         (uint8_byte_table_hash): New function in UTF-2000.
3224         (make_uint8_byte_table): New function in UTF-2000.
3225         (uint8_byte_table_same_value_p): New function in UTF-2000.
3226         (BT_UINT16_MIN): New macro in UTF-2000.
3227         (BT_UINT16_MAX): New macro in UTF-2000.
3228         (BT_UINT16_t): New macro in UTF-2000.
3229         (BT_UINT16_nil): New macro in UTF-2000.
3230         (BT_UINT16_unbound): New macro in UTF-2000.
3231         (INT_UINT16_P): New inline function in UTF-2000.
3232         (UINT16_VALUE_P): New inline function in UTF-2000.
3233         (UINT16_ENCODE): New inline function in UTF-2000.
3234         (UINT16_DECODE): New inline function in UTF-2000.
3235         (UINT8_TO_UINT16): New inline function in UTF-2000.
3236         (mark_uint16_byte_table): New function in UTF-2000.
3237         (print_uint16_byte_table): New function in UTF-2000.
3238         (uint16_byte_table_equal): New function in UTF-2000.
3239         (uint16_byte_table_hash): New function in UTF-2000.
3240         (make_uint16_byte_table): New function in UTF-2000.
3241         (uint16_byte_table_same_value_p): New function in UTF-2000.
3242         (print_byte_table): New function in UTF-2000.
3243         (byte-table): Use `print_byte_table' as printer.
3244         (make_byte_table): Delete second argument `older'.
3245         (byte_table_same_value_p): New function in UTF-2000.
3246         (copy_byte_table): Deleted.
3247         (get_byte_table): New function in UTF-2000.
3248         (put_byte_table): New function in UTF-2000.
3249         (print_char_id_table): New function in UTF-2000.
3250         (char-id-table): Use `print_char_id_table' as printer.
3251         (make_char_id_table): Delete second argument `older'.
3252         (get_char_id_table): Use `get_byte_table [new implementation].
3253         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
3254         implementation].
3255         (Ffind_char_attribute_table): New function in UTF-2000.
3256         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
3257         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
3258         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
3259         (syms_of_mule_charset): Add new function
3260         `find-char-attribute-table' in UTF-2000.
3261
3262         * lrecord.h (enum lrecord_type): Add
3263         `lrecord_type_uint16_byte_table' and
3264         `lrecord_type_uint8_byte_table'.
3265
3266         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
3267         (Lisp_Uint8_Byte_Table): New type.
3268         (XUINT8_BYTE_TABLE): New macro.
3269         (XSETUINT8_BYTE_TABLE): New macro.
3270         (UINT8_BYTE_TABLE_P): New macro.
3271         (GC_UINT8_BYTE_TABLE_P): New macro.
3272         (struct Lisp_Uint16_Byte_Table): New structure.
3273         (Lisp_Uint16_Byte_Table): New type.
3274         (XUINT16_BYTE_TABLE): New macro.
3275         (XSETUINT16_BYTE_TABLE): New macro.
3276         (UINT16_BYTE_TABLE_P): New macro.
3277         (GC_UINT16_BYTE_TABLE_P): New macro.
3278
3279 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3280
3281         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
3282         (Vcharacter_ideographic_strokes_table): Deleted.
3283         (Vcharacter_total_strokes_table): Deleted.
3284         (Vcharacter_morohashi_daikanwa_table): Deleted.
3285         (Vcharacter_decomposition_table): Deleted.
3286         (Qname): Deleted because it is duplicated.
3287         (Qideographic_radical): Deleted.
3288         (Qideographic_strokes): Deleted.
3289         (Qtotal_strokes): Deleted.
3290         (Qmorohashi_daikanwa): Deleted.
3291         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
3292         `ideographic-radical', `ideographic-strokes', `total-strokes',
3293         `morohashi-daikanwa' and `->decomposition'.
3294         (Fget_char_attribute): Likewise.
3295         (Fput_char_attribute): Likewise; use `make-vector' instead of
3296         `make_older_vector' for `->decomposition' value.
3297         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
3298         `ideograph-daikanwa'.
3299         (syms_of_mule_charset): Delete builtin symbols `name',
3300         `ideographic-radical', `ideographic-strokes', `total-strokes' and
3301         `morohashi-daikanwa'.
3302         (vars_of_mule_charset): Don't setup
3303         `Vcharacter_ideographic_radical_table',
3304         `Vcharacter_ideographic_strokes_table',
3305         `Vcharacter_total_strokes_table',
3306         `Vcharacter_morohashi_daikanwa_table' and
3307         `Vcharacter_decomposition_table'.
3308
3309 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3310
3311         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
3312         `make_older_vector', `make_vector_newer_1' and
3313         `make_vector_newer'.
3314
3315         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
3316         `make_older_vector' and `make_vector_newer'.
3317
3318         * config.h.in (HAVE_GGC): New macro.
3319
3320 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3321
3322         * mule-charset.c (struct char_attribute_list_closure): New
3323         structure in UTF-2000.
3324         (add_char_attribute_to_list_mapper): New function in UTF-2000.
3325         (Fchar_attribute_list): Likewise.
3326         (Fset_charset_mapping_table): Use `make_vector_newer'.
3327         (Fdecode_builtin_char): New function in UTF-2000.
3328         (syms_of_mule_charset): Add new function `char-attribute-list' and
3329         `decode-builtin-char' in UTF-2000.
3330
3331         * lisp.h (make_vector_newer): New prototype.
3332
3333         * alloc.c (make_vector_newer_1): New function.
3334         (make_vector_newer): New function.
3335
3336 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3337
3338         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
3339         50100)'.
3340
3341 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3342
3343         * mule-charset.c (Vchar_attribute_hash_table): New variable.
3344         (Vcharacter_attribute_table): Deleted.
3345         (Vcharacter_name_table): Deleted.
3346         (put_char_attribute): Deleted.
3347         (remove_char_attribute): Deleted.
3348         (struct char_attribute_alist_closure): New structure.
3349         (add_char_attribute_alist_mapper): New function.
3350         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
3351         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
3352         (Fget_char_attribute): Likewise.
3353         (Fput_char_attribute): Likewise.
3354         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
3355         of `remove_char_attribute'.
3356         (Fdefine_char): Return character.
3357         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
3358         and `Vcharacter_name_table'.
3359         (complex_vars_of_mule_charset): Likewise
3360         `Vchar_attribute_hash_table'.
3361
3362 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3363
3364         * character.h (CHARC_CHARSET): New macro.
3365         (CHARC_CHARSET_ID): New macro.
3366         (CHARC_CODE_POINT): New macro.
3367         (CHARC_COLUMNS): New macro.
3368         (CHARC_TO_CHAR): New inline function.
3369         (CHARC_EQ): New inline function.
3370         (CHARC_ASCII_EQ): New inline function.
3371         (CHARC_IS_SPACE): New inline function.
3372         (ASCII_TO_CHARC): New inline function.
3373
3374         * char-ucs.h (encode_char_2): Deleted.
3375         (ENCODE_CHAR): Use `encode_char_1' again.
3376         (breakup_char_1): Likewise.
3377         (CHAR_TO_CHARC): New inline function.
3378
3379         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
3380
3381 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3382
3383         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
3384         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
3385         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
3386         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
3387         (create_string_text_block): Use `CHARC_ASCII_EQ' and
3388         `CHARC_IS_SPACE'.
3389         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
3390
3391         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
3392         `CHARC_CODE_POINT'.
3393         (x_output_display_block): Use `CHARC_CHARSET' and
3394         `CHARC_ASCII_EQ'.
3395
3396         * redisplay-tty.c (tty_output_display_block): Use
3397         `CHARC_ASCII_EQ'.
3398         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
3399
3400         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
3401
3402         * insdel.c (find_charsets_in_charc_string): Use
3403         `CHARC_CHARSET_ID'.
3404         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
3405         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
3406         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
3407         (convert_charc_string_into_malloced_string): Likewise.
3408
3409 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3410
3411         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
3412         instead of <Emchar_dynarr *> for buf; use
3413         `convert_bufbyte_string_into_charc_dynarr' instead of
3414         `convert_bufbyte_string_into_emchar_dynarr'; use
3415         `find_charsets_in_charc_string' instead of
3416         `find_charsets_in_emchar_string'.
3417
3418         * redisplay.h:
3419         - Include "character.h".
3420         (struct rune): New member `cglyph'; delete member `chr'.
3421
3422         * redisplay.c (redisplay_text_width_charc_string): New function;
3423         delete `redisplay_text_width_emchar_string'.
3424         (rtw_charc_dynarr): New variable; renamed from
3425         `rtw_emchar_dynarr'.
3426         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
3427         `rtw_emchar_dynarr'; use
3428         `convert_bufbyte_string_into_charc_dynarr' instead of
3429         `convert_bufbyte_string_into_emchar_dynarr'; use
3430         `redisplay_text_width_charc_string' instead of
3431         `redisplay_text_width_emchar_string'.
3432         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
3433         instead of `rtw_emchar_dynarr'; use
3434         `convert_bufbyte_string_into_charc_dynarr' instead of
3435         `convert_bufbyte_string_into_emchar_dynarr'.
3436         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
3437         `redisplay_text_width_charc_string' instead of
3438         `redisplay_text_width_emchar_string'.
3439         (create_text_block): Modify for <struct rune> change.
3440         (generate_formatted_string_db): Likewise.
3441         (create_string_text_block): Likewise.
3442         (pixel_to_glyph_translation): Likewise.
3443
3444         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
3445         instead of <const Emchar *>.
3446         (x_text_width): Likewise.
3447         (x_output_display_block): Use <Charc_dynarr *> instead
3448         <Emchar_dynarr *>; modify for <structure rune> change.
3449         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
3450         *>.
3451
3452         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
3453         <const Emchar *>; use `charc_string_displayed_columns' instead of
3454         `emchar_string_displayed_columns'.
3455         (tty_output_display_block): Use <Charc_dynarr *> instead of
3456         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
3457         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
3458         (tty_output_charc_dynarr_dynarr): New variable; renamed from
3459         `tty_output_emchar_dynarr_dynarr'.
3460         (tty_output_charc_dynarr): New function; delete
3461         `tty_output_charc_dynarr'.
3462
3463         * redisplay-output.c (compare_runes): Modify for `struct rune'.
3464         (redisplay_output_layout): Use <Charc_dynarr *> instead of
3465         <Emchar_dynarr *> for buf; use
3466         `convert_bufbyte_string_into_charc_dynarr' instead of
3467         `convert_bufbyte_string_into_emchar_dynarr'.
3468
3469         * frame.c (title_string_charc_dynarr): New variable; renamed from
3470         `title_string_emchar_dynarr'.
3471         (generate_title_string): Use `title_string_charc_dynarr' instead
3472         of `title_string_emchar_dynarr'; use
3473         `convert_charc_string_into_malloced_string' instead of
3474         `convert_emchar_string_into_malloced_string'.
3475         (init_frame): Use `title_string_charc_dynarr' instead of
3476         `title_string_emchar_dynarr'.
3477
3478         * console.h:
3479         - Include "character.h".
3480         (struct console_methods): Use <const Charc *> instead of <const
3481         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
3482         <Emchar_dynarr *> in output_string_method.
3483
3484         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
3485         <Emchar_dynarr *>.
3486
3487         * console-stream.c (stream_text_width): Use <const Charc *>
3488         instead of <const Emchar *>.
3489
3490         * character.h (Charc_dynarr): New type.
3491
3492         * char-ucs.h (structure Charc): New structure; define new type
3493         `Charc'.
3494
3495         * char-lb.h (DECODE_CHAR): New inline function.
3496         (encode_char_1): New inline function.
3497         (ENCODE_CHAR): New macro.
3498         (structure Charc): New structure; define new type `Charc'.
3499
3500         * char-1byte.h (Vcharset_control_1): New macro.
3501         (Vcharset_latin_iso8859_1): New macro.
3502         (DECODE_CHAR): New inline function.
3503         (encode_char_1): New inline function.
3504         (ENCODE_CHAR): New macro.
3505         (structure Charc): New structure; define new type `Charc'.
3506
3507         * insdel.c (find_charsets_in_charc_string): New function; delete
3508         `find_charsets_in_emchar_string'.
3509         (charc_string_displayed_columns): New function; delete
3510         `emchar_string_displayed_columns'.
3511         (convert_bufbyte_string_into_charc_dynarr): New function; delete
3512         `convert_bufbyte_string_into_emchar_dynarr'.
3513         (convert_charc_string_into_bufbyte_dynarr): New function; delete
3514         `convert_charc_string_into_bufbyte_dynarr'.
3515         (convert_charc_string_into_malloced_string): New function; delete
3516         `convert_charc_string_into_malloced_string'.
3517
3518         * buffer.h (find_charsets_in_charc_string): New prototype; delete
3519         `find_charsets_in_emchar_string'.
3520         (charc_string_displayed_columns): New prototype; delete
3521         `emchar_string_displayed_columns'.
3522         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
3523         `convert_charc_string_into_bufbyte_dynarr'.
3524         (convert_charc_string_into_malloced_string): New prototype; delete
3525         `convert_charc_string_into_malloced_string'.
3526
3527 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3528
3529         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
3530
3531 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3532
3533         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
3534
3535         * char-ucs.h: Use <short> for <Charset_ID>.
3536
3537         * mule-charset.h, char-1byte.h: Use <unsigned char> for
3538         <Charset_ID>.
3539
3540 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3541
3542         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3543         to 0.16.
3544
3545 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3546
3547         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
3548         variable.
3549         (Qmorohashi_daikanwa): New variable.
3550         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
3551         for `morohashi-daikanwa' attribute.
3552         (Fget_char_attribute): Likewise.
3553         (Fput_char_attribute): Likewise.
3554         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
3555         has the same value of `ideograph-daikanwa'.
3556         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
3557         (vars_of_mule_charset): Setup
3558         `Vcharacter_morohashi_daikanwa_table'.
3559
3560 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3561
3562         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
3563         attributes.
3564         (add_charset_to_list_mapper): Add `key' instead of
3565         `XCHARSET_NAME (value)' to return aliases.
3566
3567 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3568
3569         * mule-charset.c (Vcharacter_ideographic_radical_table): New
3570         variable.
3571         (Vcharacter_ideographic_strokes_table): New variable.
3572         (Qideographic_radical): New variable.
3573         (Qideographic_strokes): New variable.
3574         (Fchar_attribute_alist): Use
3575         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
3576         attribute; use `Vcharacter_ideographic_strokes_table' for
3577         `ideographic-strokes' attribute.
3578         (Fget_char_attribute): Likewise.
3579         (Fput_char_attribute): Likewise.
3580         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
3581         `ideographic-strokes'.
3582         (vars_of_mule_charset): Setup
3583         `Vcharacter_ideographic_radical_table' and
3584         `Vcharacter_ideographic_strokes_table'.
3585
3586 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3587
3588         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
3589         (Qtotal_strokes): New variable.
3590         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
3591         `total-strokes' attribute.
3592         (Fget_char_attribute): Likewise.
3593         (Fput_char_attribute): Likewise.
3594         (syms_of_mule_charset): Add new symbol `total-strokes'.
3595         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
3596
3597 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3598
3599         * mule-charset.c (Vcharacter_decomposition_table): New variable.
3600         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
3601         are found.
3602         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
3603         `->decomposition' attribute.
3604         (Fput_char_attribute): Likewise.
3605         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
3606
3607 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3608
3609         * mule-charset.c (decoding_table_check_elements): New function.
3610         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
3611
3612 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3613
3614         * mule-charset.c (Fset_charset_mapping_table): Use
3615         `put_char_ccs_code_point'.
3616
3617 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3618
3619         * mule-charset.c (decoding_table_put_char): New inline function.
3620         (put_char_ccs_code_point): Use `decoding_table_put_char'.
3621
3622 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3623
3624         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
3625         (XCHARSET_BYTE_SIZE): New macro.
3626         (decoding_table_remove_char): New inline function.
3627         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
3628         `decoding_table_remove_char'.
3629         (remove_char_ccs): Use `decoding_table_remove_char'.
3630         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
3631
3632 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3633
3634         * mule-charset.c (Vcharacter_name_table): New variable.
3635         (Qname): New variable.
3636         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
3637         attribute.
3638         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
3639         `Vcharacter_name_table' for `name' attribute.
3640         (Fremove_char_attribute): Use function `remove_char_ccs'.
3641         (put_char_ccs_code_point): New function.
3642         (remove_char_ccs): New function.
3643         (syms_of_mule_charset): Add new symbol `name'.
3644         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
3645
3646 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3647
3648         * mule-charset.c (make_byte_table): Add new argument `older'.
3649         (make_char_id_table): Likewise.
3650         (copy_char_id_table): Comment out because it is not used.
3651         (put_char_id_table): Modify for `make_byte_table'.
3652         (Fput_char_attribute): Make encoding_table as older object;
3653         inherit older bit of `Vcharacter_composition_table'.
3654         (mark_charset): Don't mark `cs->encoding_table'.
3655         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
3656         normal object; make `Vcharacter_composition_table' as an older
3657         object; delete staticpro for `Vcharacter_composition_table'; make
3658         `Vcharacter_variant_table' as a normal object.
3659
3660         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
3661         (mark_object): Don't check older object in UTF-2000.
3662
3663         * lrecord.h (struct lrecord_header): Add new member `older' in
3664         UTF-2000.
3665         (set_lheader_implementation): Setup `SLI_header->older' in
3666         UTF-2000.
3667         (set_lheader_older_implementation): New macro in UTF-2000.
3668         (OLDER_RECORD_P): New macro in UTF-2000.
3669         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
3670         (alloc_older_lcrecord): New prototype in UTF-2000.
3671         (alloc_older_lcrecord_type): New macro in UTF-2000.
3672
3673 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3674
3675         * mule-charset.c (byte_table_description): Use
3676         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
3677         (char_id_table_description): Delete bogus `, 1'.
3678         (Fget_char_attribute): Refer encoding_table of each coded-charset
3679         to get value of coded-charset attribute of a character.
3680         (Fput_char_attribute): Use `make_older_vector' instead of
3681         `make_vector'; use encoding_table of each coded-charset to store
3682         value of coded-charset attribute of a character.
3683         (Fremove_char_attribute): Use encoding_table of each coded-charset
3684         to store value of coded-charset attribute of a character.
3685         (mark_charset): Mark `cs->encoding_table'; don't mark
3686         `cs->decoding_table'.
3687         (charset_description): Add description of new member
3688         `encoding_table'.
3689         (make_charset): Initialize `encoding_table'.
3690
3691         * char-ucs.h (struct Lisp_Charset): Add new member
3692         `encoding_table'.
3693         (CHARSET_ENCODING_TABLE): New macro.
3694         (XCHARSET_ENCODING_TABLE): New macro.
3695         (charset_code_point): New implementation.
3696         (encode_char_1): Likewise.
3697
3698         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
3699         (disksave_object_finalization_1): Call finalizers of
3700         `all_older_lcrecords' in UTF-2000.
3701         (make_older_vector): New function in UTF-2000.
3702         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
3703         UTF-2000.
3704
3705         * lisp.h (make_older_vector): New prototype in UTF-2000.
3706
3707 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3708
3709         * lrecord.h (enum lrecord_type): Rename
3710         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
3711
3712         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
3713         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
3714         `get_char_code_table'.
3715
3716         * mule-charset.c (mark_char_id_table): Renamed from
3717         `mark_char_code_table'.
3718         (char_id_table_equal): Renamed from `char_code_table_equal'.
3719         (char_id_table_hash): Renamed from `char_code_table_hash'.
3720         (make_char_id_table): Renamed from `make_char_code_table'.
3721         (copy_char_id_table): Renamed from `copy_char_code_table'.
3722         (get_char_id_table): Renamed from `get_char_code_table'.
3723         (put_char_id_table): Renamed from `put_char_code_table'.
3724         (to_char_id): Renamed from `to_char_code'.
3725
3726         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
3727         `Lisp_Char_Code_Table'.
3728         (char_id_table): Renamed from `char_code_table'.
3729         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
3730         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
3731         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
3732         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
3733         (get_char_id_table): Renamed from `get_char_code_table'.
3734
3735 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3736
3737         * lrecord.h (enum lrecord_type): Rename
3738         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
3739
3740         * mule-charset.c (mark_byte_table): Renamed from
3741         `mark_char_byte_table'.
3742         (byte_table_equal): Renamed from `char_byte_table_equal'.
3743         (byte_table_hash): Renamed from `byte_table_hash'.
3744         (make_byte_table): Renamed from `make_byte_table'.
3745         (copy_byte_table): Renamed from `copy_char_byte_table'.
3746
3747         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
3748         `Lisp_Char_Byte_Table'.
3749         (byte_table): Renamed from `char_byte_table'.
3750         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
3751         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
3752         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
3753         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
3754
3755 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3756
3757         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
3758         (dfc_convert_to_internal_format): Likewise.
3759         
3760         * text-coding.c (Fcoding_system_canonical_name_p): New function.
3761         * text-coding.c (Fcoding_system_alias_p): New function.
3762         * text-coding.c (Fcoding_system_aliasee): New function.
3763         * text-coding.c (append_suffix_to_symbol): New function.
3764         * text-coding.c (dangling_coding_system_alias_p): New function.
3765         * text-coding.c (Ffind_coding_system):
3766         * text-coding.c (Fcopy_coding_system):
3767         * text-coding.c (encode_coding_no_conversion):
3768         * text-coding.c (syms_of_file_coding):
3769         * text-coding.c (vars_of_file_coding):
3770         Rewrite coding system alias code.
3771         Allow nested aliases, like symbolic links.
3772         Allow redefinition of coding system aliases.
3773         Prevent existence of dangling coding system aliases.
3774         Eliminate convert_to_external_format.
3775         Eliminate convert_to_internal_format.
3776         
3777         * text-coding.c: Change enum eol_type to eol_type_t.
3778
3779 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3780
3781         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
3782         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
3783
3784         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
3785         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
3786
3787 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3788
3789         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
3790         `ideograph-daikanwa'.
3791
3792         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
3793         (Vcharset_ucs_bmp): Likewise.
3794         (Vcharset_mojikyo): Add new extern variable definition.
3795         (Vcharset_latin_iso8859_2): Deleted because it is not used.
3796         (Vcharset_latin_iso8859_3): Likewise.
3797         (Vcharset_latin_iso8859_4): Likewise.
3798         (Vcharset_latin_iso8859_9): Likewise.
3799         (Vcharset_latin_viscii_lower): Likewise.
3800         (Vcharset_latin_viscii_upper): Likewise.
3801         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
3802         `mojikyo' code-point is used to decode.
3803         (encode_char_2): New function [to convert `mojikyo' code-point to
3804         Mojikyo font encoding].
3805         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
3806         (breakup_char_1): Likewise.
3807         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
3808
3809 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3810
3811         * text-coding.c (Fmake_coding_system): Add document about
3812         `disable-composition' property.
3813
3814 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3815
3816         * text-coding.c (Qdisable_composition): New variable; delete
3817         `Qcomposite'.
3818         (Fmake_coding_system): Add new property `disable-composite';
3819         delete property `composite'.
3820         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
3821         instead of `!CODING_SYSTEM_COMPOSITE'.
3822         (syms_of_file_coding): Add new symbol `disable-composition';
3823         delete symbol `composite'.
3824
3825         * file-coding.h (struct Lisp_Coding_System): Add
3826         `disable_composition'; delete `enable_composition'.
3827         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
3828         `CODING_SYSTEM_COMPOSITE'.
3829         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
3830         `XCODING_SYSTEM_COMPOSITE'.
3831
3832 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3833
3834         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3835         to 0.15.
3836
3837 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3838
3839         * text-coding.c (Qcomposite): New variable.
3840         (Fmake_coding_system): Add new property `composite'.
3841         (struct decoding_stream): Add `combined_char_count',
3842         `combined_chars' and `combining_table' in UTF-2000.
3843         (COMPOSE_FLUSH_CHARS): New macro.
3844         (COMPOSE_ADD_CHAR): New macro.
3845         (reset_decoding_stream): Reset `str->combined_char_count' and
3846         `str->combining_table' in UTF-2000.
3847         (decode_coding_iso2022): Modify for character-decomposition.
3848         (syms_of_file_coding): Add new symbol `composite'.
3849
3850 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3851
3852         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
3853         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
3854         of `Vcharacter_composition_table' if `->decomposition' property
3855         has only 1 element.
3856         (Qlatin_tcvn5712): New variable.
3857         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
3858         (complex_vars_of_mule_charset): Add new coded-charset
3859         `latin-tcvn5712'.
3860
3861         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
3862
3863 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3864
3865         * file-coding.h (struct Lisp_Coding_System): Add
3866         `enable_composition'.
3867         (CODING_SYSTEM_COMPOSITE): New macro.
3868         (XCODING_SYSTEM_COMPOSITE): New macro.
3869
3870 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
3871
3872         * mule-canna.c (c2mu): Fix problem with UTF-2000.
3873
3874 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
3875
3876         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
3877         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
3878
3879 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
3880
3881         * mule-charset.c (Vcharset_mojikyo): New variable.
3882         (Fdefine_char): Don't use coded-charset which does not have
3883         non-builtin character range to allocate character-id.
3884         (Qmojikyo): New variable.
3885         (syms_of_mule_charset): Add new symbol `mojikyo'.
3886         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
3887
3888         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
3889         (LEADING_BYTE_MOJIKYO): New macro.
3890         (MIN_CHAR_MOJIKYO): New macro.
3891         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
3892         (MAX_CHAR_MOJIKYO): New macro.
3893
3894 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
3895
3896         * mule-charset.c (remove_char_attribute): Fixed.
3897
3898 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
3899
3900         * mule-charset.c (remove_char_attribute): New function.
3901         (Fremove_char_attribute): New function.
3902         (encode_builtin_char_1): Comment out builtin-support for
3903         greek-iso8859-7 and cyrillic-iso8859-5.
3904         (Fdecode_char): Check `code' is an integer.
3905         (syms_of_mule_charset): Add `remove-char-attribute'.
3906         (MIN_CHAR_GREEK): Deleted.
3907         (MAX_CHAR_GREEK): Likewise.
3908         (MIN_CHAR_CYRILLIC): Likewise.
3909         (MAX_CHAR_CYRILLIC): Likewise.
3910         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
3911         MAX_CHAR_GREEK for `greek-iso8859-7'.
3912
3913         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
3914         (MAX_CHAR_GREEK): Likewise.
3915         (MIN_CHAR_CYRILLIC): Likewise.
3916         (MAX_CHAR_CYRILLIC): Likewise.
3917
3918 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
3919
3920         * mule-charset.c (Fdefine_char): Fix problem when new code-point
3921         format is used without `ucs' property.
3922         (Fdecode_char): Fix problem with GR representation.
3923         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
3924         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
3925
3926 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3927
3928         * mule-charset.c (make_builtin_char): New function.
3929         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
3930         (Fset_charset_mapping_table): Modify for new representation of
3931         code-point.
3932         (Fdecode_char): New function.
3933         (syms_of_mule_charset): Add new builtin function `decode-char' in
3934         UTF-2000.
3935
3936         * char-ucs.h (make_builtin_char): New prototype.
3937         (DECODE_CHAR): New inline function.
3938         (MAKE_CHAR): Use `DECODE_CHAR'.
3939
3940 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
3941
3942         * text-coding.c (parse_charset_conversion_specs): Use
3943         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
3944         `XCHARSET_TYPE'.
3945         (iso2022_designate): Likewise.
3946
3947         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
3948         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
3949
3950         * mule-charset.c (Vcharset_ucs): New variable.
3951         (print_charset): Change design; use `CHARSET_CHARS' and
3952         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
3953         (make_charset): Change signature to specify `chars' and
3954         `dimension' instead of `type'.
3955         (range_charset_code_point): Modify for 256^n-set.
3956         (encode_builtin_char_1): Encode as `ucs' in default.
3957         (Fmake_charset): Modify for `make_charset'.
3958         (Fmake_reverse_direction_charset): Likewise.
3959         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
3960         UTF-2000.
3961         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
3962         for `make_charset'.
3963
3964         * char-ucs.h (Vcharset_ucs): New variable.
3965         (LEADING_BYTE_UCS): New macro.
3966         (struct Lisp_Charset): Delete `type'; change type of `dimension'
3967         and `chars' to `unsigned short' from `unsigned int'.
3968         (CHARSET_TYPE): Deleted.
3969         (XCHARSET_TYPE): Deleted.
3970
3971 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
3972
3973         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
3974
3975         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
3976         (ENCODE_CHAR): New macro.
3977
3978 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3979
3980         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3981         to 0.14 (Kawachi-Katakami).
3982
3983 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3984
3985         * text-coding.c (char_encode_shift_jis): Modify for
3986         `charset_code_point'.
3987         (char_encode_iso2022): Likewise.
3988
3989         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
3990         (integer) instead of list of <Lisp_Object>s (integers) as the
3991         format of code-point of a coded-charset.
3992         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
3993         (encode_builtin_char_1): New function; delete
3994         `split_builtin_char'.
3995         (charset_code_point): Return <int> instead of <Lisp_Object>.
3996         (Fsplit_char): Don't use `SPLIT_CHAR'.
3997
3998         * char-ucs.h (encode_builtin_char_1): New prototype; delete
3999         prototype for `split_builtin_char'.
4000         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
4001         (charset_code_point): Likewise.
4002         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
4003         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
4004
4005 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
4006
4007         * mule-charset.c (complex_vars_of_mule_charset): Don't define
4008         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
4009
4010 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4011
4012         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
4013
4014         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
4015         (MAX_CHAR_OBS_94x94): Deleted.
4016
4017 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4018
4019         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
4020
4021         * char-ucs.h (MAX_CHAR_BMP): New macro.
4022
4023 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4024
4025         * text-coding.c: Sync with r21-2-24.
4026
4027 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
4028
4029         * file-coding.c: Modify for UTF-2000.
4030
4031 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4032
4033         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4034         to 0.13 (Takaida).
4035
4036 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4037
4038         * mule-charset.c (split_builtin_char): Delete builtin support for
4039         `katakana-jisx0201'.
4040         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
4041         BMP area in builtin representation.
4042
4043         * char-ucs.h (MAKE_CHAR): Delete builtin support for
4044         `Vcharset_katakana_jisx0201'.
4045
4046 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
4047
4048         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
4049         (Qisolated): New variable.
4050         (Qinitial): New variable.
4051         (Qmedial): New variable.
4052         (Qfinal): New variable.
4053         (Qvertical): New variable.
4054         (Qsmall): New variable.
4055         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
4056         `Qvertical' and `Qsmall'.
4057         (Qmojikyo_pj_[1 .. 21]): New variable.
4058         (syms_of_mule_charset): Add new symbols `isolated', `initial',
4059         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
4060         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
4061         .. 21]'.
4062
4063 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
4064
4065         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
4066         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
4067         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
4068
4069 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4070
4071         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
4072         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
4073         BMP.
4074         (Qjapanese_jisx0208_1990): New variable.
4075         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
4076         (complex_vars_of_mule_charset): Add new coded-charset
4077         `japanese-jisx0208-1990'.
4078
4079         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
4080         (MIN_CHAR_JIS_X0208_1990): New macro.
4081         (MAX_CHAR_JIS_X0208_1990): New macro.
4082
4083 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4084
4085         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
4086         coded-charset is not found.
4087
4088 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4089
4090         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
4091         (Fdefine_char): Use `Fmake_char'.
4092
4093 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4094
4095         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
4096         (Vcharset_hiragana_jisx0208): Deleted.
4097         (Vcharset_katakana_jisx0208): Deleted.
4098         (Qideograph_daikanwa): New variable.
4099         (Qhiragana_jisx0208): Deleted.
4100         (Qkatakana_jisx0208): Deleted.
4101         (split_builtin_char): Split `ideograph-daikanwa'.
4102         (Fsplit_char): New implementation for UTF-2000.
4103         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
4104         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
4105         (complex_vars_of_mule_charset): Add new coded-charset
4106         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
4107         `katakana-jisx0208'.
4108
4109         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
4110         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
4111         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
4112         (MIN_CHAR_DAIKANWA): New macro.
4113         (MAX_CHAR_DAIKANWA): New macro.
4114
4115 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4116
4117         * data.c (Fstring_to_number): Don't recognize floating point if
4118         base is not 10.
4119
4120 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4121
4122         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
4123
4124 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4125
4126         * mule-charset.c (Qsquare): New variable.
4127         (to_char_code): Add `Qsquare'.
4128         (syms_of_mule_charset): Add new symbol `square'.
4129
4130 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4131
4132         * mule-charset.c (Qcircle): New variable.
4133         (to_char_code): Add `Qcircle'.
4134         (syms_of_mule_charset): Add new symbol `circle'.
4135
4136 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4137
4138         * mule-charset.c (Qfont): New variable.
4139         (to_char_code): Add `Qfont'.
4140         (syms_of_mule_charset): Add new symbol `font'.
4141
4142 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4143
4144         * mule-charset.c (Qsub): New variable.
4145         (to_char_code): Add `Qsub'.
4146         (syms_of_mule_charset): Add new symbol `sub'.
4147
4148 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4149
4150         * mule-charset.c (Fput_char_attribute): Convert each element of
4151         VALUE to GL position if ATTRIBUTE is a GR-set,
4152
4153 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4154
4155         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
4156         coded-charset is a GR-set.
4157
4158 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4159
4160         * mule-charset.c (Fput_char_attribute): Check each element of
4161         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
4162
4163 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4164
4165         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
4166         UTF-2000.
4167         (Qethiopic_ucs): New variable in UTF-2000.
4168         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
4169         (complex_vars_of_mule_charset): Add new coded-charset
4170         `ethiopic-ucs' in UTF-2000.
4171
4172         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
4173         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
4174         9)'.
4175         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
4176         10)'.
4177         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
4178
4179 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
4180
4181         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
4182         `ascii'.
4183
4184 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4185
4186         * mule-charset.c (Vcharacter_variant_table): New variable.
4187         (Q_ucs): New variable.
4188         (Fchar_variants): New function.
4189         (Fput_char_attribute): Register `->ucs' value to
4190         `Vcharacter_variant_table'.
4191         (syms_of_mule_charset): Add new function `char-variants' and new
4192         symbol `->ucs'.
4193         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
4194
4195 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4196
4197         * mule-charset.c (get_char_code_table): Allow negative character
4198         code.
4199         (put_char_code_table): Likewise.
4200         (Vcharacter_composition_table): New variable.
4201         (Q_decomposition): New variable.
4202         (Qwide): New variable.
4203         (Qnarrow): New variable.
4204         (Qcompat): New variable.
4205         (QnoBreak): New variable.
4206         (Qsuper): New variable.
4207         (Qfraction): New variable.
4208         (to_char_code): New function.
4209         (Fget_composite_char): New function.
4210         (Fput_char_attribute): Register `->decomposition' value to
4211         `Vcharacter_composition_table'.
4212         (syms_of_mule_charset): Add new function `get-composite-char', new
4213         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
4214         `super' and `fraction'.
4215         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
4216
4217 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4218
4219         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
4220         character; copy the return value.
4221
4222 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4223
4224         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
4225
4226         * mule-charset.c (range_charset_code_point): Must use make_int.
4227         (split_builtin_char): New function.
4228
4229 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4230
4231         * mule-charset.c (char_byte_table): Change name from
4232         "char-code-table" to "char-byte-table".
4233         (mark_char_code_table): New function.
4234         (char_code_table_equal): New function.
4235         (char_code_table_hash): New function.
4236         (char_code_table_description): New constant.
4237         (char_code_table): New type.
4238         (make_char_code_table): New function.
4239         (copy_char_code_table): New function.
4240         (get_char_code_table): Modify for `char_code_table' type.
4241         (put_char_code_table): Likewise.
4242         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
4243         (Kashiwara).
4244
4245         * char-ucs.h (char_code_table): New type.
4246         (XCHAR_CODE_TABLE): New macro.
4247         (XSETCHAR_CODE_TABLE): New macro.
4248         (CHAR_CODE_TABLE_P): New macro.
4249         (GC_CHAR_CODE_TABLE_P): New macro.
4250         (struct Lisp_Char_Code_Table): New structure.
4251
4252 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4253
4254         * mule-charset.c (Fmake_charset): Setup byte_offset for
4255         {94|96}^n-set.
4256
4257 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4258
4259         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
4260         character.
4261
4262 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4263
4264         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
4265         is found.
4266
4267 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4268
4269         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
4270         charset, it is regarded as a charset.
4271         (put_char_attribute): New function in UTF-2000.
4272         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
4273         charset, mapping-table of the charset is modified.
4274         (Fdefine_char): New function in UTF-2000.
4275         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
4276         `Fput_char_attribute'.
4277         (syms_of_mule_charset): Add new function `define-char' and new
4278         symbol `ucs' in UTF-2000.
4279         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
4280
4281 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4282
4283         * mule-charset.c (Fcharset_name): Define `byte_offset' in
4284         non-UTF-2000 configuration.
4285
4286 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4287
4288         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
4289         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
4290
4291         * mule-charset.c (mark_charset): `cs->encoding_table' has been
4292         deleted.
4293         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
4294         (Fset_charset_mapping_table): Likewise.
4295
4296         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
4297         (CHARSET_ENCODING_TABLE): Delete.
4298         (XCHARSET_ENCODING_TABLE): Delete.
4299         (charset_code_point): New interface.
4300
4301 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4302
4303         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
4304         instead of `charset_get_byte1' and `charset_get_byte2'.
4305
4306         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
4307         (charset_get_byte2): Deleted.
4308
4309 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4310
4311         * char-ucs.h (SPLIT_CHAR): New inline function.
4312         (breakup_char_1): Use `SPLIT_CHAR'.
4313
4314         * mule-charset.c (range_charset_code_point): New function.
4315         (charset_code_point): New function.
4316
4317         * char-ucs.h (range_charset_code_point): New interface.
4318         (breakup_char_1): Use `range_charset_code_point'.
4319
4320 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4321
4322         * mule-charset.c (Fmake_charset): Delete unused local variable
4323         `code_offset'.
4324
4325         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
4326         (breakup_char_1): Find a charset and code-point in
4327         `Vcharacter_attribute_table'.
4328
4329 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4330
4331         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4332         to 0.10 (Yao).
4333
4334 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
4335
4336         * mule-charset.c (Vcharacter_attribute_table): New variable.
4337         (Fchar_attribute_alist): New function.
4338         (Fget_char_attribute): New function.
4339         (Fput_char_attribute): New function.
4340         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
4341         too.
4342         (syms_of_mule_charset): Add new function `char-attribute-alist',
4343         `get-char-attribute' and `put-char-attribute'.
4344         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
4345
4346 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
4347
4348         * mule-charset.c (Fmake_charset): Just use
4349         `get_unallocated_leading_byte'.
4350
4351         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
4352         sets; don't use final-byte based number for private sets.
4353
4354 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4355
4356         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
4357         integer.
4358
4359 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4360
4361         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4362         to 0.9.
4363
4364 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4365
4366         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
4367         of `CHAR_LEADING_BYTE' in UTF-2000.
4368
4369         * insdel.c (find_charsets_in_bufbyte_string): Use
4370         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
4371         (find_charsets_in_emchar_string): Likewise.
4372
4373         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
4374         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
4375
4376         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
4377         (CHAR_CHARSET_ID): New macro.
4378
4379 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4380
4381         * chartab.c (get_char_table): Don't use type `Charset_ID' for
4382         charset-id - MIN_LEADING_BYTE.
4383         (put_char_table): Likewise.
4384
4385 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4386
4387         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
4388         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
4389         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
4390         (CHARSET_ID_OFFSET): New macro.
4391         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
4392         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
4393         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
4394         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
4395         4).
4396         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
4397         5).
4398         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
4399         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
4400         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
4401         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
4402         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
4403
4404 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4405
4406         * mule-charset.c (next_allocated_leading_byte): New variable in
4407         UTF-2000.
4408         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
4409         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
4410         (get_unallocated_leading_byte): Simply use
4411         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
4412         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
4413         UTF-2000.
4414
4415         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
4416         (MAX_LEADING_BYTE_PRIVATE): New macro.
4417         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
4418         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
4419
4420 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4421
4422         * mule-charset.c (Fmake_charset): Allocate final-byte based
4423         charset-id for 94-set, 96-set and 94x94-set.
4424
4425 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4426
4427         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
4428         ambiguous `else'.
4429         (Fmake_charset): Likewise.
4430         (complex_vars_of_mule_charset): Modify the font registry of
4431         `ucs-bmp' not to match `Ethiopic-Unicode'.
4432
4433 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4434
4435         * mule-charset.c (complex_vars_of_mule_charset): Add font
4436         registory of `ucs-bmp'.
4437
4438 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4439
4440         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
4441         coded-charsets in `default-coded-charset-priority-list' when
4442         breaking up a character.
4443
4444         * mule-charset.c (Vcharset_latin_viscii): New variable.
4445         (Qlatin_viscii): New variable.
4446         (make_charset): Don't use `decoding_table'.
4447         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
4448         byte_offset.
4449         (Fset_charset_mapping_table): New implementation.
4450         (syms_of_mule_charset): Add new symbol `latin-viscii'.
4451         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
4452         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
4453         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
4454         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
4455         charset `latin_viscii'.
4456
4457         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
4458         (CHARSET_TYPE_94X94): Change to 1 from 2.
4459         (CHARSET_TYPE_96): Change to 2 from 1.
4460         (CHARSET_TYPE_128): New macro.
4461         (CHARSET_TYPE_128X128): Change to 5 from 4.
4462         (CHARSET_TYPE_256): New macro.
4463         (CHARSET_TYPE_256X256): Change to 7 from 5.
4464         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
4465
4466 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4467
4468         * text-coding.c (char_encode_shift_jis): Refer
4469         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
4470         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
4471
4472         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
4473         (char_byte_table_equal): New function in UTF-2000.
4474         (char_byte_table_hash): New function in UTF-2000.
4475         (char_byte_table_description): New constant in UTF-2000.
4476         (char_byte_table): New type in UTF-2000.
4477         (make_char_byte_table): New function in UTF-2000.
4478         (copy_char_byte_table): New function in UTF-2000.
4479         (make_char_code_table): New macro in UTF-2000.
4480         (get_char_code_table): New function in UTF-2000.
4481         (put_char_code_table): New function in UTF-2000.
4482         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
4483         (charset_description): Add setting in UTF-2000.
4484         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
4485         `CHARSET_TO_BYTE1_TABLE(cs)'.
4486         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
4487         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
4488         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
4489         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
4490         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
4491         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
4492         `CHARSET_TO_BYTE2_TABLE(cs)'.
4493
4494         * char-ucs.h (char_byte_table): New type.
4495         (XCHAR_BYTE_TABLE): New macro.
4496         (XSETCHAR_BYTE_TABLE): New macro.
4497         (CHAR_BYTE_TABLE_P): New macro.
4498         (GC_CHAR_BYTE_TABLE_P): New macro.
4499         (struct Lisp_Char_Byte_Table): New structure.
4500         (get_char_code_table): New interface.
4501         (Emchar_to_byte_table): Deleted.
4502         (get_byte_from_character_table): Deleted.
4503         (struct Lisp_Charset): Add `encoding_table'; delete
4504         `to_byte1_table' and `to_byte2_table'.
4505         (CHARSET_ENCODING_TABLE): New macro.
4506         (CHARSET_TO_BYTE1_TABLE): Deleted.
4507         (CHARSET_TO_BYTE2_TABLE): Deleted.
4508         (XCHARSET_ENCODING_TABLE): New macro.
4509         (XCHARSET_TO_BYTE1_TABLE): Deleted.
4510         (XCHARSET_TO_BYTE2_TABLE): Deleted.
4511
4512 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4513
4514         * mule-charset.c (syms_of_mule_charset): Delete charset alias
4515         `vietnamese-viscii-*'.
4516
4517 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4518
4519         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
4520         (Qvietnamese_viscii_upper): New variable.
4521         (Fdefine_charset_alias): New function.
4522         (syms_of_mule_charset): Add new function `define-charset-alias'.
4523         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
4524         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
4525         `latin-viscii-*'.
4526
4527 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
4528
4529         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
4530         (MAX_CHAR_OBS_94x94): New macro.
4531         (breakup_char_1): Support obsolete XEmacs-UCS private code space
4532         for 94x94 sets.
4533
4534         * mule-charset.c (put_byte_from_character_table): Change unit size
4535         from 128 to 256.
4536         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
4537         not defined.
4538         (Fmake_reverse_direction_charset): Modify dummy argument of
4539         `make_charset' for non-UTF-2000 environment.
4540
4541 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4542
4543         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
4544
4545         * mule-charset.c (destroy_byte_from_character_table): New macro.
4546         (latin_jisx0201_to_ucs): Deleted.
4547         (latin_iso8859_2_to_ucs): Deleted.
4548         (latin_iso8859_3_to_ucs): Deleted.
4549         (latin_iso8859_4_to_ucs): Deleted.
4550         (latin_iso8859_9_to_ucs): Deleted.
4551         (latin_viscii_lower_to_ucs): Deleted.
4552         (latin_viscii_upper_to_ucs): Deleted.
4553         (mark_charset): Mark `cs->decoding_table'.
4554         (Fcharset_mapping_table): Fix DOC-string.
4555         (Fset_charset_mapping_table): New function.
4556         (syms_of_mule_charset): Add nwe function
4557         `set-charset-mapping-table'.
4558         (complex_vars_of_mule_charset): Don't setup and use
4559         `latin_*_to_ucs'.
4560
4561 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4562
4563         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
4564         charset.
4565
4566 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4567
4568         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
4569         (Vcharset_katakana_jisx0208): New variable.
4570         (Qhiragana_jisx0208): New variable.
4571         (Qkatakana_jisx0208): New variable.
4572         (make_charset): Add new argument `byte_offset'.
4573         (charset_get_byte1): Modify for new coded-charset definition; use
4574         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
4575         `XCHARSET_BYTE_OFFSET'.
4576         (Fmake_charset): Modify for `make_charset'.
4577         (Fmake_reverse_direction_charset): Likewise.
4578         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
4579         `katakana-jisx0208'.
4580         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
4581         `.'  in font registry of charset `katakana-jisx0201',
4582         `latin-jisx0201', `vietnamese-viscii-lower' and
4583         `vietnamese-viscii-upper'; modify DOC-string of charset
4584         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
4585         registry of charset `japanese-jisx0208' not to use font for JIS
4586         X0208:1990; add new charset `hiragana-jisx0208' and
4587         `katakana-jisx0208'.
4588
4589         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
4590         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
4591         (struct Lisp_Charset): Add `byte_offset'.
4592         (CHARSET_BYTE_OFFSET): New macro.
4593         (XCHARSET_UCS_MIN): New macro.
4594         (XCHARSET_UCS_MAX): New macro.
4595         (XCHARSET_CODE_OFFSET): New macro.
4596         (XCHARSET_BYTE_OFFSET): New macro.
4597         (MIN_CHAR_HIRAGANA): New macro.
4598         (MAX_CHAR_HIRAGANA): New macro.
4599         (MIN_CHAR_KATAKANA): New macro.
4600         (MAX_CHAR_KATAKANA): New macro.
4601         (MAKE_CHAR): Modify for new coded-charset definition; use
4602         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
4603         `XCHARSET_BYTE_OFFSET'.
4604
4605 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4606
4607         * mule-charset.c (CHAR96): Deleted.
4608         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
4609         <Lisp_Object>.
4610         (latin_iso8859_2_to_ucs): Likewise.
4611         (latin_iso8859_3_to_ucs): Likewise.
4612         (latin_iso8859_4_to_ucs): Likewise.
4613         (latin_iso8859_9_to_ucs): Likewise.
4614         (latin_viscii_lower_to_ucs): Likewise.
4615         (latin_viscii_upper_to_ucs): Likewise.
4616         (latin_tcvn5712_to_ucs): Commented out.
4617         (make_charset): Change type of argument `decoding_table' from
4618         <Emchar*> to <Lisp_Object> [vector of characters].
4619         (Fmake_charset): Modify for `make_charset'.
4620         (Fmake_reverse_direction_charset): Likewise.
4621         (Fcharset_mapping_table): New function in UTF-2000.
4622         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
4623         UTF-2000.
4624         (complex_vars_of_mule_charset): Modify for type change of
4625         `*_to_ucs'; modify for `make_charset'.
4626
4627         * char-ucs.h (struct Lisp_Charset): Change type of
4628         `decoding_table' from <Emchar*> to <Lisp_Object>.
4629         (MAKE_CHAR): Modify for new specification of `decoding_table'.
4630
4631 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
4632
4633         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
4634         error with non-UTF-2000-Mule.
4635
4636 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
4637
4638         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
4639         in lisp again].
4640         (Vcharset_chinese_cns11643_4): Likewise.
4641         (Vcharset_chinese_cns11643_5): Likewise.
4642         (Vcharset_chinese_cns11643_6): Likewise.
4643         (Vcharset_chinese_cns11643_7): Likewise.
4644         (Qchinese_cns11643_3): Likewise.
4645         (Qchinese_cns11643_4): Likewise.
4646         (Qchinese_cns11643_5): Likewise.
4647         (Qchinese_cns11643_6): Likewise.
4648         (Qchinese_cns11643_7): Likewise.
4649         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
4650         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
4651         and `chinese-cns11643-7' to lisp/mule/chinese.el.
4652         (complex_vars_of_mule_charset): Likewise.
4653
4654 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4655
4656         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
4657         96-set.
4658         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
4659         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
4660
4661 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4662
4663         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
4664         0xFF60.
4665         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
4666         (breakup_char_1): Likewise.
4667
4668         * text-coding.c (char_encode_iso2022): Keep designated charsets if
4669         one of them includes the specified character.
4670
4671 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4672
4673         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
4674
4675 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4676
4677         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
4678
4679 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4680
4681         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
4682         definition for non-UTF-2000 Mule.
4683         (latin_iso8859_3_to_ucs): Likewise.
4684         (latin_iso8859_4_to_ucs): Likewise.
4685         (latin_iso8859_9_to_ucs): Likewise.
4686         (latin_jisx0201_to_ucs): Likewise.
4687         (MIN_CHAR_THAI): Likewise.
4688         (MAX_CHAR_THAI): Likewise.
4689         (MIN_CHAR_GREEK): Likewise.
4690         (MAX_CHAR_GREEK): Likewise.
4691         (MIN_CHAR_HEBREW): Likewise.
4692         (MAX_CHAR_HEBREW): Likewise.
4693         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
4694         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
4695         (MIN_CHAR_CYRILLIC): Likewise.
4696         (MAX_CHAR_CYRILLIC): Likewise.
4697
4698 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4699
4700         * char-ucs.h (breakup_char_1): Use
4701         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
4702         thai-tis620 and katakana-jisx0201 area.
4703
4704 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4705
4706         * char-ucs.h (breakup_char_1): Use
4707         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
4708         area.
4709
4710         * text-coding.c (reset_encoding_stream): Fixed.
4711         (char_encode_ucs4): Delete `& 255'.
4712
4713         * char-ucs.h (breakup_char_1): Use
4714         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
4715
4716 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4717
4718         * file-coding.c (Fmake_coding_system): Don't set up
4719         `codesys->fixed.size'.
4720         (encode_coding_no_conversion): Don't refer
4721         `str->codesys->fixed.size'.
4722
4723 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4724
4725         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
4726         (latin_a_char_to_byte1): Deleted.
4727         (latin_a_char_to_byte2): Deleted.
4728
4729 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4730
4731         * mule-charset.c (make_charset): Add new argument `ucs_min',
4732         `ucs_max' and `code_offset'.
4733         (charset_get_byte1): New implementation [delete specific charset
4734         depended implementations].
4735         (Fmake_charset): Modify for `make_charset'.
4736         (Fmake_reverse_direction_charset): Likewise.
4737         (complex_vars_of_mule_charset): Likewise.
4738
4739         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
4740         `code_offset'.
4741         (CHARSET_UCS_MIN): New macro.
4742         (CHARSET_UCS_MAX): New macro.
4743         (CHARSET_CODE_OFFSET): New macro.
4744         (MAKE_CHAR): Delete charset depended definitions [except
4745         katakana-jisx0201].
4746
4747 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
4748
4749         * char-ucs.h (breakup_char_1): Use
4750         `Vdefault_coded_charset_priority_list' for C0-Controls,
4751         Basic-Latin, C1-Controls and Latin-1-Supplement area.
4752
4753 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4754
4755         * char-ucs.h (charset_get_byte1): New function.
4756         (XCHARSET_GET_BYTE1): Deleted.
4757         (charset_get_byte2): New function.
4758         (XCHARSET_GET_BYTE2): Deleted.
4759         (Vdefault_coded_charset_priority_list): New external variable.
4760         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
4761         `Vdefault_preferred_coded_charset_list'.
4762
4763         * mule-charset.c (charset_get_byte1): New function.
4764         (charset_get_byte2): New function.
4765         (Vdefault_coded_charset_priority_list): New variable.
4766         (vars_of_mule_charset): Add new variable
4767         `default-coded-charset-priority-list'.
4768
4769 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4770
4771         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
4772         (XCHARSET_GET_BYTE2): New inline function.
4773         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
4774         `XCHARSET_GET_BYTE2'.
4775
4776 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4777
4778         * mule-charset.c (make_charset): Initialize
4779         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
4780         NULL if table is not defined.
4781
4782 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4783
4784         * text-coding.c (char_encode_shift_jis): Use
4785         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
4786         `ucs_to_latin_jisx0201'.
4787
4788         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
4789         (ucs_to_latin_iso8859_2): Deleted.
4790         (ucs_to_latin_iso8859_3): Deleted.
4791         (ucs_to_latin_iso8859_4): Deleted.
4792         (ucs_to_latin_iso8859_9): Deleted.
4793         (ucs_to_latin_viscii_lower): Deleted.
4794         (ucs_to_latin_viscii_upper): Deleted.
4795         (ucs_to_latin_tcvn5712): Deleted.
4796         (make_charset): Add new argument `decoding_table'; set up
4797         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
4798         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
4799         `decoding_table' is defined in UTF-2000.
4800         (Fmake_charset): Modify for `make_charset'.
4801         (Fmake_reverse_direction_charset): Likewise.
4802         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
4803         and `GENERATE_96_SET'.
4804
4805         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
4806         (ucs_to_latin_jisx0201): Deleted.
4807         (latin_iso8859_2_to_ucs): Deleted.
4808         (ucs_to_latin_iso8859_2): Deleted.
4809         (latin_iso8859_3_to_ucs): Deleted.
4810         (ucs_to_latin_iso8859_3): Deleted.
4811         (latin_iso8859_4_to_ucs): Deleted.
4812         (ucs_to_latin_iso8859_4): Deleted.
4813         (latin_iso8859_9_to_ucs): Deleted.
4814         (ucs_to_latin_iso8859_9): Deleted.
4815         (latin_viscii_lower_to_ucs): Deleted.
4816         (ucs_to_latin_viscii_lower): Deleted.
4817         (latin_viscii_upper_to_ucs): Deleted.
4818         (ucs_to_latin_viscii_upper): Deleted.
4819         (struct Lisp_Charset): Renamed `encoding_table' to
4820         `to_byte1_table'; add `to_byte2_table'.
4821         (CHARSET_DECODING_TABLE): New macro.
4822         (CHARSET_TO_BYTE1_TABLE): New macro.
4823         (CHARSET_TO_BYTE2_TABLE): New macro.
4824         (XCHARSET_DECODING_TABLE): New macro.
4825         (XCHARSET_TO_BYTE1_TABLE): New macro.
4826         (XCHARSET_TO_BYTE2_TABLE): New macro.
4827         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
4828         tables.
4829         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
4830         don't use `ucs_to_*' tables.
4831
4832 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4833
4834         * text-coding.c (Fmake_coding_system): Don't set up
4835         `codesys->fixed.size'.
4836         (encode_coding_no_conversion): Use `if' instead of `switch'.
4837
4838         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
4839
4840 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4841
4842         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
4843         (Fmake_charset): Modify for `make_charset'.
4844         (Fmake_reverse_direction_charset): Likewise.
4845         (complex_vars_of_mule_charset): Likewise.
4846
4847 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4848
4849         * text-coding.c (char_encode_shift_jis): Use table
4850         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
4851
4852 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4853
4854         * text-coding.c (text_encode_generic): Use `if' instead of
4855         `switch'.
4856         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
4857         decode JIS-Latin.
4858
4859 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4860
4861         * text-coding.c (encode_coding_sjis): Deleted.
4862         (char_encode_shift_jis): New function.
4863         (char_finish_shift_jis): New function.
4864         (reset_encoding_stream): Set up `encode_char' and `finish' for
4865         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
4866         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
4867         (char_encode_utf8): Treat `eol_type'.
4868
4869 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4870
4871         * file-coding.c (decode_coding_iso2022): Use
4872         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
4873
4874 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4875
4876         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4877         to 0.7 (Hirano).
4878
4879 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4880
4881         * char-lb.h (CHAR_COLUMNS): New macro.
4882
4883 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4884
4885         * text-coding.c (char_encode_ucs4): New function.
4886         (char_finish_ucs4): New function.
4887         (encode_coding_ucs4): Deleted.
4888         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
4889         (text_encode_generic): Delete local variable `charset' and `half'.
4890         (ucs_to_mule_table): Deleted.
4891         (mule_to_ucs_table): Deleted.
4892         (Fset_ucs_char): Deleted.
4893         (ucs_to_char): Deleted.
4894         (Fucs_char): Deleted.
4895         (Fset_char_ucs): Deleted.
4896         (Fchar_ucs): Deleted.
4897         (decode_ucs4): Deleted.
4898         (mule_char_to_ucs4): Deleted.
4899         (encode_ucs4): Deleted.
4900         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
4901         (decode_coding_utf8): Likewise.
4902         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
4903         (char_encode_iso2022): Fixed.
4904         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
4905         `Fset_char_ucs' and `Fchar_ucs'.
4906         (complex_vars_of_file_coding): Don't initialize
4907         `ucs_to_mule_table'.
4908
4909         * objects-tty.c (tty_initialize_font_instance): Don't use
4910         `XCHARSET_COLUMNS'.
4911
4912         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
4913         UTF-2000.
4914
4915         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
4916         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4917
4918         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
4919         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4920         (emchar_string_displayed_columns): Likewise.
4921
4922         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
4923         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4924         (string_column_at_point): Likewise.
4925         (Fmove_to_column): Likewise.
4926
4927         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
4928         `encoding_table' and `decoding_table'.
4929         (CHARSET_REP_BYTES): Deleted.
4930         (XCHARSET_REP_BYTES): Deleted.
4931         (XCHARSET_COLUMNS): Deleted.
4932         (CHAR_COLUMNS): New macro.
4933         (lookup_composite_char): Deleted unconditionally.
4934         (composite_char_string): Likewise.
4935
4936 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4937
4938         * char-ucs.h (Emchar_to_byte_table): New type.
4939         (get_byte_from_character_table): New function interface.
4940         (Vcharset_latin_jisx0201): New variable.
4941         (latin_jisx0201_to_ucs): New variable.
4942         (ucs_to_latin_jisx0201): New variable.
4943         (Vcharset_latin_iso8859_2): New variable.
4944         (latin_iso8859_2_to_ucs): New variable.
4945         (ucs_to_latin_iso8859_2): New variable.
4946         (Vcharset_latin_iso8859_3): New variable.
4947         (latin_iso8859_3_to_ucs): New variable.
4948         (ucs_to_latin_iso8859_3): New variable.
4949         (Vcharset_latin_iso8859_4): New variable.
4950         (latin_iso8859_4_to_ucs): New variable.
4951         (ucs_to_latin_iso8859_4): New variable.
4952         (Vcharset_latin_iso8859_9): New variable.
4953         (latin_iso8859_9_to_ucs): New variable.
4954         (ucs_to_latin_iso8859_9): New variable.
4955         (Vcharset_latin_viscii_lower): New variable.
4956         (latin_viscii_lower_to_ucs): New variable.
4957         (ucs_to_latin_viscii_lower): New variable.
4958         (Vcharset_latin_viscii_upper): New variable.
4959         (latin_viscii_upper_to_ucs): New variable.
4960         (ucs_to_latin_viscii_upper): New variable.
4961         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
4962         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
4963         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
4964         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
4965         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
4966         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
4967         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
4968         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
4969         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
4970         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
4971
4972         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
4973         (Vcharset_latin_viscii_upper): New variable.
4974         (make_byte_from_character_table): New function.
4975         (put_byte_from_character_table): New function.
4976         (get_byte_from_character_table): New function.
4977         (CHAR96): New macro.
4978         (ucs_to_latin_jisx0201): New variable.
4979         (latin_jisx0201_to_ucs): New variable.
4980         (ucs_to_latin_iso8859_2): New variable.
4981         (latin_iso8859_2_to_ucs): New variable.
4982         (ucs_to_latin_iso8859_3): New variable.
4983         (latin_iso8859_3_to_ucs): New variable.
4984         (ucs_to_latin_iso8859_4): New variable.
4985         (latin_iso8859_4_to_ucs): New variable.
4986         (ucs_to_latin_iso8859_9): New variable.
4987         (latin_iso8859_9_to_ucs): New variable.
4988         (ucs_to_latin_viscii_lower): New variable.
4989         (latin_viscii_lower_to_ucs): New variable.
4990         (ucs_to_latin_viscii_upper): New variable.
4991         (latin_viscii_upper_to_ucs): New variable.
4992         (ucs_to_latin_tcvn5712): New variable.
4993         (latin_tcvn5712_to_ucs): New variable.
4994         (Qlatin_viscii_lower): New variable.
4995         (Qlatin_viscii_upper): New variable.
4996         (syms_of_mule_charset): Set up new symbol
4997         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
4998         (complex_vars_of_mule_charset): Set up new charset
4999         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
5000         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
5001         `ucs_to_<CHARSET>' tables.
5002
5003 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
5004
5005         * text-coding.c: New file.
5006
5007 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
5008
5009         * mule-charset.c (Fmake_char): Fix problem of 256-set.
5010
5011         * char-ucs.h (Vcharset_ucs_bmp): New variable.
5012         (MAKE_CHAR): Modify for `ucs-bmp'.
5013         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
5014         non-MULE characters of BMP.
5015
5016 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
5017
5018         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
5019         to 0.6.
5020
5021 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5022
5023         * lstream.h:
5024         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
5025         - Include character.h for `CHAR_ASCII_P'.
5026
5027         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
5028
5029         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
5030         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
5031
5032         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
5033         (BYTE_C0_P): Likewise.
5034         (BYTE_C1_P): Likewise.
5035         (Lstream_get_emchar_1): Likewise.
5036         (Lstream_fput_emchar): Likewise.
5037         (Lstream_funget_emchar): Likewise.
5038         (copy_internal_to_external): Likewise.
5039         (copy_external_to_internal): Likewise.
5040
5041         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
5042         (BYTE_C0_P): Likewise.
5043         (BYTE_C1_P): Likewise.
5044         (Lstream_get_emchar_1): Likewise.
5045         (Lstream_fput_emchar): Likewise.
5046         (Lstream_funget_emchar): Likewise.
5047         (copy_internal_to_external): Likewise.
5048         (copy_external_to_internal): Likewise.
5049
5050         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
5051         (REP_BYTES_BY_FIRST_BYTE): Likewise.
5052
5053         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
5054         (BYTE_ASCII_P): Moved to mb-1byte.h.
5055
5056 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5057
5058         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
5059
5060         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
5061         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
5062         (VALID_CHARPTR_P): Moved to mb-*byte.h.
5063         (VALIDATE_CHARPTR_BACKWARD): Likewise.
5064         (VALIDATE_CHARPTR_FORWARD): Likewise.
5065         (simple_charptr_emchar): Moved to mb-multibyte.h.
5066         (simple_set_charptr_emchar): Likewise.
5067         (simple_charptr_copy_char): Likewise.
5068         (non_ascii_charptr_emchar): Likewise.
5069         (non_ascii_set_charptr_emchar): Likewise.
5070         (non_ascii_charptr_copy_char): Likewise.
5071         (charptr_emchar): Moved to mb-*byte.h.
5072         (set_charptr_emchar): Likewise.
5073         (charptr_copy_char): Likewise.
5074
5075         * mb-1byte.h, mb-multibyte.h: New files.
5076
5077 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5078
5079         * mb-utf-8.h (MULTIBYTE): New macro.
5080         (MAX_EMCHAR_LEN): Moved from buffer.h.
5081         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
5082
5083         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
5084
5085         * mb-lb.h, multibyte.h: New files.
5086
5087         * char-1byte.h (Charset_ID): Moved from buffer.h.
5088         (MIN_LEADING_BYTE): Likewise.
5089         (LEADING_BYTE_ASCII): Likewise.
5090         (NUM_LEADING_BYTES): Likewise.
5091         (CHARSETP): Likewise.
5092         (CHARSET_BY_LEADING_BYTE): Likewise.
5093         (XCHARSET_LEADING_BYTE): Likewise.
5094         (XCHARSET_GRAPHIC): Likewise.
5095         (XCHARSET_COLUMNS): Likewise.
5096         (XCHARSET_DIMENSION): Likewise.
5097         (CHAR_CHARSET): Likewise.
5098         (CHAR_LEADING_BYTE): Likewise.
5099         (BREAKUP_CHAR): Likewise.
5100         (Vcharset_ascii): Likewise.
5101
5102         * buffer.h: Include multibyte.h unconditionally.
5103         (VALID_CHARPTR_P): Moved to multibyte.h.
5104         (ASSERT_VALID_CHARPTR): Likewise.
5105         (REAL_INC_CHARPTR): Likewise.
5106         (REAL_INC_CHARBYTIND): Likewise.
5107         (REAL_DEC_CHARPTR): Likewise.
5108         (INC_CHARPTR): Likewise.
5109         (INC_CHARBYTIND): Likewise.
5110         (DEC_CHARPTR): Likewise.
5111         (VALIDATE_CHARPTR_BACKWARD): Likewise.
5112         (VALIDATE_CHARPTR_FORWARD): Likewise.
5113         (charptr_n_addr): Likewise.
5114         (MAX_EMCHAR_LEN): Moved to mb-*.h.
5115         (simple_charptr_emchar): Moved to multibyte.h.
5116         (simple_set_charptr_emchar): Likewise.
5117         (simple_charptr_copy_char): Likewise.
5118         (non_ascii_charptr_emchar): Likewise.
5119         (non_ascii_set_charptr_emchar): Likewise.
5120         (non_ascii_charptr_copy_char): Likewise.
5121         (charptr_emchar): Likewise.
5122         (set_charptr_emchar): Likewise.
5123         (charptr_copy_char): Likewise.
5124         (charptr_emchar_n): Likewise.
5125         (Charset_ID): Moved to char-1byte.h.
5126         (Vcharset_ascii): Likewise.
5127         (CHAR_CHARSET): Likewise.
5128         (CHAR_LEADING_BYTE): Likewise.
5129         (LEADING_BYTE_ASCII): Likewise.
5130         (NUM_LEADING_BYTES): Likewise.
5131         (MIN_LEADING_BYTE): Likewise.
5132         (CHARSETP): Likewise.
5133         (CHARSET_BY_LEADING_BYTE): Likewise.
5134         (XCHARSET_LEADING_BYTE): Likewise.
5135         (XCHARSET_GRAPHIC): Likewise.
5136         (XCHARSET_COLUMNS): Likewise.
5137         (XCHARSET_DIMENSION): Likewise.
5138         (BREAKUP_CHAR): Likewise.
5139
5140 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5141
5142         * character.h: Add document about interface for characters.
5143
5144         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
5145         (MAKE_CHAR): Delete comment about
5146         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
5147         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
5148         (BREAKUP_CHAR): Modify name of arguments.
5149         (CHAR_CHARSET): Modify name of argument.
5150
5151         * buffer.h: Delete document about Emchar accessors.
5152
5153 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5154
5155         * character.h (CHAR_INTP): Moved from buffer.h
5156         (CHAR_OR_CHAR_INTP): Likewise.
5157         (XCHAR_OR_CHAR_INT): Likewise.
5158         (CHECK_CHAR_COERCE_INT): Likewise.
5159
5160         * buffer.h (CHAR_INTP): Moved to character.h
5161         (CHAR_OR_CHAR_INTP): Likewise.
5162         (XCHAR_OR_CHAR_INT): Likewise.
5163         (CHECK_CHAR_COERCE_INT): Likewise.
5164
5165 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5166
5167         * character.h:
5168         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
5169         - Include char-1byte.h, char-lb.h or char-ucs.h.
5170
5171         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
5172
5173         * buffer.h: Include character unconditionally.
5174         (valid_char_p): Moved to char-*.h.
5175         (non_ascii_valid_char_p): Moved to char-lb.h.
5176
5177         * char-1byte.h, char-lb.h, char-ucs.h: New files.
5178
5179 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5180
5181         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
5182         in UTF-2000 because it is not ported yet and not to use
5183         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
5184         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
5185         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
5186
5187         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
5188         (CHAR_ASCII_P): Moved from character.h.
5189
5190         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
5191         (CHAR_ASCII_P): Likewise.
5192         (CHAR_FIELD1_MASK): Deleted.
5193         (CHAR_FIELD2_MASK): Deleted.
5194         (CHAR_FIELD3_MASK): Deleted.
5195         (MAX_CHAR_BASIC_LATIN): New macro.
5196         (CHAR_FIELD1): Deleted.
5197         (CHAR_FIELD2_INTERNAL): Deleted.
5198         (CHAR_FIELD3_INTERNAL): Deleted.
5199         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
5200         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
5201         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
5202         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
5203         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
5204         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
5205         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
5206         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
5207         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
5208         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
5209         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
5210         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
5211         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
5212         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
5213         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
5214         (MIN_CHAR_COMPOSITION): Deleted.
5215         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
5216         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
5217
5218 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
5219
5220         * buffer.h: Include mb-utf-8.h in UTF-2000.
5221
5222         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
5223
5224         * mb-utf-8.h: New file.
5225
5226 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
5227
5228         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
5229         instead of `int'.
5230
5231         * mule-charset.h, buffer.h (Charset_ID): New type.
5232
5233 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
5234
5235         * mule-canna.c (c2mu): Use `MAKE_CHAR',
5236         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
5237         instead of `MULE_CHAR_PRIVATE_OFFSET',
5238         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
5239         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
5240         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
5241
5242         * character.h (Vcharset_japanese_jisx0212): New variable
5243         definition.
5244
5245 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
5246
5247         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
5248         (charset_by_attributes): Delete array about direction.
5249         (latin_a_char_to_charset): New variable in UTF-2000.
5250         (latin_a_char_to_byte1): New variable in UTF-2000.
5251         (latin_a_char_to_byte2): New variable in UTF-2000.
5252         (Qucs_bmp): New variable.
5253         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
5254         `Bufbyte'.
5255         (next_allocated_2_byte_leading_byte): Likewise.
5256         (non_ascii_set_charptr_emchar): Likewise.
5257         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
5258         `CHARSET_TYPE_256X256' in UTF-2000; modify for
5259         `charset_by_attributes'.
5260         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
5261         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
5262         and `CHARSET_BY_LEADING_BYTE'.
5263         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
5264         `utf-2000-version' to `vars_of_mule_charset'.
5265         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
5266         define `leading-code-private-11' in UTF-2000; move setting of
5267         `utf-2000-version' from `syms_of_mule_charset'.
5268         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
5269         UTF-2000.
5270
5271         * character.h (Charset_ID): New type.
5272         (LEADING_BYTE_UCS_BMP): New macro.
5273         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
5274         (CHARSET_ID_OFFSET_94): New macro.
5275         (MIN_CHARSET_ID_PRIVATE_94): New macro.
5276         (MAX_CHARSET_ID_PRIVATE_94): New macro.
5277         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
5278         final-byte.
5279         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
5280         (LEADING_BYTE_LATIN_JISX0201): Likewise.
5281         (CHARSET_ID_OFFSET_96): New macro.
5282         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
5283         CHARSET_ID_OFFSET_96 and final-byte.
5284         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
5285         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
5286         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
5287         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
5288         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
5289         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
5290         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
5291         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
5292         (LEADING_BYTE_THAI_TIS620): Likewise.
5293         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
5294         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
5295         (CHARSET_ID_OFFSET_94x94): New macro.
5296         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
5297         CHARSET_ID_OFFSET_94x94 and final-byte.
5298         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
5299         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
5300         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
5301         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
5302         (LEADING_BYTE_CHINESE_GB2312): Likewise.
5303         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
5304         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
5305         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
5306         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
5307         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
5308         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
5309         (CHARSET_TYPE_128X128): New macro.
5310         (CHARSET_TYPE_256X256): New macro.
5311         (XCHARSET_PRIVATE_P): Delete unconditionally.
5312         (charset_by_attributes): Delete array about direction.
5313         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
5314         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
5315         (MIN_CHAR_94): New macro.
5316         (MAX_CHAR_94): New macro.
5317         (MIN_CHAR_96): New macro.
5318         (MAX_CHAR_96): New macro.
5319         (MIN_CHAR_94x94): New macro.
5320         (MAX_CHAR_94x94): New macro.
5321         (MIN_CHAR_96x96): New macro.
5322         (MAX_CHAR_96x96): New macro.
5323         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
5324         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
5325         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
5326         - 32)'.
5327         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
5328         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
5329         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
5330         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
5331         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
5332         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
5333         `XCHARSET_LEADING_BYTE' to make code-point.
5334         (latin_a_char_to_charset): New variable.
5335         (latin_a_char_to_byte1): New variable.
5336         (latin_a_char_to_byte2): New variable.
5337         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
5338         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
5339         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
5340
5341         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
5342         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
5343         (find_charsets_in_emchar_string): Likewise.
5344         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
5345
5346         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
5347         `int'.
5348         (decode_coding_iso2022): Likewise.
5349
5350         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
5351         of `unsigned char'.
5352
5353         * redisplay.c (redisplay_text_width_emchar_string): Use
5354         `Charset_ID' instead of `unsigned char'.
5355         (redisplay_frame_text_width_string): Likewise.
5356
5357         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
5358         `unsigned char'.
5359
5360         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
5361         instead of `unsigned char'.
5362         (face_cachel_charset_font_metric_info): Likewise.
5363
5364         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
5365         (get_non_ascii_char_table_value): Likewise.
5366         (get_char_table): Likewise.
5367         (put_char_table): Likewise.
5368         (map_over_other_charset): Likewise.
5369         (map_char_table): Likewise.
5370
5371         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
5372         instead of `unsigned char'.
5373
5374 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
5375
5376         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
5377         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
5378
5379         * mule-charset.c (leading_code_private_11): Don't define in
5380         UTF-2000.
5381
5382         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
5383         in UTF-2000 because it is not ported yet and not to use
5384         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
5385
5386 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
5387
5388         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
5389
5390 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
5391
5392         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
5393         in UTF-2000.
5394
5395         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
5396         of unsigned char to store leading-byte.
5397
5398         * chartab.c (get_non_ascii_char_table_value): Don't use
5399         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
5400
5401         * file-coding.c (encode_coding_big5): Delete bogus implementation
5402         in UTF2000.
5403
5404         * character.h (LEADING_BYTE_*): Delete definition for
5405         non-UTF-2000.
5406         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
5407         (LEADING_BYTE_PREFIX_P): Deleted.
5408         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
5409         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
5410         (BUFBYTE_LEADING_BYTE_P): Deleted.
5411         (CHARSET_PRIVATE_P): Deleted unconditionally.
5412         (rep_bytes_by_first_byte): Deleted unconditionally.
5413         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
5414         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
5415         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
5416         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
5417         (CHAR_FIELD2): Deleted.
5418         (CHAR_FIELD3): Deleted.
5419         (MAKE_CHAR): Delete definition for non-UTF-2000.
5420         (BREAKUP_CHAR_1_UNSAFE): Deleted.
5421         (breakup_char_1): New implementation.
5422         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
5423         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
5424
5425 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
5426
5427         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
5428         condition.
5429
5430 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
5431
5432         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
5433         (CHARSET_PRIVATE_P): Likewise.
5434         (XCHARSET_PRIVATE_P): Likewise.
5435         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
5436
5437         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
5438         UTF2000.
5439         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
5440
5441 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
5442
5443         * character.h (LEADING_BYTE_*): Changed in UTF2000.
5444         (NUM_LEADING_BYTES): Changed from 128 to 256.
5445         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
5446         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
5447         UTF2000.
5448         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
5449
5450         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
5451         UTF2000.
5452         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
5453         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
5454         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
5455         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
5456         (Qchinese_cns11643_3): New variable in UTF2000.
5457         (Qchinese_cns11643_4): New variable in UTF2000.
5458         (Qchinese_cns11643_5): New variable in UTF2000.
5459         (Qchinese_cns11643_6): New variable in UTF2000.
5460         (Qchinese_cns11643_7): New variable in UTF2000.
5461         (syms_of_mule_charset): Define `chinese-cns11643-3',
5462         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
5463         and `chinese-cns11643-7' in UTF2000.
5464         (vars_of_mule_charset): Initialize
5465         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
5466         + 1 in UTF2000.
5467         (complex_vars_of_mule_charset): Setup charset
5468         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
5469         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
5470
5471 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5472
5473         * mule-charset.c: Move setting for `leading-code-private-11' from
5474         `syms_of_mule_charset' to `vars_of_mule_charset'.
5475
5476 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5477
5478         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
5479         and `NUM_LEADING_BYTES' in assert.
5480
5481 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5482
5483         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
5484         instead of 128.
5485         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
5486         `NUM_LEADING_BYTES' instead of 128.
5487
5488 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
5489
5490         * mule-charset.h (charset_by_leading_byte): Use
5491         `NUM_LEADING_BYTES' instead of 128.
5492         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
5493
5494         * mule-charset.c (charset_by_leading_byte): Use
5495         `NUM_LEADING_BYTES' instead of 128.
5496         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
5497
5498         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
5499         128.
5500
5501 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
5502
5503         * mule-charset.c (syms_of_mule_charset): Update to
5504         0.4 (Shin-Imamiya).
5505
5506 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
5507
5508         * file-coding.c (encode_coding_sjis): New implementation for
5509         UTF2000.  (decode_coding_sjis): Ditto.
5510
5511 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
5512
5513         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
5514         Don't define in UTF2000.
5515
5516         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
5517         defined.
5518
5519         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
5520         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
5521         MULE.
5522
5523 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
5524
5525         * config.h.in (CHAR_IS_UCS4): New macro.
5526
5527         * mule-charset.c (rep_bytes_by_first_byte): Modify for
5528         conventional MULE representation.
5529         (syms_of_mule_charset): Update to 0.3 (Imamiya).
5530
5531         * mule-charset.h: Reverted to original.
5532
5533         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
5534         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
5535         "mule-charset.h" if CHAR_IS_UCS4 is defined.
5536
5537         * character.h: New file.
5538
5539         * file-coding.c (Fmake_coding_system): Set 1 to
5540         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
5541         defined.
5542         (encode_coding_no_conversion): New implementation for UTF2000.
5543
5544         * file-coding.h (struct Lisp_Coding_System): Add new member
5545         `fixed.size'.
5546
5547 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
5548
5549         * file-coding.c (decode_coding_iso2022): Code-point arguments of
5550         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
5551         (encode_coding_iso2022): New implementation for UTF2000.
5552
5553 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5554
5555         * mule-canna.c (c2mu): New implementation for UTF2000.
5556         (m2c): Likewise.
5557
5558 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5559
5560         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
5561
5562 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5563
5564         * file-coding.c (reset_encoding_stream): Set 0 to
5565         `str->iso2022.current_char_boundary' in UTF2000.
5566         (encode_utf8): Don't define in UTF2000.
5567         (encode_coding_utf8): New implementation for UTF-8 representation
5568         of UTF2000.
5569         (complex_vars_of_file_coding): Define coding-system `utf-8'.
5570
5571 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5572
5573         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
5574
5575         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
5576         UTF2000.
5577         (REP_BYTES_BY_FIRST_BYTE): Likewise.
5578
5579         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
5580
5581         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
5582         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
5583         as UTF-8 in UTF2000.
5584         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
5585         (non_ascii_valid_char_p): Don't define in UTF2000.
5586         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
5587         (Lstream_get_emchar_1): Likewise.
5588         (utf-2000-version): New variable in UTF2000.
5589
5590         * lread.c (read_escape): Add new reader `u'.
5591
5592         * insdel.c (three_to_one_table): Don't define in UTF2000.
5593         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
5594         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
5595         UTF2000.
5596         (bytind_to_bufpos_func): Likewise.
5597         (buffer_mule_signal_inserted_region): Likewise.
5598         (vars_of_insdel): Don't initialize `three_to_one_table'.
5599         (init_buffer_text): Use `buf->text->mule_size' instead of
5600         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
5601         UTF2000.
5602
5603         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
5604         UTF-8 representation in UTF2000.
5605         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
5606         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
5607         (decode_coding_iso2022): Don't define local variable `lb' in
5608         UTF2000; don't use LEADING_BYTE in UTF2000; use
5609         `DECODE_ADD_UCS_CHAR' in UTF2000.
5610         (convert_to_external_format): Decode as UTF-8 in UTF2000.
5611
5612         * config.h.in (UTF2000): New macro.
5613
5614         * buffer.h (struct buffer_text): Add new member `mule_size' and
5615         don't add `mule_shifter' and `mule_three_p' in UTF2000.
5616         (valid_char_p): Return always 1 in UTF2000.
5617         (MAX_EMCHAR_LEN): 6 in UTF2000.
5618         (three_to_one_table): Don't define in UTF2000.
5619         (real_bufpos_to_bytind): Modify for UTF-8 representation in
5620         UTF2000.
5621         (real_bytind_to_bufpos): Likewise.
5622
5623         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
5624
5625 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5626
5627         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
5628         representation change.
5629         (Vutf_2000_version): New variable.
5630         (leading_code_private_11): New variable.
5631         (syms_of_mule_charset): Add new variables `utf-2000-version' and
5632         `leading-code-private-11'.
5633
5634         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
5635         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
5636         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
5637         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
5638         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
5639         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
5640         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
5641         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
5642         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
5643         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
5644         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
5645         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
5646         (MIN_CHAR_GREEK): New macro.
5647         (MAX_CHAR_GREEK): New macro.
5648         (MIN_CHAR_CYRILLIC): New macro.
5649         (MAX_CHAR_CYRILLIC): New macro.
5650         (MIN_CHAR_HEBREW): New macro.
5651         (MAX_CHAR_HEBREW): New macro.
5652         (MIN_CHAR_THAI): New macro.
5653         (MAX_CHAR_THAI): New macro.
5654         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
5655         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
5656         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
5657         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
5658         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
5659         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
5660         (CHAR_FIELD2): New inline function.
5661         (CHAR_FIELD3): New inline function.
5662         (MULE_CHAR_PRIVATE_OFFSET): New macro.
5663         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
5664         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
5665         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
5666         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
5667         (MIN_CHAR_COMPOSITION): Likewise.
5668         (CHAR_LEADING_BYTE): Modified for character representation change.
5669         (MAKE_CHAR): Likewise.
5670
5671         * lisp.h (Vcharset_latin_iso8859_1): New variable.
5672         (Vcharset_greek_iso8859_7): Likewise.
5673         (Vcharset_cyrillic_iso8859_5): Likewise.
5674         (Vcharset_hebrew_iso8859_8): Likewise.
5675         (Vcharset_thai_tis620): Likewise.
5676         (Vcharset_katakana_jisx0201): Likewise.
5677
5678 2005-02-06  Vin Shelton <acs@xemacs.org>
5679
5680         * XEmacs 21.4.17 is released
5681
5682 2005-01-31  Ben Wing  <ben@xemacs.org>
5683
5684         * emacs.c:
5685         Define assert_failed() always.
5686         * lisp.h:
5687         Always define ABORT().
5688
5689 2005-01-25  Ben Wing  <ben@xemacs.org>
5690
5691         * Makefile.in.in:
5692         * Makefile.in.in (%.o):
5693         Don't compile executable as Windows (-mwindows) under Cygwin.
5694         Semi-recent changes to Cygwin's executable-startup handling make
5695         it impossible to access the TTY this way.
5696
5697         Don't use special linker file under Cygwin (cygwin.sc) except
5698         when non-PDUMP (even in this case it is highly questionable); you
5699         get errors like
5700
5701       1 [main] temacs 1364 fhandler_console::fixup_after_exec: error opening input console handle after exec, errno 13, Win32 error 5
5702    5820 [main] temacs 1364 fhandler_console::fixup_after_exec: error opening output console handle after exec, errno 13, Win32 error 5
5703
5704 2005-01-29  Ben Wing  <ben@xemacs.org>
5705
5706         Port this: 2003-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
5707
5708         * mule-charset.c (get_unallocated_leading_byte): Compiler quietus.
5709
5710 2005-01-29  Ben Wing  <ben@xemacs.org>
5711
5712         * bytecode.c (optimize_compiled_function):
5713         * print.c (FROB):
5714         * print.c (long_to_string):
5715         Add casts to avoid warning.
5716         
5717         * glyphs-eimage.c:
5718         Some really nasty hacks to allow TIFF and JPEG to both be compiled.
5719         #### The better solution is to move the TIFF and JPEG code to
5720         different files.
5721         
5722         * glyphs-msw.c (mswindows_xbm_instantiate):
5723         Define __STDC__ to avoid problems with compface.h.
5724         
5725         * EmacsFrame.c (EmacsFrameRecomputeCellSize):
5726         * EmacsShell-sub.c:
5727         * EmacsShell-sub.c (ABORT):
5728         * EmacsShell-sub.c (SuperClassRootGeometryManager):
5729         * EmacsShell-sub.c (RootGeometryManager):
5730         * EmacsShell.c:
5731         * EmacsShell.c (ABORT):
5732         * EmacsShell.c (EmacsShellUpdateSizeHints):
5733         * alloc.c (free_lcrecord):
5734         * alloca.c (i00afunc):
5735         * buffer.c (delete_from_buffer_alist):
5736         * buffer.c (MARKED_SLOT):
5737         * bytecode.c (execute_rare_opcode):
5738         * bytecode.c (optimize_byte_code):
5739         * bytecode.c (Ffetch_bytecode):
5740         * chartab.c (char_table_type_to_symbol):
5741         * chartab.c (Freset_char_table):
5742         * chartab.c (decode_char_table_range):
5743         * chartab.c (Fget_range_char_table):
5744         * chartab.c (check_valid_char_table_value):
5745         * chartab.c (map_char_table):
5746         * chartab.c (slow_map_char_table_fun):
5747         * chartab.c (chartab_instantiate):
5748         * cm.c (cmcheckmagic):
5749         * console-msw.c (DHEADER):
5750         * console.c (MARKED_SLOT):
5751         * data.c (finish_marking_weak_lists):
5752         * data.c (encode_weak_list_type):
5753         * debug.h (DASSERT):
5754         * device-gtk.c (gtk_init_device):
5755         * device-msw.c (mswindows_get_default_margin):
5756         * device-tty.c (tty_init_device):
5757         * device-x.c (get_device_from_display):
5758         * device-x.c (x_get_visual_depth):
5759         * doprnt.c (parse_doprnt_spec):
5760         * doprnt.c (get_doprnt_args):
5761         * dumper.c (pdump_get_indirect_count):
5762         * dumper.c (pdump_register_sub):
5763         * dumper.c (pdump_register_object):
5764         * dumper.c (pdump_register_struct):
5765         * dumper.c (pdump_dump_data):
5766         * dumper.c (pdump_reloc_one):
5767         * elhash.c (print_hash_table):
5768         * elhash.c (make_standard_lisp_hash_table):
5769         * elhash.c (hash_table_instantiate):
5770         * emacs.c:
5771         * emacs.c (Fforce_debugging_signal):
5772         * emacs.c (sort_args):
5773         * emacs.c (main):
5774         * emacs.c (assert_failed):
5775         * eval.c (throw_or_bomb_out):
5776         * eval.c (signal_1):
5777         * eval.c (Fsignal):
5778         * event-Xt.c:
5779         * event-Xt.c (emacs_Xt_mapping_action):
5780         * event-Xt.c (Xt_process_to_emacs_event):
5781         * event-msw.c:
5782         * event-stream.c (check_event_stream_ok):
5783         * event-stream.c (Fadd_timeout):
5784         * event-stream.c (Fadd_async_timeout):
5785         * event-stream.c (Fdiscard_input):
5786         * event-stream.c (execute_internal_event):
5787         * event-stream.c (Frecent_keys):
5788         * event-stream.c (extract_this_command_keys_nth_mouse_event):
5789         * event-stream.c (lookup_command_event):
5790         * event-unixoid.c (poll_fds_for_input):
5791         * events.c:
5792         * events.c (mark_event):
5793         * events.c (event_equal):
5794         * events.c (event_hash):
5795         * events.c (Fmake_event):
5796         * events.c (Fdeallocate_event):
5797         * events.c (event_chain_find_previous):
5798         * events.c (event_to_character):
5799         * events.c (format_event_object):
5800         * events.c (Fevent_type):
5801         * events.c (event_pixel_translation):
5802         * events.c (Fevent_properties):
5803         * extents.c (extent_in_region_p):
5804         * extents.c (print_extent):
5805         * extents.c (process_extents_for_insertion_mapper):
5806         * extents.c (report_extent_modification_mapper):
5807         * extents.c (glyph_layout_to_symbol):
5808         * faces.c (face_validate):
5809         * file-coding.c (eol_type_to_symbol):
5810         * file-coding.c (subsidiary_coding_system):
5811         * file-coding.c (Fcoding_system_type):
5812         * file-coding.c (Fcoding_system_property):
5813         * file-coding.c (mule_decode):
5814         * file-coding.c (mule_encode):
5815         * file-coding.c (encode_coding_ucs4):
5816         * file-coding.c (encode_coding_utf8):
5817         * file-coding.c (parse_iso2022_esc):
5818         * file-coding.c (encode_coding_iso2022):
5819         * fileio.c:
5820         * fns.c (concat):
5821         * fns.c (Fsubseq):
5822         * fns.c (mapcar1):
5823         * fns.c (Fbase64_encode_region):
5824         * fns.c (Fbase64_encode_string):
5825         * fns.c (Fbase64_decode_region):
5826         * fns.c (Fbase64_decode_string):
5827         * font-lock.c (find_context):
5828         * font-lock.c (context_to_symbol):
5829         * frame-gtk.c (gtk_set_frame_pointer):
5830         * frame-gtk.c (gtk_update_frame_external_traits):
5831         * frame-x.c (x_wm_mark_shell_size_user_specified):
5832         * frame-x.c (x_wm_mark_shell_position_user_specified):
5833         * frame-x.c (x_wm_set_shell_iconic_p):
5834         * frame-x.c (x_wm_set_cell_size):
5835         * frame-x.c (x_wm_set_variable_size):
5836         * frame-x.c (x_wm_store_class_hints):
5837         * frame-x.c (x_wm_maybe_store_wm_command):
5838         * frame-x.c (x_initialize_frame_size):
5839         * frame-x.c (x_update_frame_external_traits):
5840         * frame.c:
5841         * frame.c (delete_frame_internal):
5842         * frame.c (mouse_pixel_position_1):
5843         * frame.c (change_frame_size_1):
5844         * free-hook.c (check_free):
5845         * free-hook.c (check_realloc):
5846         * free-hook.c (note_block_input):
5847         * free-hook.c (log_gcpro):
5848         * gccache-gtk.c (gc_cache_lookup):
5849         * glyphs-eimage.c (tiff_memory_write):
5850         * glyphs-gtk.c (gtk_finalize_image_instance):
5851         * glyphs-gtk.c (init_image_instance_from_gdk_pixmap):
5852         * glyphs-gtk.c (init_image_instance_from_xbm_inline):
5853         * glyphs-gtk.c (gtk_xpm_instantiate):
5854         * glyphs-gtk.c (gtk_unmap_subwindow):
5855         * glyphs-gtk.c (gtk_map_subwindow):
5856         * glyphs-gtk.c (gtk_button_redisplay):
5857         * glyphs-msw.c:
5858         * glyphs-msw.c (init_image_instance_from_xbm_inline):
5859         * glyphs-x.c (init_image_instance_from_xbm_inline):
5860         * glyphs-x.c (extract_xpm_color_names):
5861         * glyphs-x.c (x_xpm_instantiate):
5862         * glyphs.c (get_image_instantiator_governing_domain):
5863         * glyphs.c (print_image_instance):
5864         * glyphs.c (image_instance_equal):
5865         * glyphs.c (image_instance_hash):
5866         * glyphs.c (encode_image_instance_type):
5867         * glyphs.c (make_image_instance_1):
5868         * glyphs.c (inherit_instantiate):
5869         * glyphs.c (image_instantiate):
5870         * glyphs.c (allocate_glyph):
5871         * glyphs.c (Fglyph_type):
5872         * glyphs.c (redisplay_subwindow):
5873         * glyphs.c (display_table_entry):
5874         * gtk-glue.c (xemacs_list_to_gtklist):
5875         * gtk-glue.c (xemacs_gtklist_to_list):
5876         * gtk-glue.c (xemacs_list_to_array):
5877         * gutter.c (SET_GUTTER_WAS_VISIBLE_FLAG):
5878         * gutter.c (gutter_was_visible):
5879         * gutter.c (get_gutter_coords):
5880         * input-method-xlib.c (get_XIM_input):
5881         * insdel.c (bufpos_to_bytind_func):
5882         * insdel.c (bytind_to_bufpos_func):
5883         * insdel.c (move_gap):
5884         * intl.c (x_get_composed_input):
5885         * keymap.c (keymap_lookup_directly):
5886         * keymap.c (keymap_delete_inverse_internal):
5887         * keymap.c (ensure_meta_prefix_char_keymapp):
5888         * keymap.c (accessible_keymaps_mapper_1):
5889         * keymap.c (where_is_recursive_mapper):
5890         * lisp.h:
5891         * lisp.h (ABORT):
5892         * lread.c (read_atom):
5893         * lstream.c (Lstream_delete):
5894         * lstream.c (make_lisp_buffer_stream_1):
5895         * macros.c (pop_kbd_macro_event):
5896         * malloc.c (malloc):
5897         * malloc.c (free):
5898         * marker.c (bi_marker_position):
5899         * marker.c (set_bi_marker_position):
5900         * menubar-gtk.c (menu_descriptor_to_widget_1):
5901         * menubar-msw.c (prune_menubar):
5902         * menubar-x.c (set_frame_menubar):
5903         * mule-charset.c (get_unallocated_leading_byte):
5904         * mule-charset.h (CHAR_LEADING_BYTE):
5905         * native-gtk-toolbar.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
5906         * nt.c (init_environment):
5907         * nt.c (generate_inode_val):
5908         * ntproc.c (delete_child):
5909         * ntproc.c (_sys_read_ahead):
5910         * ntproc.c (create_child):
5911         * objects.c (color_instantiate):
5912         * objects.c (font_instantiate):
5913         * objects.c (face_boolean_instantiate):
5914         * print.c (printing_major_badness):
5915         * process-nt.c (nt_send_process):
5916         * process-unix.c (unix_send_process):
5917         * process.c (get_process):
5918         * ralloc.c (obtain):
5919         * ralloc.c (relinquish):
5920         * ralloc.c (relocate_blocs):
5921         * ralloc.c (resize_bloc):
5922         * ralloc.c (r_alloc_free):
5923         * ralloc.c (r_re_alloc):
5924         * ralloc.c (r_alloc_thaw):
5925         * ralloc.c (init_ralloc):
5926         * ralloc.c (Free_Addr_Block):
5927         * ralloc.c (r_alloc):
5928         * redisplay-gtk.c (gtk_output_display_block):
5929         * redisplay-msw.c (mswindows_output_display_block):
5930         * redisplay-output.c (get_next_display_block):
5931         * redisplay-output.c (get_cursor_size_and_location):
5932         * redisplay-output.c (redisplay_output_layout):
5933         * redisplay-output.c (redisplay_clear_region):
5934         * redisplay-tty.c (tty_output_display_block):
5935         * redisplay-x.c (x_output_display_block):
5936         * redisplay.c (add_propagation_runes):
5937         * redisplay.c (add_glyph_rune):
5938         * redisplay.c (create_text_block):
5939         * redisplay.c (add_margin_runes):
5940         * redisplay.c (create_left_glyph_block):
5941         * redisplay.c (create_right_glyph_block):
5942         * redisplay.c (create_string_text_block):
5943         * redisplay.c (regenerate_window):
5944         * redisplay.c (REGEN_INC_FIND_START_END):
5945         * redisplay.c (redisplay_frame):
5946         * redisplay.c (point_in_line_start_cache):
5947         * regex.c:
5948         * regex.c (ABORT):
5949         * regex.c (re_compile_fastmap):
5950         * regex.c (re_match_2_internal):
5951         * regex.c (regerror):
5952         * scrollbar-gtk.c (gtk_scrollbar_loop):
5953         * scrollbar-gtk.c (scrollbar_cb):
5954         * scrollbar-gtk.c (gtk_update_frame_scrollbars):
5955         * scrollbar-msw.c (mswindows_handle_scrollbar_event):
5956         * scrollbar-x.c (x_update_scrollbar_instance_status):
5957         * scrollbar-x.c (x_scrollbar_loop):
5958         * scrollbar-x.c (x_update_frame_scrollbars):
5959         * search.c (search_command):
5960         * search.c (Fmatch_data):
5961         * select-x.c (motif_clipboard_cb):
5962         * signal.c (interrupt_signal):
5963         * specifier.c (specifier_add_spec):
5964         * specifier.c (specifier_instance_from_inst_list):
5965         * specifier.c (specifier_instance):
5966         * specifier.h:
5967         * specifier.h (struct specifier_methods):
5968         * strftime.c (add_num_time_t):
5969         * sunplay.c (init_device):
5970         * symbols.c (Fsetplist):
5971         * symbols.c (do_symval_forwarding):
5972         * symbols.c (store_symval_forwarding):
5973         * symbols.c (Fset):
5974         * symbols.c (Fbuilt_in_variable_type):
5975         * symbols.c (decode_magic_handler_type):
5976         * symbols.c (handler_type_from_function_symbol):
5977         * syntax.c (update_syntax_cache):
5978         * sysdep.c (init_baud_rate):
5979         * toolbar-gtk.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
5980         * toolbar-msw.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
5981         * toolbar-x.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
5982         * toolbar.c (get_toolbar_coords):
5983         * ui-gtk.c (build_gtk_boxed):
5984         * ui-gtk.c (describe_gtk_arg):
5985         * ui-gtk.c (gtk_type_to_lisp):
5986         * ui-gtk.c (lisp_to_gtk_type):
5987         * ui-gtk.c (lisp_to_gtk_ret_type):
5988         * ui-gtk.c (lisp_to_flag):
5989         * unexnt.c (read_in_bss):
5990         * unexnt.c (map_in_heap):
5991         * window.c (real_window):
5992         * window.c (window_display_lines):
5993         * window.c (window_display_buffer):
5994         * window.c (set_window_display_buffer):
5995         * window.c (window_modeline_height):
5996         * window.c (unshow_buffer):
5997         * window.c (window_loop):
5998         * window.c (Fget_lru_window):
5999         * window.c (Fsplit_window):
6000         * window.c (Fset_window_configuration):
6001         * window.c (saved_window_index):
6002         * xgccache.c (gc_cache_lookup):
6003         abort() -> ABORT().  Eliminate preprocessor games with abort()
6004         since it creates huge problems in VC7, solvable only by including
6005         massive amounts of files in every compile (and not worth it).
6006
6007         * sysdep.c:
6008         * sysproc.h:
6009         Inclusion of process.h does not need to be before lisp.h any more.
6010         Move later and remove comment about abort().
6011
6012 2005-01-26  Arnaud Giersch  <arnaud.giersch@free.fr>
6013
6014         * regex.c (re_match_2_internal):
6015         Correctly initialize loop which clears uninitialized registers.
6016
6017 2005-01-28  Vin Shelton  <acs@xemacs.org>
6018
6019         * sheap.c (more_static_core): Applied Ben's version of the long
6020         string patch.
6021
6022 2005-01-24  Vin Shelton  <acs@xemacs.org>
6023
6024         * sheap.c (more_static_core): Reformatted printf string so
6025         gcc-3.3.3 will compile this on Cygwin.
6026
6027 2004-02-22  Stephen J. Turnbull  <stephen@xemacs.org>
6028
6029         * console.c (function_key_map): Reference `key-binding'.
6030
6031         * keymap.c (Vkey_translation_map): Improve docstring.
6032
6033 2004-03-30  Zajcev Evgeny  <zevlg@yandex.ru>
6034
6035         * window.c: Declare `allow_deletion_of_last_visible_frame' extern.
6036         * window.c (window_loop): [fix] Take into account
6037         `allow-deletion-of-last-visible-frame' variable.
6038         * window.c (replace-buffer-in-windows): Ditto.
6039
6040 2004-12-15  Stephen J. Turnbull  <stephen@xemacs.org>
6041
6042         * EmacsManager.c (EmacsManagerChangeSize): Respect XtGeometryNo.
6043
6044 2005-01-20  Malcolm Purvis  <malcolmp@xemacs.org>
6045
6046         * event-gtk.c: Recognise AltGr as a valid modifier.
6047
6048 2005-01-12  Ville Skyttä  <scop@xemacs.org>
6049
6050         * console-x.h: #include X11/keysym.h before xintrinsic.h.
6051
6052 2005-01-13  Stephen J. Turnbull  <stephen@xemacs.org>
6053
6054         Fix backreference bug caught by test suite.
6055
6056         * regex.c (regex_compile):
6057         Make backref duplicate internal register.
6058
6059 2005-01-13  Stephen J. Turnbull  <stephen@xemacs.org>
6060
6061         Documentation, code clarification, and warning suppression.
6062         
6063         * regex.c (regex_compile):
6064         Improve comments.
6065         (re_match_2_internal):
6066         Improve comments and avoid redundant braces.  [Most of the big hunk
6067         at l. 4710 is indentation; use diff -w to see the real changes.]
6068         (alt_match_null_string_p):
6069         (common_op_match_null_string_p):
6070         Avoid shadowing global on Mac OS X 10.4, at least.
6071
6072 2004-09-08  Stephen J. Turnbull  <stephen@xemacs.org>
6073
6074         * regex.c (regcomp): Fix "unsigned comparison" warning (maybe
6075         introduced with shy groups fix).  [Already applied, probably
6076         with the second "fix shy groups" patch of 2004-10-07.] 
6077
6078 2005-01-10  Steve Youngs  <steve@sxemacs.org>
6079
6080         From Andrey Slusar <anrays@gmail.com>:
6081
6082         * unexelf.c: define `Elfw(type)' for FreeBSD alpha and amd64.
6083
6084 2004-11-21  Malcolm Purvis  <malcolmp@xemacs.org>
6085
6086         * Makefile (RECURSIVE_MAKE): Removed.
6087         * Makefile (RECURSIVE_MAKE_ARGS): New.  The new method for
6088         handling parallel builds.
6089
6090 2004-09-08  Malcolm Purvis  <malcolmp@xemacs.org>
6091
6092         * Makefile.in.in: Enable support for parallel builds.
6093
6094 2005-01-09  Steve Youngs  <steve@sxemacs.org>
6095
6096         From Andrey Slusar <anrays@gmail.com>:
6097
6098         * s/freebsd.h (LIBS_SYSTEM): Only set to "-lutil -lxpg4" if
6099         FreeBSD version is >= 199701 _and_ < 600006.
6100
6101 2005-01-06  Zajcev Evgeny <zevlg@yandex.ru>
6102
6103         * scrollbar.c (compute_scrollbar_instance_usage):
6104         Only call device method compute_scrollbar_instance_usage() if it
6105         is defined.
6106
6107 2004-12-05  Vin Shelton <acs@xemacs.org>
6108
6109         * XEmacs 21.4.16 is released
6110
6111 2004-12-04  Vin Shelton  <acs@xemacs.org>
6112
6113         * depend: Regenerated.
6114
6115 2004-10-07  Stephen J. Turnbull  <stephen@xemacs.org>
6116
6117         * regex.c (re_match_2_internal): Map internal to external
6118         registers.  Fixes bug identified by Steve Youngs 2004-09-30
6119         <microsoft-free.87ekkjhj7t.fsf@youngs.au.com>.
6120
6121 2004-09-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
6122
6123         * buffer.c (Frecord_buffer): Make sure the argument is buffer
6124         to fix a crash.  Also, check the buffer is live and it
6125         really exists in buffer_list.  If the buffer is not in the list,
6126         prepend it.
6127
6128 2004-09-08  Stephen J. Turnbull  <stephen@xemacs.org>
6129
6130         Fix shy groups by implementing recording of all groups for
6131         repetition and backtracking.  Backport from 21.5.
6132         
6133         * regex.h (struct re_pattern_buffer): Add members re_ngroups,
6134         external_to_internal_register, external_to_internal_register_size,
6135         and update comments for re_nsub.
6136
6137         * regex.c (re_opcode_t): Update comments.
6138         (print_compiled_pattern): Ouput external_to_internal_register,
6139         external_to_internal_register_size, and re_ngroups for debugging.
6140         (INIT_REG_TRANSLATE_SIZE): New manifest constant.
6141         (regex_compile): Update header comment.
6142         Ensure that all groups are recorded so that repeat matches and
6143         backtracking work correctly.  Comment related warning for groups >
6144         255.
6145         (re_search_2): Construct map of API indexes (which count only
6146         nonshy groups) to internal register numbers, and keep it updated.
6147
6148 2004-07-27  Malcolm Purvis  <malcolmp@xemacs.org>
6149
6150         * frame-gtk.c (gtk_make_frame_visible):
6151         * frame-gtk.c (gtk_make_frame_invisible): Use map/unmap instead of
6152         show/hide.  This is what X uses and is prevents previously hidden
6153         widgets from suddenly reappearing.
6154         * gtk-xemacs.c (gtk_xemacs_paint):
6155         * gtk-xemacs.c (gtk_xemacs_draw):
6156         * gtk-xemacs.c (gtk_xemacs_expose): Only operate if the widget is
6157         drawable.
6158         * scrollbar-gtk.c (gtk_update_scrollbar_instance_status): Force
6159         size and location changes so that they can be seen before the next
6160         idle event.  Without this rapid changes to scrollbar properties
6161         are not seen.
6162
6163 2004-07-02  Malcolm Purvis  <malcolmp@xemacs.org>
6164
6165         * console-gtk.h:
6166         * console-gtk.h (struct gtk_frame):
6167         * console-gtk.h (FRAME_GTK_WIDGET_INSTANCE_HASH_TABLE):
6168           Add hash tables track tab_control callback data.
6169           Added #defines for GTK object data names.
6170           Declaration of gtk_widget_to_frame().
6171         * event-gtk.c (enqueue_gtk_dispatch_event) No longer static:
6172         * frame-gtk.c (gtk_widget_to_frame): New.
6173         * frame-gtk.c (gtk_create_widgets):
6174         * frame-gtk.c (allocate_gtk_frame_struct):
6175         * frame-gtk.c (gtk_mark_frame):
6176         Manage frame callbakc hash tables.
6177         * glyphs-gtk.c (gtk_map_subwindow): Fix size and moving bugs.
6178         * glyphs-gtk.c (gtk_redisplay_widget): Use correct size for widgets.
6179         * glyphs-gtk.c (gtk_widget_instantiate_1): Force reconsideration
6180         of widget size.
6181         * glyphs-gtk.c (gtk_widget_query_geometry): New
6182         * glyphs-gtk.c (gtk_register_gui_item): New
6183         * glyphs-gtk.c (gtk_add_tab_item): New
6184         * glyphs-gtk.c (gtk_tab_control_callback): New
6185         * glyphs-gtk.c (gtk_tab_control_instantiate): New
6186         * glyphs-gtk.c (gtk_tab_control_redisplay): Set notebook page.
6187         Use correct list when loading item.
6188         * glyphs-gtk.c (image_instantiator_format_create_glyphs_gtk):
6189         Register new methods.
6190         * gtk-xemacs.c (gtk_xemacs_size_allocate): Use XEmacs size, not
6191         default size, for widgets.
6192         * gui-x.c:  Improved comment.
6193         * menubar-gtk.c (__generic_button_callback): Use
6194         gtk_widget_to_frame instead of __get_channel.
6195         * scrollbar-gtk.c:
6196         * ui-gtk.c: Use symbolic names for GTK object data.
6197
6198 2004-06-23  Ilya N. Golubev <gin@mo.msk.ru>
6199
6200         * s/usg5-4.h (NSIG): Define only inside emacs binary.
6201
6202 2002-03-04  Stephen J. Turnbull  <stephen@xemacs.org>
6203
6204         * fileio.c (Fwrite_region_internal): Document use of start == Qnil.
6205
6206 2004-06-16  Malcolm Purvis  <malcolmp@xemacs.org>
6207
6208         * malloc.c (morecore): siz is a long because in some architectures
6209         (eg ia-64) an int cannot hold the address range.  Additional patch
6210         from the SuSe distribution.
6211
6212 2004-06-13  Malcolm Purvis  <malcolmp@xemacs.org>
6213
6214         * emacs.c:
6215         * malloc.c: lim_data is a long because in some architectures
6216         (eg ia-64) an int cannot hold the address range.
6217         * mem-limits.h: lim-data is a long.  Linux uses getrlimit()
6218         instead of ulimit() because ulimit() always returns -1.
6219
6220 2004-06-09  Stephen J. Turnbull  <stephen@xemacs.org>
6221
6222         * search.c: Reenable an ansync semaphore.  Remove bogus comments.
6223
6224 2004-06-11  David Kastrup  <dak@gnu.org>
6225
6226         * search.c (match_limit): Don't flag an error if match-data
6227         exceeding the allocated search_regs.num_regs gets requested, just
6228         return Qnil.
6229
6230 2003-07-21  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
6231
6232         * glyphs-gtk.c (gtk_xpm_instantiate): Rewrite the XPM data to
6233         replace symbolic color entries with the real colors specified in
6234         xpm-color-symbols, before passing the XPM to gtk.
6235         * glyphs-gtk.h: Use the generic pixmap_image_instance.mask for masks,
6236         instead of a GTK specific field, so that it is used in by generic
6237         code.
6238
6239 2004-05-05  Chuck Hines <chuck.hines@baesystems.com>
6240
6241        * dgif_lib.c (DGifSlurp): Changed do-while to while to stop
6242         coredump from deref of NULL ptr (ExtData)
6243
6244 2004-04-19  Jerry James  <james@xemacs.org>
6245
6246         * data.c (sign_extend_lisp_int): Use INT_VALBITS instead of
6247         VALBITS to compute the location of the sign bit.
6248         * event-stream.c (Fcurrent_event_timestamp): Replace incorrect use
6249         of VALBITS with EMACS_INT_MAX.
6250         * events.c (Fevent_timestamp): Ditto.
6251         * events.c (TIMESTAMP_HALFSPACE): Change VALBITS to INT_VALBITS to
6252         compute the halfway point to timestamp wraparound.
6253         * floatfns.c (float_to_int): Compare against EMACS_INT_MAX and
6254         EMACS_INT_MIN instead of using VALBITS.
6255         * floatfns.c (Flogb): Use EMACS_INT_MIN instead of building an
6256         incorrect number with VALBITS.
6257         * fns.c (Frandom): Correct number of integer bits in docstring.
6258         Use INT_VALBITS instead of VALBITS to compute the denominator.
6259         * sysdep.c (get_random): Use INT_VALBITS instead of VALBITS to
6260         build random numbers.
6261
6262 2004-03-23  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
6263         * event-gtk.c:
6264         * event-gtk.c (gtk_event_to_emacs_event):
6265         * menubar-gtk.c:
6266         * menubar-gtk.c (gtk_xemacs_menubar_class_init):
6267         * menubar-gtk.c (gtk_xemacs_menubar_size_request):
6268         * menubar-gtk.c (gtk_xemacs_accel_label_get_type):
6269         * menubar-gtk.c (gtk_xemacs_set_accel_keys):
6270         * menubar-gtk.c (__activate_menu):
6271         * menubar-gtk.c (convert_underscores):
6272         * menubar-gtk.c (remove_underscores):
6273         * menubar-gtk.c (menu_convert):
6274         * menubar-gtk.c (menu_descriptor_to_widget_1):
6275         * menubar-gtk.c (menu_descriptor_to_widget):
6276         * menubar-gtk.c (menu_can_reuse_widget):
6277         * menubar-gtk.c (menu_create_menubar):
6278         * menubar-gtk.c (gtk_popup_menu):
6279         * menubar-gtk.c (Fgtk_build_xemacs_menu):
6280         Added support for Gtk menu bar and menu item mnemonics.
6281
6282 2004-03-23  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
6283
6284         * sysdll.c: (dll_function): Added support for finding symbols in
6285         Darwin shared libraries as well in Darwin bundles.
6286         * sysdll.c (image_for_address): New
6287         * sysdll.c (my_find_image): New
6288         * sysdll.c (search_linked_libs): New
6289
6290 2004-03-23  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
6291
6292         * ui-gtk.c (__internal_callback_marshal): Marshalling data to
6293         return to GTK requires a different API to marshalling data to use
6294         as GTK parameters.
6295         * ui-gtk.c (lisp_to_gtk_ret_type): New.
6296
6297 2004-03-08  Lutz Euler  <lutz.euler@freenet.de>
6298
6299         * lstream.c (Lstream_pseudo_close): Fix test for LSTREAM_FL_IS_OPEN.
6300
6301 2004-02-19  Stephen J. Turnbull  <stephen@xemacs.org>
6302
6303         * glyphs.c (process_image_string_instantiator):
6304         (Fset_console_type_image_conversion_list):
6305         Stop GCC from warning about shadowing of `exp'.
6306
6307         * redisplay-x.c (x_output_string): Fix unsigned lossage.
6308
6309 2004-02-19  Stephen J. Turnbull  <stephen@xemacs.org>
6310
6311         * regex.c (re_match_2_internal): Shut up GCC about syn1, syn2.
6312
6313 2004-02-03  Vin Shelton  <acs@xemacs.org>
6314
6315         * glyphs.c (image_instance_layout): Remove pointless assertion.
6316         * regex.c (regex_grow_registers): Return type is void.
6317
6318 2004-02-02  Vin Shelton <acs@xemacs.org>
6319
6320         * XEmacs 21.4.15 is released
6321
6322 2004-01-30  Glynn Clements  <glynn.clements@virgin.net>
6323
6324         * device-x.c (x_error_handler): Don't call stderr_out
6325
6326 2003-11-07  Katsumi Yamaoka <yamaoka@jpl.org>
6327
6328         * buffer.c (other-buffer): Clarify documentation of order of
6329         arguments for FSF Emacs.
6330
6331 2003-10-11  Olivier Galibert  <galibert@pobox.com>
6332
6333         * window.c (Fdelete_window): Dirty the mirror structure _before_
6334         marking the window deleted.
6335
6336 2003-09-15  Jerry James  <james@xemacs.org>
6337
6338         * event-msw.c (debug_mswin_messages): Conditionally compile
6339         messages missing from the Cygwin headers.
6340
6341 2003-06-16  Stephen J. Turnbull  <stephen@xemacs.org>
6342
6343         * data.c (eq_with_ebola_notice): Fix typo in comment.
6344         (Ftrue_list_p): Improve docstring.
6345
6346 2003-10-13  Stephen J. Turnbull  <stephen@xemacs.org>
6347
6348         * frame-x.c (x_update_frame_external_traits): Fix XtSetArg idiom.
6349
6350 2003-09-27  Stephen J. Turnbull  <stephen@xemacs.org>
6351
6352         * search.c (trivial_regexp_p): Regexps containing "\{" are
6353         nontrivial.  Thanks to Manfred Bartz for reporting the bug and
6354         Stefan Monnier for suggesting a diagnosis.
6355
6356 2003-09-25  Stephen J. Turnbull  <stephen@xemacs.org>
6357
6358         * elhash.c (make-hash-table): Clarify use of :test #'equal.
6359
6360 2003-09-12  Stephen J. Turnbull  <stephen@xemacs.org>
6361
6362         * search.c (Fsearch_forward):
6363         (Fsearch_backward):
6364         Document negative count.
6365
6366 2003-09-13  Stephen J. Turnbull  <stephen@xemacs.org>
6367
6368         * regex.c (re_max_failures): Bump to 20000 for REGEX_MALLOC, too.
6369
6370 2003-09-13  Martin Buchholz  <martin@xemacs.org>
6371
6372         * s/sol2.h: Use OS_RELEASE=os_release_major*100+os_release_minor
6373
6374 2003-09-15  Vin Shelton  <acs@xemacs.org>
6375
6376         * .gdbinit (pobj): Remove Ilya's fix that was only intended for
6377         21.5.
6378
6379 2003-09-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
6380
6381         * regex.c (TRANSLATE_EXTENDED_UNSAFE): Remove.
6382         (re_search_2): Match the first byte of Bufbyte, not Emchar.
6383         (re_match_2_internal): Use TRANSLATE instead of
6384         TRANSLATE_EXTENDED_UNSAFE.  The latter was a hack to bypass
6385         non-ASCII char case conversion.
6386
6387 2003-09-08  Mike Sperber  <mike@xemacs.org>
6388
6389         * symbols.c (Fvariable_binding_locus): Add, as per suggestion from
6390         RMS at: http://article.gmane.org/gmane.emacs.pretest.bugs/1010
6391
6392 2003-06-14  Ilya N. Golubev  <gin@mo.msk.ru>
6393
6394        * .gdbinit (pobj): fix printing of symbol name.
6395
6396 2003-08-01  Ilya N. Golubev  <gin@mo.msk.ru>
6397
6398         * frame-x.c (x_layout_widgets): When resizing is about to cause
6399         frame size slip, mark it for redisplay.
6400
6401 2003-08-18  Jerry James  <james@xemacs.org>
6402
6403         * opaque.h: Remove unused (X)OPAQUE_MARKFUN definitions.
6404
6405 2003-09-03  Vin Shelton <acs@xemacs.org>
6406
6407         * XEmacs 21.4.14 is released
6408
6409 2003-08-15  Stephen J. Turnbull  <stephen@xemacs.org>
6410
6411         * config.h.in (REGEX_MALLOC): Make it configure'able.
6412
6413 2003-08-14  Andrew Begel  <abegel@CS.Berkeley.EDU>
6414
6415         * config.h.in: Add HAVE_DYLD to indicate Darwin/MacOSX dynamic
6416         linking.
6417         * sysdll.c (dll_init):
6418         * sysdll.c (dll_open):
6419         * sysdll.c (dll_close):
6420         * sysdll.c (dll_function):
6421         * sysdll.c (dll_variable):
6422         * sysdll.c (dll_error):
6423         Add support for loading bundles using Darwin/MacOSX
6424         native API.
6425
6426 2003-08-12  Stephen J. Turnbull  <stephen@xemacs.org>
6427
6428         * process.c (start-process-internal): Document coding systems.
6429
6430 2003-07-30  Jerry James  <james@xemacs.org>
6431
6432         * sysdll.c: configure sets HAVE_DLD_INIT, not HAVE_INIT_DLD.
6433
6434 2003-07-31  René Kyllingstad  <listmailxemacs@kyllingstad.com>
6435
6436         * event-msw.c (mswindows_enqueue_mouse_button_event):
6437         * event-msw.c (mswindows_wnd_proc):
6438           enqueue button event when scrollwheel event isn't handled by 
6439           mswindows_handle_mousewheel_event, such as when the scrollbars
6440           are not showing.
6441
6442 2003-07-29  Stephen J. Turnbull  <stephen@xemacs.org>
6443
6444         * EmacsFrame.c (emacsFrameClassRec): Motif groks not XtCompress*.
6445
6446 2003-03-24  Stephen J. Turnbull  <stephen@xemacs.org>
6447
6448         * database.c (Fopen_database): Don't use DB_AUTO_COMMIT.
6449
6450 2003-03-21  Stephen J. Turnbull  <stephen@xemacs.org>
6451
6452         * regex.c (re_match_2_internal): Fix matching degenerate word
6453         boundaries.
6454
6455 2003-05-25  XEmacs Build Bot <builds@cvs.xemacs.org>
6456
6457         * XEmacs 21.4.13 is released
6458
6459 2003-03-20  Stephen J. Turnbull  <stephen@xemacs.org>
6460
6461         * config.h.in (INTPTR_T_IN_CYGWIN_TYPES_H): 
6462         * lisp.h (<inttypes.h>):
6463         Cygwin defines these types in <cygwin/types.h>.  Don't duplicate
6464         the definition.
6465
6466 2003-03-15  Martin Buchholz  <martin@xemacs.org>
6467
6468         * dumper.c (pdump_load): Pdump'ed XEmacs can't find its .dmp file.
6469         Scenario: Prepend ~/bin to PATH; then `mkdir ~/bin/xemacs'
6470         Result: "temacs can only be run in -batch mode."
6471         Fix: Check xemacs executable candidate for directory-ness.
6472
6473 2003-03-03  Robert Pluim  <rpluim@bigfoot.com>
6474
6475         * database.c: Don't use the u_int8_t etc typedefs on FreeBSD,
6476           they conflict with <sys/types.h>.
6477
6478 2003-02-14  Martin Buchholz  <martin@xemacs.org>
6479
6480         * database.c: Berkeley DB wants __STDC__ to be defined.
6481
6482 2003-02-13  Martin Buchholz  <martin@xemacs.org>
6483
6484         * EmacsFrame.c: Use symbolic name `NotUseful' in lieu of `0'.
6485
6486 2003-02-01  Martin Buchholz  <martin@xemacs.org>
6487
6488         * process-unix.c (unix_send_process): Fix C++ compile error.
6489
6490 2003-02-25  Andrew Begel  <abegel@cs.berkeley.edu>
6491
6492         * Added .dylib as an acceptable shared library file extension
6493         * to support MacOSX.
6494
6495 2003-02-01  Martin Buchholz  <martin@xemacs.org>
6496
6497         * EmacsFrameP.h (EmacsFramePart):
6498         Kludge to allow compiling with Motif1, but linking with Motif2.
6499
6500 2003-01-28  Martin Buchholz  <martin@xemacs.org>
6501
6502         * config.h.in (_ALL_SOURCE): Guard against multiple definition.
6503
6504
6505 2003-02-23  Stephen J. Turnbull  <stephen@xemacs.org>
6506
6507         * config.h.in (DLSYM_NEEDS_UNDERSCORE): Define on darwin.
6508
6509 2003-02-06  Andrew Begel  <abegel@CS.Berkeley.EDU>
6510
6511         * sysdll.c: Included lisp.h to define needed alloca_array.
6512
6513 2003-02-13  Martin Buchholz  <martin@xemacs.org>
6514
6515         Make XEmacs redisplay 10 times faster.
6516         If, that is, you're using a slow X connection and MoveOpaque.
6517         Use compress_exposure = XtExposeCompressMaximal | XtExposeNoRegion.
6518         Use compress_motion = TRUE.
6519         * EmacsFrame.c (emacsFrameClassRec): 
6520         * EmacsShell-sub.c (EMACS_SHELL_CLASS_REC):
6521         * EmacsManager.c (emacsManagerClassRec):
6522         * xintrinsicp.h: Make sure XtExposeNoRegion is defined.
6523
6524 2003-01-30  Vin Shelton  <acs@xemacs.org>
6525
6526         * s/linux.h (ORDINARY_LINK): define ORDINARY_LINK for linux.
6527
6528 2003-01-17  Stephen J. Turnbull  <stephen@xemacs.org>
6529
6530         * glyphs-eimage.c (tiff_memory_seek): Lobotomize unsigned typedef.
6531         Patch by Martin Buchholz.
6532
6533 2003-01-16  Stephen J. Turnbull  <stephen@xemacs.org>
6534
6535         * glyphs-eimage.c (tiff_instantiate): Fix unsigned comparison.
6536         Thanks to icc for warning and Martin Buchholz for reporting.
6537
6538 2003-01-29  Vin Shelton <acs@xemacs.org>
6539
6540         Patch courtesy of Andrew Begel <abegel@cs.berkeley.edu>
6541
6542         * dynarr.c (Dynarr_realloc): memcpy copies number of bytes, so
6543         remember to multiply by the element size.
6544
6545 2003-01-15  Stephen J. Turnbull  <stephen@xemacs.org>
6546
6547         * XEmacs 21.4.12 "Portable Code" is released.
6548
6549 2003-01-14  Sergey Okhapkin <sos@prospect.com.ru>
6550
6551         * Makefile.in.in (ldflags): re-order sections for gcc 3.2.
6552         * s/cygwin.sc: new linker file.
6553
6554 2003-01-14  Stephen J. Turnbull  <stephen@xemacs.org>
6555
6556         Build fixes courtesy Martin Buchholz <martin@xemacs.org>:
6557
6558         * redisplay-x.c (x_output_string): Use X11-specified types.
6559         * syntax.c, syntax.h (SYNTAX_CODE): Use enum syntaxcode, not int.
6560         * emacs.c (__free_hook): Use typeof with Intel compiler.
6561         * config.h.in (alloca.h): Quick safe hack to please Intel compiler.
6562
6563 2003-01-08  Andy Piper  <andy@xemacs.org>
6564
6565         * unexcw.c (copy_executable_and_dump_data_section): Set the stack
6566         reserve size during unexec().
6567
6568 2003-01-07  Daiki Ueno  <daiki@xemacs.org>
6569
6570         * process-unix.c (unix_create_process): Don't let outchannel block.
6571
6572 2003-01-05  Rick Rankin  <rick_rankin@yahoo.com>
6573
6574         * emacs.c: Include "syswindows.h" when compiling under Cygwin.
6575         Needed for IsBadReadPtr().
6576
6577 2003-01-03  Stephen J. Turnbull  <stephen@xemacs.org>
6578
6579         * XEmacs 21.4.11 "Native Windows TTY Support" is released.
6580
6581 2002-12-14  Ben Wing  <ben@xemacs.org>
6582
6583         * callint.c: Declaration error.
6584         * dumper.c (pdump):
6585         * dumper.c (pdump_load): Warning fix.
6586         * process.c: GCPRO error.
6587         * glyphs.c (unmap_subwindow):
6588         * glyphs.c (map_subwindow): Parenthesizing errors with ! and &&.
6589         * event-stream.c (maybe_kbd_translate): Wrong argument to
6590         character_to_event().
6591
6592         * alloc.c (garbage_collect_1):
6593         * emacs.c:
6594         * emacs.c (debug_can_access_memory):
6595         * emacs.c (fatal_error_signal):
6596         * emacs.c (mswindows_handle_hardware_exceptions):
6597         * emacs.c (main_1):
6598         * emacs.c (main):
6599         * emacs.c (assert_failed):
6600         * emacs.c (syms_of_emacs):
6601         * lisp.h:
6602         * print.c:
6603         * print.c (std_handle_out_va):
6604         * print.c (write_string_to_stdio_stream):
6605         * print.c (write_fmt_string):
6606         * print.c (printing_badness):
6607         * print.c (printing_major_badness):
6608         * print.c (print_internal):
6609         * print.c (debug_print_no_newline):
6610         * print.c (debug_backtrace):
6611         Be more defensive in handling bad values when printing.  Add code
6612         from trunk involving inhibit_non_essential_printing_operations.
6613         When going down or in debug_print(), don't do external conversion
6614         and such and try really, really hard when printing to avoid core
6615         dumping.  Add force-debugging-signal, debug_break().
6616
6617 2002-12-12  Stephen J. Turnbull  <stephen@xemacs.org>
6618
6619         * dumper.c (pdump_load): Include sysdep.h; retry with truename.
6620         Analysis and original patch by Vin Shelton <acs@xemacs.org>.
6621
6622 2002-12-02  Greg Allen  <greg_allen@westlb-systems.co.uk>
6623
6624         * database.c: Fix open_database. Berkeley DB API has changed in
6625         4.1. see: http://www.sleepycat.com/docs/ref/upgrade.4.1/fop.html
6626
6627 2002-11-26  Stephen J. Turnbull  <stephen@xemacs.org>
6628
6629         * specifier.c (Fvalid_specifier_type_p): Typo in comment.
6630
6631 2002-11-13  Stephen J. Turnbull  <stephen@xemacs.org>
6632
6633         * event-Xt.c (Xt_timeout):
6634         (Xt_timeout_callback):
6635         (emacs_Xt_add_timeout):
6636         (emacs_Xt_remove_timeout):
6637         (Xt_timeout_to_emacs_event):
6638         Turn completed_timeouts from a stack into a queue.  Fixes
6639         deadlocks <15829.21626.171573.994716@sinisa.nasamreza.org>.
6640
6641 2002-11-07  Wolfram Gloger  <wg@malloc.de>
6642
6643         * alloc.c (reinit_alloc_once_early): Disable mmap in Doug Lea malloc.
6644         * emacs.c (main): Assert that mmap'd allocation is disabled.
6645
6646 2002-10-14  Andy Piper  <andy@xemacs.org>
6647
6648         * glyphs-widget.c (layout_query_geometry): add in fiddle
6649         factor. Include border text in width layout calculation.
6650         (layout_layout): use BORDER_FIDDLE_FACTOR instead of 10.
6651
6652 2002-11-02  Stephen J. Turnbull  <stephen@xemacs.org>
6653
6654         * XEmacs 21.4.10 "Military Intelligence" is released.
6655
6656 2002-10-17  Raymond Toy  <toy@rtp.ericsson.se>
6657
6658         * nas.c: Update for NAS 1.6 and later, from Jon Trulson.  Was
6659         using the NAS private array SoundFileInfo that no longer exists in
6660         NAS 1.6 and later.  Preserve backward compatibility with NAS 1.5a
6661         and earlier.  This is broken for some versions between 1.5a and
6662         1.5f.
6663
6664 2002-10-10  Stephen J. Turnbull  <stephen@xemacs.org>
6665
6666         * realpath.c (win32_readlink): Try to fix truename of wildcard bug.
6667
6668         * emacs.c (shut_down_emacs): Improve crash message.
6669
6670 2002-10-09  Stephen J. Turnbull  <stephen@xemacs.org>
6671
6672         * file-coding.c (determine_real_coding_system): Check for coding
6673         cookie in first LINES_TO_CHECK lines (currently 2).  Cater to
6674         shebangs and Python PEP 263.
6675
6676 2002-10-08  Andy Piper  <andy@xemacs.org>
6677
6678         * glyphs-widget.c (layout_query_geometry): only resize dynamically
6679         if static sizes haven't been set.
6680
6681 2002-08-30  Mike Alexander  <mta@arbortext.com>
6682
6683         * event-msw.c (winsock_closer): Use closesocket, not CloseHandle
6684         to close a socket.
6685
6686 2002-10-03  Stephen J. Turnbull  <stephen@xemacs.org>
6687
6688         * callproc.c (child_setup): 21.4 doesn't have retry_close.
6689
6690 2002-09-20  Mike Sperber <mike@xemacs.org>
6691
6692         (This partially gets back my patch from 2002-07-20 without the
6693         bug.)
6694         * callproc.c (child_setup): Remove Ben's comment noting confusion
6695         over the file descriptors >= 3: close_process_descs() doesn't
6696         close those.  Fix fd range to go up to MAXDESC-1 instead of 64.
6697         * process-unix.c (unix_create_process): Call
6698         begin_dont_check_for_quit to inhibit unwanted interaction (and
6699         thus breaking of X event synchronicity) in the child.
6700
6701 2002-09-26  Golubev I. N.  <gin@mo.msk.ru>
6702
6703         * frame-x.c (x_delete_frame): do not call XtDisplay on a destroyed
6704         widget.
6705
6706 2002-08-20  Ben Sigelman  <bhsigelm@cs.brown.edu>
6707
6708         * event-Xt.c (drain_X_queue): loop over while(XEventsQueued())
6709         instead of while(XtAppPending()&XtIMXEvent).  Upon a gdm logout,
6710         the xemacs process did not exit, but looped infinitely here.  This
6711         fixes that problem.
6712
6713 2002-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
6714
6715         * font-lock.c (SYNTAX_START_STYLE, SYNTAX_END_STYLE): Quiet GCC.
6716         (find_context): Improve comments.
6717
6718         * regex.c (re_compile_fastmap):  Gratuitous #ifdef comment fixes.
6719         (re_match_2): An XCHAR_TABLE operation was missing.
6720
6721         Many of the following changes were inspired by Andy Piper's (now
6722         obsolete) patch to make syntax-table text property lookup optional.
6723
6724         [Documentation]
6725
6726         * syntax.h (top level): Document semantics of syntax flags.
6727         * syntax.c (comstr_start, Fforward_comment): Improve comments.
6728         * syntax.c, syntax.h (top level): Document syntax cache better in
6729         comments.
6730
6731         [Instrument syntax caching (temporary change)]
6732
6733         * syntax.h (enum syntax_cache_statistics_functions, struct
6734         syntax_cache_statistics, SCS_STATISTICS_SET_FUNCTION,
6735         SYNTAX_CACHE_STATISTICS_COUNT_INIT): New types and macros.
6736         * syntax.c (scan_words, Fforward_comment, scan_lists,
6737         Fbackward_prefix_characters):
6738         * font-lock.c (find_context):
6739         Use them to instrument syntax caching. 
6740         * syntax.c (struct syntax_cache_statistics, scs_statistics,
6741         syntax_cache_statistics_function_names): New type and variables.
6742         * syntax.c (update_syntax_cache): Update and report statistics.
6743
6744         [Major syntax cache optimizations]
6745
6746         syntax.c (lookup_syntax_properties): Default off.
6747
6748         * syntax.h (UPDATE_SYNTAX_INTERNAL): New, implements UPDATE_SYNTAX*.
6749         * syntax.c (update_syntax_cache):
6750         Move init test from update_syntax_cache to UPDATE_SYNTAX_INTERNAL.
6751
6752         [Minor syntax cache optimizations and code clarifications]
6753
6754         * syntax.h (SYNTAX_COMMENT_BITS, SYNTAX_START_P, SYNTAX_END_P,
6755         SYNTAX_STYLES_MATCH_START_P, SYNTAX_STYLES_MATCH_1CHAR_P,
6756         SYNTAX_STYLES_MATCH_END_P, STYLE_FOUND_1CHAR_P, STYLE_FOUND_P,
6757         SYNTAX_COMMENT_MASK_END, SYNTAX_COMMENT_MASK_START,
6758         SYNTAX_COMMENT_1CHAR_MASK): Remove redundant argument `table'.
6759         (Code clarification.)
6760
6761         * syntax.c (scan_words, find_end_of_comment, scan_sexps_forward,
6762         scan_lists): Compute code from syncode, use Boolean macros instead
6763         of redundant masking operations.  (Code clarification; any decent
6764         compiler can do this optimization.)
6765
6766         * syntax.c (scan_lists): Rearrange switches (case Sstring_fence)
6767         for clarity.
6768
6769         * syntax.h, syntax.c (NEXT_SINGLE_PROPERTY_CHANGE,
6770         PREVIOUS_SINGLE_PROPERTY_CHANGE, update_syntax_cache): Conditionally
6771         use F*_single_property_change instead of F*_extent_change.
6772         Currently F*_single_property_change is _much_ less efficient.
6773
6774         * dired.c (Fdirectory_files): Qt not valid in syntax_cache.object.
6775         * syntax.h (SETUP_SYNTAX_CACHE_FOR_OBJECT):  Initialize
6776         syntax_cache.object properly, don't leave Qt or Qnil.
6777         (SYNTAX_CACHE_BYTE_TO_CHAR): Use SETUP_SYNTAX_CACHE_FOR_OBJECT.
6778         * syntax.c (update_syntax_cache): Use BUFFERP and STRINGP, not
6779         tests for Qt or Qnil.
6780
6781 2002-09-21  Stephen J. Turnbull  <stephen@xemacs.org>
6782
6783         * redisplay.c (point_in_line_start_cache): 
6784         * extents.c (print_extent_1):
6785         Fix warnings.
6786
6787         * extents.c (Fset_extent_property): Document `syntax-table' property.
6788
6789         * extents.h (Fnext_single_property_change): EXFUN it.
6790
6791 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
6792
6793         * search.c (clear_unused_search_regs): New static function.
6794         (search_buffer): 
6795         (simple_search): 
6796         (boyer_moore):
6797         Use it.  Fixes "stale match data" bug reported by Martin Stjernholm.
6798         Minor clarifications in comments.
6799
6800         * regex.c (re_match_2_internal): Ensure no stale submatches.
6801
6802 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
6803
6804         * event-Xt.c (enqueue_focus_event): Add missing prototype.
6805
6806 2002-08-29  Jerry James  <james@xemacs.org>
6807
6808         * lisp.h: structrures -> structures.
6809
6810 2002-06-03  Andy Piper  <andy@xemacs.org>
6811
6812         * frame.c (frame_conversion_internal): add conversion appropriate
6813         for setting frame dimensions in pixels.
6814
6815         * console.h (struct console_methods): add device-specific widget
6816         layout functions.
6817
6818         * emacs.c (main_1): initialize glyph vars.
6819
6820         * event-Xt.c (handle_focus_event_1): call handle_focus_event_2
6821         (handle_focus_event_2): new function. Allow focus to
6822         be set to a particular window and widget.
6823         (enqueue_focus_event): new function. Create a
6824         synthetic focus event.
6825         (emacs_Xt_handle_magic_event): call
6826         handle_focus_event_2.
6827
6828         * frame.c (Fset_frame_pixel_height): new function. Allow
6829         pixel-based sizing. Does the right thing on character-oriented
6830         displays.
6831         (Fset_frame_pixel_width): ditto.
6832         (Fset_frame_pixel_size): ditto.
6833         (syms_of_frame): declare.
6834
6835         * general-slots.h: add :vertically-justify and
6836         :horizontally-justify.
6837
6838         * glyphs-msw.c (xbm_create_bitmap_from_data): warning fix.
6839         (mswindows_widget_border_width): new function.
6840         (mswindows_combo_box_instantiate): set border widths.
6841         (console_type_create_glyphs_mswindows): declare.
6842
6843         * glyphs-widget.c:
6844         (check_valid_justification): allow vertical and horizontal
6845         justification.
6846         (widget_border_width): new function. Call device methods.
6847         (widget_instance_border_width): ditto.
6848         (logical_unit_height): new function. Determine the height of a
6849         logical-unit. Logical units are intended to provide grid-like
6850         layout for subcontrols in a layout. If the layout is
6851         :vertically-justify top then subcontrols will be positioned on
6852         logical-unit boundaries, thus allowing adjacent subcontrols to
6853         line up.
6854         (widget_logical_unit_height): ditto for widgets.
6855         (redisplay_widget): misc cleanup.
6856         (widget_spacing): new function. Call device specific
6857         methods. Intended to be the default gap between adjacent widgets.
6858         (widget_query_geometry): use new spacing functions to determine
6859         appropriate geometry.
6860         (initialize_widget_image_instance): initialize horizontal and
6861         vertical justification.
6862         (widget_instantiate): use logica-units where appropriate for
6863         sizing large widgets.
6864         (button_query_geometry): use widget_instance_border_width.
6865         (tree_view_query_geometry): ditto.
6866         (tab_control_query_geometry): ditto.
6867         (edit_field_query_geometry): new function.
6868         (layout_update): pick up :justify, :horizontally-justify and
6869         :vertically-justify none of which worked previously. :justify is
6870         used as a fallback for both horizontal and vertical justification.
6871         (layout_query_geometry): use logical units to size appropriately.
6872         (layout_layout): ditto.
6873         (Fwidget_logical_to_character_width): new function. Allow users to
6874         convert from logical units to characters so that frame sizes can
6875         be set appropriately.
6876         (Fwidget_logical_to_character_height): ditto.
6877         (syms_of_glyphs_widget): declare.
6878         (image_instantiator_edit_fields): add edit_field_query_geometry.
6879         (VALID_LAYOUT_KEYWORDS): declare :vertically-justify and
6880         :horizontally-justify.
6881         (specifier_vars_of_glyphs_widget): new function. Declare
6882         Vwidget_border_width which is not yet used.
6883
6884         * glyphs-x.c (x_map_subwindow): enqueue appropriate focus events.
6885         (x_widget_border_width): new function.
6886         (x_widget_instantiate): create a sensible name for widgets.
6887         (console_type_create_glyphs_x): declare x_widget_border_width.
6888
6889         * glyphs.h (DEFAULT_WIDGET_BORDER_WIDTH): new macro.
6890         (struct Lisp_Image_Instance): add :vertically-justify and
6891         :horizontally-justify.
6892         (LAYOUT_JUSTIFY_TOP): new.
6893         (IMAGE_INSTANCE_SUBWINDOW_H_JUSTIFY): new.
6894         (ROUND_UP): new macro. Round argument up to next integral
6895         interval.
6896
6897         * redisplay-output.c (redisplay_output_layout): misc formatting.
6898
6899         * symsinit.h: declare specifier_vars_of_glyphs_widget.
6900
6901 2002-08-23  Stephen J. Turnbull  <stephen@xemacs.org>
6902
6903         * XEmacs 21.4.9 "Informed Management" is released.
6904
6905 2002-08-19  Andy Piper  <andy@xemacs.org>
6906
6907         * fileio.c (Ffile_truename): on cygwin using win32 normalize to
6908         win32 format.
6909
6910         * realpath.c (xrealpath): normalize drive spec also so that dir
6911         sep chars are not mixed on cygwin.
6912
6913 2002-08-06  Jerry James  <james@xemacs.org>
6914
6915         * window.c (Fsplit_window): Count only half of the divider width
6916         against the left window when splitting horizontally. 
6917
6918 2002-06-24  Andy Piper  <andy@xemacs.org>
6919
6920         * toolbar-gtk.c (GTK_OUTPUT_BUTTONS_LOOP): output button if whole
6921         toolbar was cleared.
6922
6923         * toolbar-msw.c (mswindows_clear_frame_toolbars): new
6924         function. Split out from mswindows_output_frame_toolbars.
6925         (mswindows_output_frame_toolbars): move clear pieces to
6926         mswindows_output_frame_toolbars.
6927
6928         * toolbar-gtk.c (gtk_clear_frame_toolbars): new function. Split
6929         out from gtk_output_frame_toolbars.
6930         (gtk_output_frame_toolbars): move clear pieces to
6931         gtk_clear_frame_toolbars.
6932
6933         * toolbar-x.c (X_OUTPUT_BUTTONS_LOOP): always output buttons when
6934         the frame is cleared. How this ever worked before is a mystery.
6935         (x_output_frame_toolbars): Only output toolbars.
6936         (x_clear_frame_toolbars): new. Clear previous toolbar locations.
6937
6938         * gutter.c (update_gutter_geometry):
6939         Mark frame layout changed.
6940         (update_frame_gutter_geometry, update_frame_gutters):
6941         Respect frame_layout_changed.
6942
6943         * console.h (struct console_methods): add
6944         clear_frame_toolbars_method.
6945
6946         * redisplay.c (redisplay_frame): call
6947         update_frame_toolbars_geometry and re-order update_frame_toolbars.
6948
6949         * toolbar.h: declare update_frame_toolbars_geometry.
6950
6951         * toolbar.c (update_frame_toolbars_geometry): new function. Split
6952         out from update_frame_toolbars.  Call clear_frame_toolbars.
6953         (update_frame_toolbars): only output, do not change geometry.
6954
6955         * redisplay.c: add frame_layout_changed.
6956
6957         * redisplay.h: add frame_layout_changed.
6958         (CLASS_RESET_CHANGED_FLAGS): set it.
6959         (GLOBAL_RESET_CHANGED_FLAGS): ditto.
6960         (CLASS_REDISPLAY_FLAGS_CHANGEDP): test it.
6961         (GLOBAL_REDISPLAY_FLAGS_CHANGEDP): ditto.
6962
6963         * device.h (struct device): add frame_layout_changed.
6964         (MARK_DEVICE_FRAME_LAYOUT_CHANGED): new.
6965
6966         * frame.h (struct frame): add frame_layout_changed.
6967         (MARK_FRAME_LAYOUT_CHANGED): new.
6968
6969 2002-06-30  Mike Alexander  <mta@arbortext.com>
6970
6971         * event-msw.c (mswindows_need_event): Don't wait for a new message
6972         if the queue is not empty.  Suggested by Paul Moore.
6973
6974 2002-06-12  Andy Piper  <andy@xemacs.org>
6975
6976         * frame-msw.c (msprinter_init_frame_3): calculate the frame size
6977         for printing on accurately.
6978
6979 2002-06-09  Rick Rankin <rick_rankin@yahoo.com>
6980
6981         * event-msw.c (mswindows_wnd_proc): Add a handler for the
6982         WM_ACTIVATE message. Make sure that the frame is visible if the
6983         window is visible. This seemss to fix the problem where XEmacs
6984         appears to freeze after switching desktops with certain virtual
6985         window managers.
6986         (debug_output_mswin_message): Added code to output message
6987         parameters for WM_WINDOWPOSCHANGED, 
6988         WM_WINDOWPOSCHANGING, WM_MOVE, and WM_SIZE messages.
6989
6990 2002-05-25  Andy Piper  <andy@xemacs.org>
6991
6992         * select-x.c (vars_of_select_x): Fix docstring of
6993         x-selection-strict-motif-ownership
6994
6995 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
6996
6997         * keymap.c (get_keymap):
6998         Add comment about do_autoload GCPROs own args.
6999
7000 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
7001
7002         * bytecode.c (execute_optimized_program): check_opcode ifdef
7003         ERROR_CHECK_BYTE_CODE.
7004
7005 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
7006
7007         Thanks to Ben Wing and Michael Sperber.
7008
7009         * eval.c (Fcommand_execute):
7010         (Feval):
7011         (Ffuncall):
7012         (Fmacroexpand_internal):
7013         (function_argcount):
7014         callint.c (Fcall_interactively):
7015         Add comment about do_autoload GCPROs own args.
7016
7017         * (do_autoload): GCPRO both args as well as local Lisp_Object.
7018
7019         * eval.c (Ffuncall): Extra braces to placate GCC.
7020
7021 2002-08-10  Stephen J. Turnbull  <stephen@xemacs.org>
7022
7023         * backtrace.h (grow_specpdl):
7024         (SPECPDL_RESERVE):
7025         * EmacsFrame.c (EmacsFrameSetValues):
7026         * eval.c (grow_specpdl):
7027         * ExternalShell.c (hack_event_masks_1):
7028         * glyphs-x.c (convert_EImage_to_XImage): 
7029         (x_finalize_image_instance):
7030         * ralloc.c (page_size):
7031         (r_alloc_sbrk):
7032         * xgccache.c (gc_cache_hash):
7033         Fix unsigned comparison warnings.
7034
7035 2002-07-29  Jerry James  <james@xemacs.org>
7036
7037         * lread.c (locate_file): Any nonnegative return value indicates
7038         success if MODE is nonnegative.
7039
7040 2002-08-03  Brian A Palmer  <bpalmer@rescomp.Stanford.EDU>
7041
7042         * emacs.c (Fsplit_string_by_char): Make 2nd arg SEPCHAR a required
7043         argument. 
7044
7045 2002-07-17  Stephen J. Turnbull  <stephen@xemacs.org>
7046
7047         * process-unix.c (unix_send_process): #ifdef the coding_stream member.
7048
7049         * dumper.c (pdump_get_indirect_count):
7050         (pdump_scan_by_alignment):
7051         (pdump_dump_root_struct_ptrs):
7052         (pdump_dump_rtables):
7053         (pdump_dump_root_objects):
7054         (pdump):
7055         * nas.c (WaveOpenDataForReading):
7056         * fns.c (print_bit_vector):
7057         * font-lock.c (SINGLE_SYNTAX_STYLE):
7058         * glyphs.c (check_for_ignored_expose):
7059         (find_matching_subwindow):
7060         * glyphs-eimage.c:
7061         * imgproc.c (get_histogram):
7062         * redisplay.c (point_in_line_start_cache):
7063         * redisplay-output.c (redisplay_unmap_subwindows):
7064         * symbols.c (defsymbol_massage_name_1):
7065         (defkeyword_massage_name):
7066         (deferror_massage_name_and_message):
7067         * redisplay-x.c (x_output_string): 
7068         * emacs.c (run_temacs_argv_size, run_temacs_args_size):
7069         * frame.h (struct frame):
7070         * filelock.c (current_lock_owner):
7071         * doprnt.c (emacs_doprnt_1):
7072         * lisp.h (struct Lisp_Bit_Vector):
7073         (DO_REALLOC):
7074         Fix warnings.
7075
7076 2002-02-13  Ben Wing  <ben@xemacs.org>
7077
7078         * event-stream.c (reset_key_echo):
7079         * event-stream.c (reset_this_command_keys):
7080         * event-stream.c (execute_command_event):
7081         If console is dead as a result of C-x 5 0, then post-command stuff
7082         needs to be careful and do only non-console-specific stuff.
7083
7084 2002-07-01  Mike Sperber <mike@xemacs.org>
7085
7086         * process-unix.c (unix_send_process): Mark coding_outstream as
7087         non-open upon SIGPIPE.
7088
7089         * event-stream.c (Fnext_event): Reorder switch cases to something
7090         that makes sense.
7091
7092 2001-08-13  Dmitry Astapov  <adept@umc.com.ua>
7093
7094         * event-Xt.c (maybe_define_x_key_as_self_inserting_character):
7095         Don't bogusly reinitialize ascii_character property.
7096
7097 2002-07-08  Mike Sperber <mike@xemacs.org>
7098
7099         * process.c (Fstart_process_internal): Do error checking before we
7100         fork off the child, so the child can't muck with the state of the
7101         parent.
7102
7103 2002-07-08  Mike Sperber <mike@xemacs.org>
7104
7105         * ralloc.c (init_ralloc): Allocate properly for pdump.
7106
7107 2002-06-12  Andy Piper  <andy@xemacs.org>
7108
7109         * glyphs.c (query_string_geometry): check the string.
7110
7111         * glyphs-widget.c (widget_logical_unit_height): cope with nil
7112         widget names.
7113
7114 2002-06-17  Jerry James  <james@xemacs.org>
7115
7116         * sysdll.c: Remove RTLD_GLOBAL initialization.
7117         * sysdll.c (dll_open): Do not use RTLD_GLOBAL.
7118
7119 2002-06-25  Stephen J. Turnbull  <stephen@xemacs.org>
7120
7121         * search.c (skip_chars): Port Ben's crash fix and efficiency patch.
7122
7123 2002-05-16  Mathias Grimmberger  <mgri@zaphod.sax.de>
7124
7125         * sysdep.c (sys_rename): Make sys_rename work for the case where
7126         Windows rename sets errno to EACCES if target file exists.
7127
7128 2002-05-21  Jonathan Harris  <jonathan@xemacs.org>
7129
7130         * device-msw.c (mswindows_handle_page_setup_dialog_box):
7131         Fix detection of metric units to work on Win95
7132
7133 2002-05-21  Stephen J. Turnbull  <stephen@xemacs.org>
7134
7135         * syswindows.h: #define LOCALE_RETURN_NUMBER.  Why, I don't know.
7136
7137 2002-04-25  Andy Piper  <andy@xemacs.org>
7138
7139         * redisplay.c (create_text_block): Remove extra comment trailer.
7140
7141 2002-04-24  Andy Piper  <andy@xemacs.org>
7142
7143         * redisplay.c (create_text_block): Don't actually add propagation
7144         data if the line ends after we have added a glyph.
7145
7146 2002-04-22  Andy Piper  <andy@xemacs.org>
7147
7148         * extents.c (extent_fragment_update): check for glyphs we have
7149         previously displayed.
7150         * extents.c (print_extent_1): warning removal.
7151         * extents.h: change prototype.
7152         * redisplay-output.c (redisplay_normalize_glyph_area): calculate
7153         widths correctly for wide glyphs.
7154         * redisplay.c (position_redisplay_data_type): add end_glyph_width.
7155         * redisplay.c (prop_type): add PROP_GLYPH.
7156         * redisplay.c (struct prop_block): add glyph type
7157         * redisplay.c (add_glyph_rune): when adding part of a glyph add it
7158         to the propagation data.
7159         * redisplay.c (create_text_block): if there is a glyph in the
7160         propagation data use it to salt extent_fragment_update.
7161         * redisplay.c (create_string_text_block): ditto.
7162
7163 2002-04-13  Nix  <nix@esperi.demon.co.uk>
7164
7165         * redisplay.h (struct rune): Add ascent, descent, and yoffset fields.
7166         * redisplay-output.c (compare_runes): Compare them.
7167         * redisplay.c: Update copyright date.
7168         * redisplay.c (pos_data): Add need_baseline_computation field.
7169         * redisplay.c (add_glyph_rune): Update ascent, descent, and
7170         need_baseline_computation; zero yoffset. Set max_pixmap_height
7171         for all pixmaps, not just automatically positioned ones.
7172         * redisplay.c (calculate_yoffset): New, compute yoffset values.
7173         * redisplay.c (calculate_baseline): New, compute textual baseline.
7174         * redisplay.c (add_glyph_rune): Call them.
7175         * redisplay.c (create_text_block): Likewise.
7176         * redisplay.c (create_overlay_glyph_block): Likewise.
7177         * redisplay.c (add_margin_runes): Likewise.
7178         * redisplay.c (create_string_text_block): Likewise. Fix tabdamage.
7179
7180         * redisplay.h: (redisplay_calculate_display_boxes): Change prototype.
7181         * redisplay-output.c (redisplay_calculate_display_boxes): Use yoffset.
7182         * redisplay-msw.c (mswindows_output_blank): Pass 0 as yoffset.
7183         * redisplay-msw.c (mswindows_output_string): Likewise.
7184         * redisplay-msw.c (mswindows_output_display_block): Pass yoffset.
7185         * redisplay-gtk.c (gtk_output_display_block): Likewise.
7186         * redisplay-x.c (x_output_display_block): Likewise.
7187
7188 2002-03-28  Ben Wing  <ben@xemacs.org>
7189
7190         * redisplay.c: Fixed bug in redisplay
7191         w.r.t. hscroll/truncation/continuation glyphs causing jumping up
7192         and down of the lines, since they're bigger than the line
7193         size. (It was seen most obviously when there's a horizontal scroll
7194         bar, e.g. do C-h a glyph or something like that.) The problem was
7195         that the glyph-contrib-p setting on glyphs was ignored even if it
7196         was set properly, which it wasn't until now.
7197
7198 2002-04-24  Andy Piper  <andy@xemacs.org>
7199
7200         * lisp.h (Dynarr_end): Fix definition.
7201
7202 2002-02-06  Adrian Aichner  <adrian@xemacs.org>
7203
7204         * redisplay.c (mark_redisplay): Remove call to
7205         update_frame_window_mirror.
7206
7207 2001-11-15  Andy Piper  <andy@xemacs.org>
7208
7209         * win32.c (Fmswindows_shell_execute): fix handling of URL's under
7210         cygwin (again).
7211
7212 2002-02-13  Andy Piper  <andy@xemacs.org>
7213
7214         * event-msw.c (mswindows_wnd_proc): only mark the frame visible if
7215         we did in fact enqueue the XM_MAPFRAME event.
7216
7217 2002-01-15  Adrian Aichner  <adrian@xemacs.org>
7218
7219         * event-msw.c (mswindows_wnd_proc): Add handling of WM_SHOWWINDOW
7220         to fix problem switching between virtual desktops under virtuawin
7221         virtual window manager.
7222
7223 2001-07-30  Adrian Aichner  <adrian@xemacs.org>
7224
7225         * event-msw.c: Typo fix.
7226         * event-msw.c (mswindows_wnd_proc): Set FRAME_VISIBLE_P after
7227         magic XM_MAPFRAME event has been sent.
7228
7229 2001-11-23  Andy Piper  <andy@xemacs.org>
7230
7231         * event-msw.c (mswindows_wnd_proc): Don't pump mousewheel events.
7232
7233 2001-11-21  Andy Piper  <andy@xemacs.org>
7234
7235         * scrollbar-msw.c (mswindows_handle_mousewheel_event): cope with
7236         mouse events outside the frame.
7237
7238 2002-03-20  Andy Piper  <andy@xemacs.org>
7239
7240         * menubar-msw.c (mswindows_popup_menu): warning removal.
7241         * dialog-msw.c (dialog_popped_down): ditto.
7242
7243 2001-12-11  Andy Piper  <andy@xemacs.org>
7244
7245         * dialog-msw.c (dialog_popped_down): new function. unset popup_up_p.
7246         * dialog-msw.c (mswindows_make_dialog_box_internal): set
7247         popup_up_p.
7248         * menubar-msw.c (unsafe_handle_wm_initmenupopup_1): ditto.
7249         * menubar-msw.c (mswindows_handle_wm_command): ditto.
7250         * menubar-msw.c (mswindows_popup_menu): ditto.
7251
7252 2001-10-29  Andy Piper  <andy@xemacs.org>
7253
7254         * dialog-msw.c (handle_directory_dialog_box): quit if the user
7255         cancels.
7256
7257 2002-01-03  Andy Piper  <andy@xemacs.org>
7258
7259         * realpath.c (ABS_LENGTH): dtrt for cygwin systems using drive
7260         letters.
7261         (xrealpath): ditto.
7262
7263 2002-03-29  Jonathan Harris  <jonathan@xemacs.org>
7264
7265         * device-msw.c (plist_get_margin): Add arg specifying mm or inches
7266         * device-msw.c (plist_set_margin): Fix multiplicand used for mm
7267         * device-msw.c (mswindows_handle_page_setup_dialog_box):
7268         Detect and handle case where machine is set up for metric units
7269
7270 2002-04-02  Andy Piper  <andy@xemacs.org>
7271
7272         * dired-msw.c (mswindows_get_files): 
7273         * nt.c (mswindows_stat): SetErrorMode() so that file errors are
7274         completely handled by XEmacs. Suggested by Thomas Vogler
7275         <mail@thomas-vogler.de>.
7276
7277 2001-11-14  Andy Piper  <andy@xemacs.org>
7278
7279         * nt.c (REG_ROOT): change registry key to XEmacs.
7280
7281 2002-04-27  Andy Piper  <andy@xemacs.org>
7282
7283         * glyphs-msw.c (mswindows_widget_instantiate): remove dead-code.
7284
7285 2002-04-26  Andy Piper  <andy@xemacs.org>
7286
7287         * glyphs-msw.c (mswindows_map_subwindow): observe :initial-focus
7288         behavior.
7289
7290 2002-03-14  Mike Alexander  <mta@arbortext.com>
7291
7292         * event-msw.c (mswindows_unwait_process): New, remove process from
7293         wait list
7294         * process-nt.c (nt_finalize_process_data): Call
7295         mswindows_unwait_process
7296         * console-msw.h: Declare mswindows_unwait_process
7297
7298 2002-05-14  Stephen J. Turnbull  <stephen@xemacs.org>
7299
7300         * editfns.c (Fdecode_time):
7301         (Fformat_time_string):
7302         Check for invalid time.  Thanks to Nick Pakoulin <npak@ispras.ru>.
7303         (make_time): Warning elimination (change arg name).
7304
7305 2001-11-24  Andy Piper  <andy@xemacs.org>
7306
7307         * window.c (Fsplit_window): Doc return type.
7308
7309 2002-04-01  Andy Piper  <andy@xemacs.org>
7310
7311         * emacs.c (Fkill_emacs): Only output message box in interactive
7312         mode.
7313
7314 2002-04-26  Andy Piper  <andy@xemacs.org>
7315  
7316         * config.h.in: pull in 21.5.x change to stop alloca warnings under
7317         cygwin.
7318
7319 2002-03-18  Gregory Steuck  <greg-xemacs-patch@nest.cx>
7320
7321         * unexelf.c:  Use ELFSIZE or define from _LP64 to indicate a 64
7322         bit platform.
7323
7324 2002-05-09  Stephen J. Turnbull  <stephen@xemacs.org>
7325
7326         * XEmacs 21.4.8 "Honest Recruiter" is released.
7327
7328 2002-05-07  Nix  <nix@esperi.demon.co.uk>
7329
7330         Supersedes 2002-04-17 patch.
7331
7332         * process.h (PROCESS_LIVE_P): Use the process status as
7333         evidence of health, not the state of the input stream.
7334         (PROCESS_READABLE_P): Say if the process is readable
7335         from. (It may be dead nonetheless.)
7336         (CHECK_READABLE_PROCESS): Test for that condition.
7337
7338         * process.c (create_process): Use PROCESS_READABLE_P.
7339         (read_process_output, set_process_filter): Likewise.
7340
7341         * process.c (Fprocess_input_coding_system): Use CHECK_READABLE_PROCESS.
7342         (Fset_process_input_coding_system, Fprocess_coding_system): Likewise.
7343
7344         This code is #if 0'd, this is not the time to add new functions:
7345
7346         * process.c (Fprocess_readable_p): Report readability status.
7347         * process.c (Qprocess_readable_p): New, associated symbol...
7348         * process.c (syms_of_process): ... initialize it.
7349
7350 2002-05-04  Stephen J. Turnbull  <stephen@xemacs.org>
7351
7352         * XEmacs 21.4.7 "Economic Science" is released.
7353
7354 2002-04-17  Nix  <nix@esperi.demon.co.uk>
7355
7356         * process.h (PROCESS_LIVE_P): Use the process status as
7357         evidence of health, not the state of the input stream.
7358
7359 2002-04-30  Charles G. Waldman <cgw@xemacs.org>
7360
7361         * sysdep.c (sys_siglist): change "signum" to "signal"
7362
7363 2001-04-21  Martin Buchholz  <martin@xemacs.org>
7364
7365         * s/darwin.h: New file.
7366         Thanks to Greg Parker <gparker@cs.stanford.edu>.
7367         
7368 2002-04-23  Andreas Jaeger  <aj@suse.de>
7369
7370         * s/linux.h (LIB_STANDARD): Define correctly for x86-64 and s390x
7371         which use lib64 for 64-bit libs.
7372         (START_FILES): Likewise.
7373
7374 2002-02-11  Mike Sperber  <mike@xemacs.org>
7375
7376         * device-x.c: 
7377         (x_IO_error_handler):
7378         (x_init_device): Temporarily keep device in static variable
7379         `device_being_initialized' so we can recover gracefully from
7380         internal XOpenDevice failure.  (XOpenDevice is documented to
7381         return NULL on failure, but sometimes calls the IO error handler
7382         instead.)
7383
7384 2002-01-31  John H. Palmieri  <palmieri@math.washington.edu>
7385
7386         * dired.c (Ffile_name_all_completions): Change documentation --
7387         remove reference to completion-ignored-extensions.
7388         * dired.c (vars_of_dired): Change documentation for
7389         completion-ignored-extensions -- remove reference to
7390         file-name-all-completions.
7391
7392 2002-03-06  Jerry James  <james@xemacs.org>
7393
7394         * emodules.c (emodules_load): Fix multiple loading of same module.
7395
7396 2002-01-25  Andrew Begel <abegel@cs.berkeley.edu>
7397         * sysdll.c (dll_open): Changed to use RTLD_NOW instead of
7398         RTLD_LAZY to avoid incorrect symbol binding when using nested
7399         shared libraries on Solaris.
7400
7401 2002-02-12  Stephen J. Turnbull  <stephen@xemacs.org>
7402
7403         * fileio.c (Ffind_file_name_handler): Improve docstring.
7404
7405 2002-01-20  Stephen J. Turnbull  <stephen@xemacs.org>
7406
7407         * fns.c (Fmapconcat): Improve docstring.
7408
7409 2002-01-03  Eric Gillespie, Jr.  <epg@pretzelnet.org>
7410
7411         * device-gtk.c: Add prototype for
7412         emacs_gtk_selection_clear_event_handle.
7413         (gtk_init_device): Call gtk_selection_add_target for CLIPBOARD
7414         selection.  Setup signal handler for "selection_clear_event"
7415         (emacs_gtk_selection_clear_event_handle).
7416
7417         * select-gtk.c (emacs_gtk_selection_clear_event_handle): Handle
7418         other applications owning the clipboard (based on
7419         x_handle_selection_clear).
7420
7421 2001-12-23  William M. Perry  <wmperry@gnu.org>
7422
7423         * menubar-gtk.c (gtk_popup_menu)  Add sanity checks, fix crash.
7424         
7425 2002-01-04  Martin Buchholz  <martin@xemacs.org>
7426
7427         * keymap.c (define_key_alternate_name): Parenthesize EQ.
7428
7429 2001-12-17  Stephen J. Turnbull  <stephen@xemacs.org>
7430
7431         * XEmacs 21.4.6 "Common Lisp" is released.
7432
7433 2001-12-16  Torsten Duwe  <duwe@caldera.de>
7434
7435         * search.c (Freplace_match): Add missing sub-expression functionality.
7436
7437         * buffer.c (decode_buffer): Add a check for pointer type to
7438         decode_buffer, before gcc's CSE optimization reorders a
7439         dereference in front of the allow_string test.
7440
7441 2001-11-16  Darryl Okahata  <darrylo@xemacs.org>
7442
7443         * window.c (window_loop): Fix bug that sometimes prevented
7444         window_loop() from iterating across multiple devices.  Also, at
7445         Ben's request, changed infloop-detecting code to abort() instead
7446         of silently terminating window_loop().
7447
7448 2001-11-21  Stephen J. Turnbull  <stephen@xemacs.org>
7449
7450         Based on analysis and patch by Simon Josefson <jas@extundo.com>.
7451         * editfns.c (make_time): New function.
7452         (Fencode_time): Use it instead of wasteful_word_to_lisp.
7453         * lisp.h (make_time): Prototype and comment it.
7454         * dired.c (wasteful_word_to_lisp): Deprecate.
7455         (Ffile_attributes): Use make_time() instead of wasteful_word_to_lisp().
7456
7457 2001-10-31  Kyle Jones  <kyle_jones@wonderworks.com>
7458
7459         * fileio.c (auto_save_1): Use current coding system, not
7460         escape-quoted.
7461
7462 2001-11-13  Ben Wing  <ben@xemacs.org>
7463
7464         * window.c:
7465         * window.c (window_truncation_on):
7466         * window.c (syms_of_window):
7467         truncate-partial-width-windows should respect the buffer being
7468         displayed, like other redisplay vars.
7469
7470 2001-11-13  Hirokazu FUKUI  <hfukui@sannet.ne.jp>
7471
7472         * event-stream.c (Fread_key_sequence): save current buffer.
7473
7474 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
7475
7476         * ntheap.c (_heap_init): Don't redefine in VS.NET (MSC >= 1300).
7477
7478 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
7479
7480         * alloc.c (lcrecord_stats): Add space for types defined in modules.
7481
7482 2001-10-26  Mike Alexander  <mta@arbortext.com>
7483
7484         * event-msw.c (slurper_free_shared_data_maybe): Free the pipe handle.
7485
7486 2001-10-25  Andy Piper  <andy@xemacs.org>
7487
7488         * ChangeLog:
7489         * dialog-msw.c (handle_directory_proc): new function.
7490          (handle_directory_dialog_box): new fucntion.
7491          (handle_file_dialog_box): use new directory dialog support.
7492          (mswindows_make_dialog_box_internal): ditto.
7493         * event-msw.c (mswindows_wnd_proc): minor fix to scrollbar event
7494         handling.
7495         (mswindows_find_frame): make global.
7496         * fileio.c (Fexpand_file_name): build fix.
7497         * general-slots.h: add Qdirectory.
7498         * scrollbar-msw.c (mswindows_handle_scrollbar_event): fix focus
7499         handling.
7500         * syswindows.h (LOCAL_TO_WIN32_FILE_FORMAT): fix problem with
7501         cygwin not leaving win32 paths unchanged.
7502         * win32.c (Fmswindows_cygwin_to_win32_path): new function. Use the
7503         cygwin runtime to do path conversion.
7504         (Fmswindows_shell_execute): fix cygwin handling of URLs.
7505         (syms_of_win32): add new function.
7506         * window.c (window_loop): build fix.
7507
7508 2001-10-15  Andy Piper  <andy@xemacs.org>
7509
7510         (Fmswindows_shell_execute): fix handling of URL's under cygwin.
7511
7512 2001-10-23  Stephen J. Turnbull  <stephen@xemacs.org>
7513
7514         * XEmacs 21.4.5 "Civil Service" is released.
7515
7516 2001-04-08  Danny Colascione  <qtmstr@optonline.net>
7517
7518         * glyphs-x.c: Force buffer-tab highlight update when moving the
7519         buffer, avoiding an ugly black border, used for keyboard focus
7520         indication, on a widget that can never have keyboard focus, the
7521         buffer tab.
7522
7523 2001-08-30  Daiki Ueno  <ueno@unixuser.org>
7524
7525         * process-unix.c (unix_open_multicast_group): Remove too much
7526         conversion between host and network byte order.
7527
7528 2001-09-10  Nix  <nix@esperi.demon.co.uk>
7529
7530         * src/buffer.c (kill_buffer): Undedicate windows showing BUF
7531         before replacing them.
7532
7533         * src/window.c (window_loop): Implement new UNDEDICATE_BUFFER
7534         operation.
7535
7536         * src/window.c (undedicate_windows): Use it.
7537         * src/window.h: Add prototype.
7538
7539 2001-09-17  Ben Wing  <ben@xemacs.org>
7540
7541         * fileio.c (normalize_filename):
7542         * fileio.c (Fexpand_file_name):
7543         Fix various C++ compile errors in Andy's recent code.
7544         
7545         * callint.c (Fcall_interactively):
7546         * editfns.c (Ftemp_directory):
7547         * editfns.c (Fuser_full_name):
7548         * emacs.c (argmatch):
7549         * lread.c (locate_file_map_suffixes):
7550         * redisplay-x.c (x_ring_bell):
7551         Fix sign-compare warnings.
7552         
7553 2001-09-08  Andy Piper  <andy@xemacs.org>
7554
7555         * fileio.c (normalize_filename): copied from nt.c
7556         * (Ffile_name_directory): enable win32 paths under cygwin.
7557         * (Ffile_name_nondirectory): ditto.
7558         * (directory_file_name): ditto.
7559         * (Fexpand_file_name): ditto.
7560         * (Ffile_truename): ditto.
7561         * (Fsubstitute_in_file_name): ditto.
7562         * (Ffile_name_absolute_p): ditto.
7563         * (Ffile_readable_p): ditto.
7564
7565 2001-09-08  Andy Piper  <andy@xemacs.org>
7566
7567         * device-msw.c (mswindows_finish_init_device): remove dde
7568         initialization.
7569         * device-msw.c (mswindows_init_dde): factor out from
7570         mswindows_finish_init_device()
7571         * device-msw.c (init_mswindows_very_early): new function
7572         initialize but don't enable dde.
7573         * emacs.c (main_1): call init_mswindows_very_early.
7574         * event-msw.c:
7575         * event-msw.c (mswindows_dde_callback): only execute when we are
7576         ready.
7577         * symsinit.h: declare init_mswindows_very_early.
7578
7579 2001-05-02  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7580
7581         [sjt: This has been in 21.5 for months with no complaints.]
7582
7583         * console.h (struct console_methods): Added flags member.
7584         (CONSOLE_IMPLEMENTATION_FLAGS): Defined.
7585         (CONMETH_IMPL_FLAG):
7586         (CONSOLE_IMPL_FLAG): Macro to check implememntation flags.
7587         Defined XDEVIMPF_DONT_PREEMPT_REDISPLAY.
7588
7589         * device.c (window_system_pixelated_geometry): Use the above macros.
7590
7591         * device.h (DEVICE_IMPL_FLAG): Macro to check a device
7592         implememntation flag.
7593         * device.h (DEVICE_DISPLAY_P): Use it.
7594
7595         * frame.c (delete_frame_internal): Use the above macro.
7596
7597         * redisplay.c (redisplay_device): Use it.
7598         (redisplay_device): Obey XDEVIMPF_DONT_PREEMPT_REDISPLAY.
7599         (redisplay_frame): Ditto.
7600
7601         * device-msw.c (mswindows_device_implementation_flags): Removed.
7602         (msprinter_device_implementation_flags): Removed.
7603         (console_type_create_device_mswindows): Removed references to
7604         implementation_flags methods, set implementation flags here.
7605         (console_type_create_device_mswindows): Added XDEVIMPF_DONT_PREEMPT.
7606
7607         * device-gtk.c (gtk_device_implementation_flags): Removed method.
7608         (console_type_create_device_gtk): Removed method declaration.
7609         Added commented out statement which semantically matches the
7610         commented out statement in the above removed method.
7611
7612 2001-04-14  Gordon Sadler  <gbsadler1@lcisp.com>
7613
7614         The attached patch fixes a few warnings. 
7615
7616         * src/emacs.c: prototype console_type_create_select_gtk for GTK only
7617         * src/frame-gtk.c: guard against GNOME calls in GTK only
7618         * src/redisplay-gtk.c: include <sys/poll.h> #ifdef HAVE_POLL
7619         * src/select-gtk.c: prototype lisp_to_time
7620
7621 2001-06-08  Ben Wing  <ben@xemacs.org>
7622
7623         ------ gc-in-window-procedure fixes ------
7624         
7625         * alloc.c:
7626         * alloc.c (struct post_gc_action):
7627         * alloc.c (register_post_gc_action):
7628         * alloc.c (run_post_gc_actions):
7629         * alloc.c (garbage_collect_1):
7630         Create "post-gc actions", to avoid those dreaded "GC during window
7631         procedure" problems.
7632
7633         * event-msw.c:
7634         Abort, clean and simple, when GC in window procedure.  We want
7635         to flush these puppies out.
7636
7637         * glyphs-msw.c:
7638         * glyphs-msw.c (finalize_destroy_window):
7639         * glyphs-msw.c (mswindows_finalize_image_instance):
7640         Use a post-gc action when destroying subwindows.
7641
7642         * lisp.h:
7643         Declare register_post_gc_action().
7644
7645         * scrollbar-msw.c:
7646         * scrollbar-msw.c (unshow_that_mofo):
7647         Use a post-gc action when unshowing scrollbar windows, if in gc.
7648
7649         * redisplay.c (mark_redisplay):
7650         Add comment about the utter evilness of what's going down here.
7651
7652         ------ cygwin setitimer fixes ------
7653         
7654         * Makefile.in.in (sheap_objs):
7655         * Makefile.in.in (profile_objs):
7656         * Makefile.in.in (objs):
7657         Compile profile.c only when HAVE_SETITIMER.
7658         
7659         * nt.c (mswindows_sigset):
7660         * nt.c (mswindows_sighold):
7661         * nt.c (mswindows_sigrelse):
7662         * nt.c (mswindows_sigpause):
7663         * nt.c (mswindows_raise):
7664         * nt.c (close_file_data):
7665         Style fixes.
7666         
7667         * nt.c:
7668         Move setitimer() emulation to win32.c, because Cygwin needs it too.
7669         
7670         * profile.c:
7671         * profile.c (Fstart_profiling):
7672         * profile.c (Fstop_profiling):
7673         Make sure we don't compile if no setitimer().  Use qxe_setitimer()
7674         instead of just plain setitimer().
7675         
7676         * signal.c:
7677         * signal.c (set_one_shot_timer):
7678         * signal.c (alarm):
7679         Define qxe_setitimer() as an encapsulation around setitimer() --
7680         call setitimer() directly unless Cygwin or MS Win, in which case
7681         we use our simulated version in win32.c.
7682         
7683         * systime.h:
7684         * systime.h (struct itimerval):
7685         * systime.h (ITIMER_REAL):
7686         Prototype mswindows_setitimer() and qxe_setitimer().  Long
7687         comment about "qxe" and the policy regarding encapsulation.
7688
7689         * win32.c:
7690         * win32.c (setitimer_helper_proc):
7691         * win32.c (setitimer_helper_period):
7692         * win32.c (setitimer_helper):
7693         * win32.c (mswindows_setitimer):
7694         Move setitimer() emulation here, so Cygwin can use it.
7695         Rename a couple of functions and variables to be longer and more
7696         descriptive.  In setitimer_helper_proc(), send the signal
7697         using either mswindows_raise() or (on Cygwin) kill().  If for
7698         some reason we are still getting lockups, we'll change the kill()
7699         to directly invoke the signal handlers.
7700
7701         ------ windows shell fixes ------
7702         
7703         * callproc.c:
7704         * ntproc.c:
7705         Comments about how these two files must die.
7706
7707         * callproc.c (init_callproc):
7708         On MS Windows, init shell-file-name from SHELL, then COMSPEC,
7709         not just COMSPEC. (more correct and closer to FSF.) Don't
7710         force a value for SHELL into the environment. (Comments added
7711         to explain why not.)
7712         
7713         * nt.c (init_user_info):
7714         Don't shove a fabricated SHELL into the environment.  See above.
7715
7716 2001-06-01  Ben Wing  <ben@xemacs.org>
7717
7718         * Makefile.in.in (ldflags):
7719         eliminate that pesky "defaulting to 00401000" warning.
7720         * nt.h:
7721         eliminate warnings.
7722
7723 2001-06-15  Golubev I. N.  <gin@mo.msk.ru>
7724
7725         * s/sco5.h (FORCE_ALLOCATE_PTY_THE_OLD_FASHIONED_WAY): #define.
7726         * process-unix.c (allocate_pty): #ifndef "modern" pty allocation.
7727
7728 2001-04-24  Jerry James <james@xemacs.org>
7729
7730         * faces.h: pass parameters to Fadd_spec_to_specifier in the
7731         correct order.
7732
7733 2001-06-01  Ben Wing  <ben@xemacs.org>
7734
7735         * event-msw.c (debug_mswin_messages):
7736         conditionalize the messages that were causing compile errors.
7737         (if only macros could generate #ifdef statements ...)
7738
7739 2001-07-28  Stephen J. Turnbull  <stephen@xemacs.org>
7740
7741         * XEmacs 21.4.4 "Artificial Intelligence" is released.
7742
7743 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
7744
7745         * event-msw.c (mswindows_wnd_proc): Add GC debugging assert.
7746
7747 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
7748
7749         * config.h.in (IPV6_CANONICALIZE): New #define for --with-ipv6-lookup.
7750         * process-unix.c (unix_canonicalize_host_name):
7751         sysdep.c (init_system_name):
7752         Use it to conditionally support IPv6 canonicalization.
7753
7754 2001-05-31  Paul Stodghill  <stodghil@cs.cornell.edu>
7755
7756         * event-msw.c:
7757         Cygwin does not define WM_IME_xxx. Modify the #if's accordingly.
7758
7759 2001-05-19  Paul Krause  <paulkrause1@mediaone.net>
7760
7761         * scrollbar-msw.c: Fixes a crash that occurs on Windows when an
7762         attempt is made to scroll when no scroll bar is available.
7763
7764 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
7765
7766         * input-method-motif.c (XIM_delete_frame): New callback.
7767         (XIM_init_frame): Register it.  (Reapplied by SJT, it somehow
7768         got deleted from 21.4.3.)
7769
7770 2001-06-01  Ben Wing  <ben@xemacs.org>
7771
7772         * nt.c (mswindows_utime):
7773         * nt.c (close_file_data):
7774         fix off-by-one-indirection error.
7775
7776 2001-05-29  Adrian Aichner  <adrian@xemacs.org>
7777
7778         * fileio.c: Include nt.h.  Remove lisp_string_set_file_times()
7779         because set_file_times() now takes Lisp_Object path, instead of
7780         char*.
7781         * nt.c: Include buffer.h.
7782         * nt.c (convert_from_time_t): New.
7783         * nt.c (mswindows_utime): New.  Use utime, since SetFileTime does
7784         not set mtime correctly.
7785         * nt.h: Declare mswindows_utime().
7786         * sysdep.c (set_file_times): set_file_times() now takes Lisp_Object
7787         path, instead of char*.
7788         * systime.h: Include <sys/utime.h> on WIN32_NATIVE.
7789
7790 2001-05-30  Ben Wing  <ben@xemacs.org>
7791
7792         For 21.4:
7793
7794         (Stephen, just take all event-msw.c patches.  This includes
7795         the "iconify" fix below.)
7796
7797         * event-msw.c:
7798         * event-msw.c (mswindows_dequeue_dispatch_event):
7799         * event-msw.c (assert):
7800         * event-msw.c (emacs_mswindows_quit_p):
7801         * event-msw.c (debug_mswin_messages):
7802         * event-msw.c (debug_output_mswin_message):
7803         * event-msw.c (vars_of_event_mswindows):
7804         Fix yet more problems with C-g handling.
7805         Implement debug-mswindows-events.
7806         
7807 2001-05-24  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7808
7809         * event-msw.c (WM_DROPFILES): Use correct type for OLE characters.
7810         
7811 2001-05-23  Ben Wing  <ben@xemacs.org>
7812
7813         * event-msw.c (winsock_writer):
7814         * event-msw.c (winsock_closer):
7815         prior kludgy code was clobbering the buffer, thinking it was
7816         "unused" space to store an unneeded return value; instead, use
7817         the variable we've already got staring us in the face.
7818
7819 2001-05-17  Andy Piper  <andy@xemacs.org>
7820
7821         * sysfile.h: don't assume that file attributes are boolean
7822
7823 2001-05-23  Ben Wing  <ben@xemacs.org>
7824
7825         * device-msw.c (msprinter_init_device):
7826         signal an error rather than crash with an unavailable network
7827         printer (from Mike Alexander).
7828         
7829         * event-msw.c:
7830         * event-msw.c (struct winsock_stream):
7831         * event-msw.c (winsock_writer):
7832         * event-msw.c (winsock_closer):
7833         * event-msw.c (make_winsock_stream_1):
7834         cleanup headers.  fix (hopefully) an error with data corruption
7835         when sending to a network connection.
7836
7837         * fileio.c (Fexpand_file_name): Fix evil code that attempts
7838         to handle the ~user prefix by (a) always assuming we're referencing
7839         ourselves and not even verifying the user -- hence any file with
7840         a tilde as its first char is invalid! (b) if there wasn't a slash
7841         following the filename, the pointer was set *past* the end of
7842         file and we started reading from uninitialized memory.  Now we
7843         simply treat these as files, always.
7844
7845         * buffer.c (common_init_complex_vars_of_buffer): comment change.
7846         
7847 2001-05-19  Ben Wing  <ben@xemacs.org>
7848
7849         * eval.c: doc comment about gcpro'ing in record_unwind_protect.
7850
7851         * process-nt.c:
7852         * process-nt.c (vars_of_process_nt):
7853         remove unused mswindows-quote-process-args.  rec for 21.4.
7854         
7855 2001-05-12  Ben Wing  <ben@xemacs.org>
7856
7857         * event-msw.c (mswindows_dde_callback):
7858         * event-msw.c (mswindows_wnd_proc):
7859         eliminate cygwin warnings.
7860
7861 2001-05-06  Ben Wing  <ben@xemacs.org>
7862
7863         * console-msw.h:
7864         * device-msw.c:
7865         * device-msw.c (print_dialog_worker):
7866         * device-msw.c (mswindows_handle_print_dialog_box):
7867         * device-msw.c (syms_of_device_mswindows):
7868         * dialog-msw.c (mswindows_make_dialog_box_internal):
7869         * general-slots.h:
7870         implement printing the selection when it's selected.
7871
7872 2001-05-20  Drazen Kacar  <dave@arsdigita.com>
7873
7874         * glyphs-gtk.c (gtk_resource_instantiate): C++ comment -> #if 0
7875
7876 2001-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
7877
7878         * lisp.h (EMACS_INT_MAX): This should be one bit less since
7879         EMACS_INT is signed.
7880
7881 2001-04-15  Michael Lausch  <mla@1012surf.net>
7882
7883         * scrollbar-gtk.c (gtk_create_scrollbar_instance): Call
7884         gtk_widget_request_size() to give scrollbar >0 width for
7885         GTK >1.2.8.
7886
7887 2001-05-30  William M. Perry  <wmperry@gnu.org>
7888
7889         * event-gtk.c: Check for buttons as modifier keys.
7890
7891 2001-05-25  Craig Lanning  <CraigL@Knology.net>
7892
7893         * s\mingw32.h:
7894         Properly find MinGW's <process.h> inside Cygwin's restructured
7895         include directories.  Don't try to include <cygwin/version.h>
7896         since we are dropping support for MinGW in versions of Cygwin
7897         earlier than b21.
7898         * nt.c:
7899         Drop support for MinGW in versions of Cygwin before b21.
7900         * sysdep.c:
7901         Properly find MinGW's <process.h> inside Cygwin's restructured
7902         include directories.
7903         * syswindows.h:
7904         Drop support for MinGW in versions of Cygwin before b21.
7905         * unexcw.c:
7906         Even though a.out.h is no longer detected by configure, allow
7907         MinGW to use it until we figure out how to do the job with Win32.
7908
7909 2001-07-11  Matt Tucker  <tuck@whistlingfish.net>
7910
7911         * syntax.c (find_start_of_comment):
7912         Fix `unbalanced parentheses' bug when dealing with mixed comment
7913         styles in c++/java/etc. mode
7914
7915 2001-05-29  Mike Alexander  <mta@arbortext.com>
7916
7917         * console-msw.h (FRAME_MSPRINTER_CHARHEIGHT): Unswap
7918         FRAME_MSPRINTER_CHARWIDTH and FRAME_MSPRINTER_CHARHEIGHT
7919
7920 2001-05-17  Andrew Begel  <abegel@eecs.berkeley.edu>
7921
7922         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Add needed cast.
7923
7924 2001-03-31  Mike Sperber <mike@xemacs.org>
7925
7926         * search.c (Freplace_match): Support FSF-style specification of
7927         match subexpression when applied to a buffer.
7928
7929 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
7930
7931         * event-stream.c (is_scrollbar_event): add missing semicolon
7932
7933 2001-05-22  Isaac Hollander  <ysh@mindspring.com>
7934
7935         * Makefile.in.in: Use TAR macro instead of hardcoding
7936           tar.  Allows use of GNU tar instead of system tar
7937
7938 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
7939
7940         * event-stream.c (is_scrollbar_event): add missing semicolon
7941
7942 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
7943
7944         * XEmacs 21.4.3 "Academic Rigor" is released.
7945
7946 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
7947
7948         * regex.c: Define DECLARE_NOTHING when "lisp.h" is not included.
7949
7950 2001-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
7951
7952         * buffer.c (Vcase_fold_search): Remove obsolete
7953           comment about non ASCII case-fold-search.  This
7954           bug has been fixed by case-table changes.
7955
7956 2001-05-11  Stephen J. Turnbull  <stephen@xemacs.org>
7957
7958         * event-msw.c: Restore include of events-mod.h.
7959
7960 2001-04-22   zhaoway  <zw@debian.org>
7961
7962         * event-stream.c (is_scrollbar_event): Noop returning 0 if
7963         !HAVE_SCROLLBARS.
7964
7965 2001-05-10  Stephen J. Turnbull  <stephen@xemacs.org>
7966
7967         * XEmacs 21.4.2 "Developer-Friendly Unix APIs" is released.
7968
7969 2001-05-08  Yoshiaki Kasahara  <kasahara@nc.kyushu-u.ac.jp>
7970
7971         * mule-charset.c (Fmake_charset): Add missing else.
7972
7973 2001-04-23  Ben Wing  <ben@xemacs.org>
7974
7975         * event-msw.c (FAKE_MOD_QUIT):
7976         * event-msw.c (mswindows_dequeue_dispatch_event):
7977         * event-msw.c (mswindows_wnd_proc):
7978         * event-msw.c (emacs_mswindows_quit_p):
7979         Get critical quit working.
7980
7981 2001-05-05  Ben Wing  <ben@xemacs.org>
7982
7983         * console-msw.h:
7984         * device-msw.c:
7985         * device-msw.c (mswindows_get_default_margin):
7986         * frame-msw.c (mswindows_size_frame_internal):
7987         * frame-msw.c (msprinter_init_frame_1):
7988         * frame-msw.c (vars_of_frame_mswindows):
7989         Change top/bottom margin defaults to 0.5 inches.
7990
7991 2001-05-01  Martin Buchholz  <martin@xemacs.org>
7992
7993         Fix link error with gcc 3.0 on Linux.
7994         * terminfo.c (UP): Remove.
7995         * terminfo.c (BC): Remove.
7996         * terminfo.c (PC): Remove.
7997         They weren't used, and in any case, these symbols should be
7998         defined in the *library*.
7999
8000 2001-05-03  Martin Buchholz  <martin@xemacs.org>
8001
8002         * s/aix4.h: Fix crash with xlc -O3.
8003         Improve comment explaining how -O3 works.
8004
8005 2001-04-15  Ben Wing  <ben@xemacs.org>
8006
8007         * event-stream.c:
8008         * event-stream.c (Fnext_event):
8009         * event-stream.c (is_scrollbar_event):
8010         * event-stream.c (execute_command_event):
8011         Better fix for Yoshiki's `C-x @ h <scrollbar-drag> x causes a
8012         crash' problem.  His fix introduces other problems.  We filter
8013         out scrollbar events specifically, making them somewhat invisible
8014         to command-building, and not appearing in `this-command-keys'.
8015         More work is still needed (see comments in event-stream.c), but
8016         this fixes all the major problems.
8017
8018 2001-04-20  Ben Wing  <ben@xemacs.org>
8019
8020         * .cvsignore: Added stuff for Windows.
8021
8022 2001-04-28  Ben Wing  <ben@xemacs.org>
8023
8024         * buffer.c (Ferase_buffer):
8025         * editfns.c (buffer_insert1):
8026         * editfns.c (Finsert_before_markers):
8027         * editfns.c (Finsert_string):
8028         * editfns.c (Finsert_char):
8029         * editfns.c (Fdelete_region):
8030         * editfns.c (Fwiden):
8031         * editfns.c (Fnarrow_to_region):
8032         remove bogus lines setting zmacs_region_stays to 0.
8033         
8034 2001-04-15  Gunnar Evermann  <ge204@eng.cam.ac.uk>
8035
8036         * process-unix.c (unix_open_network_stream): If connect() fails
8037         invalidate file descriptor after closing it.
8038
8039 2001-03-08  Mike Alexander  <mta@arbortext.com>
8040
8041         * event-msw.c (mswindows_need_event_in_modal_loop):
8042         Don't dispatch a message if we didn't get one.
8043         (mswindows_need_event):
8044         Terminate the correct process when one exits instead of the first
8045         one on Vprocess_list and look for process termination when in
8046         mswindows_protect_modal_loop.
8047
8048 2001-04-19  Stephen J. Turnbull  <stephen@xemacs.org>
8049
8050         * XEmacs 21.4.1 "Copyleft" is released.
8051
8052 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
8053
8054         * input-method-motif.c (XIM_delete_frame): New callback.
8055         (XIM_init_frame): Register it.
8056
8057 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
8058
8059         * XEmacs 21.4.0 "Solid Vapor" is released.
8060
8061 2001-04-15  Ben Wing  <ben@xemacs.org>
8062
8063         * cmdloop.c (call_command_loop):
8064         Fix braino in bit-rotting code.
8065         
8066 2001-04-07  Hrvoje Niksic  <hniksic@arsdigita.com>
8067
8068         * extents.c (Fset_extent_endpoints): Force creation of extent info
8069         in buffer_or_string.
8070
8071         * extents.c (process_extents_for_insertion_mapper): Correctly
8072         check for open-open zero-length extents.
8073
8074 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
8075
8076         * lisp.h: New typedefs Memory_count, Element_count.
8077         * regex.c:
8078         * regex.h:
8079         Sign-compare warning elimination: several unsigned -> signed.
8080         Based on work by Ben Wing <ben@xemacs.org>.
8081
8082 2001-04-14  Stephen J. Turnbull  <stephen@xemacs.org>
8083
8084         * XEmacs 21.2.47 "Zephir" is released.
8085
8086 2001-04-02  Jan Vroonhof  <jan@xemacs.org>
8087
8088         * redisplay.c (add_bufbyte_string_runes): Update data->bytepos
8089
8090 2001-04-03  Mike Sperber <mike@xemacs.org>
8091
8092         * search.c: Revert previous patch due because of release.
8093
8094 2001-03-30  Ben Wing  <ben@xemacs.org>
8095
8096         * s\cygwin32.h:
8097         Add missing killpg prototype.
8098
8099         * elhash.c:
8100         Add a comment about fixing problems when a new entry is added
8101         while mapping.
8102
8103         * frame-msw.c (mswindows_init_frame_1):
8104         Fix compile warnings.
8105
8106         * menubar.c (vars_of_menubar):
8107         Provide `menu-accelerator-support' to indicate that we properly
8108         support %_ in menu specifications, so that package code can
8109         conditionalize on this (and remove %_ from menu specifications
8110         on older versions).
8111
8112         * event-msw.c:
8113         * scrollbar-msw.c:
8114         * scrollbar-msw.c (can_scroll):
8115         * scrollbar-msw.h:
8116         Fix handling of mouse wheel under Windows to follow standards --
8117         now scrolls window under pointer, not selected window.
8118
8119 2001-03-31  Mike Sperber <mike@xemacs.org>
8120
8121         * search.c (Freplace_match): Support FSF-style specification of
8122         match subexpression when applied to a buffer.
8123
8124 2001-03-15  Martin Buchholz  <martin@xemacs.org>
8125
8126         * keymap.c (Fmap_keymap): map-keymap explicitly allows a mapping
8127         function to modify KEYMAP, so map over a copy of the hash table.
8128
8129 2001-03-21  Martin Buchholz <martin@xemacs.org>
8130
8131         * XEmacs 21.2.46 "Urania" is released.
8132
8133 2001-03-20  Dan Holmsand  <dan@eyebee.com>
8134
8135         * realpath.c (xrealpath): Make file-truename work with symlinks to
8136         /cygdrive paths on cygwin. Always lowercase drive-letters on
8137         native windows.
8138         (cygwin_readlink): Don't try to find canonical filename unless
8139         file exists.
8140
8141 2001-03-15  Stephen J. Turnbull  <stephen@xemacs.org>
8142
8143         * ChangeLog: Log GTK merge.
8144
8145         * dumper.c:
8146         * select-x.c:
8147         * specifier.c:
8148         * symeval.h:
8149         Revert gratuitous whitespace changes from GTK merge.
8150
8151         * emacs.c: Document end of complex #ifdef @ l. 1495.
8152
8153
8154 2001-03-12  Andy Piper  <andy@xemacs.org>
8155
8156         * mingw32.h: unfortunately cygnus changed mingw32 -> mingw so we
8157         have to do likewise.
8158
8159 2001-03-12  Andy Piper  <andy@xemacs.org>
8160
8161         * sysdep.c: we only support mingw now.
8162
8163 2001-03-09  Andy Piper  <andy@xemacs.org>
8164
8165         * unexcw.c (copy_executable_and_dump_data_section): making approx
8166         overrun a warning only.
8167
8168 2001-03-10  William M. Perry  <wmperry@aventail.com>
8169
8170         * faces.c (complex_vars_of_faces): Rewrote the font mucking to
8171         satisfy Stephen's identical-after-cpp plea.
8172
8173 2001-03-02  Ben Wing  <ben@xemacs.org>
8174
8175         * cmds.c:
8176         * cmds.c (Fforward_char):
8177         * syntax.c:
8178         * window.c:
8179
8180         Augment documentation of the most common motion commands to make
8181         note of the shifted-motion support.
8182         
8183 2001-03-02  Ben Wing  <ben@xemacs.org>
8184
8185         * nt.c (mswindows_fstat):
8186         * nt.c (mswindows_stat):
8187         * search.c (boyer_moore):
8188         Fix compile warnings under Windows.
8189         
8190         * sysdep.c (sys_readdir):
8191         Fix buggy filename-conversion code under Mule.
8192
8193 2001-03-09  William M. Perry  <wmperry@aventail.com>
8194
8195         * Makefile.in.in:
8196         * config.h.in:
8197         * console.c:
8198         * console.h:
8199         * device.c:
8200         * device.h:
8201         * dragdrop.c:
8202         * emacs.c:
8203         * event-stream.c:
8204         * events.c:
8205         * events.h:
8206         * faces.c:
8207         * frame.h:
8208         * general-slots.h:
8209         * glyphs.c:
8210         * gutter.c:
8211         * inline.c:
8212         * lisp.h:
8213         * lrecord.h:
8214         * make-src-depend:
8215         * redisplay-output.c:
8216         * redisplay.c:
8217         * symsinit.h:
8218         * sysfile.h:
8219         * toolbar.c:
8220         * window.c:
8221         The Great GTK Merge.
8222
8223         * ChangeLog.GTK:
8224         * console-gtk.c:
8225         * console-gtk.h:
8226         * device-gtk.c:
8227         * emacs-marshals.c:
8228         * emacs-widget-accessors.c:
8229         * event-gtk.c:
8230         * frame-gtk.c:
8231         * gccache-gtk.c:
8232         * gccache-gtk.h:
8233         * glade.c:
8234         * glyphs-gtk.c:
8235         * glyphs-gtk.h:
8236         * gtk-glue.c:
8237         * gtk-xemacs.c:
8238         * gtk-xemacs.h:
8239         * gui-gtk.c:
8240         * gui-gtk.h:
8241         * menubar-gtk.c:
8242         * native-gtk-toolbar.c:
8243         * objects-gtk.c:
8244         * objects-gtk.h:
8245         * redisplay-gtk.c:
8246         * scrollbar-gtk.c:
8247         * scrollbar-gtk.h:
8248         * select-gtk.c:
8249         * toolbar-gtk.c:
8250         * ui-byhand.c:
8251         * ui-gtk.c:
8252         * ui-gtk.h:
8253         The Great GTK Merge: new files.
8254
8255 2001-02-26  Ben Wing  <ben@xemacs.org>
8256
8257         Reapplied Lstream change.
8258
8259 2001-02-26  Ben Wing  <ben@xemacs.org>
8260
8261         Undid the last change, since it is more controversial than I
8262         thought.  It should be back in at some point soon.
8263         
8264 2001-02-25  Ben Wing  <ben@xemacs.org>
8265
8266         * buffer.c:
8267         * callproc.c (Fold_call_process_internal):
8268         * event-msw.c (ntpipe_slurp_reader):
8269         * event-msw.c (ntpipe_shove_writer):
8270         * event-msw.c (winsock_reader):
8271         * event-msw.c (winsock_writer):
8272         * file-coding.c:
8273         * file-coding.c (detect_eol_type):
8274         * file-coding.c (detect_coding_type):
8275         * file-coding.c (determine_real_coding_system):
8276         * file-coding.c (Fdetect_coding_region):
8277         * file-coding.c (decoding_reader):
8278         * file-coding.c (decoding_writer):
8279         * file-coding.c (mule_decode):
8280         * file-coding.c (Fdecode_coding_region):
8281         * file-coding.c (encoding_reader):
8282         * file-coding.c (encoding_writer):
8283         * file-coding.c (mule_encode):
8284         * file-coding.c (Fencode_coding_region):
8285         * file-coding.c (detect_coding_sjis):
8286         * file-coding.c (decode_coding_sjis):
8287         * file-coding.c (encode_coding_sjis):
8288         * file-coding.c (detect_coding_big5):
8289         * file-coding.c (decode_coding_big5):
8290         * file-coding.c (encode_coding_big5):
8291         * file-coding.c (detect_coding_ucs4):
8292         * file-coding.c (decode_coding_ucs4):
8293         * file-coding.c (encode_coding_ucs4):
8294         * file-coding.c (detect_coding_utf8):
8295         * file-coding.c (decode_coding_utf8):
8296         * file-coding.c (encode_coding_utf8):
8297         * file-coding.c (detect_coding_iso2022):
8298         * file-coding.c (decode_coding_iso2022):
8299         * file-coding.c (encode_coding_iso2022):
8300         * file-coding.c (decode_coding_no_conversion):
8301         * file-coding.c (encode_coding_no_conversion):
8302         * glyphs-x.c (write_lisp_string_to_temp_file):
8303         * gpmevent.c (tty_get_foreign_selection):
8304         * lisp.h:
8305         * lstream.c:
8306         * lstream.c (Lstream_flush_out):
8307         * lstream.c (Lstream_adding):
8308         * lstream.c (Lstream_write_1):
8309         * lstream.c (Lstream_write):
8310         * lstream.c (Lstream_raw_read):
8311         * lstream.c (Lstream_read_more):
8312         * lstream.c (Lstream_read):
8313         * lstream.c (Lstream_unread):
8314         * lstream.c (Lstream_fputc):
8315         * lstream.c (stdio_reader):
8316         * lstream.c (stdio_writer):
8317         * lstream.c (filedesc_reader):
8318         * lstream.c (filedesc_writer):
8319         * lstream.c (lisp_string_reader):
8320         * lstream.c (struct fixed_buffer_stream):
8321         * lstream.c (make_fixed_buffer_input_stream):
8322         * lstream.c (make_fixed_buffer_output_stream):
8323         * lstream.c (fixed_buffer_reader):
8324         * lstream.c (fixed_buffer_writer):
8325         * lstream.c (struct resizing_buffer_stream):
8326         * lstream.c (resizing_buffer_writer):
8327         * lstream.c (dynarr_writer):
8328         * lstream.c (lisp_buffer_reader):
8329         * lstream.c (lisp_buffer_writer):
8330         * lstream.h:
8331         * lstream.h (lstream_implementation):
8332         * lstream.h (struct lstream):
8333         * md5.c (Fmd5):
8334         * process-nt.c (nt_send_process):
8335         * process-unix.c (unix_send_process):
8336         
8337         Correct Lstream lossage due to mixing of signed and unsigned
8338         quantities.  All Lstream uses of size_t and ssize_t are now a
8339         single signed data type Lstream_data_count.  This fixes problems
8340         under Windows with sending large quantities of data to a process,
8341         and may well fix other subtle bugs.
8342
8343 2001-02-23  Martin Buchholz <martin@xemacs.org>
8344
8345         * XEmacs 21.2.45 "Thelxepeia" is released.
8346
8347 2001-02-21  Martin Buchholz  <martin@xemacs.org>
8348
8349         * lisp-union.h (XSETINT): 
8350         (XSETCHAR):
8351         (XSETOBJ): 
8352         Reverse previous change of 2001-02-06.
8353
8354 2001-02-20  Matt Tucker  <tuck@whistlingfish.net>
8355
8356         Fix `VALID_BYTIND_P' crashes in regex.c when using narrowed
8357         buffers.
8358         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
8359         * syntax.h (SYNTAX_CACHE_OBJECT_BYTE_TO_CHAR):
8360         Add `BI_BUF_BEGV' to bytepos before calculating bufpos.
8361         * regex.c (POS_AS_IN_BUFFER): removed
8362         * regex.c (re_search_2):
8363         * regex.c (re_match_2):
8364         Don't use an offset of 1 when calculating buffer positions, since
8365         `BI_BUF_BEGV' does it already.
8366
8367 2001-02-18  Wim Dumon  <wim@easics.be>
8368
8369         * insdel.c (prepare_to_modify_buffer): Also check for
8370         supersession when clash-detection is enabled. 
8371
8372 2001-02-17  Matt Tucker  <tuck@whistlingfish.net>
8373
8374         * regex.c (re_match_2_internal):
8375         Convert temp characters from 'const unsigned char' to 're_char'.
8376         Fix crashing bug with extended characters under mule.
8377         * syntax.c (Qsyntax_table): Moved from vars_of_syntax to
8378         syms_of_syntax. Use defsymbol to define. Fixes hanging bug with
8379         font-lock, pdump, and new syntax-table code.
8380         * syntax.c (find_start_of_comment):
8381         (find_end_of_comment):
8382         (forward-comment):
8383         Fix crashing bugs involving moving beyond end of buffer.
8384         * syntax.c (find_start_of_comment):
8385         Fixed logic to allow proper detection of cases where the same
8386         character is used to end both a two-char comment start and a
8387         two-char comment end sequence. Fixes `(forward-comment -1)'.
8388         * syntax.c (find_start_of_comment):
8389         Return position just past last comment-end character for all cases
8390         (previously was only done for two-char comment-end sequences).
8391         * syntax.c (forward-comment):
8392         Take value returned from `find_end_of_comment', rather than
8393         incrementing it.
8394         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
8395         Properly deal with BUFFERP (syntax_cache.object)
8396
8397 2001-02-17  Martin Buchholz  <martin@xemacs.org>
8398
8399         * alloc.c (Fgarbage_collect): 
8400         * alloc.c (make_bit_vector_from_byte_vector):
8401         -Wsign-compare-correctness.
8402
8403 2001-02-16  Martin Buchholz  <martin@xemacs.org>
8404
8405         * lisp-union.h (XSETINT): Eliminate unnecessary temp var.
8406         (XSETCHAR): Likewise.
8407         (XSETOBJ): Likewise.
8408
8409 2001-02-15  Martin Buchholz  <martin@xemacs.org>
8410
8411         * mule-canna.c (canna-func-delete_previous): 
8412         Rename to canna-func-delete-previous.
8413
8414 2001-02-14  Martin Buchholz  <martin@xemacs.org>
8415
8416         * mule-ccl.c (ccl_driver): Warning suppression.  Use countof.
8417
8418 2001-02-13  Matt Tucker  <tuck@whistlingfish.net>
8419
8420         * font-lock.c (find_context): Fix C++ compile errors introduced by
8421         recent patch
8422
8423 2001-02-13  Martin Buchholz  <martin@xemacs.org>
8424
8425         * s/aix4.h: Later versions of IBM C compiler need a bug workaround
8426         pragma, but earlier ones barf on the same pragma.
8427
8428 2001-02-06  Mike Sperber <mike@xemacs.org>
8429
8430         * emacs.c (complex_vars_of_emacs): Add `mule-lisp-directory' and
8431         `configure-mule-lisp-directory'.
8432
8433 2001-02-12  Martin Buchholz  <martin@xemacs.org>
8434
8435         Make sure dump-id.c is compiled in the same way as other .c's.
8436         Fixes pdump compilation failure with HP's cc, which defaults to K&R.
8437         * dump-id.h: Remove.
8438         * emacs.c: Move dump-id.h into dumper.h.
8439         * dumper.h: Move dump-id.h into dumper.h.
8440         * Makefile.in.in:
8441         Use standard .c.o rule for building dump-id.o.
8442         Remove preprocessor flags from link command.
8443         Add dump-id.o to ${otherobjs} if PDUMP.
8444
8445 2001-02-07  Matt Tucker  <tuck@whistlingfish.net>
8446
8447         Port FSF 20.7 syntax table improvements.
8448         * syntax.c.
8449         * syntax.h.
8450
8451         Fixups for new syntax table stuff.
8452         * dired.c: Include syntax.c.
8453         (Fdirectory_files): Initialize regex_match_object and
8454         regex_emacs_buffer.
8455         * extents.h: EXFUN Fnext_extent_change, Fprevious_extent_change,
8456         and Fget_char_property.
8457
8458         Use ported FSF 20.7 syntax table improvements.
8459         * font-lock.c.
8460         * regex.c.
8461         * search.c.
8462         
8463 2001-02-09  Martin Buchholz  <martin@xemacs.org>
8464
8465         * regex.c (Boolean): Renamed to `re_bool', to avoid conflict with
8466         Unixware's enum boolean from sys/types.h.
8467
8468 2001-02-10  Martin Buchholz  <martin@xemacs.org>
8469
8470         Fix support for building with latest Purify.
8471         * Makefile.in.in (PURIFY_LIBS): Remove thread flags.
8472         (PURIFY_FLAGS): Likewise.
8473
8474 2001-02-09  Martin Buchholz  <martin@xemacs.org>
8475
8476         * fileio.c (lisp_string_set_file_times): New.
8477         * fileio.c (Fcopy_file): Use it.
8478         Fixes bug:
8479         (copy-file filename non-ascii-filename t t)
8480         ==> No such file or directory, non-ascii-filename
8481
8482 2001-02-10  Martin Buchholz  <martin@xemacs.org>
8483
8484         * glyphs-x.c (generate_cursor_fg_bg): Avoid a warning.
8485         USHRT_MAX seems clearer than ~0 anyways.
8486
8487 2001-02-09  Martin Buchholz  <martin@xemacs.org>
8488
8489         dumper improvements.  Inspired by Olivier.
8490         * dumper.c (pdump_max_align): New.
8491         * dumper.c (pdump_add_entry): Use pdump_max_align.
8492         * dumper.c (pdump_get_entry_list): Likewise.
8493         * dumper.c (pdump_scan_by_alignment): Likewise.
8494         Don't iterate through unnecessary alignments.
8495         * dumper.c (pdump_file_get): No need to align result of malloc().
8496         * dumper.c (pdump_mallocadr): Remove.  
8497         The result of malloc() is guaranteed to be maximally aligned.
8498         * dumper.c: s/elmt/elt/g;
8499         * dumper.c (pdump_object_table): Allocate dynamically, not statically.
8500         * dumper.c (pdump_alert_undump_object): Likewise.
8501         * dumper.c (pdump_align_table): 
8502         Don't support alignments > 64.
8503         Store ALIGNOF's, not shift counts, in table.
8504
8505 2001-02-09  Martin Buchholz  <martin@xemacs.org>
8506
8507         * s/mingw32.h (HAVE_STRUCT_UTIMBUF): Remove.
8508         * s/windowsnt.h (HAVE_STRUCT_UTIMBUF): Remove.
8509         * systime.h: Use HAVE_UTIME.
8510         * sysdep.c (struct utimbuf): Remove.
8511         * sysdep.c (set_file_times): Prefer utime() to utimes().
8512         * config.h.in (HAVE_UTIME): New.
8513         * config.h.in (HAVE_UTIME_H): Remove.
8514         * config.h.in (HAVE_STRUCT_UTIMBUF): Remove.
8515
8516 2001-02-09  Martin Buchholz  <martin@xemacs.org>
8517
8518         * s/aix4.h: Hide #pragmas inside #ifndef NOT_C_CODE.
8519
8520 2001-02-08  Martin Buchholz  <martin@xemacs.org>
8521
8522         * s/irix6-0.h: Use the standard system memmove, not bcopy.
8523
8524 2001-02-08  Martin Buchholz <martin@xemacs.org>
8525
8526         * XEmacs 21.2.44 "Thalia" is released.
8527
8528 2001-02-06  Martin Buchholz  <martin@xemacs.org>
8529
8530         Fixes crashes in kill-emacs on some systems.
8531         * process-unix.c (unix_kill_child_process):
8532         It's OK for kill() to fail with ESRCH.
8533
8534 2001-02-07  Martin Buchholz  <martin@xemacs.org>
8535
8536         Contortions to make .gdbinit tricks work on most systems.
8537         * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
8538         * alloc.c (dbg_valmask): Make non-const.
8539         * alloc.c (dbg_typemask): Make non-const.
8540         * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
8541         * alloc.c (dbg_valbits): Make non-const.
8542         * alloc.c (dbg_gctypebits): Make non-const.
8543         * .gdbinit (decode_object): Make it work with AIX cc.
8544
8545 2001-02-06  Martin Buchholz  <martin@xemacs.org>
8546
8547         * elhash.c (make_general_lisp_hash_table):
8548         Use simpler and more efficient calloc to clear entries.
8549
8550 2001-02-07  Martin Buchholz  <martin@xemacs.org>
8551
8552         * window.c (window_scroll): Work around an AIX C compiler bug.
8553         Fixes 'scroll-up' does nothing problem with xlC.
8554
8555 2001-02-05  Martin Buchholz  <martin@xemacs.org>
8556
8557         * .gdbinit: Remove obsolete comment.
8558
8559 2001-01-31  Mike Alexander  <mta@arbortext.com>
8560
8561         * select.c (Fown_selection_internal): Set owned_p for device
8562         method correctly.
8563
8564 2001-02-01  Martin Buchholz  <martin@xemacs.org>
8565
8566         Port to g++ 2.97.
8567         "not" cannot be used as a macro name as it is an operator in C++
8568         * config.h.in: Stop #defining `not'.
8569         * chartab.c (check_category_char): not ==> not_p
8570         * chartab.h: Likewise.
8571         * regex.c (re_match_2_internal): Likewise.
8572
8573 2001-02-02  Martin Buchholz  <martin@xemacs.org>
8574
8575         * lisp-disunion.h: Fix up comments.
8576
8577 2001-01-31  Martin Buchholz  <martin@xemacs.org>
8578
8579         * keymap.c (define_key_check_and_coerce_keysym):
8580         (syms_of_keymap):
8581         Support mouse-6 and mouse-7 bindings in the obvious way.
8582
8583 2001-02-01  Martin Buchholz  <martin@xemacs.org>
8584
8585         * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
8586
8587 2001-01-30  Martin Buchholz  <martin@xemacs.org>
8588
8589         Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
8590         Previous patch missed DEFVAR_INT_MAGIC.
8591         Make sure future DEFVAR_foo use correct types.
8592         * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
8593         * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
8594         * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
8595         * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
8596         * (DEFVAR_INT): Likewise.
8597         * redisplay.c (vertical_clip): Should be of type Fixnum.
8598         * redisplay.c (horizontal_clip): Likewise.
8599         * lisp.h (dump_add_opaque_int): New.
8600         (dump_add_opaque_fixnum): New.
8601
8602 2001-01-29  Andy Piper  <andy@xemacs.org>
8603
8604         * glyphs-widget.c (check_valid_int_or_function): allow symbols
8605         since they can be eval'ed
8606
8607 2001-01-29  Martin Buchholz  <martin@xemacs.org>
8608
8609         * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
8610         Oops, XEmacs redefines `class'.  Use `typename' instead.
8611
8612 2001-01-28  Martin Buchholz  <martin@xemacs.org>
8613
8614         * dumper.c: Fix C++ compile errors.
8615
8616 2001-01-29  Martin Buchholz  <martin@xemacs.org>
8617
8618         * tparam.c: Use correct prototypes.
8619
8620 2001-01-28  Martin Buchholz  <martin@xemacs.org>
8621
8622         * sysproc.h: #include util.h for NetBSD's openpty.
8623
8624 2001-01-27  Martin Buchholz  <martin@xemacs.org>
8625
8626         More 64-bit correctness.
8627         The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
8628         Use a typedef `fixnum' for the type used for DEFVAR_INT.
8629         Fix up comments.
8630         This finally finishes the 64-bit SGI port.
8631         Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
8632         * symbols.c: Fix up comments and type casts.
8633         * symbols.c (do_symval_forwarding): s/int/Fixnum/g
8634         * symbols.c (store_symval_forwarding): s/int/Fixnum/g
8635         * symeval.h (Fixnum): New type.
8636         * symeval.h (symbol_value_type): Fix up comment.
8637
8638         * commands.h:
8639         * nt.c:
8640         * emacs.c:
8641         * data.c:
8642         * redisplay.c:
8643         * abbrev.c:
8644         * dired-msw.c:
8645         * event-Xt.c:
8646         * eldap.c:
8647         * window.c:
8648         * sound.c:
8649         * event-stream.c:
8650         * eval.c:
8651         * buffer.c:
8652         * mule-canna.c: A million DEFVAR_INTs here...
8653         * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
8654         * extents.c:
8655         * cmdloop.c:
8656         * lisp.h:
8657         * select-x.c:
8658         * console-x.h:
8659         * event-msw.c:
8660         * mule-wnnfns.c:
8661         * hpplay.c:
8662         * ralloc.c:
8663         * alloc.c:
8664         * keymap.c:
8665         * profile.c:
8666         s/int/Fixnum/g in DEFVAR_INT declarations.
8667
8668 2001-01-26  Martin Buchholz  <martin@xemacs.org>
8669
8670         Port pdump to SGI alignment-sensitive environment.
8671         Lisp Object sizeof methods now return aligned sizes.  Rely on that.
8672         Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
8673         properly aligned.
8674         Define and use aligned reading and writing macros.
8675         Use buffered stdio instead of posix i/o for faster dumping.
8676         Eliminate kludgy 256 byte space for header.
8677         Read and write from dump file using structs for alignment safety.
8678         * dumper.c (pdump_align_stream): New.
8679         * dumper.c (PDUMP_ALIGN_OUTPUT): New.
8680         * dumper.c (PDUMP_READ_ALIGNED): New.
8681         * dumper.c (PDUMP_WRITE_ALIGNED): New.
8682         * dumper.c (pdump_static_Lisp_Object): New struct.
8683         * dumper.c (pdump_static_pointer): New struct.
8684         * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
8685         * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
8686         * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
8687         * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
8688
8689         * dumper.c (pdump_backtrace):
8690         * dumper.c (pdump_get_indirect_count):
8691         * dumper.c (pdump_register_object):
8692         * dumper.c (pdump_register_struct):
8693         * dumper.c (pdump_reloc_one):
8694         * dumper.c (pdump_scan_by_alignment):
8695         * dumper.c (pdump_dump_from_root_struct_ptrs):
8696         * dumper.c (pdump_dump_opaques):
8697         * dumper.c (pdump_dump_rtables):
8698         * dumper.c (pdump_dump_from_root_objects):
8699         * dumper.c (pdump):
8700         * dumper.c (pdump_load_finish):
8701         Use aligned reading and writing.
8702
8703         * dumper.c (pdump_free): Make static.
8704         * dumper.c (pdump_hFile): Likewise.
8705         * dumper.c (pdump_hMap): Likewise.
8706
8707 2001-01-26  Martin Buchholz <martin@xemacs.org>
8708
8709         * XEmacs 21.2.43 "Terspichore" is released.
8710
8711 2001-01-25  Martin Buchholz  <martin@xemacs.org>
8712
8713         Type fiddling for window_config.saved_windows_count
8714         * window.c (struct window_config): 
8715         Make saved_windows_count member unsigned.
8716         * window.c (sizeof_window_config_for_n_windows): 
8717         Make parameter unsigned.
8718         * window.c (mark_window_config):
8719         * window.c (window_config_equal):
8720         * window.c (free_window_configuration):
8721         * window.c (Fset_window_configuration):
8722         * window.c (count_windows):
8723         * window.c (Fcurrent_window_configuration):
8724         * window.c (reinit_vars_of_window):
8725         Update all callers and users.
8726
8727 2001-01-25  Martin Buchholz  <martin@xemacs.org>
8728
8729         Alignment correctness for flexible arrays.
8730         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
8731         Make alignment-correct. Add interesting comments.
8732         * alloc.c (size_vector):
8733         * alloc.c (make_vector_internal):
8734         * alloc.c (make_bit_vector_internal):
8735         * alloc.c (sweep_bit_vectors_1):
8736         * fns.c (size_bit_vector):
8737         Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
8738         * window.c (sizeof_window_config_for_n_windows): 
8739         Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
8740
8741 2001-01-24  Martin Buchholz  <martin@xemacs.org>
8742
8743         * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
8744
8745 2001-01-23  Andy Piper  <andy@xemacs.org>
8746
8747         * select.c (Fown_selection_internal): pass owned_p
8748
8749         * select-msw.c (mswindows_own_selection): New Signature.
8750
8751         * console.h (struct console_methods): add owned_p to
8752         _own_selection.
8753
8754         * select-x.c (x_own_selection): pass owned_p
8755         (hack_motif_clipboard_selection): use owned_p
8756         (vars_of_select_x): new variable -
8757         x_selection_strict_motif_ownership.
8758
8759 2001-01-23  Martin Buchholz  <martin@xemacs.org>
8760
8761         * specifier.h (specifier_data_offset): Remove pointless parens.
8762         * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
8763
8764 2001-01-24  Martin Buchholz  <martin@xemacs.org>
8765
8766         Make Lisp_Object sizeof methods be alignment-correct.
8767         pdump must restore objects to the same alignment as the C compiler
8768         assumes.  It really matters on SGIs.
8769         * lstream.c (aligned_sizeof_lstream): New.
8770         (sizeof_lstream): Use aligned_sizeof_lstream.
8771         (Lstream_new): Likewise.
8772         * opaque.c (aligned_sizeof_opaque): New.
8773         (sizeof_opaque): Use aligned_sizeof_opaque.
8774         (make_opaque): Likewise.
8775         * specifier.c (aligned_sizeof_specifier): New.
8776         (sizeof_specifier): Use aligned_sizeof_specifier.
8777         (make_specifier_internal): Likewise.
8778
8779 2001-01-23  Martin Buchholz  <martin@xemacs.org>
8780
8781         * lstream.h (struct lstream): Use max_align_t for trailing data.
8782         * specifier.h (struct Lisp_Specifier): Likewise.
8783
8784 2001-01-22  Martin Buchholz  <martin@xemacs.org>
8785
8786         * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
8787         (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
8788         (CCL_SUSPEND): Likewise.
8789         (CCL_INVALID_CMD): Likewise.
8790         (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
8791         (ccl_driver): Likewise.
8792         (CCL_WRITE_CHAR): Macro hygiene.
8793         (CCL_WRITE_STRING): Macro hygiene.
8794
8795 2001-01-22  Martin Buchholz  <martin@xemacs.org>
8796
8797         Port "portable" dumper to SunOS 4 and HP-UX.
8798         * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
8799         * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
8800         * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
8801
8802 2001-01-22  Martin Buchholz  <martin@xemacs.org>
8803
8804         * lisp.h (ALIGNOF): A better definition for C++.
8805
8806 2001-01-20  Martin Buchholz  <martin@xemacs.org>
8807
8808         Macro hygiene.
8809         Fix printf warnings: int format, long int arg.
8810         * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
8811         (PUSH_FAILURE_POINT): Use correct printf formats.
8812         (POP_FAILURE_POINT): Use correct printf formats.  
8813         Use do {...} while (0)
8814
8815 2001-01-20  Martin Buchholz <martin@xemacs.org>
8816
8817         * XEmacs 21.2.42 "Poseidon" is released.
8818
8819 2001-01-20  Martin Buchholz  <martin@xemacs.org>
8820
8821         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
8822
8823 2001-01-19  Martin Buchholz  <martin@xemacs.org>
8824
8825         De-kludgify FIXED_TYPE free list frobbing.
8826         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
8827         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
8828         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
8829         * alloc.c (Lisp_Free): New pseudo lisp object definition.
8830         * alloc.c (LRECORD_FREE_P): New.
8831         * alloc.c (MARK_LRECORD_AS_FREE): New.
8832         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
8833         * alloc.c (STRUCT_FREE_P): Deleted.
8834         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
8835         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
8836         * alloc.c (STRING_CHARS_FREE_P): New.
8837         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
8838         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
8839         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
8840         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
8841         * alloc.c (resize_string): Use new definitions.
8842         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
8843         * alloc.c (verify_string_chars_integrity): Use new definitions.
8844         * alloc.c (compact_string_chars): Use new definitions.
8845         * alloc.c: Update monster comments.
8846         * lrecord.h (lrecord_type): Add some new lrecord types for
8847         alloc.c's use.
8848
8849 2001-01-18  Martin Buchholz  <martin@xemacs.org>
8850
8851         Improve alignment hackery.
8852         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
8853         (max_align_t): Moved from opaque.h - general purpose.
8854         (ALIGN_PTR): Use size_t, not long.
8855         * opaque.h (max_align_t): Move to lisp.h.
8856
8857 2001-01-18  Norbert Koch  <nk@LF.net>
8858
8859         * gui.h: Fix and add prototypes to fix build problems.
8860
8861 2001-01-18  Martin Buchholz  <martin@xemacs.org>
8862
8863         temacs is going away, so `dump-temacs' is now a bad name.
8864         * .dbxrc (dump-temacs): Rename to `dmp'.
8865         * .gdbinit (dump-temacs): Rename to `dmp'.
8866
8867 2001-01-17  Andy Piper  <andy@xemacs.org>
8868
8869         * glyphs.c (print_image_instance): comment to make martin happy.
8870
8871         * glyphs-x.c (x_redisplay_widget): update faces after a frame
8872         change.
8873
8874         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
8875         activation.
8876         (mswindows_tab_control_redisplay): warning suppression.
8877
8878         * glyphs-widget.c (widget_update): re-write to cope with updated
8879         items.
8880         (widget_instantiate): use new gui_item functions.
8881         (tab_control_update): deleted.
8882         (progress_gauge_update): deleted.
8883         (image_instantiator_progress_guage): take out update reference.
8884         (image_instantiator_tree_view): ditto.
8885         (image_instantiator_tab_control): ditto.
8886
8887         * gui.c (widget_gui_parse_item_keywords): new function. Do things
8888         Right the new way.
8889         (gui_item_add_keyval_pair): re-write to cope with descriptors and
8890         return whether anything was changed.
8891         (update_gui_item_keywords): as it sounds.
8892
8893         * gui.h: declare widget_gui_parse_item_keywords.
8894
8895         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
8896         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
8897
8898 2001-01-17  Martin Buchholz <martin@xemacs.org>
8899
8900         * XEmacs 21.2.41 "Polyhymnia" is released.
8901
8902 2001-01-16  Didier Verna  <didier@xemacs.org>
8903
8904         * glyphs.c (image_instantiate): don't use fallbacks when
8905         instantiating a face's background pixmap by inheritance.
8906
8907 2001-01-14  Mike Sperber <mike@xemacs.org>
8908
8909         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
8910         Conditionalize accordingly.
8911
8912 2001-01-16  Martin Buchholz  <martin@xemacs.org>
8913
8914         * dumper.c (pdump_file_get): Fix a compiler warning.
8915
8916 2001-01-15  Martin Buchholz  <martin@xemacs.org>
8917
8918         Make Purify happy when pdumping.
8919         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
8920         iniitalizing all bits of new lisp object memory.
8921         * symbols.c (Fmake_local_variable): Likewise.
8922         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
8923         * symbols.c (Fdefvaralias): Likewise.
8924         * mule-charset.c (vars_of_mule_charset): Likewise.
8925
8926 2001-01-15  Martin Buchholz  <martin@xemacs.org>
8927         Add the `-nd' flag when running pre-dump operations under the debugger.
8928         * .dbxrc (run-temacs): Add `-nd'.
8929         * .dbxrc (update-elc): Likewise.
8930         * .dbxrc (dump-temacs): Likewise.
8931         * .gdbinit (run-temacs): Likewise.
8932         * .gdbinit (check-temacs): Likewise.
8933         * .gdbinit (update-elc): Likewise.
8934         * .gdbinit (dump-temacs): Likewise.
8935
8936 2001-01-14  Martin Buchholz  <martin@xemacs.org>
8937
8938         Allow building 64-bit executables on AIX with GNU malloc, e.g.
8939         export OBJECT_MODE=64
8940         configure --pdump --use-union-type=no
8941         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
8942         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
8943
8944         * miscplay.c (sndcnv8U_2mono):
8945         Avoid two uses of `++' in the same expression.
8946         Suppresses a GCC warning.
8947
8948 2001-01-13  Martin Buchholz  <martin@xemacs.org>
8949
8950         Make sure future compilers don't miscompile alloc.c.
8951         * alloc.c:
8952         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
8953         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
8954
8955 2001-01-12  Martin Buchholz  <martin@xemacs.org>
8956
8957         * dumper.c: A little post-pdump-rename comment fixup.
8958
8959 2001-01-09  Jerry James  <james@eecs.ku.edu>
8960
8961         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
8962
8963 2001-01-13  Martin Buchholz  <martin@xemacs.org>
8964
8965         * *.[ch]: Globally rename symbols using the following `pdump-rename'
8966         script:
8967         #!/bin/sh
8968         replace_symbol () {
8969           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
8970         }
8971
8972         replace_symbol pdump_wire_lists pdump_weak_object_chains
8973         replace_symbol pdump_wire_list dump_add_weak_object_chain
8974
8975         replace_symbol pdump_wires pdump_root_objects
8976         replace_symbol pdump_wire dump_add_root_object
8977
8978         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
8979         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
8980
8981         replace_symbol dumpstructinfos pdump_root_struct_ptrs
8982         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
8983         replace_symbol dumpstructinfo pdump_root_struct_ptr
8984         replace_symbol dumpstruct dump_add_root_struct_ptr
8985
8986         replace_symbol dumpopaque dump_add_opaque
8987         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
8988         replace_symbol dumpopaqueinfos pdump_opaques
8989         replace_symbol dumpopaqueinfo pdump_opaque
8990
8991         replace_symbol nb_structdump nb_root_struct_ptrs
8992         replace_symbol nb_opaquedump nb_opaques
8993
8994         replace_symbol align_table pdump_align_table
8995         replace_symbol dump_header pdump_header
8996
8997         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
8998         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
8999
9000
9001 2001-01-12  Martin Buchholz  <martin@xemacs.org>
9002
9003         * s/aix4.h: Keep the C for AIX compiler from overaggressively
9004         optimizing bytecount_to_charcount().
9005
9006 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
9007
9008         * config.h.in:
9009         (HAVE_DLFCN_H): Removed.
9010         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
9011
9012 2001-01-06  Martin Buchholz  <martin@xemacs.org>
9013
9014         Portable dumper maintainability improvements.
9015         * alloc.c (staticpro):
9016         * alloc.c (staticpro_nodump):
9017         * alloc.c (garbage_collect_1):
9018         * alloc.c (reinit_alloc_once_early):
9019         * alloc.c (init_alloc_once_early):
9020         * alloc.c: Move dumper functions to alloc.c.
9021         * dumper.c (pdump_backtrace):
9022         * dumper.c (pdump_dump_structs):
9023         * dumper.c (pdump_dump_opaques):
9024         * dumper.c (pdump_dump_rtables):
9025         * dumper.c (pdump_dump_wired):
9026         * dumper.c (pdump):
9027         * dumper.c (pdump_load_check):
9028         * dumper.c (pdump_load_finish):
9029         * dumper.c (pdump_file_unmap):
9030         * dumper.c (pdump_file_get):
9031         * dumper.c (pdump_resource_free):
9032         * dumper.c (pdump_resource_get):
9033         * dumper.c (pdump_file_free):
9034         * dumper.c (pdump_file_try):
9035         * dumper.c (pdump_load):
9036         Remove fixed size limits on staticpro(), staticpro_nodump(),
9037         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
9038         Remove custom code for dumping lrecord_implementations_table - use
9039         dumpopaque instead.
9040         Remove (most of the) custom code for dumping staticpros - dump it
9041         like any other dynarr.
9042
9043         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
9044         * dumper.c: Moved functions from alloc.c.
9045         * alloc.c (dumpstruct): Moved to dumper.c.
9046         * alloc.c (dumpopaque): Likewise.
9047         * alloc.c (pdump_wire): Likewise.
9048         * alloc.c (pdump_wire_list): Likewise.
9049
9050         * lisp.h (Dynarr_sizeof): New.
9051         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
9052         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
9053         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
9054
9055         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
9056         * lisp.h (dumpopaque): ditto.
9057         * lisp.h (pdump_wire): ditto.
9058         * lisp.h (pdump_wire_list): ditto.
9059
9060 2001-01-09  Martin Buchholz  <martin@xemacs.org>
9061
9062         * make-src-depend (PrintPatternDeps):
9063         Use `sort' to make output independent of perl version.
9064
9065 2001-01-08  Martin Buchholz  <martin@xemacs.org>
9066
9067         Port to Netbsd 1.5.
9068         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
9069         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
9070
9071 2001-01-03  Didier Verna  <didier@xemacs.org>
9072
9073         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
9074         that `focus_frame' is alive before thinking of calling
9075         `redisplay_redraw_cursor' on it.
9076
9077 2001-01-08  Martin Buchholz <martin@xemacs.org>
9078
9079         * XEmacs 21.2.40 is released.
9080
9081 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
9082
9083         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
9084
9085 2001-01-06  Martin Buchholz  <martin@xemacs.org>
9086
9087         * alloc.c (dbg_valmask): Make const.
9088         * alloc.c (dbg_typemask): Make const.
9089         * alloc.c (dbg_USE_UNION_TYPE): Make const.
9090         * alloc.c (dbg_valbits): Make const.
9091         * alloc.c (dbg_gctypebits): Make const.
9092
9093 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
9094
9095         * redisplay-x.c (x_bevel_area):
9096         redisplay.h (struct rune):
9097         Typo fixes in comments.
9098
9099 2001-01-05  Andy Piper  <andy@xemacs.org>
9100
9101         * glyphs-x.c (x_redisplay_widget): use size changed for offset
9102         adjustment.
9103
9104         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
9105
9106 2001-01-05  Martin Buchholz  <martin@xemacs.org>
9107
9108         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
9109
9110         * mule-ccl.c (stack_idx_of_map_multiple):
9111         Non const global data must not be initialized!
9112         Found by MIYASHITA Hisashi.
9113
9114 2001-01-02  Andy Piper  <andy@xemacs.org>
9115
9116         * frame.c (change_frame_size): make sure frame size is always
9117         marked as changed.
9118
9119         * glyphs.c (image_instance_layout): minor code reuse.
9120
9121         * window.c (Fcurrent_window_configuration): revert previous
9122         change.
9123
9124 2001-01-02  Martin Buchholz  <martin@xemacs.org>
9125
9126         * glyphs.h:
9127         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
9128
9129 2000-12-31  Andy Piper  <andy@xemacs.org>
9130
9131         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
9132         when widget gets unmapped.
9133
9134         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
9135         function. Make sure widgets losing focus don't just drop it.
9136         (handle_focus_event_1): record the widget with focus.
9137
9138 2000-12-31  Andy Piper  <andy@xemacs.org>
9139
9140         * window.c (allocate_window): use
9141         make_image_instance_cache_hash_table.
9142         (make_dummy_parent): ditto.
9143         (Fset_window_configuration): ditto.
9144
9145         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
9146
9147         * glyphs.c (process_image_string_instantiator): use
9148         INSTANTIATOR_TYPE.
9149         (get_image_instantiator_governing_domain): ditto.
9150         (normalize_image_instantiator): ditto.
9151         (instantiate_image_instantiator): ditto.
9152         (make_image_instance_1): ditto.
9153         (image_instantiate): ditto. Key on glyph *and* instantiator type.
9154         (instantiator_eq_equal): new function for use with instance hash
9155         tables.
9156         (instantiator_eq_hash): ditto.
9157         (make_image_instance_cache_hash_table): create a suitable hash
9158         table for storing image instances.
9159
9160         * elhash.h (hash_table_weakness): new internal weakness type
9161         HASH_TABLE_KEY_CAR_VALUE_WEAK.
9162         declare new functions.
9163
9164         * elhash.c (finish_marking_weak_hash_tables): introduce yet
9165         another weakness type for glyphs.
9166         (make_standard_lisp_hash_table): new function split out from
9167         make_general_lisp_hash_table.
9168         (make_lisp_hash_table): call make_standard_lisp_hash_table.
9169         (hash_table_instantiate): ditto.
9170         (Fmake_hash_table): ditto.
9171
9172 2000-12-31  Martin Buchholz <martin@xemacs.org>
9173
9174         * XEmacs 21.2.39 is released.
9175
9176 2000-12-29  Andy Piper  <andy@xemacs.org>
9177
9178         * menubar.c (menubar_visible_p_changed): signal the frame changed.
9179
9180         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
9181         the frame has changed so that we pick up geometry changes such as
9182         menubar visibility.
9183
9184 2000-12-28  Andy Piper  <andy@xemacs.org>
9185
9186         * lastfile.c (my_ebss): make a char array so we can pad the
9187         bss. Fixes cygwin unexec.
9188
9189         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
9190
9191 2000-12-26  Andy Piper  <andy@xemacs.org>
9192
9193         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
9194         comments and try and be more precise about a non-/SIGIO world.
9195         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
9196         SIGIO.
9197
9198         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
9199         we don't normalize to zero width or height.
9200
9201 2000-12-24  Andy Piper  <andy@xemacs.org>
9202
9203         * Makefile.in.in (ldflags): add -mwindows when appropriate.
9204
9205 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
9206
9207         * s/sco5.h: SCO 5 has pty support.
9208
9209 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
9210
9211         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
9212         input-method-xlib.c contains whole contents of input-method-xfs.c,
9213         so we can use input-method-xlib.c's code for USE_XFONTSET
9214         using #ifdefs.
9215         * input-method-xfs.c: removed.
9216
9217 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
9218
9219         * file-coding.h (enum coding_category_type): reorder enumerators to
9220         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
9221         (now one greater than largest real coding_category_type enumerator).
9222         * file-coding.c (coding_category_symbol, coding_category_by_priority,
9223         coding_category_system, fcd_descriptihon_1, decode_coding_category,
9224         Fcoding_category_list, Fset_coding_priority_list,
9225         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
9226         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
9227
9228 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
9229
9230         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
9231         * redisplay-output.c (redisplay_output_window): Clear top of window
9232         when face is changed.
9233         * redisplay-x.c (x_redraw_exposed_window): Call
9234         redisplay_clear_top_of_window.
9235         * redisplay.h: Publish redisplay_clear_top_of_window.
9236
9237 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
9238
9239         * buffer.c (Fkill_buffer): Map over all devices.
9240         * window.c (window_loop): Remove UNSHOW_BUFFER code.
9241         (list_windows): New function.
9242         (list_all_windows): Ditto.
9243         (Freplace_buffer_in_windows): Use them.
9244
9245 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
9246
9247         * database.c (berkdb_subtype): Recognize new subtype `queue'.
9248         (Fopen_database): Use `db_create' instead of `db_open'.
9249         (syms_of_database): Initialize Qqueue.
9250
9251 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
9252
9253         * buffer.c (common_init_complex_vars_of_buffer): Initialize
9254         buffer_local_face_property.
9255         * buffer.h (struct buffer): New member buffer_local_face_property.
9256         * window.c (Fset_window_buffer):  Mark window's face as changed
9257         when buffer has buffer local face.
9258         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
9259         * objects.c (color_after_change): Set buffer_local_face_property
9260         when locale of face specifier is buffer.
9261         * objects.c (font_after_change): Ditto.
9262         * objects.c (face_boolean_after_change): Ditto.
9263         * glyphs.c (image_after_change): Ditto.
9264
9265 2000-12-09  Dan Holmsand  <dan@eyebee.com>
9266
9267         * nt.c (mswindows_fstat): Report file permissions, volume serial
9268         number, etc. Code adapted from FSF Emacs 20.7.
9269
9270 2000-12-09  Dan Holmsand  <dan@eyebee.com>
9271
9272         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
9273         of stat when we don't have symbolic links, to make sure
9274         mswindows_stat is called on mswindows.
9275
9276 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
9277
9278         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
9279
9280 2000-12-12  Martin Buchholz  <martin@xemacs.org>
9281
9282         * doprnt.c (emacs_doprnt_1): More printing fixes.
9283         Make printing of numbers compatible with libc and FSF Emacs.
9284         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
9285         Use the system printf to do most of the hard work of formatting,
9286         instead of doprnt_1().
9287         Calculate memory to allocate for format string.
9288         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
9289         (doprnt_1): Cleaner code and documentation.
9290
9291 2000-12-01  Jerry James  <james@eecs.ukans.edu>
9292
9293         * Makefile.in.in: Use the loop variable to install headers.
9294
9295 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
9296
9297         * window.c (Fsplit_window): Don't invalidate face cache.
9298
9299 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
9300
9301         * minibuf.c (Fall_completions): Undo the previous change
9302         which removed checking elements start with space.
9303
9304 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
9305
9306         * mule-canna.c: Didier suppression.
9307
9308 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
9309
9310         * mule-canna.c: rename static unsigned char buf[] to key_buffer
9311         (warning suppression).  Add English comment translations.
9312
9313 2000-12-05  Martin Buchholz  <martin@xemacs.org>
9314
9315         * unexelfsgi.c (unexec): Better test for mmap failure.
9316
9317 2000-12-05  Martin Buchholz <martin@xemacs.org>
9318
9319         * XEmacs 21.2.38 is released.
9320
9321 2000-12-05  Martin Buchholz  <martin@xemacs.org>
9322
9323         * redisplay.c (bar-cursor): Make a user variable.
9324
9325         * symsinit.h: Add init_postgresql_from_environment.
9326
9327 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
9328
9329         * regex.c: Convert to clean C.
9330
9331 2000-12-05  Dan Holmsand  <dan@eyebee.com>
9332
9333         * realpath.c:
9334         Don't #include sysfile.h. Revert to duplicating PATH_MAX
9335         initialization.
9336         (sys_readlink): renamed to system_readlink to avoid conflict with
9337         the other sys_readlink.
9338
9339 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
9340
9341         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
9342
9343 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
9344
9345         * postgresql.c (init_postgresql_from_environment): new function.
9346         (vars_of_postgresql): Move code initializing Lisp variables out and
9347         into init_postgresql_from_environment.
9348         emacs.c (main_1): Call init_postgresql_from_environment if and only
9349         if running a dumped XEmacs.
9350
9351 2000-08-31  Dan Holmsand  <dan@eyebee.com>
9352
9353         * buffer.c: Make find-file-compare-truenames default to true on
9354         windows.
9355
9356         * realpath.c (win32_abs_start):
9357         (cygwin_readlink):
9358         (win32_readlink): New functions.
9359         (xrealpath): Return really real filenames on windows.
9360
9361         * fileio.c (Ffile_truename): Make file-truename work on windows.
9362
9363 2000-11-29  Didier Verna  <didier@xemacs.org>
9364
9365         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
9366         * faces.c (update_face_cachel_data): use it.
9367         * faces.c (add_face_cachel): use it. Complete background pixmap
9368         frobbing in face cache if `update_face_cachel_data' has not done so.
9369
9370 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
9371
9372         * search.c (string_match_1): Don't set last_thing_searched
9373         when search failed.
9374
9375 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
9376
9377         * buffer.c: Include casetab.h
9378         (common_init_complex_vars_of_buffer): Use new case-table object.
9379         * buffer.h: Include casetab.h
9380         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
9381         (DOWNCASE_TABLE_OF): Ditto.
9382         * bufslots.h: Remove char-tables and add case-table.
9383         * casetab.c: Include casetab.h
9384         (CASE_TABLE_P): Removed.
9385         (mark_case_table): New function.
9386         (allocate_case_table): New function.
9387         (Fcase_table_p): Use new case-table.
9388         (case_table_char): New function.
9389         (Fget_case_table): Ditto.
9390         (Fput_case_table): Ditto.
9391         (Fput_case_table_pair): Ditto.
9392         (Fcopy_case_table): Ditto.
9393         (Fcurrent_case_table): Return case-table.
9394         (Fstandard_case_table): Return case-table.
9395         (Fset_case_table): Fix doc-string.
9396         (set_case_table): Use case-table
9397         (syms_of_casetab): DEFSUBR new functions.
9398         (complex_vars_of_casetab): Set up standard case-table.
9399         * casetab.h: New file.
9400         * editfns.c: Include casetab.h
9401         (Fcompare_buffer_substrings): Use case-table.
9402         * inline.c: Include casetab.h
9403         * lisp.h: Remove bogus extern.
9404         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
9405         * search.c: Include casetab.h
9406         (TRANSLATE_ASCII): Removed.
9407         (TRANSLATE): Unconditionally translate character.
9408         (looking_at_1): Use case-table.
9409         (string_match_1): Ditto.
9410         (fast_string_match): Ditto.
9411         (search_command): Ditto.
9412         (search_buffer): Separate boyer_moore.  Check whether
9413         boyer_moore is possible.
9414         (simple_search): New function.
9415         (boyer_moore): Separated from search_buffer. Translate char.
9416
9417 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
9418
9419         * regex.c (RE_TR_ASCII): Removed.
9420         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
9421         (PATFETCH): Call PATFETCH_RAW.
9422         (PATFETCH_RAW): Fetch Emchar.
9423         (PATUNFETCH): Decrement charptr.
9424         (GET_BUFFER_SPACE): Rename b to buf_end.
9425         (BUF_PUSH): Ditto.
9426         (BUF_PUSH_2): Ditto.
9427         (BUF_PUSH_3): Ditto.
9428         (EXTEND_BUFFER): Ditto.
9429         (SET_LIST_BIT): Ditto.
9430         (regex_compile): Ditto.  Translate non ASCII char.
9431         (compile_range): Ditto.
9432         (re_search_2): Ditto.
9433         (re_match_2_internal): Compare Emchar.
9434         (bcmp_translate): Ditto.
9435
9436 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
9437
9438         * lisp.h (basic char/int typedefs):  comment improvement.
9439
9440 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
9441
9442         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
9443         unstomp inhibit_site_lisp.  Improve comments.
9444
9445 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
9446
9447         * mule-charset.c (Fcharset_property):  improve type checking, comments.
9448
9449 2000-11-28  Andy Piper  <andy@xemacs.org>
9450
9451         * redisplay-output.c (redisplay_output_subwindow): make sure we do
9452         clipped display for windows in the gutter also.
9453         (redisplay_display_boxes_in_window_p): change semantics of return
9454         codes to be more intuitive.
9455
9456         * gutter.h: declare display_boxes_in_gutter_p.
9457
9458         * gutter.c (display_boxes_in_gutter_p): new function for
9459         redisplay.
9460
9461 2000-11-22  Andy Piper  <andy@xemacs.org>
9462
9463         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
9464         autodetect domain.
9465
9466 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
9467
9468         * callproc.c (Fold_call_process_internal):
9469         * gpm.c (Freceive_gpm_event):
9470         (tty_get_foreign_selection): Might be just warning supression.
9471         * fileio.c (Fwrite_region_internal):
9472         (Fset_visited_file_modtime):
9473         * keymap.c (event_matches_key_specifier_p):
9474         Initialize GCPROed variable.
9475
9476         * menubar-x.c (command_builder_find_menu_accelerator):
9477         Initialize before use.
9478
9479 2000-11-23  Andy Piper  <andy@xemacs.org>
9480
9481         * unexcw.c (unexec): make the resulting executable executable.
9482
9483 2000-11-21  Martin Buchholz  <martin@xemacs.org>
9484
9485         * doc.c (get_doc_string):
9486         Use size_t, not int, for result of XSTRING_LENGTH.
9487
9488         * cmds.c (Fdelete_char):
9489         * cmds.c (Fpoint_at_eol):
9490         * cmds.c (Fself_insert_command):
9491         Use EMACS_INT, not int, for result of XINT.
9492         Someday, someone will want to insert more than 2**31 identical characters.
9493
9494         * cmds.c (Fdelete_char):
9495         * cmds.c (Fdelete_backward_char):
9496         * syntax.c (Fforward_word):
9497         * syntax.c (Fforward_comment):
9498         Make COUNT argument optional, for consistency with forward-char et al.
9499
9500 2000-11-22  Martin Buchholz  <martin@xemacs.org>
9501
9502         * lisp.h:
9503         * print.c (long_to_string):
9504         Return a useful value: the pointer at end of data written.
9505
9506         * doprnt.c:
9507         Use `static const char * const' for constant strings.
9508         (union printf_arg): Delete `i', `ui' members.
9509         (get_doprnt_args):
9510         (emacs_doprnt_1):
9511         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
9512         Do all printf-ing via the `l' specifier.
9513         Use EMACS_INT instead of int.
9514         Optimize.
9515
9516 2000-11-20  Didier Verna  <didier@xemacs.org>
9517
9518         * faces.c (update_face_cachel_data): don't frob the background
9519         pixmap when the window is being created. The face is needed but
9520         does not exist yet.
9521
9522 2000-11-20  Andy Piper  <andy@xemacs.org>
9523
9524         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
9525         messing with a debug environment.
9526
9527 2000-11-20  Martin Buchholz  <martin@xemacs.org>
9528
9529         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
9530
9531 2000-11-20  Martin Buchholz  <martin@xemacs.org>
9532
9533         * casetab.c (Fcase_table_p): Fix compile error and crash.
9534
9535 2000-11-18  Philip Aston  <philipa@mail.com>
9536
9537         * s/cygwin32.h: Cygwin has SVR4-like pty support.
9538
9539 2000-11-18  Martin Buchholz  <martin@xemacs.org>
9540
9541         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
9542         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
9543
9544 2000-11-17  Martin Buchholz  <martin@xemacs.org>
9545
9546         * config.h.in: Define HAVE_ELF_H if elf.h exists.
9547         * unexelf.c: Use HAVE_ELF_H.
9548         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
9549         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
9550         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
9551         Greg Harrington <greg_harrington@hotmail.com> provided a machine
9552         for testing.
9553         So this is an unexelfsgi.c from a different line of development.
9554
9555 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
9556
9557         * regex.c (RE_TR_ASCII): New function.
9558         (RE_TRANSLATE): Call it.
9559
9560 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
9561
9562         * buffer.h (TRT_TABLE_OF): Remove assert.
9563         (IN_TRT_TABLE_DOMAIN): Removed.
9564
9565 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
9566
9567         * free-hook.c (log_gcpro):
9568         (show_gcprohist): Add support for GCPRO5.
9569
9570 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
9571
9572         * emacs.c (main_1): Improve -sd error message when --pdump=no.
9573
9574 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
9575
9576         * symeval.h: Declare flush_all_buffer_local_cache.
9577
9578         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
9579         (flush_buffer_local_cache): Added.
9580         (flush_all_buffer_local_cache): Added.
9581
9582         * lrecord.h: Remove unused XD_LO_RESET_NIL.
9583
9584         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
9585         (pdump_dump_data): Ditto.
9586         (pdump_reloc_one): Ditto.
9587         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
9588         before dumping.
9589
9590
9591 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
9592
9593         * buffer.c: Remove if 0'ed entry.
9594         * buffer.h: Rewrite TRT to use char-table.
9595         * bufslots.h: Remove mirror tables.
9596         * casetab.c: Remove mirror tables.
9597         (CASE_TABLE_P): New macro.
9598         (Fcase_table_p): Element of a case table is string or char-table.
9599         (make_mirror_trt_table): Removed.
9600         (set_case_table): Setup char-table from strings for backward
9601         compatibility.
9602         * dired.c (Fdirectory_files):
9603         * dired-msw.c: (mswindows_get_files):
9604         * lisp.h: Change prototype of re_pattern_buffer.
9605         * regex.c: (RE_TRANSLATE): New macro.
9606         (TRANSLATE_P): Ditto.
9607         Change translate to type RE_TRANSLATE_TYPE.
9608         * regex.h: Define RE_TRANSLATE_TYPE
9609         * search.c (TRANSLATE): New macro.
9610         (TRANSLATE_ASCII): New macro.
9611         Translate table is changed to Lisp_Object.
9612         (signal_failure): Inhibit return.
9613
9614 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
9615
9616         * device-msw.c:
9617         * eldap.c:
9618         * event-Xt.c:
9619         * event-stream.c:
9620         * print.c:
9621         Do UNGCPRO before return.
9622
9623 2000-11-14  Martin Buchholz <martin@xemacs.org>
9624
9625         * XEmacs 21.2.37 is released.
9626
9627 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
9628
9629         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
9630         Add comments about discarded return value.
9631
9632 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
9633
9634         * callint.c:
9635         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
9636
9637 2000-10-27  Andy Piper  <andy@xemacs.org>
9638
9639         * gutter.c (Fset_default_gutter_position): default left and right
9640         gutters to visible.
9641         (calculate_gutter_size): calculate resonable heuristic for left
9642         and right gutter sizes.
9643         (specifier_vars_of_gutter): change left and right gutter sizes to
9644         autodetect.
9645         (calculate_gutter_size_from_display_lines): new function.
9646         (output_gutter): check for resizing on left and right gutters.
9647         (clear_gutter): don't special case top and left gutters.
9648         (specifier_vars_of_gutter): use new signature for
9649         set_specifier_caching.
9650
9651         * glyphs-x.c (x_redisplay_widget): spelling fix.
9652         * glyphs.c (specifier_vars_of_glyphs):
9653         * menubar.c (specifier_vars_of_menubar):
9654         * redisplay.c (specifier_vars_of_redisplay):
9655         * toolbar.c (specifier_vars_of_toolbar):
9656         * window.c (specifier_vars_of_window):
9657         * scrollbar.c (specifier_vars_of_scrollbar):
9658         (complex_vars_of_scrollbar): use new signature for
9659         set_specifier_caching.
9660
9661         * specifier.c (set_specifier_caching): include recompute flag.
9662         (recompute_one_cached_specifier_in_window): always recompute if
9663         flag set.
9664         (recompute_one_cached_specifier_in_frame): ditto.
9665
9666         * specifier.h (struct specifier_caching): add recompute flag.
9667
9668 2000-10-24  Andy Piper  <andy@xemacs.org>
9669
9670         * unexcw.c (copy_executable_and_dump_data_section): add new
9671         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
9672         5.0 happy.
9673
9674 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
9675
9676         * console-x.h (x_device): New member modifier_release_time.
9677         * event-Xt.c (x_handle_sticky_modifiers):
9678         Bound interval modifier keys are sticky.
9679         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
9680         * events.h: extern it.
9681
9682 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
9683
9684         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
9685
9686 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
9687
9688         * event-stream.c (execute_command_event): Preserve current_events
9689         and the like when event is misc-user-event.
9690         Inhibit quit during the call to maybe_echo_keys.
9691
9692 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
9693
9694         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
9695         symlink when buffer is killed.
9696         (inhibit_clash_detection): New variable.
9697
9698 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
9699
9700         * console.c (Fset_input_method): Trigger redisplay on tty.
9701
9702 2000-11-07  Martin Buchholz  <martin@xemacs.org>
9703
9704         * process.c (Fprocess_status): Revert to previous behavior:
9705         (process-status "nosuchprocess") ==> nil
9706
9707 2000-11-06  Martin Buchholz  <martin@xemacs.org>
9708
9709         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
9710         Work around another GCC 2.95.2 optimizer bug.
9711
9712 2000-11-02  Martin Buchholz  <martin@xemacs.org>
9713
9714         * process.c (Fget_process): Use LIST_LOOP_2.
9715         (kill_buffer_processes): Use LIST_LOOP_2.
9716
9717         * minibuf.c (Fall_completions):
9718         Delete old non-functional code for FSF fourth argument.
9719
9720         * frame.c (frame_matches_frame_spec):
9721         Renamed from `frame_matches_frametype'.  Update all callers.
9722         (device_matches_device_spec):
9723         Renamed from 'device_matches_console_spec'.  Update all callers.
9724
9725         * doc.c (Fsubstitute_command_keys):
9726         Remove buffer overflow crash.  Small code cleanups.
9727
9728         * casetab.c (check_case_table): Simpler code.
9729
9730         * window.c (Freplace_buffer_in_windows):
9731         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
9732         (and similar implementation) as Fdelete_windows_on.
9733         Update all callers.
9734
9735         * alloc.c (Fmake_list):
9736         * alloc.c (make_vector):
9737         * alloc.c (Fmake_vector):
9738         * alloc.c (make_bit_vector):
9739         * alloc.c (Fmake_bit_vector):
9740         * alloc.c (Fbit_vector):
9741         * alloc.c (Fmake_string):
9742         * alloc.c (Fpurecopy):
9743         * alloc.c (Fmemory_limit):
9744         * buffer.c:
9745         * buffer.c (Fget_buffer):
9746         * buffer.c (Fkill_buffer):
9747         * buffer.c (complex_vars_of_buffer):
9748         * bytecode.c (Fcompiled_function_stack_depth):
9749         * callint.c (Fprefix_numeric_value):
9750         * event-stream.c:
9751         * event-stream.c (Fread_key_sequence):
9752         * casetab.c:
9753         * casetab.c (Fcase_table_p):
9754         * casetab.c (check_case_table):
9755         * casetab.c (Fset_case_table):
9756         * casetab.c (Fset_standard_case_table):
9757         * chartab.c:
9758         * chartab.c (Fchar_table_type):
9759         * chartab.c (Freset_char_table):
9760         * chartab.c (Fget_char_table):
9761         * chartab.c (Fget_range_char_table):
9762         * chartab.c (Fput_char_table):
9763         * chartab.c (Fmap_char_table):
9764         * chartab.c (Fcategory_table_p):
9765         * chartab.c (Fcheck_category_at):
9766         * chartab.c (Fchar_in_category_p):
9767         * chartab.c (Fcategory_table):
9768         * chartab.c (Fcopy_category_table):
9769         * chartab.c (Fset_category_table):
9770         * chartab.c (Fcategory_designator_p):
9771         * chartab.c (Fcategory_table_value_p):
9772         * cmds.c (Fdelete_char):
9773         * cmds.c (Fdelete_backward_char):
9774         * cmds.c (Fself_insert_command):
9775         * cmds.c (Fself_insert_internal):
9776         * console.c (Fvalid_console_type_p):
9777         * console.c (Fcdfw_console):
9778         * console.c (Fconsole_type):
9779         * console.c (Fconsole_name):
9780         * console.c (Fconsole_device_list):
9781         * console.c (Fconsole_on_window_system_p):
9782         * data.c:
9783         * data.c (Feq):
9784         * data.c (Fold_eq):
9785         * data.c (Fsubr_interactive):
9786         * data.c (Fchar_to_int):
9787         * data.c (Fint_to_char):
9788         * data.c (Fsetcar):
9789         * data.c (Fsetcdr):
9790         * data.c (Fnumber_to_string):
9791         * data.c (Fstring_to_number):
9792         * data.c (Frem):
9793         * database.c (mark_database):
9794         * database.c (finalize_database):
9795         * database.c (Fdatabase_live_p):
9796         * database.c (Fdatabasep):
9797         * device-x.c (Fx_get_resource):
9798         * device.c (Fdfw_device):
9799         * dired.c:
9800         * dired.c (Ffile_name_completion):
9801         * dired.c (Ffile_name_all_completions):
9802         * dired.c (Fuser_name_completion):
9803         * dired.c (Fuser_name_completion_1):
9804         * dired.c (Fuser_name_all_completions):
9805         * doc.c (Fdocumentation):
9806         * doc.c (Fdocumentation_property):
9807         * doc.c (Fsubstitute_command_keys):
9808         * editfns.c:
9809         * editfns.c (Fchar_to_string):
9810         * editfns.c (Fstring_to_char):
9811         * editfns.c (Ftemp_directory):
9812         * editfns.c (Finsert_char):
9813         * editfns.c (Fbuffer_substring_no_properties):
9814         * editfns.c (Fnarrow_to_region):
9815         * editfns.c (Fchar_equal):
9816         * editfns.c (Fchar_Equal):
9817         * editfns.c (Ftranspose_regions):
9818         * emacs.c (Fdump_emacs):
9819         * eval.c (Fthrow):
9820         * eval.c (Fcommand_execute):
9821         * eval.c (Fautoload):
9822         * eval.c (Fbacktrace):
9823         * eval.c (Fbacktrace_frame):
9824         * events.c:
9825         * events.c (Fcopy_event):
9826         * events.c (Fcharacter_to_event):
9827         * events.c (Fevent_button):
9828         * events.c (Fevent_process):
9829         * extents.c:
9830         * extents.c (Fnext_extent_change):
9831         * extents.c (Fextent_property):
9832         * faces.c (Ffacep):
9833         * faces.c (Fmake_face):
9834         * file-coding.c:
9835         * file-coding.c (Fencode_shift_jis_char):
9836         * file-coding.c (Fencode_big5_char):
9837         * fileio.c (Ffile_name_directory):
9838         * fileio.c (Ffile_name_nondirectory):
9839         * fileio.c (Ffile_name_as_directory):
9840         * fileio.c (Fdirectory_file_name):
9841         * fileio.c (Ffile_truename):
9842         * fileio.c (Fsubstitute_in_file_name):
9843         * fileio.c (Ffile_modes):
9844         * fileio.c (Fset_file_modes):
9845         * fileio.c (Fset_default_file_modes):
9846         * fileio.c (Fverify_visited_file_modtime):
9847         * floatfns.c (Facos):
9848         * floatfns.c (Fasin):
9849         * floatfns.c (Fatan):
9850         * floatfns.c (Fcos):
9851         * floatfns.c (Fsin):
9852         * floatfns.c (Ftan):
9853         * floatfns.c (Fbessel_j0):
9854         * floatfns.c (Fbessel_j1):
9855         * floatfns.c (Fbessel_jn):
9856         * floatfns.c (Fbessel_y0):
9857         * floatfns.c (Fbessel_y1):
9858         * floatfns.c (Fbessel_yn):
9859         * floatfns.c (Ferf):
9860         * floatfns.c (Ferfc):
9861         * floatfns.c (Flog_gamma):
9862         * floatfns.c (Fexp):
9863         * floatfns.c (Fexpt):
9864         * floatfns.c (Flog):
9865         * floatfns.c (Flog10):
9866         * floatfns.c (Fsqrt):
9867         * floatfns.c (Fcube_root):
9868         * floatfns.c (Facosh):
9869         * floatfns.c (Fasinh):
9870         * floatfns.c (Fatanh):
9871         * floatfns.c (Fcosh):
9872         * floatfns.c (Fsinh):
9873         * floatfns.c (Ftanh):
9874         * floatfns.c (Fabs):
9875         * floatfns.c (Ffloat):
9876         * floatfns.c (Flogb):
9877         * floatfns.c (Fceiling):
9878         * floatfns.c (Ffloor):
9879         * floatfns.c (Fround):
9880         * floatfns.c (Ftruncate):
9881         * floatfns.c (Ffceiling):
9882         * floatfns.c (Fffloor):
9883         * floatfns.c (Ffround):
9884         * floatfns.c (Fftruncate):
9885         * fns.c (Fstring_equal):
9886         * fns.c (Fstring_lessp):
9887         * fns.c (concat2):
9888         * fns.c (concat3):
9889         * fns.c (vconcat2):
9890         * fns.c (vconcat3):
9891         * fns.c (Fsubstring):
9892         * fns.c (Fassoc):
9893         * fns.c (Fold_assoc):
9894         * fns.c (assoc_no_quit):
9895         * fns.c (Fassq):
9896         * fns.c (Fold_assq):
9897         * fns.c (assq_no_quit):
9898         * fns.c (Frassoc):
9899         * fns.c (Fold_rassoc):
9900         * fns.c (Frassq):
9901         * fns.c (Fold_rassq):
9902         * fns.c (rassq_no_quit):
9903         * fns.c (Fremassoc):
9904         * fns.c (remassoc_no_quit):
9905         * fns.c (Fremassq):
9906         * fns.c (remassq_no_quit):
9907         * fns.c (Fremrassoc):
9908         * fns.c (Fremrassq):
9909         * fns.c (remrassq_no_quit):
9910         * fns.c (Fsort):
9911         * fns.c (Fplist_get):
9912         * fns.c (Fplist_put):
9913         * fns.c (Fplist_remprop):
9914         * fns.c (Fplist_member):
9915         * fns.c (Flax_plist_get):
9916         * fns.c (Flax_plist_put):
9917         * fns.c (Flax_plist_remprop):
9918         * fns.c (Flax_plist_member):
9919         * fns.c (Fequal):
9920         * fns.c (Fold_equal):
9921         * fns.c (Frequire):
9922         * fns.c (Fbase64_encode_region):
9923         * fns.c (Fbase64_encode_string):
9924         * fns.c (Fbase64_decode_region):
9925         * frame.c:
9926         * frame.c (frame_matches_frame_spec):
9927         * frame.c (device_matches_device_spec):
9928         * frame.c (next_frame):
9929         * frame.c (previous_frame):
9930         * frame.c (Fnext_frame):
9931         * frame.c (Fprevious_frame):
9932         * frame.c (Fframe_property):
9933         * frame.c (Fset_frame_height):
9934         * frame.c (Fset_frame_size):
9935         * frame.h:
9936         * glyphs.c:
9937         * glyphs.c (if):
9938         * glyphs.c (decode_error_behavior_flag):
9939         * glyphs.c (Fmake_image_instance):
9940         * indent.c (Findent_to):
9941         * intl.c (Fignore_defer_gettext):
9942         * keymap.c (Fkeymapp):
9943         * keymap.c (Flookup_key):
9944         * lread.c:
9945         * lread.c (Fload_internal):
9946         * lread.c (Feval_buffer):
9947         * lread.c (Feval_region):
9948         * macros.c (Fexecute_kbd_macro):
9949         * marker.c (set_marker_internal):
9950         * marker.c (Fset_marker):
9951         * marker.c (set_marker_restricted):
9952         * marker.c (Fcopy_marker):
9953         * marker.c (noseeum_copy_marker):
9954         * menubar.c:
9955         * menubar.c (Fpopup_menu):
9956         * minibuf.c:
9957         * mule-charset.c (Fcharset_name):
9958         * mule-charset.c (Fchar_charset):
9959         * mule-charset.c (Fchar_octet):
9960         * mule-charset.c (Fsplit_char):
9961         * mule-wnnfns.c (Fwnn_open):
9962         * mule-wnnfns.c (Fwnn_dict_comment):
9963         * mule-wnnfns.c (Fwnn_quit_henkan):
9964         * mule-wnnfns.c (Fwnn_word_toroku):
9965         * mule-wnnfns.c (Fwnn_word_sakujo):
9966         * mule-wnnfns.c (Fwnn_word_use):
9967         * mule-wnnfns.c (Fwnn_hindo_set):
9968         * objects.c:
9969         * objects.c (Fmake_color_instance):
9970         * objects.c (Fmake_font_instance):
9971         * print.c (Fwrite_char):
9972         * process.c:
9973         * process.c (mark_process):
9974         * process.c (print_process):
9975         * process.c (get_process_from_usid):
9976         * process.c (Fprocessp):
9977         * process.c (Fprocess_live_p):
9978         * process.c (Fget_process):
9979         * process.c (Fget_buffer_process):
9980         * process.c (get_process):
9981         * process.c (Fprocess_id):
9982         * process.c (Fprocess_name):
9983         * process.c (Fprocess_command):
9984         * process.c (init_process_io_handles):
9985         * process.c (start_process_unwind):
9986         * process.c (Fstart_process_internal):
9987         * process.c (Fopen_multicast_group_internal):
9988         * process.c (Fset_process_window_size):
9989         * process.c (read_process_output):
9990         * process.c (send_process):
9991         * process.c (Fprocess_tty_name):
9992         * process.c (Fset_process_buffer):
9993         * process.c (Fprocess_buffer):
9994         * process.c (Fprocess_mark):
9995         * process.c (set_process_filter):
9996         * process.c (Fset_process_filter):
9997         * process.c (Fprocess_filter):
9998         * process.c (Fprocess_send_region):
9999         * process.c (Fprocess_send_string):
10000         * process.c (exec_sentinel):
10001         * process.c (Fset_process_sentinel):
10002         * process.c (Fprocess_sentinel):
10003         * process.c (status_notify):
10004         * process.c (Fprocess_status):
10005         * process.c (Fprocess_exit_status):
10006         * process.c (process_send_signal):
10007         * process.c (Fprocess_send_eof):
10008         * process.c (deactivate_process):
10009         * process.c (remove_process):
10010         * process.c (Fdelete_process):
10011         * process.c (kill_buffer_processes):
10012         * process.c (Fprocess_kill_without_query):
10013         * process.c (Fprocess_kill_without_query_p):
10014         * rangetab.c:
10015         * rangetab.c (Fget_range_table):
10016         * rangetab.c (Fput_range_table):
10017         * rangetab.c (Fremove_range_table):
10018         * rangetab.c (Fclear_range_table):
10019         * search.c:
10020         * search.c (Fskip_chars_forward):
10021         * search.c (Fskip_chars_backward):
10022         * search.c (Fskip_syntax_forward):
10023         * search.c (Fskip_syntax_backward):
10024         * search.c (search_command):
10025         * search.c (Freplace_match):
10026         * search.c (Fregexp_quote):
10027         * select.c (Fown_selection_internal):
10028         * select.c (Fselection_owner_p):
10029         * select.c (Fselection_exists_p):
10030         * select.c (Fget_selection_internal):
10031         * specifier.c:
10032         * symbols.c:
10033         * symbols.c (Fintern):
10034         * symbols.c (Fintern_soft):
10035         * symbols.c (Funintern):
10036         * symbols.c (Fapropos_internal):
10037         * symbols.c (Fset_default):
10038         * syntax.c:
10039         * syntax.c (Fsyntax_table_p):
10040         * syntax.c (Fcopy_syntax_table):
10041         * syntax.c (Fset_syntax_table):
10042         * syntax.c (Fchar_syntax):
10043         * syntax.c (syntax_match):
10044         * syntax.c (Fmatching_paren):
10045         * syntax.c (Fforward_word):
10046         * syntax.c (scan_lists):
10047         * syntax.c (Fscan_lists):
10048         * syntax.c (Fscan_sexps):
10049         * syntax.c (Fparse_partial_sexp):
10050         * toolbar.c (Fcheck_toolbar_button_syntax):
10051         * tooltalk.doc:
10052         * window.c:
10053         * window.c (Fwindowp):
10054         * window.c (Fwindow_live_p):
10055         * window.c (Fwindow_point):
10056         * window.c (Fdelete_window):
10057         * window.c (Fnext_window):
10058         * window.c (Fprevious_window):
10059         * window.c (Fother_window):
10060         * window.c (window_loop):
10061         * window.c (Fget_lru_window):
10062         * window.c (Fsplit_window):
10063         * window.c (Fenlarge_window):
10064         * window.c (Fenlarge_window_pixels):
10065         * window.c (Fshrink_window):
10066         * window.c (Fshrink_window_pixels):
10067         * window.c (change_window_height):
10068         * window.c (Fwindow_configuration_p):
10069         * window.c (Fcurrent_window_configuration):
10070         * window.h:
10071         * casefiddle.c (casify_object):
10072         * casefiddle.c (Fupcase):
10073         * casefiddle.c (Fdowncase):
10074         * casefiddle.c (Fcapitalize):
10075         * casefiddle.c (Fupcase_initials):
10076         * casefiddle.c (casify_region_internal):
10077         * casefiddle.c (casify_region):
10078         * casefiddle.c (Fupcase_region):
10079         * casefiddle.c (Fdowncase_region):
10080         * casefiddle.c (Fcapitalize_region):
10081         * casefiddle.c (Fupcase_initials_region):
10082         * casefiddle.c (Fupcase_word):
10083         * casefiddle.c (Fdowncase_word):
10084         * casefiddle.c (Fcapitalize_word):
10085         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
10086         Replace 0 with '\0' when working with bytes.
10087         Replace initial "(" with "\(" in docstrings.
10088
10089 2000-11-01  Martin Buchholz  <martin@xemacs.org>
10090
10091         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
10092
10093         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
10094
10095 2000-10-31  Martin Buchholz  <martin@xemacs.org>
10096
10097         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
10098
10099 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
10100
10101         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
10102         correctly.
10103
10104 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
10105
10106         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
10107         (inhibit_auto_save_session): New variable.
10108         (vars_of_fileio): Declare and initialize them.
10109         * fileio.c (Fdo_auto_save): Don't create session file if
10110         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
10111
10112 2000-10-31  Martin Buchholz  <martin@xemacs.org>
10113
10114         * sgiplay.c (play_internal): C++ compilability.
10115         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
10116         * callproc.c (Fold_call_process_internal):
10117         Remove unused vars `env', `first'.
10118         * scrollbar.c (update_scrollbar_instance):
10119         #### unused var `current_window'.
10120         * redisplay-tty.c: Put currently unused vars insert_mode_on,
10121         etc. within #ifdef NOT_YET.
10122         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
10123         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
10124         * specifier.c (specifier_instance):
10125         #### unused var `tag'.
10126         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
10127
10128 2000-10-27  Martin Buchholz  <martin@xemacs.org>
10129
10130         * fns.c (Fbutlast):
10131         * fns.c (list_sort):
10132         * fns.c (Ffillarray):
10133         * fns.c (bytecode_nconc2):
10134         * fns.c (Fnconc):
10135         * fns.c (mapcar1):
10136         * fns.c (Fmapconcat):
10137         Be pedantically 64-bit correct.  For the time when someone will
10138         want to have a list with length > 2**32.
10139
10140         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
10141         Work around MIPSpro compiler bug.
10142
10143         * process-unix.c (unix_kill_child_process): Add snarky comment.
10144         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
10145
10146         * config.h.in: Oops, _getpt ==> _getpty
10147
10148 2000-10-26  Martin Buchholz  <martin@xemacs.org>
10149
10150         * config.h.in:
10151         * regex.c:
10152         Use void*, not char*, as return type of alloca().
10153
10154         * alloc.c (free_marker): Side effect inside assert expression!
10155
10156 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
10157
10158         * mule-charset.c (Fset_charset_ccl_program): To check
10159         if the given ccl program is valid, use setup_ccl_program()
10160         instead of CHECK_VECTOR().
10161         (Fmake_charset): Likewise.
10162
10163 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
10164
10165         * faces.c (get_extent_fragment_face_cache_index):
10166         Fix cachel.merged_faces memory leak.
10167
10168 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
10169
10170         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
10171         Reset MSB of octets obtained by DECODE_SJIS
10172         because of the incompatibility with Emacs.
10173         (ccl_driver)<CCL_ENCODE_SJIS>:
10174         Set MSB of octets before passing them to
10175         ENCODE_SJIS because of the incompatibility
10176         with Emacs.
10177
10178 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
10179
10180         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
10181         (DECLARE_LRECORD): Undo the last change.
10182         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
10183
10184 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
10185
10186         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
10187         the implementation to lrecord_implementations_table.
10188
10189 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
10190
10191         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
10192         initial value of `lrecord_type_##c_name' and
10193         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
10194         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
10195         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
10196         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
10197         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
10198
10199 2000-10-17  Martin Buchholz  <martin@xemacs.org>
10200
10201         * miscplay.c (sndcnv8S_2mono):
10202         (sndcnv2monounsigned):
10203         (sndcnvULaw_2linear):
10204         (sndcnv16swap):
10205         Remove implementation-defined behavior.
10206
10207 2000-10-12  Martin Buchholz  <martin@xemacs.org>
10208
10209         * input-method-xlib.c: Warning suppression.
10210
10211 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
10212
10213         * mule-ccl.c: Sync up with Emacs 21.0.90.
10214         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
10215         Do nothing.
10216         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
10217         Likewise.
10218         (ccl_driver[WriteMultibyteChar2]): Bug fix.
10219         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
10220         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
10221         leading char belongs to official 2-dimensional charset.
10222         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
10223         write the given character as is.  Otherwise,
10224         if it is a multibyte char, convert it by
10225         non_ascii_set_charptr_emchar, then write it.
10226         (CCL_WRITE_STRING): Likewise.
10227         (ccl_get_compiled_code): New function.
10228         (setup_ccl_program): When ccl_prog is invalid,
10229         return -1.
10230         (Fregister_code_conversion_map): New function.
10231         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
10232
10233         * mule-ccl.h: Sync up with Emacs 21.0.90.
10234         (Fregister_ccl_program): export it.
10235
10236         * redisplay-msw.c (separate_textual_runs):
10237         If ccl program is not valid, don't do ccl conversion.
10238
10239         * redisplay-x.c (separate_textual_runs): Ditto.
10240
10241         * file-coding.c (Fmake_coding_system):
10242         When type is ccl and value is vector, register it
10243         with a proper symbol.  And checks whether the
10244         given ccl program is valid.
10245         (mule_decode): When calling ccl_driver, if src indicates
10246         NULL pointer, set an empty string instead.
10247         (mule_encode): Likewise.
10248
10249 2000-10-11  Martin Buchholz  <martin@xemacs.org>
10250
10251         The following large batch of changes gets us back to a state of
10252         C++ compilability.  Extbyte is now a char, which means that
10253         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
10254
10255         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
10256
10257         * sound.c (Fplay_sound): Type correctness.
10258
10259         * select-x.c (hack_motif_clipboard_selection): Type correctness.
10260         (x_get_window_property): Type correctness.
10261         (receive_incremental_selection): unsigned char ==> Extbyte
10262         (selection_data_to_lisp_data): unsigned char ==> Extbyte
10263         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
10264         (Fx_store_cutbuffer_internal): Type correctness.
10265
10266         * process-unix.c (try_to_initialize_subtty): Type correctness.
10267
10268         * objects-x.c (x_print_color_instance): Type correctness.
10269         (x_print_font_instance): Type correctness.
10270         (x_list_fonts): SExtbyte ==> Extbyte.
10271         (valid_x_font_name_p): SExtbyte ==> Extbyte.
10272         (x_find_charset_font): SExtbyte ==> Extbyte.
10273         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
10274         (truename_via_XListFonts): SExtbyte ==> Extbyte.
10275         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
10276         Use bufbyte_strcmp.
10277
10278         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
10279         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
10280         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
10281         (BYTE_C0_P): Use bit ops for char-signedness safety.
10282         (BYTE_C1_P): Use bit ops for char-signedness safety.
10283         (CHARSET_BY_LEADING_BYTE):
10284         (CHARSET_BY_ATTRIBUTES):
10285         Always use inline function.
10286         Use type_checking_assert.
10287         Hide chlook.
10288
10289         * mule-charset.c (non_ascii_charptr_copy_char):
10290         Modify to work with both ASCII and non-ASCII characters.
10291         Improve docs and variable names.
10292         Replace over-clever fall-through switch with a simple loop.
10293         (Lstream_get_emchar_1):
10294         Replace over-clever fall-through switch with a simple loop.
10295
10296         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10297         Warning suppression.
10298
10299         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
10300         the return value of Lstream_getc, which could be EOF as well.
10301
10302         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
10303
10304         * lisp.h: Make Extbyte a char, not unsigned char, so that external
10305         APIs can be used on Extbytes without casts.  Risky!
10306         (SExtbyte): Remove.
10307         (UExtbyte): Remove.
10308
10309         * input-method-xlib.c (XIM_init_device):
10310         Use Xlib.h instead of IntrinsicP.h.
10311         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
10312         which will break in X11R7.
10313         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
10314         to call XRegisterIMInstantiateCallback with correct types.
10315
10316         * gui-x.c (button_item_to_widget_value): Type correctness.
10317
10318         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
10319
10320         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
10321         (xbm_instantiate_1): Type correctness.
10322         (BUILD_GLYPH_INST):  Type correctness.
10323
10324         * fileio.c (Fsubstitute_in_file_name): Type correctness.
10325
10326         * file-coding.c:
10327         (decode_coding_sjis):
10328         (decode_coding_big5):
10329         (decode_coding_ucs4):
10330         (decode_coding_utf8):
10331         (decode_coding_iso2022):
10332         (decode_coding_no_conversion):
10333         Make all decoding functions take an Extbyte * arg.
10334         (encode_coding_sjis):
10335         (encode_coding_big5):
10336         (encode_coding_ucs4):
10337         (encode_coding_utf8):
10338         (encode_coding_iso2022):
10339         (encode_coding_no_conversion):
10340         Make all encoding functions take a Bufbyte * arg.
10341         Use size_t instead of unsigned int for memory sizes.
10342         Only cast to unsigned char whenever dereferencing Extbyte *.
10343
10344         * doc.c (unparesseuxify_doc_string): Type correctness.
10345
10346         * console-x.c (split_up_display_spec):
10347         Rewrite without using details of internal string representation.
10348         (x_semi_canonicalize_device_connection): Type correctness.
10349
10350         * config.h.in:
10351         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
10352         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
10353         (HAVE_XFREE386): Removed.
10354
10355         * buffer.h (DEC_CHARPTR): `const' correctness.
10356         (bufbyte_strcmp): New.
10357         (bufbyte_memcmp): New.
10358
10359         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
10360
10361         * buffer.h (XCHAR_OR_CHAR_INT):
10362         Always use inline function.
10363         Remove redundant type checking assert() - XINT will abort quite nicely.
10364
10365 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
10366
10367         * search.c (Freplace_match): Set newtext to an empty string.
10368
10369 2000-10-10  Martin Buchholz  <martin@xemacs.org>
10370
10371         * s/decosf1-3.h: Remove #include of stropts.h
10372         * s/ptx.h: Remove #include of stropts.h
10373         * s/usg5-4.h: Remove #include of stropts.h
10374         * sysproc.h:
10375         * config.h.in:
10376         Use stropts.h, not sys/stropts.h.
10377         Use strtio.h, not sys/strtio.h.
10378
10379 2000-10-04  Martin Buchholz <martin@xemacs.org>
10380
10381         * XEmacs 21.2.36 is released.
10382
10383 2000-09-21  Andy Piper  <andy@xemacs.org>
10384
10385         * glyphs-x.c (x_redisplay_widget): make sure non-structural
10386         changes still involve copying the widget tree.
10387         (update_widget_face): make sure a change is register in the widget
10388         tree. Call update_tab_widget_face appropriately.
10389         (update_tab_widget_face): ditto.
10390         (x_tab_control_redisplay): make sure non-structural changes still
10391         involve copying the widget tree.
10392
10393 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
10394
10395         * lread.c (locate_file): Check the path element is non-nil.
10396
10397 2000-10-02  Martin Buchholz  <martin@xemacs.org>
10398
10399         * lisp.h: Warning suppression for SCO compilers.
10400
10401         * redisplay-tty.c (reset_tty_modes): Fix crash.
10402         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
10403
10404 2000-09-27  Martin Buchholz  <martin@xemacs.org>
10405
10406         Big signal/process handling overhaul.  Bugs fixed:
10407         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
10408         M-x comint-kill-subjob should work for both values nil and t of
10409         process-connection-type. It was broken on most platforms.
10410         Testing on Irix and Cygwin still needed.  Other plaforms tested.
10411         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
10412         * process-unix.c: Signal/Process handling overhaul.
10413         (pty_name): make 64 bytes, as `expect' does, for paranoia.
10414         (allocate_pty): Use all available modern methods of allocating
10415         ptys, falling back to old style BSD allocation as a last resort.
10416         Use allegedly more secure Unix98 pty allocation by default.
10417         (allocate_pty_the_old_fashioned_way): New. the last resort.
10418         (unix_create_process): Push ptem, ldterm, ttcompat where
10419         available.  Autoconfiscate.
10420         (try_to_initialize_subtty): New.
10421         (unix_kill_child_process): Proper signal handling for ptys on most
10422         platforms, using special knowledge of AIX, BSD, etc...
10423         (unix_create_process): Always disconnect_controlling_terminal() for
10424         subprocesses, whether using ptys or not.
10425         * process.h: Remove old getpt-dependent PTY code.
10426         * process.c (Fprocess_send_signal): New, obvious generic function.
10427         (decode_signal): New.
10428         (Finterrupt_process):
10429         (Fkill_process):
10430         (Fquit_process):
10431         (Fstop_process):
10432         (Fcontinue_process):
10433         (Fsignal_process): Use decode_signal.
10434         (process_send_signal):
10435         Many docstring corrections.
10436         Allow any signal to be sent to a process object.
10437         * config.h.in: Add symbols for big signal/process overhaul.
10438         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
10439         * sysproc.h: Include process-related headers, where available:
10440         sys/stropts.h sys/strtio.h pty.h libutil.h
10441         * s/irix4-0.h:
10442         * s/irix5-0.h:
10443         * s/cygwin32.h:
10444         * s/gnu.h:
10445         * s/linux.h:
10446         * s/hpux.h:
10447         * s/aix3-1.h:
10448         Remove old S&M pty stuff.
10449         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
10450         * systty.h: Simplify cpp hackery, improve comments.
10451         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
10452
10453         * editfns.c (Fformat_time_string):
10454         Be a little more paranoid with the return value of ctime.
10455
10456         * fileio.c (check_executable):
10457         (check_writable):
10458         Use symbolic constants X_OK, W_OK.
10459
10460         * console-x.c (split_up_display_spec): Fix a warning.
10461
10462 2000-10-02  Martin Buchholz  <martin@xemacs.org>
10463
10464         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
10465         * ntproc.c (sys_spawnve): make_string ==> build_string
10466         Small clarity improvements.
10467
10468 2000-09-30  Martin Buchholz  <martin@xemacs.org>
10469
10470         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
10471
10472         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
10473
10474         * config.h.in (HAVE_STRCASECMP): Remove.
10475
10476 2000-09-29  Martin Buchholz  <martin@xemacs.org>
10477
10478         * redisplay-output.c (redisplay_output_pixmap):
10479         Cleaner and possibly more 64-bit correct code.
10480
10481 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
10482
10483         * dumper.c (pdump_load_finish): move restoration of
10484         `noninteractive1' to emacs.c (main_1).
10485         * emacs.c (main_1): protect LISP-visible command-line flags
10486         from pdump_load().
10487
10488 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
10489
10490         * Makefile.in.in (versionclean):  Use EXE_TARGET and
10491         DUMP_TARGET instead of literal program names.
10492
10493 2000-09-20  Martin Buchholz  <martin@xemacs.org>
10494
10495         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
10496
10497 2000-09-19  Martin Buchholz  <martin@xemacs.org>
10498
10499         * *: Spelling mega-patch
10500
10501 2000-09-19  Martin Buchholz  <martin@xemacs.org>
10502
10503         * fns.c (bad_bad_turtle):
10504         Delete "Eek!" comment, since we fixed the bug to which it refers.
10505
10506 2000-09-16  Martin Buchholz  <martin@xemacs.org>
10507
10508         * alloca.c: Replace REGISTER with register.
10509
10510 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
10511
10512         * file-coding.c (ucs_to_char): Use countof.
10513
10514 2000-09-16  Martin Buchholz  <martin@xemacs.org>
10515
10516         * file-coding.c: (ucs_to_char):
10517         (complex_vars_of_file_coding):
10518         Use countof instead of sizeof.
10519         Use CHECK_NATNUM instead of CHECK_INT.
10520
10521         * sysdep.c (strcasecmp): Remove.
10522         * device-x.c (ascii_strcasecmp): New.
10523         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
10524         Avoid using non-standard non-portable strcasecmp.
10525
10526 2000-09-16  Martin Buchholz  <martin@xemacs.org>
10527
10528         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
10529         * font-lock.c: remove reference to emacsfns.h.
10530         * search.c: small doc improvement.
10531         * event-Xt.c: correct file names in comments.
10532         * console-x.h Correct file names in comments.
10533         * frame.c: Correct file names in comments.
10534         * event-stream.c: remove Energize from comments.
10535
10536 2000-09-15  Martin Buchholz  <martin@xemacs.org>
10537
10538         * symeval.h (DEFERROR_STANDARD):
10539         (DEFERROR):
10540         (DEFSYMBOL):
10541         (DEFSYMBOL_NO_DUMP):
10542         (DEFSYMBOL_MULTIWORD_PREDICATE):
10543         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
10544         (DEFKEYWORD):
10545         The construct &##name is not sensible C.
10546         Fixes compilation errors with Unixware native compiler.
10547
10548 2000-09-14  Martin Buchholz  <martin@xemacs.org>
10549
10550         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
10551         (next_frame_internal): Removed.  We now just have next_frame.
10552         (next_frame):
10553         Write a simpler and cleaner one-pass algorithm.
10554         Remove called_from_delete_device arg and #ifdefed-out code.
10555         (previous_frame):
10556         Renamed from prev_frame.  Update callers.
10557         Cleaned up to have an analogous implementation to next_frame.
10558         (other_visible_frames_internal): Remove the
10559         called_from_delete_device bogus arg, and hence, remove this
10560         function.  Just use other_visible_frames().
10561
10562         * window.c (Fnext_window):
10563         Prettify docstring.
10564         Since next_frame() is guaranteed to return a frame, remove check
10565         for nil inserted in previous patch.
10566         (Fprevious_window):
10567         Prettify docstring.
10568         Make code look more like Fnext_window.
10569         (window_loop):
10570         Respect the `console' arg when iterating through windows.
10571         Fixes bug: (get-buffer-window buffer t device) not respecting
10572         the `device' arg.
10573         This function needs more work, as others have pointed out.
10574
10575         * frame.h: Rename prev_frame to previous_frame.
10576         device_matches_console_spec no longer takes a `frame' arg.
10577
10578         * s/gnu.h:
10579         * s/linux.h:
10580         * s/hpux.h:
10581         Use EMACS_BLOCK_SIGNAL instead of sigblock.
10582         From "Golubev I. N." <gin@mo.msk.ru>.
10583
10584         * make-src-depend: Fix typo.
10585
10586 2000-09-13  Martin Buchholz  <martin@xemacs.org>
10587
10588         * window.c (Fnext_window):
10589         next_frame() might return nil, not a frame.
10590         Fixes this crash:
10591         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
10592
10593         * frame.c (next_frame_internal):
10594         We've passed a frame if we've passed its device.
10595         Fixes this crash:
10596         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
10597 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
10598
10599 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10600
10601         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
10602         Allow option to suppress accelerators in menu/dialog items.
10603         (populate_or_checksum_helper): Pass dialog title through above.
10604
10605 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10606
10607         * event-msw.c (mswindows_key_to_emacs_keysym):
10608         Add "pause" key, fix "menu" key.
10609
10610 2000-09-09  Martin Buchholz  <martin@xemacs.org>
10611
10612         * eval.c (reinit_vars_of_eval):
10613         Increase max_lisp_eval_depth to 1000,
10614         required for thai-xtis.el to byte-compile under some circumstances.
10615
10616 2000-09-04  Martin Buchholz  <martin@xemacs.org>
10617
10618         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
10619         From Kenichi Handa.
10620
10621 2000-09-01  Martin Buchholz  <martin@xemacs.org>
10622
10623         * make-src-depend: Make the generated Makefiles smaller.
10624
10625         * s/hpux.h (SETUP_SLAVE_PTY):
10626         Provide a %d in the format string for the errno argument.
10627
10628         * editfns.c (Ftemp_directory):
10629         Warning fix.
10630         Avoid buffer overrun on very long file name.
10631
10632         * input-method-xlib.c (XIM_init_device):
10633         6th parameter of XRegisterIMInstantiateCallback has different
10634         pointer types on different OSes, so simply cast to (void *).
10635
10636         * unexhp9k800.c: Warning fixes.  Fiddly changes.
10637
10638         * sysdll.c (dll_open):
10639         shl_load will hang hard if passed a NULL filename.
10640         Simply return NULL for compatibility with dlopen.
10641         * sysdll.c: Conform to XEmacs coding standards.
10642
10643         * sysdep.c (get_pty_max_bytes):
10644         Support pty input lines longer than 512 bytes on HP-UX 10.20.
10645
10646 2000-08-31  Martin Buchholz  <martin@xemacs.org>
10647
10648         * tooltalk.c: Add #include <syssignal.h>
10649
10650 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
10651
10652         * s/hpux.h: Don't use undefined function sigunblock().
10653
10654 2000-08-31  Martin Buchholz  <martin@xemacs.org>
10655
10656         * config.h.in: Add HAVE_BALLOON_HELP.
10657         * emacs.c: Use HAVE_BALLOON_HELP.
10658         * Makefile.in.in (x_objs):
10659         Make Balloon Help conditional on finding shape.h.
10660
10661 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
10662
10663         * syntax.c (regex_emacs_buffer_p): New variable.
10664         * syntax.h (regex_emacs_buffer_p): extern.
10665         * search.c (looking_at_1):
10666         (string_match_1):
10667         (fast_string_match):
10668         (search_buffer): Set regex_emacs_buffer_p.
10669         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
10670         when before_dot, at_dot, after_dot.
10671
10672 2000-08-23  Andy Piper  <andy@xemacs.org>
10673
10674         * gui-x.c (popup_selection_callback): Only set action_occurred
10675         when we really have an image instance.
10676         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
10677
10678 2000-08-23  Andy Piper  <andy@xemacs.org>
10679
10680         * gui-msw.c (mswindows_handle_gui_wm_command): set
10681         action_occurred.
10682         * gui-x.c (popup_selection_callback): ditto.
10683
10684         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
10685         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
10686         (struct Lisp_Image_Instance): add action_occurred flag.
10687
10688         * glyphs.c (redisplay_subwindow): use action_occurred flag.
10689         (image_instance_changed): ditto.
10690         (reset_frame_subwindow_instance_cache): only unmap windows - do
10691         not remove them from the cache also.
10692
10693         * glyphs-widget.c (tab_control_update): better debug.
10694         (progress_gauge_update): ditto.
10695         (layout_update): ditto.
10696         (layout_instantiate): ditto.
10697         (tab_control_order_only_changed): cope with null pending items.
10698
10699         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
10700         debug. Force selection of an item when an action occurred. Cope
10701         with null pending_items.
10702         (mswindows_progress_gauge_redisplay): better debug.
10703         * glyphs-x.c (x_tab_control_redisplay): ditto.
10704
10705         * redisplay.c (redisplay_frame): reset the frame cache if the
10706         frame is garbaged.
10707
10708         * window.c (Fset_window_configuration): potentially re-enable
10709         frame cache reset.
10710         (window_unmap_subwindows): need to finalize instances here since
10711         it is only used in mark_window_as_deleted.
10712
10713 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
10714
10715         * nas.c (SndOpenDataForReading):
10716         nas.c (WaveOpenDataForReading):
10717         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
10718         Somehow escaped from the 2000-08-14 patch.
10719
10720 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
10721
10722         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
10723         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
10724
10725 2000-08-21  Andy Piper  <andy@xemacs.org>
10726
10727         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
10728         window if it is not already displayed.
10729
10730         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
10731         it is not already displayed.
10732
10733         * window.c (Fset_window_configuration): don't reset the frame
10734         cache.
10735
10736         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
10737         instances from the frame cache if we are actually finalizing them.
10738         (reset_frame_subwindow_instance_cache): reset frame cache only
10739         after unmapping everything.
10740         (map_subwindow): set displayed flag after mapping.
10741
10742 2000-08-21  Martin Buchholz  <martin@xemacs.org>
10743
10744         * data.c (indirect_function):
10745         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
10746
10747         * eval.c (function_argcount):
10748         Use original function when signaling errors.
10749
10750 2000-08-18  Andy Piper  <andy@xemacs.org>
10751
10752         * frame.c (delete_frame_internal): use new
10753         free_frame_subwindow_instances name.
10754
10755         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
10756         (add_tab_item): make return type correct.
10757         (mswindows_tab_control_instantiate): assert index of tab.
10758         (mswindows_tab_control_redisplay): Re-code to use
10759         gui_item_equal_sans_selected and gui_item_list_find_selected.
10760
10761         * glyphs-widget.c (tab_control_update): Correct comment.
10762
10763         * window.c (window_unmap_subwindows): use new
10764         unmap_subwindow_instance_cache_mapper.
10765         (window_unmap_subwindows_cache_mapper): deleted.
10766         (Fset_window_configuration): comparisons should now be with
10767         EQ. Preserve the subwindow instance cache across configuration
10768         changes.
10769         (allocate_window): ditto.
10770         (make_dummy_parent): ditto.
10771
10772         * glyphs.c (free_frame_subwindow_instances): rename from
10773         free_frame_subwindow_instance_cache. finalize all instances rather
10774         than just those in the display cache.
10775         (finalize_all_subwindow_instances): walk windows unmapping and
10776         finalizing subwindows.
10777         (unmap_subwindow_instance_cache_mapper): moved from
10778         window.c. Allow finalization as well as unmapping.
10779
10780         * gui.c (gui_item_list_find_selected): new function.
10781
10782         * gui.h (gui_item_list_find_selected): declare.
10783
10784         * glyphs-x.c (x_tab_control_redisplay): pick tab
10785         explicitly. Re-code to use gui_item_equal_sans_selected and
10786         gui_item_list_find_selected.
10787
10788         * glyphs-x.h: add lwlib-utils.h
10789
10790         * buffer.c (Frecord_buffer): undo previous change.
10791
10792 2000-08-09  Vin Shelton  <acs@xemacs.org>
10793
10794         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
10795         possible.  Create temporary files more securely.  The patch was
10796         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
10797         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
10798         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
10799         for details.
10800
10801 2000-08-07  Ben Wing  <ben@xemacs.org>
10802
10803         * getloadavg.c: remove duplicate (and windows-breaking)
10804         includes of fcntl.h and sys/file.h.
10805
10806         * nt.c: remove duplicate getloadavg() definition.
10807
10808         * sysdll.h (Qdll_filename_encoding): add missing stand-in
10809         encodings.
10810
10811 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
10812
10813         * eval.c (function_argcount): If function needs to be autoloaded
10814         actually use the loaded definition.
10815         GCPRO function.
10816
10817 2000-08-05  Ben Wing  <ben@xemacs.org>
10818
10819         * getloadavg.c: add prototype for getloadavg().  remove
10820         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
10821         of the code).  remove duplicate header includes.
10822
10823         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
10824
10825         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
10826         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
10827         useful load average.
10828
10829         * alloc.c (reinit_alloc_once_early): removed references to
10830         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
10831         the lisp vars are the only things referencing the malloc_sbrk_*
10832         vars, and they were already if 0'd out.  these vars only exist
10833         in the older malloc.c, which is basically unused, and they're
10834         only for informational purposes.
10835
10836         * m\*.h: removed useless VIRT_ADDR_VARIES.
10837
10838         * m\powerpc.h: removed stray NO_ARG_ARRAY.
10839
10840 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
10841
10842         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
10843         color if the image is a mono pixmap.
10844
10845 2000-07-30  Ben Wing  <ben@xemacs.org>
10846
10847         * Makefile.in.in (release):
10848         Remove stray @.
10849
10850         * buffer.c (directory_is_current_directory):
10851         * dired-msw.c (mswindows_get_files):
10852         * dired.c:
10853         * dired.c (Fdirectory_files):
10854         * dired.c (file_name_completion_stat):
10855         * dired.c (Ffile_attributes):
10856         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
10857         preprocessor tricks, to avoid problems on some machines
10858         (e.g. SCO).
10859
10860         * callproc.c (egetenv): GC docs.
10861
10862         * console-msw.h:
10863         * console-msw.h (struct mswindows_dialog_id):
10864         * lrecord.h (lrecord_type):
10865         New object for use with MSW dialogs.
10866
10867         * console.h (struct console_methods):
10868         New enable/disable frame methods, for proper modal dialogs.
10869
10870         * device-msw.c (msprinter_default_printer): Fix to follow
10871         proper Mule conventions.
10872
10873         * device-msw.c:
10874         * device-msw.c (signal_open_printer_error):
10875         * device-msw.c (msprinter_init_device):
10876         * device-msw.c (ensure_not_printing):
10877         * device-msw.c (plist_get_margin):
10878         * device-msw.c (Fmsprinter_select_settings):
10879         * device-msw.c (finalize_devmode):
10880         * device-msw.c (Fmsprinter_settings_despecialize):
10881         * device-msw.c (signal_enum_priner_error):
10882         * extents.c (decode_extent):
10883         * extents.c (decode_map_extents_flags):
10884         * extents.c (decode_extent_at_flag):
10885         * extents.c (Fextent_at):
10886         * extents.c (Fextents_at):
10887         * extents.c (symbol_to_glyph_layout):
10888         [[[[2]]]] Use structured errors.
10889
10890         * dialog-msw.c:
10891         * dialog-msw.c (mswindows_is_dialog_msg):
10892         * dialog-msw.c (mark_mswindows_dialog_id):
10893         * dialog-msw.c (dialog_proc):
10894         * dialog-msw.c (handle_question_dialog_box):
10895         * dialog-msw.c (syms_of_dialog_mswindows):
10896         Define new object to clean up marking; use it as a dialog identifier.
10897         Call new delete-dialog-box-hook.
10898
10899         * dialog-x.c (dbox_selection_callback):
10900         * dialog-x.c (dbox_descriptor_to_widget_value):
10901         * dialog-x.c (x_make_dialog_box_internal):
10902         Call new delete-dialog-box-hook.
10903         Return an id.
10904
10905         * dialog.c:
10906         * dialog.c (syms_of_dialog):
10907         * dialog.c (vars_of_dialog):
10908         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
10909
10910         * eval.c:
10911         * eval.c (signal_call_debugger):
10912         when noninteractive, output stack traces on the console instead
10913         of in a (never-seen) buffer.
10914
10915         * eval.c (signal_type_error):
10916         * eval.c (invalid_argument_2):
10917         * lisp.h:
10918         new funs for use w/structured errors.
10919
10920         * event-Xt.c:
10921         * event-Xt.c (x_to_emacs_keysym):
10922         * event-Xt.c (describe_event):
10923         * event-Xt.c (emacs_Xt_event_handler):
10924         * event-Xt.c (vars_of_event_Xt):
10925         * event-msw.c:
10926         * event-msw.c (mswindows_wnd_proc):
10927         * event-msw.c (vars_of_event_mswindows):
10928         rename {x,mswindows}-debug-events to debug-{}-events for
10929         consistency with other debug-foo variables.
10930
10931         * event-stream.c:
10932         document next-event more clearly.
10933
10934         * fileio.c (Ffile_name_directory):
10935         * fileio.c (Ffile_name_nondirectory):
10936         * fileio.c (Funhandled_file_name_directory):
10937         * fileio.c (file_name_as_directory):
10938         * fileio.c (Ffile_name_as_directory):
10939         * fileio.c (directory_file_name):
10940         * fileio.c (Fdirectory_file_name):
10941         * fileio.c (Fmake_temp_name):
10942         * fileio.c (Ffile_truename):
10943         * fileio.c (Fsubstitute_in_file_name):
10944         * fileio.c (expand_and_dir_to_file):
10945         * fileio.c (barf_or_query_if_file_exists):
10946         * fileio.c (check_executable):
10947         * fileio.c (Ffile_exists_p):
10948         * fileio.c (Ffile_writable_p):
10949         * fileio.c (Ffile_directory_p):
10950         * fileio.c (Ffile_regular_p):
10951         * fileio.c (Ffile_modes):
10952         * fileio.c (Ffile_newer_than_file_p):
10953         * fileio.c (Fverify_visited_file_modtime):
10954         * fileio.c (Fset_visited_file_modtime):
10955         * fileio.c (auto_save_1):
10956         (1). (2).
10957         fix up gcpro's.
10958
10959         * frame-msw.c:
10960         * frame-msw.c (mswindows_init_frame_1):
10961         * frame-msw.c (mswindows_enable_frame):
10962         * frame-msw.c (error_frame_unsizable):
10963         * frame-msw.c (msprinter_init_frame_1):
10964         * frame-msw.c (msprinter_init_frame_3):
10965         * frame-msw.c (console_type_create_frame_mswindows):
10966         (2).
10967         implement new enable/disable frame methods.
10968
10969         * frame-x.c:
10970         * frame-x.c (x_enable_frame):
10971         * frame-x.c (console_type_create_frame_x):
10972         implement new enable/disable frame methods.
10973
10974         * frame.c:
10975         * frame.c (Fdisable_frame):
10976         * frame.c (syms_of_frame):
10977         * frame.h (struct frame):
10978         implement new enable/disable frame methods/functions.
10979
10980         * general-slots.h:
10981         add initial-focus.
10982
10983         * glyphs-msw.c (mswindows_widget_instantiate):
10984         comment that initial-focus should be implemented.
10985
10986         * glyphs-widget.c:
10987         * glyphs-widget.c (check_valid_instantiator):
10988         * glyphs-widget.c (check_valid_orientation):
10989         * glyphs-widget.c (check_valid_tab_orientation):
10990         * glyphs-widget.c (check_valid_justification):
10991         * glyphs-widget.c (check_valid_border):
10992         * glyphs-widget.c (check_valid_callback):
10993         * glyphs-widget.c (check_valid_int_or_function):
10994         * glyphs-widget.c (check_valid_string_or_vector):
10995         * glyphs-widget.c (check_valid_item_list_1):
10996         * glyphs-widget.c (widget_validate):
10997         * glyphs-widget.c (combo_box_validate):
10998         * glyphs-widget.c (widget_instantiate):
10999         * glyphs-widget.c (syms_of_glyphs_widget):
11000         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
11001         * glyphs-widget.c (image_instantiator_combo_box):
11002         * glyphs-widget.c (image_instantiator_scrollbar):
11003         * glyphs-widget.c (image_instantiator_tab_control):
11004         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
11005         (2).
11006         support (unimplemented) keyword initial-focus.
11007         reindent long macros.
11008
11009         * glyphs-x.c (x_redisplay_widget):
11010         * glyphs-x.c (x_button_instantiate):
11011         * glyphs-x.c (x_button_redisplay):
11012         * glyphs-x.c (x_progress_gauge_instantiate):
11013         * glyphs-x.c (x_edit_field_instantiate):
11014         * glyphs-x.c (x_combo_box_instantiate):
11015         * glyphs-x.c (x_tab_control_instantiate):
11016         * glyphs-x.c (x_label_instantiate):
11017         * gui-x.c:
11018         * gui-x.c (button_item_to_widget_value):
11019         * gui-x.c (gui_items_to_widget_values_1):
11020         * gui-x.c (gui_item_children_to_widget_values):
11021         * gui-x.c (gui_items_to_widget_values):
11022         * gui-x.h:
11023         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
11024         add new flag to gui-parsing routines to indicate whether
11025         accelerator specs should be supported.
11026
11027         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
11028
11029         * glyphs.h (struct Lisp_Image_Instance):
11030         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
11031         add initial-focus flag.
11032
11033         * gui.c:
11034         * gui.c (syms_of_gui):
11035         * gui.c (vars_of_gui):
11036         clean up menu-no-selection-hook.
11037
11038         * gui.h:
11039         support delete-dialog-box-hook.
11040
11041         * lread.c (Fload_internal):
11042         * lread.c (locate_file_in_directory_mapper):
11043         (1).
11044
11045         * lrecord.h:
11046         * lrecord.h (struct toolbar_button):
11047         * lrecord.h (syms_of_toolbar):
11048         document how to create a new object.
11049
11050         * menubar-msw.c (mswindows_char_is_accelerator):
11051         may be called on frames w/o menus.
11052
11053         * menubar.c (vars_of_menubar):
11054         clean up :filter docs.
11055
11056         * nt.c (readdir):
11057         * ntproc.c:
11058         (1).
11059
11060         * process-nt.c:
11061         * process-nt.c (validate_signal_number):
11062         * process-nt.c (signal_cannot_launch):
11063         * process-nt.c (nt_create_process):
11064         * process-nt.c (nt_send_process):
11065         * process-nt.c (nt_kill_child_process):
11066         * process-nt.c (nt_open_network_stream):
11067         * process-nt.c (syms_of_process_nt):
11068         (2).
11069         delete quote-handling.  call new lisp code that does it better.
11070
11071         * process-unix.c (connect_to_file_descriptor):
11072         * process-unix.c (allocate_pty):
11073         * process-unix.c (unix_send_process):
11074         * process-unix.c (unix_kill_child_process):
11075         * process-unix.c (unix_open_network_stream):
11076         * process-unix.c (unix_open_multicast_group):
11077         (1). (2).
11078
11079         * process.c:
11080         * process.c (Fstart_process_internal):
11081         (2).  need to canonicalize process path even if absolute.
11082
11083         * select-msw.c (symbol_to_ms_cf):
11084         * select-msw.c (ms_cf_to_symbol):
11085         * select-msw.c (cf_is_autofreed):
11086         * select-msw.c (mswindows_destroy_selection):
11087         * select.c:
11088         * select.c (syms_of_select):
11089         * select.h:
11090         support dibv5, fix bugs. (from Mike Alexander)
11091
11092         * select.c (Fget_selection_internal):
11093         * select.c (select_convert_out):
11094
11095         * sysdep.c:
11096         * sysdep.c (xemacs_stat):
11097         renamed.
11098
11099         * sysdep.c (mkdir):
11100         * sysdep.c (rmdir):
11101         but keep original stat() here because we provide encapsulation
11102         around these funs.
11103
11104         * sysfile.h:
11105         * sysfile.h (fstat):
11106         remove stat garbage.
11107
11108         * syswindows.h:
11109         fix X/MSW conflict.
11110         don't include tchar.h.  it's inappropriate because it makes
11111         compile-time distinctions when we want runtime distinctions.
11112         (we provide our own tchar replacements)
11113
11114         * toolbar.c:
11115         use default object printer for toolbar-button.
11116
11117         * unexcw.c:
11118         make sure we don't encapsulate.
11119
11120         * window.c (vars_of_window):
11121         emphasize that temp-buffer-show-hook is obsolete.
11122
11123 2000-08-05  Martin Buchholz  <martin@xemacs.org>
11124
11125         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
11126         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
11127
11128         * events.c (Fevent_timestamp_lessp):
11129         Not 64-bit clean.  Use EMACS_INT, not int.
11130
11131 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
11132
11133         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
11134         unsigned int and changed the last enum to
11135         lrecord_type_last_built_in_type.
11136         (lrecord_implementations_table): changed prototype to know how
11137         long the array is supposed to be.
11138         (lrecord_type_count): new unsigned int to keep track of the
11139         current number of lisp lrecord types.
11140         (DEFINE_EXTERNAL_LRECORD):
11141         (DECLARE_EXTERNAL_LRECORD): Added these two for external
11142         dynamic-modules to declare new lisp types. They are the same
11143         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
11144         int for each new type, and increment lrecord_type_count by 1.
11145
11146         * alloc.c (lrecord_implementations_table): Changed to reference
11147         lrecord_type_last_built_in_type for the size of the array.
11148         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
11149
11150 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
11151
11152         * glyphs.h (check_valid_item_list): Renamed from
11153         check_valid_item_list_1.
11154
11155 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
11156
11157         * select.c (Qselect_coerce): New.
11158         * select.c (Vselection_coercion_alist): New.
11159         * select.c (syms_of_select): Declare.
11160         * select.c (get-selection-internal): Use it.
11161         Use the new select-coerce functionality.
11162
11163         * select.c (select_coerce): New.
11164         * select.h (select_coerce): Declare.
11165         New function to coerce one type of data into another.
11166
11167 2000-08-03  Martin Buchholz  <martin@xemacs.org>
11168
11169         * callproc.c (Fcall_process_internal):
11170         (Fcall_process_internal):
11171         * process-unix.c (unix_create_process):
11172         Save and restore the value of errno, so that error messages are accurate.
11173
11174 2000-08-01  Martin Buchholz  <martin@xemacs.org>
11175
11176         * elhash.c (print_hash_table):
11177         Fix printing of hash tables to also use `key-and-value' instead of `t'.
11178         Prettify docstrings and indentation.
11179
11180 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
11181
11182         * window.c (Fwindow_pixel_edges): Subtract frame border and
11183         gutter size.
11184
11185 2000-07-31  Andy Piper  <andy@xemacs.org>
11186
11187         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
11188         will acknowledge the change.
11189
11190         * glyphs.h: declare tab_control_order_only_changed.
11191
11192         * glyphs-x.c (x_tab_control_redisplay): use
11193         tab_control_order_only_changed.
11194
11195         * glyphs-widget.c (tab_control_order_only_changed): new function.
11196
11197         * glyphs-msw.c (mswindows_tab_control_redisplay): use
11198         tab_control_order_only_changed.
11199
11200         * gui.c (gui_item_equal_sans_selected): new function.
11201         (gui_item_equal): use it.
11202
11203         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
11204         :properties in favor of :items..
11205
11206         * glyphs-widget.c (check_valid_item_list): rename from
11207         check_valid_item_list_1.
11208         (check_valid_item_list_1): renamed.
11209         (combo_box_validate): deprecate :properties in favor of :items.
11210         (widget_instantiate): ditto.
11211         (tab_control_update): ditto.
11212         (image_instantiator_combo_box): ditto.
11213         (image_instantiator_tree_view): ditto.
11214         (image_instantiator_tab_control): ditto.
11215         (layout_post_instantiate): remove dead code.
11216
11217         * print.c (debug_print_no_newline): only write to debugger if in
11218         WIN32_NATIVE.
11219
11220         * elhash.c (Fmake_hash_table): update doc string.
11221
11222         * event-msw.c (mswindows_wnd_proc): don't allow processing of
11223         messages whilst in GC. This at least stops XEmacs crashing but has
11224         the potential for wierd behaviour.
11225
11226 2000-07-31  Martin Buchholz  <martin@xemacs.org>
11227
11228         * config.h.in:
11229         Make existence of s&m files optional.
11230
11231         * s/bsd386.h: Remove HAVE_GETLOADAVG.
11232         * s/freebsd.h: Remove HAVE_GETLOADAVG.
11233         * s/gnu.h: Remove HAVE_GETLOADAVG.
11234         * s/netbsd.h: Remove HAVE_GETLOADAVG.
11235         * s/sol2.h: Remove HAVE_GETLOADAVG.
11236         * lisp.h: Remove getloadavg() declaration.
11237         * fns.c:
11238         Include <sys/loadavg.h> if available.
11239         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
11240         * config.h.in:  Group together getloadavg()-related macros.
11241         Use only configure-time tests to detect getloadavg().
11242
11243 2000-07-30  Martin Buchholz  <martin@xemacs.org>
11244
11245         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
11246
11247 2000-07-25  Andy Piper  <andy@xemacs.org>
11248
11249         * syswindows.h: add tchar.h for native builds.
11250
11251         * frame.c (syms_of_frame): remove set-glyph-image.
11252
11253         * general-slots.h: add Qset_glyph_image.
11254
11255         * glyphs-widget.c (layout_update): add domain arg to
11256         set-glyph-image.
11257         (syms_of_glyphs_widget): remove set-glyph-image.
11258
11259 2000-07-23  Ben Wing  <ben@xemacs.org>
11260
11261         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
11262         Vpopup_frame_list.
11263
11264 2000-07-22  Andy Piper  <andy@xemacs.org>
11265
11266         * symsinit.h: add syms_of_win32().
11267
11268         * gui-msw.c (syms_of_gui_mswindows): remove
11269         Fmswindows_shell_execute.
11270         (Fmswindows_shell_execute): moved to win32.c.
11271
11272         * emacs.c (main_1): add syms_of_win32 ().
11273
11274         * win32.c (init_potentially_nonexistent_functions): rewrite in
11275         compiler-friendly terms.
11276         (Fmswindows_shell_execute): move here from gui-msw.c.
11277         (syms_of_win32): new.
11278
11279         * device-msw.c (Fmswindows_printer_list): clean up args to
11280         EnumPrinters.
11281         Don't include tchar under cygwin or mingw.
11282         (msprinter_default_printer): make cygwin-friendly.
11283
11284 2000-07-21  Andy Piper  <andy@xemacs.org>
11285
11286         * glyphs-widget.c (image_instantiator_tree_view): use tab
11287         control's update function.
11288         (layout_property): new function. Retrieve items.
11289
11290         * glyphs-msw.c (mswindows_tree_view_redisplay): new
11291         function. Re-populate the tree view from the pending items.
11292
11293         * glyphs.c (instantiate_image_instantiator): Make sure the domain
11294         is designated the parent if the domain is an image instance. This
11295         is needed so that dirtiness can be cascade up the hierarchy and
11296         thus for layout children to be redisplayed correctly.
11297         (allocate_image_instance): rename glyph -> parent.
11298
11299         * redisplay.h: change redisplay_output_layout signature.
11300
11301         * redisplay-msw.c (mswindows_output_display_block): use domain
11302         arg.
11303
11304         * redisplay-x.c (x_output_display_block): use domain arg.
11305
11306 2000-07-10  Andy Piper  <andy@xemacs.org>
11307
11308         * window.c (Fset_window_configuration): add comment.
11309
11310         * redisplay-output.c (compare_runes):
11311         (redisplay_output_subwindow): redisplay rather than update subwindow.
11312         (redisplay_output_layout): ditto.
11313
11314         * redisplay-msw.c (mswindows_frame_output_end):
11315         (mswindows_frame_output_end): make defer window pos optional.
11316
11317         * lisp.h: add Flast.
11318
11319         * glyphs.h (struct image_instantiator_methods): add dest_mask top
11320         normalize method. Change update method to be for changed
11321         instantiators. Add redisplay method. Change signature of layout
11322         method.
11323         (struct Lisp_Image_Instance): add instantiator.
11324         (IMAGE_INSTANCE_INSTANTIATOR): new.
11325         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
11326         (XIMAGE_INSTANCE_INSTANTIATOR): new.
11327         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
11328
11329         * glyphs.c:
11330         (find_instantiator_differences): new function.
11331         (Fset_instantiator_property): new convenience function.
11332         (check_image_instance_structure): strictly check for vector
11333         instantiators.
11334         (normalize_image_instantiator): make non-static.
11335         (instantiate_image_instantiator): pass on dest_mask and use new
11336         signatures for image_instance_layout and friends.
11337         (mark_image_instance): mark the instantiator. Mark the subwindow
11338         face not the widget face.
11339         (image_instance_equal): add instantiator.
11340         (image_instance_hash): ditto.
11341         (allocate_image_instance): ditto.
11342         (Fset_image_instance_property): removed.
11343         (Fimage_instance_file_name): ditto.
11344         (Fcolorize_image_instance): ditto.
11345         (image_instance_layout): add offsets to be set.
11346         (update_image_instance): new function. update an image instance
11347         from its changed instantiator.
11348         (inherit_normalize): add dest_mask.
11349         (xbm_normalize): ditto.
11350         (xface_normalize): ditto.
11351         (xpm_normalize): ditto.
11352         (text_update): set_property -> update.
11353         (image_instantiate): use the glyph identity as a hash key, not the
11354         instantiator.
11355         (glyph_width): use new image_instance_layout signature.
11356         (glyph_ascent): ditto.
11357         (glyph_descent): ditto.
11358         (glyph_height): ditto.
11359         (glyph_query_geometry): ressurrect.
11360         (glyph_layout): ditto.
11361         (redisplay_subwindow): update -> redisplay.
11362         (syms_of_glyphs): add Fset_instantiator_property.
11363         (image_instantiator_format_create): set_property -> update.
11364
11365         * glyphs-x.c:
11366         (autodetect_normalize): add dest_maks to signature.
11367         (x_redisplay_subwindow): update -> redisplay.
11368         (x_redisplay_widget): ditto.
11369         (x_button_redisplay): ditto.
11370         (x_progress_gauge_redisplay): ditto.
11371         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
11372         stacking order.
11373         (console_type_create_glyphs_x): update -> redisplay.
11374         (image_instantiator_format_create_glyphs_x): ditto.
11375
11376         * glyphs-widget.c:
11377         (check_valid_instantiator): disallow glyphs in the instantiator,
11378         they must now be vectors.
11379         (check_valid_instantiator_list): ditto.
11380         (glyph_instantiator_to_glyph): use internal symbol rather than
11381         intern.
11382         (widget_update): renamed from widget_set_property. Call cascaded
11383         update methods.
11384         (redisplay_widget): renamed from update_widget.
11385         (widget_layout): image_instance_layout now takes position as well
11386         as size.
11387         (widget_normalize): ditto.
11388         (widget_instantiate): ditto.
11389         (tab_control_query_geometry) ditto.:
11390         (tab_control_update): renamed from tab_control_set_property.
11391         (progress_gauge_update): set_property -> update.
11392         (layout_normalize): rewrite so that child instantiators are
11393         normalized also.
11394         (layout_update): new function. Create glyphs from the normalized
11395         children and cope with any other layout keywords. We do not
11396         instantiate children here that will be take care of by
11397         redisplay_output_layout.
11398         (layout_instantiate): call layout_update and not much else.
11399         (layout_post_instantiate): not sure whether this is needed
11400         anymore.
11401         (layout_query_geometry): query glyph geometry rather than
11402         image_instance geometry.
11403         (layout_layout): set offsets from pass in parameters. Use glyph
11404         geometry and layout functions rather than image instance ones.
11405         (native_layout_layout): ditto.
11406         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
11407         (image_instantiator_widget): set_property -> update.
11408         (image_instantiator_buttons): ditto.
11409         (image_instantiator_progress_guage): ditto.
11410         (image_instantiator_tab_control): ditto.
11411         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
11412         (image_instantiator_layout): add update method.
11413
11414         * glyphs-msw.c (bmp_normalize):
11415         (mswindows_resource_normalize): add dest_mask so that it can be
11416         proprogated by layout_normalize.
11417         (begin_defer_window_pos): make optional because it may not be the
11418         right thing to do and it introduces differences with X.
11419         (mswindows_unmap_subwindow): ditto.
11420         (mswindows_map_subwindow): ditto.
11421         (mswindows_redisplay_subwindow): renamed from
11422         mswindows_update_subwindow.
11423         (mswindows_redisplay_widget): ditto.
11424         (mswindows_button_redisplay): renamed from
11425         mswindows_button_update. Update is now what the instantiation
11426         function does for a changed instantiator.
11427         (mswindows_progress_gauge_instantiate): set the progress value
11428         here if appropriate.
11429         (mswindows_tab_control_redisplay): cope with re-ordering of the
11430         members of the tab widget by simply selecting the new top
11431         widget. This makes things appear ok if you click on a tab.
11432         (mswindows_combo_box_instantiate): image_instance_layout now takes
11433         position as well as size.
11434         (mswindows_progress_gauge_redisplay): renamed from
11435         mswindows_progress_gauge_update.
11436         (console_type_create_glyphs_mswindows): fix update -> redisplay.
11437         (image_instantiator_format_create_glyphs_mswindows): ditto.
11438
11439         * glyphs-eimage.c (jpeg_normalize):
11440         (gif_normalize):
11441         (png_normalize):
11442         (tiff_normalize): add dest_mask so that it can be proprogated by
11443         layout_normalize.
11444
11445         * elhash.c:
11446         (print_hash_table):
11447         (hash_table_weakness_validate):
11448         (decode_hash_table_weakness):
11449         (Fhash_table_weakness):
11450         (Fhash_table_type):
11451         (syms_of_elhash): use Ben's naming scheme for hashtable types..
11452
11453         * console.h (struct console_methods): move update_* to
11454         redisplay_*.
11455
11456 2000-07-20  Ben Wing  <ben@xemacs.org>
11457
11458         * *.[ch] (XSETOBJ): remove unused middle argument.
11459         lisp-disunion.h: correct wrap_object() to one argument.
11460
11461 2000-07-15  Ben Wing  <ben@xemacs.org>
11462
11463         * s/cygwin32.h:
11464         * s/cygwin32.h (CYGWIN_CONV_PATH):
11465         Add missing logb prototype for v1.1.
11466         Use post-b20 names and alias to pre-b20 names when pre-b20.
11467
11468         * s/windowsnt.h: [5].
11469
11470 2000-07-15  Ben Wing  <ben@xemacs.org>
11471
11472         * Makefile.in.in (x_objs):
11473         * Makefile.in.in (sheap_objs):
11474         * Makefile.in.in (objs):
11475         added win32.o, cosmetic cleanups.
11476
11477         * alloc.c (Fmake_byte_code):
11478         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
11479         etc. macros which declare their own args now.
11480
11481         * alloc.c (syms_of_alloc):
11482         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
11483
11484         * buffer.c:
11485         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
11486
11487         * buffer.c (Fget_file_buffer):
11488         Fixed GCPRO problem.
11489
11490         * buffer.c (get_truename_buffer):
11491         Fixed comment about GC checking.
11492
11493         * buffer.c (syms_of_buffer):
11494         Undeclared those dedicated frame funs.
11495         [2].
11496
11497         * buffer.h:
11498         Define convenience macros for internal/external conversions.
11499         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
11500         and Qenvironment_variable_encoding for cleaner code.
11501
11502         * bufslots.h:
11503         Remove dedicated-frame; in lisp.
11504
11505         * bytecode.c (funcall_compiled_function):
11506         [1].
11507
11508         * bytecode.c (syms_of_bytecode):
11509         [2].
11510
11511         * console-msw.c:
11512         * console-msw.c (mswindows_show_console): Rewrote.
11513
11514         * console-msw.c (Fmswindows_debugging_output): New.
11515         Sends to OutputDebugString (special MSWin debugger interface).
11516
11517         * console-msw.c (Fmswindows_message_box):
11518         Fixed stupid bugs so it works when called from kill-emacs.
11519
11520         * console-msw.c (syms_of_console_mswindows):
11521         Declare Fmswindows_debugging_output.
11522
11523         * console-msw.h:
11524         New MSWin prototypes.
11525
11526         * console-msw.h (struct mswindows_frame):
11527         New entry last-click-mods for improved button-modifier support.
11528
11529         * console-msw.h (FRAME_MSWINDOWS_POPUP):
11530         New struct entry `popup' with corresponding accessor.
11531
11532         * console-x.c:
11533         * console-x.c (split_up_display_spec):
11534         * console-x.c (get_display_arg_connection):
11535         * console-x.c (x_semi_canonicalize_console_connection):
11536         * console-x.c (x_canonicalize_device_connection):
11537         [[[6]]]: Change char to more specific type.
11538         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
11539
11540         * console-x.c (x_semi_canonicalize_console_connection):
11541         * console-x.c (x_canonicalize_device_connection):
11542         [[[9]]]: Fix up error signalling to use new structured error system.
11543
11544         * console-x.h:
11545         [[[4]]]: Define codesys aliases:
11546         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
11547         Qx_color_name_encoding, Qx_display_name_encoding.
11548
11549         * console.h (struct console_methods):
11550         New method make_dialog_box_internal supersedes older
11551         popup_dialog_box method.
11552
11553         * data.c:
11554         Define many new errors, part of new structured errors.
11555
11556         * data.c (init_errors_once_early):
11557         * data.c (syms_of_data):
11558         [2].
11559
11560         * device-msw.c (mswindows_init_device):
11561         [[[5]]]: Cleanup to support NT 3.51.
11562
11563         * device-msw.c (decode_devmode): Cleanup.
11564
11565         * device-msw.c (mswindows_handle_print_setup_dialog_box):
11566         * device-msw.c (mswindows_handle_print_dialog_box):
11567         * device-msw.c (mswindows_handle_page_setup_dialog_box):
11568         * device-msw.c (syms_of_device_mswindows):
11569         Delete the dialog box primitives recently introduced by Kirill and
11570         instead interface to general dialog box interface.
11571
11572         * device-x.c:
11573         * device-x.c (compute_x_app_name):
11574         * device-x.c (x_init_device):
11575         * device-x.c (Fx_valid_keysym_name_p):
11576         * device-x.c (Fx_set_font_path):
11577         [6].
11578         [7].
11579
11580         * device.h (wrap_device): New.
11581         First of its kind; meant to replace XSETDEVICE.
11582
11583         * dialog-msw.c: Many file-dialog symbols.
11584
11585         * dialog-msw.c (mswindows_register_popup_frame): New.
11586         * dialog-msw.c (mswindows_is_dialog_msg): New.
11587         For supporting kbd traversal in dialog boxes.
11588
11589         * dialog-msw.c (dialog_proc):
11590         Support hitting ESC in dialogs.
11591
11592         * dialog-msw.c (struct):
11593         Common dialog box errors.
11594
11595         * dialog-msw.c (handle_file_dialog_box): New.
11596         Add file dialog code.
11597
11598         * dialog-msw.c (handle_question_dialog_box):
11599         Redo existing code to support new question dialog syntax.
11600
11601         * dialog-msw.c (console_type_create_dialog_mswindows):
11602         We support new dialog console method.
11603
11604         * dialog-msw.c (syms_of_dialog_mswindows):
11605         * dialog-msw.c (vars_of_dialog_mswindows):
11606         New file dialog symbols, vars.
11607
11608         * dialog-x.c:
11609         * dialog-x.c (maybe_run_dbox_text_callback):
11610         * dialog-x.c (dbox_descriptor_to_widget_value):
11611         * dialog-x.c (x_make_dialog_box_internal):
11612         * dialog-x.c (console_type_create_dialog_x):
11613         Mule-ize entire file.
11614         Redo to support question dialog syntax.
11615         [6].
11616
11617         * dialog.c:
11618         * dialog.c (Fmake_dialog_box_internal):
11619         * dialog.c (syms_of_dialog):
11620         Kill old popup-dialog-box, replace with new primitive.
11621         Just call device method or signal error.
11622
11623         * eldap.c (Fldap_open):
11624         * eldap.c (Fldap_search_basic):
11625         * eldap.c (Fldap_add):
11626         * eldap.c (Fldap_modify):
11627         [1].
11628         [7].
11629
11630         * emacs.c:
11631         * emacs.c (make_arg_list_1):
11632         * emacs.c (make_arg_list):
11633         Mule-ize call to dll_init().
11634         [6].
11635         [8].
11636
11637         * emacs.c (make_argc_argv):
11638         * emacs.c (free_argc_argv):
11639         * emacs.c (init_cmdargs):
11640         * emacs.c (main_1):
11641         * emacs.c (Fkill_emacs):
11642         * emacs.c (Fdump_emacs):
11643         Update comments about what can be used in syms_* etc.
11644         Call init_win32() when necessary.
11645         Fix up MS Win dialog box in kill-buffer to actually work right.
11646         [7].
11647
11648         * eval.c:
11649         * eval.c (For):
11650         * eval.c (Fand):
11651         * eval.c (Fprogn):
11652         * eval.c (Fprog1):
11653         * eval.c (Fprog2):
11654         * eval.c (FletX):
11655         * eval.c (Flet):
11656         * eval.c (condition_case_3):
11657         * eval.c (Feval):
11658         * eval.c (function_argcount):
11659         * eval.c (funcall_lambda):
11660         [1].
11661
11662         * eval.c (type_error): New.
11663         * eval.c (maybe_type_error): New.
11664         * eval.c (continuable_type_error): New.
11665         * eval.c (maybe_continuable_type_error): New.
11666         * eval.c (type_error_with_frob): New.
11667         * eval.c (maybe_type_error_with_frob): New.
11668         * eval.c (continuable_type_error_with_frob): New.
11669         * eval.c (maybe_continuable_type_error_with_frob): New.
11670         New functions for use with structured errors.
11671
11672         * event-Xt.c:
11673         * event-Xt.c (x_event_to_emacs_event):
11674         Buttons are now modifiers too.
11675
11676         * event-Xt.c (emacs_Xt_current_event_timestamp):
11677         Implement new event method.
11678         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
11679
11680         * event-msw.c:
11681         * event-msw.c (ntpipe_shove_writer): [5].
11682         * event-msw.c (mswindows_enqueue_mouse_button_event):
11683         * event-msw.c (mswindows_drain_windows_queue):
11684         * event-msw.c (mswindows_wnd_proc): [7].
11685         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
11686         * event-msw.c (mswindows_modifier_state):
11687         Throughout: support new button modifiers.
11688
11689         * event-msw.c (emacs_mswindows_current_event_timestamp):
11690         Implement new event method.
11691         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
11692
11693         * event-stream.c:
11694         * event-stream.c (event_stream_current_event_timestamp): New.
11695         * event-stream.c (maybe_kbd_translate): New functionality.
11696         * event-stream.c (vars_of_event_stream):
11697         Document new kbd-translate-table functionality.
11698
11699         * event-stream.c (Fcurrent_event_timestamp): New.
11700         New primitive for use in fabricated events.
11701         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
11702
11703         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
11704
11705         * events.c:
11706         * events.c (Fmake_event):
11707         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
11708         [1].
11709         [9].
11710
11711         * events.c (format_event_object): fix gcc warnings.
11712
11713         * events.c (Fevent_timestamp): Document new primitives.
11714
11715         * events.c (TIMESTAMP_HALFSPACE): New.
11716
11717         * events.c (Fevent_timestamp_lessp): New.  New primitive for
11718         comparing timestamps correctly (half-space algorithm).
11719
11720         * events.c (Fevent_modifier_bits): Doc fix.
11721
11722         * events.c (Fevent_modifiers): Major doc addition.
11723         * events.c (event_x_y_pixel_internal): Typo fix.
11724         * events.c (syms_of_events): Declare new primitives.
11725
11726         * events.h:
11727         Update long comment for button modifiers, timestamps.
11728
11729         * events.h (struct event_stream):
11730         New current_event_timestamp method.
11731
11732         * extents.c:
11733         * extents.c (extent_in_region_p):
11734         * extents.c (decode_extent):
11735         * extents.c (Fset_extent_parent):
11736         * extents.c (decode_map_extents_flags):
11737         Fix gcc warnings.
11738         [9].
11739
11740         * extents.c (struct extent_at_arg):
11741         * extents.c (decode_extent_at_flag):
11742         * extents.c (extent_at_mapper):
11743         * extents.c (extent_at_bytind):
11744         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
11745         * extents.c (Fextents_at): New primitive. [9].
11746         * extents.c (symbol_to_glyph_layout): [9].
11747         Support new primitive `extents-at'.
11748
11749
11750         * extents.c (get_text_property_bytind):
11751         extent_at_bytind has another arg.
11752         [9].
11753
11754         * extents.c (syms_of_extents): New primitive.
11755
11756         * file-coding.c (Fmake_coding_system): [1].
11757         * file-coding.c (subsidiary_coding_system): fix gcc warning
11758         * file-coding.c (syms_of_file_coding): [2].
11759
11760         * fileio.c (Fexpand_file_name):
11761         * fileio.c (Fsysnetunam):
11762         * fileio.c (Ffile_exists_p):
11763         * fileio.c (Ffile_executable_p):
11764         * fileio.c (Fverify_visited_file_modtime):
11765         Clean up GCPROing.
11766
11767         * fileio.c (syms_of_fileio): [2].
11768
11769         * filelock.c (lock_file_1):
11770         * filelock.c (current_lock_owner):
11771         * filelock.c (lock_if_free):
11772         * filelock.c (lock_file):
11773         * filelock.c (unlock_file):
11774         Clean up GCPROing.
11775
11776         * fns.c (concat): Fix gcc warning.
11777
11778         * fns.c (Fmember):
11779         * fns.c (Fold_member):
11780         * fns.c (Fmemq):
11781         * fns.c (Fold_memq):
11782         * fns.c (memq_no_quit):
11783         * fns.c (Fassoc):
11784         * fns.c (Fold_assoc):
11785         * fns.c (Fassq):
11786         * fns.c (Fold_assq):
11787         * fns.c (assq_no_quit):
11788         * fns.c (Frassoc):
11789         * fns.c (Fold_rassoc):
11790         * fns.c (Frassq):
11791         * fns.c (Fold_rassq):
11792         * fns.c (rassq_no_quit):
11793         * fns.c (Fdelete):
11794         * fns.c (Fold_delete):
11795         * fns.c (Fdelq):
11796         * fns.c (Fold_delq):
11797         * fns.c (delq_no_quit):
11798         * fns.c (Fremassoc):
11799         * fns.c (Fremassq):
11800         * fns.c (remassq_no_quit):
11801         * fns.c (Fremrassoc):
11802         * fns.c (Fremrassq):
11803         * fns.c (remrassq_no_quit):
11804         * fns.c (Freverse):
11805         * fns.c (mapcar1):
11806         [1].
11807
11808         * frame-msw.c (mswindows_init_frame_1):
11809         * frame-msw.c (mswindows_delete_frame):
11810         Register popups with dialog code so keyboard traversing works.
11811
11812         * frame-tty.c (tty_raise_frame_no_select): [1].
11813
11814         * frame-x.c:
11815         * frame-x.c (x_set_frame_text_value):
11816         * frame-x.c (x_set_frame_properties):
11817         * frame-x.c (x_create_widgets):
11818         [7].
11819
11820         * frame.c:
11821         * frame.c (Fmouse_pixel_position): Minor doc fixes.
11822
11823         * frame.h (wrap_frame): New.
11824         Macro like wrap_device.
11825
11826         * general.c:
11827         * general.c (SYMBOL):
11828         * general.c (syms_of_general):
11829         Major reorg.  This is now just a wrapper and symbols themselves
11830         are listed in general-slots.h.
11831
11832         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
11833         * glyphs-msw.c (mswindows_resource_instantiate): [5].
11834
11835         * glyphs-msw.c (mswindows_native_layout_instantiate):
11836         Add DS_CONTROL so keyboard traversal will work.
11837
11838         * glyphs-widget.c:
11839         * glyphs-widget.c (syms_of_glyphs_widget):
11840         Move some symbols to general-slots.h.
11841
11842         * glyphs-x.c:
11843         * glyphs-x.c (xbm_instantiate_1):
11844         * glyphs-x.c (x_xbm_instantiate):
11845         * glyphs-x.c (x_xface_instantiate):
11846         * glyphs-x.c (autodetect_instantiate):
11847         * glyphs-x.c (cursor_font_instantiate):
11848         * glyphs-x.c (x_update_widget):
11849         * glyphs-x.c (x_widget_instantiate):
11850         * glyphs.c (bitmap_to_lisp_data):
11851         * glyphs.c (pixmap_to_lisp_data):
11852         [7].
11853
11854         * glyphs.c (syms_of_glyphs):
11855         [2].
11856
11857         * gui-x.c:
11858         * gui-x.c (print_widget_value):
11859         * gui-x.c (menu_separator_style_and_to_external):
11860         * gui-x.c (add_accel_and_to_external):
11861         * gui-x.c (button_item_to_widget_value):
11862         * gui-x.c (gui_items_to_widget_values_1):
11863         * gui-x.c (gui_items_to_widget_values):
11864         * gui-x.c (syms_of_gui_x):
11865         * gui-x.c (vars_of_gui_x):
11866         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
11867         [9].
11868
11869         * gui-x.h:
11870         Muleize, prototype changes matching gui-x.c.
11871
11872         * gui.c:
11873         * gui.c (separator_string_p):
11874         * gui.c (gui_item_add_keyval_pair):
11875         * gui.c (make_gui_item_from_keywords_internal):
11876         * gui.c (signal_too_long_error):
11877         * gui.c (parse_gui_item_tree_item):
11878         * gui.c (syms_of_gui):
11879         * gui.c (vars_of_gui):
11880         * gui.h:
11881         menu-no-selection-hook moved here (used by MSWin).
11882         Move some symbols to general-slots.h.
11883         [6].
11884         [9].
11885
11886         * insdel.c (get_buffer_pos_char):
11887         * insdel.c (get_buffer_range_char):
11888         Add GC comments.
11889
11890         * keymap.c (keymap_lookup_directly):
11891         * keymap.c (keymap_store):
11892         * keymap.c (ensure_meta_prefix_char_keymapp):
11893         * keymap.c (describe_map):
11894         * keymap.h:
11895         Support new button modifiers.
11896
11897         * lisp-disunion.h (wrap_object):
11898         * lisp-disunion.h (XSETOBJ):
11899         Rename make_obj to wrap_object.
11900
11901         * lisp-union.h:
11902         * lisp-union.h (make_int):
11903         * lisp-union.h (make_char):
11904         Support wrap_object.
11905
11906         * lisp.h:
11907         * lisp.h (LIST_LOOP):
11908         * lisp.h (EXTERNAL_LIST_LOOP):
11909         * lisp.h (LIST_LOOP_2):
11910         * lisp.h (EXTERNAL_LIST_LOOP_1):
11911         * lisp.h (EXTERNAL_LIST_LOOP_2):
11912         * lisp.h (EXTERNAL_LIST_LOOP_3):
11913         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
11914         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
11915         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
11916         * lisp.h (EXTERNAL_ALIST_LOOP_5):
11917         * lisp.h (EXTERNAL_ALIST_LOOP_6):
11918         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
11919         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
11920         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
11921         * lisp.h (struct Lisp_Symbol):
11922         * lisp.h (maybe_continuable_error_with_frob):
11923         Fix up section comments.
11924         Add new types for char to indicate usage.
11925         Delete symbols auto-generated from general-slots.h.
11926         Add prototypes for structured error functions.
11927         Add long comments describing looping macros and change interface
11928         so that lvalues are automatically declared.
11929         Add NO_DECLARE macro in case callers want to declare lvalues
11930         themselves.
11931
11932         * lread.c (read_syntax_error):
11933         * lread.c (continuable_read_syntax_error):
11934         * lread.c (read_structure):
11935         * lread.c (sequence_reader):
11936         * lread.c (read_list_conser):
11937         * lread.c (read_compiled_function):
11938         Rename syntax_error and continuable_syntax_error to avoid clash
11939         with same-named structured error functions.
11940
11941         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
11942         * menubar-msw.c (populate_menu_add_item):
11943         * menubar-msw.c (populate_or_checksum_helper):
11944         [5].
11945         [9].
11946
11947         * menubar-x.c:
11948         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
11949         Mule-ize whole file.
11950
11951         * menubar.c (Fnormalize_menu_item_name): Add optimization.
11952
11953         * mule-charset.c (Fmake_charset):
11954         * mule-wnnfns.c (Fwnn_set_param):
11955         [1].
11956
11957         * ntproc.c (create_child):
11958         * ntproc.c (Fwin32_set_current_locale):
11959         Add comments portending doom.
11960
11961         * objects-msw.c:
11962         * objects-msw.c (old_font_enum_callback_2):
11963         * objects-msw.c (font_enum_callback_1):
11964         * objects-msw.c (mswindows_enumerate_fonts):
11965         [5].
11966
11967         * objects-x.c:
11968         * objects-x.c (allocate_nearest_color):
11969         * objects-x.c (x_parse_nearest_color):
11970         * objects-x.c (x_initialize_color_instance):
11971         * objects-x.c (x_print_color_instance):
11972         * objects-x.c (x_finalize_color_instance):
11973         * objects-x.c (x_valid_color_name_p):
11974         * objects-x.c (x_initialize_font_instance):
11975         * objects-x.c (x_print_font_instance):
11976         * objects-x.c (valid_x_font_name_p):
11977         * objects-x.c (truename_via_FONT_prop):
11978         * objects-x.c (truename_via_random_props):
11979         * objects-x.c (truename_via_XListFonts):
11980         * objects-x.c (x_font_truename):
11981         * objects-x.c (x_font_instance_truename):
11982         * objects-x.c (x_font_instance_properties):
11983         * objects-x.c (x_list_fonts):
11984         * objects-x.c (x_find_charset_font):
11985         Mule-ize entire file.
11986         [7].
11987
11988         * objects-x.h:
11989         Mule-verify.
11990
11991         * print.c:
11992         * print.c (std_handle_out_external):
11993         * print.c (debug_print_no_newline):
11994         * print.c (syms_of_print):
11995         Output to all debugger kinds in debug-print.
11996         Fix console-output code under MSWin to actually work.
11997
11998         * process-nt.c (send_signal):
11999         * process-nt.c (nt_create_process):
12000         Use newer Unicode macros.
12001
12002         * process-unix.c (unix_create_process):
12003         * process-unix.c (unix_canonicalize_host_name):
12004         * process-unix.c (unix_open_network_stream):
12005         [7].
12006
12007         * scrollbar-x.c:
12008         Mule-verify.
12009
12010         * search.c (syms_of_search):
12011         [2].
12012
12013         * select-msw.c (mswindows_destroy_selection):
12014         Use LIST_LOOP_2.
12015
12016         * select-x.c (symbol_to_x_atom):
12017         [7].
12018
12019         * select.c (syms_of_select):
12020         [2].
12021
12022         * sound.c (Fplay_sound_file):
12023         [7].
12024
12025         * specifier.c:
12026         * specifier.c (decode_specifier_type):
12027         * specifier.c (Fvalid_specifier_locale_type_p):
12028         * specifier.c (check_valid_locale_or_locale_type):
12029         * specifier.c (decode_locale):
12030         * specifier.c (decode_locale_type):
12031         * specifier.c (decode_locale_list):
12032         * specifier.c (check_valid_domain):
12033         * specifier.c (decode_specifier_tag_set):
12034         * specifier.c (Fcanonicalize_tag_set):
12035         * specifier.c (Fdefine_specifier_tag):
12036         * specifier.c (Fspecifier_tag_predicate):
12037         * specifier.c (check_valid_inst_list):
12038         * specifier.c (check_valid_spec_list):
12039         * specifier.c (decode_how_to_add_specification):
12040         * specifier.c (check_modifiable_specifier):
12041         * specifier.c (specifier_add_spec):
12042         * specifier.c (boolean_validate):
12043         * specifier.c (display_table_validate):
12044         [9].
12045
12046         * specifier.c (syms_of_specifier):
12047         Move some symbols to general-slots.h.
12048         [2].
12049
12050         * symbols.c:
12051         * symbols.c (Fmapatoms):
12052         * symbols.c (Fapropos_internal):
12053         Add GCPROs.
12054
12055         * symbols.c (set_default_buffer_slot_variable):
12056         * symbols.c (set_default_console_slot_variable):
12057         [1].
12058
12059         * symbols.c (defsymbol_massage_name_1):
12060         * symbols.c (defkeyword_massage_name):
12061         * symbols.c (deferror_1):
12062         * symbols.c (deferror):
12063         * symbols.c (deferror_massage_name_and_message):
12064         * symeval.h:
12065         * symeval.h (DEFSYMBOL):
12066         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
12067
12068         * symbols.c (syms_of_symbols):
12069         [2].
12070
12071         * symsinit.h:
12072         * symsinit.h (init_win32): New.
12073         Also new is syms_of_dialog_mswindows.
12074
12075         * syswindows.h:
12076         Add new Unicode macros, missing Cygwin wide-char functions,
12077         convenience conversion macros for Qmswindows_tstr, macros for
12078         encapsulating required MSWin <-> Cygwin filename conversions,
12079         prototype for dynamically-extracted (not in NT 3.51) functions.
12080
12081         * toolbar-x.c:
12082         Mule-verify.
12083
12084         * tooltalk.c (Fadd_tooltalk_message_arg):
12085         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
12086         * tooltalk.c (Fadd_tooltalk_pattern_arg):
12087         [7].
12088
12089         * tooltalk.c (syms_of_tooltalk):
12090         [2].
12091
12092         * unexnt.c:
12093         * unexnt.c (unexec):
12094         Fix up headers, declaration of unexec() to be more standard.
12095
12096 2000-07-20  Martin Buchholz  <martin@xemacs.org>
12097
12098         * offix.h: Revert change to guard macros - they're used in offix.c!
12099
12100 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12101
12102         * lisp.h: Defsubred Fdelete.
12103
12104         * console-msw.h:  (msprinter_default_printer): Added.
12105
12106         * console-msw.c (msprinter_canonicalize_console_connection):
12107         (msprinter_canonicalize_device_connection): Added.
12108
12109         * device-msw.c (msprinter_default_printer):
12110         (Fmswingows_get_default_printer):
12111         (signal_enum_priner_error):
12112         (Fmswingows_printer_list): Added.
12113
12114 2000-07-19  Martin Buchholz <martin@xemacs.org>
12115
12116         * XEmacs 21.2.35 is released.
12117
12118 2000-07-19  Martin Buchholz  <martin@xemacs.org>
12119
12120         * select-x.c (x_handle_selection_request):
12121         Text selected in xemacs and pasted into xterm failed to appear.
12122         Spelling fixes and cosmetic changes.
12123
12124 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12125
12126         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
12127         XEmacs frame (fix for doubling chars in dialog boxes).
12128
12129 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
12130
12131         * select.c (select_convert_in, select_convert_out):
12132         Don't call intern() every time.
12133
12134         * select.c (Qselect_convert_in, Qselect_convert_out): New.
12135         * select.c (vars_of_select): Initialise them.
12136
12137 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
12138
12139         * select.c (selection-coercible-types): New.
12140
12141         * select.c (own-selection-internal):
12142         * select.c (get-selection-internal):
12143         MULE bug fix - these should default to COMPOUND_TEXT and not
12144         STRING for MULE. I think.
12145
12146         * select.c (select_convert_out): Use selection-coercible-types
12147         to find types that we can attempt to perform coercions on.
12148
12149 2000-07-18  Martin Buchholz  <martin@xemacs.org>
12150
12151         * mule-wnnfns.c:
12152         * mule-canna.c:
12153         Add coding: cookie to identify encoding.
12154
12155         * mule-canna.c (CANNA_mode_keys): make static.
12156         Use proper prototypes, even for functions of no arguments.
12157         Remove external prototype for Fding().
12158
12159         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
12160
12161         * select.c (syms_of_select): Add missing DEFSUBR.
12162
12163 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
12164
12165         * select.c (get_selection_internal, own_selection_internal):
12166         Make the type default to STRING, rather than placing a nil type
12167         into Vselection_alist.
12168
12169 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
12170
12171         * gpmevent.c (tty_selection_exists_p):
12172         * gpmevent.c (tty_own_selection):
12173         Updated parameter lists.
12174
12175 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
12176
12177         * select.h (selection-alist): Removed declaration.
12178
12179         * select.h (get_local_selection):
12180         * select.c (get_local_selection):
12181         Made static.
12182
12183         * select.h (convert_selection): Removed declaration.
12184         * select.c (convert_selection): Removed.
12185         This function belongs in Lisp.
12186
12187         * select.h (select_convert_in): Declare.
12188         * select.h (select_convert_out): Declare.
12189         * select.c (select_convert_in): New.
12190         * select.c (select_convert_out): New.
12191         New conversion functions for other files to call.
12192
12193         * select.h (select_notify_buffer_kill): Declare.
12194         * select.c (select_notify_buffer_kill): New.
12195         New functions that get called from kill-buffer.
12196
12197         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
12198         X-specific lisp code.
12199
12200         * select.h: Declare some of the lisp-visible functions for
12201         external use.
12202
12203         * select.c (clean_local_selection_data): Removed. This was
12204         a disgusting function, and previously should have been in
12205         select-x.c in any case. The functionality is now provided
12206         in select-convert-from-integer (select.el).
12207
12208         * select.c (available-selection-types): Fixed stupidity where
12209         INTEGER and ATOM got added twice. Also add STRING when we see an
12210         extent.
12211
12212         * select.c (get-selection-internal): Removed symbol stripping. No
12213         longer causes conversion when data comes from the internal cache.
12214
12215         * select.c (syms_of_select): Added new functions.
12216
12217         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
12218         error checking - previously this called abort!
12219
12220         * select-x.c (x_own_selection): Changed comment.
12221
12222         * select-x.c (x_handle_selection_request): Use select_convert_out.
12223         Don't mess with selection-alist; it's an internal variable of select.c.
12224
12225         * select-x.c (x_get_foreign_selection): Use select_convert_in.
12226
12227         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
12228         rather than messing with selection-alist.
12229
12230         * select-msw.c (mswindows_get_foreign_selection):
12231         Use TO_INTERNAL_FORMAT rather than hacking.
12232
12233 2000-07-14  Martin Buchholz  <martin@xemacs.org>
12234
12235         * process-unix.c (unix_open_multicast_group):
12236         (unix_open_multicast_group): Remove useless casts.
12237
12238 2000-07-13  Martin Buchholz  <martin@xemacs.org>
12239
12240         * sound.c (Fplay_sound): Fix `unused variable' warning.
12241
12242         * emacs.c (main): Use correct type for _environ on SCO5.
12243
12244 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
12245
12246         * console.h (own_selection_method):
12247         * console.h (selection_exists_p_method):
12248         * console.h (available_selection_types_method): New.
12249         * console.h (register_selection_data_type_method): New.
12250         * console.h (selection_data_type_name): New.
12251
12252         * console-msw.h (mswindows_destroy_selection): Declare it.  New
12253         function & alist to track GlobalAlloc()'d handles that need
12254         releasing when the clipboard data gets replaced or emptied.
12255
12256         * event-msw.c (mswindows_wnd_proc): Call it.
12257
12258         * lisp.h, general.c (Qappend): New symbol representing a
12259         `how-to-add' mode.
12260
12261         * select.c (own-selection-internal):
12262         * select.c (selection-exists-p):
12263         * select.c (available-selection-types): New.
12264         * select.c (register-selection-data-type): New.
12265         * select.c (selection-data-type-name): New.  New functions to deal
12266         with device-specific selection data formats.
12267         * select.c (selection-converter-out-alist): Renamed.
12268         * select.c (selection-converter-in-alist): New.
12269         * select.c (selection-appender-alist): New.  Added new alists.
12270         * select.c (syms_of_select, vars_of_select): Added new symbols &
12271         variables.
12272         * select.c (get_local_selection): Split.
12273         * select.c: Removed spurious type checking - selections may now be
12274         of any type, not just strings.
12275         * select.c (own-selection-internal):
12276
12277         * select.h, select.c (convert_selection): New. Created
12278         convert_selection() function based on get_local_selection().
12279         * select.h, select.c (QCF_*): New symbols representing mswindows
12280         clipboard formats.
12281         * select.h, select.c (Qreplace_all, Qreplace_existing): New
12282         symbols representing `how-to-add' modes.
12283
12284         * select-msw.c (x_sym_p): New.
12285         * select-msw.c (symbol_to_ms_cf): New.
12286         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
12287         symbols & clipboard formats. Can also handle string names.
12288         * select-msw.c (mswindows_own_selection):
12289         * select-msw.c (mswindows_selection_exists_p):
12290         Added `data-type' parameter. Use it.
12291         * select-msw.c (mswindows_available_selection_types): New.
12292         * select-msw.c (mswindows_register_selection_data_type): New.
12293         * select-msw.c (mswindows_selection_data_type_name): New.
12294         * select-msw.c (mswindows_own_selection):
12295         * select-msw.c (mswindows_get_foreign_selection):
12296         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
12297         * select-msw.c (console_create_select_mswindows): Added new methods.
12298         * select-msw.c (mswindows_destroy_selection): New.
12299         * select-msw.c (Vhandle_alist): New list.
12300         * select-msw.c (mswindows_own_selection):
12301
12302         * select-x.c (x_own_selection):
12303         * select-x.c (x_selection_exists_p):
12304         * select-x.c: Added some comments about maybe using new
12305         functionality.
12306         * select-x.c (x_own_selection):
12307
12308         * specifier.c: Remove definition of Qappend (now in general.c)
12309         * specifier.c (syms_of_specifier): Remove Qappend.
12310
12311 2000-07-12  Martin Buchholz  <martin@xemacs.org>
12312
12313         * config.h.in: Add socklen_t.
12314
12315         * s/decosf4-0.h: No special compiler flags needed or desired.
12316         In particular, undefine _BSD for DEC OSF 4.0.
12317
12318 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12319
12320         * redisplay-msw.c (msprinter_frame_output_end): Added.
12321         (console_type_create_redisplay_mswindows): Referred the above.
12322
12323         * frame.c (setup_frame_without_minibuffer): Do not create a
12324         default minibuffer frame on a printer device.
12325
12326         * frame-msw.c (apply_dc_geometry): Added.
12327         (msprinter_start_page):
12328         (msprinter_init_frame_3):
12329         (msprinter_eject_page): Use it.
12330
12331         * console-msw.h (struct msprinter_frame): Added pix_left and top,
12332         and removed residual duplex and orientation properties.
12333
12334 2000-07-11  Martin Buchholz  <martin@xemacs.org>
12335
12336         * eval.c (function_argcount): Work around a DEC CC compiler bug.
12337
12338         * unexalpha.c: Remove system prototypes from C sources!
12339
12340 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
12341
12342         * eval.c: Remove references to M-x edit-options in DEFUNs for
12343         `defvar' and `defconst'.
12344
12345 2000-07-09  Martin Buchholz  <martin@xemacs.org>
12346
12347         * config.h.in: Remove SMART_INCLUDE hackery.
12348
12349         PostgreSQL hacking:
12350         * config.h.in: Don't use SMART_INCLUDE.
12351
12352         * postgresql.h: Include libpq-fe.h here.  Fix typo.
12353         * inline.c: Simply #include "postgresql.h"
12354         * postgresql.c:
12355         - Don't use SMART_INCLUDE
12356         - Use simply "const".
12357         - Use standard doc string conventions.
12358         - Use correct type for result of PQstatus.
12359
12360 2000-07-09  Martin Buchholz  <martin@xemacs.org>
12361
12362         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
12363
12364         C++ compilation changes.
12365         * config.h.in (EXTERN_C): Define.
12366         * config.h.in (not): This is also a C++ keyword.
12367         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
12368         * cm.c: Use EXTERN_C.
12369         * redisplay-tty.c: Use EXTERN_C.
12370         * sysdep.c: Use EXTERN_C.  Remove Gould support.
12371
12372 2000-07-09  Martin Buchholz  <martin@xemacs.org>
12373
12374         * general.c: Remove duplicate definition for Qfunction.
12375
12376 2000-07-08  Ben Wing  <ben@xemacs.org>
12377
12378         * device-msw.c (msprinter_init_device):
12379         * device-msw.c (sync_printer_with_devmode):
12380         * device-msw.c (handle_devmode_changes):
12381         * device-msw.c (print_dialog_worker):
12382         * device-msw.c (Fmsprinter_apply_settings):
12383         * device-msw.c (hash_devmode):
12384         * device-msw.c (Fmsprinter_settings_despecialize):
12385         use Qmswindows_tstr, not Qctext.
12386
12387         * vm-limit.c (check_memory_limits):
12388         avoid infinite loop printing warning messages.
12389
12390 2000-07-05  Craig Lanning  <lanning@scra.org>
12391
12392         * Makefile.in.in: Add support for including the Windows resources
12393         when building with the cygwin and mingw targets.
12394
12395         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
12396         not set or not correct.
12397         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
12398         (init_initial_directory): Don't try to use $PWD on the
12399         WIN32_NATIVE target.
12400
12401         * s\cygwin32.h:
12402         [[Add -mwindows to eliminate console window.]] not required --ben
12403         (HAVE_NATIVE_SOUND): removed; now handled by configure.
12404         (MAIL_USE_POP): removed; now handled by configure.
12405
12406         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
12407         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
12408         (HAVE_NATIVE_SOUND): removed; now handled by configure.
12409         (MAIL_USE_POP): removed; now handled by configure.
12410         (ENCAPSULATE_STAT): from Dan Holmsand, added.
12411         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
12412         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
12413         constant string.
12414         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
12415         up from <winsock.h> via systime.h.
12416         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
12417         (getpagesize): from Dan Holmsand, added.
12418         Added #endif which was left dangling by Ben's mega patch; added
12419         comment to help prevent this in the future.
12420
12421         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
12422
12423 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12424
12425         * console-msw.h (struct mswindows_device): Removed unnecessary
12426         cached device geometry values.
12427         Added update_tick and an accessor macro.
12428         (Lisp_Devmode): Added lrecord declaration.
12429         (struct msprinter_device): Contain devmode as a Lisp object.
12430         Added mswindows_get_selected_frame_hwnd();
12431
12432         * console.h (struct console_methods): Indentation nitpicking.
12433
12434         * device-msw.c (mswindows_init_device): Do not initialize geometry
12435         cache. Initialize update tick.
12436         (mswindows_device_system_metrics): Ask the device for its geometry.
12437         (global_free_2_maybe):
12438         (devmode_to_hglobal):
12439         (handle_printer_changes):
12440         (ensure_not_printing):
12441         (print_dialog_worker):
12442         (Fmsprinter_print_setup_dialog):
12443         (Fmsprinter_print_dialog):
12444         (plist_get_margin):
12445         (plist_set_margin):
12446         (Fmsprinter_page_setup_dialog): Added functions.
12447         (sync_printer_with_devmode):
12448         (handle_devmode_changes):
12449         (Fmsprinter_get_settings):
12450         (Fmsprinter_select_settings):
12451         (Fmsprinter_apply_settings):
12452         (allocate_devmode):
12453         (Fmsprinter_settings_copy):
12454         (Fmsprinter_settings_despecialize):
12455         (print_devmode):
12456         (finalize_devmode):
12457         (equal_devmode):
12458         (hash_devmode): Added functions
12459         (syms_of_device_mswindows): Init devmode lrecord class.
12460
12461         * device.h: Added an exfun for find-device.
12462
12463         * event-msw.c (mswindows_wnd_proc): Do not update the cached
12464         geometry; although, recreate the device compatible DC.
12465
12466         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
12467         (msprinter_init_frame_3):
12468         (msprinter_frame_property):
12469         (msprinter_internal_frame_property_p):
12470         (msprinter_frame_properties):
12471         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
12472         print job properties (will move to device settings).
12473
12474         * lisp.h: Added symbols.
12475
12476         * general.c (syms_of_general): Declared them.
12477
12478         * hash.c (string_hash): Added.
12479
12480         * lrecord.h (lrecord_type): Added devmode lrecord type.
12481
12482 2000-07-02  Mike Sperber <mike@xemacs.org>
12483
12484         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
12485         FreeBSD 4.0.
12486
12487 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
12488
12489         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
12490         integer.
12491
12492 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
12493
12494         * data.c (Fstring_to_number): Don't recognize floating point if
12495         base is not 10.
12496
12497 2000-06-22  Martin Buchholz  <martin@xemacs.org>
12498
12499         * glyphs-widget.c (tab_control_query_geometry):
12500         (widget_query_geometry):
12501         (button_query_geometry):
12502         * glyphs.c (text_query_geometry):
12503         Enforce type correctness.
12504
12505 2000-06-18  Martin Buchholz  <martin@xemacs.org>
12506
12507         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
12508         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
12509
12510 2000-06-17  Martin Buchholz  <martin@xemacs.org>
12511
12512         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
12513         conflicts with gcc's fixincluded version of FOO.h.
12514
12515         * glyphs.h (image_instance_geometry): Remove trailing `,'
12516
12517 2000-06-08  Mike Alexander  <mta@arbortext.com>
12518
12519         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
12520         (shove_thread): Don't write the same output twice
12521         (make_ntpipe_output_stream): Increase priority of shove thread
12522         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
12523         chance to run
12524         (ntpipe_shove_closer): Don't delete the pipe until we're done with
12525         it.
12526
12527 2000-06-12  Ben Wing  <ben@xemacs.org>
12528
12529         * s\mingw32.h (sigset):
12530         * s\windowsnt.h (sigset):
12531         rename msw_ to mswindows_ for consistency with general convention.
12532
12533 2000-06-12  Ben Wing  <ben@xemacs.org>
12534
12535         * console-msw.c:
12536         * console-msw.c (mswindows_get_console_hwnd):
12537         * console-msw.c (mswindows_ensure_console_allocated):
12538         * console-msw.c (mswindows_hide_console):
12539         * console-msw.c (mswindows_show_console):
12540         * console-msw.c (mswindows_ensure_console_buffered):
12541         * console-msw.c (mswindows_output_console_string):
12542         * console-msw.c (mswindows_windows9x_p):
12543         * console-msw.h:
12544         * device-msw.c (mswindows_get_workspace_coords):
12545         * device-msw.c (mswindows_device_system_metrics):
12546         * dialog-msw.c (mswindows_popup_dialog_box):
12547         * event-msw.c (mswindows_wnd_proc):
12548         * frame-msw.c (mswindows_size_frame_internal):
12549         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
12550         * menubar-msw.c (displayable_menu_item):
12551         * menubar-msw.c (mswindows_char_is_accelerator):
12552         * nt.c:
12553         * nt.c (mswindows_sigset):
12554         * nt.c (mswindows_sigrelse):
12555         * nt.c (mswindows_sigpause):
12556         * nt.c (mswindows_raise):
12557         * nt.c (timer_proc):
12558         * ntproc.c:
12559         * ntproc.c (find_child_console):
12560         * ntproc.c (sys_kill):
12561         * print.c:
12562         * print.c (std_handle_out_external):
12563         * process-nt.c (find_child_console):
12564         * process-nt.c (send_signal_the_95_way):
12565         * process-nt.c (ensure_console_window_exists):
12566         * process-nt.c (nt_create_process):
12567         * syssignal.h:
12568         rename msw_ to mswindows_ for consistency with general convention.
12569
12570         * emacs.c:
12571         * dumper.c:
12572         include nt.h, not syswindows.h.
12573
12574         * nt.c (mswindows_fstat):
12575         * nt.c (mswindows_stat):
12576         prefix mswindows_ instead of attempting to directly override the
12577         library functions.  fix declarations.
12578
12579         * nt.h:
12580         include syswindows.h.  move some sysdep.h stuff here.
12581
12582         * ntheap.h:
12583         include syswindows.h, not <windows.h>.
12584
12585         * ntplay.c:
12586         clean up headers.
12587
12588         * sysdep.c:
12589         clean up headers.
12590
12591         * sysdep.c (sys_fstat):
12592         * sysdep.c (sys_stat):
12593         call mswindows versions when appropriate.
12594
12595         * sysdep.h:
12596         move mswin decls to nt.h.
12597
12598         * syswindows.h:
12599         add long comment describing appropriate use of the various windows
12600         headers.
12601
12602 2000-06-11  Ben Wing  <ben@xemacs.org>
12603
12604         * device-x.c: Correct doc string for sixth arg of x-get-resource.
12605
12606 2000-06-10  Ben Wing  <ben@xemacs.org>
12607
12608         * Makefile.in.in (release):
12609         Correction to make sure xemacs.exe always dumped when correct.
12610
12611         * alloca.c:
12612         * balloon_help.c:
12613         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
12614
12615         * buffer.c (set_buffer_internal):
12616         [[[[2]]]]: Remove HAVE_FEP code.
12617
12618         * buffer.c (init_initial_directory):
12619         [3].
12620
12621         * bytecode.c:
12622         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
12623         individual files.
12624
12625         * callproc.c:
12626         * callproc.c (call_process_cleanup):
12627         * callproc.c (Fold_call_process_internal):
12628         * callproc.c (child_setup):
12629         * callproc.c (getenv_internal):
12630         * callproc.c (init_callproc):
12631         * callproc.c (vars_of_callproc):
12632         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
12633         __CYGWIN32__ -> CYGWIN.
12634         DOS_NT -> WIN32_NATIVE.
12635         Remove MSDOS support/references, converting to WIN32_NATIVE
12636           where correct.
12637         __MINGW32__ -> MINGW.
12638         Fix windows.h includes.
12639         Remove bogus HAVE_NTGUI.
12640
12641         * config.h.in:
12642         [2].
12643
12644         * console-msw.c:
12645         mswindows_message_outputted added for use in allowing startup
12646         errors on the console to be seen.
12647
12648         * console-msw.c (msw_ensure_console_allocated):
12649         * console-msw.c (msw_output_console_string):
12650         * console-msw.c (DHEADER):
12651         * console-msw.c (DOPAQUE_DATA):
12652         * console-msw.c (DEVENT):
12653         * console-msw.c (DCONS):
12654         * console-msw.c (DCONSCDR):
12655         * console-msw.c (DSTRING):
12656         * console-msw.c (DVECTOR):
12657         * console-msw.c (DSYMBOL):
12658         * console-msw.c (DSYMNAME):
12659         Fix warnings.
12660
12661         * console-stream.c (stream_init_console):
12662         Fix text/binary problems.
12663
12664         * device-msw.c:
12665         * device-msw.c (mswindows_finish_init_device):
12666         * device-msw.c (mswindows_delete_device):
12667         [1].
12668
12669         * device.c (handle_asynch_device_change):
12670         [3].
12671
12672         * dgif_lib.c:
12673         * dgif_lib.c (DGifOpenFileName):
12674         * dgif_lib.c (DGifOpenFileHandle):
12675         * dgif_lib.c (DGifGetLine):
12676         * dgif_lib.c (DGifGetPixel):
12677         Added config.h/lisp.h, fix up includes.
12678         [1].
12679
12680         * dired-msw.c:
12681         [4].
12682
12683         * dired.c:
12684         * dired.c (file_name_completion):
12685         * dired.c (Ffile_attributes):
12686         * dired.c (syms_of_dired):
12687         [1].
12688
12689         * dumper.c:
12690         * dumper.c (pdump_file_unmap):
12691         * dumper.c (pdump_load):
12692         [1].
12693
12694         * editfns.c:
12695         * editfns.c (Ftemp_directory):
12696         * editfns.c (user_login_name):
12697         * editfns.c (Fuser_real_login_name):
12698         * editfns.c (get_home_directory):
12699         [1].
12700
12701         * elhash.c (finish_marking_weak_hash_tables):
12702         [[[[5]]]]: Fix GCC warnings.
12703
12704         * emacs.c:
12705         * emacs.c (mswindows_handle_hardware_exceptions):
12706         * emacs.c (make_arg_list_1):
12707         * emacs.c (main_1):
12708         * emacs.c (Fkill_emacs):
12709         * emacs.c (Fdump_emacs):
12710         [1].
12711         Fix problems with nested crashes, add long comment.
12712
12713         * event-Xt.c (init_event_Xt_late):
12714         [1].
12715
12716         * event-msw.c:
12717         * event-msw.c (mswindows_dde_callback):
12718         * event-msw.c (mswindows_handle_sticky_modifiers):
12719         * event-msw.c (mswindows_wnd_proc):
12720         [1].
12721         [5].
12722
12723         * events.c (character_to_event):
12724         [1].
12725
12726         * fileio.c:
12727         * fileio.c (Ffile_name_directory):
12728         * fileio.c (Ffile_name_nondirectory):
12729         * fileio.c (directory_file_name):
12730         * fileio.c (Fexpand_file_name):
12731         * fileio.c (Fsubstitute_in_file_name):
12732         * fileio.c (Ffile_name_absolute_p):
12733         * fileio.c (check_executable):
12734         * fileio.c (Ffile_readable_p):
12735         * fileio.c (Ffile_accessible_directory_p):
12736         * fileio.c (Ffile_modes):
12737         * fileio.c (Funix_sync):
12738         * fileio.c (vars_of_fileio):
12739         [1]. [4].
12740
12741         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
12742
12743         Expand getdefdir defn.
12744         Fix bogus rename() comment.
12745
12746         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
12747         to use standard XEmacs include files, e.g. sysfile.h, rather
12748         than system-specific includes.
12749
12750         * fns.c:
12751         * fns.c (Fsubseq):
12752         [5]. [6].
12753
12754         * frame.c (vars_of_frame):
12755         [1].
12756
12757         * getloadavg.c:
12758         * getloadavg.c (getloadavg):
12759         [1]. [6].
12760         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
12761         (We don't use it elsewhere in the code; just add a comment.)
12762
12763         * gif_io.c:
12764         [6].
12765         Add config.h.
12766
12767         * glyphs-msw.c:
12768         * glyphs-msw.c (mswindows_resource_instantiate):
12769         [1].
12770
12771         * glyphs-x.c (x_native_layout_instantiate):
12772         [5].
12773
12774         * gui-msw.c (Fmswindows_shell_execute):
12775         [1].
12776
12777         * insdel.c:
12778         [4].
12779
12780         * lisp.h:
12781         [4]. [5].
12782
12783         * lread.c (locate_file_in_directory_mapper):
12784         [1].
12785
12786         * lstream.c:
12787         [4].
12788
12789         * mem-limits.h:
12790         * mem-limits.h (get_lim_data):
12791         [1].
12792
12793         * menubar-msw.c:
12794         [4].
12795
12796         * ndir.h:
12797         [1].
12798
12799         * nt.c:
12800         * nt.c (getwd):
12801         * nt.c (closedir):
12802         * nt.c (rva_to_section):
12803         * nt.c (mswindows_executable_type):
12804         [1]. [6].
12805         Fix closedir() defn.
12806
12807         * nt.h:
12808         [[[[8]]]]: *_OK defs moved to sysfile.h.
12809
12810         * ntproc.c:
12811         [6]. [7].
12812
12813         * objects-x.c:
12814         [4].
12815
12816         * print.c:
12817         * print.c (std_handle_out_external):
12818         [1]. [4].
12819
12820         * process-nt.c:
12821         * process-nt.c (nt_create_process):
12822         [6].
12823         try to fix process quoting somewhat.
12824
12825         * process-unix.c (unix_create_process):
12826         [1].
12827
12828         * process.c:
12829         * process.c (vars_of_process):
12830         Add Vnull_device.
12831
12832         * process.h:
12833         [1].
12834
12835         * realpath.c:
12836         * realpath.c (xrealpath):
12837         [1].
12838
12839         * redisplay-tty.c (init_tty_for_redisplay):
12840         [3].
12841
12842         * redisplay.c:
12843         [4]. [6].
12844
12845         * scrollbar-msw.c:
12846         [4].
12847
12848         * sheap.c:
12849         * sheap.c (more_static_core):
12850         * sheap.c (report_sheap_usage):
12851         [5]. [6].
12852
12853         * signal.c:
12854         * signal.c (alarm_signal):
12855         [1]. [6].
12856
12857         * sound.c:
12858         [6].
12859
12860         * strftime.c:
12861         * strftime.c (zone_name):
12862         [1]. [5].
12863
12864         * symsinit.h (init_sunpro):
12865         [1].
12866
12867         * syscommctrl.h:
12868         commctrl.h not in Cygwin b20.1.
12869
12870         * sysdep.c:
12871         * sysdep.c (endif):
12872         * sysdep.c (sys_subshell):
12873         * sysdep.c (init_baud_rate):
12874         * sysdep.c (emacs_get_tty):
12875         * sysdep.c (emacs_set_tty):
12876         * sysdep.c (tty_init_sys_modes_on_device):
12877         * sysdep.c (init_system_name):
12878         * sysdep.c (sys_open):
12879         * sysdep.c (interruptible_open):
12880         * sysdep.c (sys_fopen):
12881         * sysdep.c (sys_mkdir):
12882         * sysdep.c (sys_rename):
12883         * sysdep.c (get_process_times_1):
12884         [1]. [6].
12885
12886         * sysdep.h:
12887         [1].
12888
12889         * sysdir.h:
12890         * sysdir.h (DIRENTRY_NONEMPTY):
12891         [1]. [6].
12892
12893         * sysdll.c (dll_init):
12894         * sysdll.h:
12895         [1].
12896
12897         * sysfile.h:
12898         [1]. [6]. [8].
12899         added text/binary defs.
12900
12901         * sysfloat.h:
12902         [1].
12903
12904         * sysproc.h:
12905         * sysproc.h (EDESTADDRREQ):
12906         * sysproc.h (poll_fds_for_input):
12907         [1]. [6].
12908
12909         * syspwd.h:
12910         [6].
12911
12912         * syssignal.h:
12913         [1].
12914
12915         * systime.h:
12916         [1]. [6].
12917
12918         * systty.h:
12919         [1].
12920
12921         * syswindows.h:
12922         [1].
12923         Always define WIN32_LEAN_AND_MEAN.
12924
12925         * unexcw.c (unexec):
12926         [5].
12927
12928         * unexec.c:
12929         * unexec.c (copy_text_and_data):
12930         * unexec.c (adjust_lnnoptrs):
12931         [1].
12932
12933         * unexnt.c:
12934         * unexnt.c (_start):
12935         [1].
12936
12937 2000-06-07  Ben Wing  <ben@xemacs.org>
12938
12939         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
12940         was used only as a model.  We've long since extracted any useful
12941         logic or code out of this. (I just did an exhaustive search.)
12942
12943         * s\msdos.h: Removed.
12944
12945         * s\windows95.h: Removed.
12946
12947 2000-06-10  Ben Wing  <ben@xemacs.org>
12948
12949         * s\cygwin32.h:
12950         [1]. [5].
12951         Don't use extern with fun defs.
12952
12953         * s\mingw32.h:
12954         [1]. [7].
12955         Remove nt\inc include.
12956         Remove getdisk, getdefdir. (The former is unused, the latter
12957         expanded in fileio.h.)
12958
12959         * s\windowsnt.h:
12960         * s\windowsnt.h (WIN32_NATIVE):
12961         * s\windowsnt.h (HAVE_STRCASECMP):
12962         [1]. [7].
12963         Add long comment about preprocessor changes.
12964         Remove getdisk, getdefdir. (The former is unused, the latter
12965         expanded in fileio.h.)
12966
12967 2000-06-10  Ben Wing  <ben@xemacs.org>
12968
12969         * m\arm.h:
12970         * m\delta.h:
12971         * m\intel386.h:
12972         * m\sequent.h:
12973         * m\template.h:
12974         * m\windowsnt.h:
12975         [1].
12976         Remove bogus/unused NO_SOCK_SIGIO.
12977
12978 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
12979
12980         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
12981         not an Emchar.
12982
12983 2000-06-04  Mike Sperber <mike@xemacs.org>
12984
12985         * casetab.c (set_case_table): For `set-standard-case-table',
12986         actually deposit the new case tables where the rest of XEmacs can
12987         see them.
12988
12989 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
12990
12991         * data.c (Faset): Don't cast XCHAR() to unsigned char.
12992
12993 2000-06-05  Ben Wing  <ben@xemacs.org>
12994
12995         * callproc.c (child_setup): Don't do close_load_descs() under
12996         MS Windows.  Put in a comment explaining why.
12997
12998 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
12999
13000         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
13001         Toolkit shell" which breaks `kill-compilation' on Windows NT
13002         native, retaining STDERR handling improvements.
13003
13004 2000-06-01  Andreas Jaeger  <aj@suse.de>
13005
13006         * s/s390.h: Support for S390, based on a patch by Martin
13007         Schwidefsky <schwidefsky@de.ibm.com>.
13008
13009 2000-05-30  Andy Piper  <andy@xemacs.org>
13010
13011         * window.c (allocate_window):
13012         (make_dummy_parent):
13013         (Fset_window_configuration): use new hashtable type.
13014
13015         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
13016         (struct image_instantiator_methods):
13017         (struct Lisp_Image_Instance): make instance geometry signed.
13018
13019         * glyphs.c (instantiate_image_instantiator):
13020         (image_instance_query_geometry):
13021         (image_instance_layout):
13022         (image_instance_layout):
13023         (query_string_geometry):
13024         (text_query_geometry):
13025         (image_instantiate):
13026         (image_instantiate):
13027         (cache_subwindow_instance_in_frame_maybe):
13028         (subwindow_query_geometry): make instance geometry signed.
13029
13030         * glyphs-widget.c (widget_query_geometry):
13031         (widget_layout):
13032         (button_query_geometry):
13033         (tree_view_query_geometry):
13034         (tab_control_query_geometry):
13035         (layout_query_geometry):
13036         (layout_layout):
13037         (native_layout_layout): make instance geometry signed.
13038
13039 2000-05-29  Olivier Galibert  <galibert@pobox.com>
13040
13041         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
13042         constant.
13043
13044         * general.c (syms_of_general): Add Qfull_assoc symbol.
13045
13046         * data.c (finish_marking_weak_lists): Mark full-assoc lists
13047         correctly.
13048         (decode_weak_list_type): Decode full-assoc type.
13049         (encode_weak_list_type): Encode full-assoc type.
13050         (Fmake_weak_list): Update doc string.
13051
13052 2000-05-30  Andy Piper  <andy@xemacs.org>
13053
13054         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
13055
13056         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
13057         (decode_hash_table_weakness): ditto.
13058         (Fhash_table_weakness): ditto.
13059         (Fhash_table_type): ditto.
13060         (finish_marking_weak_hash_tables): ditto.
13061         (hash_table_weakness_validate): ditto.
13062         (syms_of_elhash): ditto.
13063
13064 2000-05-28  Martin Buchholz <martin@xemacs.org>
13065
13066         * XEmacs 21.2.34 is released.
13067
13068 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
13069
13070         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
13071         start cache.
13072         (updating_line_start_cache): Gone.
13073         (regenerate_window): Replace resetting of VERTICAL_CLIP by
13074         generic code to force a minimum of 1 line laid out in the
13075         CMOTION_DISP case.
13076
13077 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
13078
13079         * glyphs.c (instantiate_image_instantiator): Check for initialized
13080         height & width no longer special cases IMAGE_NOTHING.
13081         (nothing_instantiate): Set height and width of instance.
13082
13083 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
13084
13085         * unexelf.c (unexec): Search for ".data" section.
13086         Initialize new_data2_offset from old_data_index.
13087         Remove redundant check for ElfW.
13088
13089 2000-05-23  Andy Piper  <andy@xemacs.org>
13090
13091         * glyphs.c (get_image_instantiator_governing_domain): allow more
13092         specific domains as the governing domain rather than expecting an
13093         exact match. This fixes problems with layouts.
13094
13095 2000-05-22  Andy Piper  <andy@xemacs.org>
13096
13097         * redisplay-output.c (compare_runes): check for non-images
13098
13099         * glyphs.c (set_glyph_dirty_p): ditto.
13100         (update_glyph_cachel_data): ditto.
13101
13102         * glyphs-widget.c (layout_post_instantiate): ditto.
13103         (layout_post_instantiate): ditto.
13104
13105         * event-msw.c (mswindows_wnd_proc): warning removal.
13106
13107 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
13108
13109         * s\mingw32.h: Added #undef for CLASH_DETECTION.
13110
13111         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
13112
13113         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
13114
13115         * nt.c (rva_to_section): mingw32 needs rva_to_section.
13116         (mswindows_executable_type): mingw32 now has enough headers for
13117         this to work.
13118
13119 2000-05-20  Andy Piper  <andy@xemacs.org>
13120
13121         * console-msw.c (mswindows_output_last_error): ; -> ,
13122
13123 2000-05-12  Andy Piper  <andy@xemacs.org>
13124
13125         * console-msw.c (FROB): compare ints with ints.
13126
13127 2000-05-11  Andy Piper  <andy@xemacs.org>
13128
13129         * glyphs-x.c (x_finalize_image_instance): make minimal build
13130         happy.
13131
13132 2000-05-20  Ben Wing  <ben@xemacs.org>
13133
13134         * event-Xt.c:
13135         * event-Xt.c (vars_of_event_Xt):
13136         move modifier-keys-are-sticky to event-stream.c.
13137
13138         * event-msw.c:
13139         * event-msw.c (mswindows_enqueue_mouse_button_event):
13140         * event-msw.c (key_needs_default_processing_p):
13141         * event-msw.c (XEMSW_LCONTROL):
13142         * event-msw.c (mswindows_handle_sticky_modifiers):
13143         * event-msw.c (FROB):
13144         * event-msw.c (clear_sticky_modifiers):
13145         * event-msw.c (output_modifier_keyboard_state):
13146         * event-msw.c (output_alt_keyboard_state):
13147         * event-msw.c (mswindows_wnd_proc):
13148         * event-msw.c (mswindows_modifier_state):
13149         * event-msw.c (emacs_mswindows_handle_magic_event):
13150         implement sticky modifiers.
13151
13152         * event-stream.c:
13153         * event-stream.c (vars_of_event_stream):
13154         move modifier-keys-are-sticky here.
13155
13156         * lisp.h:
13157         add CHECK_FUNCTION.
13158
13159         * rangetab.c:
13160         implement map-range-table.
13161
13162
13163 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
13164
13165         * redisplay-tty.c (reset_tty_modes):
13166         (tty_redisplay_shutdown): Adjust argument type to
13167         tty_frame_output_end.
13168
13169 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
13170
13171         * eval.c (Fbacktrace): Don't output a line with only right
13172         parenthesis.
13173
13174 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
13175
13176         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
13177         (Fpq_reset_poll): Ditto.
13178
13179 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
13180
13181         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
13182
13183 2000-05-16  Ben Wing  <ben@xemacs.org>
13184
13185         * buffer.c:
13186         * buffer.c (dfc_convert_to/from_internal_format):
13187         * buffer.c (reinit_vars_of_buffer):
13188         Fix conversion functions to allow reentrancy.
13189
13190         * console-msw.c:
13191         * console-msw.c (mswindows_output_last_error):
13192         New fun, generally useful -- output a human-readable
13193         version of GetLastError() on the console.
13194
13195         * console-msw.h:
13196         * console-msw.h (struct mswindows_frame):
13197         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
13198
13199         * console-stream.c (stream_output_begin):
13200         * console-stream.c (stream_output_end):
13201         * console-stream.c (stream_output_vertical_divider):
13202         * console-stream.c (stream_clear_region):
13203         * console-stream.c (stream_flash):
13204         * console-stream.c (console_type_create_stream):
13205         Delete blank stream methods, not needed.
13206
13207         * console.h (struct console_methods):
13208         Split begin/end methods into window and frame.
13209
13210         * event-msw.c:
13211         * event-msw.c (mswindows_handle_paint):
13212         * event-msw.c (output_alt_keyboard_state):
13213         * event-msw.c (mswindows_wnd_proc):
13214         * event-msw.c (vars_of_event_mswindows):
13215         Comment about problems with ignored-expose.
13216         Define mswindows-debug-events; not really implemented.
13217
13218         * frame-msw.c (mswindows_init_frame_1):
13219         random cleanups.
13220
13221         * glyphs-msw.c:
13222         * glyphs-msw.c (begin_defer_window_pos):
13223         * glyphs-msw.c (mswindows_unmap_subwindow):
13224         * glyphs-msw.c (mswindows_map_subwindow):
13225         * glyphs-msw.c (mswindows_resize_subwindow):
13226         Use DeferWindowPos to reduce flashing when mapping/unmapping.
13227
13228         * glyphs.c (make_image_instance_1):
13229         Fix crash.
13230
13231         * gutter.c (Fredisplay_gutter_area):
13232         Use new begin/end methods.
13233
13234         * lisp.h (Dynarr_new2):
13235         New creation fun.
13236
13237         * redisplay-msw.c:
13238         * redisplay-msw.c (mswindows_frame_output_begin):
13239         * redisplay-msw.c (mswindows_frame_output_end):
13240         * redisplay-msw.c (console_type_create_redisplay_mswindows):
13241         New begin/end methods -- handle DeferWindowPos.
13242
13243         * redisplay-output.c (redisplay_move_cursor):
13244         * redisplay-output.c (redraw_cursor_in_window):
13245         * redisplay-output.c (redisplay_update_line):
13246         * redisplay-output.c (redisplay_output_window):
13247         New begin/end methods.
13248
13249         * redisplay-tty.c:
13250         * redisplay-tty.c (tty_frame_output_begin):
13251         * redisplay-tty.c (tty_frame_output_end):
13252         * redisplay-tty.c (console_type_create_redisplay_tty):
13253         New begin/end methods.
13254
13255         * redisplay-x.c:
13256         * redisplay-x.c (x_window_output_begin):
13257         * redisplay-x.c (x_window_output_end):
13258         * redisplay-x.c (console_type_create_redisplay_x):
13259         New begin/end methods.
13260
13261         * redisplay.c (redisplay_frame):
13262         * redisplay.c (Fredisplay_echo_area):
13263         New begin/end methods.
13264         use MAYBE_DEVMETH for clear_frame; it may not exist.
13265
13266         * window.h (WINDOW_XFRAME):
13267         WINDOW_XFOO macros -- get locale and decode struct pointer.
13268
13269
13270 2000-05-12  Ben Wing  <ben@xemacs.org>
13271
13272         * emacs.c:
13273         * emacs.c (ensure_no_quitting_from_now_on):
13274         * emacs.c (fatal_error_signal):
13275         * emacs.c (mswindows_handle_hardware_exceptions):
13276         * emacs.c (main):
13277         * emacs.c (Fkill_emacs):
13278         * emacs.c (shut_down_emacs):
13279         * emacs.c (assert_failed):
13280         various improvements in fatal error handling.
13281
13282         * eval.c:
13283         move preparing_for_armageddon to emacs.c.
13284
13285         * lisp.h:
13286         declare fatal_error_in_progress.
13287
13288         * print.c:
13289         * print.c (std_handle_out_external):
13290         * print.c (std_handle_out_va):
13291         * print.c (stderr_out):
13292         * print.c (stdout_out):
13293         use console under mswin when no standard output.
13294         don't do code conversion during fatal error.
13295
13296         * scrollbar.c (Fscrollbar_page_up):
13297         * scrollbar.c (Fscrollbar_page_down):
13298         fix missing else.  reindent.
13299
13300 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
13301
13302         Emergency fix.
13303
13304         * glyphs.h (GLYPH_CACHEL_DESCENT):
13305         (GLYPH_CACHEL_DESCENT):
13306         (GLYPH_CACHEL_DESCENT):
13307         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
13308         used in case these are inline functions.
13309         Use more absurd values to error check.
13310
13311         include window.h for error check functions.
13312
13313 2000-05-11  Ben Wing  <ben@xemacs.org>
13314
13315         * cmdloop.c (Freally_early_error_handler):
13316         Display message box under windows; otherwise, message will disappear
13317         before it can be viewed.
13318
13319         * console-msw.c:
13320         * console-msw.c (Fmswindows_message_box):
13321         * console-msw.c (FROB):
13322         * console-msw.c (syms_of_console_mswindows):
13323         Define new fun `mswindows-message-box'.
13324         #### I will merge this into `popup-dialog-box'; just give me
13325         a bit of time.
13326
13327         * general.c:
13328         * general.c (syms_of_general):
13329         Some new symbols used in `mswindows-message-box'.
13330
13331         * glyphs.c:
13332         * glyphs.c (Fset_image_instance_property):
13333         put warning in this fun.
13334
13335         * glyphs.h:
13336         * glyphs.h (GLYPH_CACHEL_WIDTH):
13337         * glyphs.h (GLYPH_CACHEL_ASCENT):
13338         * glyphs.h (GLYPH_CACHEL):
13339         * glyphs.h (GLYPH_CACHEL_GLYPH):
13340         define error-checking versions to try to catch a bug i've seen --
13341         redisplay gets in an infinite loop because the glyph width of the
13342         continuation glyph is 65535.
13343
13344         * lisp.h:
13345         Extern message-box stuff.
13346
13347         * window.c (allocate_window):
13348         * window.c (make_dummy_parent):
13349         * window.c (Fset_window_configuration):
13350         Use EQUAL not EQ for subwindow caches to make them work a bit
13351         better. (Something is still very broken.)
13352
13353
13354 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
13355
13356         * glyphs.c (image_instantiate): Suppress gcc warnings.
13357         (Fmake_image_instance): Fix doc string.
13358         * specifier.c (Fmake_specifier): Ditto.
13359
13360 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
13361
13362         * paths.h.in (PATH_LOCK): Removed.
13363         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
13364         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
13365
13366 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
13367
13368         * fns.c (Ffeaturep): Update e-mail address in doc-string.
13369         Document (featurep '(and xemacs 21.02)).
13370
13371 2000-05-09  Ben Wing  <ben@xemacs.org>
13372
13373         * buffer.c (complex_vars_of_buffer):
13374         update modeline-format doc.
13375
13376         * device.h:
13377         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
13378
13379         * emacs.c:
13380         timeline of all released versions of Emacs, for use in creating
13381         authorship comments and in synching up.
13382
13383         * glyphs-widget.c (image_instantiator_buttons):
13384         * glyphs-widget.c (image_instantiator_edit_fields):
13385         * glyphs-widget.c (image_instantiator_combo_box):
13386         * glyphs-widget.c (image_instantiator_scrollbar):
13387         * glyphs-widget.c (image_instantiator_progress_guage):
13388         * glyphs-widget.c (image_instantiator_tree_view):
13389         * glyphs-widget.c (image_instantiator_tab_control):
13390         * glyphs-widget.c (image_instantiator_labels):
13391         * glyphs-widget.c (image_instantiator_layout):
13392         * glyphs-widget.c (image_instantiator_native_layout):
13393         rename decode_domain method to governing_domain.
13394
13395         * glyphs.c:
13396         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
13397         * glyphs.c (add_entry_to_device_ii_format_list):
13398         make sure we don't put an entry more than once into the list.
13399         * glyphs.c (check_instance_cache_mapper):
13400         *************************************************************
13401         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
13402         HAVE BEEN GETTING.
13403         *************************************************************
13404         * glyphs.c (get_image_instantiator_governing_domain):
13405         clean up, expand on new concept of governing domain.
13406         * glyphs.c (instantiate_image_instantiator):
13407         * glyphs.c (allocate_image_instance):
13408         use governing_domain instead of cache_domain in naming.
13409         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
13410         * glyphs.c (make_image_instance_1):
13411         * glyphs.c (Fmake_image_instance):
13412         allow for any domain (not just device), and process the
13413         governing domain correctly.  very big doc fix.
13414         * glyphs.c (Fimage_instance_domain):
13415         new primitive, to retrieve the governing domain of an image instance.
13416         * glyphs.c (image_instantiate):
13417         use new governing_domain stuff.  this fixes a crash you could get
13418         by instantiating certain widget glyphs in frame locales. (should
13419         signal an error instead of crashing.)
13420         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
13421         * glyphs.c (Fglyphp): clean up doc.
13422         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
13423         * glyphs.c (syms_of_glyphs):
13424         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
13425         * glyphs.c (image_instantiator_format_create): add some comments about
13426         bogus code.
13427         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
13428         for current-display-table. (Apparently Hrjove implemented in 1998 a
13429         design I wrote up in 1996, but didn't update the doc string.)
13430
13431         * glyphs.h: clean up a doc string.
13432         * glyphs.h (governing_domain):
13433         * glyphs.h (struct image_instantiator_methods):
13434         changes for governing_domain stuff.
13435
13436         * gutter.c:
13437         * gutter.c (Fgutter_specifier_p):
13438         * gutter.c (Fgutter_size_specifier_p):
13439         * gutter.c (Fgutter_visible_specifier_p):
13440         * objects.c:
13441         * objects.c (Fcolor_specifier_p):
13442         * objects.c (Ffont_specifier_p):
13443         * objects.c (Fface_boolean_specifier_p):
13444         doc strings moved to make-*-specifier.
13445
13446         * redisplay.c (add_disp_table_entry_runes_1):
13447         * redisplay.c (generate_fstring_runes):
13448         * redisplay.c (screen):
13449         add random comments and doc strings.
13450
13451         * specifier.c:
13452         * specifier.c (Fmake_specifier):
13453         major overhaul of this doc string.
13454
13455         * specifier.c (Fvalid_specifier_domain_p):
13456         comment about the bogosity of image instances being domains.
13457         * specifier.c (decode_domain):
13458         now non-static, used in glyphs.c.
13459         * specifier.c (specifier_instance):
13460         comment about the bogosity of image instances being domains.
13461         * specifier.c (Fgeneric_specifier_p):
13462         move doc string to make-generic-specifier.
13463         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
13464         rebackslashify.
13465
13466         * specifier.h:
13467         * specifier.h (DOMAIN_FRAME):
13468         * specifier.h (DOMAIN_LIVE_P):
13469         * specifier.h (DOMAIN_XDEVICE):
13470         rebackslashify.
13471         add comments about problems with these macros.
13472         prototype for decode_domain.
13473
13474         * toolbar.c:
13475         * toolbar.c (Ftoolbar_specifier_p):
13476         move doc string to `make-toolbar-specifier'.
13477
13478         * window.c (window_unmap_subwindows_cache_mapper):
13479         *************************************************************
13480         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
13481         HAVE BEEN GETTING.
13482         *************************************************************
13483
13484 2000-05-09  Andy Piper  <andy@xemacs.org>
13485
13486         * glyphs.h: declare reset_frame_subwindow_instance_cache.
13487
13488         * window.c (Fset_window_configuration): reset the frame subwindow
13489         cache and re-initialize the window subwindow caches.
13490
13491         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
13492
13493 2000-05-09  Ben Wing  <ben@xemacs.org>
13494
13495         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
13496         DWORD.
13497
13498 2000-04-26  Mike Woolley  <mike@bulsara.com>
13499
13500         * ntheap.c: Changed recreate_heap to limit the amount reserved
13501         for the heap to that which is actually available. Also now
13502         displays a message box (with some dignostics) in the event that
13503         it still can't start.
13504
13505 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
13506
13507         * callproc.c (Fold_call_process_internal): GCPRO path
13508
13509 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
13510
13511         Patch by Bill Perry.
13512
13513         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
13514         back data instead of #ifdef.
13515         (Fscrollbar_page_down): ditto.
13516
13517 2000-05-07  Ben Wing  <ben@xemacs.org>
13518
13519         * buffer.h:
13520         Kludge for defining Qmswindows_tstr.
13521
13522         * nt.c:
13523         * nt.c (open_input_file):
13524         * nt.c (open_output_file):
13525         * nt.c (rva_to_section):
13526         * nt.c (mswindows_executable_type):
13527         Move all memory-mapped-file routines here (some were in unexnt.c,
13528         which is bad because they are used by process-nt.c, and unexnt
13529         won't be around when portable dumping).  Synched the above routines
13530         with FSF 20.6.
13531
13532         * nt.h:
13533         Removed ifdef'd out bogus code.
13534         Fixed some prototypes.
13535
13536         * nt.h (file_data):
13537         * nt.h (OFFSET_TO_RVA):
13538         * nt.h (RVA_TO_OFFSET):
13539         * nt.h (RVA_TO_PTR):
13540         Moved the memory-mapped-file structures, macros and prototypes
13541         here, to parallel nt.c.  ntheap.h should really be removed
13542         entirely, and it's a non-portable-dumper specific file.
13543
13544         * ntheap.h (round_to_next):
13545         Moved the memory-mapped-file structures, macros and prototypes
13546         to nt.h.
13547
13548         * ntproc.c (compare_env):
13549         Moved rva_to_section and mswindows_executable_type to nt.c.
13550         Moved compare_env to process-nt.c.
13551         ntproc.c will die, one day.
13552
13553         * ntproc.c (sys_spawnve):
13554         Account for win32_ -> mswindows_.
13555
13556         * process-nt.c:
13557         * process-nt.c (struct nt_process_data):
13558         * process-nt.c (ensure_console_window_exists):
13559         * process-nt.c (compare_env):
13560         * process-nt.c (nt_create_process):
13561         * process-nt.c (nt_kill_process_by_pid):
13562         * process-nt.c (syms_of_process_nt):
13563         * process-nt.c (vars_of_process_nt):
13564         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
13565         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
13566         changes).  Eliminate our old `nt-quote-process-args' mechanism.
13567         Synch up nt_create_process with FSF 20.6 sys_spawnve.
13568         Move compare_env here from ntproc.c.
13569
13570         * process.c (Fprocess_send_region):
13571         Takes an optional fourth argument, BUFFER, which should fix some
13572         problems with call-process.
13573
13574         * syscommctrl.h:
13575         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
13576
13577         * syswindows.h:
13578         Move ICC_BAR_CLASSES to syscommctrl.h.
13579         Add preliminary macros for MSWindows/Mule.  More to come.
13580
13581         * unexnt.c:
13582         * unexnt.c (unexec):
13583         open_output_file moved to nt.c.
13584
13585
13586 2000-05-05  Andy Piper  <andy@xemacs.org>
13587
13588         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
13589         instance from the frame cache also since GC may catch up too late
13590         to make frame deletion sane.
13591
13592 2000-05-04  Andy Piper  <andy@xemacs.org>
13593
13594         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
13595         (x_finalize_image_instance): ungcpro on deletion.
13596
13597         * glyphs.c (image_instantiator_format_create): give pointers a
13598         query geometry method so that the geometry is at least set.
13599
13600         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
13601         initialize layouts if using widgets.
13602
13603 2000-05-03  Andy Piper  <andy@xemacs.org>
13604
13605         * nt.c: remove bogus reference to sysmmsystem.h
13606
13607         * gui-x.c (popup_selection_callback): fix no selection abort.
13608
13609 2000-05-02  Andy Piper  <andy@xemacs.org>
13610
13611         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
13612         (mswindows_widget_instantiate): ditto.
13613
13614         * glyphs-widget.c (initialize_widget_image_instance): initialize
13615         children correctly.
13616         (widget_instantiate): cope with children and items in the same
13617         instance.
13618
13619         * glyphs.c (mark_image_instance): cope with children as a first
13620         class member.
13621         (image_instance_equal): ditto.
13622         (image_instance_hash): ditto.
13623         (image_instance_changed): ditto.
13624
13625 2000-04-30  Andy Piper  <andy@xemacs.org>
13626
13627         * glyphs.c (subwindow_query_geometry): new function. Return some
13628         defaults.
13629         (subwindow_instantiate): don't assign dimensions if none have been
13630         given.
13631         (image_instantiator_format_create): add subwindow_query_geometry.
13632         (print_image_instance): cope with layouts as widgets.
13633
13634 2000-04-29  Andy Piper  <andy@xemacs.org>
13635
13636         * frame.c (delete_frame_internal): call
13637         free_frame_subwindow_instance_cache so that all subwindows are
13638         finalized before their parent.
13639         (mark_frame): remove subwindow_cachels.
13640         (Fmake_frame): remove subwindow_cachel manipulation.
13641         (allocate_frame_core): subwindow_instance_cache is a weak list.
13642         (delete_frame_internal): set subwindow_instance_cache to nil.
13643
13644         * glyphs-msw.c (mswindows_finalize_image_instance): make double
13645         finalization safe.
13646         (mswindows_finalize_image_instance): use the device
13647         not the domain as the domain may have died already.
13648
13649         * glyphs-x.c (x_finalize_image_instance): ditto.
13650         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
13651         HEIGHT.
13652
13653         * redisplay-output.c (redisplay_unmap_subwindows): update for
13654         subwindow instance cache as a weak list.
13655         (redisplay_unmap_subwindows_maybe): ditto.
13656         (redisplay_unmap_subwindows_except_us): ditto.
13657
13658         * glyphs.c (unmap_subwindow): error checking will check the domain
13659         so don't deal with it here. Don't use cachels anymore.
13660         (map_subwindow): ditto.
13661         (update_subwindow_cachel_data): remove old accessor names.
13662         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
13663         (Fresize_subwindow): don't update cachel.
13664         (mark_subwindow_cachels):
13665         (update_subwindow_cachel_data):
13666         (add_subwindow_cachel):
13667         (get_subwindow_cachel_index):
13668         (update_subwindow_cachel):
13669         (reset_subwindow_cachels):
13670         (mark_subwindow_cachels_as_not_updated): deleted.
13671         (cache_subwindow_instance_in_frame_maybe): new function. Add a
13672         subwindow instance to the frame cache.
13673         (find_matching_subwindow): update for subwindow instance cache as
13674         a weak list.
13675         (update_widget_instances): ditto.
13676         (image_instance_type_to_mask):inlined.
13677         (free_frame_subwindow_instance_cache): new function. finalize all
13678         subwindows that are instantiated.
13679
13680         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
13681         of cachel information.
13682         (IMAGE_INSTANCE_DISPLAY_X):
13683         (IMAGE_INSTANCE_DISPLAY_Y):
13684         (IMAGE_INSTANCE_DISPLAY_WIDTH):
13685         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
13686         (XIMAGE_INSTANCE_DISPLAY_X):
13687         (XIMAGE_INSTANCE_DISPLAY_Y):
13688         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
13689         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
13690         remove subwindow_cachel structure and function references.
13691         (image_instance_type_to_mask): inline from glyphs.c
13692
13693         * redisplay.c (redisplay_frame): remove subwindow_cachel
13694         references.
13695
13696         * frame.h (struct frame): remove subwindow_cachels.
13697         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
13698
13699         * frameslots.h: add subwindow_instance_cache.
13700
13701         * window.c (replace_window): check subwindow cache of replacement.
13702         (window_unmap_subwindows_cache_mapper):
13703         (window_unmap_subwindows): new functions. Unmap all subwindows
13704         cached on this window.
13705         (mark_window_as_deleted): unmap all subwindows.
13706
13707 2000-04-27  Andy Piper  <andy@xemacs.org>
13708
13709         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
13710
13711         * glyphs-widget.c (widget_layout): return something.
13712         (layout_layout): return something. Fail if not initialized.
13713         (layout_query_geometry): ditto.
13714         (image_instantiator_native_layout): new function. Initialized the
13715         native layout type.
13716         (widget_instantiate): don't do layout stuff here.
13717
13718         * glyphs.c (instantiate_image_instantiator): reorded calling or
13719         instantiate and post_instantiate with layout in between.
13720         (image_instance_layout): be more selective about deciding whether
13721         the layout has been done or not.
13722
13723         * glyphs.h (struct image_instantiator_methods): return a value
13724         from layout_method.
13725
13726 2000-04-26  Andy Piper  <andy@xemacs.org>
13727
13728         * glyphs.c (allocate_image_instance): make initial width and
13729         height unspecified. Set initialized to 0.
13730
13731         * syscommctrl.h new file. Encapsulates commctrl.h.
13732
13733         * syswindows.h new file. Encapsulates windows.h.
13734
13735         * ntplay.c: use new syswindows.h and syscommctrl.h header.
13736         * nt.c: ditto.
13737         * console-msw.h: ditto.
13738
13739         * redisplay-tty.c (tty_output_display_block): remove layout references.
13740
13741         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
13742         window handle rather than just the frame.
13743
13744         * glyphs.c (mark_image_instance): remove layout references.
13745         (print_image_instance): ditto.
13746         (image_instance_equal): ditto.
13747         (image_instance_hash): ditto.
13748         (decode_image_instance_type): ditto.
13749         (encode_image_instance_type): ditto.
13750         (image_instantiate): ditto.
13751         (allocate_glyph): ditto.
13752         (Fimage_instance_height): ditto.
13753         (Fimage_instance_width): ditto.
13754         (update_subwindow): ditto.
13755
13756         * redisplay-x.c (x_output_display_block): recode for layouts as
13757         widgets.
13758
13759         * redisplay-output.c (redisplay_output_layout): recode for layouts
13760         as widgets.
13761         (compare_runes): remove layout references.
13762
13763         * redisplay-msw.c (mswindows_output_display_block): recode for
13764         layouts as widgets.
13765
13766         * glyphs-widget.c (image_instantiator_layout): remove
13767         layout_possible_dest_types.
13768         (layout_possible_dest_types): deleted.
13769
13770         * glyphs.h (image_instance_type): remove layout references.
13771         (struct Lisp_Image_Instance): ditto. Add initialized flag.
13772         (IMAGE_INSTANCE_INITIALIZED): new accessor.
13773         (XIMAGE_INSTANCE_INITIALIZED): ditto.
13774
13775 2000-04-25  Andy Piper  <andy@xemacs.org>
13776
13777         * glyphs-widget.c (image_instantiator_buttons):
13778         (image_instantiator_edit_fields):
13779         (image_instantiator_combo_box):
13780         (image_instantiator_scrollbar):
13781         (image_instantiator_progress_guage):
13782         (image_instantiator_tree_view):
13783         (image_instantiator_tab_control):
13784         (image_instantiator_labels):
13785         (image_instantiator_layout): call default post_instantiate method.
13786         (widget_post_instantiate): new function. Simply lays out the
13787         widgets.
13788
13789         * glyphs.h (struct image_instantiator_methods): add
13790         post_instantiate method.
13791
13792         * glyphs.c (instantiate_image_instantiator): add post_instantiate
13793         method calls.
13794
13795 2000-04-23  Andy Piper  <andy@xemacs.org>
13796
13797         * glyphs.h (struct image_instantiator_methods): add
13798         decode_domain_method.
13799         (struct Lisp_Image_Instance): remove subwindow frame - it can be
13800         derived from the domain.
13801         (IMAGE_INSTANCE_FRAME): new accessor.
13802         (XIMAGE_INSTANCE_FRAME): ditto.
13803
13804         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
13805         instead of _SUBWINDOW_FRAME.
13806         (finalize_image_instance): ditto.
13807         (Fimage_instance_foreground): ditto.
13808         (Fimage_instance_background): ditto.
13809         (image_instantiate): ditto.
13810         (update_subwindow_cachel): ditto.
13811         (update_subwindow): ditto.
13812         (unmap_subwindow): ditto.
13813         (map_subwindow): ditto
13814         (subwindow_instantiate): ditto.
13815         * glyphs-msw.c (mswindows_update_widget): ditto.
13816         (mswindows_progress_gauge_instantiate): ditto.
13817         (mswindows_tab_control_update): ditto.
13818         * glyphs-x.c (x_update_widget): ditto.
13819         (x_widget_instantiate): ditto.
13820         (x_tab_control_instantiate): ditto.
13821         (x_tab_control_update): ditto.
13822         * event-msw.c (mswindows_wnd_proc): ditto
13823
13824         * glyphs-widget.c (image_instantiator_layout): use
13825         subwindow_decode_domain.
13826         (image_instantiator_buttons): ditto.
13827         (image_instantiator_edit_fields): ditto.
13828         (image_instantiator_combo_box): ditto.
13829         (image_instantiator_scrollbar): ditto.
13830         (image_instantiator_progress_guage): ditto.
13831         (image_instantiator_tree_view): ditto.
13832         (image_instantiator_tab_control): ditto.
13833         (image_instantiator_labels): ditto.
13834         (image_instantiator_layout): ditto.
13835
13836         * glyphs.c: add instance error checking to many functions.
13837         (instantiate_image_instantiator): decode device from cache_domain.
13838         (image_instantiate): partially rewrite by using
13839         decode_image_instantiator_domain to determine what domain the
13840         instance needs to be cached in.
13841         (decode_image_instantiator_domain): new function. Determine what
13842         domain the image needs to be cached in.
13843         (check_window_subwindow_cache): new error checking function.
13844         (check_instance_cache_mapper): ditto.
13845         (check_image_instance_structure): ditto.
13846         (subwindow_decode_domain): new function. Encodes a window as a
13847         subwindow's cache domain.
13848         (image_instantiator_format_create): use it for text and
13849         subwindows.
13850
13851 2000-04-21  Andy Piper  <andy@xemacs.org>
13852
13853         * glyphs.c (image_instance_device): new function.
13854         (image_instance_frame): new function.
13855         (image_instance_window): new function.
13856         (image_instance_live_p): new function.
13857
13858         * window.c (mark_window_as_deleted): reset the subwindow_instance_
13859         cache to nil.
13860
13861         * glyphs.h (struct Lisp_Image_Instance): device->domain.
13862         (IMAGE_INSTANCE_DOMAIN): new accessor.
13863         (XIMAGE_INSTANCE_DOMAIN): ditto.
13864
13865         * glyphs-x.c (x_finalize_image_instance): device->domain.
13866
13867         * glyphs-msw.c (init_image_instance_geometry): device->domain.
13868         (mswindows_finalize_image_instance): ditto.
13869
13870         * glyphs-eimage.c (jpeg_instantiate): device->domain.
13871         (gif_instantiate): ditto.
13872         (png_instantiate): ditto.
13873         (tiff_instantiate): ditto.
13874
13875         * glyphs.c (instantiate_image_instantiator): use domain rather
13876         than device.
13877         (mark_image_instance): device -> domain.
13878         (print_image_instance): ditto.
13879         (finalize_image_instance): ditto.
13880         (image_instance_equal): ditto.
13881         (allocate_image_instance): ditto.
13882         (Fcolorize_image_instance): ditto.
13883         (query_string_geometry): ditto.
13884         (image_instantiate): ditto
13885         (query_string_font): ditto.
13886         (image_instantiate): ditto.
13887         (update_subwindow): ditto.
13888         (unmap_subwindow): ditto.
13889         (map_subwindow): ditto.
13890         (subwindow_instantiate): ditto.
13891
13892         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
13893         (DOMAIN_FRAME): ditto.
13894         (DOMAIN_WINDOW): ditto.
13895         (DOMAIN_LIVE_P): ditto.
13896         (XDOMAIN_DEVICE): ditto.
13897         (XDOMAIN_FRAME): ditto.
13898         (XDOMAIN_WINDOW): ditto.
13899
13900         * specifier.c (Fvalid_specifier_domain_p): add image instances as
13901         a valid specifier domain.
13902
13903 2000-04-19  Andy Piper  <andy@xemacs.org>
13904
13905         * glyphs-widget.c (syms_of_glyphs_widget): remove
13906         widget-callback-current-channel.
13907         (vars_of_glyphs_widget): ditto.
13908         * glyphs.h: ditto
13909
13910         * gui.c (get_gui_callback): revert to previous behaviour.
13911
13912 2000-04-18  Andy Piper  <andy@xemacs.org>
13913
13914         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
13915         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
13916         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
13917
13918         * glyphs.c (image_instance_equal): add margin_width.
13919         (image_instance_hash): ditto.
13920
13921         * glyphs-widget.c (widget_instantiate): deal with margin-width.
13922         (layout_query_geometry): ditto.
13923         (layout_layout): ditto.
13924         (syms_of_glyphs_widget): add margin-width.
13925         (image_instantiator_layout): allow margin-width.
13926
13927         * glyphs.c (update_widget_instances): make a normal function.
13928         (syms_of_glyphs): remove Qupdate_widget_instances.
13929         * glyphs.h: ditto.
13930
13931         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
13932         so that we don't corrupt ideas about the last event or
13933         command. Remove widget-callback-current-channel fiddling.
13934         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
13935
13936 2000-05-01  Martin Buchholz <martin@xemacs.org>
13937
13938         * XEmacs 21.2.33 is released.
13939
13940 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
13941
13942         * make-src-depend: Allow dots in header file name.
13943
13944 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
13945
13946         * mule-charset.h (struct charset_lookup): Add
13947         next_allocated_1_byte_leading_byte and
13948         next_allocated_2_byte_leading_byte.
13949         * mule-charset.c: Move above two variables so that those values
13950         will be dumped.
13951
13952 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
13953
13954         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
13955         when string length is zero.
13956         (find_charsets_in_emchar_string): Ditto.
13957
13958 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
13959
13960         * lisp.h: extern Qdialog and Qmenubar.
13961
13962         * gui-x.c: added events.h.
13963                 also fixed typo which made the file uncompilable.
13964
13965         * general.c: Added Qmenubar and Qdialog
13966
13967 2000-04-28  Ben Wing  <ben@xemacs.org>
13968
13969         * frame-msw.c (mswindows_init_frame_1):
13970         * frame-msw.c (mswindows_mark_frame):
13971         * event-msw.c (mswindows_enqueue_dispatch_event):
13972         * console-msw.h:
13973         * console-msw.h (struct mswindows_frame):
13974         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
13975         there are now three hash tables for callbacks.
13976         mswindows_enqueue_dispatch_event is no longer static.
13977
13978         * dialog-x.c (maybe_run_dbox_text_callback):
13979         * dialog-x.c (dbox_descriptor_to_widget_value):
13980         switch to new cons3 form for callbacks.
13981
13982         * glyphs-msw.c (mswindows_register_gui_item):
13983         * glyphs-msw.c (mswindows_widget_instantiate):
13984         * glyphs-msw.c (add_tree_item):
13985         * glyphs-msw.c (add_tab_item):
13986         new image instance parameter, so it can be passed to callback-ex.
13987         respect :callback-ex as well as :callback.
13988
13989         * glyphs-widget.c (VALID_GUI_KEYWORDS):
13990         add :callback-ex.
13991
13992         * glyphs.c (print_image_instance):
13993         prettify, e.g. now prints widget type.
13994
13995         * gui-x.h:
13996         certain funs have new image instance parameter.
13997
13998         * gui.c:
13999         * gui.c (get_gui_callback):
14000         * gui.c (gui_item_add_keyval_pair):
14001         * gui.c (gui_item_init):
14002         * gui.c (gui_add_item_keywords_to_plist):
14003         * gui.c (mark_gui_item):
14004         * gui.c (gui_item_hash):
14005         * gui.c (gui_item_equal):
14006         * gui.c (copy_gui_item):
14007         * gui.c (syms_of_gui):
14008         recognize callback-ex in a number of places.
14009         also, fix the annoying "can't get out of yes-no dialog" bug.
14010
14011         * gui.h:
14012         * gui.h (struct Lisp_Gui_Item):
14013         recognize callback-ex in a number of places.
14014
14015         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
14016         new parameter in button_item_to_widget_value.
14017
14018         * glyphs-x.c (x_update_widget):
14019         * glyphs-x.c (x_button_instantiate):
14020         * glyphs-x.c (x_button_update):
14021         * glyphs-x.c (x_progress_gauge_instantiate):
14022         * glyphs-x.c (x_edit_field_instantiate):
14023         * glyphs-x.c (x_combo_box_instantiate):
14024         * glyphs-x.c (x_tab_control_instantiate):
14025         * glyphs-x.c (x_label_instantiate):
14026         new image instance parameter in various places.
14027
14028         * event-Xt.c:
14029         * event-Xt.c (enqueue_Xt_dispatch_event):
14030         this fun gets exported.
14031
14032         * gui-msw.c:
14033         * gui-msw.c (mswindows_handle_gui_wm_command):
14034         handle both :callback and :callback-ex, and generate our own
14035         event because it's one of the callback-ex arguments.
14036
14037         * gui-x.c:
14038         * gui-x.c (popup_selection_callback):
14039         handle both :callback and :callback-ex, and generate our own
14040         event because it's one of the callback-ex arguments.
14041         * gui-x.c (button_item_to_widget_value):
14042         * gui-x.c (gui_items_to_widget_values_1):
14043         * gui-x.c (gui_item_children_to_widget_values):
14044         * gui-x.c (gui_items_to_widget_values):
14045         new image instance parameter in various places.
14046
14047         * fns.c (Freplace_list):
14048         fix small typo in doc string.
14049
14050         * lisp.h:
14051         declare enqueue_Xt_dispatch_event.
14052
14053 2000-04-28  Ben Wing  <ben@xemacs.org>
14054
14055         * buffer.c:
14056         * buffer.c (Frecord_buffer):
14057         * buffer.c (syms_of_buffer):
14058         delete record-buffer-hook.
14059
14060         * fns.c:
14061         * fns.c (Freplace_list):
14062         * fns.c (syms_of_fns):
14063         new primitive replace-list.
14064
14065         * frameslots.h:
14066         slot for old buffer-alist.
14067
14068         * lisp.h:
14069         exfun replace-list.
14070
14071         * redisplay.c:
14072         * redisplay.c (redisplay_frame):
14073         * redisplay.c (syms_of_redisplay):
14074         * redisplay.c (vars_of_redisplay):
14075         new hook buffer-list-changed-hook.
14076         call it.
14077
14078 2000-04-27  Ben Wing  <ben@xemacs.org>
14079
14080         * extents.h: extern in_modeline_generation.
14081
14082         * redisplay.c (generate_formatted_string_db): set
14083         in_modeline_generation.
14084
14085         * extents.c (extent_changed_for_redisplay): don't mark redisplay
14086         flags if in modeline generation.  otherwise frame-modified-tick
14087         is ticked far too often.
14088         Declare in_modeline_generation.
14089
14090 2000-04-26  Ben Wing  <ben@xemacs.org>
14091
14092         * emacs.c (vars_of_emacs): document quick-build "error-checking"
14093         option.
14094         (vars_of_emacs): add quick-build as an error-checking option.
14095         A bit kludgy, but there doesn't seem much point in creating
14096         a real var for this.
14097
14098         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
14099
14100 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
14101
14102         * redisplay.h (struct display_line): Add a new variable,
14103         line_continuation.
14104
14105         * redisplay.c (create_text_block): Set dl->line_continuation if
14106         the line continues.
14107         (create_string_text_block): Ditto.
14108         (regenerate_window_incrementally): Use line_continuation instead
14109         of searching continuation glyph.
14110         (add_margin_runes): Call add_glyph_rune.
14111         (add_glyph_rune): Handle margin glyph.
14112
14113 2000-04-20  Martin Buchholz  <martin@xemacs.org>
14114
14115         * filelock.c (fill_in_lock_file_name):
14116         ANSIfy.
14117         Check for IS_ANY_SEP instead of '/'.
14118         (lock_file_1):
14119         Avoid generating gratuitous garbage.  Call user_login_name() directly.
14120         Never check errno without first seeing that system call failed.
14121         (unlock_file): Add GCPRO.
14122         (Flock_buffer): Fix docstring.
14123         (Ffile_locked_p): Fix docstring.  Add GCPRO.
14124
14125 2000-04-19  Martin Buchholz  <martin@xemacs.org>
14126
14127         * sysdep.c (get_pty_max_bytes):
14128         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
14129         strings longer than 252 bytes.
14130
14131         * md5.c: Unconditionally include ANSI header <limits.h>
14132
14133         * glyphs-x.c (convert_EImage_to_XImage):
14134         * lisp-union.h (union Lisp_Object):
14135         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
14136
14137 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
14138
14139         * filelock.c (current_lock_owner): Remove unused variable o, p.
14140
14141 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
14142
14143         * callint.c: Remove multiply defined symbol Qlet
14144         (syms_of_callint): ditto.
14145
14146 2000-04-14  Andy Piper  <andy@xemacs.org>
14147
14148         * general.c (syms_of_general): add last-command, this-command, let
14149         and funcall.
14150
14151         * lisp.h: declare various symbols.
14152
14153         * glyphs.h: declare Qwidget_callback_current_channel;
14154
14155         * glyphs-widget.c (syms_of_glyphs_widget): add
14156         Qgui_callback_current_channel.
14157         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
14158
14159         * gui-msw.c (mswindows_handle_gui_wm_command): bind
14160         widget-callback-current-channel when invoking the interactive
14161         arg. Also bind last-command and next-command when invoking the
14162         widget updates.
14163         * gui-x.c (popup_selection_callback): ditto.
14164
14165         * gui.c (get_gui_callback): massage args so that we are always
14166         calling eval. This allows us to add our own variable bindings
14167         outside.
14168
14169         * glyphs-x.c (x_button_instantiate): use
14170         gui_items_to_widget_values since this is GC safe.
14171         (x_progress_gauge_instantiate): ditto.
14172         (x_edit_field_instantiate): ditto.
14173         (x_label_instantiate): ditto.
14174
14175         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
14176         (emacs_Xt_event_widget_focus_out): new function
14177         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
14178         focus.
14179         (emacs_Xt_event_add_widget_actions): new function. add focus
14180         functions as actions.
14181         (init_event_Xt_late): use it.
14182
14183 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
14184
14185         * event-stream.c (Fdispatch_event): Doc fix.
14186
14187 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
14188
14189         * postgresql.c: Remove all references to PQsetenv*.
14190
14191         * postgresql.h: Remove references to PGsetenvHandler object.
14192         * lrecord.h (lrecord_type): Ditto.
14193
14194 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14195
14196         * glyphs-msw.h (struct mswindows_image_instance_data): Added
14197         real_heigh and real_width members, and accessor macros for these.
14198
14199         * glyphs-msw.c (init_image_instance_geometry): New function.
14200         (init_image_instance_from_dibitmap): Use it.
14201         (mswindows_resource_instantiate): Use it.
14202         (init_image_instance_from_xbm_inline): Use it.
14203         (mswindows_initialize_image_instance_mask): Use real bitmap
14204         geometry.
14205         (mswindows_create_resized_bitmap): Ditto.
14206         (mswindows_create_resized_mask): Ditto.
14207
14208         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
14209         and bitmap to their surface size.
14210
14211 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
14212
14213         * process-unix.c (unix_send_process): Guard against process MIA
14214         after Faccept_process_output.
14215
14216 2000-04-11  Ben Wing  <ben@xemacs.org>
14217
14218         * eval.c (unbind_to_hairy): fix brokenness introduced by
14219         nanosecond speed improvements.
14220
14221 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
14222
14223         * sunplay.c (init_device): To play sounds correctly, the device
14224         apparently needs to be initialized at least once by XEmacs.  Make
14225         it so.
14226
14227 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
14228
14229         * redisplay.c (add_margin_runes): Add text image glyph
14230           handling.
14231
14232 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
14233
14234         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
14235         gcc is newer than 2.5.
14236
14237 2000-04-06  Colin Rafferty  <colin@xemacs.org>
14238
14239         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
14240
14241         * fns.c (size_bit_vector):
14242         * alloc.c (size_vector):
14243         (make_vector_internal):
14244         (make_bit_vector_internal):
14245         (sweep_bit_vectors_1):
14246         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
14247
14248 2000-04-06  Andy Piper  <andy@xemacs.org>
14249
14250         * gmalloc.c (malloc): undo previous change.
14251         (malloc): ditto.
14252         (free): ditto.
14253         (realloc): ditto.
14254
14255 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
14256
14257         * line-number.c (buffer_line_number): Revert to former version.
14258
14259 2000-04-06  Andy Piper  <andy@xemacs.org>
14260
14261         * gmalloc.c (malloc): add error checking.
14262         (malloc): ditto.
14263         (free): ditto.
14264         (realloc): ditto.
14265
14266         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
14267         button_item_to_widget_value arg.
14268
14269         * glyphs-x.c (x_button_instantiate): add extra
14270         button_item_to_widget_value arg.
14271         (x_progress_gauge_instantiate): ditto.
14272         (x_edit_field_instantiate): ditto.
14273         (x_label_instantiate): ditto.
14274
14275         * gui-x.c (gui_items_to_widget_values_1): add extra
14276         button_item_to_widget_value arg.
14277         (button_item_to_widget_value): add extra menu_item_p arg.
14278
14279         * gui-x.h: change signature of button_item_to_widget_value.
14280
14281         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
14282         button_item_to_widget_value arg.
14283
14284 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
14285
14286         * buffer.h (struct buffer): auto_save_modified should be long.
14287
14288 2000-04-05  Andy Piper  <andy@xemacs.org>
14289
14290         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
14291         type.
14292         (button_query_geometry): give a little more room so that athena
14293         buttons fit.
14294
14295 2000-04-05  Andy Piper  <andy@xemacs.org>
14296
14297         * faces.c (complex_vars_of_faces): The widget face should inherit
14298         the font of the gui-element face.
14299
14300 2000-04-04  Andy Piper  <andy@xemacs.org>
14301
14302         * glyphs-x.c (x_button_update): new function. unconditionally
14303         update a button's state when the instance is dirty.
14304         (image_instantiator_format_create_glyphs_x): add x_button_update.
14305         (x_widget_instantiate): remove old resize cruft.
14306
14307 2000-04-02  Andy Piper  <andy@xemacs.org>
14308
14309         * frame.c (change_frame_size_1): The introduction of gutters means
14310         that we need to allow 0 as a potential frame dimension.
14311
14312 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
14313
14314         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
14315         image glyph if allow_cursor.
14316         (add_hscroll_rune): Don't allow cursor to border glyph.
14317         (create_text_block): Ditto.
14318
14319         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
14320         text not in buffer.
14321         (redisplay_output_layout): Call ensure_face_cachel_complete for
14322         text image glyph.
14323
14324
14325 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
14326
14327         * redisplay.c (add_glyph_rune): Adding text image as text runes.
14328
14329         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
14330         not in buffer
14331
14332         * redisplay-tty.c (tty_output_display_block): Delete the routine
14333         for text image glyph
14334         * redisplay-x.c (x_output_display_block): ditto
14335         * redisplay-msw.c (mswindows_output_display_block): ditto
14336
14337 2000-02-02  Mike Alexander  <mta@arbortext.com>
14338
14339         Note: Some of these were committed by accident as part of other
14340         patches.
14341
14342         * regex.c (regex_compile): Avoid compiler warnings.
14343
14344         * ntproc.c (sys_spawnve): Avoid compiler warnings.
14345
14346         * nt.h: Declare term_ntproc correctly.
14347
14348         * nt.c: Remove incorrect declaration of get_home_directory which
14349         is declared correctly in lisp.h.
14350
14351         * keymap.c (get_keyelt): Avoid compiler warnings.
14352         (raw_lookup_key_mapper): Avoid compiler warnings.
14353
14354         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
14355
14356         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
14357
14358         * filemode.c (mode_string): Avoid compiler warnings.
14359
14360         * file-coding.c (Fcoding_system_aliasee): Add return statement to
14361         avoid warning.
14362
14363         * events-mod.h: Undef some things that winuser.h defines differently.
14364
14365         * data.c (Faset): Avoid compiler warnings.
14366
14367         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
14368
14369 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
14370
14371         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
14372         Fall through to simple beep on error.
14373         Replace "extern" by real header file.
14374
14375         * linuxplay.c: Use nativesound.h
14376         (play_sound_data): Return error code. Be less verbose on error.
14377
14378         * sunplay.c: Use nativesound.h
14379         (play_sound_data): Return error code. Be less verbose on error.
14380
14381         * ntplay.c: Use nativesound.h
14382         (play_sound_data): Return fake error code
14383
14384         * sgiplay.c: Use nativesound.h
14385         (play_sound_data): Return error code
14386
14387         * hpplay.c: Use nativesound.h, partially implement
14388         new error code. Break compilation until finished.
14389         (play_sound_data): error code.
14390
14391         * nativesound.h (play_sound_file):
14392           (play_sound_data): Prototype in new header.
14393
14394 2000-03-31  Andy Piper  <andy@xemacs.org>
14395
14396         * glyphs-widget.c: (button_query_geometry): new function. Adjust
14397         for toggle and radio buttons.
14398         (image_instantiator_buttons): use it.
14399
14400 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
14401
14402         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
14403         (x_update_horizontal_scrollbar_callback): Return if no mirror was
14404         found. Scrollbar event probably belonged to some old config.
14405
14406 2000-03-31  Andy Piper  <andy@xemacs.org>
14407
14408         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
14409         than 1.
14410         (initialize_widget_image_instance): default layout to
14411         LAYOUT_HORIZONTAL rather than 0.
14412         (widget_instantiate): reverse the item list at the end rather than
14413         every iteration.
14414         (layout_layout): re-code for the border text at the front of the
14415         item list rather than at the end.
14416         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
14417         provided by the user.
14418         (widget_query_geometry): comment.
14419
14420 2000-03-30  Andy Piper  <andy@xemacs.org>
14421
14422         * glyphs-widget.c (image_instantiator_layout): allow standard
14423         widget keywords in layouts.
14424
14425         * gutter.c (output_gutter): cope with nil gutter contents.
14426
14427         * frame.c (Fset_frame_properties): add gutter docs.
14428
14429 2000-03-29  Andy Piper  <andy@xemacs.org>
14430
14431         * toolbar-msw.c (TBSTYLE_FLAT): add.
14432         (mswindows_output_toolbar): minor fiddling.
14433
14434 2000-03-29  Andy Piper  <andy@xemacs.org>
14435
14436         * gutter.c (output_gutter): force gutter size recalculation if
14437         what we are trying to display won't fit.
14438         (update_gutter_geometry): new function. A per-gutter version of
14439         update_frame_gutter_geometry.
14440         (update_frame_gutter_geometry): use it.
14441         (redraw_exposed_gutter): add extra debugging output.
14442
14443 2000-03-28  Mike Alexander  <mta@arbortext.com>
14444
14445         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
14446         (pdump_file_unmap): Implement it on Windows
14447         (pdump_file_get): Save alocated handles for pdump_file_unmap
14448
14449 2000-03-28  Andy Piper  <andy@xemacs.org>
14450
14451         * gui.c (get_gui_callback): treat Quit specially.
14452
14453 2000-03-27  Andy Piper  <andy@xemacs.org>
14454
14455         * glyphs.c (image_instantiate): be careful to check in the same
14456         way we assigned.
14457
14458 2000-03-27  Didier Verna  <didier@xemacs.org>
14459
14460         * config.h.in: define the proper SMART_INCLUDE macro.
14461         handle renaming of `foo_h_path' to `foo_h_file'.
14462
14463         * database.c: ditto.
14464
14465         * emacs.c: ditto.
14466
14467         * linuxplay.c: ditto.
14468
14469         * terminfo.c: ditto.
14470
14471         * tooltalk.h: ditto.
14472
14473 2000-03-27  Andy Piper  <andy@xemacs.org>
14474
14475         * glyphs-msw.c (mswindows_update_widget): make sure the widget
14476         gets updated whenever the face might have changed.
14477
14478 2000-03-26  Mike Alexander  <mta@arbortext.com>
14479
14480         * dumper.c (pdump_resource_free): Fix the comment.
14481
14482 2000-03-21  Olivier Galibert  <galibert@pobox.com>
14483
14484         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
14485
14486 2000-03-22  Mike Alexander  <mta@arbortext.com>
14487
14488         * dumper.c: Include Windows headers on Windows
14489         (pdump_resource_free): Add a body to the function
14490         (pdump_load): exe_name -> exe_path and add some comments.
14491
14492 2000-03-25  Mike Alexander  <mta@arbortext.com>
14493
14494         * gui.c (copy_gui_item_tree): Return a value in all cases
14495
14496 2000-03-21  Didier Verna  <didier@xemacs.org>
14497
14498         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
14499         lwlib/config.h.in.
14500         (SMART_INCLUDE): new macro.
14501         (POSTGRES_INCLUDE): new macro to include postgresql headers from
14502         the proper location.
14503
14504         * postgresql.c: use it.
14505
14506         * inline.c: ditto.
14507
14508 2000-03-24  Andy Piper  <andy@xemacs.org>
14509
14510         * gutter.c (redraw_exposed_gutters): must be "in display" when we
14511         do this.
14512
14513 2000-03-24  Andy Piper  <andy@xemacs.org>
14514
14515         * redisplay-output.c (compare_runes): use image_instance_changed
14516         to detect changes. Do not depend on glyphs_changed, only depend on
14517         dirtiness.
14518          (redisplay_output_layout): add debug messages.
14519         (compare_runes): ditto.
14520
14521         * glyphs.h: declare new functions.
14522         (struct Lisp_Image_Instance): remove percent and associated
14523         accessors.
14524
14525         * gui.h: declare new copying functions.
14526
14527         * gui.c (copy_gui_item_tree): new function.
14528         (copy_gui_item): new function.
14529         (gui_item_id_hash): revert to standard hash.
14530         (gui_item_hash): ditto.
14531         (gui_item_hash_internal): deleted.
14532         (mark_gui_item): mark value.
14533         (gui_item_add_keyval_pair): add value.
14534         (gui_item_init): ditto.
14535         (gui_add_item_keywords_to_plist): ditto.
14536         (gui_item_equal): ditto.
14537         (syms_of_gui): add Q_value.
14538
14539         * glyphs-x.c (x_progress_gauge_update): use pending items and
14540         value for setting the state.
14541         (x_update_widget): don't set items from pending here.
14542
14543         * glyphs-widget.c (update_widget): update items here.
14544         (progress_gauge_set_property): use items for storing value. Put
14545         new value in pending items.
14546
14547         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
14548         items for new value. Convert percent -> value.
14549         (mswindows_tab_control_update): don't update items here.
14550
14551         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
14552         (update_subwindow): ditto.
14553         (image_instance_changed): new function. Compare hash values and
14554         past and present widget items.
14555         (image_instantiate): We more careful about where we instantiate
14556         things.
14557         (image_instantiate): add error checking.
14558
14559         * gutter.c (syms_of_gutter): use -hook.
14560
14561 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
14562
14563         * console-tty.c (Fset_console_tty_input_coding_system): Use
14564         Qkeyboard.
14565         (Fset_console_tty_output_coding_system): Use Qterminal.
14566         (tty_init_console): Use Qkeyboard and Qterminal.
14567
14568 2000-03-21  Ben Wing  <ben@xemacs.org>
14569
14570         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
14571         From Mike Alexander <mta@arbortext.com>.
14572
14573 2000-03-21  Ben Wing  <ben@xemacs.org>
14574
14575         * event-msw.c (mswindows_need_event): Horrible kludge to fix
14576         process brokenness.  Proper implementation to come.
14577         * callproc.c:
14578         Rename call-process-internal to old-call-process-internal.
14579         New impl. in process.el.
14580
14581 2000-03-21  Martin Buchholz  <martin@xemacs.org>
14582
14583         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
14584
14585 2000-03-20  Andy Piper  <andy@xemacs.org>
14586
14587         * glyphs.c (full_list_hash): make hashes of the same elements in
14588         different orders return different values.
14589
14590 2000-03-20  Martin Buchholz <martin@xemacs.org>
14591
14592         * XEmacs 21.2.32 is released.
14593
14594 2000-03-20  Martin Buchholz  <martin@xemacs.org>
14595
14596         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
14597         (DFC_MALLOC_USE_CONVERTED_DATA):
14598         Add aliasing-safe casts to allow use with char* or unsigned char*
14599         lvalues.
14600
14601         * eldap.c (Fldap_open):
14602         (Fldap_search_basic):
14603         (Fldap_add):
14604         (Fldap_modify):
14605         Make C++-compilable.
14606         Make sure GCPRO'ed variables are initialized.
14607         Use temp variables to avoid repeated calls to Flength.
14608
14609 2000-03-16  Martin Buchholz  <martin@xemacs.org>
14610
14611         * sysfile.h:
14612         Make sure PATH_MAX is always defined.
14613         Include limits.h for PATH_MAX.
14614         Deprecate use of MAXPATHLEN.
14615
14616 2000-03-10  Martin Buchholz  <martin@xemacs.org>
14617
14618         * emacs.c: Add reinit_vars_of_fileio.
14619         * symsinit.h: Add reinit_vars_of_fileio.
14620         * fileio.c (reinit_vars_of_fileio): New.
14621         * fileio.c (Fmake_temp_name):
14622         Initialize temp_name random number from microseconds to make
14623         collisions even less likely.  Initialize always at process startup
14624         time.  (make-temp-name) used to return the same file name twice in
14625         a row when PDUMP.
14626         Random stylistic fiddling.
14627         Comment fixes.
14628
14629 2000-03-20  Andy Piper  <andy@xemacs.org>
14630
14631         * glyphs.c (image_instantiate): allow text glyphs to be
14632         instantiated in the minibuffer window.
14633
14634 2000-03-19  Andy Piper  <andy@xemacs.org>
14635
14636         * glyphs.c (image_instance_hash): be careful about which items we
14637         hash on.
14638
14639         * glyphs-widget.c (tab_control_set_property): record into pending
14640         items rather than the actual items.
14641
14642         * glyphs-x.c (x_update_widget): use pending items to update with.
14643
14644         * glyphs-msw.c (mswindows_tab_control_update): use pending items
14645         to update with.
14646
14647         * glyphs.c (mark_image_instance): mark pending items.
14648
14649         * window.c (Fset_window_configuration): record the buffer.
14650         (Fselect_window): totally revert previous change which breaks many
14651         things.
14652
14653 2000-03-18  Andy Piper  <andy@xemacs.org>
14654
14655         * glyphs-msw.c (mswindows_tab_control_update): force selected
14656         item.
14657
14658         * glyphs.c (image_instantiate): don't allow the minibuffer as a
14659         window domain cache, otherwise we get inconsistencies at
14660         startup. There is something fishy at startup which can lead to the
14661         minibuffer being the selected window when the gutter content is
14662         instantiated.
14663
14664         * gui.c (parse_gui_item_tree_list): add probably unnecessary
14665         gcpros.
14666         (parse_gui_item_tree_children): ditto.
14667         (parse_gui_item_tree_item): ditto.
14668
14669         * glyphs.c (Fupdate_widget_instances): return something.
14670
14671 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
14672
14673         * window.c (Fselect_window): Undo 2000-03-17 change.
14674
14675 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
14676
14677         * postgresql.c (Fpq_setenv): Remove this turkey when linking
14678         against v7.0 libraries.  Insta-coredump city until the postgres
14679         folks fix it.
14680
14681 2000-03-17  Andy Piper  <andy@xemacs.org>
14682
14683         * faces.c (complex_vars_of_faces): don't give the widget face an
14684         inherited background pixmap.
14685
14686         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
14687         selected item.
14688
14689         * event-stream.c (Fdispatch_non_command_events): return something.
14690
14691         * gutter.c (output_gutter): use widget face.
14692         (clear_gutter): ditto.
14693
14694         * NEWS: adjust again.
14695
14696         * window.c (Fselect_window): make sure this runs to completion to
14697         avoid oddities with Fset_window_configuration.
14698         (Fcurrent_window_configuration): in general do not save the
14699         minibuffer as the selected window.
14700
14701         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
14702
14703 2000-03-16  Olivier Galibert  <galibert@pobox.com>
14704
14705         * emacs.c (Frunning_temacs_p): Revert previous patch.
14706         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
14707
14708 2000-03-16  Andy Piper  <andy@xemacs.org>
14709
14710         * glyphs-x.c (x_tab_control_update): if no widget values then
14711         return.
14712
14713         * NEWS: update for new features.
14714
14715         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
14716         synthetic event to the native system.
14717         (reinit_vars_of_event_Xt): set force_event_pending to
14718         emacs_Xt_force_event_pending.
14719
14720         * events.h (struct event_stream): add force_event_pending.
14721
14722         * specifier.c (recompute_one_cached_specifier_in_window): add
14723         comment.
14724
14725         * redisplay.c (redisplay_frame): don't call
14726         update_frame_subwindows. Reset subwindow cachels when
14727         subwindows_changed, removing this was an optimization too far.
14728
14729         * redisplay-output.c (compare_runes): reorganize so that we catch
14730         glyph changes when we want them. Set optimize_output when this
14731         would help layouts.
14732         (redisplay_output_layout): remove frame_really_changed, use
14733         optimize_output instead.
14734
14735         * redisplay-msw.c (mswindows_output_display_block): reset
14736         optimize_output after outputting a glyph.
14737         * redisplay-x.c (x_output_display_block): ditto.
14738         * redisplay-tty.c (tty_output_display_block): ditto.
14739
14740         * gutter.c: (specifier_vars_of_gutter): use new spec changed
14741         functions.
14742         (gutter_specs_changed): do specific gutter positions.
14743         (top_gutter_specs_changed): new function. Only update the
14744         specified gutter specs.
14745         (bottom_gutter_specs_changed): ditto.
14746         (left_gutter_specs_changed): ditto.
14747         (right_gutter_specs_changed): ditto.
14748
14749         * gui.c (gui_item_hash_internal): new function, does a real hash.
14750         (gui_item_id_hash): use it.
14751         (gui_item_hash): hash the eval'ed gui_item.
14752
14753         * gui-x.c (popup_selection_callback): send an eval event to call
14754         Fupdate_widget_instances.
14755
14756         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
14757         to call Fupdate_widget_instances.
14758
14759         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
14760         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
14761
14762         * glyphs.c: (update_frame_subwindows): deleted.
14763         (Fupdate_widget_instances): new function for updating the dirty
14764         state of widgets that might have changed.
14765         (syms_of_glyphs): add Qupdate_widget_instances.
14766         (full_list_hash): hash a list completely.
14767         (image_instance_hash): use it for items and properties.
14768
14769         * frame-msw.c (mswindows_size_frame_internal): remove unused
14770         variable.
14771
14772         * faces.h (struct face_cachel): fix comment.
14773
14774         * event-stream.c (Fdispatch_non_command_events): new
14775         function. Process non-command events, forcing an event cycle
14776         beforehand.
14777         (syms_of_event_stream): declare.
14778         (event_stream_force_event_pending): new function. Force an event
14779         on the native event queue so that an event cycle will occur next
14780         time we check.
14781
14782         * event-msw.c:
14783         (struct ntpipe_shove_stream):
14784         (mswindows_enqueue_dispatch_event):
14785         (mswindows_dequeue_dispatch_event):
14786         (mswindows_cancel_dispatch_event):
14787         (mswindows_pump_outstanding_events):
14788         (mswindows_drain_windows_queue):
14789         (mswindows_handle_paint):
14790         (mswindows_wnd_proc):
14791         (mswindows_key_to_emacs_keysym):
14792         (get_process_input_waitable):
14793         (emacs_mswindows_delete_stream_pair): re-indent file.
14794         (mswindows_need_event): do not process further fds if the windows
14795         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
14796         fixes the 100% cpu problem.
14797         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
14798
14799 2000-03-15  Olivier Galibert  <galibert@pobox.com>
14800
14801         * alloc.h: New.
14802         * dumper.h: New.
14803         * dumper.c: New.
14804
14805         * emacs.c: Moved dump file searching to dumper.c.
14806         (Frunning_temacs_p): Fixed.
14807
14808         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
14809         last_lrecord_type_index_assigned.
14810
14811 2000-02-20  Olivier Galibert  <galibert@pobox.com>
14812
14813         * symsinit.h: Added reinit parameter to init_console_stream
14814         declaration.
14815
14816         * lisp.h: Added file parameter to pdump_load declaration.
14817
14818         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
14819         support.  Added dump file searching.
14820
14821         * config.h.in: Added EMACS_PROGNAME.
14822
14823         * console-stream.c (init_console_stream): Fix reinitialisation
14824         when running from temacs.
14825
14826         * alloc.c (pdump): Add id support.
14827         (pdump_load): Add file parameter and signature/id support.
14828
14829         * Makefile.in.in: Add full pdump support.
14830
14831 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
14832
14833         * postgresql.c: Update documentation to reflect latest code
14834         status.
14835         (print_result): Show tuple counts in printed representation when
14836         appropriate.
14837         (Fpq_put_nbytes): MULE-ize.
14838         (Fpq_get_line_async): Ditto.
14839
14840 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
14841
14842         * postgresql.c (Fpq_lo_import): Fix return value.
14843         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
14844
14845 2000-03-13  Ben Wing  <ben@xemacs.org>
14846
14847         * alloc.c (pdump_load):
14848         Fix compile warning under mswin.
14849
14850 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
14851
14852         * postgresql.c: Mule-ization, bug fixes.
14853         Use PG_CODING to encapsulate coding system name changes.
14854         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
14855         (pg-coding-system): Create.
14856
14857         (Fpq_conn_defaults): Mule-ize.
14858         (Fpq_connectdb): Mule-ize & bug fix.
14859         (Fpq_connect_start): Mule-ize.
14860         (Fpq_set_client_encoding): Mule-ize.
14861         (Fpq_finish): Document `DEAD' connection status.
14862         (Fpq_clear): Ditto.
14863         (Fpq_pgconn): Mule-ize.
14864         (Fpq_exec): Mule-ize & bug fix.
14865         (Fpq_send_query): Ditto.
14866         (Fpq_get_result): Ditto.
14867         (Fpq_res_status): Mule-ize.
14868         (Fpq_result_error_message): Mule-ize.
14869         (Fpq_ntuples): fix comments.
14870         (Fpq_fname): Mule-ize.
14871         (Fpq_fnumber): Mule-ize.
14872         (Fpq_ftype): fix comments.
14873         (Fpq_get_value): Mule-ize.
14874         (Fpq_cmd_status): Ditto.
14875         (Fpq_cmd_tuples): Ditto.
14876         (Fpq_oid_value): Ditto.
14877         (Fpq_notifies): Ditto.
14878         (Fpq_lo_import): Ditto.
14879         (Fpq_lo_export): Ditto.
14880         (Fpq_get_line): Ditto.
14881         (Fpq_put_line): Mule-ize and bug fix.
14882         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
14883
14884 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
14885
14886         * postgresql.c (vars_of_postgresql): Mule-ize.
14887         (Fpq_conn_defaults): Ditto.
14888
14889 2000-03-12  Ben Wing  <ben@xemacs.org>
14890
14891         * alloc.c (Fmake_byte_code):
14892         * alloc.c (debug_string_purity_print):
14893         * alloc.c (pdump_backtrace):
14894         * alloc.c (pdump_get_indirect_count):
14895         * alloc.c (pdump_register_sub):
14896         * alloc.c (pdump_register_object):
14897         * alloc.c (pdump_register_struct):
14898         * alloc.c (pdump_dump_data):
14899         * alloc.c (pdump_reloc_one):
14900         Minor cleanups.
14901
14902         * console-msw.c:
14903         * console-msw.c (GetConsoleHwnd):
14904         * console-msw.c (msw_hide_console):
14905         * console-msw.c (msw_show_console):
14906         * console-msw.c (msw_ensure_console_buffered):
14907         * console-msw.c (msw_output_console_string):
14908         * console-msw.c (console_type_create_mswindows):
14909
14910         a) Added functions to manipulate the console window for use with
14911         shell support.
14912
14913         b) Added support for writing text to the console, which is now
14914         used under Windows when xemacs is not being run non-interactively,
14915         to write text that would otherwise be destined for stdout because
14916         under these circumstances, text written to stdout tends to
14917         disappear and not be seen.
14918
14919         * console-msw.h:
14920         * event-Xt.c:
14921         * event-Xt.c (x_event_to_emacs_event):
14922         * event-Xt.c (describe_event_window):
14923         * events-mod.h (XEMACS_MOD_CONTROL):
14924         * events.c:
14925         * events.c (Fmake_event):
14926         * events.c (character_to_event):
14927         * events.c (event_to_character):
14928         * events.c (format_event_object):
14929         * events.c (Fevent_modifiers):
14930         * events.h:
14931         * events.h (struct key_data):
14932         * events.h (struct button_data):
14933         * events.h (struct misc_user_data):
14934         * frame-x.c (Fcde_start_drag_internal):
14935         * frame-x.c (Foffix_start_drag_internal):
14936         * gpmevent.c (Freceive_gpm_event):
14937         * keymap.c:
14938         * keymap.c (bucky_sym_to_bucky_bit):
14939         * keymap.c (control_meta_superify):
14940         * keymap.c (make_key_description):
14941         * keymap.c (keymap_lookup_directly):
14942         * keymap.c (create_bucky_submap):
14943         * keymap.c (keymap_store):
14944         * keymap.c (define_key_check_and_coerce_keysym):
14945         * keymap.c (define_key_parser):
14946         * keymap.c (define_key_alternate_name):
14947         * keymap.c (Fdefine_key):
14948         * keymap.c (raw_lookup_key_mapper):
14949         * keymap.c (struct map_keymap_unsorted_closure):
14950         * keymap.c (map_keymap_unsorted_mapper):
14951         * keymap.c (map_keymap_sort_predicate):
14952         * keymap.c (map_keymap_sorted):
14953         * keymap.c (accessible_keymaps_mapper_1):
14954         * keymap.c (where_is_recursive_mapper):
14955         * keymap.c (describe_map_mapper):
14956         * keymap.c (describe_map_sort_predicate):
14957         * keymap.c (describe_map):
14958         * keymap.c (complex_vars_of_keymap):
14959         And a number of other files, the key modifier preprocessor
14960         constants that xemacs uses have names that conflict with constants
14961         defined under MS Windows for other purposes, so they were renamed
14962         to begin with the prefix XEMACS_. The variables that hold such
14963         modifiers were changed to consistently be of type int to fix
14964         various compile warnings.
14965
14966         * console.c (complex_vars_of_console):
14967         * device.c:
14968         * device-msw.c:
14969         * device-msw.c (mswindows_finish_init_device):
14970         * device-msw.c (msw_get_workspace_coords):
14971         * device-msw.c (mswindows_device_system_metrics):
14972         and various other files, added support for a new
14973         device property called offset-workspace which returns the position
14974         of the upper left corner of the workspace area and goes along with
14975         the existing size-workspace property.
14976
14977         * dialog-msw.c:
14978         * dialog-msw.c (push_bufbyte_string_as_unicode):
14979         * dialog-msw.c (mswindows_popup_dialog_box):
14980         Added support for XEmacs-style accelerator specifications in
14981         button text.  Note: I didn't add support for this under X Windows,
14982         and somebody needs to do this.
14983
14984         * dialog.c:
14985         * dialog.c (Fpopup_dialog_box):
14986         Documented the support for accelerators that was just mentioned.
14987
14988         editfns.c (get_home_directory): Changed behavior under Windows
14989         when HOME not defined; former behavior was irretrievably broken.
14990
14991         * emacs.c:
14992         * emacs.c (main_1):
14993         * emacs.c (main):
14994         * minibuf.c (clear_echo_area_internal):
14995         * minibuf.c (echo_area_append):
14996         * print.c:
14997         * print.c (std_handle_out_external):
14998         * print.c (std_handle_out_va):
14999         * print.c (fatal):
15000         * print.c (write_string_to_stdio_stream):
15001         * print.c (output_string):
15002         * print.c (debug_print):
15003         * print.c (debug_backtrace):
15004         * print.c (debug_short_backtrace):
15005         Cleaned up the code that prints text to stdout so that this can be
15006         changed to output into a console window instead under MS Windows,
15007         as described above.
15008
15009         * eval.c:
15010         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
15011         * eval.c (internal_catch):
15012         * eval.c (unwind_to_catch):
15013         * eval.c (throw_or_bomb_out):
15014         * eval.c (condition_case_1):
15015         * eval.c (signal_1):
15016         * eval.c (check_error_state_sanity):
15017         * eval.c (call_with_suspended_errors_1):
15018         * eval.c (call_with_suspended_errors):
15019         * eval.c (reinit_vars_of_eval):
15020         Added code to catch throw loops and check for a pesky bug that may
15021         be gone now.
15022
15023         * event-msw.c:
15024         * event-msw.c (key_needs_default_processing_p):
15025         * event-msw.c (mswindows_wnd_proc):
15026         * event-msw.c (mswindows_modifier_state):
15027         * event-msw.c (emacs_mswindows_quit_p):
15028         * event-msw.c (vars_of_event_mswindows):
15029         a) Added support for using the alt key to select menu items as is
15030         standard under MS Windows.  This is controlled using the variable
15031         menu-accelerator-enabled, just like under X Windows.  There is an
15032         option on the options menu to turn this support on.  I really
15033         think that it should be on by default under Windows, but I'm not
15034         going to make this change yet.
15035
15036         b)  Added support for dynamic display size changes under Windows.
15037
15038         * event-stream.c:
15039         * event-stream.c (maybe_echo_keys):
15040         * event-stream.c (Fnext_event):
15041         * event-stream.c (command_builder_find_leaf):
15042         * event-stream.c (lookup_command_event):
15043         * event-stream.c (execute_command_event):
15044         * event-stream.c (pre_command_hook):
15045         * event-stream.c (post_command_hook):
15046         * event-stream.c (syms_of_event_stream):
15047         * event-stream.c (vars_of_event_stream):
15048         * event-stream.c (complex_vars_of_event_stream):
15049         * events.h (struct command_builder):
15050
15051         a) Tried to clean up a little bit the horribly written x-specific
15052         accelerator code that crept into this file.  I moved this code
15053         into menubar-x.c where it belongs. I also needed to move the
15054         command builder structure into the file events.h because it is
15055         accessed directly by this accelerator code.  What I didn't do, but
15056         which should be done at some point, is to properly abstract this
15057         code using device methods instead of the kludgy way that it
15058         currently hooks into the event code.
15059
15060         b) Added the lisp variables this-command-properties and
15061         last-command- properties, which should be used to synchronize two
15062         adjacent commands in preference to playing games with the variable
15063         this-command, which is typically what happens.
15064
15065         c) Added some slightly nasty code to hook into the lisp support
15066         for shifted- motion-key selection.  This is actually necessary for
15067         somewhat complicated reasons, which are described in
15068         simple.el. (NB: I think the proper thing would be to have the code
15069         that calls the pre and post command hooks also call out to generic
15070         lisp functions in simple.el, where all built-in stuff could be
15071         added.  I will think about this more.)
15072
15073         * event-unixoid.c (poll_fds_for_input):
15074         * lread.c (readchar):
15075         * redisplay-tty.c (tty_clear_frame):
15076         * redisplay-x.c (x_get_gc):
15077         * signal.c (interrupt_signal):
15078         And a whole bunch of other files: fixed up places that printed
15079         directly to stderr to instead call the function stderr_out so that
15080         the changes I made under Windows work correctly.
15081
15082         * filemode.c (mode_string):
15083         Warning fixes.
15084
15085         * frame-msw.c:
15086         * frame-msw.c (mswindows_size_frame_internal):
15087         Fixed the computation of frame size and position to keep the frame
15088         within the workspace area, rather than within the physical
15089         dimensions of the screen, so that the frame doesn't overlap window
15090         manager decorations, such as the start menu and toolbar, typically
15091         at the bottom of the screen.
15092
15093         * frame.c (vars_of_frame):
15094         Changed the default frame title format under MS Windows to consist
15095         of buffername-XEmacs, which is standard under MS Windows.  I think
15096         it might be a good idea to change this everywhere because I think
15097         it is superior to the current frame title format, but this is the
15098         kind of change that is likely to cause some people to get annoyed,
15099         so I'm not making it.
15100
15101         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
15102
15103         * gui-msw.c (mswindows_handle_gui_wm_command):
15104         Fixed compile warnings.
15105
15106         * gui-x.c:
15107         * gui-x.c (strdup_and_add_accel):
15108         * gui-x.c (button_item_to_widget_value):
15109         * gui-x.h:
15110         Added code to automatically put an accelerator onto the beginning
15111         of menu items that don't have one as is now the standard, and is
15112         described more later.  Also fixed things so that the menu item
15113         name can be an evaluated expression, again a new standard.
15114
15115         * gui.c:
15116         * gui.c (gui_item_add_keyval_pair):
15117         * gui.c (make_gui_item_from_keywords_internal):
15118         * gui.c (gui_add_item_keywords_to_plist):
15119         * gui.c (gui_item_accelerator):
15120         * gui.c (gui_name_accelerator):
15121         * gui.c (gui_item_included_p):
15122         * gui.c (gui_item_display_flush_left):
15123         * gui.c (gui_item_display_flush_right):
15124         * gui.c (parse_gui_item_tree_item):
15125         * gui.c (parse_gui_item_tree_children):
15126         * gui.c (parse_gui_item_tree_list):
15127         Mule-ized.  Cleanup.  GCPRO addition.
15128
15129         * line-number.c (buffer_line_number):
15130         * lisp.h:
15131         * lisp.h (EMACS_INT_MAX):
15132         Added the manifest constant EMACS_INT_MIN corresponding to the
15133         existing constant EMACS_INT_MAX.  This is partially to fix compile
15134         warnings under Windows, and partly for cleanliness.
15135
15136         * menubar-msw.c:
15137         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
15138         * menubar-msw.c (msw_translate_menu_or_dialog_item):
15139         * menubar-msw.c (displayable_menu_item):
15140         * menubar-msw.c (populate_menu_add_item):
15141         * menubar-msw.c (populate_or_checksum_helper):
15142         * menubar-msw.c (populate_menu):
15143         * menubar-msw.c (update_frame_menubar_maybe):
15144         * menubar-msw.c (prune_menubar):
15145         * menubar-msw.c (msw_char_is_accelerator):
15146         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
15147         * menubar-msw.c (mswindows_handle_wm_command):
15148         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
15149         * menubar-msw.c (mswindows_handle_wm_initmenu):
15150         * menubar-msw.c (mswindows_update_frame_menubars):
15151         * menubar-msw.c (mswindows_free_frame_menubars):
15152         * menubar-msw.c (mswindows_popup_menu):
15153         Fixed a bug in handling accelerators where an extra character
15154         would be displayed in the menu item.  Also generalized the
15155         function displayable_menu_item because it is now used by the
15156         dialog box code as well.  And finally, added code in the functions
15157         that create the menubar to extract a list of accelerators for the
15158         top level menubar, which is used in the event code to determine
15159         whether a particular alt-key combination should be used to invoke
15160         a menu item, or should be passed through to access the standard
15161         XEmacs keymap binding for this key combination.
15162
15163         Much needed GCPROing.
15164
15165         * menubar-x.c:
15166         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
15167         * menubar-x.c (menu_item_descriptor_to_widget_value):
15168         * menubar-x.c (restore_in_menu_callback):
15169         * menubar-x.c (x_popup_menu):
15170         * menubar-x.c (menu_move_up):
15171         * menubar-x.c (menu_move_down):
15172         * menubar-x.c (menu_move_left):
15173         * menubar-x.c (menu_move_right):
15174         * menubar-x.c (menu_select_item):
15175         * menubar-x.c (command_builder_operate_menu_accelerator):
15176         * menubar-x.c (menu_accelerator_junk_on_error):
15177         * menubar-x.c (command_builder_find_menu_accelerator):
15178         * menubar-x.c (Faccelerate_menu):
15179         * menubar.h:
15180         Moved a whole bunch of code here that was previously in
15181         event-stream.c as described above.  There is also code connected
15182         to the new standard of adding an accelerator to the beginning of
15183         menu items that don't have one as described above and below.
15184
15185         * menubar.c:
15186         * menubar.c (menu_parse_submenu_keywords):
15187         * menubar.c (Fmenu_find_real_submenu):
15188         * menubar.c (Fnormalize_menu_item_name):
15189         * menubar.c (syms_of_menubar):
15190         * menubar.c (vars_of_menubar):
15191         * menubar.c (complex_vars_of_menubar):
15192
15193         a) Cleaned up a bunch of documentation and improved it.
15194
15195         b) XEmacs now automatically adds an accelerator onto the beginning
15196         of any menu items that don't have one.  I did this because there
15197         will inevitably be some menu items on the main menubar that don't
15198         have accelerators on them because the package that adds that
15199         particular menu item hasn't yet been fixed up to have accelerators
15200         in them and it looked rather strange to have some items with and
15201         some items without accelerators, especially since even in items
15202         without accelerators, you can, at least under windows, still
15203         access the item through an accelerator corresponding to the first
15204         character in the item's name.  If people don't like this behavior,
15205         I can add a variable to turn it off optionally, but I'm not sure
15206         this is a good idea because we really do need to have accelerators
15207         on all of the menu items, and if a package doesn't like the
15208         accelerators being put on the first character, then it should put
15209         the accelerators where they belong.
15210
15211         c) I made a behavior change, which is that the descriptor that
15212         specifies the text of the menu item, which formerly was just a
15213         string, can now also be an evaluated expression.  This makes this
15214         descriptor parallel with all of the others, which could also be
15215         evaluated expressions.  This also obviates the need for the
15216         keyword :label, which was previously listed in the documentation
15217         as unimplemented, and which was for the same purpose.
15218
15219         d) GCPROing.
15220
15221         * ntproc.c:
15222         * ntproc.c (new_child):
15223         * ntproc.c (sys_spawnve):
15224         * ntproc.c (find_child_console):
15225         * ntproc.c (sys_kill):
15226         Fixed compile warnings.  By the way, this file should really go
15227         away entirely, and this will happen as soon as Kirill makes his
15228         final round of process cleanups, which affect the function
15229         call-process.
15230
15231         * process-nt.c:
15232         * process-nt.c (struct nt_process_data):
15233         * process-nt.c (find_process_from_pid):
15234         * process-nt.c (send_signal_the_nt_way):
15235         * process-nt.c (enable_child_signals):
15236         * process-nt.c (find_child_console):
15237         * process-nt.c (send_signal_the_95_way):
15238         * process-nt.c (nt_finalize_process_data):
15239         * process-nt.c (ensure_console_window_exists):
15240         * process-nt.c (nt_create_process):
15241         * process-nt.c (nt_kill_child_process):
15242         * process-nt.c (nt_kill_process_by_pid):
15243         * process-nt.c (nt_open_network_stream):
15244         * process-nt.c (vars_of_process_nt):
15245         Copied over code from Emacs 20.5 to correctly send signals to sub-
15246         processes under Windows 95.  Also added code to automatically
15247         create and hide console window when a sub-process is created under
15248         Windows 95, which obviates the need for the separate runemacs.exe
15249         executable, and finally implemented some variables that were
15250         implemented in Emacs 20.5, but previously not in XEmacs.  These
15251         include mswindows- start-process-share-console and
15252         mswindows-start-process-inherit-error-mode. (Both of these only
15253         apply to Windows 95.)
15254
15255         * regex.c (regex_compile): Fixed a compile warning.
15256
15257         * select-msw.c:
15258         * select-msw.c (mswindows_own_selection):
15259         * select-msw.c (mswindows_get_foreign_selection):
15260         * select-msw.c (mswindows_disown_selection):
15261         * select-msw.c (console_type_create_select_mswindows):
15262         * select-msw.c (syms_of_select_mswindows):
15263         Cleaned up the file and implemented the device method
15264         selection_exists_p, which had accidentally been left out.  Also
15265         removed four lisp functions that were remnants from before the
15266         time when the selection code was properly device abstracted.
15267         These functions are no longer needed because there are generic
15268         equivalents, and because they were added recently and don't exist
15269         in FSF Emacs, I don't think there's any problem with just deleting
15270         them.
15271
15272         * sysdep.c:
15273         * sysdep.c (sys_subshell):
15274         Fixed a compile warning, although in this case there's probably
15275         something wrong with this code, and it ought to be looked into
15276         more thoroughly by somebody who understands it.
15277
15278         * window.c:
15279         * window.c (Fwindow_text_area_height):
15280         * window.c (Fwindow_width):
15281         * window.c (Fwindow_full_width):
15282         * window.c (Fwindow_pixel_width):
15283         * window.c (debug_print_window):
15284         * window.c (syms_of_window):
15285         Added functions window-text-area-height and window-full-width,
15286         which are functions for returning various width and height
15287         characteristics of a window. (One of these functions is necessary
15288         for making the file dialog box work correctly, and the other one
15289         was added for completeness.)  Also added a table to the
15290         documentation for window-height which describes the entire scheme
15291         for accessing width and height characteristics of a window.
15292
15293 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15294
15295         * nt.c (fstat): Added a comment for another problem with
15296         non-encapsulated [f]stat(), reported by Adrian Aichner
15297         <aichner@ecf.teradyne.com>.
15298
15299 2000-03-11  Andy Piper  <andy@xemacs.org>
15300
15301         * window.c (make_dummy_parent): initialize subwindow instance
15302         cache.
15303         (Fset_window_configuration): zero extent_modiff.
15304
15305 2000-03-10  Andy Piper  <andy@xemacs.org>
15306
15307         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
15308         more changes can be triggered.
15309         (Fredisplay_frame): ditto.
15310         (Fredraw_device): ditto.
15311         (Fredisplay_device): ditto.
15312         (redisplay_frame): make non-static.
15313         (redisplay_frame): call update_frame_gutter_geometry outside of
15314         display proper.
15315
15316         * gutter.h: declare update_frame_gutter_geometry.
15317
15318         * redisplay.h: declare redisplay_frame.
15319
15320         * gutter.c (update_frame_gutter_geometry): move geometry changes
15321         in update_frame_gutters here. Geometry changes can only occur
15322         outside of redisplay.
15323         (update_frame_gutters): remove geometry change code.
15324         (Fredisplay_gutter_area): make sure that we are in display when we
15325         update and that we have flushed any size changes.
15326
15327 2000-03-11  Andy Piper  <andy@xemacs.org>
15328
15329         * alloc.c (pdump_dump_data): remove i & count shadows.
15330
15331 2000-02-27  Mike Alexander  <mta@arbortext.com>
15332
15333         * sysdep.h: Declare pdump_read_file
15334
15335         * sysdep.c (pdump_read_file): New function
15336
15337         * alloc.c (pdump_load): Call pdump_read_file to get the portable
15338         dump data
15339
15340 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
15341
15342         * lrecord.h: add `lrecord_type_pgsetenv'.
15343
15344 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
15345
15346         * symsinit.h: declare (vars|syms)_of* functions.
15347         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
15348
15349 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
15350
15351         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
15352
15353         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
15354         GCCs.
15355
15356         * emacs.c (main_1): Call postgres initialization code.
15357
15358         * postgresql.h: New file.  PostgreSQL RDBMS support.
15359         * postgresql.c: New file.
15360
15361 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
15362
15363         * redisplay-output.c (redisplay_output_display_block): Disable
15364         redundant code.
15365
15366 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
15367
15368         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
15369         (Fcanna_henkan_next): Ditto.
15370         (Fcanna_bunsetu_henkou): Ditto.
15371         (Fcanna_henkan_kakutei): Ditto.
15372         (Fcanna_henkan_end): Ditto.
15373         (Fcanna_henkan_quit): Ditto.
15374         (Fcanna_henkan_next): Set retun value correctly.
15375         (c2mu): Use unsigned char instead of signed char.
15376
15377 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
15378
15379         * emacs.c (main_1): Always call syms_of_gui.
15380         * inline.c: include gui.h
15381
15382 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
15383
15384         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
15385         converted to Lisp_Object.
15386         (Qtop_bottom): New variable.
15387         (syms_of_redisplay): Initialize it.
15388         * redisplay.h (Vvisible_bell): Ditto.
15389         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
15390         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
15391         only flash top and bottom.
15392
15393 2000-03-08  Andy Piper  <andy@xemacs.org>
15394
15395         * buffer.c (Frename_buffer): record new buffer name the right way.
15396
15397 2000-03-08  Andy Piper  <andy@xemacs.org>
15398
15399         * glyphs.c (update_subwindow): increase hash depth so that widget
15400         items get picked up properly.
15401
15402         * redisplay-output.c (compare_runes): increase hash depth so that
15403         widget items get picked up properly.
15404
15405 2000-03-08  Andy Piper  <andy@xemacs.org>
15406
15407         * gutter.c (output_gutter): add some debug.
15408
15409         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
15410         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
15411         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
15412
15413         * redisplay-output.c (compare_runes): use display_hash to
15414         determine if glyphs really are not the same.
15415
15416         * glyphs.c (update_subwindow): check display_hash to see if
15417         anything really needs to be updated. If not then do
15418         nothing. Record the display_hash after updating.
15419         (image_instance_equal): compare the image_instance face also.
15420
15421 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
15422
15423         * redisplay.h: Fix comment style.
15424
15425 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15426
15427         * consle-msw.h (struct mswindows_frame):
15428         Added new member paint_pending to indicate whether a WM_PAINT
15429         magic event has been queued for this frame.
15430
15431         * event-msw.c (mswindows_drain_windows_queue):
15432         Don't queue a WM_PAINT magic event if one is already queued.
15433         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
15434
15435         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
15436
15437 2000-03-07  Didier Verna  <didier@xemacs.org>
15438
15439         * dired.c: #include `regex.h' after `sysfile.h'.
15440
15441 2000-03-06  Martin Buchholz  <martin@xemacs.org>
15442
15443         * sound.c (init_nas_sound): Fix compiler warning.
15444
15445         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
15446         (FREE_STRUCT_P):
15447         (MARK_STRUCT_AS_FREE):
15448         (MARK_STRUCT_AS_NOT_FREE):
15449         Make `gcc -fstrict-aliasing' work properly.
15450
15451 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15452
15453         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
15454         (mswindows_delete_device): Call CoUnnitialize().
15455
15456         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
15457
15458 2000-02-25    <CraigL@DyCon.com>
15459
15460         * process-nt.c: MinGW now has <shellapi.h>, but still needs
15461         <errno.h>.
15462
15463         * sysdep.c: This extern declaration for environ prevents MinGW
15464         from finding the variable in CRTDLL.DLL.
15465
15466         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
15467         windows headers.
15468         (SHGFI_EXETYPE): ..
15469         (WM_MOUSEWHEEL): ..
15470         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
15471         definitions.
15472         (MMRESULT): Removed, now defined in cygwin's windows headers.
15473         (TIMECAPS): ..
15474         (uid_t,gid_t,pid_t,ssize_t): ..
15475         (_timeb): Removed, MinGW defines both _timeb and timeb.
15476         (HAVE_H_ERRNO): Added.
15477         (HAVE_TZNAME): Added, configure is not detecting this.
15478
15479 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
15480
15481         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
15482         * syntax.c (syntax_match): Use it.
15483
15484         * cmds.c: Import auto-fill-chars from FSF Emacs.
15485         (Vauto_fill_chars): New variables.
15486         (internal_self_insert): Check Vauto_fill_chars.
15487         (vars_of_cmds):
15488         Declare auto-fill-chars as a Lisp variable and initialize it.
15489
15490 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15491
15492         * fileio.c (Fmake_symbolic_link):
15493         (Ffile_symlink_p):
15494         Run handlers even if local machine doesn't have symlinks.
15495
15496 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15497
15498         * event-msw.c (mswindows_drain_windows_queue):
15499         Don't generate paint magic events for non-XEmacs frames.
15500
15501 2000-03-05  Andy Piper  <andy@xemacs.org>
15502
15503         * redisplay.c (redisplay_frame): generate_displayable_area and
15504         friends assumes that we are not in GC, we therefore have to make
15505         sure that this doesn't happen.
15506
15507         * gutter.c (calculate_gutter_size): generate_displayable_area
15508         assumes that we are not in GC, we therefore have to make sure that
15509         this doesn't happen.
15510
15511 2000-03-05  Martin Buchholz  <martin@xemacs.org>
15512
15513         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
15514
15515 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
15516
15517         * redisplay.c (regenerate_window): Make sure we set a sane value
15518         for end_pos even if we jump out of the loop.
15519         (regenerate_window): Answer Ben's question :-).
15520         (start_end_of_last_line): Add may_error argument.
15521         (start_of_last_line):
15522         (end_of_last_line): Pass may_error = 0.
15523         (end_of_last_line_may_error): New function.
15524         (pixel_to_glyph_translation): Use it, so we don't crash in
15525         event_to_glyph.
15526
15527 2000-03-04  Andy Piper  <andy@xemacs.org>
15528
15529         * window.h (struct window): add gutter_extent_modiff.
15530
15531         * window.c (allocate_window): zero out gutter_extent_modiff.
15532
15533         * redisplay.h: declare sync_display_line_structs.
15534
15535         * redisplay.c (add_glyph_rune): add a better comment.
15536
15537         * redisplay-output.c (sync_display_line_structs): made non-static.
15538         (compare_runes): remove unneccesary glyph cachel access.
15539
15540         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
15541
15542         * gutter.c (output_gutter): don't output the gutter if extent
15543         changes only involve extents in buffers. use 4 sets of display
15544         lines.
15545         (gutter_extent_signal_changed_region_maybe): new function. Mark
15546         extents in gutters as changed.
15547         (update_frame_gutters): use 4 sets of display lines.
15548         (reset_gutter_display_lines): ditto.
15549         (free_frame_gutters): ditto.
15550         (redraw_exposed_gutter): force output of gutters.
15551
15552         * frame.h (struct frame): add 4 sets of gutter display lines.
15553
15554         * extents.c: (extent_changed_for_redisplay): signal changes to
15555         extents in strings in the gutter as well as extents in buffers.
15556
15557 2000-03-02  Andy Piper  <andy@xemacs.org>
15558
15559         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
15560
15561         * frame.c (Fmake_frame): make sure the gutters get initialized
15562         after the frame is visible.
15563         (set_frame_selected_window): re-arrange compilation macros a
15564         little.
15565         (change_frame_size_1): mark gutters changed.
15566
15567         * device.c (Fset_device_class): mark gutters changed.
15568
15569 2000-03-01  Andy Piper  <andy@xemacs.org>
15570
15571         * window.c (window_top_frame_gutter_height): deleted.
15572         (window_bottom_frame_gutter_height): ditto.
15573         (window_left_frame_gutter_height): ditto.
15574         (window_right_frame_gutter_height): ditto.
15575         (window_top_gutter_height): don't use them.
15576         (window_bottom_gutter_height): ditto.
15577         (window_left_gutter_width): ditto.
15578         (window_right_gutter_width): ditto.
15579         (Fsplit_window): ditto.
15580         (Fwindow_pixel_edges): don't use border dimensions here.
15581
15582         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
15583         (update_scrollbar_instance): ditto.
15584
15585         * redisplay.c (generate_modeline): don't take gutters into account.
15586         (generate_modeline): ditto.
15587         (redisplay_frame): small gutter display optimization.
15588
15589         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
15590
15591         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
15592         gutters into account.
15593
15594         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
15595         for window position and type.
15596
15597         * gutter.c (get_gutter_coords): fix for frame gutters.
15598         (update_frame_gutters): update frame geometry if the gutters have
15599         changed.
15600         (init_frame_gutters): record current gutter geometries.
15601
15602         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
15603         var.
15604         (mswindows_widget_instantiate): ditto.
15605
15606         * frame.h (struct frame): add current_gutter_bounds.
15607
15608         * frame.c (change_frame_size_1): position window and minibuffer
15609         appropriately taking into account the frame gutters.
15610
15611         * frame-x.c: (x_initialize_frame_size): take into account the
15612         frame gutters.
15613
15614 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
15615
15616         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
15617
15618 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
15619
15620         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
15621
15622 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15623
15624         * file-coding.c (reset_decoding_stream): Clear previous
15625         detection state when autodetect.
15626
15627 2000-02-29  Didier Verna  <didier@xemacs.org>
15628
15629         * extents.c (set_extent_glyph_1): don't require extents to be
15630         attached.
15631
15632 2000-02-27  Andy Piper  <andy@xemacs.org>
15633
15634         * gutter.c (Fset_default_gutter_position): don't default left and
15635         right gutter visibility to t.
15636         (Fset_default_gutter_position): run
15637         default-gutter-position-changed-hook.
15638         (syms_of_gutter): add default-gutter-position-changed-hook.
15639
15640 2000-02-26  Andy Piper  <andy@xemacs.org>
15641
15642         * specifier.c (Fmake_specifier): add gutter references.
15643
15644         * gutter.h (RAW_WINDOW_GUTTER): new macro.
15645
15646         * lisp.h: declare Fvalid_plist_p.
15647
15648         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
15649         as changed.
15650         (default_gutter_visible_p_changed_in_window): invalidate gutter as
15651         well as its visibility so that it gets reconstructed.
15652         (construct_window_gutter_spec): new function. Construct a string
15653         to be displayed in the gutter from a plist of strings. Take care
15654         to only use elements that are declared as visible.
15655         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
15656         WINDOW_GUTTER.
15657         (gutter_validate): allow plists of strings in the specifier.
15658         (gutter_specs_changed): construct the real_gutter from the gutter
15659         specs using construct_window_gutter_spec.
15660         (gutter_visible_validate): gutter-visible is a new specifier type.
15661         (Fgutter_visible_specifier_p): new function for the new specifier.
15662         (syms_of_gutter): declare gutter-visible and
15663         Fgutter_visible_specifier_p.
15664         (specifier_type_create_gutter): intitalize new gutter-visible
15665         specifier.
15666         (reinit_specifier_type_create_gutter): ditto.
15667         (specifier_vars_of_gutter): use new specifier type for gutter
15668         visibility.
15669         (init_frame_gutters): construct real_gutter correctly.
15670         (Fgutter_specifier_p): beef up documentation.
15671         (Fgutter_size_specifier_p): ditto.
15672
15673         * winslots.h: add real_gutter slots.
15674
15675 2000-02-25  Andy Piper  <andy@xemacs.org>
15676
15677         * device-msw.c: Be kind to older cygwin versions. From Raymond
15678         Toy <toy@rtp.ericsson.se>.
15679
15680         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
15681         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
15682
15683 2000-02-25  Martin Buchholz  <martin@xemacs.org>
15684
15685         * elhash.c (MARK_OBJ): Practice macro hygiene.
15686
15687 2000-02-24  Martin Buchholz  <martin@xemacs.org>
15688
15689         * miscplay.c: s/__inline__/inline/g;
15690         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
15691         (get_device_compdc): INLINE ==> static inline
15692         * *.[ch]: Change INLINE to INLINE_HEADER globally.
15693         find -name '*.h' | \
15694         xargs global-replace \
15695         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
15696
15697 2000-02-25  Andy Piper  <andy@xemacs.org>
15698
15699         * window.c (window_top_frame_gutter_height): new function.
15700         (window_top_window_gutter_height): ditto.
15701         (window_top_gutter_height): use them.
15702         (window_bottom_frame_gutter_height): new function.
15703         (window_bottom_window_gutter_height): ditto.
15704         (window_bottom_gutter_height): use them.
15705         (window_left_window_gutter_width): new function.
15706         (window_left_frame_gutter_width): ditto.
15707         (window_left_gutter_width): use them.
15708         (window_right_window_gutter_width): new function.
15709         (window_right_frame_gutter_width): ditto.
15710         (window_right_gutter_width): use them.
15711         (window_pixel_height): new function. calulate window pixel height
15712         with frame gutter involvement.
15713         (Fsplit_window): calculate new sizes taking frame gutters into
15714         account.
15715         (window_char_height_to_pixel_height): don't include frame gutters.
15716         (window_char_height): use window_pixel_height.
15717         (window_pixheight): rename from window_pixel_height.
15718         (change_window_height): use it.
15719         (window_pixel_height_to_char_height): don't include frame gutters.
15720         (window_char_width_to_pixel_width): ditto.
15721
15722 2000-02-25  Andy Piper  <andy@xemacs.org>
15723
15724         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
15725         if it is.
15726
15727 2000-02-24  Martin Buchholz  <martin@xemacs.org>
15728
15729         * alloc.c (staticpro):
15730         (staticpro_nodump):
15731         (dumpstruct):
15732         (dumpopaque):
15733         (pdump_wire):
15734         (pdump_wire_list):
15735         (compact_string_chars):
15736         (pdump_dump_wired):
15737         Convert:  if (foo) abort();  ==>  assert (! foo);
15738
15739         * eldap.c (Fldap_search_basic):
15740         (Fldap_add):
15741         (Fldap_modify):
15742         (Fldap_delete):
15743         Fix compiler warnings, and possible crashes if (random) return
15744         value were to be used.
15745
15746 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15747
15748         * device-msw.c: Workaround ResetDC failure.
15749
15750         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
15751         applying a devmode.
15752
15753         * redisplay-msw.c (get_frame_dc): Added start_page_p.
15754         (mswindows_text_width): Do not start printer page.
15755
15756         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
15757
15758         * glyphs-msw.c: Added image methods to msprinter console and
15759         msprinter-specific image instantiation.
15760
15761 2000-02-20  Mike Alexander  <mta@arbortext.com>
15762
15763         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
15764         to avoid crashes when selection-sets-clipboard is on
15765         (mswindows_own_selection): ditto
15766
15767 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15768
15769         * glyphs-msw.c:
15770         * redisplay-msw.c (get_frame_dc):
15771         (get_frame_compdc):
15772         * console-msw.h:
15773         * device-msw.c (mswindows_init_device):
15774         (mswindows_delete_device):
15775         (msprinter_init_device):
15776         (msprinter_delete_device):
15777         * frame-msw.c (mswindows_init_frame_1):
15778         (mswindows_delete_frame):
15779         (msprinter_init_frame_3):
15780         (msprinter_delete_frame): Move compatible DC to device object from
15781         frame object, for both mswindows and msprinter. Only one at a time
15782         is needed, it is a real waste to have one per frame!
15783
15784 2000-02-23  Andy Piper  <andy@xemacs.org>
15785
15786         * glyphs.c: add dynamic width and height elements.
15787         (image_instance_equal): ditto.
15788
15789         * glyphs-widget.c (widget_query_geometry): calculate width and
15790         height dynamically if required.
15791         (initialize_widget_image_instance): initialize dynamic dimensions.
15792         (widget_instantiate): pick-up dynamic dimensions.
15793
15794         * glyphs.h (struct Lisp_Image_Instance): add width and height for
15795         dynamic determination. Add appropriate macros.
15796
15797         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
15798         dimensions safe.
15799         (WINDOW_GUTTER_SIZE): ditto.
15800         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
15801
15802         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
15803         inline.
15804         (get_frame_dc): ditto.
15805
15806         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
15807         here.
15808
15809 2000-02-23  Martin Buchholz <martin@xemacs.org>
15810
15811         * XEmacs 21.2.31 is released.
15812
15813 2000-02-22  Ben Wing <ben@xemacs.org>
15814
15815         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
15816
15817 2000-02-22  Andy Piper  <andy@xemacs.org>
15818
15819         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
15820
15821 2000-02-21  Mike Sperber <mike@xemacs.org>
15822
15823         * .dbxrc:
15824         * .gdbinit:
15825         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
15826         variables.
15827
15828 2000-02-21  Mike Sperber <mike@xemacs.org>
15829
15830         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
15831
15832 2000-02-21  Martin Buchholz <martin@xemacs.org>
15833
15834         * XEmacs 21.2.30 is released.
15835
15836 2000-02-20  Martin Buchholz  <martin@xemacs.org>
15837
15838         Performance hacking.
15839         * *.c (syms_of_*):
15840         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
15841         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
15842         * emacs.c (main_1):
15843         * lisp.h (DEFUN):
15844         * console.c (DEFVAR_CONSOLE_LOCAL_1):
15845         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
15846         * symeval.h (DEFVAR_SYMVAL_FWD):
15847         * symbols.c (guts_of_unbound_marker):
15848         Make all c_readonly objects also lisp_readonly and marked for life.
15849         * lrecord.h (struct lrecord_implementation):
15850         Document flags better.
15851         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
15852         * lrecord.h (DECLARE_LRECORD):
15853         * lrecord.h (XSETRECORD):
15854         * lrecord.h (RECORDP):
15855         * lrecord.h (RECORD_TYPEP):
15856         * lrecord.h (RECORD_MARKER): New.
15857         * lrecord.h (error_check_*):
15858         * lrecord.h (CONCHECK_NONRECORD):
15859         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
15860         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
15861         * lrecord.h (set_lheader_implementation):
15862         * lrecord.h (enum lrecord_type): New.
15863         * symeval.h (SYMBOL_VALUE_MAGIC_P):
15864         * alloc.c (disksave_object_finalization_1):
15865         * alloc.c (mark_object):
15866         * alloc.c (lrecord_type_index):
15867         * alloc.c (tick_lcrecord_stats):
15868         * alloc.c (Fgarbage_collect):
15869         * alloc.c (init_alloc_once_early):
15870         * alloc.c (pdump_load):
15871         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
15872         * alloc.c (lrecord_type_index): Delete.
15873         Make lisp object type indexes be constant.
15874           Makes (byte-compile) 5% faster.
15875         Put all marker functions into their own array.
15876           Makes (garbage-collect) 5% faster.
15877         Optimize SYMBOL_VALUE_MAGIC_P.
15878           Makes (byte-compile) 2-3% faster.
15879         * config.h.in (gc_checking_assert): New.
15880         * alloc.c: Use gc_checking_assert().
15881         * .dbxrc: Make compatible with new object type implementation.
15882         * .gdbinit: Make compatible with new object type implementation.
15883         * alloc.c: Delete all symbols defined only for debugging, such as
15884         Lisp_Type_Vector and lrecord_charset.
15885
15886 2000-02-21  Andy Piper  <andy@xemacs.org>
15887
15888         * gui-msw.c (Fmswindows_shell_execute): fix file location
15889         problems.
15890
15891         * buffer.c (Fkill_buffer): remove buffer from alist buffer
15892         unshowing so that set_window_buffer doesn't undo
15893         kill_buffer_hook's hard work.
15894
15895         * glyphs-widget.c (tab_control_query_geometry): don't count the
15896         first item when calculating geometry.
15897
15898         * glyphs.c (map_subwindow): remove redundant code.
15899         (update_frame_subwindows): be more circumspect about when to
15900         update subwindows.
15901
15902         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
15903         when items haven't changed. Update faces if faces have changed as
15904         well as just the widget face.
15905         (x_tab_control_update): Update faces if faces have changed as well
15906         as just the widget face.
15907
15908 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15909
15910         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
15911         registration.
15912         (build_syscolor_string): Use mswindows_color_to_string to try to
15913         get a named color.
15914         (mswindows_device_system_metrics): Reverse the foreground and
15915         background colors so that they match the documentation.
15916
15917         * objects-msw.c: (mswindows_X_color_map): tweak some values so
15918         they match the default Windows palette.
15919         (mswindows_color_to_string): New function.
15920
15921 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15922
15923         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
15924
15925 2000-02-18  Olivier Galibert  <galibert@pobox.com>
15926
15927         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
15928         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
15929
15930         * symbols.c (init_symbols_once_early): Removed obsolete
15931         DATA_SEG_BITS related kludge.
15932         (defvar_magic): Ditto.
15933
15934         * malloc.c: Removed obsolete DATA_SEG_BITS
15935         * ralloc.c: Ditto.
15936         * mem-limits.h: Ditto.
15937
15938         * Makefile.in.in: Removed obsolete HAVE_SHM
15939         * emacs.c: Ditto.
15940
15941 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15942
15943         *  device-msw.c (mswindows_delete_device): Free DDE string
15944         handles.
15945
15946 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15947
15948         * keymap.c (get_keyelt):
15949         * unexnt.c (unexec):
15950         * vm-limit.c (memory_warnings):
15951         * ntheap.c (recreate_heap):
15952         * ntheap.h (UNINIT_PTR):
15953         * select-msw.c (Fmswindows_get_clipboard):
15954         (Fmswindows_set_clipboard):
15955         * objects-msw.h (MSWINDOWS_BAD_HFONT):
15956         * objects-msw.c:
15957         * menubar-msw.c (displayable_menu_item):
15958         * glyphs-msw.c:
15959         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
15960         * sysdep.c (sys_subshell):
15961         * process-nt.c (nt_create_process):
15962         * nt.c (normalize_filename):
15963         (dostounix_filename):
15964         (unixtodos_filename):
15965         * ntproc.c (win32_executable_type):
15966         * ntplay.c (play_sound_data_1):
15967         (play_sound_file):
15968         * editfns.c (get_home_directory):
15969         * event-msw.c (struct winsock_stream):
15970         (mswindows_dde_callback):
15971         * device-msw.c (msprinter_init_device):
15972         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
15973
15974         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
15975         mswindows_clear_toolbar were swapped!
15976
15977         * objects-msw.c:(colormap_t):
15978         (fontmap_t):
15979         * emacs.c (struct standard_args): Fixed const jumble.
15980
15981         * glyphs-widget.c (update_widget): Fixed comparison notation.
15982
15983         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
15984
15985         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
15986         __declspec(noreturn) syntax.
15987
15988 2000-02-19  Martin Buchholz  <martin@xemacs.org>
15989
15990         * eldap.c (Fldap_open):
15991         (Fldap_search_basic):
15992         (Fldap_add):
15993         (Fldap_modify):
15994         Use new coding system conversion macros.
15995
15996 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15997
15998         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
15999
16000 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
16001
16002         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
16003         (Fldap_add, Fldap_modify, Fldap_delete): New functions
16004
16005         * eldap.c (Qadd, Qreplace): New constant symbols
16006         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
16007         interruptions by XEmacs signals
16008         Remove unnecessary calls to slow_down_interrupts and
16009         speed_up_interrupts
16010         (Fldap_search_basic): Renamed from Fldap_search_internal
16011         Added new optional parameter VERBOSE that triggers the
16012         display of progress messages
16013         Remove unnecessary calls to slow_down_interrupts and
16014         speed_up_interrupts
16015         LDAP result code analysis rewritten
16016         (Fldap_add, Fldap_modify, Fldap_delete): New functions
16017         (syms_of_eldap): Define the new symbols and functions
16018
16019
16020 2000-02-17  Martin Buchholz  <martin@xemacs.org>
16021
16022         * realpath.c: Determine PATH_MAX maximally portably.
16023
16024         * insdel.c (bytecount_to_charcount): Optimize.
16025         The function used to be optimized for entirely ASCII sequences.
16026         Now it is optimized for successive characters from the same
16027         charset.  This also wins big for _mostly_ ASCII sequences.
16028
16029         * fileio.c (Ffile_truename): convert return from realpath() using
16030         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
16031         - Rewrite GCPROing slightly.
16032
16033         * sysdep.c (sys_open): Do filename conversion, like all other
16034         sys_* functions.  Fixes bug:
16035         (let ((file-name-coding-system 'iso-8859-2))
16036            (write-region x y latin2-name))
16037         ==> writes filename using internal encoding.
16038
16039 2000-02-18  Martin Buchholz  <martin@xemacs.org>
16040
16041         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
16042         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
16043         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
16044         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
16045         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
16046         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
16047         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
16048         (CONST_IF_NOT_DEBUG): Delete.
16049         * alloc.c (this_one_is_unmarkable): Delete.
16050         (mark_object): Don't check for this_one_is_unmarkable. Use the
16051         c_readonly flag instead.
16052         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
16053
16054 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16055
16056         * event-msw.c (mswindows_drain_windows_queue):
16057         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
16058         away redundant repaint events.
16059
16060 2000-02-17  Andy Piper  <andy@xemacs.org>
16061
16062         * redisplay.h: declare mark_redisplay_structs.
16063
16064         * redisplay.c (redisplay_window):
16065         (redisplay_frame): don't check subwindows_state_changed.
16066         (mark_redisplay): mark gutters here.
16067
16068         * glyphs.c: (instantiate_image_instantiator): always layout if we
16069         haven't done so already.
16070         (allocate_image_instance): don't mark as dirty.
16071         (update_subwindow): bind inhibit_quit.
16072
16073         * gutter.c (mark_gutters): new function.
16074
16075         * glyphs-x.c (x_update_widget): Always resize to get round a
16076         widget bug.
16077
16078         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
16079         breaking absolutely everything.
16080
16081         * gutter.h: declare mark_gutters.
16082
16083 2000-02-16  Martin Buchholz <martin@xemacs.org>
16084
16085         * XEmacs 21.2.29 is released.
16086
16087 2000-02-15  Olivier Galibert  <galibert@pobox.com>
16088
16089         * fns.c (size_bit_vector): Fix computation of the size.
16090
16091 2000-02-15  Martin Buchholz  <martin@xemacs.org>
16092
16093         * *.[ch]: Change CONST to const globally.
16094         find -name '*.[ch]' | \
16095         xargs global-replace \
16096         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
16097         - Remove vestigial references to CONST_IS_LOSING
16098
16099 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16100
16101         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
16102         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
16103         events instead of dispatching them directly.
16104         (mswindows_handle_paint): New function to do repainting.
16105         (mswindows_wnd_proc):
16106         (emacs_mswindows_handle_magic_event): Call above function.
16107
16108 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16109
16110         * objects-msw.c (mswindows_create_font_variant): Return the new
16111         font handle.
16112         (initialize_font_instance): Get font metrics from the underlined
16113         variant of the font to cope with the case where the underlined
16114         font has a bigger descent.
16115
16116 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
16117
16118         * gui.c (gui_item_accelerator): Return the first underlined
16119         character in item name.
16120
16121 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16122
16123         * lisp.h: Added Qprinter.
16124
16125         * general.c (syms_of_general): Initialized it.
16126
16127         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
16128         (get_frame_dc):
16129         (get_frame_compdc): Made inline.
16130
16131         * console.h (struct console_methods): Added eject_page method.
16132
16133         * frame.h: Added FRAME_DISPLAY_P and friends.
16134         Aligned backslahes in many macros in more readable fashion.
16135         Added page_number to struct frame, and an accessor macro
16136         for it.
16137
16138         * defice.h: Added DEVICE_DISPLAY_P and friends.
16139
16140         * device.c (Fdevice_printer_p): Used these.
16141
16142         * frame.c (allocate_frame_core): Initialize page number.
16143         (Fprint_job_page_number):
16144         (Fprint_job_eject_page): Implemented.
16145
16146         * frame-msw.c (msprinter_eject_page): Added method.
16147         (msprinter_start_page): Added.
16148
16149         * window.c (Fwindow_truncated_p): Fixed docstring.
16150         (Fwindow_last_line_visible_height): Implemented.
16151
16152 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
16153
16154         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
16155
16156 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16157
16158         * syntax.c (scan_words): Always advance at least one character.
16159
16160 2000-02-13  Andy Piper  <andy@xemacs.org>
16161
16162         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
16163         to make sure the glyph is in the cachels.
16164
16165         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
16166         global image instance flag.
16167         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
16168         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
16169
16170         * glyphs.c (allocate_image_instance): set dirty bits correctly.
16171         (Fset_image_instance_property): mark layout as changed.
16172         (invalidate_glyph_geometry_maybe): mark layout as changed.
16173         (glyph_width): use new NEEDS_LAYOUT macro.
16174         (glyph_ascent): ditto.
16175         (glyph_descent): ditto.
16176         (glyph_height): ditto.
16177         (image_instance_layout): mark layout as clean after laying out.
16178         (update_subwindow): don't mark layout as clean here.
16179
16180         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
16181         should no longer be needed.
16182
16183         * glyphs-x.c (x_update_widget): sanitize asserts.
16184         (x_finalize_image_instance): sanitize assignment to widgets.
16185
16186         * glyphs-widget.c (widget_instantiate): don't need to clear the
16187         layout flag here.
16188
16189 2000-02-13  Martin Buchholz  <martin@xemacs.org>
16190
16191         * sysdep.c (getcwd): Use standard prototype.
16192         * sysdep.h (getcwd): Use standard prototype.
16193
16194         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
16195         (sequence, start, end).
16196         Remove redundant type checking.
16197         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
16198         view of `caller-protects') to avoid a crash where the real fix was
16199         found elsewhere.
16200
16201 2000-02-12  Martin Buchholz  <martin@xemacs.org>
16202
16203         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
16204
16205         * s/sol2.h: Remove feature macro initialization.
16206
16207         * alloc.c (alloc_lcrecord): Add more type checking assertions.
16208         (vector_hash): New.  Code from internal_hash.
16209         * lrecord.h:
16210         Fix up allocation subsystem comments.
16211
16212         * config.h.in: Add __EXTENSIONS__ for Solaris.
16213
16214         * systime.h (EMACS_GETTIMEOFDAY): New.
16215         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
16216         Remove Solaris-specific code.
16217         Use void* for the (ignored) second arg for gettimeofday().
16218
16219         * elhash.c (hash_table_hash): Implement it, finally.
16220         * elhash.c:  Use hashcode_t.
16221
16222         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
16223         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
16224
16225         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
16226         * fns.c (size_bit_vector):
16227         * alloc.c (size_vector):
16228         (make_vector_internal):
16229         (make_bit_vector_internal):
16230         (sweep_bit_vectors_1):
16231         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
16232
16233 2000-02-10  Martin Buchholz  <martin@xemacs.org>
16234
16235         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
16236         Include strings.h to avoid warnings for bzero and strcasecmp.
16237
16238 2000-02-10  Olivier Galibert  <galibert@pobox.com>
16239
16240         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
16241         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
16242
16243         * fns.c (size_bit_vector): New.  Declare bit vectors as a
16244         sequence.
16245
16246 2000-02-10  Olivier Galibert  <galibert@pobox.com>
16247
16248         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
16249         use a value field instead.
16250         (symbol_value_forward_forward): Use value field.
16251         (DEFVAR_SYMVAL_FWD): Use value field.
16252         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
16253         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
16254         (DEFVAR_CONST_INT): Ditto.
16255         (DEFVAR_BOOL): Ditto.
16256         (DEFVAR_CONST_BOOL): Ditto.
16257         (DEFVAR_INT_MAGIC): Ditto.
16258         (DEFVAR_BOOL_MAGIC): Ditto.
16259
16260         * symbols.c (guts_of_unbound_marker): Use value field.
16261         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
16262         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
16263
16264         * lisp.h: Declare dumpopaque and noninteractive1.
16265
16266         * alloc.c (dumpopaque): Added.
16267         (pdump_dump_opaquevec): Added.
16268         (pdump): Call pdump_dump_opaquevec to dump opaque data.
16269         (pdump_load): Reload opaque data.  Sync noninteractive1 with
16270         noninteractive.
16271
16272 2000-02-10  Andy Piper  <andy@xemacs.org>
16273
16274         * glyphs.c (image_instance_layout): if the size changes, mark it
16275         as such.
16276
16277         * redisplay-output.c (redisplay_output_layout): Update the
16278         subwindow here.
16279         (redisplay_output_subwindow): ditto.
16280
16281         * glyphs.c (update_subwindow): make sure we reset flags for
16282         layouts as well as everything else.
16283
16284         * glyphs-widget.c (layout_layout): don't need to set the instances
16285         dimensions here.
16286
16287 2000-02-09  Martin Buchholz  <martin@xemacs.org>
16288
16289         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
16290         not HAVE_DLOPEN, which is a lower-level thing.
16291
16292         * .cvsignore: Ignore gmon.out
16293
16294 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
16295
16296         * .cvsignore: Ignore portable dumper xemacs.dmp file
16297
16298 2000-02-09  Andy Piper  <andy@xemacs.org>
16299
16300         * redisplay-output.c (redisplay_output_layout): be more clever
16301         about when we output based on the changed flags.
16302
16303         * glyphs.h (struct image_instantiator_methods): add update_method.
16304         (struct Lisp_Image_Instance): add changed flags. Declare new
16305         macros for manipulating them.
16306
16307         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
16308         (image_instance_parent_glyph): find an image_instance's parent
16309         glyph or image_instance.
16310         (image_instance_layout): mark the size as changed.
16311         (set_image_instance_dirty_p): new function. mark an image
16312         instance, plus all of its parents, as dirty.
16313         (Fset_image_instance_property): use it.
16314         (Fglyph_animated_timeout_handler): use it.
16315         (update_subwindow): call update_widget and device methods for
16316         update_subwindow. Mark all changed flags as clean.
16317         (Fresize_subwindow): mark size as changed.
16318
16319         * glyphs-x.c (x_finalize_image_instance): try and detect gc
16320         failures.
16321         (x_update_subwindow): only resize subwindows here.
16322         (x_update_widget): new function. Update all changed properties of
16323         a widget.
16324         (x_resize_subwindow): deleted.
16325         (x_widget_set_property): deleted.
16326         (x_progress_gauge_set_property): deleted.
16327         (x_progress_gauge_update): new function. Implement recorded
16328         changes.
16329         (x_tab_control_update): ditto.
16330         (x_tab_control_set_property): deleted.
16331         (console_type_create_glyphs_x): declare new functions.
16332         (image_instantiator_format_create_glyphs_x): ditto.
16333
16334         * glyphs-widget.c (widget_set_property): mark text changed.
16335         (update_widget): new function. Update properties of a widget.
16336         (widget_instantiate): for layouts make sure we set their
16337         children's parent correctly.
16338         (tab_control_set_property): new function. Record changes that will
16339         take place under redisplay's control.
16340         (progress_gauge_set_property): ditto.
16341         (image_instantiator_progress_guage): declare new functions.
16342         (image_instantiator_tab_control): ditto.
16343
16344         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
16345         now.
16346         (mswindows_update_widget): new function. Update all properties on
16347         a widget that have changed.
16348         (mswindows_button_update): new function. Update a button's set
16349         state.
16350         (mswindows_tab_control_update): new function. Update the items in
16351         a tab.
16352         (mswindows_tab_control_set_property): deleted.
16353         (mswindows_progress_gauge_update): new function. Update the
16354         progress gauge's progress.
16355         (mswindows_widget_set_property): deleted. This is all done
16356         asynchronously now.
16357         (mswindows_progress_gauge_set_property): ditto.
16358         (console_type_create_glyphs_mswindows): declare new methods.
16359         (image_instantiator_format_create_glyphs_mswindows): ditto.
16360
16361         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
16362         (msprinter_set_frame_properties): ditto.
16363
16364         * console.h (struct console_methods): Add update_widget_method.
16365
16366 2000-02-09  Andy Piper  <andy@xemacs.org>
16367
16368         * gui-msw.c (Fmswindows_shell_execute): Make
16369         mswindows-shell-execute industrial strength.
16370
16371 2000-02-08  Martin Buchholz  <martin@xemacs.org>
16372
16373         * lrecord.h: Make macro argument `props' match member function `plist'.
16374         * fns.c (Fget):
16375         * fns.c (Fput):
16376         * fns.c (Fremprop):
16377         * fns.c (Fobject_plist):
16378         * alloc.c:
16379         * symbols.c:
16380         Object property list frobbing cleanup.
16381         - Allow any lisp object (compared with `eq'), not just symbols, as
16382           keys in object plists.
16383         - Move symbol plist frobbing into symbols.c, where it belongs.
16384         - Move string plist frobbing into alloc.c, where it belongs.
16385         - Everything's an lrecord now, so no need to test for symbolp, etc.
16386         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
16387
16388         * extents.c: Reorder code to remove declarations.
16389
16390         * frame.h (store_in_alist): Remove useless declaration.
16391
16392 2000-02-07  Martin Buchholz  <martin@xemacs.org>
16393
16394         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
16395         * config.h.in: Add HAVE_XCONVERTCASE.
16396
16397 2000-02-07  Andy Piper  <andy@xemacs.org>
16398
16399         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
16400         it breaks many things.
16401
16402 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
16403
16404         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
16405         actually can start a common comment type.
16406         * src/syntax.h (SYNTAX_END_P): ditto for end.
16407
16408 2000-02-07  Martin Buchholz <martin@xemacs.org>
16409
16410         * XEmacs 21.2.28 is released.
16411
16412 2000-02-06  Martin Buchholz  <martin@xemacs.org>
16413
16414         * event-Xt.c (x_keysym_to_character): New.
16415         (maybe_define_x_key_as_self_inserting_character): New.
16416         (x_has_keysym): New.
16417         Auto-define all keys on the keyboard as self-insert-key.
16418
16419 2000-02-02  Martin Buchholz  <martin@xemacs.org>
16420
16421         * menubar.c (vars_of_menubar): A small code simplification.
16422
16423         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
16424
16425         * ExternalShell.c:
16426         * ExternalClient.c:
16427         * EmacsShell-sub.c:
16428         * EmacsManager.c:
16429         * EmacsFrame.c:
16430         Use consistent style for specifying X resources.
16431
16432         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
16433         This makes (dontusethis-set-symbol-value-handler) actually usable.
16434
16435         * lrecord.h (lrecord_decription_type):
16436         * alloc.c (pdump_register_sub):
16437         (pdump_dump_data):
16438         (pdump_reloc_one):
16439         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
16440         Comply with XEmacs coding style.
16441         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
16442         args, and XD_LISP_OBJECT_ARRAY with 3 args.
16443
16444         * keymap.c (Faccessible_keymaps):
16445         Make (accessible-keymaps map "\C-h") do the Right Thing.
16446         Make (accessible-keymaps map []) do the Right Thing.
16447         Make (accessible-keymaps map "") do the Right Thing.
16448         (check_keymap_definition_loop): New function.
16449         (keymap_store_internal): Keep luser from shooting self in foot,
16450           via (define-key ctl-x-4-map "p" global-map).
16451         Remove fullness slot from struct Lisp_Keymap, since hash tables
16452         are now reliable.
16453         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
16454
16455 2000-01-30  Martin Buchholz  <martin@xemacs.org>
16456
16457         * redisplay.c (init_redisplay): Fix small memory leak.
16458         * elhash.h:
16459         * elhash.c (pdump_reorganize_hash_table):
16460         Rename from reorganize_hash_table. Change prototype.
16461         Reuse the original memory for hentries.  Save 100k.
16462         * alloc.c (PDUMP_READ): new macro.
16463         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
16464         * alloc.c: No need to #ifndef before #undef.
16465
16466         * print.c: Allow debug_print() to print readably by modifying
16467         debug_print_readably.  Use consistent variable names.
16468
16469         * .dbxrc: Try to get things to work even if stopped in a function
16470         without source available by explicitly specifying source files.
16471 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16472
16473         * unexnt.c (_start): Removed bogus code which caused loading heap
16474         from differrent executable file.
16475         Removed bogus assignment to _fmode, which caused inconsistencies.
16476
16477 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16478
16479         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
16480         Have spawnve encapsulation regard DONT_ENCAPSULATE.
16481         Do not preliminary `#define signal sigset'.
16482
16483         * systime.h: Do not prototype environ on windows nt and cygwin,
16484         this conflicts with system header.
16485
16486         * syssignal.h: Use correct define for WINDOWSNT
16487
16488         * sysdep.h: Do not prototype environ on windows nt, this conflicts
16489         with system header.
16490
16491         * sysdep.c (near start of file): Fixed commentary and rearranged
16492         ifdefs in readable order.
16493         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
16494         (start_of_text):
16495         (end_of_text):
16496         (end_of_data): Do not compile in if using PDUMP.
16497
16498         * symsinit.h: Prototyped vars_of_nt().
16499
16500         * ntproc.c (windows9x_p): Added, instead of os_subtype.
16501         (find_child_console): Use it.
16502         (sys_kill): Use it.
16503
16504         * ntheap.h: Do not extern os_subtype.
16505
16506         * ntheap.c (cache_system_info): Do not cache unneeded:
16507         nt_major_version, nt_minor_version and os_subtype.
16508         (recreate_heap): Do not compile in when PDUMPing.
16509
16510         * nt.c (geteuid and friends): Use the new varibale
16511         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
16512         (init_user_info): Removed the above mentioned hackery.
16513         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
16514         stat has been fixed in the C runtime.
16515         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
16516
16517         * file-coding.c (struct file_coding_dump): Do not define
16518         ucs_to_mule_table in the struct if not MULE.
16519         (struct struct lrecord_description fcd_description_1): Do not dump
16520         the above.
16521
16522         * emacs.c (main_1): Call vars_of_nt().
16523         (right before Fdump_emacs_data): Don't need lastfile if using both
16524         portabe dumper and system malloc.
16525
16526         * alloc.c (Fmemory_limit): Conditionalized out.
16527         (pdump): Use OPEN_BINARY for the portable dump file.
16528         (pdump_load): Ditto.
16529
16530 2000-02-02  Mike Alexander  <mta@arbortext.com>
16531
16532         * nt.c (convert_time): Set tm_isdst before calling mktime and
16533         avoid calling it at all if the compiler supports 64 bit integers.
16534         Also initialize utc_base_ft before using it.
16535
16536 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
16537
16538         * frame.c (change_frame_size_1): Take f->internal_border_width
16539         into consideration when calculating the width of the frame.
16540
16541 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16542
16543         * window.c (frame_min_height):
16544         (frame_size_valid_p):
16545         (frame_pixsize_valid_p): Added.
16546         (check_frame_size): Generalized.
16547
16548         * window.h: Prototyped the above.
16549
16550         * lisp.h:
16551         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
16552         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
16553         Deleted Vwin32_* and Vbinary_process_* unused variables.
16554
16555         * device-msw.c (msprinter_init_device): Do not get printer font
16556         list; Added DEVMODE functions.
16557
16558         * frame-msw.c: Added lots of printer code.
16559
16560         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
16561         general.c.
16562
16563         * console-msw.h: Added more msprinter device private slots.
16564
16565 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16566
16567         * event-msw.c (key_needs_default_processing_p): Added.
16568         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
16569
16570 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16571
16572         * glyphs.c (image_instance_layout): Mark image instance as clean
16573         after layout.
16574         (glyph_dirty_p): Removed redundant function.
16575         (invalidate_glyph_geometry_maybe): Added.
16576         (update_glyph_cachel_data): Call it.
16577
16578         * glyphs.h: Prototyped it.
16579
16580         * redisplay.c (add_glyph_rune): Call it.
16581         (redisplay_window): Reset glyphs cachels when frame faces have
16582         changed, thus forcing recomputation of built-in border glyphs.
16583
16584 2000-01-30  Martin Buchholz  <martin@xemacs.org>
16585
16586         * Makefile.in.in: Make portable dumper and purify play well together.
16587         Add imperfect, but better than nothing, support for pdump.
16588         Remove xemacs.dmp when temacs is re-generated.
16589         Don't ignore errors when dumping xemacs.
16590
16591         * symbols.c (maybe_call_magic_handler): Remove one magic number.
16592
16593 2000-01-28  Andy Piper  <andy@xemacs.org>
16594
16595         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
16596         (setup_normal_frame): ditto.
16597         (setup_frame_without_minibuffer): ditto.
16598         (setup_minibuffer_frame): ditto.
16599         (delete_frame_internal): ditto.
16600         (Fmake_frame_invisible): ditto.
16601         (Ficonify_frame): ditto.
16602
16603         * window.h: change Fset_window_buffer signature.
16604
16605         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
16606         (Fset_window_buffer): allow recording of buffer if the window is
16607         the selected window.
16608         (window_loop): Use new Fset_window signature.
16609
16610 2000-01-23  Daniel Pittman  <daniel@danann.net>
16611
16612         * config.h.in: Added template for `HAVE_ATHENA_3D'
16613
16614 2000-01-29  Andy Piper  <andy@xemacs.org>
16615
16616         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
16617
16618         * gutter.c (output_gutter): Don't output if the window isn't live.
16619
16620 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16621
16622         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
16623         of 01/12/00: Moved SetFocus back here where it belongs.
16624
16625 2000-01-23  Andy Piper  <andy@xemacs.org>
16626
16627         * s/cygwin32.h: declare printer things.
16628
16629 2000-01-26  Andy Piper  <andy@xemacs.org>
16630
16631         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
16632         Alexander.
16633
16634 2000-01-24  Andy Piper  <andy@xemacs.org>
16635
16636         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
16637         (mswindows_button_instantiate): Make sure glyph is a pixmap.
16638
16639         * glyphs-widget.c (widget_instantiate): Avoid shadows.
16640
16641         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
16642
16643         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
16644
16645         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
16646         (mswindows_output_display_block): Avoid local shadows.
16647
16648         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
16649         (mswindows_enqueue_mouse_button_event): ditto.
16650         (mswindows_handle_gui_wm_command): remove declaration.
16651
16652         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
16653         warnings.
16654
16655         * console-msw.h: Avoid shadows.
16656         (mswindows_get_toolbar_button_text):
16657         (emacs_mswindows_create_stream_pair):
16658         (emacs_mswindows_delete_stream_pair):
16659         (mswindows_handle_toolbar_wm_command): declare.
16660
16661         * device-msw.c (build_syscolor_string): Avoid shadows.
16662
16663 2000-01-23  Andy Piper  <andy@xemacs.org>
16664
16665         * glyphs-widget.c (widget_instantiate): reverse the items for
16666         layouts so that children are in the expected order.
16667
16668 2000-01-28  Martin Buchholz  <martin@xemacs.org>
16669
16670         * ralloc.c: safe_bcopy ==> memmove
16671         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
16672         * s/msdos.h: Remove BCOPY macros.
16673         * insdel.c (gap_right): Remove BCOPY conditional code.
16674         * insdel.c (gap_left): Remove BCOPY conditional code.
16675         XEmacs demands a working ANSI C compiler - hence memmove.
16676
16677         * regex.c (regex_compile): Remove accidental use of trigraphs.
16678
16679 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16680
16681         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
16682         event timestamp.
16683
16684 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16685
16686         * event-msw.c (mswindows_drain_windows_queue): Added the
16687         parameter.
16688         (mswindows_need_event): Commented the call to
16689         mswindows_drain_windows_queue().
16690         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
16691         only.
16692
16693         * console-msw.h: Moved a few function prototypes here from
16694         event-msw.c.
16695
16696         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
16697         parameter from unsigned short to unsigned long.
16698         (Fmswindows_shell_execute): Added return value.
16699
16700 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
16701
16702         * sysdep.c (init_system_name):
16703           process-unix.c (unix_canonicalized_host_name):
16704         Don't call freeaddrinfo() if getaddrinfo() fails.
16705
16706         * process-unix.c (unix_open_unix_network_stream):
16707         Moved the code to get a port # into address loop.
16708
16709 2000-01-27  Martin Buchholz  <martin@xemacs.org>
16710
16711         * buffer.c (reinit_vars_of_buffer):
16712         The right place to initialize conversion_in_dynarr and
16713         conversion_out_dynarr.
16714
16715         * alloc.c (pdump): Use the real open() till sys_open() is functional.
16716
16717         * process-unix.c (unix_canonicalize_host_name): Muleize.
16718         (unix_open_network_stream): Muleize.
16719
16720         * buffer.h: Fix up prototypes for ralloc.c functions.
16721
16722 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
16723         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
16724         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
16725                 instead of gethostbyname()
16726         * process-unix.c: In unix_canonicalize_host_name() and
16727                 unix_open_network_stream(), add code to use getaddrinfo()
16728                 instead of gethostbyname().
16729
16730 2000-01-27  Daniel Pittman <daniel@danann.net>
16731
16732         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
16733         libs when built with flat Athena.
16734
16735 2000-01-27  Martin Buchholz  <martin@xemacs.org>
16736
16737         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
16738         Use coding standards for function prototypes.
16739
16740 2000-01-25  Martin Buchholz  <martin@xemacs.org>
16741
16742         * dialog-msw.c (push_lisp_string_as_unicode):
16743         * doc.c (unparesseuxify_doc_string):
16744         * dired.c (Fuser_name_completion_1):
16745         * dired.c (Fuser_name_all_completions):
16746         * dired.c (free_user_cache):
16747         * dired.c (user_name_completion):
16748         * console-x.c (get_display_arg_connection):
16749         * minibuf.c (clear_echo_area_internal):
16750         * minibuf.c (echo_area_append):
16751         * eldap.c (Fldap_open):
16752         * eldap.c (Fldap_search_internal):
16753         * frame-x.c (x_set_frame_text_value):
16754         * frame-x.c (x_set_frame_properties):
16755         * frame-x.c (x_create_widgets):
16756         * redisplay-tty.c (term_get_fkeys_1):
16757         * objects-x.c (x_parse_nearest_color):
16758         * objects-x.c (x_valid_color_name_p):
16759         * objects-x.c (x_initialize_font_instance):
16760         * objects-x.c (x_list_fonts):
16761         * objects-x.c (x_find_charset_font):
16762         * tooltalk.c (Fadd_tooltalk_message_arg):
16763         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
16764         * tooltalk.c (Fadd_tooltalk_pattern_arg):
16765         * process-unix.c (unix_create_process):
16766         * ntproc.c (sys_spawnve):
16767         * sound.c (Fplay_sound_file):
16768         * sound.c (Fplay_sound):
16769         * buffer.c (init_initial_directory):
16770         * buffer.c (init_buffer):
16771         * editfns.c (init_editfns):
16772         * editfns.c (Ftemp_directory):
16773         * editfns.c (Fuser_full_name):
16774         * editfns.c (uncache_home_directory):
16775         * editfns.c (get_home_directory):
16776         * editfns.c (Fuser_home_directory):
16777         * editfns.c (Fformat_time_string):
16778         * editfns.c (Fcurrent_time_string):
16779         * gui-x.c (button_item_to_widget_value):
16780         * database.c (Fopen_database):
16781         * event-Xt.c (x_to_emacs_keysym):
16782         * event-Xt.c (x_event_to_emacs_event):
16783         * event-Xt.c (describe_event_window):
16784         * event-msw.c (mswindows_wnd_proc):
16785         * glyphs-eimage.c (jpeg_instantiate):
16786         * glyphs-eimage.c (gif_instantiate):
16787         * glyphs-eimage.c (png_instantiate):
16788         * glyphs-eimage.c (tiff_instantiate):
16789         * glyphs-x.c (xbm_instantiate_1):
16790         * glyphs-x.c (x_xbm_instantiate):
16791         * glyphs-x.c (x_xface_instantiate):
16792         * glyphs-x.c (autodetect_instantiate):
16793         * glyphs-x.c (cursor_font_instantiate):
16794         * glyphs-x.c (x_widget_instantiate):
16795         * glyphs-x.c (x_widget_set_property):
16796         * glyphs-x.c (x_widget_property):
16797         * glyphs-x.c (BUILD_GLYPH_INST):
16798         * print.c (write_string_to_stdio_stream):
16799         * print.c (output_string):
16800         * print.c (Falternate_debugging_output):
16801         * print.c (Fexternal_debugging_output):
16802         * glyphs-msw.c (extract_xpm_color_names):
16803         * glyphs-msw.c (mswindows_xpm_instantiate):
16804         * glyphs-msw.c (bmp_instantiate):
16805         * glyphs-msw.c (resource_name_to_resource):
16806         * glyphs-msw.c (mswindows_resource_instantiate):
16807         * glyphs-msw.c (xbm_instantiate_1):
16808         * glyphs-msw.c (mswindows_xbm_instantiate):
16809         * glyphs-msw.c (mswindows_xface_instantiate):
16810         * glyphs-msw.c (mswindows_widget_instantiate):
16811         * glyphs-msw.c (add_tree_item):
16812         * glyphs-msw.c (add_tab_item):
16813         * glyphs-msw.c (mswindows_combo_box_instantiate):
16814         * glyphs-msw.c (mswindows_widget_property):
16815         * glyphs-msw.c (mswindows_combo_box_property):
16816         * glyphs-msw.c (mswindows_widget_set_property):
16817         * console.c (stuff_buffered_input):
16818         * objects-msw.c (mswindows_initialize_color_instance):
16819         * objects-msw.c (mswindows_valid_color_name_p):
16820         * objects-msw.c (mswindows_list_fonts):
16821         * objects-msw.c (mswindows_font_instance_truename):
16822         * bytecode.c (optimize_compiled_function):
16823         * select-x.c (symbol_to_x_atom):
16824         * select-x.c (x_atom_to_symbol):
16825         * select-x.c (hack_motif_clipboard_selection):
16826         * select-x.c (selection_data_to_lisp_data):
16827         * select-x.c (lisp_data_to_selection_data):
16828         * select-x.c (Fx_get_cutbuffer_internal):
16829         * select-x.c (Fx_store_cutbuffer_internal):
16830         * buffer.h (TO_EXTERNAL_FORMAT): New function.
16831         * buffer.h (TO_INTERNAL_FORMAT): New function.
16832         * emacs.c (make_arg_list_1):
16833         * emacs.c (make_argc_argv):
16834         * emacs.c (main_1):
16835         * emacs.c (Fdump_emacs):
16836         * emacs.c (split_string_by_emchar_1):
16837         * file-coding.h:
16838         * lisp.h:
16839         * lstream.h:
16840         * symsinit.h:
16841         * device-x.c (x_init_device):
16842         * device-x.c (Fx_valid_keysym_name_p):
16843         * device-x.c (Fx_get_font_path):
16844         * device-x.c (Fx_set_font_path):
16845         * glyphs.c (bitmap_to_lisp_data):
16846         * glyphs.c (pixmap_to_lisp_data):
16847         * alloc.c (make_ext_string): Use coding system arguments.  Update
16848         all callers.
16849         * alloc.c (build_string):
16850         * callproc.c (child_setup):
16851         * callproc.c (init_callproc):
16852         * fileio.c (lisp_strerror):
16853         * fileio.c (directory_file_name):
16854         * fileio.c (Fexpand_file_name):
16855         * fileio.c (Ffile_truename):
16856         * fileio.c (Fsysnetunam):
16857         * fileio.c (Fdo_auto_save):
16858         * sysdep.c (sys_readdir):
16859         * tests.c: New file.  Allow adding C tests.
16860         Replace GET_* macros with a more comprehensible and flexible
16861         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
16862         Modify all calls.
16863         Any coding system can be used to do format conversion.
16864         Eliminate enum external_data_format.
16865         Eliminate convert_to_external_format.
16866         Eliminate convert_to_internal_format.
16867         Make sure file-name, keyboard, terminal, and ctext are always
16868         defined as coding systems or aliases.  Make
16869         file-name-coding-system, terminal-coding-system, and
16870         keyboard-coding-system magical variables that are equivalent to
16871         defining the corresponding coding system aliases.
16872
16873         * file-coding.c (Fcoding_system_canonical_name_p): New function.
16874         * file-coding.c (Fcoding_system_alias_p): New function.
16875         * file-coding.c (Fcoding_system_aliasee): New function.
16876         * file-coding.c (append_suffix_to_symbol): New function.
16877         * file-coding.c (dangling_coding_system_alias_p): New function.
16878         * file-coding.c (Ffind_coding_system):
16879         * file-coding.c (Fcopy_coding_system):
16880         * file-coding.c (encode_coding_no_conversion):
16881         * file-coding.c (syms_of_file_coding):
16882         * file-coding.c (vars_of_file_coding):
16883         Rewrite coding system alias code.
16884         Allow nested aliases, like symbolic links.
16885         Allow redefinition of coding system aliases.
16886         Prevent existence of dangling coding system aliases.
16887
16888         * dired.c (Fuser_name_completion_1):
16889         * dired.c (Fuser_name_all_completions):
16890         A crash would happen if user did QUIT in the middle of building
16891         user_name_cache.  Remove redundant code in mainline and unwind_protect.
16892
16893         * lisp.h:
16894         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
16895
16896         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
16897         an unsigned char *.  Update all callers.
16898
16899 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16900
16901         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
16902
16903 2000-01-25  Martin Buchholz  <martin@xemacs.org>
16904
16905         * elhash.c (hentry_description): Use more portable definition.
16906         (resize_hash_table): Initialize new hentries using
16907         xnew_array_and_zero, thereby simplifying the code.
16908
16909         * mule-charset.c (make_charset): Make sure entire object is
16910         initialized, to avoid Purify warnings.
16911
16912         * alloc.c (resize_string): Fix unlikely crash with big strings.
16913
16914 2000-01-24  Martin Buchholz  <martin@xemacs.org>
16915
16916         * realpath.c (xrealpath):
16917         Don't call getwd().
16918
16919 2000-01-25  Martin Buchholz  <martin@xemacs.org>
16920
16921         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
16922
16923 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
16924
16925         * unexelfsgi.c (unexec): Change the way we decide which segment
16926         should be extended.
16927
16928         Assumption that .bss section should be outside the PT_LOADable
16929         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
16930         it's present) is inside the 'data' segment. This would fail the
16931         test which was used to find a segment to grow and cover new
16932         heap. Instead of this assumption, I created another one - on IRIX
16933         the segment to grow should start below .bss and it's address
16934         should extent above the end of .bss. Once this segment is
16935         identified, it's grown to accommodate the new heap and new
16936         zero-length .bss section is added at the end of .data2.
16937
16938 2000-01-25  Martin Buchholz  <martin@xemacs.org>
16939
16940         * eval.c (Feval): Wrong number of arguments should use original
16941         function, not the indirect_function version of it.
16942
16943 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
16944
16945         * glyphs-x.c (x_button_instantiate): Don't add image if
16946         it is not a pixmap.
16947         (x_locate_pixmap_file): Call Fexpand_file_name when file name
16948         is relative.
16949
16950 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
16951
16952         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
16953         declaration.
16954         (DEFVAR_INT_MAGIC): Ditto.
16955         (DEFVAR_BOOL_MAGIC): Ditto.
16956         * glyphs.h: Reindent backslash.
16957
16958 2000-01-24  Martin Buchholz  <martin@xemacs.org>
16959
16960         * glyphs-widget.c (layout_query_geometry):
16961         (layout_layout): Use correct types for gheight, gwidth.
16962
16963 2000-01-24  Martin Buchholz  <martin@xemacs.org>
16964
16965         * EmacsManager.c (QueryGeometry): Purified.
16966
16967 2000-01-23  Martin Buchholz  <martin@xemacs.org>
16968
16969         * alloc.c (make_float): Make sure entire object is initialized, to
16970         avoid Purify warnings.
16971         (pdump_register_sub): Remove useless assignment.
16972         (pdump): Use xmalloc, not malloc.
16973         (pdump_load): Use xmalloc, not malloc.
16974
16975 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16976
16977         * callproc.c:
16978         * dired-msw.c:
16979         * fileio.c:
16980         * process-nt.c:
16981         * redisplay-msw.c:
16982         * sysdep.c: Removed redundant #include <windows.h>
16983
16984 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16985
16986         * frame.c (delete_frame_internal): Do not delete device when its
16987         implementation so declares.
16988         (delete_frame_internal): Set device selected frame to nil when
16989         last frame goes away.
16990
16991         * device-msw.c (msprinter_device_system_metrics): Implemented.
16992         (mswindows_device_system_metrics): Added 'device-dpi property.
16993
16994         * device.c: (Fdevice_printer_p): Added.
16995         Added 'offset-workspace device metric.
16996
16997         * console.h (device_metrics): Declared DM_offset_workspace.
16998
16999 2000-01-23  Martin Buchholz  <martin@xemacs.org>
17000
17001         * fileio.c (Ffile_truename): Remove pointless and confusing
17002         initialization of elen.
17003
17004         * glyphs-widget.c: Compiler warning fixes.
17005
17006 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
17007
17008         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
17009         instead of a Lisp_Object as argument to make it consistent with
17010         the other LIVE_P macros.
17011         (CHECK_LIVE_PROCESS): New macro.
17012
17013         * process.c: Declare Qprocess_live_p.
17014         (Fprocess_live_p): New function.
17015         (create_process): Use PROCESS_LIVE_P.
17016         (read_process_output): Ditto.
17017         (set_process_filter): Ditto.
17018         (Fdelete_process): Ditto.
17019         (kill_buffer_processes): Ditto
17020         (process_send_signal): Use CHECK_LIVE_PROCESS.
17021         (Fprocess_input_coding_system): Check whether process is still
17022         alive (fix PR#1061).
17023         (Fprocess_output_coding_system): Ditto.
17024         (Fprocess_coding_system): Ditto.
17025         (Fset_process_input_coding_system): Ditto.
17026         (Fset_process_output_coding_system): Ditto.
17027
17028 2000-01-23  Andy Piper  <andy@xemacs.org>
17029
17030         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
17031         layout and widget.
17032
17033         * glyphs.c (mark_image_instance): take into account changed
17034         image_instance format.
17035         (image_instance_equal): ditto.
17036         (image_instance_hash): ditto.
17037
17038         * glyphs-widget.c (widget_instantiate): Incorporate layout
17039         instantiation here. Delay layout of the layout until later.
17040         (layout_instantiate): deleted.
17041         (layout_query_geometry): new function. get the geometry of a
17042         layout.
17043         (layout_layout): layout a layout dynamically.
17044         (image_instantiator_widget): New function - splitting up
17045         image_instantiator_format_create_glyphs_widget for netwinder
17046         compilation.
17047         (image_instantiator_buttons):
17048         (image_instantiator_edit_fields):
17049         (image_instantiator_combo_box):
17050         (image_instantiator_scrollbar):
17051         (image_instantiator_progress_guage):
17052         (image_instantiator_tree_view):
17053         (image_instantiator_tab_control):
17054         (image_instantiator_labels):
17055         (image_instantiator_layout): ditto.
17056         (image_instantiator_format_create_glyphs_widget): Call preceding
17057         functions.
17058
17059 2000-01-22  Martin Buchholz  <martin@xemacs.org>
17060
17061         * process.c (Fset_process_coding_system):
17062         * device-x.c (Fx_keysym_hash_table):
17063         Docstring fixes.
17064
17065         * lstream.c (Lstream_write): Return documented value, not 0.
17066
17067         * fileio.c (directory_file_name):
17068         (Fsubstitute_in_file_name):
17069         (Fsubstitute_insert_file_contents_internal):
17070         (Fwrite_region_internal):
17071         * emacs.c:
17072         * sysdep.c:
17073         * getloadavg.c:
17074         * systty.h:
17075         Remove vestigial APOLLO-conditional code.
17076
17077 2000-01-21  Martin Buchholz  <martin@xemacs.org>
17078
17079         * getpagesize.h: Add guard macros.
17080         * libsst.h: Add guard macros.
17081         * libst.h: Add guard macros.
17082         * line-number.h: Add guard macros.
17083         * ndir.h: Add guard macros.
17084         * sysfloat.h: Add guard macros.
17085         * sysfile.h: Add guard macros.
17086         * sysproc.h: Add guard macros.
17087         * syswait.h: Add guard macros.
17088         * xintrinsic.h: Add guard macros.
17089         * xintrinsicp.h: Add guard macros.
17090         * xmmanager.h: Add guard macros.
17091         * xmmanagerp.h: Add guard macros.
17092         * xmprimitive.h: Add guard macros.
17093         * xmu.h: Add guard macros.
17094         * gpmevent.h: Add copyright statement. Add guard macros.
17095         * miscplay.h: Add guard macros.
17096         * *.h: Use consistent C-standards-approved guard macro names.
17097
17098         * opaque.c (make_opaque): Switch parameter order.
17099         * opaque.h (make_opaque): Switch parameter order.
17100         Update all callers.
17101         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
17102
17103         * config.h.in (type_checking_assert): Added.
17104         (bufpos_checking_assert): Added.
17105
17106 2000-01-21  Martin Buchholz  <martin@xemacs.org>
17107
17108         * alloc.c: Harmless pdump changes.
17109         - Use countof().
17110         - spell alignment correctly.
17111         * sysdep.c: Use countof()
17112
17113 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17114
17115         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
17116         initially_selected_for_input() console method, default to 0.
17117         (semi_canonicalize_console_connection): Try to delegate to
17118         canonicalize_console_connection if no such console method.
17119         (canonicalize_console_connection): Vice versa.
17120         (print_console): Do not print nil connection.
17121
17122         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
17123         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
17124         (XDEVIMPF_FRAMELESS_OK): Added.
17125         (CONSOLE_INHERITS_METHOD): Added.
17126
17127         * console-msw.c (mswindows_canonicalize_console_connection):
17128         Added.
17129         (mswindows_canonicalize_device_connection): Added.
17130
17131         * console-msw.h (struct msprinter_device): Added this struct and
17132         accessor macros.
17133         (mswindows_device): Made fontlist a lisp object.
17134
17135         * device.c (semi_canonicalize_device_connection):  Try to delegate
17136         to canonicalize_device_connection if no such console method.
17137         (canonicalize_device_connection): Vice versa.
17138         (print_device): Do not print nil connection.
17139
17140         * device-msw.c (mswindows_init_device): Call InitCommonControls
17141         when have widgets.
17142         (mswindows_delete_device): Removed fontlist deallocation.
17143         (mswindows_mark_device): Added.
17144
17145         * events.c (event_equal): Added abort() at unreached code.
17146         (event_hash): Ditto.
17147
17148         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
17149         fallback tags of Windows devices.
17150
17151         * general.c (syms_of_general): Initialized Qmsprinter.
17152
17153         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
17154         of fallback tags of Windows devices.
17155
17156         * lisp.h: Declared Qmsprinter.
17157
17158         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
17159         of strings.
17160         (mswindows_list_fonts): Ditto.
17161         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
17162         that it can be used by both mswindows and msprinter devices.
17163         (initialize_font_instance): Added.
17164         (mswindows_initialize_font_instance): Use it.
17165         (msprinter_initialize_font_instance): Added.
17166
17167         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
17168         and implementation flags check.
17169         (redisplay_without_hooks): Changed the call to the above.
17170         (Fredraw_device): Ditto.
17171         (Fredisplay_device): Ditto.
17172
17173         * redisplay-msw.c (get_frame_dc): Implemented.
17174         (get_frame_compdc): Implemented.
17175         (many functions): Use the two functions above to get device
17176         contexts, ether for a window or a printer.
17177
17178 2000-01-21  Olivier Galibert  <galibert@pobox.com>
17179
17180         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
17181         initialization here.
17182         (init_symbols_once_early): Call it.
17183         * emacs.c (main_1): Call it.
17184         * symsinit.h: Declare it.
17185
17186 2000-01-19  Olivier Galibert  <galibert@pobox.com>
17187
17188         * alloc.c: Use a lrecord_header * in the backtrace instead of a
17189         Lisp_Object.
17190         (pdump_backtrace): Ditto.
17191         (pdump_register_object): Ditto.  Cleanup use of the pointers.
17192         (pdump_get_entry): Abort if trying to register a null pointer.
17193         (pdump_dump_data): Cleanup types when relocating.
17194         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
17195         (pdump_dump_rtables): Remove bad casts.
17196         (pdump_load): Cleanup relocation w.r.t union type.  Use a
17197         Lisp_Object instead of a EMACS_INT for the hashtable
17198         reorganization.
17199
17200 2000-01-20  Martin Buchholz  <martin@xemacs.org>
17201
17202         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
17203
17204         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
17205
17206         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
17207
17208         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
17209
17210 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17211
17212         * faces.h (FACE_STRIKETHRU_P): Added.
17213
17214         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
17215         of font variants.
17216
17217         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
17218         (mswindows_set_dc_font): New function, aware of font variants,
17219         separated from mswindows_update_dc.
17220
17221         * objects-msw.h (struct mswindows_font_instance_data): Added
17222         definition.
17223
17224         * objects-msw.c (mswindows_finalize_font_instance): Delete all
17225         cached fonts and the data structure.
17226         (mswindows_initialize_font_instance): Added creation of font data
17227         structure.
17228         (mswindows_print_font_instance): Print at least something.
17229         (mswindows_create_font_variant): Implemented.
17230         (mswindows_get_hfont): Implemented.
17231
17232 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
17233
17234         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
17235         prototyping problem with msvc.
17236
17237         * emacs.c (main_1): added syms_of_gui_mswindows() call
17238
17239         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
17240         syms_of_gui_mswindows() function
17241
17242         * symsinit.h: added the prototype for syms_of_gui_mswindows()
17243
17244 2000-01-18  Martin Buchholz <martin@xemacs.org>
17245
17246         * XEmacs 21.2.27 is released.
17247
17248 2000-01-18  Martin Buchholz  <martin@xemacs.org>
17249
17250         * glyphs-eimage.c (struct tiff_error_struct):
17251         (tiff_error_func):
17252         (tiff_warning_func):
17253         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
17254
17255         * unexmips.c:
17256         * unexhp9k3.c:
17257         * unexfreebsd.c:
17258         * unexec.c: Remove vestigial Lucid C code.
17259         * unexalpha.c:
17260         * unexaix.c:
17261         * termcap.c:
17262         * libsst.c: Ansify.
17263         Remove declarations of errno and strerror().
17264
17265         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
17266
17267         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
17268
17269 2000-01-16  Martin Buchholz  <martin@xemacs.org>
17270
17271         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
17272         Optimize.
17273
17274 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
17275
17276         * md5.c:
17277         * file-coding.c:
17278         * file-coding.h:
17279         Change enum eol_type to eol_type_t.
17280
17281 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
17282
17283         * gui.c (get_gui_callback): Check cons before accessing car.
17284
17285 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
17286
17287         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
17288         (XSETSPECIFIER_TYPE): Ditto.
17289
17290 2000-01-17  Didier Verna  <didier@xemacs.org>
17291
17292         * redisplay.c (generate_fstring_runes): compute string size in
17293         characters, not bytes.
17294
17295 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
17296
17297         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
17298
17299 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
17300
17301         * print.c (print_error_message): Call print_prepare().
17302
17303 2000-01-14  Martin Buchholz  <martin@xemacs.org>
17304
17305         * .dbxrc: Renamed from dbxrc.
17306
17307         * events.c (event_to_character):
17308         Use `assert (foo)' instead of `if (!foo) abort()'
17309
17310         * .gdbinit (xtype): Add documentation.
17311         * .gdbinit (check-temacs): New function.
17312         * .gdbinit (check-xemacs): New function.
17313         * dbxrc (check-xemacs): New function.
17314         * dbxrc (check-xemacs): New function.
17315
17316 2000-01-14  Andy Piper  <andy@xemacs.org>
17317
17318         * glyphs-widget.c (widget_query_geometry): Make sure that we
17319         calculate default dimensions correctly.
17320
17321 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17322
17323         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
17324
17325         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
17326         pdump_wire'd variable.
17327
17328         * emacs.c: (main_1): Conditionalized calls to
17329         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
17330
17331 2000-01-13  Martin Buchholz  <martin@xemacs.org>
17332
17333         * window.c (Fset_window_configuration):
17334         * sysdep.c (_start):
17335         * input-method-motif.c (res):
17336         * event-Xt.c (Xt_process_to_emacs_event):
17337         Simple compiler warning fixes.
17338
17339         * bytecode.c (funcall_compiled_function): Use the original
17340         function symbol on the backtrace list in preference to the
17341         compiled_function object in error messages.
17342
17343 2000-01-13  Andy Piper  <andy@xemacs.org>
17344
17345         * glyphs-x.c (update_widget_face): Make sure we update the widget
17346         background as well as foreground.
17347
17348 2000-01-13  Andy Piper  <andy@xemacs.org>
17349
17350         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
17351         fields to subwindow.
17352         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
17353         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
17354         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
17355         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
17356
17357         * glyphs-widget.c (check_valid_tab_orientation): new function.
17358         (initialize_widget_image_instance): zero orientation and
17359         justification.
17360         (widget_instantiate): pick up orientation.
17361         (tab_control_query_geometry): return appropriate values for
17362         vertical tabs.
17363
17364         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
17365         appropriate creation flags for left, right and bottom tabs.
17366
17367         * s/cygwin32.h: add tab definitions.
17368
17369 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17370
17371         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
17372         frame upon hiding a subwindow.
17373         (mswindows_button_instantiate): Changed the push button style to
17374         BS_PUSHBUTTON.
17375         (mswindows_button_instantiate): Removed button BS_NOTIFY
17376         style.
17377         (mswindows_button_instantiate): Removed redundant check for
17378         a disabled gui item.
17379         (mswindows_button_instantiate): Made use of WS_TABSTOP
17380         consistent: "operable" controls (edit, button, tree, scroll) have
17381         this style, "display-only" ones (static, progress gauge) do
17382         not. This style is currently ignored by XEmacs though. Also,
17383         removed the WS_EX_CONTROLPARENT style - it is not for children,
17384         it is for their parents!
17385         (mswindows_edit_field_instantiate): Ditto.
17386         (mswindows_progress_gauge_instantiate): Ditto.
17387         (mswindows_tree_view_instantiate): Ditto.
17388         (mswindows_tab_control_instantiate): Ditto.
17389         (mswindows_scrollbar_instantiate): Ditto.
17390         (mswindows_combo_box_instantiate): Ditto.
17391         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
17392         style to the "clip" window.
17393         (mswindows_button_instantiate): Removed compilation warning by
17394         equally typing terms of the ?: operator.
17395
17396 2000-01-12  Didier Verna  <didier@xemacs.org>
17397
17398         * redisplay.c (generate_fstring_runes): new parameter holding the
17399         last modeline-format extent.
17400         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
17401         extent, fill the glyph block with it.
17402         (generate_fstring_runes): handle these parameters.
17403         (generate_formatted_string_db): ditto.
17404
17405         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
17406         glyphs'extents in the modeline.
17407
17408 1999-01-11  Mike Woolley  <mike@bulsara.com>
17409
17410         * ntheap.c: Reduced the reserved heap space from 1Gb down to
17411         256Mb, as a workaround for the non-starting problem many people
17412         have experienced.
17413
17414 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
17415
17416         * console-tty.c (Fset_console_tty_output_coding_system):
17417         Force redrawing tty frame.
17418
17419 2000-01-10  Didier Verna  <didier@xemacs.org>
17420
17421         * redisplay.c (generate_fstring_runes): fix size computation bug.
17422
17423 2000-01-09  William M. Perry <wmperry@aventail.com>
17424
17425         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
17426
17427 2000-01-09  Andy Piper  <andy@xemacs.org>
17428
17429         * glyphs-msw.c: index -> i to avoid shadows.
17430         (xbm_create_bitmap_from_data): make static.
17431         (check_valid_string_or_int): deleted.
17432         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
17433
17434         * glyphs-x.c (x_update_subwindow): remove unused args.
17435
17436         * glyphs.c (glyph_image_instance): return the thing. Don't set the
17437         back pointer - this is done in allocate_image_instance.
17438         (query_string_font): return Qnil to make the compiler happy.
17439         (unmap_subwindow): set to ~0 to make the compiler happy.
17440         (glyph_query_geometry): comment out until used.
17441         (glyph_layout): ditto.
17442
17443 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
17444
17445         * insdel.c (signal_after_change): Remove extraneous unbind_to().