update.
[chise/xemacs-chise.git] / src / ChangeLog
1 2003-04-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2
3         * chartab.c (decode_char_table_range): CHARTAB_RANGE_DEFAULT is
4         only for XEmacs CHISE.
5
6 2003-04-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
7
8         * char-ucs.h: Compact non-ISO-IR charset-ids.
9         (LEADING_BYTE_UCS): Changed to -177.
10         (LEADING_BYTE_CONTROL_1): Changed to -77.
11         (LEADING_BYTE_UCS_BMP): Changed to -176.
12         (LEADING_BYTE_JAPANESE_JISX0208_1990): Changed to -168.
13
14 2003-04-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
15
16         * mule-charset.c (Qiso_ir): New variable.
17         (Fmake_charset): Recognise new property `iso-ir'.
18         (syms_of_mule_charset): Add new symbol `iso-ir'.
19
20 2003-04-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
21
22         * char-ucs.h: Change charset-id of ISO-IR sets from ISO-IR-number
23         n to -n; charset-id of non ISO-IR sets are changed to positive
24         numbers.
25
26 2003-03-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
27
28         * text-coding.c (decode_add_er_char): Use XUINT instead of XINT
29         for &MCS-XXXXXXXX; values.
30
31 2003-03-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
32
33         * mule.c (Vxemacs_chise_version): Renamed from
34         `Vutf_2000_version'.
35         (vars_of_mule): Add new variable `xemacs-chise-version'; define
36         `utf-2000-version' as an alias for `xemacs-chise-version'.
37
38 2003-03-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
39
40         * mule-charset.c: Include <chise.h> when `CHISE' is defined.
41         (load_char_decoding_entry_maybe): Use libchise when `CHISE' is
42         defined.
43
44         * config.h.in (CHISE): New macro.
45
46 2003-03-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
47
48         * mule-charset.c (put_char_ccs_code_point): Refer `=ucs' instead
49         of `ucs'.
50         (Qmap_ucs): New variable.
51         (syms_of_mule_charset): Add new symbol `=ucs'.
52         (complex_vars_of_mule_charset): Rename `ucs' to `=ucs'.
53
54         * fns.c (ids_format_unit): Refer `=ucs' instead of `ucs'.
55         (simplify_char_spec): Likewise.
56
57         * chartab.c (Fdefine_char): Refer `=ucs' as same as `ucs'.
58
59         * char-ucs.h (Qmap_ucs): New extern variable.
60
61 2003-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
62
63         * mule-charset.c (Qmap_jis_x0208): Renamed from `Qjis_x0208'.
64         (Qmap_jis_x0208_1990): Renamed from `Qjapanese_jisx0208_1990';
65         don't define it when UTF2000 is not defined.
66         (syms_of_mule_charset): Modify for `Qmap_jis_x0208'; rename
67         `japanese-jisx0208-1990' to `=jis-x0208-1990'; don't define it
68         when UTF2000 is not defined.
69         (complex_vars_of_mule_charset): Modify for `Qmap_jis_x0208';
70         rename `japanese-jisx0208-1990' to `=jis-x0208-1990'.
71
72 2003-03-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
73
74         * char-ucs.h (LEADING_BYTE_UCS_GB): Deleted.
75
76         * mule-charset.c (Vcharset_ucs_gb): Deleted.
77         (Qucs_gb): Deleted.
78         (syms_of_mule_charset): Delete `ucs-gb'.
79         (complex_vars_of_mule_charset): Likewise.
80
81 2003-03-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
82
83         * char-ucs.h (LEADING_BYTE_UCS_CNS): Deleted.
84
85         * mule-charset.c (Vcharset_ucs_cns): Deleted.
86         (Qucs_cns): Deleted.
87         (syms_of_mule_charset): Delete `ucs-cns'.
88         (complex_vars_of_mule_charset): Likewise.
89
90 2003-03-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
91
92         * char-ucs.h (LEADING_BYTE_UCS_JIS): Deleted.
93
94         * mule-charset.c (Vcharset_ucs_jis): Deleted.
95         (Qucs_jis): Deleted.
96         (syms_of_mule_charset): Delete `ucs-jis'.
97         (complex_vars_of_mule_charset): Likewise.
98
99 2003-03-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
100
101         * char-ucs.h (LEADING_BYTE_UCS_KS): Deleted.
102
103         * mule-charset.c (Vcharset_ucs_ks): Deleted.
104         (Qucs_ks): Deleted.
105         (syms_of_mule_charset): Delete `ucs-ks'.
106         (complex_vars_of_mule_charset): Likewise.
107
108 2003-03-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
109
110         * mule-charset.c (Vcharset_ideograph_daikanwa_2): Deleted.
111         (Qideograph_daikanwa_2): Deleted.
112         (syms_of_mule_charset): Delete `ideograph-daikanwa-2'.
113         (complex_vars_of_mule_charset): Likewise.
114
115         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): Deleted.
116         (LEADING_BYTE_DAIKANWA_1): Deleted.
117         (LEADING_BYTE_DAIKANWA_2): Deleted.
118         (MIN_CHAR_DAIKANWA): Deleted.
119         (MAX_CHAR_DAIKANWA): Deleted.
120
121 2003-02-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
122
123         * char-ucs.h (LEADING_BYTE_DAIKANWA_3): Deleted.
124         (LEADING_BYTE_HANZIKU_{1..12}): Deleted.
125         ({MIN|MAX}_CHAR_HANZIKU_{1..12}): Deleted.
126
127         * mule-charset.c (Vcharset_ideograph_hanziku_{1..12}): Deleted.
128         (Vcharset_ideograph_daikanwa): Deleted.
129         (Qideograph_hanziku_{1..12}): Deleted.
130         (Qideograph_daikanwa): Deleted.
131         (encode_builtin_char_1): Don't use {MIN|MAX}_CHAR_DAIKANWA and
132         Vcharset_ideograph_daikanwa.
133         (syms_of_mule_charset): Delete `ideograph-daikanwa' and
134         `ideograph-hanziku-{1..12}'.
135         (complex_vars_of_mule_charset): Likewise.
136
137 2003-02-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
138
139         * char-ucs.h (LEADING_BYTE_GT_PJ_{1..11}): Deleted.
140
141         * mule-charset.c (Vcharset_ideograph_gt_pj_{1..11}): Deleted.
142         (Qideograph_gt_pj_{1..11}): Deleted.
143         (syms_of_mule_charset): Delete `ideograph-gt-pj-{1..11}'.
144         (complex_vars_of_mule_charset): Likewise.
145
146 2003-02-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
147
148         * mule-charset.c (Vcharset_ucs_big5): Deleted.
149         (Vcharset_ideograph_gt): Deleted.
150         (Qucs_big5): Deleted.
151         (Qideograph_gt): Deleted.
152         (syms_of_mule_charset): Delete symbol `ucs-big5' and
153         `ideograph-gt'.
154         (complex_vars_of_mule_charset): Delete coded-charset `ucs-big5'
155         and `ideograph-gt'.
156
157         * char-ucs.h (LEADING_BYTE_UCS_BIG5): Deleted.
158         (LEADING_BYTE_GT): Deleted.
159         (MIN_CHAR_GT): Deleted.
160         (MAX_CHAR_GT): Deleted.
161
162 2003-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
163
164         * chartab.c (Fput_char_attribute): Canonicalise charset-aliases.
165
166 2003-01-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
167
168         * chartab.c (save_uint8_byte_table): Add new argument `filter'.
169         (save_uint16_byte_table): Likewise.
170         (save_byte_table): Likewise; convert values by it.
171         (Fput_char_attribute): Don't use `char-refs-simplify-char-specs'
172         for `ideographic-structure'.
173         (Fsave_char_attribute_table): Use `char-refs-simplify-char-specs'
174         as the filter for `ideographic-structure'.
175
176 2003-01-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
177
178         * chartab.c (put_char_composition): New function.
179         (Fput_char_attribute): Use `put_char_composition'; use
180         `Fchar_refs_simplify_char_specs' for `ideographic-structure'.
181
182         * fns.c (simplify_char_spec): New function.
183         (char_ref_simplify_spec): New function.
184         (Fchar_refs_simplify_char_specs): New function.
185         (syms_of_fns): Add new builtin function
186         `char-refs-simplify-char-specs'.
187
188 2003-01-05  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
189
190         * mule-charset.c (Vcharset_ideograph_cbeta): Deleted.
191         (Qideograph_cbeta): Deleted.
192         (syms_of_mule_charset): Don't define `ideograph-cbeta'.
193         (complex_vars_of_mule_charset): Likewise.
194
195         * char-ucs.h (LEADING_BYTE_CBETA): Deleted.
196         (MIN_CHAR_CBETA): Comment out.
197         (MAX_CHAR_CBETA): Likewise.
198
199 2002-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
200
201         * mule-charset.c, chartab.h, casetab.c, char-ucs.h, chartab.c: Use
202         `HAVE_CHISE_CLIENT' instead of `HAVE_DATABASE' to indicate the
203         CHISE client feature.
204
205 2002-12-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
206
207         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.20.
208
209 2002-12-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
210
211         * mule-charset.c (charset_lookup_description_1): Use
212         `NUM_LEADING_BYTES' in UTF-2000.
213
214 2002-12-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
215
216         * char-ucs.h (GC_CHARSETP): Deleted.
217
218 2002-12-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
219
220         * char-ucs.h (MAX_CHAR_GT): Updated.
221
222 2002-12-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
223
224         * text-coding.c: Sync with XEmacs 21.4.10.
225
226 2002-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
227
228         * mule-charset.c (Vcharset_china3_jef): Deleted.
229         (Qchina3_jef): Deleted.
230         (syms_of_mule_charset): Don't define `china3-jef'.
231         (complex_vars_of_mule_charset): Likewise.
232
233         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Deleted.
234         (MIN_CHAR_CHINA3_JEF): Comment out.
235         (MAX_CHAR_CHINA3_JEF): Comment out.
236
237 2002-11-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
238
239         * mule-charset.c (Vcharset_ucs_gb): New variable.
240         (Qucs_gb): New variable.
241         (syms_of_mule_charset): Add new symbol `ucs-gb'.
242         (complex_vars_of_mule_charset): Add new coded-charset `ucs-gb'.
243
244         * char-ucs.h (LEADING_BYTE_UCS_GB): New macro.
245
246 2002-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
247
248         * mule-charset.c (charset_code_point): if a coded-charset has a
249         final-byte, don't inherit the builtin range of the mother CCS.
250
251 2002-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
252
253         * mule-charset.c (charset_code_point): Fix problem about
254         inheritance.
255
256 2002-11-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
257
258         * mule-charset.c (decode_builtin_char): Reorganized.
259
260 2002-10-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
261
262         * text-coding.c (char_encode_as_entity_reference): Modify for
263         `charset_code_point'.
264         (char_encode_shift_jis): Likewise.
265         (char_encode_big5): Likewise.
266         (char_encode_utf8): Likewise.
267         (char_encode_iso2022): Likewise.
268
269         * mule-charset.c (charset_code_point): Add new argument
270         `defined_only'.
271         (Fencode_char): Add new optional argument `defined_only'.
272
273         * chartab.c (put_char_table): Modify for `charset_code_point'.
274
275         * char-ucs.h (charset_code_point): Add new argument
276         `defined_only'.
277         (encode_char_1): Modify for `charset_code_point'.
278
279 2002-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
280
281         * mule-charset.c (complex_vars_of_mule_charset): Don't specify
282         `MIN_CHAR_THAI' and `MAX_CHAR_THAI' for `thai-tis620'.
283
284 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
285
286         * mule-charset.c (Vcharset_jis_x0208): New variable in UTF-2000.
287         (Qjis_x0208): Likewise.
288         (decode_builtin_char): Prefer XCHARSET_MAX_CODE(charset) than
289         XCHARSET_FINAL(charset).
290         (charset_code_point): Modify condition for final-byte based
291         builtin-chars.
292         (syms_of_mule_charset): Add new symbol `=jis-x0208' in UTF-2000.
293         (complex_vars_of_mule_charset): Add new coded-charset `=jis-x0208'
294         in UTF-2000; specify `=jis-x0208' as the mother of
295         `japanese-jisx0208-1978', `japanese-jisx0208' and
296         `japanese-jisx0208-1990' in UTF-2000.
297
298 2002-10-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
299
300         * char-ucs.h (LEADING_BYTE_JIS_X0208): New macro.
301
302 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
303
304         * text-coding.c (decode_coding_utf16): Support UTF-16.
305         (char_encode_utf16): Fixed.
306
307 2002-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
308
309         * text-coding.c (Qutf16): New variable in MULE.
310         (Fmake_coding_system): Accept `utf-16' as `type' in MULE.
311         (Fcoding_system_type): Add `utf-16' in MULE.
312         (struct detection_state): Add a structure for utf16 in MULE.
313         (detect_coding_type): Setup st->utf16.mask in MULE.
314         (mule_decode): Use `decode_coding_utf16' for `CODESYS_UTF16' in
315         MULE.
316         (reset_encoding_stream): Use `char_encode_utf16' and
317         `char_finish_utf16' for `CODESYS_UTF16' in MULE.
318         (detect_coding_utf16): New function [incomplete].
319         (decode_coding_utf16): New function [support only UCS-2].
320         (char_encode_utf16): New function.
321         (char_finish_utf16): New function.
322         (syms_of_file_coding): Add new symbol `utf-16'; setup
323         `coding_category_symbol[CODING_CATEGORY_UTF16]'.
324
325         * file-coding.h (enum coding_system_type): Add `CODESYS_UTF16' in
326         UTF-2000.
327         (enum coding_category_type): Add `CODING_CATEGORY_UTF16' in MULE.
328         (CODING_CATEGORY_UTF16_MASK): New macro in MULE.
329
330 2002-10-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
331
332         * chartab.c (put_char_table): When a charset is specified as a
333         range in UTF-2000, don't support builtin characters.
334
335 2002-09-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
336
337         * mule-charset.c (decode_defined_char): Don't refer external
338         database if Qunbound or Qnil are found.
339         (Fsave_charset_mapping_table): Don't define it if
340         HAVE_CHISE_CLIENT is not defined.
341         (Freset_charset_mapping_table): New function.
342         (load_char_decoding_entry_maybe): Store Qnil if a character is not
343         found in external database.
344         (syms_of_mule_charset): Don't define `save-charset-mapping-table'
345         if HAVE_CHISE_CLIENT is not defined; add new builtin function
346         `reset-charset-mapping-table' if HAVE_CHISE_CLIENT is defined.
347
348 2002-09-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
349
350         * text-coding.c (decode_coding_utf8): Check CCS is specified or
351         not.
352
353 2002-08-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
354
355         * chartab.h: Add extern declarations for Qdowncase, Qflippedcase,
356         Q_lowercase, Q_uppercase in UTF-2000.
357
358         * chartab.c (get_char_table): Add special code for the standard
359         case table to use character attribute `->downcase' and
360         `->uppercase' for case operations in UTF-2000.
361
362         * casetab.c (Qflippedcase): New variable in UTF-2000.
363         (Q_lowercase): Likewise.
364         (Q_uppercase): Likewise.
365         (syms_of_casetab): Add new symbols `flippedcase', `->lowercase'
366         and `->uppercase' in UTF-2000.
367         (complex_vars_of_casetab): Assign attribute name `downcase' to
368         downcase and CANON table of Vstandard_case_table in UTF-2000;
369         assign attribute name `flippedcase' to upcase and EQV table of
370         Vstandard_case_table in UTF-2000.
371
372 2002-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
373
374         * text-coding.c (decode_add_er_char): Support isolated-chars.
375         (char_encode_as_entity_reference): Likewise.
376
377 2002-08-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
378
379         * emacs.c (Vutf_2000_lisp_directory): New variable.
380         (Vconfigure_utf_2000_lisp_directory): Likewise.
381         (complex_vars_of_emacs): Add new variable
382         `utf-2000-lisp-directory' and `configure-utf-2000-lisp-directory'.
383
384 2002-08-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
385
386         * char-ucs.h (DECODE_CHAR): Delete special code for
387         `chinese-big5-1' and `chinese-big5-2'.
388
389         * mule-charset.c (Qbig5_1): New variable in UTF-2000.
390         (Qbig5_2): Likewise.
391         (decode_defined_char): Support CONVERSION_BIG5_1 and
392         CONVERSION_BIG5_2.
393         (decode_builtin_char): Likewise.
394         (charset_code_point): Likewise.
395         (Fmake_charset): Accept `big5-1' and `big5-2' as a value of
396         'conversion in UTF-2000.
397         (syms_of_mule_charset): Add new symbol `big5-1' and `big5-2'.
398         (complex_vars_of_mule_charset): Define `chinese-big5-1' and
399         `chinese-big5-2' as children of `chinese-big5'.
400
401         * char-ucs.h (CONVERSION_BIG5_1): New macro.
402         (CONVERSION_BIG5_2): New macro.
403
404 2002-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
405
406         * text-coding.c (char_encode_big5): Support entity-reference.
407
408 2002-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
409
410         * text-coding.c (char_encode_as_entity_reference): New function.
411         (char_encode_utf8): Use `char_encode_as_entity_reference'.
412
413 2002-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
414
415         * text-coding.c (decode_coding_big5): Support entity-reference
416         decoding feature.
417
418 2002-08-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
419
420         * text-coding.c (allocate_coding_system): Initialize initial
421         charsets for CODESYS_UTF8.
422         (Fmake_coding_system): Accept charset-g0, charset-g1 and
423         charset-g2 for CODESYS_UTF8.
424         (decode_coding_utf8): Use charset-g0.
425         (char_encode_utf8): Use charset-g0; use charset-g1 and charset-g2
426         to force variants to map to UCS.
427
428 2002-07-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
429
430         * text-coding.c (Qutf_8_mcs): New variable.
431         (syms_of_file_coding): Add new symbol `utf-8-mcs' in UTF-2000.
432         (complex_vars_of_file_coding): Define coding-system `utf-8-mcs'
433         instead of `utf-8' in UTF-2000.
434
435 2002-07-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
436
437         * mule-charset.c (charset_code_point): If CHARSET_CONVERSION is
438         CONVERSION_IDENTICAL, identical conversion is used even if a CCS
439         is ISO-2022 style; instead of it, CONVERSION_94, CONVERSION_96,
440         CONVERSION_94x94, CONVERSION_96x96, CONVERSION_94x94x94,
441         CONVERSION_96x96x96, CONVERSION_94x94x94x94 and
442         CONVERSION_96x96x96x96 are introduced.
443         (complex_vars_of_mule_charset): Specify CONVERSION_96 instead of
444         CONVERSION_IDENTICAL for thai-tis620; Specify CONVERSION_94x94
445         instead of CONVERSION_IDENTICAL for japanese-jisx0208-1990.
446
447         * char-ucs.h (CONVERSION_94): New macro.
448         (CONVERSION_96): New macro.
449         (CONVERSION_94x94): New macro.
450         (CONVERSION_96x96): New macro.
451         (CONVERSION_94x94x94): New macro.
452         (CONVERSION_96x96x96): New macro.
453         (CONVERSION_94x94x94x60): New macro.
454         (CONVERSION_94x94x94x94): New macro.
455         (CONVERSION_96x96x96x96): New macro.
456
457 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
458
459         * chartab.c (Vcharacter_variant_table): Deleted.
460         (Fchar_variants): Use character-attribute `->ucs-variants' instead
461         of `Vcharacter_variant_table'.
462         (Fput_char_attribute): Likewise.
463         (vars_of_chartab): Don't setup `Vcharacter_variant_table'.
464         (complex_vars_of_chartab): Likewise.
465
466 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
467
468         * lisp.h: Add an EXFUN for `Fchar_ref_p'.
469
470         * fns.c (Qideographic_structure): New variable.
471         (Qkeyword_char): New variable.
472         (ids_format_unit): New function.
473         (Fideographic_structure_to_ids): New function.
474         (syms_of_fns): Add new symbols `ideographic-structure' and
475         `:char'; add new builtin function `ideographic-structure-to-ids'.
476
477         * data.c (Fchar_ref_p): New function.
478         (syms_of_data): Add new builtin function `char-ref-p'.
479
480         * chartab.h: Add an EXFUN for `Ffind_char'.
481
482 2002-07-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
483
484         * text-coding.c (Vcharacter_composition_table): Deleted.
485         (COMPOSE_ADD_CHAR): Use the implementation for external-DB support
486         in every UTF-2000.
487
488         * chartab.c: Add EXFUN for `Fmap_char_attribute' in every
489         UTF-2000.
490         (Vcharacter_composition_table): Deleted.
491         (Fget_composite_char): Use the implementation for external-DB
492         support in every UTF-2000.
493         (Fput_char_attribute): Likewise.
494         (char_attribute_system_db_file): Don't define if external-DB
495         feature is not available.
496         (Fsave_char_attribute_table): Likewise.
497         (Fmount_char_attribute_table): Likewise.
498         (Fclose_char_attribute_table): Likewise.
499         (Freset_char_attribute_table): Likewise.
500         (Fload_char_attribute_table): Likewise.
501         (syms_of_chartab): Don't define `save-char-attribute-table',
502         `mount-char-attribute-table', `reset-char-attribute-table',
503         `close-char-attribute-table' and `load-char-attribute-table' if
504         external-DB feature is not available.
505         (vars_of_chartab): Don't setup `Vcharacter_composition_table'.
506
507 2002-07-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
508
509         * text-coding.c (Qcomposition): Add extern if external-DB feature
510         is supported.
511         (Vcharacter_composition_table): Don't add extern if external-DB
512         feature is supported.
513         (COMPOSE_ADD_CHAR): Modify for new data-representation of
514         character composition rule if external-DB feature is supported.
515
516         * chartab.c (Vcharacter_composition_table): Don't define if
517         external-DB feature is supported.
518         (Qcomposition): New variable.
519         (Fget_composite_char): New implementation for external-DB support.
520         (Fput_char_attribute): Use `composition' property of each
521         character instead of `Vcharacter_composition_table' to store
522         character-composition rules if external-DB feature is supported.
523         (syms_of_chartab): Add new symbol `composition'.
524         (vars_of_chartab): Don't setup `Vcharacter_composition_table' if
525         external-DB feature is supported.
526
527 2002-07-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
528
529         * chartab.c (Vchar_db_stingy_mode): New variable.
530         (load_char_attribute_maybe): Close database if
531         Vchar_db_stingy_mode is not NIL.
532         (Fload_char_attribute_table_map_function): Use
533         `get_char_id_table_0' instead of `get_char_id_table'.
534         (vars_of_chartab): Add new variable `char-db-stingy-mode'.
535
536         * chartab.h (get_char_id_table_0): New inline function.
537         (get_char_id_table): Use `get_char_id_table_0'.
538
539 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
540
541         * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
542         and `COMPOSE_ADD_CHAR'.
543         (decode_coding_iso2022): Use `decode_flush_er_chars'.
544
545 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
546
547         * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
548         instead of `DECODE_ADD_UCS_CHAR'.
549         (COMPOSE_ADD_CHAR): Likewise.
550
551 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
552
553         * text-coding.c (decode_flush_er_chars): New inline function.
554         (decode_add_er_char): New function.
555         (decode_coding_utf8): Use `decode_flush_er_chars' and
556         `decode_add_er_char'.
557
558 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
559
560         * text-coding.c (decode_coding_utf8): Flush for er_buf must be
561         done before `decode_output_utf8_partial_char'.
562
563         * mule-charset.c (complex_vars_of_mule_charset): Specify
564         `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
565         `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
566
567 2002-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
568
569         * mule-charset.c (decode_defined_char): New function; search
570         mother.
571         (decode_builtin_char): Don't search mother if
572         XCHARSET_MAX_CODE(charset) == 0.
573         (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
574         == 0 even if code >= XCHARSET_MAX_CODE(charset).
575         (Fdecode_char): Use `decode_defined_char' instead of
576         `DECODE_DEFINED_CHAR'.
577         (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
578         mother of `Vcharset_ucs_jis'.
579
580         * text-coding.c (decode_coding_big5): Use `decode_defined_char'
581         instead of `DECODE_DEFINED_CHAR'.
582
583         * char-ucs.h (decode_defined_char): Renamed from
584         `DECODE_DEFINED_CHAR'; changed to normal function.
585         (DECODE_CHAR): Use `decode_defined_char' instead of
586         `DECODE_DEFINED_CHAR'.
587
588         * lisp.h: Add `EXFUN' for `Fstring_to_number'.
589
590 2002-07-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
591
592         * char-ucs.h: Add `extern' for `Vcharset_ucs'.
593
594         * text-coding.c (Vcoded_charset_entity_reference_alist): New
595         variable.
596         (Quse_entity_reference): New variable.
597         (Qd): New variable.
598         (Qx): New variable.
599         (QX): New variable.
600         (coding_system_description): Add description for
601         `ccs_priority_list'.
602         (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
603         (allocate_coding_system): Initialize `ccs_priority_list' in
604         UTF-2000.
605         (Fmake_coding_system): Add description about
606         'use-entity-reference; setup CODING_SYSTEM_USE_ENTITY_REFERENCE
607         (codesys).
608         (Fcoding_system_property): Accept `disable-composition' and
609         `use-entity-reference' in UTF-2000.
610         (struct decoding_stream): Add new member `er_counter' and `er_buf'
611         in UTF-2000.
612         (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
613         (decode_coding_utf8): Decode entity-reference if
614         CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
615         (char_encode_utf8): Encode non-Unicode characters as
616         entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
617         (str->codesys).
618         (syms_of_file_coding): Add new symbols `use-entity-reference',
619         `d', `x', `X'.
620         (vars_of_file_coding): Add new variable
621         `coded-charset-entity-reference-alist'.
622         (complex_vars_of_file_coding): Declare `disable-composition' and
623         `use-entity-reference' to be coding-system-properties in UTF-2000.
624
625         * file-coding.h (struct Lisp_Coding_System): Add new member
626         `use_entity_reference' and `ccs_priority_list'.
627         (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
628         (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
629         (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
630
631 2002-07-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
632
633         * chartab.c (save_uint8_byte_table): Don't clear the table.
634         (save_uint16_byte_table): Likewise.
635         (save_byte_table): Likewise.
636         (Fmount_char_attribute_table): New function.
637         (syms_of_chartab): Add new builtin function
638         `mount-char-attribute-table'.
639
640 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
641
642         * mule-charset.c (Fsave_charset_mapping_table): Open database as
643         "w+" mode.
644         (load_char_decoding_entry_maybe): Open database as read-only mode.
645
646         * chartab.c (Fsave_char_attribute_table): Don't share `ct->db';
647         open database as "w+" mode.
648         (load_char_attribute_maybe): Open database as read-only mode.
649         (Fload_char_attribute_table): Likewise.
650
651 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
652
653         * chartab.c (mark_char_table): Don't refer `ct->db_file'.
654         (char_table_description): Delete member `db_file'.
655         (Fmake_char_table): Don't refer `ct->db_file'.
656         (Fcopy_char_table): Likewise.
657         (Fsave_char_attribute_table): Likewise.
658         (Fclose_char_attribute_table): Likewise.
659         (Freset_char_attribute_table): Likewise.
660         (load_char_attribute_maybe): Likewise.
661         (Fload_char_attribute_table): Likewise.
662
663         * chartab.h (struct Lisp_Char_Table): Delete member `db_file'.
664
665 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
666
667         * chartab.c: Add an EXFUN for `Fmap_char_attribute'.
668         (Fsave_char_attribute_table): Don't check `ct->db_file' if
669         `ct->db' is living.
670         (load_char_attribute_maybe): Likewise.
671         (Fload_char_attribute_table): Likewise.
672
673 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
674
675         * chartab.c (Fclose_char_attribute_table): Set Qnil on
676         `ct->db_file' unconditionally.
677
678 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
679
680         * chartab.c (mark_char_table): Mark `ct->db_file' and `ct->db' in
681         UTF-2000.
682         (char_table_description): Add description for `db_file' and `db'
683         in UTF-2000.
684         (Fmake_char_table): Initialize `ct->db_file' and `ct->db' in
685         UTF-2000.
686         (Fcopy_char_table): Copy `ct->db_file' and `ct->db' in UTF-2000.
687         (Fsave_char_attribute_table): Use `ct->db_file' and `ct->db'.
688         (Fclose_char_attribute_table): New function.
689         (Freset_char_attribute_table): Reset `ct->db_file' and `ct->db'.
690         (load_char_attribute_maybe): Change interface; use `cit->db_file'
691         and `cit->db'.
692         (Fload_char_attribute_table): Use `ct->db_file' and `ct->db'.
693         (syms_of_chartab): Add new builtin function
694         `Fclose_char_attribute_table'.
695
696 2002-06-28  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
697
698         * chartab.h (struct Lisp_Char_Table): Add new member `db_file' and
699         `db' in UTF-2000.
700         (load_char_attribute_maybe): Change interface.
701         (get_char_id_table): Modify for `load_char_attribute_maybe'.
702
703 2002-06-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
704
705         * database.h: Add an EXFUN for `Fdatabase_live_p'.
706
707 2002-04-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
708
709         * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
710         instead of `DECODE_CHAR' for mother; don't use special code for
711         chinese-big5 to use code space of chinese-big5-1 and
712         chinese-big5-2.
713         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
714         `MAX_CHAR_BIG5_CDP' for chinese-big5.
715
716         * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
717         (MAX_CHAR_BIG5_CDP): Revival.
718
719 2002-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
720
721         * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
722         the XLFD registry-encoding name of `chinese-big5'.
723
724 2002-04-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
725
726         * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
727         (Qchinese_big5_cdp): Deleted.
728         (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
729         (complex_vars_of_mule_charset): Delete coded-charset
730         `chinese-big5-cdp'.
731
732         * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
733         (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
734         `CHARSET_ID_OFFSET - n' for private CCS.
735         (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
736         (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
737         of `MIN_LEADING_BYTE'.
738         (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
739         `(CHARSET_ID_OFFSET - 97)'.
740         (MIN_CHAR_BIG5_CDP): Deleted.
741         (MAX_CHAR_BIG5_CDP): Deleted.
742
743 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
744
745         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.19.
746
747 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
748
749         * mule.c (Vutf_2000_version): New variable [moved from chartab.c].
750         (vars_of_mule): Add new variable `utf-2000-version' [moved from
751         chartab.c].
752
753         * chartab.c (Vutf_2000_version): Moved to mule.c.
754         (vars_of_chartab): Move code about `utf-2000-version' into mule.c.
755
756 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
757
758         * mule-charset.c (load_char_decoding_entry_maybe): Don't define it
759         when HAVE_CHISE_CLIENT is not defined.
760
761         * mule.c (vars_of_mule): Provide feature `chise' when
762         HAVE_CHISE_CLIENT is defined.
763
764 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
765
766         * config.h.in (UTF2000): Add comment.
767         (HAVE_CHISE_CLIENT): New macro.
768
769 2002-02-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
770
771         * chartab.c (Fchar_variants): Check Vcharacter_variant_table is
772         CONSP.
773         (Fput_char_attribute): Likewise.
774         (char_attribute_system_db_file): Encode file-name of attribute.
775         (vars_of_chartab): Set Qunbound into Vcharacter_variant_table as
776         the initial value.
777
778 2002-02-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
779
780         * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
781         (Fsave_charset_mapping_table): Use
782         `char_attribute_system_db_file'.
783         (load_char_decoding_entry_maybe): Likewise.
784
785         * chartab.h (Qsystem_char_id): New external variable.
786         (char_attribute_system_db_file): New prototype.
787
788         * chartab.c (Qsystem_char_id): New variable in UTF-2000.
789         (char_attribute_system_db_file): New function.
790         (Fsave_char_attribute_table): Use `char_attribute_system_db_file'.
791         (Freset_char_attribute_table): Likewise.
792         (load_char_attribute_maybe): Likewise.
793         (Fload_char_attribute_table): Likewise.
794         (syms_of_chartab): Add new symbol `system-char-id'.
795
796 2002-02-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
797
798         * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
799         `XCHARSET_GRAPHIC(ccs)'.
800
801 2002-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
802
803         * mule-charset.c (Fsave_charset_mapping_table): Fixed.
804
805 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
806
807         * chartab.c (Q_ucs_variants): New variable.
808         (syms_of_chartab): Add new symbol `->ucs-variants'.
809         (complex_vars_of_chartab): Set `Vcharacter_variant_table' on
810         `Vchar_attribute_hash_table' as the value of `->ucs-variants'; set
811         `->ucs-variants' on `XCHAR_TABLE_NAME (Vcharacter_variant_table)'.
812
813         * mule-charset.c (load_char_decoding_entry_maybe): New function.
814
815         * char-ucs.h (load_char_decoding_entry_maybe): New prototype when
816         `HAVE_DATABASE' is defined.
817         (DECODE_DEFINED_CHAR): Use `load_char_decoding_entry_maybe' when
818         `HAVE_DATABASE' is defined.
819
820 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
821
822         * chartab.c (Fsave_char_attribute_table): Don't clear internal
823         attribute-table.
824         (Freset_char_attribute_table): New function.
825         (syms_of_chartab): Add new builtin function
826         `reset-char-attribute-table'.
827
828 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
829
830         * chartab.c (load_char_attribute_maybe): Don't make directories.
831
832 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
833
834         * char-ucs.h: Add EXFUN for `Fmake_directory_internal'.
835
836         * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
837         for decoding-table.
838
839 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
840
841         * mule-charset.c (Fsave_charset_mapping_table): Use
842         `XCHARSET_BYTE_SIZE' instead of `XCHARSET_CHARS'.
843
844         * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
845         instead of `XCHARSET_CHARS'.
846
847 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
848
849         * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
850         (XCHARSET_BYTE_SIZE): Likewise.
851
852         * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
853         mule-charset.c].
854         (XCHARSET_BYTE_SIZE): Likewise.
855
856 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
857
858         * chartab.c (Fput_char_attribute): Use exec-directory instead of
859         data-directory to store database.
860         (Fsave_char_attribute_table): Likewise.
861         (load_char_attribute_maybe): Likewise.
862         (Fload_char_attribute_table): Likewise.
863
864 2002-02-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
865
866         * mule-charset.c (Fsave_charset_mapping_table): New function.
867         (syms_of_mule_charset): Add new builtin function
868         `save-charset-mapping-table'.
869
870 2002-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
871
872         * char-ucs.h (decoding_table_check_elements): Delete prototype.
873         (get_ccs_octet_table): New inline function.
874         (put_ccs_octet_table): Likewise.
875         (decoding_table_put_char): Use `get_ccs_octet_table' and
876         `put_ccs_octet_table'.
877         (decoding_table_remove_char): Use `decoding_table_put_char'.
878         (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
879
880         * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
881         into encoding_table.
882         (make_charset): Use Qunbound instead Qnil as initial value of
883         decoding_table.
884
885 2002-02-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
886
887         * chartab.c (map_over_uint8_byte_table): Set Qunbound if an
888         element is Qunloaded.
889         (map_over_uint16_byte_table): Likewise.
890         (map_over_byte_table): Likewise.
891         (map_char_table): Likewise for CHARTAB_RANGE_ALL in UTF-2000; when
892         CHARTAB_RANGE_CHARSET is specified in UTF-2000 with external
893         database support, load encoding-table of the specified
894         coded-charset if it is not loaded yet.
895         (save_uint8_byte_table): New function of UTF-2000 with external
896         database support.
897         (save_uint16_byte_table): Likewise.
898         (save_byte_table): Likewise.
899         (Fput_char_attribute): Don't store value into external database
900         even if the external database feature is supported in UTF-2000;
901         set `attribute' as name of char-table if the external database
902         feature is supported.
903         (Fsave_char_attribute_table): New function in UTF-2000.
904         (syms_of_chartab): Add new builtin function
905         `save-char-attribute-table' in UTF-2000.
906
907 2002-02-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
908
909         * chartab.c (char_attribute_table_to_put): New variable in
910         UTF-2000.
911         (Qput_char_table_map_function): Likewise.
912         (value_to_put): Likewise.
913         (Fput_char_table_map_function): New function in UTF-2000.
914         (put_char_table): Use `Fmap_char_attribute' for
915         CHARTAB_RANGE_CHARSET in UTF-2000.
916         (Fput_char_attribute): Store symbol instead of string in
917         `XCHAR_TABLE_NAME (table)'.
918         (load_char_attribute_maybe): Likewise.
919         (syms_of_chartab): Add new symbol/function
920         `put-char-table-map-function'.
921
922 2002-01-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
923
924         * database.h: Add new EXFUN for `Fmap_database'.
925
926         * database.c (Fmap_database): Renamed from `Fmapdatabase'.
927         (syms_of_database): Likewise.
928
929         * chartab.h (struct Lisp_Char_Table): Add new member `unloaded' in
930         UTF-2000.
931         (CHAR_TABLE_UNLOADED): New macro of UTF-2000.
932         (XCHAR_TABLE_UNLOADED): Likewise.
933
934         * chartab.c (fill_char_table): Initialize `ct->unloaded'.
935         (Fput_char_attribute): Set XCHAR_TABLE_UNLOADED(table) if
936         HAVE_DATABASE is defined.
937         (char_attribute_table_to_load): New variable of UTF-2000 with
938         external database support.
939         (Qload_char_attribute_table_map_function): Likewise.
940         (Fload_char_attribute_table_map_function): New function of
941         UTF-2000 with external database support.
942         (Fload_char_attribute_table): New function of UTF-2000.
943         (Fmap_char_attribute): Call Fload_char_attribute_table if
944         CHAR_TABLE_UNLOADED(ct) is set when HAVE_DATABASE is defined.
945         (syms_of_chartab): Add new symbol and function
946         `load-char-attribute-table-map-function' in UTF-2000 with external
947         database support; add new function `load-char-attribute-table' in
948         UTF-2000.
949
950 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
951
952         * chartab.h (load_char_attribute_maybe): New prototype for
953         UTF-2000 with DATABASE support.
954         (get_char_id_table): Use `load_char_attribute_maybe' if
955         HAVE_DATABASE is defined.
956
957         * chartab.c (load_char_attribute_maybe): New function in UTF-2000
958         with DATABASE support.
959
960 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
961
962         * chartab.c (Fput_char_attribute): Use S-expression as key of
963         external database.
964
965         * chartab.h (get_char_id_table): Use S-expression as key of
966         external database.
967
968 2002-01-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
969
970         * chartab.c (map_over_uint8_byte_table): Add new argument `root';
971         if an element is not loaded, load the corresponding attributes
972         from an external database.
973         (map_over_uint16_byte_table): Likewise.
974         (map_over_byte_table): Likewise.
975         (map_char_table): Modify for `map_over_uint8_byte_table',
976         `map_over_uint16_byte_table' and `map_over_byte_table'; if an
977         element is not loaded, load the corresponding attributes from an
978         external database.
979         (Fput_char_attribute): Change initial values to Qunloaded.
980
981         * chartab.h (get_char_id_table): If a character attribute is not
982         loaded and the attribute value is not found in an external
983         database, store Qunbound as the attribute value.
984
985 2002-01-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
986
987         * chartab.c (BT_UINT8_unloaded): New macro.
988         (UINT8_VALUE_P): Accept Qunloaded.
989         (UINT8_ENCODE): Likewise.
990         (UINT8_DECODE): Likewise.
991         (BT_UINT16_unloaded): New macro.
992         (UINT16_VALUE_P): Accept Qunloaded.
993         (UINT16_ENCODE): Likewise.
994         (UINT16_DECODE): Likewise.
995         (UINT8_TO_UINT16): Convert BT_UINT8_unloaded into
996         BT_UINT16_unloaded.
997         (mark_char_table): Mark `ct->name' in UTF-2000.
998         (char_table_description): Add `name' in UTF-2000.
999         (Fmake_char_table): Initialize `ct->name'.
1000         (Fcopy_char_table): Copy `ct->name'.
1001         (Fput_char_attribute): Store value into an external database if
1002         HAVE_DATABASE is defined.
1003
1004         * chartab.h (struct Lisp_Char_Table): Add new member `name' in
1005         UTF-2000.
1006         (CHAR_TABLE_NAME): New macro in UTF-2000.
1007         (XCHAR_TABLE_NAME): New macro in UTF-2000.
1008         (get_char_id_table): Try to read an external database if Qunloaded
1009         is stored in a table.
1010
1011         * symbols.c (init_symbols_once_early): Assign '#<unloaded> into
1012         Qunloaded.
1013
1014 2002-01-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1015
1016         * database.h: Add EXFUN definitions for Fopen_database,
1017         Fput_database, Fget_database and Fclose_database.
1018
1019         * data.c (Qunloaded): New variable in UTF-2000.
1020
1021         * lisp.h (Qunloaded): New variable in UTF-2000.
1022
1023 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1024
1025         * mule-charset.c (put_char_ccs_code_point): Modify for
1026         `decoding_table_remove_char' and `decoding_table_put_char'.
1027         (remove_char_ccs): Modify for `decoding_table_remove_char'.
1028
1029         * char-ucs.h (decoding_table_remove_char): Change arguments to
1030         hide decoding_table vector.
1031         (decoding_table_put_char): Likewise.
1032
1033 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1034
1035         * mule-charset.c (decoding_table_remove_char): Moved to
1036         char-ucs.h.
1037         (decoding_table_put_char): Likewise.
1038
1039         * char-ucs.h (decoding_table_check_elements): New prototype [moved
1040         from mule-charset.c].
1041         (decoding_table_remove_char): New inline function [moved from
1042         mule-charset.c].
1043         (decoding_table_put_char): Likewise.
1044
1045 2002-01-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1046
1047         * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
1048         extension.
1049
1050 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1051
1052         * mule-charset.c (decode_builtin_char): Support mother charsets.
1053
1054 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1055
1056         * mule-charset.c (Q94x94x60): New variable.
1057         (charset_code_point): Support conversion `94x94x60'.
1058         (Fmake_charset): Likewise.
1059         (syms_of_mule_charset): Add new symbol `94x94x60'.
1060
1061         * char-ucs.h (CONVERSION_94x94x60): New macro.
1062
1063 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1064
1065         * mule-charset.c (charset_code_point): Unify code about
1066         `code-offset'.
1067
1068 2001-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1069
1070         * mule-charset.c (charset_code_point): Merge code about builtin
1071         characters into code about mother charsets; don't use
1072         `range_charset_code_point'.
1073         (range_charset_code_point): Deleted.
1074
1075 2001-12-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1076
1077         * mule-charset.c (Qcode_offset): New variable.
1078         (Fmake_charset): Use `XUINT' to get value of `min-code' and
1079         `max-code'; accept new property `code-offset'.
1080         (syms_of_mule_charset): Add new symbol `code-offset'.
1081
1082 2001-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1083
1084         * mule-charset.c (range_charset_code_point): Fixed.
1085
1086 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1087
1088         * mule-charset.c (decode_builtin_char): Change semantics of
1089         code-offset of coded-charset.
1090         (charset_code_point): Likewise.
1091         (range_charset_code_point): Likewise.
1092         (complex_vars_of_mule_charset): Modify for the change.
1093
1094 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1095
1096         * mule-charset.c (Fencode_char): Reverse arguments.
1097
1098         * mule-charset.c (charset_code_point): Fixed.
1099
1100 2001-12-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1101
1102         * mule-charset.c (Vcharset_mojikyo): Deleted.
1103         (Vcharset_mojikyo_2022_1): Deleted.
1104         (Vcharset_mojikyo_pj_{1..21}): Deleted.
1105         (Qmin_code): New variable in UTF-2000.
1106         (Qmax_code): Likewise.
1107         (Qmother): Likewise.
1108         (Qconversion): Likewise.
1109         (Q94x60): Likewise.
1110         (Qmojikyo): Deleted.
1111         (Qmojikyo_2022_1): Deleted.
1112         (Qmojikyo_pj_{1..22}): Deleted.
1113         (mark_charset): Mark `cs->mother'.
1114         (charset_description): Add description for `mother'.
1115         (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
1116         new arguments `mother' and `conversion'; use
1117         `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
1118         (charset_code_point): Moved from char-ucs.h; support `mother'
1119         charset feature.
1120         (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
1121         of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
1122         (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
1123         UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
1124         allow 2 as the value of `graphic' in UTF-2000; add new properties
1125         `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
1126         require `final' in UTF-2000; modify for `make_charset'.
1127         (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
1128         instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
1129         (Fcharset_property): Support `mother', `min-code' and `max-code'.
1130         (Fencode_char): New function.
1131         (syms_of_mule_charset): Add new builtin function `encode-char' in
1132         UTF-2000; add new symbols `min-code', `max-code', `mother',
1133         `conversion' and `94x60'; delete symbols `mojikyo',
1134         `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
1135         (complex_vars_of_mule_charset): Modify for `make_charset' change;
1136         delete coded-charsets `mojikyo', `mojikyo-2022-1' and
1137         `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
1138
1139         * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
1140         `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
1141
1142         * char-ucs.h (Vcharset_mojikyo): Deleted.
1143         (Vcharset_mojikyo_2022_1): Deleted.
1144         (LEADING_BYTE_MOJIKYO): Deleted.
1145         (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
1146         (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
1147         (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
1148         (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
1149         add new member `mother'; add new member `conversion'.
1150         (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
1151         (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
1152         (CHARSET_MOTHER): New macro.
1153         (CHARSET_CONVERSION): New macro.
1154         (CONVERSION_IDENTICAL): New macro.
1155         (CONVERSION_94x60): New macro.
1156         (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
1157         (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
1158         (XCHARSET_MOTHER): New macro.
1159         (XCHARSET_CONVERSION): New macro.
1160         (MIN_CHAR_MOJIKYO): Deleted.
1161         (MAX_CHAR_MOJIKYO): Deleted.
1162         (DECODE_MOJIKYO_2022): Deleted.
1163         (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
1164         (charset_code_point): Changed to non-inline function.
1165         (encode_char_1): Use `charset_code_point'.
1166         (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
1167
1168 2001-12-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1169
1170         * lread.c (read_compiled_function): Fix prototype.
1171         (read_vector): Likewise.
1172
1173 2001-12-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1174
1175         * lrecord.h (struct lrecord_header): Delete `older'.
1176         (set_lheader_implementation): Delete code for `older'.
1177         (set_lheader_older_implementation): Deleted.
1178         (enum lrecord_type): Delete `lrecord_type_char_id_table'.
1179         (OLDER_RECORD_P): Deleted.
1180         (OLDER_RECORD_HEADER_P): Deleted.
1181         (alloc_older_lcrecord): Deleted.
1182         (alloc_older_lcrecord_type): Deleted.
1183
1184         * alloc.c (all_older_lcrecords): Deleted.
1185         (alloc_older_lcrecord): Deleted.
1186         (disksave_object_finalization_1): Delete code for older objects.
1187         (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
1188         (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
1189
1190 2001-12-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1191
1192         * mule-charset.c (decoding_table_put_char): Use `make_vector'
1193         instead of `make_older_vector'.
1194         (put_char_ccs_code_point): Likewise.
1195         (mark_charset): Mark `cs->decoding_table'.
1196         (Fset_charset_mapping_table): Don't use `make_vector_newer'.
1197
1198         * lisp.h (make_older_vector): Deleted.
1199         (make_vector_newer): Deleted.
1200
1201         * config.h.in (HAVE_GGC): Deleted.
1202
1203         * alloc.c (make_older_vector): Deleted.
1204         (make_vector_newer_1): Deleted.
1205         (make_vector_newer): Deleted.
1206
1207 2001-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1208
1209         * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
1210         (Qideograph_daikanwa_2): New variable.
1211         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
1212         (complex_vars_of_mule_charset): Add new coded-charset
1213         `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
1214         `LEADING_BYTE_DAIKANWA'.
1215
1216         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
1217         (LEADING_BYTE_DAIKANWA_1): New macro.
1218         (LEADING_BYTE_DAIKANWA_2): New macro.
1219         (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
1220
1221 2001-12-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1222
1223         * mule-charset.c (complex_vars_of_mule_charset): Change
1224         DOC-strings and registry of `ideograph-daikanwa'; now it indicates
1225         the second revised version.
1226
1227 2001-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1228
1229         * mule-charset.c (Vcharset_ucs_smp): New variable.
1230         (Vcharset_ucs_sip): New variable.
1231         (Qucs_smp): New variable.
1232         (Qucs_sip): New variable.
1233         (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
1234         MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
1235         (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
1236         (complex_vars_of_mule_charset): Modify middle-DOC and registry of
1237         `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
1238         charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
1239
1240         * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
1241         (LEADING_BYTE_UCS_SIP): New macro.
1242         (MIN_CHAR_SMP): New macro.
1243         (MAX_CHAR_SMP): New macro.
1244         (MIN_CHAR_SIP): New macro.
1245         (MAX_CHAR_SIP): New macro.
1246
1247 2001-11-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
1248
1249         * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
1250         utf-2000.
1251
1252 2001-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1253
1254         * mule-charset.c (put_char_ccs_code_point): Return canonicalized
1255         value; don't store value into `encoding_table' of `Lisp_Charset'.
1256         (mark_charset): `encoding_table' was deleted.
1257         (charset_description): Likewise.
1258         (make_charset): Likewise.
1259         (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
1260         `put_char_ccs_code_point'.
1261
1262         * chartab.h (Fput_char_attribute): New EXFUN.
1263
1264         * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
1265         is unified with normal symbol space.
1266         (Fget_char_attribute): Likewise.
1267         (Fput_char_attribute): Likewise; behavior of
1268         `put_char_ccs_code_point' is changed.
1269
1270         * char-ucs.h: Include "elhash.h".
1271         (Vchar_attribute_hash_table): New external variable.
1272         (struct Lisp_Charset): Delete `encoding_table'.
1273         (CHARSET_ENCODING_TABLE): New implementation; refer
1274         `Vchar_attribute_hash_table' instead of `encoding_table' of struct
1275         `Lisp_Charset'.
1276
1277 2001-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1278
1279         * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
1280         (cs) == 0.
1281
1282 2001-11-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1283
1284         * text-coding.c (char_encode_big5): Prefer charset-g1 than
1285         `chinese-big5'.
1286
1287 2001-11-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1288
1289         * chartab.c (uint8_byte_table_description): New constant.
1290         (uint8-byte-table): Use `uint8_byte_table_description'.
1291         (uint16_byte_table_description): New constant.
1292         (uint16-byte-table): Use `uint16_byte_table_description'.
1293
1294 2001-10-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1295
1296         * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
1297         range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
1298
1299 2001-10-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1300
1301         * mule-charset.c (Vcharset_ucs_ks): New variable.
1302         (Qucs_ks): New variable.
1303         (syms_of_mule_charset): Add new symbol `ucs-ks'.
1304         (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
1305
1306         * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
1307
1308 2001-10-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1309
1310         * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
1311         (Fdecode_char): Likewise.
1312
1313         * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
1314         chartab.h.
1315         (Fdefine_char): Modify for Fdecode_char.
1316         (Ffind_char): Likewise.
1317
1318         * mule-charset.c (Fdecode_char): Add new optional argument
1319         `defined-only'.
1320         (Fdecode_builtin_char): Modify for `Fdecode_char'.
1321
1322 2001-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1323
1324         * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
1325         -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
1326         (allocate_coding_system): Initialize initial-charsets of
1327         CODESYS_BIG5 in XEmacs UTF-2000.
1328         (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
1329         CODESYS_BIG5 in XEmacs UTF-2000.
1330         (decode_coding_big5): Use initial-charset-g0 and -g1 of
1331         CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
1332
1333         * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
1334         variables.
1335         (Qideograph_hanziku_{1 .. 12}): Likewise.
1336         (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
1337         .. 12}'.
1338         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
1339         `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
1340         `ideograph-hanziku-{1 .. 12}'.
1341
1342         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
1343         (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
1344         ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
1345         ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
1346         (DECODE_DEFINED_CHAR): New inline function.
1347         (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
1348
1349 2001-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1350
1351         * mule-charset.c (Vcharset_china3_jef): Renamed from
1352         `Vcharset_japanese_jef_china3'.
1353         (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
1354         (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
1355         `{MIN|MAX}_CHAR_JEF_CHINA3'..
1356         (syms_of_mule_charset): Rename `china3-jef' from
1357         `japanese-jef-china3'.
1358         (complex_vars_of_mule_charset): Likewise; rename
1359         `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
1360
1361         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
1362         `LEADING_BYTE_JEF_CHINA3'.
1363         (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
1364         (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
1365
1366 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1367
1368         * mule-charset.c (encode_builtin_char_1): Comment out special code
1369         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
1370
1371         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
1372         (MAX_CHAR_MOJIKYO_0): Comment out.
1373         (MIN_CHAR_CBETA): Changed to 0x00E20000.
1374         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
1375         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
1376         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
1377
1378 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1379
1380         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
1381         (Qideograph_cbeta): New variable.
1382         (encode_builtin_char_1): Comment out special code for
1383         coded-charset `mojikyo' and `japanese-jef-china3'.
1384         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
1385         (complex_vars_of_mule_charset): Add new coded-charset
1386         `ideograph-cbeta'.
1387
1388         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
1389         (MIN_CHAR_CBETA): New macro.
1390         (MAX_CHAR_CBETA): New macro.
1391
1392 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1393
1394         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
1395         (LEADING_BYTE_JEF_CHINA3): New macro.
1396         (MIN_CHAR_JEF_CHINA3): New macro.
1397         (MAX_CHAR_JEF_CHINA3): Likewise.
1398         (DECODE_CHAR): Fixed.
1399
1400 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1401
1402         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
1403         (Qjapanese_jef_china3): New variable.
1404         (encode_builtin_char_1): Support `japanese-jef-china3'.
1405         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
1406         (complex_vars_of_mule_charset): Add new coded-charset
1407         `japanese-jef-china3'.
1408
1409 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1410
1411         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
1412         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
1413         94^4, 96^3, 96^4, 128^n and 256^n set.
1414         (put_char_table): Use `XCHARSET_CELL_RANGE'.
1415         (map_char_table): Likewise.
1416
1417 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1418
1419         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
1420         UTF-2000.
1421
1422 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1423
1424         * chartab.h (get_char_id_table): New inline function.
1425
1426         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
1427         function.
1428
1429 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1430
1431         * chartab.h (decode_char_table_range): New prototype in XEmacs
1432         UTF-2000.
1433         (put_char_id_table): New inline function in XEmacs UTF-2000.
1434
1435         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
1436         function.
1437         (decode_char_table_range): Delete static declaration in XEmacs
1438         UTF-2000.
1439
1440 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1441
1442         * chartab.c (put_char_id_table): Use `put_char_table'.
1443
1444 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1445
1446         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
1447         (map_over_uint16_byte_table): Likewise.
1448         (map_over_byte_table): Likewise.
1449         (map_char_table): Modify for `map_over_uint8_byte_table',
1450         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
1451         UTF-2000.
1452
1453 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1454
1455         * chartab.c (struct map_char_table_for_charset_arg): New
1456         structure.
1457         (map_char_table_for_charset_fun): New function.
1458         (map_char_table): Use `map_char_table' for encoding_table of
1459         `range->charset'.
1460
1461 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1462
1463         * chartab.c (map_char_table): Check a character is found in
1464         range->charset instead of non default value is defined in
1465         char-table when range is CHARTAB_RANGE_ROW.
1466
1467 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1468
1469         * chartab.c (map_char_id_table): Deleted.
1470         (Fmap_char_attribute): Use `map_char_table' instead of
1471         `map_char_id_table'.
1472
1473 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1474
1475         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
1476         UTF-2000.
1477         (update_syntax_table): Deleted in XEmacs UTF-2000.
1478
1479         * syntax.c (find_defun_start): Use `syntax_table' instead of
1480         `mirror_syntax_table' in XEmacs UTF-2000.
1481         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
1482         UTF-2000.
1483         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
1484         XEmacs UTF-2000.
1485         (Fmatching_paren): Likewise.
1486         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
1487         in XEmacs UTF-2000.
1488         (find_start_of_comment): Likewise.
1489         (find_end_of_comment): Likewise.
1490         (Fforward_comment): Likewise.
1491         (scan_lists): Likewise.
1492         (char_quoted): Likewise.
1493         (Fbackward_prefix_chars): Likewise.
1494         (scan_sexps_forward): Likewise.
1495         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
1496         (update_syntax_table): Likewise.
1497
1498         * search.c (skip_chars): Use `syntax_table' instead of
1499         `mirror_syntax_table' in XEmacs UTF-2000.
1500         (wordify): Likewise.
1501         (Freplace_match): Likewise.
1502
1503         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
1504         `mirror_syntax_table' in XEmacs UTF-2000.
1505         (WORDCHAR_P_UNSAFE): Likewise.
1506         (re_match_2_internal): Likewise.
1507
1508         * font-lock.c (find_context): Use `buf->syntax_table' instead of
1509         `buf->mirror_syntax_table' in XEmacs UTF-2000.
1510
1511         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
1512         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
1513
1514         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
1515         XEmacs UTF-2000.
1516
1517         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
1518         UTF-2000.
1519         (print_char_table): Print `default_value' in XEmacs UTF-2000.
1520         (char_table_description): Delete `mirror_table' in XEmacs
1521         UTF-2000.
1522         (fill_char_table): Don't call `update_syntax_table' in XEmacs
1523         UTF-2000.
1524         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
1525         (Fcopy_char_table): Likewise.
1526         (put_char_table): Don't call `update_syntax_table' in XEmacs
1527         UTF-2000.
1528
1529         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
1530         `buf->mirror_syntax_table' in XEmacs UTF-2000.
1531         (casify_region_internal): Likewise.
1532
1533         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
1534
1535         * buffer.c (common_init_complex_vars_of_buffer): Don't use
1536         `mirror_syntax_table' in XEmacs UTF-2000.
1537
1538         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
1539         `buf->mirror_syntax_table' in XEmacs UTF-2000.
1540         (Fexpand_abbrev): Likewise.
1541
1542 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1543
1544         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
1545
1546 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1547
1548         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
1549         (map_over_uint16_byte_table): Likewise.
1550         (map_over_byte_table): Likewise.
1551         (get_char_id_table): Refer `cit->default_value'.
1552         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
1553         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
1554         of character-id ranges.
1555         (mark_char_table): Mark `ct->default_value'.
1556         (char_table_description): Add `default_value'.
1557         (fill_char_table): Use `default_value'.
1558         (decode_char_table_range): Decode `nil' as
1559         `CHARTAB_RANGE_DEFAULT'.
1560         (get_char_id_table): Refer `cit->default_value'.
1561         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
1562         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
1563         temporary hack; check value of char-table is bound or not.
1564         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
1565
1566         * chartab.h (struct Lisp_Char_Table): Add new member
1567         `default_value' in XEmacs UTF-2000.
1568         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
1569         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
1570         UTF-2000.
1571
1572 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1573
1574         * chartab.h (Lisp_Char_ID_Table): Deleted.
1575
1576         * chartab.c (char_table_description): Fix typo.
1577         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
1578         `Lisp_Char_ID_Table'.
1579
1580 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1581
1582         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
1583         `CHAR_ID_TABLE_P'.
1584
1585         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
1586         `CHAR_ID_TABLE_P'.
1587
1588         * chartab.h (XCHAR_ID_TABLE): Deleted.
1589         (XSETCHAR_ID_TABLE): Deleted.
1590         (CHAR_ID_TABLE_P): Deleted.
1591
1592         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
1593         `CHAR_ID_TABLE_P'.
1594         (Fget_composite_char): Likewise.
1595         (put_char_table): Likewise.
1596         (add_char_attribute_alist_mapper): Fixed.
1597         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
1598         `CHAR_ID_TABLE_P'.
1599         (Fget_char_attribute): Likewise.
1600         (Fget_char_attribute): Likewise.
1601         (Fmap_char_attribute): Likewise.
1602
1603         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
1604         `CHAR_ID_TABLE_P'.
1605         (encode_char_1): Likewise.
1606
1607 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1608
1609         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
1610         `XCHAR_ID_TABLE'.
1611
1612         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
1613         instead of `XCHAR_ID_TABLE'.
1614         (remove_char_ccs): Likewise.
1615
1616         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
1617         `XCHAR_ID_TABLE'.
1618         (Fget_composite_char): Likewise.
1619         (Fchar_variants): Likewise.
1620         (put_char_table): Likewise.
1621         (add_char_attribute_alist_mapper): Likewise.
1622         (Fchar_attribute_alist): Likewise.
1623         (Fget_char_attribute): Likewise.
1624         (Fput_char_attribute): Likewise.
1625         (Fmap_char_attribute): Likewise.
1626         (Fmap_char_attribute): Likewise.
1627
1628         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
1629         `XCHAR_ID_TABLE'.
1630         (encode_char_1): Likewise.
1631
1632 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1633
1634         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
1635         `Lisp_Char_ID_Table'.
1636         (mark_char_id_table): Deleted.
1637         (print_char_id_table): Likewise.
1638         (char_id_table_equal): Likewise.
1639         (char_id_table_hash): Likewise.
1640         (char_id_table_description): Likewise.
1641         (char_id_table): Likewise.
1642         (make_char_id_table): Use `Fmake_char_table' and
1643         `fill_char_table'.
1644         (get_char_id_table): Use `Lisp_Char_Table' instead of
1645         `Lisp_Char_ID_Table'.
1646         (put_char_id_table): Likewise.
1647         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
1648         `XCHAR_ID_TABLE'.
1649         (Fremove_char_attribute): Likewise.
1650         (syms_of_chartab): Don't define type `char-id-table'.
1651
1652         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
1653         (char_id_table): Likewise.
1654         (GC_CHAR_ID_TABLE_P): Likewise.
1655         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
1656         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
1657         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
1658         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
1659         (get_char_id_table): Use `Lisp_Char_Table' instead of
1660         `Lisp_Char_ID_Table'.
1661         (put_char_id_table_0): Likewise.
1662         (put_char_id_table): Likewise.
1663
1664 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1665
1666         * chartab.h: Lisp_Byte_Table related codes are moved from
1667         chartab.h.
1668
1669         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
1670
1671 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1672
1673         * chartab.h: Don't include "chartab.h".
1674         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
1675         (Lisp_Char_ID_Table): Likewise.
1676         (char_id_table): Likewise.
1677         (XCHAR_ID_TABLE): Likewise.
1678         (XSETCHAR_ID_TABLE): Likewise.
1679         (CHAR_ID_TABLE_P): Likewise.
1680         (GC_CHAR_ID_TABLE_P): Likewise.
1681         (get_char_id_table): Likewise.
1682
1683         * char-ucs.h: Include "chartab.h".
1684         (struct Lisp_Char_ID_Table): Moved to chartab.h.
1685         (Lisp_Char_ID_Table): Likewise.
1686         (char_id_table): Likewise.
1687         (XCHAR_ID_TABLE): Likewise.
1688         (XSETCHAR_ID_TABLE): Likewise.
1689         (CHAR_ID_TABLE_P): Likewise.
1690         (GC_CHAR_ID_TABLE_P): Likewise.
1691         (get_char_id_table): Likewise.
1692
1693 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1694
1695         * chartab.c (copy_uint8_byte_table): New function.
1696         (copy_uint16_byte_table): New function.
1697         (copy_byte_table): New function.
1698         (map_over_uint8_byte_table): Modify to avoid huge numbers of
1699         characters to call.
1700         (map_over_uint16_byte_table): Likewise.
1701         (map_over_byte_table): Likewise.
1702         (get_byte_table): Move prototype to chartab.h.
1703         (put_byte_table): Likewise.
1704         (put_char_id_table_0): Moved to chartab.h.
1705         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
1706         (char_table_entry_equal): Likewise.
1707         (char_table_entry_hash): Likewise.
1708         (char_table_entry_description): Likewise.
1709         (char_table_entry): Likewise.
1710         (make_char_table_entry): Likewise.
1711         (copy_char_table_entry): Likewise.
1712         (get_non_ascii_char_table_value): Likewise.
1713         (map_over_charset_ascii): Likewise.
1714         (map_over_charset_control_1): Likewise.
1715         (map_over_charset_row): Likewise.
1716         (map_over_other_charset): Likewise.
1717         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
1718         (print_char_table): Likewise.
1719         (char_table_equal): Likewise.
1720         (char_table_hash): Likewise.
1721         (char_table_description): Likewise.
1722         (fill_char_table): Likewise.
1723         (Fcopy_char_table): Likewise.
1724         (get_char_table): Likewise.
1725         (Fget_range_char_table): Likewise.
1726         (put_char_table): Likewise.
1727         (map_char_table): Likewise.
1728         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
1729         UTF-2000.
1730
1731 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1732
1733         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
1734         `Vauto_fill_chars' in XEmacs UTF-2000.
1735
1736         * chartab.h (get_byte_table): New prototype [moved from
1737         chartab.c].
1738         (put_byte_table): Likewise [moved from chartab.c].
1739         (put_char_id_table_0): New inline function [moved from chartab.c].
1740         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
1741         (Lisp_Char_Table_Entry): Likewise.
1742         (char_table_entry): Likewise.
1743         (XCHAR_TABLE_ENTRY): Likewise.
1744         (XSETCHAR_TABLE_ENTRY): Likewise.
1745         (CHAR_TABLE_ENTRYP): Likewise.
1746         (CHECK_CHAR_TABLE_ENTRY): Likewise.
1747         (NUM_ASCII_CHARS): Likewise.
1748         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
1749         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
1750
1751 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1752
1753         * chartab.c (get_char_id_table): Change interface.
1754         (put_char_id_table_0): New function.
1755         (put_char_id_table): Change interface; new implementation.
1756         (Fget_composite_char): Modify for interface change of
1757         `get_char_id_table'.
1758         (Fchar_variants): Likewise.
1759         (add_char_attribute_alist_mapper): Likewise.
1760         (Fchar_attribute_alist): Likewise.
1761         (Fget_char_attribute): Likewise.
1762         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
1763         as same as character as the first argument like `put-char-table';
1764         modify for interface change of `put_char_id_table'.
1765         (Fremove_char_attribute): Modify for interface change of
1766         `put_char_id_table'.
1767
1768 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1769
1770         * text-coding.c: Sync up with XEmacs 21.2.41.
1771         (COMPOSE_ADD_CHAR): Modify for interface change of
1772         `get_char_id_table'.
1773
1774         * mule-charset.c (put_char_ccs_code_point): Modify for interface
1775         change of `put_char_id_table'.
1776         (remove_char_ccs): Likewise.
1777
1778         * chartab.h (put_char_id_table): Change interface.
1779
1780         * char-ucs.h (get_char_id_table): Change interface.
1781         (charset_code_point): Modify for interface change of
1782         `get_char_id_table'.
1783         (encode_char_1): Likewise.
1784
1785 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1786
1787         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
1788         argument `ccs'.
1789         (map_over_uint16_byte_table): Likewise.
1790         (map_over_byte_table): Likewise.
1791         (map_char_id_table): Add new argument `range' like
1792         `map_char_table'.
1793         (Fmap_char_attribute): Add new argument `range' like
1794         `Fmap_char_table'.
1795
1796 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1797
1798         * chartab.c (map_over_uint8_byte_table): Change interface of
1799         mapping function to use struct chartab_range instead of Emchar.
1800         (map_over_uint16_byte_table): Likewise.
1801         (map_over_byte_table): Likewise.
1802         (map_char_id_table): Likewise.
1803         (struct slow_map_char_id_table_arg): Deleted.
1804         (slow_map_char_id_table_fun): Deleted.
1805         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
1806         function `slow_map_char_table_fun' instead of struct
1807         `slow_map_char_id_table_arg' and function
1808         `slow_map_char_id_table_fun'.
1809
1810 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1811
1812         * mule-charset.c: Move char-it-table related codes to chartab.c.
1813         (Vutf_2000_version): Moved to chartab.c.
1814         (Fdefine_char): Likewise.
1815         (Ffind_char): Likewise.
1816         (syms_of_mule_charset): Move types `uint8-byte-table',
1817         `uint16-byte-table', `byte-table' and `char-id-table' to
1818         chartab.c; move functions `char_attribute_list,
1819         `find_char_attribute_table, `char_attribute_alist,
1820         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
1821         `map_char_attribute, `define_char, `find_char, `char_variants and
1822         `get_composite_char to chartab.c; move symbols `=>ucs',
1823         `->decomposition', `compat', `isolated', `initial', `medial',
1824         `final', `vertical', `noBreak', `fraction', `super', `sub',
1825         `circle', `square', `wide', `narrow', `small' and `font' to
1826         chartab.c.
1827         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
1828         setting codes for `Vcharacter_composition_table' and
1829         `Vcharacter_variant_table' to chartab.c.
1830         (complex_vars_of_mule_charset): Move setting code for
1831         `Vchar_attribute_hash_table' to chartab.c.
1832
1833         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
1834         (make_char_id_table): New prototype.
1835         (put_char_id_table): Likewise.
1836         (Fget_char_attribute): Likewise.
1837
1838         * chartab.c: Move char-id-table related code from mule-charset.c.
1839         (Vutf_2000_version): Moved from mule-charset.c.
1840
1841         * char-ucs.h (Qucs): New external variable.
1842         (put_char_ccs_code_point): New prototype.
1843         (remove_char_ccs): Likewise.
1844
1845 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1846
1847         * mule-charset.c (Vcharset_ucs_jis): New variable.
1848         (Qucs_jis): Likewise.
1849         (syms_of_mule_charset): Add new symbol `ucs-jis'.
1850         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
1851
1852         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
1853
1854 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1855
1856         * mule-charset.c (map_over_uint8_byte_table): New function.
1857         (map_over_uint16_byte_table): Likewise.
1858         (map_over_byte_table): Likewise.
1859         (map_char_id_table): Likewise.
1860         (slow_map_char_id_table_fun): Likewise.
1861         (Fmap_char_attribute): Likewise.
1862         (syms_of_mule_charset): Add new function `map-char-attribute'.
1863
1864 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1865
1866         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
1867         (syms_of_mule_charset): Add new function `find-char'.
1868
1869 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1870
1871         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
1872         XEmacs UTF-2000.
1873         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
1874         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
1875         XEmacs UTF-2000.
1876         (complex_vars_of_mule_charset): Add new coded-charset
1877         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
1878         `ideograph-gt-pj-*'.
1879
1880         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
1881
1882 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1883
1884         * mule-charset.c (encode_builtin_char_1): Purge codes about
1885         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
1886         {MIN|MAX}_CHAR_HEBREW.
1887         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
1888         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
1889
1890         * char-ucs.h (MIN_CHAR_GREEK): Purged.
1891         (MAX_CHAR_GREEK): Purged.
1892         (MIN_CHAR_CYRILLIC): Purged.
1893         (MAX_CHAR_CYRILLIC): Purged.
1894         (MIN_CHAR_HEBREW): Commented out.
1895         (MAX_CHAR_HEBREW): Likewise.
1896
1897 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1898
1899         * mule-charset.c (Qto_ucs): New variable.
1900         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
1901         (Fdefine_char): Likewise.
1902         (syms_of_mule_charset): Add new symbol `=>ucs'.
1903
1904 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1905
1906         * mule-charset.c (Fdecode_char): Fixed.
1907
1908 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1909
1910         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
1911         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
1912         "tcvn5712-1".
1913
1914 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1915
1916         * mule-charset.c (Vcharset_ucs_big5): New variable.
1917         (Qucs_big5): Likewise.
1918         (syms_of_mule_charset): Add new symbol `ucs-big5'.
1919         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
1920
1921         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
1922
1923 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1924
1925         * mule-charset.c (decode_builtin_char): Check Big5 code range
1926         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
1927
1928 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1929
1930         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
1931         (Qchinese_gb12345): Likewise.
1932         (Fdecode_builtin_char): Fixed.
1933         (syms_of_mule_charset): Add `chinese-gb12345'.
1934         (complex_vars_of_mule_charset): Add coded-charset
1935         `chinese-gb12345'.
1936
1937         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
1938         (LEADING_BYTE_CHINESE_GB12345): New macro.
1939
1940 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1941
1942         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
1943         and `latin-viscii-upper' for `latin-viscii'.
1944
1945 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1946
1947         * mule-charset.c (Fdecode_builtin_char): Comment out
1948         regularization code for ISO-IR GR representation.
1949
1950 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1951
1952         * mule-charset.c (decode_builtin_char): New function; renamed from
1953         `make_builtin_char'; return -1 instead of signal.
1954         (Fdecode_builtin_char): Use `decode_builtin_char'.
1955
1956         * char-ucs.h (decode_builtin_char): New prototype; renamed from
1957         `make_builtin_char'.
1958         (DECODE_CHAR): Use `decode_builtin_char' instead of
1959         `make_builtin_char'; use mapping table of `chinese-big5' for
1960         `chinese-big5-{1,2}'.
1961
1962 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1963
1964         * text-coding.c (char_encode_big5): New function.
1965         (char_finish_big5): Likewise.
1966         (reset_encoding_stream): Use `char_encode_big5' and
1967         `char_finish_big5' for CODESYS_BIG5.
1968         (mule_encode): Don't use `encode_coding_big5'.
1969         (encode_coding_big5): Deleted.
1970
1971 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1972
1973         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
1974         0x81- in XEmacs UTF-2000.
1975         (detect_coding_big5): Likewise.
1976
1977 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1978
1979         * mule-charset.c (Fdefine_char): Don't use a CCS property to
1980         generate character-id if the CCS property does not have
1981         corresponding predefined character.
1982         (make_builtin_char): Return -1 if corresponding predefined
1983         character is not found.
1984         (Fdecode_char): Return nil if corresponding character is not
1985         found.
1986         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
1987         don't map to builtin ucs space.
1988
1989 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1990
1991         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
1992         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
1993
1994 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1995
1996         * mule-charset.c (Vcharset_ideograph_gt): New variable.
1997         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
1998         (Qideograph_gt): Likewise.
1999         (Qideograph_gt_pj_{1..11}): Likewise.
2000         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
2001         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
2002         `ideograph-gt-pj-11'.
2003         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
2004         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
2005         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
2006
2007         * char-ucs.h (LEADING_BYTE_GT): New macro.
2008         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
2009         (MIN_CHAR_GT): Likewise.
2010         (MAX_CHAR_GT): Likewise.
2011
2012 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2013
2014         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
2015         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
2016
2017         * doprnt.c (unsigned_int_converters): Add `c'.
2018         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
2019
2020         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
2021         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
2022         `MIN_CHAR_MOJIKYO'.
2023         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
2024         (MAX_CHAR_MOJIKYO_0): New macro.
2025         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
2026
2027 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2028
2029         * mule-charset.c (Fdefine_char): Delete cemented out code.
2030         (encode_builtin_char_1): Modify for new allocation of builtin
2031         Mojikyo characters.
2032
2033         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
2034
2035 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2036
2037         * mule-charset.c (Vcharset_ucs_cns): New variable.
2038         (Qucs_cns): New variable.
2039         (syms_of_mule_charset): Add new symbol `ucs-cns'.
2040         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
2041
2042 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2043
2044         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
2045
2046 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
2047
2048         * search.c (search_buffer): Make `charset_base_code' as
2049         character-id >> 6 to eliminate the corresponding last byte in
2050         UTF-8 representation [I'm not sure it is right thing].
2051         (boyer_moore): Likewise.
2052
2053 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
2054
2055         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
2056         representation in MULE.
2057
2058 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2059
2060         * text-coding.c (Fmake_coding_system): Use
2061         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
2062         `EXTERNAL_PROPERTY_LIST_LOOP'.
2063
2064 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2065
2066         * text-coding.c (decode_output_utf8_partial_char): New function.
2067         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
2068
2069 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2070
2071         * text-coding.c (decode_coding_utf8): Output original byte
2072         sequence if it is broken; change order of conditions.
2073
2074         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
2075         of conditions.
2076
2077         * mb-multibyte.h (BYTE_ASCII_P):
2078         Use bit ops for char-signedness safety.
2079         (BYTE_C0_P): Use bit ops for char-signedness safety.
2080         (BYTE_C1_P): Use bit ops for char-signedness safety.
2081
2082         * character.h: (XCHAR_OR_CHAR_INT):
2083         Always use inline function.
2084         Remove redundant type checking assert() - XINT will abort quite
2085         nicely.
2086
2087 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2088
2089         * text-coding.c: (Fencode_shift_jis_char):
2090         (Fencode_big5_char):
2091         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
2092         Replace 0 with '\0' when working with bytes.
2093         Replace initial "(" with "\(" in docstrings.
2094
2095         (Fmake_coding_system):
2096         When type is ccl and value is vector, register it with a proper
2097         symbol.  And checks whether the given ccl program is valid.
2098         (mule_decode): When calling ccl_driver, if src indicates
2099         NULL pointer, set an empty string instead.
2100         (mule_encode): Likewise.
2101
2102         (detect_eol_type):
2103         (detect_coding_sjis):
2104         (decode_coding_sjis):
2105         (detect_coding_big5):
2106         (decode_coding_big5):
2107         (detect_coding_ucs4):
2108         (decode_coding_ucs4):
2109         (detect_coding_utf8):
2110         (decode_coding_utf8):
2111         (detect_coding_iso2022):
2112         (decode_coding_iso2022):
2113         (decode_coding_no_conversion):
2114         (mule_decode):
2115         Make all detecting and decoding functions take an Extbyte * arg.
2116         (text_encode_generic):
2117         (encode_coding_big5):
2118         (encode_coding_no_conversion):
2119         (mule_encode):
2120         Make all encoding functions take a Bufbyte * arg.
2121         Use size_t instead of unsigned int for memory sizes.
2122         Only cast to unsigned char whenever dereferencing Extbyte *.
2123
2124         (struct lrecord_description fcd_description_1): Use countof.
2125         (complex_vars_of_file_coding):
2126         Use countof instead of sizeof.
2127         Use CHECK_NATNUM instead of CHECK_INT.
2128
2129 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2130
2131         * mule-charset.c (Fget_char_attribute): Add new optional argument
2132         `default-value'.
2133         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
2134         (remove_char_ccs): Likewise.
2135
2136 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2137
2138         * text-coding.c (char_encode_shift_jis): New implementation in
2139         UTF-2000.
2140         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
2141         ...)'.
2142
2143         * mule-charset.c (Vcharset_chinese_big5): New variable in
2144         UTF-2000.
2145         (Qchinese_big5): New variable in UTF-2000.
2146         (BIG5_SAME_ROW): New macro in UTF-2000.
2147         (make_builtin_char): Use builtin characters of
2148         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
2149         characters of `Vcharset_chinese_big5'.
2150         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
2151         (complex_vars_of_mule_charset): Add new coded-charset
2152         `chinese-big5' in UTF-2000.
2153
2154         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
2155         (Vcharset_chinese_big5): New external variable declaration.
2156         (Vcharset_japanese_jisx0208_1990): Likewise.
2157
2158 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2159
2160         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
2161         function.
2162         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
2163
2164 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2165
2166         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
2167         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
2168         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
2169         `mojikyo-pj-*'.
2170
2171 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2172
2173         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
2174
2175 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2176
2177         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2178         to 0.17.
2179
2180 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2181
2182         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
2183         for `CHARSET_BY_ATTRIBUTES'.
2184         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
2185         `CHARSET_BY_ATTRIBUTES'.
2186
2187         * text-coding.c (struct decoding_stream): Rename member `CH' to
2188         `CPOS'.
2189         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
2190         (decode_coding_sjis): Likewise.
2191         (decode_coding_big5): Likewise.
2192         (decode_coding_ucs4): Likewise.
2193         (decode_coding_utf8): Likewise.
2194         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
2195         `CHARSET_BY_ATTRIBUTES'.
2196         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
2197         `str->counter'; decode 3, 4 bytes sets.
2198         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
2199         sets.
2200         (decode_coding_no_conversion): Use `str->cpos' instead of
2201         `str->ch'.
2202
2203         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
2204         (Qmojikyo_2022_1): New variable.
2205         (make_charset): Don't use `CHARSET_TYPE_*'.
2206         (range_charset_code_point): Support coded-charset
2207         `mojikyo-2022-1'.
2208         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
2209         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
2210         `CHARSET_BY_ATTRIBUTES'.
2211         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
2212         `CHARSET_BY_ATTRIBUTES'.
2213         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
2214         (complex_vars_of_mule_charset): Add new coded-charset
2215         `mojikyo-2022-1'.
2216
2217         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
2218         interface; changed to inline function.
2219
2220         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
2221         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
2222         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
2223         (CHARSET_TYPE_94): Deleted.
2224         (CHARSET_TYPE_94X94): Deleted.
2225         (CHARSET_TYPE_96): Deleted.
2226         (CHARSET_TYPE_96X96): Deleted.
2227         (CHARSET_TYPE_128): Deleted.
2228         (CHARSET_TYPE_128X128): Deleted.
2229         (CHARSET_TYPE_256): Deleted.
2230         (CHARSET_TYPE_256X256): Deleted.
2231         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
2232         to inline function.
2233         (DECODE_MOJIKYO_2022): New inline function.
2234         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
2235         `Vcharset_mojikyo_2022_1'.
2236
2237 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2238
2239         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
2240         instead of `EQ'.
2241         (put_byte_table): Likewise.
2242         (char_id_table_equal): Use `get_byte_table' [new implementation].
2243
2244 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2245
2246         * mule-charset.c: Include <limits.h> in UTF-2000.
2247         (BT_UINT8_MIN): New macro in UTF-2000.
2248         (BT_UINT8_MAX): New macro in UTF-2000.
2249         (BT_UINT8_t): New macro in UTF-2000.
2250         (BT_UINT8_nil): New macro in UTF-2000.
2251         (BT_UINT8_unbound): New macro in UTF-2000.
2252         (INT_UINT8_P): New inline function in UTF-2000.
2253         (UINT8_VALUE_P): New inline function in UTF-2000.
2254         (UINT8_ENCODE): New inline function in UTF-2000.
2255         (UINT8_DECODE): New inline function in UTF-2000.
2256         (mark_uint8_byte_table): New function in UTF-2000.
2257         (print_uint8_byte_table): New function in UTF-2000.
2258         (uint8_byte_table_equal): New function in UTF-2000.
2259         (uint8_byte_table_hash): New function in UTF-2000.
2260         (make_uint8_byte_table): New function in UTF-2000.
2261         (uint8_byte_table_same_value_p): New function in UTF-2000.
2262         (BT_UINT16_MIN): New macro in UTF-2000.
2263         (BT_UINT16_MAX): New macro in UTF-2000.
2264         (BT_UINT16_t): New macro in UTF-2000.
2265         (BT_UINT16_nil): New macro in UTF-2000.
2266         (BT_UINT16_unbound): New macro in UTF-2000.
2267         (INT_UINT16_P): New inline function in UTF-2000.
2268         (UINT16_VALUE_P): New inline function in UTF-2000.
2269         (UINT16_ENCODE): New inline function in UTF-2000.
2270         (UINT16_DECODE): New inline function in UTF-2000.
2271         (UINT8_TO_UINT16): New inline function in UTF-2000.
2272         (mark_uint16_byte_table): New function in UTF-2000.
2273         (print_uint16_byte_table): New function in UTF-2000.
2274         (uint16_byte_table_equal): New function in UTF-2000.
2275         (uint16_byte_table_hash): New function in UTF-2000.
2276         (make_uint16_byte_table): New function in UTF-2000.
2277         (uint16_byte_table_same_value_p): New function in UTF-2000.
2278         (print_byte_table): New function in UTF-2000.
2279         (byte-table): Use `print_byte_table' as printer.
2280         (make_byte_table): Delete second argument `older'.
2281         (byte_table_same_value_p): New function in UTF-2000.
2282         (copy_byte_table): Deleted.
2283         (get_byte_table): New function in UTF-2000.
2284         (put_byte_table): New function in UTF-2000.
2285         (print_char_id_table): New function in UTF-2000.
2286         (char-id-table): Use `print_char_id_table' as printer.
2287         (make_char_id_table): Delete second argument `older'.
2288         (get_char_id_table): Use `get_byte_table [new implementation].
2289         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
2290         implementation].
2291         (Ffind_char_attribute_table): New function in UTF-2000.
2292         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
2293         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
2294         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
2295         (syms_of_mule_charset): Add new function
2296         `find-char-attribute-table' in UTF-2000.
2297
2298         * lrecord.h (enum lrecord_type): Add
2299         `lrecord_type_uint16_byte_table' and
2300         `lrecord_type_uint8_byte_table'.
2301
2302         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
2303         (Lisp_Uint8_Byte_Table): New type.
2304         (XUINT8_BYTE_TABLE): New macro.
2305         (XSETUINT8_BYTE_TABLE): New macro.
2306         (UINT8_BYTE_TABLE_P): New macro.
2307         (GC_UINT8_BYTE_TABLE_P): New macro.
2308         (struct Lisp_Uint16_Byte_Table): New structure.
2309         (Lisp_Uint16_Byte_Table): New type.
2310         (XUINT16_BYTE_TABLE): New macro.
2311         (XSETUINT16_BYTE_TABLE): New macro.
2312         (UINT16_BYTE_TABLE_P): New macro.
2313         (GC_UINT16_BYTE_TABLE_P): New macro.
2314
2315 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2316
2317         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
2318         (Vcharacter_ideographic_strokes_table): Deleted.
2319         (Vcharacter_total_strokes_table): Deleted.
2320         (Vcharacter_morohashi_daikanwa_table): Deleted.
2321         (Vcharacter_decomposition_table): Deleted.
2322         (Qname): Deleted because it is duplicated.
2323         (Qideographic_radical): Deleted.
2324         (Qideographic_strokes): Deleted.
2325         (Qtotal_strokes): Deleted.
2326         (Qmorohashi_daikanwa): Deleted.
2327         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
2328         `ideographic-radical', `ideographic-strokes', `total-strokes',
2329         `morohashi-daikanwa' and `->decomposition'.
2330         (Fget_char_attribute): Likewise.
2331         (Fput_char_attribute): Likewise; use `make-vector' instead of
2332         `make_older_vector' for `->decomposition' value.
2333         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
2334         `ideograph-daikanwa'.
2335         (syms_of_mule_charset): Delete builtin symbols `name',
2336         `ideographic-radical', `ideographic-strokes', `total-strokes' and
2337         `morohashi-daikanwa'.
2338         (vars_of_mule_charset): Don't setup
2339         `Vcharacter_ideographic_radical_table',
2340         `Vcharacter_ideographic_strokes_table',
2341         `Vcharacter_total_strokes_table',
2342         `Vcharacter_morohashi_daikanwa_table' and
2343         `Vcharacter_decomposition_table'.
2344
2345 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2346
2347         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
2348         `make_older_vector', `make_vector_newer_1' and
2349         `make_vector_newer'.
2350
2351         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
2352         `make_older_vector' and `make_vector_newer'.
2353
2354         * config.h.in (HAVE_GGC): New macro.
2355
2356 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2357
2358         * mule-charset.c (struct char_attribute_list_closure): New
2359         structure in UTF-2000.
2360         (add_char_attribute_to_list_mapper): New function in UTF-2000.
2361         (Fchar_attribute_list): Likewise.
2362         (Fset_charset_mapping_table): Use `make_vector_newer'.
2363         (Fdecode_builtin_char): New function in UTF-2000.
2364         (syms_of_mule_charset): Add new function `char-attribute-list' and
2365         `decode-builtin-char' in UTF-2000.
2366
2367         * lisp.h (make_vector_newer): New prototype.
2368
2369         * alloc.c (make_vector_newer_1): New function.
2370         (make_vector_newer): New function.
2371
2372 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2373
2374         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
2375         50100)'.
2376
2377 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2378
2379         * mule-charset.c (Vchar_attribute_hash_table): New variable.
2380         (Vcharacter_attribute_table): Deleted.
2381         (Vcharacter_name_table): Deleted.
2382         (put_char_attribute): Deleted.
2383         (remove_char_attribute): Deleted.
2384         (struct char_attribute_alist_closure): New structure.
2385         (add_char_attribute_alist_mapper): New function.
2386         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
2387         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
2388         (Fget_char_attribute): Likewise.
2389         (Fput_char_attribute): Likewise.
2390         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
2391         of `remove_char_attribute'.
2392         (Fdefine_char): Return character.
2393         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
2394         and `Vcharacter_name_table'.
2395         (complex_vars_of_mule_charset): Likewise
2396         `Vchar_attribute_hash_table'.
2397
2398 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2399
2400         * character.h (CHARC_CHARSET): New macro.
2401         (CHARC_CHARSET_ID): New macro.
2402         (CHARC_CODE_POINT): New macro.
2403         (CHARC_COLUMNS): New macro.
2404         (CHARC_TO_CHAR): New inline function.
2405         (CHARC_EQ): New inline function.
2406         (CHARC_ASCII_EQ): New inline function.
2407         (CHARC_IS_SPACE): New inline function.
2408         (ASCII_TO_CHARC): New inline function.
2409
2410         * char-ucs.h (encode_char_2): Deleted.
2411         (ENCODE_CHAR): Use `encode_char_1' again.
2412         (breakup_char_1): Likewise.
2413         (CHAR_TO_CHARC): New inline function.
2414
2415         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
2416
2417 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2418
2419         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
2420         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
2421         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
2422         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
2423         (create_string_text_block): Use `CHARC_ASCII_EQ' and
2424         `CHARC_IS_SPACE'.
2425         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
2426
2427         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
2428         `CHARC_CODE_POINT'.
2429         (x_output_display_block): Use `CHARC_CHARSET' and
2430         `CHARC_ASCII_EQ'.
2431
2432         * redisplay-tty.c (tty_output_display_block): Use
2433         `CHARC_ASCII_EQ'.
2434         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
2435
2436         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
2437
2438         * insdel.c (find_charsets_in_charc_string): Use
2439         `CHARC_CHARSET_ID'.
2440         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
2441         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
2442         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
2443         (convert_charc_string_into_malloced_string): Likewise.
2444
2445 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2446
2447         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
2448         instead of <Emchar_dynarr *> for buf; use
2449         `convert_bufbyte_string_into_charc_dynarr' instead of
2450         `convert_bufbyte_string_into_emchar_dynarr'; use
2451         `find_charsets_in_charc_string' instead of
2452         `find_charsets_in_emchar_string'.
2453
2454         * redisplay.h:
2455         - Include "character.h".
2456         (struct rune): New member `cglyph'; delete member `chr'.
2457
2458         * redisplay.c (redisplay_text_width_charc_string): New function;
2459         delete `redisplay_text_width_emchar_string'.
2460         (rtw_charc_dynarr): New variable; renamed from
2461         `rtw_emchar_dynarr'.
2462         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
2463         `rtw_emchar_dynarr'; use
2464         `convert_bufbyte_string_into_charc_dynarr' instead of
2465         `convert_bufbyte_string_into_emchar_dynarr'; use
2466         `redisplay_text_width_charc_string' instead of
2467         `redisplay_text_width_emchar_string'.
2468         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
2469         instead of `rtw_emchar_dynarr'; use
2470         `convert_bufbyte_string_into_charc_dynarr' instead of
2471         `convert_bufbyte_string_into_emchar_dynarr'.
2472         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
2473         `redisplay_text_width_charc_string' instead of
2474         `redisplay_text_width_emchar_string'.
2475         (create_text_block): Modify for <struct rune> change.
2476         (generate_formatted_string_db): Likewise.
2477         (create_string_text_block): Likewise.
2478         (pixel_to_glyph_translation): Likewise.
2479
2480         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
2481         instead of <const Emchar *>.
2482         (x_text_width): Likewise.
2483         (x_output_display_block): Use <Charc_dynarr *> instead
2484         <Emchar_dynarr *>; modify for <structure rune> change.
2485         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
2486         *>.
2487
2488         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
2489         <const Emchar *>; use `charc_string_displayed_columns' instead of
2490         `emchar_string_displayed_columns'.
2491         (tty_output_display_block): Use <Charc_dynarr *> instead of
2492         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
2493         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
2494         (tty_output_charc_dynarr_dynarr): New variable; renamed from
2495         `tty_output_emchar_dynarr_dynarr'.
2496         (tty_output_charc_dynarr): New function; delete
2497         `tty_output_charc_dynarr'.
2498
2499         * redisplay-output.c (compare_runes): Modify for `struct rune'.
2500         (redisplay_output_layout): Use <Charc_dynarr *> instead of
2501         <Emchar_dynarr *> for buf; use
2502         `convert_bufbyte_string_into_charc_dynarr' instead of
2503         `convert_bufbyte_string_into_emchar_dynarr'.
2504
2505         * frame.c (title_string_charc_dynarr): New variable; renamed from
2506         `title_string_emchar_dynarr'.
2507         (generate_title_string): Use `title_string_charc_dynarr' instead
2508         of `title_string_emchar_dynarr'; use
2509         `convert_charc_string_into_malloced_string' instead of
2510         `convert_emchar_string_into_malloced_string'.
2511         (init_frame): Use `title_string_charc_dynarr' instead of
2512         `title_string_emchar_dynarr'.
2513
2514         * console.h:
2515         - Include "character.h".
2516         (struct console_methods): Use <const Charc *> instead of <const
2517         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
2518         <Emchar_dynarr *> in output_string_method.
2519
2520         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
2521         <Emchar_dynarr *>.
2522
2523         * console-stream.c (stream_text_width): Use <const Charc *>
2524         instead of <const Emchar *>.
2525
2526         * character.h (Charc_dynarr): New type.
2527
2528         * char-ucs.h (structure Charc): New structure; define new type
2529         `Charc'.
2530
2531         * char-lb.h (DECODE_CHAR): New inline function.
2532         (encode_char_1): New inline function.
2533         (ENCODE_CHAR): New macro.
2534         (structure Charc): New structure; define new type `Charc'.
2535
2536         * char-1byte.h (Vcharset_control_1): New macro.
2537         (Vcharset_latin_iso8859_1): New macro.
2538         (DECODE_CHAR): New inline function.
2539         (encode_char_1): New inline function.
2540         (ENCODE_CHAR): New macro.
2541         (structure Charc): New structure; define new type `Charc'.
2542
2543         * insdel.c (find_charsets_in_charc_string): New function; delete
2544         `find_charsets_in_emchar_string'.
2545         (charc_string_displayed_columns): New function; delete
2546         `emchar_string_displayed_columns'.
2547         (convert_bufbyte_string_into_charc_dynarr): New function; delete
2548         `convert_bufbyte_string_into_emchar_dynarr'.
2549         (convert_charc_string_into_bufbyte_dynarr): New function; delete
2550         `convert_charc_string_into_bufbyte_dynarr'.
2551         (convert_charc_string_into_malloced_string): New function; delete
2552         `convert_charc_string_into_malloced_string'.
2553
2554         * buffer.h (find_charsets_in_charc_string): New prototype; delete
2555         `find_charsets_in_emchar_string'.
2556         (charc_string_displayed_columns): New prototype; delete
2557         `emchar_string_displayed_columns'.
2558         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
2559         `convert_charc_string_into_bufbyte_dynarr'.
2560         (convert_charc_string_into_malloced_string): New prototype; delete
2561         `convert_charc_string_into_malloced_string'.
2562
2563 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2564
2565         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
2566
2567 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2568
2569         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
2570
2571         * char-ucs.h: Use <short> for <Charset_ID>.
2572
2573         * mule-charset.h, char-1byte.h: Use <unsigned char> for
2574         <Charset_ID>.
2575
2576 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2577
2578         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2579         to 0.16.
2580
2581 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2582
2583         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
2584         variable.
2585         (Qmorohashi_daikanwa): New variable.
2586         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
2587         for `morohashi-daikanwa' attribute.
2588         (Fget_char_attribute): Likewise.
2589         (Fput_char_attribute): Likewise.
2590         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
2591         has the same value of `ideograph-daikanwa'.
2592         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
2593         (vars_of_mule_charset): Setup
2594         `Vcharacter_morohashi_daikanwa_table'.
2595
2596 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2597
2598         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
2599         attributes.
2600         (add_charset_to_list_mapper): Add `key' instead of
2601         `XCHARSET_NAME (value)' to return aliases.
2602
2603 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2604
2605         * mule-charset.c (Vcharacter_ideographic_radical_table): New
2606         variable.
2607         (Vcharacter_ideographic_strokes_table): New variable.
2608         (Qideographic_radical): New variable.
2609         (Qideographic_strokes): New variable.
2610         (Fchar_attribute_alist): Use
2611         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
2612         attribute; use `Vcharacter_ideographic_strokes_table' for
2613         `ideographic-strokes' attribute.
2614         (Fget_char_attribute): Likewise.
2615         (Fput_char_attribute): Likewise.
2616         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
2617         `ideographic-strokes'.
2618         (vars_of_mule_charset): Setup
2619         `Vcharacter_ideographic_radical_table' and
2620         `Vcharacter_ideographic_strokes_table'.
2621
2622 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2623
2624         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
2625         (Qtotal_strokes): New variable.
2626         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
2627         `total-strokes' attribute.
2628         (Fget_char_attribute): Likewise.
2629         (Fput_char_attribute): Likewise.
2630         (syms_of_mule_charset): Add new symbol `total-strokes'.
2631         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
2632
2633 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2634
2635         * mule-charset.c (Vcharacter_decomposition_table): New variable.
2636         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
2637         are found.
2638         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
2639         `->decomposition' attribute.
2640         (Fput_char_attribute): Likewise.
2641         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
2642
2643 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2644
2645         * mule-charset.c (decoding_table_check_elements): New function.
2646         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
2647
2648 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2649
2650         * mule-charset.c (Fset_charset_mapping_table): Use
2651         `put_char_ccs_code_point'.
2652
2653 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2654
2655         * mule-charset.c (decoding_table_put_char): New inline function.
2656         (put_char_ccs_code_point): Use `decoding_table_put_char'.
2657
2658 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2659
2660         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
2661         (XCHARSET_BYTE_SIZE): New macro.
2662         (decoding_table_remove_char): New inline function.
2663         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
2664         `decoding_table_remove_char'.
2665         (remove_char_ccs): Use `decoding_table_remove_char'.
2666         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
2667
2668 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2669
2670         * mule-charset.c (Vcharacter_name_table): New variable.
2671         (Qname): New variable.
2672         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
2673         attribute.
2674         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
2675         `Vcharacter_name_table' for `name' attribute.
2676         (Fremove_char_attribute): Use function `remove_char_ccs'.
2677         (put_char_ccs_code_point): New function.
2678         (remove_char_ccs): New function.
2679         (syms_of_mule_charset): Add new symbol `name'.
2680         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
2681
2682 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2683
2684         * mule-charset.c (make_byte_table): Add new argument `older'.
2685         (make_char_id_table): Likewise.
2686         (copy_char_id_table): Comment out because it is not used.
2687         (put_char_id_table): Modify for `make_byte_table'.
2688         (Fput_char_attribute): Make encoding_table as older object;
2689         inherit older bit of `Vcharacter_composition_table'.
2690         (mark_charset): Don't mark `cs->encoding_table'.
2691         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
2692         normal object; make `Vcharacter_composition_table' as an older
2693         object; delete staticpro for `Vcharacter_composition_table'; make
2694         `Vcharacter_variant_table' as a normal object.
2695
2696         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
2697         (mark_object): Don't check older object in UTF-2000.
2698
2699         * lrecord.h (struct lrecord_header): Add new member `older' in
2700         UTF-2000.
2701         (set_lheader_implementation): Setup `SLI_header->older' in
2702         UTF-2000.
2703         (set_lheader_older_implementation): New macro in UTF-2000.
2704         (OLDER_RECORD_P): New macro in UTF-2000.
2705         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
2706         (alloc_older_lcrecord): New prototype in UTF-2000.
2707         (alloc_older_lcrecord_type): New macro in UTF-2000.
2708
2709 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2710
2711         * mule-charset.c (byte_table_description): Use
2712         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
2713         (char_id_table_description): Delete bogus `, 1'.
2714         (Fget_char_attribute): Refer encoding_table of each coded-charset
2715         to get value of coded-charset attribute of a character.
2716         (Fput_char_attribute): Use `make_older_vector' instead of
2717         `make_vector'; use encoding_table of each coded-charset to store
2718         value of coded-charset attribute of a character.
2719         (Fremove_char_attribute): Use encoding_table of each coded-charset
2720         to store value of coded-charset attribute of a character.
2721         (mark_charset): Mark `cs->encoding_table'; don't mark
2722         `cs->decoding_table'.
2723         (charset_description): Add description of new member
2724         `encoding_table'.
2725         (make_charset): Initialize `encoding_table'.
2726
2727         * char-ucs.h (struct Lisp_Charset): Add new member
2728         `encoding_table'.
2729         (CHARSET_ENCODING_TABLE): New macro.
2730         (XCHARSET_ENCODING_TABLE): New macro.
2731         (charset_code_point): New implementation.
2732         (encode_char_1): Likewise.
2733
2734         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
2735         (disksave_object_finalization_1): Call finalizers of
2736         `all_older_lcrecords' in UTF-2000.
2737         (make_older_vector): New function in UTF-2000.
2738         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
2739         UTF-2000.
2740
2741         * lisp.h (make_older_vector): New prototype in UTF-2000.
2742
2743 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2744
2745         * lrecord.h (enum lrecord_type): Rename
2746         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
2747
2748         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
2749         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
2750         `get_char_code_table'.
2751
2752         * mule-charset.c (mark_char_id_table): Renamed from
2753         `mark_char_code_table'.
2754         (char_id_table_equal): Renamed from `char_code_table_equal'.
2755         (char_id_table_hash): Renamed from `char_code_table_hash'.
2756         (make_char_id_table): Renamed from `make_char_code_table'.
2757         (copy_char_id_table): Renamed from `copy_char_code_table'.
2758         (get_char_id_table): Renamed from `get_char_code_table'.
2759         (put_char_id_table): Renamed from `put_char_code_table'.
2760         (to_char_id): Renamed from `to_char_code'.
2761
2762         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
2763         `Lisp_Char_Code_Table'.
2764         (char_id_table): Renamed from `char_code_table'.
2765         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
2766         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
2767         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
2768         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
2769         (get_char_id_table): Renamed from `get_char_code_table'.
2770
2771 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2772
2773         * lrecord.h (enum lrecord_type): Rename
2774         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
2775
2776         * mule-charset.c (mark_byte_table): Renamed from
2777         `mark_char_byte_table'.
2778         (byte_table_equal): Renamed from `char_byte_table_equal'.
2779         (byte_table_hash): Renamed from `byte_table_hash'.
2780         (make_byte_table): Renamed from `make_byte_table'.
2781         (copy_byte_table): Renamed from `copy_char_byte_table'.
2782
2783         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
2784         `Lisp_Char_Byte_Table'.
2785         (byte_table): Renamed from `char_byte_table'.
2786         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
2787         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
2788         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
2789         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
2790
2791 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2792
2793         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
2794         (dfc_convert_to_internal_format): Likewise.
2795         
2796         * text-coding.c (Fcoding_system_canonical_name_p): New function.
2797         * text-coding.c (Fcoding_system_alias_p): New function.
2798         * text-coding.c (Fcoding_system_aliasee): New function.
2799         * text-coding.c (append_suffix_to_symbol): New function.
2800         * text-coding.c (dangling_coding_system_alias_p): New function.
2801         * text-coding.c (Ffind_coding_system):
2802         * text-coding.c (Fcopy_coding_system):
2803         * text-coding.c (encode_coding_no_conversion):
2804         * text-coding.c (syms_of_file_coding):
2805         * text-coding.c (vars_of_file_coding):
2806         Rewrite coding system alias code.
2807         Allow nested aliases, like symbolic links.
2808         Allow redefinition of coding system aliases.
2809         Prevent existence of dangling coding system aliases.
2810         Eliminate convert_to_external_format.
2811         Eliminate convert_to_internal_format.
2812         
2813         * text-coding.c: Change enum eol_type to eol_type_t.
2814
2815 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2816
2817         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
2818         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
2819
2820         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
2821         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
2822
2823 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2824
2825         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
2826         `ideograph-daikanwa'.
2827
2828         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
2829         (Vcharset_ucs_bmp): Likewise.
2830         (Vcharset_mojikyo): Add new extern variable definition.
2831         (Vcharset_latin_iso8859_2): Deleted because it is not used.
2832         (Vcharset_latin_iso8859_3): Likewise.
2833         (Vcharset_latin_iso8859_4): Likewise.
2834         (Vcharset_latin_iso8859_9): Likewise.
2835         (Vcharset_latin_viscii_lower): Likewise.
2836         (Vcharset_latin_viscii_upper): Likewise.
2837         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
2838         `mojikyo' code-point is used to decode.
2839         (encode_char_2): New function [to convert `mojikyo' code-point to
2840         Mojikyo font encoding].
2841         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
2842         (breakup_char_1): Likewise.
2843         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
2844
2845 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2846
2847         * text-coding.c (Fmake_coding_system): Add document about
2848         `disable-composition' property.
2849
2850 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2851
2852         * text-coding.c (Qdisable_composition): New variable; delete
2853         `Qcomposite'.
2854         (Fmake_coding_system): Add new property `disable-composite';
2855         delete property `composite'.
2856         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
2857         instead of `!CODING_SYSTEM_COMPOSITE'.
2858         (syms_of_file_coding): Add new symbol `disable-composition';
2859         delete symbol `composite'.
2860
2861         * file-coding.h (struct Lisp_Coding_System): Add
2862         `disable_composition'; delete `enable_composition'.
2863         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
2864         `CODING_SYSTEM_COMPOSITE'.
2865         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
2866         `XCODING_SYSTEM_COMPOSITE'.
2867
2868 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2869
2870         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2871         to 0.15.
2872
2873 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2874
2875         * text-coding.c (Qcomposite): New variable.
2876         (Fmake_coding_system): Add new property `composite'.
2877         (struct decoding_stream): Add `combined_char_count',
2878         `combined_chars' and `combining_table' in UTF-2000.
2879         (COMPOSE_FLUSH_CHARS): New macro.
2880         (COMPOSE_ADD_CHAR): New macro.
2881         (reset_decoding_stream): Reset `str->combined_char_count' and
2882         `str->combining_table' in UTF-2000.
2883         (decode_coding_iso2022): Modify for character-decomposition.
2884         (syms_of_file_coding): Add new symbol `composite'.
2885
2886 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2887
2888         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
2889         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
2890         of `Vcharacter_composition_table' if `->decomposition' property
2891         has only 1 element.
2892         (Qlatin_tcvn5712): New variable.
2893         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
2894         (complex_vars_of_mule_charset): Add new coded-charset
2895         `latin-tcvn5712'.
2896
2897         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
2898
2899 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2900
2901         * file-coding.h (struct Lisp_Coding_System): Add
2902         `enable_composition'.
2903         (CODING_SYSTEM_COMPOSITE): New macro.
2904         (XCODING_SYSTEM_COMPOSITE): New macro.
2905
2906 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
2907
2908         * mule-canna.c (c2mu): Fix problem with UTF-2000.
2909
2910 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
2911
2912         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
2913         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
2914
2915 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
2916
2917         * mule-charset.c (Vcharset_mojikyo): New variable.
2918         (Fdefine_char): Don't use coded-charset which does not have
2919         non-builtin character range to allocate character-id.
2920         (Qmojikyo): New variable.
2921         (syms_of_mule_charset): Add new symbol `mojikyo'.
2922         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
2923
2924         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
2925         (LEADING_BYTE_MOJIKYO): New macro.
2926         (MIN_CHAR_MOJIKYO): New macro.
2927         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
2928         (MAX_CHAR_MOJIKYO): New macro.
2929
2930 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
2931
2932         * mule-charset.c (remove_char_attribute): Fixed.
2933
2934 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
2935
2936         * mule-charset.c (remove_char_attribute): New function.
2937         (Fremove_char_attribute): New function.
2938         (encode_builtin_char_1): Comment out builtin-support for
2939         greek-iso8859-7 and cyrillic-iso8859-5.
2940         (Fdecode_char): Check `code' is an integer.
2941         (syms_of_mule_charset): Add `remove-char-attribute'.
2942         (MIN_CHAR_GREEK): Deleted.
2943         (MAX_CHAR_GREEK): Likewise.
2944         (MIN_CHAR_CYRILLIC): Likewise.
2945         (MAX_CHAR_CYRILLIC): Likewise.
2946         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
2947         MAX_CHAR_GREEK for `greek-iso8859-7'.
2948
2949         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
2950         (MAX_CHAR_GREEK): Likewise.
2951         (MIN_CHAR_CYRILLIC): Likewise.
2952         (MAX_CHAR_CYRILLIC): Likewise.
2953
2954 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
2955
2956         * mule-charset.c (Fdefine_char): Fix problem when new code-point
2957         format is used without `ucs' property.
2958         (Fdecode_char): Fix problem with GR representation.
2959         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
2960         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
2961
2962 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
2963
2964         * mule-charset.c (make_builtin_char): New function.
2965         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
2966         (Fset_charset_mapping_table): Modify for new representation of
2967         code-point.
2968         (Fdecode_char): New function.
2969         (syms_of_mule_charset): Add new builtin function `decode-char' in
2970         UTF-2000.
2971
2972         * char-ucs.h (make_builtin_char): New prototype.
2973         (DECODE_CHAR): New inline function.
2974         (MAKE_CHAR): Use `DECODE_CHAR'.
2975
2976 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
2977
2978         * text-coding.c (parse_charset_conversion_specs): Use
2979         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
2980         `XCHARSET_TYPE'.
2981         (iso2022_designate): Likewise.
2982
2983         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
2984         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
2985
2986         * mule-charset.c (Vcharset_ucs): New variable.
2987         (print_charset): Change design; use `CHARSET_CHARS' and
2988         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
2989         (make_charset): Change signature to specify `chars' and
2990         `dimension' instead of `type'.
2991         (range_charset_code_point): Modify for 256^n-set.
2992         (encode_builtin_char_1): Encode as `ucs' in default.
2993         (Fmake_charset): Modify for `make_charset'.
2994         (Fmake_reverse_direction_charset): Likewise.
2995         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
2996         UTF-2000.
2997         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
2998         for `make_charset'.
2999
3000         * char-ucs.h (Vcharset_ucs): New variable.
3001         (LEADING_BYTE_UCS): New macro.
3002         (struct Lisp_Charset): Delete `type'; change type of `dimension'
3003         and `chars' to `unsigned short' from `unsigned int'.
3004         (CHARSET_TYPE): Deleted.
3005         (XCHARSET_TYPE): Deleted.
3006
3007 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
3008
3009         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
3010
3011         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
3012         (ENCODE_CHAR): New macro.
3013
3014 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3015
3016         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3017         to 0.14 (Kawachi-Katakami).
3018
3019 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3020
3021         * text-coding.c (char_encode_shift_jis): Modify for
3022         `charset_code_point'.
3023         (char_encode_iso2022): Likewise.
3024
3025         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
3026         (integer) instead of list of <Lisp_Object>s (integers) as the
3027         format of code-point of a coded-charset.
3028         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
3029         (encode_builtin_char_1): New function; delete
3030         `split_builtin_char'.
3031         (charset_code_point): Return <int> instead of <Lisp_Object>.
3032         (Fsplit_char): Don't use `SPLIT_CHAR'.
3033
3034         * char-ucs.h (encode_builtin_char_1): New prototype; delete
3035         prototype for `split_builtin_char'.
3036         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
3037         (charset_code_point): Likewise.
3038         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
3039         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
3040
3041 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
3042
3043         * mule-charset.c (complex_vars_of_mule_charset): Don't define
3044         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
3045
3046 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3047
3048         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
3049
3050         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
3051         (MAX_CHAR_OBS_94x94): Deleted.
3052
3053 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3054
3055         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
3056
3057         * char-ucs.h (MAX_CHAR_BMP): New macro.
3058
3059 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3060
3061         * text-coding.c: Sync with r21-2-24.
3062
3063 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
3064
3065         * file-coding.c: Modify for UTF-2000.
3066
3067 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3068
3069         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3070         to 0.13 (Takaida).
3071
3072 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3073
3074         * mule-charset.c (split_builtin_char): Delete builtin support for
3075         `katakana-jisx0201'.
3076         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
3077         BMP area in builtin representation.
3078
3079         * char-ucs.h (MAKE_CHAR): Delete builtin support for
3080         `Vcharset_katakana_jisx0201'.
3081
3082 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
3083
3084         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
3085         (Qisolated): New variable.
3086         (Qinitial): New variable.
3087         (Qmedial): New variable.
3088         (Qfinal): New variable.
3089         (Qvertical): New variable.
3090         (Qsmall): New variable.
3091         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
3092         `Qvertical' and `Qsmall'.
3093         (Qmojikyo_pj_[1 .. 21]): New variable.
3094         (syms_of_mule_charset): Add new symbols `isolated', `initial',
3095         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
3096         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
3097         .. 21]'.
3098
3099 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
3100
3101         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
3102         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
3103         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
3104
3105 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3106
3107         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
3108         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
3109         BMP.
3110         (Qjapanese_jisx0208_1990): New variable.
3111         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
3112         (complex_vars_of_mule_charset): Add new coded-charset
3113         `japanese-jisx0208-1990'.
3114
3115         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
3116         (MIN_CHAR_JIS_X0208_1990): New macro.
3117         (MAX_CHAR_JIS_X0208_1990): New macro.
3118
3119 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3120
3121         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
3122         coded-charset is not found.
3123
3124 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3125
3126         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
3127         (Fdefine_char): Use `Fmake_char'.
3128
3129 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3130
3131         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
3132         (Vcharset_hiragana_jisx0208): Deleted.
3133         (Vcharset_katakana_jisx0208): Deleted.
3134         (Qideograph_daikanwa): New variable.
3135         (Qhiragana_jisx0208): Deleted.
3136         (Qkatakana_jisx0208): Deleted.
3137         (split_builtin_char): Split `ideograph-daikanwa'.
3138         (Fsplit_char): New implementation for UTF-2000.
3139         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
3140         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
3141         (complex_vars_of_mule_charset): Add new coded-charset
3142         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
3143         `katakana-jisx0208'.
3144
3145         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
3146         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
3147         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
3148         (MIN_CHAR_DAIKANWA): New macro.
3149         (MAX_CHAR_DAIKANWA): New macro.
3150
3151 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3152
3153         * data.c (Fstring_to_number): Don't recognize floating point if
3154         base is not 10.
3155
3156 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3157
3158         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
3159
3160 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3161
3162         * mule-charset.c (Qsquare): New variable.
3163         (to_char_code): Add `Qsquare'.
3164         (syms_of_mule_charset): Add new symbol `square'.
3165
3166 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3167
3168         * mule-charset.c (Qcircle): New variable.
3169         (to_char_code): Add `Qcircle'.
3170         (syms_of_mule_charset): Add new symbol `circle'.
3171
3172 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3173
3174         * mule-charset.c (Qfont): New variable.
3175         (to_char_code): Add `Qfont'.
3176         (syms_of_mule_charset): Add new symbol `font'.
3177
3178 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3179
3180         * mule-charset.c (Qsub): New variable.
3181         (to_char_code): Add `Qsub'.
3182         (syms_of_mule_charset): Add new symbol `sub'.
3183
3184 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3185
3186         * mule-charset.c (Fput_char_attribute): Convert each element of
3187         VALUE to GL position if ATTRIBUTE is a GR-set,
3188
3189 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3190
3191         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
3192         coded-charset is a GR-set.
3193
3194 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3195
3196         * mule-charset.c (Fput_char_attribute): Check each element of
3197         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
3198
3199 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3200
3201         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
3202         UTF-2000.
3203         (Qethiopic_ucs): New variable in UTF-2000.
3204         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
3205         (complex_vars_of_mule_charset): Add new coded-charset
3206         `ethiopic-ucs' in UTF-2000.
3207
3208         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
3209         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
3210         9)'.
3211         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
3212         10)'.
3213         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
3214
3215 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
3216
3217         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
3218         `ascii'.
3219
3220 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3221
3222         * mule-charset.c (Vcharacter_variant_table): New variable.
3223         (Q_ucs): New variable.
3224         (Fchar_variants): New function.
3225         (Fput_char_attribute): Register `->ucs' value to
3226         `Vcharacter_variant_table'.
3227         (syms_of_mule_charset): Add new function `char-variants' and new
3228         symbol `->ucs'.
3229         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
3230
3231 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3232
3233         * mule-charset.c (get_char_code_table): Allow negative character
3234         code.
3235         (put_char_code_table): Likewise.
3236         (Vcharacter_composition_table): New variable.
3237         (Q_decomposition): New variable.
3238         (Qwide): New variable.
3239         (Qnarrow): New variable.
3240         (Qcompat): New variable.
3241         (QnoBreak): New variable.
3242         (Qsuper): New variable.
3243         (Qfraction): New variable.
3244         (to_char_code): New function.
3245         (Fget_composite_char): New function.
3246         (Fput_char_attribute): Register `->decomposition' value to
3247         `Vcharacter_composition_table'.
3248         (syms_of_mule_charset): Add new function `get-composite-char', new
3249         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
3250         `super' and `fraction'.
3251         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
3252
3253 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3254
3255         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
3256         character; copy the return value.
3257
3258 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3259
3260         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
3261
3262         * mule-charset.c (range_charset_code_point): Must use make_int.
3263         (split_builtin_char): New function.
3264
3265 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3266
3267         * mule-charset.c (char_byte_table): Change name from
3268         "char-code-table" to "char-byte-table".
3269         (mark_char_code_table): New function.
3270         (char_code_table_equal): New function.
3271         (char_code_table_hash): New function.
3272         (char_code_table_description): New constant.
3273         (char_code_table): New type.
3274         (make_char_code_table): New function.
3275         (copy_char_code_table): New function.
3276         (get_char_code_table): Modify for `char_code_table' type.
3277         (put_char_code_table): Likewise.
3278         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
3279         (Kashiwara).
3280
3281         * char-ucs.h (char_code_table): New type.
3282         (XCHAR_CODE_TABLE): New macro.
3283         (XSETCHAR_CODE_TABLE): New macro.
3284         (CHAR_CODE_TABLE_P): New macro.
3285         (GC_CHAR_CODE_TABLE_P): New macro.
3286         (struct Lisp_Char_Code_Table): New structure.
3287
3288 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3289
3290         * mule-charset.c (Fmake_charset): Setup byte_offset for
3291         {94|96}^n-set.
3292
3293 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3294
3295         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
3296         character.
3297
3298 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3299
3300         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
3301         is found.
3302
3303 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3304
3305         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
3306         charset, it is regarded as a charset.
3307         (put_char_attribute): New function in UTF-2000.
3308         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
3309         charset, mapping-table of the charset is modified.
3310         (Fdefine_char): New function in UTF-2000.
3311         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
3312         `Fput_char_attribute'.
3313         (syms_of_mule_charset): Add new function `define-char' and new
3314         symbol `ucs' in UTF-2000.
3315         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
3316
3317 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3318
3319         * mule-charset.c (Fcharset_name): Define `byte_offset' in
3320         non-UTF-2000 configuration.
3321
3322 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3323
3324         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
3325         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
3326
3327         * mule-charset.c (mark_charset): `cs->encoding_table' has been
3328         deleted.
3329         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
3330         (Fset_charset_mapping_table): Likewise.
3331
3332         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
3333         (CHARSET_ENCODING_TABLE): Delete.
3334         (XCHARSET_ENCODING_TABLE): Delete.
3335         (charset_code_point): New interface.
3336
3337 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3338
3339         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
3340         instead of `charset_get_byte1' and `charset_get_byte2'.
3341
3342         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
3343         (charset_get_byte2): Deleted.
3344
3345 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3346
3347         * char-ucs.h (SPLIT_CHAR): New inline function.
3348         (breakup_char_1): Use `SPLIT_CHAR'.
3349
3350         * mule-charset.c (range_charset_code_point): New function.
3351         (charset_code_point): New function.
3352
3353         * char-ucs.h (range_charset_code_point): New interface.
3354         (breakup_char_1): Use `range_charset_code_point'.
3355
3356 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3357
3358         * mule-charset.c (Fmake_charset): Delete unused local variable
3359         `code_offset'.
3360
3361         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
3362         (breakup_char_1): Find a charset and code-point in
3363         `Vcharacter_attribute_table'.
3364
3365 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3366
3367         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3368         to 0.10 (Yao).
3369
3370 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
3371
3372         * mule-charset.c (Vcharacter_attribute_table): New variable.
3373         (Fchar_attribute_alist): New function.
3374         (Fget_char_attribute): New function.
3375         (Fput_char_attribute): New function.
3376         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
3377         too.
3378         (syms_of_mule_charset): Add new function `char-attribute-alist',
3379         `get-char-attribute' and `put-char-attribute'.
3380         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
3381
3382 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
3383
3384         * mule-charset.c (Fmake_charset): Just use
3385         `get_unallocated_leading_byte'.
3386
3387         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
3388         sets; don't use final-byte based number for private sets.
3389
3390 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3391
3392         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
3393         integer.
3394
3395 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3396
3397         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3398         to 0.9.
3399
3400 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3401
3402         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
3403         of `CHAR_LEADING_BYTE' in UTF-2000.
3404
3405         * insdel.c (find_charsets_in_bufbyte_string): Use
3406         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
3407         (find_charsets_in_emchar_string): Likewise.
3408
3409         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
3410         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
3411
3412         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
3413         (CHAR_CHARSET_ID): New macro.
3414
3415 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3416
3417         * chartab.c (get_char_table): Don't use type `Charset_ID' for
3418         charset-id - MIN_LEADING_BYTE.
3419         (put_char_table): Likewise.
3420
3421 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3422
3423         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
3424         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
3425         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
3426         (CHARSET_ID_OFFSET): New macro.
3427         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
3428         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
3429         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
3430         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
3431         4).
3432         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
3433         5).
3434         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
3435         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
3436         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
3437         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
3438         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
3439
3440 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3441
3442         * mule-charset.c (next_allocated_leading_byte): New variable in
3443         UTF-2000.
3444         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
3445         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
3446         (get_unallocated_leading_byte): Simply use
3447         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
3448         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
3449         UTF-2000.
3450
3451         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
3452         (MAX_LEADING_BYTE_PRIVATE): New macro.
3453         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
3454         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
3455
3456 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3457
3458         * mule-charset.c (Fmake_charset): Allocate final-byte based
3459         charset-id for 94-set, 96-set and 94x94-set.
3460
3461 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3462
3463         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
3464         ambiguous `else'.
3465         (Fmake_charset): Likewise.
3466         (complex_vars_of_mule_charset): Modify the font registry of
3467         `ucs-bmp' not to match `Ethiopic-Unicode'.
3468
3469 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3470
3471         * mule-charset.c (complex_vars_of_mule_charset): Add font
3472         registory of `ucs-bmp'.
3473
3474 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3475
3476         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
3477         coded-charsets in `default-coded-charset-priority-list' when
3478         breaking up a character.
3479
3480         * mule-charset.c (Vcharset_latin_viscii): New variable.
3481         (Qlatin_viscii): New variable.
3482         (make_charset): Don't use `decoding_table'.
3483         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
3484         byte_offset.
3485         (Fset_charset_mapping_table): New implementation.
3486         (syms_of_mule_charset): Add new symbol `latin-viscii'.
3487         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
3488         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
3489         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
3490         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
3491         charset `latin_viscii'.
3492
3493         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
3494         (CHARSET_TYPE_94X94): Change to 1 from 2.
3495         (CHARSET_TYPE_96): Change to 2 from 1.
3496         (CHARSET_TYPE_128): New macro.
3497         (CHARSET_TYPE_128X128): Change to 5 from 4.
3498         (CHARSET_TYPE_256): New macro.
3499         (CHARSET_TYPE_256X256): Change to 7 from 5.
3500         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
3501
3502 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3503
3504         * text-coding.c (char_encode_shift_jis): Refer
3505         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
3506         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
3507
3508         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
3509         (char_byte_table_equal): New function in UTF-2000.
3510         (char_byte_table_hash): New function in UTF-2000.
3511         (char_byte_table_description): New constant in UTF-2000.
3512         (char_byte_table): New type in UTF-2000.
3513         (make_char_byte_table): New function in UTF-2000.
3514         (copy_char_byte_table): New function in UTF-2000.
3515         (make_char_code_table): New macro in UTF-2000.
3516         (get_char_code_table): New function in UTF-2000.
3517         (put_char_code_table): New function in UTF-2000.
3518         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
3519         (charset_description): Add setting in UTF-2000.
3520         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
3521         `CHARSET_TO_BYTE1_TABLE(cs)'.
3522         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
3523         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
3524         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
3525         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
3526         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
3527         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
3528         `CHARSET_TO_BYTE2_TABLE(cs)'.
3529
3530         * char-ucs.h (char_byte_table): New type.
3531         (XCHAR_BYTE_TABLE): New macro.
3532         (XSETCHAR_BYTE_TABLE): New macro.
3533         (CHAR_BYTE_TABLE_P): New macro.
3534         (GC_CHAR_BYTE_TABLE_P): New macro.
3535         (struct Lisp_Char_Byte_Table): New structure.
3536         (get_char_code_table): New interface.
3537         (Emchar_to_byte_table): Deleted.
3538         (get_byte_from_character_table): Deleted.
3539         (struct Lisp_Charset): Add `encoding_table'; delete
3540         `to_byte1_table' and `to_byte2_table'.
3541         (CHARSET_ENCODING_TABLE): New macro.
3542         (CHARSET_TO_BYTE1_TABLE): Deleted.
3543         (CHARSET_TO_BYTE2_TABLE): Deleted.
3544         (XCHARSET_ENCODING_TABLE): New macro.
3545         (XCHARSET_TO_BYTE1_TABLE): Deleted.
3546         (XCHARSET_TO_BYTE2_TABLE): Deleted.
3547
3548 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
3549
3550         * mule-charset.c (syms_of_mule_charset): Delete charset alias
3551         `vietnamese-viscii-*'.
3552
3553 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
3554
3555         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
3556         (Qvietnamese_viscii_upper): New variable.
3557         (Fdefine_charset_alias): New function.
3558         (syms_of_mule_charset): Add new function `define-charset-alias'.
3559         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
3560         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
3561         `latin-viscii-*'.
3562
3563 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
3564
3565         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
3566         (MAX_CHAR_OBS_94x94): New macro.
3567         (breakup_char_1): Support obsolete XEmacs-UCS private code space
3568         for 94x94 sets.
3569
3570         * mule-charset.c (put_byte_from_character_table): Change unit size
3571         from 128 to 256.
3572         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
3573         not defined.
3574         (Fmake_reverse_direction_charset): Modify dummy argument of
3575         `make_charset' for non-UTF-2000 environment.
3576
3577 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3578
3579         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
3580
3581         * mule-charset.c (destroy_byte_from_character_table): New macro.
3582         (latin_jisx0201_to_ucs): Deleted.
3583         (latin_iso8859_2_to_ucs): Deleted.
3584         (latin_iso8859_3_to_ucs): Deleted.
3585         (latin_iso8859_4_to_ucs): Deleted.
3586         (latin_iso8859_9_to_ucs): Deleted.
3587         (latin_viscii_lower_to_ucs): Deleted.
3588         (latin_viscii_upper_to_ucs): Deleted.
3589         (mark_charset): Mark `cs->decoding_table'.
3590         (Fcharset_mapping_table): Fix DOC-string.
3591         (Fset_charset_mapping_table): New function.
3592         (syms_of_mule_charset): Add nwe function
3593         `set-charset-mapping-table'.
3594         (complex_vars_of_mule_charset): Don't setup and use
3595         `latin_*_to_ucs'.
3596
3597 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3598
3599         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
3600         charset.
3601
3602 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3603
3604         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
3605         (Vcharset_katakana_jisx0208): New variable.
3606         (Qhiragana_jisx0208): New variable.
3607         (Qkatakana_jisx0208): New variable.
3608         (make_charset): Add new argument `byte_offset'.
3609         (charset_get_byte1): Modify for new coded-charset definition; use
3610         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
3611         `XCHARSET_BYTE_OFFSET'.
3612         (Fmake_charset): Modify for `make_charset'.
3613         (Fmake_reverse_direction_charset): Likewise.
3614         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
3615         `katakana-jisx0208'.
3616         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
3617         `.'  in font registry of charset `katakana-jisx0201',
3618         `latin-jisx0201', `vietnamese-viscii-lower' and
3619         `vietnamese-viscii-upper'; modify DOC-string of charset
3620         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
3621         registry of charset `japanese-jisx0208' not to use font for JIS
3622         X0208:1990; add new charset `hiragana-jisx0208' and
3623         `katakana-jisx0208'.
3624
3625         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
3626         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
3627         (struct Lisp_Charset): Add `byte_offset'.
3628         (CHARSET_BYTE_OFFSET): New macro.
3629         (XCHARSET_UCS_MIN): New macro.
3630         (XCHARSET_UCS_MAX): New macro.
3631         (XCHARSET_CODE_OFFSET): New macro.
3632         (XCHARSET_BYTE_OFFSET): New macro.
3633         (MIN_CHAR_HIRAGANA): New macro.
3634         (MAX_CHAR_HIRAGANA): New macro.
3635         (MIN_CHAR_KATAKANA): New macro.
3636         (MAX_CHAR_KATAKANA): New macro.
3637         (MAKE_CHAR): Modify for new coded-charset definition; use
3638         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
3639         `XCHARSET_BYTE_OFFSET'.
3640
3641 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3642
3643         * mule-charset.c (CHAR96): Deleted.
3644         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
3645         <Lisp_Object>.
3646         (latin_iso8859_2_to_ucs): Likewise.
3647         (latin_iso8859_3_to_ucs): Likewise.
3648         (latin_iso8859_4_to_ucs): Likewise.
3649         (latin_iso8859_9_to_ucs): Likewise.
3650         (latin_viscii_lower_to_ucs): Likewise.
3651         (latin_viscii_upper_to_ucs): Likewise.
3652         (latin_tcvn5712_to_ucs): Commented out.
3653         (make_charset): Change type of argument `decoding_table' from
3654         <Emchar*> to <Lisp_Object> [vector of characters].
3655         (Fmake_charset): Modify for `make_charset'.
3656         (Fmake_reverse_direction_charset): Likewise.
3657         (Fcharset_mapping_table): New function in UTF-2000.
3658         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
3659         UTF-2000.
3660         (complex_vars_of_mule_charset): Modify for type change of
3661         `*_to_ucs'; modify for `make_charset'.
3662
3663         * char-ucs.h (struct Lisp_Charset): Change type of
3664         `decoding_table' from <Emchar*> to <Lisp_Object>.
3665         (MAKE_CHAR): Modify for new specification of `decoding_table'.
3666
3667 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
3668
3669         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
3670         error with non-UTF-2000-Mule.
3671
3672 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
3673
3674         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
3675         in lisp again].
3676         (Vcharset_chinese_cns11643_4): Likewise.
3677         (Vcharset_chinese_cns11643_5): Likewise.
3678         (Vcharset_chinese_cns11643_6): Likewise.
3679         (Vcharset_chinese_cns11643_7): Likewise.
3680         (Qchinese_cns11643_3): Likewise.
3681         (Qchinese_cns11643_4): Likewise.
3682         (Qchinese_cns11643_5): Likewise.
3683         (Qchinese_cns11643_6): Likewise.
3684         (Qchinese_cns11643_7): Likewise.
3685         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
3686         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
3687         and `chinese-cns11643-7' to lisp/mule/chinese.el.
3688         (complex_vars_of_mule_charset): Likewise.
3689
3690 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3691
3692         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
3693         96-set.
3694         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
3695         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
3696
3697 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
3698
3699         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
3700         0xFF60.
3701         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
3702         (breakup_char_1): Likewise.
3703
3704         * text-coding.c (char_encode_iso2022): Keep designated charsets if
3705         one of them includes the specified character.
3706
3707 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3708
3709         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
3710
3711 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3712
3713         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
3714
3715 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3716
3717         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
3718         definition for non-UTF-2000 Mule.
3719         (latin_iso8859_3_to_ucs): Likewise.
3720         (latin_iso8859_4_to_ucs): Likewise.
3721         (latin_iso8859_9_to_ucs): Likewise.
3722         (latin_jisx0201_to_ucs): Likewise.
3723         (MIN_CHAR_THAI): Likewise.
3724         (MAX_CHAR_THAI): Likewise.
3725         (MIN_CHAR_GREEK): Likewise.
3726         (MAX_CHAR_GREEK): Likewise.
3727         (MIN_CHAR_HEBREW): Likewise.
3728         (MAX_CHAR_HEBREW): Likewise.
3729         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
3730         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
3731         (MIN_CHAR_CYRILLIC): Likewise.
3732         (MAX_CHAR_CYRILLIC): Likewise.
3733
3734 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3735
3736         * char-ucs.h (breakup_char_1): Use
3737         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
3738         thai-tis620 and katakana-jisx0201 area.
3739
3740 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3741
3742         * char-ucs.h (breakup_char_1): Use
3743         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
3744         area.
3745
3746         * text-coding.c (reset_encoding_stream): Fixed.
3747         (char_encode_ucs4): Delete `& 255'.
3748
3749         * char-ucs.h (breakup_char_1): Use
3750         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
3751
3752 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3753
3754         * file-coding.c (Fmake_coding_system): Don't set up
3755         `codesys->fixed.size'.
3756         (encode_coding_no_conversion): Don't refer
3757         `str->codesys->fixed.size'.
3758
3759 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3760
3761         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
3762         (latin_a_char_to_byte1): Deleted.
3763         (latin_a_char_to_byte2): Deleted.
3764
3765 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3766
3767         * mule-charset.c (make_charset): Add new argument `ucs_min',
3768         `ucs_max' and `code_offset'.
3769         (charset_get_byte1): New implementation [delete specific charset
3770         depended implementations].
3771         (Fmake_charset): Modify for `make_charset'.
3772         (Fmake_reverse_direction_charset): Likewise.
3773         (complex_vars_of_mule_charset): Likewise.
3774
3775         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
3776         `code_offset'.
3777         (CHARSET_UCS_MIN): New macro.
3778         (CHARSET_UCS_MAX): New macro.
3779         (CHARSET_CODE_OFFSET): New macro.
3780         (MAKE_CHAR): Delete charset depended definitions [except
3781         katakana-jisx0201].
3782
3783 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
3784
3785         * char-ucs.h (breakup_char_1): Use
3786         `Vdefault_coded_charset_priority_list' for C0-Controls,
3787         Basic-Latin, C1-Controls and Latin-1-Supplement area.
3788
3789 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3790
3791         * char-ucs.h (charset_get_byte1): New function.
3792         (XCHARSET_GET_BYTE1): Deleted.
3793         (charset_get_byte2): New function.
3794         (XCHARSET_GET_BYTE2): Deleted.
3795         (Vdefault_coded_charset_priority_list): New external variable.
3796         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
3797         `Vdefault_preferred_coded_charset_list'.
3798
3799         * mule-charset.c (charset_get_byte1): New function.
3800         (charset_get_byte2): New function.
3801         (Vdefault_coded_charset_priority_list): New variable.
3802         (vars_of_mule_charset): Add new variable
3803         `default-coded-charset-priority-list'.
3804
3805 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3806
3807         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
3808         (XCHARSET_GET_BYTE2): New inline function.
3809         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
3810         `XCHARSET_GET_BYTE2'.
3811
3812 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3813
3814         * mule-charset.c (make_charset): Initialize
3815         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
3816         NULL if table is not defined.
3817
3818 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3819
3820         * text-coding.c (char_encode_shift_jis): Use
3821         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
3822         `ucs_to_latin_jisx0201'.
3823
3824         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
3825         (ucs_to_latin_iso8859_2): Deleted.
3826         (ucs_to_latin_iso8859_3): Deleted.
3827         (ucs_to_latin_iso8859_4): Deleted.
3828         (ucs_to_latin_iso8859_9): Deleted.
3829         (ucs_to_latin_viscii_lower): Deleted.
3830         (ucs_to_latin_viscii_upper): Deleted.
3831         (ucs_to_latin_tcvn5712): Deleted.
3832         (make_charset): Add new argument `decoding_table'; set up
3833         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
3834         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
3835         `decoding_table' is defined in UTF-2000.
3836         (Fmake_charset): Modify for `make_charset'.
3837         (Fmake_reverse_direction_charset): Likewise.
3838         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
3839         and `GENERATE_96_SET'.
3840
3841         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
3842         (ucs_to_latin_jisx0201): Deleted.
3843         (latin_iso8859_2_to_ucs): Deleted.
3844         (ucs_to_latin_iso8859_2): Deleted.
3845         (latin_iso8859_3_to_ucs): Deleted.
3846         (ucs_to_latin_iso8859_3): Deleted.
3847         (latin_iso8859_4_to_ucs): Deleted.
3848         (ucs_to_latin_iso8859_4): Deleted.
3849         (latin_iso8859_9_to_ucs): Deleted.
3850         (ucs_to_latin_iso8859_9): Deleted.
3851         (latin_viscii_lower_to_ucs): Deleted.
3852         (ucs_to_latin_viscii_lower): Deleted.
3853         (latin_viscii_upper_to_ucs): Deleted.
3854         (ucs_to_latin_viscii_upper): Deleted.
3855         (struct Lisp_Charset): Renamed `encoding_table' to
3856         `to_byte1_table'; add `to_byte2_table'.
3857         (CHARSET_DECODING_TABLE): New macro.
3858         (CHARSET_TO_BYTE1_TABLE): New macro.
3859         (CHARSET_TO_BYTE2_TABLE): New macro.
3860         (XCHARSET_DECODING_TABLE): New macro.
3861         (XCHARSET_TO_BYTE1_TABLE): New macro.
3862         (XCHARSET_TO_BYTE2_TABLE): New macro.
3863         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
3864         tables.
3865         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
3866         don't use `ucs_to_*' tables.
3867
3868 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3869
3870         * text-coding.c (Fmake_coding_system): Don't set up
3871         `codesys->fixed.size'.
3872         (encode_coding_no_conversion): Use `if' instead of `switch'.
3873
3874         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
3875
3876 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3877
3878         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
3879         (Fmake_charset): Modify for `make_charset'.
3880         (Fmake_reverse_direction_charset): Likewise.
3881         (complex_vars_of_mule_charset): Likewise.
3882
3883 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3884
3885         * text-coding.c (char_encode_shift_jis): Use table
3886         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
3887
3888 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3889
3890         * text-coding.c (text_encode_generic): Use `if' instead of
3891         `switch'.
3892         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
3893         decode JIS-Latin.
3894
3895 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3896
3897         * text-coding.c (encode_coding_sjis): Deleted.
3898         (char_encode_shift_jis): New function.
3899         (char_finish_shift_jis): New function.
3900         (reset_encoding_stream): Set up `encode_char' and `finish' for
3901         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
3902         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
3903         (char_encode_utf8): Treat `eol_type'.
3904
3905 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3906
3907         * file-coding.c (decode_coding_iso2022): Use
3908         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
3909
3910 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3911
3912         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3913         to 0.7 (Hirano).
3914
3915 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3916
3917         * char-lb.h (CHAR_COLUMNS): New macro.
3918
3919 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3920
3921         * text-coding.c (char_encode_ucs4): New function.
3922         (char_finish_ucs4): New function.
3923         (encode_coding_ucs4): Deleted.
3924         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
3925         (text_encode_generic): Delete local variable `charset' and `half'.
3926         (ucs_to_mule_table): Deleted.
3927         (mule_to_ucs_table): Deleted.
3928         (Fset_ucs_char): Deleted.
3929         (ucs_to_char): Deleted.
3930         (Fucs_char): Deleted.
3931         (Fset_char_ucs): Deleted.
3932         (Fchar_ucs): Deleted.
3933         (decode_ucs4): Deleted.
3934         (mule_char_to_ucs4): Deleted.
3935         (encode_ucs4): Deleted.
3936         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
3937         (decode_coding_utf8): Likewise.
3938         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
3939         (char_encode_iso2022): Fixed.
3940         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
3941         `Fset_char_ucs' and `Fchar_ucs'.
3942         (complex_vars_of_file_coding): Don't initialize
3943         `ucs_to_mule_table'.
3944
3945         * objects-tty.c (tty_initialize_font_instance): Don't use
3946         `XCHARSET_COLUMNS'.
3947
3948         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
3949         UTF-2000.
3950
3951         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
3952         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3953
3954         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
3955         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3956         (emchar_string_displayed_columns): Likewise.
3957
3958         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
3959         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3960         (string_column_at_point): Likewise.
3961         (Fmove_to_column): Likewise.
3962
3963         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
3964         `encoding_table' and `decoding_table'.
3965         (CHARSET_REP_BYTES): Deleted.
3966         (XCHARSET_REP_BYTES): Deleted.
3967         (XCHARSET_COLUMNS): Deleted.
3968         (CHAR_COLUMNS): New macro.
3969         (lookup_composite_char): Deleted unconditionally.
3970         (composite_char_string): Likewise.
3971
3972 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3973
3974         * char-ucs.h (Emchar_to_byte_table): New type.
3975         (get_byte_from_character_table): New function interface.
3976         (Vcharset_latin_jisx0201): New variable.
3977         (latin_jisx0201_to_ucs): New variable.
3978         (ucs_to_latin_jisx0201): New variable.
3979         (Vcharset_latin_iso8859_2): New variable.
3980         (latin_iso8859_2_to_ucs): New variable.
3981         (ucs_to_latin_iso8859_2): New variable.
3982         (Vcharset_latin_iso8859_3): New variable.
3983         (latin_iso8859_3_to_ucs): New variable.
3984         (ucs_to_latin_iso8859_3): New variable.
3985         (Vcharset_latin_iso8859_4): New variable.
3986         (latin_iso8859_4_to_ucs): New variable.
3987         (ucs_to_latin_iso8859_4): New variable.
3988         (Vcharset_latin_iso8859_9): New variable.
3989         (latin_iso8859_9_to_ucs): New variable.
3990         (ucs_to_latin_iso8859_9): New variable.
3991         (Vcharset_latin_viscii_lower): New variable.
3992         (latin_viscii_lower_to_ucs): New variable.
3993         (ucs_to_latin_viscii_lower): New variable.
3994         (Vcharset_latin_viscii_upper): New variable.
3995         (latin_viscii_upper_to_ucs): New variable.
3996         (ucs_to_latin_viscii_upper): New variable.
3997         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
3998         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
3999         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
4000         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
4001         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
4002         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
4003         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
4004         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
4005         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
4006         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
4007
4008         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
4009         (Vcharset_latin_viscii_upper): New variable.
4010         (make_byte_from_character_table): New function.
4011         (put_byte_from_character_table): New function.
4012         (get_byte_from_character_table): New function.
4013         (CHAR96): New macro.
4014         (ucs_to_latin_jisx0201): New variable.
4015         (latin_jisx0201_to_ucs): New variable.
4016         (ucs_to_latin_iso8859_2): New variable.
4017         (latin_iso8859_2_to_ucs): New variable.
4018         (ucs_to_latin_iso8859_3): New variable.
4019         (latin_iso8859_3_to_ucs): New variable.
4020         (ucs_to_latin_iso8859_4): New variable.
4021         (latin_iso8859_4_to_ucs): New variable.
4022         (ucs_to_latin_iso8859_9): New variable.
4023         (latin_iso8859_9_to_ucs): New variable.
4024         (ucs_to_latin_viscii_lower): New variable.
4025         (latin_viscii_lower_to_ucs): New variable.
4026         (ucs_to_latin_viscii_upper): New variable.
4027         (latin_viscii_upper_to_ucs): New variable.
4028         (ucs_to_latin_tcvn5712): New variable.
4029         (latin_tcvn5712_to_ucs): New variable.
4030         (Qlatin_viscii_lower): New variable.
4031         (Qlatin_viscii_upper): New variable.
4032         (syms_of_mule_charset): Set up new symbol
4033         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
4034         (complex_vars_of_mule_charset): Set up new charset
4035         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
4036         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
4037         `ucs_to_<CHARSET>' tables.
4038
4039 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
4040
4041         * text-coding.c: New file.
4042
4043 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4044
4045         * mule-charset.c (Fmake_char): Fix problem of 256-set.
4046
4047         * char-ucs.h (Vcharset_ucs_bmp): New variable.
4048         (MAKE_CHAR): Modify for `ucs-bmp'.
4049         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
4050         non-MULE characters of BMP.
4051
4052 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
4053
4054         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4055         to 0.6.
4056
4057 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4058
4059         * lstream.h:
4060         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
4061         - Include character.h for `CHAR_ASCII_P'.
4062
4063         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
4064
4065         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
4066         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
4067
4068         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
4069         (BYTE_C0_P): Likewise.
4070         (BYTE_C1_P): Likewise.
4071         (Lstream_get_emchar_1): Likewise.
4072         (Lstream_fput_emchar): Likewise.
4073         (Lstream_funget_emchar): Likewise.
4074         (copy_internal_to_external): Likewise.
4075         (copy_external_to_internal): Likewise.
4076
4077         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
4078         (BYTE_C0_P): Likewise.
4079         (BYTE_C1_P): Likewise.
4080         (Lstream_get_emchar_1): Likewise.
4081         (Lstream_fput_emchar): Likewise.
4082         (Lstream_funget_emchar): Likewise.
4083         (copy_internal_to_external): Likewise.
4084         (copy_external_to_internal): Likewise.
4085
4086         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
4087         (REP_BYTES_BY_FIRST_BYTE): Likewise.
4088
4089         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
4090         (BYTE_ASCII_P): Moved to mb-1byte.h.
4091
4092 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4093
4094         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
4095
4096         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
4097         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
4098         (VALID_CHARPTR_P): Moved to mb-*byte.h.
4099         (VALIDATE_CHARPTR_BACKWARD): Likewise.
4100         (VALIDATE_CHARPTR_FORWARD): Likewise.
4101         (simple_charptr_emchar): Moved to mb-multibyte.h.
4102         (simple_set_charptr_emchar): Likewise.
4103         (simple_charptr_copy_char): Likewise.
4104         (non_ascii_charptr_emchar): Likewise.
4105         (non_ascii_set_charptr_emchar): Likewise.
4106         (non_ascii_charptr_copy_char): Likewise.
4107         (charptr_emchar): Moved to mb-*byte.h.
4108         (set_charptr_emchar): Likewise.
4109         (charptr_copy_char): Likewise.
4110
4111         * mb-1byte.h, mb-multibyte.h: New files.
4112
4113 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4114
4115         * mb-utf-8.h (MULTIBYTE): New macro.
4116         (MAX_EMCHAR_LEN): Moved from buffer.h.
4117         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
4118
4119         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
4120
4121         * mb-lb.h, multibyte.h: New files.
4122
4123         * char-1byte.h (Charset_ID): Moved from buffer.h.
4124         (MIN_LEADING_BYTE): Likewise.
4125         (LEADING_BYTE_ASCII): Likewise.
4126         (NUM_LEADING_BYTES): Likewise.
4127         (CHARSETP): Likewise.
4128         (CHARSET_BY_LEADING_BYTE): Likewise.
4129         (XCHARSET_LEADING_BYTE): Likewise.
4130         (XCHARSET_GRAPHIC): Likewise.
4131         (XCHARSET_COLUMNS): Likewise.
4132         (XCHARSET_DIMENSION): Likewise.
4133         (CHAR_CHARSET): Likewise.
4134         (CHAR_LEADING_BYTE): Likewise.
4135         (BREAKUP_CHAR): Likewise.
4136         (Vcharset_ascii): Likewise.
4137
4138         * buffer.h: Include multibyte.h unconditionally.
4139         (VALID_CHARPTR_P): Moved to multibyte.h.
4140         (ASSERT_VALID_CHARPTR): Likewise.
4141         (REAL_INC_CHARPTR): Likewise.
4142         (REAL_INC_CHARBYTIND): Likewise.
4143         (REAL_DEC_CHARPTR): Likewise.
4144         (INC_CHARPTR): Likewise.
4145         (INC_CHARBYTIND): Likewise.
4146         (DEC_CHARPTR): Likewise.
4147         (VALIDATE_CHARPTR_BACKWARD): Likewise.
4148         (VALIDATE_CHARPTR_FORWARD): Likewise.
4149         (charptr_n_addr): Likewise.
4150         (MAX_EMCHAR_LEN): Moved to mb-*.h.
4151         (simple_charptr_emchar): Moved to multibyte.h.
4152         (simple_set_charptr_emchar): Likewise.
4153         (simple_charptr_copy_char): Likewise.
4154         (non_ascii_charptr_emchar): Likewise.
4155         (non_ascii_set_charptr_emchar): Likewise.
4156         (non_ascii_charptr_copy_char): Likewise.
4157         (charptr_emchar): Likewise.
4158         (set_charptr_emchar): Likewise.
4159         (charptr_copy_char): Likewise.
4160         (charptr_emchar_n): Likewise.
4161         (Charset_ID): Moved to char-1byte.h.
4162         (Vcharset_ascii): Likewise.
4163         (CHAR_CHARSET): Likewise.
4164         (CHAR_LEADING_BYTE): Likewise.
4165         (LEADING_BYTE_ASCII): Likewise.
4166         (NUM_LEADING_BYTES): Likewise.
4167         (MIN_LEADING_BYTE): Likewise.
4168         (CHARSETP): Likewise.
4169         (CHARSET_BY_LEADING_BYTE): Likewise.
4170         (XCHARSET_LEADING_BYTE): Likewise.
4171         (XCHARSET_GRAPHIC): Likewise.
4172         (XCHARSET_COLUMNS): Likewise.
4173         (XCHARSET_DIMENSION): Likewise.
4174         (BREAKUP_CHAR): Likewise.
4175
4176 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4177
4178         * character.h: Add document about interface for characters.
4179
4180         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
4181         (MAKE_CHAR): Delete comment about
4182         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
4183         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
4184         (BREAKUP_CHAR): Modify name of arguments.
4185         (CHAR_CHARSET): Modify name of argument.
4186
4187         * buffer.h: Delete document about Emchar accessors.
4188
4189 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4190
4191         * character.h (CHAR_INTP): Moved from buffer.h
4192         (CHAR_OR_CHAR_INTP): Likewise.
4193         (XCHAR_OR_CHAR_INT): Likewise.
4194         (CHECK_CHAR_COERCE_INT): Likewise.
4195
4196         * buffer.h (CHAR_INTP): Moved to character.h
4197         (CHAR_OR_CHAR_INTP): Likewise.
4198         (XCHAR_OR_CHAR_INT): Likewise.
4199         (CHECK_CHAR_COERCE_INT): Likewise.
4200
4201 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4202
4203         * character.h:
4204         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
4205         - Include char-1byte.h, char-lb.h or char-ucs.h.
4206
4207         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
4208
4209         * buffer.h: Include character unconditionally.
4210         (valid_char_p): Moved to char-*.h.
4211         (non_ascii_valid_char_p): Moved to char-lb.h.
4212
4213         * char-1byte.h, char-lb.h, char-ucs.h: New files.
4214
4215 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4216
4217         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
4218         in UTF-2000 because it is not ported yet and not to use
4219         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
4220         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
4221         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
4222
4223         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
4224         (CHAR_ASCII_P): Moved from character.h.
4225
4226         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
4227         (CHAR_ASCII_P): Likewise.
4228         (CHAR_FIELD1_MASK): Deleted.
4229         (CHAR_FIELD2_MASK): Deleted.
4230         (CHAR_FIELD3_MASK): Deleted.
4231         (MAX_CHAR_BASIC_LATIN): New macro.
4232         (CHAR_FIELD1): Deleted.
4233         (CHAR_FIELD2_INTERNAL): Deleted.
4234         (CHAR_FIELD3_INTERNAL): Deleted.
4235         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
4236         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
4237         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
4238         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
4239         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
4240         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
4241         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
4242         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
4243         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
4244         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
4245         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
4246         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
4247         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
4248         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
4249         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
4250         (MIN_CHAR_COMPOSITION): Deleted.
4251         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
4252         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
4253
4254 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
4255
4256         * buffer.h: Include mb-utf-8.h in UTF-2000.
4257
4258         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
4259
4260         * mb-utf-8.h: New file.
4261
4262 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
4263
4264         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
4265         instead of `int'.
4266
4267         * mule-charset.h, buffer.h (Charset_ID): New type.
4268
4269 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
4270
4271         * mule-canna.c (c2mu): Use `MAKE_CHAR',
4272         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
4273         instead of `MULE_CHAR_PRIVATE_OFFSET',
4274         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
4275         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
4276         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
4277
4278         * character.h (Vcharset_japanese_jisx0212): New variable
4279         definition.
4280
4281 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
4282
4283         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
4284         (charset_by_attributes): Delete array about direction.
4285         (latin_a_char_to_charset): New variable in UTF-2000.
4286         (latin_a_char_to_byte1): New variable in UTF-2000.
4287         (latin_a_char_to_byte2): New variable in UTF-2000.
4288         (Qucs_bmp): New variable.
4289         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
4290         `Bufbyte'.
4291         (next_allocated_2_byte_leading_byte): Likewise.
4292         (non_ascii_set_charptr_emchar): Likewise.
4293         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
4294         `CHARSET_TYPE_256X256' in UTF-2000; modify for
4295         `charset_by_attributes'.
4296         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
4297         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
4298         and `CHARSET_BY_LEADING_BYTE'.
4299         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
4300         `utf-2000-version' to `vars_of_mule_charset'.
4301         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
4302         define `leading-code-private-11' in UTF-2000; move setting of
4303         `utf-2000-version' from `syms_of_mule_charset'.
4304         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
4305         UTF-2000.
4306
4307         * character.h (Charset_ID): New type.
4308         (LEADING_BYTE_UCS_BMP): New macro.
4309         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
4310         (CHARSET_ID_OFFSET_94): New macro.
4311         (MIN_CHARSET_ID_PRIVATE_94): New macro.
4312         (MAX_CHARSET_ID_PRIVATE_94): New macro.
4313         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
4314         final-byte.
4315         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
4316         (LEADING_BYTE_LATIN_JISX0201): Likewise.
4317         (CHARSET_ID_OFFSET_96): New macro.
4318         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
4319         CHARSET_ID_OFFSET_96 and final-byte.
4320         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
4321         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
4322         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
4323         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
4324         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
4325         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
4326         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
4327         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
4328         (LEADING_BYTE_THAI_TIS620): Likewise.
4329         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
4330         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
4331         (CHARSET_ID_OFFSET_94x94): New macro.
4332         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
4333         CHARSET_ID_OFFSET_94x94 and final-byte.
4334         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
4335         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
4336         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
4337         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
4338         (LEADING_BYTE_CHINESE_GB2312): Likewise.
4339         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
4340         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
4341         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
4342         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
4343         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
4344         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
4345         (CHARSET_TYPE_128X128): New macro.
4346         (CHARSET_TYPE_256X256): New macro.
4347         (XCHARSET_PRIVATE_P): Delete unconditionally.
4348         (charset_by_attributes): Delete array about direction.
4349         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
4350         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
4351         (MIN_CHAR_94): New macro.
4352         (MAX_CHAR_94): New macro.
4353         (MIN_CHAR_96): New macro.
4354         (MAX_CHAR_96): New macro.
4355         (MIN_CHAR_94x94): New macro.
4356         (MAX_CHAR_94x94): New macro.
4357         (MIN_CHAR_96x96): New macro.
4358         (MAX_CHAR_96x96): New macro.
4359         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
4360         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
4361         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
4362         - 32)'.
4363         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
4364         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
4365         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
4366         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
4367         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
4368         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
4369         `XCHARSET_LEADING_BYTE' to make code-point.
4370         (latin_a_char_to_charset): New variable.
4371         (latin_a_char_to_byte1): New variable.
4372         (latin_a_char_to_byte2): New variable.
4373         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
4374         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
4375         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
4376
4377         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
4378         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
4379         (find_charsets_in_emchar_string): Likewise.
4380         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
4381
4382         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
4383         `int'.
4384         (decode_coding_iso2022): Likewise.
4385
4386         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
4387         of `unsigned char'.
4388
4389         * redisplay.c (redisplay_text_width_emchar_string): Use
4390         `Charset_ID' instead of `unsigned char'.
4391         (redisplay_frame_text_width_string): Likewise.
4392
4393         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
4394         `unsigned char'.
4395
4396         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
4397         instead of `unsigned char'.
4398         (face_cachel_charset_font_metric_info): Likewise.
4399
4400         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
4401         (get_non_ascii_char_table_value): Likewise.
4402         (get_char_table): Likewise.
4403         (put_char_table): Likewise.
4404         (map_over_other_charset): Likewise.
4405         (map_char_table): Likewise.
4406
4407         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
4408         instead of `unsigned char'.
4409
4410 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
4411
4412         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
4413         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
4414
4415         * mule-charset.c (leading_code_private_11): Don't define in
4416         UTF-2000.
4417
4418         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
4419         in UTF-2000 because it is not ported yet and not to use
4420         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
4421
4422 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
4423
4424         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
4425
4426 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4427
4428         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
4429         in UTF-2000.
4430
4431         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
4432         of unsigned char to store leading-byte.
4433
4434         * chartab.c (get_non_ascii_char_table_value): Don't use
4435         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
4436
4437         * file-coding.c (encode_coding_big5): Delete bogus implementation
4438         in UTF2000.
4439
4440         * character.h (LEADING_BYTE_*): Delete definition for
4441         non-UTF-2000.
4442         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
4443         (LEADING_BYTE_PREFIX_P): Deleted.
4444         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
4445         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
4446         (BUFBYTE_LEADING_BYTE_P): Deleted.
4447         (CHARSET_PRIVATE_P): Deleted unconditionally.
4448         (rep_bytes_by_first_byte): Deleted unconditionally.
4449         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
4450         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
4451         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
4452         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
4453         (CHAR_FIELD2): Deleted.
4454         (CHAR_FIELD3): Deleted.
4455         (MAKE_CHAR): Delete definition for non-UTF-2000.
4456         (BREAKUP_CHAR_1_UNSAFE): Deleted.
4457         (breakup_char_1): New implementation.
4458         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
4459         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
4460
4461 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4462
4463         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
4464         condition.
4465
4466 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4467
4468         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
4469         (CHARSET_PRIVATE_P): Likewise.
4470         (XCHARSET_PRIVATE_P): Likewise.
4471         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
4472
4473         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
4474         UTF2000.
4475         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
4476
4477 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4478
4479         * character.h (LEADING_BYTE_*): Changed in UTF2000.
4480         (NUM_LEADING_BYTES): Changed from 128 to 256.
4481         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
4482         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
4483         UTF2000.
4484         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
4485
4486         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
4487         UTF2000.
4488         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
4489         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
4490         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
4491         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
4492         (Qchinese_cns11643_3): New variable in UTF2000.
4493         (Qchinese_cns11643_4): New variable in UTF2000.
4494         (Qchinese_cns11643_5): New variable in UTF2000.
4495         (Qchinese_cns11643_6): New variable in UTF2000.
4496         (Qchinese_cns11643_7): New variable in UTF2000.
4497         (syms_of_mule_charset): Define `chinese-cns11643-3',
4498         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
4499         and `chinese-cns11643-7' in UTF2000.
4500         (vars_of_mule_charset): Initialize
4501         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
4502         + 1 in UTF2000.
4503         (complex_vars_of_mule_charset): Setup charset
4504         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
4505         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
4506
4507 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4508
4509         * mule-charset.c: Move setting for `leading-code-private-11' from
4510         `syms_of_mule_charset' to `vars_of_mule_charset'.
4511
4512 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4513
4514         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
4515         and `NUM_LEADING_BYTES' in assert.
4516
4517 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4518
4519         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
4520         instead of 128.
4521         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
4522         `NUM_LEADING_BYTES' instead of 128.
4523
4524 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
4525
4526         * mule-charset.h (charset_by_leading_byte): Use
4527         `NUM_LEADING_BYTES' instead of 128.
4528         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
4529
4530         * mule-charset.c (charset_by_leading_byte): Use
4531         `NUM_LEADING_BYTES' instead of 128.
4532         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
4533
4534         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
4535         128.
4536
4537 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
4538
4539         * mule-charset.c (syms_of_mule_charset): Update to
4540         0.4 (Shin-Imamiya).
4541
4542 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
4543
4544         * file-coding.c (encode_coding_sjis): New implementation for
4545         UTF2000.  (decode_coding_sjis): Ditto.
4546
4547 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4548
4549         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
4550         Don't define in UTF2000.
4551
4552         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
4553         defined.
4554
4555         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
4556         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
4557         MULE.
4558
4559 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4560
4561         * config.h.in (CHAR_IS_UCS4): New macro.
4562
4563         * mule-charset.c (rep_bytes_by_first_byte): Modify for
4564         conventional MULE representation.
4565         (syms_of_mule_charset): Update to 0.3 (Imamiya).
4566
4567         * mule-charset.h: Reverted to original.
4568
4569         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
4570         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
4571         "mule-charset.h" if CHAR_IS_UCS4 is defined.
4572
4573         * character.h: New file.
4574
4575         * file-coding.c (Fmake_coding_system): Set 1 to
4576         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
4577         defined.
4578         (encode_coding_no_conversion): New implementation for UTF2000.
4579
4580         * file-coding.h (struct Lisp_Coding_System): Add new member
4581         `fixed.size'.
4582
4583 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
4584
4585         * file-coding.c (decode_coding_iso2022): Code-point arguments of
4586         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
4587         (encode_coding_iso2022): New implementation for UTF2000.
4588
4589 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4590
4591         * mule-canna.c (c2mu): New implementation for UTF2000.
4592         (m2c): Likewise.
4593
4594 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4595
4596         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
4597
4598 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4599
4600         * file-coding.c (reset_encoding_stream): Set 0 to
4601         `str->iso2022.current_char_boundary' in UTF2000.
4602         (encode_utf8): Don't define in UTF2000.
4603         (encode_coding_utf8): New implementation for UTF-8 representation
4604         of UTF2000.
4605         (complex_vars_of_file_coding): Define coding-system `utf-8'.
4606
4607 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4608
4609         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
4610
4611         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
4612         UTF2000.
4613         (REP_BYTES_BY_FIRST_BYTE): Likewise.
4614
4615         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
4616
4617         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
4618         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
4619         as UTF-8 in UTF2000.
4620         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
4621         (non_ascii_valid_char_p): Don't define in UTF2000.
4622         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
4623         (Lstream_get_emchar_1): Likewise.
4624         (utf-2000-version): New variable in UTF2000.
4625
4626         * lread.c (read_escape): Add new reader `u'.
4627
4628         * insdel.c (three_to_one_table): Don't define in UTF2000.
4629         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
4630         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
4631         UTF2000.
4632         (bytind_to_bufpos_func): Likewise.
4633         (buffer_mule_signal_inserted_region): Likewise.
4634         (vars_of_insdel): Don't initialize `three_to_one_table'.
4635         (init_buffer_text): Use `buf->text->mule_size' instead of
4636         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
4637         UTF2000.
4638
4639         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
4640         UTF-8 representation in UTF2000.
4641         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
4642         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
4643         (decode_coding_iso2022): Don't define local variable `lb' in
4644         UTF2000; don't use LEADING_BYTE in UTF2000; use
4645         `DECODE_ADD_UCS_CHAR' in UTF2000.
4646         (convert_to_external_format): Decode as UTF-8 in UTF2000.
4647
4648         * config.h.in (UTF2000): New macro.
4649
4650         * buffer.h (struct buffer_text): Add new member `mule_size' and
4651         don't add `mule_shifter' and `mule_three_p' in UTF2000.
4652         (valid_char_p): Return always 1 in UTF2000.
4653         (MAX_EMCHAR_LEN): 6 in UTF2000.
4654         (three_to_one_table): Don't define in UTF2000.
4655         (real_bufpos_to_bytind): Modify for UTF-8 representation in
4656         UTF2000.
4657         (real_bytind_to_bufpos): Likewise.
4658
4659         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
4660
4661 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4662
4663         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
4664         representation change.
4665         (Vutf_2000_version): New variable.
4666         (leading_code_private_11): New variable.
4667         (syms_of_mule_charset): Add new variables `utf-2000-version' and
4668         `leading-code-private-11'.
4669
4670         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
4671         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
4672         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
4673         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
4674         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
4675         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
4676         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
4677         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
4678         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
4679         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
4680         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
4681         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
4682         (MIN_CHAR_GREEK): New macro.
4683         (MAX_CHAR_GREEK): New macro.
4684         (MIN_CHAR_CYRILLIC): New macro.
4685         (MAX_CHAR_CYRILLIC): New macro.
4686         (MIN_CHAR_HEBREW): New macro.
4687         (MAX_CHAR_HEBREW): New macro.
4688         (MIN_CHAR_THAI): New macro.
4689         (MAX_CHAR_THAI): New macro.
4690         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
4691         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
4692         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
4693         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
4694         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
4695         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
4696         (CHAR_FIELD2): New inline function.
4697         (CHAR_FIELD3): New inline function.
4698         (MULE_CHAR_PRIVATE_OFFSET): New macro.
4699         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
4700         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
4701         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
4702         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
4703         (MIN_CHAR_COMPOSITION): Likewise.
4704         (CHAR_LEADING_BYTE): Modified for character representation change.
4705         (MAKE_CHAR): Likewise.
4706
4707         * lisp.h (Vcharset_latin_iso8859_1): New variable.
4708         (Vcharset_greek_iso8859_7): Likewise.
4709         (Vcharset_cyrillic_iso8859_5): Likewise.
4710         (Vcharset_hebrew_iso8859_8): Likewise.
4711         (Vcharset_thai_tis620): Likewise.
4712         (Vcharset_katakana_jisx0201): Likewise.
4713
4714 2003-01-03  Stephen J. Turnbull  <stephen@xemacs.org>
4715
4716         * XEmacs 21.4.11 "Native Windows TTY Support" is released.
4717
4718 2002-12-14  Ben Wing  <ben@xemacs.org>
4719
4720         * callint.c: Declaration error.
4721         * dumper.c (pdump):
4722         * dumper.c (pdump_load): Warning fix.
4723         * process.c: GCPRO error.
4724         * glyphs.c (unmap_subwindow):
4725         * glyphs.c (map_subwindow): Parenthesizing errors with ! and &&.
4726         * event-stream.c (maybe_kbd_translate): Wrong argument to
4727         character_to_event().
4728
4729         * alloc.c (garbage_collect_1):
4730         * emacs.c:
4731         * emacs.c (debug_can_access_memory):
4732         * emacs.c (fatal_error_signal):
4733         * emacs.c (mswindows_handle_hardware_exceptions):
4734         * emacs.c (main_1):
4735         * emacs.c (main):
4736         * emacs.c (assert_failed):
4737         * emacs.c (syms_of_emacs):
4738         * lisp.h:
4739         * print.c:
4740         * print.c (std_handle_out_va):
4741         * print.c (write_string_to_stdio_stream):
4742         * print.c (write_fmt_string):
4743         * print.c (printing_badness):
4744         * print.c (printing_major_badness):
4745         * print.c (print_internal):
4746         * print.c (debug_print_no_newline):
4747         * print.c (debug_backtrace):
4748         Be more defensive in handling bad values when printing.  Add code
4749         from trunk involving inhibit_non_essential_printing_operations.
4750         When going down or in debug_print(), don't do external conversion
4751         and such and try really, really hard when printing to avoid core
4752         dumping.  Add force-debugging-signal, debug_break().
4753
4754 2002-12-12  Stephen J. Turnbull  <stephen@xemacs.org>
4755
4756         * dumper.c (pdump_load): Include sysdep.h; retry with truename.
4757         Analysis and original patch by Vin Shelton <acs@xemacs.org>.
4758
4759 2002-12-02  Greg Allen  <greg_allen@westlb-systems.co.uk>
4760
4761         * database.c: Fix open_database. Berkeley DB API has changed in
4762         4.1. see: http://www.sleepycat.com/docs/ref/upgrade.4.1/fop.html
4763
4764 2002-11-26  Stephen J. Turnbull  <stephen@xemacs.org>
4765
4766         * specifier.c (Fvalid_specifier_type_p): Typo in comment.
4767
4768 2002-11-13  Stephen J. Turnbull  <stephen@xemacs.org>
4769
4770         * event-Xt.c (Xt_timeout):
4771         (Xt_timeout_callback):
4772         (emacs_Xt_add_timeout):
4773         (emacs_Xt_remove_timeout):
4774         (Xt_timeout_to_emacs_event):
4775         Turn completed_timeouts from a stack into a queue.  Fixes
4776         deadlocks <15829.21626.171573.994716@sinisa.nasamreza.org>.
4777
4778 2002-11-07  Wolfram Gloger  <wg@malloc.de>
4779
4780         * alloc.c (reinit_alloc_once_early): Disable mmap in Doug Lea malloc.
4781         * emacs.c (main): Assert that mmap'd allocation is disabled.
4782
4783 2002-10-14  Andy Piper  <andy@xemacs.org>
4784
4785         * glyphs-widget.c (layout_query_geometry): add in fiddle
4786         factor. Include border text in width layout calculation.
4787         (layout_layout): use BORDER_FIDDLE_FACTOR instead of 10.
4788
4789 2002-11-02  Stephen J. Turnbull  <stephen@xemacs.org>
4790
4791         * XEmacs 21.4.10 "Military Intelligence" is released.
4792
4793 2002-10-17  Raymond Toy  <toy@rtp.ericsson.se>
4794
4795         * nas.c: Update for NAS 1.6 and later, from Jon Trulson.  Was
4796         using the NAS private array SoundFileInfo that no longer exists in
4797         NAS 1.6 and later.  Preserve backward compatibility with NAS 1.5a
4798         and earlier.  This is broken for some versions between 1.5a and
4799         1.5f.
4800
4801 2002-10-10  Stephen J. Turnbull  <stephen@xemacs.org>
4802
4803         * realpath.c (win32_readlink): Try to fix truename of wildcard bug.
4804
4805         * emacs.c (shut_down_emacs): Improve crash message.
4806
4807 2002-10-09  Stephen J. Turnbull  <stephen@xemacs.org>
4808
4809         * file-coding.c (determine_real_coding_system): Check for coding
4810         cookie in first LINES_TO_CHECK lines (currently 2).  Cater to
4811         shebangs and Python PEP 263.
4812
4813 2002-10-08  Andy Piper  <andy@xemacs.org>
4814
4815         * glyphs-widget.c (layout_query_geometry): only resize dynamically
4816         if static sizes haven't been set.
4817
4818 2002-08-30  Mike Alexander  <mta@arbortext.com>
4819
4820         * event-msw.c (winsock_closer): Use closesocket, not CloseHandle
4821         to close a socket.
4822
4823 2002-10-03  Stephen J. Turnbull  <stephen@xemacs.org>
4824
4825         * callproc.c (child_setup): 21.4 doesn't have retry_close.
4826
4827 2002-09-20  Mike Sperber <mike@xemacs.org>
4828
4829         (This partially gets back my patch from 2002-07-20 without the
4830         bug.)
4831         * callproc.c (child_setup): Remove Ben's comment noting confusion
4832         over the file descriptors >= 3: close_process_descs() doesn't
4833         close those.  Fix fd range to go up to MAXDESC-1 instead of 64.
4834         * process-unix.c (unix_create_process): Call
4835         begin_dont_check_for_quit to inhibit unwanted interaction (and
4836         thus breaking of X event synchronicity) in the child.
4837
4838 2002-09-26  Golubev I. N.  <gin@mo.msk.ru>
4839
4840         * frame-x.c (x_delete_frame): do not call XtDisplay on a destroyed
4841         widget.
4842
4843 2002-08-20  Ben Sigelman  <bhsigelm@cs.brown.edu>
4844
4845         * event-Xt.c (drain_X_queue): loop over while(XEventsQueued())
4846         instead of while(XtAppPending()&XtIMXEvent).  Upon a gdm logout,
4847         the xemacs process did not exit, but looped infinitely here.  This
4848         fixes that problem.
4849
4850 2002-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
4851
4852         * font-lock.c (SYNTAX_START_STYLE, SYNTAX_END_STYLE): Quiet GCC.
4853         (find_context): Improve comments.
4854
4855         * regex.c (re_compile_fastmap):  Gratuitous #ifdef comment fixes.
4856         (re_match_2): An XCHAR_TABLE operation was missing.
4857
4858         Many of the following changes were inspired by Andy Piper's (now
4859         obsolete) patch to make syntax-table text property lookup optional.
4860
4861         [Documentation]
4862
4863         * syntax.h (top level): Document semantics of syntax flags.
4864         * syntax.c (comstr_start, Fforward_comment): Improve comments.
4865         * syntax.c, syntax.h (top level): Document syntax cache better in
4866         comments.
4867
4868         [Instrument syntax caching (temporary change)]
4869
4870         * syntax.h (enum syntax_cache_statistics_functions, struct
4871         syntax_cache_statistics, SCS_STATISTICS_SET_FUNCTION,
4872         SYNTAX_CACHE_STATISTICS_COUNT_INIT): New types and macros.
4873         * syntax.c (scan_words, Fforward_comment, scan_lists,
4874         Fbackward_prefix_characters):
4875         * font-lock.c (find_context):
4876         Use them to instrument syntax caching. 
4877         * syntax.c (struct syntax_cache_statistics, scs_statistics,
4878         syntax_cache_statistics_function_names): New type and variables.
4879         * syntax.c (update_syntax_cache): Update and report statistics.
4880
4881         [Major syntax cache optimizations]
4882
4883         syntax.c (lookup_syntax_properties): Default off.
4884
4885         * syntax.h (UPDATE_SYNTAX_INTERNAL): New, implements UPDATE_SYNTAX*.
4886         * syntax.c (update_syntax_cache):
4887         Move init test from update_syntax_cache to UPDATE_SYNTAX_INTERNAL.
4888
4889         [Minor syntax cache optimizations and code clarifications]
4890
4891         * syntax.h (SYNTAX_COMMENT_BITS, SYNTAX_START_P, SYNTAX_END_P,
4892         SYNTAX_STYLES_MATCH_START_P, SYNTAX_STYLES_MATCH_1CHAR_P,
4893         SYNTAX_STYLES_MATCH_END_P, STYLE_FOUND_1CHAR_P, STYLE_FOUND_P,
4894         SYNTAX_COMMENT_MASK_END, SYNTAX_COMMENT_MASK_START,
4895         SYNTAX_COMMENT_1CHAR_MASK): Remove redundant argument `table'.
4896         (Code clarification.)
4897
4898         * syntax.c (scan_words, find_end_of_comment, scan_sexps_forward,
4899         scan_lists): Compute code from syncode, use Boolean macros instead
4900         of redundant masking operations.  (Code clarification; any decent
4901         compiler can do this optimization.)
4902
4903         * syntax.c (scan_lists): Rearrange switches (case Sstring_fence)
4904         for clarity.
4905
4906         * syntax.h, syntax.c (NEXT_SINGLE_PROPERTY_CHANGE,
4907         PREVIOUS_SINGLE_PROPERTY_CHANGE, update_syntax_cache): Conditionally
4908         use F*_single_property_change instead of F*_extent_change.
4909         Currently F*_single_property_change is _much_ less efficient.
4910
4911         * dired.c (Fdirectory_files): Qt not valid in syntax_cache.object.
4912         * syntax.h (SETUP_SYNTAX_CACHE_FOR_OBJECT):  Initialize
4913         syntax_cache.object properly, don't leave Qt or Qnil.
4914         (SYNTAX_CACHE_BYTE_TO_CHAR): Use SETUP_SYNTAX_CACHE_FOR_OBJECT.
4915         * syntax.c (update_syntax_cache): Use BUFFERP and STRINGP, not
4916         tests for Qt or Qnil.
4917
4918 2002-09-21  Stephen J. Turnbull  <stephen@xemacs.org>
4919
4920         * redisplay.c (point_in_line_start_cache): 
4921         * extents.c (print_extent_1):
4922         Fix warnings.
4923
4924         * extents.c (Fset_extent_property): Document `syntax-table' property.
4925
4926         * extents.h (Fnext_single_property_change): EXFUN it.
4927
4928 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
4929
4930         * search.c (clear_unused_search_regs): New static function.
4931         (search_buffer): 
4932         (simple_search): 
4933         (boyer_moore):
4934         Use it.  Fixes "stale match data" bug reported by Martin Stjernholm.
4935         Minor clarifications in comments.
4936
4937         * regex.c (re_match_2_internal): Ensure no stale submatches.
4938
4939 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
4940
4941         * event-Xt.c (enqueue_focus_event): Add missing prototype.
4942
4943 2002-08-29  Jerry James  <james@xemacs.org>
4944
4945         * lisp.h: structrures -> structures.
4946
4947 2002-06-03  Andy Piper  <andy@xemacs.org>
4948
4949         * frame.c (frame_conversion_internal): add conversion appropriate
4950         for setting frame dimensions in pixels.
4951
4952         * console.h (struct console_methods): add device-specific widget
4953         layout functions.
4954
4955         * emacs.c (main_1): initialize glyph vars.
4956
4957         * event-Xt.c (handle_focus_event_1): call handle_focus_event_2
4958         (handle_focus_event_2): new function. Allow focus to
4959         be set to a particular window and widget.
4960         (enqueue_focus_event): new function. Create a
4961         synthetic focus event.
4962         (emacs_Xt_handle_magic_event): call
4963         handle_focus_event_2.
4964
4965         * frame.c (Fset_frame_pixel_height): new function. Allow
4966         pixel-based sizing. Does the right thing on character-oriented
4967         displays.
4968         (Fset_frame_pixel_width): ditto.
4969         (Fset_frame_pixel_size): ditto.
4970         (syms_of_frame): declare.
4971
4972         * general-slots.h: add :vertically-justify and
4973         :horizontally-justify.
4974
4975         * glyphs-msw.c (xbm_create_bitmap_from_data): warning fix.
4976         (mswindows_widget_border_width): new function.
4977         (mswindows_combo_box_instantiate): set border widths.
4978         (console_type_create_glyphs_mswindows): declare.
4979
4980         * glyphs-widget.c:
4981         (check_valid_justification): allow vertical and horizontal
4982         justification.
4983         (widget_border_width): new function. Call device methods.
4984         (widget_instance_border_width): ditto.
4985         (logical_unit_height): new function. Determine the height of a
4986         logical-unit. Logical units are intended to provide grid-like
4987         layout for subcontrols in a layout. If the layout is
4988         :vertically-justify top then subcontrols will be positioned on
4989         logical-unit boundaries, thus allowing adjacent subcontrols to
4990         line up.
4991         (widget_logical_unit_height): ditto for widgets.
4992         (redisplay_widget): misc cleanup.
4993         (widget_spacing): new function. Call device specific
4994         methods. Intended to be the default gap between adjacent widgets.
4995         (widget_query_geometry): use new spacing functions to determine
4996         appropriate geometry.
4997         (initialize_widget_image_instance): initialize horizontal and
4998         vertical justification.
4999         (widget_instantiate): use logica-units where appropriate for
5000         sizing large widgets.
5001         (button_query_geometry): use widget_instance_border_width.
5002         (tree_view_query_geometry): ditto.
5003         (tab_control_query_geometry): ditto.
5004         (edit_field_query_geometry): new function.
5005         (layout_update): pick up :justify, :horizontally-justify and
5006         :vertically-justify none of which worked previously. :justify is
5007         used as a fallback for both horizontal and vertical justification.
5008         (layout_query_geometry): use logical units to size appropriately.
5009         (layout_layout): ditto.
5010         (Fwidget_logical_to_character_width): new function. Allow users to
5011         convert from logical units to characters so that frame sizes can
5012         be set appropriately.
5013         (Fwidget_logical_to_character_height): ditto.
5014         (syms_of_glyphs_widget): declare.
5015         (image_instantiator_edit_fields): add edit_field_query_geometry.
5016         (VALID_LAYOUT_KEYWORDS): declare :vertically-justify and
5017         :horizontally-justify.
5018         (specifier_vars_of_glyphs_widget): new function. Declare
5019         Vwidget_border_width which is not yet used.
5020
5021         * glyphs-x.c (x_map_subwindow): enqueue appropriate focus events.
5022         (x_widget_border_width): new function.
5023         (x_widget_instantiate): create a sensible name for widgets.
5024         (console_type_create_glyphs_x): declare x_widget_border_width.
5025
5026         * glyphs.h (DEFAULT_WIDGET_BORDER_WIDTH): new macro.
5027         (struct Lisp_Image_Instance): add :vertically-justify and
5028         :horizontally-justify.
5029         (LAYOUT_JUSTIFY_TOP): new.
5030         (IMAGE_INSTANCE_SUBWINDOW_H_JUSTIFY): new.
5031         (ROUND_UP): new macro. Round argument up to next integral
5032         interval.
5033
5034         * redisplay-output.c (redisplay_output_layout): misc formatting.
5035
5036         * symsinit.h: declare specifier_vars_of_glyphs_widget.
5037
5038 2002-08-23  Stephen J. Turnbull  <stephen@xemacs.org>
5039
5040         * XEmacs 21.4.9 "Informed Management" is released.
5041
5042 2002-08-19  Andy Piper  <andy@xemacs.org>
5043
5044         * fileio.c (Ffile_truename): on cygwin using win32 normalize to
5045         win32 format.
5046
5047         * realpath.c (xrealpath): normalize drive spec also so that dir
5048         sep chars are not mixed on cygwin.
5049
5050 2002-08-06  Jerry James  <james@xemacs.org>
5051
5052         * window.c (Fsplit_window): Count only half of the divider width
5053         against the left window when splitting horizontally. 
5054
5055 2002-06-24  Andy Piper  <andy@xemacs.org>
5056
5057         * toolbar-gtk.c (GTK_OUTPUT_BUTTONS_LOOP): output button if whole
5058         toolbar was cleared.
5059
5060         * toolbar-msw.c (mswindows_clear_frame_toolbars): new
5061         function. Split out from mswindows_output_frame_toolbars.
5062         (mswindows_output_frame_toolbars): move clear pieces to
5063         mswindows_output_frame_toolbars.
5064
5065         * toolbar-gtk.c (gtk_clear_frame_toolbars): new function. Split
5066         out from gtk_output_frame_toolbars.
5067         (gtk_output_frame_toolbars): move clear pieces to
5068         gtk_clear_frame_toolbars.
5069
5070         * toolbar-x.c (X_OUTPUT_BUTTONS_LOOP): always output buttons when
5071         the frame is cleared. How this ever worked before is a mystery.
5072         (x_output_frame_toolbars): Only output toolbars.
5073         (x_clear_frame_toolbars): new. Clear previous toolbar locations.
5074
5075         * gutter.c (update_gutter_geometry):
5076         Mark frame layout changed.
5077         (update_frame_gutter_geometry, update_frame_gutters):
5078         Respect frame_layout_changed.
5079
5080         * console.h (struct console_methods): add
5081         clear_frame_toolbars_method.
5082
5083         * redisplay.c (redisplay_frame): call
5084         update_frame_toolbars_geometry and re-order update_frame_toolbars.
5085
5086         * toolbar.h: declare update_frame_toolbars_geometry.
5087
5088         * toolbar.c (update_frame_toolbars_geometry): new function. Split
5089         out from update_frame_toolbars.  Call clear_frame_toolbars.
5090         (update_frame_toolbars): only output, do not change geometry.
5091
5092         * redisplay.c: add frame_layout_changed.
5093
5094         * redisplay.h: add frame_layout_changed.
5095         (CLASS_RESET_CHANGED_FLAGS): set it.
5096         (GLOBAL_RESET_CHANGED_FLAGS): ditto.
5097         (CLASS_REDISPLAY_FLAGS_CHANGEDP): test it.
5098         (GLOBAL_REDISPLAY_FLAGS_CHANGEDP): ditto.
5099
5100         * device.h (struct device): add frame_layout_changed.
5101         (MARK_DEVICE_FRAME_LAYOUT_CHANGED): new.
5102
5103         * frame.h (struct frame): add frame_layout_changed.
5104         (MARK_FRAME_LAYOUT_CHANGED): new.
5105
5106 2002-06-30  Mike Alexander  <mta@arbortext.com>
5107
5108         * event-msw.c (mswindows_need_event): Don't wait for a new message
5109         if the queue is not empty.  Suggested by Paul Moore.
5110
5111 2002-06-12  Andy Piper  <andy@xemacs.org>
5112
5113         * frame-msw.c (msprinter_init_frame_3): calculate the frame size
5114         for printing on accurately.
5115
5116 2002-06-09  Rick Rankin <rick_rankin@yahoo.com>
5117
5118         * event-msw.c (mswindows_wnd_proc): Add a handler for the
5119         WM_ACTIVATE message. Make sure that the frame is visible if the
5120         window is visible. This seemss to fix the problem where XEmacs
5121         appears to freeze after switching desktops with certain virtual
5122         window managers.
5123         (debug_output_mswin_message): Added code to output message
5124         parameters for WM_WINDOWPOSCHANGED, 
5125         WM_WINDOWPOSCHANGING, WM_MOVE, and WM_SIZE messages.
5126
5127 2002-05-25  Andy Piper  <andy@xemacs.org>
5128
5129         * select-x.c (vars_of_select_x): Fix docstring of
5130         x-selection-strict-motif-ownership
5131
5132 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
5133
5134         * keymap.c (get_keymap):
5135         Add comment about do_autoload GCPROs own args.
5136
5137 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
5138
5139         * bytecode.c (execute_optimized_program): check_opcode ifdef
5140         ERROR_CHECK_BYTE_CODE.
5141
5142 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
5143
5144         Thanks to Ben Wing and Michael Sperber.
5145
5146         * eval.c (Fcommand_execute):
5147         (Feval):
5148         (Ffuncall):
5149         (Fmacroexpand_internal):
5150         (function_argcount):
5151         callint.c (Fcall_interactively):
5152         Add comment about do_autoload GCPROs own args.
5153
5154         * (do_autoload): GCPRO both args as well as local Lisp_Object.
5155
5156         * eval.c (Ffuncall): Extra braces to placate GCC.
5157
5158 2002-08-10  Stephen J. Turnbull  <stephen@xemacs.org>
5159
5160         * backtrace.h (grow_specpdl):
5161         (SPECPDL_RESERVE):
5162         * EmacsFrame.c (EmacsFrameSetValues):
5163         * eval.c (grow_specpdl):
5164         * ExternalShell.c (hack_event_masks_1):
5165         * glyphs-x.c (convert_EImage_to_XImage): 
5166         (x_finalize_image_instance):
5167         * ralloc.c (page_size):
5168         (r_alloc_sbrk):
5169         * xgccache.c (gc_cache_hash):
5170         Fix unsigned comparison warnings.
5171
5172 2002-07-29  Jerry James  <james@xemacs.org>
5173
5174         * lread.c (locate_file): Any nonnegative return value indicates
5175         success if MODE is nonnegative.
5176
5177 2002-08-03  Brian A Palmer  <bpalmer@rescomp.Stanford.EDU>
5178
5179         * emacs.c (Fsplit_string_by_char): Make 2nd arg SEPCHAR a required
5180         argument. 
5181
5182 2002-07-17  Stephen J. Turnbull  <stephen@xemacs.org>
5183
5184         * process-unix.c (unix_send_process): #ifdef the coding_stream member.
5185
5186         * dumper.c (pdump_get_indirect_count):
5187         (pdump_scan_by_alignment):
5188         (pdump_dump_root_struct_ptrs):
5189         (pdump_dump_rtables):
5190         (pdump_dump_root_objects):
5191         (pdump):
5192         * nas.c (WaveOpenDataForReading):
5193         * fns.c (print_bit_vector):
5194         * font-lock.c (SINGLE_SYNTAX_STYLE):
5195         * glyphs.c (check_for_ignored_expose):
5196         (find_matching_subwindow):
5197         * glyphs-eimage.c:
5198         * imgproc.c (get_histogram):
5199         * redisplay.c (point_in_line_start_cache):
5200         * redisplay-output.c (redisplay_unmap_subwindows):
5201         * symbols.c (defsymbol_massage_name_1):
5202         (defkeyword_massage_name):
5203         (deferror_massage_name_and_message):
5204         * redisplay-x.c (x_output_string): 
5205         * emacs.c (run_temacs_argv_size, run_temacs_args_size):
5206         * frame.h (struct frame):
5207         * filelock.c (current_lock_owner):
5208         * doprnt.c (emacs_doprnt_1):
5209         * lisp.h (struct Lisp_Bit_Vector):
5210         (DO_REALLOC):
5211         Fix warnings.
5212
5213 2002-02-13  Ben Wing  <ben@xemacs.org>
5214
5215         * event-stream.c (reset_key_echo):
5216         * event-stream.c (reset_this_command_keys):
5217         * event-stream.c (execute_command_event):
5218         If console is dead as a result of C-x 5 0, then post-command stuff
5219         needs to be careful and do only non-console-specific stuff.
5220
5221 2002-07-01  Mike Sperber <mike@xemacs.org>
5222
5223         * process-unix.c (unix_send_process): Mark coding_outstream as
5224         non-open upon SIGPIPE.
5225
5226         * event-stream.c (Fnext_event): Reorder switch cases to something
5227         that makes sense.
5228
5229 2001-08-13  Dmitry Astapov  <adept@umc.com.ua>
5230
5231         * event-Xt.c (maybe_define_x_key_as_self_inserting_character):
5232         Don't bogusly reinitialize ascii_character property.
5233
5234 2002-07-08  Mike Sperber <mike@xemacs.org>
5235
5236         * process.c (Fstart_process_internal): Do error checking before we
5237         fork off the child, so the child can't muck with the state of the
5238         parent.
5239
5240 2002-07-08  Mike Sperber <mike@xemacs.org>
5241
5242         * ralloc.c (init_ralloc): Allocate properly for pdump.
5243
5244 2002-06-12  Andy Piper  <andy@xemacs.org>
5245
5246         * glyphs.c (query_string_geometry): check the string.
5247
5248         * glyphs-widget.c (widget_logical_unit_height): cope with nil
5249         widget names.
5250
5251 2002-06-17  Jerry James  <james@xemacs.org>
5252
5253         * sysdll.c: Remove RTLD_GLOBAL initialization.
5254         * sysdll.c (dll_open): Do not use RTLD_GLOBAL.
5255
5256 2002-06-25  Stephen J. Turnbull  <stephen@xemacs.org>
5257
5258         * search.c (skip_chars): Port Ben's crash fix and efficiency patch.
5259
5260 2002-05-16  Mathias Grimmberger  <mgri@zaphod.sax.de>
5261
5262         * sysdep.c (sys_rename): Make sys_rename work for the case where
5263         Windows rename sets errno to EACCES if target file exists.
5264
5265 2002-05-21  Jonathan Harris  <jonathan@xemacs.org>
5266
5267         * device-msw.c (mswindows_handle_page_setup_dialog_box):
5268         Fix detection of metric units to work on Win95
5269
5270 2002-05-21  Stephen J. Turnbull  <stephen@xemacs.org>
5271
5272         * syswindows.h: #define LOCALE_RETURN_NUMBER.  Why, I don't know.
5273
5274 2002-04-25  Andy Piper  <andy@xemacs.org>
5275
5276         * redisplay.c (create_text_block): Remove extra comment trailer.
5277
5278 2002-04-24  Andy Piper  <andy@xemacs.org>
5279
5280         * redisplay.c (create_text_block): Don't actually add propagation
5281         data if the line ends after we have added a glyph.
5282
5283 2002-04-22  Andy Piper  <andy@xemacs.org>
5284
5285         * extents.c (extent_fragment_update): check for glyphs we have
5286         previously displayed.
5287         * extents.c (print_extent_1): warning removal.
5288         * extents.h: change prototype.
5289         * redisplay-output.c (redisplay_normalize_glyph_area): calculate
5290         widths correctly for wide glyphs.
5291         * redisplay.c (position_redisplay_data_type): add end_glyph_width.
5292         * redisplay.c (prop_type): add PROP_GLYPH.
5293         * redisplay.c (struct prop_block): add glyph type
5294         * redisplay.c (add_glyph_rune): when adding part of a glyph add it
5295         to the propagation data.
5296         * redisplay.c (create_text_block): if there is a glyph in the
5297         propagation data use it to salt extent_fragment_update.
5298         * redisplay.c (create_string_text_block): ditto.
5299
5300 2002-04-13  Nix  <nix@esperi.demon.co.uk>
5301
5302         * redisplay.h (struct rune): Add ascent, descent, and yoffset fields.
5303         * redisplay-output.c (compare_runes): Compare them.
5304         * redisplay.c: Update copyright date.
5305         * redisplay.c (pos_data): Add need_baseline_computation field.
5306         * redisplay.c (add_glyph_rune): Update ascent, descent, and
5307         need_baseline_computation; zero yoffset. Set max_pixmap_height
5308         for all pixmaps, not just automatically positioned ones.
5309         * redisplay.c (calculate_yoffset): New, compute yoffset values.
5310         * redisplay.c (calculate_baseline): New, compute textual baseline.
5311         * redisplay.c (add_glyph_rune): Call them.
5312         * redisplay.c (create_text_block): Likewise.
5313         * redisplay.c (create_overlay_glyph_block): Likewise.
5314         * redisplay.c (add_margin_runes): Likewise.
5315         * redisplay.c (create_string_text_block): Likewise. Fix tabdamage.
5316
5317         * redisplay.h: (redisplay_calculate_display_boxes): Change prototype.
5318         * redisplay-output.c (redisplay_calculate_display_boxes): Use yoffset.
5319         * redisplay-msw.c (mswindows_output_blank): Pass 0 as yoffset.
5320         * redisplay-msw.c (mswindows_output_string): Likewise.
5321         * redisplay-msw.c (mswindows_output_display_block): Pass yoffset.
5322         * redisplay-gtk.c (gtk_output_display_block): Likewise.
5323         * redisplay-x.c (x_output_display_block): Likewise.
5324
5325 2002-03-28  Ben Wing  <ben@xemacs.org>
5326
5327         * redisplay.c: Fixed bug in redisplay
5328         w.r.t. hscroll/truncation/continuation glyphs causing jumping up
5329         and down of the lines, since they're bigger than the line
5330         size. (It was seen most obviously when there's a horizontal scroll
5331         bar, e.g. do C-h a glyph or something like that.) The problem was
5332         that the glyph-contrib-p setting on glyphs was ignored even if it
5333         was set properly, which it wasn't until now.
5334
5335 2002-04-24  Andy Piper  <andy@xemacs.org>
5336
5337         * lisp.h (Dynarr_end): Fix definition.
5338
5339 2002-02-06  Adrian Aichner  <adrian@xemacs.org>
5340
5341         * redisplay.c (mark_redisplay): Remove call to
5342         update_frame_window_mirror.
5343
5344 2001-11-15  Andy Piper  <andy@xemacs.org>
5345
5346         * win32.c (Fmswindows_shell_execute): fix handling of URL's under
5347         cygwin (again).
5348
5349 2002-02-13  Andy Piper  <andy@xemacs.org>
5350
5351         * event-msw.c (mswindows_wnd_proc): only mark the frame visible if
5352         we did in fact enqueue the XM_MAPFRAME event.
5353
5354 2002-01-15  Adrian Aichner  <adrian@xemacs.org>
5355
5356         * event-msw.c (mswindows_wnd_proc): Add handling of WM_SHOWWINDOW
5357         to fix problem switching between virtual desktops under virtuawin
5358         virtual window manager.
5359
5360 2001-07-30  Adrian Aichner  <adrian@xemacs.org>
5361
5362         * event-msw.c: Typo fix.
5363         * event-msw.c (mswindows_wnd_proc): Set FRAME_VISIBLE_P after
5364         magic XM_MAPFRAME event has been sent.
5365
5366 2001-11-23  Andy Piper  <andy@xemacs.org>
5367
5368         * event-msw.c (mswindows_wnd_proc): Don't pump mousewheel events.
5369
5370 2001-11-21  Andy Piper  <andy@xemacs.org>
5371
5372         * scrollbar-msw.c (mswindows_handle_mousewheel_event): cope with
5373         mouse events outside the frame.
5374
5375 2002-03-20  Andy Piper  <andy@xemacs.org>
5376
5377         * menubar-msw.c (mswindows_popup_menu): warning removal.
5378         * dialog-msw.c (dialog_popped_down): ditto.
5379
5380 2001-12-11  Andy Piper  <andy@xemacs.org>
5381
5382         * dialog-msw.c (dialog_popped_down): new function. unset popup_up_p.
5383         * dialog-msw.c (mswindows_make_dialog_box_internal): set
5384         popup_up_p.
5385         * menubar-msw.c (unsafe_handle_wm_initmenupopup_1): ditto.
5386         * menubar-msw.c (mswindows_handle_wm_command): ditto.
5387         * menubar-msw.c (mswindows_popup_menu): ditto.
5388
5389 2001-10-29  Andy Piper  <andy@xemacs.org>
5390
5391         * dialog-msw.c (handle_directory_dialog_box): quit if the user
5392         cancels.
5393
5394 2002-01-03  Andy Piper  <andy@xemacs.org>
5395
5396         * realpath.c (ABS_LENGTH): dtrt for cygwin systems using drive
5397         letters.
5398         (xrealpath): ditto.
5399
5400 2002-03-29  Jonathan Harris  <jonathan@xemacs.org>
5401
5402         * device-msw.c (plist_get_margin): Add arg specifying mm or inches
5403         * device-msw.c (plist_set_margin): Fix multiplicand used for mm
5404         * device-msw.c (mswindows_handle_page_setup_dialog_box):
5405         Detect and handle case where machine is set up for metric units
5406
5407 2002-04-02  Andy Piper  <andy@xemacs.org>
5408
5409         * dired-msw.c (mswindows_get_files): 
5410         * nt.c (mswindows_stat): SetErrorMode() so that file errors are
5411         completely handled by XEmacs. Suggested by Thomas Vogler
5412         <mail@thomas-vogler.de>.
5413
5414 2001-11-14  Andy Piper  <andy@xemacs.org>
5415
5416         * nt.c (REG_ROOT): change registry key to XEmacs.
5417
5418 2002-04-27  Andy Piper  <andy@xemacs.org>
5419
5420         * glyphs-msw.c (mswindows_widget_instantiate): remove dead-code.
5421
5422 2002-04-26  Andy Piper  <andy@xemacs.org>
5423
5424         * glyphs-msw.c (mswindows_map_subwindow): observe :initial-focus
5425         behavior.
5426
5427 2002-03-14  Mike Alexander  <mta@arbortext.com>
5428
5429         * event-msw.c (mswindows_unwait_process): New, remove process from
5430         wait list
5431         * process-nt.c (nt_finalize_process_data): Call
5432         mswindows_unwait_process
5433         * console-msw.h: Declare mswindows_unwait_process
5434
5435 2002-05-14  Stephen J. Turnbull  <stephen@xemacs.org>
5436
5437         * editfns.c (Fdecode_time):
5438         (Fformat_time_string):
5439         Check for invalid time.  Thanks to Nick Pakoulin <npak@ispras.ru>.
5440         (make_time): Warning elimination (change arg name).
5441
5442 2001-11-24  Andy Piper  <andy@xemacs.org>
5443
5444         * window.c (Fsplit_window): Doc return type.
5445
5446 2002-04-01  Andy Piper  <andy@xemacs.org>
5447
5448         * emacs.c (Fkill_emacs): Only output message box in interactive
5449         mode.
5450
5451 2002-04-26  Andy Piper  <andy@xemacs.org>
5452  
5453         * config.h.in: pull in 21.5.x change to stop alloca warnings under
5454         cygwin.
5455
5456 2002-03-18  Gregory Steuck  <greg-xemacs-patch@nest.cx>
5457
5458         * unexelf.c:  Use ELFSIZE or define from _LP64 to indicate a 64
5459         bit platform.
5460
5461 2002-05-09  Stephen J. Turnbull  <stephen@xemacs.org>
5462
5463         * XEmacs 21.4.8 "Honest Recruiter" is released.
5464
5465 2002-05-07  Nix  <nix@esperi.demon.co.uk>
5466
5467         Supersedes 2002-04-17 patch.
5468
5469         * process.h (PROCESS_LIVE_P): Use the process status as
5470         evidence of health, not the state of the input stream.
5471         (PROCESS_READABLE_P): Say if the process is readable
5472         from. (It may be dead nonetheless.)
5473         (CHECK_READABLE_PROCESS): Test for that condition.
5474
5475         * process.c (create_process): Use PROCESS_READABLE_P.
5476         (read_process_output, set_process_filter): Likewise.
5477
5478         * process.c (Fprocess_input_coding_system): Use CHECK_READABLE_PROCESS.
5479         (Fset_process_input_coding_system, Fprocess_coding_system): Likewise.
5480
5481         This code is #if 0'd, this is not the time to add new functions:
5482
5483         * process.c (Fprocess_readable_p): Report readability status.
5484         * process.c (Qprocess_readable_p): New, associated symbol...
5485         * process.c (syms_of_process): ... initialize it.
5486
5487 2002-05-04  Stephen J. Turnbull  <stephen@xemacs.org>
5488
5489         * XEmacs 21.4.7 "Economic Science" is released.
5490
5491 2002-04-17  Nix  <nix@esperi.demon.co.uk>
5492
5493         * process.h (PROCESS_LIVE_P): Use the process status as
5494         evidence of health, not the state of the input stream.
5495
5496 2002-04-30  Charles G. Waldman <cgw@xemacs.org>
5497
5498         * sysdep.c (sys_siglist): change "signum" to "signal"
5499
5500 2001-04-21  Martin Buchholz  <martin@xemacs.org>
5501
5502         * s/darwin.h: New file.
5503         Thanks to Greg Parker <gparker@cs.stanford.edu>.
5504         
5505 2002-04-23  Andreas Jaeger  <aj@suse.de>
5506
5507         * s/linux.h (LIB_STANDARD): Define correctly for x86-64 and s390x
5508         which use lib64 for 64-bit libs.
5509         (START_FILES): Likewise.
5510
5511 2002-02-11  Mike Sperber  <mike@xemacs.org>
5512
5513         * device-x.c: 
5514         (x_IO_error_handler):
5515         (x_init_device): Temporarily keep device in static variable
5516         `device_being_initialized' so we can recover gracefully from
5517         internal XOpenDevice failure.  (XOpenDevice is documented to
5518         return NULL on failure, but sometimes calls the IO error handler
5519         instead.)
5520
5521 2002-01-31  John H. Palmieri  <palmieri@math.washington.edu>
5522
5523         * dired.c (Ffile_name_all_completions): Change documentation --
5524         remove reference to completion-ignored-extensions.
5525         * dired.c (vars_of_dired): Change documentation for
5526         completion-ignored-extensions -- remove reference to
5527         file-name-all-completions.
5528
5529 2002-03-06  Jerry James  <james@xemacs.org>
5530
5531         * emodules.c (emodules_load): Fix multiple loading of same module.
5532
5533 2002-01-25  Andrew Begel <abegel@cs.berkeley.edu>
5534         * sysdll.c (dll_open): Changed to use RTLD_NOW instead of
5535         RTLD_LAZY to avoid incorrect symbol binding when using nested
5536         shared libraries on Solaris.
5537
5538 2002-02-12  Stephen J. Turnbull  <stephen@xemacs.org>
5539
5540         * fileio.c (Ffind_file_name_handler): Improve docstring.
5541
5542 2002-01-20  Stephen J. Turnbull  <stephen@xemacs.org>
5543
5544         * fns.c (Fmapconcat): Improve docstring.
5545
5546 2002-01-03  Eric Gillespie, Jr.  <epg@pretzelnet.org>
5547
5548         * device-gtk.c: Add prototype for
5549         emacs_gtk_selection_clear_event_handle.
5550         (gtk_init_device): Call gtk_selection_add_target for CLIPBOARD
5551         selection.  Setup signal handler for "selection_clear_event"
5552         (emacs_gtk_selection_clear_event_handle).
5553
5554         * select-gtk.c (emacs_gtk_selection_clear_event_handle): Handle
5555         other applications owning the clipboard (based on
5556         x_handle_selection_clear).
5557
5558 2001-12-23  William M. Perry  <wmperry@gnu.org>
5559
5560         * menubar-gtk.c (gtk_popup_menu)  Add sanity checks, fix crash.
5561         
5562 2002-01-04  Martin Buchholz  <martin@xemacs.org>
5563
5564         * keymap.c (define_key_alternate_name): Parenthesize EQ.
5565
5566 2001-12-17  Stephen J. Turnbull  <stephen@xemacs.org>
5567
5568         * XEmacs 21.4.6 "Common Lisp" is released.
5569
5570 2001-12-16  Torsten Duwe  <duwe@caldera.de>
5571
5572         * search.c (Freplace_match): Add missing sub-expression functionality.
5573
5574         * buffer.c (decode_buffer): Add a check for pointer type to
5575         decode_buffer, before gcc's CSE optimization reorders a
5576         dereference in front of the allow_string test.
5577
5578 2001-11-16  Darryl Okahata  <darrylo@xemacs.org>
5579
5580         * window.c (window_loop): Fix bug that sometimes prevented
5581         window_loop() from iterating across multiple devices.  Also, at
5582         Ben's request, changed infloop-detecting code to abort() instead
5583         of silently terminating window_loop().
5584
5585 2001-11-21  Stephen J. Turnbull  <stephen@xemacs.org>
5586
5587         Based on analysis and patch by Simon Josefson <jas@extundo.com>.
5588         * editfns.c (make_time): New function.
5589         (Fencode_time): Use it instead of wasteful_word_to_lisp.
5590         * lisp.h (make_time): Prototype and comment it.
5591         * dired.c (wasteful_word_to_lisp): Deprecate.
5592         (Ffile_attributes): Use make_time() instead of wasteful_word_to_lisp().
5593
5594 2001-10-31  Kyle Jones  <kyle_jones@wonderworks.com>
5595
5596         * fileio.c (auto_save_1): Use current coding system, not
5597         escape-quoted.
5598
5599 2001-11-13  Ben Wing  <ben@xemacs.org>
5600
5601         * window.c:
5602         * window.c (window_truncation_on):
5603         * window.c (syms_of_window):
5604         truncate-partial-width-windows should respect the buffer being
5605         displayed, like other redisplay vars.
5606
5607 2001-11-13  Hirokazu FUKUI  <hfukui@sannet.ne.jp>
5608
5609         * event-stream.c (Fread_key_sequence): save current buffer.
5610
5611 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
5612
5613         * ntheap.c (_heap_init): Don't redefine in VS.NET (MSC >= 1300).
5614
5615 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
5616
5617         * alloc.c (lcrecord_stats): Add space for types defined in modules.
5618
5619 2001-10-26  Mike Alexander  <mta@arbortext.com>
5620
5621         * event-msw.c (slurper_free_shared_data_maybe): Free the pipe handle.
5622
5623 2001-10-25  Andy Piper  <andy@xemacs.org>
5624
5625         * ChangeLog:
5626         * dialog-msw.c (handle_directory_proc): new function.
5627          (handle_directory_dialog_box): new fucntion.
5628          (handle_file_dialog_box): use new directory dialog support.
5629          (mswindows_make_dialog_box_internal): ditto.
5630         * event-msw.c (mswindows_wnd_proc): minor fix to scrollbar event
5631         handling.
5632         (mswindows_find_frame): make global.
5633         * fileio.c (Fexpand_file_name): build fix.
5634         * general-slots.h: add Qdirectory.
5635         * scrollbar-msw.c (mswindows_handle_scrollbar_event): fix focus
5636         handling.
5637         * syswindows.h (LOCAL_TO_WIN32_FILE_FORMAT): fix problem with
5638         cygwin not leaving win32 paths unchanged.
5639         * win32.c (Fmswindows_cygwin_to_win32_path): new function. Use the
5640         cygwin runtime to do path conversion.
5641         (Fmswindows_shell_execute): fix cygwin handling of URLs.
5642         (syms_of_win32): add new function.
5643         * window.c (window_loop): build fix.
5644
5645 2001-10-15  Andy Piper  <andy@xemacs.org>
5646
5647         (Fmswindows_shell_execute): fix handling of URL's under cygwin.
5648
5649 2001-10-23  Stephen J. Turnbull  <stephen@xemacs.org>
5650
5651         * XEmacs 21.4.5 "Civil Service" is released.
5652
5653 2001-04-08  Danny Colascione  <qtmstr@optonline.net>
5654
5655         * glyphs-x.c: Force buffer-tab highlight update when moving the
5656         buffer, avoiding an ugly black border, used for keyboard focus
5657         indication, on a widget that can never have keyboard focus, the
5658         buffer tab.
5659
5660 2001-08-30  Daiki Ueno  <ueno@unixuser.org>
5661
5662         * process-unix.c (unix_open_multicast_group): Remove too much
5663         conversion between host and network byte order.
5664
5665 2001-09-10  Nix  <nix@esperi.demon.co.uk>
5666
5667         * src/buffer.c (kill_buffer): Undedicate windows showing BUF
5668         before replacing them.
5669
5670         * src/window.c (window_loop): Implement new UNDEDICATE_BUFFER
5671         operation.
5672
5673         * src/window.c (undedicate_windows): Use it.
5674         * src/window.h: Add prototype.
5675
5676 2001-09-17  Ben Wing  <ben@xemacs.org>
5677
5678         * fileio.c (normalize_filename):
5679         * fileio.c (Fexpand_file_name):
5680         Fix various C++ compile errors in Andy's recent code.
5681         
5682         * callint.c (Fcall_interactively):
5683         * editfns.c (Ftemp_directory):
5684         * editfns.c (Fuser_full_name):
5685         * emacs.c (argmatch):
5686         * lread.c (locate_file_map_suffixes):
5687         * redisplay-x.c (x_ring_bell):
5688         Fix sign-compare warnings.
5689         
5690 2001-09-08  Andy Piper  <andy@xemacs.org>
5691
5692         * fileio.c (normalize_filename): copied from nt.c
5693         * (Ffile_name_directory): enable win32 paths under cygwin.
5694         * (Ffile_name_nondirectory): ditto.
5695         * (directory_file_name): ditto.
5696         * (Fexpand_file_name): ditto.
5697         * (Ffile_truename): ditto.
5698         * (Fsubstitute_in_file_name): ditto.
5699         * (Ffile_name_absolute_p): ditto.
5700         * (Ffile_readable_p): ditto.
5701
5702 2001-09-08  Andy Piper  <andy@xemacs.org>
5703
5704         * device-msw.c (mswindows_finish_init_device): remove dde
5705         initialization.
5706         * device-msw.c (mswindows_init_dde): factor out from
5707         mswindows_finish_init_device()
5708         * device-msw.c (init_mswindows_very_early): new function
5709         initialize but don't enable dde.
5710         * emacs.c (main_1): call init_mswindows_very_early.
5711         * event-msw.c:
5712         * event-msw.c (mswindows_dde_callback): only execute when we are
5713         ready.
5714         * symsinit.h: declare init_mswindows_very_early.
5715
5716 2001-05-02  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
5717
5718         [sjt: This has been in 21.5 for months with no complaints.]
5719
5720         * console.h (struct console_methods): Added flags member.
5721         (CONSOLE_IMPLEMENTATION_FLAGS): Defined.
5722         (CONMETH_IMPL_FLAG):
5723         (CONSOLE_IMPL_FLAG): Macro to check implememntation flags.
5724         Defined XDEVIMPF_DONT_PREEMPT_REDISPLAY.
5725
5726         * device.c (window_system_pixelated_geometry): Use the above macros.
5727
5728         * device.h (DEVICE_IMPL_FLAG): Macro to check a device
5729         implememntation flag.
5730         * device.h (DEVICE_DISPLAY_P): Use it.
5731
5732         * frame.c (delete_frame_internal): Use the above macro.
5733
5734         * redisplay.c (redisplay_device): Use it.
5735         (redisplay_device): Obey XDEVIMPF_DONT_PREEMPT_REDISPLAY.
5736         (redisplay_frame): Ditto.
5737
5738         * device-msw.c (mswindows_device_implementation_flags): Removed.
5739         (msprinter_device_implementation_flags): Removed.
5740         (console_type_create_device_mswindows): Removed references to
5741         implementation_flags methods, set implementation flags here.
5742         (console_type_create_device_mswindows): Added XDEVIMPF_DONT_PREEMPT.
5743
5744         * device-gtk.c (gtk_device_implementation_flags): Removed method.
5745         (console_type_create_device_gtk): Removed method declaration.
5746         Added commented out statement which semantically matches the
5747         commented out statement in the above removed method.
5748
5749 2001-04-14  Gordon Sadler  <gbsadler1@lcisp.com>
5750
5751         The attached patch fixes a few warnings. 
5752
5753         * src/emacs.c: prototype console_type_create_select_gtk for GTK only
5754         * src/frame-gtk.c: guard against GNOME calls in GTK only
5755         * src/redisplay-gtk.c: include <sys/poll.h> #ifdef HAVE_POLL
5756         * src/select-gtk.c: prototype lisp_to_time
5757
5758 2001-06-08  Ben Wing  <ben@xemacs.org>
5759
5760         ------ gc-in-window-procedure fixes ------
5761         
5762         * alloc.c:
5763         * alloc.c (struct post_gc_action):
5764         * alloc.c (register_post_gc_action):
5765         * alloc.c (run_post_gc_actions):
5766         * alloc.c (garbage_collect_1):
5767         Create "post-gc actions", to avoid those dreaded "GC during window
5768         procedure" problems.
5769
5770         * event-msw.c:
5771         Abort, clean and simple, when GC in window procedure.  We want
5772         to flush these puppies out.
5773
5774         * glyphs-msw.c:
5775         * glyphs-msw.c (finalize_destroy_window):
5776         * glyphs-msw.c (mswindows_finalize_image_instance):
5777         Use a post-gc action when destroying subwindows.
5778
5779         * lisp.h:
5780         Declare register_post_gc_action().
5781
5782         * scrollbar-msw.c:
5783         * scrollbar-msw.c (unshow_that_mofo):
5784         Use a post-gc action when unshowing scrollbar windows, if in gc.
5785
5786         * redisplay.c (mark_redisplay):
5787         Add comment about the utter evilness of what's going down here.
5788
5789         ------ cygwin setitimer fixes ------
5790         
5791         * Makefile.in.in (sheap_objs):
5792         * Makefile.in.in (profile_objs):
5793         * Makefile.in.in (objs):
5794         Compile profile.c only when HAVE_SETITIMER.
5795         
5796         * nt.c (mswindows_sigset):
5797         * nt.c (mswindows_sighold):
5798         * nt.c (mswindows_sigrelse):
5799         * nt.c (mswindows_sigpause):
5800         * nt.c (mswindows_raise):
5801         * nt.c (close_file_data):
5802         Style fixes.
5803         
5804         * nt.c:
5805         Move setitimer() emulation to win32.c, because Cygwin needs it too.
5806         
5807         * profile.c:
5808         * profile.c (Fstart_profiling):
5809         * profile.c (Fstop_profiling):
5810         Make sure we don't compile if no setitimer().  Use qxe_setitimer()
5811         instead of just plain setitimer().
5812         
5813         * signal.c:
5814         * signal.c (set_one_shot_timer):
5815         * signal.c (alarm):
5816         Define qxe_setitimer() as an encapsulation around setitimer() --
5817         call setitimer() directly unless Cygwin or MS Win, in which case
5818         we use our simulated version in win32.c.
5819         
5820         * systime.h:
5821         * systime.h (struct itimerval):
5822         * systime.h (ITIMER_REAL):
5823         Prototype mswindows_setitimer() and qxe_setitimer().  Long
5824         comment about "qxe" and the policy regarding encapsulation.
5825
5826         * win32.c:
5827         * win32.c (setitimer_helper_proc):
5828         * win32.c (setitimer_helper_period):
5829         * win32.c (setitimer_helper):
5830         * win32.c (mswindows_setitimer):
5831         Move setitimer() emulation here, so Cygwin can use it.
5832         Rename a couple of functions and variables to be longer and more
5833         descriptive.  In setitimer_helper_proc(), send the signal
5834         using either mswindows_raise() or (on Cygwin) kill().  If for
5835         some reason we are still getting lockups, we'll change the kill()
5836         to directly invoke the signal handlers.
5837
5838         ------ windows shell fixes ------
5839         
5840         * callproc.c:
5841         * ntproc.c:
5842         Comments about how these two files must die.
5843
5844         * callproc.c (init_callproc):
5845         On MS Windows, init shell-file-name from SHELL, then COMSPEC,
5846         not just COMSPEC. (more correct and closer to FSF.) Don't
5847         force a value for SHELL into the environment. (Comments added
5848         to explain why not.)
5849         
5850         * nt.c (init_user_info):
5851         Don't shove a fabricated SHELL into the environment.  See above.
5852
5853 2001-06-01  Ben Wing  <ben@xemacs.org>
5854
5855         * Makefile.in.in (ldflags):
5856         eliminate that pesky "defaulting to 00401000" warning.
5857         * nt.h:
5858         eliminate warnings.
5859
5860 2001-06-15  Golubev I. N.  <gin@mo.msk.ru>
5861
5862         * s/sco5.h (FORCE_ALLOCATE_PTY_THE_OLD_FASHIONED_WAY): #define.
5863         * process-unix.c (allocate_pty): #ifndef "modern" pty allocation.
5864
5865 2001-04-24  Jerry James <james@xemacs.org>
5866
5867         * faces.h: pass parameters to Fadd_spec_to_specifier in the
5868         correct order.
5869
5870 2001-06-01  Ben Wing  <ben@xemacs.org>
5871
5872         * event-msw.c (debug_mswin_messages):
5873         conditionalize the messages that were causing compile errors.
5874         (if only macros could generate #ifdef statements ...)
5875
5876 2001-07-28  Stephen J. Turnbull  <stephen@xemacs.org>
5877
5878         * XEmacs 21.4.4 "Artificial Intelligence" is released.
5879
5880 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
5881
5882         * event-msw.c (mswindows_wnd_proc): Add GC debugging assert.
5883
5884 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
5885
5886         * config.h.in (IPV6_CANONICALIZE): New #define for --with-ipv6-lookup.
5887         * process-unix.c (unix_canonicalize_host_name):
5888         sysdep.c (init_system_name):
5889         Use it to conditionally support IPv6 canonicalization.
5890
5891 2001-05-31  Paul Stodghill  <stodghil@cs.cornell.edu>
5892
5893         * event-msw.c:
5894         Cygwin does not define WM_IME_xxx. Modify the #if's accordingly.
5895
5896 2001-05-19  Paul Krause  <paulkrause1@mediaone.net>
5897
5898         * scrollbar-msw.c: Fixes a crash that occurs on Windows when an
5899         attempt is made to scroll when no scroll bar is available.
5900
5901 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
5902
5903         * input-method-motif.c (XIM_delete_frame): New callback.
5904         (XIM_init_frame): Register it.  (Reapplied by SJT, it somehow
5905         got deleted from 21.4.3.)
5906
5907 2001-06-01  Ben Wing  <ben@xemacs.org>
5908
5909         * nt.c (mswindows_utime):
5910         * nt.c (close_file_data):
5911         fix off-by-one-indirection error.
5912
5913 2001-05-29  Adrian Aichner  <adrian@xemacs.org>
5914
5915         * fileio.c: Include nt.h.  Remove lisp_string_set_file_times()
5916         because set_file_times() now takes Lisp_Object path, instead of
5917         char*.
5918         * nt.c: Include buffer.h.
5919         * nt.c (convert_from_time_t): New.
5920         * nt.c (mswindows_utime): New.  Use utime, since SetFileTime does
5921         not set mtime correctly.
5922         * nt.h: Declare mswindows_utime().
5923         * sysdep.c (set_file_times): set_file_times() now takes Lisp_Object
5924         path, instead of char*.
5925         * systime.h: Include <sys/utime.h> on WIN32_NATIVE.
5926
5927 2001-05-30  Ben Wing  <ben@xemacs.org>
5928
5929         For 21.4:
5930
5931         (Stephen, just take all event-msw.c patches.  This includes
5932         the "iconify" fix below.)
5933
5934         * event-msw.c:
5935         * event-msw.c (mswindows_dequeue_dispatch_event):
5936         * event-msw.c (assert):
5937         * event-msw.c (emacs_mswindows_quit_p):
5938         * event-msw.c (debug_mswin_messages):
5939         * event-msw.c (debug_output_mswin_message):
5940         * event-msw.c (vars_of_event_mswindows):
5941         Fix yet more problems with C-g handling.
5942         Implement debug-mswindows-events.
5943         
5944 2001-05-24  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
5945
5946         * event-msw.c (WM_DROPFILES): Use correct type for OLE characters.
5947         
5948 2001-05-23  Ben Wing  <ben@xemacs.org>
5949
5950         * event-msw.c (winsock_writer):
5951         * event-msw.c (winsock_closer):
5952         prior kludgy code was clobbering the buffer, thinking it was
5953         "unused" space to store an unneeded return value; instead, use
5954         the variable we've already got staring us in the face.
5955
5956 2001-05-17  Andy Piper  <andy@xemacs.org>
5957
5958         * sysfile.h: don't assume that file attributes are boolean
5959
5960 2001-05-23  Ben Wing  <ben@xemacs.org>
5961
5962         * device-msw.c (msprinter_init_device):
5963         signal an error rather than crash with an unavailable network
5964         printer (from Mike Alexander).
5965         
5966         * event-msw.c:
5967         * event-msw.c (struct winsock_stream):
5968         * event-msw.c (winsock_writer):
5969         * event-msw.c (winsock_closer):
5970         * event-msw.c (make_winsock_stream_1):
5971         cleanup headers.  fix (hopefully) an error with data corruption
5972         when sending to a network connection.
5973
5974         * fileio.c (Fexpand_file_name): Fix evil code that attempts
5975         to handle the ~user prefix by (a) always assuming we're referencing
5976         ourselves and not even verifying the user -- hence any file with
5977         a tilde as its first char is invalid! (b) if there wasn't a slash
5978         following the filename, the pointer was set *past* the end of
5979         file and we started reading from uninitialized memory.  Now we
5980         simply treat these as files, always.
5981
5982         * buffer.c (common_init_complex_vars_of_buffer): comment change.
5983         
5984 2001-05-19  Ben Wing  <ben@xemacs.org>
5985
5986         * eval.c: doc comment about gcpro'ing in record_unwind_protect.
5987
5988         * process-nt.c:
5989         * process-nt.c (vars_of_process_nt):
5990         remove unused mswindows-quote-process-args.  rec for 21.4.
5991         
5992 2001-05-12  Ben Wing  <ben@xemacs.org>
5993
5994         * event-msw.c (mswindows_dde_callback):
5995         * event-msw.c (mswindows_wnd_proc):
5996         eliminate cygwin warnings.
5997
5998 2001-05-06  Ben Wing  <ben@xemacs.org>
5999
6000         * console-msw.h:
6001         * device-msw.c:
6002         * device-msw.c (print_dialog_worker):
6003         * device-msw.c (mswindows_handle_print_dialog_box):
6004         * device-msw.c (syms_of_device_mswindows):
6005         * dialog-msw.c (mswindows_make_dialog_box_internal):
6006         * general-slots.h:
6007         implement printing the selection when it's selected.
6008
6009 2001-05-20  Drazen Kacar  <dave@arsdigita.com>
6010
6011         * glyphs-gtk.c (gtk_resource_instantiate): C++ comment -> #if 0
6012
6013 2001-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
6014
6015         * lisp.h (EMACS_INT_MAX): This should be one bit less since
6016         EMACS_INT is signed.
6017
6018 2001-04-15  Michael Lausch  <mla@1012surf.net>
6019
6020         * scrollbar-gtk.c (gtk_create_scrollbar_instance): Call
6021         gtk_widget_request_size() to give scrollbar >0 width for
6022         GTK >1.2.8.
6023
6024 2001-05-30  William M. Perry  <wmperry@gnu.org>
6025
6026         * event-gtk.c: Check for buttons as modifier keys.
6027
6028 2001-05-25  Craig Lanning  <CraigL@Knology.net>
6029
6030         * s\mingw32.h:
6031         Properly find MinGW's <process.h> inside Cygwin's restructured
6032         include directories.  Don't try to include <cygwin/version.h>
6033         since we are dropping support for MinGW in versions of Cygwin
6034         earlier than b21.
6035         * nt.c:
6036         Drop support for MinGW in versions of Cygwin before b21.
6037         * sysdep.c:
6038         Properly find MinGW's <process.h> inside Cygwin's restructured
6039         include directories.
6040         * syswindows.h:
6041         Drop support for MinGW in versions of Cygwin before b21.
6042         * unexcw.c:
6043         Even though a.out.h is no longer detected by configure, allow
6044         MinGW to use it until we figure out how to do the job with Win32.
6045
6046 2001-07-11  Matt Tucker  <tuck@whistlingfish.net>
6047
6048         * syntax.c (find_start_of_comment):
6049         Fix `unbalanced parentheses' bug when dealing with mixed comment
6050         styles in c++/java/etc. mode
6051
6052 2001-05-29  Mike Alexander  <mta@arbortext.com>
6053
6054         * console-msw.h (FRAME_MSPRINTER_CHARHEIGHT): Unswap
6055         FRAME_MSPRINTER_CHARWIDTH and FRAME_MSPRINTER_CHARHEIGHT
6056
6057 2001-05-17  Andrew Begel  <abegel@eecs.berkeley.edu>
6058
6059         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Add needed cast.
6060
6061 2001-03-31  Mike Sperber <mike@xemacs.org>
6062
6063         * search.c (Freplace_match): Support FSF-style specification of
6064         match subexpression when applied to a buffer.
6065
6066 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
6067
6068         * event-stream.c (is_scrollbar_event): add missing semicolon
6069
6070 2001-05-22  Isaac Hollander  <ysh@mindspring.com>
6071
6072         * Makefile.in.in: Use TAR macro instead of hardcoding
6073           tar.  Allows use of GNU tar instead of system tar
6074
6075 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
6076
6077         * event-stream.c (is_scrollbar_event): add missing semicolon
6078
6079 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
6080
6081         * XEmacs 21.4.3 "Academic Rigor" is released.
6082
6083 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
6084
6085         * regex.c: Define DECLARE_NOTHING when "lisp.h" is not included.
6086
6087 2001-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
6088
6089         * buffer.c (Vcase_fold_search): Remove obsolete
6090           comment about non ASCII case-fold-search.  This
6091           bug has been fixed by case-table changes.
6092
6093 2001-05-11  Stephen J. Turnbull  <stephen@xemacs.org>
6094
6095         * event-msw.c: Restore include of events-mod.h.
6096
6097 2001-04-22   zhaoway  <zw@debian.org>
6098
6099         * event-stream.c (is_scrollbar_event): Noop returning 0 if
6100         !HAVE_SCROLLBARS.
6101
6102 2001-05-10  Stephen J. Turnbull  <stephen@xemacs.org>
6103
6104         * XEmacs 21.4.2 "Developer-Friendly Unix APIs" is released.
6105
6106 2001-05-08  Yoshiaki Kasahara  <kasahara@nc.kyushu-u.ac.jp>
6107
6108         * mule-charset.c (Fmake_charset): Add missing else.
6109
6110 2001-04-23  Ben Wing  <ben@xemacs.org>
6111
6112         * event-msw.c (FAKE_MOD_QUIT):
6113         * event-msw.c (mswindows_dequeue_dispatch_event):
6114         * event-msw.c (mswindows_wnd_proc):
6115         * event-msw.c (emacs_mswindows_quit_p):
6116         Get critical quit working.
6117
6118 2001-05-05  Ben Wing  <ben@xemacs.org>
6119
6120         * console-msw.h:
6121         * device-msw.c:
6122         * device-msw.c (mswindows_get_default_margin):
6123         * frame-msw.c (mswindows_size_frame_internal):
6124         * frame-msw.c (msprinter_init_frame_1):
6125         * frame-msw.c (vars_of_frame_mswindows):
6126         Change top/bottom margin defaults to 0.5 inches.
6127
6128 2001-05-01  Martin Buchholz  <martin@xemacs.org>
6129
6130         Fix link error with gcc 3.0 on Linux.
6131         * terminfo.c (UP): Remove.
6132         * terminfo.c (BC): Remove.
6133         * terminfo.c (PC): Remove.
6134         They weren't used, and in any case, these symbols should be
6135         defined in the *library*.
6136
6137 2001-05-03  Martin Buchholz  <martin@xemacs.org>
6138
6139         * s/aix4.h: Fix crash with xlc -O3.
6140         Improve comment explaining how -O3 works.
6141
6142 2001-04-15  Ben Wing  <ben@xemacs.org>
6143
6144         * event-stream.c:
6145         * event-stream.c (Fnext_event):
6146         * event-stream.c (is_scrollbar_event):
6147         * event-stream.c (execute_command_event):
6148         Better fix for Yoshiki's `C-x @ h <scrollbar-drag> x causes a
6149         crash' problem.  His fix introduces other problems.  We filter
6150         out scrollbar events specifically, making them somewhat invisible
6151         to command-building, and not appearing in `this-command-keys'.
6152         More work is still needed (see comments in event-stream.c), but
6153         this fixes all the major problems.
6154
6155 2001-04-20  Ben Wing  <ben@xemacs.org>
6156
6157         * .cvsignore: Added stuff for Windows.
6158
6159 2001-04-28  Ben Wing  <ben@xemacs.org>
6160
6161         * buffer.c (Ferase_buffer):
6162         * editfns.c (buffer_insert1):
6163         * editfns.c (Finsert_before_markers):
6164         * editfns.c (Finsert_string):
6165         * editfns.c (Finsert_char):
6166         * editfns.c (Fdelete_region):
6167         * editfns.c (Fwiden):
6168         * editfns.c (Fnarrow_to_region):
6169         remove bogus lines setting zmacs_region_stays to 0.
6170         
6171 2001-04-15  Gunnar Evermann  <ge204@eng.cam.ac.uk>
6172
6173         * process-unix.c (unix_open_network_stream): If connect() fails
6174         invalidate file descriptor after closing it.
6175
6176 2001-03-08  Mike Alexander  <mta@arbortext.com>
6177
6178         * event-msw.c (mswindows_need_event_in_modal_loop):
6179         Don't dispatch a message if we didn't get one.
6180         (mswindows_need_event):
6181         Terminate the correct process when one exits instead of the first
6182         one on Vprocess_list and look for process termination when in
6183         mswindows_protect_modal_loop.
6184
6185 2001-04-19  Stephen J. Turnbull  <stephen@xemacs.org>
6186
6187         * XEmacs 21.4.1 "Copyleft" is released.
6188
6189 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
6190
6191         * input-method-motif.c (XIM_delete_frame): New callback.
6192         (XIM_init_frame): Register it.
6193
6194 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
6195
6196         * XEmacs 21.4.0 "Solid Vapor" is released.
6197
6198 2001-04-15  Ben Wing  <ben@xemacs.org>
6199
6200         * cmdloop.c (call_command_loop):
6201         Fix braino in bit-rotting code.
6202         
6203 2001-04-07  Hrvoje Niksic  <hniksic@arsdigita.com>
6204
6205         * extents.c (Fset_extent_endpoints): Force creation of extent info
6206         in buffer_or_string.
6207
6208         * extents.c (process_extents_for_insertion_mapper): Correctly
6209         check for open-open zero-length extents.
6210
6211 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
6212
6213         * lisp.h: New typedefs Memory_count, Element_count.
6214         * regex.c:
6215         * regex.h:
6216         Sign-compare warning elimination: several unsigned -> signed.
6217         Based on work by Ben Wing <ben@xemacs.org>.
6218
6219 2001-04-14  Stephen J. Turnbull  <stephen@xemacs.org>
6220
6221         * XEmacs 21.2.47 "Zephir" is released.
6222
6223 2001-04-02  Jan Vroonhof  <jan@xemacs.org>
6224
6225         * redisplay.c (add_bufbyte_string_runes): Update data->bytepos
6226
6227 2001-04-03  Mike Sperber <mike@xemacs.org>
6228
6229         * search.c: Revert previous patch due because of release.
6230
6231 2001-03-30  Ben Wing  <ben@xemacs.org>
6232
6233         * s\cygwin32.h:
6234         Add missing killpg prototype.
6235
6236         * elhash.c:
6237         Add a comment about fixing problems when a new entry is added
6238         while mapping.
6239
6240         * frame-msw.c (mswindows_init_frame_1):
6241         Fix compile warnings.
6242
6243         * menubar.c (vars_of_menubar):
6244         Provide `menu-accelerator-support' to indicate that we properly
6245         support %_ in menu specifications, so that package code can
6246         conditionalize on this (and remove %_ from menu specifications
6247         on older versions).
6248
6249         * event-msw.c:
6250         * scrollbar-msw.c:
6251         * scrollbar-msw.c (can_scroll):
6252         * scrollbar-msw.h:
6253         Fix handling of mouse wheel under Windows to follow standards --
6254         now scrolls window under pointer, not selected window.
6255
6256 2001-03-31  Mike Sperber <mike@xemacs.org>
6257
6258         * search.c (Freplace_match): Support FSF-style specification of
6259         match subexpression when applied to a buffer.
6260
6261 2001-03-15  Martin Buchholz  <martin@xemacs.org>
6262
6263         * keymap.c (Fmap_keymap): map-keymap explicitly allows a mapping
6264         function to modify KEYMAP, so map over a copy of the hash table.
6265
6266 2001-03-21  Martin Buchholz <martin@xemacs.org>
6267
6268         * XEmacs 21.2.46 "Urania" is released.
6269
6270 2001-03-20  Dan Holmsand  <dan@eyebee.com>
6271
6272         * realpath.c (xrealpath): Make file-truename work with symlinks to
6273         /cygdrive paths on cygwin. Always lowercase drive-letters on
6274         native windows.
6275         (cygwin_readlink): Don't try to find canonical filename unless
6276         file exists.
6277
6278 2001-03-15  Stephen J. Turnbull  <stephen@xemacs.org>
6279
6280         * ChangeLog: Log GTK merge.
6281
6282         * dumper.c:
6283         * select-x.c:
6284         * specifier.c:
6285         * symeval.h:
6286         Revert gratuitous whitespace changes from GTK merge.
6287
6288         * emacs.c: Document end of complex #ifdef @ l. 1495.
6289
6290
6291 2001-03-12  Andy Piper  <andy@xemacs.org>
6292
6293         * mingw32.h: unfortunately cygnus changed mingw32 -> mingw so we
6294         have to do likewise.
6295
6296 2001-03-12  Andy Piper  <andy@xemacs.org>
6297
6298         * sysdep.c: we only support mingw now.
6299
6300 2001-03-09  Andy Piper  <andy@xemacs.org>
6301
6302         * unexcw.c (copy_executable_and_dump_data_section): making approx
6303         overrun a warning only.
6304
6305 2001-03-10  William M. Perry  <wmperry@aventail.com>
6306
6307         * faces.c (complex_vars_of_faces): Rewrote the font mucking to
6308         satisfy Stephen's identical-after-cpp plea.
6309
6310 2001-03-02  Ben Wing  <ben@xemacs.org>
6311
6312         * cmds.c:
6313         * cmds.c (Fforward_char):
6314         * syntax.c:
6315         * window.c:
6316
6317         Augment documentation of the most common motion commands to make
6318         note of the shifted-motion support.
6319         
6320 2001-03-02  Ben Wing  <ben@xemacs.org>
6321
6322         * nt.c (mswindows_fstat):
6323         * nt.c (mswindows_stat):
6324         * search.c (boyer_moore):
6325         Fix compile warnings under Windows.
6326         
6327         * sysdep.c (sys_readdir):
6328         Fix buggy filename-conversion code under Mule.
6329
6330 2001-03-09  William M. Perry  <wmperry@aventail.com>
6331
6332         * Makefile.in.in:
6333         * config.h.in:
6334         * console.c:
6335         * console.h:
6336         * device.c:
6337         * device.h:
6338         * dragdrop.c:
6339         * emacs.c:
6340         * event-stream.c:
6341         * events.c:
6342         * events.h:
6343         * faces.c:
6344         * frame.h:
6345         * general-slots.h:
6346         * glyphs.c:
6347         * gutter.c:
6348         * inline.c:
6349         * lisp.h:
6350         * lrecord.h:
6351         * make-src-depend:
6352         * redisplay-output.c:
6353         * redisplay.c:
6354         * symsinit.h:
6355         * sysfile.h:
6356         * toolbar.c:
6357         * window.c:
6358         The Great GTK Merge.
6359
6360         * ChangeLog.GTK:
6361         * console-gtk.c:
6362         * console-gtk.h:
6363         * device-gtk.c:
6364         * emacs-marshals.c:
6365         * emacs-widget-accessors.c:
6366         * event-gtk.c:
6367         * frame-gtk.c:
6368         * gccache-gtk.c:
6369         * gccache-gtk.h:
6370         * glade.c:
6371         * glyphs-gtk.c:
6372         * glyphs-gtk.h:
6373         * gtk-glue.c:
6374         * gtk-xemacs.c:
6375         * gtk-xemacs.h:
6376         * gui-gtk.c:
6377         * gui-gtk.h:
6378         * menubar-gtk.c:
6379         * native-gtk-toolbar.c:
6380         * objects-gtk.c:
6381         * objects-gtk.h:
6382         * redisplay-gtk.c:
6383         * scrollbar-gtk.c:
6384         * scrollbar-gtk.h:
6385         * select-gtk.c:
6386         * toolbar-gtk.c:
6387         * ui-byhand.c:
6388         * ui-gtk.c:
6389         * ui-gtk.h:
6390         The Great GTK Merge: new files.
6391
6392 2001-02-26  Ben Wing  <ben@xemacs.org>
6393
6394         Reapplied Lstream change.
6395
6396 2001-02-26  Ben Wing  <ben@xemacs.org>
6397
6398         Undid the last change, since it is more controversial than I
6399         thought.  It should be back in at some point soon.
6400         
6401 2001-02-25  Ben Wing  <ben@xemacs.org>
6402
6403         * buffer.c:
6404         * callproc.c (Fold_call_process_internal):
6405         * event-msw.c (ntpipe_slurp_reader):
6406         * event-msw.c (ntpipe_shove_writer):
6407         * event-msw.c (winsock_reader):
6408         * event-msw.c (winsock_writer):
6409         * file-coding.c:
6410         * file-coding.c (detect_eol_type):
6411         * file-coding.c (detect_coding_type):
6412         * file-coding.c (determine_real_coding_system):
6413         * file-coding.c (Fdetect_coding_region):
6414         * file-coding.c (decoding_reader):
6415         * file-coding.c (decoding_writer):
6416         * file-coding.c (mule_decode):
6417         * file-coding.c (Fdecode_coding_region):
6418         * file-coding.c (encoding_reader):
6419         * file-coding.c (encoding_writer):
6420         * file-coding.c (mule_encode):
6421         * file-coding.c (Fencode_coding_region):
6422         * file-coding.c (detect_coding_sjis):
6423         * file-coding.c (decode_coding_sjis):
6424         * file-coding.c (encode_coding_sjis):
6425         * file-coding.c (detect_coding_big5):
6426         * file-coding.c (decode_coding_big5):
6427         * file-coding.c (encode_coding_big5):
6428         * file-coding.c (detect_coding_ucs4):
6429         * file-coding.c (decode_coding_ucs4):
6430         * file-coding.c (encode_coding_ucs4):
6431         * file-coding.c (detect_coding_utf8):
6432         * file-coding.c (decode_coding_utf8):
6433         * file-coding.c (encode_coding_utf8):
6434         * file-coding.c (detect_coding_iso2022):
6435         * file-coding.c (decode_coding_iso2022):
6436         * file-coding.c (encode_coding_iso2022):
6437         * file-coding.c (decode_coding_no_conversion):
6438         * file-coding.c (encode_coding_no_conversion):
6439         * glyphs-x.c (write_lisp_string_to_temp_file):
6440         * gpmevent.c (tty_get_foreign_selection):
6441         * lisp.h:
6442         * lstream.c:
6443         * lstream.c (Lstream_flush_out):
6444         * lstream.c (Lstream_adding):
6445         * lstream.c (Lstream_write_1):
6446         * lstream.c (Lstream_write):
6447         * lstream.c (Lstream_raw_read):
6448         * lstream.c (Lstream_read_more):
6449         * lstream.c (Lstream_read):
6450         * lstream.c (Lstream_unread):
6451         * lstream.c (Lstream_fputc):
6452         * lstream.c (stdio_reader):
6453         * lstream.c (stdio_writer):
6454         * lstream.c (filedesc_reader):
6455         * lstream.c (filedesc_writer):
6456         * lstream.c (lisp_string_reader):
6457         * lstream.c (struct fixed_buffer_stream):
6458         * lstream.c (make_fixed_buffer_input_stream):
6459         * lstream.c (make_fixed_buffer_output_stream):
6460         * lstream.c (fixed_buffer_reader):
6461         * lstream.c (fixed_buffer_writer):
6462         * lstream.c (struct resizing_buffer_stream):
6463         * lstream.c (resizing_buffer_writer):
6464         * lstream.c (dynarr_writer):
6465         * lstream.c (lisp_buffer_reader):
6466         * lstream.c (lisp_buffer_writer):
6467         * lstream.h:
6468         * lstream.h (lstream_implementation):
6469         * lstream.h (struct lstream):
6470         * md5.c (Fmd5):
6471         * process-nt.c (nt_send_process):
6472         * process-unix.c (unix_send_process):
6473         
6474         Correct Lstream lossage due to mixing of signed and unsigned
6475         quantities.  All Lstream uses of size_t and ssize_t are now a
6476         single signed data type Lstream_data_count.  This fixes problems
6477         under Windows with sending large quantities of data to a process,
6478         and may well fix other subtle bugs.
6479
6480 2001-02-23  Martin Buchholz <martin@xemacs.org>
6481
6482         * XEmacs 21.2.45 "Thelxepeia" is released.
6483
6484 2001-02-21  Martin Buchholz  <martin@xemacs.org>
6485
6486         * lisp-union.h (XSETINT): 
6487         (XSETCHAR):
6488         (XSETOBJ): 
6489         Reverse previous change of 2001-02-06.
6490
6491 2001-02-20  Matt Tucker  <tuck@whistlingfish.net>
6492
6493         Fix `VALID_BYTIND_P' crashes in regex.c when using narrowed
6494         buffers.
6495         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
6496         * syntax.h (SYNTAX_CACHE_OBJECT_BYTE_TO_CHAR):
6497         Add `BI_BUF_BEGV' to bytepos before calculating bufpos.
6498         * regex.c (POS_AS_IN_BUFFER): removed
6499         * regex.c (re_search_2):
6500         * regex.c (re_match_2):
6501         Don't use an offset of 1 when calculating buffer positions, since
6502         `BI_BUF_BEGV' does it already.
6503
6504 2001-02-18  Wim Dumon  <wim@easics.be>
6505
6506         * insdel.c (prepare_to_modify_buffer): Also check for
6507         supersession when clash-detection is enabled. 
6508
6509 2001-02-17  Matt Tucker  <tuck@whistlingfish.net>
6510
6511         * regex.c (re_match_2_internal):
6512         Convert temp characters from 'const unsigned char' to 're_char'.
6513         Fix crashing bug with extended characters under mule.
6514         * syntax.c (Qsyntax_table): Moved from vars_of_syntax to
6515         syms_of_syntax. Use defsymbol to define. Fixes hanging bug with
6516         font-lock, pdump, and new syntax-table code.
6517         * syntax.c (find_start_of_comment):
6518         (find_end_of_comment):
6519         (forward-comment):
6520         Fix crashing bugs involving moving beyond end of buffer.
6521         * syntax.c (find_start_of_comment):
6522         Fixed logic to allow proper detection of cases where the same
6523         character is used to end both a two-char comment start and a
6524         two-char comment end sequence. Fixes `(forward-comment -1)'.
6525         * syntax.c (find_start_of_comment):
6526         Return position just past last comment-end character for all cases
6527         (previously was only done for two-char comment-end sequences).
6528         * syntax.c (forward-comment):
6529         Take value returned from `find_end_of_comment', rather than
6530         incrementing it.
6531         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
6532         Properly deal with BUFFERP (syntax_cache.object)
6533
6534 2001-02-17  Martin Buchholz  <martin@xemacs.org>
6535
6536         * alloc.c (Fgarbage_collect): 
6537         * alloc.c (make_bit_vector_from_byte_vector):
6538         -Wsign-compare-correctness.
6539
6540 2001-02-16  Martin Buchholz  <martin@xemacs.org>
6541
6542         * lisp-union.h (XSETINT): Eliminate unnecessary temp var.
6543         (XSETCHAR): Likewise.
6544         (XSETOBJ): Likewise.
6545
6546 2001-02-15  Martin Buchholz  <martin@xemacs.org>
6547
6548         * mule-canna.c (canna-func-delete_previous): 
6549         Rename to canna-func-delete-previous.
6550
6551 2001-02-14  Martin Buchholz  <martin@xemacs.org>
6552
6553         * mule-ccl.c (ccl_driver): Warning suppression.  Use countof.
6554
6555 2001-02-13  Matt Tucker  <tuck@whistlingfish.net>
6556
6557         * font-lock.c (find_context): Fix C++ compile errors introduced by
6558         recent patch
6559
6560 2001-02-13  Martin Buchholz  <martin@xemacs.org>
6561
6562         * s/aix4.h: Later versions of IBM C compiler need a bug workaround
6563         pragma, but earlier ones barf on the same pragma.
6564
6565 2001-02-06  Mike Sperber <mike@xemacs.org>
6566
6567         * emacs.c (complex_vars_of_emacs): Add `mule-lisp-directory' and
6568         `configure-mule-lisp-directory'.
6569
6570 2001-02-12  Martin Buchholz  <martin@xemacs.org>
6571
6572         Make sure dump-id.c is compiled in the same way as other .c's.
6573         Fixes pdump compilation failure with HP's cc, which defaults to K&R.
6574         * dump-id.h: Remove.
6575         * emacs.c: Move dump-id.h into dumper.h.
6576         * dumper.h: Move dump-id.h into dumper.h.
6577         * Makefile.in.in:
6578         Use standard .c.o rule for building dump-id.o.
6579         Remove preprocessor flags from link command.
6580         Add dump-id.o to ${otherobjs} if PDUMP.
6581
6582 2001-02-07  Matt Tucker  <tuck@whistlingfish.net>
6583
6584         Port FSF 20.7 syntax table improvements.
6585         * syntax.c.
6586         * syntax.h.
6587
6588         Fixups for new syntax table stuff.
6589         * dired.c: Include syntax.c.
6590         (Fdirectory_files): Initialize regex_match_object and
6591         regex_emacs_buffer.
6592         * extents.h: EXFUN Fnext_extent_change, Fprevious_extent_change,
6593         and Fget_char_property.
6594
6595         Use ported FSF 20.7 syntax table improvements.
6596         * font-lock.c.
6597         * regex.c.
6598         * search.c.
6599         
6600 2001-02-09  Martin Buchholz  <martin@xemacs.org>
6601
6602         * regex.c (Boolean): Renamed to `re_bool', to avoid conflict with
6603         Unixware's enum boolean from sys/types.h.
6604
6605 2001-02-10  Martin Buchholz  <martin@xemacs.org>
6606
6607         Fix support for building with latest Purify.
6608         * Makefile.in.in (PURIFY_LIBS): Remove thread flags.
6609         (PURIFY_FLAGS): Likewise.
6610
6611 2001-02-09  Martin Buchholz  <martin@xemacs.org>
6612
6613         * fileio.c (lisp_string_set_file_times): New.
6614         * fileio.c (Fcopy_file): Use it.
6615         Fixes bug:
6616         (copy-file filename non-ascii-filename t t)
6617         ==> No such file or directory, non-ascii-filename
6618
6619 2001-02-10  Martin Buchholz  <martin@xemacs.org>
6620
6621         * glyphs-x.c (generate_cursor_fg_bg): Avoid a warning.
6622         USHRT_MAX seems clearer than ~0 anyways.
6623
6624 2001-02-09  Martin Buchholz  <martin@xemacs.org>
6625
6626         dumper improvements.  Inspired by Olivier.
6627         * dumper.c (pdump_max_align): New.
6628         * dumper.c (pdump_add_entry): Use pdump_max_align.
6629         * dumper.c (pdump_get_entry_list): Likewise.
6630         * dumper.c (pdump_scan_by_alignment): Likewise.
6631         Don't iterate through unnecessary alignments.
6632         * dumper.c (pdump_file_get): No need to align result of malloc().
6633         * dumper.c (pdump_mallocadr): Remove.  
6634         The result of malloc() is guaranteed to be maximally aligned.
6635         * dumper.c: s/elmt/elt/g;
6636         * dumper.c (pdump_object_table): Allocate dynamically, not statically.
6637         * dumper.c (pdump_alert_undump_object): Likewise.
6638         * dumper.c (pdump_align_table): 
6639         Don't support alignments > 64.
6640         Store ALIGNOF's, not shift counts, in table.
6641
6642 2001-02-09  Martin Buchholz  <martin@xemacs.org>
6643
6644         * s/mingw32.h (HAVE_STRUCT_UTIMBUF): Remove.
6645         * s/windowsnt.h (HAVE_STRUCT_UTIMBUF): Remove.
6646         * systime.h: Use HAVE_UTIME.
6647         * sysdep.c (struct utimbuf): Remove.
6648         * sysdep.c (set_file_times): Prefer utime() to utimes().
6649         * config.h.in (HAVE_UTIME): New.
6650         * config.h.in (HAVE_UTIME_H): Remove.
6651         * config.h.in (HAVE_STRUCT_UTIMBUF): Remove.
6652
6653 2001-02-09  Martin Buchholz  <martin@xemacs.org>
6654
6655         * s/aix4.h: Hide #pragmas inside #ifndef NOT_C_CODE.
6656
6657 2001-02-08  Martin Buchholz  <martin@xemacs.org>
6658
6659         * s/irix6-0.h: Use the standard system memmove, not bcopy.
6660
6661 2001-02-08  Martin Buchholz <martin@xemacs.org>
6662
6663         * XEmacs 21.2.44 "Thalia" is released.
6664
6665 2001-02-06  Martin Buchholz  <martin@xemacs.org>
6666
6667         Fixes crashes in kill-emacs on some systems.
6668         * process-unix.c (unix_kill_child_process):
6669         It's OK for kill() to fail with ESRCH.
6670
6671 2001-02-07  Martin Buchholz  <martin@xemacs.org>
6672
6673         Contortions to make .gdbinit tricks work on most systems.
6674         * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
6675         * alloc.c (dbg_valmask): Make non-const.
6676         * alloc.c (dbg_typemask): Make non-const.
6677         * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
6678         * alloc.c (dbg_valbits): Make non-const.
6679         * alloc.c (dbg_gctypebits): Make non-const.
6680         * .gdbinit (decode_object): Make it work with AIX cc.
6681
6682 2001-02-06  Martin Buchholz  <martin@xemacs.org>
6683
6684         * elhash.c (make_general_lisp_hash_table):
6685         Use simpler and more efficient calloc to clear entries.
6686
6687 2001-02-07  Martin Buchholz  <martin@xemacs.org>
6688
6689         * window.c (window_scroll): Work around an AIX C compiler bug.
6690         Fixes 'scroll-up' does nothing problem with xlC.
6691
6692 2001-02-05  Martin Buchholz  <martin@xemacs.org>
6693
6694         * .gdbinit: Remove obsolete comment.
6695
6696 2001-01-31  Mike Alexander  <mta@arbortext.com>
6697
6698         * select.c (Fown_selection_internal): Set owned_p for device
6699         method correctly.
6700
6701 2001-02-01  Martin Buchholz  <martin@xemacs.org>
6702
6703         Port to g++ 2.97.
6704         "not" cannot be used as a macro name as it is an operator in C++
6705         * config.h.in: Stop #defining `not'.
6706         * chartab.c (check_category_char): not ==> not_p
6707         * chartab.h: Likewise.
6708         * regex.c (re_match_2_internal): Likewise.
6709
6710 2001-02-02  Martin Buchholz  <martin@xemacs.org>
6711
6712         * lisp-disunion.h: Fix up comments.
6713
6714 2001-01-31  Martin Buchholz  <martin@xemacs.org>
6715
6716         * keymap.c (define_key_check_and_coerce_keysym):
6717         (syms_of_keymap):
6718         Support mouse-6 and mouse-7 bindings in the obvious way.
6719
6720 2001-02-01  Martin Buchholz  <martin@xemacs.org>
6721
6722         * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
6723
6724 2001-01-30  Martin Buchholz  <martin@xemacs.org>
6725
6726         Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
6727         Previous patch missed DEFVAR_INT_MAGIC.
6728         Make sure future DEFVAR_foo use correct types.
6729         * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
6730         * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
6731         * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
6732         * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
6733         * (DEFVAR_INT): Likewise.
6734         * redisplay.c (vertical_clip): Should be of type Fixnum.
6735         * redisplay.c (horizontal_clip): Likewise.
6736         * lisp.h (dump_add_opaque_int): New.
6737         (dump_add_opaque_fixnum): New.
6738
6739 2001-01-29  Andy Piper  <andy@xemacs.org>
6740
6741         * glyphs-widget.c (check_valid_int_or_function): allow symbols
6742         since they can be eval'ed
6743
6744 2001-01-29  Martin Buchholz  <martin@xemacs.org>
6745
6746         * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
6747         Oops, XEmacs redefines `class'.  Use `typename' instead.
6748
6749 2001-01-28  Martin Buchholz  <martin@xemacs.org>
6750
6751         * dumper.c: Fix C++ compile errors.
6752
6753 2001-01-29  Martin Buchholz  <martin@xemacs.org>
6754
6755         * tparam.c: Use correct prototypes.
6756
6757 2001-01-28  Martin Buchholz  <martin@xemacs.org>
6758
6759         * sysproc.h: #include util.h for NetBSD's openpty.
6760
6761 2001-01-27  Martin Buchholz  <martin@xemacs.org>
6762
6763         More 64-bit correctness.
6764         The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
6765         Use a typedef `fixnum' for the type used for DEFVAR_INT.
6766         Fix up comments.
6767         This finally finishes the 64-bit SGI port.
6768         Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
6769         * symbols.c: Fix up comments and type casts.
6770         * symbols.c (do_symval_forwarding): s/int/Fixnum/g
6771         * symbols.c (store_symval_forwarding): s/int/Fixnum/g
6772         * symeval.h (Fixnum): New type.
6773         * symeval.h (symbol_value_type): Fix up comment.
6774
6775         * commands.h:
6776         * nt.c:
6777         * emacs.c:
6778         * data.c:
6779         * redisplay.c:
6780         * abbrev.c:
6781         * dired-msw.c:
6782         * event-Xt.c:
6783         * eldap.c:
6784         * window.c:
6785         * sound.c:
6786         * event-stream.c:
6787         * eval.c:
6788         * buffer.c:
6789         * mule-canna.c: A million DEFVAR_INTs here...
6790         * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
6791         * extents.c:
6792         * cmdloop.c:
6793         * lisp.h:
6794         * select-x.c:
6795         * console-x.h:
6796         * event-msw.c:
6797         * mule-wnnfns.c:
6798         * hpplay.c:
6799         * ralloc.c:
6800         * alloc.c:
6801         * keymap.c:
6802         * profile.c:
6803         s/int/Fixnum/g in DEFVAR_INT declarations.
6804
6805 2001-01-26  Martin Buchholz  <martin@xemacs.org>
6806
6807         Port pdump to SGI alignment-sensitive environment.
6808         Lisp Object sizeof methods now return aligned sizes.  Rely on that.
6809         Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
6810         properly aligned.
6811         Define and use aligned reading and writing macros.
6812         Use buffered stdio instead of posix i/o for faster dumping.
6813         Eliminate kludgy 256 byte space for header.
6814         Read and write from dump file using structs for alignment safety.
6815         * dumper.c (pdump_align_stream): New.
6816         * dumper.c (PDUMP_ALIGN_OUTPUT): New.
6817         * dumper.c (PDUMP_READ_ALIGNED): New.
6818         * dumper.c (PDUMP_WRITE_ALIGNED): New.
6819         * dumper.c (pdump_static_Lisp_Object): New struct.
6820         * dumper.c (pdump_static_pointer): New struct.
6821         * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
6822         * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
6823         * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
6824         * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
6825
6826         * dumper.c (pdump_backtrace):
6827         * dumper.c (pdump_get_indirect_count):
6828         * dumper.c (pdump_register_object):
6829         * dumper.c (pdump_register_struct):
6830         * dumper.c (pdump_reloc_one):
6831         * dumper.c (pdump_scan_by_alignment):
6832         * dumper.c (pdump_dump_from_root_struct_ptrs):
6833         * dumper.c (pdump_dump_opaques):
6834         * dumper.c (pdump_dump_rtables):
6835         * dumper.c (pdump_dump_from_root_objects):
6836         * dumper.c (pdump):
6837         * dumper.c (pdump_load_finish):
6838         Use aligned reading and writing.
6839
6840         * dumper.c (pdump_free): Make static.
6841         * dumper.c (pdump_hFile): Likewise.
6842         * dumper.c (pdump_hMap): Likewise.
6843
6844 2001-01-26  Martin Buchholz <martin@xemacs.org>
6845
6846         * XEmacs 21.2.43 "Terspichore" is released.
6847
6848 2001-01-25  Martin Buchholz  <martin@xemacs.org>
6849
6850         Type fiddling for window_config.saved_windows_count
6851         * window.c (struct window_config): 
6852         Make saved_windows_count member unsigned.
6853         * window.c (sizeof_window_config_for_n_windows): 
6854         Make parameter unsigned.
6855         * window.c (mark_window_config):
6856         * window.c (window_config_equal):
6857         * window.c (free_window_configuration):
6858         * window.c (Fset_window_configuration):
6859         * window.c (count_windows):
6860         * window.c (Fcurrent_window_configuration):
6861         * window.c (reinit_vars_of_window):
6862         Update all callers and users.
6863
6864 2001-01-25  Martin Buchholz  <martin@xemacs.org>
6865
6866         Alignment correctness for flexible arrays.
6867         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
6868         Make alignment-correct. Add interesting comments.
6869         * alloc.c (size_vector):
6870         * alloc.c (make_vector_internal):
6871         * alloc.c (make_bit_vector_internal):
6872         * alloc.c (sweep_bit_vectors_1):
6873         * fns.c (size_bit_vector):
6874         Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
6875         * window.c (sizeof_window_config_for_n_windows): 
6876         Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
6877
6878 2001-01-24  Martin Buchholz  <martin@xemacs.org>
6879
6880         * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
6881
6882 2001-01-23  Andy Piper  <andy@xemacs.org>
6883
6884         * select.c (Fown_selection_internal): pass owned_p
6885
6886         * select-msw.c (mswindows_own_selection): New Signature.
6887
6888         * console.h (struct console_methods): add owned_p to
6889         _own_selection.
6890
6891         * select-x.c (x_own_selection): pass owned_p
6892         (hack_motif_clipboard_selection): use owned_p
6893         (vars_of_select_x): new variable -
6894         x_selection_strict_motif_ownership.
6895
6896 2001-01-23  Martin Buchholz  <martin@xemacs.org>
6897
6898         * specifier.h (specifier_data_offset): Remove pointless parens.
6899         * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
6900
6901 2001-01-24  Martin Buchholz  <martin@xemacs.org>
6902
6903         Make Lisp_Object sizeof methods be alignment-correct.
6904         pdump must restore objects to the same alignment as the C compiler
6905         assumes.  It really matters on SGIs.
6906         * lstream.c (aligned_sizeof_lstream): New.
6907         (sizeof_lstream): Use aligned_sizeof_lstream.
6908         (Lstream_new): Likewise.
6909         * opaque.c (aligned_sizeof_opaque): New.
6910         (sizeof_opaque): Use aligned_sizeof_opaque.
6911         (make_opaque): Likewise.
6912         * specifier.c (aligned_sizeof_specifier): New.
6913         (sizeof_specifier): Use aligned_sizeof_specifier.
6914         (make_specifier_internal): Likewise.
6915
6916 2001-01-23  Martin Buchholz  <martin@xemacs.org>
6917
6918         * lstream.h (struct lstream): Use max_align_t for trailing data.
6919         * specifier.h (struct Lisp_Specifier): Likewise.
6920
6921 2001-01-22  Martin Buchholz  <martin@xemacs.org>
6922
6923         * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
6924         (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
6925         (CCL_SUSPEND): Likewise.
6926         (CCL_INVALID_CMD): Likewise.
6927         (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
6928         (ccl_driver): Likewise.
6929         (CCL_WRITE_CHAR): Macro hygiene.
6930         (CCL_WRITE_STRING): Macro hygiene.
6931
6932 2001-01-22  Martin Buchholz  <martin@xemacs.org>
6933
6934         Port "portable" dumper to SunOS 4 and HP-UX.
6935         * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
6936         * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
6937         * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
6938
6939 2001-01-22  Martin Buchholz  <martin@xemacs.org>
6940
6941         * lisp.h (ALIGNOF): A better definition for C++.
6942
6943 2001-01-20  Martin Buchholz  <martin@xemacs.org>
6944
6945         Macro hygiene.
6946         Fix printf warnings: int format, long int arg.
6947         * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
6948         (PUSH_FAILURE_POINT): Use correct printf formats.
6949         (POP_FAILURE_POINT): Use correct printf formats.  
6950         Use do {...} while (0)
6951
6952 2001-01-20  Martin Buchholz <martin@xemacs.org>
6953
6954         * XEmacs 21.2.42 "Poseidon" is released.
6955
6956 2001-01-20  Martin Buchholz  <martin@xemacs.org>
6957
6958         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
6959
6960 2001-01-19  Martin Buchholz  <martin@xemacs.org>
6961
6962         De-kludgify FIXED_TYPE free list frobbing.
6963         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
6964         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
6965         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
6966         * alloc.c (Lisp_Free): New pseudo lisp object definition.
6967         * alloc.c (LRECORD_FREE_P): New.
6968         * alloc.c (MARK_LRECORD_AS_FREE): New.
6969         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
6970         * alloc.c (STRUCT_FREE_P): Deleted.
6971         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
6972         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
6973         * alloc.c (STRING_CHARS_FREE_P): New.
6974         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
6975         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
6976         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
6977         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
6978         * alloc.c (resize_string): Use new definitions.
6979         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
6980         * alloc.c (verify_string_chars_integrity): Use new definitions.
6981         * alloc.c (compact_string_chars): Use new definitions.
6982         * alloc.c: Update monster comments.
6983         * lrecord.h (lrecord_type): Add some new lrecord types for
6984         alloc.c's use.
6985
6986 2001-01-18  Martin Buchholz  <martin@xemacs.org>
6987
6988         Improve alignment hackery.
6989         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
6990         (max_align_t): Moved from opaque.h - general purpose.
6991         (ALIGN_PTR): Use size_t, not long.
6992         * opaque.h (max_align_t): Move to lisp.h.
6993
6994 2001-01-18  Norbert Koch  <nk@LF.net>
6995
6996         * gui.h: Fix and add prototypes to fix build problems.
6997
6998 2001-01-18  Martin Buchholz  <martin@xemacs.org>
6999
7000         temacs is going away, so `dump-temacs' is now a bad name.
7001         * .dbxrc (dump-temacs): Rename to `dmp'.
7002         * .gdbinit (dump-temacs): Rename to `dmp'.
7003
7004 2001-01-17  Andy Piper  <andy@xemacs.org>
7005
7006         * glyphs.c (print_image_instance): comment to make martin happy.
7007
7008         * glyphs-x.c (x_redisplay_widget): update faces after a frame
7009         change.
7010
7011         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
7012         activation.
7013         (mswindows_tab_control_redisplay): warning suppression.
7014
7015         * glyphs-widget.c (widget_update): re-write to cope with updated
7016         items.
7017         (widget_instantiate): use new gui_item functions.
7018         (tab_control_update): deleted.
7019         (progress_gauge_update): deleted.
7020         (image_instantiator_progress_guage): take out update reference.
7021         (image_instantiator_tree_view): ditto.
7022         (image_instantiator_tab_control): ditto.
7023
7024         * gui.c (widget_gui_parse_item_keywords): new function. Do things
7025         Right the new way.
7026         (gui_item_add_keyval_pair): re-write to cope with descriptors and
7027         return whether anything was changed.
7028         (update_gui_item_keywords): as it sounds.
7029
7030         * gui.h: declare widget_gui_parse_item_keywords.
7031
7032         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
7033         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
7034
7035 2001-01-17  Martin Buchholz <martin@xemacs.org>
7036
7037         * XEmacs 21.2.41 "Polyhymnia" is released.
7038
7039 2001-01-16  Didier Verna  <didier@xemacs.org>
7040
7041         * glyphs.c (image_instantiate): don't use fallbacks when
7042         instantiating a face's background pixmap by inheritance.
7043
7044 2001-01-14  Mike Sperber <mike@xemacs.org>
7045
7046         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
7047         Conditionalize accordingly.
7048
7049 2001-01-16  Martin Buchholz  <martin@xemacs.org>
7050
7051         * dumper.c (pdump_file_get): Fix a compiler warning.
7052
7053 2001-01-15  Martin Buchholz  <martin@xemacs.org>
7054
7055         Make Purify happy when pdumping.
7056         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
7057         iniitalizing all bits of new lisp object memory.
7058         * symbols.c (Fmake_local_variable): Likewise.
7059         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
7060         * symbols.c (Fdefvaralias): Likewise.
7061         * mule-charset.c (vars_of_mule_charset): Likewise.
7062
7063 2001-01-15  Martin Buchholz  <martin@xemacs.org>
7064         Add the `-nd' flag when running pre-dump operations under the debugger.
7065         * .dbxrc (run-temacs): Add `-nd'.
7066         * .dbxrc (update-elc): Likewise.
7067         * .dbxrc (dump-temacs): Likewise.
7068         * .gdbinit (run-temacs): Likewise.
7069         * .gdbinit (check-temacs): Likewise.
7070         * .gdbinit (update-elc): Likewise.
7071         * .gdbinit (dump-temacs): Likewise.
7072
7073 2001-01-14  Martin Buchholz  <martin@xemacs.org>
7074
7075         Allow building 64-bit executables on AIX with GNU malloc, e.g.
7076         export OBJECT_MODE=64
7077         configure --pdump --use-union-type=no
7078         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
7079         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
7080
7081         * miscplay.c (sndcnv8U_2mono):
7082         Avoid two uses of `++' in the same expression.
7083         Suppresses a GCC warning.
7084
7085 2001-01-13  Martin Buchholz  <martin@xemacs.org>
7086
7087         Make sure future compilers don't miscompile alloc.c.
7088         * alloc.c:
7089         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
7090         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
7091
7092 2001-01-12  Martin Buchholz  <martin@xemacs.org>
7093
7094         * dumper.c: A little post-pdump-rename comment fixup.
7095
7096 2001-01-09  Jerry James  <james@eecs.ku.edu>
7097
7098         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
7099
7100 2001-01-13  Martin Buchholz  <martin@xemacs.org>
7101
7102         * *.[ch]: Globally rename symbols using the following `pdump-rename'
7103         script:
7104         #!/bin/sh
7105         replace_symbol () {
7106           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
7107         }
7108
7109         replace_symbol pdump_wire_lists pdump_weak_object_chains
7110         replace_symbol pdump_wire_list dump_add_weak_object_chain
7111
7112         replace_symbol pdump_wires pdump_root_objects
7113         replace_symbol pdump_wire dump_add_root_object
7114
7115         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
7116         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
7117
7118         replace_symbol dumpstructinfos pdump_root_struct_ptrs
7119         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
7120         replace_symbol dumpstructinfo pdump_root_struct_ptr
7121         replace_symbol dumpstruct dump_add_root_struct_ptr
7122
7123         replace_symbol dumpopaque dump_add_opaque
7124         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
7125         replace_symbol dumpopaqueinfos pdump_opaques
7126         replace_symbol dumpopaqueinfo pdump_opaque
7127
7128         replace_symbol nb_structdump nb_root_struct_ptrs
7129         replace_symbol nb_opaquedump nb_opaques
7130
7131         replace_symbol align_table pdump_align_table
7132         replace_symbol dump_header pdump_header
7133
7134         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
7135         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
7136
7137
7138 2001-01-12  Martin Buchholz  <martin@xemacs.org>
7139
7140         * s/aix4.h: Keep the C for AIX compiler from overaggressively
7141         optimizing bytecount_to_charcount().
7142
7143 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
7144
7145         * config.h.in:
7146         (HAVE_DLFCN_H): Removed.
7147         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
7148
7149 2001-01-06  Martin Buchholz  <martin@xemacs.org>
7150
7151         Portable dumper maintainability improvements.
7152         * alloc.c (staticpro):
7153         * alloc.c (staticpro_nodump):
7154         * alloc.c (garbage_collect_1):
7155         * alloc.c (reinit_alloc_once_early):
7156         * alloc.c (init_alloc_once_early):
7157         * alloc.c: Move dumper functions to alloc.c.
7158         * dumper.c (pdump_backtrace):
7159         * dumper.c (pdump_dump_structs):
7160         * dumper.c (pdump_dump_opaques):
7161         * dumper.c (pdump_dump_rtables):
7162         * dumper.c (pdump_dump_wired):
7163         * dumper.c (pdump):
7164         * dumper.c (pdump_load_check):
7165         * dumper.c (pdump_load_finish):
7166         * dumper.c (pdump_file_unmap):
7167         * dumper.c (pdump_file_get):
7168         * dumper.c (pdump_resource_free):
7169         * dumper.c (pdump_resource_get):
7170         * dumper.c (pdump_file_free):
7171         * dumper.c (pdump_file_try):
7172         * dumper.c (pdump_load):
7173         Remove fixed size limits on staticpro(), staticpro_nodump(),
7174         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
7175         Remove custom code for dumping lrecord_implementations_table - use
7176         dumpopaque instead.
7177         Remove (most of the) custom code for dumping staticpros - dump it
7178         like any other dynarr.
7179
7180         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
7181         * dumper.c: Moved functions from alloc.c.
7182         * alloc.c (dumpstruct): Moved to dumper.c.
7183         * alloc.c (dumpopaque): Likewise.
7184         * alloc.c (pdump_wire): Likewise.
7185         * alloc.c (pdump_wire_list): Likewise.
7186
7187         * lisp.h (Dynarr_sizeof): New.
7188         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
7189         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
7190         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
7191
7192         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
7193         * lisp.h (dumpopaque): ditto.
7194         * lisp.h (pdump_wire): ditto.
7195         * lisp.h (pdump_wire_list): ditto.
7196
7197 2001-01-09  Martin Buchholz  <martin@xemacs.org>
7198
7199         * make-src-depend (PrintPatternDeps):
7200         Use `sort' to make output independent of perl version.
7201
7202 2001-01-08  Martin Buchholz  <martin@xemacs.org>
7203
7204         Port to Netbsd 1.5.
7205         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
7206         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
7207
7208 2001-01-03  Didier Verna  <didier@xemacs.org>
7209
7210         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
7211         that `focus_frame' is alive before thinking of calling
7212         `redisplay_redraw_cursor' on it.
7213
7214 2001-01-08  Martin Buchholz <martin@xemacs.org>
7215
7216         * XEmacs 21.2.40 is released.
7217
7218 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
7219
7220         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
7221
7222 2001-01-06  Martin Buchholz  <martin@xemacs.org>
7223
7224         * alloc.c (dbg_valmask): Make const.
7225         * alloc.c (dbg_typemask): Make const.
7226         * alloc.c (dbg_USE_UNION_TYPE): Make const.
7227         * alloc.c (dbg_valbits): Make const.
7228         * alloc.c (dbg_gctypebits): Make const.
7229
7230 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
7231
7232         * redisplay-x.c (x_bevel_area):
7233         redisplay.h (struct rune):
7234         Typo fixes in comments.
7235
7236 2001-01-05  Andy Piper  <andy@xemacs.org>
7237
7238         * glyphs-x.c (x_redisplay_widget): use size changed for offset
7239         adjustment.
7240
7241         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
7242
7243 2001-01-05  Martin Buchholz  <martin@xemacs.org>
7244
7245         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
7246
7247         * mule-ccl.c (stack_idx_of_map_multiple):
7248         Non const global data must not be initialized!
7249         Found by MIYASHITA Hisashi.
7250
7251 2001-01-02  Andy Piper  <andy@xemacs.org>
7252
7253         * frame.c (change_frame_size): make sure frame size is always
7254         marked as changed.
7255
7256         * glyphs.c (image_instance_layout): minor code reuse.
7257
7258         * window.c (Fcurrent_window_configuration): revert previous
7259         change.
7260
7261 2001-01-02  Martin Buchholz  <martin@xemacs.org>
7262
7263         * glyphs.h:
7264         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
7265
7266 2000-12-31  Andy Piper  <andy@xemacs.org>
7267
7268         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
7269         when widget gets unmapped.
7270
7271         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
7272         function. Make sure widgets losing focus don't just drop it.
7273         (handle_focus_event_1): record the widget with focus.
7274
7275 2000-12-31  Andy Piper  <andy@xemacs.org>
7276
7277         * window.c (allocate_window): use
7278         make_image_instance_cache_hash_table.
7279         (make_dummy_parent): ditto.
7280         (Fset_window_configuration): ditto.
7281
7282         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
7283
7284         * glyphs.c (process_image_string_instantiator): use
7285         INSTANTIATOR_TYPE.
7286         (get_image_instantiator_governing_domain): ditto.
7287         (normalize_image_instantiator): ditto.
7288         (instantiate_image_instantiator): ditto.
7289         (make_image_instance_1): ditto.
7290         (image_instantiate): ditto. Key on glyph *and* instantiator type.
7291         (instantiator_eq_equal): new function for use with instance hash
7292         tables.
7293         (instantiator_eq_hash): ditto.
7294         (make_image_instance_cache_hash_table): create a suitable hash
7295         table for storing image instances.
7296
7297         * elhash.h (hash_table_weakness): new internal weakness type
7298         HASH_TABLE_KEY_CAR_VALUE_WEAK.
7299         declare new functions.
7300
7301         * elhash.c (finish_marking_weak_hash_tables): introduce yet
7302         another weakness type for glyphs.
7303         (make_standard_lisp_hash_table): new function split out from
7304         make_general_lisp_hash_table.
7305         (make_lisp_hash_table): call make_standard_lisp_hash_table.
7306         (hash_table_instantiate): ditto.
7307         (Fmake_hash_table): ditto.
7308
7309 2000-12-31  Martin Buchholz <martin@xemacs.org>
7310
7311         * XEmacs 21.2.39 is released.
7312
7313 2000-12-29  Andy Piper  <andy@xemacs.org>
7314
7315         * menubar.c (menubar_visible_p_changed): signal the frame changed.
7316
7317         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
7318         the frame has changed so that we pick up geometry changes such as
7319         menubar visibility.
7320
7321 2000-12-28  Andy Piper  <andy@xemacs.org>
7322
7323         * lastfile.c (my_ebss): make a char array so we can pad the
7324         bss. Fixes cygwin unexec.
7325
7326         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
7327
7328 2000-12-26  Andy Piper  <andy@xemacs.org>
7329
7330         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
7331         comments and try and be more precise about a non-/SIGIO world.
7332         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
7333         SIGIO.
7334
7335         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
7336         we don't normalize to zero width or height.
7337
7338 2000-12-24  Andy Piper  <andy@xemacs.org>
7339
7340         * Makefile.in.in (ldflags): add -mwindows when appropriate.
7341
7342 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
7343
7344         * s/sco5.h: SCO 5 has pty support.
7345
7346 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
7347
7348         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
7349         input-method-xlib.c contains whole contents of input-method-xfs.c,
7350         so we can use input-method-xlib.c's code for USE_XFONTSET
7351         using #ifdefs.
7352         * input-method-xfs.c: removed.
7353
7354 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
7355
7356         * file-coding.h (enum coding_category_type): reorder enumerators to
7357         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
7358         (now one greater than largest real coding_category_type enumerator).
7359         * file-coding.c (coding_category_symbol, coding_category_by_priority,
7360         coding_category_system, fcd_descriptihon_1, decode_coding_category,
7361         Fcoding_category_list, Fset_coding_priority_list,
7362         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
7363         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
7364
7365 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
7366
7367         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
7368         * redisplay-output.c (redisplay_output_window): Clear top of window
7369         when face is changed.
7370         * redisplay-x.c (x_redraw_exposed_window): Call
7371         redisplay_clear_top_of_window.
7372         * redisplay.h: Publish redisplay_clear_top_of_window.
7373
7374 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
7375
7376         * buffer.c (Fkill_buffer): Map over all devices.
7377         * window.c (window_loop): Remove UNSHOW_BUFFER code.
7378         (list_windows): New function.
7379         (list_all_windows): Ditto.
7380         (Freplace_buffer_in_windows): Use them.
7381
7382 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
7383
7384         * database.c (berkdb_subtype): Recognize new subtype `queue'.
7385         (Fopen_database): Use `db_create' instead of `db_open'.
7386         (syms_of_database): Initialize Qqueue.
7387
7388 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
7389
7390         * buffer.c (common_init_complex_vars_of_buffer): Initialize
7391         buffer_local_face_property.
7392         * buffer.h (struct buffer): New member buffer_local_face_property.
7393         * window.c (Fset_window_buffer):  Mark window's face as changed
7394         when buffer has buffer local face.
7395         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
7396         * objects.c (color_after_change): Set buffer_local_face_property
7397         when locale of face specifier is buffer.
7398         * objects.c (font_after_change): Ditto.
7399         * objects.c (face_boolean_after_change): Ditto.
7400         * glyphs.c (image_after_change): Ditto.
7401
7402 2000-12-09  Dan Holmsand  <dan@eyebee.com>
7403
7404         * nt.c (mswindows_fstat): Report file permissions, volume serial
7405         number, etc. Code adapted from FSF Emacs 20.7.
7406
7407 2000-12-09  Dan Holmsand  <dan@eyebee.com>
7408
7409         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
7410         of stat when we don't have symbolic links, to make sure
7411         mswindows_stat is called on mswindows.
7412
7413 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
7414
7415         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
7416
7417 2000-12-12  Martin Buchholz  <martin@xemacs.org>
7418
7419         * doprnt.c (emacs_doprnt_1): More printing fixes.
7420         Make printing of numbers compatible with libc and FSF Emacs.
7421         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
7422         Use the system printf to do most of the hard work of formatting,
7423         instead of doprnt_1().
7424         Calculate memory to allocate for format string.
7425         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
7426         (doprnt_1): Cleaner code and documentation.
7427
7428 2000-12-01  Jerry James  <james@eecs.ukans.edu>
7429
7430         * Makefile.in.in: Use the loop variable to install headers.
7431
7432 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
7433
7434         * window.c (Fsplit_window): Don't invalidate face cache.
7435
7436 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
7437
7438         * minibuf.c (Fall_completions): Undo the previous change
7439         which removed checking elements start with space.
7440
7441 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
7442
7443         * mule-canna.c: Didier suppression.
7444
7445 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
7446
7447         * mule-canna.c: rename static unsigned char buf[] to key_buffer
7448         (warning suppression).  Add English comment translations.
7449
7450 2000-12-05  Martin Buchholz  <martin@xemacs.org>
7451
7452         * unexelfsgi.c (unexec): Better test for mmap failure.
7453
7454 2000-12-05  Martin Buchholz <martin@xemacs.org>
7455
7456         * XEmacs 21.2.38 is released.
7457
7458 2000-12-05  Martin Buchholz  <martin@xemacs.org>
7459
7460         * redisplay.c (bar-cursor): Make a user variable.
7461
7462         * symsinit.h: Add init_postgresql_from_environment.
7463
7464 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
7465
7466         * regex.c: Convert to clean C.
7467
7468 2000-12-05  Dan Holmsand  <dan@eyebee.com>
7469
7470         * realpath.c:
7471         Don't #include sysfile.h. Revert to duplicating PATH_MAX
7472         initialization.
7473         (sys_readlink): renamed to system_readlink to avoid conflict with
7474         the other sys_readlink.
7475
7476 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
7477
7478         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
7479
7480 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
7481
7482         * postgresql.c (init_postgresql_from_environment): new function.
7483         (vars_of_postgresql): Move code initializing Lisp variables out and
7484         into init_postgresql_from_environment.
7485         emacs.c (main_1): Call init_postgresql_from_environment if and only
7486         if running a dumped XEmacs.
7487
7488 2000-08-31  Dan Holmsand  <dan@eyebee.com>
7489
7490         * buffer.c: Make find-file-compare-truenames default to true on
7491         windows.
7492
7493         * realpath.c (win32_abs_start):
7494         (cygwin_readlink):
7495         (win32_readlink): New functions.
7496         (xrealpath): Return really real filenames on windows.
7497
7498         * fileio.c (Ffile_truename): Make file-truename work on windows.
7499
7500 2000-11-29  Didier Verna  <didier@xemacs.org>
7501
7502         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
7503         * faces.c (update_face_cachel_data): use it.
7504         * faces.c (add_face_cachel): use it. Complete background pixmap
7505         frobbing in face cache if `update_face_cachel_data' has not done so.
7506
7507 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
7508
7509         * search.c (string_match_1): Don't set last_thing_searched
7510         when search failed.
7511
7512 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
7513
7514         * buffer.c: Include casetab.h
7515         (common_init_complex_vars_of_buffer): Use new case-table object.
7516         * buffer.h: Include casetab.h
7517         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
7518         (DOWNCASE_TABLE_OF): Ditto.
7519         * bufslots.h: Remove char-tables and add case-table.
7520         * casetab.c: Include casetab.h
7521         (CASE_TABLE_P): Removed.
7522         (mark_case_table): New function.
7523         (allocate_case_table): New function.
7524         (Fcase_table_p): Use new case-table.
7525         (case_table_char): New function.
7526         (Fget_case_table): Ditto.
7527         (Fput_case_table): Ditto.
7528         (Fput_case_table_pair): Ditto.
7529         (Fcopy_case_table): Ditto.
7530         (Fcurrent_case_table): Return case-table.
7531         (Fstandard_case_table): Return case-table.
7532         (Fset_case_table): Fix doc-string.
7533         (set_case_table): Use case-table
7534         (syms_of_casetab): DEFSUBR new functions.
7535         (complex_vars_of_casetab): Set up standard case-table.
7536         * casetab.h: New file.
7537         * editfns.c: Include casetab.h
7538         (Fcompare_buffer_substrings): Use case-table.
7539         * inline.c: Include casetab.h
7540         * lisp.h: Remove bogus extern.
7541         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
7542         * search.c: Include casetab.h
7543         (TRANSLATE_ASCII): Removed.
7544         (TRANSLATE): Unconditionally translate character.
7545         (looking_at_1): Use case-table.
7546         (string_match_1): Ditto.
7547         (fast_string_match): Ditto.
7548         (search_command): Ditto.
7549         (search_buffer): Separate boyer_moore.  Check whether
7550         boyer_moore is possible.
7551         (simple_search): New function.
7552         (boyer_moore): Separated from search_buffer. Translate char.
7553
7554 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
7555
7556         * regex.c (RE_TR_ASCII): Removed.
7557         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
7558         (PATFETCH): Call PATFETCH_RAW.
7559         (PATFETCH_RAW): Fetch Emchar.
7560         (PATUNFETCH): Decrement charptr.
7561         (GET_BUFFER_SPACE): Rename b to buf_end.
7562         (BUF_PUSH): Ditto.
7563         (BUF_PUSH_2): Ditto.
7564         (BUF_PUSH_3): Ditto.
7565         (EXTEND_BUFFER): Ditto.
7566         (SET_LIST_BIT): Ditto.
7567         (regex_compile): Ditto.  Translate non ASCII char.
7568         (compile_range): Ditto.
7569         (re_search_2): Ditto.
7570         (re_match_2_internal): Compare Emchar.
7571         (bcmp_translate): Ditto.
7572
7573 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
7574
7575         * lisp.h (basic char/int typedefs):  comment improvement.
7576
7577 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
7578
7579         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
7580         unstomp inhibit_site_lisp.  Improve comments.
7581
7582 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
7583
7584         * mule-charset.c (Fcharset_property):  improve type checking, comments.
7585
7586 2000-11-28  Andy Piper  <andy@xemacs.org>
7587
7588         * redisplay-output.c (redisplay_output_subwindow): make sure we do
7589         clipped display for windows in the gutter also.
7590         (redisplay_display_boxes_in_window_p): change semantics of return
7591         codes to be more intuitive.
7592
7593         * gutter.h: declare display_boxes_in_gutter_p.
7594
7595         * gutter.c (display_boxes_in_gutter_p): new function for
7596         redisplay.
7597
7598 2000-11-22  Andy Piper  <andy@xemacs.org>
7599
7600         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
7601         autodetect domain.
7602
7603 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
7604
7605         * callproc.c (Fold_call_process_internal):
7606         * gpm.c (Freceive_gpm_event):
7607         (tty_get_foreign_selection): Might be just warning supression.
7608         * fileio.c (Fwrite_region_internal):
7609         (Fset_visited_file_modtime):
7610         * keymap.c (event_matches_key_specifier_p):
7611         Initialize GCPROed variable.
7612
7613         * menubar-x.c (command_builder_find_menu_accelerator):
7614         Initialize before use.
7615
7616 2000-11-23  Andy Piper  <andy@xemacs.org>
7617
7618         * unexcw.c (unexec): make the resulting executable executable.
7619
7620 2000-11-21  Martin Buchholz  <martin@xemacs.org>
7621
7622         * doc.c (get_doc_string):
7623         Use size_t, not int, for result of XSTRING_LENGTH.
7624
7625         * cmds.c (Fdelete_char):
7626         * cmds.c (Fpoint_at_eol):
7627         * cmds.c (Fself_insert_command):
7628         Use EMACS_INT, not int, for result of XINT.
7629         Someday, someone will want to insert more than 2**31 identical characters.
7630
7631         * cmds.c (Fdelete_char):
7632         * cmds.c (Fdelete_backward_char):
7633         * syntax.c (Fforward_word):
7634         * syntax.c (Fforward_comment):
7635         Make COUNT argument optional, for consistency with forward-char et al.
7636
7637 2000-11-22  Martin Buchholz  <martin@xemacs.org>
7638
7639         * lisp.h:
7640         * print.c (long_to_string):
7641         Return a useful value: the pointer at end of data written.
7642
7643         * doprnt.c:
7644         Use `static const char * const' for constant strings.
7645         (union printf_arg): Delete `i', `ui' members.
7646         (get_doprnt_args):
7647         (emacs_doprnt_1):
7648         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
7649         Do all printf-ing via the `l' specifier.
7650         Use EMACS_INT instead of int.
7651         Optimize.
7652
7653 2000-11-20  Didier Verna  <didier@xemacs.org>
7654
7655         * faces.c (update_face_cachel_data): don't frob the background
7656         pixmap when the window is being created. The face is needed but
7657         does not exist yet.
7658
7659 2000-11-20  Andy Piper  <andy@xemacs.org>
7660
7661         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
7662         messing with a debug environment.
7663
7664 2000-11-20  Martin Buchholz  <martin@xemacs.org>
7665
7666         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
7667
7668 2000-11-20  Martin Buchholz  <martin@xemacs.org>
7669
7670         * casetab.c (Fcase_table_p): Fix compile error and crash.
7671
7672 2000-11-18  Philip Aston  <philipa@mail.com>
7673
7674         * s/cygwin32.h: Cygwin has SVR4-like pty support.
7675
7676 2000-11-18  Martin Buchholz  <martin@xemacs.org>
7677
7678         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
7679         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
7680
7681 2000-11-17  Martin Buchholz  <martin@xemacs.org>
7682
7683         * config.h.in: Define HAVE_ELF_H if elf.h exists.
7684         * unexelf.c: Use HAVE_ELF_H.
7685         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
7686         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
7687         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
7688         Greg Harrington <greg_harrington@hotmail.com> provided a machine
7689         for testing.
7690         So this is an unexelfsgi.c from a different line of development.
7691
7692 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
7693
7694         * regex.c (RE_TR_ASCII): New function.
7695         (RE_TRANSLATE): Call it.
7696
7697 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
7698
7699         * buffer.h (TRT_TABLE_OF): Remove assert.
7700         (IN_TRT_TABLE_DOMAIN): Removed.
7701
7702 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
7703
7704         * free-hook.c (log_gcpro):
7705         (show_gcprohist): Add support for GCPRO5.
7706
7707 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
7708
7709         * emacs.c (main_1): Improve -sd error message when --pdump=no.
7710
7711 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
7712
7713         * symeval.h: Declare flush_all_buffer_local_cache.
7714
7715         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
7716         (flush_buffer_local_cache): Added.
7717         (flush_all_buffer_local_cache): Added.
7718
7719         * lrecord.h: Remove unused XD_LO_RESET_NIL.
7720
7721         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
7722         (pdump_dump_data): Ditto.
7723         (pdump_reloc_one): Ditto.
7724         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
7725         before dumping.
7726
7727
7728 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
7729
7730         * buffer.c: Remove if 0'ed entry.
7731         * buffer.h: Rewrite TRT to use char-table.
7732         * bufslots.h: Remove mirror tables.
7733         * casetab.c: Remove mirror tables.
7734         (CASE_TABLE_P): New macro.
7735         (Fcase_table_p): Element of a case table is string or char-table.
7736         (make_mirror_trt_table): Removed.
7737         (set_case_table): Setup char-table from strings for backward
7738         compatibility.
7739         * dired.c (Fdirectory_files):
7740         * dired-msw.c: (mswindows_get_files):
7741         * lisp.h: Change prototype of re_pattern_buffer.
7742         * regex.c: (RE_TRANSLATE): New macro.
7743         (TRANSLATE_P): Ditto.
7744         Change translate to type RE_TRANSLATE_TYPE.
7745         * regex.h: Define RE_TRANSLATE_TYPE
7746         * search.c (TRANSLATE): New macro.
7747         (TRANSLATE_ASCII): New macro.
7748         Translate table is changed to Lisp_Object.
7749         (signal_failure): Inhibit return.
7750
7751 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
7752
7753         * device-msw.c:
7754         * eldap.c:
7755         * event-Xt.c:
7756         * event-stream.c:
7757         * print.c:
7758         Do UNGCPRO before return.
7759
7760 2000-11-14  Martin Buchholz <martin@xemacs.org>
7761
7762         * XEmacs 21.2.37 is released.
7763
7764 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
7765
7766         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
7767         Add comments about discarded return value.
7768
7769 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
7770
7771         * callint.c:
7772         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
7773
7774 2000-10-27  Andy Piper  <andy@xemacs.org>
7775
7776         * gutter.c (Fset_default_gutter_position): default left and right
7777         gutters to visible.
7778         (calculate_gutter_size): calculate resonable heuristic for left
7779         and right gutter sizes.
7780         (specifier_vars_of_gutter): change left and right gutter sizes to
7781         autodetect.
7782         (calculate_gutter_size_from_display_lines): new function.
7783         (output_gutter): check for resizing on left and right gutters.
7784         (clear_gutter): don't special case top and left gutters.
7785         (specifier_vars_of_gutter): use new signature for
7786         set_specifier_caching.
7787
7788         * glyphs-x.c (x_redisplay_widget): spelling fix.
7789         * glyphs.c (specifier_vars_of_glyphs):
7790         * menubar.c (specifier_vars_of_menubar):
7791         * redisplay.c (specifier_vars_of_redisplay):
7792         * toolbar.c (specifier_vars_of_toolbar):
7793         * window.c (specifier_vars_of_window):
7794         * scrollbar.c (specifier_vars_of_scrollbar):
7795         (complex_vars_of_scrollbar): use new signature for
7796         set_specifier_caching.
7797
7798         * specifier.c (set_specifier_caching): include recompute flag.
7799         (recompute_one_cached_specifier_in_window): always recompute if
7800         flag set.
7801         (recompute_one_cached_specifier_in_frame): ditto.
7802
7803         * specifier.h (struct specifier_caching): add recompute flag.
7804
7805 2000-10-24  Andy Piper  <andy@xemacs.org>
7806
7807         * unexcw.c (copy_executable_and_dump_data_section): add new
7808         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
7809         5.0 happy.
7810
7811 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
7812
7813         * console-x.h (x_device): New member modifier_release_time.
7814         * event-Xt.c (x_handle_sticky_modifiers):
7815         Bound interval modifier keys are sticky.
7816         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
7817         * events.h: extern it.
7818
7819 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
7820
7821         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
7822
7823 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
7824
7825         * event-stream.c (execute_command_event): Preserve current_events
7826         and the like when event is misc-user-event.
7827         Inhibit quit during the call to maybe_echo_keys.
7828
7829 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
7830
7831         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
7832         symlink when buffer is killed.
7833         (inhibit_clash_detection): New variable.
7834
7835 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
7836
7837         * console.c (Fset_input_method): Trigger redisplay on tty.
7838
7839 2000-11-07  Martin Buchholz  <martin@xemacs.org>
7840
7841         * process.c (Fprocess_status): Revert to previous behavior:
7842         (process-status "nosuchprocess") ==> nil
7843
7844 2000-11-06  Martin Buchholz  <martin@xemacs.org>
7845
7846         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
7847         Work around another GCC 2.95.2 optimizer bug.
7848
7849 2000-11-02  Martin Buchholz  <martin@xemacs.org>
7850
7851         * process.c (Fget_process): Use LIST_LOOP_2.
7852         (kill_buffer_processes): Use LIST_LOOP_2.
7853
7854         * minibuf.c (Fall_completions):
7855         Delete old non-functional code for FSF fourth argument.
7856
7857         * frame.c (frame_matches_frame_spec):
7858         Renamed from `frame_matches_frametype'.  Update all callers.
7859         (device_matches_device_spec):
7860         Renamed from 'device_matches_console_spec'.  Update all callers.
7861
7862         * doc.c (Fsubstitute_command_keys):
7863         Remove buffer overflow crash.  Small code cleanups.
7864
7865         * casetab.c (check_case_table): Simpler code.
7866
7867         * window.c (Freplace_buffer_in_windows):
7868         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
7869         (and similar implementation) as Fdelete_windows_on.
7870         Update all callers.
7871
7872         * alloc.c (Fmake_list):
7873         * alloc.c (make_vector):
7874         * alloc.c (Fmake_vector):
7875         * alloc.c (make_bit_vector):
7876         * alloc.c (Fmake_bit_vector):
7877         * alloc.c (Fbit_vector):
7878         * alloc.c (Fmake_string):
7879         * alloc.c (Fpurecopy):
7880         * alloc.c (Fmemory_limit):
7881         * buffer.c:
7882         * buffer.c (Fget_buffer):
7883         * buffer.c (Fkill_buffer):
7884         * buffer.c (complex_vars_of_buffer):
7885         * bytecode.c (Fcompiled_function_stack_depth):
7886         * callint.c (Fprefix_numeric_value):
7887         * event-stream.c:
7888         * event-stream.c (Fread_key_sequence):
7889         * casetab.c:
7890         * casetab.c (Fcase_table_p):
7891         * casetab.c (check_case_table):
7892         * casetab.c (Fset_case_table):
7893         * casetab.c (Fset_standard_case_table):
7894         * chartab.c:
7895         * chartab.c (Fchar_table_type):
7896         * chartab.c (Freset_char_table):
7897         * chartab.c (Fget_char_table):
7898         * chartab.c (Fget_range_char_table):
7899         * chartab.c (Fput_char_table):
7900         * chartab.c (Fmap_char_table):
7901         * chartab.c (Fcategory_table_p):
7902         * chartab.c (Fcheck_category_at):
7903         * chartab.c (Fchar_in_category_p):
7904         * chartab.c (Fcategory_table):
7905         * chartab.c (Fcopy_category_table):
7906         * chartab.c (Fset_category_table):
7907         * chartab.c (Fcategory_designator_p):
7908         * chartab.c (Fcategory_table_value_p):
7909         * cmds.c (Fdelete_char):
7910         * cmds.c (Fdelete_backward_char):
7911         * cmds.c (Fself_insert_command):
7912         * cmds.c (Fself_insert_internal):
7913         * console.c (Fvalid_console_type_p):
7914         * console.c (Fcdfw_console):
7915         * console.c (Fconsole_type):
7916         * console.c (Fconsole_name):
7917         * console.c (Fconsole_device_list):
7918         * console.c (Fconsole_on_window_system_p):
7919         * data.c:
7920         * data.c (Feq):
7921         * data.c (Fold_eq):
7922         * data.c (Fsubr_interactive):
7923         * data.c (Fchar_to_int):
7924         * data.c (Fint_to_char):
7925         * data.c (Fsetcar):
7926         * data.c (Fsetcdr):
7927         * data.c (Fnumber_to_string):
7928         * data.c (Fstring_to_number):
7929         * data.c (Frem):
7930         * database.c (mark_database):
7931         * database.c (finalize_database):
7932         * database.c (Fdatabase_live_p):
7933         * database.c (Fdatabasep):
7934         * device-x.c (Fx_get_resource):
7935         * device.c (Fdfw_device):
7936         * dired.c:
7937         * dired.c (Ffile_name_completion):
7938         * dired.c (Ffile_name_all_completions):
7939         * dired.c (Fuser_name_completion):
7940         * dired.c (Fuser_name_completion_1):
7941         * dired.c (Fuser_name_all_completions):
7942         * doc.c (Fdocumentation):
7943         * doc.c (Fdocumentation_property):
7944         * doc.c (Fsubstitute_command_keys):
7945         * editfns.c:
7946         * editfns.c (Fchar_to_string):
7947         * editfns.c (Fstring_to_char):
7948         * editfns.c (Ftemp_directory):
7949         * editfns.c (Finsert_char):
7950         * editfns.c (Fbuffer_substring_no_properties):
7951         * editfns.c (Fnarrow_to_region):
7952         * editfns.c (Fchar_equal):
7953         * editfns.c (Fchar_Equal):
7954         * editfns.c (Ftranspose_regions):
7955         * emacs.c (Fdump_emacs):
7956         * eval.c (Fthrow):
7957         * eval.c (Fcommand_execute):
7958         * eval.c (Fautoload):
7959         * eval.c (Fbacktrace):
7960         * eval.c (Fbacktrace_frame):
7961         * events.c:
7962         * events.c (Fcopy_event):
7963         * events.c (Fcharacter_to_event):
7964         * events.c (Fevent_button):
7965         * events.c (Fevent_process):
7966         * extents.c:
7967         * extents.c (Fnext_extent_change):
7968         * extents.c (Fextent_property):
7969         * faces.c (Ffacep):
7970         * faces.c (Fmake_face):
7971         * file-coding.c:
7972         * file-coding.c (Fencode_shift_jis_char):
7973         * file-coding.c (Fencode_big5_char):
7974         * fileio.c (Ffile_name_directory):
7975         * fileio.c (Ffile_name_nondirectory):
7976         * fileio.c (Ffile_name_as_directory):
7977         * fileio.c (Fdirectory_file_name):
7978         * fileio.c (Ffile_truename):
7979         * fileio.c (Fsubstitute_in_file_name):
7980         * fileio.c (Ffile_modes):
7981         * fileio.c (Fset_file_modes):
7982         * fileio.c (Fset_default_file_modes):
7983         * fileio.c (Fverify_visited_file_modtime):
7984         * floatfns.c (Facos):
7985         * floatfns.c (Fasin):
7986         * floatfns.c (Fatan):
7987         * floatfns.c (Fcos):
7988         * floatfns.c (Fsin):
7989         * floatfns.c (Ftan):
7990         * floatfns.c (Fbessel_j0):
7991         * floatfns.c (Fbessel_j1):
7992         * floatfns.c (Fbessel_jn):
7993         * floatfns.c (Fbessel_y0):
7994         * floatfns.c (Fbessel_y1):
7995         * floatfns.c (Fbessel_yn):
7996         * floatfns.c (Ferf):
7997         * floatfns.c (Ferfc):
7998         * floatfns.c (Flog_gamma):
7999         * floatfns.c (Fexp):
8000         * floatfns.c (Fexpt):
8001         * floatfns.c (Flog):
8002         * floatfns.c (Flog10):
8003         * floatfns.c (Fsqrt):
8004         * floatfns.c (Fcube_root):
8005         * floatfns.c (Facosh):
8006         * floatfns.c (Fasinh):
8007         * floatfns.c (Fatanh):
8008         * floatfns.c (Fcosh):
8009         * floatfns.c (Fsinh):
8010         * floatfns.c (Ftanh):
8011         * floatfns.c (Fabs):
8012         * floatfns.c (Ffloat):
8013         * floatfns.c (Flogb):
8014         * floatfns.c (Fceiling):
8015         * floatfns.c (Ffloor):
8016         * floatfns.c (Fround):
8017         * floatfns.c (Ftruncate):
8018         * floatfns.c (Ffceiling):
8019         * floatfns.c (Fffloor):
8020         * floatfns.c (Ffround):
8021         * floatfns.c (Fftruncate):
8022         * fns.c (Fstring_equal):
8023         * fns.c (Fstring_lessp):
8024         * fns.c (concat2):
8025         * fns.c (concat3):
8026         * fns.c (vconcat2):
8027         * fns.c (vconcat3):
8028         * fns.c (Fsubstring):
8029         * fns.c (Fassoc):
8030         * fns.c (Fold_assoc):
8031         * fns.c (assoc_no_quit):
8032         * fns.c (Fassq):
8033         * fns.c (Fold_assq):
8034         * fns.c (assq_no_quit):
8035         * fns.c (Frassoc):
8036         * fns.c (Fold_rassoc):
8037         * fns.c (Frassq):
8038         * fns.c (Fold_rassq):
8039         * fns.c (rassq_no_quit):
8040         * fns.c (Fremassoc):
8041         * fns.c (remassoc_no_quit):
8042         * fns.c (Fremassq):
8043         * fns.c (remassq_no_quit):
8044         * fns.c (Fremrassoc):
8045         * fns.c (Fremrassq):
8046         * fns.c (remrassq_no_quit):
8047         * fns.c (Fsort):
8048         * fns.c (Fplist_get):
8049         * fns.c (Fplist_put):
8050         * fns.c (Fplist_remprop):
8051         * fns.c (Fplist_member):
8052         * fns.c (Flax_plist_get):
8053         * fns.c (Flax_plist_put):
8054         * fns.c (Flax_plist_remprop):
8055         * fns.c (Flax_plist_member):
8056         * fns.c (Fequal):
8057         * fns.c (Fold_equal):
8058         * fns.c (Frequire):
8059         * fns.c (Fbase64_encode_region):
8060         * fns.c (Fbase64_encode_string):
8061         * fns.c (Fbase64_decode_region):
8062         * frame.c:
8063         * frame.c (frame_matches_frame_spec):
8064         * frame.c (device_matches_device_spec):
8065         * frame.c (next_frame):
8066         * frame.c (previous_frame):
8067         * frame.c (Fnext_frame):
8068         * frame.c (Fprevious_frame):
8069         * frame.c (Fframe_property):
8070         * frame.c (Fset_frame_height):
8071         * frame.c (Fset_frame_size):
8072         * frame.h:
8073         * glyphs.c:
8074         * glyphs.c (if):
8075         * glyphs.c (decode_error_behavior_flag):
8076         * glyphs.c (Fmake_image_instance):
8077         * indent.c (Findent_to):
8078         * intl.c (Fignore_defer_gettext):
8079         * keymap.c (Fkeymapp):
8080         * keymap.c (Flookup_key):
8081         * lread.c:
8082         * lread.c (Fload_internal):
8083         * lread.c (Feval_buffer):
8084         * lread.c (Feval_region):
8085         * macros.c (Fexecute_kbd_macro):
8086         * marker.c (set_marker_internal):
8087         * marker.c (Fset_marker):
8088         * marker.c (set_marker_restricted):
8089         * marker.c (Fcopy_marker):
8090         * marker.c (noseeum_copy_marker):
8091         * menubar.c:
8092         * menubar.c (Fpopup_menu):
8093         * minibuf.c:
8094         * mule-charset.c (Fcharset_name):
8095         * mule-charset.c (Fchar_charset):
8096         * mule-charset.c (Fchar_octet):
8097         * mule-charset.c (Fsplit_char):
8098         * mule-wnnfns.c (Fwnn_open):
8099         * mule-wnnfns.c (Fwnn_dict_comment):
8100         * mule-wnnfns.c (Fwnn_quit_henkan):
8101         * mule-wnnfns.c (Fwnn_word_toroku):
8102         * mule-wnnfns.c (Fwnn_word_sakujo):
8103         * mule-wnnfns.c (Fwnn_word_use):
8104         * mule-wnnfns.c (Fwnn_hindo_set):
8105         * objects.c:
8106         * objects.c (Fmake_color_instance):
8107         * objects.c (Fmake_font_instance):
8108         * print.c (Fwrite_char):
8109         * process.c:
8110         * process.c (mark_process):
8111         * process.c (print_process):
8112         * process.c (get_process_from_usid):
8113         * process.c (Fprocessp):
8114         * process.c (Fprocess_live_p):
8115         * process.c (Fget_process):
8116         * process.c (Fget_buffer_process):
8117         * process.c (get_process):
8118         * process.c (Fprocess_id):
8119         * process.c (Fprocess_name):
8120         * process.c (Fprocess_command):
8121         * process.c (init_process_io_handles):
8122         * process.c (start_process_unwind):
8123         * process.c (Fstart_process_internal):
8124         * process.c (Fopen_multicast_group_internal):
8125         * process.c (Fset_process_window_size):
8126         * process.c (read_process_output):
8127         * process.c (send_process):
8128         * process.c (Fprocess_tty_name):
8129         * process.c (Fset_process_buffer):
8130         * process.c (Fprocess_buffer):
8131         * process.c (Fprocess_mark):
8132         * process.c (set_process_filter):
8133         * process.c (Fset_process_filter):
8134         * process.c (Fprocess_filter):
8135         * process.c (Fprocess_send_region):
8136         * process.c (Fprocess_send_string):
8137         * process.c (exec_sentinel):
8138         * process.c (Fset_process_sentinel):
8139         * process.c (Fprocess_sentinel):
8140         * process.c (status_notify):
8141         * process.c (Fprocess_status):
8142         * process.c (Fprocess_exit_status):
8143         * process.c (process_send_signal):
8144         * process.c (Fprocess_send_eof):
8145         * process.c (deactivate_process):
8146         * process.c (remove_process):
8147         * process.c (Fdelete_process):
8148         * process.c (kill_buffer_processes):
8149         * process.c (Fprocess_kill_without_query):
8150         * process.c (Fprocess_kill_without_query_p):
8151         * rangetab.c:
8152         * rangetab.c (Fget_range_table):
8153         * rangetab.c (Fput_range_table):
8154         * rangetab.c (Fremove_range_table):
8155         * rangetab.c (Fclear_range_table):
8156         * search.c:
8157         * search.c (Fskip_chars_forward):
8158         * search.c (Fskip_chars_backward):
8159         * search.c (Fskip_syntax_forward):
8160         * search.c (Fskip_syntax_backward):
8161         * search.c (search_command):
8162         * search.c (Freplace_match):
8163         * search.c (Fregexp_quote):
8164         * select.c (Fown_selection_internal):
8165         * select.c (Fselection_owner_p):
8166         * select.c (Fselection_exists_p):
8167         * select.c (Fget_selection_internal):
8168         * specifier.c:
8169         * symbols.c:
8170         * symbols.c (Fintern):
8171         * symbols.c (Fintern_soft):
8172         * symbols.c (Funintern):
8173         * symbols.c (Fapropos_internal):
8174         * symbols.c (Fset_default):
8175         * syntax.c:
8176         * syntax.c (Fsyntax_table_p):
8177         * syntax.c (Fcopy_syntax_table):
8178         * syntax.c (Fset_syntax_table):
8179         * syntax.c (Fchar_syntax):
8180         * syntax.c (syntax_match):
8181         * syntax.c (Fmatching_paren):
8182         * syntax.c (Fforward_word):
8183         * syntax.c (scan_lists):
8184         * syntax.c (Fscan_lists):
8185         * syntax.c (Fscan_sexps):
8186         * syntax.c (Fparse_partial_sexp):
8187         * toolbar.c (Fcheck_toolbar_button_syntax):
8188         * tooltalk.doc:
8189         * window.c:
8190         * window.c (Fwindowp):
8191         * window.c (Fwindow_live_p):
8192         * window.c (Fwindow_point):
8193         * window.c (Fdelete_window):
8194         * window.c (Fnext_window):
8195         * window.c (Fprevious_window):
8196         * window.c (Fother_window):
8197         * window.c (window_loop):
8198         * window.c (Fget_lru_window):
8199         * window.c (Fsplit_window):
8200         * window.c (Fenlarge_window):
8201         * window.c (Fenlarge_window_pixels):
8202         * window.c (Fshrink_window):
8203         * window.c (Fshrink_window_pixels):
8204         * window.c (change_window_height):
8205         * window.c (Fwindow_configuration_p):
8206         * window.c (Fcurrent_window_configuration):
8207         * window.h:
8208         * casefiddle.c (casify_object):
8209         * casefiddle.c (Fupcase):
8210         * casefiddle.c (Fdowncase):
8211         * casefiddle.c (Fcapitalize):
8212         * casefiddle.c (Fupcase_initials):
8213         * casefiddle.c (casify_region_internal):
8214         * casefiddle.c (casify_region):
8215         * casefiddle.c (Fupcase_region):
8216         * casefiddle.c (Fdowncase_region):
8217         * casefiddle.c (Fcapitalize_region):
8218         * casefiddle.c (Fupcase_initials_region):
8219         * casefiddle.c (Fupcase_word):
8220         * casefiddle.c (Fdowncase_word):
8221         * casefiddle.c (Fcapitalize_word):
8222         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
8223         Replace 0 with '\0' when working with bytes.
8224         Replace initial "(" with "\(" in docstrings.
8225
8226 2000-11-01  Martin Buchholz  <martin@xemacs.org>
8227
8228         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
8229
8230         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
8231
8232 2000-10-31  Martin Buchholz  <martin@xemacs.org>
8233
8234         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
8235
8236 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
8237
8238         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
8239         correctly.
8240
8241 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
8242
8243         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
8244         (inhibit_auto_save_session): New variable.
8245         (vars_of_fileio): Declare and initialize them.
8246         * fileio.c (Fdo_auto_save): Don't create session file if
8247         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
8248
8249 2000-10-31  Martin Buchholz  <martin@xemacs.org>
8250
8251         * sgiplay.c (play_internal): C++ compilability.
8252         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
8253         * callproc.c (Fold_call_process_internal):
8254         Remove unused vars `env', `first'.
8255         * scrollbar.c (update_scrollbar_instance):
8256         #### unused var `current_window'.
8257         * redisplay-tty.c: Put currently unused vars insert_mode_on,
8258         etc. within #ifdef NOT_YET.
8259         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
8260         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
8261         * specifier.c (specifier_instance):
8262         #### unused var `tag'.
8263         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
8264
8265 2000-10-27  Martin Buchholz  <martin@xemacs.org>
8266
8267         * fns.c (Fbutlast):
8268         * fns.c (list_sort):
8269         * fns.c (Ffillarray):
8270         * fns.c (bytecode_nconc2):
8271         * fns.c (Fnconc):
8272         * fns.c (mapcar1):
8273         * fns.c (Fmapconcat):
8274         Be pedantically 64-bit correct.  For the time when someone will
8275         want to have a list with length > 2**32.
8276
8277         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
8278         Work around MIPSpro compiler bug.
8279
8280         * process-unix.c (unix_kill_child_process): Add snarky comment.
8281         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
8282
8283         * config.h.in: Oops, _getpt ==> _getpty
8284
8285 2000-10-26  Martin Buchholz  <martin@xemacs.org>
8286
8287         * config.h.in:
8288         * regex.c:
8289         Use void*, not char*, as return type of alloca().
8290
8291         * alloc.c (free_marker): Side effect inside assert expression!
8292
8293 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
8294
8295         * mule-charset.c (Fset_charset_ccl_program): To check
8296         if the given ccl program is valid, use setup_ccl_program()
8297         instead of CHECK_VECTOR().
8298         (Fmake_charset): Likewise.
8299
8300 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
8301
8302         * faces.c (get_extent_fragment_face_cache_index):
8303         Fix cachel.merged_faces memory leak.
8304
8305 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
8306
8307         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
8308         Reset MSB of octets obtained by DECODE_SJIS
8309         because of the incompatibility with Emacs.
8310         (ccl_driver)<CCL_ENCODE_SJIS>:
8311         Set MSB of octets before passing them to
8312         ENCODE_SJIS because of the incompatibility
8313         with Emacs.
8314
8315 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
8316
8317         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
8318         (DECLARE_LRECORD): Undo the last change.
8319         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
8320
8321 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
8322
8323         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
8324         the implementation to lrecord_implementations_table.
8325
8326 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
8327
8328         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
8329         initial value of `lrecord_type_##c_name' and
8330         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
8331         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
8332         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
8333         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
8334         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
8335
8336 2000-10-17  Martin Buchholz  <martin@xemacs.org>
8337
8338         * miscplay.c (sndcnv8S_2mono):
8339         (sndcnv2monounsigned):
8340         (sndcnvULaw_2linear):
8341         (sndcnv16swap):
8342         Remove implementation-defined behavior.
8343
8344 2000-10-12  Martin Buchholz  <martin@xemacs.org>
8345
8346         * input-method-xlib.c: Warning suppression.
8347
8348 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
8349
8350         * mule-ccl.c: Sync up with Emacs 21.0.90.
8351         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
8352         Do nothing.
8353         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
8354         Likewise.
8355         (ccl_driver[WriteMultibyteChar2]): Bug fix.
8356         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
8357         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
8358         leading char belongs to official 2-dimensional charset.
8359         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
8360         write the given character as is.  Otherwise,
8361         if it is a multibyte char, convert it by
8362         non_ascii_set_charptr_emchar, then write it.
8363         (CCL_WRITE_STRING): Likewise.
8364         (ccl_get_compiled_code): New function.
8365         (setup_ccl_program): When ccl_prog is invalid,
8366         return -1.
8367         (Fregister_code_conversion_map): New function.
8368         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
8369
8370         * mule-ccl.h: Sync up with Emacs 21.0.90.
8371         (Fregister_ccl_program): export it.
8372
8373         * redisplay-msw.c (separate_textual_runs):
8374         If ccl program is not valid, don't do ccl conversion.
8375
8376         * redisplay-x.c (separate_textual_runs): Ditto.
8377
8378         * file-coding.c (Fmake_coding_system):
8379         When type is ccl and value is vector, register it
8380         with a proper symbol.  And checks whether the
8381         given ccl program is valid.
8382         (mule_decode): When calling ccl_driver, if src indicates
8383         NULL pointer, set an empty string instead.
8384         (mule_encode): Likewise.
8385
8386 2000-10-11  Martin Buchholz  <martin@xemacs.org>
8387
8388         The following large batch of changes gets us back to a state of
8389         C++ compilability.  Extbyte is now a char, which means that
8390         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
8391
8392         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
8393
8394         * sound.c (Fplay_sound): Type correctness.
8395
8396         * select-x.c (hack_motif_clipboard_selection): Type correctness.
8397         (x_get_window_property): Type correctness.
8398         (receive_incremental_selection): unsigned char ==> Extbyte
8399         (selection_data_to_lisp_data): unsigned char ==> Extbyte
8400         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
8401         (Fx_store_cutbuffer_internal): Type correctness.
8402
8403         * process-unix.c (try_to_initialize_subtty): Type correctness.
8404
8405         * objects-x.c (x_print_color_instance): Type correctness.
8406         (x_print_font_instance): Type correctness.
8407         (x_list_fonts): SExtbyte ==> Extbyte.
8408         (valid_x_font_name_p): SExtbyte ==> Extbyte.
8409         (x_find_charset_font): SExtbyte ==> Extbyte.
8410         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
8411         (truename_via_XListFonts): SExtbyte ==> Extbyte.
8412         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
8413         Use bufbyte_strcmp.
8414
8415         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
8416         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
8417         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
8418         (BYTE_C0_P): Use bit ops for char-signedness safety.
8419         (BYTE_C1_P): Use bit ops for char-signedness safety.
8420         (CHARSET_BY_LEADING_BYTE):
8421         (CHARSET_BY_ATTRIBUTES):
8422         Always use inline function.
8423         Use type_checking_assert.
8424         Hide chlook.
8425
8426         * mule-charset.c (non_ascii_charptr_copy_char):
8427         Modify to work with both ASCII and non-ASCII characters.
8428         Improve docs and variable names.
8429         Replace over-clever fall-through switch with a simple loop.
8430         (Lstream_get_emchar_1):
8431         Replace over-clever fall-through switch with a simple loop.
8432
8433         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
8434         Warning suppression.
8435
8436         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
8437         the return value of Lstream_getc, which could be EOF as well.
8438
8439         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
8440
8441         * lisp.h: Make Extbyte a char, not unsigned char, so that external
8442         APIs can be used on Extbytes without casts.  Risky!
8443         (SExtbyte): Remove.
8444         (UExtbyte): Remove.
8445
8446         * input-method-xlib.c (XIM_init_device):
8447         Use Xlib.h instead of IntrinsicP.h.
8448         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
8449         which will break in X11R7.
8450         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
8451         to call XRegisterIMInstantiateCallback with correct types.
8452
8453         * gui-x.c (button_item_to_widget_value): Type correctness.
8454
8455         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
8456
8457         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
8458         (xbm_instantiate_1): Type correctness.
8459         (BUILD_GLYPH_INST):  Type correctness.
8460
8461         * fileio.c (Fsubstitute_in_file_name): Type correctness.
8462
8463         * file-coding.c:
8464         (decode_coding_sjis):
8465         (decode_coding_big5):
8466         (decode_coding_ucs4):
8467         (decode_coding_utf8):
8468         (decode_coding_iso2022):
8469         (decode_coding_no_conversion):
8470         Make all decoding functions take an Extbyte * arg.
8471         (encode_coding_sjis):
8472         (encode_coding_big5):
8473         (encode_coding_ucs4):
8474         (encode_coding_utf8):
8475         (encode_coding_iso2022):
8476         (encode_coding_no_conversion):
8477         Make all encoding functions take a Bufbyte * arg.
8478         Use size_t instead of unsigned int for memory sizes.
8479         Only cast to unsigned char whenever dereferencing Extbyte *.
8480
8481         * doc.c (unparesseuxify_doc_string): Type correctness.
8482
8483         * console-x.c (split_up_display_spec):
8484         Rewrite without using details of internal string representation.
8485         (x_semi_canonicalize_device_connection): Type correctness.
8486
8487         * config.h.in:
8488         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
8489         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
8490         (HAVE_XFREE386): Removed.
8491
8492         * buffer.h (DEC_CHARPTR): `const' correctness.
8493         (bufbyte_strcmp): New.
8494         (bufbyte_memcmp): New.
8495
8496         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
8497
8498         * buffer.h (XCHAR_OR_CHAR_INT):
8499         Always use inline function.
8500         Remove redundant type checking assert() - XINT will abort quite nicely.
8501
8502 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
8503
8504         * search.c (Freplace_match): Set newtext to an empty string.
8505
8506 2000-10-10  Martin Buchholz  <martin@xemacs.org>
8507
8508         * s/decosf1-3.h: Remove #include of stropts.h
8509         * s/ptx.h: Remove #include of stropts.h
8510         * s/usg5-4.h: Remove #include of stropts.h
8511         * sysproc.h:
8512         * config.h.in:
8513         Use stropts.h, not sys/stropts.h.
8514         Use strtio.h, not sys/strtio.h.
8515
8516 2000-10-04  Martin Buchholz <martin@xemacs.org>
8517
8518         * XEmacs 21.2.36 is released.
8519
8520 2000-09-21  Andy Piper  <andy@xemacs.org>
8521
8522         * glyphs-x.c (x_redisplay_widget): make sure non-structural
8523         changes still involve copying the widget tree.
8524         (update_widget_face): make sure a change is register in the widget
8525         tree. Call update_tab_widget_face appropriately.
8526         (update_tab_widget_face): ditto.
8527         (x_tab_control_redisplay): make sure non-structural changes still
8528         involve copying the widget tree.
8529
8530 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
8531
8532         * lread.c (locate_file): Check the path element is non-nil.
8533
8534 2000-10-02  Martin Buchholz  <martin@xemacs.org>
8535
8536         * lisp.h: Warning suppression for SCO compilers.
8537
8538         * redisplay-tty.c (reset_tty_modes): Fix crash.
8539         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
8540
8541 2000-09-27  Martin Buchholz  <martin@xemacs.org>
8542
8543         Big signal/process handling overhaul.  Bugs fixed:
8544         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
8545         M-x comint-kill-subjob should work for both values nil and t of
8546         process-connection-type. It was broken on most platforms.
8547         Testing on Irix and Cygwin still needed.  Other plaforms tested.
8548         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
8549         * process-unix.c: Signal/Process handling overhaul.
8550         (pty_name): make 64 bytes, as `expect' does, for paranoia.
8551         (allocate_pty): Use all available modern methods of allocating
8552         ptys, falling back to old style BSD allocation as a last resort.
8553         Use allegedly more secure Unix98 pty allocation by default.
8554         (allocate_pty_the_old_fashioned_way): New. the last resort.
8555         (unix_create_process): Push ptem, ldterm, ttcompat where
8556         available.  Autoconfiscate.
8557         (try_to_initialize_subtty): New.
8558         (unix_kill_child_process): Proper signal handling for ptys on most
8559         platforms, using special knowledge of AIX, BSD, etc...
8560         (unix_create_process): Always disconnect_controlling_terminal() for
8561         subprocesses, whether using ptys or not.
8562         * process.h: Remove old getpt-dependent PTY code.
8563         * process.c (Fprocess_send_signal): New, obvious generic function.
8564         (decode_signal): New.
8565         (Finterrupt_process):
8566         (Fkill_process):
8567         (Fquit_process):
8568         (Fstop_process):
8569         (Fcontinue_process):
8570         (Fsignal_process): Use decode_signal.
8571         (process_send_signal):
8572         Many docstring corrections.
8573         Allow any signal to be sent to a process object.
8574         * config.h.in: Add symbols for big signal/process overhaul.
8575         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
8576         * sysproc.h: Include process-related headers, where available:
8577         sys/stropts.h sys/strtio.h pty.h libutil.h
8578         * s/irix4-0.h:
8579         * s/irix5-0.h:
8580         * s/cygwin32.h:
8581         * s/gnu.h:
8582         * s/linux.h:
8583         * s/hpux.h:
8584         * s/aix3-1.h:
8585         Remove old S&M pty stuff.
8586         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
8587         * systty.h: Simplify cpp hackery, improve comments.
8588         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
8589
8590         * editfns.c (Fformat_time_string):
8591         Be a little more paranoid with the return value of ctime.
8592
8593         * fileio.c (check_executable):
8594         (check_writable):
8595         Use symbolic constants X_OK, W_OK.
8596
8597         * console-x.c (split_up_display_spec): Fix a warning.
8598
8599 2000-10-02  Martin Buchholz  <martin@xemacs.org>
8600
8601         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
8602         * ntproc.c (sys_spawnve): make_string ==> build_string
8603         Small clarity improvements.
8604
8605 2000-09-30  Martin Buchholz  <martin@xemacs.org>
8606
8607         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
8608
8609         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
8610
8611         * config.h.in (HAVE_STRCASECMP): Remove.
8612
8613 2000-09-29  Martin Buchholz  <martin@xemacs.org>
8614
8615         * redisplay-output.c (redisplay_output_pixmap):
8616         Cleaner and possibly more 64-bit correct code.
8617
8618 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
8619
8620         * dumper.c (pdump_load_finish): move restoration of
8621         `noninteractive1' to emacs.c (main_1).
8622         * emacs.c (main_1): protect LISP-visible command-line flags
8623         from pdump_load().
8624
8625 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
8626
8627         * Makefile.in.in (versionclean):  Use EXE_TARGET and
8628         DUMP_TARGET instead of literal program names.
8629
8630 2000-09-20  Martin Buchholz  <martin@xemacs.org>
8631
8632         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
8633
8634 2000-09-19  Martin Buchholz  <martin@xemacs.org>
8635
8636         * *: Spelling mega-patch
8637
8638 2000-09-19  Martin Buchholz  <martin@xemacs.org>
8639
8640         * fns.c (bad_bad_turtle):
8641         Delete "Eek!" comment, since we fixed the bug to which it refers.
8642
8643 2000-09-16  Martin Buchholz  <martin@xemacs.org>
8644
8645         * alloca.c: Replace REGISTER with register.
8646
8647 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
8648
8649         * file-coding.c (ucs_to_char): Use countof.
8650
8651 2000-09-16  Martin Buchholz  <martin@xemacs.org>
8652
8653         * file-coding.c: (ucs_to_char):
8654         (complex_vars_of_file_coding):
8655         Use countof instead of sizeof.
8656         Use CHECK_NATNUM instead of CHECK_INT.
8657
8658         * sysdep.c (strcasecmp): Remove.
8659         * device-x.c (ascii_strcasecmp): New.
8660         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
8661         Avoid using non-standard non-portable strcasecmp.
8662
8663 2000-09-16  Martin Buchholz  <martin@xemacs.org>
8664
8665         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
8666         * font-lock.c: remove reference to emacsfns.h.
8667         * search.c: small doc improvement.
8668         * event-Xt.c: correct file names in comments.
8669         * console-x.h Correct file names in comments.
8670         * frame.c: Correct file names in comments.
8671         * event-stream.c: remove Energize from comments.
8672
8673 2000-09-15  Martin Buchholz  <martin@xemacs.org>
8674
8675         * symeval.h (DEFERROR_STANDARD):
8676         (DEFERROR):
8677         (DEFSYMBOL):
8678         (DEFSYMBOL_NO_DUMP):
8679         (DEFSYMBOL_MULTIWORD_PREDICATE):
8680         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
8681         (DEFKEYWORD):
8682         The construct &##name is not sensible C.
8683         Fixes compilation errors with Unixware native compiler.
8684
8685 2000-09-14  Martin Buchholz  <martin@xemacs.org>
8686
8687         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
8688         (next_frame_internal): Removed.  We now just have next_frame.
8689         (next_frame):
8690         Write a simpler and cleaner one-pass algorithm.
8691         Remove called_from_delete_device arg and #ifdefed-out code.
8692         (previous_frame):
8693         Renamed from prev_frame.  Update callers.
8694         Cleaned up to have an analogous implementation to next_frame.
8695         (other_visible_frames_internal): Remove the
8696         called_from_delete_device bogus arg, and hence, remove this
8697         function.  Just use other_visible_frames().
8698
8699         * window.c (Fnext_window):
8700         Prettify docstring.
8701         Since next_frame() is guaranteed to return a frame, remove check
8702         for nil inserted in previous patch.
8703         (Fprevious_window):
8704         Prettify docstring.
8705         Make code look more like Fnext_window.
8706         (window_loop):
8707         Respect the `console' arg when iterating through windows.
8708         Fixes bug: (get-buffer-window buffer t device) not respecting
8709         the `device' arg.
8710         This function needs more work, as others have pointed out.
8711
8712         * frame.h: Rename prev_frame to previous_frame.
8713         device_matches_console_spec no longer takes a `frame' arg.
8714
8715         * s/gnu.h:
8716         * s/linux.h:
8717         * s/hpux.h:
8718         Use EMACS_BLOCK_SIGNAL instead of sigblock.
8719         From "Golubev I. N." <gin@mo.msk.ru>.
8720
8721         * make-src-depend: Fix typo.
8722
8723 2000-09-13  Martin Buchholz  <martin@xemacs.org>
8724
8725         * window.c (Fnext_window):
8726         next_frame() might return nil, not a frame.
8727         Fixes this crash:
8728         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
8729
8730         * frame.c (next_frame_internal):
8731         We've passed a frame if we've passed its device.
8732         Fixes this crash:
8733         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
8734 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
8735
8736 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
8737
8738         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
8739         Allow option to suppress accelerators in menu/dialog items.
8740         (populate_or_checksum_helper): Pass dialog title through above.
8741
8742 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
8743
8744         * event-msw.c (mswindows_key_to_emacs_keysym):
8745         Add "pause" key, fix "menu" key.
8746
8747 2000-09-09  Martin Buchholz  <martin@xemacs.org>
8748
8749         * eval.c (reinit_vars_of_eval):
8750         Increase max_lisp_eval_depth to 1000,
8751         required for thai-xtis.el to byte-compile under some circumstances.
8752
8753 2000-09-04  Martin Buchholz  <martin@xemacs.org>
8754
8755         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
8756         From Kenichi Handa.
8757
8758 2000-09-01  Martin Buchholz  <martin@xemacs.org>
8759
8760         * make-src-depend: Make the generated Makefiles smaller.
8761
8762         * s/hpux.h (SETUP_SLAVE_PTY):
8763         Provide a %d in the format string for the errno argument.
8764
8765         * editfns.c (Ftemp_directory):
8766         Warning fix.
8767         Avoid buffer overrun on very long file name.
8768
8769         * input-method-xlib.c (XIM_init_device):
8770         6th parameter of XRegisterIMInstantiateCallback has different
8771         pointer types on different OSes, so simply cast to (void *).
8772
8773         * unexhp9k800.c: Warning fixes.  Fiddly changes.
8774
8775         * sysdll.c (dll_open):
8776         shl_load will hang hard if passed a NULL filename.
8777         Simply return NULL for compatibility with dlopen.
8778         * sysdll.c: Conform to XEmacs coding standards.
8779
8780         * sysdep.c (get_pty_max_bytes):
8781         Support pty input lines longer than 512 bytes on HP-UX 10.20.
8782
8783 2000-08-31  Martin Buchholz  <martin@xemacs.org>
8784
8785         * tooltalk.c: Add #include <syssignal.h>
8786
8787 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
8788
8789         * s/hpux.h: Don't use undefined function sigunblock().
8790
8791 2000-08-31  Martin Buchholz  <martin@xemacs.org>
8792
8793         * config.h.in: Add HAVE_BALLOON_HELP.
8794         * emacs.c: Use HAVE_BALLOON_HELP.
8795         * Makefile.in.in (x_objs):
8796         Make Balloon Help conditional on finding shape.h.
8797
8798 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
8799
8800         * syntax.c (regex_emacs_buffer_p): New variable.
8801         * syntax.h (regex_emacs_buffer_p): extern.
8802         * search.c (looking_at_1):
8803         (string_match_1):
8804         (fast_string_match):
8805         (search_buffer): Set regex_emacs_buffer_p.
8806         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
8807         when before_dot, at_dot, after_dot.
8808
8809 2000-08-23  Andy Piper  <andy@xemacs.org>
8810
8811         * gui-x.c (popup_selection_callback): Only set action_occurred
8812         when we really have an image instance.
8813         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
8814
8815 2000-08-23  Andy Piper  <andy@xemacs.org>
8816
8817         * gui-msw.c (mswindows_handle_gui_wm_command): set
8818         action_occurred.
8819         * gui-x.c (popup_selection_callback): ditto.
8820
8821         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
8822         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
8823         (struct Lisp_Image_Instance): add action_occurred flag.
8824
8825         * glyphs.c (redisplay_subwindow): use action_occurred flag.
8826         (image_instance_changed): ditto.
8827         (reset_frame_subwindow_instance_cache): only unmap windows - do
8828         not remove them from the cache also.
8829
8830         * glyphs-widget.c (tab_control_update): better debug.
8831         (progress_gauge_update): ditto.
8832         (layout_update): ditto.
8833         (layout_instantiate): ditto.
8834         (tab_control_order_only_changed): cope with null pending items.
8835
8836         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
8837         debug. Force selection of an item when an action occurred. Cope
8838         with null pending_items.
8839         (mswindows_progress_gauge_redisplay): better debug.
8840         * glyphs-x.c (x_tab_control_redisplay): ditto.
8841
8842         * redisplay.c (redisplay_frame): reset the frame cache if the
8843         frame is garbaged.
8844
8845         * window.c (Fset_window_configuration): potentially re-enable
8846         frame cache reset.
8847         (window_unmap_subwindows): need to finalize instances here since
8848         it is only used in mark_window_as_deleted.
8849
8850 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
8851
8852         * nas.c (SndOpenDataForReading):
8853         nas.c (WaveOpenDataForReading):
8854         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
8855         Somehow escaped from the 2000-08-14 patch.
8856
8857 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
8858
8859         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
8860         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
8861
8862 2000-08-21  Andy Piper  <andy@xemacs.org>
8863
8864         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
8865         window if it is not already displayed.
8866
8867         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
8868         it is not already displayed.
8869
8870         * window.c (Fset_window_configuration): don't reset the frame
8871         cache.
8872
8873         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
8874         instances from the frame cache if we are actually finalizing them.
8875         (reset_frame_subwindow_instance_cache): reset frame cache only
8876         after unmapping everything.
8877         (map_subwindow): set displayed flag after mapping.
8878
8879 2000-08-21  Martin Buchholz  <martin@xemacs.org>
8880
8881         * data.c (indirect_function):
8882         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
8883
8884         * eval.c (function_argcount):
8885         Use original function when signaling errors.
8886
8887 2000-08-18  Andy Piper  <andy@xemacs.org>
8888
8889         * frame.c (delete_frame_internal): use new
8890         free_frame_subwindow_instances name.
8891
8892         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
8893         (add_tab_item): make return type correct.
8894         (mswindows_tab_control_instantiate): assert index of tab.
8895         (mswindows_tab_control_redisplay): Re-code to use
8896         gui_item_equal_sans_selected and gui_item_list_find_selected.
8897
8898         * glyphs-widget.c (tab_control_update): Correct comment.
8899
8900         * window.c (window_unmap_subwindows): use new
8901         unmap_subwindow_instance_cache_mapper.
8902         (window_unmap_subwindows_cache_mapper): deleted.
8903         (Fset_window_configuration): comparisons should now be with
8904         EQ. Preserve the subwindow instance cache across configuration
8905         changes.
8906         (allocate_window): ditto.
8907         (make_dummy_parent): ditto.
8908
8909         * glyphs.c (free_frame_subwindow_instances): rename from
8910         free_frame_subwindow_instance_cache. finalize all instances rather
8911         than just those in the display cache.
8912         (finalize_all_subwindow_instances): walk windows unmapping and
8913         finalizing subwindows.
8914         (unmap_subwindow_instance_cache_mapper): moved from
8915         window.c. Allow finalization as well as unmapping.
8916
8917         * gui.c (gui_item_list_find_selected): new function.
8918
8919         * gui.h (gui_item_list_find_selected): declare.
8920
8921         * glyphs-x.c (x_tab_control_redisplay): pick tab
8922         explicitly. Re-code to use gui_item_equal_sans_selected and
8923         gui_item_list_find_selected.
8924
8925         * glyphs-x.h: add lwlib-utils.h
8926
8927         * buffer.c (Frecord_buffer): undo previous change.
8928
8929 2000-08-09  Vin Shelton  <acs@xemacs.org>
8930
8931         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
8932         possible.  Create temporary files more securely.  The patch was
8933         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
8934         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
8935         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
8936         for details.
8937
8938 2000-08-07  Ben Wing  <ben@xemacs.org>
8939
8940         * getloadavg.c: remove duplicate (and windows-breaking)
8941         includes of fcntl.h and sys/file.h.
8942
8943         * nt.c: remove duplicate getloadavg() definition.
8944
8945         * sysdll.h (Qdll_filename_encoding): add missing stand-in
8946         encodings.
8947
8948 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
8949
8950         * eval.c (function_argcount): If function needs to be autoloaded
8951         actually use the loaded definition.
8952         GCPRO function.
8953
8954 2000-08-05  Ben Wing  <ben@xemacs.org>
8955
8956         * getloadavg.c: add prototype for getloadavg().  remove
8957         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
8958         of the code).  remove duplicate header includes.
8959
8960         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
8961
8962         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
8963         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
8964         useful load average.
8965
8966         * alloc.c (reinit_alloc_once_early): removed references to
8967         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
8968         the lisp vars are the only things referencing the malloc_sbrk_*
8969         vars, and they were already if 0'd out.  these vars only exist
8970         in the older malloc.c, which is basically unused, and they're
8971         only for informational purposes.
8972
8973         * m\*.h: removed useless VIRT_ADDR_VARIES.
8974
8975         * m\powerpc.h: removed stray NO_ARG_ARRAY.
8976
8977 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
8978
8979         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
8980         color if the image is a mono pixmap.
8981
8982 2000-07-30  Ben Wing  <ben@xemacs.org>
8983
8984         * Makefile.in.in (release):
8985         Remove stray @.
8986
8987         * buffer.c (directory_is_current_directory):
8988         * dired-msw.c (mswindows_get_files):
8989         * dired.c:
8990         * dired.c (Fdirectory_files):
8991         * dired.c (file_name_completion_stat):
8992         * dired.c (Ffile_attributes):
8993         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
8994         preprocessor tricks, to avoid problems on some machines
8995         (e.g. SCO).
8996
8997         * callproc.c (egetenv): GC docs.
8998
8999         * console-msw.h:
9000         * console-msw.h (struct mswindows_dialog_id):
9001         * lrecord.h (lrecord_type):
9002         New object for use with MSW dialogs.
9003
9004         * console.h (struct console_methods):
9005         New enable/disable frame methods, for proper modal dialogs.
9006
9007         * device-msw.c (msprinter_default_printer): Fix to follow
9008         proper Mule conventions.
9009
9010         * device-msw.c:
9011         * device-msw.c (signal_open_printer_error):
9012         * device-msw.c (msprinter_init_device):
9013         * device-msw.c (ensure_not_printing):
9014         * device-msw.c (plist_get_margin):
9015         * device-msw.c (Fmsprinter_select_settings):
9016         * device-msw.c (finalize_devmode):
9017         * device-msw.c (Fmsprinter_settings_despecialize):
9018         * device-msw.c (signal_enum_priner_error):
9019         * extents.c (decode_extent):
9020         * extents.c (decode_map_extents_flags):
9021         * extents.c (decode_extent_at_flag):
9022         * extents.c (Fextent_at):
9023         * extents.c (Fextents_at):
9024         * extents.c (symbol_to_glyph_layout):
9025         [[[[2]]]] Use structured errors.
9026
9027         * dialog-msw.c:
9028         * dialog-msw.c (mswindows_is_dialog_msg):
9029         * dialog-msw.c (mark_mswindows_dialog_id):
9030         * dialog-msw.c (dialog_proc):
9031         * dialog-msw.c (handle_question_dialog_box):
9032         * dialog-msw.c (syms_of_dialog_mswindows):
9033         Define new object to clean up marking; use it as a dialog identifier.
9034         Call new delete-dialog-box-hook.
9035
9036         * dialog-x.c (dbox_selection_callback):
9037         * dialog-x.c (dbox_descriptor_to_widget_value):
9038         * dialog-x.c (x_make_dialog_box_internal):
9039         Call new delete-dialog-box-hook.
9040         Return an id.
9041
9042         * dialog.c:
9043         * dialog.c (syms_of_dialog):
9044         * dialog.c (vars_of_dialog):
9045         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
9046
9047         * eval.c:
9048         * eval.c (signal_call_debugger):
9049         when noninteractive, output stack traces on the console instead
9050         of in a (never-seen) buffer.
9051
9052         * eval.c (signal_type_error):
9053         * eval.c (invalid_argument_2):
9054         * lisp.h:
9055         new funs for use w/structured errors.
9056
9057         * event-Xt.c:
9058         * event-Xt.c (x_to_emacs_keysym):
9059         * event-Xt.c (describe_event):
9060         * event-Xt.c (emacs_Xt_event_handler):
9061         * event-Xt.c (vars_of_event_Xt):
9062         * event-msw.c:
9063         * event-msw.c (mswindows_wnd_proc):
9064         * event-msw.c (vars_of_event_mswindows):
9065         rename {x,mswindows}-debug-events to debug-{}-events for
9066         consistency with other debug-foo variables.
9067
9068         * event-stream.c:
9069         document next-event more clearly.
9070
9071         * fileio.c (Ffile_name_directory):
9072         * fileio.c (Ffile_name_nondirectory):
9073         * fileio.c (Funhandled_file_name_directory):
9074         * fileio.c (file_name_as_directory):
9075         * fileio.c (Ffile_name_as_directory):
9076         * fileio.c (directory_file_name):
9077         * fileio.c (Fdirectory_file_name):
9078         * fileio.c (Fmake_temp_name):
9079         * fileio.c (Ffile_truename):
9080         * fileio.c (Fsubstitute_in_file_name):
9081         * fileio.c (expand_and_dir_to_file):
9082         * fileio.c (barf_or_query_if_file_exists):
9083         * fileio.c (check_executable):
9084         * fileio.c (Ffile_exists_p):
9085         * fileio.c (Ffile_writable_p):
9086         * fileio.c (Ffile_directory_p):
9087         * fileio.c (Ffile_regular_p):
9088         * fileio.c (Ffile_modes):
9089         * fileio.c (Ffile_newer_than_file_p):
9090         * fileio.c (Fverify_visited_file_modtime):
9091         * fileio.c (Fset_visited_file_modtime):
9092         * fileio.c (auto_save_1):
9093         (1). (2).
9094         fix up gcpro's.
9095
9096         * frame-msw.c:
9097         * frame-msw.c (mswindows_init_frame_1):
9098         * frame-msw.c (mswindows_enable_frame):
9099         * frame-msw.c (error_frame_unsizable):
9100         * frame-msw.c (msprinter_init_frame_1):
9101         * frame-msw.c (msprinter_init_frame_3):
9102         * frame-msw.c (console_type_create_frame_mswindows):
9103         (2).
9104         implement new enable/disable frame methods.
9105
9106         * frame-x.c:
9107         * frame-x.c (x_enable_frame):
9108         * frame-x.c (console_type_create_frame_x):
9109         implement new enable/disable frame methods.
9110
9111         * frame.c:
9112         * frame.c (Fdisable_frame):
9113         * frame.c (syms_of_frame):
9114         * frame.h (struct frame):
9115         implement new enable/disable frame methods/functions.
9116
9117         * general-slots.h:
9118         add initial-focus.
9119
9120         * glyphs-msw.c (mswindows_widget_instantiate):
9121         comment that initial-focus should be implemented.
9122
9123         * glyphs-widget.c:
9124         * glyphs-widget.c (check_valid_instantiator):
9125         * glyphs-widget.c (check_valid_orientation):
9126         * glyphs-widget.c (check_valid_tab_orientation):
9127         * glyphs-widget.c (check_valid_justification):
9128         * glyphs-widget.c (check_valid_border):
9129         * glyphs-widget.c (check_valid_callback):
9130         * glyphs-widget.c (check_valid_int_or_function):
9131         * glyphs-widget.c (check_valid_string_or_vector):
9132         * glyphs-widget.c (check_valid_item_list_1):
9133         * glyphs-widget.c (widget_validate):
9134         * glyphs-widget.c (combo_box_validate):
9135         * glyphs-widget.c (widget_instantiate):
9136         * glyphs-widget.c (syms_of_glyphs_widget):
9137         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
9138         * glyphs-widget.c (image_instantiator_combo_box):
9139         * glyphs-widget.c (image_instantiator_scrollbar):
9140         * glyphs-widget.c (image_instantiator_tab_control):
9141         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
9142         (2).
9143         support (unimplemented) keyword initial-focus.
9144         reindent long macros.
9145
9146         * glyphs-x.c (x_redisplay_widget):
9147         * glyphs-x.c (x_button_instantiate):
9148         * glyphs-x.c (x_button_redisplay):
9149         * glyphs-x.c (x_progress_gauge_instantiate):
9150         * glyphs-x.c (x_edit_field_instantiate):
9151         * glyphs-x.c (x_combo_box_instantiate):
9152         * glyphs-x.c (x_tab_control_instantiate):
9153         * glyphs-x.c (x_label_instantiate):
9154         * gui-x.c:
9155         * gui-x.c (button_item_to_widget_value):
9156         * gui-x.c (gui_items_to_widget_values_1):
9157         * gui-x.c (gui_item_children_to_widget_values):
9158         * gui-x.c (gui_items_to_widget_values):
9159         * gui-x.h:
9160         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9161         add new flag to gui-parsing routines to indicate whether
9162         accelerator specs should be supported.
9163
9164         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
9165
9166         * glyphs.h (struct Lisp_Image_Instance):
9167         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
9168         add initial-focus flag.
9169
9170         * gui.c:
9171         * gui.c (syms_of_gui):
9172         * gui.c (vars_of_gui):
9173         clean up menu-no-selection-hook.
9174
9175         * gui.h:
9176         support delete-dialog-box-hook.
9177
9178         * lread.c (Fload_internal):
9179         * lread.c (locate_file_in_directory_mapper):
9180         (1).
9181
9182         * lrecord.h:
9183         * lrecord.h (struct toolbar_button):
9184         * lrecord.h (syms_of_toolbar):
9185         document how to create a new object.
9186
9187         * menubar-msw.c (mswindows_char_is_accelerator):
9188         may be called on frames w/o menus.
9189
9190         * menubar.c (vars_of_menubar):
9191         clean up :filter docs.
9192
9193         * nt.c (readdir):
9194         * ntproc.c:
9195         (1).
9196
9197         * process-nt.c:
9198         * process-nt.c (validate_signal_number):
9199         * process-nt.c (signal_cannot_launch):
9200         * process-nt.c (nt_create_process):
9201         * process-nt.c (nt_send_process):
9202         * process-nt.c (nt_kill_child_process):
9203         * process-nt.c (nt_open_network_stream):
9204         * process-nt.c (syms_of_process_nt):
9205         (2).
9206         delete quote-handling.  call new lisp code that does it better.
9207
9208         * process-unix.c (connect_to_file_descriptor):
9209         * process-unix.c (allocate_pty):
9210         * process-unix.c (unix_send_process):
9211         * process-unix.c (unix_kill_child_process):
9212         * process-unix.c (unix_open_network_stream):
9213         * process-unix.c (unix_open_multicast_group):
9214         (1). (2).
9215
9216         * process.c:
9217         * process.c (Fstart_process_internal):
9218         (2).  need to canonicalize process path even if absolute.
9219
9220         * select-msw.c (symbol_to_ms_cf):
9221         * select-msw.c (ms_cf_to_symbol):
9222         * select-msw.c (cf_is_autofreed):
9223         * select-msw.c (mswindows_destroy_selection):
9224         * select.c:
9225         * select.c (syms_of_select):
9226         * select.h:
9227         support dibv5, fix bugs. (from Mike Alexander)
9228
9229         * select.c (Fget_selection_internal):
9230         * select.c (select_convert_out):
9231
9232         * sysdep.c:
9233         * sysdep.c (xemacs_stat):
9234         renamed.
9235
9236         * sysdep.c (mkdir):
9237         * sysdep.c (rmdir):
9238         but keep original stat() here because we provide encapsulation
9239         around these funs.
9240
9241         * sysfile.h:
9242         * sysfile.h (fstat):
9243         remove stat garbage.
9244
9245         * syswindows.h:
9246         fix X/MSW conflict.
9247         don't include tchar.h.  it's inappropriate because it makes
9248         compile-time distinctions when we want runtime distinctions.
9249         (we provide our own tchar replacements)
9250
9251         * toolbar.c:
9252         use default object printer for toolbar-button.
9253
9254         * unexcw.c:
9255         make sure we don't encapsulate.
9256
9257         * window.c (vars_of_window):
9258         emphasize that temp-buffer-show-hook is obsolete.
9259
9260 2000-08-05  Martin Buchholz  <martin@xemacs.org>
9261
9262         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
9263         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
9264
9265         * events.c (Fevent_timestamp_lessp):
9266         Not 64-bit clean.  Use EMACS_INT, not int.
9267
9268 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
9269
9270         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
9271         unsigned int and changed the last enum to
9272         lrecord_type_last_built_in_type.
9273         (lrecord_implementations_table): changed prototype to know how
9274         long the array is supposed to be.
9275         (lrecord_type_count): new unsigned int to keep track of the
9276         current number of lisp lrecord types.
9277         (DEFINE_EXTERNAL_LRECORD):
9278         (DECLARE_EXTERNAL_LRECORD): Added these two for external
9279         dynamic-modules to declare new lisp types. They are the same
9280         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
9281         int for each new type, and increment lrecord_type_count by 1.
9282
9283         * alloc.c (lrecord_implementations_table): Changed to reference
9284         lrecord_type_last_built_in_type for the size of the array.
9285         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
9286
9287 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
9288
9289         * glyphs.h (check_valid_item_list): Renamed from
9290         check_valid_item_list_1.
9291
9292 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
9293
9294         * select.c (Qselect_coerce): New.
9295         * select.c (Vselection_coercion_alist): New.
9296         * select.c (syms_of_select): Declare.
9297         * select.c (get-selection-internal): Use it.
9298         Use the new select-coerce functionality.
9299
9300         * select.c (select_coerce): New.
9301         * select.h (select_coerce): Declare.
9302         New function to coerce one type of data into another.
9303
9304 2000-08-03  Martin Buchholz  <martin@xemacs.org>
9305
9306         * callproc.c (Fcall_process_internal):
9307         (Fcall_process_internal):
9308         * process-unix.c (unix_create_process):
9309         Save and restore the value of errno, so that error messages are accurate.
9310
9311 2000-08-01  Martin Buchholz  <martin@xemacs.org>
9312
9313         * elhash.c (print_hash_table):
9314         Fix printing of hash tables to also use `key-and-value' instead of `t'.
9315         Prettify docstrings and indentation.
9316
9317 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
9318
9319         * window.c (Fwindow_pixel_edges): Subtract frame border and
9320         gutter size.
9321
9322 2000-07-31  Andy Piper  <andy@xemacs.org>
9323
9324         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
9325         will acknowledge the change.
9326
9327         * glyphs.h: declare tab_control_order_only_changed.
9328
9329         * glyphs-x.c (x_tab_control_redisplay): use
9330         tab_control_order_only_changed.
9331
9332         * glyphs-widget.c (tab_control_order_only_changed): new function.
9333
9334         * glyphs-msw.c (mswindows_tab_control_redisplay): use
9335         tab_control_order_only_changed.
9336
9337         * gui.c (gui_item_equal_sans_selected): new function.
9338         (gui_item_equal): use it.
9339
9340         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
9341         :properties in favor of :items..
9342
9343         * glyphs-widget.c (check_valid_item_list): rename from
9344         check_valid_item_list_1.
9345         (check_valid_item_list_1): renamed.
9346         (combo_box_validate): deprecate :properties in favor of :items.
9347         (widget_instantiate): ditto.
9348         (tab_control_update): ditto.
9349         (image_instantiator_combo_box): ditto.
9350         (image_instantiator_tree_view): ditto.
9351         (image_instantiator_tab_control): ditto.
9352         (layout_post_instantiate): remove dead code.
9353
9354         * print.c (debug_print_no_newline): only write to debugger if in
9355         WIN32_NATIVE.
9356
9357         * elhash.c (Fmake_hash_table): update doc string.
9358
9359         * event-msw.c (mswindows_wnd_proc): don't allow processing of
9360         messages whilst in GC. This at least stops XEmacs crashing but has
9361         the potential for wierd behaviour.
9362
9363 2000-07-31  Martin Buchholz  <martin@xemacs.org>
9364
9365         * config.h.in:
9366         Make existence of s&m files optional.
9367
9368         * s/bsd386.h: Remove HAVE_GETLOADAVG.
9369         * s/freebsd.h: Remove HAVE_GETLOADAVG.
9370         * s/gnu.h: Remove HAVE_GETLOADAVG.
9371         * s/netbsd.h: Remove HAVE_GETLOADAVG.
9372         * s/sol2.h: Remove HAVE_GETLOADAVG.
9373         * lisp.h: Remove getloadavg() declaration.
9374         * fns.c:
9375         Include <sys/loadavg.h> if available.
9376         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
9377         * config.h.in:  Group together getloadavg()-related macros.
9378         Use only configure-time tests to detect getloadavg().
9379
9380 2000-07-30  Martin Buchholz  <martin@xemacs.org>
9381
9382         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
9383
9384 2000-07-25  Andy Piper  <andy@xemacs.org>
9385
9386         * syswindows.h: add tchar.h for native builds.
9387
9388         * frame.c (syms_of_frame): remove set-glyph-image.
9389
9390         * general-slots.h: add Qset_glyph_image.
9391
9392         * glyphs-widget.c (layout_update): add domain arg to
9393         set-glyph-image.
9394         (syms_of_glyphs_widget): remove set-glyph-image.
9395
9396 2000-07-23  Ben Wing  <ben@xemacs.org>
9397
9398         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
9399         Vpopup_frame_list.
9400
9401 2000-07-22  Andy Piper  <andy@xemacs.org>
9402
9403         * symsinit.h: add syms_of_win32().
9404
9405         * gui-msw.c (syms_of_gui_mswindows): remove
9406         Fmswindows_shell_execute.
9407         (Fmswindows_shell_execute): moved to win32.c.
9408
9409         * emacs.c (main_1): add syms_of_win32 ().
9410
9411         * win32.c (init_potentially_nonexistent_functions): rewrite in
9412         compiler-friendly terms.
9413         (Fmswindows_shell_execute): move here from gui-msw.c.
9414         (syms_of_win32): new.
9415
9416         * device-msw.c (Fmswindows_printer_list): clean up args to
9417         EnumPrinters.
9418         Don't include tchar under cygwin or mingw.
9419         (msprinter_default_printer): make cygwin-friendly.
9420
9421 2000-07-21  Andy Piper  <andy@xemacs.org>
9422
9423         * glyphs-widget.c (image_instantiator_tree_view): use tab
9424         control's update function.
9425         (layout_property): new function. Retrieve items.
9426
9427         * glyphs-msw.c (mswindows_tree_view_redisplay): new
9428         function. Re-populate the tree view from the pending items.
9429
9430         * glyphs.c (instantiate_image_instantiator): Make sure the domain
9431         is designated the parent if the domain is an image instance. This
9432         is needed so that dirtiness can be cascade up the hierarchy and
9433         thus for layout children to be redisplayed correctly.
9434         (allocate_image_instance): rename glyph -> parent.
9435
9436         * redisplay.h: change redisplay_output_layout signature.
9437
9438         * redisplay-msw.c (mswindows_output_display_block): use domain
9439         arg.
9440
9441         * redisplay-x.c (x_output_display_block): use domain arg.
9442
9443 2000-07-10  Andy Piper  <andy@xemacs.org>
9444
9445         * window.c (Fset_window_configuration): add comment.
9446
9447         * redisplay-output.c (compare_runes):
9448         (redisplay_output_subwindow): redisplay rather than update subwindow.
9449         (redisplay_output_layout): ditto.
9450
9451         * redisplay-msw.c (mswindows_frame_output_end):
9452         (mswindows_frame_output_end): make defer window pos optional.
9453
9454         * lisp.h: add Flast.
9455
9456         * glyphs.h (struct image_instantiator_methods): add dest_mask top
9457         normalize method. Change update method to be for changed
9458         instantiators. Add redisplay method. Change signature of layout
9459         method.
9460         (struct Lisp_Image_Instance): add instantiator.
9461         (IMAGE_INSTANCE_INSTANTIATOR): new.
9462         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
9463         (XIMAGE_INSTANCE_INSTANTIATOR): new.
9464         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
9465
9466         * glyphs.c:
9467         (find_instantiator_differences): new function.
9468         (Fset_instantiator_property): new convenience function.
9469         (check_image_instance_structure): strictly check for vector
9470         instantiators.
9471         (normalize_image_instantiator): make non-static.
9472         (instantiate_image_instantiator): pass on dest_mask and use new
9473         signatures for image_instance_layout and friends.
9474         (mark_image_instance): mark the instantiator. Mark the subwindow
9475         face not the widget face.
9476         (image_instance_equal): add instantiator.
9477         (image_instance_hash): ditto.
9478         (allocate_image_instance): ditto.
9479         (Fset_image_instance_property): removed.
9480         (Fimage_instance_file_name): ditto.
9481         (Fcolorize_image_instance): ditto.
9482         (image_instance_layout): add offsets to be set.
9483         (update_image_instance): new function. update an image instance
9484         from its changed instantiator.
9485         (inherit_normalize): add dest_mask.
9486         (xbm_normalize): ditto.
9487         (xface_normalize): ditto.
9488         (xpm_normalize): ditto.
9489         (text_update): set_property -> update.
9490         (image_instantiate): use the glyph identity as a hash key, not the
9491         instantiator.
9492         (glyph_width): use new image_instance_layout signature.
9493         (glyph_ascent): ditto.
9494         (glyph_descent): ditto.
9495         (glyph_height): ditto.
9496         (glyph_query_geometry): ressurrect.
9497         (glyph_layout): ditto.
9498         (redisplay_subwindow): update -> redisplay.
9499         (syms_of_glyphs): add Fset_instantiator_property.
9500         (image_instantiator_format_create): set_property -> update.
9501
9502         * glyphs-x.c:
9503         (autodetect_normalize): add dest_maks to signature.
9504         (x_redisplay_subwindow): update -> redisplay.
9505         (x_redisplay_widget): ditto.
9506         (x_button_redisplay): ditto.
9507         (x_progress_gauge_redisplay): ditto.
9508         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
9509         stacking order.
9510         (console_type_create_glyphs_x): update -> redisplay.
9511         (image_instantiator_format_create_glyphs_x): ditto.
9512
9513         * glyphs-widget.c:
9514         (check_valid_instantiator): disallow glyphs in the instantiator,
9515         they must now be vectors.
9516         (check_valid_instantiator_list): ditto.
9517         (glyph_instantiator_to_glyph): use internal symbol rather than
9518         intern.
9519         (widget_update): renamed from widget_set_property. Call cascaded
9520         update methods.
9521         (redisplay_widget): renamed from update_widget.
9522         (widget_layout): image_instance_layout now takes position as well
9523         as size.
9524         (widget_normalize): ditto.
9525         (widget_instantiate): ditto.
9526         (tab_control_query_geometry) ditto.:
9527         (tab_control_update): renamed from tab_control_set_property.
9528         (progress_gauge_update): set_property -> update.
9529         (layout_normalize): rewrite so that child instantiators are
9530         normalized also.
9531         (layout_update): new function. Create glyphs from the normalized
9532         children and cope with any other layout keywords. We do not
9533         instantiate children here that will be take care of by
9534         redisplay_output_layout.
9535         (layout_instantiate): call layout_update and not much else.
9536         (layout_post_instantiate): not sure whether this is needed
9537         anymore.
9538         (layout_query_geometry): query glyph geometry rather than
9539         image_instance geometry.
9540         (layout_layout): set offsets from pass in parameters. Use glyph
9541         geometry and layout functions rather than image instance ones.
9542         (native_layout_layout): ditto.
9543         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
9544         (image_instantiator_widget): set_property -> update.
9545         (image_instantiator_buttons): ditto.
9546         (image_instantiator_progress_guage): ditto.
9547         (image_instantiator_tab_control): ditto.
9548         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
9549         (image_instantiator_layout): add update method.
9550
9551         * glyphs-msw.c (bmp_normalize):
9552         (mswindows_resource_normalize): add dest_mask so that it can be
9553         proprogated by layout_normalize.
9554         (begin_defer_window_pos): make optional because it may not be the
9555         right thing to do and it introduces differences with X.
9556         (mswindows_unmap_subwindow): ditto.
9557         (mswindows_map_subwindow): ditto.
9558         (mswindows_redisplay_subwindow): renamed from
9559         mswindows_update_subwindow.
9560         (mswindows_redisplay_widget): ditto.
9561         (mswindows_button_redisplay): renamed from
9562         mswindows_button_update. Update is now what the instantiation
9563         function does for a changed instantiator.
9564         (mswindows_progress_gauge_instantiate): set the progress value
9565         here if appropriate.
9566         (mswindows_tab_control_redisplay): cope with re-ordering of the
9567         members of the tab widget by simply selecting the new top
9568         widget. This makes things appear ok if you click on a tab.
9569         (mswindows_combo_box_instantiate): image_instance_layout now takes
9570         position as well as size.
9571         (mswindows_progress_gauge_redisplay): renamed from
9572         mswindows_progress_gauge_update.
9573         (console_type_create_glyphs_mswindows): fix update -> redisplay.
9574         (image_instantiator_format_create_glyphs_mswindows): ditto.
9575
9576         * glyphs-eimage.c (jpeg_normalize):
9577         (gif_normalize):
9578         (png_normalize):
9579         (tiff_normalize): add dest_mask so that it can be proprogated by
9580         layout_normalize.
9581
9582         * elhash.c:
9583         (print_hash_table):
9584         (hash_table_weakness_validate):
9585         (decode_hash_table_weakness):
9586         (Fhash_table_weakness):
9587         (Fhash_table_type):
9588         (syms_of_elhash): use Ben's naming scheme for hashtable types..
9589
9590         * console.h (struct console_methods): move update_* to
9591         redisplay_*.
9592
9593 2000-07-20  Ben Wing  <ben@xemacs.org>
9594
9595         * *.[ch] (XSETOBJ): remove unused middle argument.
9596         lisp-disunion.h: correct wrap_object() to one argument.
9597
9598 2000-07-15  Ben Wing  <ben@xemacs.org>
9599
9600         * s/cygwin32.h:
9601         * s/cygwin32.h (CYGWIN_CONV_PATH):
9602         Add missing logb prototype for v1.1.
9603         Use post-b20 names and alias to pre-b20 names when pre-b20.
9604
9605         * s/windowsnt.h: [5].
9606
9607 2000-07-15  Ben Wing  <ben@xemacs.org>
9608
9609         * Makefile.in.in (x_objs):
9610         * Makefile.in.in (sheap_objs):
9611         * Makefile.in.in (objs):
9612         added win32.o, cosmetic cleanups.
9613
9614         * alloc.c (Fmake_byte_code):
9615         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
9616         etc. macros which declare their own args now.
9617
9618         * alloc.c (syms_of_alloc):
9619         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
9620
9621         * buffer.c:
9622         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
9623
9624         * buffer.c (Fget_file_buffer):
9625         Fixed GCPRO problem.
9626
9627         * buffer.c (get_truename_buffer):
9628         Fixed comment about GC checking.
9629
9630         * buffer.c (syms_of_buffer):
9631         Undeclared those dedicated frame funs.
9632         [2].
9633
9634         * buffer.h:
9635         Define convenience macros for internal/external conversions.
9636         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
9637         and Qenvironment_variable_encoding for cleaner code.
9638
9639         * bufslots.h:
9640         Remove dedicated-frame; in lisp.
9641
9642         * bytecode.c (funcall_compiled_function):
9643         [1].
9644
9645         * bytecode.c (syms_of_bytecode):
9646         [2].
9647
9648         * console-msw.c:
9649         * console-msw.c (mswindows_show_console): Rewrote.
9650
9651         * console-msw.c (Fmswindows_debugging_output): New.
9652         Sends to OutputDebugString (special MSWin debugger interface).
9653
9654         * console-msw.c (Fmswindows_message_box):
9655         Fixed stupid bugs so it works when called from kill-emacs.
9656
9657         * console-msw.c (syms_of_console_mswindows):
9658         Declare Fmswindows_debugging_output.
9659
9660         * console-msw.h:
9661         New MSWin prototypes.
9662
9663         * console-msw.h (struct mswindows_frame):
9664         New entry last-click-mods for improved button-modifier support.
9665
9666         * console-msw.h (FRAME_MSWINDOWS_POPUP):
9667         New struct entry `popup' with corresponding accessor.
9668
9669         * console-x.c:
9670         * console-x.c (split_up_display_spec):
9671         * console-x.c (get_display_arg_connection):
9672         * console-x.c (x_semi_canonicalize_console_connection):
9673         * console-x.c (x_canonicalize_device_connection):
9674         [[[6]]]: Change char to more specific type.
9675         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
9676
9677         * console-x.c (x_semi_canonicalize_console_connection):
9678         * console-x.c (x_canonicalize_device_connection):
9679         [[[9]]]: Fix up error signalling to use new structured error system.
9680
9681         * console-x.h:
9682         [[[4]]]: Define codesys aliases:
9683         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
9684         Qx_color_name_encoding, Qx_display_name_encoding.
9685
9686         * console.h (struct console_methods):
9687         New method make_dialog_box_internal supersedes older
9688         popup_dialog_box method.
9689
9690         * data.c:
9691         Define many new errors, part of new structured errors.
9692
9693         * data.c (init_errors_once_early):
9694         * data.c (syms_of_data):
9695         [2].
9696
9697         * device-msw.c (mswindows_init_device):
9698         [[[5]]]: Cleanup to support NT 3.51.
9699
9700         * device-msw.c (decode_devmode): Cleanup.
9701
9702         * device-msw.c (mswindows_handle_print_setup_dialog_box):
9703         * device-msw.c (mswindows_handle_print_dialog_box):
9704         * device-msw.c (mswindows_handle_page_setup_dialog_box):
9705         * device-msw.c (syms_of_device_mswindows):
9706         Delete the dialog box primitives recently introduced by Kirill and
9707         instead interface to general dialog box interface.
9708
9709         * device-x.c:
9710         * device-x.c (compute_x_app_name):
9711         * device-x.c (x_init_device):
9712         * device-x.c (Fx_valid_keysym_name_p):
9713         * device-x.c (Fx_set_font_path):
9714         [6].
9715         [7].
9716
9717         * device.h (wrap_device): New.
9718         First of its kind; meant to replace XSETDEVICE.
9719
9720         * dialog-msw.c: Many file-dialog symbols.
9721
9722         * dialog-msw.c (mswindows_register_popup_frame): New.
9723         * dialog-msw.c (mswindows_is_dialog_msg): New.
9724         For supporting kbd traversal in dialog boxes.
9725
9726         * dialog-msw.c (dialog_proc):
9727         Support hitting ESC in dialogs.
9728
9729         * dialog-msw.c (struct):
9730         Common dialog box errors.
9731
9732         * dialog-msw.c (handle_file_dialog_box): New.
9733         Add file dialog code.
9734
9735         * dialog-msw.c (handle_question_dialog_box):
9736         Redo existing code to support new question dialog syntax.
9737
9738         * dialog-msw.c (console_type_create_dialog_mswindows):
9739         We support new dialog console method.
9740
9741         * dialog-msw.c (syms_of_dialog_mswindows):
9742         * dialog-msw.c (vars_of_dialog_mswindows):
9743         New file dialog symbols, vars.
9744
9745         * dialog-x.c:
9746         * dialog-x.c (maybe_run_dbox_text_callback):
9747         * dialog-x.c (dbox_descriptor_to_widget_value):
9748         * dialog-x.c (x_make_dialog_box_internal):
9749         * dialog-x.c (console_type_create_dialog_x):
9750         Mule-ize entire file.
9751         Redo to support question dialog syntax.
9752         [6].
9753
9754         * dialog.c:
9755         * dialog.c (Fmake_dialog_box_internal):
9756         * dialog.c (syms_of_dialog):
9757         Kill old popup-dialog-box, replace with new primitive.
9758         Just call device method or signal error.
9759
9760         * eldap.c (Fldap_open):
9761         * eldap.c (Fldap_search_basic):
9762         * eldap.c (Fldap_add):
9763         * eldap.c (Fldap_modify):
9764         [1].
9765         [7].
9766
9767         * emacs.c:
9768         * emacs.c (make_arg_list_1):
9769         * emacs.c (make_arg_list):
9770         Mule-ize call to dll_init().
9771         [6].
9772         [8].
9773
9774         * emacs.c (make_argc_argv):
9775         * emacs.c (free_argc_argv):
9776         * emacs.c (init_cmdargs):
9777         * emacs.c (main_1):
9778         * emacs.c (Fkill_emacs):
9779         * emacs.c (Fdump_emacs):
9780         Update comments about what can be used in syms_* etc.
9781         Call init_win32() when necessary.
9782         Fix up MS Win dialog box in kill-buffer to actually work right.
9783         [7].
9784
9785         * eval.c:
9786         * eval.c (For):
9787         * eval.c (Fand):
9788         * eval.c (Fprogn):
9789         * eval.c (Fprog1):
9790         * eval.c (Fprog2):
9791         * eval.c (FletX):
9792         * eval.c (Flet):
9793         * eval.c (condition_case_3):
9794         * eval.c (Feval):
9795         * eval.c (function_argcount):
9796         * eval.c (funcall_lambda):
9797         [1].
9798
9799         * eval.c (type_error): New.
9800         * eval.c (maybe_type_error): New.
9801         * eval.c (continuable_type_error): New.
9802         * eval.c (maybe_continuable_type_error): New.
9803         * eval.c (type_error_with_frob): New.
9804         * eval.c (maybe_type_error_with_frob): New.
9805         * eval.c (continuable_type_error_with_frob): New.
9806         * eval.c (maybe_continuable_type_error_with_frob): New.
9807         New functions for use with structured errors.
9808
9809         * event-Xt.c:
9810         * event-Xt.c (x_event_to_emacs_event):
9811         Buttons are now modifiers too.
9812
9813         * event-Xt.c (emacs_Xt_current_event_timestamp):
9814         Implement new event method.
9815         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
9816
9817         * event-msw.c:
9818         * event-msw.c (ntpipe_shove_writer): [5].
9819         * event-msw.c (mswindows_enqueue_mouse_button_event):
9820         * event-msw.c (mswindows_drain_windows_queue):
9821         * event-msw.c (mswindows_wnd_proc): [7].
9822         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
9823         * event-msw.c (mswindows_modifier_state):
9824         Throughout: support new button modifiers.
9825
9826         * event-msw.c (emacs_mswindows_current_event_timestamp):
9827         Implement new event method.
9828         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
9829
9830         * event-stream.c:
9831         * event-stream.c (event_stream_current_event_timestamp): New.
9832         * event-stream.c (maybe_kbd_translate): New functionality.
9833         * event-stream.c (vars_of_event_stream):
9834         Document new kbd-translate-table functionality.
9835
9836         * event-stream.c (Fcurrent_event_timestamp): New.
9837         New primitive for use in fabricated events.
9838         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
9839
9840         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
9841
9842         * events.c:
9843         * events.c (Fmake_event):
9844         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
9845         [1].
9846         [9].
9847
9848         * events.c (format_event_object): fix gcc warnings.
9849
9850         * events.c (Fevent_timestamp): Document new primitives.
9851
9852         * events.c (TIMESTAMP_HALFSPACE): New.
9853
9854         * events.c (Fevent_timestamp_lessp): New.  New primitive for
9855         comparing timestamps correctly (half-space algorithm).
9856
9857         * events.c (Fevent_modifier_bits): Doc fix.
9858
9859         * events.c (Fevent_modifiers): Major doc addition.
9860         * events.c (event_x_y_pixel_internal): Typo fix.
9861         * events.c (syms_of_events): Declare new primitives.
9862
9863         * events.h:
9864         Update long comment for button modifiers, timestamps.
9865
9866         * events.h (struct event_stream):
9867         New current_event_timestamp method.
9868
9869         * extents.c:
9870         * extents.c (extent_in_region_p):
9871         * extents.c (decode_extent):
9872         * extents.c (Fset_extent_parent):
9873         * extents.c (decode_map_extents_flags):
9874         Fix gcc warnings.
9875         [9].
9876
9877         * extents.c (struct extent_at_arg):
9878         * extents.c (decode_extent_at_flag):
9879         * extents.c (extent_at_mapper):
9880         * extents.c (extent_at_bytind):
9881         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
9882         * extents.c (Fextents_at): New primitive. [9].
9883         * extents.c (symbol_to_glyph_layout): [9].
9884         Support new primitive `extents-at'.
9885
9886
9887         * extents.c (get_text_property_bytind):
9888         extent_at_bytind has another arg.
9889         [9].
9890
9891         * extents.c (syms_of_extents): New primitive.
9892
9893         * file-coding.c (Fmake_coding_system): [1].
9894         * file-coding.c (subsidiary_coding_system): fix gcc warning
9895         * file-coding.c (syms_of_file_coding): [2].
9896
9897         * fileio.c (Fexpand_file_name):
9898         * fileio.c (Fsysnetunam):
9899         * fileio.c (Ffile_exists_p):
9900         * fileio.c (Ffile_executable_p):
9901         * fileio.c (Fverify_visited_file_modtime):
9902         Clean up GCPROing.
9903
9904         * fileio.c (syms_of_fileio): [2].
9905
9906         * filelock.c (lock_file_1):
9907         * filelock.c (current_lock_owner):
9908         * filelock.c (lock_if_free):
9909         * filelock.c (lock_file):
9910         * filelock.c (unlock_file):
9911         Clean up GCPROing.
9912
9913         * fns.c (concat): Fix gcc warning.
9914
9915         * fns.c (Fmember):
9916         * fns.c (Fold_member):
9917         * fns.c (Fmemq):
9918         * fns.c (Fold_memq):
9919         * fns.c (memq_no_quit):
9920         * fns.c (Fassoc):
9921         * fns.c (Fold_assoc):
9922         * fns.c (Fassq):
9923         * fns.c (Fold_assq):
9924         * fns.c (assq_no_quit):
9925         * fns.c (Frassoc):
9926         * fns.c (Fold_rassoc):
9927         * fns.c (Frassq):
9928         * fns.c (Fold_rassq):
9929         * fns.c (rassq_no_quit):
9930         * fns.c (Fdelete):
9931         * fns.c (Fold_delete):
9932         * fns.c (Fdelq):
9933         * fns.c (Fold_delq):
9934         * fns.c (delq_no_quit):
9935         * fns.c (Fremassoc):
9936         * fns.c (Fremassq):
9937         * fns.c (remassq_no_quit):
9938         * fns.c (Fremrassoc):
9939         * fns.c (Fremrassq):
9940         * fns.c (remrassq_no_quit):
9941         * fns.c (Freverse):
9942         * fns.c (mapcar1):
9943         [1].
9944
9945         * frame-msw.c (mswindows_init_frame_1):
9946         * frame-msw.c (mswindows_delete_frame):
9947         Register popups with dialog code so keyboard traversing works.
9948
9949         * frame-tty.c (tty_raise_frame_no_select): [1].
9950
9951         * frame-x.c:
9952         * frame-x.c (x_set_frame_text_value):
9953         * frame-x.c (x_set_frame_properties):
9954         * frame-x.c (x_create_widgets):
9955         [7].
9956
9957         * frame.c:
9958         * frame.c (Fmouse_pixel_position): Minor doc fixes.
9959
9960         * frame.h (wrap_frame): New.
9961         Macro like wrap_device.
9962
9963         * general.c:
9964         * general.c (SYMBOL):
9965         * general.c (syms_of_general):
9966         Major reorg.  This is now just a wrapper and symbols themselves
9967         are listed in general-slots.h.
9968
9969         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
9970         * glyphs-msw.c (mswindows_resource_instantiate): [5].
9971
9972         * glyphs-msw.c (mswindows_native_layout_instantiate):
9973         Add DS_CONTROL so keyboard traversal will work.
9974
9975         * glyphs-widget.c:
9976         * glyphs-widget.c (syms_of_glyphs_widget):
9977         Move some symbols to general-slots.h.
9978
9979         * glyphs-x.c:
9980         * glyphs-x.c (xbm_instantiate_1):
9981         * glyphs-x.c (x_xbm_instantiate):
9982         * glyphs-x.c (x_xface_instantiate):
9983         * glyphs-x.c (autodetect_instantiate):
9984         * glyphs-x.c (cursor_font_instantiate):
9985         * glyphs-x.c (x_update_widget):
9986         * glyphs-x.c (x_widget_instantiate):
9987         * glyphs.c (bitmap_to_lisp_data):
9988         * glyphs.c (pixmap_to_lisp_data):
9989         [7].
9990
9991         * glyphs.c (syms_of_glyphs):
9992         [2].
9993
9994         * gui-x.c:
9995         * gui-x.c (print_widget_value):
9996         * gui-x.c (menu_separator_style_and_to_external):
9997         * gui-x.c (add_accel_and_to_external):
9998         * gui-x.c (button_item_to_widget_value):
9999         * gui-x.c (gui_items_to_widget_values_1):
10000         * gui-x.c (gui_items_to_widget_values):
10001         * gui-x.c (syms_of_gui_x):
10002         * gui-x.c (vars_of_gui_x):
10003         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
10004         [9].
10005
10006         * gui-x.h:
10007         Muleize, prototype changes matching gui-x.c.
10008
10009         * gui.c:
10010         * gui.c (separator_string_p):
10011         * gui.c (gui_item_add_keyval_pair):
10012         * gui.c (make_gui_item_from_keywords_internal):
10013         * gui.c (signal_too_long_error):
10014         * gui.c (parse_gui_item_tree_item):
10015         * gui.c (syms_of_gui):
10016         * gui.c (vars_of_gui):
10017         * gui.h:
10018         menu-no-selection-hook moved here (used by MSWin).
10019         Move some symbols to general-slots.h.
10020         [6].
10021         [9].
10022
10023         * insdel.c (get_buffer_pos_char):
10024         * insdel.c (get_buffer_range_char):
10025         Add GC comments.
10026
10027         * keymap.c (keymap_lookup_directly):
10028         * keymap.c (keymap_store):
10029         * keymap.c (ensure_meta_prefix_char_keymapp):
10030         * keymap.c (describe_map):
10031         * keymap.h:
10032         Support new button modifiers.
10033
10034         * lisp-disunion.h (wrap_object):
10035         * lisp-disunion.h (XSETOBJ):
10036         Rename make_obj to wrap_object.
10037
10038         * lisp-union.h:
10039         * lisp-union.h (make_int):
10040         * lisp-union.h (make_char):
10041         Support wrap_object.
10042
10043         * lisp.h:
10044         * lisp.h (LIST_LOOP):
10045         * lisp.h (EXTERNAL_LIST_LOOP):
10046         * lisp.h (LIST_LOOP_2):
10047         * lisp.h (EXTERNAL_LIST_LOOP_1):
10048         * lisp.h (EXTERNAL_LIST_LOOP_2):
10049         * lisp.h (EXTERNAL_LIST_LOOP_3):
10050         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
10051         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
10052         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
10053         * lisp.h (EXTERNAL_ALIST_LOOP_5):
10054         * lisp.h (EXTERNAL_ALIST_LOOP_6):
10055         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
10056         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
10057         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
10058         * lisp.h (struct Lisp_Symbol):
10059         * lisp.h (maybe_continuable_error_with_frob):
10060         Fix up section comments.
10061         Add new types for char to indicate usage.
10062         Delete symbols auto-generated from general-slots.h.
10063         Add prototypes for structured error functions.
10064         Add long comments describing looping macros and change interface
10065         so that lvalues are automatically declared.
10066         Add NO_DECLARE macro in case callers want to declare lvalues
10067         themselves.
10068
10069         * lread.c (read_syntax_error):
10070         * lread.c (continuable_read_syntax_error):
10071         * lread.c (read_structure):
10072         * lread.c (sequence_reader):
10073         * lread.c (read_list_conser):
10074         * lread.c (read_compiled_function):
10075         Rename syntax_error and continuable_syntax_error to avoid clash
10076         with same-named structured error functions.
10077
10078         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
10079         * menubar-msw.c (populate_menu_add_item):
10080         * menubar-msw.c (populate_or_checksum_helper):
10081         [5].
10082         [9].
10083
10084         * menubar-x.c:
10085         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10086         Mule-ize whole file.
10087
10088         * menubar.c (Fnormalize_menu_item_name): Add optimization.
10089
10090         * mule-charset.c (Fmake_charset):
10091         * mule-wnnfns.c (Fwnn_set_param):
10092         [1].
10093
10094         * ntproc.c (create_child):
10095         * ntproc.c (Fwin32_set_current_locale):
10096         Add comments portending doom.
10097
10098         * objects-msw.c:
10099         * objects-msw.c (old_font_enum_callback_2):
10100         * objects-msw.c (font_enum_callback_1):
10101         * objects-msw.c (mswindows_enumerate_fonts):
10102         [5].
10103
10104         * objects-x.c:
10105         * objects-x.c (allocate_nearest_color):
10106         * objects-x.c (x_parse_nearest_color):
10107         * objects-x.c (x_initialize_color_instance):
10108         * objects-x.c (x_print_color_instance):
10109         * objects-x.c (x_finalize_color_instance):
10110         * objects-x.c (x_valid_color_name_p):
10111         * objects-x.c (x_initialize_font_instance):
10112         * objects-x.c (x_print_font_instance):
10113         * objects-x.c (valid_x_font_name_p):
10114         * objects-x.c (truename_via_FONT_prop):
10115         * objects-x.c (truename_via_random_props):
10116         * objects-x.c (truename_via_XListFonts):
10117         * objects-x.c (x_font_truename):
10118         * objects-x.c (x_font_instance_truename):
10119         * objects-x.c (x_font_instance_properties):
10120         * objects-x.c (x_list_fonts):
10121         * objects-x.c (x_find_charset_font):
10122         Mule-ize entire file.
10123         [7].
10124
10125         * objects-x.h:
10126         Mule-verify.
10127
10128         * print.c:
10129         * print.c (std_handle_out_external):
10130         * print.c (debug_print_no_newline):
10131         * print.c (syms_of_print):
10132         Output to all debugger kinds in debug-print.
10133         Fix console-output code under MSWin to actually work.
10134
10135         * process-nt.c (send_signal):
10136         * process-nt.c (nt_create_process):
10137         Use newer Unicode macros.
10138
10139         * process-unix.c (unix_create_process):
10140         * process-unix.c (unix_canonicalize_host_name):
10141         * process-unix.c (unix_open_network_stream):
10142         [7].
10143
10144         * scrollbar-x.c:
10145         Mule-verify.
10146
10147         * search.c (syms_of_search):
10148         [2].
10149
10150         * select-msw.c (mswindows_destroy_selection):
10151         Use LIST_LOOP_2.
10152
10153         * select-x.c (symbol_to_x_atom):
10154         [7].
10155
10156         * select.c (syms_of_select):
10157         [2].
10158
10159         * sound.c (Fplay_sound_file):
10160         [7].
10161
10162         * specifier.c:
10163         * specifier.c (decode_specifier_type):
10164         * specifier.c (Fvalid_specifier_locale_type_p):
10165         * specifier.c (check_valid_locale_or_locale_type):
10166         * specifier.c (decode_locale):
10167         * specifier.c (decode_locale_type):
10168         * specifier.c (decode_locale_list):
10169         * specifier.c (check_valid_domain):
10170         * specifier.c (decode_specifier_tag_set):
10171         * specifier.c (Fcanonicalize_tag_set):
10172         * specifier.c (Fdefine_specifier_tag):
10173         * specifier.c (Fspecifier_tag_predicate):
10174         * specifier.c (check_valid_inst_list):
10175         * specifier.c (check_valid_spec_list):
10176         * specifier.c (decode_how_to_add_specification):
10177         * specifier.c (check_modifiable_specifier):
10178         * specifier.c (specifier_add_spec):
10179         * specifier.c (boolean_validate):
10180         * specifier.c (display_table_validate):
10181         [9].
10182
10183         * specifier.c (syms_of_specifier):
10184         Move some symbols to general-slots.h.
10185         [2].
10186
10187         * symbols.c:
10188         * symbols.c (Fmapatoms):
10189         * symbols.c (Fapropos_internal):
10190         Add GCPROs.
10191
10192         * symbols.c (set_default_buffer_slot_variable):
10193         * symbols.c (set_default_console_slot_variable):
10194         [1].
10195
10196         * symbols.c (defsymbol_massage_name_1):
10197         * symbols.c (defkeyword_massage_name):
10198         * symbols.c (deferror_1):
10199         * symbols.c (deferror):
10200         * symbols.c (deferror_massage_name_and_message):
10201         * symeval.h:
10202         * symeval.h (DEFSYMBOL):
10203         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
10204
10205         * symbols.c (syms_of_symbols):
10206         [2].
10207
10208         * symsinit.h:
10209         * symsinit.h (init_win32): New.
10210         Also new is syms_of_dialog_mswindows.
10211
10212         * syswindows.h:
10213         Add new Unicode macros, missing Cygwin wide-char functions,
10214         convenience conversion macros for Qmswindows_tstr, macros for
10215         encapsulating required MSWin <-> Cygwin filename conversions,
10216         prototype for dynamically-extracted (not in NT 3.51) functions.
10217
10218         * toolbar-x.c:
10219         Mule-verify.
10220
10221         * tooltalk.c (Fadd_tooltalk_message_arg):
10222         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
10223         * tooltalk.c (Fadd_tooltalk_pattern_arg):
10224         [7].
10225
10226         * tooltalk.c (syms_of_tooltalk):
10227         [2].
10228
10229         * unexnt.c:
10230         * unexnt.c (unexec):
10231         Fix up headers, declaration of unexec() to be more standard.
10232
10233 2000-07-20  Martin Buchholz  <martin@xemacs.org>
10234
10235         * offix.h: Revert change to guard macros - they're used in offix.c!
10236
10237 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10238
10239         * lisp.h: Defsubred Fdelete.
10240
10241         * console-msw.h:  (msprinter_default_printer): Added.
10242
10243         * console-msw.c (msprinter_canonicalize_console_connection):
10244         (msprinter_canonicalize_device_connection): Added.
10245
10246         * device-msw.c (msprinter_default_printer):
10247         (Fmswingows_get_default_printer):
10248         (signal_enum_priner_error):
10249         (Fmswingows_printer_list): Added.
10250
10251 2000-07-19  Martin Buchholz <martin@xemacs.org>
10252
10253         * XEmacs 21.2.35 is released.
10254
10255 2000-07-19  Martin Buchholz  <martin@xemacs.org>
10256
10257         * select-x.c (x_handle_selection_request):
10258         Text selected in xemacs and pasted into xterm failed to appear.
10259         Spelling fixes and cosmetic changes.
10260
10261 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10262
10263         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
10264         XEmacs frame (fix for doubling chars in dialog boxes).
10265
10266 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
10267
10268         * select.c (select_convert_in, select_convert_out):
10269         Don't call intern() every time.
10270
10271         * select.c (Qselect_convert_in, Qselect_convert_out): New.
10272         * select.c (vars_of_select): Initialise them.
10273
10274 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
10275
10276         * select.c (selection-coercible-types): New.
10277
10278         * select.c (own-selection-internal):
10279         * select.c (get-selection-internal):
10280         MULE bug fix - these should default to COMPOUND_TEXT and not
10281         STRING for MULE. I think.
10282
10283         * select.c (select_convert_out): Use selection-coercible-types
10284         to find types that we can attempt to perform coercions on.
10285
10286 2000-07-18  Martin Buchholz  <martin@xemacs.org>
10287
10288         * mule-wnnfns.c:
10289         * mule-canna.c:
10290         Add coding: cookie to identify encoding.
10291
10292         * mule-canna.c (CANNA_mode_keys): make static.
10293         Use proper prototypes, even for functions of no arguments.
10294         Remove external prototype for Fding().
10295
10296         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
10297
10298         * select.c (syms_of_select): Add missing DEFSUBR.
10299
10300 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
10301
10302         * select.c (get_selection_internal, own_selection_internal):
10303         Make the type default to STRING, rather than placing a nil type
10304         into Vselection_alist.
10305
10306 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
10307
10308         * gpmevent.c (tty_selection_exists_p):
10309         * gpmevent.c (tty_own_selection):
10310         Updated parameter lists.
10311
10312 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
10313
10314         * select.h (selection-alist): Removed declaration.
10315
10316         * select.h (get_local_selection):
10317         * select.c (get_local_selection):
10318         Made static.
10319
10320         * select.h (convert_selection): Removed declaration.
10321         * select.c (convert_selection): Removed.
10322         This function belongs in Lisp.
10323
10324         * select.h (select_convert_in): Declare.
10325         * select.h (select_convert_out): Declare.
10326         * select.c (select_convert_in): New.
10327         * select.c (select_convert_out): New.
10328         New conversion functions for other files to call.
10329
10330         * select.h (select_notify_buffer_kill): Declare.
10331         * select.c (select_notify_buffer_kill): New.
10332         New functions that get called from kill-buffer.
10333
10334         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
10335         X-specific lisp code.
10336
10337         * select.h: Declare some of the lisp-visible functions for
10338         external use.
10339
10340         * select.c (clean_local_selection_data): Removed. This was
10341         a disgusting function, and previously should have been in
10342         select-x.c in any case. The functionality is now provided
10343         in select-convert-from-integer (select.el).
10344
10345         * select.c (available-selection-types): Fixed stupidity where
10346         INTEGER and ATOM got added twice. Also add STRING when we see an
10347         extent.
10348
10349         * select.c (get-selection-internal): Removed symbol stripping. No
10350         longer causes conversion when data comes from the internal cache.
10351
10352         * select.c (syms_of_select): Added new functions.
10353
10354         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
10355         error checking - previously this called abort!
10356
10357         * select-x.c (x_own_selection): Changed comment.
10358
10359         * select-x.c (x_handle_selection_request): Use select_convert_out.
10360         Don't mess with selection-alist; it's an internal variable of select.c.
10361
10362         * select-x.c (x_get_foreign_selection): Use select_convert_in.
10363
10364         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
10365         rather than messing with selection-alist.
10366
10367         * select-msw.c (mswindows_get_foreign_selection):
10368         Use TO_INTERNAL_FORMAT rather than hacking.
10369
10370 2000-07-14  Martin Buchholz  <martin@xemacs.org>
10371
10372         * process-unix.c (unix_open_multicast_group):
10373         (unix_open_multicast_group): Remove useless casts.
10374
10375 2000-07-13  Martin Buchholz  <martin@xemacs.org>
10376
10377         * sound.c (Fplay_sound): Fix `unused variable' warning.
10378
10379         * emacs.c (main): Use correct type for _environ on SCO5.
10380
10381 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
10382
10383         * console.h (own_selection_method):
10384         * console.h (selection_exists_p_method):
10385         * console.h (available_selection_types_method): New.
10386         * console.h (register_selection_data_type_method): New.
10387         * console.h (selection_data_type_name): New.
10388
10389         * console-msw.h (mswindows_destroy_selection): Declare it.  New
10390         function & alist to track GlobalAlloc()'d handles that need
10391         releasing when the clipboard data gets replaced or emptied.
10392
10393         * event-msw.c (mswindows_wnd_proc): Call it.
10394
10395         * lisp.h, general.c (Qappend): New symbol representing a
10396         `how-to-add' mode.
10397
10398         * select.c (own-selection-internal):
10399         * select.c (selection-exists-p):
10400         * select.c (available-selection-types): New.
10401         * select.c (register-selection-data-type): New.
10402         * select.c (selection-data-type-name): New.  New functions to deal
10403         with device-specific selection data formats.
10404         * select.c (selection-converter-out-alist): Renamed.
10405         * select.c (selection-converter-in-alist): New.
10406         * select.c (selection-appender-alist): New.  Added new alists.
10407         * select.c (syms_of_select, vars_of_select): Added new symbols &
10408         variables.
10409         * select.c (get_local_selection): Split.
10410         * select.c: Removed spurious type checking - selections may now be
10411         of any type, not just strings.
10412         * select.c (own-selection-internal):
10413
10414         * select.h, select.c (convert_selection): New. Created
10415         convert_selection() function based on get_local_selection().
10416         * select.h, select.c (QCF_*): New symbols representing mswindows
10417         clipboard formats.
10418         * select.h, select.c (Qreplace_all, Qreplace_existing): New
10419         symbols representing `how-to-add' modes.
10420
10421         * select-msw.c (x_sym_p): New.
10422         * select-msw.c (symbol_to_ms_cf): New.
10423         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
10424         symbols & clipboard formats. Can also handle string names.
10425         * select-msw.c (mswindows_own_selection):
10426         * select-msw.c (mswindows_selection_exists_p):
10427         Added `data-type' parameter. Use it.
10428         * select-msw.c (mswindows_available_selection_types): New.
10429         * select-msw.c (mswindows_register_selection_data_type): New.
10430         * select-msw.c (mswindows_selection_data_type_name): New.
10431         * select-msw.c (mswindows_own_selection):
10432         * select-msw.c (mswindows_get_foreign_selection):
10433         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
10434         * select-msw.c (console_create_select_mswindows): Added new methods.
10435         * select-msw.c (mswindows_destroy_selection): New.
10436         * select-msw.c (Vhandle_alist): New list.
10437         * select-msw.c (mswindows_own_selection):
10438
10439         * select-x.c (x_own_selection):
10440         * select-x.c (x_selection_exists_p):
10441         * select-x.c: Added some comments about maybe using new
10442         functionality.
10443         * select-x.c (x_own_selection):
10444
10445         * specifier.c: Remove definition of Qappend (now in general.c)
10446         * specifier.c (syms_of_specifier): Remove Qappend.
10447
10448 2000-07-12  Martin Buchholz  <martin@xemacs.org>
10449
10450         * config.h.in: Add socklen_t.
10451
10452         * s/decosf4-0.h: No special compiler flags needed or desired.
10453         In particular, undefine _BSD for DEC OSF 4.0.
10454
10455 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10456
10457         * redisplay-msw.c (msprinter_frame_output_end): Added.
10458         (console_type_create_redisplay_mswindows): Referred the above.
10459
10460         * frame.c (setup_frame_without_minibuffer): Do not create a
10461         default minibuffer frame on a printer device.
10462
10463         * frame-msw.c (apply_dc_geometry): Added.
10464         (msprinter_start_page):
10465         (msprinter_init_frame_3):
10466         (msprinter_eject_page): Use it.
10467
10468         * console-msw.h (struct msprinter_frame): Added pix_left and top,
10469         and removed residual duplex and orientation properties.
10470
10471 2000-07-11  Martin Buchholz  <martin@xemacs.org>
10472
10473         * eval.c (function_argcount): Work around a DEC CC compiler bug.
10474
10475         * unexalpha.c: Remove system prototypes from C sources!
10476
10477 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
10478
10479         * eval.c: Remove references to M-x edit-options in DEFUNs for
10480         `defvar' and `defconst'.
10481
10482 2000-07-09  Martin Buchholz  <martin@xemacs.org>
10483
10484         * config.h.in: Remove SMART_INCLUDE hackery.
10485
10486         PostgreSQL hacking:
10487         * config.h.in: Don't use SMART_INCLUDE.
10488
10489         * postgresql.h: Include libpq-fe.h here.  Fix typo.
10490         * inline.c: Simply #include "postgresql.h"
10491         * postgresql.c:
10492         - Don't use SMART_INCLUDE
10493         - Use simply "const".
10494         - Use standard doc string conventions.
10495         - Use correct type for result of PQstatus.
10496
10497 2000-07-09  Martin Buchholz  <martin@xemacs.org>
10498
10499         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
10500
10501         C++ compilation changes.
10502         * config.h.in (EXTERN_C): Define.
10503         * config.h.in (not): This is also a C++ keyword.
10504         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
10505         * cm.c: Use EXTERN_C.
10506         * redisplay-tty.c: Use EXTERN_C.
10507         * sysdep.c: Use EXTERN_C.  Remove Gould support.
10508
10509 2000-07-09  Martin Buchholz  <martin@xemacs.org>
10510
10511         * general.c: Remove duplicate definition for Qfunction.
10512
10513 2000-07-08  Ben Wing  <ben@xemacs.org>
10514
10515         * device-msw.c (msprinter_init_device):
10516         * device-msw.c (sync_printer_with_devmode):
10517         * device-msw.c (handle_devmode_changes):
10518         * device-msw.c (print_dialog_worker):
10519         * device-msw.c (Fmsprinter_apply_settings):
10520         * device-msw.c (hash_devmode):
10521         * device-msw.c (Fmsprinter_settings_despecialize):
10522         use Qmswindows_tstr, not Qctext.
10523
10524         * vm-limit.c (check_memory_limits):
10525         avoid infinite loop printing warning messages.
10526
10527 2000-07-05  Craig Lanning  <lanning@scra.org>
10528
10529         * Makefile.in.in: Add support for including the Windows resources
10530         when building with the cygwin and mingw targets.
10531
10532         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
10533         not set or not correct.
10534         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
10535         (init_initial_directory): Don't try to use $PWD on the
10536         WIN32_NATIVE target.
10537
10538         * s\cygwin32.h:
10539         [[Add -mwindows to eliminate console window.]] not required --ben
10540         (HAVE_NATIVE_SOUND): removed; now handled by configure.
10541         (MAIL_USE_POP): removed; now handled by configure.
10542
10543         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
10544         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
10545         (HAVE_NATIVE_SOUND): removed; now handled by configure.
10546         (MAIL_USE_POP): removed; now handled by configure.
10547         (ENCAPSULATE_STAT): from Dan Holmsand, added.
10548         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
10549         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
10550         constant string.
10551         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
10552         up from <winsock.h> via systime.h.
10553         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
10554         (getpagesize): from Dan Holmsand, added.
10555         Added #endif which was left dangling by Ben's mega patch; added
10556         comment to help prevent this in the future.
10557
10558         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
10559
10560 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10561
10562         * console-msw.h (struct mswindows_device): Removed unnecessary
10563         cached device geometry values.
10564         Added update_tick and an accessor macro.
10565         (Lisp_Devmode): Added lrecord declaration.
10566         (struct msprinter_device): Contain devmode as a Lisp object.
10567         Added mswindows_get_selected_frame_hwnd();
10568
10569         * console.h (struct console_methods): Indentation nitpicking.
10570
10571         * device-msw.c (mswindows_init_device): Do not initialize geometry
10572         cache. Initialize update tick.
10573         (mswindows_device_system_metrics): Ask the device for its geometry.
10574         (global_free_2_maybe):
10575         (devmode_to_hglobal):
10576         (handle_printer_changes):
10577         (ensure_not_printing):
10578         (print_dialog_worker):
10579         (Fmsprinter_print_setup_dialog):
10580         (Fmsprinter_print_dialog):
10581         (plist_get_margin):
10582         (plist_set_margin):
10583         (Fmsprinter_page_setup_dialog): Added functions.
10584         (sync_printer_with_devmode):
10585         (handle_devmode_changes):
10586         (Fmsprinter_get_settings):
10587         (Fmsprinter_select_settings):
10588         (Fmsprinter_apply_settings):
10589         (allocate_devmode):
10590         (Fmsprinter_settings_copy):
10591         (Fmsprinter_settings_despecialize):
10592         (print_devmode):
10593         (finalize_devmode):
10594         (equal_devmode):
10595         (hash_devmode): Added functions
10596         (syms_of_device_mswindows): Init devmode lrecord class.
10597
10598         * device.h: Added an exfun for find-device.
10599
10600         * event-msw.c (mswindows_wnd_proc): Do not update the cached
10601         geometry; although, recreate the device compatible DC.
10602
10603         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
10604         (msprinter_init_frame_3):
10605         (msprinter_frame_property):
10606         (msprinter_internal_frame_property_p):
10607         (msprinter_frame_properties):
10608         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
10609         print job properties (will move to device settings).
10610
10611         * lisp.h: Added symbols.
10612
10613         * general.c (syms_of_general): Declared them.
10614
10615         * hash.c (string_hash): Added.
10616
10617         * lrecord.h (lrecord_type): Added devmode lrecord type.
10618
10619 2000-07-02  Mike Sperber <mike@xemacs.org>
10620
10621         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
10622         FreeBSD 4.0.
10623
10624 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
10625
10626         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
10627         integer.
10628
10629 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
10630
10631         * data.c (Fstring_to_number): Don't recognize floating point if
10632         base is not 10.
10633
10634 2000-06-22  Martin Buchholz  <martin@xemacs.org>
10635
10636         * glyphs-widget.c (tab_control_query_geometry):
10637         (widget_query_geometry):
10638         (button_query_geometry):
10639         * glyphs.c (text_query_geometry):
10640         Enforce type correctness.
10641
10642 2000-06-18  Martin Buchholz  <martin@xemacs.org>
10643
10644         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
10645         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
10646
10647 2000-06-17  Martin Buchholz  <martin@xemacs.org>
10648
10649         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
10650         conflicts with gcc's fixincluded version of FOO.h.
10651
10652         * glyphs.h (image_instance_geometry): Remove trailing `,'
10653
10654 2000-06-08  Mike Alexander  <mta@arbortext.com>
10655
10656         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
10657         (shove_thread): Don't write the same output twice
10658         (make_ntpipe_output_stream): Increase priority of shove thread
10659         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
10660         chance to run
10661         (ntpipe_shove_closer): Don't delete the pipe until we're done with
10662         it.
10663
10664 2000-06-12  Ben Wing  <ben@xemacs.org>
10665
10666         * s\mingw32.h (sigset):
10667         * s\windowsnt.h (sigset):
10668         rename msw_ to mswindows_ for consistency with general convention.
10669
10670 2000-06-12  Ben Wing  <ben@xemacs.org>
10671
10672         * console-msw.c:
10673         * console-msw.c (mswindows_get_console_hwnd):
10674         * console-msw.c (mswindows_ensure_console_allocated):
10675         * console-msw.c (mswindows_hide_console):
10676         * console-msw.c (mswindows_show_console):
10677         * console-msw.c (mswindows_ensure_console_buffered):
10678         * console-msw.c (mswindows_output_console_string):
10679         * console-msw.c (mswindows_windows9x_p):
10680         * console-msw.h:
10681         * device-msw.c (mswindows_get_workspace_coords):
10682         * device-msw.c (mswindows_device_system_metrics):
10683         * dialog-msw.c (mswindows_popup_dialog_box):
10684         * event-msw.c (mswindows_wnd_proc):
10685         * frame-msw.c (mswindows_size_frame_internal):
10686         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
10687         * menubar-msw.c (displayable_menu_item):
10688         * menubar-msw.c (mswindows_char_is_accelerator):
10689         * nt.c:
10690         * nt.c (mswindows_sigset):
10691         * nt.c (mswindows_sigrelse):
10692         * nt.c (mswindows_sigpause):
10693         * nt.c (mswindows_raise):
10694         * nt.c (timer_proc):
10695         * ntproc.c:
10696         * ntproc.c (find_child_console):
10697         * ntproc.c (sys_kill):
10698         * print.c:
10699         * print.c (std_handle_out_external):
10700         * process-nt.c (find_child_console):
10701         * process-nt.c (send_signal_the_95_way):
10702         * process-nt.c (ensure_console_window_exists):
10703         * process-nt.c (nt_create_process):
10704         * syssignal.h:
10705         rename msw_ to mswindows_ for consistency with general convention.
10706
10707         * emacs.c:
10708         * dumper.c:
10709         include nt.h, not syswindows.h.
10710
10711         * nt.c (mswindows_fstat):
10712         * nt.c (mswindows_stat):
10713         prefix mswindows_ instead of attempting to directly override the
10714         library functions.  fix declarations.
10715
10716         * nt.h:
10717         include syswindows.h.  move some sysdep.h stuff here.
10718
10719         * ntheap.h:
10720         include syswindows.h, not <windows.h>.
10721
10722         * ntplay.c:
10723         clean up headers.
10724
10725         * sysdep.c:
10726         clean up headers.
10727
10728         * sysdep.c (sys_fstat):
10729         * sysdep.c (sys_stat):
10730         call mswindows versions when appropriate.
10731
10732         * sysdep.h:
10733         move mswin decls to nt.h.
10734
10735         * syswindows.h:
10736         add long comment describing appropriate use of the various windows
10737         headers.
10738
10739 2000-06-11  Ben Wing  <ben@xemacs.org>
10740
10741         * device-x.c: Correct doc string for sixth arg of x-get-resource.
10742
10743 2000-06-10  Ben Wing  <ben@xemacs.org>
10744
10745         * Makefile.in.in (release):
10746         Correction to make sure xemacs.exe always dumped when correct.
10747
10748         * alloca.c:
10749         * balloon_help.c:
10750         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
10751
10752         * buffer.c (set_buffer_internal):
10753         [[[[2]]]]: Remove HAVE_FEP code.
10754
10755         * buffer.c (init_initial_directory):
10756         [3].
10757
10758         * bytecode.c:
10759         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
10760         individual files.
10761
10762         * callproc.c:
10763         * callproc.c (call_process_cleanup):
10764         * callproc.c (Fold_call_process_internal):
10765         * callproc.c (child_setup):
10766         * callproc.c (getenv_internal):
10767         * callproc.c (init_callproc):
10768         * callproc.c (vars_of_callproc):
10769         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
10770         __CYGWIN32__ -> CYGWIN.
10771         DOS_NT -> WIN32_NATIVE.
10772         Remove MSDOS support/references, converting to WIN32_NATIVE
10773           where correct.
10774         __MINGW32__ -> MINGW.
10775         Fix windows.h includes.
10776         Remove bogus HAVE_NTGUI.
10777
10778         * config.h.in:
10779         [2].
10780
10781         * console-msw.c:
10782         mswindows_message_outputted added for use in allowing startup
10783         errors on the console to be seen.
10784
10785         * console-msw.c (msw_ensure_console_allocated):
10786         * console-msw.c (msw_output_console_string):
10787         * console-msw.c (DHEADER):
10788         * console-msw.c (DOPAQUE_DATA):
10789         * console-msw.c (DEVENT):
10790         * console-msw.c (DCONS):
10791         * console-msw.c (DCONSCDR):
10792         * console-msw.c (DSTRING):
10793         * console-msw.c (DVECTOR):
10794         * console-msw.c (DSYMBOL):
10795         * console-msw.c (DSYMNAME):
10796         Fix warnings.
10797
10798         * console-stream.c (stream_init_console):
10799         Fix text/binary problems.
10800
10801         * device-msw.c:
10802         * device-msw.c (mswindows_finish_init_device):
10803         * device-msw.c (mswindows_delete_device):
10804         [1].
10805
10806         * device.c (handle_asynch_device_change):
10807         [3].
10808
10809         * dgif_lib.c:
10810         * dgif_lib.c (DGifOpenFileName):
10811         * dgif_lib.c (DGifOpenFileHandle):
10812         * dgif_lib.c (DGifGetLine):
10813         * dgif_lib.c (DGifGetPixel):
10814         Added config.h/lisp.h, fix up includes.
10815         [1].
10816
10817         * dired-msw.c:
10818         [4].
10819
10820         * dired.c:
10821         * dired.c (file_name_completion):
10822         * dired.c (Ffile_attributes):
10823         * dired.c (syms_of_dired):
10824         [1].
10825
10826         * dumper.c:
10827         * dumper.c (pdump_file_unmap):
10828         * dumper.c (pdump_load):
10829         [1].
10830
10831         * editfns.c:
10832         * editfns.c (Ftemp_directory):
10833         * editfns.c (user_login_name):
10834         * editfns.c (Fuser_real_login_name):
10835         * editfns.c (get_home_directory):
10836         [1].
10837
10838         * elhash.c (finish_marking_weak_hash_tables):
10839         [[[[5]]]]: Fix GCC warnings.
10840
10841         * emacs.c:
10842         * emacs.c (mswindows_handle_hardware_exceptions):
10843         * emacs.c (make_arg_list_1):
10844         * emacs.c (main_1):
10845         * emacs.c (Fkill_emacs):
10846         * emacs.c (Fdump_emacs):
10847         [1].
10848         Fix problems with nested crashes, add long comment.
10849
10850         * event-Xt.c (init_event_Xt_late):
10851         [1].
10852
10853         * event-msw.c:
10854         * event-msw.c (mswindows_dde_callback):
10855         * event-msw.c (mswindows_handle_sticky_modifiers):
10856         * event-msw.c (mswindows_wnd_proc):
10857         [1].
10858         [5].
10859
10860         * events.c (character_to_event):
10861         [1].
10862
10863         * fileio.c:
10864         * fileio.c (Ffile_name_directory):
10865         * fileio.c (Ffile_name_nondirectory):
10866         * fileio.c (directory_file_name):
10867         * fileio.c (Fexpand_file_name):
10868         * fileio.c (Fsubstitute_in_file_name):
10869         * fileio.c (Ffile_name_absolute_p):
10870         * fileio.c (check_executable):
10871         * fileio.c (Ffile_readable_p):
10872         * fileio.c (Ffile_accessible_directory_p):
10873         * fileio.c (Ffile_modes):
10874         * fileio.c (Funix_sync):
10875         * fileio.c (vars_of_fileio):
10876         [1]. [4].
10877
10878         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
10879
10880         Expand getdefdir defn.
10881         Fix bogus rename() comment.
10882
10883         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
10884         to use standard XEmacs include files, e.g. sysfile.h, rather
10885         than system-specific includes.
10886
10887         * fns.c:
10888         * fns.c (Fsubseq):
10889         [5]. [6].
10890
10891         * frame.c (vars_of_frame):
10892         [1].
10893
10894         * getloadavg.c:
10895         * getloadavg.c (getloadavg):
10896         [1]. [6].
10897         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
10898         (We don't use it elsewhere in the code; just add a comment.)
10899
10900         * gif_io.c:
10901         [6].
10902         Add config.h.
10903
10904         * glyphs-msw.c:
10905         * glyphs-msw.c (mswindows_resource_instantiate):
10906         [1].
10907
10908         * glyphs-x.c (x_native_layout_instantiate):
10909         [5].
10910
10911         * gui-msw.c (Fmswindows_shell_execute):
10912         [1].
10913
10914         * insdel.c:
10915         [4].
10916
10917         * lisp.h:
10918         [4]. [5].
10919
10920         * lread.c (locate_file_in_directory_mapper):
10921         [1].
10922
10923         * lstream.c:
10924         [4].
10925
10926         * mem-limits.h:
10927         * mem-limits.h (get_lim_data):
10928         [1].
10929
10930         * menubar-msw.c:
10931         [4].
10932
10933         * ndir.h:
10934         [1].
10935
10936         * nt.c:
10937         * nt.c (getwd):
10938         * nt.c (closedir):
10939         * nt.c (rva_to_section):
10940         * nt.c (mswindows_executable_type):
10941         [1]. [6].
10942         Fix closedir() defn.
10943
10944         * nt.h:
10945         [[[[8]]]]: *_OK defs moved to sysfile.h.
10946
10947         * ntproc.c:
10948         [6]. [7].
10949
10950         * objects-x.c:
10951         [4].
10952
10953         * print.c:
10954         * print.c (std_handle_out_external):
10955         [1]. [4].
10956
10957         * process-nt.c:
10958         * process-nt.c (nt_create_process):
10959         [6].
10960         try to fix process quoting somewhat.
10961
10962         * process-unix.c (unix_create_process):
10963         [1].
10964
10965         * process.c:
10966         * process.c (vars_of_process):
10967         Add Vnull_device.
10968
10969         * process.h:
10970         [1].
10971
10972         * realpath.c:
10973         * realpath.c (xrealpath):
10974         [1].
10975
10976         * redisplay-tty.c (init_tty_for_redisplay):
10977         [3].
10978
10979         * redisplay.c:
10980         [4]. [6].
10981
10982         * scrollbar-msw.c:
10983         [4].
10984
10985         * sheap.c:
10986         * sheap.c (more_static_core):
10987         * sheap.c (report_sheap_usage):
10988         [5]. [6].
10989
10990         * signal.c:
10991         * signal.c (alarm_signal):
10992         [1]. [6].
10993
10994         * sound.c:
10995         [6].
10996
10997         * strftime.c:
10998         * strftime.c (zone_name):
10999         [1]. [5].
11000
11001         * symsinit.h (init_sunpro):
11002         [1].
11003
11004         * syscommctrl.h:
11005         commctrl.h not in Cygwin b20.1.
11006
11007         * sysdep.c:
11008         * sysdep.c (endif):
11009         * sysdep.c (sys_subshell):
11010         * sysdep.c (init_baud_rate):
11011         * sysdep.c (emacs_get_tty):
11012         * sysdep.c (emacs_set_tty):
11013         * sysdep.c (tty_init_sys_modes_on_device):
11014         * sysdep.c (init_system_name):
11015         * sysdep.c (sys_open):
11016         * sysdep.c (interruptible_open):
11017         * sysdep.c (sys_fopen):
11018         * sysdep.c (sys_mkdir):
11019         * sysdep.c (sys_rename):
11020         * sysdep.c (get_process_times_1):
11021         [1]. [6].
11022
11023         * sysdep.h:
11024         [1].
11025
11026         * sysdir.h:
11027         * sysdir.h (DIRENTRY_NONEMPTY):
11028         [1]. [6].
11029
11030         * sysdll.c (dll_init):
11031         * sysdll.h:
11032         [1].
11033
11034         * sysfile.h:
11035         [1]. [6]. [8].
11036         added text/binary defs.
11037
11038         * sysfloat.h:
11039         [1].
11040
11041         * sysproc.h:
11042         * sysproc.h (EDESTADDRREQ):
11043         * sysproc.h (poll_fds_for_input):
11044         [1]. [6].
11045
11046         * syspwd.h:
11047         [6].
11048
11049         * syssignal.h:
11050         [1].
11051
11052         * systime.h:
11053         [1]. [6].
11054
11055         * systty.h:
11056         [1].
11057
11058         * syswindows.h:
11059         [1].
11060         Always define WIN32_LEAN_AND_MEAN.
11061
11062         * unexcw.c (unexec):
11063         [5].
11064
11065         * unexec.c:
11066         * unexec.c (copy_text_and_data):
11067         * unexec.c (adjust_lnnoptrs):
11068         [1].
11069
11070         * unexnt.c:
11071         * unexnt.c (_start):
11072         [1].
11073
11074 2000-06-07  Ben Wing  <ben@xemacs.org>
11075
11076         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
11077         was used only as a model.  We've long since extracted any useful
11078         logic or code out of this. (I just did an exhaustive search.)
11079
11080         * s\msdos.h: Removed.
11081
11082         * s\windows95.h: Removed.
11083
11084 2000-06-10  Ben Wing  <ben@xemacs.org>
11085
11086         * s\cygwin32.h:
11087         [1]. [5].
11088         Don't use extern with fun defs.
11089
11090         * s\mingw32.h:
11091         [1]. [7].
11092         Remove nt\inc include.
11093         Remove getdisk, getdefdir. (The former is unused, the latter
11094         expanded in fileio.h.)
11095
11096         * s\windowsnt.h:
11097         * s\windowsnt.h (WIN32_NATIVE):
11098         * s\windowsnt.h (HAVE_STRCASECMP):
11099         [1]. [7].
11100         Add long comment about preprocessor changes.
11101         Remove getdisk, getdefdir. (The former is unused, the latter
11102         expanded in fileio.h.)
11103
11104 2000-06-10  Ben Wing  <ben@xemacs.org>
11105
11106         * m\arm.h:
11107         * m\delta.h:
11108         * m\intel386.h:
11109         * m\sequent.h:
11110         * m\template.h:
11111         * m\windowsnt.h:
11112         [1].
11113         Remove bogus/unused NO_SOCK_SIGIO.
11114
11115 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
11116
11117         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
11118         not an Emchar.
11119
11120 2000-06-04  Mike Sperber <mike@xemacs.org>
11121
11122         * casetab.c (set_case_table): For `set-standard-case-table',
11123         actually deposit the new case tables where the rest of XEmacs can
11124         see them.
11125
11126 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
11127
11128         * data.c (Faset): Don't cast XCHAR() to unsigned char.
11129
11130 2000-06-05  Ben Wing  <ben@xemacs.org>
11131
11132         * callproc.c (child_setup): Don't do close_load_descs() under
11133         MS Windows.  Put in a comment explaining why.
11134
11135 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
11136
11137         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
11138         Toolkit shell" which breaks `kill-compilation' on Windows NT
11139         native, retaining STDERR handling improvements.
11140
11141 2000-06-01  Andreas Jaeger  <aj@suse.de>
11142
11143         * s/s390.h: Support for S390, based on a patch by Martin
11144         Schwidefsky <schwidefsky@de.ibm.com>.
11145
11146 2000-05-30  Andy Piper  <andy@xemacs.org>
11147
11148         * window.c (allocate_window):
11149         (make_dummy_parent):
11150         (Fset_window_configuration): use new hashtable type.
11151
11152         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
11153         (struct image_instantiator_methods):
11154         (struct Lisp_Image_Instance): make instance geometry signed.
11155
11156         * glyphs.c (instantiate_image_instantiator):
11157         (image_instance_query_geometry):
11158         (image_instance_layout):
11159         (image_instance_layout):
11160         (query_string_geometry):
11161         (text_query_geometry):
11162         (image_instantiate):
11163         (image_instantiate):
11164         (cache_subwindow_instance_in_frame_maybe):
11165         (subwindow_query_geometry): make instance geometry signed.
11166
11167         * glyphs-widget.c (widget_query_geometry):
11168         (widget_layout):
11169         (button_query_geometry):
11170         (tree_view_query_geometry):
11171         (tab_control_query_geometry):
11172         (layout_query_geometry):
11173         (layout_layout):
11174         (native_layout_layout): make instance geometry signed.
11175
11176 2000-05-29  Olivier Galibert  <galibert@pobox.com>
11177
11178         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
11179         constant.
11180
11181         * general.c (syms_of_general): Add Qfull_assoc symbol.
11182
11183         * data.c (finish_marking_weak_lists): Mark full-assoc lists
11184         correctly.
11185         (decode_weak_list_type): Decode full-assoc type.
11186         (encode_weak_list_type): Encode full-assoc type.
11187         (Fmake_weak_list): Update doc string.
11188
11189 2000-05-30  Andy Piper  <andy@xemacs.org>
11190
11191         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
11192
11193         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
11194         (decode_hash_table_weakness): ditto.
11195         (Fhash_table_weakness): ditto.
11196         (Fhash_table_type): ditto.
11197         (finish_marking_weak_hash_tables): ditto.
11198         (hash_table_weakness_validate): ditto.
11199         (syms_of_elhash): ditto.
11200
11201 2000-05-28  Martin Buchholz <martin@xemacs.org>
11202
11203         * XEmacs 21.2.34 is released.
11204
11205 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
11206
11207         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
11208         start cache.
11209         (updating_line_start_cache): Gone.
11210         (regenerate_window): Replace resetting of VERTICAL_CLIP by
11211         generic code to force a minimum of 1 line laid out in the
11212         CMOTION_DISP case.
11213
11214 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
11215
11216         * glyphs.c (instantiate_image_instantiator): Check for initialized
11217         height & width no longer special cases IMAGE_NOTHING.
11218         (nothing_instantiate): Set height and width of instance.
11219
11220 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
11221
11222         * unexelf.c (unexec): Search for ".data" section.
11223         Initialize new_data2_offset from old_data_index.
11224         Remove redundant check for ElfW.
11225
11226 2000-05-23  Andy Piper  <andy@xemacs.org>
11227
11228         * glyphs.c (get_image_instantiator_governing_domain): allow more
11229         specific domains as the governing domain rather than expecting an
11230         exact match. This fixes problems with layouts.
11231
11232 2000-05-22  Andy Piper  <andy@xemacs.org>
11233
11234         * redisplay-output.c (compare_runes): check for non-images
11235
11236         * glyphs.c (set_glyph_dirty_p): ditto.
11237         (update_glyph_cachel_data): ditto.
11238
11239         * glyphs-widget.c (layout_post_instantiate): ditto.
11240         (layout_post_instantiate): ditto.
11241
11242         * event-msw.c (mswindows_wnd_proc): warning removal.
11243
11244 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
11245
11246         * s\mingw32.h: Added #undef for CLASH_DETECTION.
11247
11248         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
11249
11250         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
11251
11252         * nt.c (rva_to_section): mingw32 needs rva_to_section.
11253         (mswindows_executable_type): mingw32 now has enough headers for
11254         this to work.
11255
11256 2000-05-20  Andy Piper  <andy@xemacs.org>
11257
11258         * console-msw.c (mswindows_output_last_error): ; -> ,
11259
11260 2000-05-12  Andy Piper  <andy@xemacs.org>
11261
11262         * console-msw.c (FROB): compare ints with ints.
11263
11264 2000-05-11  Andy Piper  <andy@xemacs.org>
11265
11266         * glyphs-x.c (x_finalize_image_instance): make minimal build
11267         happy.
11268
11269 2000-05-20  Ben Wing  <ben@xemacs.org>
11270
11271         * event-Xt.c:
11272         * event-Xt.c (vars_of_event_Xt):
11273         move modifier-keys-are-sticky to event-stream.c.
11274
11275         * event-msw.c:
11276         * event-msw.c (mswindows_enqueue_mouse_button_event):
11277         * event-msw.c (key_needs_default_processing_p):
11278         * event-msw.c (XEMSW_LCONTROL):
11279         * event-msw.c (mswindows_handle_sticky_modifiers):
11280         * event-msw.c (FROB):
11281         * event-msw.c (clear_sticky_modifiers):
11282         * event-msw.c (output_modifier_keyboard_state):
11283         * event-msw.c (output_alt_keyboard_state):
11284         * event-msw.c (mswindows_wnd_proc):
11285         * event-msw.c (mswindows_modifier_state):
11286         * event-msw.c (emacs_mswindows_handle_magic_event):
11287         implement sticky modifiers.
11288
11289         * event-stream.c:
11290         * event-stream.c (vars_of_event_stream):
11291         move modifier-keys-are-sticky here.
11292
11293         * lisp.h:
11294         add CHECK_FUNCTION.
11295
11296         * rangetab.c:
11297         implement map-range-table.
11298
11299
11300 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
11301
11302         * redisplay-tty.c (reset_tty_modes):
11303         (tty_redisplay_shutdown): Adjust argument type to
11304         tty_frame_output_end.
11305
11306 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
11307
11308         * eval.c (Fbacktrace): Don't output a line with only right
11309         parenthesis.
11310
11311 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
11312
11313         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
11314         (Fpq_reset_poll): Ditto.
11315
11316 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
11317
11318         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
11319
11320 2000-05-16  Ben Wing  <ben@xemacs.org>
11321
11322         * buffer.c:
11323         * buffer.c (dfc_convert_to/from_internal_format):
11324         * buffer.c (reinit_vars_of_buffer):
11325         Fix conversion functions to allow reentrancy.
11326
11327         * console-msw.c:
11328         * console-msw.c (mswindows_output_last_error):
11329         New fun, generally useful -- output a human-readable
11330         version of GetLastError() on the console.
11331
11332         * console-msw.h:
11333         * console-msw.h (struct mswindows_frame):
11334         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
11335
11336         * console-stream.c (stream_output_begin):
11337         * console-stream.c (stream_output_end):
11338         * console-stream.c (stream_output_vertical_divider):
11339         * console-stream.c (stream_clear_region):
11340         * console-stream.c (stream_flash):
11341         * console-stream.c (console_type_create_stream):
11342         Delete blank stream methods, not needed.
11343
11344         * console.h (struct console_methods):
11345         Split begin/end methods into window and frame.
11346
11347         * event-msw.c:
11348         * event-msw.c (mswindows_handle_paint):
11349         * event-msw.c (output_alt_keyboard_state):
11350         * event-msw.c (mswindows_wnd_proc):
11351         * event-msw.c (vars_of_event_mswindows):
11352         Comment about problems with ignored-expose.
11353         Define mswindows-debug-events; not really implemented.
11354
11355         * frame-msw.c (mswindows_init_frame_1):
11356         random cleanups.
11357
11358         * glyphs-msw.c:
11359         * glyphs-msw.c (begin_defer_window_pos):
11360         * glyphs-msw.c (mswindows_unmap_subwindow):
11361         * glyphs-msw.c (mswindows_map_subwindow):
11362         * glyphs-msw.c (mswindows_resize_subwindow):
11363         Use DeferWindowPos to reduce flashing when mapping/unmapping.
11364
11365         * glyphs.c (make_image_instance_1):
11366         Fix crash.
11367
11368         * gutter.c (Fredisplay_gutter_area):
11369         Use new begin/end methods.
11370
11371         * lisp.h (Dynarr_new2):
11372         New creation fun.
11373
11374         * redisplay-msw.c:
11375         * redisplay-msw.c (mswindows_frame_output_begin):
11376         * redisplay-msw.c (mswindows_frame_output_end):
11377         * redisplay-msw.c (console_type_create_redisplay_mswindows):
11378         New begin/end methods -- handle DeferWindowPos.
11379
11380         * redisplay-output.c (redisplay_move_cursor):
11381         * redisplay-output.c (redraw_cursor_in_window):
11382         * redisplay-output.c (redisplay_update_line):
11383         * redisplay-output.c (redisplay_output_window):
11384         New begin/end methods.
11385
11386         * redisplay-tty.c:
11387         * redisplay-tty.c (tty_frame_output_begin):
11388         * redisplay-tty.c (tty_frame_output_end):
11389         * redisplay-tty.c (console_type_create_redisplay_tty):
11390         New begin/end methods.
11391
11392         * redisplay-x.c:
11393         * redisplay-x.c (x_window_output_begin):
11394         * redisplay-x.c (x_window_output_end):
11395         * redisplay-x.c (console_type_create_redisplay_x):
11396         New begin/end methods.
11397
11398         * redisplay.c (redisplay_frame):
11399         * redisplay.c (Fredisplay_echo_area):
11400         New begin/end methods.
11401         use MAYBE_DEVMETH for clear_frame; it may not exist.
11402
11403         * window.h (WINDOW_XFRAME):
11404         WINDOW_XFOO macros -- get locale and decode struct pointer.
11405
11406
11407 2000-05-12  Ben Wing  <ben@xemacs.org>
11408
11409         * emacs.c:
11410         * emacs.c (ensure_no_quitting_from_now_on):
11411         * emacs.c (fatal_error_signal):
11412         * emacs.c (mswindows_handle_hardware_exceptions):
11413         * emacs.c (main):
11414         * emacs.c (Fkill_emacs):
11415         * emacs.c (shut_down_emacs):
11416         * emacs.c (assert_failed):
11417         various improvements in fatal error handling.
11418
11419         * eval.c:
11420         move preparing_for_armageddon to emacs.c.
11421
11422         * lisp.h:
11423         declare fatal_error_in_progress.
11424
11425         * print.c:
11426         * print.c (std_handle_out_external):
11427         * print.c (std_handle_out_va):
11428         * print.c (stderr_out):
11429         * print.c (stdout_out):
11430         use console under mswin when no standard output.
11431         don't do code conversion during fatal error.
11432
11433         * scrollbar.c (Fscrollbar_page_up):
11434         * scrollbar.c (Fscrollbar_page_down):
11435         fix missing else.  reindent.
11436
11437 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
11438
11439         Emergency fix.
11440
11441         * glyphs.h (GLYPH_CACHEL_DESCENT):
11442         (GLYPH_CACHEL_DESCENT):
11443         (GLYPH_CACHEL_DESCENT):
11444         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
11445         used in case these are inline functions.
11446         Use more absurd values to error check.
11447
11448         include window.h for error check functions.
11449
11450 2000-05-11  Ben Wing  <ben@xemacs.org>
11451
11452         * cmdloop.c (Freally_early_error_handler):
11453         Display message box under windows; otherwise, message will disappear
11454         before it can be viewed.
11455
11456         * console-msw.c:
11457         * console-msw.c (Fmswindows_message_box):
11458         * console-msw.c (FROB):
11459         * console-msw.c (syms_of_console_mswindows):
11460         Define new fun `mswindows-message-box'.
11461         #### I will merge this into `popup-dialog-box'; just give me
11462         a bit of time.
11463
11464         * general.c:
11465         * general.c (syms_of_general):
11466         Some new symbols used in `mswindows-message-box'.
11467
11468         * glyphs.c:
11469         * glyphs.c (Fset_image_instance_property):
11470         put warning in this fun.
11471
11472         * glyphs.h:
11473         * glyphs.h (GLYPH_CACHEL_WIDTH):
11474         * glyphs.h (GLYPH_CACHEL_ASCENT):
11475         * glyphs.h (GLYPH_CACHEL):
11476         * glyphs.h (GLYPH_CACHEL_GLYPH):
11477         define error-checking versions to try to catch a bug i've seen --
11478         redisplay gets in an infinite loop because the glyph width of the
11479         continuation glyph is 65535.
11480
11481         * lisp.h:
11482         Extern message-box stuff.
11483
11484         * window.c (allocate_window):
11485         * window.c (make_dummy_parent):
11486         * window.c (Fset_window_configuration):
11487         Use EQUAL not EQ for subwindow caches to make them work a bit
11488         better. (Something is still very broken.)
11489
11490
11491 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
11492
11493         * glyphs.c (image_instantiate): Suppress gcc warnings.
11494         (Fmake_image_instance): Fix doc string.
11495         * specifier.c (Fmake_specifier): Ditto.
11496
11497 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
11498
11499         * paths.h.in (PATH_LOCK): Removed.
11500         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
11501         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
11502
11503 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
11504
11505         * fns.c (Ffeaturep): Update e-mail address in doc-string.
11506         Document (featurep '(and xemacs 21.02)).
11507
11508 2000-05-09  Ben Wing  <ben@xemacs.org>
11509
11510         * buffer.c (complex_vars_of_buffer):
11511         update modeline-format doc.
11512
11513         * device.h:
11514         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
11515
11516         * emacs.c:
11517         timeline of all released versions of Emacs, for use in creating
11518         authorship comments and in synching up.
11519
11520         * glyphs-widget.c (image_instantiator_buttons):
11521         * glyphs-widget.c (image_instantiator_edit_fields):
11522         * glyphs-widget.c (image_instantiator_combo_box):
11523         * glyphs-widget.c (image_instantiator_scrollbar):
11524         * glyphs-widget.c (image_instantiator_progress_guage):
11525         * glyphs-widget.c (image_instantiator_tree_view):
11526         * glyphs-widget.c (image_instantiator_tab_control):
11527         * glyphs-widget.c (image_instantiator_labels):
11528         * glyphs-widget.c (image_instantiator_layout):
11529         * glyphs-widget.c (image_instantiator_native_layout):
11530         rename decode_domain method to governing_domain.
11531
11532         * glyphs.c:
11533         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
11534         * glyphs.c (add_entry_to_device_ii_format_list):
11535         make sure we don't put an entry more than once into the list.
11536         * glyphs.c (check_instance_cache_mapper):
11537         *************************************************************
11538         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
11539         HAVE BEEN GETTING.
11540         *************************************************************
11541         * glyphs.c (get_image_instantiator_governing_domain):
11542         clean up, expand on new concept of governing domain.
11543         * glyphs.c (instantiate_image_instantiator):
11544         * glyphs.c (allocate_image_instance):
11545         use governing_domain instead of cache_domain in naming.
11546         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
11547         * glyphs.c (make_image_instance_1):
11548         * glyphs.c (Fmake_image_instance):
11549         allow for any domain (not just device), and process the
11550         governing domain correctly.  very big doc fix.
11551         * glyphs.c (Fimage_instance_domain):
11552         new primitive, to retrieve the governing domain of an image instance.
11553         * glyphs.c (image_instantiate):
11554         use new governing_domain stuff.  this fixes a crash you could get
11555         by instantiating certain widget glyphs in frame locales. (should
11556         signal an error instead of crashing.)
11557         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
11558         * glyphs.c (Fglyphp): clean up doc.
11559         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
11560         * glyphs.c (syms_of_glyphs):
11561         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
11562         * glyphs.c (image_instantiator_format_create): add some comments about
11563         bogus code.
11564         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
11565         for current-display-table. (Apparently Hrjove implemented in 1998 a
11566         design I wrote up in 1996, but didn't update the doc string.)
11567
11568         * glyphs.h: clean up a doc string.
11569         * glyphs.h (governing_domain):
11570         * glyphs.h (struct image_instantiator_methods):
11571         changes for governing_domain stuff.
11572
11573         * gutter.c:
11574         * gutter.c (Fgutter_specifier_p):
11575         * gutter.c (Fgutter_size_specifier_p):
11576         * gutter.c (Fgutter_visible_specifier_p):
11577         * objects.c:
11578         * objects.c (Fcolor_specifier_p):
11579         * objects.c (Ffont_specifier_p):
11580         * objects.c (Fface_boolean_specifier_p):
11581         doc strings moved to make-*-specifier.
11582
11583         * redisplay.c (add_disp_table_entry_runes_1):
11584         * redisplay.c (generate_fstring_runes):
11585         * redisplay.c (screen):
11586         add random comments and doc strings.
11587
11588         * specifier.c:
11589         * specifier.c (Fmake_specifier):
11590         major overhaul of this doc string.
11591
11592         * specifier.c (Fvalid_specifier_domain_p):
11593         comment about the bogosity of image instances being domains.
11594         * specifier.c (decode_domain):
11595         now non-static, used in glyphs.c.
11596         * specifier.c (specifier_instance):
11597         comment about the bogosity of image instances being domains.
11598         * specifier.c (Fgeneric_specifier_p):
11599         move doc string to make-generic-specifier.
11600         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
11601         rebackslashify.
11602
11603         * specifier.h:
11604         * specifier.h (DOMAIN_FRAME):
11605         * specifier.h (DOMAIN_LIVE_P):
11606         * specifier.h (DOMAIN_XDEVICE):
11607         rebackslashify.
11608         add comments about problems with these macros.
11609         prototype for decode_domain.
11610
11611         * toolbar.c:
11612         * toolbar.c (Ftoolbar_specifier_p):
11613         move doc string to `make-toolbar-specifier'.
11614
11615         * window.c (window_unmap_subwindows_cache_mapper):
11616         *************************************************************
11617         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
11618         HAVE BEEN GETTING.
11619         *************************************************************
11620
11621 2000-05-09  Andy Piper  <andy@xemacs.org>
11622
11623         * glyphs.h: declare reset_frame_subwindow_instance_cache.
11624
11625         * window.c (Fset_window_configuration): reset the frame subwindow
11626         cache and re-initialize the window subwindow caches.
11627
11628         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
11629
11630 2000-05-09  Ben Wing  <ben@xemacs.org>
11631
11632         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
11633         DWORD.
11634
11635 2000-04-26  Mike Woolley  <mike@bulsara.com>
11636
11637         * ntheap.c: Changed recreate_heap to limit the amount reserved
11638         for the heap to that which is actually available. Also now
11639         displays a message box (with some dignostics) in the event that
11640         it still can't start.
11641
11642 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
11643
11644         * callproc.c (Fold_call_process_internal): GCPRO path
11645
11646 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
11647
11648         Patch by Bill Perry.
11649
11650         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
11651         back data instead of #ifdef.
11652         (Fscrollbar_page_down): ditto.
11653
11654 2000-05-07  Ben Wing  <ben@xemacs.org>
11655
11656         * buffer.h:
11657         Kludge for defining Qmswindows_tstr.
11658
11659         * nt.c:
11660         * nt.c (open_input_file):
11661         * nt.c (open_output_file):
11662         * nt.c (rva_to_section):
11663         * nt.c (mswindows_executable_type):
11664         Move all memory-mapped-file routines here (some were in unexnt.c,
11665         which is bad because they are used by process-nt.c, and unexnt
11666         won't be around when portable dumping).  Synched the above routines
11667         with FSF 20.6.
11668
11669         * nt.h:
11670         Removed ifdef'd out bogus code.
11671         Fixed some prototypes.
11672
11673         * nt.h (file_data):
11674         * nt.h (OFFSET_TO_RVA):
11675         * nt.h (RVA_TO_OFFSET):
11676         * nt.h (RVA_TO_PTR):
11677         Moved the memory-mapped-file structures, macros and prototypes
11678         here, to parallel nt.c.  ntheap.h should really be removed
11679         entirely, and it's a non-portable-dumper specific file.
11680
11681         * ntheap.h (round_to_next):
11682         Moved the memory-mapped-file structures, macros and prototypes
11683         to nt.h.
11684
11685         * ntproc.c (compare_env):
11686         Moved rva_to_section and mswindows_executable_type to nt.c.
11687         Moved compare_env to process-nt.c.
11688         ntproc.c will die, one day.
11689
11690         * ntproc.c (sys_spawnve):
11691         Account for win32_ -> mswindows_.
11692
11693         * process-nt.c:
11694         * process-nt.c (struct nt_process_data):
11695         * process-nt.c (ensure_console_window_exists):
11696         * process-nt.c (compare_env):
11697         * process-nt.c (nt_create_process):
11698         * process-nt.c (nt_kill_process_by_pid):
11699         * process-nt.c (syms_of_process_nt):
11700         * process-nt.c (vars_of_process_nt):
11701         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
11702         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
11703         changes).  Eliminate our old `nt-quote-process-args' mechanism.
11704         Synch up nt_create_process with FSF 20.6 sys_spawnve.
11705         Move compare_env here from ntproc.c.
11706
11707         * process.c (Fprocess_send_region):
11708         Takes an optional fourth argument, BUFFER, which should fix some
11709         problems with call-process.
11710
11711         * syscommctrl.h:
11712         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
11713
11714         * syswindows.h:
11715         Move ICC_BAR_CLASSES to syscommctrl.h.
11716         Add preliminary macros for MSWindows/Mule.  More to come.
11717
11718         * unexnt.c:
11719         * unexnt.c (unexec):
11720         open_output_file moved to nt.c.
11721
11722
11723 2000-05-05  Andy Piper  <andy@xemacs.org>
11724
11725         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
11726         instance from the frame cache also since GC may catch up too late
11727         to make frame deletion sane.
11728
11729 2000-05-04  Andy Piper  <andy@xemacs.org>
11730
11731         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
11732         (x_finalize_image_instance): ungcpro on deletion.
11733
11734         * glyphs.c (image_instantiator_format_create): give pointers a
11735         query geometry method so that the geometry is at least set.
11736
11737         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
11738         initialize layouts if using widgets.
11739
11740 2000-05-03  Andy Piper  <andy@xemacs.org>
11741
11742         * nt.c: remove bogus reference to sysmmsystem.h
11743
11744         * gui-x.c (popup_selection_callback): fix no selection abort.
11745
11746 2000-05-02  Andy Piper  <andy@xemacs.org>
11747
11748         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
11749         (mswindows_widget_instantiate): ditto.
11750
11751         * glyphs-widget.c (initialize_widget_image_instance): initialize
11752         children correctly.
11753         (widget_instantiate): cope with children and items in the same
11754         instance.
11755
11756         * glyphs.c (mark_image_instance): cope with children as a first
11757         class member.
11758         (image_instance_equal): ditto.
11759         (image_instance_hash): ditto.
11760         (image_instance_changed): ditto.
11761
11762 2000-04-30  Andy Piper  <andy@xemacs.org>
11763
11764         * glyphs.c (subwindow_query_geometry): new function. Return some
11765         defaults.
11766         (subwindow_instantiate): don't assign dimensions if none have been
11767         given.
11768         (image_instantiator_format_create): add subwindow_query_geometry.
11769         (print_image_instance): cope with layouts as widgets.
11770
11771 2000-04-29  Andy Piper  <andy@xemacs.org>
11772
11773         * frame.c (delete_frame_internal): call
11774         free_frame_subwindow_instance_cache so that all subwindows are
11775         finalized before their parent.
11776         (mark_frame): remove subwindow_cachels.
11777         (Fmake_frame): remove subwindow_cachel manipulation.
11778         (allocate_frame_core): subwindow_instance_cache is a weak list.
11779         (delete_frame_internal): set subwindow_instance_cache to nil.
11780
11781         * glyphs-msw.c (mswindows_finalize_image_instance): make double
11782         finalization safe.
11783         (mswindows_finalize_image_instance): use the device
11784         not the domain as the domain may have died already.
11785
11786         * glyphs-x.c (x_finalize_image_instance): ditto.
11787         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
11788         HEIGHT.
11789
11790         * redisplay-output.c (redisplay_unmap_subwindows): update for
11791         subwindow instance cache as a weak list.
11792         (redisplay_unmap_subwindows_maybe): ditto.
11793         (redisplay_unmap_subwindows_except_us): ditto.
11794
11795         * glyphs.c (unmap_subwindow): error checking will check the domain
11796         so don't deal with it here. Don't use cachels anymore.
11797         (map_subwindow): ditto.
11798         (update_subwindow_cachel_data): remove old accessor names.
11799         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
11800         (Fresize_subwindow): don't update cachel.
11801         (mark_subwindow_cachels):
11802         (update_subwindow_cachel_data):
11803         (add_subwindow_cachel):
11804         (get_subwindow_cachel_index):
11805         (update_subwindow_cachel):
11806         (reset_subwindow_cachels):
11807         (mark_subwindow_cachels_as_not_updated): deleted.
11808         (cache_subwindow_instance_in_frame_maybe): new function. Add a
11809         subwindow instance to the frame cache.
11810         (find_matching_subwindow): update for subwindow instance cache as
11811         a weak list.
11812         (update_widget_instances): ditto.
11813         (image_instance_type_to_mask):inlined.
11814         (free_frame_subwindow_instance_cache): new function. finalize all
11815         subwindows that are instantiated.
11816
11817         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
11818         of cachel information.
11819         (IMAGE_INSTANCE_DISPLAY_X):
11820         (IMAGE_INSTANCE_DISPLAY_Y):
11821         (IMAGE_INSTANCE_DISPLAY_WIDTH):
11822         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
11823         (XIMAGE_INSTANCE_DISPLAY_X):
11824         (XIMAGE_INSTANCE_DISPLAY_Y):
11825         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
11826         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
11827         remove subwindow_cachel structure and function references.
11828         (image_instance_type_to_mask): inline from glyphs.c
11829
11830         * redisplay.c (redisplay_frame): remove subwindow_cachel
11831         references.
11832
11833         * frame.h (struct frame): remove subwindow_cachels.
11834         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
11835
11836         * frameslots.h: add subwindow_instance_cache.
11837
11838         * window.c (replace_window): check subwindow cache of replacement.
11839         (window_unmap_subwindows_cache_mapper):
11840         (window_unmap_subwindows): new functions. Unmap all subwindows
11841         cached on this window.
11842         (mark_window_as_deleted): unmap all subwindows.
11843
11844 2000-04-27  Andy Piper  <andy@xemacs.org>
11845
11846         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
11847
11848         * glyphs-widget.c (widget_layout): return something.
11849         (layout_layout): return something. Fail if not initialized.
11850         (layout_query_geometry): ditto.
11851         (image_instantiator_native_layout): new function. Initialized the
11852         native layout type.
11853         (widget_instantiate): don't do layout stuff here.
11854
11855         * glyphs.c (instantiate_image_instantiator): reorded calling or
11856         instantiate and post_instantiate with layout in between.
11857         (image_instance_layout): be more selective about deciding whether
11858         the layout has been done or not.
11859
11860         * glyphs.h (struct image_instantiator_methods): return a value
11861         from layout_method.
11862
11863 2000-04-26  Andy Piper  <andy@xemacs.org>
11864
11865         * glyphs.c (allocate_image_instance): make initial width and
11866         height unspecified. Set initialized to 0.
11867
11868         * syscommctrl.h new file. Encapsulates commctrl.h.
11869
11870         * syswindows.h new file. Encapsulates windows.h.
11871
11872         * ntplay.c: use new syswindows.h and syscommctrl.h header.
11873         * nt.c: ditto.
11874         * console-msw.h: ditto.
11875
11876         * redisplay-tty.c (tty_output_display_block): remove layout references.
11877
11878         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
11879         window handle rather than just the frame.
11880
11881         * glyphs.c (mark_image_instance): remove layout references.
11882         (print_image_instance): ditto.
11883         (image_instance_equal): ditto.
11884         (image_instance_hash): ditto.
11885         (decode_image_instance_type): ditto.
11886         (encode_image_instance_type): ditto.
11887         (image_instantiate): ditto.
11888         (allocate_glyph): ditto.
11889         (Fimage_instance_height): ditto.
11890         (Fimage_instance_width): ditto.
11891         (update_subwindow): ditto.
11892
11893         * redisplay-x.c (x_output_display_block): recode for layouts as
11894         widgets.
11895
11896         * redisplay-output.c (redisplay_output_layout): recode for layouts
11897         as widgets.
11898         (compare_runes): remove layout references.
11899
11900         * redisplay-msw.c (mswindows_output_display_block): recode for
11901         layouts as widgets.
11902
11903         * glyphs-widget.c (image_instantiator_layout): remove
11904         layout_possible_dest_types.
11905         (layout_possible_dest_types): deleted.
11906
11907         * glyphs.h (image_instance_type): remove layout references.
11908         (struct Lisp_Image_Instance): ditto. Add initialized flag.
11909         (IMAGE_INSTANCE_INITIALIZED): new accessor.
11910         (XIMAGE_INSTANCE_INITIALIZED): ditto.
11911
11912 2000-04-25  Andy Piper  <andy@xemacs.org>
11913
11914         * glyphs-widget.c (image_instantiator_buttons):
11915         (image_instantiator_edit_fields):
11916         (image_instantiator_combo_box):
11917         (image_instantiator_scrollbar):
11918         (image_instantiator_progress_guage):
11919         (image_instantiator_tree_view):
11920         (image_instantiator_tab_control):
11921         (image_instantiator_labels):
11922         (image_instantiator_layout): call default post_instantiate method.
11923         (widget_post_instantiate): new function. Simply lays out the
11924         widgets.
11925
11926         * glyphs.h (struct image_instantiator_methods): add
11927         post_instantiate method.
11928
11929         * glyphs.c (instantiate_image_instantiator): add post_instantiate
11930         method calls.
11931
11932 2000-04-23  Andy Piper  <andy@xemacs.org>
11933
11934         * glyphs.h (struct image_instantiator_methods): add
11935         decode_domain_method.
11936         (struct Lisp_Image_Instance): remove subwindow frame - it can be
11937         derived from the domain.
11938         (IMAGE_INSTANCE_FRAME): new accessor.
11939         (XIMAGE_INSTANCE_FRAME): ditto.
11940
11941         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
11942         instead of _SUBWINDOW_FRAME.
11943         (finalize_image_instance): ditto.
11944         (Fimage_instance_foreground): ditto.
11945         (Fimage_instance_background): ditto.
11946         (image_instantiate): ditto.
11947         (update_subwindow_cachel): ditto.
11948         (update_subwindow): ditto.
11949         (unmap_subwindow): ditto.
11950         (map_subwindow): ditto
11951         (subwindow_instantiate): ditto.
11952         * glyphs-msw.c (mswindows_update_widget): ditto.
11953         (mswindows_progress_gauge_instantiate): ditto.
11954         (mswindows_tab_control_update): ditto.
11955         * glyphs-x.c (x_update_widget): ditto.
11956         (x_widget_instantiate): ditto.
11957         (x_tab_control_instantiate): ditto.
11958         (x_tab_control_update): ditto.
11959         * event-msw.c (mswindows_wnd_proc): ditto
11960
11961         * glyphs-widget.c (image_instantiator_layout): use
11962         subwindow_decode_domain.
11963         (image_instantiator_buttons): ditto.
11964         (image_instantiator_edit_fields): ditto.
11965         (image_instantiator_combo_box): ditto.
11966         (image_instantiator_scrollbar): ditto.
11967         (image_instantiator_progress_guage): ditto.
11968         (image_instantiator_tree_view): ditto.
11969         (image_instantiator_tab_control): ditto.
11970         (image_instantiator_labels): ditto.
11971         (image_instantiator_layout): ditto.
11972
11973         * glyphs.c: add instance error checking to many functions.
11974         (instantiate_image_instantiator): decode device from cache_domain.
11975         (image_instantiate): partially rewrite by using
11976         decode_image_instantiator_domain to determine what domain the
11977         instance needs to be cached in.
11978         (decode_image_instantiator_domain): new function. Determine what
11979         domain the image needs to be cached in.
11980         (check_window_subwindow_cache): new error checking function.
11981         (check_instance_cache_mapper): ditto.
11982         (check_image_instance_structure): ditto.
11983         (subwindow_decode_domain): new function. Encodes a window as a
11984         subwindow's cache domain.
11985         (image_instantiator_format_create): use it for text and
11986         subwindows.
11987
11988 2000-04-21  Andy Piper  <andy@xemacs.org>
11989
11990         * glyphs.c (image_instance_device): new function.
11991         (image_instance_frame): new function.
11992         (image_instance_window): new function.
11993         (image_instance_live_p): new function.
11994
11995         * window.c (mark_window_as_deleted): reset the subwindow_instance_
11996         cache to nil.
11997
11998         * glyphs.h (struct Lisp_Image_Instance): device->domain.
11999         (IMAGE_INSTANCE_DOMAIN): new accessor.
12000         (XIMAGE_INSTANCE_DOMAIN): ditto.
12001
12002         * glyphs-x.c (x_finalize_image_instance): device->domain.
12003
12004         * glyphs-msw.c (init_image_instance_geometry): device->domain.
12005         (mswindows_finalize_image_instance): ditto.
12006
12007         * glyphs-eimage.c (jpeg_instantiate): device->domain.
12008         (gif_instantiate): ditto.
12009         (png_instantiate): ditto.
12010         (tiff_instantiate): ditto.
12011
12012         * glyphs.c (instantiate_image_instantiator): use domain rather
12013         than device.
12014         (mark_image_instance): device -> domain.
12015         (print_image_instance): ditto.
12016         (finalize_image_instance): ditto.
12017         (image_instance_equal): ditto.
12018         (allocate_image_instance): ditto.
12019         (Fcolorize_image_instance): ditto.
12020         (query_string_geometry): ditto.
12021         (image_instantiate): ditto
12022         (query_string_font): ditto.
12023         (image_instantiate): ditto.
12024         (update_subwindow): ditto.
12025         (unmap_subwindow): ditto.
12026         (map_subwindow): ditto.
12027         (subwindow_instantiate): ditto.
12028
12029         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
12030         (DOMAIN_FRAME): ditto.
12031         (DOMAIN_WINDOW): ditto.
12032         (DOMAIN_LIVE_P): ditto.
12033         (XDOMAIN_DEVICE): ditto.
12034         (XDOMAIN_FRAME): ditto.
12035         (XDOMAIN_WINDOW): ditto.
12036
12037         * specifier.c (Fvalid_specifier_domain_p): add image instances as
12038         a valid specifier domain.
12039
12040 2000-04-19  Andy Piper  <andy@xemacs.org>
12041
12042         * glyphs-widget.c (syms_of_glyphs_widget): remove
12043         widget-callback-current-channel.
12044         (vars_of_glyphs_widget): ditto.
12045         * glyphs.h: ditto
12046
12047         * gui.c (get_gui_callback): revert to previous behaviour.
12048
12049 2000-04-18  Andy Piper  <andy@xemacs.org>
12050
12051         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
12052         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
12053         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
12054
12055         * glyphs.c (image_instance_equal): add margin_width.
12056         (image_instance_hash): ditto.
12057
12058         * glyphs-widget.c (widget_instantiate): deal with margin-width.
12059         (layout_query_geometry): ditto.
12060         (layout_layout): ditto.
12061         (syms_of_glyphs_widget): add margin-width.
12062         (image_instantiator_layout): allow margin-width.
12063
12064         * glyphs.c (update_widget_instances): make a normal function.
12065         (syms_of_glyphs): remove Qupdate_widget_instances.
12066         * glyphs.h: ditto.
12067
12068         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
12069         so that we don't corrupt ideas about the last event or
12070         command. Remove widget-callback-current-channel fiddling.
12071         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
12072
12073 2000-05-01  Martin Buchholz <martin@xemacs.org>
12074
12075         * XEmacs 21.2.33 is released.
12076
12077 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
12078
12079         * make-src-depend: Allow dots in header file name.
12080
12081 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
12082
12083         * mule-charset.h (struct charset_lookup): Add
12084         next_allocated_1_byte_leading_byte and
12085         next_allocated_2_byte_leading_byte.
12086         * mule-charset.c: Move above two variables so that those values
12087         will be dumped.
12088
12089 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
12090
12091         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
12092         when string length is zero.
12093         (find_charsets_in_emchar_string): Ditto.
12094
12095 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
12096
12097         * lisp.h: extern Qdialog and Qmenubar.
12098
12099         * gui-x.c: added events.h.
12100                 also fixed typo which made the file uncompilable.
12101
12102         * general.c: Added Qmenubar and Qdialog
12103
12104 2000-04-28  Ben Wing  <ben@xemacs.org>
12105
12106         * frame-msw.c (mswindows_init_frame_1):
12107         * frame-msw.c (mswindows_mark_frame):
12108         * event-msw.c (mswindows_enqueue_dispatch_event):
12109         * console-msw.h:
12110         * console-msw.h (struct mswindows_frame):
12111         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
12112         there are now three hash tables for callbacks.
12113         mswindows_enqueue_dispatch_event is no longer static.
12114
12115         * dialog-x.c (maybe_run_dbox_text_callback):
12116         * dialog-x.c (dbox_descriptor_to_widget_value):
12117         switch to new cons3 form for callbacks.
12118
12119         * glyphs-msw.c (mswindows_register_gui_item):
12120         * glyphs-msw.c (mswindows_widget_instantiate):
12121         * glyphs-msw.c (add_tree_item):
12122         * glyphs-msw.c (add_tab_item):
12123         new image instance parameter, so it can be passed to callback-ex.
12124         respect :callback-ex as well as :callback.
12125
12126         * glyphs-widget.c (VALID_GUI_KEYWORDS):
12127         add :callback-ex.
12128
12129         * glyphs.c (print_image_instance):
12130         prettify, e.g. now prints widget type.
12131
12132         * gui-x.h:
12133         certain funs have new image instance parameter.
12134
12135         * gui.c:
12136         * gui.c (get_gui_callback):
12137         * gui.c (gui_item_add_keyval_pair):
12138         * gui.c (gui_item_init):
12139         * gui.c (gui_add_item_keywords_to_plist):
12140         * gui.c (mark_gui_item):
12141         * gui.c (gui_item_hash):
12142         * gui.c (gui_item_equal):
12143         * gui.c (copy_gui_item):
12144         * gui.c (syms_of_gui):
12145         recognize callback-ex in a number of places.
12146         also, fix the annoying "can't get out of yes-no dialog" bug.
12147
12148         * gui.h:
12149         * gui.h (struct Lisp_Gui_Item):
12150         recognize callback-ex in a number of places.
12151
12152         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
12153         new parameter in button_item_to_widget_value.
12154
12155         * glyphs-x.c (x_update_widget):
12156         * glyphs-x.c (x_button_instantiate):
12157         * glyphs-x.c (x_button_update):
12158         * glyphs-x.c (x_progress_gauge_instantiate):
12159         * glyphs-x.c (x_edit_field_instantiate):
12160         * glyphs-x.c (x_combo_box_instantiate):
12161         * glyphs-x.c (x_tab_control_instantiate):
12162         * glyphs-x.c (x_label_instantiate):
12163         new image instance parameter in various places.
12164
12165         * event-Xt.c:
12166         * event-Xt.c (enqueue_Xt_dispatch_event):
12167         this fun gets exported.
12168
12169         * gui-msw.c:
12170         * gui-msw.c (mswindows_handle_gui_wm_command):
12171         handle both :callback and :callback-ex, and generate our own
12172         event because it's one of the callback-ex arguments.
12173
12174         * gui-x.c:
12175         * gui-x.c (popup_selection_callback):
12176         handle both :callback and :callback-ex, and generate our own
12177         event because it's one of the callback-ex arguments.
12178         * gui-x.c (button_item_to_widget_value):
12179         * gui-x.c (gui_items_to_widget_values_1):
12180         * gui-x.c (gui_item_children_to_widget_values):
12181         * gui-x.c (gui_items_to_widget_values):
12182         new image instance parameter in various places.
12183
12184         * fns.c (Freplace_list):
12185         fix small typo in doc string.
12186
12187         * lisp.h:
12188         declare enqueue_Xt_dispatch_event.
12189
12190 2000-04-28  Ben Wing  <ben@xemacs.org>
12191
12192         * buffer.c:
12193         * buffer.c (Frecord_buffer):
12194         * buffer.c (syms_of_buffer):
12195         delete record-buffer-hook.
12196
12197         * fns.c:
12198         * fns.c (Freplace_list):
12199         * fns.c (syms_of_fns):
12200         new primitive replace-list.
12201
12202         * frameslots.h:
12203         slot for old buffer-alist.
12204
12205         * lisp.h:
12206         exfun replace-list.
12207
12208         * redisplay.c:
12209         * redisplay.c (redisplay_frame):
12210         * redisplay.c (syms_of_redisplay):
12211         * redisplay.c (vars_of_redisplay):
12212         new hook buffer-list-changed-hook.
12213         call it.
12214
12215 2000-04-27  Ben Wing  <ben@xemacs.org>
12216
12217         * extents.h: extern in_modeline_generation.
12218
12219         * redisplay.c (generate_formatted_string_db): set
12220         in_modeline_generation.
12221
12222         * extents.c (extent_changed_for_redisplay): don't mark redisplay
12223         flags if in modeline generation.  otherwise frame-modified-tick
12224         is ticked far too often.
12225         Declare in_modeline_generation.
12226
12227 2000-04-26  Ben Wing  <ben@xemacs.org>
12228
12229         * emacs.c (vars_of_emacs): document quick-build "error-checking"
12230         option.
12231         (vars_of_emacs): add quick-build as an error-checking option.
12232         A bit kludgy, but there doesn't seem much point in creating
12233         a real var for this.
12234
12235         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
12236
12237 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
12238
12239         * redisplay.h (struct display_line): Add a new variable,
12240         line_continuation.
12241
12242         * redisplay.c (create_text_block): Set dl->line_continuation if
12243         the line continues.
12244         (create_string_text_block): Ditto.
12245         (regenerate_window_incrementally): Use line_continuation instead
12246         of searching continuation glyph.
12247         (add_margin_runes): Call add_glyph_rune.
12248         (add_glyph_rune): Handle margin glyph.
12249
12250 2000-04-20  Martin Buchholz  <martin@xemacs.org>
12251
12252         * filelock.c (fill_in_lock_file_name):
12253         ANSIfy.
12254         Check for IS_ANY_SEP instead of '/'.
12255         (lock_file_1):
12256         Avoid generating gratuitous garbage.  Call user_login_name() directly.
12257         Never check errno without first seeing that system call failed.
12258         (unlock_file): Add GCPRO.
12259         (Flock_buffer): Fix docstring.
12260         (Ffile_locked_p): Fix docstring.  Add GCPRO.
12261
12262 2000-04-19  Martin Buchholz  <martin@xemacs.org>
12263
12264         * sysdep.c (get_pty_max_bytes):
12265         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
12266         strings longer than 252 bytes.
12267
12268         * md5.c: Unconditionally include ANSI header <limits.h>
12269
12270         * glyphs-x.c (convert_EImage_to_XImage):
12271         * lisp-union.h (union Lisp_Object):
12272         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
12273
12274 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
12275
12276         * filelock.c (current_lock_owner): Remove unused variable o, p.
12277
12278 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
12279
12280         * callint.c: Remove multiply defined symbol Qlet
12281         (syms_of_callint): ditto.
12282
12283 2000-04-14  Andy Piper  <andy@xemacs.org>
12284
12285         * general.c (syms_of_general): add last-command, this-command, let
12286         and funcall.
12287
12288         * lisp.h: declare various symbols.
12289
12290         * glyphs.h: declare Qwidget_callback_current_channel;
12291
12292         * glyphs-widget.c (syms_of_glyphs_widget): add
12293         Qgui_callback_current_channel.
12294         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
12295
12296         * gui-msw.c (mswindows_handle_gui_wm_command): bind
12297         widget-callback-current-channel when invoking the interactive
12298         arg. Also bind last-command and next-command when invoking the
12299         widget updates.
12300         * gui-x.c (popup_selection_callback): ditto.
12301
12302         * gui.c (get_gui_callback): massage args so that we are always
12303         calling eval. This allows us to add our own variable bindings
12304         outside.
12305
12306         * glyphs-x.c (x_button_instantiate): use
12307         gui_items_to_widget_values since this is GC safe.
12308         (x_progress_gauge_instantiate): ditto.
12309         (x_edit_field_instantiate): ditto.
12310         (x_label_instantiate): ditto.
12311
12312         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
12313         (emacs_Xt_event_widget_focus_out): new function
12314         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
12315         focus.
12316         (emacs_Xt_event_add_widget_actions): new function. add focus
12317         functions as actions.
12318         (init_event_Xt_late): use it.
12319
12320 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
12321
12322         * event-stream.c (Fdispatch_event): Doc fix.
12323
12324 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
12325
12326         * postgresql.c: Remove all references to PQsetenv*.
12327
12328         * postgresql.h: Remove references to PGsetenvHandler object.
12329         * lrecord.h (lrecord_type): Ditto.
12330
12331 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12332
12333         * glyphs-msw.h (struct mswindows_image_instance_data): Added
12334         real_heigh and real_width members, and accessor macros for these.
12335
12336         * glyphs-msw.c (init_image_instance_geometry): New function.
12337         (init_image_instance_from_dibitmap): Use it.
12338         (mswindows_resource_instantiate): Use it.
12339         (init_image_instance_from_xbm_inline): Use it.
12340         (mswindows_initialize_image_instance_mask): Use real bitmap
12341         geometry.
12342         (mswindows_create_resized_bitmap): Ditto.
12343         (mswindows_create_resized_mask): Ditto.
12344
12345         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
12346         and bitmap to their surface size.
12347
12348 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
12349
12350         * process-unix.c (unix_send_process): Guard against process MIA
12351         after Faccept_process_output.
12352
12353 2000-04-11  Ben Wing  <ben@xemacs.org>
12354
12355         * eval.c (unbind_to_hairy): fix brokenness introduced by
12356         nanosecond speed improvements.
12357
12358 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
12359
12360         * sunplay.c (init_device): To play sounds correctly, the device
12361         apparently needs to be initialized at least once by XEmacs.  Make
12362         it so.
12363
12364 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
12365
12366         * redisplay.c (add_margin_runes): Add text image glyph
12367           handling.
12368
12369 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
12370
12371         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
12372         gcc is newer than 2.5.
12373
12374 2000-04-06  Colin Rafferty  <colin@xemacs.org>
12375
12376         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
12377
12378         * fns.c (size_bit_vector):
12379         * alloc.c (size_vector):
12380         (make_vector_internal):
12381         (make_bit_vector_internal):
12382         (sweep_bit_vectors_1):
12383         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
12384
12385 2000-04-06  Andy Piper  <andy@xemacs.org>
12386
12387         * gmalloc.c (malloc): undo previous change.
12388         (malloc): ditto.
12389         (free): ditto.
12390         (realloc): ditto.
12391
12392 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
12393
12394         * line-number.c (buffer_line_number): Revert to former version.
12395
12396 2000-04-06  Andy Piper  <andy@xemacs.org>
12397
12398         * gmalloc.c (malloc): add error checking.
12399         (malloc): ditto.
12400         (free): ditto.
12401         (realloc): ditto.
12402
12403         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
12404         button_item_to_widget_value arg.
12405
12406         * glyphs-x.c (x_button_instantiate): add extra
12407         button_item_to_widget_value arg.
12408         (x_progress_gauge_instantiate): ditto.
12409         (x_edit_field_instantiate): ditto.
12410         (x_label_instantiate): ditto.
12411
12412         * gui-x.c (gui_items_to_widget_values_1): add extra
12413         button_item_to_widget_value arg.
12414         (button_item_to_widget_value): add extra menu_item_p arg.
12415
12416         * gui-x.h: change signature of button_item_to_widget_value.
12417
12418         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
12419         button_item_to_widget_value arg.
12420
12421 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
12422
12423         * buffer.h (struct buffer): auto_save_modified should be long.
12424
12425 2000-04-05  Andy Piper  <andy@xemacs.org>
12426
12427         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
12428         type.
12429         (button_query_geometry): give a little more room so that athena
12430         buttons fit.
12431
12432 2000-04-05  Andy Piper  <andy@xemacs.org>
12433
12434         * faces.c (complex_vars_of_faces): The widget face should inherit
12435         the font of the gui-element face.
12436
12437 2000-04-04  Andy Piper  <andy@xemacs.org>
12438
12439         * glyphs-x.c (x_button_update): new function. unconditionally
12440         update a button's state when the instance is dirty.
12441         (image_instantiator_format_create_glyphs_x): add x_button_update.
12442         (x_widget_instantiate): remove old resize cruft.
12443
12444 2000-04-02  Andy Piper  <andy@xemacs.org>
12445
12446         * frame.c (change_frame_size_1): The introduction of gutters means
12447         that we need to allow 0 as a potential frame dimension.
12448
12449 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
12450
12451         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
12452         image glyph if allow_cursor.
12453         (add_hscroll_rune): Don't allow cursor to border glyph.
12454         (create_text_block): Ditto.
12455
12456         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
12457         text not in buffer.
12458         (redisplay_output_layout): Call ensure_face_cachel_complete for
12459         text image glyph.
12460
12461
12462 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
12463
12464         * redisplay.c (add_glyph_rune): Adding text image as text runes.
12465
12466         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
12467         not in buffer
12468
12469         * redisplay-tty.c (tty_output_display_block): Delete the routine
12470         for text image glyph
12471         * redisplay-x.c (x_output_display_block): ditto
12472         * redisplay-msw.c (mswindows_output_display_block): ditto
12473
12474 2000-02-02  Mike Alexander  <mta@arbortext.com>
12475
12476         Note: Some of these were committed by accident as part of other
12477         patches.
12478
12479         * regex.c (regex_compile): Avoid compiler warnings.
12480
12481         * ntproc.c (sys_spawnve): Avoid compiler warnings.
12482
12483         * nt.h: Declare term_ntproc correctly.
12484
12485         * nt.c: Remove incorrect declaration of get_home_directory which
12486         is declared correctly in lisp.h.
12487
12488         * keymap.c (get_keyelt): Avoid compiler warnings.
12489         (raw_lookup_key_mapper): Avoid compiler warnings.
12490
12491         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
12492
12493         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
12494
12495         * filemode.c (mode_string): Avoid compiler warnings.
12496
12497         * file-coding.c (Fcoding_system_aliasee): Add return statement to
12498         avoid warning.
12499
12500         * events-mod.h: Undef some things that winuser.h defines differently.
12501
12502         * data.c (Faset): Avoid compiler warnings.
12503
12504         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
12505
12506 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
12507
12508         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
12509         Fall through to simple beep on error.
12510         Replace "extern" by real header file.
12511
12512         * linuxplay.c: Use nativesound.h
12513         (play_sound_data): Return error code. Be less verbose on error.
12514
12515         * sunplay.c: Use nativesound.h
12516         (play_sound_data): Return error code. Be less verbose on error.
12517
12518         * ntplay.c: Use nativesound.h
12519         (play_sound_data): Return fake error code
12520
12521         * sgiplay.c: Use nativesound.h
12522         (play_sound_data): Return error code
12523
12524         * hpplay.c: Use nativesound.h, partially implement
12525         new error code. Break compilation until finished.
12526         (play_sound_data): error code.
12527
12528         * nativesound.h (play_sound_file):
12529           (play_sound_data): Prototype in new header.
12530
12531 2000-03-31  Andy Piper  <andy@xemacs.org>
12532
12533         * glyphs-widget.c: (button_query_geometry): new function. Adjust
12534         for toggle and radio buttons.
12535         (image_instantiator_buttons): use it.
12536
12537 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
12538
12539         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
12540         (x_update_horizontal_scrollbar_callback): Return if no mirror was
12541         found. Scrollbar event probably belonged to some old config.
12542
12543 2000-03-31  Andy Piper  <andy@xemacs.org>
12544
12545         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
12546         than 1.
12547         (initialize_widget_image_instance): default layout to
12548         LAYOUT_HORIZONTAL rather than 0.
12549         (widget_instantiate): reverse the item list at the end rather than
12550         every iteration.
12551         (layout_layout): re-code for the border text at the front of the
12552         item list rather than at the end.
12553         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
12554         provided by the user.
12555         (widget_query_geometry): comment.
12556
12557 2000-03-30  Andy Piper  <andy@xemacs.org>
12558
12559         * glyphs-widget.c (image_instantiator_layout): allow standard
12560         widget keywords in layouts.
12561
12562         * gutter.c (output_gutter): cope with nil gutter contents.
12563
12564         * frame.c (Fset_frame_properties): add gutter docs.
12565
12566 2000-03-29  Andy Piper  <andy@xemacs.org>
12567
12568         * toolbar-msw.c (TBSTYLE_FLAT): add.
12569         (mswindows_output_toolbar): minor fiddling.
12570
12571 2000-03-29  Andy Piper  <andy@xemacs.org>
12572
12573         * gutter.c (output_gutter): force gutter size recalculation if
12574         what we are trying to display won't fit.
12575         (update_gutter_geometry): new function. A per-gutter version of
12576         update_frame_gutter_geometry.
12577         (update_frame_gutter_geometry): use it.
12578         (redraw_exposed_gutter): add extra debugging output.
12579
12580 2000-03-28  Mike Alexander  <mta@arbortext.com>
12581
12582         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
12583         (pdump_file_unmap): Implement it on Windows
12584         (pdump_file_get): Save alocated handles for pdump_file_unmap
12585
12586 2000-03-28  Andy Piper  <andy@xemacs.org>
12587
12588         * gui.c (get_gui_callback): treat Quit specially.
12589
12590 2000-03-27  Andy Piper  <andy@xemacs.org>
12591
12592         * glyphs.c (image_instantiate): be careful to check in the same
12593         way we assigned.
12594
12595 2000-03-27  Didier Verna  <didier@xemacs.org>
12596
12597         * config.h.in: define the proper SMART_INCLUDE macro.
12598         handle renaming of `foo_h_path' to `foo_h_file'.
12599
12600         * database.c: ditto.
12601
12602         * emacs.c: ditto.
12603
12604         * linuxplay.c: ditto.
12605
12606         * terminfo.c: ditto.
12607
12608         * tooltalk.h: ditto.
12609
12610 2000-03-27  Andy Piper  <andy@xemacs.org>
12611
12612         * glyphs-msw.c (mswindows_update_widget): make sure the widget
12613         gets updated whenever the face might have changed.
12614
12615 2000-03-26  Mike Alexander  <mta@arbortext.com>
12616
12617         * dumper.c (pdump_resource_free): Fix the comment.
12618
12619 2000-03-21  Olivier Galibert  <galibert@pobox.com>
12620
12621         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
12622
12623 2000-03-22  Mike Alexander  <mta@arbortext.com>
12624
12625         * dumper.c: Include Windows headers on Windows
12626         (pdump_resource_free): Add a body to the function
12627         (pdump_load): exe_name -> exe_path and add some comments.
12628
12629 2000-03-25  Mike Alexander  <mta@arbortext.com>
12630
12631         * gui.c (copy_gui_item_tree): Return a value in all cases
12632
12633 2000-03-21  Didier Verna  <didier@xemacs.org>
12634
12635         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
12636         lwlib/config.h.in.
12637         (SMART_INCLUDE): new macro.
12638         (POSTGRES_INCLUDE): new macro to include postgresql headers from
12639         the proper location.
12640
12641         * postgresql.c: use it.
12642
12643         * inline.c: ditto.
12644
12645 2000-03-24  Andy Piper  <andy@xemacs.org>
12646
12647         * gutter.c (redraw_exposed_gutters): must be "in display" when we
12648         do this.
12649
12650 2000-03-24  Andy Piper  <andy@xemacs.org>
12651
12652         * redisplay-output.c (compare_runes): use image_instance_changed
12653         to detect changes. Do not depend on glyphs_changed, only depend on
12654         dirtiness.
12655          (redisplay_output_layout): add debug messages.
12656         (compare_runes): ditto.
12657
12658         * glyphs.h: declare new functions.
12659         (struct Lisp_Image_Instance): remove percent and associated
12660         accessors.
12661
12662         * gui.h: declare new copying functions.
12663
12664         * gui.c (copy_gui_item_tree): new function.
12665         (copy_gui_item): new function.
12666         (gui_item_id_hash): revert to standard hash.
12667         (gui_item_hash): ditto.
12668         (gui_item_hash_internal): deleted.
12669         (mark_gui_item): mark value.
12670         (gui_item_add_keyval_pair): add value.
12671         (gui_item_init): ditto.
12672         (gui_add_item_keywords_to_plist): ditto.
12673         (gui_item_equal): ditto.
12674         (syms_of_gui): add Q_value.
12675
12676         * glyphs-x.c (x_progress_gauge_update): use pending items and
12677         value for setting the state.
12678         (x_update_widget): don't set items from pending here.
12679
12680         * glyphs-widget.c (update_widget): update items here.
12681         (progress_gauge_set_property): use items for storing value. Put
12682         new value in pending items.
12683
12684         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
12685         items for new value. Convert percent -> value.
12686         (mswindows_tab_control_update): don't update items here.
12687
12688         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
12689         (update_subwindow): ditto.
12690         (image_instance_changed): new function. Compare hash values and
12691         past and present widget items.
12692         (image_instantiate): We more careful about where we instantiate
12693         things.
12694         (image_instantiate): add error checking.
12695
12696         * gutter.c (syms_of_gutter): use -hook.
12697
12698 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
12699
12700         * console-tty.c (Fset_console_tty_input_coding_system): Use
12701         Qkeyboard.
12702         (Fset_console_tty_output_coding_system): Use Qterminal.
12703         (tty_init_console): Use Qkeyboard and Qterminal.
12704
12705 2000-03-21  Ben Wing  <ben@xemacs.org>
12706
12707         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
12708         From Mike Alexander <mta@arbortext.com>.
12709
12710 2000-03-21  Ben Wing  <ben@xemacs.org>
12711
12712         * event-msw.c (mswindows_need_event): Horrible kludge to fix
12713         process brokenness.  Proper implementation to come.
12714         * callproc.c:
12715         Rename call-process-internal to old-call-process-internal.
12716         New impl. in process.el.
12717
12718 2000-03-21  Martin Buchholz  <martin@xemacs.org>
12719
12720         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
12721
12722 2000-03-20  Andy Piper  <andy@xemacs.org>
12723
12724         * glyphs.c (full_list_hash): make hashes of the same elements in
12725         different orders return different values.
12726
12727 2000-03-20  Martin Buchholz <martin@xemacs.org>
12728
12729         * XEmacs 21.2.32 is released.
12730
12731 2000-03-20  Martin Buchholz  <martin@xemacs.org>
12732
12733         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
12734         (DFC_MALLOC_USE_CONVERTED_DATA):
12735         Add aliasing-safe casts to allow use with char* or unsigned char*
12736         lvalues.
12737
12738         * eldap.c (Fldap_open):
12739         (Fldap_search_basic):
12740         (Fldap_add):
12741         (Fldap_modify):
12742         Make C++-compilable.
12743         Make sure GCPRO'ed variables are initialized.
12744         Use temp variables to avoid repeated calls to Flength.
12745
12746 2000-03-16  Martin Buchholz  <martin@xemacs.org>
12747
12748         * sysfile.h:
12749         Make sure PATH_MAX is always defined.
12750         Include limits.h for PATH_MAX.
12751         Deprecate use of MAXPATHLEN.
12752
12753 2000-03-10  Martin Buchholz  <martin@xemacs.org>
12754
12755         * emacs.c: Add reinit_vars_of_fileio.
12756         * symsinit.h: Add reinit_vars_of_fileio.
12757         * fileio.c (reinit_vars_of_fileio): New.
12758         * fileio.c (Fmake_temp_name):
12759         Initialize temp_name random number from microseconds to make
12760         collisions even less likely.  Initialize always at process startup
12761         time.  (make-temp-name) used to return the same file name twice in
12762         a row when PDUMP.
12763         Random stylistic fiddling.
12764         Comment fixes.
12765
12766 2000-03-20  Andy Piper  <andy@xemacs.org>
12767
12768         * glyphs.c (image_instantiate): allow text glyphs to be
12769         instantiated in the minibuffer window.
12770
12771 2000-03-19  Andy Piper  <andy@xemacs.org>
12772
12773         * glyphs.c (image_instance_hash): be careful about which items we
12774         hash on.
12775
12776         * glyphs-widget.c (tab_control_set_property): record into pending
12777         items rather than the actual items.
12778
12779         * glyphs-x.c (x_update_widget): use pending items to update with.
12780
12781         * glyphs-msw.c (mswindows_tab_control_update): use pending items
12782         to update with.
12783
12784         * glyphs.c (mark_image_instance): mark pending items.
12785
12786         * window.c (Fset_window_configuration): record the buffer.
12787         (Fselect_window): totally revert previous change which breaks many
12788         things.
12789
12790 2000-03-18  Andy Piper  <andy@xemacs.org>
12791
12792         * glyphs-msw.c (mswindows_tab_control_update): force selected
12793         item.
12794
12795         * glyphs.c (image_instantiate): don't allow the minibuffer as a
12796         window domain cache, otherwise we get inconsistencies at
12797         startup. There is something fishy at startup which can lead to the
12798         minibuffer being the selected window when the gutter content is
12799         instantiated.
12800
12801         * gui.c (parse_gui_item_tree_list): add probably unnecessary
12802         gcpros.
12803         (parse_gui_item_tree_children): ditto.
12804         (parse_gui_item_tree_item): ditto.
12805
12806         * glyphs.c (Fupdate_widget_instances): return something.
12807
12808 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
12809
12810         * window.c (Fselect_window): Undo 2000-03-17 change.
12811
12812 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
12813
12814         * postgresql.c (Fpq_setenv): Remove this turkey when linking
12815         against v7.0 libraries.  Insta-coredump city until the postgres
12816         folks fix it.
12817
12818 2000-03-17  Andy Piper  <andy@xemacs.org>
12819
12820         * faces.c (complex_vars_of_faces): don't give the widget face an
12821         inherited background pixmap.
12822
12823         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
12824         selected item.
12825
12826         * event-stream.c (Fdispatch_non_command_events): return something.
12827
12828         * gutter.c (output_gutter): use widget face.
12829         (clear_gutter): ditto.
12830
12831         * NEWS: adjust again.
12832
12833         * window.c (Fselect_window): make sure this runs to completion to
12834         avoid oddities with Fset_window_configuration.
12835         (Fcurrent_window_configuration): in general do not save the
12836         minibuffer as the selected window.
12837
12838         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
12839
12840 2000-03-16  Olivier Galibert  <galibert@pobox.com>
12841
12842         * emacs.c (Frunning_temacs_p): Revert previous patch.
12843         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
12844
12845 2000-03-16  Andy Piper  <andy@xemacs.org>
12846
12847         * glyphs-x.c (x_tab_control_update): if no widget values then
12848         return.
12849
12850         * NEWS: update for new features.
12851
12852         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
12853         synthetic event to the native system.
12854         (reinit_vars_of_event_Xt): set force_event_pending to
12855         emacs_Xt_force_event_pending.
12856
12857         * events.h (struct event_stream): add force_event_pending.
12858
12859         * specifier.c (recompute_one_cached_specifier_in_window): add
12860         comment.
12861
12862         * redisplay.c (redisplay_frame): don't call
12863         update_frame_subwindows. Reset subwindow cachels when
12864         subwindows_changed, removing this was an optimization too far.
12865
12866         * redisplay-output.c (compare_runes): reorganize so that we catch
12867         glyph changes when we want them. Set optimize_output when this
12868         would help layouts.
12869         (redisplay_output_layout): remove frame_really_changed, use
12870         optimize_output instead.
12871
12872         * redisplay-msw.c (mswindows_output_display_block): reset
12873         optimize_output after outputting a glyph.
12874         * redisplay-x.c (x_output_display_block): ditto.
12875         * redisplay-tty.c (tty_output_display_block): ditto.
12876
12877         * gutter.c: (specifier_vars_of_gutter): use new spec changed
12878         functions.
12879         (gutter_specs_changed): do specific gutter positions.
12880         (top_gutter_specs_changed): new function. Only update the
12881         specified gutter specs.
12882         (bottom_gutter_specs_changed): ditto.
12883         (left_gutter_specs_changed): ditto.
12884         (right_gutter_specs_changed): ditto.
12885
12886         * gui.c (gui_item_hash_internal): new function, does a real hash.
12887         (gui_item_id_hash): use it.
12888         (gui_item_hash): hash the eval'ed gui_item.
12889
12890         * gui-x.c (popup_selection_callback): send an eval event to call
12891         Fupdate_widget_instances.
12892
12893         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
12894         to call Fupdate_widget_instances.
12895
12896         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
12897         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
12898
12899         * glyphs.c: (update_frame_subwindows): deleted.
12900         (Fupdate_widget_instances): new function for updating the dirty
12901         state of widgets that might have changed.
12902         (syms_of_glyphs): add Qupdate_widget_instances.
12903         (full_list_hash): hash a list completely.
12904         (image_instance_hash): use it for items and properties.
12905
12906         * frame-msw.c (mswindows_size_frame_internal): remove unused
12907         variable.
12908
12909         * faces.h (struct face_cachel): fix comment.
12910
12911         * event-stream.c (Fdispatch_non_command_events): new
12912         function. Process non-command events, forcing an event cycle
12913         beforehand.
12914         (syms_of_event_stream): declare.
12915         (event_stream_force_event_pending): new function. Force an event
12916         on the native event queue so that an event cycle will occur next
12917         time we check.
12918
12919         * event-msw.c:
12920         (struct ntpipe_shove_stream):
12921         (mswindows_enqueue_dispatch_event):
12922         (mswindows_dequeue_dispatch_event):
12923         (mswindows_cancel_dispatch_event):
12924         (mswindows_pump_outstanding_events):
12925         (mswindows_drain_windows_queue):
12926         (mswindows_handle_paint):
12927         (mswindows_wnd_proc):
12928         (mswindows_key_to_emacs_keysym):
12929         (get_process_input_waitable):
12930         (emacs_mswindows_delete_stream_pair): re-indent file.
12931         (mswindows_need_event): do not process further fds if the windows
12932         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
12933         fixes the 100% cpu problem.
12934         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
12935
12936 2000-03-15  Olivier Galibert  <galibert@pobox.com>
12937
12938         * alloc.h: New.
12939         * dumper.h: New.
12940         * dumper.c: New.
12941
12942         * emacs.c: Moved dump file searching to dumper.c.
12943         (Frunning_temacs_p): Fixed.
12944
12945         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
12946         last_lrecord_type_index_assigned.
12947
12948 2000-02-20  Olivier Galibert  <galibert@pobox.com>
12949
12950         * symsinit.h: Added reinit parameter to init_console_stream
12951         declaration.
12952
12953         * lisp.h: Added file parameter to pdump_load declaration.
12954
12955         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
12956         support.  Added dump file searching.
12957
12958         * config.h.in: Added EMACS_PROGNAME.
12959
12960         * console-stream.c (init_console_stream): Fix reinitialisation
12961         when running from temacs.
12962
12963         * alloc.c (pdump): Add id support.
12964         (pdump_load): Add file parameter and signature/id support.
12965
12966         * Makefile.in.in: Add full pdump support.
12967
12968 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
12969
12970         * postgresql.c: Update documentation to reflect latest code
12971         status.
12972         (print_result): Show tuple counts in printed representation when
12973         appropriate.
12974         (Fpq_put_nbytes): MULE-ize.
12975         (Fpq_get_line_async): Ditto.
12976
12977 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
12978
12979         * postgresql.c (Fpq_lo_import): Fix return value.
12980         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
12981
12982 2000-03-13  Ben Wing  <ben@xemacs.org>
12983
12984         * alloc.c (pdump_load):
12985         Fix compile warning under mswin.
12986
12987 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
12988
12989         * postgresql.c: Mule-ization, bug fixes.
12990         Use PG_CODING to encapsulate coding system name changes.
12991         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
12992         (pg-coding-system): Create.
12993
12994         (Fpq_conn_defaults): Mule-ize.
12995         (Fpq_connectdb): Mule-ize & bug fix.
12996         (Fpq_connect_start): Mule-ize.
12997         (Fpq_set_client_encoding): Mule-ize.
12998         (Fpq_finish): Document `DEAD' connection status.
12999         (Fpq_clear): Ditto.
13000         (Fpq_pgconn): Mule-ize.
13001         (Fpq_exec): Mule-ize & bug fix.
13002         (Fpq_send_query): Ditto.
13003         (Fpq_get_result): Ditto.
13004         (Fpq_res_status): Mule-ize.
13005         (Fpq_result_error_message): Mule-ize.
13006         (Fpq_ntuples): fix comments.
13007         (Fpq_fname): Mule-ize.
13008         (Fpq_fnumber): Mule-ize.
13009         (Fpq_ftype): fix comments.
13010         (Fpq_get_value): Mule-ize.
13011         (Fpq_cmd_status): Ditto.
13012         (Fpq_cmd_tuples): Ditto.
13013         (Fpq_oid_value): Ditto.
13014         (Fpq_notifies): Ditto.
13015         (Fpq_lo_import): Ditto.
13016         (Fpq_lo_export): Ditto.
13017         (Fpq_get_line): Ditto.
13018         (Fpq_put_line): Mule-ize and bug fix.
13019         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
13020
13021 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
13022
13023         * postgresql.c (vars_of_postgresql): Mule-ize.
13024         (Fpq_conn_defaults): Ditto.
13025
13026 2000-03-12  Ben Wing  <ben@xemacs.org>
13027
13028         * alloc.c (Fmake_byte_code):
13029         * alloc.c (debug_string_purity_print):
13030         * alloc.c (pdump_backtrace):
13031         * alloc.c (pdump_get_indirect_count):
13032         * alloc.c (pdump_register_sub):
13033         * alloc.c (pdump_register_object):
13034         * alloc.c (pdump_register_struct):
13035         * alloc.c (pdump_dump_data):
13036         * alloc.c (pdump_reloc_one):
13037         Minor cleanups.
13038
13039         * console-msw.c:
13040         * console-msw.c (GetConsoleHwnd):
13041         * console-msw.c (msw_hide_console):
13042         * console-msw.c (msw_show_console):
13043         * console-msw.c (msw_ensure_console_buffered):
13044         * console-msw.c (msw_output_console_string):
13045         * console-msw.c (console_type_create_mswindows):
13046
13047         a) Added functions to manipulate the console window for use with
13048         shell support.
13049
13050         b) Added support for writing text to the console, which is now
13051         used under Windows when xemacs is not being run non-interactively,
13052         to write text that would otherwise be destined for stdout because
13053         under these circumstances, text written to stdout tends to
13054         disappear and not be seen.
13055
13056         * console-msw.h:
13057         * event-Xt.c:
13058         * event-Xt.c (x_event_to_emacs_event):
13059         * event-Xt.c (describe_event_window):
13060         * events-mod.h (XEMACS_MOD_CONTROL):
13061         * events.c:
13062         * events.c (Fmake_event):
13063         * events.c (character_to_event):
13064         * events.c (event_to_character):
13065         * events.c (format_event_object):
13066         * events.c (Fevent_modifiers):
13067         * events.h:
13068         * events.h (struct key_data):
13069         * events.h (struct button_data):
13070         * events.h (struct misc_user_data):
13071         * frame-x.c (Fcde_start_drag_internal):
13072         * frame-x.c (Foffix_start_drag_internal):
13073         * gpmevent.c (Freceive_gpm_event):
13074         * keymap.c:
13075         * keymap.c (bucky_sym_to_bucky_bit):
13076         * keymap.c (control_meta_superify):
13077         * keymap.c (make_key_description):
13078         * keymap.c (keymap_lookup_directly):
13079         * keymap.c (create_bucky_submap):
13080         * keymap.c (keymap_store):
13081         * keymap.c (define_key_check_and_coerce_keysym):
13082         * keymap.c (define_key_parser):
13083         * keymap.c (define_key_alternate_name):
13084         * keymap.c (Fdefine_key):
13085         * keymap.c (raw_lookup_key_mapper):
13086         * keymap.c (struct map_keymap_unsorted_closure):
13087         * keymap.c (map_keymap_unsorted_mapper):
13088         * keymap.c (map_keymap_sort_predicate):
13089         * keymap.c (map_keymap_sorted):
13090         * keymap.c (accessible_keymaps_mapper_1):
13091         * keymap.c (where_is_recursive_mapper):
13092         * keymap.c (describe_map_mapper):
13093         * keymap.c (describe_map_sort_predicate):
13094         * keymap.c (describe_map):
13095         * keymap.c (complex_vars_of_keymap):
13096         And a number of other files, the key modifier preprocessor
13097         constants that xemacs uses have names that conflict with constants
13098         defined under MS Windows for other purposes, so they were renamed
13099         to begin with the prefix XEMACS_. The variables that hold such
13100         modifiers were changed to consistently be of type int to fix
13101         various compile warnings.
13102
13103         * console.c (complex_vars_of_console):
13104         * device.c:
13105         * device-msw.c:
13106         * device-msw.c (mswindows_finish_init_device):
13107         * device-msw.c (msw_get_workspace_coords):
13108         * device-msw.c (mswindows_device_system_metrics):
13109         and various other files, added support for a new
13110         device property called offset-workspace which returns the position
13111         of the upper left corner of the workspace area and goes along with
13112         the existing size-workspace property.
13113
13114         * dialog-msw.c:
13115         * dialog-msw.c (push_bufbyte_string_as_unicode):
13116         * dialog-msw.c (mswindows_popup_dialog_box):
13117         Added support for XEmacs-style accelerator specifications in
13118         button text.  Note: I didn't add support for this under X Windows,
13119         and somebody needs to do this.
13120
13121         * dialog.c:
13122         * dialog.c (Fpopup_dialog_box):
13123         Documented the support for accelerators that was just mentioned.
13124
13125         editfns.c (get_home_directory): Changed behavior under Windows
13126         when HOME not defined; former behavior was irretrievably broken.
13127
13128         * emacs.c:
13129         * emacs.c (main_1):
13130         * emacs.c (main):
13131         * minibuf.c (clear_echo_area_internal):
13132         * minibuf.c (echo_area_append):
13133         * print.c:
13134         * print.c (std_handle_out_external):
13135         * print.c (std_handle_out_va):
13136         * print.c (fatal):
13137         * print.c (write_string_to_stdio_stream):
13138         * print.c (output_string):
13139         * print.c (debug_print):
13140         * print.c (debug_backtrace):
13141         * print.c (debug_short_backtrace):
13142         Cleaned up the code that prints text to stdout so that this can be
13143         changed to output into a console window instead under MS Windows,
13144         as described above.
13145
13146         * eval.c:
13147         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
13148         * eval.c (internal_catch):
13149         * eval.c (unwind_to_catch):
13150         * eval.c (throw_or_bomb_out):
13151         * eval.c (condition_case_1):
13152         * eval.c (signal_1):
13153         * eval.c (check_error_state_sanity):
13154         * eval.c (call_with_suspended_errors_1):
13155         * eval.c (call_with_suspended_errors):
13156         * eval.c (reinit_vars_of_eval):
13157         Added code to catch throw loops and check for a pesky bug that may
13158         be gone now.
13159
13160         * event-msw.c:
13161         * event-msw.c (key_needs_default_processing_p):
13162         * event-msw.c (mswindows_wnd_proc):
13163         * event-msw.c (mswindows_modifier_state):
13164         * event-msw.c (emacs_mswindows_quit_p):
13165         * event-msw.c (vars_of_event_mswindows):
13166         a) Added support for using the alt key to select menu items as is
13167         standard under MS Windows.  This is controlled using the variable
13168         menu-accelerator-enabled, just like under X Windows.  There is an
13169         option on the options menu to turn this support on.  I really
13170         think that it should be on by default under Windows, but I'm not
13171         going to make this change yet.
13172
13173         b)  Added support for dynamic display size changes under Windows.
13174
13175         * event-stream.c:
13176         * event-stream.c (maybe_echo_keys):
13177         * event-stream.c (Fnext_event):
13178         * event-stream.c (command_builder_find_leaf):
13179         * event-stream.c (lookup_command_event):
13180         * event-stream.c (execute_command_event):
13181         * event-stream.c (pre_command_hook):
13182         * event-stream.c (post_command_hook):
13183         * event-stream.c (syms_of_event_stream):
13184         * event-stream.c (vars_of_event_stream):
13185         * event-stream.c (complex_vars_of_event_stream):
13186         * events.h (struct command_builder):
13187
13188         a) Tried to clean up a little bit the horribly written x-specific
13189         accelerator code that crept into this file.  I moved this code
13190         into menubar-x.c where it belongs. I also needed to move the
13191         command builder structure into the file events.h because it is
13192         accessed directly by this accelerator code.  What I didn't do, but
13193         which should be done at some point, is to properly abstract this
13194         code using device methods instead of the kludgy way that it
13195         currently hooks into the event code.
13196
13197         b) Added the lisp variables this-command-properties and
13198         last-command- properties, which should be used to synchronize two
13199         adjacent commands in preference to playing games with the variable
13200         this-command, which is typically what happens.
13201
13202         c) Added some slightly nasty code to hook into the lisp support
13203         for shifted- motion-key selection.  This is actually necessary for
13204         somewhat complicated reasons, which are described in
13205         simple.el. (NB: I think the proper thing would be to have the code
13206         that calls the pre and post command hooks also call out to generic
13207         lisp functions in simple.el, where all built-in stuff could be
13208         added.  I will think about this more.)
13209
13210         * event-unixoid.c (poll_fds_for_input):
13211         * lread.c (readchar):
13212         * redisplay-tty.c (tty_clear_frame):
13213         * redisplay-x.c (x_get_gc):
13214         * signal.c (interrupt_signal):
13215         And a whole bunch of other files: fixed up places that printed
13216         directly to stderr to instead call the function stderr_out so that
13217         the changes I made under Windows work correctly.
13218
13219         * filemode.c (mode_string):
13220         Warning fixes.
13221
13222         * frame-msw.c:
13223         * frame-msw.c (mswindows_size_frame_internal):
13224         Fixed the computation of frame size and position to keep the frame
13225         within the workspace area, rather than within the physical
13226         dimensions of the screen, so that the frame doesn't overlap window
13227         manager decorations, such as the start menu and toolbar, typically
13228         at the bottom of the screen.
13229
13230         * frame.c (vars_of_frame):
13231         Changed the default frame title format under MS Windows to consist
13232         of buffername-XEmacs, which is standard under MS Windows.  I think
13233         it might be a good idea to change this everywhere because I think
13234         it is superior to the current frame title format, but this is the
13235         kind of change that is likely to cause some people to get annoyed,
13236         so I'm not making it.
13237
13238         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
13239
13240         * gui-msw.c (mswindows_handle_gui_wm_command):
13241         Fixed compile warnings.
13242
13243         * gui-x.c:
13244         * gui-x.c (strdup_and_add_accel):
13245         * gui-x.c (button_item_to_widget_value):
13246         * gui-x.h:
13247         Added code to automatically put an accelerator onto the beginning
13248         of menu items that don't have one as is now the standard, and is
13249         described more later.  Also fixed things so that the menu item
13250         name can be an evaluated expression, again a new standard.
13251
13252         * gui.c:
13253         * gui.c (gui_item_add_keyval_pair):
13254         * gui.c (make_gui_item_from_keywords_internal):
13255         * gui.c (gui_add_item_keywords_to_plist):
13256         * gui.c (gui_item_accelerator):
13257         * gui.c (gui_name_accelerator):
13258         * gui.c (gui_item_included_p):
13259         * gui.c (gui_item_display_flush_left):
13260         * gui.c (gui_item_display_flush_right):
13261         * gui.c (parse_gui_item_tree_item):
13262         * gui.c (parse_gui_item_tree_children):
13263         * gui.c (parse_gui_item_tree_list):
13264         Mule-ized.  Cleanup.  GCPRO addition.
13265
13266         * line-number.c (buffer_line_number):
13267         * lisp.h:
13268         * lisp.h (EMACS_INT_MAX):
13269         Added the manifest constant EMACS_INT_MIN corresponding to the
13270         existing constant EMACS_INT_MAX.  This is partially to fix compile
13271         warnings under Windows, and partly for cleanliness.
13272
13273         * menubar-msw.c:
13274         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
13275         * menubar-msw.c (msw_translate_menu_or_dialog_item):
13276         * menubar-msw.c (displayable_menu_item):
13277         * menubar-msw.c (populate_menu_add_item):
13278         * menubar-msw.c (populate_or_checksum_helper):
13279         * menubar-msw.c (populate_menu):
13280         * menubar-msw.c (update_frame_menubar_maybe):
13281         * menubar-msw.c (prune_menubar):
13282         * menubar-msw.c (msw_char_is_accelerator):
13283         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
13284         * menubar-msw.c (mswindows_handle_wm_command):
13285         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
13286         * menubar-msw.c (mswindows_handle_wm_initmenu):
13287         * menubar-msw.c (mswindows_update_frame_menubars):
13288         * menubar-msw.c (mswindows_free_frame_menubars):
13289         * menubar-msw.c (mswindows_popup_menu):
13290         Fixed a bug in handling accelerators where an extra character
13291         would be displayed in the menu item.  Also generalized the
13292         function displayable_menu_item because it is now used by the
13293         dialog box code as well.  And finally, added code in the functions
13294         that create the menubar to extract a list of accelerators for the
13295         top level menubar, which is used in the event code to determine
13296         whether a particular alt-key combination should be used to invoke
13297         a menu item, or should be passed through to access the standard
13298         XEmacs keymap binding for this key combination.
13299
13300         Much needed GCPROing.
13301
13302         * menubar-x.c:
13303         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
13304         * menubar-x.c (menu_item_descriptor_to_widget_value):
13305         * menubar-x.c (restore_in_menu_callback):
13306         * menubar-x.c (x_popup_menu):
13307         * menubar-x.c (menu_move_up):
13308         * menubar-x.c (menu_move_down):
13309         * menubar-x.c (menu_move_left):
13310         * menubar-x.c (menu_move_right):
13311         * menubar-x.c (menu_select_item):
13312         * menubar-x.c (command_builder_operate_menu_accelerator):
13313         * menubar-x.c (menu_accelerator_junk_on_error):
13314         * menubar-x.c (command_builder_find_menu_accelerator):
13315         * menubar-x.c (Faccelerate_menu):
13316         * menubar.h:
13317         Moved a whole bunch of code here that was previously in
13318         event-stream.c as described above.  There is also code connected
13319         to the new standard of adding an accelerator to the beginning of
13320         menu items that don't have one as described above and below.
13321
13322         * menubar.c:
13323         * menubar.c (menu_parse_submenu_keywords):
13324         * menubar.c (Fmenu_find_real_submenu):
13325         * menubar.c (Fnormalize_menu_item_name):
13326         * menubar.c (syms_of_menubar):
13327         * menubar.c (vars_of_menubar):
13328         * menubar.c (complex_vars_of_menubar):
13329
13330         a) Cleaned up a bunch of documentation and improved it.
13331
13332         b) XEmacs now automatically adds an accelerator onto the beginning
13333         of any menu items that don't have one.  I did this because there
13334         will inevitably be some menu items on the main menubar that don't
13335         have accelerators on them because the package that adds that
13336         particular menu item hasn't yet been fixed up to have accelerators
13337         in them and it looked rather strange to have some items with and
13338         some items without accelerators, especially since even in items
13339         without accelerators, you can, at least under windows, still
13340         access the item through an accelerator corresponding to the first
13341         character in the item's name.  If people don't like this behavior,
13342         I can add a variable to turn it off optionally, but I'm not sure
13343         this is a good idea because we really do need to have accelerators
13344         on all of the menu items, and if a package doesn't like the
13345         accelerators being put on the first character, then it should put
13346         the accelerators where they belong.
13347
13348         c) I made a behavior change, which is that the descriptor that
13349         specifies the text of the menu item, which formerly was just a
13350         string, can now also be an evaluated expression.  This makes this
13351         descriptor parallel with all of the others, which could also be
13352         evaluated expressions.  This also obviates the need for the
13353         keyword :label, which was previously listed in the documentation
13354         as unimplemented, and which was for the same purpose.
13355
13356         d) GCPROing.
13357
13358         * ntproc.c:
13359         * ntproc.c (new_child):
13360         * ntproc.c (sys_spawnve):
13361         * ntproc.c (find_child_console):
13362         * ntproc.c (sys_kill):
13363         Fixed compile warnings.  By the way, this file should really go
13364         away entirely, and this will happen as soon as Kirill makes his
13365         final round of process cleanups, which affect the function
13366         call-process.
13367
13368         * process-nt.c:
13369         * process-nt.c (struct nt_process_data):
13370         * process-nt.c (find_process_from_pid):
13371         * process-nt.c (send_signal_the_nt_way):
13372         * process-nt.c (enable_child_signals):
13373         * process-nt.c (find_child_console):
13374         * process-nt.c (send_signal_the_95_way):
13375         * process-nt.c (nt_finalize_process_data):
13376         * process-nt.c (ensure_console_window_exists):
13377         * process-nt.c (nt_create_process):
13378         * process-nt.c (nt_kill_child_process):
13379         * process-nt.c (nt_kill_process_by_pid):
13380         * process-nt.c (nt_open_network_stream):
13381         * process-nt.c (vars_of_process_nt):
13382         Copied over code from Emacs 20.5 to correctly send signals to sub-
13383         processes under Windows 95.  Also added code to automatically
13384         create and hide console window when a sub-process is created under
13385         Windows 95, which obviates the need for the separate runemacs.exe
13386         executable, and finally implemented some variables that were
13387         implemented in Emacs 20.5, but previously not in XEmacs.  These
13388         include mswindows- start-process-share-console and
13389         mswindows-start-process-inherit-error-mode. (Both of these only
13390         apply to Windows 95.)
13391
13392         * regex.c (regex_compile): Fixed a compile warning.
13393
13394         * select-msw.c:
13395         * select-msw.c (mswindows_own_selection):
13396         * select-msw.c (mswindows_get_foreign_selection):
13397         * select-msw.c (mswindows_disown_selection):
13398         * select-msw.c (console_type_create_select_mswindows):
13399         * select-msw.c (syms_of_select_mswindows):
13400         Cleaned up the file and implemented the device method
13401         selection_exists_p, which had accidentally been left out.  Also
13402         removed four lisp functions that were remnants from before the
13403         time when the selection code was properly device abstracted.
13404         These functions are no longer needed because there are generic
13405         equivalents, and because they were added recently and don't exist
13406         in FSF Emacs, I don't think there's any problem with just deleting
13407         them.
13408
13409         * sysdep.c:
13410         * sysdep.c (sys_subshell):
13411         Fixed a compile warning, although in this case there's probably
13412         something wrong with this code, and it ought to be looked into
13413         more thoroughly by somebody who understands it.
13414
13415         * window.c:
13416         * window.c (Fwindow_text_area_height):
13417         * window.c (Fwindow_width):
13418         * window.c (Fwindow_full_width):
13419         * window.c (Fwindow_pixel_width):
13420         * window.c (debug_print_window):
13421         * window.c (syms_of_window):
13422         Added functions window-text-area-height and window-full-width,
13423         which are functions for returning various width and height
13424         characteristics of a window. (One of these functions is necessary
13425         for making the file dialog box work correctly, and the other one
13426         was added for completeness.)  Also added a table to the
13427         documentation for window-height which describes the entire scheme
13428         for accessing width and height characteristics of a window.
13429
13430 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13431
13432         * nt.c (fstat): Added a comment for another problem with
13433         non-encapsulated [f]stat(), reported by Adrian Aichner
13434         <aichner@ecf.teradyne.com>.
13435
13436 2000-03-11  Andy Piper  <andy@xemacs.org>
13437
13438         * window.c (make_dummy_parent): initialize subwindow instance
13439         cache.
13440         (Fset_window_configuration): zero extent_modiff.
13441
13442 2000-03-10  Andy Piper  <andy@xemacs.org>
13443
13444         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
13445         more changes can be triggered.
13446         (Fredisplay_frame): ditto.
13447         (Fredraw_device): ditto.
13448         (Fredisplay_device): ditto.
13449         (redisplay_frame): make non-static.
13450         (redisplay_frame): call update_frame_gutter_geometry outside of
13451         display proper.
13452
13453         * gutter.h: declare update_frame_gutter_geometry.
13454
13455         * redisplay.h: declare redisplay_frame.
13456
13457         * gutter.c (update_frame_gutter_geometry): move geometry changes
13458         in update_frame_gutters here. Geometry changes can only occur
13459         outside of redisplay.
13460         (update_frame_gutters): remove geometry change code.
13461         (Fredisplay_gutter_area): make sure that we are in display when we
13462         update and that we have flushed any size changes.
13463
13464 2000-03-11  Andy Piper  <andy@xemacs.org>
13465
13466         * alloc.c (pdump_dump_data): remove i & count shadows.
13467
13468 2000-02-27  Mike Alexander  <mta@arbortext.com>
13469
13470         * sysdep.h: Declare pdump_read_file
13471
13472         * sysdep.c (pdump_read_file): New function
13473
13474         * alloc.c (pdump_load): Call pdump_read_file to get the portable
13475         dump data
13476
13477 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
13478
13479         * lrecord.h: add `lrecord_type_pgsetenv'.
13480
13481 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
13482
13483         * symsinit.h: declare (vars|syms)_of* functions.
13484         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
13485
13486 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
13487
13488         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
13489
13490         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
13491         GCCs.
13492
13493         * emacs.c (main_1): Call postgres initialization code.
13494
13495         * postgresql.h: New file.  PostgreSQL RDBMS support.
13496         * postgresql.c: New file.
13497
13498 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
13499
13500         * redisplay-output.c (redisplay_output_display_block): Disable
13501         redundant code.
13502
13503 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
13504
13505         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
13506         (Fcanna_henkan_next): Ditto.
13507         (Fcanna_bunsetu_henkou): Ditto.
13508         (Fcanna_henkan_kakutei): Ditto.
13509         (Fcanna_henkan_end): Ditto.
13510         (Fcanna_henkan_quit): Ditto.
13511         (Fcanna_henkan_next): Set retun value correctly.
13512         (c2mu): Use unsigned char instead of signed char.
13513
13514 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
13515
13516         * emacs.c (main_1): Always call syms_of_gui.
13517         * inline.c: include gui.h
13518
13519 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
13520
13521         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
13522         converted to Lisp_Object.
13523         (Qtop_bottom): New variable.
13524         (syms_of_redisplay): Initialize it.
13525         * redisplay.h (Vvisible_bell): Ditto.
13526         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
13527         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
13528         only flash top and bottom.
13529
13530 2000-03-08  Andy Piper  <andy@xemacs.org>
13531
13532         * buffer.c (Frename_buffer): record new buffer name the right way.
13533
13534 2000-03-08  Andy Piper  <andy@xemacs.org>
13535
13536         * glyphs.c (update_subwindow): increase hash depth so that widget
13537         items get picked up properly.
13538
13539         * redisplay-output.c (compare_runes): increase hash depth so that
13540         widget items get picked up properly.
13541
13542 2000-03-08  Andy Piper  <andy@xemacs.org>
13543
13544         * gutter.c (output_gutter): add some debug.
13545
13546         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
13547         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
13548         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
13549
13550         * redisplay-output.c (compare_runes): use display_hash to
13551         determine if glyphs really are not the same.
13552
13553         * glyphs.c (update_subwindow): check display_hash to see if
13554         anything really needs to be updated. If not then do
13555         nothing. Record the display_hash after updating.
13556         (image_instance_equal): compare the image_instance face also.
13557
13558 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
13559
13560         * redisplay.h: Fix comment style.
13561
13562 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
13563
13564         * consle-msw.h (struct mswindows_frame):
13565         Added new member paint_pending to indicate whether a WM_PAINT
13566         magic event has been queued for this frame.
13567
13568         * event-msw.c (mswindows_drain_windows_queue):
13569         Don't queue a WM_PAINT magic event if one is already queued.
13570         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
13571
13572         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
13573
13574 2000-03-07  Didier Verna  <didier@xemacs.org>
13575
13576         * dired.c: #include `regex.h' after `sysfile.h'.
13577
13578 2000-03-06  Martin Buchholz  <martin@xemacs.org>
13579
13580         * sound.c (init_nas_sound): Fix compiler warning.
13581
13582         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
13583         (FREE_STRUCT_P):
13584         (MARK_STRUCT_AS_FREE):
13585         (MARK_STRUCT_AS_NOT_FREE):
13586         Make `gcc -fstrict-aliasing' work properly.
13587
13588 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
13589
13590         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
13591         (mswindows_delete_device): Call CoUnnitialize().
13592
13593         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
13594
13595 2000-02-25    <CraigL@DyCon.com>
13596
13597         * process-nt.c: MinGW now has <shellapi.h>, but still needs
13598         <errno.h>.
13599
13600         * sysdep.c: This extern declaration for environ prevents MinGW
13601         from finding the variable in CRTDLL.DLL.
13602
13603         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
13604         windows headers.
13605         (SHGFI_EXETYPE): ..
13606         (WM_MOUSEWHEEL): ..
13607         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
13608         definitions.
13609         (MMRESULT): Removed, now defined in cygwin's windows headers.
13610         (TIMECAPS): ..
13611         (uid_t,gid_t,pid_t,ssize_t): ..
13612         (_timeb): Removed, MinGW defines both _timeb and timeb.
13613         (HAVE_H_ERRNO): Added.
13614         (HAVE_TZNAME): Added, configure is not detecting this.
13615
13616 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
13617
13618         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
13619         * syntax.c (syntax_match): Use it.
13620
13621         * cmds.c: Import auto-fill-chars from FSF Emacs.
13622         (Vauto_fill_chars): New variables.
13623         (internal_self_insert): Check Vauto_fill_chars.
13624         (vars_of_cmds):
13625         Declare auto-fill-chars as a Lisp variable and initialize it.
13626
13627 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
13628
13629         * fileio.c (Fmake_symbolic_link):
13630         (Ffile_symlink_p):
13631         Run handlers even if local machine doesn't have symlinks.
13632
13633 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
13634
13635         * event-msw.c (mswindows_drain_windows_queue):
13636         Don't generate paint magic events for non-XEmacs frames.
13637
13638 2000-03-05  Andy Piper  <andy@xemacs.org>
13639
13640         * redisplay.c (redisplay_frame): generate_displayable_area and
13641         friends assumes that we are not in GC, we therefore have to make
13642         sure that this doesn't happen.
13643
13644         * gutter.c (calculate_gutter_size): generate_displayable_area
13645         assumes that we are not in GC, we therefore have to make sure that
13646         this doesn't happen.
13647
13648 2000-03-05  Martin Buchholz  <martin@xemacs.org>
13649
13650         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
13651
13652 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
13653
13654         * redisplay.c (regenerate_window): Make sure we set a sane value
13655         for end_pos even if we jump out of the loop.
13656         (regenerate_window): Answer Ben's question :-).
13657         (start_end_of_last_line): Add may_error argument.
13658         (start_of_last_line):
13659         (end_of_last_line): Pass may_error = 0.
13660         (end_of_last_line_may_error): New function.
13661         (pixel_to_glyph_translation): Use it, so we don't crash in
13662         event_to_glyph.
13663
13664 2000-03-04  Andy Piper  <andy@xemacs.org>
13665
13666         * window.h (struct window): add gutter_extent_modiff.
13667
13668         * window.c (allocate_window): zero out gutter_extent_modiff.
13669
13670         * redisplay.h: declare sync_display_line_structs.
13671
13672         * redisplay.c (add_glyph_rune): add a better comment.
13673
13674         * redisplay-output.c (sync_display_line_structs): made non-static.
13675         (compare_runes): remove unneccesary glyph cachel access.
13676
13677         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
13678
13679         * gutter.c (output_gutter): don't output the gutter if extent
13680         changes only involve extents in buffers. use 4 sets of display
13681         lines.
13682         (gutter_extent_signal_changed_region_maybe): new function. Mark
13683         extents in gutters as changed.
13684         (update_frame_gutters): use 4 sets of display lines.
13685         (reset_gutter_display_lines): ditto.
13686         (free_frame_gutters): ditto.
13687         (redraw_exposed_gutter): force output of gutters.
13688
13689         * frame.h (struct frame): add 4 sets of gutter display lines.
13690
13691         * extents.c: (extent_changed_for_redisplay): signal changes to
13692         extents in strings in the gutter as well as extents in buffers.
13693
13694 2000-03-02  Andy Piper  <andy@xemacs.org>
13695
13696         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
13697
13698         * frame.c (Fmake_frame): make sure the gutters get initialized
13699         after the frame is visible.
13700         (set_frame_selected_window): re-arrange compilation macros a
13701         little.
13702         (change_frame_size_1): mark gutters changed.
13703
13704         * device.c (Fset_device_class): mark gutters changed.
13705
13706 2000-03-01  Andy Piper  <andy@xemacs.org>
13707
13708         * window.c (window_top_frame_gutter_height): deleted.
13709         (window_bottom_frame_gutter_height): ditto.
13710         (window_left_frame_gutter_height): ditto.
13711         (window_right_frame_gutter_height): ditto.
13712         (window_top_gutter_height): don't use them.
13713         (window_bottom_gutter_height): ditto.
13714         (window_left_gutter_width): ditto.
13715         (window_right_gutter_width): ditto.
13716         (Fsplit_window): ditto.
13717         (Fwindow_pixel_edges): don't use border dimensions here.
13718
13719         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
13720         (update_scrollbar_instance): ditto.
13721
13722         * redisplay.c (generate_modeline): don't take gutters into account.
13723         (generate_modeline): ditto.
13724         (redisplay_frame): small gutter display optimization.
13725
13726         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
13727
13728         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
13729         gutters into account.
13730
13731         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
13732         for window position and type.
13733
13734         * gutter.c (get_gutter_coords): fix for frame gutters.
13735         (update_frame_gutters): update frame geometry if the gutters have
13736         changed.
13737         (init_frame_gutters): record current gutter geometries.
13738
13739         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
13740         var.
13741         (mswindows_widget_instantiate): ditto.
13742
13743         * frame.h (struct frame): add current_gutter_bounds.
13744
13745         * frame.c (change_frame_size_1): position window and minibuffer
13746         appropriately taking into account the frame gutters.
13747
13748         * frame-x.c: (x_initialize_frame_size): take into account the
13749         frame gutters.
13750
13751 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
13752
13753         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
13754
13755 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
13756
13757         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
13758
13759 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
13760
13761         * file-coding.c (reset_decoding_stream): Clear previous
13762         detection state when autodetect.
13763
13764 2000-02-29  Didier Verna  <didier@xemacs.org>
13765
13766         * extents.c (set_extent_glyph_1): don't require extents to be
13767         attached.
13768
13769 2000-02-27  Andy Piper  <andy@xemacs.org>
13770
13771         * gutter.c (Fset_default_gutter_position): don't default left and
13772         right gutter visibility to t.
13773         (Fset_default_gutter_position): run
13774         default-gutter-position-changed-hook.
13775         (syms_of_gutter): add default-gutter-position-changed-hook.
13776
13777 2000-02-26  Andy Piper  <andy@xemacs.org>
13778
13779         * specifier.c (Fmake_specifier): add gutter references.
13780
13781         * gutter.h (RAW_WINDOW_GUTTER): new macro.
13782
13783         * lisp.h: declare Fvalid_plist_p.
13784
13785         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
13786         as changed.
13787         (default_gutter_visible_p_changed_in_window): invalidate gutter as
13788         well as its visibility so that it gets reconstructed.
13789         (construct_window_gutter_spec): new function. Construct a string
13790         to be displayed in the gutter from a plist of strings. Take care
13791         to only use elements that are declared as visible.
13792         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
13793         WINDOW_GUTTER.
13794         (gutter_validate): allow plists of strings in the specifier.
13795         (gutter_specs_changed): construct the real_gutter from the gutter
13796         specs using construct_window_gutter_spec.
13797         (gutter_visible_validate): gutter-visible is a new specifier type.
13798         (Fgutter_visible_specifier_p): new function for the new specifier.
13799         (syms_of_gutter): declare gutter-visible and
13800         Fgutter_visible_specifier_p.
13801         (specifier_type_create_gutter): intitalize new gutter-visible
13802         specifier.
13803         (reinit_specifier_type_create_gutter): ditto.
13804         (specifier_vars_of_gutter): use new specifier type for gutter
13805         visibility.
13806         (init_frame_gutters): construct real_gutter correctly.
13807         (Fgutter_specifier_p): beef up documentation.
13808         (Fgutter_size_specifier_p): ditto.
13809
13810         * winslots.h: add real_gutter slots.
13811
13812 2000-02-25  Andy Piper  <andy@xemacs.org>
13813
13814         * device-msw.c: Be kind to older cygwin versions. From Raymond
13815         Toy <toy@rtp.ericsson.se>.
13816
13817         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
13818         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
13819
13820 2000-02-25  Martin Buchholz  <martin@xemacs.org>
13821
13822         * elhash.c (MARK_OBJ): Practice macro hygiene.
13823
13824 2000-02-24  Martin Buchholz  <martin@xemacs.org>
13825
13826         * miscplay.c: s/__inline__/inline/g;
13827         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
13828         (get_device_compdc): INLINE ==> static inline
13829         * *.[ch]: Change INLINE to INLINE_HEADER globally.
13830         find -name '*.h' | \
13831         xargs global-replace \
13832         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
13833
13834 2000-02-25  Andy Piper  <andy@xemacs.org>
13835
13836         * window.c (window_top_frame_gutter_height): new function.
13837         (window_top_window_gutter_height): ditto.
13838         (window_top_gutter_height): use them.
13839         (window_bottom_frame_gutter_height): new function.
13840         (window_bottom_window_gutter_height): ditto.
13841         (window_bottom_gutter_height): use them.
13842         (window_left_window_gutter_width): new function.
13843         (window_left_frame_gutter_width): ditto.
13844         (window_left_gutter_width): use them.
13845         (window_right_window_gutter_width): new function.
13846         (window_right_frame_gutter_width): ditto.
13847         (window_right_gutter_width): use them.
13848         (window_pixel_height): new function. calulate window pixel height
13849         with frame gutter involvement.
13850         (Fsplit_window): calculate new sizes taking frame gutters into
13851         account.
13852         (window_char_height_to_pixel_height): don't include frame gutters.
13853         (window_char_height): use window_pixel_height.
13854         (window_pixheight): rename from window_pixel_height.
13855         (change_window_height): use it.
13856         (window_pixel_height_to_char_height): don't include frame gutters.
13857         (window_char_width_to_pixel_width): ditto.
13858
13859 2000-02-25  Andy Piper  <andy@xemacs.org>
13860
13861         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
13862         if it is.
13863
13864 2000-02-24  Martin Buchholz  <martin@xemacs.org>
13865
13866         * alloc.c (staticpro):
13867         (staticpro_nodump):
13868         (dumpstruct):
13869         (dumpopaque):
13870         (pdump_wire):
13871         (pdump_wire_list):
13872         (compact_string_chars):
13873         (pdump_dump_wired):
13874         Convert:  if (foo) abort();  ==>  assert (! foo);
13875
13876         * eldap.c (Fldap_search_basic):
13877         (Fldap_add):
13878         (Fldap_modify):
13879         (Fldap_delete):
13880         Fix compiler warnings, and possible crashes if (random) return
13881         value were to be used.
13882
13883 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13884
13885         * device-msw.c: Workaround ResetDC failure.
13886
13887         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
13888         applying a devmode.
13889
13890         * redisplay-msw.c (get_frame_dc): Added start_page_p.
13891         (mswindows_text_width): Do not start printer page.
13892
13893         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
13894
13895         * glyphs-msw.c: Added image methods to msprinter console and
13896         msprinter-specific image instantiation.
13897
13898 2000-02-20  Mike Alexander  <mta@arbortext.com>
13899
13900         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
13901         to avoid crashes when selection-sets-clipboard is on
13902         (mswindows_own_selection): ditto
13903
13904 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13905
13906         * glyphs-msw.c:
13907         * redisplay-msw.c (get_frame_dc):
13908         (get_frame_compdc):
13909         * console-msw.h:
13910         * device-msw.c (mswindows_init_device):
13911         (mswindows_delete_device):
13912         (msprinter_init_device):
13913         (msprinter_delete_device):
13914         * frame-msw.c (mswindows_init_frame_1):
13915         (mswindows_delete_frame):
13916         (msprinter_init_frame_3):
13917         (msprinter_delete_frame): Move compatible DC to device object from
13918         frame object, for both mswindows and msprinter. Only one at a time
13919         is needed, it is a real waste to have one per frame!
13920
13921 2000-02-23  Andy Piper  <andy@xemacs.org>
13922
13923         * glyphs.c: add dynamic width and height elements.
13924         (image_instance_equal): ditto.
13925
13926         * glyphs-widget.c (widget_query_geometry): calculate width and
13927         height dynamically if required.
13928         (initialize_widget_image_instance): initialize dynamic dimensions.
13929         (widget_instantiate): pick-up dynamic dimensions.
13930
13931         * glyphs.h (struct Lisp_Image_Instance): add width and height for
13932         dynamic determination. Add appropriate macros.
13933
13934         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
13935         dimensions safe.
13936         (WINDOW_GUTTER_SIZE): ditto.
13937         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
13938
13939         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
13940         inline.
13941         (get_frame_dc): ditto.
13942
13943         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
13944         here.
13945
13946 2000-02-23  Martin Buchholz <martin@xemacs.org>
13947
13948         * XEmacs 21.2.31 is released.
13949
13950 2000-02-22  Ben Wing <ben@xemacs.org>
13951
13952         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
13953
13954 2000-02-22  Andy Piper  <andy@xemacs.org>
13955
13956         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
13957
13958 2000-02-21  Mike Sperber <mike@xemacs.org>
13959
13960         * .dbxrc:
13961         * .gdbinit:
13962         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
13963         variables.
13964
13965 2000-02-21  Mike Sperber <mike@xemacs.org>
13966
13967         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
13968
13969 2000-02-21  Martin Buchholz <martin@xemacs.org>
13970
13971         * XEmacs 21.2.30 is released.
13972
13973 2000-02-20  Martin Buchholz  <martin@xemacs.org>
13974
13975         Performance hacking.
13976         * *.c (syms_of_*):
13977         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
13978         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
13979         * emacs.c (main_1):
13980         * lisp.h (DEFUN):
13981         * console.c (DEFVAR_CONSOLE_LOCAL_1):
13982         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
13983         * symeval.h (DEFVAR_SYMVAL_FWD):
13984         * symbols.c (guts_of_unbound_marker):
13985         Make all c_readonly objects also lisp_readonly and marked for life.
13986         * lrecord.h (struct lrecord_implementation):
13987         Document flags better.
13988         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
13989         * lrecord.h (DECLARE_LRECORD):
13990         * lrecord.h (XSETRECORD):
13991         * lrecord.h (RECORDP):
13992         * lrecord.h (RECORD_TYPEP):
13993         * lrecord.h (RECORD_MARKER): New.
13994         * lrecord.h (error_check_*):
13995         * lrecord.h (CONCHECK_NONRECORD):
13996         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
13997         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
13998         * lrecord.h (set_lheader_implementation):
13999         * lrecord.h (enum lrecord_type): New.
14000         * symeval.h (SYMBOL_VALUE_MAGIC_P):
14001         * alloc.c (disksave_object_finalization_1):
14002         * alloc.c (mark_object):
14003         * alloc.c (lrecord_type_index):
14004         * alloc.c (tick_lcrecord_stats):
14005         * alloc.c (Fgarbage_collect):
14006         * alloc.c (init_alloc_once_early):
14007         * alloc.c (pdump_load):
14008         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
14009         * alloc.c (lrecord_type_index): Delete.
14010         Make lisp object type indexes be constant.
14011           Makes (byte-compile) 5% faster.
14012         Put all marker functions into their own array.
14013           Makes (garbage-collect) 5% faster.
14014         Optimize SYMBOL_VALUE_MAGIC_P.
14015           Makes (byte-compile) 2-3% faster.
14016         * config.h.in (gc_checking_assert): New.
14017         * alloc.c: Use gc_checking_assert().
14018         * .dbxrc: Make compatible with new object type implementation.
14019         * .gdbinit: Make compatible with new object type implementation.
14020         * alloc.c: Delete all symbols defined only for debugging, such as
14021         Lisp_Type_Vector and lrecord_charset.
14022
14023 2000-02-21  Andy Piper  <andy@xemacs.org>
14024
14025         * gui-msw.c (Fmswindows_shell_execute): fix file location
14026         problems.
14027
14028         * buffer.c (Fkill_buffer): remove buffer from alist buffer
14029         unshowing so that set_window_buffer doesn't undo
14030         kill_buffer_hook's hard work.
14031
14032         * glyphs-widget.c (tab_control_query_geometry): don't count the
14033         first item when calculating geometry.
14034
14035         * glyphs.c (map_subwindow): remove redundant code.
14036         (update_frame_subwindows): be more circumspect about when to
14037         update subwindows.
14038
14039         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
14040         when items haven't changed. Update faces if faces have changed as
14041         well as just the widget face.
14042         (x_tab_control_update): Update faces if faces have changed as well
14043         as just the widget face.
14044
14045 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14046
14047         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
14048         registration.
14049         (build_syscolor_string): Use mswindows_color_to_string to try to
14050         get a named color.
14051         (mswindows_device_system_metrics): Reverse the foreground and
14052         background colors so that they match the documentation.
14053
14054         * objects-msw.c: (mswindows_X_color_map): tweak some values so
14055         they match the default Windows palette.
14056         (mswindows_color_to_string): New function.
14057
14058 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14059
14060         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
14061
14062 2000-02-18  Olivier Galibert  <galibert@pobox.com>
14063
14064         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
14065         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
14066
14067         * symbols.c (init_symbols_once_early): Removed obsolete
14068         DATA_SEG_BITS related kludge.
14069         (defvar_magic): Ditto.
14070
14071         * malloc.c: Removed obsolete DATA_SEG_BITS
14072         * ralloc.c: Ditto.
14073         * mem-limits.h: Ditto.
14074
14075         * Makefile.in.in: Removed obsolete HAVE_SHM
14076         * emacs.c: Ditto.
14077
14078 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14079
14080         *  device-msw.c (mswindows_delete_device): Free DDE string
14081         handles.
14082
14083 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14084
14085         * keymap.c (get_keyelt):
14086         * unexnt.c (unexec):
14087         * vm-limit.c (memory_warnings):
14088         * ntheap.c (recreate_heap):
14089         * ntheap.h (UNINIT_PTR):
14090         * select-msw.c (Fmswindows_get_clipboard):
14091         (Fmswindows_set_clipboard):
14092         * objects-msw.h (MSWINDOWS_BAD_HFONT):
14093         * objects-msw.c:
14094         * menubar-msw.c (displayable_menu_item):
14095         * glyphs-msw.c:
14096         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
14097         * sysdep.c (sys_subshell):
14098         * process-nt.c (nt_create_process):
14099         * nt.c (normalize_filename):
14100         (dostounix_filename):
14101         (unixtodos_filename):
14102         * ntproc.c (win32_executable_type):
14103         * ntplay.c (play_sound_data_1):
14104         (play_sound_file):
14105         * editfns.c (get_home_directory):
14106         * event-msw.c (struct winsock_stream):
14107         (mswindows_dde_callback):
14108         * device-msw.c (msprinter_init_device):
14109         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
14110
14111         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
14112         mswindows_clear_toolbar were swapped!
14113
14114         * objects-msw.c:(colormap_t):
14115         (fontmap_t):
14116         * emacs.c (struct standard_args): Fixed const jumble.
14117
14118         * glyphs-widget.c (update_widget): Fixed comparison notation.
14119
14120         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
14121
14122         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
14123         __declspec(noreturn) syntax.
14124
14125 2000-02-19  Martin Buchholz  <martin@xemacs.org>
14126
14127         * eldap.c (Fldap_open):
14128         (Fldap_search_basic):
14129         (Fldap_add):
14130         (Fldap_modify):
14131         Use new coding system conversion macros.
14132
14133 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
14134
14135         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
14136
14137 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
14138
14139         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
14140         (Fldap_add, Fldap_modify, Fldap_delete): New functions
14141
14142         * eldap.c (Qadd, Qreplace): New constant symbols
14143         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
14144         interruptions by XEmacs signals
14145         Remove unnecessary calls to slow_down_interrupts and
14146         speed_up_interrupts
14147         (Fldap_search_basic): Renamed from Fldap_search_internal
14148         Added new optional parameter VERBOSE that triggers the
14149         display of progress messages
14150         Remove unnecessary calls to slow_down_interrupts and
14151         speed_up_interrupts
14152         LDAP result code analysis rewritten
14153         (Fldap_add, Fldap_modify, Fldap_delete): New functions
14154         (syms_of_eldap): Define the new symbols and functions
14155
14156
14157 2000-02-17  Martin Buchholz  <martin@xemacs.org>
14158
14159         * realpath.c: Determine PATH_MAX maximally portably.
14160
14161         * insdel.c (bytecount_to_charcount): Optimize.
14162         The function used to be optimized for entirely ASCII sequences.
14163         Now it is optimized for successive characters from the same
14164         charset.  This also wins big for _mostly_ ASCII sequences.
14165
14166         * fileio.c (Ffile_truename): convert return from realpath() using
14167         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
14168         - Rewrite GCPROing slightly.
14169
14170         * sysdep.c (sys_open): Do filename conversion, like all other
14171         sys_* functions.  Fixes bug:
14172         (let ((file-name-coding-system 'iso-8859-2))
14173            (write-region x y latin2-name))
14174         ==> writes filename using internal encoding.
14175
14176 2000-02-18  Martin Buchholz  <martin@xemacs.org>
14177
14178         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
14179         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
14180         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
14181         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
14182         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
14183         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
14184         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
14185         (CONST_IF_NOT_DEBUG): Delete.
14186         * alloc.c (this_one_is_unmarkable): Delete.
14187         (mark_object): Don't check for this_one_is_unmarkable. Use the
14188         c_readonly flag instead.
14189         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
14190
14191 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14192
14193         * event-msw.c (mswindows_drain_windows_queue):
14194         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
14195         away redundant repaint events.
14196
14197 2000-02-17  Andy Piper  <andy@xemacs.org>
14198
14199         * redisplay.h: declare mark_redisplay_structs.
14200
14201         * redisplay.c (redisplay_window):
14202         (redisplay_frame): don't check subwindows_state_changed.
14203         (mark_redisplay): mark gutters here.
14204
14205         * glyphs.c: (instantiate_image_instantiator): always layout if we
14206         haven't done so already.
14207         (allocate_image_instance): don't mark as dirty.
14208         (update_subwindow): bind inhibit_quit.
14209
14210         * gutter.c (mark_gutters): new function.
14211
14212         * glyphs-x.c (x_update_widget): Always resize to get round a
14213         widget bug.
14214
14215         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
14216         breaking absolutely everything.
14217
14218         * gutter.h: declare mark_gutters.
14219
14220 2000-02-16  Martin Buchholz <martin@xemacs.org>
14221
14222         * XEmacs 21.2.29 is released.
14223
14224 2000-02-15  Olivier Galibert  <galibert@pobox.com>
14225
14226         * fns.c (size_bit_vector): Fix computation of the size.
14227
14228 2000-02-15  Martin Buchholz  <martin@xemacs.org>
14229
14230         * *.[ch]: Change CONST to const globally.
14231         find -name '*.[ch]' | \
14232         xargs global-replace \
14233         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
14234         - Remove vestigial references to CONST_IS_LOSING
14235
14236 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14237
14238         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
14239         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
14240         events instead of dispatching them directly.
14241         (mswindows_handle_paint): New function to do repainting.
14242         (mswindows_wnd_proc):
14243         (emacs_mswindows_handle_magic_event): Call above function.
14244
14245 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14246
14247         * objects-msw.c (mswindows_create_font_variant): Return the new
14248         font handle.
14249         (initialize_font_instance): Get font metrics from the underlined
14250         variant of the font to cope with the case where the underlined
14251         font has a bigger descent.
14252
14253 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
14254
14255         * gui.c (gui_item_accelerator): Return the first underlined
14256         character in item name.
14257
14258 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14259
14260         * lisp.h: Added Qprinter.
14261
14262         * general.c (syms_of_general): Initialized it.
14263
14264         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
14265         (get_frame_dc):
14266         (get_frame_compdc): Made inline.
14267
14268         * console.h (struct console_methods): Added eject_page method.
14269
14270         * frame.h: Added FRAME_DISPLAY_P and friends.
14271         Aligned backslahes in many macros in more readable fashion.
14272         Added page_number to struct frame, and an accessor macro
14273         for it.
14274
14275         * defice.h: Added DEVICE_DISPLAY_P and friends.
14276
14277         * device.c (Fdevice_printer_p): Used these.
14278
14279         * frame.c (allocate_frame_core): Initialize page number.
14280         (Fprint_job_page_number):
14281         (Fprint_job_eject_page): Implemented.
14282
14283         * frame-msw.c (msprinter_eject_page): Added method.
14284         (msprinter_start_page): Added.
14285
14286         * window.c (Fwindow_truncated_p): Fixed docstring.
14287         (Fwindow_last_line_visible_height): Implemented.
14288
14289 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
14290
14291         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
14292
14293 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
14294
14295         * syntax.c (scan_words): Always advance at least one character.
14296
14297 2000-02-13  Andy Piper  <andy@xemacs.org>
14298
14299         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
14300         to make sure the glyph is in the cachels.
14301
14302         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
14303         global image instance flag.
14304         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
14305         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
14306
14307         * glyphs.c (allocate_image_instance): set dirty bits correctly.
14308         (Fset_image_instance_property): mark layout as changed.
14309         (invalidate_glyph_geometry_maybe): mark layout as changed.
14310         (glyph_width): use new NEEDS_LAYOUT macro.
14311         (glyph_ascent): ditto.
14312         (glyph_descent): ditto.
14313         (glyph_height): ditto.
14314         (image_instance_layout): mark layout as clean after laying out.
14315         (update_subwindow): don't mark layout as clean here.
14316
14317         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
14318         should no longer be needed.
14319
14320         * glyphs-x.c (x_update_widget): sanitize asserts.
14321         (x_finalize_image_instance): sanitize assignment to widgets.
14322
14323         * glyphs-widget.c (widget_instantiate): don't need to clear the
14324         layout flag here.
14325
14326 2000-02-13  Martin Buchholz  <martin@xemacs.org>
14327
14328         * sysdep.c (getcwd): Use standard prototype.
14329         * sysdep.h (getcwd): Use standard prototype.
14330
14331         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
14332         (sequence, start, end).
14333         Remove redundant type checking.
14334         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
14335         view of `caller-protects') to avoid a crash where the real fix was
14336         found elsewhere.
14337
14338 2000-02-12  Martin Buchholz  <martin@xemacs.org>
14339
14340         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
14341
14342         * s/sol2.h: Remove feature macro initialization.
14343
14344         * alloc.c (alloc_lcrecord): Add more type checking assertions.
14345         (vector_hash): New.  Code from internal_hash.
14346         * lrecord.h:
14347         Fix up allocation subsystem comments.
14348
14349         * config.h.in: Add __EXTENSIONS__ for Solaris.
14350
14351         * systime.h (EMACS_GETTIMEOFDAY): New.
14352         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
14353         Remove Solaris-specific code.
14354         Use void* for the (ignored) second arg for gettimeofday().
14355
14356         * elhash.c (hash_table_hash): Implement it, finally.
14357         * elhash.c:  Use hashcode_t.
14358
14359         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
14360         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
14361
14362         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
14363         * fns.c (size_bit_vector):
14364         * alloc.c (size_vector):
14365         (make_vector_internal):
14366         (make_bit_vector_internal):
14367         (sweep_bit_vectors_1):
14368         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
14369
14370 2000-02-10  Martin Buchholz  <martin@xemacs.org>
14371
14372         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
14373         Include strings.h to avoid warnings for bzero and strcasecmp.
14374
14375 2000-02-10  Olivier Galibert  <galibert@pobox.com>
14376
14377         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
14378         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
14379
14380         * fns.c (size_bit_vector): New.  Declare bit vectors as a
14381         sequence.
14382
14383 2000-02-10  Olivier Galibert  <galibert@pobox.com>
14384
14385         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
14386         use a value field instead.
14387         (symbol_value_forward_forward): Use value field.
14388         (DEFVAR_SYMVAL_FWD): Use value field.
14389         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
14390         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
14391         (DEFVAR_CONST_INT): Ditto.
14392         (DEFVAR_BOOL): Ditto.
14393         (DEFVAR_CONST_BOOL): Ditto.
14394         (DEFVAR_INT_MAGIC): Ditto.
14395         (DEFVAR_BOOL_MAGIC): Ditto.
14396
14397         * symbols.c (guts_of_unbound_marker): Use value field.
14398         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
14399         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
14400
14401         * lisp.h: Declare dumpopaque and noninteractive1.
14402
14403         * alloc.c (dumpopaque): Added.
14404         (pdump_dump_opaquevec): Added.
14405         (pdump): Call pdump_dump_opaquevec to dump opaque data.
14406         (pdump_load): Reload opaque data.  Sync noninteractive1 with
14407         noninteractive.
14408
14409 2000-02-10  Andy Piper  <andy@xemacs.org>
14410
14411         * glyphs.c (image_instance_layout): if the size changes, mark it
14412         as such.
14413
14414         * redisplay-output.c (redisplay_output_layout): Update the
14415         subwindow here.
14416         (redisplay_output_subwindow): ditto.
14417
14418         * glyphs.c (update_subwindow): make sure we reset flags for
14419         layouts as well as everything else.
14420
14421         * glyphs-widget.c (layout_layout): don't need to set the instances
14422         dimensions here.
14423
14424 2000-02-09  Martin Buchholz  <martin@xemacs.org>
14425
14426         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
14427         not HAVE_DLOPEN, which is a lower-level thing.
14428
14429         * .cvsignore: Ignore gmon.out
14430
14431 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
14432
14433         * .cvsignore: Ignore portable dumper xemacs.dmp file
14434
14435 2000-02-09  Andy Piper  <andy@xemacs.org>
14436
14437         * redisplay-output.c (redisplay_output_layout): be more clever
14438         about when we output based on the changed flags.
14439
14440         * glyphs.h (struct image_instantiator_methods): add update_method.
14441         (struct Lisp_Image_Instance): add changed flags. Declare new
14442         macros for manipulating them.
14443
14444         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
14445         (image_instance_parent_glyph): find an image_instance's parent
14446         glyph or image_instance.
14447         (image_instance_layout): mark the size as changed.
14448         (set_image_instance_dirty_p): new function. mark an image
14449         instance, plus all of its parents, as dirty.
14450         (Fset_image_instance_property): use it.
14451         (Fglyph_animated_timeout_handler): use it.
14452         (update_subwindow): call update_widget and device methods for
14453         update_subwindow. Mark all changed flags as clean.
14454         (Fresize_subwindow): mark size as changed.
14455
14456         * glyphs-x.c (x_finalize_image_instance): try and detect gc
14457         failures.
14458         (x_update_subwindow): only resize subwindows here.
14459         (x_update_widget): new function. Update all changed properties of
14460         a widget.
14461         (x_resize_subwindow): deleted.
14462         (x_widget_set_property): deleted.
14463         (x_progress_gauge_set_property): deleted.
14464         (x_progress_gauge_update): new function. Implement recorded
14465         changes.
14466         (x_tab_control_update): ditto.
14467         (x_tab_control_set_property): deleted.
14468         (console_type_create_glyphs_x): declare new functions.
14469         (image_instantiator_format_create_glyphs_x): ditto.
14470
14471         * glyphs-widget.c (widget_set_property): mark text changed.
14472         (update_widget): new function. Update properties of a widget.
14473         (widget_instantiate): for layouts make sure we set their
14474         children's parent correctly.
14475         (tab_control_set_property): new function. Record changes that will
14476         take place under redisplay's control.
14477         (progress_gauge_set_property): ditto.
14478         (image_instantiator_progress_guage): declare new functions.
14479         (image_instantiator_tab_control): ditto.
14480
14481         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
14482         now.
14483         (mswindows_update_widget): new function. Update all properties on
14484         a widget that have changed.
14485         (mswindows_button_update): new function. Update a button's set
14486         state.
14487         (mswindows_tab_control_update): new function. Update the items in
14488         a tab.
14489         (mswindows_tab_control_set_property): deleted.
14490         (mswindows_progress_gauge_update): new function. Update the
14491         progress gauge's progress.
14492         (mswindows_widget_set_property): deleted. This is all done
14493         asynchronously now.
14494         (mswindows_progress_gauge_set_property): ditto.
14495         (console_type_create_glyphs_mswindows): declare new methods.
14496         (image_instantiator_format_create_glyphs_mswindows): ditto.
14497
14498         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
14499         (msprinter_set_frame_properties): ditto.
14500
14501         * console.h (struct console_methods): Add update_widget_method.
14502
14503 2000-02-09  Andy Piper  <andy@xemacs.org>
14504
14505         * gui-msw.c (Fmswindows_shell_execute): Make
14506         mswindows-shell-execute industrial strength.
14507
14508 2000-02-08  Martin Buchholz  <martin@xemacs.org>
14509
14510         * lrecord.h: Make macro argument `props' match member function `plist'.
14511         * fns.c (Fget):
14512         * fns.c (Fput):
14513         * fns.c (Fremprop):
14514         * fns.c (Fobject_plist):
14515         * alloc.c:
14516         * symbols.c:
14517         Object property list frobbing cleanup.
14518         - Allow any lisp object (compared with `eq'), not just symbols, as
14519           keys in object plists.
14520         - Move symbol plist frobbing into symbols.c, where it belongs.
14521         - Move string plist frobbing into alloc.c, where it belongs.
14522         - Everything's an lrecord now, so no need to test for symbolp, etc.
14523         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
14524
14525         * extents.c: Reorder code to remove declarations.
14526
14527         * frame.h (store_in_alist): Remove useless declaration.
14528
14529 2000-02-07  Martin Buchholz  <martin@xemacs.org>
14530
14531         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
14532         * config.h.in: Add HAVE_XCONVERTCASE.
14533
14534 2000-02-07  Andy Piper  <andy@xemacs.org>
14535
14536         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
14537         it breaks many things.
14538
14539 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
14540
14541         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
14542         actually can start a common comment type.
14543         * src/syntax.h (SYNTAX_END_P): ditto for end.
14544
14545 2000-02-07  Martin Buchholz <martin@xemacs.org>
14546
14547         * XEmacs 21.2.28 is released.
14548
14549 2000-02-06  Martin Buchholz  <martin@xemacs.org>
14550
14551         * event-Xt.c (x_keysym_to_character): New.
14552         (maybe_define_x_key_as_self_inserting_character): New.
14553         (x_has_keysym): New.
14554         Auto-define all keys on the keyboard as self-insert-key.
14555
14556 2000-02-02  Martin Buchholz  <martin@xemacs.org>
14557
14558         * menubar.c (vars_of_menubar): A small code simplification.
14559
14560         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
14561
14562         * ExternalShell.c:
14563         * ExternalClient.c:
14564         * EmacsShell-sub.c:
14565         * EmacsManager.c:
14566         * EmacsFrame.c:
14567         Use consistent style for specifying X resources.
14568
14569         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
14570         This makes (dontusethis-set-symbol-value-handler) actually usable.
14571
14572         * lrecord.h (lrecord_decription_type):
14573         * alloc.c (pdump_register_sub):
14574         (pdump_dump_data):
14575         (pdump_reloc_one):
14576         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
14577         Comply with XEmacs coding style.
14578         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
14579         args, and XD_LISP_OBJECT_ARRAY with 3 args.
14580
14581         * keymap.c (Faccessible_keymaps):
14582         Make (accessible-keymaps map "\C-h") do the Right Thing.
14583         Make (accessible-keymaps map []) do the Right Thing.
14584         Make (accessible-keymaps map "") do the Right Thing.
14585         (check_keymap_definition_loop): New function.
14586         (keymap_store_internal): Keep luser from shooting self in foot,
14587           via (define-key ctl-x-4-map "p" global-map).
14588         Remove fullness slot from struct Lisp_Keymap, since hash tables
14589         are now reliable.
14590         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
14591
14592 2000-01-30  Martin Buchholz  <martin@xemacs.org>
14593
14594         * redisplay.c (init_redisplay): Fix small memory leak.
14595         * elhash.h:
14596         * elhash.c (pdump_reorganize_hash_table):
14597         Rename from reorganize_hash_table. Change prototype.
14598         Reuse the original memory for hentries.  Save 100k.
14599         * alloc.c (PDUMP_READ): new macro.
14600         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
14601         * alloc.c: No need to #ifndef before #undef.
14602
14603         * print.c: Allow debug_print() to print readably by modifying
14604         debug_print_readably.  Use consistent variable names.
14605
14606         * .dbxrc: Try to get things to work even if stopped in a function
14607         without source available by explicitly specifying source files.
14608 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14609
14610         * unexnt.c (_start): Removed bogus code which caused loading heap
14611         from differrent executable file.
14612         Removed bogus assignment to _fmode, which caused inconsistencies.
14613
14614 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14615
14616         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
14617         Have spawnve encapsulation regard DONT_ENCAPSULATE.
14618         Do not preliminary `#define signal sigset'.
14619
14620         * systime.h: Do not prototype environ on windows nt and cygwin,
14621         this conflicts with system header.
14622
14623         * syssignal.h: Use correct define for WINDOWSNT
14624
14625         * sysdep.h: Do not prototype environ on windows nt, this conflicts
14626         with system header.
14627
14628         * sysdep.c (near start of file): Fixed commentary and rearranged
14629         ifdefs in readable order.
14630         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
14631         (start_of_text):
14632         (end_of_text):
14633         (end_of_data): Do not compile in if using PDUMP.
14634
14635         * symsinit.h: Prototyped vars_of_nt().
14636
14637         * ntproc.c (windows9x_p): Added, instead of os_subtype.
14638         (find_child_console): Use it.
14639         (sys_kill): Use it.
14640
14641         * ntheap.h: Do not extern os_subtype.
14642
14643         * ntheap.c (cache_system_info): Do not cache unneeded:
14644         nt_major_version, nt_minor_version and os_subtype.
14645         (recreate_heap): Do not compile in when PDUMPing.
14646
14647         * nt.c (geteuid and friends): Use the new varibale
14648         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
14649         (init_user_info): Removed the above mentioned hackery.
14650         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
14651         stat has been fixed in the C runtime.
14652         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
14653
14654         * file-coding.c (struct file_coding_dump): Do not define
14655         ucs_to_mule_table in the struct if not MULE.
14656         (struct struct lrecord_description fcd_description_1): Do not dump
14657         the above.
14658
14659         * emacs.c (main_1): Call vars_of_nt().
14660         (right before Fdump_emacs_data): Don't need lastfile if using both
14661         portabe dumper and system malloc.
14662
14663         * alloc.c (Fmemory_limit): Conditionalized out.
14664         (pdump): Use OPEN_BINARY for the portable dump file.
14665         (pdump_load): Ditto.
14666
14667 2000-02-02  Mike Alexander  <mta@arbortext.com>
14668
14669         * nt.c (convert_time): Set tm_isdst before calling mktime and
14670         avoid calling it at all if the compiler supports 64 bit integers.
14671         Also initialize utc_base_ft before using it.
14672
14673 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
14674
14675         * frame.c (change_frame_size_1): Take f->internal_border_width
14676         into consideration when calculating the width of the frame.
14677
14678 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14679
14680         * window.c (frame_min_height):
14681         (frame_size_valid_p):
14682         (frame_pixsize_valid_p): Added.
14683         (check_frame_size): Generalized.
14684
14685         * window.h: Prototyped the above.
14686
14687         * lisp.h:
14688         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
14689         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
14690         Deleted Vwin32_* and Vbinary_process_* unused variables.
14691
14692         * device-msw.c (msprinter_init_device): Do not get printer font
14693         list; Added DEVMODE functions.
14694
14695         * frame-msw.c: Added lots of printer code.
14696
14697         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
14698         general.c.
14699
14700         * console-msw.h: Added more msprinter device private slots.
14701
14702 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14703
14704         * event-msw.c (key_needs_default_processing_p): Added.
14705         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
14706
14707 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14708
14709         * glyphs.c (image_instance_layout): Mark image instance as clean
14710         after layout.
14711         (glyph_dirty_p): Removed redundant function.
14712         (invalidate_glyph_geometry_maybe): Added.
14713         (update_glyph_cachel_data): Call it.
14714
14715         * glyphs.h: Prototyped it.
14716
14717         * redisplay.c (add_glyph_rune): Call it.
14718         (redisplay_window): Reset glyphs cachels when frame faces have
14719         changed, thus forcing recomputation of built-in border glyphs.
14720
14721 2000-01-30  Martin Buchholz  <martin@xemacs.org>
14722
14723         * Makefile.in.in: Make portable dumper and purify play well together.
14724         Add imperfect, but better than nothing, support for pdump.
14725         Remove xemacs.dmp when temacs is re-generated.
14726         Don't ignore errors when dumping xemacs.
14727
14728         * symbols.c (maybe_call_magic_handler): Remove one magic number.
14729
14730 2000-01-28  Andy Piper  <andy@xemacs.org>
14731
14732         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
14733         (setup_normal_frame): ditto.
14734         (setup_frame_without_minibuffer): ditto.
14735         (setup_minibuffer_frame): ditto.
14736         (delete_frame_internal): ditto.
14737         (Fmake_frame_invisible): ditto.
14738         (Ficonify_frame): ditto.
14739
14740         * window.h: change Fset_window_buffer signature.
14741
14742         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
14743         (Fset_window_buffer): allow recording of buffer if the window is
14744         the selected window.
14745         (window_loop): Use new Fset_window signature.
14746
14747 2000-01-23  Daniel Pittman  <daniel@danann.net>
14748
14749         * config.h.in: Added template for `HAVE_ATHENA_3D'
14750
14751 2000-01-29  Andy Piper  <andy@xemacs.org>
14752
14753         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
14754
14755         * gutter.c (output_gutter): Don't output if the window isn't live.
14756
14757 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14758
14759         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
14760         of 01/12/00: Moved SetFocus back here where it belongs.
14761
14762 2000-01-23  Andy Piper  <andy@xemacs.org>
14763
14764         * s/cygwin32.h: declare printer things.
14765
14766 2000-01-26  Andy Piper  <andy@xemacs.org>
14767
14768         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
14769         Alexander.
14770
14771 2000-01-24  Andy Piper  <andy@xemacs.org>
14772
14773         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
14774         (mswindows_button_instantiate): Make sure glyph is a pixmap.
14775
14776         * glyphs-widget.c (widget_instantiate): Avoid shadows.
14777
14778         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
14779
14780         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
14781
14782         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
14783         (mswindows_output_display_block): Avoid local shadows.
14784
14785         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
14786         (mswindows_enqueue_mouse_button_event): ditto.
14787         (mswindows_handle_gui_wm_command): remove declaration.
14788
14789         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
14790         warnings.
14791
14792         * console-msw.h: Avoid shadows.
14793         (mswindows_get_toolbar_button_text):
14794         (emacs_mswindows_create_stream_pair):
14795         (emacs_mswindows_delete_stream_pair):
14796         (mswindows_handle_toolbar_wm_command): declare.
14797
14798         * device-msw.c (build_syscolor_string): Avoid shadows.
14799
14800 2000-01-23  Andy Piper  <andy@xemacs.org>
14801
14802         * glyphs-widget.c (widget_instantiate): reverse the items for
14803         layouts so that children are in the expected order.
14804
14805 2000-01-28  Martin Buchholz  <martin@xemacs.org>
14806
14807         * ralloc.c: safe_bcopy ==> memmove
14808         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
14809         * s/msdos.h: Remove BCOPY macros.
14810         * insdel.c (gap_right): Remove BCOPY conditional code.
14811         * insdel.c (gap_left): Remove BCOPY conditional code.
14812         XEmacs demands a working ANSI C compiler - hence memmove.
14813
14814         * regex.c (regex_compile): Remove accidental use of trigraphs.
14815
14816 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14817
14818         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
14819         event timestamp.
14820
14821 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14822
14823         * event-msw.c (mswindows_drain_windows_queue): Added the
14824         parameter.
14825         (mswindows_need_event): Commented the call to
14826         mswindows_drain_windows_queue().
14827         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
14828         only.
14829
14830         * console-msw.h: Moved a few function prototypes here from
14831         event-msw.c.
14832
14833         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
14834         parameter from unsigned short to unsigned long.
14835         (Fmswindows_shell_execute): Added return value.
14836
14837 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
14838
14839         * sysdep.c (init_system_name):
14840           process-unix.c (unix_canonicalized_host_name):
14841         Don't call freeaddrinfo() if getaddrinfo() fails.
14842
14843         * process-unix.c (unix_open_unix_network_stream):
14844         Moved the code to get a port # into address loop.
14845
14846 2000-01-27  Martin Buchholz  <martin@xemacs.org>
14847
14848         * buffer.c (reinit_vars_of_buffer):
14849         The right place to initialize conversion_in_dynarr and
14850         conversion_out_dynarr.
14851
14852         * alloc.c (pdump): Use the real open() till sys_open() is functional.
14853
14854         * process-unix.c (unix_canonicalize_host_name): Muleize.
14855         (unix_open_network_stream): Muleize.
14856
14857         * buffer.h: Fix up prototypes for ralloc.c functions.
14858
14859 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
14860         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
14861         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
14862                 instead of gethostbyname()
14863         * process-unix.c: In unix_canonicalize_host_name() and
14864                 unix_open_network_stream(), add code to use getaddrinfo()
14865                 instead of gethostbyname().
14866
14867 2000-01-27  Daniel Pittman <daniel@danann.net>
14868
14869         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
14870         libs when built with flat Athena.
14871
14872 2000-01-27  Martin Buchholz  <martin@xemacs.org>
14873
14874         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
14875         Use coding standards for function prototypes.
14876
14877 2000-01-25  Martin Buchholz  <martin@xemacs.org>
14878
14879         * dialog-msw.c (push_lisp_string_as_unicode):
14880         * doc.c (unparesseuxify_doc_string):
14881         * dired.c (Fuser_name_completion_1):
14882         * dired.c (Fuser_name_all_completions):
14883         * dired.c (free_user_cache):
14884         * dired.c (user_name_completion):
14885         * console-x.c (get_display_arg_connection):
14886         * minibuf.c (clear_echo_area_internal):
14887         * minibuf.c (echo_area_append):
14888         * eldap.c (Fldap_open):
14889         * eldap.c (Fldap_search_internal):
14890         * frame-x.c (x_set_frame_text_value):
14891         * frame-x.c (x_set_frame_properties):
14892         * frame-x.c (x_create_widgets):
14893         * redisplay-tty.c (term_get_fkeys_1):
14894         * objects-x.c (x_parse_nearest_color):
14895         * objects-x.c (x_valid_color_name_p):
14896         * objects-x.c (x_initialize_font_instance):
14897         * objects-x.c (x_list_fonts):
14898         * objects-x.c (x_find_charset_font):
14899         * tooltalk.c (Fadd_tooltalk_message_arg):
14900         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
14901         * tooltalk.c (Fadd_tooltalk_pattern_arg):
14902         * process-unix.c (unix_create_process):
14903         * ntproc.c (sys_spawnve):
14904         * sound.c (Fplay_sound_file):
14905         * sound.c (Fplay_sound):
14906         * buffer.c (init_initial_directory):
14907         * buffer.c (init_buffer):
14908         * editfns.c (init_editfns):
14909         * editfns.c (Ftemp_directory):
14910         * editfns.c (Fuser_full_name):
14911         * editfns.c (uncache_home_directory):
14912         * editfns.c (get_home_directory):
14913         * editfns.c (Fuser_home_directory):
14914         * editfns.c (Fformat_time_string):
14915         * editfns.c (Fcurrent_time_string):
14916         * gui-x.c (button_item_to_widget_value):
14917         * database.c (Fopen_database):
14918         * event-Xt.c (x_to_emacs_keysym):
14919         * event-Xt.c (x_event_to_emacs_event):
14920         * event-Xt.c (describe_event_window):
14921         * event-msw.c (mswindows_wnd_proc):
14922         * glyphs-eimage.c (jpeg_instantiate):
14923         * glyphs-eimage.c (gif_instantiate):
14924         * glyphs-eimage.c (png_instantiate):
14925         * glyphs-eimage.c (tiff_instantiate):
14926         * glyphs-x.c (xbm_instantiate_1):
14927         * glyphs-x.c (x_xbm_instantiate):
14928         * glyphs-x.c (x_xface_instantiate):
14929         * glyphs-x.c (autodetect_instantiate):
14930         * glyphs-x.c (cursor_font_instantiate):
14931         * glyphs-x.c (x_widget_instantiate):
14932         * glyphs-x.c (x_widget_set_property):
14933         * glyphs-x.c (x_widget_property):
14934         * glyphs-x.c (BUILD_GLYPH_INST):
14935         * print.c (write_string_to_stdio_stream):
14936         * print.c (output_string):
14937         * print.c (Falternate_debugging_output):
14938         * print.c (Fexternal_debugging_output):
14939         * glyphs-msw.c (extract_xpm_color_names):
14940         * glyphs-msw.c (mswindows_xpm_instantiate):
14941         * glyphs-msw.c (bmp_instantiate):
14942         * glyphs-msw.c (resource_name_to_resource):
14943         * glyphs-msw.c (mswindows_resource_instantiate):
14944         * glyphs-msw.c (xbm_instantiate_1):
14945         * glyphs-msw.c (mswindows_xbm_instantiate):
14946         * glyphs-msw.c (mswindows_xface_instantiate):
14947         * glyphs-msw.c (mswindows_widget_instantiate):
14948         * glyphs-msw.c (add_tree_item):
14949         * glyphs-msw.c (add_tab_item):
14950         * glyphs-msw.c (mswindows_combo_box_instantiate):
14951         * glyphs-msw.c (mswindows_widget_property):
14952         * glyphs-msw.c (mswindows_combo_box_property):
14953         * glyphs-msw.c (mswindows_widget_set_property):
14954         * console.c (stuff_buffered_input):
14955         * objects-msw.c (mswindows_initialize_color_instance):
14956         * objects-msw.c (mswindows_valid_color_name_p):
14957         * objects-msw.c (mswindows_list_fonts):
14958         * objects-msw.c (mswindows_font_instance_truename):
14959         * bytecode.c (optimize_compiled_function):
14960         * select-x.c (symbol_to_x_atom):
14961         * select-x.c (x_atom_to_symbol):
14962         * select-x.c (hack_motif_clipboard_selection):
14963         * select-x.c (selection_data_to_lisp_data):
14964         * select-x.c (lisp_data_to_selection_data):
14965         * select-x.c (Fx_get_cutbuffer_internal):
14966         * select-x.c (Fx_store_cutbuffer_internal):
14967         * buffer.h (TO_EXTERNAL_FORMAT): New function.
14968         * buffer.h (TO_INTERNAL_FORMAT): New function.
14969         * emacs.c (make_arg_list_1):
14970         * emacs.c (make_argc_argv):
14971         * emacs.c (main_1):
14972         * emacs.c (Fdump_emacs):
14973         * emacs.c (split_string_by_emchar_1):
14974         * file-coding.h:
14975         * lisp.h:
14976         * lstream.h:
14977         * symsinit.h:
14978         * device-x.c (x_init_device):
14979         * device-x.c (Fx_valid_keysym_name_p):
14980         * device-x.c (Fx_get_font_path):
14981         * device-x.c (Fx_set_font_path):
14982         * glyphs.c (bitmap_to_lisp_data):
14983         * glyphs.c (pixmap_to_lisp_data):
14984         * alloc.c (make_ext_string): Use coding system arguments.  Update
14985         all callers.
14986         * alloc.c (build_string):
14987         * callproc.c (child_setup):
14988         * callproc.c (init_callproc):
14989         * fileio.c (lisp_strerror):
14990         * fileio.c (directory_file_name):
14991         * fileio.c (Fexpand_file_name):
14992         * fileio.c (Ffile_truename):
14993         * fileio.c (Fsysnetunam):
14994         * fileio.c (Fdo_auto_save):
14995         * sysdep.c (sys_readdir):
14996         * tests.c: New file.  Allow adding C tests.
14997         Replace GET_* macros with a more comprehensible and flexible
14998         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
14999         Modify all calls.
15000         Any coding system can be used to do format conversion.
15001         Eliminate enum external_data_format.
15002         Eliminate convert_to_external_format.
15003         Eliminate convert_to_internal_format.
15004         Make sure file-name, keyboard, terminal, and ctext are always
15005         defined as coding systems or aliases.  Make
15006         file-name-coding-system, terminal-coding-system, and
15007         keyboard-coding-system magical variables that are equivalent to
15008         defining the corresponding coding system aliases.
15009
15010         * file-coding.c (Fcoding_system_canonical_name_p): New function.
15011         * file-coding.c (Fcoding_system_alias_p): New function.
15012         * file-coding.c (Fcoding_system_aliasee): New function.
15013         * file-coding.c (append_suffix_to_symbol): New function.
15014         * file-coding.c (dangling_coding_system_alias_p): New function.
15015         * file-coding.c (Ffind_coding_system):
15016         * file-coding.c (Fcopy_coding_system):
15017         * file-coding.c (encode_coding_no_conversion):
15018         * file-coding.c (syms_of_file_coding):
15019         * file-coding.c (vars_of_file_coding):
15020         Rewrite coding system alias code.
15021         Allow nested aliases, like symbolic links.
15022         Allow redefinition of coding system aliases.
15023         Prevent existence of dangling coding system aliases.
15024
15025         * dired.c (Fuser_name_completion_1):
15026         * dired.c (Fuser_name_all_completions):
15027         A crash would happen if user did QUIT in the middle of building
15028         user_name_cache.  Remove redundant code in mainline and unwind_protect.
15029
15030         * lisp.h:
15031         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
15032
15033         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
15034         an unsigned char *.  Update all callers.
15035
15036 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15037
15038         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
15039
15040 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15041
15042         * elhash.c (hentry_description): Use more portable definition.
15043         (resize_hash_table): Initialize new hentries using
15044         xnew_array_and_zero, thereby simplifying the code.
15045
15046         * mule-charset.c (make_charset): Make sure entire object is
15047         initialized, to avoid Purify warnings.
15048
15049         * alloc.c (resize_string): Fix unlikely crash with big strings.
15050
15051 2000-01-24  Martin Buchholz  <martin@xemacs.org>
15052
15053         * realpath.c (xrealpath):
15054         Don't call getwd().
15055
15056 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15057
15058         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
15059
15060 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
15061
15062         * unexelfsgi.c (unexec): Change the way we decide which segment
15063         should be extended.
15064
15065         Assumption that .bss section should be outside the PT_LOADable
15066         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
15067         it's present) is inside the 'data' segment. This would fail the
15068         test which was used to find a segment to grow and cover new
15069         heap. Instead of this assumption, I created another one - on IRIX
15070         the segment to grow should start below .bss and it's address
15071         should extent above the end of .bss. Once this segment is
15072         identified, it's grown to accommodate the new heap and new
15073         zero-length .bss section is added at the end of .data2.
15074
15075 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15076
15077         * eval.c (Feval): Wrong number of arguments should use original
15078         function, not the indirect_function version of it.
15079
15080 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
15081
15082         * glyphs-x.c (x_button_instantiate): Don't add image if
15083         it is not a pixmap.
15084         (x_locate_pixmap_file): Call Fexpand_file_name when file name
15085         is relative.
15086
15087 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
15088
15089         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
15090         declaration.
15091         (DEFVAR_INT_MAGIC): Ditto.
15092         (DEFVAR_BOOL_MAGIC): Ditto.
15093         * glyphs.h: Reindent backslash.
15094
15095 2000-01-24  Martin Buchholz  <martin@xemacs.org>
15096
15097         * glyphs-widget.c (layout_query_geometry):
15098         (layout_layout): Use correct types for gheight, gwidth.
15099
15100 2000-01-24  Martin Buchholz  <martin@xemacs.org>
15101
15102         * EmacsManager.c (QueryGeometry): Purified.
15103
15104 2000-01-23  Martin Buchholz  <martin@xemacs.org>
15105
15106         * alloc.c (make_float): Make sure entire object is initialized, to
15107         avoid Purify warnings.
15108         (pdump_register_sub): Remove useless assignment.
15109         (pdump): Use xmalloc, not malloc.
15110         (pdump_load): Use xmalloc, not malloc.
15111
15112 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15113
15114         * callproc.c:
15115         * dired-msw.c:
15116         * fileio.c:
15117         * process-nt.c:
15118         * redisplay-msw.c:
15119         * sysdep.c: Removed redundant #include <windows.h>
15120
15121 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15122
15123         * frame.c (delete_frame_internal): Do not delete device when its
15124         implementation so declares.
15125         (delete_frame_internal): Set device selected frame to nil when
15126         last frame goes away.
15127
15128         * device-msw.c (msprinter_device_system_metrics): Implemented.
15129         (mswindows_device_system_metrics): Added 'device-dpi property.
15130
15131         * device.c: (Fdevice_printer_p): Added.
15132         Added 'offset-workspace device metric.
15133
15134         * console.h (device_metrics): Declared DM_offset_workspace.
15135
15136 2000-01-23  Martin Buchholz  <martin@xemacs.org>
15137
15138         * fileio.c (Ffile_truename): Remove pointless and confusing
15139         initialization of elen.
15140
15141         * glyphs-widget.c: Compiler warning fixes.
15142
15143 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
15144
15145         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
15146         instead of a Lisp_Object as argument to make it consistent with
15147         the other LIVE_P macros.
15148         (CHECK_LIVE_PROCESS): New macro.
15149
15150         * process.c: Declare Qprocess_live_p.
15151         (Fprocess_live_p): New function.
15152         (create_process): Use PROCESS_LIVE_P.
15153         (read_process_output): Ditto.
15154         (set_process_filter): Ditto.
15155         (Fdelete_process): Ditto.
15156         (kill_buffer_processes): Ditto
15157         (process_send_signal): Use CHECK_LIVE_PROCESS.
15158         (Fprocess_input_coding_system): Check whether process is still
15159         alive (fix PR#1061).
15160         (Fprocess_output_coding_system): Ditto.
15161         (Fprocess_coding_system): Ditto.
15162         (Fset_process_input_coding_system): Ditto.
15163         (Fset_process_output_coding_system): Ditto.
15164
15165 2000-01-23  Andy Piper  <andy@xemacs.org>
15166
15167         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
15168         layout and widget.
15169
15170         * glyphs.c (mark_image_instance): take into account changed
15171         image_instance format.
15172         (image_instance_equal): ditto.
15173         (image_instance_hash): ditto.
15174
15175         * glyphs-widget.c (widget_instantiate): Incorporate layout
15176         instantiation here. Delay layout of the layout until later.
15177         (layout_instantiate): deleted.
15178         (layout_query_geometry): new function. get the geometry of a
15179         layout.
15180         (layout_layout): layout a layout dynamically.
15181         (image_instantiator_widget): New function - splitting up
15182         image_instantiator_format_create_glyphs_widget for netwinder
15183         compilation.
15184         (image_instantiator_buttons):
15185         (image_instantiator_edit_fields):
15186         (image_instantiator_combo_box):
15187         (image_instantiator_scrollbar):
15188         (image_instantiator_progress_guage):
15189         (image_instantiator_tree_view):
15190         (image_instantiator_tab_control):
15191         (image_instantiator_labels):
15192         (image_instantiator_layout): ditto.
15193         (image_instantiator_format_create_glyphs_widget): Call preceding
15194         functions.
15195
15196 2000-01-22  Martin Buchholz  <martin@xemacs.org>
15197
15198         * process.c (Fset_process_coding_system):
15199         * device-x.c (Fx_keysym_hash_table):
15200         Docstring fixes.
15201
15202         * lstream.c (Lstream_write): Return documented value, not 0.
15203
15204         * fileio.c (directory_file_name):
15205         (Fsubstitute_in_file_name):
15206         (Fsubstitute_insert_file_contents_internal):
15207         (Fwrite_region_internal):
15208         * emacs.c:
15209         * sysdep.c:
15210         * getloadavg.c:
15211         * systty.h:
15212         Remove vestigial APOLLO-conditional code.
15213
15214 2000-01-21  Martin Buchholz  <martin@xemacs.org>
15215
15216         * getpagesize.h: Add guard macros.
15217         * libsst.h: Add guard macros.
15218         * libst.h: Add guard macros.
15219         * line-number.h: Add guard macros.
15220         * ndir.h: Add guard macros.
15221         * sysfloat.h: Add guard macros.
15222         * sysfile.h: Add guard macros.
15223         * sysproc.h: Add guard macros.
15224         * syswait.h: Add guard macros.
15225         * xintrinsic.h: Add guard macros.
15226         * xintrinsicp.h: Add guard macros.
15227         * xmmanager.h: Add guard macros.
15228         * xmmanagerp.h: Add guard macros.
15229         * xmprimitive.h: Add guard macros.
15230         * xmu.h: Add guard macros.
15231         * gpmevent.h: Add copyright statement. Add guard macros.
15232         * miscplay.h: Add guard macros.
15233         * *.h: Use consistent C-standards-approved guard macro names.
15234
15235         * opaque.c (make_opaque): Switch parameter order.
15236         * opaque.h (make_opaque): Switch parameter order.
15237         Update all callers.
15238         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
15239
15240         * config.h.in (type_checking_assert): Added.
15241         (bufpos_checking_assert): Added.
15242
15243 2000-01-21  Martin Buchholz  <martin@xemacs.org>
15244
15245         * alloc.c: Harmless pdump changes.
15246         - Use countof().
15247         - spell alignment correctly.
15248         * sysdep.c: Use countof()
15249
15250 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15251
15252         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
15253         initially_selected_for_input() console method, default to 0.
15254         (semi_canonicalize_console_connection): Try to delegate to
15255         canonicalize_console_connection if no such console method.
15256         (canonicalize_console_connection): Vice versa.
15257         (print_console): Do not print nil connection.
15258
15259         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
15260         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
15261         (XDEVIMPF_FRAMELESS_OK): Added.
15262         (CONSOLE_INHERITS_METHOD): Added.
15263
15264         * console-msw.c (mswindows_canonicalize_console_connection):
15265         Added.
15266         (mswindows_canonicalize_device_connection): Added.
15267
15268         * console-msw.h (struct msprinter_device): Added this struct and
15269         accessor macros.
15270         (mswindows_device): Made fontlist a lisp object.
15271
15272         * device.c (semi_canonicalize_device_connection):  Try to delegate
15273         to canonicalize_device_connection if no such console method.
15274         (canonicalize_device_connection): Vice versa.
15275         (print_device): Do not print nil connection.
15276
15277         * device-msw.c (mswindows_init_device): Call InitCommonControls
15278         when have widgets.
15279         (mswindows_delete_device): Removed fontlist deallocation.
15280         (mswindows_mark_device): Added.
15281
15282         * events.c (event_equal): Added abort() at unreached code.
15283         (event_hash): Ditto.
15284
15285         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
15286         fallback tags of Windows devices.
15287
15288         * general.c (syms_of_general): Initialized Qmsprinter.
15289
15290         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
15291         of fallback tags of Windows devices.
15292
15293         * lisp.h: Declared Qmsprinter.
15294
15295         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
15296         of strings.
15297         (mswindows_list_fonts): Ditto.
15298         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
15299         that it can be used by both mswindows and msprinter devices.
15300         (initialize_font_instance): Added.
15301         (mswindows_initialize_font_instance): Use it.
15302         (msprinter_initialize_font_instance): Added.
15303
15304         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
15305         and implementation flags check.
15306         (redisplay_without_hooks): Changed the call to the above.
15307         (Fredraw_device): Ditto.
15308         (Fredisplay_device): Ditto.
15309
15310         * redisplay-msw.c (get_frame_dc): Implemented.
15311         (get_frame_compdc): Implemented.
15312         (many functions): Use the two functions above to get device
15313         contexts, ether for a window or a printer.
15314
15315 2000-01-21  Olivier Galibert  <galibert@pobox.com>
15316
15317         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
15318         initialization here.
15319         (init_symbols_once_early): Call it.
15320         * emacs.c (main_1): Call it.
15321         * symsinit.h: Declare it.
15322
15323 2000-01-19  Olivier Galibert  <galibert@pobox.com>
15324
15325         * alloc.c: Use a lrecord_header * in the backtrace instead of a
15326         Lisp_Object.
15327         (pdump_backtrace): Ditto.
15328         (pdump_register_object): Ditto.  Cleanup use of the pointers.
15329         (pdump_get_entry): Abort if trying to register a null pointer.
15330         (pdump_dump_data): Cleanup types when relocating.
15331         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
15332         (pdump_dump_rtables): Remove bad casts.
15333         (pdump_load): Cleanup relocation w.r.t union type.  Use a
15334         Lisp_Object instead of a EMACS_INT for the hashtable
15335         reorganization.
15336
15337 2000-01-20  Martin Buchholz  <martin@xemacs.org>
15338
15339         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
15340
15341         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
15342
15343         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
15344
15345         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
15346
15347 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15348
15349         * faces.h (FACE_STRIKETHRU_P): Added.
15350
15351         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
15352         of font variants.
15353
15354         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
15355         (mswindows_set_dc_font): New function, aware of font variants,
15356         separated from mswindows_update_dc.
15357
15358         * objects-msw.h (struct mswindows_font_instance_data): Added
15359         definition.
15360
15361         * objects-msw.c (mswindows_finalize_font_instance): Delete all
15362         cached fonts and the data structure.
15363         (mswindows_initialize_font_instance): Added creation of font data
15364         structure.
15365         (mswindows_print_font_instance): Print at least something.
15366         (mswindows_create_font_variant): Implemented.
15367         (mswindows_get_hfont): Implemented.
15368
15369 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
15370
15371         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
15372         prototyping problem with msvc.
15373
15374         * emacs.c (main_1): added syms_of_gui_mswindows() call
15375
15376         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
15377         syms_of_gui_mswindows() function
15378
15379         * symsinit.h: added the prototype for syms_of_gui_mswindows()
15380
15381 2000-01-18  Martin Buchholz <martin@xemacs.org>
15382
15383         * XEmacs 21.2.27 is released.
15384
15385 2000-01-18  Martin Buchholz  <martin@xemacs.org>
15386
15387         * glyphs-eimage.c (struct tiff_error_struct):
15388         (tiff_error_func):
15389         (tiff_warning_func):
15390         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
15391
15392         * unexmips.c:
15393         * unexhp9k3.c:
15394         * unexfreebsd.c:
15395         * unexec.c: Remove vestigial Lucid C code.
15396         * unexalpha.c:
15397         * unexaix.c:
15398         * termcap.c:
15399         * libsst.c: Ansify.
15400         Remove declarations of errno and strerror().
15401
15402         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
15403
15404         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
15405
15406 2000-01-16  Martin Buchholz  <martin@xemacs.org>
15407
15408         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
15409         Optimize.
15410
15411 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15412
15413         * md5.c:
15414         * file-coding.c:
15415         * file-coding.h:
15416         Change enum eol_type to eol_type_t.
15417
15418 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15419
15420         * gui.c (get_gui_callback): Check cons before accessing car.
15421
15422 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15423
15424         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
15425         (XSETSPECIFIER_TYPE): Ditto.
15426
15427 2000-01-17  Didier Verna  <didier@xemacs.org>
15428
15429         * redisplay.c (generate_fstring_runes): compute string size in
15430         characters, not bytes.
15431
15432 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
15433
15434         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
15435
15436 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
15437
15438         * print.c (print_error_message): Call print_prepare().
15439
15440 2000-01-14  Martin Buchholz  <martin@xemacs.org>
15441
15442         * .dbxrc: Renamed from dbxrc.
15443
15444         * events.c (event_to_character):
15445         Use `assert (foo)' instead of `if (!foo) abort()'
15446
15447         * .gdbinit (xtype): Add documentation.
15448         * .gdbinit (check-temacs): New function.
15449         * .gdbinit (check-xemacs): New function.
15450         * dbxrc (check-xemacs): New function.
15451         * dbxrc (check-xemacs): New function.
15452
15453 2000-01-14  Andy Piper  <andy@xemacs.org>
15454
15455         * glyphs-widget.c (widget_query_geometry): Make sure that we
15456         calculate default dimensions correctly.
15457
15458 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15459
15460         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
15461
15462         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
15463         pdump_wire'd variable.
15464
15465         * emacs.c: (main_1): Conditionalized calls to
15466         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
15467
15468 2000-01-13  Martin Buchholz  <martin@xemacs.org>
15469
15470         * window.c (Fset_window_configuration):
15471         * sysdep.c (_start):
15472         * input-method-motif.c (res):
15473         * event-Xt.c (Xt_process_to_emacs_event):
15474         Simple compiler warning fixes.
15475
15476         * bytecode.c (funcall_compiled_function): Use the original
15477         function symbol on the backtrace list in preference to the
15478         compiled_function object in error messages.
15479
15480 2000-01-13  Andy Piper  <andy@xemacs.org>
15481
15482         * glyphs-x.c (update_widget_face): Make sure we update the widget
15483         background as well as foreground.
15484
15485 2000-01-13  Andy Piper  <andy@xemacs.org>
15486
15487         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
15488         fields to subwindow.
15489         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
15490         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
15491         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
15492         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
15493
15494         * glyphs-widget.c (check_valid_tab_orientation): new function.
15495         (initialize_widget_image_instance): zero orientation and
15496         justification.
15497         (widget_instantiate): pick up orientation.
15498         (tab_control_query_geometry): return appropriate values for
15499         vertical tabs.
15500
15501         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
15502         appropriate creation flags for left, right and bottom tabs.
15503
15504         * s/cygwin32.h: add tab definitions.
15505
15506 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15507
15508         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
15509         frame upon hiding a subwindow.
15510         (mswindows_button_instantiate): Changed the push button style to
15511         BS_PUSHBUTTON.
15512         (mswindows_button_instantiate): Removed button BS_NOTIFY
15513         style.
15514         (mswindows_button_instantiate): Removed redundant check for
15515         a disabled gui item.
15516         (mswindows_button_instantiate): Made use of WS_TABSTOP
15517         consistent: "operable" controls (edit, button, tree, scroll) have
15518         this style, "display-only" ones (static, progress gauge) do
15519         not. This style is currently ignored by XEmacs though. Also,
15520         removed the WS_EX_CONTROLPARENT style - it is not for children,
15521         it is for their parents!
15522         (mswindows_edit_field_instantiate): Ditto.
15523         (mswindows_progress_gauge_instantiate): Ditto.
15524         (mswindows_tree_view_instantiate): Ditto.
15525         (mswindows_tab_control_instantiate): Ditto.
15526         (mswindows_scrollbar_instantiate): Ditto.
15527         (mswindows_combo_box_instantiate): Ditto.
15528         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
15529         style to the "clip" window.
15530         (mswindows_button_instantiate): Removed compilation warning by
15531         equally typing terms of the ?: operator.
15532
15533 2000-01-12  Didier Verna  <didier@xemacs.org>
15534
15535         * redisplay.c (generate_fstring_runes): new parameter holding the
15536         last modeline-format extent.
15537         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
15538         extent, fill the glyph block with it.
15539         (generate_fstring_runes): handle these parameters.
15540         (generate_formatted_string_db): ditto.
15541
15542         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
15543         glyphs'extents in the modeline.
15544
15545 1999-01-11  Mike Woolley  <mike@bulsara.com>
15546
15547         * ntheap.c: Reduced the reserved heap space from 1Gb down to
15548         256Mb, as a workaround for the non-starting problem many people
15549         have experienced.
15550
15551 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15552
15553         * console-tty.c (Fset_console_tty_output_coding_system):
15554         Force redrawing tty frame.
15555
15556 2000-01-10  Didier Verna  <didier@xemacs.org>
15557
15558         * redisplay.c (generate_fstring_runes): fix size computation bug.
15559
15560 2000-01-09  William M. Perry <wmperry@aventail.com>
15561
15562         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
15563
15564 2000-01-09  Andy Piper  <andy@xemacs.org>
15565
15566         * glyphs-msw.c: index -> i to avoid shadows.
15567         (xbm_create_bitmap_from_data): make static.
15568         (check_valid_string_or_int): deleted.
15569         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
15570
15571         * glyphs-x.c (x_update_subwindow): remove unused args.
15572
15573         * glyphs.c (glyph_image_instance): return the thing. Don't set the
15574         back pointer - this is done in allocate_image_instance.
15575         (query_string_font): return Qnil to make the compiler happy.
15576         (unmap_subwindow): set to ~0 to make the compiler happy.
15577         (glyph_query_geometry): comment out until used.
15578         (glyph_layout): ditto.
15579
15580 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
15581
15582         * insdel.c (signal_after_change): Remove extraneous unbind_to().