update.
[chise/xemacs-chise.git.1] / src / ChangeLog
1 2003-04-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2
3         * char-ucs.h: Compact non-ISO-IR charset-ids.
4         (LEADING_BYTE_UCS): Changed to -177.
5         (LEADING_BYTE_CONTROL_1): Changed to -77.
6         (LEADING_BYTE_UCS_BMP): Changed to -176.
7         (LEADING_BYTE_JAPANESE_JISX0208_1990): Changed to -168.
8
9 2003-04-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
10
11         * mule-charset.c (Qiso_ir): New variable.
12         (Fmake_charset): Recognise new property `iso-ir'.
13         (syms_of_mule_charset): Add new symbol `iso-ir'.
14
15 2003-04-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
16
17         * char-ucs.h: Change charset-id of ISO-IR sets from ISO-IR-number
18         n to -n; charset-id of non ISO-IR sets are changed to positive
19         numbers.
20
21 2003-03-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
22
23         * text-coding.c (decode_add_er_char): Use XUINT instead of XINT
24         for &MCS-XXXXXXXX; values.
25
26 2003-03-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
27
28         * mule.c (Vxemacs_chise_version): Renamed from
29         `Vutf_2000_version'.
30         (vars_of_mule): Add new variable `xemacs-chise-version'; define
31         `utf-2000-version' as an alias for `xemacs-chise-version'.
32
33 2003-03-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
34
35         * mule-charset.c: Include <chise.h> when `CHISE' is defined.
36         (load_char_decoding_entry_maybe): Use libchise when `CHISE' is
37         defined.
38
39         * config.h.in (CHISE): New macro.
40
41 2003-03-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
42
43         * mule-charset.c (put_char_ccs_code_point): Refer `=ucs' instead
44         of `ucs'.
45         (Qmap_ucs): New variable.
46         (syms_of_mule_charset): Add new symbol `=ucs'.
47         (complex_vars_of_mule_charset): Rename `ucs' to `=ucs'.
48
49         * fns.c (ids_format_unit): Refer `=ucs' instead of `ucs'.
50         (simplify_char_spec): Likewise.
51
52         * chartab.c (Fdefine_char): Refer `=ucs' as same as `ucs'.
53
54         * char-ucs.h (Qmap_ucs): New extern variable.
55
56 2003-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
57
58         * mule-charset.c (Qmap_jis_x0208): Renamed from `Qjis_x0208'.
59         (Qmap_jis_x0208_1990): Renamed from `Qjapanese_jisx0208_1990';
60         don't define it when UTF2000 is not defined.
61         (syms_of_mule_charset): Modify for `Qmap_jis_x0208'; rename
62         `japanese-jisx0208-1990' to `=jis-x0208-1990'; don't define it
63         when UTF2000 is not defined.
64         (complex_vars_of_mule_charset): Modify for `Qmap_jis_x0208';
65         rename `japanese-jisx0208-1990' to `=jis-x0208-1990'.
66
67 2003-03-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
68
69         * char-ucs.h (LEADING_BYTE_UCS_GB): Deleted.
70
71         * mule-charset.c (Vcharset_ucs_gb): Deleted.
72         (Qucs_gb): Deleted.
73         (syms_of_mule_charset): Delete `ucs-gb'.
74         (complex_vars_of_mule_charset): Likewise.
75
76 2003-03-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
77
78         * char-ucs.h (LEADING_BYTE_UCS_CNS): Deleted.
79
80         * mule-charset.c (Vcharset_ucs_cns): Deleted.
81         (Qucs_cns): Deleted.
82         (syms_of_mule_charset): Delete `ucs-cns'.
83         (complex_vars_of_mule_charset): Likewise.
84
85 2003-03-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
86
87         * char-ucs.h (LEADING_BYTE_UCS_JIS): Deleted.
88
89         * mule-charset.c (Vcharset_ucs_jis): Deleted.
90         (Qucs_jis): Deleted.
91         (syms_of_mule_charset): Delete `ucs-jis'.
92         (complex_vars_of_mule_charset): Likewise.
93
94 2003-03-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
95
96         * char-ucs.h (LEADING_BYTE_UCS_KS): Deleted.
97
98         * mule-charset.c (Vcharset_ucs_ks): Deleted.
99         (Qucs_ks): Deleted.
100         (syms_of_mule_charset): Delete `ucs-ks'.
101         (complex_vars_of_mule_charset): Likewise.
102
103 2003-03-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
104
105         * mule-charset.c (Vcharset_ideograph_daikanwa_2): Deleted.
106         (Qideograph_daikanwa_2): Deleted.
107         (syms_of_mule_charset): Delete `ideograph-daikanwa-2'.
108         (complex_vars_of_mule_charset): Likewise.
109
110         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): Deleted.
111         (LEADING_BYTE_DAIKANWA_1): Deleted.
112         (LEADING_BYTE_DAIKANWA_2): Deleted.
113         (MIN_CHAR_DAIKANWA): Deleted.
114         (MAX_CHAR_DAIKANWA): Deleted.
115
116 2003-02-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
117
118         * char-ucs.h (LEADING_BYTE_DAIKANWA_3): Deleted.
119         (LEADING_BYTE_HANZIKU_{1..12}): Deleted.
120         ({MIN|MAX}_CHAR_HANZIKU_{1..12}): Deleted.
121
122         * mule-charset.c (Vcharset_ideograph_hanziku_{1..12}): Deleted.
123         (Vcharset_ideograph_daikanwa): Deleted.
124         (Qideograph_hanziku_{1..12}): Deleted.
125         (Qideograph_daikanwa): Deleted.
126         (encode_builtin_char_1): Don't use {MIN|MAX}_CHAR_DAIKANWA and
127         Vcharset_ideograph_daikanwa.
128         (syms_of_mule_charset): Delete `ideograph-daikanwa' and
129         `ideograph-hanziku-{1..12}'.
130         (complex_vars_of_mule_charset): Likewise.
131
132 2003-02-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
133
134         * char-ucs.h (LEADING_BYTE_GT_PJ_{1..11}): Deleted.
135
136         * mule-charset.c (Vcharset_ideograph_gt_pj_{1..11}): Deleted.
137         (Qideograph_gt_pj_{1..11}): Deleted.
138         (syms_of_mule_charset): Delete `ideograph-gt-pj-{1..11}'.
139         (complex_vars_of_mule_charset): Likewise.
140
141 2003-02-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
142
143         * mule-charset.c (Vcharset_ucs_big5): Deleted.
144         (Vcharset_ideograph_gt): Deleted.
145         (Qucs_big5): Deleted.
146         (Qideograph_gt): Deleted.
147         (syms_of_mule_charset): Delete symbol `ucs-big5' and
148         `ideograph-gt'.
149         (complex_vars_of_mule_charset): Delete coded-charset `ucs-big5'
150         and `ideograph-gt'.
151
152         * char-ucs.h (LEADING_BYTE_UCS_BIG5): Deleted.
153         (LEADING_BYTE_GT): Deleted.
154         (MIN_CHAR_GT): Deleted.
155         (MAX_CHAR_GT): Deleted.
156
157 2003-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
158
159         * chartab.c (Fput_char_attribute): Canonicalise charset-aliases.
160
161 2003-01-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
162
163         * chartab.c (save_uint8_byte_table): Add new argument `filter'.
164         (save_uint16_byte_table): Likewise.
165         (save_byte_table): Likewise; convert values by it.
166         (Fput_char_attribute): Don't use `char-refs-simplify-char-specs'
167         for `ideographic-structure'.
168         (Fsave_char_attribute_table): Use `char-refs-simplify-char-specs'
169         as the filter for `ideographic-structure'.
170
171 2003-01-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
172
173         * chartab.c (put_char_composition): New function.
174         (Fput_char_attribute): Use `put_char_composition'; use
175         `Fchar_refs_simplify_char_specs' for `ideographic-structure'.
176
177         * fns.c (simplify_char_spec): New function.
178         (char_ref_simplify_spec): New function.
179         (Fchar_refs_simplify_char_specs): New function.
180         (syms_of_fns): Add new builtin function
181         `char-refs-simplify-char-specs'.
182
183 2003-01-05  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
184
185         * mule-charset.c (Vcharset_ideograph_cbeta): Deleted.
186         (Qideograph_cbeta): Deleted.
187         (syms_of_mule_charset): Don't define `ideograph-cbeta'.
188         (complex_vars_of_mule_charset): Likewise.
189
190         * char-ucs.h (LEADING_BYTE_CBETA): Deleted.
191         (MIN_CHAR_CBETA): Comment out.
192         (MAX_CHAR_CBETA): Likewise.
193
194 2002-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
195
196         * mule-charset.c, chartab.h, casetab.c, char-ucs.h, chartab.c: Use
197         `HAVE_CHISE_CLIENT' instead of `HAVE_DATABASE' to indicate the
198         CHISE client feature.
199
200 2002-12-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
201
202         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.20.
203
204 2002-12-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
205
206         * mule-charset.c (charset_lookup_description_1): Use
207         `NUM_LEADING_BYTES' in UTF-2000.
208
209 2002-12-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
210
211         * char-ucs.h (GC_CHARSETP): Deleted.
212
213 2002-12-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
214
215         * char-ucs.h (MAX_CHAR_GT): Updated.
216
217 2002-12-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
218
219         * text-coding.c: Sync with XEmacs 21.4.10.
220
221 2002-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
222
223         * mule-charset.c (Vcharset_china3_jef): Deleted.
224         (Qchina3_jef): Deleted.
225         (syms_of_mule_charset): Don't define `china3-jef'.
226         (complex_vars_of_mule_charset): Likewise.
227
228         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Deleted.
229         (MIN_CHAR_CHINA3_JEF): Comment out.
230         (MAX_CHAR_CHINA3_JEF): Comment out.
231
232 2002-11-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
233
234         * mule-charset.c (Vcharset_ucs_gb): New variable.
235         (Qucs_gb): New variable.
236         (syms_of_mule_charset): Add new symbol `ucs-gb'.
237         (complex_vars_of_mule_charset): Add new coded-charset `ucs-gb'.
238
239         * char-ucs.h (LEADING_BYTE_UCS_GB): New macro.
240
241 2002-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
242
243         * mule-charset.c (charset_code_point): if a coded-charset has a
244         final-byte, don't inherit the builtin range of the mother CCS.
245
246 2002-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
247
248         * mule-charset.c (charset_code_point): Fix problem about
249         inheritance.
250
251 2002-11-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
252
253         * mule-charset.c (decode_builtin_char): Reorganized.
254
255 2002-10-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
256
257         * text-coding.c (char_encode_as_entity_reference): Modify for
258         `charset_code_point'.
259         (char_encode_shift_jis): Likewise.
260         (char_encode_big5): Likewise.
261         (char_encode_utf8): Likewise.
262         (char_encode_iso2022): Likewise.
263
264         * mule-charset.c (charset_code_point): Add new argument
265         `defined_only'.
266         (Fencode_char): Add new optional argument `defined_only'.
267
268         * chartab.c (put_char_table): Modify for `charset_code_point'.
269
270         * char-ucs.h (charset_code_point): Add new argument
271         `defined_only'.
272         (encode_char_1): Modify for `charset_code_point'.
273
274 2002-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
275
276         * mule-charset.c (complex_vars_of_mule_charset): Don't specify
277         `MIN_CHAR_THAI' and `MAX_CHAR_THAI' for `thai-tis620'.
278
279 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
280
281         * mule-charset.c (Vcharset_jis_x0208): New variable in UTF-2000.
282         (Qjis_x0208): Likewise.
283         (decode_builtin_char): Prefer XCHARSET_MAX_CODE(charset) than
284         XCHARSET_FINAL(charset).
285         (charset_code_point): Modify condition for final-byte based
286         builtin-chars.
287         (syms_of_mule_charset): Add new symbol `=jis-x0208' in UTF-2000.
288         (complex_vars_of_mule_charset): Add new coded-charset `=jis-x0208'
289         in UTF-2000; specify `=jis-x0208' as the mother of
290         `japanese-jisx0208-1978', `japanese-jisx0208' and
291         `japanese-jisx0208-1990' in UTF-2000.
292
293 2002-10-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
294
295         * char-ucs.h (LEADING_BYTE_JIS_X0208): New macro.
296
297 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
298
299         * text-coding.c (decode_coding_utf16): Support UTF-16.
300         (char_encode_utf16): Fixed.
301
302 2002-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
303
304         * text-coding.c (Qutf16): New variable in MULE.
305         (Fmake_coding_system): Accept `utf-16' as `type' in MULE.
306         (Fcoding_system_type): Add `utf-16' in MULE.
307         (struct detection_state): Add a structure for utf16 in MULE.
308         (detect_coding_type): Setup st->utf16.mask in MULE.
309         (mule_decode): Use `decode_coding_utf16' for `CODESYS_UTF16' in
310         MULE.
311         (reset_encoding_stream): Use `char_encode_utf16' and
312         `char_finish_utf16' for `CODESYS_UTF16' in MULE.
313         (detect_coding_utf16): New function [incomplete].
314         (decode_coding_utf16): New function [support only UCS-2].
315         (char_encode_utf16): New function.
316         (char_finish_utf16): New function.
317         (syms_of_file_coding): Add new symbol `utf-16'; setup
318         `coding_category_symbol[CODING_CATEGORY_UTF16]'.
319
320         * file-coding.h (enum coding_system_type): Add `CODESYS_UTF16' in
321         UTF-2000.
322         (enum coding_category_type): Add `CODING_CATEGORY_UTF16' in MULE.
323         (CODING_CATEGORY_UTF16_MASK): New macro in MULE.
324
325 2002-10-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
326
327         * chartab.c (put_char_table): When a charset is specified as a
328         range in UTF-2000, don't support builtin characters.
329
330 2002-09-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
331
332         * mule-charset.c (decode_defined_char): Don't refer external
333         database if Qunbound or Qnil are found.
334         (Fsave_charset_mapping_table): Don't define it if
335         HAVE_CHISE_CLIENT is not defined.
336         (Freset_charset_mapping_table): New function.
337         (load_char_decoding_entry_maybe): Store Qnil if a character is not
338         found in external database.
339         (syms_of_mule_charset): Don't define `save-charset-mapping-table'
340         if HAVE_CHISE_CLIENT is not defined; add new builtin function
341         `reset-charset-mapping-table' if HAVE_CHISE_CLIENT is defined.
342
343 2002-09-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
344
345         * text-coding.c (decode_coding_utf8): Check CCS is specified or
346         not.
347
348 2002-08-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
349
350         * chartab.h: Add extern declarations for Qdowncase, Qflippedcase,
351         Q_lowercase, Q_uppercase in UTF-2000.
352
353         * chartab.c (get_char_table): Add special code for the standard
354         case table to use character attribute `->downcase' and
355         `->uppercase' for case operations in UTF-2000.
356
357         * casetab.c (Qflippedcase): New variable in UTF-2000.
358         (Q_lowercase): Likewise.
359         (Q_uppercase): Likewise.
360         (syms_of_casetab): Add new symbols `flippedcase', `->lowercase'
361         and `->uppercase' in UTF-2000.
362         (complex_vars_of_casetab): Assign attribute name `downcase' to
363         downcase and CANON table of Vstandard_case_table in UTF-2000;
364         assign attribute name `flippedcase' to upcase and EQV table of
365         Vstandard_case_table in UTF-2000.
366
367 2002-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
368
369         * text-coding.c (decode_add_er_char): Support isolated-chars.
370         (char_encode_as_entity_reference): Likewise.
371
372 2002-08-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
373
374         * emacs.c (Vutf_2000_lisp_directory): New variable.
375         (Vconfigure_utf_2000_lisp_directory): Likewise.
376         (complex_vars_of_emacs): Add new variable
377         `utf-2000-lisp-directory' and `configure-utf-2000-lisp-directory'.
378
379 2002-08-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
380
381         * char-ucs.h (DECODE_CHAR): Delete special code for
382         `chinese-big5-1' and `chinese-big5-2'.
383
384         * mule-charset.c (Qbig5_1): New variable in UTF-2000.
385         (Qbig5_2): Likewise.
386         (decode_defined_char): Support CONVERSION_BIG5_1 and
387         CONVERSION_BIG5_2.
388         (decode_builtin_char): Likewise.
389         (charset_code_point): Likewise.
390         (Fmake_charset): Accept `big5-1' and `big5-2' as a value of
391         'conversion in UTF-2000.
392         (syms_of_mule_charset): Add new symbol `big5-1' and `big5-2'.
393         (complex_vars_of_mule_charset): Define `chinese-big5-1' and
394         `chinese-big5-2' as children of `chinese-big5'.
395
396         * char-ucs.h (CONVERSION_BIG5_1): New macro.
397         (CONVERSION_BIG5_2): New macro.
398
399 2002-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
400
401         * text-coding.c (char_encode_big5): Support entity-reference.
402
403 2002-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
404
405         * text-coding.c (char_encode_as_entity_reference): New function.
406         (char_encode_utf8): Use `char_encode_as_entity_reference'.
407
408 2002-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
409
410         * text-coding.c (decode_coding_big5): Support entity-reference
411         decoding feature.
412
413 2002-08-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
414
415         * text-coding.c (allocate_coding_system): Initialize initial
416         charsets for CODESYS_UTF8.
417         (Fmake_coding_system): Accept charset-g0, charset-g1 and
418         charset-g2 for CODESYS_UTF8.
419         (decode_coding_utf8): Use charset-g0.
420         (char_encode_utf8): Use charset-g0; use charset-g1 and charset-g2
421         to force variants to map to UCS.
422
423 2002-07-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
424
425         * text-coding.c (Qutf_8_mcs): New variable.
426         (syms_of_file_coding): Add new symbol `utf-8-mcs' in UTF-2000.
427         (complex_vars_of_file_coding): Define coding-system `utf-8-mcs'
428         instead of `utf-8' in UTF-2000.
429
430 2002-07-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
431
432         * mule-charset.c (charset_code_point): If CHARSET_CONVERSION is
433         CONVERSION_IDENTICAL, identical conversion is used even if a CCS
434         is ISO-2022 style; instead of it, CONVERSION_94, CONVERSION_96,
435         CONVERSION_94x94, CONVERSION_96x96, CONVERSION_94x94x94,
436         CONVERSION_96x96x96, CONVERSION_94x94x94x94 and
437         CONVERSION_96x96x96x96 are introduced.
438         (complex_vars_of_mule_charset): Specify CONVERSION_96 instead of
439         CONVERSION_IDENTICAL for thai-tis620; Specify CONVERSION_94x94
440         instead of CONVERSION_IDENTICAL for japanese-jisx0208-1990.
441
442         * char-ucs.h (CONVERSION_94): New macro.
443         (CONVERSION_96): New macro.
444         (CONVERSION_94x94): New macro.
445         (CONVERSION_96x96): New macro.
446         (CONVERSION_94x94x94): New macro.
447         (CONVERSION_96x96x96): New macro.
448         (CONVERSION_94x94x94x60): New macro.
449         (CONVERSION_94x94x94x94): New macro.
450         (CONVERSION_96x96x96x96): New macro.
451
452 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
453
454         * chartab.c (Vcharacter_variant_table): Deleted.
455         (Fchar_variants): Use character-attribute `->ucs-variants' instead
456         of `Vcharacter_variant_table'.
457         (Fput_char_attribute): Likewise.
458         (vars_of_chartab): Don't setup `Vcharacter_variant_table'.
459         (complex_vars_of_chartab): Likewise.
460
461 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
462
463         * lisp.h: Add an EXFUN for `Fchar_ref_p'.
464
465         * fns.c (Qideographic_structure): New variable.
466         (Qkeyword_char): New variable.
467         (ids_format_unit): New function.
468         (Fideographic_structure_to_ids): New function.
469         (syms_of_fns): Add new symbols `ideographic-structure' and
470         `:char'; add new builtin function `ideographic-structure-to-ids'.
471
472         * data.c (Fchar_ref_p): New function.
473         (syms_of_data): Add new builtin function `char-ref-p'.
474
475         * chartab.h: Add an EXFUN for `Ffind_char'.
476
477 2002-07-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
478
479         * text-coding.c (Vcharacter_composition_table): Deleted.
480         (COMPOSE_ADD_CHAR): Use the implementation for external-DB support
481         in every UTF-2000.
482
483         * chartab.c: Add EXFUN for `Fmap_char_attribute' in every
484         UTF-2000.
485         (Vcharacter_composition_table): Deleted.
486         (Fget_composite_char): Use the implementation for external-DB
487         support in every UTF-2000.
488         (Fput_char_attribute): Likewise.
489         (char_attribute_system_db_file): Don't define if external-DB
490         feature is not available.
491         (Fsave_char_attribute_table): Likewise.
492         (Fmount_char_attribute_table): Likewise.
493         (Fclose_char_attribute_table): Likewise.
494         (Freset_char_attribute_table): Likewise.
495         (Fload_char_attribute_table): Likewise.
496         (syms_of_chartab): Don't define `save-char-attribute-table',
497         `mount-char-attribute-table', `reset-char-attribute-table',
498         `close-char-attribute-table' and `load-char-attribute-table' if
499         external-DB feature is not available.
500         (vars_of_chartab): Don't setup `Vcharacter_composition_table'.
501
502 2002-07-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
503
504         * text-coding.c (Qcomposition): Add extern if external-DB feature
505         is supported.
506         (Vcharacter_composition_table): Don't add extern if external-DB
507         feature is supported.
508         (COMPOSE_ADD_CHAR): Modify for new data-representation of
509         character composition rule if external-DB feature is supported.
510
511         * chartab.c (Vcharacter_composition_table): Don't define if
512         external-DB feature is supported.
513         (Qcomposition): New variable.
514         (Fget_composite_char): New implementation for external-DB support.
515         (Fput_char_attribute): Use `composition' property of each
516         character instead of `Vcharacter_composition_table' to store
517         character-composition rules if external-DB feature is supported.
518         (syms_of_chartab): Add new symbol `composition'.
519         (vars_of_chartab): Don't setup `Vcharacter_composition_table' if
520         external-DB feature is supported.
521
522 2002-07-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
523
524         * chartab.c (Vchar_db_stingy_mode): New variable.
525         (load_char_attribute_maybe): Close database if
526         Vchar_db_stingy_mode is not NIL.
527         (Fload_char_attribute_table_map_function): Use
528         `get_char_id_table_0' instead of `get_char_id_table'.
529         (vars_of_chartab): Add new variable `char-db-stingy-mode'.
530
531         * chartab.h (get_char_id_table_0): New inline function.
532         (get_char_id_table): Use `get_char_id_table_0'.
533
534 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
535
536         * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
537         and `COMPOSE_ADD_CHAR'.
538         (decode_coding_iso2022): Use `decode_flush_er_chars'.
539
540 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
541
542         * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
543         instead of `DECODE_ADD_UCS_CHAR'.
544         (COMPOSE_ADD_CHAR): Likewise.
545
546 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
547
548         * text-coding.c (decode_flush_er_chars): New inline function.
549         (decode_add_er_char): New function.
550         (decode_coding_utf8): Use `decode_flush_er_chars' and
551         `decode_add_er_char'.
552
553 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
554
555         * text-coding.c (decode_coding_utf8): Flush for er_buf must be
556         done before `decode_output_utf8_partial_char'.
557
558         * mule-charset.c (complex_vars_of_mule_charset): Specify
559         `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
560         `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
561
562 2002-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
563
564         * mule-charset.c (decode_defined_char): New function; search
565         mother.
566         (decode_builtin_char): Don't search mother if
567         XCHARSET_MAX_CODE(charset) == 0.
568         (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
569         == 0 even if code >= XCHARSET_MAX_CODE(charset).
570         (Fdecode_char): Use `decode_defined_char' instead of
571         `DECODE_DEFINED_CHAR'.
572         (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
573         mother of `Vcharset_ucs_jis'.
574
575         * text-coding.c (decode_coding_big5): Use `decode_defined_char'
576         instead of `DECODE_DEFINED_CHAR'.
577
578         * char-ucs.h (decode_defined_char): Renamed from
579         `DECODE_DEFINED_CHAR'; changed to normal function.
580         (DECODE_CHAR): Use `decode_defined_char' instead of
581         `DECODE_DEFINED_CHAR'.
582
583         * lisp.h: Add `EXFUN' for `Fstring_to_number'.
584
585 2002-07-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
586
587         * char-ucs.h: Add `extern' for `Vcharset_ucs'.
588
589         * text-coding.c (Vcoded_charset_entity_reference_alist): New
590         variable.
591         (Quse_entity_reference): New variable.
592         (Qd): New variable.
593         (Qx): New variable.
594         (QX): New variable.
595         (coding_system_description): Add description for
596         `ccs_priority_list'.
597         (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
598         (allocate_coding_system): Initialize `ccs_priority_list' in
599         UTF-2000.
600         (Fmake_coding_system): Add description about
601         'use-entity-reference; setup CODING_SYSTEM_USE_ENTITY_REFERENCE
602         (codesys).
603         (Fcoding_system_property): Accept `disable-composition' and
604         `use-entity-reference' in UTF-2000.
605         (struct decoding_stream): Add new member `er_counter' and `er_buf'
606         in UTF-2000.
607         (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
608         (decode_coding_utf8): Decode entity-reference if
609         CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
610         (char_encode_utf8): Encode non-Unicode characters as
611         entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
612         (str->codesys).
613         (syms_of_file_coding): Add new symbols `use-entity-reference',
614         `d', `x', `X'.
615         (vars_of_file_coding): Add new variable
616         `coded-charset-entity-reference-alist'.
617         (complex_vars_of_file_coding): Declare `disable-composition' and
618         `use-entity-reference' to be coding-system-properties in UTF-2000.
619
620         * file-coding.h (struct Lisp_Coding_System): Add new member
621         `use_entity_reference' and `ccs_priority_list'.
622         (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
623         (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
624         (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
625
626 2002-07-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
627
628         * chartab.c (save_uint8_byte_table): Don't clear the table.
629         (save_uint16_byte_table): Likewise.
630         (save_byte_table): Likewise.
631         (Fmount_char_attribute_table): New function.
632         (syms_of_chartab): Add new builtin function
633         `mount-char-attribute-table'.
634
635 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
636
637         * mule-charset.c (Fsave_charset_mapping_table): Open database as
638         "w+" mode.
639         (load_char_decoding_entry_maybe): Open database as read-only mode.
640
641         * chartab.c (Fsave_char_attribute_table): Don't share `ct->db';
642         open database as "w+" mode.
643         (load_char_attribute_maybe): Open database as read-only mode.
644         (Fload_char_attribute_table): Likewise.
645
646 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
647
648         * chartab.c (mark_char_table): Don't refer `ct->db_file'.
649         (char_table_description): Delete member `db_file'.
650         (Fmake_char_table): Don't refer `ct->db_file'.
651         (Fcopy_char_table): Likewise.
652         (Fsave_char_attribute_table): Likewise.
653         (Fclose_char_attribute_table): Likewise.
654         (Freset_char_attribute_table): Likewise.
655         (load_char_attribute_maybe): Likewise.
656         (Fload_char_attribute_table): Likewise.
657
658         * chartab.h (struct Lisp_Char_Table): Delete member `db_file'.
659
660 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
661
662         * chartab.c: Add an EXFUN for `Fmap_char_attribute'.
663         (Fsave_char_attribute_table): Don't check `ct->db_file' if
664         `ct->db' is living.
665         (load_char_attribute_maybe): Likewise.
666         (Fload_char_attribute_table): Likewise.
667
668 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
669
670         * chartab.c (Fclose_char_attribute_table): Set Qnil on
671         `ct->db_file' unconditionally.
672
673 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
674
675         * chartab.c (mark_char_table): Mark `ct->db_file' and `ct->db' in
676         UTF-2000.
677         (char_table_description): Add description for `db_file' and `db'
678         in UTF-2000.
679         (Fmake_char_table): Initialize `ct->db_file' and `ct->db' in
680         UTF-2000.
681         (Fcopy_char_table): Copy `ct->db_file' and `ct->db' in UTF-2000.
682         (Fsave_char_attribute_table): Use `ct->db_file' and `ct->db'.
683         (Fclose_char_attribute_table): New function.
684         (Freset_char_attribute_table): Reset `ct->db_file' and `ct->db'.
685         (load_char_attribute_maybe): Change interface; use `cit->db_file'
686         and `cit->db'.
687         (Fload_char_attribute_table): Use `ct->db_file' and `ct->db'.
688         (syms_of_chartab): Add new builtin function
689         `Fclose_char_attribute_table'.
690
691 2002-06-28  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
692
693         * chartab.h (struct Lisp_Char_Table): Add new member `db_file' and
694         `db' in UTF-2000.
695         (load_char_attribute_maybe): Change interface.
696         (get_char_id_table): Modify for `load_char_attribute_maybe'.
697
698 2002-06-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
699
700         * database.h: Add an EXFUN for `Fdatabase_live_p'.
701
702 2002-04-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
703
704         * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
705         instead of `DECODE_CHAR' for mother; don't use special code for
706         chinese-big5 to use code space of chinese-big5-1 and
707         chinese-big5-2.
708         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
709         `MAX_CHAR_BIG5_CDP' for chinese-big5.
710
711         * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
712         (MAX_CHAR_BIG5_CDP): Revival.
713
714 2002-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
715
716         * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
717         the XLFD registry-encoding name of `chinese-big5'.
718
719 2002-04-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
720
721         * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
722         (Qchinese_big5_cdp): Deleted.
723         (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
724         (complex_vars_of_mule_charset): Delete coded-charset
725         `chinese-big5-cdp'.
726
727         * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
728         (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
729         `CHARSET_ID_OFFSET - n' for private CCS.
730         (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
731         (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
732         of `MIN_LEADING_BYTE'.
733         (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
734         `(CHARSET_ID_OFFSET - 97)'.
735         (MIN_CHAR_BIG5_CDP): Deleted.
736         (MAX_CHAR_BIG5_CDP): Deleted.
737
738 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
739
740         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.19.
741
742 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
743
744         * mule.c (Vutf_2000_version): New variable [moved from chartab.c].
745         (vars_of_mule): Add new variable `utf-2000-version' [moved from
746         chartab.c].
747
748         * chartab.c (Vutf_2000_version): Moved to mule.c.
749         (vars_of_chartab): Move code about `utf-2000-version' into mule.c.
750
751 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
752
753         * mule-charset.c (load_char_decoding_entry_maybe): Don't define it
754         when HAVE_CHISE_CLIENT is not defined.
755
756         * mule.c (vars_of_mule): Provide feature `chise' when
757         HAVE_CHISE_CLIENT is defined.
758
759 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
760
761         * config.h.in (UTF2000): Add comment.
762         (HAVE_CHISE_CLIENT): New macro.
763
764 2002-02-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
765
766         * chartab.c (Fchar_variants): Check Vcharacter_variant_table is
767         CONSP.
768         (Fput_char_attribute): Likewise.
769         (char_attribute_system_db_file): Encode file-name of attribute.
770         (vars_of_chartab): Set Qunbound into Vcharacter_variant_table as
771         the initial value.
772
773 2002-02-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
774
775         * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
776         (Fsave_charset_mapping_table): Use
777         `char_attribute_system_db_file'.
778         (load_char_decoding_entry_maybe): Likewise.
779
780         * chartab.h (Qsystem_char_id): New external variable.
781         (char_attribute_system_db_file): New prototype.
782
783         * chartab.c (Qsystem_char_id): New variable in UTF-2000.
784         (char_attribute_system_db_file): New function.
785         (Fsave_char_attribute_table): Use `char_attribute_system_db_file'.
786         (Freset_char_attribute_table): Likewise.
787         (load_char_attribute_maybe): Likewise.
788         (Fload_char_attribute_table): Likewise.
789         (syms_of_chartab): Add new symbol `system-char-id'.
790
791 2002-02-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
792
793         * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
794         `XCHARSET_GRAPHIC(ccs)'.
795
796 2002-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
797
798         * mule-charset.c (Fsave_charset_mapping_table): Fixed.
799
800 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
801
802         * chartab.c (Q_ucs_variants): New variable.
803         (syms_of_chartab): Add new symbol `->ucs-variants'.
804         (complex_vars_of_chartab): Set `Vcharacter_variant_table' on
805         `Vchar_attribute_hash_table' as the value of `->ucs-variants'; set
806         `->ucs-variants' on `XCHAR_TABLE_NAME (Vcharacter_variant_table)'.
807
808         * mule-charset.c (load_char_decoding_entry_maybe): New function.
809
810         * char-ucs.h (load_char_decoding_entry_maybe): New prototype when
811         `HAVE_DATABASE' is defined.
812         (DECODE_DEFINED_CHAR): Use `load_char_decoding_entry_maybe' when
813         `HAVE_DATABASE' is defined.
814
815 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
816
817         * chartab.c (Fsave_char_attribute_table): Don't clear internal
818         attribute-table.
819         (Freset_char_attribute_table): New function.
820         (syms_of_chartab): Add new builtin function
821         `reset-char-attribute-table'.
822
823 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
824
825         * chartab.c (load_char_attribute_maybe): Don't make directories.
826
827 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
828
829         * char-ucs.h: Add EXFUN for `Fmake_directory_internal'.
830
831         * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
832         for decoding-table.
833
834 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
835
836         * mule-charset.c (Fsave_charset_mapping_table): Use
837         `XCHARSET_BYTE_SIZE' instead of `XCHARSET_CHARS'.
838
839         * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
840         instead of `XCHARSET_CHARS'.
841
842 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
843
844         * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
845         (XCHARSET_BYTE_SIZE): Likewise.
846
847         * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
848         mule-charset.c].
849         (XCHARSET_BYTE_SIZE): Likewise.
850
851 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
852
853         * chartab.c (Fput_char_attribute): Use exec-directory instead of
854         data-directory to store database.
855         (Fsave_char_attribute_table): Likewise.
856         (load_char_attribute_maybe): Likewise.
857         (Fload_char_attribute_table): Likewise.
858
859 2002-02-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
860
861         * mule-charset.c (Fsave_charset_mapping_table): New function.
862         (syms_of_mule_charset): Add new builtin function
863         `save-charset-mapping-table'.
864
865 2002-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
866
867         * char-ucs.h (decoding_table_check_elements): Delete prototype.
868         (get_ccs_octet_table): New inline function.
869         (put_ccs_octet_table): Likewise.
870         (decoding_table_put_char): Use `get_ccs_octet_table' and
871         `put_ccs_octet_table'.
872         (decoding_table_remove_char): Use `decoding_table_put_char'.
873         (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
874
875         * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
876         into encoding_table.
877         (make_charset): Use Qunbound instead Qnil as initial value of
878         decoding_table.
879
880 2002-02-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
881
882         * chartab.c (map_over_uint8_byte_table): Set Qunbound if an
883         element is Qunloaded.
884         (map_over_uint16_byte_table): Likewise.
885         (map_over_byte_table): Likewise.
886         (map_char_table): Likewise for CHARTAB_RANGE_ALL in UTF-2000; when
887         CHARTAB_RANGE_CHARSET is specified in UTF-2000 with external
888         database support, load encoding-table of the specified
889         coded-charset if it is not loaded yet.
890         (save_uint8_byte_table): New function of UTF-2000 with external
891         database support.
892         (save_uint16_byte_table): Likewise.
893         (save_byte_table): Likewise.
894         (Fput_char_attribute): Don't store value into external database
895         even if the external database feature is supported in UTF-2000;
896         set `attribute' as name of char-table if the external database
897         feature is supported.
898         (Fsave_char_attribute_table): New function in UTF-2000.
899         (syms_of_chartab): Add new builtin function
900         `save-char-attribute-table' in UTF-2000.
901
902 2002-02-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
903
904         * chartab.c (char_attribute_table_to_put): New variable in
905         UTF-2000.
906         (Qput_char_table_map_function): Likewise.
907         (value_to_put): Likewise.
908         (Fput_char_table_map_function): New function in UTF-2000.
909         (put_char_table): Use `Fmap_char_attribute' for
910         CHARTAB_RANGE_CHARSET in UTF-2000.
911         (Fput_char_attribute): Store symbol instead of string in
912         `XCHAR_TABLE_NAME (table)'.
913         (load_char_attribute_maybe): Likewise.
914         (syms_of_chartab): Add new symbol/function
915         `put-char-table-map-function'.
916
917 2002-01-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
918
919         * database.h: Add new EXFUN for `Fmap_database'.
920
921         * database.c (Fmap_database): Renamed from `Fmapdatabase'.
922         (syms_of_database): Likewise.
923
924         * chartab.h (struct Lisp_Char_Table): Add new member `unloaded' in
925         UTF-2000.
926         (CHAR_TABLE_UNLOADED): New macro of UTF-2000.
927         (XCHAR_TABLE_UNLOADED): Likewise.
928
929         * chartab.c (fill_char_table): Initialize `ct->unloaded'.
930         (Fput_char_attribute): Set XCHAR_TABLE_UNLOADED(table) if
931         HAVE_DATABASE is defined.
932         (char_attribute_table_to_load): New variable of UTF-2000 with
933         external database support.
934         (Qload_char_attribute_table_map_function): Likewise.
935         (Fload_char_attribute_table_map_function): New function of
936         UTF-2000 with external database support.
937         (Fload_char_attribute_table): New function of UTF-2000.
938         (Fmap_char_attribute): Call Fload_char_attribute_table if
939         CHAR_TABLE_UNLOADED(ct) is set when HAVE_DATABASE is defined.
940         (syms_of_chartab): Add new symbol and function
941         `load-char-attribute-table-map-function' in UTF-2000 with external
942         database support; add new function `load-char-attribute-table' in
943         UTF-2000.
944
945 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
946
947         * chartab.h (load_char_attribute_maybe): New prototype for
948         UTF-2000 with DATABASE support.
949         (get_char_id_table): Use `load_char_attribute_maybe' if
950         HAVE_DATABASE is defined.
951
952         * chartab.c (load_char_attribute_maybe): New function in UTF-2000
953         with DATABASE support.
954
955 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
956
957         * chartab.c (Fput_char_attribute): Use S-expression as key of
958         external database.
959
960         * chartab.h (get_char_id_table): Use S-expression as key of
961         external database.
962
963 2002-01-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
964
965         * chartab.c (map_over_uint8_byte_table): Add new argument `root';
966         if an element is not loaded, load the corresponding attributes
967         from an external database.
968         (map_over_uint16_byte_table): Likewise.
969         (map_over_byte_table): Likewise.
970         (map_char_table): Modify for `map_over_uint8_byte_table',
971         `map_over_uint16_byte_table' and `map_over_byte_table'; if an
972         element is not loaded, load the corresponding attributes from an
973         external database.
974         (Fput_char_attribute): Change initial values to Qunloaded.
975
976         * chartab.h (get_char_id_table): If a character attribute is not
977         loaded and the attribute value is not found in an external
978         database, store Qunbound as the attribute value.
979
980 2002-01-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
981
982         * chartab.c (BT_UINT8_unloaded): New macro.
983         (UINT8_VALUE_P): Accept Qunloaded.
984         (UINT8_ENCODE): Likewise.
985         (UINT8_DECODE): Likewise.
986         (BT_UINT16_unloaded): New macro.
987         (UINT16_VALUE_P): Accept Qunloaded.
988         (UINT16_ENCODE): Likewise.
989         (UINT16_DECODE): Likewise.
990         (UINT8_TO_UINT16): Convert BT_UINT8_unloaded into
991         BT_UINT16_unloaded.
992         (mark_char_table): Mark `ct->name' in UTF-2000.
993         (char_table_description): Add `name' in UTF-2000.
994         (Fmake_char_table): Initialize `ct->name'.
995         (Fcopy_char_table): Copy `ct->name'.
996         (Fput_char_attribute): Store value into an external database if
997         HAVE_DATABASE is defined.
998
999         * chartab.h (struct Lisp_Char_Table): Add new member `name' in
1000         UTF-2000.
1001         (CHAR_TABLE_NAME): New macro in UTF-2000.
1002         (XCHAR_TABLE_NAME): New macro in UTF-2000.
1003         (get_char_id_table): Try to read an external database if Qunloaded
1004         is stored in a table.
1005
1006         * symbols.c (init_symbols_once_early): Assign '#<unloaded> into
1007         Qunloaded.
1008
1009 2002-01-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1010
1011         * database.h: Add EXFUN definitions for Fopen_database,
1012         Fput_database, Fget_database and Fclose_database.
1013
1014         * data.c (Qunloaded): New variable in UTF-2000.
1015
1016         * lisp.h (Qunloaded): New variable in UTF-2000.
1017
1018 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1019
1020         * mule-charset.c (put_char_ccs_code_point): Modify for
1021         `decoding_table_remove_char' and `decoding_table_put_char'.
1022         (remove_char_ccs): Modify for `decoding_table_remove_char'.
1023
1024         * char-ucs.h (decoding_table_remove_char): Change arguments to
1025         hide decoding_table vector.
1026         (decoding_table_put_char): Likewise.
1027
1028 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1029
1030         * mule-charset.c (decoding_table_remove_char): Moved to
1031         char-ucs.h.
1032         (decoding_table_put_char): Likewise.
1033
1034         * char-ucs.h (decoding_table_check_elements): New prototype [moved
1035         from mule-charset.c].
1036         (decoding_table_remove_char): New inline function [moved from
1037         mule-charset.c].
1038         (decoding_table_put_char): Likewise.
1039
1040 2002-01-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1041
1042         * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
1043         extension.
1044
1045 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1046
1047         * mule-charset.c (decode_builtin_char): Support mother charsets.
1048
1049 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1050
1051         * mule-charset.c (Q94x94x60): New variable.
1052         (charset_code_point): Support conversion `94x94x60'.
1053         (Fmake_charset): Likewise.
1054         (syms_of_mule_charset): Add new symbol `94x94x60'.
1055
1056         * char-ucs.h (CONVERSION_94x94x60): New macro.
1057
1058 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1059
1060         * mule-charset.c (charset_code_point): Unify code about
1061         `code-offset'.
1062
1063 2001-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1064
1065         * mule-charset.c (charset_code_point): Merge code about builtin
1066         characters into code about mother charsets; don't use
1067         `range_charset_code_point'.
1068         (range_charset_code_point): Deleted.
1069
1070 2001-12-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1071
1072         * mule-charset.c (Qcode_offset): New variable.
1073         (Fmake_charset): Use `XUINT' to get value of `min-code' and
1074         `max-code'; accept new property `code-offset'.
1075         (syms_of_mule_charset): Add new symbol `code-offset'.
1076
1077 2001-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1078
1079         * mule-charset.c (range_charset_code_point): Fixed.
1080
1081 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1082
1083         * mule-charset.c (decode_builtin_char): Change semantics of
1084         code-offset of coded-charset.
1085         (charset_code_point): Likewise.
1086         (range_charset_code_point): Likewise.
1087         (complex_vars_of_mule_charset): Modify for the change.
1088
1089 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1090
1091         * mule-charset.c (Fencode_char): Reverse arguments.
1092
1093         * mule-charset.c (charset_code_point): Fixed.
1094
1095 2001-12-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1096
1097         * mule-charset.c (Vcharset_mojikyo): Deleted.
1098         (Vcharset_mojikyo_2022_1): Deleted.
1099         (Vcharset_mojikyo_pj_{1..21}): Deleted.
1100         (Qmin_code): New variable in UTF-2000.
1101         (Qmax_code): Likewise.
1102         (Qmother): Likewise.
1103         (Qconversion): Likewise.
1104         (Q94x60): Likewise.
1105         (Qmojikyo): Deleted.
1106         (Qmojikyo_2022_1): Deleted.
1107         (Qmojikyo_pj_{1..22}): Deleted.
1108         (mark_charset): Mark `cs->mother'.
1109         (charset_description): Add description for `mother'.
1110         (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
1111         new arguments `mother' and `conversion'; use
1112         `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
1113         (charset_code_point): Moved from char-ucs.h; support `mother'
1114         charset feature.
1115         (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
1116         of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
1117         (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
1118         UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
1119         allow 2 as the value of `graphic' in UTF-2000; add new properties
1120         `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
1121         require `final' in UTF-2000; modify for `make_charset'.
1122         (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
1123         instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
1124         (Fcharset_property): Support `mother', `min-code' and `max-code'.
1125         (Fencode_char): New function.
1126         (syms_of_mule_charset): Add new builtin function `encode-char' in
1127         UTF-2000; add new symbols `min-code', `max-code', `mother',
1128         `conversion' and `94x60'; delete symbols `mojikyo',
1129         `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
1130         (complex_vars_of_mule_charset): Modify for `make_charset' change;
1131         delete coded-charsets `mojikyo', `mojikyo-2022-1' and
1132         `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
1133
1134         * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
1135         `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
1136
1137         * char-ucs.h (Vcharset_mojikyo): Deleted.
1138         (Vcharset_mojikyo_2022_1): Deleted.
1139         (LEADING_BYTE_MOJIKYO): Deleted.
1140         (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
1141         (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
1142         (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
1143         (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
1144         add new member `mother'; add new member `conversion'.
1145         (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
1146         (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
1147         (CHARSET_MOTHER): New macro.
1148         (CHARSET_CONVERSION): New macro.
1149         (CONVERSION_IDENTICAL): New macro.
1150         (CONVERSION_94x60): New macro.
1151         (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
1152         (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
1153         (XCHARSET_MOTHER): New macro.
1154         (XCHARSET_CONVERSION): New macro.
1155         (MIN_CHAR_MOJIKYO): Deleted.
1156         (MAX_CHAR_MOJIKYO): Deleted.
1157         (DECODE_MOJIKYO_2022): Deleted.
1158         (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
1159         (charset_code_point): Changed to non-inline function.
1160         (encode_char_1): Use `charset_code_point'.
1161         (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
1162
1163 2001-12-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1164
1165         * lread.c (read_compiled_function): Fix prototype.
1166         (read_vector): Likewise.
1167
1168 2001-12-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1169
1170         * lrecord.h (struct lrecord_header): Delete `older'.
1171         (set_lheader_implementation): Delete code for `older'.
1172         (set_lheader_older_implementation): Deleted.
1173         (enum lrecord_type): Delete `lrecord_type_char_id_table'.
1174         (OLDER_RECORD_P): Deleted.
1175         (OLDER_RECORD_HEADER_P): Deleted.
1176         (alloc_older_lcrecord): Deleted.
1177         (alloc_older_lcrecord_type): Deleted.
1178
1179         * alloc.c (all_older_lcrecords): Deleted.
1180         (alloc_older_lcrecord): Deleted.
1181         (disksave_object_finalization_1): Delete code for older objects.
1182         (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
1183         (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
1184
1185 2001-12-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1186
1187         * mule-charset.c (decoding_table_put_char): Use `make_vector'
1188         instead of `make_older_vector'.
1189         (put_char_ccs_code_point): Likewise.
1190         (mark_charset): Mark `cs->decoding_table'.
1191         (Fset_charset_mapping_table): Don't use `make_vector_newer'.
1192
1193         * lisp.h (make_older_vector): Deleted.
1194         (make_vector_newer): Deleted.
1195
1196         * config.h.in (HAVE_GGC): Deleted.
1197
1198         * alloc.c (make_older_vector): Deleted.
1199         (make_vector_newer_1): Deleted.
1200         (make_vector_newer): Deleted.
1201
1202 2001-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1203
1204         * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
1205         (Qideograph_daikanwa_2): New variable.
1206         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
1207         (complex_vars_of_mule_charset): Add new coded-charset
1208         `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
1209         `LEADING_BYTE_DAIKANWA'.
1210
1211         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
1212         (LEADING_BYTE_DAIKANWA_1): New macro.
1213         (LEADING_BYTE_DAIKANWA_2): New macro.
1214         (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
1215
1216 2001-12-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1217
1218         * mule-charset.c (complex_vars_of_mule_charset): Change
1219         DOC-strings and registry of `ideograph-daikanwa'; now it indicates
1220         the second revised version.
1221
1222 2001-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1223
1224         * mule-charset.c (Vcharset_ucs_smp): New variable.
1225         (Vcharset_ucs_sip): New variable.
1226         (Qucs_smp): New variable.
1227         (Qucs_sip): New variable.
1228         (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
1229         MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
1230         (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
1231         (complex_vars_of_mule_charset): Modify middle-DOC and registry of
1232         `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
1233         charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
1234
1235         * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
1236         (LEADING_BYTE_UCS_SIP): New macro.
1237         (MIN_CHAR_SMP): New macro.
1238         (MAX_CHAR_SMP): New macro.
1239         (MIN_CHAR_SIP): New macro.
1240         (MAX_CHAR_SIP): New macro.
1241
1242 2001-11-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
1243
1244         * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
1245         utf-2000.
1246
1247 2001-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1248
1249         * mule-charset.c (put_char_ccs_code_point): Return canonicalized
1250         value; don't store value into `encoding_table' of `Lisp_Charset'.
1251         (mark_charset): `encoding_table' was deleted.
1252         (charset_description): Likewise.
1253         (make_charset): Likewise.
1254         (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
1255         `put_char_ccs_code_point'.
1256
1257         * chartab.h (Fput_char_attribute): New EXFUN.
1258
1259         * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
1260         is unified with normal symbol space.
1261         (Fget_char_attribute): Likewise.
1262         (Fput_char_attribute): Likewise; behavior of
1263         `put_char_ccs_code_point' is changed.
1264
1265         * char-ucs.h: Include "elhash.h".
1266         (Vchar_attribute_hash_table): New external variable.
1267         (struct Lisp_Charset): Delete `encoding_table'.
1268         (CHARSET_ENCODING_TABLE): New implementation; refer
1269         `Vchar_attribute_hash_table' instead of `encoding_table' of struct
1270         `Lisp_Charset'.
1271
1272 2001-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1273
1274         * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
1275         (cs) == 0.
1276
1277 2001-11-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1278
1279         * text-coding.c (char_encode_big5): Prefer charset-g1 than
1280         `chinese-big5'.
1281
1282 2001-11-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1283
1284         * chartab.c (uint8_byte_table_description): New constant.
1285         (uint8-byte-table): Use `uint8_byte_table_description'.
1286         (uint16_byte_table_description): New constant.
1287         (uint16-byte-table): Use `uint16_byte_table_description'.
1288
1289 2001-10-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1290
1291         * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
1292         range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
1293
1294 2001-10-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1295
1296         * mule-charset.c (Vcharset_ucs_ks): New variable.
1297         (Qucs_ks): New variable.
1298         (syms_of_mule_charset): Add new symbol `ucs-ks'.
1299         (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
1300
1301         * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
1302
1303 2001-10-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1304
1305         * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
1306         (Fdecode_char): Likewise.
1307
1308         * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
1309         chartab.h.
1310         (Fdefine_char): Modify for Fdecode_char.
1311         (Ffind_char): Likewise.
1312
1313         * mule-charset.c (Fdecode_char): Add new optional argument
1314         `defined-only'.
1315         (Fdecode_builtin_char): Modify for `Fdecode_char'.
1316
1317 2001-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1318
1319         * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
1320         -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
1321         (allocate_coding_system): Initialize initial-charsets of
1322         CODESYS_BIG5 in XEmacs UTF-2000.
1323         (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
1324         CODESYS_BIG5 in XEmacs UTF-2000.
1325         (decode_coding_big5): Use initial-charset-g0 and -g1 of
1326         CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
1327
1328         * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
1329         variables.
1330         (Qideograph_hanziku_{1 .. 12}): Likewise.
1331         (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
1332         .. 12}'.
1333         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
1334         `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
1335         `ideograph-hanziku-{1 .. 12}'.
1336
1337         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
1338         (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
1339         ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
1340         ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
1341         (DECODE_DEFINED_CHAR): New inline function.
1342         (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
1343
1344 2001-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1345
1346         * mule-charset.c (Vcharset_china3_jef): Renamed from
1347         `Vcharset_japanese_jef_china3'.
1348         (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
1349         (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
1350         `{MIN|MAX}_CHAR_JEF_CHINA3'..
1351         (syms_of_mule_charset): Rename `china3-jef' from
1352         `japanese-jef-china3'.
1353         (complex_vars_of_mule_charset): Likewise; rename
1354         `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
1355
1356         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
1357         `LEADING_BYTE_JEF_CHINA3'.
1358         (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
1359         (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
1360
1361 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1362
1363         * mule-charset.c (encode_builtin_char_1): Comment out special code
1364         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
1365
1366         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
1367         (MAX_CHAR_MOJIKYO_0): Comment out.
1368         (MIN_CHAR_CBETA): Changed to 0x00E20000.
1369         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
1370         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
1371         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
1372
1373 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1374
1375         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
1376         (Qideograph_cbeta): New variable.
1377         (encode_builtin_char_1): Comment out special code for
1378         coded-charset `mojikyo' and `japanese-jef-china3'.
1379         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
1380         (complex_vars_of_mule_charset): Add new coded-charset
1381         `ideograph-cbeta'.
1382
1383         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
1384         (MIN_CHAR_CBETA): New macro.
1385         (MAX_CHAR_CBETA): New macro.
1386
1387 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1388
1389         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
1390         (LEADING_BYTE_JEF_CHINA3): New macro.
1391         (MIN_CHAR_JEF_CHINA3): New macro.
1392         (MAX_CHAR_JEF_CHINA3): Likewise.
1393         (DECODE_CHAR): Fixed.
1394
1395 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1396
1397         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
1398         (Qjapanese_jef_china3): New variable.
1399         (encode_builtin_char_1): Support `japanese-jef-china3'.
1400         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
1401         (complex_vars_of_mule_charset): Add new coded-charset
1402         `japanese-jef-china3'.
1403
1404 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1405
1406         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
1407         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
1408         94^4, 96^3, 96^4, 128^n and 256^n set.
1409         (put_char_table): Use `XCHARSET_CELL_RANGE'.
1410         (map_char_table): Likewise.
1411
1412 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1413
1414         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
1415         UTF-2000.
1416
1417 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1418
1419         * chartab.h (get_char_id_table): New inline function.
1420
1421         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
1422         function.
1423
1424 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1425
1426         * chartab.h (decode_char_table_range): New prototype in XEmacs
1427         UTF-2000.
1428         (put_char_id_table): New inline function in XEmacs UTF-2000.
1429
1430         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
1431         function.
1432         (decode_char_table_range): Delete static declaration in XEmacs
1433         UTF-2000.
1434
1435 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1436
1437         * chartab.c (put_char_id_table): Use `put_char_table'.
1438
1439 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1440
1441         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
1442         (map_over_uint16_byte_table): Likewise.
1443         (map_over_byte_table): Likewise.
1444         (map_char_table): Modify for `map_over_uint8_byte_table',
1445         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
1446         UTF-2000.
1447
1448 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1449
1450         * chartab.c (struct map_char_table_for_charset_arg): New
1451         structure.
1452         (map_char_table_for_charset_fun): New function.
1453         (map_char_table): Use `map_char_table' for encoding_table of
1454         `range->charset'.
1455
1456 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1457
1458         * chartab.c (map_char_table): Check a character is found in
1459         range->charset instead of non default value is defined in
1460         char-table when range is CHARTAB_RANGE_ROW.
1461
1462 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1463
1464         * chartab.c (map_char_id_table): Deleted.
1465         (Fmap_char_attribute): Use `map_char_table' instead of
1466         `map_char_id_table'.
1467
1468 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1469
1470         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
1471         UTF-2000.
1472         (update_syntax_table): Deleted in XEmacs UTF-2000.
1473
1474         * syntax.c (find_defun_start): Use `syntax_table' instead of
1475         `mirror_syntax_table' in XEmacs UTF-2000.
1476         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
1477         UTF-2000.
1478         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
1479         XEmacs UTF-2000.
1480         (Fmatching_paren): Likewise.
1481         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
1482         in XEmacs UTF-2000.
1483         (find_start_of_comment): Likewise.
1484         (find_end_of_comment): Likewise.
1485         (Fforward_comment): Likewise.
1486         (scan_lists): Likewise.
1487         (char_quoted): Likewise.
1488         (Fbackward_prefix_chars): Likewise.
1489         (scan_sexps_forward): Likewise.
1490         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
1491         (update_syntax_table): Likewise.
1492
1493         * search.c (skip_chars): Use `syntax_table' instead of
1494         `mirror_syntax_table' in XEmacs UTF-2000.
1495         (wordify): Likewise.
1496         (Freplace_match): Likewise.
1497
1498         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
1499         `mirror_syntax_table' in XEmacs UTF-2000.
1500         (WORDCHAR_P_UNSAFE): Likewise.
1501         (re_match_2_internal): Likewise.
1502
1503         * font-lock.c (find_context): Use `buf->syntax_table' instead of
1504         `buf->mirror_syntax_table' in XEmacs UTF-2000.
1505
1506         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
1507         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
1508
1509         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
1510         XEmacs UTF-2000.
1511
1512         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
1513         UTF-2000.
1514         (print_char_table): Print `default_value' in XEmacs UTF-2000.
1515         (char_table_description): Delete `mirror_table' in XEmacs
1516         UTF-2000.
1517         (fill_char_table): Don't call `update_syntax_table' in XEmacs
1518         UTF-2000.
1519         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
1520         (Fcopy_char_table): Likewise.
1521         (put_char_table): Don't call `update_syntax_table' in XEmacs
1522         UTF-2000.
1523
1524         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
1525         `buf->mirror_syntax_table' in XEmacs UTF-2000.
1526         (casify_region_internal): Likewise.
1527
1528         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
1529
1530         * buffer.c (common_init_complex_vars_of_buffer): Don't use
1531         `mirror_syntax_table' in XEmacs UTF-2000.
1532
1533         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
1534         `buf->mirror_syntax_table' in XEmacs UTF-2000.
1535         (Fexpand_abbrev): Likewise.
1536
1537 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1538
1539         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
1540
1541 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1542
1543         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
1544         (map_over_uint16_byte_table): Likewise.
1545         (map_over_byte_table): Likewise.
1546         (get_char_id_table): Refer `cit->default_value'.
1547         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
1548         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
1549         of character-id ranges.
1550         (mark_char_table): Mark `ct->default_value'.
1551         (char_table_description): Add `default_value'.
1552         (fill_char_table): Use `default_value'.
1553         (decode_char_table_range): Decode `nil' as
1554         `CHARTAB_RANGE_DEFAULT'.
1555         (get_char_id_table): Refer `cit->default_value'.
1556         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
1557         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
1558         temporary hack; check value of char-table is bound or not.
1559         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
1560
1561         * chartab.h (struct Lisp_Char_Table): Add new member
1562         `default_value' in XEmacs UTF-2000.
1563         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
1564         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
1565         UTF-2000.
1566
1567 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1568
1569         * chartab.h (Lisp_Char_ID_Table): Deleted.
1570
1571         * chartab.c (char_table_description): Fix typo.
1572         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
1573         `Lisp_Char_ID_Table'.
1574
1575 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1576
1577         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
1578         `CHAR_ID_TABLE_P'.
1579
1580         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
1581         `CHAR_ID_TABLE_P'.
1582
1583         * chartab.h (XCHAR_ID_TABLE): Deleted.
1584         (XSETCHAR_ID_TABLE): Deleted.
1585         (CHAR_ID_TABLE_P): Deleted.
1586
1587         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
1588         `CHAR_ID_TABLE_P'.
1589         (Fget_composite_char): Likewise.
1590         (put_char_table): Likewise.
1591         (add_char_attribute_alist_mapper): Fixed.
1592         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
1593         `CHAR_ID_TABLE_P'.
1594         (Fget_char_attribute): Likewise.
1595         (Fget_char_attribute): Likewise.
1596         (Fmap_char_attribute): Likewise.
1597
1598         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
1599         `CHAR_ID_TABLE_P'.
1600         (encode_char_1): Likewise.
1601
1602 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1603
1604         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
1605         `XCHAR_ID_TABLE'.
1606
1607         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
1608         instead of `XCHAR_ID_TABLE'.
1609         (remove_char_ccs): Likewise.
1610
1611         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
1612         `XCHAR_ID_TABLE'.
1613         (Fget_composite_char): Likewise.
1614         (Fchar_variants): Likewise.
1615         (put_char_table): Likewise.
1616         (add_char_attribute_alist_mapper): Likewise.
1617         (Fchar_attribute_alist): Likewise.
1618         (Fget_char_attribute): Likewise.
1619         (Fput_char_attribute): Likewise.
1620         (Fmap_char_attribute): Likewise.
1621         (Fmap_char_attribute): Likewise.
1622
1623         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
1624         `XCHAR_ID_TABLE'.
1625         (encode_char_1): Likewise.
1626
1627 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1628
1629         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
1630         `Lisp_Char_ID_Table'.
1631         (mark_char_id_table): Deleted.
1632         (print_char_id_table): Likewise.
1633         (char_id_table_equal): Likewise.
1634         (char_id_table_hash): Likewise.
1635         (char_id_table_description): Likewise.
1636         (char_id_table): Likewise.
1637         (make_char_id_table): Use `Fmake_char_table' and
1638         `fill_char_table'.
1639         (get_char_id_table): Use `Lisp_Char_Table' instead of
1640         `Lisp_Char_ID_Table'.
1641         (put_char_id_table): Likewise.
1642         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
1643         `XCHAR_ID_TABLE'.
1644         (Fremove_char_attribute): Likewise.
1645         (syms_of_chartab): Don't define type `char-id-table'.
1646
1647         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
1648         (char_id_table): Likewise.
1649         (GC_CHAR_ID_TABLE_P): Likewise.
1650         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
1651         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
1652         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
1653         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
1654         (get_char_id_table): Use `Lisp_Char_Table' instead of
1655         `Lisp_Char_ID_Table'.
1656         (put_char_id_table_0): Likewise.
1657         (put_char_id_table): Likewise.
1658
1659 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1660
1661         * chartab.h: Lisp_Byte_Table related codes are moved from
1662         chartab.h.
1663
1664         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
1665
1666 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1667
1668         * chartab.h: Don't include "chartab.h".
1669         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
1670         (Lisp_Char_ID_Table): Likewise.
1671         (char_id_table): Likewise.
1672         (XCHAR_ID_TABLE): Likewise.
1673         (XSETCHAR_ID_TABLE): Likewise.
1674         (CHAR_ID_TABLE_P): Likewise.
1675         (GC_CHAR_ID_TABLE_P): Likewise.
1676         (get_char_id_table): Likewise.
1677
1678         * char-ucs.h: Include "chartab.h".
1679         (struct Lisp_Char_ID_Table): Moved to chartab.h.
1680         (Lisp_Char_ID_Table): Likewise.
1681         (char_id_table): Likewise.
1682         (XCHAR_ID_TABLE): Likewise.
1683         (XSETCHAR_ID_TABLE): Likewise.
1684         (CHAR_ID_TABLE_P): Likewise.
1685         (GC_CHAR_ID_TABLE_P): Likewise.
1686         (get_char_id_table): Likewise.
1687
1688 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1689
1690         * chartab.c (copy_uint8_byte_table): New function.
1691         (copy_uint16_byte_table): New function.
1692         (copy_byte_table): New function.
1693         (map_over_uint8_byte_table): Modify to avoid huge numbers of
1694         characters to call.
1695         (map_over_uint16_byte_table): Likewise.
1696         (map_over_byte_table): Likewise.
1697         (get_byte_table): Move prototype to chartab.h.
1698         (put_byte_table): Likewise.
1699         (put_char_id_table_0): Moved to chartab.h.
1700         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
1701         (char_table_entry_equal): Likewise.
1702         (char_table_entry_hash): Likewise.
1703         (char_table_entry_description): Likewise.
1704         (char_table_entry): Likewise.
1705         (make_char_table_entry): Likewise.
1706         (copy_char_table_entry): Likewise.
1707         (get_non_ascii_char_table_value): Likewise.
1708         (map_over_charset_ascii): Likewise.
1709         (map_over_charset_control_1): Likewise.
1710         (map_over_charset_row): Likewise.
1711         (map_over_other_charset): Likewise.
1712         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
1713         (print_char_table): Likewise.
1714         (char_table_equal): Likewise.
1715         (char_table_hash): Likewise.
1716         (char_table_description): Likewise.
1717         (fill_char_table): Likewise.
1718         (Fcopy_char_table): Likewise.
1719         (get_char_table): Likewise.
1720         (Fget_range_char_table): Likewise.
1721         (put_char_table): Likewise.
1722         (map_char_table): Likewise.
1723         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
1724         UTF-2000.
1725
1726 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1727
1728         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
1729         `Vauto_fill_chars' in XEmacs UTF-2000.
1730
1731         * chartab.h (get_byte_table): New prototype [moved from
1732         chartab.c].
1733         (put_byte_table): Likewise [moved from chartab.c].
1734         (put_char_id_table_0): New inline function [moved from chartab.c].
1735         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
1736         (Lisp_Char_Table_Entry): Likewise.
1737         (char_table_entry): Likewise.
1738         (XCHAR_TABLE_ENTRY): Likewise.
1739         (XSETCHAR_TABLE_ENTRY): Likewise.
1740         (CHAR_TABLE_ENTRYP): Likewise.
1741         (CHECK_CHAR_TABLE_ENTRY): Likewise.
1742         (NUM_ASCII_CHARS): Likewise.
1743         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
1744         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
1745
1746 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1747
1748         * chartab.c (get_char_id_table): Change interface.
1749         (put_char_id_table_0): New function.
1750         (put_char_id_table): Change interface; new implementation.
1751         (Fget_composite_char): Modify for interface change of
1752         `get_char_id_table'.
1753         (Fchar_variants): Likewise.
1754         (add_char_attribute_alist_mapper): Likewise.
1755         (Fchar_attribute_alist): Likewise.
1756         (Fget_char_attribute): Likewise.
1757         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
1758         as same as character as the first argument like `put-char-table';
1759         modify for interface change of `put_char_id_table'.
1760         (Fremove_char_attribute): Modify for interface change of
1761         `put_char_id_table'.
1762
1763 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1764
1765         * text-coding.c: Sync up with XEmacs 21.2.41.
1766         (COMPOSE_ADD_CHAR): Modify for interface change of
1767         `get_char_id_table'.
1768
1769         * mule-charset.c (put_char_ccs_code_point): Modify for interface
1770         change of `put_char_id_table'.
1771         (remove_char_ccs): Likewise.
1772
1773         * chartab.h (put_char_id_table): Change interface.
1774
1775         * char-ucs.h (get_char_id_table): Change interface.
1776         (charset_code_point): Modify for interface change of
1777         `get_char_id_table'.
1778         (encode_char_1): Likewise.
1779
1780 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1781
1782         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
1783         argument `ccs'.
1784         (map_over_uint16_byte_table): Likewise.
1785         (map_over_byte_table): Likewise.
1786         (map_char_id_table): Add new argument `range' like
1787         `map_char_table'.
1788         (Fmap_char_attribute): Add new argument `range' like
1789         `Fmap_char_table'.
1790
1791 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1792
1793         * chartab.c (map_over_uint8_byte_table): Change interface of
1794         mapping function to use struct chartab_range instead of Emchar.
1795         (map_over_uint16_byte_table): Likewise.
1796         (map_over_byte_table): Likewise.
1797         (map_char_id_table): Likewise.
1798         (struct slow_map_char_id_table_arg): Deleted.
1799         (slow_map_char_id_table_fun): Deleted.
1800         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
1801         function `slow_map_char_table_fun' instead of struct
1802         `slow_map_char_id_table_arg' and function
1803         `slow_map_char_id_table_fun'.
1804
1805 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1806
1807         * mule-charset.c: Move char-it-table related codes to chartab.c.
1808         (Vutf_2000_version): Moved to chartab.c.
1809         (Fdefine_char): Likewise.
1810         (Ffind_char): Likewise.
1811         (syms_of_mule_charset): Move types `uint8-byte-table',
1812         `uint16-byte-table', `byte-table' and `char-id-table' to
1813         chartab.c; move functions `char_attribute_list,
1814         `find_char_attribute_table, `char_attribute_alist,
1815         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
1816         `map_char_attribute, `define_char, `find_char, `char_variants and
1817         `get_composite_char to chartab.c; move symbols `=>ucs',
1818         `->decomposition', `compat', `isolated', `initial', `medial',
1819         `final', `vertical', `noBreak', `fraction', `super', `sub',
1820         `circle', `square', `wide', `narrow', `small' and `font' to
1821         chartab.c.
1822         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
1823         setting codes for `Vcharacter_composition_table' and
1824         `Vcharacter_variant_table' to chartab.c.
1825         (complex_vars_of_mule_charset): Move setting code for
1826         `Vchar_attribute_hash_table' to chartab.c.
1827
1828         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
1829         (make_char_id_table): New prototype.
1830         (put_char_id_table): Likewise.
1831         (Fget_char_attribute): Likewise.
1832
1833         * chartab.c: Move char-id-table related code from mule-charset.c.
1834         (Vutf_2000_version): Moved from mule-charset.c.
1835
1836         * char-ucs.h (Qucs): New external variable.
1837         (put_char_ccs_code_point): New prototype.
1838         (remove_char_ccs): Likewise.
1839
1840 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1841
1842         * mule-charset.c (Vcharset_ucs_jis): New variable.
1843         (Qucs_jis): Likewise.
1844         (syms_of_mule_charset): Add new symbol `ucs-jis'.
1845         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
1846
1847         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
1848
1849 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1850
1851         * mule-charset.c (map_over_uint8_byte_table): New function.
1852         (map_over_uint16_byte_table): Likewise.
1853         (map_over_byte_table): Likewise.
1854         (map_char_id_table): Likewise.
1855         (slow_map_char_id_table_fun): Likewise.
1856         (Fmap_char_attribute): Likewise.
1857         (syms_of_mule_charset): Add new function `map-char-attribute'.
1858
1859 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1860
1861         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
1862         (syms_of_mule_charset): Add new function `find-char'.
1863
1864 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1865
1866         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
1867         XEmacs UTF-2000.
1868         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
1869         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
1870         XEmacs UTF-2000.
1871         (complex_vars_of_mule_charset): Add new coded-charset
1872         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
1873         `ideograph-gt-pj-*'.
1874
1875         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
1876
1877 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1878
1879         * mule-charset.c (encode_builtin_char_1): Purge codes about
1880         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
1881         {MIN|MAX}_CHAR_HEBREW.
1882         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
1883         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
1884
1885         * char-ucs.h (MIN_CHAR_GREEK): Purged.
1886         (MAX_CHAR_GREEK): Purged.
1887         (MIN_CHAR_CYRILLIC): Purged.
1888         (MAX_CHAR_CYRILLIC): Purged.
1889         (MIN_CHAR_HEBREW): Commented out.
1890         (MAX_CHAR_HEBREW): Likewise.
1891
1892 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1893
1894         * mule-charset.c (Qto_ucs): New variable.
1895         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
1896         (Fdefine_char): Likewise.
1897         (syms_of_mule_charset): Add new symbol `=>ucs'.
1898
1899 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1900
1901         * mule-charset.c (Fdecode_char): Fixed.
1902
1903 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1904
1905         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
1906         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
1907         "tcvn5712-1".
1908
1909 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1910
1911         * mule-charset.c (Vcharset_ucs_big5): New variable.
1912         (Qucs_big5): Likewise.
1913         (syms_of_mule_charset): Add new symbol `ucs-big5'.
1914         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
1915
1916         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
1917
1918 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1919
1920         * mule-charset.c (decode_builtin_char): Check Big5 code range
1921         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
1922
1923 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1924
1925         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
1926         (Qchinese_gb12345): Likewise.
1927         (Fdecode_builtin_char): Fixed.
1928         (syms_of_mule_charset): Add `chinese-gb12345'.
1929         (complex_vars_of_mule_charset): Add coded-charset
1930         `chinese-gb12345'.
1931
1932         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
1933         (LEADING_BYTE_CHINESE_GB12345): New macro.
1934
1935 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1936
1937         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
1938         and `latin-viscii-upper' for `latin-viscii'.
1939
1940 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1941
1942         * mule-charset.c (Fdecode_builtin_char): Comment out
1943         regularization code for ISO-IR GR representation.
1944
1945 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1946
1947         * mule-charset.c (decode_builtin_char): New function; renamed from
1948         `make_builtin_char'; return -1 instead of signal.
1949         (Fdecode_builtin_char): Use `decode_builtin_char'.
1950
1951         * char-ucs.h (decode_builtin_char): New prototype; renamed from
1952         `make_builtin_char'.
1953         (DECODE_CHAR): Use `decode_builtin_char' instead of
1954         `make_builtin_char'; use mapping table of `chinese-big5' for
1955         `chinese-big5-{1,2}'.
1956
1957 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1958
1959         * text-coding.c (char_encode_big5): New function.
1960         (char_finish_big5): Likewise.
1961         (reset_encoding_stream): Use `char_encode_big5' and
1962         `char_finish_big5' for CODESYS_BIG5.
1963         (mule_encode): Don't use `encode_coding_big5'.
1964         (encode_coding_big5): Deleted.
1965
1966 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1967
1968         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
1969         0x81- in XEmacs UTF-2000.
1970         (detect_coding_big5): Likewise.
1971
1972 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1973
1974         * mule-charset.c (Fdefine_char): Don't use a CCS property to
1975         generate character-id if the CCS property does not have
1976         corresponding predefined character.
1977         (make_builtin_char): Return -1 if corresponding predefined
1978         character is not found.
1979         (Fdecode_char): Return nil if corresponding character is not
1980         found.
1981         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
1982         don't map to builtin ucs space.
1983
1984 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1985
1986         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
1987         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
1988
1989 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1990
1991         * mule-charset.c (Vcharset_ideograph_gt): New variable.
1992         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
1993         (Qideograph_gt): Likewise.
1994         (Qideograph_gt_pj_{1..11}): Likewise.
1995         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
1996         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
1997         `ideograph-gt-pj-11'.
1998         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
1999         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
2000         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
2001
2002         * char-ucs.h (LEADING_BYTE_GT): New macro.
2003         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
2004         (MIN_CHAR_GT): Likewise.
2005         (MAX_CHAR_GT): Likewise.
2006
2007 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2008
2009         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
2010         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
2011
2012         * doprnt.c (unsigned_int_converters): Add `c'.
2013         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
2014
2015         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
2016         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
2017         `MIN_CHAR_MOJIKYO'.
2018         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
2019         (MAX_CHAR_MOJIKYO_0): New macro.
2020         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
2021
2022 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2023
2024         * mule-charset.c (Fdefine_char): Delete cemented out code.
2025         (encode_builtin_char_1): Modify for new allocation of builtin
2026         Mojikyo characters.
2027
2028         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
2029
2030 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2031
2032         * mule-charset.c (Vcharset_ucs_cns): New variable.
2033         (Qucs_cns): New variable.
2034         (syms_of_mule_charset): Add new symbol `ucs-cns'.
2035         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
2036
2037 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2038
2039         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
2040
2041 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
2042
2043         * search.c (search_buffer): Make `charset_base_code' as
2044         character-id >> 6 to eliminate the corresponding last byte in
2045         UTF-8 representation [I'm not sure it is right thing].
2046         (boyer_moore): Likewise.
2047
2048 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
2049
2050         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
2051         representation in MULE.
2052
2053 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2054
2055         * text-coding.c (Fmake_coding_system): Use
2056         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
2057         `EXTERNAL_PROPERTY_LIST_LOOP'.
2058
2059 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2060
2061         * text-coding.c (decode_output_utf8_partial_char): New function.
2062         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
2063
2064 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2065
2066         * text-coding.c (decode_coding_utf8): Output original byte
2067         sequence if it is broken; change order of conditions.
2068
2069         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
2070         of conditions.
2071
2072         * mb-multibyte.h (BYTE_ASCII_P):
2073         Use bit ops for char-signedness safety.
2074         (BYTE_C0_P): Use bit ops for char-signedness safety.
2075         (BYTE_C1_P): Use bit ops for char-signedness safety.
2076
2077         * character.h: (XCHAR_OR_CHAR_INT):
2078         Always use inline function.
2079         Remove redundant type checking assert() - XINT will abort quite
2080         nicely.
2081
2082 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2083
2084         * text-coding.c: (Fencode_shift_jis_char):
2085         (Fencode_big5_char):
2086         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
2087         Replace 0 with '\0' when working with bytes.
2088         Replace initial "(" with "\(" in docstrings.
2089
2090         (Fmake_coding_system):
2091         When type is ccl and value is vector, register it with a proper
2092         symbol.  And checks whether the given ccl program is valid.
2093         (mule_decode): When calling ccl_driver, if src indicates
2094         NULL pointer, set an empty string instead.
2095         (mule_encode): Likewise.
2096
2097         (detect_eol_type):
2098         (detect_coding_sjis):
2099         (decode_coding_sjis):
2100         (detect_coding_big5):
2101         (decode_coding_big5):
2102         (detect_coding_ucs4):
2103         (decode_coding_ucs4):
2104         (detect_coding_utf8):
2105         (decode_coding_utf8):
2106         (detect_coding_iso2022):
2107         (decode_coding_iso2022):
2108         (decode_coding_no_conversion):
2109         (mule_decode):
2110         Make all detecting and decoding functions take an Extbyte * arg.
2111         (text_encode_generic):
2112         (encode_coding_big5):
2113         (encode_coding_no_conversion):
2114         (mule_encode):
2115         Make all encoding functions take a Bufbyte * arg.
2116         Use size_t instead of unsigned int for memory sizes.
2117         Only cast to unsigned char whenever dereferencing Extbyte *.
2118
2119         (struct lrecord_description fcd_description_1): Use countof.
2120         (complex_vars_of_file_coding):
2121         Use countof instead of sizeof.
2122         Use CHECK_NATNUM instead of CHECK_INT.
2123
2124 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2125
2126         * mule-charset.c (Fget_char_attribute): Add new optional argument
2127         `default-value'.
2128         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
2129         (remove_char_ccs): Likewise.
2130
2131 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2132
2133         * text-coding.c (char_encode_shift_jis): New implementation in
2134         UTF-2000.
2135         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
2136         ...)'.
2137
2138         * mule-charset.c (Vcharset_chinese_big5): New variable in
2139         UTF-2000.
2140         (Qchinese_big5): New variable in UTF-2000.
2141         (BIG5_SAME_ROW): New macro in UTF-2000.
2142         (make_builtin_char): Use builtin characters of
2143         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
2144         characters of `Vcharset_chinese_big5'.
2145         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
2146         (complex_vars_of_mule_charset): Add new coded-charset
2147         `chinese-big5' in UTF-2000.
2148
2149         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
2150         (Vcharset_chinese_big5): New external variable declaration.
2151         (Vcharset_japanese_jisx0208_1990): Likewise.
2152
2153 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2154
2155         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
2156         function.
2157         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
2158
2159 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2160
2161         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
2162         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
2163         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
2164         `mojikyo-pj-*'.
2165
2166 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2167
2168         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
2169
2170 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2171
2172         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2173         to 0.17.
2174
2175 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2176
2177         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
2178         for `CHARSET_BY_ATTRIBUTES'.
2179         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
2180         `CHARSET_BY_ATTRIBUTES'.
2181
2182         * text-coding.c (struct decoding_stream): Rename member `CH' to
2183         `CPOS'.
2184         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
2185         (decode_coding_sjis): Likewise.
2186         (decode_coding_big5): Likewise.
2187         (decode_coding_ucs4): Likewise.
2188         (decode_coding_utf8): Likewise.
2189         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
2190         `CHARSET_BY_ATTRIBUTES'.
2191         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
2192         `str->counter'; decode 3, 4 bytes sets.
2193         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
2194         sets.
2195         (decode_coding_no_conversion): Use `str->cpos' instead of
2196         `str->ch'.
2197
2198         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
2199         (Qmojikyo_2022_1): New variable.
2200         (make_charset): Don't use `CHARSET_TYPE_*'.
2201         (range_charset_code_point): Support coded-charset
2202         `mojikyo-2022-1'.
2203         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
2204         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
2205         `CHARSET_BY_ATTRIBUTES'.
2206         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
2207         `CHARSET_BY_ATTRIBUTES'.
2208         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
2209         (complex_vars_of_mule_charset): Add new coded-charset
2210         `mojikyo-2022-1'.
2211
2212         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
2213         interface; changed to inline function.
2214
2215         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
2216         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
2217         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
2218         (CHARSET_TYPE_94): Deleted.
2219         (CHARSET_TYPE_94X94): Deleted.
2220         (CHARSET_TYPE_96): Deleted.
2221         (CHARSET_TYPE_96X96): Deleted.
2222         (CHARSET_TYPE_128): Deleted.
2223         (CHARSET_TYPE_128X128): Deleted.
2224         (CHARSET_TYPE_256): Deleted.
2225         (CHARSET_TYPE_256X256): Deleted.
2226         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
2227         to inline function.
2228         (DECODE_MOJIKYO_2022): New inline function.
2229         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
2230         `Vcharset_mojikyo_2022_1'.
2231
2232 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2233
2234         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
2235         instead of `EQ'.
2236         (put_byte_table): Likewise.
2237         (char_id_table_equal): Use `get_byte_table' [new implementation].
2238
2239 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2240
2241         * mule-charset.c: Include <limits.h> in UTF-2000.
2242         (BT_UINT8_MIN): New macro in UTF-2000.
2243         (BT_UINT8_MAX): New macro in UTF-2000.
2244         (BT_UINT8_t): New macro in UTF-2000.
2245         (BT_UINT8_nil): New macro in UTF-2000.
2246         (BT_UINT8_unbound): New macro in UTF-2000.
2247         (INT_UINT8_P): New inline function in UTF-2000.
2248         (UINT8_VALUE_P): New inline function in UTF-2000.
2249         (UINT8_ENCODE): New inline function in UTF-2000.
2250         (UINT8_DECODE): New inline function in UTF-2000.
2251         (mark_uint8_byte_table): New function in UTF-2000.
2252         (print_uint8_byte_table): New function in UTF-2000.
2253         (uint8_byte_table_equal): New function in UTF-2000.
2254         (uint8_byte_table_hash): New function in UTF-2000.
2255         (make_uint8_byte_table): New function in UTF-2000.
2256         (uint8_byte_table_same_value_p): New function in UTF-2000.
2257         (BT_UINT16_MIN): New macro in UTF-2000.
2258         (BT_UINT16_MAX): New macro in UTF-2000.
2259         (BT_UINT16_t): New macro in UTF-2000.
2260         (BT_UINT16_nil): New macro in UTF-2000.
2261         (BT_UINT16_unbound): New macro in UTF-2000.
2262         (INT_UINT16_P): New inline function in UTF-2000.
2263         (UINT16_VALUE_P): New inline function in UTF-2000.
2264         (UINT16_ENCODE): New inline function in UTF-2000.
2265         (UINT16_DECODE): New inline function in UTF-2000.
2266         (UINT8_TO_UINT16): New inline function in UTF-2000.
2267         (mark_uint16_byte_table): New function in UTF-2000.
2268         (print_uint16_byte_table): New function in UTF-2000.
2269         (uint16_byte_table_equal): New function in UTF-2000.
2270         (uint16_byte_table_hash): New function in UTF-2000.
2271         (make_uint16_byte_table): New function in UTF-2000.
2272         (uint16_byte_table_same_value_p): New function in UTF-2000.
2273         (print_byte_table): New function in UTF-2000.
2274         (byte-table): Use `print_byte_table' as printer.
2275         (make_byte_table): Delete second argument `older'.
2276         (byte_table_same_value_p): New function in UTF-2000.
2277         (copy_byte_table): Deleted.
2278         (get_byte_table): New function in UTF-2000.
2279         (put_byte_table): New function in UTF-2000.
2280         (print_char_id_table): New function in UTF-2000.
2281         (char-id-table): Use `print_char_id_table' as printer.
2282         (make_char_id_table): Delete second argument `older'.
2283         (get_char_id_table): Use `get_byte_table [new implementation].
2284         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
2285         implementation].
2286         (Ffind_char_attribute_table): New function in UTF-2000.
2287         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
2288         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
2289         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
2290         (syms_of_mule_charset): Add new function
2291         `find-char-attribute-table' in UTF-2000.
2292
2293         * lrecord.h (enum lrecord_type): Add
2294         `lrecord_type_uint16_byte_table' and
2295         `lrecord_type_uint8_byte_table'.
2296
2297         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
2298         (Lisp_Uint8_Byte_Table): New type.
2299         (XUINT8_BYTE_TABLE): New macro.
2300         (XSETUINT8_BYTE_TABLE): New macro.
2301         (UINT8_BYTE_TABLE_P): New macro.
2302         (GC_UINT8_BYTE_TABLE_P): New macro.
2303         (struct Lisp_Uint16_Byte_Table): New structure.
2304         (Lisp_Uint16_Byte_Table): New type.
2305         (XUINT16_BYTE_TABLE): New macro.
2306         (XSETUINT16_BYTE_TABLE): New macro.
2307         (UINT16_BYTE_TABLE_P): New macro.
2308         (GC_UINT16_BYTE_TABLE_P): New macro.
2309
2310 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2311
2312         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
2313         (Vcharacter_ideographic_strokes_table): Deleted.
2314         (Vcharacter_total_strokes_table): Deleted.
2315         (Vcharacter_morohashi_daikanwa_table): Deleted.
2316         (Vcharacter_decomposition_table): Deleted.
2317         (Qname): Deleted because it is duplicated.
2318         (Qideographic_radical): Deleted.
2319         (Qideographic_strokes): Deleted.
2320         (Qtotal_strokes): Deleted.
2321         (Qmorohashi_daikanwa): Deleted.
2322         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
2323         `ideographic-radical', `ideographic-strokes', `total-strokes',
2324         `morohashi-daikanwa' and `->decomposition'.
2325         (Fget_char_attribute): Likewise.
2326         (Fput_char_attribute): Likewise; use `make-vector' instead of
2327         `make_older_vector' for `->decomposition' value.
2328         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
2329         `ideograph-daikanwa'.
2330         (syms_of_mule_charset): Delete builtin symbols `name',
2331         `ideographic-radical', `ideographic-strokes', `total-strokes' and
2332         `morohashi-daikanwa'.
2333         (vars_of_mule_charset): Don't setup
2334         `Vcharacter_ideographic_radical_table',
2335         `Vcharacter_ideographic_strokes_table',
2336         `Vcharacter_total_strokes_table',
2337         `Vcharacter_morohashi_daikanwa_table' and
2338         `Vcharacter_decomposition_table'.
2339
2340 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2341
2342         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
2343         `make_older_vector', `make_vector_newer_1' and
2344         `make_vector_newer'.
2345
2346         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
2347         `make_older_vector' and `make_vector_newer'.
2348
2349         * config.h.in (HAVE_GGC): New macro.
2350
2351 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2352
2353         * mule-charset.c (struct char_attribute_list_closure): New
2354         structure in UTF-2000.
2355         (add_char_attribute_to_list_mapper): New function in UTF-2000.
2356         (Fchar_attribute_list): Likewise.
2357         (Fset_charset_mapping_table): Use `make_vector_newer'.
2358         (Fdecode_builtin_char): New function in UTF-2000.
2359         (syms_of_mule_charset): Add new function `char-attribute-list' and
2360         `decode-builtin-char' in UTF-2000.
2361
2362         * lisp.h (make_vector_newer): New prototype.
2363
2364         * alloc.c (make_vector_newer_1): New function.
2365         (make_vector_newer): New function.
2366
2367 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2368
2369         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
2370         50100)'.
2371
2372 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2373
2374         * mule-charset.c (Vchar_attribute_hash_table): New variable.
2375         (Vcharacter_attribute_table): Deleted.
2376         (Vcharacter_name_table): Deleted.
2377         (put_char_attribute): Deleted.
2378         (remove_char_attribute): Deleted.
2379         (struct char_attribute_alist_closure): New structure.
2380         (add_char_attribute_alist_mapper): New function.
2381         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
2382         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
2383         (Fget_char_attribute): Likewise.
2384         (Fput_char_attribute): Likewise.
2385         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
2386         of `remove_char_attribute'.
2387         (Fdefine_char): Return character.
2388         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
2389         and `Vcharacter_name_table'.
2390         (complex_vars_of_mule_charset): Likewise
2391         `Vchar_attribute_hash_table'.
2392
2393 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2394
2395         * character.h (CHARC_CHARSET): New macro.
2396         (CHARC_CHARSET_ID): New macro.
2397         (CHARC_CODE_POINT): New macro.
2398         (CHARC_COLUMNS): New macro.
2399         (CHARC_TO_CHAR): New inline function.
2400         (CHARC_EQ): New inline function.
2401         (CHARC_ASCII_EQ): New inline function.
2402         (CHARC_IS_SPACE): New inline function.
2403         (ASCII_TO_CHARC): New inline function.
2404
2405         * char-ucs.h (encode_char_2): Deleted.
2406         (ENCODE_CHAR): Use `encode_char_1' again.
2407         (breakup_char_1): Likewise.
2408         (CHAR_TO_CHARC): New inline function.
2409
2410         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
2411
2412 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2413
2414         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
2415         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
2416         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
2417         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
2418         (create_string_text_block): Use `CHARC_ASCII_EQ' and
2419         `CHARC_IS_SPACE'.
2420         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
2421
2422         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
2423         `CHARC_CODE_POINT'.
2424         (x_output_display_block): Use `CHARC_CHARSET' and
2425         `CHARC_ASCII_EQ'.
2426
2427         * redisplay-tty.c (tty_output_display_block): Use
2428         `CHARC_ASCII_EQ'.
2429         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
2430
2431         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
2432
2433         * insdel.c (find_charsets_in_charc_string): Use
2434         `CHARC_CHARSET_ID'.
2435         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
2436         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
2437         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
2438         (convert_charc_string_into_malloced_string): Likewise.
2439
2440 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2441
2442         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
2443         instead of <Emchar_dynarr *> for buf; use
2444         `convert_bufbyte_string_into_charc_dynarr' instead of
2445         `convert_bufbyte_string_into_emchar_dynarr'; use
2446         `find_charsets_in_charc_string' instead of
2447         `find_charsets_in_emchar_string'.
2448
2449         * redisplay.h:
2450         - Include "character.h".
2451         (struct rune): New member `cglyph'; delete member `chr'.
2452
2453         * redisplay.c (redisplay_text_width_charc_string): New function;
2454         delete `redisplay_text_width_emchar_string'.
2455         (rtw_charc_dynarr): New variable; renamed from
2456         `rtw_emchar_dynarr'.
2457         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
2458         `rtw_emchar_dynarr'; use
2459         `convert_bufbyte_string_into_charc_dynarr' instead of
2460         `convert_bufbyte_string_into_emchar_dynarr'; use
2461         `redisplay_text_width_charc_string' instead of
2462         `redisplay_text_width_emchar_string'.
2463         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
2464         instead of `rtw_emchar_dynarr'; use
2465         `convert_bufbyte_string_into_charc_dynarr' instead of
2466         `convert_bufbyte_string_into_emchar_dynarr'.
2467         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
2468         `redisplay_text_width_charc_string' instead of
2469         `redisplay_text_width_emchar_string'.
2470         (create_text_block): Modify for <struct rune> change.
2471         (generate_formatted_string_db): Likewise.
2472         (create_string_text_block): Likewise.
2473         (pixel_to_glyph_translation): Likewise.
2474
2475         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
2476         instead of <const Emchar *>.
2477         (x_text_width): Likewise.
2478         (x_output_display_block): Use <Charc_dynarr *> instead
2479         <Emchar_dynarr *>; modify for <structure rune> change.
2480         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
2481         *>.
2482
2483         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
2484         <const Emchar *>; use `charc_string_displayed_columns' instead of
2485         `emchar_string_displayed_columns'.
2486         (tty_output_display_block): Use <Charc_dynarr *> instead of
2487         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
2488         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
2489         (tty_output_charc_dynarr_dynarr): New variable; renamed from
2490         `tty_output_emchar_dynarr_dynarr'.
2491         (tty_output_charc_dynarr): New function; delete
2492         `tty_output_charc_dynarr'.
2493
2494         * redisplay-output.c (compare_runes): Modify for `struct rune'.
2495         (redisplay_output_layout): Use <Charc_dynarr *> instead of
2496         <Emchar_dynarr *> for buf; use
2497         `convert_bufbyte_string_into_charc_dynarr' instead of
2498         `convert_bufbyte_string_into_emchar_dynarr'.
2499
2500         * frame.c (title_string_charc_dynarr): New variable; renamed from
2501         `title_string_emchar_dynarr'.
2502         (generate_title_string): Use `title_string_charc_dynarr' instead
2503         of `title_string_emchar_dynarr'; use
2504         `convert_charc_string_into_malloced_string' instead of
2505         `convert_emchar_string_into_malloced_string'.
2506         (init_frame): Use `title_string_charc_dynarr' instead of
2507         `title_string_emchar_dynarr'.
2508
2509         * console.h:
2510         - Include "character.h".
2511         (struct console_methods): Use <const Charc *> instead of <const
2512         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
2513         <Emchar_dynarr *> in output_string_method.
2514
2515         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
2516         <Emchar_dynarr *>.
2517
2518         * console-stream.c (stream_text_width): Use <const Charc *>
2519         instead of <const Emchar *>.
2520
2521         * character.h (Charc_dynarr): New type.
2522
2523         * char-ucs.h (structure Charc): New structure; define new type
2524         `Charc'.
2525
2526         * char-lb.h (DECODE_CHAR): New inline function.
2527         (encode_char_1): New inline function.
2528         (ENCODE_CHAR): New macro.
2529         (structure Charc): New structure; define new type `Charc'.
2530
2531         * char-1byte.h (Vcharset_control_1): New macro.
2532         (Vcharset_latin_iso8859_1): New macro.
2533         (DECODE_CHAR): New inline function.
2534         (encode_char_1): New inline function.
2535         (ENCODE_CHAR): New macro.
2536         (structure Charc): New structure; define new type `Charc'.
2537
2538         * insdel.c (find_charsets_in_charc_string): New function; delete
2539         `find_charsets_in_emchar_string'.
2540         (charc_string_displayed_columns): New function; delete
2541         `emchar_string_displayed_columns'.
2542         (convert_bufbyte_string_into_charc_dynarr): New function; delete
2543         `convert_bufbyte_string_into_emchar_dynarr'.
2544         (convert_charc_string_into_bufbyte_dynarr): New function; delete
2545         `convert_charc_string_into_bufbyte_dynarr'.
2546         (convert_charc_string_into_malloced_string): New function; delete
2547         `convert_charc_string_into_malloced_string'.
2548
2549         * buffer.h (find_charsets_in_charc_string): New prototype; delete
2550         `find_charsets_in_emchar_string'.
2551         (charc_string_displayed_columns): New prototype; delete
2552         `emchar_string_displayed_columns'.
2553         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
2554         `convert_charc_string_into_bufbyte_dynarr'.
2555         (convert_charc_string_into_malloced_string): New prototype; delete
2556         `convert_charc_string_into_malloced_string'.
2557
2558 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2559
2560         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
2561
2562 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2563
2564         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
2565
2566         * char-ucs.h: Use <short> for <Charset_ID>.
2567
2568         * mule-charset.h, char-1byte.h: Use <unsigned char> for
2569         <Charset_ID>.
2570
2571 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2572
2573         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2574         to 0.16.
2575
2576 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2577
2578         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
2579         variable.
2580         (Qmorohashi_daikanwa): New variable.
2581         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
2582         for `morohashi-daikanwa' attribute.
2583         (Fget_char_attribute): Likewise.
2584         (Fput_char_attribute): Likewise.
2585         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
2586         has the same value of `ideograph-daikanwa'.
2587         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
2588         (vars_of_mule_charset): Setup
2589         `Vcharacter_morohashi_daikanwa_table'.
2590
2591 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2592
2593         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
2594         attributes.
2595         (add_charset_to_list_mapper): Add `key' instead of
2596         `XCHARSET_NAME (value)' to return aliases.
2597
2598 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2599
2600         * mule-charset.c (Vcharacter_ideographic_radical_table): New
2601         variable.
2602         (Vcharacter_ideographic_strokes_table): New variable.
2603         (Qideographic_radical): New variable.
2604         (Qideographic_strokes): New variable.
2605         (Fchar_attribute_alist): Use
2606         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
2607         attribute; use `Vcharacter_ideographic_strokes_table' for
2608         `ideographic-strokes' attribute.
2609         (Fget_char_attribute): Likewise.
2610         (Fput_char_attribute): Likewise.
2611         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
2612         `ideographic-strokes'.
2613         (vars_of_mule_charset): Setup
2614         `Vcharacter_ideographic_radical_table' and
2615         `Vcharacter_ideographic_strokes_table'.
2616
2617 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2618
2619         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
2620         (Qtotal_strokes): New variable.
2621         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
2622         `total-strokes' attribute.
2623         (Fget_char_attribute): Likewise.
2624         (Fput_char_attribute): Likewise.
2625         (syms_of_mule_charset): Add new symbol `total-strokes'.
2626         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
2627
2628 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2629
2630         * mule-charset.c (Vcharacter_decomposition_table): New variable.
2631         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
2632         are found.
2633         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
2634         `->decomposition' attribute.
2635         (Fput_char_attribute): Likewise.
2636         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
2637
2638 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2639
2640         * mule-charset.c (decoding_table_check_elements): New function.
2641         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
2642
2643 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2644
2645         * mule-charset.c (Fset_charset_mapping_table): Use
2646         `put_char_ccs_code_point'.
2647
2648 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2649
2650         * mule-charset.c (decoding_table_put_char): New inline function.
2651         (put_char_ccs_code_point): Use `decoding_table_put_char'.
2652
2653 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2654
2655         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
2656         (XCHARSET_BYTE_SIZE): New macro.
2657         (decoding_table_remove_char): New inline function.
2658         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
2659         `decoding_table_remove_char'.
2660         (remove_char_ccs): Use `decoding_table_remove_char'.
2661         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
2662
2663 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2664
2665         * mule-charset.c (Vcharacter_name_table): New variable.
2666         (Qname): New variable.
2667         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
2668         attribute.
2669         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
2670         `Vcharacter_name_table' for `name' attribute.
2671         (Fremove_char_attribute): Use function `remove_char_ccs'.
2672         (put_char_ccs_code_point): New function.
2673         (remove_char_ccs): New function.
2674         (syms_of_mule_charset): Add new symbol `name'.
2675         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
2676
2677 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2678
2679         * mule-charset.c (make_byte_table): Add new argument `older'.
2680         (make_char_id_table): Likewise.
2681         (copy_char_id_table): Comment out because it is not used.
2682         (put_char_id_table): Modify for `make_byte_table'.
2683         (Fput_char_attribute): Make encoding_table as older object;
2684         inherit older bit of `Vcharacter_composition_table'.
2685         (mark_charset): Don't mark `cs->encoding_table'.
2686         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
2687         normal object; make `Vcharacter_composition_table' as an older
2688         object; delete staticpro for `Vcharacter_composition_table'; make
2689         `Vcharacter_variant_table' as a normal object.
2690
2691         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
2692         (mark_object): Don't check older object in UTF-2000.
2693
2694         * lrecord.h (struct lrecord_header): Add new member `older' in
2695         UTF-2000.
2696         (set_lheader_implementation): Setup `SLI_header->older' in
2697         UTF-2000.
2698         (set_lheader_older_implementation): New macro in UTF-2000.
2699         (OLDER_RECORD_P): New macro in UTF-2000.
2700         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
2701         (alloc_older_lcrecord): New prototype in UTF-2000.
2702         (alloc_older_lcrecord_type): New macro in UTF-2000.
2703
2704 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2705
2706         * mule-charset.c (byte_table_description): Use
2707         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
2708         (char_id_table_description): Delete bogus `, 1'.
2709         (Fget_char_attribute): Refer encoding_table of each coded-charset
2710         to get value of coded-charset attribute of a character.
2711         (Fput_char_attribute): Use `make_older_vector' instead of
2712         `make_vector'; use encoding_table of each coded-charset to store
2713         value of coded-charset attribute of a character.
2714         (Fremove_char_attribute): Use encoding_table of each coded-charset
2715         to store value of coded-charset attribute of a character.
2716         (mark_charset): Mark `cs->encoding_table'; don't mark
2717         `cs->decoding_table'.
2718         (charset_description): Add description of new member
2719         `encoding_table'.
2720         (make_charset): Initialize `encoding_table'.
2721
2722         * char-ucs.h (struct Lisp_Charset): Add new member
2723         `encoding_table'.
2724         (CHARSET_ENCODING_TABLE): New macro.
2725         (XCHARSET_ENCODING_TABLE): New macro.
2726         (charset_code_point): New implementation.
2727         (encode_char_1): Likewise.
2728
2729         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
2730         (disksave_object_finalization_1): Call finalizers of
2731         `all_older_lcrecords' in UTF-2000.
2732         (make_older_vector): New function in UTF-2000.
2733         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
2734         UTF-2000.
2735
2736         * lisp.h (make_older_vector): New prototype in UTF-2000.
2737
2738 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2739
2740         * lrecord.h (enum lrecord_type): Rename
2741         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
2742
2743         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
2744         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
2745         `get_char_code_table'.
2746
2747         * mule-charset.c (mark_char_id_table): Renamed from
2748         `mark_char_code_table'.
2749         (char_id_table_equal): Renamed from `char_code_table_equal'.
2750         (char_id_table_hash): Renamed from `char_code_table_hash'.
2751         (make_char_id_table): Renamed from `make_char_code_table'.
2752         (copy_char_id_table): Renamed from `copy_char_code_table'.
2753         (get_char_id_table): Renamed from `get_char_code_table'.
2754         (put_char_id_table): Renamed from `put_char_code_table'.
2755         (to_char_id): Renamed from `to_char_code'.
2756
2757         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
2758         `Lisp_Char_Code_Table'.
2759         (char_id_table): Renamed from `char_code_table'.
2760         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
2761         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
2762         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
2763         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
2764         (get_char_id_table): Renamed from `get_char_code_table'.
2765
2766 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2767
2768         * lrecord.h (enum lrecord_type): Rename
2769         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
2770
2771         * mule-charset.c (mark_byte_table): Renamed from
2772         `mark_char_byte_table'.
2773         (byte_table_equal): Renamed from `char_byte_table_equal'.
2774         (byte_table_hash): Renamed from `byte_table_hash'.
2775         (make_byte_table): Renamed from `make_byte_table'.
2776         (copy_byte_table): Renamed from `copy_char_byte_table'.
2777
2778         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
2779         `Lisp_Char_Byte_Table'.
2780         (byte_table): Renamed from `char_byte_table'.
2781         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
2782         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
2783         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
2784         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
2785
2786 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2787
2788         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
2789         (dfc_convert_to_internal_format): Likewise.
2790         
2791         * text-coding.c (Fcoding_system_canonical_name_p): New function.
2792         * text-coding.c (Fcoding_system_alias_p): New function.
2793         * text-coding.c (Fcoding_system_aliasee): New function.
2794         * text-coding.c (append_suffix_to_symbol): New function.
2795         * text-coding.c (dangling_coding_system_alias_p): New function.
2796         * text-coding.c (Ffind_coding_system):
2797         * text-coding.c (Fcopy_coding_system):
2798         * text-coding.c (encode_coding_no_conversion):
2799         * text-coding.c (syms_of_file_coding):
2800         * text-coding.c (vars_of_file_coding):
2801         Rewrite coding system alias code.
2802         Allow nested aliases, like symbolic links.
2803         Allow redefinition of coding system aliases.
2804         Prevent existence of dangling coding system aliases.
2805         Eliminate convert_to_external_format.
2806         Eliminate convert_to_internal_format.
2807         
2808         * text-coding.c: Change enum eol_type to eol_type_t.
2809
2810 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2811
2812         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
2813         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
2814
2815         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
2816         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
2817
2818 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2819
2820         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
2821         `ideograph-daikanwa'.
2822
2823         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
2824         (Vcharset_ucs_bmp): Likewise.
2825         (Vcharset_mojikyo): Add new extern variable definition.
2826         (Vcharset_latin_iso8859_2): Deleted because it is not used.
2827         (Vcharset_latin_iso8859_3): Likewise.
2828         (Vcharset_latin_iso8859_4): Likewise.
2829         (Vcharset_latin_iso8859_9): Likewise.
2830         (Vcharset_latin_viscii_lower): Likewise.
2831         (Vcharset_latin_viscii_upper): Likewise.
2832         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
2833         `mojikyo' code-point is used to decode.
2834         (encode_char_2): New function [to convert `mojikyo' code-point to
2835         Mojikyo font encoding].
2836         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
2837         (breakup_char_1): Likewise.
2838         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
2839
2840 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2841
2842         * text-coding.c (Fmake_coding_system): Add document about
2843         `disable-composition' property.
2844
2845 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2846
2847         * text-coding.c (Qdisable_composition): New variable; delete
2848         `Qcomposite'.
2849         (Fmake_coding_system): Add new property `disable-composite';
2850         delete property `composite'.
2851         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
2852         instead of `!CODING_SYSTEM_COMPOSITE'.
2853         (syms_of_file_coding): Add new symbol `disable-composition';
2854         delete symbol `composite'.
2855
2856         * file-coding.h (struct Lisp_Coding_System): Add
2857         `disable_composition'; delete `enable_composition'.
2858         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
2859         `CODING_SYSTEM_COMPOSITE'.
2860         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
2861         `XCODING_SYSTEM_COMPOSITE'.
2862
2863 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2864
2865         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2866         to 0.15.
2867
2868 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2869
2870         * text-coding.c (Qcomposite): New variable.
2871         (Fmake_coding_system): Add new property `composite'.
2872         (struct decoding_stream): Add `combined_char_count',
2873         `combined_chars' and `combining_table' in UTF-2000.
2874         (COMPOSE_FLUSH_CHARS): New macro.
2875         (COMPOSE_ADD_CHAR): New macro.
2876         (reset_decoding_stream): Reset `str->combined_char_count' and
2877         `str->combining_table' in UTF-2000.
2878         (decode_coding_iso2022): Modify for character-decomposition.
2879         (syms_of_file_coding): Add new symbol `composite'.
2880
2881 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2882
2883         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
2884         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
2885         of `Vcharacter_composition_table' if `->decomposition' property
2886         has only 1 element.
2887         (Qlatin_tcvn5712): New variable.
2888         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
2889         (complex_vars_of_mule_charset): Add new coded-charset
2890         `latin-tcvn5712'.
2891
2892         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
2893
2894 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2895
2896         * file-coding.h (struct Lisp_Coding_System): Add
2897         `enable_composition'.
2898         (CODING_SYSTEM_COMPOSITE): New macro.
2899         (XCODING_SYSTEM_COMPOSITE): New macro.
2900
2901 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
2902
2903         * mule-canna.c (c2mu): Fix problem with UTF-2000.
2904
2905 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
2906
2907         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
2908         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
2909
2910 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
2911
2912         * mule-charset.c (Vcharset_mojikyo): New variable.
2913         (Fdefine_char): Don't use coded-charset which does not have
2914         non-builtin character range to allocate character-id.
2915         (Qmojikyo): New variable.
2916         (syms_of_mule_charset): Add new symbol `mojikyo'.
2917         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
2918
2919         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
2920         (LEADING_BYTE_MOJIKYO): New macro.
2921         (MIN_CHAR_MOJIKYO): New macro.
2922         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
2923         (MAX_CHAR_MOJIKYO): New macro.
2924
2925 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
2926
2927         * mule-charset.c (remove_char_attribute): Fixed.
2928
2929 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
2930
2931         * mule-charset.c (remove_char_attribute): New function.
2932         (Fremove_char_attribute): New function.
2933         (encode_builtin_char_1): Comment out builtin-support for
2934         greek-iso8859-7 and cyrillic-iso8859-5.
2935         (Fdecode_char): Check `code' is an integer.
2936         (syms_of_mule_charset): Add `remove-char-attribute'.
2937         (MIN_CHAR_GREEK): Deleted.
2938         (MAX_CHAR_GREEK): Likewise.
2939         (MIN_CHAR_CYRILLIC): Likewise.
2940         (MAX_CHAR_CYRILLIC): Likewise.
2941         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
2942         MAX_CHAR_GREEK for `greek-iso8859-7'.
2943
2944         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
2945         (MAX_CHAR_GREEK): Likewise.
2946         (MIN_CHAR_CYRILLIC): Likewise.
2947         (MAX_CHAR_CYRILLIC): Likewise.
2948
2949 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
2950
2951         * mule-charset.c (Fdefine_char): Fix problem when new code-point
2952         format is used without `ucs' property.
2953         (Fdecode_char): Fix problem with GR representation.
2954         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
2955         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
2956
2957 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
2958
2959         * mule-charset.c (make_builtin_char): New function.
2960         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
2961         (Fset_charset_mapping_table): Modify for new representation of
2962         code-point.
2963         (Fdecode_char): New function.
2964         (syms_of_mule_charset): Add new builtin function `decode-char' in
2965         UTF-2000.
2966
2967         * char-ucs.h (make_builtin_char): New prototype.
2968         (DECODE_CHAR): New inline function.
2969         (MAKE_CHAR): Use `DECODE_CHAR'.
2970
2971 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
2972
2973         * text-coding.c (parse_charset_conversion_specs): Use
2974         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
2975         `XCHARSET_TYPE'.
2976         (iso2022_designate): Likewise.
2977
2978         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
2979         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
2980
2981         * mule-charset.c (Vcharset_ucs): New variable.
2982         (print_charset): Change design; use `CHARSET_CHARS' and
2983         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
2984         (make_charset): Change signature to specify `chars' and
2985         `dimension' instead of `type'.
2986         (range_charset_code_point): Modify for 256^n-set.
2987         (encode_builtin_char_1): Encode as `ucs' in default.
2988         (Fmake_charset): Modify for `make_charset'.
2989         (Fmake_reverse_direction_charset): Likewise.
2990         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
2991         UTF-2000.
2992         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
2993         for `make_charset'.
2994
2995         * char-ucs.h (Vcharset_ucs): New variable.
2996         (LEADING_BYTE_UCS): New macro.
2997         (struct Lisp_Charset): Delete `type'; change type of `dimension'
2998         and `chars' to `unsigned short' from `unsigned int'.
2999         (CHARSET_TYPE): Deleted.
3000         (XCHARSET_TYPE): Deleted.
3001
3002 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
3003
3004         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
3005
3006         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
3007         (ENCODE_CHAR): New macro.
3008
3009 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3010
3011         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3012         to 0.14 (Kawachi-Katakami).
3013
3014 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3015
3016         * text-coding.c (char_encode_shift_jis): Modify for
3017         `charset_code_point'.
3018         (char_encode_iso2022): Likewise.
3019
3020         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
3021         (integer) instead of list of <Lisp_Object>s (integers) as the
3022         format of code-point of a coded-charset.
3023         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
3024         (encode_builtin_char_1): New function; delete
3025         `split_builtin_char'.
3026         (charset_code_point): Return <int> instead of <Lisp_Object>.
3027         (Fsplit_char): Don't use `SPLIT_CHAR'.
3028
3029         * char-ucs.h (encode_builtin_char_1): New prototype; delete
3030         prototype for `split_builtin_char'.
3031         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
3032         (charset_code_point): Likewise.
3033         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
3034         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
3035
3036 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
3037
3038         * mule-charset.c (complex_vars_of_mule_charset): Don't define
3039         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
3040
3041 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3042
3043         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
3044
3045         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
3046         (MAX_CHAR_OBS_94x94): Deleted.
3047
3048 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3049
3050         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
3051
3052         * char-ucs.h (MAX_CHAR_BMP): New macro.
3053
3054 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3055
3056         * text-coding.c: Sync with r21-2-24.
3057
3058 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
3059
3060         * file-coding.c: Modify for UTF-2000.
3061
3062 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3063
3064         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3065         to 0.13 (Takaida).
3066
3067 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3068
3069         * mule-charset.c (split_builtin_char): Delete builtin support for
3070         `katakana-jisx0201'.
3071         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
3072         BMP area in builtin representation.
3073
3074         * char-ucs.h (MAKE_CHAR): Delete builtin support for
3075         `Vcharset_katakana_jisx0201'.
3076
3077 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
3078
3079         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
3080         (Qisolated): New variable.
3081         (Qinitial): New variable.
3082         (Qmedial): New variable.
3083         (Qfinal): New variable.
3084         (Qvertical): New variable.
3085         (Qsmall): New variable.
3086         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
3087         `Qvertical' and `Qsmall'.
3088         (Qmojikyo_pj_[1 .. 21]): New variable.
3089         (syms_of_mule_charset): Add new symbols `isolated', `initial',
3090         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
3091         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
3092         .. 21]'.
3093
3094 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
3095
3096         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
3097         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
3098         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
3099
3100 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3101
3102         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
3103         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
3104         BMP.
3105         (Qjapanese_jisx0208_1990): New variable.
3106         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
3107         (complex_vars_of_mule_charset): Add new coded-charset
3108         `japanese-jisx0208-1990'.
3109
3110         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
3111         (MIN_CHAR_JIS_X0208_1990): New macro.
3112         (MAX_CHAR_JIS_X0208_1990): New macro.
3113
3114 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3115
3116         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
3117         coded-charset is not found.
3118
3119 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3120
3121         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
3122         (Fdefine_char): Use `Fmake_char'.
3123
3124 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3125
3126         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
3127         (Vcharset_hiragana_jisx0208): Deleted.
3128         (Vcharset_katakana_jisx0208): Deleted.
3129         (Qideograph_daikanwa): New variable.
3130         (Qhiragana_jisx0208): Deleted.
3131         (Qkatakana_jisx0208): Deleted.
3132         (split_builtin_char): Split `ideograph-daikanwa'.
3133         (Fsplit_char): New implementation for UTF-2000.
3134         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
3135         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
3136         (complex_vars_of_mule_charset): Add new coded-charset
3137         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
3138         `katakana-jisx0208'.
3139
3140         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
3141         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
3142         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
3143         (MIN_CHAR_DAIKANWA): New macro.
3144         (MAX_CHAR_DAIKANWA): New macro.
3145
3146 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3147
3148         * data.c (Fstring_to_number): Don't recognize floating point if
3149         base is not 10.
3150
3151 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3152
3153         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
3154
3155 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3156
3157         * mule-charset.c (Qsquare): New variable.
3158         (to_char_code): Add `Qsquare'.
3159         (syms_of_mule_charset): Add new symbol `square'.
3160
3161 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3162
3163         * mule-charset.c (Qcircle): New variable.
3164         (to_char_code): Add `Qcircle'.
3165         (syms_of_mule_charset): Add new symbol `circle'.
3166
3167 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3168
3169         * mule-charset.c (Qfont): New variable.
3170         (to_char_code): Add `Qfont'.
3171         (syms_of_mule_charset): Add new symbol `font'.
3172
3173 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3174
3175         * mule-charset.c (Qsub): New variable.
3176         (to_char_code): Add `Qsub'.
3177         (syms_of_mule_charset): Add new symbol `sub'.
3178
3179 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3180
3181         * mule-charset.c (Fput_char_attribute): Convert each element of
3182         VALUE to GL position if ATTRIBUTE is a GR-set,
3183
3184 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3185
3186         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
3187         coded-charset is a GR-set.
3188
3189 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3190
3191         * mule-charset.c (Fput_char_attribute): Check each element of
3192         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
3193
3194 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3195
3196         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
3197         UTF-2000.
3198         (Qethiopic_ucs): New variable in UTF-2000.
3199         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
3200         (complex_vars_of_mule_charset): Add new coded-charset
3201         `ethiopic-ucs' in UTF-2000.
3202
3203         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
3204         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
3205         9)'.
3206         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
3207         10)'.
3208         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
3209
3210 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
3211
3212         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
3213         `ascii'.
3214
3215 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3216
3217         * mule-charset.c (Vcharacter_variant_table): New variable.
3218         (Q_ucs): New variable.
3219         (Fchar_variants): New function.
3220         (Fput_char_attribute): Register `->ucs' value to
3221         `Vcharacter_variant_table'.
3222         (syms_of_mule_charset): Add new function `char-variants' and new
3223         symbol `->ucs'.
3224         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
3225
3226 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3227
3228         * mule-charset.c (get_char_code_table): Allow negative character
3229         code.
3230         (put_char_code_table): Likewise.
3231         (Vcharacter_composition_table): New variable.
3232         (Q_decomposition): New variable.
3233         (Qwide): New variable.
3234         (Qnarrow): New variable.
3235         (Qcompat): New variable.
3236         (QnoBreak): New variable.
3237         (Qsuper): New variable.
3238         (Qfraction): New variable.
3239         (to_char_code): New function.
3240         (Fget_composite_char): New function.
3241         (Fput_char_attribute): Register `->decomposition' value to
3242         `Vcharacter_composition_table'.
3243         (syms_of_mule_charset): Add new function `get-composite-char', new
3244         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
3245         `super' and `fraction'.
3246         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
3247
3248 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3249
3250         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
3251         character; copy the return value.
3252
3253 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3254
3255         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
3256
3257         * mule-charset.c (range_charset_code_point): Must use make_int.
3258         (split_builtin_char): New function.
3259
3260 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3261
3262         * mule-charset.c (char_byte_table): Change name from
3263         "char-code-table" to "char-byte-table".
3264         (mark_char_code_table): New function.
3265         (char_code_table_equal): New function.
3266         (char_code_table_hash): New function.
3267         (char_code_table_description): New constant.
3268         (char_code_table): New type.
3269         (make_char_code_table): New function.
3270         (copy_char_code_table): New function.
3271         (get_char_code_table): Modify for `char_code_table' type.
3272         (put_char_code_table): Likewise.
3273         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
3274         (Kashiwara).
3275
3276         * char-ucs.h (char_code_table): New type.
3277         (XCHAR_CODE_TABLE): New macro.
3278         (XSETCHAR_CODE_TABLE): New macro.
3279         (CHAR_CODE_TABLE_P): New macro.
3280         (GC_CHAR_CODE_TABLE_P): New macro.
3281         (struct Lisp_Char_Code_Table): New structure.
3282
3283 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3284
3285         * mule-charset.c (Fmake_charset): Setup byte_offset for
3286         {94|96}^n-set.
3287
3288 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3289
3290         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
3291         character.
3292
3293 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3294
3295         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
3296         is found.
3297
3298 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3299
3300         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
3301         charset, it is regarded as a charset.
3302         (put_char_attribute): New function in UTF-2000.
3303         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
3304         charset, mapping-table of the charset is modified.
3305         (Fdefine_char): New function in UTF-2000.
3306         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
3307         `Fput_char_attribute'.
3308         (syms_of_mule_charset): Add new function `define-char' and new
3309         symbol `ucs' in UTF-2000.
3310         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
3311
3312 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3313
3314         * mule-charset.c (Fcharset_name): Define `byte_offset' in
3315         non-UTF-2000 configuration.
3316
3317 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3318
3319         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
3320         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
3321
3322         * mule-charset.c (mark_charset): `cs->encoding_table' has been
3323         deleted.
3324         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
3325         (Fset_charset_mapping_table): Likewise.
3326
3327         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
3328         (CHARSET_ENCODING_TABLE): Delete.
3329         (XCHARSET_ENCODING_TABLE): Delete.
3330         (charset_code_point): New interface.
3331
3332 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3333
3334         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
3335         instead of `charset_get_byte1' and `charset_get_byte2'.
3336
3337         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
3338         (charset_get_byte2): Deleted.
3339
3340 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3341
3342         * char-ucs.h (SPLIT_CHAR): New inline function.
3343         (breakup_char_1): Use `SPLIT_CHAR'.
3344
3345         * mule-charset.c (range_charset_code_point): New function.
3346         (charset_code_point): New function.
3347
3348         * char-ucs.h (range_charset_code_point): New interface.
3349         (breakup_char_1): Use `range_charset_code_point'.
3350
3351 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3352
3353         * mule-charset.c (Fmake_charset): Delete unused local variable
3354         `code_offset'.
3355
3356         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
3357         (breakup_char_1): Find a charset and code-point in
3358         `Vcharacter_attribute_table'.
3359
3360 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3361
3362         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3363         to 0.10 (Yao).
3364
3365 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
3366
3367         * mule-charset.c (Vcharacter_attribute_table): New variable.
3368         (Fchar_attribute_alist): New function.
3369         (Fget_char_attribute): New function.
3370         (Fput_char_attribute): New function.
3371         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
3372         too.
3373         (syms_of_mule_charset): Add new function `char-attribute-alist',
3374         `get-char-attribute' and `put-char-attribute'.
3375         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
3376
3377 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
3378
3379         * mule-charset.c (Fmake_charset): Just use
3380         `get_unallocated_leading_byte'.
3381
3382         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
3383         sets; don't use final-byte based number for private sets.
3384
3385 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3386
3387         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
3388         integer.
3389
3390 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3391
3392         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3393         to 0.9.
3394
3395 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3396
3397         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
3398         of `CHAR_LEADING_BYTE' in UTF-2000.
3399
3400         * insdel.c (find_charsets_in_bufbyte_string): Use
3401         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
3402         (find_charsets_in_emchar_string): Likewise.
3403
3404         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
3405         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
3406
3407         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
3408         (CHAR_CHARSET_ID): New macro.
3409
3410 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3411
3412         * chartab.c (get_char_table): Don't use type `Charset_ID' for
3413         charset-id - MIN_LEADING_BYTE.
3414         (put_char_table): Likewise.
3415
3416 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3417
3418         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
3419         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
3420         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
3421         (CHARSET_ID_OFFSET): New macro.
3422         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
3423         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
3424         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
3425         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
3426         4).
3427         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
3428         5).
3429         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
3430         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
3431         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
3432         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
3433         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
3434
3435 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3436
3437         * mule-charset.c (next_allocated_leading_byte): New variable in
3438         UTF-2000.
3439         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
3440         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
3441         (get_unallocated_leading_byte): Simply use
3442         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
3443         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
3444         UTF-2000.
3445
3446         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
3447         (MAX_LEADING_BYTE_PRIVATE): New macro.
3448         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
3449         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
3450
3451 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3452
3453         * mule-charset.c (Fmake_charset): Allocate final-byte based
3454         charset-id for 94-set, 96-set and 94x94-set.
3455
3456 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3457
3458         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
3459         ambiguous `else'.
3460         (Fmake_charset): Likewise.
3461         (complex_vars_of_mule_charset): Modify the font registry of
3462         `ucs-bmp' not to match `Ethiopic-Unicode'.
3463
3464 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3465
3466         * mule-charset.c (complex_vars_of_mule_charset): Add font
3467         registory of `ucs-bmp'.
3468
3469 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3470
3471         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
3472         coded-charsets in `default-coded-charset-priority-list' when
3473         breaking up a character.
3474
3475         * mule-charset.c (Vcharset_latin_viscii): New variable.
3476         (Qlatin_viscii): New variable.
3477         (make_charset): Don't use `decoding_table'.
3478         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
3479         byte_offset.
3480         (Fset_charset_mapping_table): New implementation.
3481         (syms_of_mule_charset): Add new symbol `latin-viscii'.
3482         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
3483         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
3484         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
3485         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
3486         charset `latin_viscii'.
3487
3488         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
3489         (CHARSET_TYPE_94X94): Change to 1 from 2.
3490         (CHARSET_TYPE_96): Change to 2 from 1.
3491         (CHARSET_TYPE_128): New macro.
3492         (CHARSET_TYPE_128X128): Change to 5 from 4.
3493         (CHARSET_TYPE_256): New macro.
3494         (CHARSET_TYPE_256X256): Change to 7 from 5.
3495         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
3496
3497 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3498
3499         * text-coding.c (char_encode_shift_jis): Refer
3500         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
3501         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
3502
3503         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
3504         (char_byte_table_equal): New function in UTF-2000.
3505         (char_byte_table_hash): New function in UTF-2000.
3506         (char_byte_table_description): New constant in UTF-2000.
3507         (char_byte_table): New type in UTF-2000.
3508         (make_char_byte_table): New function in UTF-2000.
3509         (copy_char_byte_table): New function in UTF-2000.
3510         (make_char_code_table): New macro in UTF-2000.
3511         (get_char_code_table): New function in UTF-2000.
3512         (put_char_code_table): New function in UTF-2000.
3513         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
3514         (charset_description): Add setting in UTF-2000.
3515         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
3516         `CHARSET_TO_BYTE1_TABLE(cs)'.
3517         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
3518         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
3519         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
3520         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
3521         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
3522         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
3523         `CHARSET_TO_BYTE2_TABLE(cs)'.
3524
3525         * char-ucs.h (char_byte_table): New type.
3526         (XCHAR_BYTE_TABLE): New macro.
3527         (XSETCHAR_BYTE_TABLE): New macro.
3528         (CHAR_BYTE_TABLE_P): New macro.
3529         (GC_CHAR_BYTE_TABLE_P): New macro.
3530         (struct Lisp_Char_Byte_Table): New structure.
3531         (get_char_code_table): New interface.
3532         (Emchar_to_byte_table): Deleted.
3533         (get_byte_from_character_table): Deleted.
3534         (struct Lisp_Charset): Add `encoding_table'; delete
3535         `to_byte1_table' and `to_byte2_table'.
3536         (CHARSET_ENCODING_TABLE): New macro.
3537         (CHARSET_TO_BYTE1_TABLE): Deleted.
3538         (CHARSET_TO_BYTE2_TABLE): Deleted.
3539         (XCHARSET_ENCODING_TABLE): New macro.
3540         (XCHARSET_TO_BYTE1_TABLE): Deleted.
3541         (XCHARSET_TO_BYTE2_TABLE): Deleted.
3542
3543 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
3544
3545         * mule-charset.c (syms_of_mule_charset): Delete charset alias
3546         `vietnamese-viscii-*'.
3547
3548 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
3549
3550         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
3551         (Qvietnamese_viscii_upper): New variable.
3552         (Fdefine_charset_alias): New function.
3553         (syms_of_mule_charset): Add new function `define-charset-alias'.
3554         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
3555         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
3556         `latin-viscii-*'.
3557
3558 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
3559
3560         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
3561         (MAX_CHAR_OBS_94x94): New macro.
3562         (breakup_char_1): Support obsolete XEmacs-UCS private code space
3563         for 94x94 sets.
3564
3565         * mule-charset.c (put_byte_from_character_table): Change unit size
3566         from 128 to 256.
3567         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
3568         not defined.
3569         (Fmake_reverse_direction_charset): Modify dummy argument of
3570         `make_charset' for non-UTF-2000 environment.
3571
3572 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3573
3574         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
3575
3576         * mule-charset.c (destroy_byte_from_character_table): New macro.
3577         (latin_jisx0201_to_ucs): Deleted.
3578         (latin_iso8859_2_to_ucs): Deleted.
3579         (latin_iso8859_3_to_ucs): Deleted.
3580         (latin_iso8859_4_to_ucs): Deleted.
3581         (latin_iso8859_9_to_ucs): Deleted.
3582         (latin_viscii_lower_to_ucs): Deleted.
3583         (latin_viscii_upper_to_ucs): Deleted.
3584         (mark_charset): Mark `cs->decoding_table'.
3585         (Fcharset_mapping_table): Fix DOC-string.
3586         (Fset_charset_mapping_table): New function.
3587         (syms_of_mule_charset): Add nwe function
3588         `set-charset-mapping-table'.
3589         (complex_vars_of_mule_charset): Don't setup and use
3590         `latin_*_to_ucs'.
3591
3592 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3593
3594         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
3595         charset.
3596
3597 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3598
3599         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
3600         (Vcharset_katakana_jisx0208): New variable.
3601         (Qhiragana_jisx0208): New variable.
3602         (Qkatakana_jisx0208): New variable.
3603         (make_charset): Add new argument `byte_offset'.
3604         (charset_get_byte1): Modify for new coded-charset definition; use
3605         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
3606         `XCHARSET_BYTE_OFFSET'.
3607         (Fmake_charset): Modify for `make_charset'.
3608         (Fmake_reverse_direction_charset): Likewise.
3609         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
3610         `katakana-jisx0208'.
3611         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
3612         `.'  in font registry of charset `katakana-jisx0201',
3613         `latin-jisx0201', `vietnamese-viscii-lower' and
3614         `vietnamese-viscii-upper'; modify DOC-string of charset
3615         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
3616         registry of charset `japanese-jisx0208' not to use font for JIS
3617         X0208:1990; add new charset `hiragana-jisx0208' and
3618         `katakana-jisx0208'.
3619
3620         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
3621         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
3622         (struct Lisp_Charset): Add `byte_offset'.
3623         (CHARSET_BYTE_OFFSET): New macro.
3624         (XCHARSET_UCS_MIN): New macro.
3625         (XCHARSET_UCS_MAX): New macro.
3626         (XCHARSET_CODE_OFFSET): New macro.
3627         (XCHARSET_BYTE_OFFSET): New macro.
3628         (MIN_CHAR_HIRAGANA): New macro.
3629         (MAX_CHAR_HIRAGANA): New macro.
3630         (MIN_CHAR_KATAKANA): New macro.
3631         (MAX_CHAR_KATAKANA): New macro.
3632         (MAKE_CHAR): Modify for new coded-charset definition; use
3633         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
3634         `XCHARSET_BYTE_OFFSET'.
3635
3636 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3637
3638         * mule-charset.c (CHAR96): Deleted.
3639         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
3640         <Lisp_Object>.
3641         (latin_iso8859_2_to_ucs): Likewise.
3642         (latin_iso8859_3_to_ucs): Likewise.
3643         (latin_iso8859_4_to_ucs): Likewise.
3644         (latin_iso8859_9_to_ucs): Likewise.
3645         (latin_viscii_lower_to_ucs): Likewise.
3646         (latin_viscii_upper_to_ucs): Likewise.
3647         (latin_tcvn5712_to_ucs): Commented out.
3648         (make_charset): Change type of argument `decoding_table' from
3649         <Emchar*> to <Lisp_Object> [vector of characters].
3650         (Fmake_charset): Modify for `make_charset'.
3651         (Fmake_reverse_direction_charset): Likewise.
3652         (Fcharset_mapping_table): New function in UTF-2000.
3653         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
3654         UTF-2000.
3655         (complex_vars_of_mule_charset): Modify for type change of
3656         `*_to_ucs'; modify for `make_charset'.
3657
3658         * char-ucs.h (struct Lisp_Charset): Change type of
3659         `decoding_table' from <Emchar*> to <Lisp_Object>.
3660         (MAKE_CHAR): Modify for new specification of `decoding_table'.
3661
3662 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
3663
3664         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
3665         error with non-UTF-2000-Mule.
3666
3667 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
3668
3669         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
3670         in lisp again].
3671         (Vcharset_chinese_cns11643_4): Likewise.
3672         (Vcharset_chinese_cns11643_5): Likewise.
3673         (Vcharset_chinese_cns11643_6): Likewise.
3674         (Vcharset_chinese_cns11643_7): Likewise.
3675         (Qchinese_cns11643_3): Likewise.
3676         (Qchinese_cns11643_4): Likewise.
3677         (Qchinese_cns11643_5): Likewise.
3678         (Qchinese_cns11643_6): Likewise.
3679         (Qchinese_cns11643_7): Likewise.
3680         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
3681         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
3682         and `chinese-cns11643-7' to lisp/mule/chinese.el.
3683         (complex_vars_of_mule_charset): Likewise.
3684
3685 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3686
3687         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
3688         96-set.
3689         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
3690         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
3691
3692 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
3693
3694         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
3695         0xFF60.
3696         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
3697         (breakup_char_1): Likewise.
3698
3699         * text-coding.c (char_encode_iso2022): Keep designated charsets if
3700         one of them includes the specified character.
3701
3702 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3703
3704         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
3705
3706 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3707
3708         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
3709
3710 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3711
3712         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
3713         definition for non-UTF-2000 Mule.
3714         (latin_iso8859_3_to_ucs): Likewise.
3715         (latin_iso8859_4_to_ucs): Likewise.
3716         (latin_iso8859_9_to_ucs): Likewise.
3717         (latin_jisx0201_to_ucs): Likewise.
3718         (MIN_CHAR_THAI): Likewise.
3719         (MAX_CHAR_THAI): Likewise.
3720         (MIN_CHAR_GREEK): Likewise.
3721         (MAX_CHAR_GREEK): Likewise.
3722         (MIN_CHAR_HEBREW): Likewise.
3723         (MAX_CHAR_HEBREW): Likewise.
3724         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
3725         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
3726         (MIN_CHAR_CYRILLIC): Likewise.
3727         (MAX_CHAR_CYRILLIC): Likewise.
3728
3729 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3730
3731         * char-ucs.h (breakup_char_1): Use
3732         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
3733         thai-tis620 and katakana-jisx0201 area.
3734
3735 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3736
3737         * char-ucs.h (breakup_char_1): Use
3738         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
3739         area.
3740
3741         * text-coding.c (reset_encoding_stream): Fixed.
3742         (char_encode_ucs4): Delete `& 255'.
3743
3744         * char-ucs.h (breakup_char_1): Use
3745         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
3746
3747 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3748
3749         * file-coding.c (Fmake_coding_system): Don't set up
3750         `codesys->fixed.size'.
3751         (encode_coding_no_conversion): Don't refer
3752         `str->codesys->fixed.size'.
3753
3754 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3755
3756         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
3757         (latin_a_char_to_byte1): Deleted.
3758         (latin_a_char_to_byte2): Deleted.
3759
3760 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3761
3762         * mule-charset.c (make_charset): Add new argument `ucs_min',
3763         `ucs_max' and `code_offset'.
3764         (charset_get_byte1): New implementation [delete specific charset
3765         depended implementations].
3766         (Fmake_charset): Modify for `make_charset'.
3767         (Fmake_reverse_direction_charset): Likewise.
3768         (complex_vars_of_mule_charset): Likewise.
3769
3770         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
3771         `code_offset'.
3772         (CHARSET_UCS_MIN): New macro.
3773         (CHARSET_UCS_MAX): New macro.
3774         (CHARSET_CODE_OFFSET): New macro.
3775         (MAKE_CHAR): Delete charset depended definitions [except
3776         katakana-jisx0201].
3777
3778 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
3779
3780         * char-ucs.h (breakup_char_1): Use
3781         `Vdefault_coded_charset_priority_list' for C0-Controls,
3782         Basic-Latin, C1-Controls and Latin-1-Supplement area.
3783
3784 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3785
3786         * char-ucs.h (charset_get_byte1): New function.
3787         (XCHARSET_GET_BYTE1): Deleted.
3788         (charset_get_byte2): New function.
3789         (XCHARSET_GET_BYTE2): Deleted.
3790         (Vdefault_coded_charset_priority_list): New external variable.
3791         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
3792         `Vdefault_preferred_coded_charset_list'.
3793
3794         * mule-charset.c (charset_get_byte1): New function.
3795         (charset_get_byte2): New function.
3796         (Vdefault_coded_charset_priority_list): New variable.
3797         (vars_of_mule_charset): Add new variable
3798         `default-coded-charset-priority-list'.
3799
3800 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3801
3802         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
3803         (XCHARSET_GET_BYTE2): New inline function.
3804         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
3805         `XCHARSET_GET_BYTE2'.
3806
3807 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3808
3809         * mule-charset.c (make_charset): Initialize
3810         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
3811         NULL if table is not defined.
3812
3813 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3814
3815         * text-coding.c (char_encode_shift_jis): Use
3816         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
3817         `ucs_to_latin_jisx0201'.
3818
3819         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
3820         (ucs_to_latin_iso8859_2): Deleted.
3821         (ucs_to_latin_iso8859_3): Deleted.
3822         (ucs_to_latin_iso8859_4): Deleted.
3823         (ucs_to_latin_iso8859_9): Deleted.
3824         (ucs_to_latin_viscii_lower): Deleted.
3825         (ucs_to_latin_viscii_upper): Deleted.
3826         (ucs_to_latin_tcvn5712): Deleted.
3827         (make_charset): Add new argument `decoding_table'; set up
3828         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
3829         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
3830         `decoding_table' is defined in UTF-2000.
3831         (Fmake_charset): Modify for `make_charset'.
3832         (Fmake_reverse_direction_charset): Likewise.
3833         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
3834         and `GENERATE_96_SET'.
3835
3836         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
3837         (ucs_to_latin_jisx0201): Deleted.
3838         (latin_iso8859_2_to_ucs): Deleted.
3839         (ucs_to_latin_iso8859_2): Deleted.
3840         (latin_iso8859_3_to_ucs): Deleted.
3841         (ucs_to_latin_iso8859_3): Deleted.
3842         (latin_iso8859_4_to_ucs): Deleted.
3843         (ucs_to_latin_iso8859_4): Deleted.
3844         (latin_iso8859_9_to_ucs): Deleted.
3845         (ucs_to_latin_iso8859_9): Deleted.
3846         (latin_viscii_lower_to_ucs): Deleted.
3847         (ucs_to_latin_viscii_lower): Deleted.
3848         (latin_viscii_upper_to_ucs): Deleted.
3849         (ucs_to_latin_viscii_upper): Deleted.
3850         (struct Lisp_Charset): Renamed `encoding_table' to
3851         `to_byte1_table'; add `to_byte2_table'.
3852         (CHARSET_DECODING_TABLE): New macro.
3853         (CHARSET_TO_BYTE1_TABLE): New macro.
3854         (CHARSET_TO_BYTE2_TABLE): New macro.
3855         (XCHARSET_DECODING_TABLE): New macro.
3856         (XCHARSET_TO_BYTE1_TABLE): New macro.
3857         (XCHARSET_TO_BYTE2_TABLE): New macro.
3858         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
3859         tables.
3860         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
3861         don't use `ucs_to_*' tables.
3862
3863 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3864
3865         * text-coding.c (Fmake_coding_system): Don't set up
3866         `codesys->fixed.size'.
3867         (encode_coding_no_conversion): Use `if' instead of `switch'.
3868
3869         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
3870
3871 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3872
3873         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
3874         (Fmake_charset): Modify for `make_charset'.
3875         (Fmake_reverse_direction_charset): Likewise.
3876         (complex_vars_of_mule_charset): Likewise.
3877
3878 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3879
3880         * text-coding.c (char_encode_shift_jis): Use table
3881         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
3882
3883 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3884
3885         * text-coding.c (text_encode_generic): Use `if' instead of
3886         `switch'.
3887         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
3888         decode JIS-Latin.
3889
3890 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3891
3892         * text-coding.c (encode_coding_sjis): Deleted.
3893         (char_encode_shift_jis): New function.
3894         (char_finish_shift_jis): New function.
3895         (reset_encoding_stream): Set up `encode_char' and `finish' for
3896         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
3897         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
3898         (char_encode_utf8): Treat `eol_type'.
3899
3900 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3901
3902         * file-coding.c (decode_coding_iso2022): Use
3903         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
3904
3905 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3906
3907         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3908         to 0.7 (Hirano).
3909
3910 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3911
3912         * char-lb.h (CHAR_COLUMNS): New macro.
3913
3914 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3915
3916         * text-coding.c (char_encode_ucs4): New function.
3917         (char_finish_ucs4): New function.
3918         (encode_coding_ucs4): Deleted.
3919         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
3920         (text_encode_generic): Delete local variable `charset' and `half'.
3921         (ucs_to_mule_table): Deleted.
3922         (mule_to_ucs_table): Deleted.
3923         (Fset_ucs_char): Deleted.
3924         (ucs_to_char): Deleted.
3925         (Fucs_char): Deleted.
3926         (Fset_char_ucs): Deleted.
3927         (Fchar_ucs): Deleted.
3928         (decode_ucs4): Deleted.
3929         (mule_char_to_ucs4): Deleted.
3930         (encode_ucs4): Deleted.
3931         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
3932         (decode_coding_utf8): Likewise.
3933         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
3934         (char_encode_iso2022): Fixed.
3935         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
3936         `Fset_char_ucs' and `Fchar_ucs'.
3937         (complex_vars_of_file_coding): Don't initialize
3938         `ucs_to_mule_table'.
3939
3940         * objects-tty.c (tty_initialize_font_instance): Don't use
3941         `XCHARSET_COLUMNS'.
3942
3943         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
3944         UTF-2000.
3945
3946         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
3947         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3948
3949         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
3950         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3951         (emchar_string_displayed_columns): Likewise.
3952
3953         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
3954         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3955         (string_column_at_point): Likewise.
3956         (Fmove_to_column): Likewise.
3957
3958         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
3959         `encoding_table' and `decoding_table'.
3960         (CHARSET_REP_BYTES): Deleted.
3961         (XCHARSET_REP_BYTES): Deleted.
3962         (XCHARSET_COLUMNS): Deleted.
3963         (CHAR_COLUMNS): New macro.
3964         (lookup_composite_char): Deleted unconditionally.
3965         (composite_char_string): Likewise.
3966
3967 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3968
3969         * char-ucs.h (Emchar_to_byte_table): New type.
3970         (get_byte_from_character_table): New function interface.
3971         (Vcharset_latin_jisx0201): New variable.
3972         (latin_jisx0201_to_ucs): New variable.
3973         (ucs_to_latin_jisx0201): New variable.
3974         (Vcharset_latin_iso8859_2): New variable.
3975         (latin_iso8859_2_to_ucs): New variable.
3976         (ucs_to_latin_iso8859_2): New variable.
3977         (Vcharset_latin_iso8859_3): New variable.
3978         (latin_iso8859_3_to_ucs): New variable.
3979         (ucs_to_latin_iso8859_3): New variable.
3980         (Vcharset_latin_iso8859_4): New variable.
3981         (latin_iso8859_4_to_ucs): New variable.
3982         (ucs_to_latin_iso8859_4): New variable.
3983         (Vcharset_latin_iso8859_9): New variable.
3984         (latin_iso8859_9_to_ucs): New variable.
3985         (ucs_to_latin_iso8859_9): New variable.
3986         (Vcharset_latin_viscii_lower): New variable.
3987         (latin_viscii_lower_to_ucs): New variable.
3988         (ucs_to_latin_viscii_lower): New variable.
3989         (Vcharset_latin_viscii_upper): New variable.
3990         (latin_viscii_upper_to_ucs): New variable.
3991         (ucs_to_latin_viscii_upper): New variable.
3992         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
3993         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
3994         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
3995         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
3996         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
3997         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
3998         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
3999         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
4000         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
4001         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
4002
4003         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
4004         (Vcharset_latin_viscii_upper): New variable.
4005         (make_byte_from_character_table): New function.
4006         (put_byte_from_character_table): New function.
4007         (get_byte_from_character_table): New function.
4008         (CHAR96): New macro.
4009         (ucs_to_latin_jisx0201): New variable.
4010         (latin_jisx0201_to_ucs): New variable.
4011         (ucs_to_latin_iso8859_2): New variable.
4012         (latin_iso8859_2_to_ucs): New variable.
4013         (ucs_to_latin_iso8859_3): New variable.
4014         (latin_iso8859_3_to_ucs): New variable.
4015         (ucs_to_latin_iso8859_4): New variable.
4016         (latin_iso8859_4_to_ucs): New variable.
4017         (ucs_to_latin_iso8859_9): New variable.
4018         (latin_iso8859_9_to_ucs): New variable.
4019         (ucs_to_latin_viscii_lower): New variable.
4020         (latin_viscii_lower_to_ucs): New variable.
4021         (ucs_to_latin_viscii_upper): New variable.
4022         (latin_viscii_upper_to_ucs): New variable.
4023         (ucs_to_latin_tcvn5712): New variable.
4024         (latin_tcvn5712_to_ucs): New variable.
4025         (Qlatin_viscii_lower): New variable.
4026         (Qlatin_viscii_upper): New variable.
4027         (syms_of_mule_charset): Set up new symbol
4028         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
4029         (complex_vars_of_mule_charset): Set up new charset
4030         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
4031         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
4032         `ucs_to_<CHARSET>' tables.
4033
4034 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
4035
4036         * text-coding.c: New file.
4037
4038 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4039
4040         * mule-charset.c (Fmake_char): Fix problem of 256-set.
4041
4042         * char-ucs.h (Vcharset_ucs_bmp): New variable.
4043         (MAKE_CHAR): Modify for `ucs-bmp'.
4044         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
4045         non-MULE characters of BMP.
4046
4047 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
4048
4049         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4050         to 0.6.
4051
4052 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4053
4054         * lstream.h:
4055         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
4056         - Include character.h for `CHAR_ASCII_P'.
4057
4058         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
4059
4060         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
4061         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
4062
4063         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
4064         (BYTE_C0_P): Likewise.
4065         (BYTE_C1_P): Likewise.
4066         (Lstream_get_emchar_1): Likewise.
4067         (Lstream_fput_emchar): Likewise.
4068         (Lstream_funget_emchar): Likewise.
4069         (copy_internal_to_external): Likewise.
4070         (copy_external_to_internal): Likewise.
4071
4072         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
4073         (BYTE_C0_P): Likewise.
4074         (BYTE_C1_P): Likewise.
4075         (Lstream_get_emchar_1): Likewise.
4076         (Lstream_fput_emchar): Likewise.
4077         (Lstream_funget_emchar): Likewise.
4078         (copy_internal_to_external): Likewise.
4079         (copy_external_to_internal): Likewise.
4080
4081         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
4082         (REP_BYTES_BY_FIRST_BYTE): Likewise.
4083
4084         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
4085         (BYTE_ASCII_P): Moved to mb-1byte.h.
4086
4087 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4088
4089         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
4090
4091         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
4092         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
4093         (VALID_CHARPTR_P): Moved to mb-*byte.h.
4094         (VALIDATE_CHARPTR_BACKWARD): Likewise.
4095         (VALIDATE_CHARPTR_FORWARD): Likewise.
4096         (simple_charptr_emchar): Moved to mb-multibyte.h.
4097         (simple_set_charptr_emchar): Likewise.
4098         (simple_charptr_copy_char): Likewise.
4099         (non_ascii_charptr_emchar): Likewise.
4100         (non_ascii_set_charptr_emchar): Likewise.
4101         (non_ascii_charptr_copy_char): Likewise.
4102         (charptr_emchar): Moved to mb-*byte.h.
4103         (set_charptr_emchar): Likewise.
4104         (charptr_copy_char): Likewise.
4105
4106         * mb-1byte.h, mb-multibyte.h: New files.
4107
4108 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4109
4110         * mb-utf-8.h (MULTIBYTE): New macro.
4111         (MAX_EMCHAR_LEN): Moved from buffer.h.
4112         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
4113
4114         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
4115
4116         * mb-lb.h, multibyte.h: New files.
4117
4118         * char-1byte.h (Charset_ID): Moved from buffer.h.
4119         (MIN_LEADING_BYTE): Likewise.
4120         (LEADING_BYTE_ASCII): Likewise.
4121         (NUM_LEADING_BYTES): Likewise.
4122         (CHARSETP): Likewise.
4123         (CHARSET_BY_LEADING_BYTE): Likewise.
4124         (XCHARSET_LEADING_BYTE): Likewise.
4125         (XCHARSET_GRAPHIC): Likewise.
4126         (XCHARSET_COLUMNS): Likewise.
4127         (XCHARSET_DIMENSION): Likewise.
4128         (CHAR_CHARSET): Likewise.
4129         (CHAR_LEADING_BYTE): Likewise.
4130         (BREAKUP_CHAR): Likewise.
4131         (Vcharset_ascii): Likewise.
4132
4133         * buffer.h: Include multibyte.h unconditionally.
4134         (VALID_CHARPTR_P): Moved to multibyte.h.
4135         (ASSERT_VALID_CHARPTR): Likewise.
4136         (REAL_INC_CHARPTR): Likewise.
4137         (REAL_INC_CHARBYTIND): Likewise.
4138         (REAL_DEC_CHARPTR): Likewise.
4139         (INC_CHARPTR): Likewise.
4140         (INC_CHARBYTIND): Likewise.
4141         (DEC_CHARPTR): Likewise.
4142         (VALIDATE_CHARPTR_BACKWARD): Likewise.
4143         (VALIDATE_CHARPTR_FORWARD): Likewise.
4144         (charptr_n_addr): Likewise.
4145         (MAX_EMCHAR_LEN): Moved to mb-*.h.
4146         (simple_charptr_emchar): Moved to multibyte.h.
4147         (simple_set_charptr_emchar): Likewise.
4148         (simple_charptr_copy_char): Likewise.
4149         (non_ascii_charptr_emchar): Likewise.
4150         (non_ascii_set_charptr_emchar): Likewise.
4151         (non_ascii_charptr_copy_char): Likewise.
4152         (charptr_emchar): Likewise.
4153         (set_charptr_emchar): Likewise.
4154         (charptr_copy_char): Likewise.
4155         (charptr_emchar_n): Likewise.
4156         (Charset_ID): Moved to char-1byte.h.
4157         (Vcharset_ascii): Likewise.
4158         (CHAR_CHARSET): Likewise.
4159         (CHAR_LEADING_BYTE): Likewise.
4160         (LEADING_BYTE_ASCII): Likewise.
4161         (NUM_LEADING_BYTES): Likewise.
4162         (MIN_LEADING_BYTE): Likewise.
4163         (CHARSETP): Likewise.
4164         (CHARSET_BY_LEADING_BYTE): Likewise.
4165         (XCHARSET_LEADING_BYTE): Likewise.
4166         (XCHARSET_GRAPHIC): Likewise.
4167         (XCHARSET_COLUMNS): Likewise.
4168         (XCHARSET_DIMENSION): Likewise.
4169         (BREAKUP_CHAR): Likewise.
4170
4171 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4172
4173         * character.h: Add document about interface for characters.
4174
4175         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
4176         (MAKE_CHAR): Delete comment about
4177         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
4178         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
4179         (BREAKUP_CHAR): Modify name of arguments.
4180         (CHAR_CHARSET): Modify name of argument.
4181
4182         * buffer.h: Delete document about Emchar accessors.
4183
4184 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4185
4186         * character.h (CHAR_INTP): Moved from buffer.h
4187         (CHAR_OR_CHAR_INTP): Likewise.
4188         (XCHAR_OR_CHAR_INT): Likewise.
4189         (CHECK_CHAR_COERCE_INT): Likewise.
4190
4191         * buffer.h (CHAR_INTP): Moved to character.h
4192         (CHAR_OR_CHAR_INTP): Likewise.
4193         (XCHAR_OR_CHAR_INT): Likewise.
4194         (CHECK_CHAR_COERCE_INT): Likewise.
4195
4196 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4197
4198         * character.h:
4199         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
4200         - Include char-1byte.h, char-lb.h or char-ucs.h.
4201
4202         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
4203
4204         * buffer.h: Include character unconditionally.
4205         (valid_char_p): Moved to char-*.h.
4206         (non_ascii_valid_char_p): Moved to char-lb.h.
4207
4208         * char-1byte.h, char-lb.h, char-ucs.h: New files.
4209
4210 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4211
4212         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
4213         in UTF-2000 because it is not ported yet and not to use
4214         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
4215         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
4216         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
4217
4218         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
4219         (CHAR_ASCII_P): Moved from character.h.
4220
4221         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
4222         (CHAR_ASCII_P): Likewise.
4223         (CHAR_FIELD1_MASK): Deleted.
4224         (CHAR_FIELD2_MASK): Deleted.
4225         (CHAR_FIELD3_MASK): Deleted.
4226         (MAX_CHAR_BASIC_LATIN): New macro.
4227         (CHAR_FIELD1): Deleted.
4228         (CHAR_FIELD2_INTERNAL): Deleted.
4229         (CHAR_FIELD3_INTERNAL): Deleted.
4230         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
4231         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
4232         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
4233         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
4234         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
4235         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
4236         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
4237         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
4238         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
4239         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
4240         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
4241         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
4242         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
4243         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
4244         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
4245         (MIN_CHAR_COMPOSITION): Deleted.
4246         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
4247         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
4248
4249 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
4250
4251         * buffer.h: Include mb-utf-8.h in UTF-2000.
4252
4253         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
4254
4255         * mb-utf-8.h: New file.
4256
4257 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
4258
4259         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
4260         instead of `int'.
4261
4262         * mule-charset.h, buffer.h (Charset_ID): New type.
4263
4264 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
4265
4266         * mule-canna.c (c2mu): Use `MAKE_CHAR',
4267         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
4268         instead of `MULE_CHAR_PRIVATE_OFFSET',
4269         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
4270         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
4271         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
4272
4273         * character.h (Vcharset_japanese_jisx0212): New variable
4274         definition.
4275
4276 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
4277
4278         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
4279         (charset_by_attributes): Delete array about direction.
4280         (latin_a_char_to_charset): New variable in UTF-2000.
4281         (latin_a_char_to_byte1): New variable in UTF-2000.
4282         (latin_a_char_to_byte2): New variable in UTF-2000.
4283         (Qucs_bmp): New variable.
4284         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
4285         `Bufbyte'.
4286         (next_allocated_2_byte_leading_byte): Likewise.
4287         (non_ascii_set_charptr_emchar): Likewise.
4288         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
4289         `CHARSET_TYPE_256X256' in UTF-2000; modify for
4290         `charset_by_attributes'.
4291         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
4292         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
4293         and `CHARSET_BY_LEADING_BYTE'.
4294         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
4295         `utf-2000-version' to `vars_of_mule_charset'.
4296         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
4297         define `leading-code-private-11' in UTF-2000; move setting of
4298         `utf-2000-version' from `syms_of_mule_charset'.
4299         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
4300         UTF-2000.
4301
4302         * character.h (Charset_ID): New type.
4303         (LEADING_BYTE_UCS_BMP): New macro.
4304         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
4305         (CHARSET_ID_OFFSET_94): New macro.
4306         (MIN_CHARSET_ID_PRIVATE_94): New macro.
4307         (MAX_CHARSET_ID_PRIVATE_94): New macro.
4308         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
4309         final-byte.
4310         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
4311         (LEADING_BYTE_LATIN_JISX0201): Likewise.
4312         (CHARSET_ID_OFFSET_96): New macro.
4313         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
4314         CHARSET_ID_OFFSET_96 and final-byte.
4315         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
4316         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
4317         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
4318         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
4319         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
4320         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
4321         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
4322         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
4323         (LEADING_BYTE_THAI_TIS620): Likewise.
4324         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
4325         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
4326         (CHARSET_ID_OFFSET_94x94): New macro.
4327         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
4328         CHARSET_ID_OFFSET_94x94 and final-byte.
4329         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
4330         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
4331         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
4332         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
4333         (LEADING_BYTE_CHINESE_GB2312): Likewise.
4334         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
4335         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
4336         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
4337         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
4338         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
4339         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
4340         (CHARSET_TYPE_128X128): New macro.
4341         (CHARSET_TYPE_256X256): New macro.
4342         (XCHARSET_PRIVATE_P): Delete unconditionally.
4343         (charset_by_attributes): Delete array about direction.
4344         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
4345         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
4346         (MIN_CHAR_94): New macro.
4347         (MAX_CHAR_94): New macro.
4348         (MIN_CHAR_96): New macro.
4349         (MAX_CHAR_96): New macro.
4350         (MIN_CHAR_94x94): New macro.
4351         (MAX_CHAR_94x94): New macro.
4352         (MIN_CHAR_96x96): New macro.
4353         (MAX_CHAR_96x96): New macro.
4354         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
4355         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
4356         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
4357         - 32)'.
4358         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
4359         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
4360         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
4361         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
4362         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
4363         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
4364         `XCHARSET_LEADING_BYTE' to make code-point.
4365         (latin_a_char_to_charset): New variable.
4366         (latin_a_char_to_byte1): New variable.
4367         (latin_a_char_to_byte2): New variable.
4368         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
4369         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
4370         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
4371
4372         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
4373         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
4374         (find_charsets_in_emchar_string): Likewise.
4375         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
4376
4377         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
4378         `int'.
4379         (decode_coding_iso2022): Likewise.
4380
4381         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
4382         of `unsigned char'.
4383
4384         * redisplay.c (redisplay_text_width_emchar_string): Use
4385         `Charset_ID' instead of `unsigned char'.
4386         (redisplay_frame_text_width_string): Likewise.
4387
4388         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
4389         `unsigned char'.
4390
4391         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
4392         instead of `unsigned char'.
4393         (face_cachel_charset_font_metric_info): Likewise.
4394
4395         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
4396         (get_non_ascii_char_table_value): Likewise.
4397         (get_char_table): Likewise.
4398         (put_char_table): Likewise.
4399         (map_over_other_charset): Likewise.
4400         (map_char_table): Likewise.
4401
4402         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
4403         instead of `unsigned char'.
4404
4405 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
4406
4407         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
4408         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
4409
4410         * mule-charset.c (leading_code_private_11): Don't define in
4411         UTF-2000.
4412
4413         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
4414         in UTF-2000 because it is not ported yet and not to use
4415         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
4416
4417 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
4418
4419         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
4420
4421 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4422
4423         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
4424         in UTF-2000.
4425
4426         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
4427         of unsigned char to store leading-byte.
4428
4429         * chartab.c (get_non_ascii_char_table_value): Don't use
4430         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
4431
4432         * file-coding.c (encode_coding_big5): Delete bogus implementation
4433         in UTF2000.
4434
4435         * character.h (LEADING_BYTE_*): Delete definition for
4436         non-UTF-2000.
4437         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
4438         (LEADING_BYTE_PREFIX_P): Deleted.
4439         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
4440         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
4441         (BUFBYTE_LEADING_BYTE_P): Deleted.
4442         (CHARSET_PRIVATE_P): Deleted unconditionally.
4443         (rep_bytes_by_first_byte): Deleted unconditionally.
4444         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
4445         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
4446         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
4447         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
4448         (CHAR_FIELD2): Deleted.
4449         (CHAR_FIELD3): Deleted.
4450         (MAKE_CHAR): Delete definition for non-UTF-2000.
4451         (BREAKUP_CHAR_1_UNSAFE): Deleted.
4452         (breakup_char_1): New implementation.
4453         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
4454         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
4455
4456 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4457
4458         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
4459         condition.
4460
4461 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4462
4463         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
4464         (CHARSET_PRIVATE_P): Likewise.
4465         (XCHARSET_PRIVATE_P): Likewise.
4466         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
4467
4468         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
4469         UTF2000.
4470         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
4471
4472 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4473
4474         * character.h (LEADING_BYTE_*): Changed in UTF2000.
4475         (NUM_LEADING_BYTES): Changed from 128 to 256.
4476         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
4477         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
4478         UTF2000.
4479         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
4480
4481         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
4482         UTF2000.
4483         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
4484         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
4485         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
4486         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
4487         (Qchinese_cns11643_3): New variable in UTF2000.
4488         (Qchinese_cns11643_4): New variable in UTF2000.
4489         (Qchinese_cns11643_5): New variable in UTF2000.
4490         (Qchinese_cns11643_6): New variable in UTF2000.
4491         (Qchinese_cns11643_7): New variable in UTF2000.
4492         (syms_of_mule_charset): Define `chinese-cns11643-3',
4493         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
4494         and `chinese-cns11643-7' in UTF2000.
4495         (vars_of_mule_charset): Initialize
4496         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
4497         + 1 in UTF2000.
4498         (complex_vars_of_mule_charset): Setup charset
4499         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
4500         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
4501
4502 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4503
4504         * mule-charset.c: Move setting for `leading-code-private-11' from
4505         `syms_of_mule_charset' to `vars_of_mule_charset'.
4506
4507 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4508
4509         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
4510         and `NUM_LEADING_BYTES' in assert.
4511
4512 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4513
4514         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
4515         instead of 128.
4516         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
4517         `NUM_LEADING_BYTES' instead of 128.
4518
4519 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
4520
4521         * mule-charset.h (charset_by_leading_byte): Use
4522         `NUM_LEADING_BYTES' instead of 128.
4523         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
4524
4525         * mule-charset.c (charset_by_leading_byte): Use
4526         `NUM_LEADING_BYTES' instead of 128.
4527         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
4528
4529         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
4530         128.
4531
4532 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
4533
4534         * mule-charset.c (syms_of_mule_charset): Update to
4535         0.4 (Shin-Imamiya).
4536
4537 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
4538
4539         * file-coding.c (encode_coding_sjis): New implementation for
4540         UTF2000.  (decode_coding_sjis): Ditto.
4541
4542 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4543
4544         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
4545         Don't define in UTF2000.
4546
4547         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
4548         defined.
4549
4550         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
4551         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
4552         MULE.
4553
4554 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4555
4556         * config.h.in (CHAR_IS_UCS4): New macro.
4557
4558         * mule-charset.c (rep_bytes_by_first_byte): Modify for
4559         conventional MULE representation.
4560         (syms_of_mule_charset): Update to 0.3 (Imamiya).
4561
4562         * mule-charset.h: Reverted to original.
4563
4564         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
4565         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
4566         "mule-charset.h" if CHAR_IS_UCS4 is defined.
4567
4568         * character.h: New file.
4569
4570         * file-coding.c (Fmake_coding_system): Set 1 to
4571         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
4572         defined.
4573         (encode_coding_no_conversion): New implementation for UTF2000.
4574
4575         * file-coding.h (struct Lisp_Coding_System): Add new member
4576         `fixed.size'.
4577
4578 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
4579
4580         * file-coding.c (decode_coding_iso2022): Code-point arguments of
4581         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
4582         (encode_coding_iso2022): New implementation for UTF2000.
4583
4584 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4585
4586         * mule-canna.c (c2mu): New implementation for UTF2000.
4587         (m2c): Likewise.
4588
4589 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4590
4591         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
4592
4593 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4594
4595         * file-coding.c (reset_encoding_stream): Set 0 to
4596         `str->iso2022.current_char_boundary' in UTF2000.
4597         (encode_utf8): Don't define in UTF2000.
4598         (encode_coding_utf8): New implementation for UTF-8 representation
4599         of UTF2000.
4600         (complex_vars_of_file_coding): Define coding-system `utf-8'.
4601
4602 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4603
4604         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
4605
4606         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
4607         UTF2000.
4608         (REP_BYTES_BY_FIRST_BYTE): Likewise.
4609
4610         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
4611
4612         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
4613         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
4614         as UTF-8 in UTF2000.
4615         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
4616         (non_ascii_valid_char_p): Don't define in UTF2000.
4617         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
4618         (Lstream_get_emchar_1): Likewise.
4619         (utf-2000-version): New variable in UTF2000.
4620
4621         * lread.c (read_escape): Add new reader `u'.
4622
4623         * insdel.c (three_to_one_table): Don't define in UTF2000.
4624         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
4625         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
4626         UTF2000.
4627         (bytind_to_bufpos_func): Likewise.
4628         (buffer_mule_signal_inserted_region): Likewise.
4629         (vars_of_insdel): Don't initialize `three_to_one_table'.
4630         (init_buffer_text): Use `buf->text->mule_size' instead of
4631         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
4632         UTF2000.
4633
4634         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
4635         UTF-8 representation in UTF2000.
4636         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
4637         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
4638         (decode_coding_iso2022): Don't define local variable `lb' in
4639         UTF2000; don't use LEADING_BYTE in UTF2000; use
4640         `DECODE_ADD_UCS_CHAR' in UTF2000.
4641         (convert_to_external_format): Decode as UTF-8 in UTF2000.
4642
4643         * config.h.in (UTF2000): New macro.
4644
4645         * buffer.h (struct buffer_text): Add new member `mule_size' and
4646         don't add `mule_shifter' and `mule_three_p' in UTF2000.
4647         (valid_char_p): Return always 1 in UTF2000.
4648         (MAX_EMCHAR_LEN): 6 in UTF2000.
4649         (three_to_one_table): Don't define in UTF2000.
4650         (real_bufpos_to_bytind): Modify for UTF-8 representation in
4651         UTF2000.
4652         (real_bytind_to_bufpos): Likewise.
4653
4654         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
4655
4656 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4657
4658         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
4659         representation change.
4660         (Vutf_2000_version): New variable.
4661         (leading_code_private_11): New variable.
4662         (syms_of_mule_charset): Add new variables `utf-2000-version' and
4663         `leading-code-private-11'.
4664
4665         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
4666         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
4667         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
4668         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
4669         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
4670         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
4671         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
4672         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
4673         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
4674         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
4675         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
4676         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
4677         (MIN_CHAR_GREEK): New macro.
4678         (MAX_CHAR_GREEK): New macro.
4679         (MIN_CHAR_CYRILLIC): New macro.
4680         (MAX_CHAR_CYRILLIC): New macro.
4681         (MIN_CHAR_HEBREW): New macro.
4682         (MAX_CHAR_HEBREW): New macro.
4683         (MIN_CHAR_THAI): New macro.
4684         (MAX_CHAR_THAI): New macro.
4685         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
4686         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
4687         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
4688         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
4689         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
4690         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
4691         (CHAR_FIELD2): New inline function.
4692         (CHAR_FIELD3): New inline function.
4693         (MULE_CHAR_PRIVATE_OFFSET): New macro.
4694         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
4695         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
4696         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
4697         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
4698         (MIN_CHAR_COMPOSITION): Likewise.
4699         (CHAR_LEADING_BYTE): Modified for character representation change.
4700         (MAKE_CHAR): Likewise.
4701
4702         * lisp.h (Vcharset_latin_iso8859_1): New variable.
4703         (Vcharset_greek_iso8859_7): Likewise.
4704         (Vcharset_cyrillic_iso8859_5): Likewise.
4705         (Vcharset_hebrew_iso8859_8): Likewise.
4706         (Vcharset_thai_tis620): Likewise.
4707         (Vcharset_katakana_jisx0201): Likewise.
4708
4709 2003-01-03  Stephen J. Turnbull  <stephen@xemacs.org>
4710
4711         * XEmacs 21.4.11 "Native Windows TTY Support" is released.
4712
4713 2002-12-14  Ben Wing  <ben@xemacs.org>
4714
4715         * callint.c: Declaration error.
4716         * dumper.c (pdump):
4717         * dumper.c (pdump_load): Warning fix.
4718         * process.c: GCPRO error.
4719         * glyphs.c (unmap_subwindow):
4720         * glyphs.c (map_subwindow): Parenthesizing errors with ! and &&.
4721         * event-stream.c (maybe_kbd_translate): Wrong argument to
4722         character_to_event().
4723
4724         * alloc.c (garbage_collect_1):
4725         * emacs.c:
4726         * emacs.c (debug_can_access_memory):
4727         * emacs.c (fatal_error_signal):
4728         * emacs.c (mswindows_handle_hardware_exceptions):
4729         * emacs.c (main_1):
4730         * emacs.c (main):
4731         * emacs.c (assert_failed):
4732         * emacs.c (syms_of_emacs):
4733         * lisp.h:
4734         * print.c:
4735         * print.c (std_handle_out_va):
4736         * print.c (write_string_to_stdio_stream):
4737         * print.c (write_fmt_string):
4738         * print.c (printing_badness):
4739         * print.c (printing_major_badness):
4740         * print.c (print_internal):
4741         * print.c (debug_print_no_newline):
4742         * print.c (debug_backtrace):
4743         Be more defensive in handling bad values when printing.  Add code
4744         from trunk involving inhibit_non_essential_printing_operations.
4745         When going down or in debug_print(), don't do external conversion
4746         and such and try really, really hard when printing to avoid core
4747         dumping.  Add force-debugging-signal, debug_break().
4748
4749 2002-12-12  Stephen J. Turnbull  <stephen@xemacs.org>
4750
4751         * dumper.c (pdump_load): Include sysdep.h; retry with truename.
4752         Analysis and original patch by Vin Shelton <acs@xemacs.org>.
4753
4754 2002-12-02  Greg Allen  <greg_allen@westlb-systems.co.uk>
4755
4756         * database.c: Fix open_database. Berkeley DB API has changed in
4757         4.1. see: http://www.sleepycat.com/docs/ref/upgrade.4.1/fop.html
4758
4759 2002-11-26  Stephen J. Turnbull  <stephen@xemacs.org>
4760
4761         * specifier.c (Fvalid_specifier_type_p): Typo in comment.
4762
4763 2002-11-13  Stephen J. Turnbull  <stephen@xemacs.org>
4764
4765         * event-Xt.c (Xt_timeout):
4766         (Xt_timeout_callback):
4767         (emacs_Xt_add_timeout):
4768         (emacs_Xt_remove_timeout):
4769         (Xt_timeout_to_emacs_event):
4770         Turn completed_timeouts from a stack into a queue.  Fixes
4771         deadlocks <15829.21626.171573.994716@sinisa.nasamreza.org>.
4772
4773 2002-11-07  Wolfram Gloger  <wg@malloc.de>
4774
4775         * alloc.c (reinit_alloc_once_early): Disable mmap in Doug Lea malloc.
4776         * emacs.c (main): Assert that mmap'd allocation is disabled.
4777
4778 2002-10-14  Andy Piper  <andy@xemacs.org>
4779
4780         * glyphs-widget.c (layout_query_geometry): add in fiddle
4781         factor. Include border text in width layout calculation.
4782         (layout_layout): use BORDER_FIDDLE_FACTOR instead of 10.
4783
4784 2002-11-02  Stephen J. Turnbull  <stephen@xemacs.org>
4785
4786         * XEmacs 21.4.10 "Military Intelligence" is released.
4787
4788 2002-10-17  Raymond Toy  <toy@rtp.ericsson.se>
4789
4790         * nas.c: Update for NAS 1.6 and later, from Jon Trulson.  Was
4791         using the NAS private array SoundFileInfo that no longer exists in
4792         NAS 1.6 and later.  Preserve backward compatibility with NAS 1.5a
4793         and earlier.  This is broken for some versions between 1.5a and
4794         1.5f.
4795
4796 2002-10-10  Stephen J. Turnbull  <stephen@xemacs.org>
4797
4798         * realpath.c (win32_readlink): Try to fix truename of wildcard bug.
4799
4800         * emacs.c (shut_down_emacs): Improve crash message.
4801
4802 2002-10-09  Stephen J. Turnbull  <stephen@xemacs.org>
4803
4804         * file-coding.c (determine_real_coding_system): Check for coding
4805         cookie in first LINES_TO_CHECK lines (currently 2).  Cater to
4806         shebangs and Python PEP 263.
4807
4808 2002-10-08  Andy Piper  <andy@xemacs.org>
4809
4810         * glyphs-widget.c (layout_query_geometry): only resize dynamically
4811         if static sizes haven't been set.
4812
4813 2002-08-30  Mike Alexander  <mta@arbortext.com>
4814
4815         * event-msw.c (winsock_closer): Use closesocket, not CloseHandle
4816         to close a socket.
4817
4818 2002-10-03  Stephen J. Turnbull  <stephen@xemacs.org>
4819
4820         * callproc.c (child_setup): 21.4 doesn't have retry_close.
4821
4822 2002-09-20  Mike Sperber <mike@xemacs.org>
4823
4824         (This partially gets back my patch from 2002-07-20 without the
4825         bug.)
4826         * callproc.c (child_setup): Remove Ben's comment noting confusion
4827         over the file descriptors >= 3: close_process_descs() doesn't
4828         close those.  Fix fd range to go up to MAXDESC-1 instead of 64.
4829         * process-unix.c (unix_create_process): Call
4830         begin_dont_check_for_quit to inhibit unwanted interaction (and
4831         thus breaking of X event synchronicity) in the child.
4832
4833 2002-09-26  Golubev I. N.  <gin@mo.msk.ru>
4834
4835         * frame-x.c (x_delete_frame): do not call XtDisplay on a destroyed
4836         widget.
4837
4838 2002-08-20  Ben Sigelman  <bhsigelm@cs.brown.edu>
4839
4840         * event-Xt.c (drain_X_queue): loop over while(XEventsQueued())
4841         instead of while(XtAppPending()&XtIMXEvent).  Upon a gdm logout,
4842         the xemacs process did not exit, but looped infinitely here.  This
4843         fixes that problem.
4844
4845 2002-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
4846
4847         * font-lock.c (SYNTAX_START_STYLE, SYNTAX_END_STYLE): Quiet GCC.
4848         (find_context): Improve comments.
4849
4850         * regex.c (re_compile_fastmap):  Gratuitous #ifdef comment fixes.
4851         (re_match_2): An XCHAR_TABLE operation was missing.
4852
4853         Many of the following changes were inspired by Andy Piper's (now
4854         obsolete) patch to make syntax-table text property lookup optional.
4855
4856         [Documentation]
4857
4858         * syntax.h (top level): Document semantics of syntax flags.
4859         * syntax.c (comstr_start, Fforward_comment): Improve comments.
4860         * syntax.c, syntax.h (top level): Document syntax cache better in
4861         comments.
4862
4863         [Instrument syntax caching (temporary change)]
4864
4865         * syntax.h (enum syntax_cache_statistics_functions, struct
4866         syntax_cache_statistics, SCS_STATISTICS_SET_FUNCTION,
4867         SYNTAX_CACHE_STATISTICS_COUNT_INIT): New types and macros.
4868         * syntax.c (scan_words, Fforward_comment, scan_lists,
4869         Fbackward_prefix_characters):
4870         * font-lock.c (find_context):
4871         Use them to instrument syntax caching. 
4872         * syntax.c (struct syntax_cache_statistics, scs_statistics,
4873         syntax_cache_statistics_function_names): New type and variables.
4874         * syntax.c (update_syntax_cache): Update and report statistics.
4875
4876         [Major syntax cache optimizations]
4877
4878         syntax.c (lookup_syntax_properties): Default off.
4879
4880         * syntax.h (UPDATE_SYNTAX_INTERNAL): New, implements UPDATE_SYNTAX*.
4881         * syntax.c (update_syntax_cache):
4882         Move init test from update_syntax_cache to UPDATE_SYNTAX_INTERNAL.
4883
4884         [Minor syntax cache optimizations and code clarifications]
4885
4886         * syntax.h (SYNTAX_COMMENT_BITS, SYNTAX_START_P, SYNTAX_END_P,
4887         SYNTAX_STYLES_MATCH_START_P, SYNTAX_STYLES_MATCH_1CHAR_P,
4888         SYNTAX_STYLES_MATCH_END_P, STYLE_FOUND_1CHAR_P, STYLE_FOUND_P,
4889         SYNTAX_COMMENT_MASK_END, SYNTAX_COMMENT_MASK_START,
4890         SYNTAX_COMMENT_1CHAR_MASK): Remove redundant argument `table'.
4891         (Code clarification.)
4892
4893         * syntax.c (scan_words, find_end_of_comment, scan_sexps_forward,
4894         scan_lists): Compute code from syncode, use Boolean macros instead
4895         of redundant masking operations.  (Code clarification; any decent
4896         compiler can do this optimization.)
4897
4898         * syntax.c (scan_lists): Rearrange switches (case Sstring_fence)
4899         for clarity.
4900
4901         * syntax.h, syntax.c (NEXT_SINGLE_PROPERTY_CHANGE,
4902         PREVIOUS_SINGLE_PROPERTY_CHANGE, update_syntax_cache): Conditionally
4903         use F*_single_property_change instead of F*_extent_change.
4904         Currently F*_single_property_change is _much_ less efficient.
4905
4906         * dired.c (Fdirectory_files): Qt not valid in syntax_cache.object.
4907         * syntax.h (SETUP_SYNTAX_CACHE_FOR_OBJECT):  Initialize
4908         syntax_cache.object properly, don't leave Qt or Qnil.
4909         (SYNTAX_CACHE_BYTE_TO_CHAR): Use SETUP_SYNTAX_CACHE_FOR_OBJECT.
4910         * syntax.c (update_syntax_cache): Use BUFFERP and STRINGP, not
4911         tests for Qt or Qnil.
4912
4913 2002-09-21  Stephen J. Turnbull  <stephen@xemacs.org>
4914
4915         * redisplay.c (point_in_line_start_cache): 
4916         * extents.c (print_extent_1):
4917         Fix warnings.
4918
4919         * extents.c (Fset_extent_property): Document `syntax-table' property.
4920
4921         * extents.h (Fnext_single_property_change): EXFUN it.
4922
4923 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
4924
4925         * search.c (clear_unused_search_regs): New static function.
4926         (search_buffer): 
4927         (simple_search): 
4928         (boyer_moore):
4929         Use it.  Fixes "stale match data" bug reported by Martin Stjernholm.
4930         Minor clarifications in comments.
4931
4932         * regex.c (re_match_2_internal): Ensure no stale submatches.
4933
4934 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
4935
4936         * event-Xt.c (enqueue_focus_event): Add missing prototype.
4937
4938 2002-08-29  Jerry James  <james@xemacs.org>
4939
4940         * lisp.h: structrures -> structures.
4941
4942 2002-06-03  Andy Piper  <andy@xemacs.org>
4943
4944         * frame.c (frame_conversion_internal): add conversion appropriate
4945         for setting frame dimensions in pixels.
4946
4947         * console.h (struct console_methods): add device-specific widget
4948         layout functions.
4949
4950         * emacs.c (main_1): initialize glyph vars.
4951
4952         * event-Xt.c (handle_focus_event_1): call handle_focus_event_2
4953         (handle_focus_event_2): new function. Allow focus to
4954         be set to a particular window and widget.
4955         (enqueue_focus_event): new function. Create a
4956         synthetic focus event.
4957         (emacs_Xt_handle_magic_event): call
4958         handle_focus_event_2.
4959
4960         * frame.c (Fset_frame_pixel_height): new function. Allow
4961         pixel-based sizing. Does the right thing on character-oriented
4962         displays.
4963         (Fset_frame_pixel_width): ditto.
4964         (Fset_frame_pixel_size): ditto.
4965         (syms_of_frame): declare.
4966
4967         * general-slots.h: add :vertically-justify and
4968         :horizontally-justify.
4969
4970         * glyphs-msw.c (xbm_create_bitmap_from_data): warning fix.
4971         (mswindows_widget_border_width): new function.
4972         (mswindows_combo_box_instantiate): set border widths.
4973         (console_type_create_glyphs_mswindows): declare.
4974
4975         * glyphs-widget.c:
4976         (check_valid_justification): allow vertical and horizontal
4977         justification.
4978         (widget_border_width): new function. Call device methods.
4979         (widget_instance_border_width): ditto.
4980         (logical_unit_height): new function. Determine the height of a
4981         logical-unit. Logical units are intended to provide grid-like
4982         layout for subcontrols in a layout. If the layout is
4983         :vertically-justify top then subcontrols will be positioned on
4984         logical-unit boundaries, thus allowing adjacent subcontrols to
4985         line up.
4986         (widget_logical_unit_height): ditto for widgets.
4987         (redisplay_widget): misc cleanup.
4988         (widget_spacing): new function. Call device specific
4989         methods. Intended to be the default gap between adjacent widgets.
4990         (widget_query_geometry): use new spacing functions to determine
4991         appropriate geometry.
4992         (initialize_widget_image_instance): initialize horizontal and
4993         vertical justification.
4994         (widget_instantiate): use logica-units where appropriate for
4995         sizing large widgets.
4996         (button_query_geometry): use widget_instance_border_width.
4997         (tree_view_query_geometry): ditto.
4998         (tab_control_query_geometry): ditto.
4999         (edit_field_query_geometry): new function.
5000         (layout_update): pick up :justify, :horizontally-justify and
5001         :vertically-justify none of which worked previously. :justify is
5002         used as a fallback for both horizontal and vertical justification.
5003         (layout_query_geometry): use logical units to size appropriately.
5004         (layout_layout): ditto.
5005         (Fwidget_logical_to_character_width): new function. Allow users to
5006         convert from logical units to characters so that frame sizes can
5007         be set appropriately.
5008         (Fwidget_logical_to_character_height): ditto.
5009         (syms_of_glyphs_widget): declare.
5010         (image_instantiator_edit_fields): add edit_field_query_geometry.
5011         (VALID_LAYOUT_KEYWORDS): declare :vertically-justify and
5012         :horizontally-justify.
5013         (specifier_vars_of_glyphs_widget): new function. Declare
5014         Vwidget_border_width which is not yet used.
5015
5016         * glyphs-x.c (x_map_subwindow): enqueue appropriate focus events.
5017         (x_widget_border_width): new function.
5018         (x_widget_instantiate): create a sensible name for widgets.
5019         (console_type_create_glyphs_x): declare x_widget_border_width.
5020
5021         * glyphs.h (DEFAULT_WIDGET_BORDER_WIDTH): new macro.
5022         (struct Lisp_Image_Instance): add :vertically-justify and
5023         :horizontally-justify.
5024         (LAYOUT_JUSTIFY_TOP): new.
5025         (IMAGE_INSTANCE_SUBWINDOW_H_JUSTIFY): new.
5026         (ROUND_UP): new macro. Round argument up to next integral
5027         interval.
5028
5029         * redisplay-output.c (redisplay_output_layout): misc formatting.
5030
5031         * symsinit.h: declare specifier_vars_of_glyphs_widget.
5032
5033 2002-08-23  Stephen J. Turnbull  <stephen@xemacs.org>
5034
5035         * XEmacs 21.4.9 "Informed Management" is released.
5036
5037 2002-08-19  Andy Piper  <andy@xemacs.org>
5038
5039         * fileio.c (Ffile_truename): on cygwin using win32 normalize to
5040         win32 format.
5041
5042         * realpath.c (xrealpath): normalize drive spec also so that dir
5043         sep chars are not mixed on cygwin.
5044
5045 2002-08-06  Jerry James  <james@xemacs.org>
5046
5047         * window.c (Fsplit_window): Count only half of the divider width
5048         against the left window when splitting horizontally. 
5049
5050 2002-06-24  Andy Piper  <andy@xemacs.org>
5051
5052         * toolbar-gtk.c (GTK_OUTPUT_BUTTONS_LOOP): output button if whole
5053         toolbar was cleared.
5054
5055         * toolbar-msw.c (mswindows_clear_frame_toolbars): new
5056         function. Split out from mswindows_output_frame_toolbars.
5057         (mswindows_output_frame_toolbars): move clear pieces to
5058         mswindows_output_frame_toolbars.
5059
5060         * toolbar-gtk.c (gtk_clear_frame_toolbars): new function. Split
5061         out from gtk_output_frame_toolbars.
5062         (gtk_output_frame_toolbars): move clear pieces to
5063         gtk_clear_frame_toolbars.
5064
5065         * toolbar-x.c (X_OUTPUT_BUTTONS_LOOP): always output buttons when
5066         the frame is cleared. How this ever worked before is a mystery.
5067         (x_output_frame_toolbars): Only output toolbars.
5068         (x_clear_frame_toolbars): new. Clear previous toolbar locations.
5069
5070         * gutter.c (update_gutter_geometry):
5071         Mark frame layout changed.
5072         (update_frame_gutter_geometry, update_frame_gutters):
5073         Respect frame_layout_changed.
5074
5075         * console.h (struct console_methods): add
5076         clear_frame_toolbars_method.
5077
5078         * redisplay.c (redisplay_frame): call
5079         update_frame_toolbars_geometry and re-order update_frame_toolbars.
5080
5081         * toolbar.h: declare update_frame_toolbars_geometry.
5082
5083         * toolbar.c (update_frame_toolbars_geometry): new function. Split
5084         out from update_frame_toolbars.  Call clear_frame_toolbars.
5085         (update_frame_toolbars): only output, do not change geometry.
5086
5087         * redisplay.c: add frame_layout_changed.
5088
5089         * redisplay.h: add frame_layout_changed.
5090         (CLASS_RESET_CHANGED_FLAGS): set it.
5091         (GLOBAL_RESET_CHANGED_FLAGS): ditto.
5092         (CLASS_REDISPLAY_FLAGS_CHANGEDP): test it.
5093         (GLOBAL_REDISPLAY_FLAGS_CHANGEDP): ditto.
5094
5095         * device.h (struct device): add frame_layout_changed.
5096         (MARK_DEVICE_FRAME_LAYOUT_CHANGED): new.
5097
5098         * frame.h (struct frame): add frame_layout_changed.
5099         (MARK_FRAME_LAYOUT_CHANGED): new.
5100
5101 2002-06-30  Mike Alexander  <mta@arbortext.com>
5102
5103         * event-msw.c (mswindows_need_event): Don't wait for a new message
5104         if the queue is not empty.  Suggested by Paul Moore.
5105
5106 2002-06-12  Andy Piper  <andy@xemacs.org>
5107
5108         * frame-msw.c (msprinter_init_frame_3): calculate the frame size
5109         for printing on accurately.
5110
5111 2002-06-09  Rick Rankin <rick_rankin@yahoo.com>
5112
5113         * event-msw.c (mswindows_wnd_proc): Add a handler for the
5114         WM_ACTIVATE message. Make sure that the frame is visible if the
5115         window is visible. This seemss to fix the problem where XEmacs
5116         appears to freeze after switching desktops with certain virtual
5117         window managers.
5118         (debug_output_mswin_message): Added code to output message
5119         parameters for WM_WINDOWPOSCHANGED, 
5120         WM_WINDOWPOSCHANGING, WM_MOVE, and WM_SIZE messages.
5121
5122 2002-05-25  Andy Piper  <andy@xemacs.org>
5123
5124         * select-x.c (vars_of_select_x): Fix docstring of
5125         x-selection-strict-motif-ownership
5126
5127 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
5128
5129         * keymap.c (get_keymap):
5130         Add comment about do_autoload GCPROs own args.
5131
5132 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
5133
5134         * bytecode.c (execute_optimized_program): check_opcode ifdef
5135         ERROR_CHECK_BYTE_CODE.
5136
5137 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
5138
5139         Thanks to Ben Wing and Michael Sperber.
5140
5141         * eval.c (Fcommand_execute):
5142         (Feval):
5143         (Ffuncall):
5144         (Fmacroexpand_internal):
5145         (function_argcount):
5146         callint.c (Fcall_interactively):
5147         Add comment about do_autoload GCPROs own args.
5148
5149         * (do_autoload): GCPRO both args as well as local Lisp_Object.
5150
5151         * eval.c (Ffuncall): Extra braces to placate GCC.
5152
5153 2002-08-10  Stephen J. Turnbull  <stephen@xemacs.org>
5154
5155         * backtrace.h (grow_specpdl):
5156         (SPECPDL_RESERVE):
5157         * EmacsFrame.c (EmacsFrameSetValues):
5158         * eval.c (grow_specpdl):
5159         * ExternalShell.c (hack_event_masks_1):
5160         * glyphs-x.c (convert_EImage_to_XImage): 
5161         (x_finalize_image_instance):
5162         * ralloc.c (page_size):
5163         (r_alloc_sbrk):
5164         * xgccache.c (gc_cache_hash):
5165         Fix unsigned comparison warnings.
5166
5167 2002-07-29  Jerry James  <james@xemacs.org>
5168
5169         * lread.c (locate_file): Any nonnegative return value indicates
5170         success if MODE is nonnegative.
5171
5172 2002-08-03  Brian A Palmer  <bpalmer@rescomp.Stanford.EDU>
5173
5174         * emacs.c (Fsplit_string_by_char): Make 2nd arg SEPCHAR a required
5175         argument. 
5176
5177 2002-07-17  Stephen J. Turnbull  <stephen@xemacs.org>
5178
5179         * process-unix.c (unix_send_process): #ifdef the coding_stream member.
5180
5181         * dumper.c (pdump_get_indirect_count):
5182         (pdump_scan_by_alignment):
5183         (pdump_dump_root_struct_ptrs):
5184         (pdump_dump_rtables):
5185         (pdump_dump_root_objects):
5186         (pdump):
5187         * nas.c (WaveOpenDataForReading):
5188         * fns.c (print_bit_vector):
5189         * font-lock.c (SINGLE_SYNTAX_STYLE):
5190         * glyphs.c (check_for_ignored_expose):
5191         (find_matching_subwindow):
5192         * glyphs-eimage.c:
5193         * imgproc.c (get_histogram):
5194         * redisplay.c (point_in_line_start_cache):
5195         * redisplay-output.c (redisplay_unmap_subwindows):
5196         * symbols.c (defsymbol_massage_name_1):
5197         (defkeyword_massage_name):
5198         (deferror_massage_name_and_message):
5199         * redisplay-x.c (x_output_string): 
5200         * emacs.c (run_temacs_argv_size, run_temacs_args_size):
5201         * frame.h (struct frame):
5202         * filelock.c (current_lock_owner):
5203         * doprnt.c (emacs_doprnt_1):
5204         * lisp.h (struct Lisp_Bit_Vector):
5205         (DO_REALLOC):
5206         Fix warnings.
5207
5208 2002-02-13  Ben Wing  <ben@xemacs.org>
5209
5210         * event-stream.c (reset_key_echo):
5211         * event-stream.c (reset_this_command_keys):
5212         * event-stream.c (execute_command_event):
5213         If console is dead as a result of C-x 5 0, then post-command stuff
5214         needs to be careful and do only non-console-specific stuff.
5215
5216 2002-07-01  Mike Sperber <mike@xemacs.org>
5217
5218         * process-unix.c (unix_send_process): Mark coding_outstream as
5219         non-open upon SIGPIPE.
5220
5221         * event-stream.c (Fnext_event): Reorder switch cases to something
5222         that makes sense.
5223
5224 2001-08-13  Dmitry Astapov  <adept@umc.com.ua>
5225
5226         * event-Xt.c (maybe_define_x_key_as_self_inserting_character):
5227         Don't bogusly reinitialize ascii_character property.
5228
5229 2002-07-08  Mike Sperber <mike@xemacs.org>
5230
5231         * process.c (Fstart_process_internal): Do error checking before we
5232         fork off the child, so the child can't muck with the state of the
5233         parent.
5234
5235 2002-07-08  Mike Sperber <mike@xemacs.org>
5236
5237         * ralloc.c (init_ralloc): Allocate properly for pdump.
5238
5239 2002-06-12  Andy Piper  <andy@xemacs.org>
5240
5241         * glyphs.c (query_string_geometry): check the string.
5242
5243         * glyphs-widget.c (widget_logical_unit_height): cope with nil
5244         widget names.
5245
5246 2002-06-17  Jerry James  <james@xemacs.org>
5247
5248         * sysdll.c: Remove RTLD_GLOBAL initialization.
5249         * sysdll.c (dll_open): Do not use RTLD_GLOBAL.
5250
5251 2002-06-25  Stephen J. Turnbull  <stephen@xemacs.org>
5252
5253         * search.c (skip_chars): Port Ben's crash fix and efficiency patch.
5254
5255 2002-05-16  Mathias Grimmberger  <mgri@zaphod.sax.de>
5256
5257         * sysdep.c (sys_rename): Make sys_rename work for the case where
5258         Windows rename sets errno to EACCES if target file exists.
5259
5260 2002-05-21  Jonathan Harris  <jonathan@xemacs.org>
5261
5262         * device-msw.c (mswindows_handle_page_setup_dialog_box):
5263         Fix detection of metric units to work on Win95
5264
5265 2002-05-21  Stephen J. Turnbull  <stephen@xemacs.org>
5266
5267         * syswindows.h: #define LOCALE_RETURN_NUMBER.  Why, I don't know.
5268
5269 2002-04-25  Andy Piper  <andy@xemacs.org>
5270
5271         * redisplay.c (create_text_block): Remove extra comment trailer.
5272
5273 2002-04-24  Andy Piper  <andy@xemacs.org>
5274
5275         * redisplay.c (create_text_block): Don't actually add propagation
5276         data if the line ends after we have added a glyph.
5277
5278 2002-04-22  Andy Piper  <andy@xemacs.org>
5279
5280         * extents.c (extent_fragment_update): check for glyphs we have
5281         previously displayed.
5282         * extents.c (print_extent_1): warning removal.
5283         * extents.h: change prototype.
5284         * redisplay-output.c (redisplay_normalize_glyph_area): calculate
5285         widths correctly for wide glyphs.
5286         * redisplay.c (position_redisplay_data_type): add end_glyph_width.
5287         * redisplay.c (prop_type): add PROP_GLYPH.
5288         * redisplay.c (struct prop_block): add glyph type
5289         * redisplay.c (add_glyph_rune): when adding part of a glyph add it
5290         to the propagation data.
5291         * redisplay.c (create_text_block): if there is a glyph in the
5292         propagation data use it to salt extent_fragment_update.
5293         * redisplay.c (create_string_text_block): ditto.
5294
5295 2002-04-13  Nix  <nix@esperi.demon.co.uk>
5296
5297         * redisplay.h (struct rune): Add ascent, descent, and yoffset fields.
5298         * redisplay-output.c (compare_runes): Compare them.
5299         * redisplay.c: Update copyright date.
5300         * redisplay.c (pos_data): Add need_baseline_computation field.
5301         * redisplay.c (add_glyph_rune): Update ascent, descent, and
5302         need_baseline_computation; zero yoffset. Set max_pixmap_height
5303         for all pixmaps, not just automatically positioned ones.
5304         * redisplay.c (calculate_yoffset): New, compute yoffset values.
5305         * redisplay.c (calculate_baseline): New, compute textual baseline.
5306         * redisplay.c (add_glyph_rune): Call them.
5307         * redisplay.c (create_text_block): Likewise.
5308         * redisplay.c (create_overlay_glyph_block): Likewise.
5309         * redisplay.c (add_margin_runes): Likewise.
5310         * redisplay.c (create_string_text_block): Likewise. Fix tabdamage.
5311
5312         * redisplay.h: (redisplay_calculate_display_boxes): Change prototype.
5313         * redisplay-output.c (redisplay_calculate_display_boxes): Use yoffset.
5314         * redisplay-msw.c (mswindows_output_blank): Pass 0 as yoffset.
5315         * redisplay-msw.c (mswindows_output_string): Likewise.
5316         * redisplay-msw.c (mswindows_output_display_block): Pass yoffset.
5317         * redisplay-gtk.c (gtk_output_display_block): Likewise.
5318         * redisplay-x.c (x_output_display_block): Likewise.
5319
5320 2002-03-28  Ben Wing  <ben@xemacs.org>
5321
5322         * redisplay.c: Fixed bug in redisplay
5323         w.r.t. hscroll/truncation/continuation glyphs causing jumping up
5324         and down of the lines, since they're bigger than the line
5325         size. (It was seen most obviously when there's a horizontal scroll
5326         bar, e.g. do C-h a glyph or something like that.) The problem was
5327         that the glyph-contrib-p setting on glyphs was ignored even if it
5328         was set properly, which it wasn't until now.
5329
5330 2002-04-24  Andy Piper  <andy@xemacs.org>
5331
5332         * lisp.h (Dynarr_end): Fix definition.
5333
5334 2002-02-06  Adrian Aichner  <adrian@xemacs.org>
5335
5336         * redisplay.c (mark_redisplay): Remove call to
5337         update_frame_window_mirror.
5338
5339 2001-11-15  Andy Piper  <andy@xemacs.org>
5340
5341         * win32.c (Fmswindows_shell_execute): fix handling of URL's under
5342         cygwin (again).
5343
5344 2002-02-13  Andy Piper  <andy@xemacs.org>
5345
5346         * event-msw.c (mswindows_wnd_proc): only mark the frame visible if
5347         we did in fact enqueue the XM_MAPFRAME event.
5348
5349 2002-01-15  Adrian Aichner  <adrian@xemacs.org>
5350
5351         * event-msw.c (mswindows_wnd_proc): Add handling of WM_SHOWWINDOW
5352         to fix problem switching between virtual desktops under virtuawin
5353         virtual window manager.
5354
5355 2001-07-30  Adrian Aichner  <adrian@xemacs.org>
5356
5357         * event-msw.c: Typo fix.
5358         * event-msw.c (mswindows_wnd_proc): Set FRAME_VISIBLE_P after
5359         magic XM_MAPFRAME event has been sent.
5360
5361 2001-11-23  Andy Piper  <andy@xemacs.org>
5362
5363         * event-msw.c (mswindows_wnd_proc): Don't pump mousewheel events.
5364
5365 2001-11-21  Andy Piper  <andy@xemacs.org>
5366
5367         * scrollbar-msw.c (mswindows_handle_mousewheel_event): cope with
5368         mouse events outside the frame.
5369
5370 2002-03-20  Andy Piper  <andy@xemacs.org>
5371
5372         * menubar-msw.c (mswindows_popup_menu): warning removal.
5373         * dialog-msw.c (dialog_popped_down): ditto.
5374
5375 2001-12-11  Andy Piper  <andy@xemacs.org>
5376
5377         * dialog-msw.c (dialog_popped_down): new function. unset popup_up_p.
5378         * dialog-msw.c (mswindows_make_dialog_box_internal): set
5379         popup_up_p.
5380         * menubar-msw.c (unsafe_handle_wm_initmenupopup_1): ditto.
5381         * menubar-msw.c (mswindows_handle_wm_command): ditto.
5382         * menubar-msw.c (mswindows_popup_menu): ditto.
5383
5384 2001-10-29  Andy Piper  <andy@xemacs.org>
5385
5386         * dialog-msw.c (handle_directory_dialog_box): quit if the user
5387         cancels.
5388
5389 2002-01-03  Andy Piper  <andy@xemacs.org>
5390
5391         * realpath.c (ABS_LENGTH): dtrt for cygwin systems using drive
5392         letters.
5393         (xrealpath): ditto.
5394
5395 2002-03-29  Jonathan Harris  <jonathan@xemacs.org>
5396
5397         * device-msw.c (plist_get_margin): Add arg specifying mm or inches
5398         * device-msw.c (plist_set_margin): Fix multiplicand used for mm
5399         * device-msw.c (mswindows_handle_page_setup_dialog_box):
5400         Detect and handle case where machine is set up for metric units
5401
5402 2002-04-02  Andy Piper  <andy@xemacs.org>
5403
5404         * dired-msw.c (mswindows_get_files): 
5405         * nt.c (mswindows_stat): SetErrorMode() so that file errors are
5406         completely handled by XEmacs. Suggested by Thomas Vogler
5407         <mail@thomas-vogler.de>.
5408
5409 2001-11-14  Andy Piper  <andy@xemacs.org>
5410
5411         * nt.c (REG_ROOT): change registry key to XEmacs.
5412
5413 2002-04-27  Andy Piper  <andy@xemacs.org>
5414
5415         * glyphs-msw.c (mswindows_widget_instantiate): remove dead-code.
5416
5417 2002-04-26  Andy Piper  <andy@xemacs.org>
5418
5419         * glyphs-msw.c (mswindows_map_subwindow): observe :initial-focus
5420         behavior.
5421
5422 2002-03-14  Mike Alexander  <mta@arbortext.com>
5423
5424         * event-msw.c (mswindows_unwait_process): New, remove process from
5425         wait list
5426         * process-nt.c (nt_finalize_process_data): Call
5427         mswindows_unwait_process
5428         * console-msw.h: Declare mswindows_unwait_process
5429
5430 2002-05-14  Stephen J. Turnbull  <stephen@xemacs.org>
5431
5432         * editfns.c (Fdecode_time):
5433         (Fformat_time_string):
5434         Check for invalid time.  Thanks to Nick Pakoulin <npak@ispras.ru>.
5435         (make_time): Warning elimination (change arg name).
5436
5437 2001-11-24  Andy Piper  <andy@xemacs.org>
5438
5439         * window.c (Fsplit_window): Doc return type.
5440
5441 2002-04-01  Andy Piper  <andy@xemacs.org>
5442
5443         * emacs.c (Fkill_emacs): Only output message box in interactive
5444         mode.
5445
5446 2002-04-26  Andy Piper  <andy@xemacs.org>
5447  
5448         * config.h.in: pull in 21.5.x change to stop alloca warnings under
5449         cygwin.
5450
5451 2002-03-18  Gregory Steuck  <greg-xemacs-patch@nest.cx>
5452
5453         * unexelf.c:  Use ELFSIZE or define from _LP64 to indicate a 64
5454         bit platform.
5455
5456 2002-05-09  Stephen J. Turnbull  <stephen@xemacs.org>
5457
5458         * XEmacs 21.4.8 "Honest Recruiter" is released.
5459
5460 2002-05-07  Nix  <nix@esperi.demon.co.uk>
5461
5462         Supersedes 2002-04-17 patch.
5463
5464         * process.h (PROCESS_LIVE_P): Use the process status as
5465         evidence of health, not the state of the input stream.
5466         (PROCESS_READABLE_P): Say if the process is readable
5467         from. (It may be dead nonetheless.)
5468         (CHECK_READABLE_PROCESS): Test for that condition.
5469
5470         * process.c (create_process): Use PROCESS_READABLE_P.
5471         (read_process_output, set_process_filter): Likewise.
5472
5473         * process.c (Fprocess_input_coding_system): Use CHECK_READABLE_PROCESS.
5474         (Fset_process_input_coding_system, Fprocess_coding_system): Likewise.
5475
5476         This code is #if 0'd, this is not the time to add new functions:
5477
5478         * process.c (Fprocess_readable_p): Report readability status.
5479         * process.c (Qprocess_readable_p): New, associated symbol...
5480         * process.c (syms_of_process): ... initialize it.
5481
5482 2002-05-04  Stephen J. Turnbull  <stephen@xemacs.org>
5483
5484         * XEmacs 21.4.7 "Economic Science" is released.
5485
5486 2002-04-17  Nix  <nix@esperi.demon.co.uk>
5487
5488         * process.h (PROCESS_LIVE_P): Use the process status as
5489         evidence of health, not the state of the input stream.
5490
5491 2002-04-30  Charles G. Waldman <cgw@xemacs.org>
5492
5493         * sysdep.c (sys_siglist): change "signum" to "signal"
5494
5495 2001-04-21  Martin Buchholz  <martin@xemacs.org>
5496
5497         * s/darwin.h: New file.
5498         Thanks to Greg Parker <gparker@cs.stanford.edu>.
5499         
5500 2002-04-23  Andreas Jaeger  <aj@suse.de>
5501
5502         * s/linux.h (LIB_STANDARD): Define correctly for x86-64 and s390x
5503         which use lib64 for 64-bit libs.
5504         (START_FILES): Likewise.
5505
5506 2002-02-11  Mike Sperber  <mike@xemacs.org>
5507
5508         * device-x.c: 
5509         (x_IO_error_handler):
5510         (x_init_device): Temporarily keep device in static variable
5511         `device_being_initialized' so we can recover gracefully from
5512         internal XOpenDevice failure.  (XOpenDevice is documented to
5513         return NULL on failure, but sometimes calls the IO error handler
5514         instead.)
5515
5516 2002-01-31  John H. Palmieri  <palmieri@math.washington.edu>
5517
5518         * dired.c (Ffile_name_all_completions): Change documentation --
5519         remove reference to completion-ignored-extensions.
5520         * dired.c (vars_of_dired): Change documentation for
5521         completion-ignored-extensions -- remove reference to
5522         file-name-all-completions.
5523
5524 2002-03-06  Jerry James  <james@xemacs.org>
5525
5526         * emodules.c (emodules_load): Fix multiple loading of same module.
5527
5528 2002-01-25  Andrew Begel <abegel@cs.berkeley.edu>
5529         * sysdll.c (dll_open): Changed to use RTLD_NOW instead of
5530         RTLD_LAZY to avoid incorrect symbol binding when using nested
5531         shared libraries on Solaris.
5532
5533 2002-02-12  Stephen J. Turnbull  <stephen@xemacs.org>
5534
5535         * fileio.c (Ffind_file_name_handler): Improve docstring.
5536
5537 2002-01-20  Stephen J. Turnbull  <stephen@xemacs.org>
5538
5539         * fns.c (Fmapconcat): Improve docstring.
5540
5541 2002-01-03  Eric Gillespie, Jr.  <epg@pretzelnet.org>
5542
5543         * device-gtk.c: Add prototype for
5544         emacs_gtk_selection_clear_event_handle.
5545         (gtk_init_device): Call gtk_selection_add_target for CLIPBOARD
5546         selection.  Setup signal handler for "selection_clear_event"
5547         (emacs_gtk_selection_clear_event_handle).
5548
5549         * select-gtk.c (emacs_gtk_selection_clear_event_handle): Handle
5550         other applications owning the clipboard (based on
5551         x_handle_selection_clear).
5552
5553 2001-12-23  William M. Perry  <wmperry@gnu.org>
5554
5555         * menubar-gtk.c (gtk_popup_menu)  Add sanity checks, fix crash.
5556         
5557 2002-01-04  Martin Buchholz  <martin@xemacs.org>
5558
5559         * keymap.c (define_key_alternate_name): Parenthesize EQ.
5560
5561 2001-12-17  Stephen J. Turnbull  <stephen@xemacs.org>
5562
5563         * XEmacs 21.4.6 "Common Lisp" is released.
5564
5565 2001-12-16  Torsten Duwe  <duwe@caldera.de>
5566
5567         * search.c (Freplace_match): Add missing sub-expression functionality.
5568
5569         * buffer.c (decode_buffer): Add a check for pointer type to
5570         decode_buffer, before gcc's CSE optimization reorders a
5571         dereference in front of the allow_string test.
5572
5573 2001-11-16  Darryl Okahata  <darrylo@xemacs.org>
5574
5575         * window.c (window_loop): Fix bug that sometimes prevented
5576         window_loop() from iterating across multiple devices.  Also, at
5577         Ben's request, changed infloop-detecting code to abort() instead
5578         of silently terminating window_loop().
5579
5580 2001-11-21  Stephen J. Turnbull  <stephen@xemacs.org>
5581
5582         Based on analysis and patch by Simon Josefson <jas@extundo.com>.
5583         * editfns.c (make_time): New function.
5584         (Fencode_time): Use it instead of wasteful_word_to_lisp.
5585         * lisp.h (make_time): Prototype and comment it.
5586         * dired.c (wasteful_word_to_lisp): Deprecate.
5587         (Ffile_attributes): Use make_time() instead of wasteful_word_to_lisp().
5588
5589 2001-10-31  Kyle Jones  <kyle_jones@wonderworks.com>
5590
5591         * fileio.c (auto_save_1): Use current coding system, not
5592         escape-quoted.
5593
5594 2001-11-13  Ben Wing  <ben@xemacs.org>
5595
5596         * window.c:
5597         * window.c (window_truncation_on):
5598         * window.c (syms_of_window):
5599         truncate-partial-width-windows should respect the buffer being
5600         displayed, like other redisplay vars.
5601
5602 2001-11-13  Hirokazu FUKUI  <hfukui@sannet.ne.jp>
5603
5604         * event-stream.c (Fread_key_sequence): save current buffer.
5605
5606 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
5607
5608         * ntheap.c (_heap_init): Don't redefine in VS.NET (MSC >= 1300).
5609
5610 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
5611
5612         * alloc.c (lcrecord_stats): Add space for types defined in modules.
5613
5614 2001-10-26  Mike Alexander  <mta@arbortext.com>
5615
5616         * event-msw.c (slurper_free_shared_data_maybe): Free the pipe handle.
5617
5618 2001-10-25  Andy Piper  <andy@xemacs.org>
5619
5620         * ChangeLog:
5621         * dialog-msw.c (handle_directory_proc): new function.
5622          (handle_directory_dialog_box): new fucntion.
5623          (handle_file_dialog_box): use new directory dialog support.
5624          (mswindows_make_dialog_box_internal): ditto.
5625         * event-msw.c (mswindows_wnd_proc): minor fix to scrollbar event
5626         handling.
5627         (mswindows_find_frame): make global.
5628         * fileio.c (Fexpand_file_name): build fix.
5629         * general-slots.h: add Qdirectory.
5630         * scrollbar-msw.c (mswindows_handle_scrollbar_event): fix focus
5631         handling.
5632         * syswindows.h (LOCAL_TO_WIN32_FILE_FORMAT): fix problem with
5633         cygwin not leaving win32 paths unchanged.
5634         * win32.c (Fmswindows_cygwin_to_win32_path): new function. Use the
5635         cygwin runtime to do path conversion.
5636         (Fmswindows_shell_execute): fix cygwin handling of URLs.
5637         (syms_of_win32): add new function.
5638         * window.c (window_loop): build fix.
5639
5640 2001-10-15  Andy Piper  <andy@xemacs.org>
5641
5642         (Fmswindows_shell_execute): fix handling of URL's under cygwin.
5643
5644 2001-10-23  Stephen J. Turnbull  <stephen@xemacs.org>
5645
5646         * XEmacs 21.4.5 "Civil Service" is released.
5647
5648 2001-04-08  Danny Colascione  <qtmstr@optonline.net>
5649
5650         * glyphs-x.c: Force buffer-tab highlight update when moving the
5651         buffer, avoiding an ugly black border, used for keyboard focus
5652         indication, on a widget that can never have keyboard focus, the
5653         buffer tab.
5654
5655 2001-08-30  Daiki Ueno  <ueno@unixuser.org>
5656
5657         * process-unix.c (unix_open_multicast_group): Remove too much
5658         conversion between host and network byte order.
5659
5660 2001-09-10  Nix  <nix@esperi.demon.co.uk>
5661
5662         * src/buffer.c (kill_buffer): Undedicate windows showing BUF
5663         before replacing them.
5664
5665         * src/window.c (window_loop): Implement new UNDEDICATE_BUFFER
5666         operation.
5667
5668         * src/window.c (undedicate_windows): Use it.
5669         * src/window.h: Add prototype.
5670
5671 2001-09-17  Ben Wing  <ben@xemacs.org>
5672
5673         * fileio.c (normalize_filename):
5674         * fileio.c (Fexpand_file_name):
5675         Fix various C++ compile errors in Andy's recent code.
5676         
5677         * callint.c (Fcall_interactively):
5678         * editfns.c (Ftemp_directory):
5679         * editfns.c (Fuser_full_name):
5680         * emacs.c (argmatch):
5681         * lread.c (locate_file_map_suffixes):
5682         * redisplay-x.c (x_ring_bell):
5683         Fix sign-compare warnings.
5684         
5685 2001-09-08  Andy Piper  <andy@xemacs.org>
5686
5687         * fileio.c (normalize_filename): copied from nt.c
5688         * (Ffile_name_directory): enable win32 paths under cygwin.
5689         * (Ffile_name_nondirectory): ditto.
5690         * (directory_file_name): ditto.
5691         * (Fexpand_file_name): ditto.
5692         * (Ffile_truename): ditto.
5693         * (Fsubstitute_in_file_name): ditto.
5694         * (Ffile_name_absolute_p): ditto.
5695         * (Ffile_readable_p): ditto.
5696
5697 2001-09-08  Andy Piper  <andy@xemacs.org>
5698
5699         * device-msw.c (mswindows_finish_init_device): remove dde
5700         initialization.
5701         * device-msw.c (mswindows_init_dde): factor out from
5702         mswindows_finish_init_device()
5703         * device-msw.c (init_mswindows_very_early): new function
5704         initialize but don't enable dde.
5705         * emacs.c (main_1): call init_mswindows_very_early.
5706         * event-msw.c:
5707         * event-msw.c (mswindows_dde_callback): only execute when we are
5708         ready.
5709         * symsinit.h: declare init_mswindows_very_early.
5710
5711 2001-05-02  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
5712
5713         [sjt: This has been in 21.5 for months with no complaints.]
5714
5715         * console.h (struct console_methods): Added flags member.
5716         (CONSOLE_IMPLEMENTATION_FLAGS): Defined.
5717         (CONMETH_IMPL_FLAG):
5718         (CONSOLE_IMPL_FLAG): Macro to check implememntation flags.
5719         Defined XDEVIMPF_DONT_PREEMPT_REDISPLAY.
5720
5721         * device.c (window_system_pixelated_geometry): Use the above macros.
5722
5723         * device.h (DEVICE_IMPL_FLAG): Macro to check a device
5724         implememntation flag.
5725         * device.h (DEVICE_DISPLAY_P): Use it.
5726
5727         * frame.c (delete_frame_internal): Use the above macro.
5728
5729         * redisplay.c (redisplay_device): Use it.
5730         (redisplay_device): Obey XDEVIMPF_DONT_PREEMPT_REDISPLAY.
5731         (redisplay_frame): Ditto.
5732
5733         * device-msw.c (mswindows_device_implementation_flags): Removed.
5734         (msprinter_device_implementation_flags): Removed.
5735         (console_type_create_device_mswindows): Removed references to
5736         implementation_flags methods, set implementation flags here.
5737         (console_type_create_device_mswindows): Added XDEVIMPF_DONT_PREEMPT.
5738
5739         * device-gtk.c (gtk_device_implementation_flags): Removed method.
5740         (console_type_create_device_gtk): Removed method declaration.
5741         Added commented out statement which semantically matches the
5742         commented out statement in the above removed method.
5743
5744 2001-04-14  Gordon Sadler  <gbsadler1@lcisp.com>
5745
5746         The attached patch fixes a few warnings. 
5747
5748         * src/emacs.c: prototype console_type_create_select_gtk for GTK only
5749         * src/frame-gtk.c: guard against GNOME calls in GTK only
5750         * src/redisplay-gtk.c: include <sys/poll.h> #ifdef HAVE_POLL
5751         * src/select-gtk.c: prototype lisp_to_time
5752
5753 2001-06-08  Ben Wing  <ben@xemacs.org>
5754
5755         ------ gc-in-window-procedure fixes ------
5756         
5757         * alloc.c:
5758         * alloc.c (struct post_gc_action):
5759         * alloc.c (register_post_gc_action):
5760         * alloc.c (run_post_gc_actions):
5761         * alloc.c (garbage_collect_1):
5762         Create "post-gc actions", to avoid those dreaded "GC during window
5763         procedure" problems.
5764
5765         * event-msw.c:
5766         Abort, clean and simple, when GC in window procedure.  We want
5767         to flush these puppies out.
5768
5769         * glyphs-msw.c:
5770         * glyphs-msw.c (finalize_destroy_window):
5771         * glyphs-msw.c (mswindows_finalize_image_instance):
5772         Use a post-gc action when destroying subwindows.
5773
5774         * lisp.h:
5775         Declare register_post_gc_action().
5776
5777         * scrollbar-msw.c:
5778         * scrollbar-msw.c (unshow_that_mofo):
5779         Use a post-gc action when unshowing scrollbar windows, if in gc.
5780
5781         * redisplay.c (mark_redisplay):
5782         Add comment about the utter evilness of what's going down here.
5783
5784         ------ cygwin setitimer fixes ------
5785         
5786         * Makefile.in.in (sheap_objs):
5787         * Makefile.in.in (profile_objs):
5788         * Makefile.in.in (objs):
5789         Compile profile.c only when HAVE_SETITIMER.
5790         
5791         * nt.c (mswindows_sigset):
5792         * nt.c (mswindows_sighold):
5793         * nt.c (mswindows_sigrelse):
5794         * nt.c (mswindows_sigpause):
5795         * nt.c (mswindows_raise):
5796         * nt.c (close_file_data):
5797         Style fixes.
5798         
5799         * nt.c:
5800         Move setitimer() emulation to win32.c, because Cygwin needs it too.
5801         
5802         * profile.c:
5803         * profile.c (Fstart_profiling):
5804         * profile.c (Fstop_profiling):
5805         Make sure we don't compile if no setitimer().  Use qxe_setitimer()
5806         instead of just plain setitimer().
5807         
5808         * signal.c:
5809         * signal.c (set_one_shot_timer):
5810         * signal.c (alarm):
5811         Define qxe_setitimer() as an encapsulation around setitimer() --
5812         call setitimer() directly unless Cygwin or MS Win, in which case
5813         we use our simulated version in win32.c.
5814         
5815         * systime.h:
5816         * systime.h (struct itimerval):
5817         * systime.h (ITIMER_REAL):
5818         Prototype mswindows_setitimer() and qxe_setitimer().  Long
5819         comment about "qxe" and the policy regarding encapsulation.
5820
5821         * win32.c:
5822         * win32.c (setitimer_helper_proc):
5823         * win32.c (setitimer_helper_period):
5824         * win32.c (setitimer_helper):
5825         * win32.c (mswindows_setitimer):
5826         Move setitimer() emulation here, so Cygwin can use it.
5827         Rename a couple of functions and variables to be longer and more
5828         descriptive.  In setitimer_helper_proc(), send the signal
5829         using either mswindows_raise() or (on Cygwin) kill().  If for
5830         some reason we are still getting lockups, we'll change the kill()
5831         to directly invoke the signal handlers.
5832
5833         ------ windows shell fixes ------
5834         
5835         * callproc.c:
5836         * ntproc.c:
5837         Comments about how these two files must die.
5838
5839         * callproc.c (init_callproc):
5840         On MS Windows, init shell-file-name from SHELL, then COMSPEC,
5841         not just COMSPEC. (more correct and closer to FSF.) Don't
5842         force a value for SHELL into the environment. (Comments added
5843         to explain why not.)
5844         
5845         * nt.c (init_user_info):
5846         Don't shove a fabricated SHELL into the environment.  See above.
5847
5848 2001-06-01  Ben Wing  <ben@xemacs.org>
5849
5850         * Makefile.in.in (ldflags):
5851         eliminate that pesky "defaulting to 00401000" warning.
5852         * nt.h:
5853         eliminate warnings.
5854
5855 2001-06-15  Golubev I. N.  <gin@mo.msk.ru>
5856
5857         * s/sco5.h (FORCE_ALLOCATE_PTY_THE_OLD_FASHIONED_WAY): #define.
5858         * process-unix.c (allocate_pty): #ifndef "modern" pty allocation.
5859
5860 2001-04-24  Jerry James <james@xemacs.org>
5861
5862         * faces.h: pass parameters to Fadd_spec_to_specifier in the
5863         correct order.
5864
5865 2001-06-01  Ben Wing  <ben@xemacs.org>
5866
5867         * event-msw.c (debug_mswin_messages):
5868         conditionalize the messages that were causing compile errors.
5869         (if only macros could generate #ifdef statements ...)
5870
5871 2001-07-28  Stephen J. Turnbull  <stephen@xemacs.org>
5872
5873         * XEmacs 21.4.4 "Artificial Intelligence" is released.
5874
5875 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
5876
5877         * event-msw.c (mswindows_wnd_proc): Add GC debugging assert.
5878
5879 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
5880
5881         * config.h.in (IPV6_CANONICALIZE): New #define for --with-ipv6-lookup.
5882         * process-unix.c (unix_canonicalize_host_name):
5883         sysdep.c (init_system_name):
5884         Use it to conditionally support IPv6 canonicalization.
5885
5886 2001-05-31  Paul Stodghill  <stodghil@cs.cornell.edu>
5887
5888         * event-msw.c:
5889         Cygwin does not define WM_IME_xxx. Modify the #if's accordingly.
5890
5891 2001-05-19  Paul Krause  <paulkrause1@mediaone.net>
5892
5893         * scrollbar-msw.c: Fixes a crash that occurs on Windows when an
5894         attempt is made to scroll when no scroll bar is available.
5895
5896 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
5897
5898         * input-method-motif.c (XIM_delete_frame): New callback.
5899         (XIM_init_frame): Register it.  (Reapplied by SJT, it somehow
5900         got deleted from 21.4.3.)
5901
5902 2001-06-01  Ben Wing  <ben@xemacs.org>
5903
5904         * nt.c (mswindows_utime):
5905         * nt.c (close_file_data):
5906         fix off-by-one-indirection error.
5907
5908 2001-05-29  Adrian Aichner  <adrian@xemacs.org>
5909
5910         * fileio.c: Include nt.h.  Remove lisp_string_set_file_times()
5911         because set_file_times() now takes Lisp_Object path, instead of
5912         char*.
5913         * nt.c: Include buffer.h.
5914         * nt.c (convert_from_time_t): New.
5915         * nt.c (mswindows_utime): New.  Use utime, since SetFileTime does
5916         not set mtime correctly.
5917         * nt.h: Declare mswindows_utime().
5918         * sysdep.c (set_file_times): set_file_times() now takes Lisp_Object
5919         path, instead of char*.
5920         * systime.h: Include <sys/utime.h> on WIN32_NATIVE.
5921
5922 2001-05-30  Ben Wing  <ben@xemacs.org>
5923
5924         For 21.4:
5925
5926         (Stephen, just take all event-msw.c patches.  This includes
5927         the "iconify" fix below.)
5928
5929         * event-msw.c:
5930         * event-msw.c (mswindows_dequeue_dispatch_event):
5931         * event-msw.c (assert):
5932         * event-msw.c (emacs_mswindows_quit_p):
5933         * event-msw.c (debug_mswin_messages):
5934         * event-msw.c (debug_output_mswin_message):
5935         * event-msw.c (vars_of_event_mswindows):
5936         Fix yet more problems with C-g handling.
5937         Implement debug-mswindows-events.
5938         
5939 2001-05-24  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
5940
5941         * event-msw.c (WM_DROPFILES): Use correct type for OLE characters.
5942         
5943 2001-05-23  Ben Wing  <ben@xemacs.org>
5944
5945         * event-msw.c (winsock_writer):
5946         * event-msw.c (winsock_closer):
5947         prior kludgy code was clobbering the buffer, thinking it was
5948         "unused" space to store an unneeded return value; instead, use
5949         the variable we've already got staring us in the face.
5950
5951 2001-05-17  Andy Piper  <andy@xemacs.org>
5952
5953         * sysfile.h: don't assume that file attributes are boolean
5954
5955 2001-05-23  Ben Wing  <ben@xemacs.org>
5956
5957         * device-msw.c (msprinter_init_device):
5958         signal an error rather than crash with an unavailable network
5959         printer (from Mike Alexander).
5960         
5961         * event-msw.c:
5962         * event-msw.c (struct winsock_stream):
5963         * event-msw.c (winsock_writer):
5964         * event-msw.c (winsock_closer):
5965         * event-msw.c (make_winsock_stream_1):
5966         cleanup headers.  fix (hopefully) an error with data corruption
5967         when sending to a network connection.
5968
5969         * fileio.c (Fexpand_file_name): Fix evil code that attempts
5970         to handle the ~user prefix by (a) always assuming we're referencing
5971         ourselves and not even verifying the user -- hence any file with
5972         a tilde as its first char is invalid! (b) if there wasn't a slash
5973         following the filename, the pointer was set *past* the end of
5974         file and we started reading from uninitialized memory.  Now we
5975         simply treat these as files, always.
5976
5977         * buffer.c (common_init_complex_vars_of_buffer): comment change.
5978         
5979 2001-05-19  Ben Wing  <ben@xemacs.org>
5980
5981         * eval.c: doc comment about gcpro'ing in record_unwind_protect.
5982
5983         * process-nt.c:
5984         * process-nt.c (vars_of_process_nt):
5985         remove unused mswindows-quote-process-args.  rec for 21.4.
5986         
5987 2001-05-12  Ben Wing  <ben@xemacs.org>
5988
5989         * event-msw.c (mswindows_dde_callback):
5990         * event-msw.c (mswindows_wnd_proc):
5991         eliminate cygwin warnings.
5992
5993 2001-05-06  Ben Wing  <ben@xemacs.org>
5994
5995         * console-msw.h:
5996         * device-msw.c:
5997         * device-msw.c (print_dialog_worker):
5998         * device-msw.c (mswindows_handle_print_dialog_box):
5999         * device-msw.c (syms_of_device_mswindows):
6000         * dialog-msw.c (mswindows_make_dialog_box_internal):
6001         * general-slots.h:
6002         implement printing the selection when it's selected.
6003
6004 2001-05-20  Drazen Kacar  <dave@arsdigita.com>
6005
6006         * glyphs-gtk.c (gtk_resource_instantiate): C++ comment -> #if 0
6007
6008 2001-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
6009
6010         * lisp.h (EMACS_INT_MAX): This should be one bit less since
6011         EMACS_INT is signed.
6012
6013 2001-04-15  Michael Lausch  <mla@1012surf.net>
6014
6015         * scrollbar-gtk.c (gtk_create_scrollbar_instance): Call
6016         gtk_widget_request_size() to give scrollbar >0 width for
6017         GTK >1.2.8.
6018
6019 2001-05-30  William M. Perry  <wmperry@gnu.org>
6020
6021         * event-gtk.c: Check for buttons as modifier keys.
6022
6023 2001-05-25  Craig Lanning  <CraigL@Knology.net>
6024
6025         * s\mingw32.h:
6026         Properly find MinGW's <process.h> inside Cygwin's restructured
6027         include directories.  Don't try to include <cygwin/version.h>
6028         since we are dropping support for MinGW in versions of Cygwin
6029         earlier than b21.
6030         * nt.c:
6031         Drop support for MinGW in versions of Cygwin before b21.
6032         * sysdep.c:
6033         Properly find MinGW's <process.h> inside Cygwin's restructured
6034         include directories.
6035         * syswindows.h:
6036         Drop support for MinGW in versions of Cygwin before b21.
6037         * unexcw.c:
6038         Even though a.out.h is no longer detected by configure, allow
6039         MinGW to use it until we figure out how to do the job with Win32.
6040
6041 2001-07-11  Matt Tucker  <tuck@whistlingfish.net>
6042
6043         * syntax.c (find_start_of_comment):
6044         Fix `unbalanced parentheses' bug when dealing with mixed comment
6045         styles in c++/java/etc. mode
6046
6047 2001-05-29  Mike Alexander  <mta@arbortext.com>
6048
6049         * console-msw.h (FRAME_MSPRINTER_CHARHEIGHT): Unswap
6050         FRAME_MSPRINTER_CHARWIDTH and FRAME_MSPRINTER_CHARHEIGHT
6051
6052 2001-05-17  Andrew Begel  <abegel@eecs.berkeley.edu>
6053
6054         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Add needed cast.
6055
6056 2001-03-31  Mike Sperber <mike@xemacs.org>
6057
6058         * search.c (Freplace_match): Support FSF-style specification of
6059         match subexpression when applied to a buffer.
6060
6061 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
6062
6063         * event-stream.c (is_scrollbar_event): add missing semicolon
6064
6065 2001-05-22  Isaac Hollander  <ysh@mindspring.com>
6066
6067         * Makefile.in.in: Use TAR macro instead of hardcoding
6068           tar.  Allows use of GNU tar instead of system tar
6069
6070 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
6071
6072         * event-stream.c (is_scrollbar_event): add missing semicolon
6073
6074 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
6075
6076         * XEmacs 21.4.3 "Academic Rigor" is released.
6077
6078 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
6079
6080         * regex.c: Define DECLARE_NOTHING when "lisp.h" is not included.
6081
6082 2001-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
6083
6084         * buffer.c (Vcase_fold_search): Remove obsolete
6085           comment about non ASCII case-fold-search.  This
6086           bug has been fixed by case-table changes.
6087
6088 2001-05-11  Stephen J. Turnbull  <stephen@xemacs.org>
6089
6090         * event-msw.c: Restore include of events-mod.h.
6091
6092 2001-04-22   zhaoway  <zw@debian.org>
6093
6094         * event-stream.c (is_scrollbar_event): Noop returning 0 if
6095         !HAVE_SCROLLBARS.
6096
6097 2001-05-10  Stephen J. Turnbull  <stephen@xemacs.org>
6098
6099         * XEmacs 21.4.2 "Developer-Friendly Unix APIs" is released.
6100
6101 2001-05-08  Yoshiaki Kasahara  <kasahara@nc.kyushu-u.ac.jp>
6102
6103         * mule-charset.c (Fmake_charset): Add missing else.
6104
6105 2001-04-23  Ben Wing  <ben@xemacs.org>
6106
6107         * event-msw.c (FAKE_MOD_QUIT):
6108         * event-msw.c (mswindows_dequeue_dispatch_event):
6109         * event-msw.c (mswindows_wnd_proc):
6110         * event-msw.c (emacs_mswindows_quit_p):
6111         Get critical quit working.
6112
6113 2001-05-05  Ben Wing  <ben@xemacs.org>
6114
6115         * console-msw.h:
6116         * device-msw.c:
6117         * device-msw.c (mswindows_get_default_margin):
6118         * frame-msw.c (mswindows_size_frame_internal):
6119         * frame-msw.c (msprinter_init_frame_1):
6120         * frame-msw.c (vars_of_frame_mswindows):
6121         Change top/bottom margin defaults to 0.5 inches.
6122
6123 2001-05-01  Martin Buchholz  <martin@xemacs.org>
6124
6125         Fix link error with gcc 3.0 on Linux.
6126         * terminfo.c (UP): Remove.
6127         * terminfo.c (BC): Remove.
6128         * terminfo.c (PC): Remove.
6129         They weren't used, and in any case, these symbols should be
6130         defined in the *library*.
6131
6132 2001-05-03  Martin Buchholz  <martin@xemacs.org>
6133
6134         * s/aix4.h: Fix crash with xlc -O3.
6135         Improve comment explaining how -O3 works.
6136
6137 2001-04-15  Ben Wing  <ben@xemacs.org>
6138
6139         * event-stream.c:
6140         * event-stream.c (Fnext_event):
6141         * event-stream.c (is_scrollbar_event):
6142         * event-stream.c (execute_command_event):
6143         Better fix for Yoshiki's `C-x @ h <scrollbar-drag> x causes a
6144         crash' problem.  His fix introduces other problems.  We filter
6145         out scrollbar events specifically, making them somewhat invisible
6146         to command-building, and not appearing in `this-command-keys'.
6147         More work is still needed (see comments in event-stream.c), but
6148         this fixes all the major problems.
6149
6150 2001-04-20  Ben Wing  <ben@xemacs.org>
6151
6152         * .cvsignore: Added stuff for Windows.
6153
6154 2001-04-28  Ben Wing  <ben@xemacs.org>
6155
6156         * buffer.c (Ferase_buffer):
6157         * editfns.c (buffer_insert1):
6158         * editfns.c (Finsert_before_markers):
6159         * editfns.c (Finsert_string):
6160         * editfns.c (Finsert_char):
6161         * editfns.c (Fdelete_region):
6162         * editfns.c (Fwiden):
6163         * editfns.c (Fnarrow_to_region):
6164         remove bogus lines setting zmacs_region_stays to 0.
6165         
6166 2001-04-15  Gunnar Evermann  <ge204@eng.cam.ac.uk>
6167
6168         * process-unix.c (unix_open_network_stream): If connect() fails
6169         invalidate file descriptor after closing it.
6170
6171 2001-03-08  Mike Alexander  <mta@arbortext.com>
6172
6173         * event-msw.c (mswindows_need_event_in_modal_loop):
6174         Don't dispatch a message if we didn't get one.
6175         (mswindows_need_event):
6176         Terminate the correct process when one exits instead of the first
6177         one on Vprocess_list and look for process termination when in
6178         mswindows_protect_modal_loop.
6179
6180 2001-04-19  Stephen J. Turnbull  <stephen@xemacs.org>
6181
6182         * XEmacs 21.4.1 "Copyleft" is released.
6183
6184 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
6185
6186         * input-method-motif.c (XIM_delete_frame): New callback.
6187         (XIM_init_frame): Register it.
6188
6189 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
6190
6191         * XEmacs 21.4.0 "Solid Vapor" is released.
6192
6193 2001-04-15  Ben Wing  <ben@xemacs.org>
6194
6195         * cmdloop.c (call_command_loop):
6196         Fix braino in bit-rotting code.
6197         
6198 2001-04-07  Hrvoje Niksic  <hniksic@arsdigita.com>
6199
6200         * extents.c (Fset_extent_endpoints): Force creation of extent info
6201         in buffer_or_string.
6202
6203         * extents.c (process_extents_for_insertion_mapper): Correctly
6204         check for open-open zero-length extents.
6205
6206 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
6207
6208         * lisp.h: New typedefs Memory_count, Element_count.
6209         * regex.c:
6210         * regex.h:
6211         Sign-compare warning elimination: several unsigned -> signed.
6212         Based on work by Ben Wing <ben@xemacs.org>.
6213
6214 2001-04-14  Stephen J. Turnbull  <stephen@xemacs.org>
6215
6216         * XEmacs 21.2.47 "Zephir" is released.
6217
6218 2001-04-02  Jan Vroonhof  <jan@xemacs.org>
6219
6220         * redisplay.c (add_bufbyte_string_runes): Update data->bytepos
6221
6222 2001-04-03  Mike Sperber <mike@xemacs.org>
6223
6224         * search.c: Revert previous patch due because of release.
6225
6226 2001-03-30  Ben Wing  <ben@xemacs.org>
6227
6228         * s\cygwin32.h:
6229         Add missing killpg prototype.
6230
6231         * elhash.c:
6232         Add a comment about fixing problems when a new entry is added
6233         while mapping.
6234
6235         * frame-msw.c (mswindows_init_frame_1):
6236         Fix compile warnings.
6237
6238         * menubar.c (vars_of_menubar):
6239         Provide `menu-accelerator-support' to indicate that we properly
6240         support %_ in menu specifications, so that package code can
6241         conditionalize on this (and remove %_ from menu specifications
6242         on older versions).
6243
6244         * event-msw.c:
6245         * scrollbar-msw.c:
6246         * scrollbar-msw.c (can_scroll):
6247         * scrollbar-msw.h:
6248         Fix handling of mouse wheel under Windows to follow standards --
6249         now scrolls window under pointer, not selected window.
6250
6251 2001-03-31  Mike Sperber <mike@xemacs.org>
6252
6253         * search.c (Freplace_match): Support FSF-style specification of
6254         match subexpression when applied to a buffer.
6255
6256 2001-03-15  Martin Buchholz  <martin@xemacs.org>
6257
6258         * keymap.c (Fmap_keymap): map-keymap explicitly allows a mapping
6259         function to modify KEYMAP, so map over a copy of the hash table.
6260
6261 2001-03-21  Martin Buchholz <martin@xemacs.org>
6262
6263         * XEmacs 21.2.46 "Urania" is released.
6264
6265 2001-03-20  Dan Holmsand  <dan@eyebee.com>
6266
6267         * realpath.c (xrealpath): Make file-truename work with symlinks to
6268         /cygdrive paths on cygwin. Always lowercase drive-letters on
6269         native windows.
6270         (cygwin_readlink): Don't try to find canonical filename unless
6271         file exists.
6272
6273 2001-03-15  Stephen J. Turnbull  <stephen@xemacs.org>
6274
6275         * ChangeLog: Log GTK merge.
6276
6277         * dumper.c:
6278         * select-x.c:
6279         * specifier.c:
6280         * symeval.h:
6281         Revert gratuitous whitespace changes from GTK merge.
6282
6283         * emacs.c: Document end of complex #ifdef @ l. 1495.
6284
6285
6286 2001-03-12  Andy Piper  <andy@xemacs.org>
6287
6288         * mingw32.h: unfortunately cygnus changed mingw32 -> mingw so we
6289         have to do likewise.
6290
6291 2001-03-12  Andy Piper  <andy@xemacs.org>
6292
6293         * sysdep.c: we only support mingw now.
6294
6295 2001-03-09  Andy Piper  <andy@xemacs.org>
6296
6297         * unexcw.c (copy_executable_and_dump_data_section): making approx
6298         overrun a warning only.
6299
6300 2001-03-10  William M. Perry  <wmperry@aventail.com>
6301
6302         * faces.c (complex_vars_of_faces): Rewrote the font mucking to
6303         satisfy Stephen's identical-after-cpp plea.
6304
6305 2001-03-02  Ben Wing  <ben@xemacs.org>
6306
6307         * cmds.c:
6308         * cmds.c (Fforward_char):
6309         * syntax.c:
6310         * window.c:
6311
6312         Augment documentation of the most common motion commands to make
6313         note of the shifted-motion support.
6314         
6315 2001-03-02  Ben Wing  <ben@xemacs.org>
6316
6317         * nt.c (mswindows_fstat):
6318         * nt.c (mswindows_stat):
6319         * search.c (boyer_moore):
6320         Fix compile warnings under Windows.
6321         
6322         * sysdep.c (sys_readdir):
6323         Fix buggy filename-conversion code under Mule.
6324
6325 2001-03-09  William M. Perry  <wmperry@aventail.com>
6326
6327         * Makefile.in.in:
6328         * config.h.in:
6329         * console.c:
6330         * console.h:
6331         * device.c:
6332         * device.h:
6333         * dragdrop.c:
6334         * emacs.c:
6335         * event-stream.c:
6336         * events.c:
6337         * events.h:
6338         * faces.c:
6339         * frame.h:
6340         * general-slots.h:
6341         * glyphs.c:
6342         * gutter.c:
6343         * inline.c:
6344         * lisp.h:
6345         * lrecord.h:
6346         * make-src-depend:
6347         * redisplay-output.c:
6348         * redisplay.c:
6349         * symsinit.h:
6350         * sysfile.h:
6351         * toolbar.c:
6352         * window.c:
6353         The Great GTK Merge.
6354
6355         * ChangeLog.GTK:
6356         * console-gtk.c:
6357         * console-gtk.h:
6358         * device-gtk.c:
6359         * emacs-marshals.c:
6360         * emacs-widget-accessors.c:
6361         * event-gtk.c:
6362         * frame-gtk.c:
6363         * gccache-gtk.c:
6364         * gccache-gtk.h:
6365         * glade.c:
6366         * glyphs-gtk.c:
6367         * glyphs-gtk.h:
6368         * gtk-glue.c:
6369         * gtk-xemacs.c:
6370         * gtk-xemacs.h:
6371         * gui-gtk.c:
6372         * gui-gtk.h:
6373         * menubar-gtk.c:
6374         * native-gtk-toolbar.c:
6375         * objects-gtk.c:
6376         * objects-gtk.h:
6377         * redisplay-gtk.c:
6378         * scrollbar-gtk.c:
6379         * scrollbar-gtk.h:
6380         * select-gtk.c:
6381         * toolbar-gtk.c:
6382         * ui-byhand.c:
6383         * ui-gtk.c:
6384         * ui-gtk.h:
6385         The Great GTK Merge: new files.
6386
6387 2001-02-26  Ben Wing  <ben@xemacs.org>
6388
6389         Reapplied Lstream change.
6390
6391 2001-02-26  Ben Wing  <ben@xemacs.org>
6392
6393         Undid the last change, since it is more controversial than I
6394         thought.  It should be back in at some point soon.
6395         
6396 2001-02-25  Ben Wing  <ben@xemacs.org>
6397
6398         * buffer.c:
6399         * callproc.c (Fold_call_process_internal):
6400         * event-msw.c (ntpipe_slurp_reader):
6401         * event-msw.c (ntpipe_shove_writer):
6402         * event-msw.c (winsock_reader):
6403         * event-msw.c (winsock_writer):
6404         * file-coding.c:
6405         * file-coding.c (detect_eol_type):
6406         * file-coding.c (detect_coding_type):
6407         * file-coding.c (determine_real_coding_system):
6408         * file-coding.c (Fdetect_coding_region):
6409         * file-coding.c (decoding_reader):
6410         * file-coding.c (decoding_writer):
6411         * file-coding.c (mule_decode):
6412         * file-coding.c (Fdecode_coding_region):
6413         * file-coding.c (encoding_reader):
6414         * file-coding.c (encoding_writer):
6415         * file-coding.c (mule_encode):
6416         * file-coding.c (Fencode_coding_region):
6417         * file-coding.c (detect_coding_sjis):
6418         * file-coding.c (decode_coding_sjis):
6419         * file-coding.c (encode_coding_sjis):
6420         * file-coding.c (detect_coding_big5):
6421         * file-coding.c (decode_coding_big5):
6422         * file-coding.c (encode_coding_big5):
6423         * file-coding.c (detect_coding_ucs4):
6424         * file-coding.c (decode_coding_ucs4):
6425         * file-coding.c (encode_coding_ucs4):
6426         * file-coding.c (detect_coding_utf8):
6427         * file-coding.c (decode_coding_utf8):
6428         * file-coding.c (encode_coding_utf8):
6429         * file-coding.c (detect_coding_iso2022):
6430         * file-coding.c (decode_coding_iso2022):
6431         * file-coding.c (encode_coding_iso2022):
6432         * file-coding.c (decode_coding_no_conversion):
6433         * file-coding.c (encode_coding_no_conversion):
6434         * glyphs-x.c (write_lisp_string_to_temp_file):
6435         * gpmevent.c (tty_get_foreign_selection):
6436         * lisp.h:
6437         * lstream.c:
6438         * lstream.c (Lstream_flush_out):
6439         * lstream.c (Lstream_adding):
6440         * lstream.c (Lstream_write_1):
6441         * lstream.c (Lstream_write):
6442         * lstream.c (Lstream_raw_read):
6443         * lstream.c (Lstream_read_more):
6444         * lstream.c (Lstream_read):
6445         * lstream.c (Lstream_unread):
6446         * lstream.c (Lstream_fputc):
6447         * lstream.c (stdio_reader):
6448         * lstream.c (stdio_writer):
6449         * lstream.c (filedesc_reader):
6450         * lstream.c (filedesc_writer):
6451         * lstream.c (lisp_string_reader):
6452         * lstream.c (struct fixed_buffer_stream):
6453         * lstream.c (make_fixed_buffer_input_stream):
6454         * lstream.c (make_fixed_buffer_output_stream):
6455         * lstream.c (fixed_buffer_reader):
6456         * lstream.c (fixed_buffer_writer):
6457         * lstream.c (struct resizing_buffer_stream):
6458         * lstream.c (resizing_buffer_writer):
6459         * lstream.c (dynarr_writer):
6460         * lstream.c (lisp_buffer_reader):
6461         * lstream.c (lisp_buffer_writer):
6462         * lstream.h:
6463         * lstream.h (lstream_implementation):
6464         * lstream.h (struct lstream):
6465         * md5.c (Fmd5):
6466         * process-nt.c (nt_send_process):
6467         * process-unix.c (unix_send_process):
6468         
6469         Correct Lstream lossage due to mixing of signed and unsigned
6470         quantities.  All Lstream uses of size_t and ssize_t are now a
6471         single signed data type Lstream_data_count.  This fixes problems
6472         under Windows with sending large quantities of data to a process,
6473         and may well fix other subtle bugs.
6474
6475 2001-02-23  Martin Buchholz <martin@xemacs.org>
6476
6477         * XEmacs 21.2.45 "Thelxepeia" is released.
6478
6479 2001-02-21  Martin Buchholz  <martin@xemacs.org>
6480
6481         * lisp-union.h (XSETINT): 
6482         (XSETCHAR):
6483         (XSETOBJ): 
6484         Reverse previous change of 2001-02-06.
6485
6486 2001-02-20  Matt Tucker  <tuck@whistlingfish.net>
6487
6488         Fix `VALID_BYTIND_P' crashes in regex.c when using narrowed
6489         buffers.
6490         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
6491         * syntax.h (SYNTAX_CACHE_OBJECT_BYTE_TO_CHAR):
6492         Add `BI_BUF_BEGV' to bytepos before calculating bufpos.
6493         * regex.c (POS_AS_IN_BUFFER): removed
6494         * regex.c (re_search_2):
6495         * regex.c (re_match_2):
6496         Don't use an offset of 1 when calculating buffer positions, since
6497         `BI_BUF_BEGV' does it already.
6498
6499 2001-02-18  Wim Dumon  <wim@easics.be>
6500
6501         * insdel.c (prepare_to_modify_buffer): Also check for
6502         supersession when clash-detection is enabled. 
6503
6504 2001-02-17  Matt Tucker  <tuck@whistlingfish.net>
6505
6506         * regex.c (re_match_2_internal):
6507         Convert temp characters from 'const unsigned char' to 're_char'.
6508         Fix crashing bug with extended characters under mule.
6509         * syntax.c (Qsyntax_table): Moved from vars_of_syntax to
6510         syms_of_syntax. Use defsymbol to define. Fixes hanging bug with
6511         font-lock, pdump, and new syntax-table code.
6512         * syntax.c (find_start_of_comment):
6513         (find_end_of_comment):
6514         (forward-comment):
6515         Fix crashing bugs involving moving beyond end of buffer.
6516         * syntax.c (find_start_of_comment):
6517         Fixed logic to allow proper detection of cases where the same
6518         character is used to end both a two-char comment start and a
6519         two-char comment end sequence. Fixes `(forward-comment -1)'.
6520         * syntax.c (find_start_of_comment):
6521         Return position just past last comment-end character for all cases
6522         (previously was only done for two-char comment-end sequences).
6523         * syntax.c (forward-comment):
6524         Take value returned from `find_end_of_comment', rather than
6525         incrementing it.
6526         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
6527         Properly deal with BUFFERP (syntax_cache.object)
6528
6529 2001-02-17  Martin Buchholz  <martin@xemacs.org>
6530
6531         * alloc.c (Fgarbage_collect): 
6532         * alloc.c (make_bit_vector_from_byte_vector):
6533         -Wsign-compare-correctness.
6534
6535 2001-02-16  Martin Buchholz  <martin@xemacs.org>
6536
6537         * lisp-union.h (XSETINT): Eliminate unnecessary temp var.
6538         (XSETCHAR): Likewise.
6539         (XSETOBJ): Likewise.
6540
6541 2001-02-15  Martin Buchholz  <martin@xemacs.org>
6542
6543         * mule-canna.c (canna-func-delete_previous): 
6544         Rename to canna-func-delete-previous.
6545
6546 2001-02-14  Martin Buchholz  <martin@xemacs.org>
6547
6548         * mule-ccl.c (ccl_driver): Warning suppression.  Use countof.
6549
6550 2001-02-13  Matt Tucker  <tuck@whistlingfish.net>
6551
6552         * font-lock.c (find_context): Fix C++ compile errors introduced by
6553         recent patch
6554
6555 2001-02-13  Martin Buchholz  <martin@xemacs.org>
6556
6557         * s/aix4.h: Later versions of IBM C compiler need a bug workaround
6558         pragma, but earlier ones barf on the same pragma.
6559
6560 2001-02-06  Mike Sperber <mike@xemacs.org>
6561
6562         * emacs.c (complex_vars_of_emacs): Add `mule-lisp-directory' and
6563         `configure-mule-lisp-directory'.
6564
6565 2001-02-12  Martin Buchholz  <martin@xemacs.org>
6566
6567         Make sure dump-id.c is compiled in the same way as other .c's.
6568         Fixes pdump compilation failure with HP's cc, which defaults to K&R.
6569         * dump-id.h: Remove.
6570         * emacs.c: Move dump-id.h into dumper.h.
6571         * dumper.h: Move dump-id.h into dumper.h.
6572         * Makefile.in.in:
6573         Use standard .c.o rule for building dump-id.o.
6574         Remove preprocessor flags from link command.
6575         Add dump-id.o to ${otherobjs} if PDUMP.
6576
6577 2001-02-07  Matt Tucker  <tuck@whistlingfish.net>
6578
6579         Port FSF 20.7 syntax table improvements.
6580         * syntax.c.
6581         * syntax.h.
6582
6583         Fixups for new syntax table stuff.
6584         * dired.c: Include syntax.c.
6585         (Fdirectory_files): Initialize regex_match_object and
6586         regex_emacs_buffer.
6587         * extents.h: EXFUN Fnext_extent_change, Fprevious_extent_change,
6588         and Fget_char_property.
6589
6590         Use ported FSF 20.7 syntax table improvements.
6591         * font-lock.c.
6592         * regex.c.
6593         * search.c.
6594         
6595 2001-02-09  Martin Buchholz  <martin@xemacs.org>
6596
6597         * regex.c (Boolean): Renamed to `re_bool', to avoid conflict with
6598         Unixware's enum boolean from sys/types.h.
6599
6600 2001-02-10  Martin Buchholz  <martin@xemacs.org>
6601
6602         Fix support for building with latest Purify.
6603         * Makefile.in.in (PURIFY_LIBS): Remove thread flags.
6604         (PURIFY_FLAGS): Likewise.
6605
6606 2001-02-09  Martin Buchholz  <martin@xemacs.org>
6607
6608         * fileio.c (lisp_string_set_file_times): New.
6609         * fileio.c (Fcopy_file): Use it.
6610         Fixes bug:
6611         (copy-file filename non-ascii-filename t t)
6612         ==> No such file or directory, non-ascii-filename
6613
6614 2001-02-10  Martin Buchholz  <martin@xemacs.org>
6615
6616         * glyphs-x.c (generate_cursor_fg_bg): Avoid a warning.
6617         USHRT_MAX seems clearer than ~0 anyways.
6618
6619 2001-02-09  Martin Buchholz  <martin@xemacs.org>
6620
6621         dumper improvements.  Inspired by Olivier.
6622         * dumper.c (pdump_max_align): New.
6623         * dumper.c (pdump_add_entry): Use pdump_max_align.
6624         * dumper.c (pdump_get_entry_list): Likewise.
6625         * dumper.c (pdump_scan_by_alignment): Likewise.
6626         Don't iterate through unnecessary alignments.
6627         * dumper.c (pdump_file_get): No need to align result of malloc().
6628         * dumper.c (pdump_mallocadr): Remove.  
6629         The result of malloc() is guaranteed to be maximally aligned.
6630         * dumper.c: s/elmt/elt/g;
6631         * dumper.c (pdump_object_table): Allocate dynamically, not statically.
6632         * dumper.c (pdump_alert_undump_object): Likewise.
6633         * dumper.c (pdump_align_table): 
6634         Don't support alignments > 64.
6635         Store ALIGNOF's, not shift counts, in table.
6636
6637 2001-02-09  Martin Buchholz  <martin@xemacs.org>
6638
6639         * s/mingw32.h (HAVE_STRUCT_UTIMBUF): Remove.
6640         * s/windowsnt.h (HAVE_STRUCT_UTIMBUF): Remove.
6641         * systime.h: Use HAVE_UTIME.
6642         * sysdep.c (struct utimbuf): Remove.
6643         * sysdep.c (set_file_times): Prefer utime() to utimes().
6644         * config.h.in (HAVE_UTIME): New.
6645         * config.h.in (HAVE_UTIME_H): Remove.
6646         * config.h.in (HAVE_STRUCT_UTIMBUF): Remove.
6647
6648 2001-02-09  Martin Buchholz  <martin@xemacs.org>
6649
6650         * s/aix4.h: Hide #pragmas inside #ifndef NOT_C_CODE.
6651
6652 2001-02-08  Martin Buchholz  <martin@xemacs.org>
6653
6654         * s/irix6-0.h: Use the standard system memmove, not bcopy.
6655
6656 2001-02-08  Martin Buchholz <martin@xemacs.org>
6657
6658         * XEmacs 21.2.44 "Thalia" is released.
6659
6660 2001-02-06  Martin Buchholz  <martin@xemacs.org>
6661
6662         Fixes crashes in kill-emacs on some systems.
6663         * process-unix.c (unix_kill_child_process):
6664         It's OK for kill() to fail with ESRCH.
6665
6666 2001-02-07  Martin Buchholz  <martin@xemacs.org>
6667
6668         Contortions to make .gdbinit tricks work on most systems.
6669         * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
6670         * alloc.c (dbg_valmask): Make non-const.
6671         * alloc.c (dbg_typemask): Make non-const.
6672         * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
6673         * alloc.c (dbg_valbits): Make non-const.
6674         * alloc.c (dbg_gctypebits): Make non-const.
6675         * .gdbinit (decode_object): Make it work with AIX cc.
6676
6677 2001-02-06  Martin Buchholz  <martin@xemacs.org>
6678
6679         * elhash.c (make_general_lisp_hash_table):
6680         Use simpler and more efficient calloc to clear entries.
6681
6682 2001-02-07  Martin Buchholz  <martin@xemacs.org>
6683
6684         * window.c (window_scroll): Work around an AIX C compiler bug.
6685         Fixes 'scroll-up' does nothing problem with xlC.
6686
6687 2001-02-05  Martin Buchholz  <martin@xemacs.org>
6688
6689         * .gdbinit: Remove obsolete comment.
6690
6691 2001-01-31  Mike Alexander  <mta@arbortext.com>
6692
6693         * select.c (Fown_selection_internal): Set owned_p for device
6694         method correctly.
6695
6696 2001-02-01  Martin Buchholz  <martin@xemacs.org>
6697
6698         Port to g++ 2.97.
6699         "not" cannot be used as a macro name as it is an operator in C++
6700         * config.h.in: Stop #defining `not'.
6701         * chartab.c (check_category_char): not ==> not_p
6702         * chartab.h: Likewise.
6703         * regex.c (re_match_2_internal): Likewise.
6704
6705 2001-02-02  Martin Buchholz  <martin@xemacs.org>
6706
6707         * lisp-disunion.h: Fix up comments.
6708
6709 2001-01-31  Martin Buchholz  <martin@xemacs.org>
6710
6711         * keymap.c (define_key_check_and_coerce_keysym):
6712         (syms_of_keymap):
6713         Support mouse-6 and mouse-7 bindings in the obvious way.
6714
6715 2001-02-01  Martin Buchholz  <martin@xemacs.org>
6716
6717         * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
6718
6719 2001-01-30  Martin Buchholz  <martin@xemacs.org>
6720
6721         Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
6722         Previous patch missed DEFVAR_INT_MAGIC.
6723         Make sure future DEFVAR_foo use correct types.
6724         * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
6725         * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
6726         * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
6727         * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
6728         * (DEFVAR_INT): Likewise.
6729         * redisplay.c (vertical_clip): Should be of type Fixnum.
6730         * redisplay.c (horizontal_clip): Likewise.
6731         * lisp.h (dump_add_opaque_int): New.
6732         (dump_add_opaque_fixnum): New.
6733
6734 2001-01-29  Andy Piper  <andy@xemacs.org>
6735
6736         * glyphs-widget.c (check_valid_int_or_function): allow symbols
6737         since they can be eval'ed
6738
6739 2001-01-29  Martin Buchholz  <martin@xemacs.org>
6740
6741         * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
6742         Oops, XEmacs redefines `class'.  Use `typename' instead.
6743
6744 2001-01-28  Martin Buchholz  <martin@xemacs.org>
6745
6746         * dumper.c: Fix C++ compile errors.
6747
6748 2001-01-29  Martin Buchholz  <martin@xemacs.org>
6749
6750         * tparam.c: Use correct prototypes.
6751
6752 2001-01-28  Martin Buchholz  <martin@xemacs.org>
6753
6754         * sysproc.h: #include util.h for NetBSD's openpty.
6755
6756 2001-01-27  Martin Buchholz  <martin@xemacs.org>
6757
6758         More 64-bit correctness.
6759         The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
6760         Use a typedef `fixnum' for the type used for DEFVAR_INT.
6761         Fix up comments.
6762         This finally finishes the 64-bit SGI port.
6763         Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
6764         * symbols.c: Fix up comments and type casts.
6765         * symbols.c (do_symval_forwarding): s/int/Fixnum/g
6766         * symbols.c (store_symval_forwarding): s/int/Fixnum/g
6767         * symeval.h (Fixnum): New type.
6768         * symeval.h (symbol_value_type): Fix up comment.
6769
6770         * commands.h:
6771         * nt.c:
6772         * emacs.c:
6773         * data.c:
6774         * redisplay.c:
6775         * abbrev.c:
6776         * dired-msw.c:
6777         * event-Xt.c:
6778         * eldap.c:
6779         * window.c:
6780         * sound.c:
6781         * event-stream.c:
6782         * eval.c:
6783         * buffer.c:
6784         * mule-canna.c: A million DEFVAR_INTs here...
6785         * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
6786         * extents.c:
6787         * cmdloop.c:
6788         * lisp.h:
6789         * select-x.c:
6790         * console-x.h:
6791         * event-msw.c:
6792         * mule-wnnfns.c:
6793         * hpplay.c:
6794         * ralloc.c:
6795         * alloc.c:
6796         * keymap.c:
6797         * profile.c:
6798         s/int/Fixnum/g in DEFVAR_INT declarations.
6799
6800 2001-01-26  Martin Buchholz  <martin@xemacs.org>
6801
6802         Port pdump to SGI alignment-sensitive environment.
6803         Lisp Object sizeof methods now return aligned sizes.  Rely on that.
6804         Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
6805         properly aligned.
6806         Define and use aligned reading and writing macros.
6807         Use buffered stdio instead of posix i/o for faster dumping.
6808         Eliminate kludgy 256 byte space for header.
6809         Read and write from dump file using structs for alignment safety.
6810         * dumper.c (pdump_align_stream): New.
6811         * dumper.c (PDUMP_ALIGN_OUTPUT): New.
6812         * dumper.c (PDUMP_READ_ALIGNED): New.
6813         * dumper.c (PDUMP_WRITE_ALIGNED): New.
6814         * dumper.c (pdump_static_Lisp_Object): New struct.
6815         * dumper.c (pdump_static_pointer): New struct.
6816         * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
6817         * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
6818         * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
6819         * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
6820
6821         * dumper.c (pdump_backtrace):
6822         * dumper.c (pdump_get_indirect_count):
6823         * dumper.c (pdump_register_object):
6824         * dumper.c (pdump_register_struct):
6825         * dumper.c (pdump_reloc_one):
6826         * dumper.c (pdump_scan_by_alignment):
6827         * dumper.c (pdump_dump_from_root_struct_ptrs):
6828         * dumper.c (pdump_dump_opaques):
6829         * dumper.c (pdump_dump_rtables):
6830         * dumper.c (pdump_dump_from_root_objects):
6831         * dumper.c (pdump):
6832         * dumper.c (pdump_load_finish):
6833         Use aligned reading and writing.
6834
6835         * dumper.c (pdump_free): Make static.
6836         * dumper.c (pdump_hFile): Likewise.
6837         * dumper.c (pdump_hMap): Likewise.
6838
6839 2001-01-26  Martin Buchholz <martin@xemacs.org>
6840
6841         * XEmacs 21.2.43 "Terspichore" is released.
6842
6843 2001-01-25  Martin Buchholz  <martin@xemacs.org>
6844
6845         Type fiddling for window_config.saved_windows_count
6846         * window.c (struct window_config): 
6847         Make saved_windows_count member unsigned.
6848         * window.c (sizeof_window_config_for_n_windows): 
6849         Make parameter unsigned.
6850         * window.c (mark_window_config):
6851         * window.c (window_config_equal):
6852         * window.c (free_window_configuration):
6853         * window.c (Fset_window_configuration):
6854         * window.c (count_windows):
6855         * window.c (Fcurrent_window_configuration):
6856         * window.c (reinit_vars_of_window):
6857         Update all callers and users.
6858
6859 2001-01-25  Martin Buchholz  <martin@xemacs.org>
6860
6861         Alignment correctness for flexible arrays.
6862         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
6863         Make alignment-correct. Add interesting comments.
6864         * alloc.c (size_vector):
6865         * alloc.c (make_vector_internal):
6866         * alloc.c (make_bit_vector_internal):
6867         * alloc.c (sweep_bit_vectors_1):
6868         * fns.c (size_bit_vector):
6869         Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
6870         * window.c (sizeof_window_config_for_n_windows): 
6871         Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
6872
6873 2001-01-24  Martin Buchholz  <martin@xemacs.org>
6874
6875         * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
6876
6877 2001-01-23  Andy Piper  <andy@xemacs.org>
6878
6879         * select.c (Fown_selection_internal): pass owned_p
6880
6881         * select-msw.c (mswindows_own_selection): New Signature.
6882
6883         * console.h (struct console_methods): add owned_p to
6884         _own_selection.
6885
6886         * select-x.c (x_own_selection): pass owned_p
6887         (hack_motif_clipboard_selection): use owned_p
6888         (vars_of_select_x): new variable -
6889         x_selection_strict_motif_ownership.
6890
6891 2001-01-23  Martin Buchholz  <martin@xemacs.org>
6892
6893         * specifier.h (specifier_data_offset): Remove pointless parens.
6894         * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
6895
6896 2001-01-24  Martin Buchholz  <martin@xemacs.org>
6897
6898         Make Lisp_Object sizeof methods be alignment-correct.
6899         pdump must restore objects to the same alignment as the C compiler
6900         assumes.  It really matters on SGIs.
6901         * lstream.c (aligned_sizeof_lstream): New.
6902         (sizeof_lstream): Use aligned_sizeof_lstream.
6903         (Lstream_new): Likewise.
6904         * opaque.c (aligned_sizeof_opaque): New.
6905         (sizeof_opaque): Use aligned_sizeof_opaque.
6906         (make_opaque): Likewise.
6907         * specifier.c (aligned_sizeof_specifier): New.
6908         (sizeof_specifier): Use aligned_sizeof_specifier.
6909         (make_specifier_internal): Likewise.
6910
6911 2001-01-23  Martin Buchholz  <martin@xemacs.org>
6912
6913         * lstream.h (struct lstream): Use max_align_t for trailing data.
6914         * specifier.h (struct Lisp_Specifier): Likewise.
6915
6916 2001-01-22  Martin Buchholz  <martin@xemacs.org>
6917
6918         * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
6919         (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
6920         (CCL_SUSPEND): Likewise.
6921         (CCL_INVALID_CMD): Likewise.
6922         (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
6923         (ccl_driver): Likewise.
6924         (CCL_WRITE_CHAR): Macro hygiene.
6925         (CCL_WRITE_STRING): Macro hygiene.
6926
6927 2001-01-22  Martin Buchholz  <martin@xemacs.org>
6928
6929         Port "portable" dumper to SunOS 4 and HP-UX.
6930         * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
6931         * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
6932         * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
6933
6934 2001-01-22  Martin Buchholz  <martin@xemacs.org>
6935
6936         * lisp.h (ALIGNOF): A better definition for C++.
6937
6938 2001-01-20  Martin Buchholz  <martin@xemacs.org>
6939
6940         Macro hygiene.
6941         Fix printf warnings: int format, long int arg.
6942         * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
6943         (PUSH_FAILURE_POINT): Use correct printf formats.
6944         (POP_FAILURE_POINT): Use correct printf formats.  
6945         Use do {...} while (0)
6946
6947 2001-01-20  Martin Buchholz <martin@xemacs.org>
6948
6949         * XEmacs 21.2.42 "Poseidon" is released.
6950
6951 2001-01-20  Martin Buchholz  <martin@xemacs.org>
6952
6953         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
6954
6955 2001-01-19  Martin Buchholz  <martin@xemacs.org>
6956
6957         De-kludgify FIXED_TYPE free list frobbing.
6958         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
6959         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
6960         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
6961         * alloc.c (Lisp_Free): New pseudo lisp object definition.
6962         * alloc.c (LRECORD_FREE_P): New.
6963         * alloc.c (MARK_LRECORD_AS_FREE): New.
6964         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
6965         * alloc.c (STRUCT_FREE_P): Deleted.
6966         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
6967         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
6968         * alloc.c (STRING_CHARS_FREE_P): New.
6969         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
6970         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
6971         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
6972         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
6973         * alloc.c (resize_string): Use new definitions.
6974         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
6975         * alloc.c (verify_string_chars_integrity): Use new definitions.
6976         * alloc.c (compact_string_chars): Use new definitions.
6977         * alloc.c: Update monster comments.
6978         * lrecord.h (lrecord_type): Add some new lrecord types for
6979         alloc.c's use.
6980
6981 2001-01-18  Martin Buchholz  <martin@xemacs.org>
6982
6983         Improve alignment hackery.
6984         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
6985         (max_align_t): Moved from opaque.h - general purpose.
6986         (ALIGN_PTR): Use size_t, not long.
6987         * opaque.h (max_align_t): Move to lisp.h.
6988
6989 2001-01-18  Norbert Koch  <nk@LF.net>
6990
6991         * gui.h: Fix and add prototypes to fix build problems.
6992
6993 2001-01-18  Martin Buchholz  <martin@xemacs.org>
6994
6995         temacs is going away, so `dump-temacs' is now a bad name.
6996         * .dbxrc (dump-temacs): Rename to `dmp'.
6997         * .gdbinit (dump-temacs): Rename to `dmp'.
6998
6999 2001-01-17  Andy Piper  <andy@xemacs.org>
7000
7001         * glyphs.c (print_image_instance): comment to make martin happy.
7002
7003         * glyphs-x.c (x_redisplay_widget): update faces after a frame
7004         change.
7005
7006         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
7007         activation.
7008         (mswindows_tab_control_redisplay): warning suppression.
7009
7010         * glyphs-widget.c (widget_update): re-write to cope with updated
7011         items.
7012         (widget_instantiate): use new gui_item functions.
7013         (tab_control_update): deleted.
7014         (progress_gauge_update): deleted.
7015         (image_instantiator_progress_guage): take out update reference.
7016         (image_instantiator_tree_view): ditto.
7017         (image_instantiator_tab_control): ditto.
7018
7019         * gui.c (widget_gui_parse_item_keywords): new function. Do things
7020         Right the new way.
7021         (gui_item_add_keyval_pair): re-write to cope with descriptors and
7022         return whether anything was changed.
7023         (update_gui_item_keywords): as it sounds.
7024
7025         * gui.h: declare widget_gui_parse_item_keywords.
7026
7027         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
7028         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
7029
7030 2001-01-17  Martin Buchholz <martin@xemacs.org>
7031
7032         * XEmacs 21.2.41 "Polyhymnia" is released.
7033
7034 2001-01-16  Didier Verna  <didier@xemacs.org>
7035
7036         * glyphs.c (image_instantiate): don't use fallbacks when
7037         instantiating a face's background pixmap by inheritance.
7038
7039 2001-01-14  Mike Sperber <mike@xemacs.org>
7040
7041         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
7042         Conditionalize accordingly.
7043
7044 2001-01-16  Martin Buchholz  <martin@xemacs.org>
7045
7046         * dumper.c (pdump_file_get): Fix a compiler warning.
7047
7048 2001-01-15  Martin Buchholz  <martin@xemacs.org>
7049
7050         Make Purify happy when pdumping.
7051         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
7052         iniitalizing all bits of new lisp object memory.
7053         * symbols.c (Fmake_local_variable): Likewise.
7054         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
7055         * symbols.c (Fdefvaralias): Likewise.
7056         * mule-charset.c (vars_of_mule_charset): Likewise.
7057
7058 2001-01-15  Martin Buchholz  <martin@xemacs.org>
7059         Add the `-nd' flag when running pre-dump operations under the debugger.
7060         * .dbxrc (run-temacs): Add `-nd'.
7061         * .dbxrc (update-elc): Likewise.
7062         * .dbxrc (dump-temacs): Likewise.
7063         * .gdbinit (run-temacs): Likewise.
7064         * .gdbinit (check-temacs): Likewise.
7065         * .gdbinit (update-elc): Likewise.
7066         * .gdbinit (dump-temacs): Likewise.
7067
7068 2001-01-14  Martin Buchholz  <martin@xemacs.org>
7069
7070         Allow building 64-bit executables on AIX with GNU malloc, e.g.
7071         export OBJECT_MODE=64
7072         configure --pdump --use-union-type=no
7073         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
7074         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
7075
7076         * miscplay.c (sndcnv8U_2mono):
7077         Avoid two uses of `++' in the same expression.
7078         Suppresses a GCC warning.
7079
7080 2001-01-13  Martin Buchholz  <martin@xemacs.org>
7081
7082         Make sure future compilers don't miscompile alloc.c.
7083         * alloc.c:
7084         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
7085         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
7086
7087 2001-01-12  Martin Buchholz  <martin@xemacs.org>
7088
7089         * dumper.c: A little post-pdump-rename comment fixup.
7090
7091 2001-01-09  Jerry James  <james@eecs.ku.edu>
7092
7093         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
7094
7095 2001-01-13  Martin Buchholz  <martin@xemacs.org>
7096
7097         * *.[ch]: Globally rename symbols using the following `pdump-rename'
7098         script:
7099         #!/bin/sh
7100         replace_symbol () {
7101           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
7102         }
7103
7104         replace_symbol pdump_wire_lists pdump_weak_object_chains
7105         replace_symbol pdump_wire_list dump_add_weak_object_chain
7106
7107         replace_symbol pdump_wires pdump_root_objects
7108         replace_symbol pdump_wire dump_add_root_object
7109
7110         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
7111         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
7112
7113         replace_symbol dumpstructinfos pdump_root_struct_ptrs
7114         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
7115         replace_symbol dumpstructinfo pdump_root_struct_ptr
7116         replace_symbol dumpstruct dump_add_root_struct_ptr
7117
7118         replace_symbol dumpopaque dump_add_opaque
7119         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
7120         replace_symbol dumpopaqueinfos pdump_opaques
7121         replace_symbol dumpopaqueinfo pdump_opaque
7122
7123         replace_symbol nb_structdump nb_root_struct_ptrs
7124         replace_symbol nb_opaquedump nb_opaques
7125
7126         replace_symbol align_table pdump_align_table
7127         replace_symbol dump_header pdump_header
7128
7129         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
7130         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
7131
7132
7133 2001-01-12  Martin Buchholz  <martin@xemacs.org>
7134
7135         * s/aix4.h: Keep the C for AIX compiler from overaggressively
7136         optimizing bytecount_to_charcount().
7137
7138 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
7139
7140         * config.h.in:
7141         (HAVE_DLFCN_H): Removed.
7142         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
7143
7144 2001-01-06  Martin Buchholz  <martin@xemacs.org>
7145
7146         Portable dumper maintainability improvements.
7147         * alloc.c (staticpro):
7148         * alloc.c (staticpro_nodump):
7149         * alloc.c (garbage_collect_1):
7150         * alloc.c (reinit_alloc_once_early):
7151         * alloc.c (init_alloc_once_early):
7152         * alloc.c: Move dumper functions to alloc.c.
7153         * dumper.c (pdump_backtrace):
7154         * dumper.c (pdump_dump_structs):
7155         * dumper.c (pdump_dump_opaques):
7156         * dumper.c (pdump_dump_rtables):
7157         * dumper.c (pdump_dump_wired):
7158         * dumper.c (pdump):
7159         * dumper.c (pdump_load_check):
7160         * dumper.c (pdump_load_finish):
7161         * dumper.c (pdump_file_unmap):
7162         * dumper.c (pdump_file_get):
7163         * dumper.c (pdump_resource_free):
7164         * dumper.c (pdump_resource_get):
7165         * dumper.c (pdump_file_free):
7166         * dumper.c (pdump_file_try):
7167         * dumper.c (pdump_load):
7168         Remove fixed size limits on staticpro(), staticpro_nodump(),
7169         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
7170         Remove custom code for dumping lrecord_implementations_table - use
7171         dumpopaque instead.
7172         Remove (most of the) custom code for dumping staticpros - dump it
7173         like any other dynarr.
7174
7175         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
7176         * dumper.c: Moved functions from alloc.c.
7177         * alloc.c (dumpstruct): Moved to dumper.c.
7178         * alloc.c (dumpopaque): Likewise.
7179         * alloc.c (pdump_wire): Likewise.
7180         * alloc.c (pdump_wire_list): Likewise.
7181
7182         * lisp.h (Dynarr_sizeof): New.
7183         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
7184         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
7185         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
7186
7187         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
7188         * lisp.h (dumpopaque): ditto.
7189         * lisp.h (pdump_wire): ditto.
7190         * lisp.h (pdump_wire_list): ditto.
7191
7192 2001-01-09  Martin Buchholz  <martin@xemacs.org>
7193
7194         * make-src-depend (PrintPatternDeps):
7195         Use `sort' to make output independent of perl version.
7196
7197 2001-01-08  Martin Buchholz  <martin@xemacs.org>
7198
7199         Port to Netbsd 1.5.
7200         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
7201         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
7202
7203 2001-01-03  Didier Verna  <didier@xemacs.org>
7204
7205         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
7206         that `focus_frame' is alive before thinking of calling
7207         `redisplay_redraw_cursor' on it.
7208
7209 2001-01-08  Martin Buchholz <martin@xemacs.org>
7210
7211         * XEmacs 21.2.40 is released.
7212
7213 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
7214
7215         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
7216
7217 2001-01-06  Martin Buchholz  <martin@xemacs.org>
7218
7219         * alloc.c (dbg_valmask): Make const.
7220         * alloc.c (dbg_typemask): Make const.
7221         * alloc.c (dbg_USE_UNION_TYPE): Make const.
7222         * alloc.c (dbg_valbits): Make const.
7223         * alloc.c (dbg_gctypebits): Make const.
7224
7225 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
7226
7227         * redisplay-x.c (x_bevel_area):
7228         redisplay.h (struct rune):
7229         Typo fixes in comments.
7230
7231 2001-01-05  Andy Piper  <andy@xemacs.org>
7232
7233         * glyphs-x.c (x_redisplay_widget): use size changed for offset
7234         adjustment.
7235
7236         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
7237
7238 2001-01-05  Martin Buchholz  <martin@xemacs.org>
7239
7240         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
7241
7242         * mule-ccl.c (stack_idx_of_map_multiple):
7243         Non const global data must not be initialized!
7244         Found by MIYASHITA Hisashi.
7245
7246 2001-01-02  Andy Piper  <andy@xemacs.org>
7247
7248         * frame.c (change_frame_size): make sure frame size is always
7249         marked as changed.
7250
7251         * glyphs.c (image_instance_layout): minor code reuse.
7252
7253         * window.c (Fcurrent_window_configuration): revert previous
7254         change.
7255
7256 2001-01-02  Martin Buchholz  <martin@xemacs.org>
7257
7258         * glyphs.h:
7259         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
7260
7261 2000-12-31  Andy Piper  <andy@xemacs.org>
7262
7263         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
7264         when widget gets unmapped.
7265
7266         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
7267         function. Make sure widgets losing focus don't just drop it.
7268         (handle_focus_event_1): record the widget with focus.
7269
7270 2000-12-31  Andy Piper  <andy@xemacs.org>
7271
7272         * window.c (allocate_window): use
7273         make_image_instance_cache_hash_table.
7274         (make_dummy_parent): ditto.
7275         (Fset_window_configuration): ditto.
7276
7277         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
7278
7279         * glyphs.c (process_image_string_instantiator): use
7280         INSTANTIATOR_TYPE.
7281         (get_image_instantiator_governing_domain): ditto.
7282         (normalize_image_instantiator): ditto.
7283         (instantiate_image_instantiator): ditto.
7284         (make_image_instance_1): ditto.
7285         (image_instantiate): ditto. Key on glyph *and* instantiator type.
7286         (instantiator_eq_equal): new function for use with instance hash
7287         tables.
7288         (instantiator_eq_hash): ditto.
7289         (make_image_instance_cache_hash_table): create a suitable hash
7290         table for storing image instances.
7291
7292         * elhash.h (hash_table_weakness): new internal weakness type
7293         HASH_TABLE_KEY_CAR_VALUE_WEAK.
7294         declare new functions.
7295
7296         * elhash.c (finish_marking_weak_hash_tables): introduce yet
7297         another weakness type for glyphs.
7298         (make_standard_lisp_hash_table): new function split out from
7299         make_general_lisp_hash_table.
7300         (make_lisp_hash_table): call make_standard_lisp_hash_table.
7301         (hash_table_instantiate): ditto.
7302         (Fmake_hash_table): ditto.
7303
7304 2000-12-31  Martin Buchholz <martin@xemacs.org>
7305
7306         * XEmacs 21.2.39 is released.
7307
7308 2000-12-29  Andy Piper  <andy@xemacs.org>
7309
7310         * menubar.c (menubar_visible_p_changed): signal the frame changed.
7311
7312         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
7313         the frame has changed so that we pick up geometry changes such as
7314         menubar visibility.
7315
7316 2000-12-28  Andy Piper  <andy@xemacs.org>
7317
7318         * lastfile.c (my_ebss): make a char array so we can pad the
7319         bss. Fixes cygwin unexec.
7320
7321         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
7322
7323 2000-12-26  Andy Piper  <andy@xemacs.org>
7324
7325         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
7326         comments and try and be more precise about a non-/SIGIO world.
7327         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
7328         SIGIO.
7329
7330         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
7331         we don't normalize to zero width or height.
7332
7333 2000-12-24  Andy Piper  <andy@xemacs.org>
7334
7335         * Makefile.in.in (ldflags): add -mwindows when appropriate.
7336
7337 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
7338
7339         * s/sco5.h: SCO 5 has pty support.
7340
7341 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
7342
7343         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
7344         input-method-xlib.c contains whole contents of input-method-xfs.c,
7345         so we can use input-method-xlib.c's code for USE_XFONTSET
7346         using #ifdefs.
7347         * input-method-xfs.c: removed.
7348
7349 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
7350
7351         * file-coding.h (enum coding_category_type): reorder enumerators to
7352         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
7353         (now one greater than largest real coding_category_type enumerator).
7354         * file-coding.c (coding_category_symbol, coding_category_by_priority,
7355         coding_category_system, fcd_descriptihon_1, decode_coding_category,
7356         Fcoding_category_list, Fset_coding_priority_list,
7357         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
7358         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
7359
7360 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
7361
7362         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
7363         * redisplay-output.c (redisplay_output_window): Clear top of window
7364         when face is changed.
7365         * redisplay-x.c (x_redraw_exposed_window): Call
7366         redisplay_clear_top_of_window.
7367         * redisplay.h: Publish redisplay_clear_top_of_window.
7368
7369 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
7370
7371         * buffer.c (Fkill_buffer): Map over all devices.
7372         * window.c (window_loop): Remove UNSHOW_BUFFER code.
7373         (list_windows): New function.
7374         (list_all_windows): Ditto.
7375         (Freplace_buffer_in_windows): Use them.
7376
7377 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
7378
7379         * database.c (berkdb_subtype): Recognize new subtype `queue'.
7380         (Fopen_database): Use `db_create' instead of `db_open'.
7381         (syms_of_database): Initialize Qqueue.
7382
7383 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
7384
7385         * buffer.c (common_init_complex_vars_of_buffer): Initialize
7386         buffer_local_face_property.
7387         * buffer.h (struct buffer): New member buffer_local_face_property.
7388         * window.c (Fset_window_buffer):  Mark window's face as changed
7389         when buffer has buffer local face.
7390         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
7391         * objects.c (color_after_change): Set buffer_local_face_property
7392         when locale of face specifier is buffer.
7393         * objects.c (font_after_change): Ditto.
7394         * objects.c (face_boolean_after_change): Ditto.
7395         * glyphs.c (image_after_change): Ditto.
7396
7397 2000-12-09  Dan Holmsand  <dan@eyebee.com>
7398
7399         * nt.c (mswindows_fstat): Report file permissions, volume serial
7400         number, etc. Code adapted from FSF Emacs 20.7.
7401
7402 2000-12-09  Dan Holmsand  <dan@eyebee.com>
7403
7404         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
7405         of stat when we don't have symbolic links, to make sure
7406         mswindows_stat is called on mswindows.
7407
7408 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
7409
7410         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
7411
7412 2000-12-12  Martin Buchholz  <martin@xemacs.org>
7413
7414         * doprnt.c (emacs_doprnt_1): More printing fixes.
7415         Make printing of numbers compatible with libc and FSF Emacs.
7416         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
7417         Use the system printf to do most of the hard work of formatting,
7418         instead of doprnt_1().
7419         Calculate memory to allocate for format string.
7420         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
7421         (doprnt_1): Cleaner code and documentation.
7422
7423 2000-12-01  Jerry James  <james@eecs.ukans.edu>
7424
7425         * Makefile.in.in: Use the loop variable to install headers.
7426
7427 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
7428
7429         * window.c (Fsplit_window): Don't invalidate face cache.
7430
7431 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
7432
7433         * minibuf.c (Fall_completions): Undo the previous change
7434         which removed checking elements start with space.
7435
7436 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
7437
7438         * mule-canna.c: Didier suppression.
7439
7440 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
7441
7442         * mule-canna.c: rename static unsigned char buf[] to key_buffer
7443         (warning suppression).  Add English comment translations.
7444
7445 2000-12-05  Martin Buchholz  <martin@xemacs.org>
7446
7447         * unexelfsgi.c (unexec): Better test for mmap failure.
7448
7449 2000-12-05  Martin Buchholz <martin@xemacs.org>
7450
7451         * XEmacs 21.2.38 is released.
7452
7453 2000-12-05  Martin Buchholz  <martin@xemacs.org>
7454
7455         * redisplay.c (bar-cursor): Make a user variable.
7456
7457         * symsinit.h: Add init_postgresql_from_environment.
7458
7459 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
7460
7461         * regex.c: Convert to clean C.
7462
7463 2000-12-05  Dan Holmsand  <dan@eyebee.com>
7464
7465         * realpath.c:
7466         Don't #include sysfile.h. Revert to duplicating PATH_MAX
7467         initialization.
7468         (sys_readlink): renamed to system_readlink to avoid conflict with
7469         the other sys_readlink.
7470
7471 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
7472
7473         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
7474
7475 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
7476
7477         * postgresql.c (init_postgresql_from_environment): new function.
7478         (vars_of_postgresql): Move code initializing Lisp variables out and
7479         into init_postgresql_from_environment.
7480         emacs.c (main_1): Call init_postgresql_from_environment if and only
7481         if running a dumped XEmacs.
7482
7483 2000-08-31  Dan Holmsand  <dan@eyebee.com>
7484
7485         * buffer.c: Make find-file-compare-truenames default to true on
7486         windows.
7487
7488         * realpath.c (win32_abs_start):
7489         (cygwin_readlink):
7490         (win32_readlink): New functions.
7491         (xrealpath): Return really real filenames on windows.
7492
7493         * fileio.c (Ffile_truename): Make file-truename work on windows.
7494
7495 2000-11-29  Didier Verna  <didier@xemacs.org>
7496
7497         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
7498         * faces.c (update_face_cachel_data): use it.
7499         * faces.c (add_face_cachel): use it. Complete background pixmap
7500         frobbing in face cache if `update_face_cachel_data' has not done so.
7501
7502 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
7503
7504         * search.c (string_match_1): Don't set last_thing_searched
7505         when search failed.
7506
7507 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
7508
7509         * buffer.c: Include casetab.h
7510         (common_init_complex_vars_of_buffer): Use new case-table object.
7511         * buffer.h: Include casetab.h
7512         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
7513         (DOWNCASE_TABLE_OF): Ditto.
7514         * bufslots.h: Remove char-tables and add case-table.
7515         * casetab.c: Include casetab.h
7516         (CASE_TABLE_P): Removed.
7517         (mark_case_table): New function.
7518         (allocate_case_table): New function.
7519         (Fcase_table_p): Use new case-table.
7520         (case_table_char): New function.
7521         (Fget_case_table): Ditto.
7522         (Fput_case_table): Ditto.
7523         (Fput_case_table_pair): Ditto.
7524         (Fcopy_case_table): Ditto.
7525         (Fcurrent_case_table): Return case-table.
7526         (Fstandard_case_table): Return case-table.
7527         (Fset_case_table): Fix doc-string.
7528         (set_case_table): Use case-table
7529         (syms_of_casetab): DEFSUBR new functions.
7530         (complex_vars_of_casetab): Set up standard case-table.
7531         * casetab.h: New file.
7532         * editfns.c: Include casetab.h
7533         (Fcompare_buffer_substrings): Use case-table.
7534         * inline.c: Include casetab.h
7535         * lisp.h: Remove bogus extern.
7536         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
7537         * search.c: Include casetab.h
7538         (TRANSLATE_ASCII): Removed.
7539         (TRANSLATE): Unconditionally translate character.
7540         (looking_at_1): Use case-table.
7541         (string_match_1): Ditto.
7542         (fast_string_match): Ditto.
7543         (search_command): Ditto.
7544         (search_buffer): Separate boyer_moore.  Check whether
7545         boyer_moore is possible.
7546         (simple_search): New function.
7547         (boyer_moore): Separated from search_buffer. Translate char.
7548
7549 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
7550
7551         * regex.c (RE_TR_ASCII): Removed.
7552         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
7553         (PATFETCH): Call PATFETCH_RAW.
7554         (PATFETCH_RAW): Fetch Emchar.
7555         (PATUNFETCH): Decrement charptr.
7556         (GET_BUFFER_SPACE): Rename b to buf_end.
7557         (BUF_PUSH): Ditto.
7558         (BUF_PUSH_2): Ditto.
7559         (BUF_PUSH_3): Ditto.
7560         (EXTEND_BUFFER): Ditto.
7561         (SET_LIST_BIT): Ditto.
7562         (regex_compile): Ditto.  Translate non ASCII char.
7563         (compile_range): Ditto.
7564         (re_search_2): Ditto.
7565         (re_match_2_internal): Compare Emchar.
7566         (bcmp_translate): Ditto.
7567
7568 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
7569
7570         * lisp.h (basic char/int typedefs):  comment improvement.
7571
7572 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
7573
7574         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
7575         unstomp inhibit_site_lisp.  Improve comments.
7576
7577 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
7578
7579         * mule-charset.c (Fcharset_property):  improve type checking, comments.
7580
7581 2000-11-28  Andy Piper  <andy@xemacs.org>
7582
7583         * redisplay-output.c (redisplay_output_subwindow): make sure we do
7584         clipped display for windows in the gutter also.
7585         (redisplay_display_boxes_in_window_p): change semantics of return
7586         codes to be more intuitive.
7587
7588         * gutter.h: declare display_boxes_in_gutter_p.
7589
7590         * gutter.c (display_boxes_in_gutter_p): new function for
7591         redisplay.
7592
7593 2000-11-22  Andy Piper  <andy@xemacs.org>
7594
7595         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
7596         autodetect domain.
7597
7598 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
7599
7600         * callproc.c (Fold_call_process_internal):
7601         * gpm.c (Freceive_gpm_event):
7602         (tty_get_foreign_selection): Might be just warning supression.
7603         * fileio.c (Fwrite_region_internal):
7604         (Fset_visited_file_modtime):
7605         * keymap.c (event_matches_key_specifier_p):
7606         Initialize GCPROed variable.
7607
7608         * menubar-x.c (command_builder_find_menu_accelerator):
7609         Initialize before use.
7610
7611 2000-11-23  Andy Piper  <andy@xemacs.org>
7612
7613         * unexcw.c (unexec): make the resulting executable executable.
7614
7615 2000-11-21  Martin Buchholz  <martin@xemacs.org>
7616
7617         * doc.c (get_doc_string):
7618         Use size_t, not int, for result of XSTRING_LENGTH.
7619
7620         * cmds.c (Fdelete_char):
7621         * cmds.c (Fpoint_at_eol):
7622         * cmds.c (Fself_insert_command):
7623         Use EMACS_INT, not int, for result of XINT.
7624         Someday, someone will want to insert more than 2**31 identical characters.
7625
7626         * cmds.c (Fdelete_char):
7627         * cmds.c (Fdelete_backward_char):
7628         * syntax.c (Fforward_word):
7629         * syntax.c (Fforward_comment):
7630         Make COUNT argument optional, for consistency with forward-char et al.
7631
7632 2000-11-22  Martin Buchholz  <martin@xemacs.org>
7633
7634         * lisp.h:
7635         * print.c (long_to_string):
7636         Return a useful value: the pointer at end of data written.
7637
7638         * doprnt.c:
7639         Use `static const char * const' for constant strings.
7640         (union printf_arg): Delete `i', `ui' members.
7641         (get_doprnt_args):
7642         (emacs_doprnt_1):
7643         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
7644         Do all printf-ing via the `l' specifier.
7645         Use EMACS_INT instead of int.
7646         Optimize.
7647
7648 2000-11-20  Didier Verna  <didier@xemacs.org>
7649
7650         * faces.c (update_face_cachel_data): don't frob the background
7651         pixmap when the window is being created. The face is needed but
7652         does not exist yet.
7653
7654 2000-11-20  Andy Piper  <andy@xemacs.org>
7655
7656         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
7657         messing with a debug environment.
7658
7659 2000-11-20  Martin Buchholz  <martin@xemacs.org>
7660
7661         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
7662
7663 2000-11-20  Martin Buchholz  <martin@xemacs.org>
7664
7665         * casetab.c (Fcase_table_p): Fix compile error and crash.
7666
7667 2000-11-18  Philip Aston  <philipa@mail.com>
7668
7669         * s/cygwin32.h: Cygwin has SVR4-like pty support.
7670
7671 2000-11-18  Martin Buchholz  <martin@xemacs.org>
7672
7673         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
7674         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
7675
7676 2000-11-17  Martin Buchholz  <martin@xemacs.org>
7677
7678         * config.h.in: Define HAVE_ELF_H if elf.h exists.
7679         * unexelf.c: Use HAVE_ELF_H.
7680         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
7681         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
7682         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
7683         Greg Harrington <greg_harrington@hotmail.com> provided a machine
7684         for testing.
7685         So this is an unexelfsgi.c from a different line of development.
7686
7687 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
7688
7689         * regex.c (RE_TR_ASCII): New function.
7690         (RE_TRANSLATE): Call it.
7691
7692 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
7693
7694         * buffer.h (TRT_TABLE_OF): Remove assert.
7695         (IN_TRT_TABLE_DOMAIN): Removed.
7696
7697 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
7698
7699         * free-hook.c (log_gcpro):
7700         (show_gcprohist): Add support for GCPRO5.
7701
7702 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
7703
7704         * emacs.c (main_1): Improve -sd error message when --pdump=no.
7705
7706 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
7707
7708         * symeval.h: Declare flush_all_buffer_local_cache.
7709
7710         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
7711         (flush_buffer_local_cache): Added.
7712         (flush_all_buffer_local_cache): Added.
7713
7714         * lrecord.h: Remove unused XD_LO_RESET_NIL.
7715
7716         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
7717         (pdump_dump_data): Ditto.
7718         (pdump_reloc_one): Ditto.
7719         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
7720         before dumping.
7721
7722
7723 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
7724
7725         * buffer.c: Remove if 0'ed entry.
7726         * buffer.h: Rewrite TRT to use char-table.
7727         * bufslots.h: Remove mirror tables.
7728         * casetab.c: Remove mirror tables.
7729         (CASE_TABLE_P): New macro.
7730         (Fcase_table_p): Element of a case table is string or char-table.
7731         (make_mirror_trt_table): Removed.
7732         (set_case_table): Setup char-table from strings for backward
7733         compatibility.
7734         * dired.c (Fdirectory_files):
7735         * dired-msw.c: (mswindows_get_files):
7736         * lisp.h: Change prototype of re_pattern_buffer.
7737         * regex.c: (RE_TRANSLATE): New macro.
7738         (TRANSLATE_P): Ditto.
7739         Change translate to type RE_TRANSLATE_TYPE.
7740         * regex.h: Define RE_TRANSLATE_TYPE
7741         * search.c (TRANSLATE): New macro.
7742         (TRANSLATE_ASCII): New macro.
7743         Translate table is changed to Lisp_Object.
7744         (signal_failure): Inhibit return.
7745
7746 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
7747
7748         * device-msw.c:
7749         * eldap.c:
7750         * event-Xt.c:
7751         * event-stream.c:
7752         * print.c:
7753         Do UNGCPRO before return.
7754
7755 2000-11-14  Martin Buchholz <martin@xemacs.org>
7756
7757         * XEmacs 21.2.37 is released.
7758
7759 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
7760
7761         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
7762         Add comments about discarded return value.
7763
7764 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
7765
7766         * callint.c:
7767         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
7768
7769 2000-10-27  Andy Piper  <andy@xemacs.org>
7770
7771         * gutter.c (Fset_default_gutter_position): default left and right
7772         gutters to visible.
7773         (calculate_gutter_size): calculate resonable heuristic for left
7774         and right gutter sizes.
7775         (specifier_vars_of_gutter): change left and right gutter sizes to
7776         autodetect.
7777         (calculate_gutter_size_from_display_lines): new function.
7778         (output_gutter): check for resizing on left and right gutters.
7779         (clear_gutter): don't special case top and left gutters.
7780         (specifier_vars_of_gutter): use new signature for
7781         set_specifier_caching.
7782
7783         * glyphs-x.c (x_redisplay_widget): spelling fix.
7784         * glyphs.c (specifier_vars_of_glyphs):
7785         * menubar.c (specifier_vars_of_menubar):
7786         * redisplay.c (specifier_vars_of_redisplay):
7787         * toolbar.c (specifier_vars_of_toolbar):
7788         * window.c (specifier_vars_of_window):
7789         * scrollbar.c (specifier_vars_of_scrollbar):
7790         (complex_vars_of_scrollbar): use new signature for
7791         set_specifier_caching.
7792
7793         * specifier.c (set_specifier_caching): include recompute flag.
7794         (recompute_one_cached_specifier_in_window): always recompute if
7795         flag set.
7796         (recompute_one_cached_specifier_in_frame): ditto.
7797
7798         * specifier.h (struct specifier_caching): add recompute flag.
7799
7800 2000-10-24  Andy Piper  <andy@xemacs.org>
7801
7802         * unexcw.c (copy_executable_and_dump_data_section): add new
7803         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
7804         5.0 happy.
7805
7806 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
7807
7808         * console-x.h (x_device): New member modifier_release_time.
7809         * event-Xt.c (x_handle_sticky_modifiers):
7810         Bound interval modifier keys are sticky.
7811         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
7812         * events.h: extern it.
7813
7814 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
7815
7816         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
7817
7818 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
7819
7820         * event-stream.c (execute_command_event): Preserve current_events
7821         and the like when event is misc-user-event.
7822         Inhibit quit during the call to maybe_echo_keys.
7823
7824 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
7825
7826         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
7827         symlink when buffer is killed.
7828         (inhibit_clash_detection): New variable.
7829
7830 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
7831
7832         * console.c (Fset_input_method): Trigger redisplay on tty.
7833
7834 2000-11-07  Martin Buchholz  <martin@xemacs.org>
7835
7836         * process.c (Fprocess_status): Revert to previous behavior:
7837         (process-status "nosuchprocess") ==> nil
7838
7839 2000-11-06  Martin Buchholz  <martin@xemacs.org>
7840
7841         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
7842         Work around another GCC 2.95.2 optimizer bug.
7843
7844 2000-11-02  Martin Buchholz  <martin@xemacs.org>
7845
7846         * process.c (Fget_process): Use LIST_LOOP_2.
7847         (kill_buffer_processes): Use LIST_LOOP_2.
7848
7849         * minibuf.c (Fall_completions):
7850         Delete old non-functional code for FSF fourth argument.
7851
7852         * frame.c (frame_matches_frame_spec):
7853         Renamed from `frame_matches_frametype'.  Update all callers.
7854         (device_matches_device_spec):
7855         Renamed from 'device_matches_console_spec'.  Update all callers.
7856
7857         * doc.c (Fsubstitute_command_keys):
7858         Remove buffer overflow crash.  Small code cleanups.
7859
7860         * casetab.c (check_case_table): Simpler code.
7861
7862         * window.c (Freplace_buffer_in_windows):
7863         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
7864         (and similar implementation) as Fdelete_windows_on.
7865         Update all callers.
7866
7867         * alloc.c (Fmake_list):
7868         * alloc.c (make_vector):
7869         * alloc.c (Fmake_vector):
7870         * alloc.c (make_bit_vector):
7871         * alloc.c (Fmake_bit_vector):
7872         * alloc.c (Fbit_vector):
7873         * alloc.c (Fmake_string):
7874         * alloc.c (Fpurecopy):
7875         * alloc.c (Fmemory_limit):
7876         * buffer.c:
7877         * buffer.c (Fget_buffer):
7878         * buffer.c (Fkill_buffer):
7879         * buffer.c (complex_vars_of_buffer):
7880         * bytecode.c (Fcompiled_function_stack_depth):
7881         * callint.c (Fprefix_numeric_value):
7882         * event-stream.c:
7883         * event-stream.c (Fread_key_sequence):
7884         * casetab.c:
7885         * casetab.c (Fcase_table_p):
7886         * casetab.c (check_case_table):
7887         * casetab.c (Fset_case_table):
7888         * casetab.c (Fset_standard_case_table):
7889         * chartab.c:
7890         * chartab.c (Fchar_table_type):
7891         * chartab.c (Freset_char_table):
7892         * chartab.c (Fget_char_table):
7893         * chartab.c (Fget_range_char_table):
7894         * chartab.c (Fput_char_table):
7895         * chartab.c (Fmap_char_table):
7896         * chartab.c (Fcategory_table_p):
7897         * chartab.c (Fcheck_category_at):
7898         * chartab.c (Fchar_in_category_p):
7899         * chartab.c (Fcategory_table):
7900         * chartab.c (Fcopy_category_table):
7901         * chartab.c (Fset_category_table):
7902         * chartab.c (Fcategory_designator_p):
7903         * chartab.c (Fcategory_table_value_p):
7904         * cmds.c (Fdelete_char):
7905         * cmds.c (Fdelete_backward_char):
7906         * cmds.c (Fself_insert_command):
7907         * cmds.c (Fself_insert_internal):
7908         * console.c (Fvalid_console_type_p):
7909         * console.c (Fcdfw_console):
7910         * console.c (Fconsole_type):
7911         * console.c (Fconsole_name):
7912         * console.c (Fconsole_device_list):
7913         * console.c (Fconsole_on_window_system_p):
7914         * data.c:
7915         * data.c (Feq):
7916         * data.c (Fold_eq):
7917         * data.c (Fsubr_interactive):
7918         * data.c (Fchar_to_int):
7919         * data.c (Fint_to_char):
7920         * data.c (Fsetcar):
7921         * data.c (Fsetcdr):
7922         * data.c (Fnumber_to_string):
7923         * data.c (Fstring_to_number):
7924         * data.c (Frem):
7925         * database.c (mark_database):
7926         * database.c (finalize_database):
7927         * database.c (Fdatabase_live_p):
7928         * database.c (Fdatabasep):
7929         * device-x.c (Fx_get_resource):
7930         * device.c (Fdfw_device):
7931         * dired.c:
7932         * dired.c (Ffile_name_completion):
7933         * dired.c (Ffile_name_all_completions):
7934         * dired.c (Fuser_name_completion):
7935         * dired.c (Fuser_name_completion_1):
7936         * dired.c (Fuser_name_all_completions):
7937         * doc.c (Fdocumentation):
7938         * doc.c (Fdocumentation_property):
7939         * doc.c (Fsubstitute_command_keys):
7940         * editfns.c:
7941         * editfns.c (Fchar_to_string):
7942         * editfns.c (Fstring_to_char):
7943         * editfns.c (Ftemp_directory):
7944         * editfns.c (Finsert_char):
7945         * editfns.c (Fbuffer_substring_no_properties):
7946         * editfns.c (Fnarrow_to_region):
7947         * editfns.c (Fchar_equal):
7948         * editfns.c (Fchar_Equal):
7949         * editfns.c (Ftranspose_regions):
7950         * emacs.c (Fdump_emacs):
7951         * eval.c (Fthrow):
7952         * eval.c (Fcommand_execute):
7953         * eval.c (Fautoload):
7954         * eval.c (Fbacktrace):
7955         * eval.c (Fbacktrace_frame):
7956         * events.c:
7957         * events.c (Fcopy_event):
7958         * events.c (Fcharacter_to_event):
7959         * events.c (Fevent_button):
7960         * events.c (Fevent_process):
7961         * extents.c:
7962         * extents.c (Fnext_extent_change):
7963         * extents.c (Fextent_property):
7964         * faces.c (Ffacep):
7965         * faces.c (Fmake_face):
7966         * file-coding.c:
7967         * file-coding.c (Fencode_shift_jis_char):
7968         * file-coding.c (Fencode_big5_char):
7969         * fileio.c (Ffile_name_directory):
7970         * fileio.c (Ffile_name_nondirectory):
7971         * fileio.c (Ffile_name_as_directory):
7972         * fileio.c (Fdirectory_file_name):
7973         * fileio.c (Ffile_truename):
7974         * fileio.c (Fsubstitute_in_file_name):
7975         * fileio.c (Ffile_modes):
7976         * fileio.c (Fset_file_modes):
7977         * fileio.c (Fset_default_file_modes):
7978         * fileio.c (Fverify_visited_file_modtime):
7979         * floatfns.c (Facos):
7980         * floatfns.c (Fasin):
7981         * floatfns.c (Fatan):
7982         * floatfns.c (Fcos):
7983         * floatfns.c (Fsin):
7984         * floatfns.c (Ftan):
7985         * floatfns.c (Fbessel_j0):
7986         * floatfns.c (Fbessel_j1):
7987         * floatfns.c (Fbessel_jn):
7988         * floatfns.c (Fbessel_y0):
7989         * floatfns.c (Fbessel_y1):
7990         * floatfns.c (Fbessel_yn):
7991         * floatfns.c (Ferf):
7992         * floatfns.c (Ferfc):
7993         * floatfns.c (Flog_gamma):
7994         * floatfns.c (Fexp):
7995         * floatfns.c (Fexpt):
7996         * floatfns.c (Flog):
7997         * floatfns.c (Flog10):
7998         * floatfns.c (Fsqrt):
7999         * floatfns.c (Fcube_root):
8000         * floatfns.c (Facosh):
8001         * floatfns.c (Fasinh):
8002         * floatfns.c (Fatanh):
8003         * floatfns.c (Fcosh):
8004         * floatfns.c (Fsinh):
8005         * floatfns.c (Ftanh):
8006         * floatfns.c (Fabs):
8007         * floatfns.c (Ffloat):
8008         * floatfns.c (Flogb):
8009         * floatfns.c (Fceiling):
8010         * floatfns.c (Ffloor):
8011         * floatfns.c (Fround):
8012         * floatfns.c (Ftruncate):
8013         * floatfns.c (Ffceiling):
8014         * floatfns.c (Fffloor):
8015         * floatfns.c (Ffround):
8016         * floatfns.c (Fftruncate):
8017         * fns.c (Fstring_equal):
8018         * fns.c (Fstring_lessp):
8019         * fns.c (concat2):
8020         * fns.c (concat3):
8021         * fns.c (vconcat2):
8022         * fns.c (vconcat3):
8023         * fns.c (Fsubstring):
8024         * fns.c (Fassoc):
8025         * fns.c (Fold_assoc):
8026         * fns.c (assoc_no_quit):
8027         * fns.c (Fassq):
8028         * fns.c (Fold_assq):
8029         * fns.c (assq_no_quit):
8030         * fns.c (Frassoc):
8031         * fns.c (Fold_rassoc):
8032         * fns.c (Frassq):
8033         * fns.c (Fold_rassq):
8034         * fns.c (rassq_no_quit):
8035         * fns.c (Fremassoc):
8036         * fns.c (remassoc_no_quit):
8037         * fns.c (Fremassq):
8038         * fns.c (remassq_no_quit):
8039         * fns.c (Fremrassoc):
8040         * fns.c (Fremrassq):
8041         * fns.c (remrassq_no_quit):
8042         * fns.c (Fsort):
8043         * fns.c (Fplist_get):
8044         * fns.c (Fplist_put):
8045         * fns.c (Fplist_remprop):
8046         * fns.c (Fplist_member):
8047         * fns.c (Flax_plist_get):
8048         * fns.c (Flax_plist_put):
8049         * fns.c (Flax_plist_remprop):
8050         * fns.c (Flax_plist_member):
8051         * fns.c (Fequal):
8052         * fns.c (Fold_equal):
8053         * fns.c (Frequire):
8054         * fns.c (Fbase64_encode_region):
8055         * fns.c (Fbase64_encode_string):
8056         * fns.c (Fbase64_decode_region):
8057         * frame.c:
8058         * frame.c (frame_matches_frame_spec):
8059         * frame.c (device_matches_device_spec):
8060         * frame.c (next_frame):
8061         * frame.c (previous_frame):
8062         * frame.c (Fnext_frame):
8063         * frame.c (Fprevious_frame):
8064         * frame.c (Fframe_property):
8065         * frame.c (Fset_frame_height):
8066         * frame.c (Fset_frame_size):
8067         * frame.h:
8068         * glyphs.c:
8069         * glyphs.c (if):
8070         * glyphs.c (decode_error_behavior_flag):
8071         * glyphs.c (Fmake_image_instance):
8072         * indent.c (Findent_to):
8073         * intl.c (Fignore_defer_gettext):
8074         * keymap.c (Fkeymapp):
8075         * keymap.c (Flookup_key):
8076         * lread.c:
8077         * lread.c (Fload_internal):
8078         * lread.c (Feval_buffer):
8079         * lread.c (Feval_region):
8080         * macros.c (Fexecute_kbd_macro):
8081         * marker.c (set_marker_internal):
8082         * marker.c (Fset_marker):
8083         * marker.c (set_marker_restricted):
8084         * marker.c (Fcopy_marker):
8085         * marker.c (noseeum_copy_marker):
8086         * menubar.c:
8087         * menubar.c (Fpopup_menu):
8088         * minibuf.c:
8089         * mule-charset.c (Fcharset_name):
8090         * mule-charset.c (Fchar_charset):
8091         * mule-charset.c (Fchar_octet):
8092         * mule-charset.c (Fsplit_char):
8093         * mule-wnnfns.c (Fwnn_open):
8094         * mule-wnnfns.c (Fwnn_dict_comment):
8095         * mule-wnnfns.c (Fwnn_quit_henkan):
8096         * mule-wnnfns.c (Fwnn_word_toroku):
8097         * mule-wnnfns.c (Fwnn_word_sakujo):
8098         * mule-wnnfns.c (Fwnn_word_use):
8099         * mule-wnnfns.c (Fwnn_hindo_set):
8100         * objects.c:
8101         * objects.c (Fmake_color_instance):
8102         * objects.c (Fmake_font_instance):
8103         * print.c (Fwrite_char):
8104         * process.c:
8105         * process.c (mark_process):
8106         * process.c (print_process):
8107         * process.c (get_process_from_usid):
8108         * process.c (Fprocessp):
8109         * process.c (Fprocess_live_p):
8110         * process.c (Fget_process):
8111         * process.c (Fget_buffer_process):
8112         * process.c (get_process):
8113         * process.c (Fprocess_id):
8114         * process.c (Fprocess_name):
8115         * process.c (Fprocess_command):
8116         * process.c (init_process_io_handles):
8117         * process.c (start_process_unwind):
8118         * process.c (Fstart_process_internal):
8119         * process.c (Fopen_multicast_group_internal):
8120         * process.c (Fset_process_window_size):
8121         * process.c (read_process_output):
8122         * process.c (send_process):
8123         * process.c (Fprocess_tty_name):
8124         * process.c (Fset_process_buffer):
8125         * process.c (Fprocess_buffer):
8126         * process.c (Fprocess_mark):
8127         * process.c (set_process_filter):
8128         * process.c (Fset_process_filter):
8129         * process.c (Fprocess_filter):
8130         * process.c (Fprocess_send_region):
8131         * process.c (Fprocess_send_string):
8132         * process.c (exec_sentinel):
8133         * process.c (Fset_process_sentinel):
8134         * process.c (Fprocess_sentinel):
8135         * process.c (status_notify):
8136         * process.c (Fprocess_status):
8137         * process.c (Fprocess_exit_status):
8138         * process.c (process_send_signal):
8139         * process.c (Fprocess_send_eof):
8140         * process.c (deactivate_process):
8141         * process.c (remove_process):
8142         * process.c (Fdelete_process):
8143         * process.c (kill_buffer_processes):
8144         * process.c (Fprocess_kill_without_query):
8145         * process.c (Fprocess_kill_without_query_p):
8146         * rangetab.c:
8147         * rangetab.c (Fget_range_table):
8148         * rangetab.c (Fput_range_table):
8149         * rangetab.c (Fremove_range_table):
8150         * rangetab.c (Fclear_range_table):
8151         * search.c:
8152         * search.c (Fskip_chars_forward):
8153         * search.c (Fskip_chars_backward):
8154         * search.c (Fskip_syntax_forward):
8155         * search.c (Fskip_syntax_backward):
8156         * search.c (search_command):
8157         * search.c (Freplace_match):
8158         * search.c (Fregexp_quote):
8159         * select.c (Fown_selection_internal):
8160         * select.c (Fselection_owner_p):
8161         * select.c (Fselection_exists_p):
8162         * select.c (Fget_selection_internal):
8163         * specifier.c:
8164         * symbols.c:
8165         * symbols.c (Fintern):
8166         * symbols.c (Fintern_soft):
8167         * symbols.c (Funintern):
8168         * symbols.c (Fapropos_internal):
8169         * symbols.c (Fset_default):
8170         * syntax.c:
8171         * syntax.c (Fsyntax_table_p):
8172         * syntax.c (Fcopy_syntax_table):
8173         * syntax.c (Fset_syntax_table):
8174         * syntax.c (Fchar_syntax):
8175         * syntax.c (syntax_match):
8176         * syntax.c (Fmatching_paren):
8177         * syntax.c (Fforward_word):
8178         * syntax.c (scan_lists):
8179         * syntax.c (Fscan_lists):
8180         * syntax.c (Fscan_sexps):
8181         * syntax.c (Fparse_partial_sexp):
8182         * toolbar.c (Fcheck_toolbar_button_syntax):
8183         * tooltalk.doc:
8184         * window.c:
8185         * window.c (Fwindowp):
8186         * window.c (Fwindow_live_p):
8187         * window.c (Fwindow_point):
8188         * window.c (Fdelete_window):
8189         * window.c (Fnext_window):
8190         * window.c (Fprevious_window):
8191         * window.c (Fother_window):
8192         * window.c (window_loop):
8193         * window.c (Fget_lru_window):
8194         * window.c (Fsplit_window):
8195         * window.c (Fenlarge_window):
8196         * window.c (Fenlarge_window_pixels):
8197         * window.c (Fshrink_window):
8198         * window.c (Fshrink_window_pixels):
8199         * window.c (change_window_height):
8200         * window.c (Fwindow_configuration_p):
8201         * window.c (Fcurrent_window_configuration):
8202         * window.h:
8203         * casefiddle.c (casify_object):
8204         * casefiddle.c (Fupcase):
8205         * casefiddle.c (Fdowncase):
8206         * casefiddle.c (Fcapitalize):
8207         * casefiddle.c (Fupcase_initials):
8208         * casefiddle.c (casify_region_internal):
8209         * casefiddle.c (casify_region):
8210         * casefiddle.c (Fupcase_region):
8211         * casefiddle.c (Fdowncase_region):
8212         * casefiddle.c (Fcapitalize_region):
8213         * casefiddle.c (Fupcase_initials_region):
8214         * casefiddle.c (Fupcase_word):
8215         * casefiddle.c (Fdowncase_word):
8216         * casefiddle.c (Fcapitalize_word):
8217         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
8218         Replace 0 with '\0' when working with bytes.
8219         Replace initial "(" with "\(" in docstrings.
8220
8221 2000-11-01  Martin Buchholz  <martin@xemacs.org>
8222
8223         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
8224
8225         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
8226
8227 2000-10-31  Martin Buchholz  <martin@xemacs.org>
8228
8229         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
8230
8231 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
8232
8233         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
8234         correctly.
8235
8236 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
8237
8238         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
8239         (inhibit_auto_save_session): New variable.
8240         (vars_of_fileio): Declare and initialize them.
8241         * fileio.c (Fdo_auto_save): Don't create session file if
8242         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
8243
8244 2000-10-31  Martin Buchholz  <martin@xemacs.org>
8245
8246         * sgiplay.c (play_internal): C++ compilability.
8247         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
8248         * callproc.c (Fold_call_process_internal):
8249         Remove unused vars `env', `first'.
8250         * scrollbar.c (update_scrollbar_instance):
8251         #### unused var `current_window'.
8252         * redisplay-tty.c: Put currently unused vars insert_mode_on,
8253         etc. within #ifdef NOT_YET.
8254         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
8255         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
8256         * specifier.c (specifier_instance):
8257         #### unused var `tag'.
8258         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
8259
8260 2000-10-27  Martin Buchholz  <martin@xemacs.org>
8261
8262         * fns.c (Fbutlast):
8263         * fns.c (list_sort):
8264         * fns.c (Ffillarray):
8265         * fns.c (bytecode_nconc2):
8266         * fns.c (Fnconc):
8267         * fns.c (mapcar1):
8268         * fns.c (Fmapconcat):
8269         Be pedantically 64-bit correct.  For the time when someone will
8270         want to have a list with length > 2**32.
8271
8272         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
8273         Work around MIPSpro compiler bug.
8274
8275         * process-unix.c (unix_kill_child_process): Add snarky comment.
8276         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
8277
8278         * config.h.in: Oops, _getpt ==> _getpty
8279
8280 2000-10-26  Martin Buchholz  <martin@xemacs.org>
8281
8282         * config.h.in:
8283         * regex.c:
8284         Use void*, not char*, as return type of alloca().
8285
8286         * alloc.c (free_marker): Side effect inside assert expression!
8287
8288 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
8289
8290         * mule-charset.c (Fset_charset_ccl_program): To check
8291         if the given ccl program is valid, use setup_ccl_program()
8292         instead of CHECK_VECTOR().
8293         (Fmake_charset): Likewise.
8294
8295 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
8296
8297         * faces.c (get_extent_fragment_face_cache_index):
8298         Fix cachel.merged_faces memory leak.
8299
8300 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
8301
8302         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
8303         Reset MSB of octets obtained by DECODE_SJIS
8304         because of the incompatibility with Emacs.
8305         (ccl_driver)<CCL_ENCODE_SJIS>:
8306         Set MSB of octets before passing them to
8307         ENCODE_SJIS because of the incompatibility
8308         with Emacs.
8309
8310 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
8311
8312         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
8313         (DECLARE_LRECORD): Undo the last change.
8314         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
8315
8316 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
8317
8318         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
8319         the implementation to lrecord_implementations_table.
8320
8321 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
8322
8323         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
8324         initial value of `lrecord_type_##c_name' and
8325         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
8326         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
8327         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
8328         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
8329         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
8330
8331 2000-10-17  Martin Buchholz  <martin@xemacs.org>
8332
8333         * miscplay.c (sndcnv8S_2mono):
8334         (sndcnv2monounsigned):
8335         (sndcnvULaw_2linear):
8336         (sndcnv16swap):
8337         Remove implementation-defined behavior.
8338
8339 2000-10-12  Martin Buchholz  <martin@xemacs.org>
8340
8341         * input-method-xlib.c: Warning suppression.
8342
8343 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
8344
8345         * mule-ccl.c: Sync up with Emacs 21.0.90.
8346         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
8347         Do nothing.
8348         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
8349         Likewise.
8350         (ccl_driver[WriteMultibyteChar2]): Bug fix.
8351         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
8352         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
8353         leading char belongs to official 2-dimensional charset.
8354         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
8355         write the given character as is.  Otherwise,
8356         if it is a multibyte char, convert it by
8357         non_ascii_set_charptr_emchar, then write it.
8358         (CCL_WRITE_STRING): Likewise.
8359         (ccl_get_compiled_code): New function.
8360         (setup_ccl_program): When ccl_prog is invalid,
8361         return -1.
8362         (Fregister_code_conversion_map): New function.
8363         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
8364
8365         * mule-ccl.h: Sync up with Emacs 21.0.90.
8366         (Fregister_ccl_program): export it.
8367
8368         * redisplay-msw.c (separate_textual_runs):
8369         If ccl program is not valid, don't do ccl conversion.
8370
8371         * redisplay-x.c (separate_textual_runs): Ditto.
8372
8373         * file-coding.c (Fmake_coding_system):
8374         When type is ccl and value is vector, register it
8375         with a proper symbol.  And checks whether the
8376         given ccl program is valid.
8377         (mule_decode): When calling ccl_driver, if src indicates
8378         NULL pointer, set an empty string instead.
8379         (mule_encode): Likewise.
8380
8381 2000-10-11  Martin Buchholz  <martin@xemacs.org>
8382
8383         The following large batch of changes gets us back to a state of
8384         C++ compilability.  Extbyte is now a char, which means that
8385         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
8386
8387         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
8388
8389         * sound.c (Fplay_sound): Type correctness.
8390
8391         * select-x.c (hack_motif_clipboard_selection): Type correctness.
8392         (x_get_window_property): Type correctness.
8393         (receive_incremental_selection): unsigned char ==> Extbyte
8394         (selection_data_to_lisp_data): unsigned char ==> Extbyte
8395         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
8396         (Fx_store_cutbuffer_internal): Type correctness.
8397
8398         * process-unix.c (try_to_initialize_subtty): Type correctness.
8399
8400         * objects-x.c (x_print_color_instance): Type correctness.
8401         (x_print_font_instance): Type correctness.
8402         (x_list_fonts): SExtbyte ==> Extbyte.
8403         (valid_x_font_name_p): SExtbyte ==> Extbyte.
8404         (x_find_charset_font): SExtbyte ==> Extbyte.
8405         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
8406         (truename_via_XListFonts): SExtbyte ==> Extbyte.
8407         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
8408         Use bufbyte_strcmp.
8409
8410         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
8411         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
8412         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
8413         (BYTE_C0_P): Use bit ops for char-signedness safety.
8414         (BYTE_C1_P): Use bit ops for char-signedness safety.
8415         (CHARSET_BY_LEADING_BYTE):
8416         (CHARSET_BY_ATTRIBUTES):
8417         Always use inline function.
8418         Use type_checking_assert.
8419         Hide chlook.
8420
8421         * mule-charset.c (non_ascii_charptr_copy_char):
8422         Modify to work with both ASCII and non-ASCII characters.
8423         Improve docs and variable names.
8424         Replace over-clever fall-through switch with a simple loop.
8425         (Lstream_get_emchar_1):
8426         Replace over-clever fall-through switch with a simple loop.
8427
8428         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
8429         Warning suppression.
8430
8431         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
8432         the return value of Lstream_getc, which could be EOF as well.
8433
8434         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
8435
8436         * lisp.h: Make Extbyte a char, not unsigned char, so that external
8437         APIs can be used on Extbytes without casts.  Risky!
8438         (SExtbyte): Remove.
8439         (UExtbyte): Remove.
8440
8441         * input-method-xlib.c (XIM_init_device):
8442         Use Xlib.h instead of IntrinsicP.h.
8443         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
8444         which will break in X11R7.
8445         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
8446         to call XRegisterIMInstantiateCallback with correct types.
8447
8448         * gui-x.c (button_item_to_widget_value): Type correctness.
8449
8450         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
8451
8452         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
8453         (xbm_instantiate_1): Type correctness.
8454         (BUILD_GLYPH_INST):  Type correctness.
8455
8456         * fileio.c (Fsubstitute_in_file_name): Type correctness.
8457
8458         * file-coding.c:
8459         (decode_coding_sjis):
8460         (decode_coding_big5):
8461         (decode_coding_ucs4):
8462         (decode_coding_utf8):
8463         (decode_coding_iso2022):
8464         (decode_coding_no_conversion):
8465         Make all decoding functions take an Extbyte * arg.
8466         (encode_coding_sjis):
8467         (encode_coding_big5):
8468         (encode_coding_ucs4):
8469         (encode_coding_utf8):
8470         (encode_coding_iso2022):
8471         (encode_coding_no_conversion):
8472         Make all encoding functions take a Bufbyte * arg.
8473         Use size_t instead of unsigned int for memory sizes.
8474         Only cast to unsigned char whenever dereferencing Extbyte *.
8475
8476         * doc.c (unparesseuxify_doc_string): Type correctness.
8477
8478         * console-x.c (split_up_display_spec):
8479         Rewrite without using details of internal string representation.
8480         (x_semi_canonicalize_device_connection): Type correctness.
8481
8482         * config.h.in:
8483         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
8484         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
8485         (HAVE_XFREE386): Removed.
8486
8487         * buffer.h (DEC_CHARPTR): `const' correctness.
8488         (bufbyte_strcmp): New.
8489         (bufbyte_memcmp): New.
8490
8491         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
8492
8493         * buffer.h (XCHAR_OR_CHAR_INT):
8494         Always use inline function.
8495         Remove redundant type checking assert() - XINT will abort quite nicely.
8496
8497 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
8498
8499         * search.c (Freplace_match): Set newtext to an empty string.
8500
8501 2000-10-10  Martin Buchholz  <martin@xemacs.org>
8502
8503         * s/decosf1-3.h: Remove #include of stropts.h
8504         * s/ptx.h: Remove #include of stropts.h
8505         * s/usg5-4.h: Remove #include of stropts.h
8506         * sysproc.h:
8507         * config.h.in:
8508         Use stropts.h, not sys/stropts.h.
8509         Use strtio.h, not sys/strtio.h.
8510
8511 2000-10-04  Martin Buchholz <martin@xemacs.org>
8512
8513         * XEmacs 21.2.36 is released.
8514
8515 2000-09-21  Andy Piper  <andy@xemacs.org>
8516
8517         * glyphs-x.c (x_redisplay_widget): make sure non-structural
8518         changes still involve copying the widget tree.
8519         (update_widget_face): make sure a change is register in the widget
8520         tree. Call update_tab_widget_face appropriately.
8521         (update_tab_widget_face): ditto.
8522         (x_tab_control_redisplay): make sure non-structural changes still
8523         involve copying the widget tree.
8524
8525 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
8526
8527         * lread.c (locate_file): Check the path element is non-nil.
8528
8529 2000-10-02  Martin Buchholz  <martin@xemacs.org>
8530
8531         * lisp.h: Warning suppression for SCO compilers.
8532
8533         * redisplay-tty.c (reset_tty_modes): Fix crash.
8534         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
8535
8536 2000-09-27  Martin Buchholz  <martin@xemacs.org>
8537
8538         Big signal/process handling overhaul.  Bugs fixed:
8539         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
8540         M-x comint-kill-subjob should work for both values nil and t of
8541         process-connection-type. It was broken on most platforms.
8542         Testing on Irix and Cygwin still needed.  Other plaforms tested.
8543         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
8544         * process-unix.c: Signal/Process handling overhaul.
8545         (pty_name): make 64 bytes, as `expect' does, for paranoia.
8546         (allocate_pty): Use all available modern methods of allocating
8547         ptys, falling back to old style BSD allocation as a last resort.
8548         Use allegedly more secure Unix98 pty allocation by default.
8549         (allocate_pty_the_old_fashioned_way): New. the last resort.
8550         (unix_create_process): Push ptem, ldterm, ttcompat where
8551         available.  Autoconfiscate.
8552         (try_to_initialize_subtty): New.
8553         (unix_kill_child_process): Proper signal handling for ptys on most
8554         platforms, using special knowledge of AIX, BSD, etc...
8555         (unix_create_process): Always disconnect_controlling_terminal() for
8556         subprocesses, whether using ptys or not.
8557         * process.h: Remove old getpt-dependent PTY code.
8558         * process.c (Fprocess_send_signal): New, obvious generic function.
8559         (decode_signal): New.
8560         (Finterrupt_process):
8561         (Fkill_process):
8562         (Fquit_process):
8563         (Fstop_process):
8564         (Fcontinue_process):
8565         (Fsignal_process): Use decode_signal.
8566         (process_send_signal):
8567         Many docstring corrections.
8568         Allow any signal to be sent to a process object.
8569         * config.h.in: Add symbols for big signal/process overhaul.
8570         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
8571         * sysproc.h: Include process-related headers, where available:
8572         sys/stropts.h sys/strtio.h pty.h libutil.h
8573         * s/irix4-0.h:
8574         * s/irix5-0.h:
8575         * s/cygwin32.h:
8576         * s/gnu.h:
8577         * s/linux.h:
8578         * s/hpux.h:
8579         * s/aix3-1.h:
8580         Remove old S&M pty stuff.
8581         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
8582         * systty.h: Simplify cpp hackery, improve comments.
8583         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
8584
8585         * editfns.c (Fformat_time_string):
8586         Be a little more paranoid with the return value of ctime.
8587
8588         * fileio.c (check_executable):
8589         (check_writable):
8590         Use symbolic constants X_OK, W_OK.
8591
8592         * console-x.c (split_up_display_spec): Fix a warning.
8593
8594 2000-10-02  Martin Buchholz  <martin@xemacs.org>
8595
8596         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
8597         * ntproc.c (sys_spawnve): make_string ==> build_string
8598         Small clarity improvements.
8599
8600 2000-09-30  Martin Buchholz  <martin@xemacs.org>
8601
8602         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
8603
8604         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
8605
8606         * config.h.in (HAVE_STRCASECMP): Remove.
8607
8608 2000-09-29  Martin Buchholz  <martin@xemacs.org>
8609
8610         * redisplay-output.c (redisplay_output_pixmap):
8611         Cleaner and possibly more 64-bit correct code.
8612
8613 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
8614
8615         * dumper.c (pdump_load_finish): move restoration of
8616         `noninteractive1' to emacs.c (main_1).
8617         * emacs.c (main_1): protect LISP-visible command-line flags
8618         from pdump_load().
8619
8620 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
8621
8622         * Makefile.in.in (versionclean):  Use EXE_TARGET and
8623         DUMP_TARGET instead of literal program names.
8624
8625 2000-09-20  Martin Buchholz  <martin@xemacs.org>
8626
8627         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
8628
8629 2000-09-19  Martin Buchholz  <martin@xemacs.org>
8630
8631         * *: Spelling mega-patch
8632
8633 2000-09-19  Martin Buchholz  <martin@xemacs.org>
8634
8635         * fns.c (bad_bad_turtle):
8636         Delete "Eek!" comment, since we fixed the bug to which it refers.
8637
8638 2000-09-16  Martin Buchholz  <martin@xemacs.org>
8639
8640         * alloca.c: Replace REGISTER with register.
8641
8642 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
8643
8644         * file-coding.c (ucs_to_char): Use countof.
8645
8646 2000-09-16  Martin Buchholz  <martin@xemacs.org>
8647
8648         * file-coding.c: (ucs_to_char):
8649         (complex_vars_of_file_coding):
8650         Use countof instead of sizeof.
8651         Use CHECK_NATNUM instead of CHECK_INT.
8652
8653         * sysdep.c (strcasecmp): Remove.
8654         * device-x.c (ascii_strcasecmp): New.
8655         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
8656         Avoid using non-standard non-portable strcasecmp.
8657
8658 2000-09-16  Martin Buchholz  <martin@xemacs.org>
8659
8660         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
8661         * font-lock.c: remove reference to emacsfns.h.
8662         * search.c: small doc improvement.
8663         * event-Xt.c: correct file names in comments.
8664         * console-x.h Correct file names in comments.
8665         * frame.c: Correct file names in comments.
8666         * event-stream.c: remove Energize from comments.
8667
8668 2000-09-15  Martin Buchholz  <martin@xemacs.org>
8669
8670         * symeval.h (DEFERROR_STANDARD):
8671         (DEFERROR):
8672         (DEFSYMBOL):
8673         (DEFSYMBOL_NO_DUMP):
8674         (DEFSYMBOL_MULTIWORD_PREDICATE):
8675         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
8676         (DEFKEYWORD):
8677         The construct &##name is not sensible C.
8678         Fixes compilation errors with Unixware native compiler.
8679
8680 2000-09-14  Martin Buchholz  <martin@xemacs.org>
8681
8682         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
8683         (next_frame_internal): Removed.  We now just have next_frame.
8684         (next_frame):
8685         Write a simpler and cleaner one-pass algorithm.
8686         Remove called_from_delete_device arg and #ifdefed-out code.
8687         (previous_frame):
8688         Renamed from prev_frame.  Update callers.
8689         Cleaned up to have an analogous implementation to next_frame.
8690         (other_visible_frames_internal): Remove the
8691         called_from_delete_device bogus arg, and hence, remove this
8692         function.  Just use other_visible_frames().
8693
8694         * window.c (Fnext_window):
8695         Prettify docstring.
8696         Since next_frame() is guaranteed to return a frame, remove check
8697         for nil inserted in previous patch.
8698         (Fprevious_window):
8699         Prettify docstring.
8700         Make code look more like Fnext_window.
8701         (window_loop):
8702         Respect the `console' arg when iterating through windows.
8703         Fixes bug: (get-buffer-window buffer t device) not respecting
8704         the `device' arg.
8705         This function needs more work, as others have pointed out.
8706
8707         * frame.h: Rename prev_frame to previous_frame.
8708         device_matches_console_spec no longer takes a `frame' arg.
8709
8710         * s/gnu.h:
8711         * s/linux.h:
8712         * s/hpux.h:
8713         Use EMACS_BLOCK_SIGNAL instead of sigblock.
8714         From "Golubev I. N." <gin@mo.msk.ru>.
8715
8716         * make-src-depend: Fix typo.
8717
8718 2000-09-13  Martin Buchholz  <martin@xemacs.org>
8719
8720         * window.c (Fnext_window):
8721         next_frame() might return nil, not a frame.
8722         Fixes this crash:
8723         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
8724
8725         * frame.c (next_frame_internal):
8726         We've passed a frame if we've passed its device.
8727         Fixes this crash:
8728         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
8729 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
8730
8731 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
8732
8733         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
8734         Allow option to suppress accelerators in menu/dialog items.
8735         (populate_or_checksum_helper): Pass dialog title through above.
8736
8737 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
8738
8739         * event-msw.c (mswindows_key_to_emacs_keysym):
8740         Add "pause" key, fix "menu" key.
8741
8742 2000-09-09  Martin Buchholz  <martin@xemacs.org>
8743
8744         * eval.c (reinit_vars_of_eval):
8745         Increase max_lisp_eval_depth to 1000,
8746         required for thai-xtis.el to byte-compile under some circumstances.
8747
8748 2000-09-04  Martin Buchholz  <martin@xemacs.org>
8749
8750         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
8751         From Kenichi Handa.
8752
8753 2000-09-01  Martin Buchholz  <martin@xemacs.org>
8754
8755         * make-src-depend: Make the generated Makefiles smaller.
8756
8757         * s/hpux.h (SETUP_SLAVE_PTY):
8758         Provide a %d in the format string for the errno argument.
8759
8760         * editfns.c (Ftemp_directory):
8761         Warning fix.
8762         Avoid buffer overrun on very long file name.
8763
8764         * input-method-xlib.c (XIM_init_device):
8765         6th parameter of XRegisterIMInstantiateCallback has different
8766         pointer types on different OSes, so simply cast to (void *).
8767
8768         * unexhp9k800.c: Warning fixes.  Fiddly changes.
8769
8770         * sysdll.c (dll_open):
8771         shl_load will hang hard if passed a NULL filename.
8772         Simply return NULL for compatibility with dlopen.
8773         * sysdll.c: Conform to XEmacs coding standards.
8774
8775         * sysdep.c (get_pty_max_bytes):
8776         Support pty input lines longer than 512 bytes on HP-UX 10.20.
8777
8778 2000-08-31  Martin Buchholz  <martin@xemacs.org>
8779
8780         * tooltalk.c: Add #include <syssignal.h>
8781
8782 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
8783
8784         * s/hpux.h: Don't use undefined function sigunblock().
8785
8786 2000-08-31  Martin Buchholz  <martin@xemacs.org>
8787
8788         * config.h.in: Add HAVE_BALLOON_HELP.
8789         * emacs.c: Use HAVE_BALLOON_HELP.
8790         * Makefile.in.in (x_objs):
8791         Make Balloon Help conditional on finding shape.h.
8792
8793 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
8794
8795         * syntax.c (regex_emacs_buffer_p): New variable.
8796         * syntax.h (regex_emacs_buffer_p): extern.
8797         * search.c (looking_at_1):
8798         (string_match_1):
8799         (fast_string_match):
8800         (search_buffer): Set regex_emacs_buffer_p.
8801         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
8802         when before_dot, at_dot, after_dot.
8803
8804 2000-08-23  Andy Piper  <andy@xemacs.org>
8805
8806         * gui-x.c (popup_selection_callback): Only set action_occurred
8807         when we really have an image instance.
8808         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
8809
8810 2000-08-23  Andy Piper  <andy@xemacs.org>
8811
8812         * gui-msw.c (mswindows_handle_gui_wm_command): set
8813         action_occurred.
8814         * gui-x.c (popup_selection_callback): ditto.
8815
8816         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
8817         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
8818         (struct Lisp_Image_Instance): add action_occurred flag.
8819
8820         * glyphs.c (redisplay_subwindow): use action_occurred flag.
8821         (image_instance_changed): ditto.
8822         (reset_frame_subwindow_instance_cache): only unmap windows - do
8823         not remove them from the cache also.
8824
8825         * glyphs-widget.c (tab_control_update): better debug.
8826         (progress_gauge_update): ditto.
8827         (layout_update): ditto.
8828         (layout_instantiate): ditto.
8829         (tab_control_order_only_changed): cope with null pending items.
8830
8831         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
8832         debug. Force selection of an item when an action occurred. Cope
8833         with null pending_items.
8834         (mswindows_progress_gauge_redisplay): better debug.
8835         * glyphs-x.c (x_tab_control_redisplay): ditto.
8836
8837         * redisplay.c (redisplay_frame): reset the frame cache if the
8838         frame is garbaged.
8839
8840         * window.c (Fset_window_configuration): potentially re-enable
8841         frame cache reset.
8842         (window_unmap_subwindows): need to finalize instances here since
8843         it is only used in mark_window_as_deleted.
8844
8845 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
8846
8847         * nas.c (SndOpenDataForReading):
8848         nas.c (WaveOpenDataForReading):
8849         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
8850         Somehow escaped from the 2000-08-14 patch.
8851
8852 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
8853
8854         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
8855         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
8856
8857 2000-08-21  Andy Piper  <andy@xemacs.org>
8858
8859         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
8860         window if it is not already displayed.
8861
8862         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
8863         it is not already displayed.
8864
8865         * window.c (Fset_window_configuration): don't reset the frame
8866         cache.
8867
8868         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
8869         instances from the frame cache if we are actually finalizing them.
8870         (reset_frame_subwindow_instance_cache): reset frame cache only
8871         after unmapping everything.
8872         (map_subwindow): set displayed flag after mapping.
8873
8874 2000-08-21  Martin Buchholz  <martin@xemacs.org>
8875
8876         * data.c (indirect_function):
8877         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
8878
8879         * eval.c (function_argcount):
8880         Use original function when signaling errors.
8881
8882 2000-08-18  Andy Piper  <andy@xemacs.org>
8883
8884         * frame.c (delete_frame_internal): use new
8885         free_frame_subwindow_instances name.
8886
8887         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
8888         (add_tab_item): make return type correct.
8889         (mswindows_tab_control_instantiate): assert index of tab.
8890         (mswindows_tab_control_redisplay): Re-code to use
8891         gui_item_equal_sans_selected and gui_item_list_find_selected.
8892
8893         * glyphs-widget.c (tab_control_update): Correct comment.
8894
8895         * window.c (window_unmap_subwindows): use new
8896         unmap_subwindow_instance_cache_mapper.
8897         (window_unmap_subwindows_cache_mapper): deleted.
8898         (Fset_window_configuration): comparisons should now be with
8899         EQ. Preserve the subwindow instance cache across configuration
8900         changes.
8901         (allocate_window): ditto.
8902         (make_dummy_parent): ditto.
8903
8904         * glyphs.c (free_frame_subwindow_instances): rename from
8905         free_frame_subwindow_instance_cache. finalize all instances rather
8906         than just those in the display cache.
8907         (finalize_all_subwindow_instances): walk windows unmapping and
8908         finalizing subwindows.
8909         (unmap_subwindow_instance_cache_mapper): moved from
8910         window.c. Allow finalization as well as unmapping.
8911
8912         * gui.c (gui_item_list_find_selected): new function.
8913
8914         * gui.h (gui_item_list_find_selected): declare.
8915
8916         * glyphs-x.c (x_tab_control_redisplay): pick tab
8917         explicitly. Re-code to use gui_item_equal_sans_selected and
8918         gui_item_list_find_selected.
8919
8920         * glyphs-x.h: add lwlib-utils.h
8921
8922         * buffer.c (Frecord_buffer): undo previous change.
8923
8924 2000-08-09  Vin Shelton  <acs@xemacs.org>
8925
8926         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
8927         possible.  Create temporary files more securely.  The patch was
8928         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
8929         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
8930         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
8931         for details.
8932
8933 2000-08-07  Ben Wing  <ben@xemacs.org>
8934
8935         * getloadavg.c: remove duplicate (and windows-breaking)
8936         includes of fcntl.h and sys/file.h.
8937
8938         * nt.c: remove duplicate getloadavg() definition.
8939
8940         * sysdll.h (Qdll_filename_encoding): add missing stand-in
8941         encodings.
8942
8943 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
8944
8945         * eval.c (function_argcount): If function needs to be autoloaded
8946         actually use the loaded definition.
8947         GCPRO function.
8948
8949 2000-08-05  Ben Wing  <ben@xemacs.org>
8950
8951         * getloadavg.c: add prototype for getloadavg().  remove
8952         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
8953         of the code).  remove duplicate header includes.
8954
8955         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
8956
8957         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
8958         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
8959         useful load average.
8960
8961         * alloc.c (reinit_alloc_once_early): removed references to
8962         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
8963         the lisp vars are the only things referencing the malloc_sbrk_*
8964         vars, and they were already if 0'd out.  these vars only exist
8965         in the older malloc.c, which is basically unused, and they're
8966         only for informational purposes.
8967
8968         * m\*.h: removed useless VIRT_ADDR_VARIES.
8969
8970         * m\powerpc.h: removed stray NO_ARG_ARRAY.
8971
8972 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
8973
8974         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
8975         color if the image is a mono pixmap.
8976
8977 2000-07-30  Ben Wing  <ben@xemacs.org>
8978
8979         * Makefile.in.in (release):
8980         Remove stray @.
8981
8982         * buffer.c (directory_is_current_directory):
8983         * dired-msw.c (mswindows_get_files):
8984         * dired.c:
8985         * dired.c (Fdirectory_files):
8986         * dired.c (file_name_completion_stat):
8987         * dired.c (Ffile_attributes):
8988         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
8989         preprocessor tricks, to avoid problems on some machines
8990         (e.g. SCO).
8991
8992         * callproc.c (egetenv): GC docs.
8993
8994         * console-msw.h:
8995         * console-msw.h (struct mswindows_dialog_id):
8996         * lrecord.h (lrecord_type):
8997         New object for use with MSW dialogs.
8998
8999         * console.h (struct console_methods):
9000         New enable/disable frame methods, for proper modal dialogs.
9001
9002         * device-msw.c (msprinter_default_printer): Fix to follow
9003         proper Mule conventions.
9004
9005         * device-msw.c:
9006         * device-msw.c (signal_open_printer_error):
9007         * device-msw.c (msprinter_init_device):
9008         * device-msw.c (ensure_not_printing):
9009         * device-msw.c (plist_get_margin):
9010         * device-msw.c (Fmsprinter_select_settings):
9011         * device-msw.c (finalize_devmode):
9012         * device-msw.c (Fmsprinter_settings_despecialize):
9013         * device-msw.c (signal_enum_priner_error):
9014         * extents.c (decode_extent):
9015         * extents.c (decode_map_extents_flags):
9016         * extents.c (decode_extent_at_flag):
9017         * extents.c (Fextent_at):
9018         * extents.c (Fextents_at):
9019         * extents.c (symbol_to_glyph_layout):
9020         [[[[2]]]] Use structured errors.
9021
9022         * dialog-msw.c:
9023         * dialog-msw.c (mswindows_is_dialog_msg):
9024         * dialog-msw.c (mark_mswindows_dialog_id):
9025         * dialog-msw.c (dialog_proc):
9026         * dialog-msw.c (handle_question_dialog_box):
9027         * dialog-msw.c (syms_of_dialog_mswindows):
9028         Define new object to clean up marking; use it as a dialog identifier.
9029         Call new delete-dialog-box-hook.
9030
9031         * dialog-x.c (dbox_selection_callback):
9032         * dialog-x.c (dbox_descriptor_to_widget_value):
9033         * dialog-x.c (x_make_dialog_box_internal):
9034         Call new delete-dialog-box-hook.
9035         Return an id.
9036
9037         * dialog.c:
9038         * dialog.c (syms_of_dialog):
9039         * dialog.c (vars_of_dialog):
9040         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
9041
9042         * eval.c:
9043         * eval.c (signal_call_debugger):
9044         when noninteractive, output stack traces on the console instead
9045         of in a (never-seen) buffer.
9046
9047         * eval.c (signal_type_error):
9048         * eval.c (invalid_argument_2):
9049         * lisp.h:
9050         new funs for use w/structured errors.
9051
9052         * event-Xt.c:
9053         * event-Xt.c (x_to_emacs_keysym):
9054         * event-Xt.c (describe_event):
9055         * event-Xt.c (emacs_Xt_event_handler):
9056         * event-Xt.c (vars_of_event_Xt):
9057         * event-msw.c:
9058         * event-msw.c (mswindows_wnd_proc):
9059         * event-msw.c (vars_of_event_mswindows):
9060         rename {x,mswindows}-debug-events to debug-{}-events for
9061         consistency with other debug-foo variables.
9062
9063         * event-stream.c:
9064         document next-event more clearly.
9065
9066         * fileio.c (Ffile_name_directory):
9067         * fileio.c (Ffile_name_nondirectory):
9068         * fileio.c (Funhandled_file_name_directory):
9069         * fileio.c (file_name_as_directory):
9070         * fileio.c (Ffile_name_as_directory):
9071         * fileio.c (directory_file_name):
9072         * fileio.c (Fdirectory_file_name):
9073         * fileio.c (Fmake_temp_name):
9074         * fileio.c (Ffile_truename):
9075         * fileio.c (Fsubstitute_in_file_name):
9076         * fileio.c (expand_and_dir_to_file):
9077         * fileio.c (barf_or_query_if_file_exists):
9078         * fileio.c (check_executable):
9079         * fileio.c (Ffile_exists_p):
9080         * fileio.c (Ffile_writable_p):
9081         * fileio.c (Ffile_directory_p):
9082         * fileio.c (Ffile_regular_p):
9083         * fileio.c (Ffile_modes):
9084         * fileio.c (Ffile_newer_than_file_p):
9085         * fileio.c (Fverify_visited_file_modtime):
9086         * fileio.c (Fset_visited_file_modtime):
9087         * fileio.c (auto_save_1):
9088         (1). (2).
9089         fix up gcpro's.
9090
9091         * frame-msw.c:
9092         * frame-msw.c (mswindows_init_frame_1):
9093         * frame-msw.c (mswindows_enable_frame):
9094         * frame-msw.c (error_frame_unsizable):
9095         * frame-msw.c (msprinter_init_frame_1):
9096         * frame-msw.c (msprinter_init_frame_3):
9097         * frame-msw.c (console_type_create_frame_mswindows):
9098         (2).
9099         implement new enable/disable frame methods.
9100
9101         * frame-x.c:
9102         * frame-x.c (x_enable_frame):
9103         * frame-x.c (console_type_create_frame_x):
9104         implement new enable/disable frame methods.
9105
9106         * frame.c:
9107         * frame.c (Fdisable_frame):
9108         * frame.c (syms_of_frame):
9109         * frame.h (struct frame):
9110         implement new enable/disable frame methods/functions.
9111
9112         * general-slots.h:
9113         add initial-focus.
9114
9115         * glyphs-msw.c (mswindows_widget_instantiate):
9116         comment that initial-focus should be implemented.
9117
9118         * glyphs-widget.c:
9119         * glyphs-widget.c (check_valid_instantiator):
9120         * glyphs-widget.c (check_valid_orientation):
9121         * glyphs-widget.c (check_valid_tab_orientation):
9122         * glyphs-widget.c (check_valid_justification):
9123         * glyphs-widget.c (check_valid_border):
9124         * glyphs-widget.c (check_valid_callback):
9125         * glyphs-widget.c (check_valid_int_or_function):
9126         * glyphs-widget.c (check_valid_string_or_vector):
9127         * glyphs-widget.c (check_valid_item_list_1):
9128         * glyphs-widget.c (widget_validate):
9129         * glyphs-widget.c (combo_box_validate):
9130         * glyphs-widget.c (widget_instantiate):
9131         * glyphs-widget.c (syms_of_glyphs_widget):
9132         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
9133         * glyphs-widget.c (image_instantiator_combo_box):
9134         * glyphs-widget.c (image_instantiator_scrollbar):
9135         * glyphs-widget.c (image_instantiator_tab_control):
9136         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
9137         (2).
9138         support (unimplemented) keyword initial-focus.
9139         reindent long macros.
9140
9141         * glyphs-x.c (x_redisplay_widget):
9142         * glyphs-x.c (x_button_instantiate):
9143         * glyphs-x.c (x_button_redisplay):
9144         * glyphs-x.c (x_progress_gauge_instantiate):
9145         * glyphs-x.c (x_edit_field_instantiate):
9146         * glyphs-x.c (x_combo_box_instantiate):
9147         * glyphs-x.c (x_tab_control_instantiate):
9148         * glyphs-x.c (x_label_instantiate):
9149         * gui-x.c:
9150         * gui-x.c (button_item_to_widget_value):
9151         * gui-x.c (gui_items_to_widget_values_1):
9152         * gui-x.c (gui_item_children_to_widget_values):
9153         * gui-x.c (gui_items_to_widget_values):
9154         * gui-x.h:
9155         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9156         add new flag to gui-parsing routines to indicate whether
9157         accelerator specs should be supported.
9158
9159         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
9160
9161         * glyphs.h (struct Lisp_Image_Instance):
9162         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
9163         add initial-focus flag.
9164
9165         * gui.c:
9166         * gui.c (syms_of_gui):
9167         * gui.c (vars_of_gui):
9168         clean up menu-no-selection-hook.
9169
9170         * gui.h:
9171         support delete-dialog-box-hook.
9172
9173         * lread.c (Fload_internal):
9174         * lread.c (locate_file_in_directory_mapper):
9175         (1).
9176
9177         * lrecord.h:
9178         * lrecord.h (struct toolbar_button):
9179         * lrecord.h (syms_of_toolbar):
9180         document how to create a new object.
9181
9182         * menubar-msw.c (mswindows_char_is_accelerator):
9183         may be called on frames w/o menus.
9184
9185         * menubar.c (vars_of_menubar):
9186         clean up :filter docs.
9187
9188         * nt.c (readdir):
9189         * ntproc.c:
9190         (1).
9191
9192         * process-nt.c:
9193         * process-nt.c (validate_signal_number):
9194         * process-nt.c (signal_cannot_launch):
9195         * process-nt.c (nt_create_process):
9196         * process-nt.c (nt_send_process):
9197         * process-nt.c (nt_kill_child_process):
9198         * process-nt.c (nt_open_network_stream):
9199         * process-nt.c (syms_of_process_nt):
9200         (2).
9201         delete quote-handling.  call new lisp code that does it better.
9202
9203         * process-unix.c (connect_to_file_descriptor):
9204         * process-unix.c (allocate_pty):
9205         * process-unix.c (unix_send_process):
9206         * process-unix.c (unix_kill_child_process):
9207         * process-unix.c (unix_open_network_stream):
9208         * process-unix.c (unix_open_multicast_group):
9209         (1). (2).
9210
9211         * process.c:
9212         * process.c (Fstart_process_internal):
9213         (2).  need to canonicalize process path even if absolute.
9214
9215         * select-msw.c (symbol_to_ms_cf):
9216         * select-msw.c (ms_cf_to_symbol):
9217         * select-msw.c (cf_is_autofreed):
9218         * select-msw.c (mswindows_destroy_selection):
9219         * select.c:
9220         * select.c (syms_of_select):
9221         * select.h:
9222         support dibv5, fix bugs. (from Mike Alexander)
9223
9224         * select.c (Fget_selection_internal):
9225         * select.c (select_convert_out):
9226
9227         * sysdep.c:
9228         * sysdep.c (xemacs_stat):
9229         renamed.
9230
9231         * sysdep.c (mkdir):
9232         * sysdep.c (rmdir):
9233         but keep original stat() here because we provide encapsulation
9234         around these funs.
9235
9236         * sysfile.h:
9237         * sysfile.h (fstat):
9238         remove stat garbage.
9239
9240         * syswindows.h:
9241         fix X/MSW conflict.
9242         don't include tchar.h.  it's inappropriate because it makes
9243         compile-time distinctions when we want runtime distinctions.
9244         (we provide our own tchar replacements)
9245
9246         * toolbar.c:
9247         use default object printer for toolbar-button.
9248
9249         * unexcw.c:
9250         make sure we don't encapsulate.
9251
9252         * window.c (vars_of_window):
9253         emphasize that temp-buffer-show-hook is obsolete.
9254
9255 2000-08-05  Martin Buchholz  <martin@xemacs.org>
9256
9257         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
9258         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
9259
9260         * events.c (Fevent_timestamp_lessp):
9261         Not 64-bit clean.  Use EMACS_INT, not int.
9262
9263 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
9264
9265         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
9266         unsigned int and changed the last enum to
9267         lrecord_type_last_built_in_type.
9268         (lrecord_implementations_table): changed prototype to know how
9269         long the array is supposed to be.
9270         (lrecord_type_count): new unsigned int to keep track of the
9271         current number of lisp lrecord types.
9272         (DEFINE_EXTERNAL_LRECORD):
9273         (DECLARE_EXTERNAL_LRECORD): Added these two for external
9274         dynamic-modules to declare new lisp types. They are the same
9275         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
9276         int for each new type, and increment lrecord_type_count by 1.
9277
9278         * alloc.c (lrecord_implementations_table): Changed to reference
9279         lrecord_type_last_built_in_type for the size of the array.
9280         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
9281
9282 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
9283
9284         * glyphs.h (check_valid_item_list): Renamed from
9285         check_valid_item_list_1.
9286
9287 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
9288
9289         * select.c (Qselect_coerce): New.
9290         * select.c (Vselection_coercion_alist): New.
9291         * select.c (syms_of_select): Declare.
9292         * select.c (get-selection-internal): Use it.
9293         Use the new select-coerce functionality.
9294
9295         * select.c (select_coerce): New.
9296         * select.h (select_coerce): Declare.
9297         New function to coerce one type of data into another.
9298
9299 2000-08-03  Martin Buchholz  <martin@xemacs.org>
9300
9301         * callproc.c (Fcall_process_internal):
9302         (Fcall_process_internal):
9303         * process-unix.c (unix_create_process):
9304         Save and restore the value of errno, so that error messages are accurate.
9305
9306 2000-08-01  Martin Buchholz  <martin@xemacs.org>
9307
9308         * elhash.c (print_hash_table):
9309         Fix printing of hash tables to also use `key-and-value' instead of `t'.
9310         Prettify docstrings and indentation.
9311
9312 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
9313
9314         * window.c (Fwindow_pixel_edges): Subtract frame border and
9315         gutter size.
9316
9317 2000-07-31  Andy Piper  <andy@xemacs.org>
9318
9319         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
9320         will acknowledge the change.
9321
9322         * glyphs.h: declare tab_control_order_only_changed.
9323
9324         * glyphs-x.c (x_tab_control_redisplay): use
9325         tab_control_order_only_changed.
9326
9327         * glyphs-widget.c (tab_control_order_only_changed): new function.
9328
9329         * glyphs-msw.c (mswindows_tab_control_redisplay): use
9330         tab_control_order_only_changed.
9331
9332         * gui.c (gui_item_equal_sans_selected): new function.
9333         (gui_item_equal): use it.
9334
9335         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
9336         :properties in favor of :items..
9337
9338         * glyphs-widget.c (check_valid_item_list): rename from
9339         check_valid_item_list_1.
9340         (check_valid_item_list_1): renamed.
9341         (combo_box_validate): deprecate :properties in favor of :items.
9342         (widget_instantiate): ditto.
9343         (tab_control_update): ditto.
9344         (image_instantiator_combo_box): ditto.
9345         (image_instantiator_tree_view): ditto.
9346         (image_instantiator_tab_control): ditto.
9347         (layout_post_instantiate): remove dead code.
9348
9349         * print.c (debug_print_no_newline): only write to debugger if in
9350         WIN32_NATIVE.
9351
9352         * elhash.c (Fmake_hash_table): update doc string.
9353
9354         * event-msw.c (mswindows_wnd_proc): don't allow processing of
9355         messages whilst in GC. This at least stops XEmacs crashing but has
9356         the potential for wierd behaviour.
9357
9358 2000-07-31  Martin Buchholz  <martin@xemacs.org>
9359
9360         * config.h.in:
9361         Make existence of s&m files optional.
9362
9363         * s/bsd386.h: Remove HAVE_GETLOADAVG.
9364         * s/freebsd.h: Remove HAVE_GETLOADAVG.
9365         * s/gnu.h: Remove HAVE_GETLOADAVG.
9366         * s/netbsd.h: Remove HAVE_GETLOADAVG.
9367         * s/sol2.h: Remove HAVE_GETLOADAVG.
9368         * lisp.h: Remove getloadavg() declaration.
9369         * fns.c:
9370         Include <sys/loadavg.h> if available.
9371         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
9372         * config.h.in:  Group together getloadavg()-related macros.
9373         Use only configure-time tests to detect getloadavg().
9374
9375 2000-07-30  Martin Buchholz  <martin@xemacs.org>
9376
9377         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
9378
9379 2000-07-25  Andy Piper  <andy@xemacs.org>
9380
9381         * syswindows.h: add tchar.h for native builds.
9382
9383         * frame.c (syms_of_frame): remove set-glyph-image.
9384
9385         * general-slots.h: add Qset_glyph_image.
9386
9387         * glyphs-widget.c (layout_update): add domain arg to
9388         set-glyph-image.
9389         (syms_of_glyphs_widget): remove set-glyph-image.
9390
9391 2000-07-23  Ben Wing  <ben@xemacs.org>
9392
9393         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
9394         Vpopup_frame_list.
9395
9396 2000-07-22  Andy Piper  <andy@xemacs.org>
9397
9398         * symsinit.h: add syms_of_win32().
9399
9400         * gui-msw.c (syms_of_gui_mswindows): remove
9401         Fmswindows_shell_execute.
9402         (Fmswindows_shell_execute): moved to win32.c.
9403
9404         * emacs.c (main_1): add syms_of_win32 ().
9405
9406         * win32.c (init_potentially_nonexistent_functions): rewrite in
9407         compiler-friendly terms.
9408         (Fmswindows_shell_execute): move here from gui-msw.c.
9409         (syms_of_win32): new.
9410
9411         * device-msw.c (Fmswindows_printer_list): clean up args to
9412         EnumPrinters.
9413         Don't include tchar under cygwin or mingw.
9414         (msprinter_default_printer): make cygwin-friendly.
9415
9416 2000-07-21  Andy Piper  <andy@xemacs.org>
9417
9418         * glyphs-widget.c (image_instantiator_tree_view): use tab
9419         control's update function.
9420         (layout_property): new function. Retrieve items.
9421
9422         * glyphs-msw.c (mswindows_tree_view_redisplay): new
9423         function. Re-populate the tree view from the pending items.
9424
9425         * glyphs.c (instantiate_image_instantiator): Make sure the domain
9426         is designated the parent if the domain is an image instance. This
9427         is needed so that dirtiness can be cascade up the hierarchy and
9428         thus for layout children to be redisplayed correctly.
9429         (allocate_image_instance): rename glyph -> parent.
9430
9431         * redisplay.h: change redisplay_output_layout signature.
9432
9433         * redisplay-msw.c (mswindows_output_display_block): use domain
9434         arg.
9435
9436         * redisplay-x.c (x_output_display_block): use domain arg.
9437
9438 2000-07-10  Andy Piper  <andy@xemacs.org>
9439
9440         * window.c (Fset_window_configuration): add comment.
9441
9442         * redisplay-output.c (compare_runes):
9443         (redisplay_output_subwindow): redisplay rather than update subwindow.
9444         (redisplay_output_layout): ditto.
9445
9446         * redisplay-msw.c (mswindows_frame_output_end):
9447         (mswindows_frame_output_end): make defer window pos optional.
9448
9449         * lisp.h: add Flast.
9450
9451         * glyphs.h (struct image_instantiator_methods): add dest_mask top
9452         normalize method. Change update method to be for changed
9453         instantiators. Add redisplay method. Change signature of layout
9454         method.
9455         (struct Lisp_Image_Instance): add instantiator.
9456         (IMAGE_INSTANCE_INSTANTIATOR): new.
9457         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
9458         (XIMAGE_INSTANCE_INSTANTIATOR): new.
9459         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
9460
9461         * glyphs.c:
9462         (find_instantiator_differences): new function.
9463         (Fset_instantiator_property): new convenience function.
9464         (check_image_instance_structure): strictly check for vector
9465         instantiators.
9466         (normalize_image_instantiator): make non-static.
9467         (instantiate_image_instantiator): pass on dest_mask and use new
9468         signatures for image_instance_layout and friends.
9469         (mark_image_instance): mark the instantiator. Mark the subwindow
9470         face not the widget face.
9471         (image_instance_equal): add instantiator.
9472         (image_instance_hash): ditto.
9473         (allocate_image_instance): ditto.
9474         (Fset_image_instance_property): removed.
9475         (Fimage_instance_file_name): ditto.
9476         (Fcolorize_image_instance): ditto.
9477         (image_instance_layout): add offsets to be set.
9478         (update_image_instance): new function. update an image instance
9479         from its changed instantiator.
9480         (inherit_normalize): add dest_mask.
9481         (xbm_normalize): ditto.
9482         (xface_normalize): ditto.
9483         (xpm_normalize): ditto.
9484         (text_update): set_property -> update.
9485         (image_instantiate): use the glyph identity as a hash key, not the
9486         instantiator.
9487         (glyph_width): use new image_instance_layout signature.
9488         (glyph_ascent): ditto.
9489         (glyph_descent): ditto.
9490         (glyph_height): ditto.
9491         (glyph_query_geometry): ressurrect.
9492         (glyph_layout): ditto.
9493         (redisplay_subwindow): update -> redisplay.
9494         (syms_of_glyphs): add Fset_instantiator_property.
9495         (image_instantiator_format_create): set_property -> update.
9496
9497         * glyphs-x.c:
9498         (autodetect_normalize): add dest_maks to signature.
9499         (x_redisplay_subwindow): update -> redisplay.
9500         (x_redisplay_widget): ditto.
9501         (x_button_redisplay): ditto.
9502         (x_progress_gauge_redisplay): ditto.
9503         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
9504         stacking order.
9505         (console_type_create_glyphs_x): update -> redisplay.
9506         (image_instantiator_format_create_glyphs_x): ditto.
9507
9508         * glyphs-widget.c:
9509         (check_valid_instantiator): disallow glyphs in the instantiator,
9510         they must now be vectors.
9511         (check_valid_instantiator_list): ditto.
9512         (glyph_instantiator_to_glyph): use internal symbol rather than
9513         intern.
9514         (widget_update): renamed from widget_set_property. Call cascaded
9515         update methods.
9516         (redisplay_widget): renamed from update_widget.
9517         (widget_layout): image_instance_layout now takes position as well
9518         as size.
9519         (widget_normalize): ditto.
9520         (widget_instantiate): ditto.
9521         (tab_control_query_geometry) ditto.:
9522         (tab_control_update): renamed from tab_control_set_property.
9523         (progress_gauge_update): set_property -> update.
9524         (layout_normalize): rewrite so that child instantiators are
9525         normalized also.
9526         (layout_update): new function. Create glyphs from the normalized
9527         children and cope with any other layout keywords. We do not
9528         instantiate children here that will be take care of by
9529         redisplay_output_layout.
9530         (layout_instantiate): call layout_update and not much else.
9531         (layout_post_instantiate): not sure whether this is needed
9532         anymore.
9533         (layout_query_geometry): query glyph geometry rather than
9534         image_instance geometry.
9535         (layout_layout): set offsets from pass in parameters. Use glyph
9536         geometry and layout functions rather than image instance ones.
9537         (native_layout_layout): ditto.
9538         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
9539         (image_instantiator_widget): set_property -> update.
9540         (image_instantiator_buttons): ditto.
9541         (image_instantiator_progress_guage): ditto.
9542         (image_instantiator_tab_control): ditto.
9543         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
9544         (image_instantiator_layout): add update method.
9545
9546         * glyphs-msw.c (bmp_normalize):
9547         (mswindows_resource_normalize): add dest_mask so that it can be
9548         proprogated by layout_normalize.
9549         (begin_defer_window_pos): make optional because it may not be the
9550         right thing to do and it introduces differences with X.
9551         (mswindows_unmap_subwindow): ditto.
9552         (mswindows_map_subwindow): ditto.
9553         (mswindows_redisplay_subwindow): renamed from
9554         mswindows_update_subwindow.
9555         (mswindows_redisplay_widget): ditto.
9556         (mswindows_button_redisplay): renamed from
9557         mswindows_button_update. Update is now what the instantiation
9558         function does for a changed instantiator.
9559         (mswindows_progress_gauge_instantiate): set the progress value
9560         here if appropriate.
9561         (mswindows_tab_control_redisplay): cope with re-ordering of the
9562         members of the tab widget by simply selecting the new top
9563         widget. This makes things appear ok if you click on a tab.
9564         (mswindows_combo_box_instantiate): image_instance_layout now takes
9565         position as well as size.
9566         (mswindows_progress_gauge_redisplay): renamed from
9567         mswindows_progress_gauge_update.
9568         (console_type_create_glyphs_mswindows): fix update -> redisplay.
9569         (image_instantiator_format_create_glyphs_mswindows): ditto.
9570
9571         * glyphs-eimage.c (jpeg_normalize):
9572         (gif_normalize):
9573         (png_normalize):
9574         (tiff_normalize): add dest_mask so that it can be proprogated by
9575         layout_normalize.
9576
9577         * elhash.c:
9578         (print_hash_table):
9579         (hash_table_weakness_validate):
9580         (decode_hash_table_weakness):
9581         (Fhash_table_weakness):
9582         (Fhash_table_type):
9583         (syms_of_elhash): use Ben's naming scheme for hashtable types..
9584
9585         * console.h (struct console_methods): move update_* to
9586         redisplay_*.
9587
9588 2000-07-20  Ben Wing  <ben@xemacs.org>
9589
9590         * *.[ch] (XSETOBJ): remove unused middle argument.
9591         lisp-disunion.h: correct wrap_object() to one argument.
9592
9593 2000-07-15  Ben Wing  <ben@xemacs.org>
9594
9595         * s/cygwin32.h:
9596         * s/cygwin32.h (CYGWIN_CONV_PATH):
9597         Add missing logb prototype for v1.1.
9598         Use post-b20 names and alias to pre-b20 names when pre-b20.
9599
9600         * s/windowsnt.h: [5].
9601
9602 2000-07-15  Ben Wing  <ben@xemacs.org>
9603
9604         * Makefile.in.in (x_objs):
9605         * Makefile.in.in (sheap_objs):
9606         * Makefile.in.in (objs):
9607         added win32.o, cosmetic cleanups.
9608
9609         * alloc.c (Fmake_byte_code):
9610         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
9611         etc. macros which declare their own args now.
9612
9613         * alloc.c (syms_of_alloc):
9614         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
9615
9616         * buffer.c:
9617         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
9618
9619         * buffer.c (Fget_file_buffer):
9620         Fixed GCPRO problem.
9621
9622         * buffer.c (get_truename_buffer):
9623         Fixed comment about GC checking.
9624
9625         * buffer.c (syms_of_buffer):
9626         Undeclared those dedicated frame funs.
9627         [2].
9628
9629         * buffer.h:
9630         Define convenience macros for internal/external conversions.
9631         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
9632         and Qenvironment_variable_encoding for cleaner code.
9633
9634         * bufslots.h:
9635         Remove dedicated-frame; in lisp.
9636
9637         * bytecode.c (funcall_compiled_function):
9638         [1].
9639
9640         * bytecode.c (syms_of_bytecode):
9641         [2].
9642
9643         * console-msw.c:
9644         * console-msw.c (mswindows_show_console): Rewrote.
9645
9646         * console-msw.c (Fmswindows_debugging_output): New.
9647         Sends to OutputDebugString (special MSWin debugger interface).
9648
9649         * console-msw.c (Fmswindows_message_box):
9650         Fixed stupid bugs so it works when called from kill-emacs.
9651
9652         * console-msw.c (syms_of_console_mswindows):
9653         Declare Fmswindows_debugging_output.
9654
9655         * console-msw.h:
9656         New MSWin prototypes.
9657
9658         * console-msw.h (struct mswindows_frame):
9659         New entry last-click-mods for improved button-modifier support.
9660
9661         * console-msw.h (FRAME_MSWINDOWS_POPUP):
9662         New struct entry `popup' with corresponding accessor.
9663
9664         * console-x.c:
9665         * console-x.c (split_up_display_spec):
9666         * console-x.c (get_display_arg_connection):
9667         * console-x.c (x_semi_canonicalize_console_connection):
9668         * console-x.c (x_canonicalize_device_connection):
9669         [[[6]]]: Change char to more specific type.
9670         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
9671
9672         * console-x.c (x_semi_canonicalize_console_connection):
9673         * console-x.c (x_canonicalize_device_connection):
9674         [[[9]]]: Fix up error signalling to use new structured error system.
9675
9676         * console-x.h:
9677         [[[4]]]: Define codesys aliases:
9678         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
9679         Qx_color_name_encoding, Qx_display_name_encoding.
9680
9681         * console.h (struct console_methods):
9682         New method make_dialog_box_internal supersedes older
9683         popup_dialog_box method.
9684
9685         * data.c:
9686         Define many new errors, part of new structured errors.
9687
9688         * data.c (init_errors_once_early):
9689         * data.c (syms_of_data):
9690         [2].
9691
9692         * device-msw.c (mswindows_init_device):
9693         [[[5]]]: Cleanup to support NT 3.51.
9694
9695         * device-msw.c (decode_devmode): Cleanup.
9696
9697         * device-msw.c (mswindows_handle_print_setup_dialog_box):
9698         * device-msw.c (mswindows_handle_print_dialog_box):
9699         * device-msw.c (mswindows_handle_page_setup_dialog_box):
9700         * device-msw.c (syms_of_device_mswindows):
9701         Delete the dialog box primitives recently introduced by Kirill and
9702         instead interface to general dialog box interface.
9703
9704         * device-x.c:
9705         * device-x.c (compute_x_app_name):
9706         * device-x.c (x_init_device):
9707         * device-x.c (Fx_valid_keysym_name_p):
9708         * device-x.c (Fx_set_font_path):
9709         [6].
9710         [7].
9711
9712         * device.h (wrap_device): New.
9713         First of its kind; meant to replace XSETDEVICE.
9714
9715         * dialog-msw.c: Many file-dialog symbols.
9716
9717         * dialog-msw.c (mswindows_register_popup_frame): New.
9718         * dialog-msw.c (mswindows_is_dialog_msg): New.
9719         For supporting kbd traversal in dialog boxes.
9720
9721         * dialog-msw.c (dialog_proc):
9722         Support hitting ESC in dialogs.
9723
9724         * dialog-msw.c (struct):
9725         Common dialog box errors.
9726
9727         * dialog-msw.c (handle_file_dialog_box): New.
9728         Add file dialog code.
9729
9730         * dialog-msw.c (handle_question_dialog_box):
9731         Redo existing code to support new question dialog syntax.
9732
9733         * dialog-msw.c (console_type_create_dialog_mswindows):
9734         We support new dialog console method.
9735
9736         * dialog-msw.c (syms_of_dialog_mswindows):
9737         * dialog-msw.c (vars_of_dialog_mswindows):
9738         New file dialog symbols, vars.
9739
9740         * dialog-x.c:
9741         * dialog-x.c (maybe_run_dbox_text_callback):
9742         * dialog-x.c (dbox_descriptor_to_widget_value):
9743         * dialog-x.c (x_make_dialog_box_internal):
9744         * dialog-x.c (console_type_create_dialog_x):
9745         Mule-ize entire file.
9746         Redo to support question dialog syntax.
9747         [6].
9748
9749         * dialog.c:
9750         * dialog.c (Fmake_dialog_box_internal):
9751         * dialog.c (syms_of_dialog):
9752         Kill old popup-dialog-box, replace with new primitive.
9753         Just call device method or signal error.
9754
9755         * eldap.c (Fldap_open):
9756         * eldap.c (Fldap_search_basic):
9757         * eldap.c (Fldap_add):
9758         * eldap.c (Fldap_modify):
9759         [1].
9760         [7].
9761
9762         * emacs.c:
9763         * emacs.c (make_arg_list_1):
9764         * emacs.c (make_arg_list):
9765         Mule-ize call to dll_init().
9766         [6].
9767         [8].
9768
9769         * emacs.c (make_argc_argv):
9770         * emacs.c (free_argc_argv):
9771         * emacs.c (init_cmdargs):
9772         * emacs.c (main_1):
9773         * emacs.c (Fkill_emacs):
9774         * emacs.c (Fdump_emacs):
9775         Update comments about what can be used in syms_* etc.
9776         Call init_win32() when necessary.
9777         Fix up MS Win dialog box in kill-buffer to actually work right.
9778         [7].
9779
9780         * eval.c:
9781         * eval.c (For):
9782         * eval.c (Fand):
9783         * eval.c (Fprogn):
9784         * eval.c (Fprog1):
9785         * eval.c (Fprog2):
9786         * eval.c (FletX):
9787         * eval.c (Flet):
9788         * eval.c (condition_case_3):
9789         * eval.c (Feval):
9790         * eval.c (function_argcount):
9791         * eval.c (funcall_lambda):
9792         [1].
9793
9794         * eval.c (type_error): New.
9795         * eval.c (maybe_type_error): New.
9796         * eval.c (continuable_type_error): New.
9797         * eval.c (maybe_continuable_type_error): New.
9798         * eval.c (type_error_with_frob): New.
9799         * eval.c (maybe_type_error_with_frob): New.
9800         * eval.c (continuable_type_error_with_frob): New.
9801         * eval.c (maybe_continuable_type_error_with_frob): New.
9802         New functions for use with structured errors.
9803
9804         * event-Xt.c:
9805         * event-Xt.c (x_event_to_emacs_event):
9806         Buttons are now modifiers too.
9807
9808         * event-Xt.c (emacs_Xt_current_event_timestamp):
9809         Implement new event method.
9810         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
9811
9812         * event-msw.c:
9813         * event-msw.c (ntpipe_shove_writer): [5].
9814         * event-msw.c (mswindows_enqueue_mouse_button_event):
9815         * event-msw.c (mswindows_drain_windows_queue):
9816         * event-msw.c (mswindows_wnd_proc): [7].
9817         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
9818         * event-msw.c (mswindows_modifier_state):
9819         Throughout: support new button modifiers.
9820
9821         * event-msw.c (emacs_mswindows_current_event_timestamp):
9822         Implement new event method.
9823         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
9824
9825         * event-stream.c:
9826         * event-stream.c (event_stream_current_event_timestamp): New.
9827         * event-stream.c (maybe_kbd_translate): New functionality.
9828         * event-stream.c (vars_of_event_stream):
9829         Document new kbd-translate-table functionality.
9830
9831         * event-stream.c (Fcurrent_event_timestamp): New.
9832         New primitive for use in fabricated events.
9833         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
9834
9835         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
9836
9837         * events.c:
9838         * events.c (Fmake_event):
9839         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
9840         [1].
9841         [9].
9842
9843         * events.c (format_event_object): fix gcc warnings.
9844
9845         * events.c (Fevent_timestamp): Document new primitives.
9846
9847         * events.c (TIMESTAMP_HALFSPACE): New.
9848
9849         * events.c (Fevent_timestamp_lessp): New.  New primitive for
9850         comparing timestamps correctly (half-space algorithm).
9851
9852         * events.c (Fevent_modifier_bits): Doc fix.
9853
9854         * events.c (Fevent_modifiers): Major doc addition.
9855         * events.c (event_x_y_pixel_internal): Typo fix.
9856         * events.c (syms_of_events): Declare new primitives.
9857
9858         * events.h:
9859         Update long comment for button modifiers, timestamps.
9860
9861         * events.h (struct event_stream):
9862         New current_event_timestamp method.
9863
9864         * extents.c:
9865         * extents.c (extent_in_region_p):
9866         * extents.c (decode_extent):
9867         * extents.c (Fset_extent_parent):
9868         * extents.c (decode_map_extents_flags):
9869         Fix gcc warnings.
9870         [9].
9871
9872         * extents.c (struct extent_at_arg):
9873         * extents.c (decode_extent_at_flag):
9874         * extents.c (extent_at_mapper):
9875         * extents.c (extent_at_bytind):
9876         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
9877         * extents.c (Fextents_at): New primitive. [9].
9878         * extents.c (symbol_to_glyph_layout): [9].
9879         Support new primitive `extents-at'.
9880
9881
9882         * extents.c (get_text_property_bytind):
9883         extent_at_bytind has another arg.
9884         [9].
9885
9886         * extents.c (syms_of_extents): New primitive.
9887
9888         * file-coding.c (Fmake_coding_system): [1].
9889         * file-coding.c (subsidiary_coding_system): fix gcc warning
9890         * file-coding.c (syms_of_file_coding): [2].
9891
9892         * fileio.c (Fexpand_file_name):
9893         * fileio.c (Fsysnetunam):
9894         * fileio.c (Ffile_exists_p):
9895         * fileio.c (Ffile_executable_p):
9896         * fileio.c (Fverify_visited_file_modtime):
9897         Clean up GCPROing.
9898
9899         * fileio.c (syms_of_fileio): [2].
9900
9901         * filelock.c (lock_file_1):
9902         * filelock.c (current_lock_owner):
9903         * filelock.c (lock_if_free):
9904         * filelock.c (lock_file):
9905         * filelock.c (unlock_file):
9906         Clean up GCPROing.
9907
9908         * fns.c (concat): Fix gcc warning.
9909
9910         * fns.c (Fmember):
9911         * fns.c (Fold_member):
9912         * fns.c (Fmemq):
9913         * fns.c (Fold_memq):
9914         * fns.c (memq_no_quit):
9915         * fns.c (Fassoc):
9916         * fns.c (Fold_assoc):
9917         * fns.c (Fassq):
9918         * fns.c (Fold_assq):
9919         * fns.c (assq_no_quit):
9920         * fns.c (Frassoc):
9921         * fns.c (Fold_rassoc):
9922         * fns.c (Frassq):
9923         * fns.c (Fold_rassq):
9924         * fns.c (rassq_no_quit):
9925         * fns.c (Fdelete):
9926         * fns.c (Fold_delete):
9927         * fns.c (Fdelq):
9928         * fns.c (Fold_delq):
9929         * fns.c (delq_no_quit):
9930         * fns.c (Fremassoc):
9931         * fns.c (Fremassq):
9932         * fns.c (remassq_no_quit):
9933         * fns.c (Fremrassoc):
9934         * fns.c (Fremrassq):
9935         * fns.c (remrassq_no_quit):
9936         * fns.c (Freverse):
9937         * fns.c (mapcar1):
9938         [1].
9939
9940         * frame-msw.c (mswindows_init_frame_1):
9941         * frame-msw.c (mswindows_delete_frame):
9942         Register popups with dialog code so keyboard traversing works.
9943
9944         * frame-tty.c (tty_raise_frame_no_select): [1].
9945
9946         * frame-x.c:
9947         * frame-x.c (x_set_frame_text_value):
9948         * frame-x.c (x_set_frame_properties):
9949         * frame-x.c (x_create_widgets):
9950         [7].
9951
9952         * frame.c:
9953         * frame.c (Fmouse_pixel_position): Minor doc fixes.
9954
9955         * frame.h (wrap_frame): New.
9956         Macro like wrap_device.
9957
9958         * general.c:
9959         * general.c (SYMBOL):
9960         * general.c (syms_of_general):
9961         Major reorg.  This is now just a wrapper and symbols themselves
9962         are listed in general-slots.h.
9963
9964         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
9965         * glyphs-msw.c (mswindows_resource_instantiate): [5].
9966
9967         * glyphs-msw.c (mswindows_native_layout_instantiate):
9968         Add DS_CONTROL so keyboard traversal will work.
9969
9970         * glyphs-widget.c:
9971         * glyphs-widget.c (syms_of_glyphs_widget):
9972         Move some symbols to general-slots.h.
9973
9974         * glyphs-x.c:
9975         * glyphs-x.c (xbm_instantiate_1):
9976         * glyphs-x.c (x_xbm_instantiate):
9977         * glyphs-x.c (x_xface_instantiate):
9978         * glyphs-x.c (autodetect_instantiate):
9979         * glyphs-x.c (cursor_font_instantiate):
9980         * glyphs-x.c (x_update_widget):
9981         * glyphs-x.c (x_widget_instantiate):
9982         * glyphs.c (bitmap_to_lisp_data):
9983         * glyphs.c (pixmap_to_lisp_data):
9984         [7].
9985
9986         * glyphs.c (syms_of_glyphs):
9987         [2].
9988
9989         * gui-x.c:
9990         * gui-x.c (print_widget_value):
9991         * gui-x.c (menu_separator_style_and_to_external):
9992         * gui-x.c (add_accel_and_to_external):
9993         * gui-x.c (button_item_to_widget_value):
9994         * gui-x.c (gui_items_to_widget_values_1):
9995         * gui-x.c (gui_items_to_widget_values):
9996         * gui-x.c (syms_of_gui_x):
9997         * gui-x.c (vars_of_gui_x):
9998         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
9999         [9].
10000
10001         * gui-x.h:
10002         Muleize, prototype changes matching gui-x.c.
10003
10004         * gui.c:
10005         * gui.c (separator_string_p):
10006         * gui.c (gui_item_add_keyval_pair):
10007         * gui.c (make_gui_item_from_keywords_internal):
10008         * gui.c (signal_too_long_error):
10009         * gui.c (parse_gui_item_tree_item):
10010         * gui.c (syms_of_gui):
10011         * gui.c (vars_of_gui):
10012         * gui.h:
10013         menu-no-selection-hook moved here (used by MSWin).
10014         Move some symbols to general-slots.h.
10015         [6].
10016         [9].
10017
10018         * insdel.c (get_buffer_pos_char):
10019         * insdel.c (get_buffer_range_char):
10020         Add GC comments.
10021
10022         * keymap.c (keymap_lookup_directly):
10023         * keymap.c (keymap_store):
10024         * keymap.c (ensure_meta_prefix_char_keymapp):
10025         * keymap.c (describe_map):
10026         * keymap.h:
10027         Support new button modifiers.
10028
10029         * lisp-disunion.h (wrap_object):
10030         * lisp-disunion.h (XSETOBJ):
10031         Rename make_obj to wrap_object.
10032
10033         * lisp-union.h:
10034         * lisp-union.h (make_int):
10035         * lisp-union.h (make_char):
10036         Support wrap_object.
10037
10038         * lisp.h:
10039         * lisp.h (LIST_LOOP):
10040         * lisp.h (EXTERNAL_LIST_LOOP):
10041         * lisp.h (LIST_LOOP_2):
10042         * lisp.h (EXTERNAL_LIST_LOOP_1):
10043         * lisp.h (EXTERNAL_LIST_LOOP_2):
10044         * lisp.h (EXTERNAL_LIST_LOOP_3):
10045         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
10046         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
10047         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
10048         * lisp.h (EXTERNAL_ALIST_LOOP_5):
10049         * lisp.h (EXTERNAL_ALIST_LOOP_6):
10050         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
10051         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
10052         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
10053         * lisp.h (struct Lisp_Symbol):
10054         * lisp.h (maybe_continuable_error_with_frob):
10055         Fix up section comments.
10056         Add new types for char to indicate usage.
10057         Delete symbols auto-generated from general-slots.h.
10058         Add prototypes for structured error functions.
10059         Add long comments describing looping macros and change interface
10060         so that lvalues are automatically declared.
10061         Add NO_DECLARE macro in case callers want to declare lvalues
10062         themselves.
10063
10064         * lread.c (read_syntax_error):
10065         * lread.c (continuable_read_syntax_error):
10066         * lread.c (read_structure):
10067         * lread.c (sequence_reader):
10068         * lread.c (read_list_conser):
10069         * lread.c (read_compiled_function):
10070         Rename syntax_error and continuable_syntax_error to avoid clash
10071         with same-named structured error functions.
10072
10073         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
10074         * menubar-msw.c (populate_menu_add_item):
10075         * menubar-msw.c (populate_or_checksum_helper):
10076         [5].
10077         [9].
10078
10079         * menubar-x.c:
10080         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10081         Mule-ize whole file.
10082
10083         * menubar.c (Fnormalize_menu_item_name): Add optimization.
10084
10085         * mule-charset.c (Fmake_charset):
10086         * mule-wnnfns.c (Fwnn_set_param):
10087         [1].
10088
10089         * ntproc.c (create_child):
10090         * ntproc.c (Fwin32_set_current_locale):
10091         Add comments portending doom.
10092
10093         * objects-msw.c:
10094         * objects-msw.c (old_font_enum_callback_2):
10095         * objects-msw.c (font_enum_callback_1):
10096         * objects-msw.c (mswindows_enumerate_fonts):
10097         [5].
10098
10099         * objects-x.c:
10100         * objects-x.c (allocate_nearest_color):
10101         * objects-x.c (x_parse_nearest_color):
10102         * objects-x.c (x_initialize_color_instance):
10103         * objects-x.c (x_print_color_instance):
10104         * objects-x.c (x_finalize_color_instance):
10105         * objects-x.c (x_valid_color_name_p):
10106         * objects-x.c (x_initialize_font_instance):
10107         * objects-x.c (x_print_font_instance):
10108         * objects-x.c (valid_x_font_name_p):
10109         * objects-x.c (truename_via_FONT_prop):
10110         * objects-x.c (truename_via_random_props):
10111         * objects-x.c (truename_via_XListFonts):
10112         * objects-x.c (x_font_truename):
10113         * objects-x.c (x_font_instance_truename):
10114         * objects-x.c (x_font_instance_properties):
10115         * objects-x.c (x_list_fonts):
10116         * objects-x.c (x_find_charset_font):
10117         Mule-ize entire file.
10118         [7].
10119
10120         * objects-x.h:
10121         Mule-verify.
10122
10123         * print.c:
10124         * print.c (std_handle_out_external):
10125         * print.c (debug_print_no_newline):
10126         * print.c (syms_of_print):
10127         Output to all debugger kinds in debug-print.
10128         Fix console-output code under MSWin to actually work.
10129
10130         * process-nt.c (send_signal):
10131         * process-nt.c (nt_create_process):
10132         Use newer Unicode macros.
10133
10134         * process-unix.c (unix_create_process):
10135         * process-unix.c (unix_canonicalize_host_name):
10136         * process-unix.c (unix_open_network_stream):
10137         [7].
10138
10139         * scrollbar-x.c:
10140         Mule-verify.
10141
10142         * search.c (syms_of_search):
10143         [2].
10144
10145         * select-msw.c (mswindows_destroy_selection):
10146         Use LIST_LOOP_2.
10147
10148         * select-x.c (symbol_to_x_atom):
10149         [7].
10150
10151         * select.c (syms_of_select):
10152         [2].
10153
10154         * sound.c (Fplay_sound_file):
10155         [7].
10156
10157         * specifier.c:
10158         * specifier.c (decode_specifier_type):
10159         * specifier.c (Fvalid_specifier_locale_type_p):
10160         * specifier.c (check_valid_locale_or_locale_type):
10161         * specifier.c (decode_locale):
10162         * specifier.c (decode_locale_type):
10163         * specifier.c (decode_locale_list):
10164         * specifier.c (check_valid_domain):
10165         * specifier.c (decode_specifier_tag_set):
10166         * specifier.c (Fcanonicalize_tag_set):
10167         * specifier.c (Fdefine_specifier_tag):
10168         * specifier.c (Fspecifier_tag_predicate):
10169         * specifier.c (check_valid_inst_list):
10170         * specifier.c (check_valid_spec_list):
10171         * specifier.c (decode_how_to_add_specification):
10172         * specifier.c (check_modifiable_specifier):
10173         * specifier.c (specifier_add_spec):
10174         * specifier.c (boolean_validate):
10175         * specifier.c (display_table_validate):
10176         [9].
10177
10178         * specifier.c (syms_of_specifier):
10179         Move some symbols to general-slots.h.
10180         [2].
10181
10182         * symbols.c:
10183         * symbols.c (Fmapatoms):
10184         * symbols.c (Fapropos_internal):
10185         Add GCPROs.
10186
10187         * symbols.c (set_default_buffer_slot_variable):
10188         * symbols.c (set_default_console_slot_variable):
10189         [1].
10190
10191         * symbols.c (defsymbol_massage_name_1):
10192         * symbols.c (defkeyword_massage_name):
10193         * symbols.c (deferror_1):
10194         * symbols.c (deferror):
10195         * symbols.c (deferror_massage_name_and_message):
10196         * symeval.h:
10197         * symeval.h (DEFSYMBOL):
10198         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
10199
10200         * symbols.c (syms_of_symbols):
10201         [2].
10202
10203         * symsinit.h:
10204         * symsinit.h (init_win32): New.
10205         Also new is syms_of_dialog_mswindows.
10206
10207         * syswindows.h:
10208         Add new Unicode macros, missing Cygwin wide-char functions,
10209         convenience conversion macros for Qmswindows_tstr, macros for
10210         encapsulating required MSWin <-> Cygwin filename conversions,
10211         prototype for dynamically-extracted (not in NT 3.51) functions.
10212
10213         * toolbar-x.c:
10214         Mule-verify.
10215
10216         * tooltalk.c (Fadd_tooltalk_message_arg):
10217         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
10218         * tooltalk.c (Fadd_tooltalk_pattern_arg):
10219         [7].
10220
10221         * tooltalk.c (syms_of_tooltalk):
10222         [2].
10223
10224         * unexnt.c:
10225         * unexnt.c (unexec):
10226         Fix up headers, declaration of unexec() to be more standard.
10227
10228 2000-07-20  Martin Buchholz  <martin@xemacs.org>
10229
10230         * offix.h: Revert change to guard macros - they're used in offix.c!
10231
10232 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10233
10234         * lisp.h: Defsubred Fdelete.
10235
10236         * console-msw.h:  (msprinter_default_printer): Added.
10237
10238         * console-msw.c (msprinter_canonicalize_console_connection):
10239         (msprinter_canonicalize_device_connection): Added.
10240
10241         * device-msw.c (msprinter_default_printer):
10242         (Fmswingows_get_default_printer):
10243         (signal_enum_priner_error):
10244         (Fmswingows_printer_list): Added.
10245
10246 2000-07-19  Martin Buchholz <martin@xemacs.org>
10247
10248         * XEmacs 21.2.35 is released.
10249
10250 2000-07-19  Martin Buchholz  <martin@xemacs.org>
10251
10252         * select-x.c (x_handle_selection_request):
10253         Text selected in xemacs and pasted into xterm failed to appear.
10254         Spelling fixes and cosmetic changes.
10255
10256 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10257
10258         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
10259         XEmacs frame (fix for doubling chars in dialog boxes).
10260
10261 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
10262
10263         * select.c (select_convert_in, select_convert_out):
10264         Don't call intern() every time.
10265
10266         * select.c (Qselect_convert_in, Qselect_convert_out): New.
10267         * select.c (vars_of_select): Initialise them.
10268
10269 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
10270
10271         * select.c (selection-coercible-types): New.
10272
10273         * select.c (own-selection-internal):
10274         * select.c (get-selection-internal):
10275         MULE bug fix - these should default to COMPOUND_TEXT and not
10276         STRING for MULE. I think.
10277
10278         * select.c (select_convert_out): Use selection-coercible-types
10279         to find types that we can attempt to perform coercions on.
10280
10281 2000-07-18  Martin Buchholz  <martin@xemacs.org>
10282
10283         * mule-wnnfns.c:
10284         * mule-canna.c:
10285         Add coding: cookie to identify encoding.
10286
10287         * mule-canna.c (CANNA_mode_keys): make static.
10288         Use proper prototypes, even for functions of no arguments.
10289         Remove external prototype for Fding().
10290
10291         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
10292
10293         * select.c (syms_of_select): Add missing DEFSUBR.
10294
10295 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
10296
10297         * select.c (get_selection_internal, own_selection_internal):
10298         Make the type default to STRING, rather than placing a nil type
10299         into Vselection_alist.
10300
10301 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
10302
10303         * gpmevent.c (tty_selection_exists_p):
10304         * gpmevent.c (tty_own_selection):
10305         Updated parameter lists.
10306
10307 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
10308
10309         * select.h (selection-alist): Removed declaration.
10310
10311         * select.h (get_local_selection):
10312         * select.c (get_local_selection):
10313         Made static.
10314
10315         * select.h (convert_selection): Removed declaration.
10316         * select.c (convert_selection): Removed.
10317         This function belongs in Lisp.
10318
10319         * select.h (select_convert_in): Declare.
10320         * select.h (select_convert_out): Declare.
10321         * select.c (select_convert_in): New.
10322         * select.c (select_convert_out): New.
10323         New conversion functions for other files to call.
10324
10325         * select.h (select_notify_buffer_kill): Declare.
10326         * select.c (select_notify_buffer_kill): New.
10327         New functions that get called from kill-buffer.
10328
10329         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
10330         X-specific lisp code.
10331
10332         * select.h: Declare some of the lisp-visible functions for
10333         external use.
10334
10335         * select.c (clean_local_selection_data): Removed. This was
10336         a disgusting function, and previously should have been in
10337         select-x.c in any case. The functionality is now provided
10338         in select-convert-from-integer (select.el).
10339
10340         * select.c (available-selection-types): Fixed stupidity where
10341         INTEGER and ATOM got added twice. Also add STRING when we see an
10342         extent.
10343
10344         * select.c (get-selection-internal): Removed symbol stripping. No
10345         longer causes conversion when data comes from the internal cache.
10346
10347         * select.c (syms_of_select): Added new functions.
10348
10349         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
10350         error checking - previously this called abort!
10351
10352         * select-x.c (x_own_selection): Changed comment.
10353
10354         * select-x.c (x_handle_selection_request): Use select_convert_out.
10355         Don't mess with selection-alist; it's an internal variable of select.c.
10356
10357         * select-x.c (x_get_foreign_selection): Use select_convert_in.
10358
10359         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
10360         rather than messing with selection-alist.
10361
10362         * select-msw.c (mswindows_get_foreign_selection):
10363         Use TO_INTERNAL_FORMAT rather than hacking.
10364
10365 2000-07-14  Martin Buchholz  <martin@xemacs.org>
10366
10367         * process-unix.c (unix_open_multicast_group):
10368         (unix_open_multicast_group): Remove useless casts.
10369
10370 2000-07-13  Martin Buchholz  <martin@xemacs.org>
10371
10372         * sound.c (Fplay_sound): Fix `unused variable' warning.
10373
10374         * emacs.c (main): Use correct type for _environ on SCO5.
10375
10376 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
10377
10378         * console.h (own_selection_method):
10379         * console.h (selection_exists_p_method):
10380         * console.h (available_selection_types_method): New.
10381         * console.h (register_selection_data_type_method): New.
10382         * console.h (selection_data_type_name): New.
10383
10384         * console-msw.h (mswindows_destroy_selection): Declare it.  New
10385         function & alist to track GlobalAlloc()'d handles that need
10386         releasing when the clipboard data gets replaced or emptied.
10387
10388         * event-msw.c (mswindows_wnd_proc): Call it.
10389
10390         * lisp.h, general.c (Qappend): New symbol representing a
10391         `how-to-add' mode.
10392
10393         * select.c (own-selection-internal):
10394         * select.c (selection-exists-p):
10395         * select.c (available-selection-types): New.
10396         * select.c (register-selection-data-type): New.
10397         * select.c (selection-data-type-name): New.  New functions to deal
10398         with device-specific selection data formats.
10399         * select.c (selection-converter-out-alist): Renamed.
10400         * select.c (selection-converter-in-alist): New.
10401         * select.c (selection-appender-alist): New.  Added new alists.
10402         * select.c (syms_of_select, vars_of_select): Added new symbols &
10403         variables.
10404         * select.c (get_local_selection): Split.
10405         * select.c: Removed spurious type checking - selections may now be
10406         of any type, not just strings.
10407         * select.c (own-selection-internal):
10408
10409         * select.h, select.c (convert_selection): New. Created
10410         convert_selection() function based on get_local_selection().
10411         * select.h, select.c (QCF_*): New symbols representing mswindows
10412         clipboard formats.
10413         * select.h, select.c (Qreplace_all, Qreplace_existing): New
10414         symbols representing `how-to-add' modes.
10415
10416         * select-msw.c (x_sym_p): New.
10417         * select-msw.c (symbol_to_ms_cf): New.
10418         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
10419         symbols & clipboard formats. Can also handle string names.
10420         * select-msw.c (mswindows_own_selection):
10421         * select-msw.c (mswindows_selection_exists_p):
10422         Added `data-type' parameter. Use it.
10423         * select-msw.c (mswindows_available_selection_types): New.
10424         * select-msw.c (mswindows_register_selection_data_type): New.
10425         * select-msw.c (mswindows_selection_data_type_name): New.
10426         * select-msw.c (mswindows_own_selection):
10427         * select-msw.c (mswindows_get_foreign_selection):
10428         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
10429         * select-msw.c (console_create_select_mswindows): Added new methods.
10430         * select-msw.c (mswindows_destroy_selection): New.
10431         * select-msw.c (Vhandle_alist): New list.
10432         * select-msw.c (mswindows_own_selection):
10433
10434         * select-x.c (x_own_selection):
10435         * select-x.c (x_selection_exists_p):
10436         * select-x.c: Added some comments about maybe using new
10437         functionality.
10438         * select-x.c (x_own_selection):
10439
10440         * specifier.c: Remove definition of Qappend (now in general.c)
10441         * specifier.c (syms_of_specifier): Remove Qappend.
10442
10443 2000-07-12  Martin Buchholz  <martin@xemacs.org>
10444
10445         * config.h.in: Add socklen_t.
10446
10447         * s/decosf4-0.h: No special compiler flags needed or desired.
10448         In particular, undefine _BSD for DEC OSF 4.0.
10449
10450 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10451
10452         * redisplay-msw.c (msprinter_frame_output_end): Added.
10453         (console_type_create_redisplay_mswindows): Referred the above.
10454
10455         * frame.c (setup_frame_without_minibuffer): Do not create a
10456         default minibuffer frame on a printer device.
10457
10458         * frame-msw.c (apply_dc_geometry): Added.
10459         (msprinter_start_page):
10460         (msprinter_init_frame_3):
10461         (msprinter_eject_page): Use it.
10462
10463         * console-msw.h (struct msprinter_frame): Added pix_left and top,
10464         and removed residual duplex and orientation properties.
10465
10466 2000-07-11  Martin Buchholz  <martin@xemacs.org>
10467
10468         * eval.c (function_argcount): Work around a DEC CC compiler bug.
10469
10470         * unexalpha.c: Remove system prototypes from C sources!
10471
10472 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
10473
10474         * eval.c: Remove references to M-x edit-options in DEFUNs for
10475         `defvar' and `defconst'.
10476
10477 2000-07-09  Martin Buchholz  <martin@xemacs.org>
10478
10479         * config.h.in: Remove SMART_INCLUDE hackery.
10480
10481         PostgreSQL hacking:
10482         * config.h.in: Don't use SMART_INCLUDE.
10483
10484         * postgresql.h: Include libpq-fe.h here.  Fix typo.
10485         * inline.c: Simply #include "postgresql.h"
10486         * postgresql.c:
10487         - Don't use SMART_INCLUDE
10488         - Use simply "const".
10489         - Use standard doc string conventions.
10490         - Use correct type for result of PQstatus.
10491
10492 2000-07-09  Martin Buchholz  <martin@xemacs.org>
10493
10494         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
10495
10496         C++ compilation changes.
10497         * config.h.in (EXTERN_C): Define.
10498         * config.h.in (not): This is also a C++ keyword.
10499         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
10500         * cm.c: Use EXTERN_C.
10501         * redisplay-tty.c: Use EXTERN_C.
10502         * sysdep.c: Use EXTERN_C.  Remove Gould support.
10503
10504 2000-07-09  Martin Buchholz  <martin@xemacs.org>
10505
10506         * general.c: Remove duplicate definition for Qfunction.
10507
10508 2000-07-08  Ben Wing  <ben@xemacs.org>
10509
10510         * device-msw.c (msprinter_init_device):
10511         * device-msw.c (sync_printer_with_devmode):
10512         * device-msw.c (handle_devmode_changes):
10513         * device-msw.c (print_dialog_worker):
10514         * device-msw.c (Fmsprinter_apply_settings):
10515         * device-msw.c (hash_devmode):
10516         * device-msw.c (Fmsprinter_settings_despecialize):
10517         use Qmswindows_tstr, not Qctext.
10518
10519         * vm-limit.c (check_memory_limits):
10520         avoid infinite loop printing warning messages.
10521
10522 2000-07-05  Craig Lanning  <lanning@scra.org>
10523
10524         * Makefile.in.in: Add support for including the Windows resources
10525         when building with the cygwin and mingw targets.
10526
10527         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
10528         not set or not correct.
10529         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
10530         (init_initial_directory): Don't try to use $PWD on the
10531         WIN32_NATIVE target.
10532
10533         * s\cygwin32.h:
10534         [[Add -mwindows to eliminate console window.]] not required --ben
10535         (HAVE_NATIVE_SOUND): removed; now handled by configure.
10536         (MAIL_USE_POP): removed; now handled by configure.
10537
10538         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
10539         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
10540         (HAVE_NATIVE_SOUND): removed; now handled by configure.
10541         (MAIL_USE_POP): removed; now handled by configure.
10542         (ENCAPSULATE_STAT): from Dan Holmsand, added.
10543         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
10544         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
10545         constant string.
10546         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
10547         up from <winsock.h> via systime.h.
10548         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
10549         (getpagesize): from Dan Holmsand, added.
10550         Added #endif which was left dangling by Ben's mega patch; added
10551         comment to help prevent this in the future.
10552
10553         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
10554
10555 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10556
10557         * console-msw.h (struct mswindows_device): Removed unnecessary
10558         cached device geometry values.
10559         Added update_tick and an accessor macro.
10560         (Lisp_Devmode): Added lrecord declaration.
10561         (struct msprinter_device): Contain devmode as a Lisp object.
10562         Added mswindows_get_selected_frame_hwnd();
10563
10564         * console.h (struct console_methods): Indentation nitpicking.
10565
10566         * device-msw.c (mswindows_init_device): Do not initialize geometry
10567         cache. Initialize update tick.
10568         (mswindows_device_system_metrics): Ask the device for its geometry.
10569         (global_free_2_maybe):
10570         (devmode_to_hglobal):
10571         (handle_printer_changes):
10572         (ensure_not_printing):
10573         (print_dialog_worker):
10574         (Fmsprinter_print_setup_dialog):
10575         (Fmsprinter_print_dialog):
10576         (plist_get_margin):
10577         (plist_set_margin):
10578         (Fmsprinter_page_setup_dialog): Added functions.
10579         (sync_printer_with_devmode):
10580         (handle_devmode_changes):
10581         (Fmsprinter_get_settings):
10582         (Fmsprinter_select_settings):
10583         (Fmsprinter_apply_settings):
10584         (allocate_devmode):
10585         (Fmsprinter_settings_copy):
10586         (Fmsprinter_settings_despecialize):
10587         (print_devmode):
10588         (finalize_devmode):
10589         (equal_devmode):
10590         (hash_devmode): Added functions
10591         (syms_of_device_mswindows): Init devmode lrecord class.
10592
10593         * device.h: Added an exfun for find-device.
10594
10595         * event-msw.c (mswindows_wnd_proc): Do not update the cached
10596         geometry; although, recreate the device compatible DC.
10597
10598         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
10599         (msprinter_init_frame_3):
10600         (msprinter_frame_property):
10601         (msprinter_internal_frame_property_p):
10602         (msprinter_frame_properties):
10603         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
10604         print job properties (will move to device settings).
10605
10606         * lisp.h: Added symbols.
10607
10608         * general.c (syms_of_general): Declared them.
10609
10610         * hash.c (string_hash): Added.
10611
10612         * lrecord.h (lrecord_type): Added devmode lrecord type.
10613
10614 2000-07-02  Mike Sperber <mike@xemacs.org>
10615
10616         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
10617         FreeBSD 4.0.
10618
10619 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
10620
10621         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
10622         integer.
10623
10624 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
10625
10626         * data.c (Fstring_to_number): Don't recognize floating point if
10627         base is not 10.
10628
10629 2000-06-22  Martin Buchholz  <martin@xemacs.org>
10630
10631         * glyphs-widget.c (tab_control_query_geometry):
10632         (widget_query_geometry):
10633         (button_query_geometry):
10634         * glyphs.c (text_query_geometry):
10635         Enforce type correctness.
10636
10637 2000-06-18  Martin Buchholz  <martin@xemacs.org>
10638
10639         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
10640         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
10641
10642 2000-06-17  Martin Buchholz  <martin@xemacs.org>
10643
10644         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
10645         conflicts with gcc's fixincluded version of FOO.h.
10646
10647         * glyphs.h (image_instance_geometry): Remove trailing `,'
10648
10649 2000-06-08  Mike Alexander  <mta@arbortext.com>
10650
10651         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
10652         (shove_thread): Don't write the same output twice
10653         (make_ntpipe_output_stream): Increase priority of shove thread
10654         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
10655         chance to run
10656         (ntpipe_shove_closer): Don't delete the pipe until we're done with
10657         it.
10658
10659 2000-06-12  Ben Wing  <ben@xemacs.org>
10660
10661         * s\mingw32.h (sigset):
10662         * s\windowsnt.h (sigset):
10663         rename msw_ to mswindows_ for consistency with general convention.
10664
10665 2000-06-12  Ben Wing  <ben@xemacs.org>
10666
10667         * console-msw.c:
10668         * console-msw.c (mswindows_get_console_hwnd):
10669         * console-msw.c (mswindows_ensure_console_allocated):
10670         * console-msw.c (mswindows_hide_console):
10671         * console-msw.c (mswindows_show_console):
10672         * console-msw.c (mswindows_ensure_console_buffered):
10673         * console-msw.c (mswindows_output_console_string):
10674         * console-msw.c (mswindows_windows9x_p):
10675         * console-msw.h:
10676         * device-msw.c (mswindows_get_workspace_coords):
10677         * device-msw.c (mswindows_device_system_metrics):
10678         * dialog-msw.c (mswindows_popup_dialog_box):
10679         * event-msw.c (mswindows_wnd_proc):
10680         * frame-msw.c (mswindows_size_frame_internal):
10681         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
10682         * menubar-msw.c (displayable_menu_item):
10683         * menubar-msw.c (mswindows_char_is_accelerator):
10684         * nt.c:
10685         * nt.c (mswindows_sigset):
10686         * nt.c (mswindows_sigrelse):
10687         * nt.c (mswindows_sigpause):
10688         * nt.c (mswindows_raise):
10689         * nt.c (timer_proc):
10690         * ntproc.c:
10691         * ntproc.c (find_child_console):
10692         * ntproc.c (sys_kill):
10693         * print.c:
10694         * print.c (std_handle_out_external):
10695         * process-nt.c (find_child_console):
10696         * process-nt.c (send_signal_the_95_way):
10697         * process-nt.c (ensure_console_window_exists):
10698         * process-nt.c (nt_create_process):
10699         * syssignal.h:
10700         rename msw_ to mswindows_ for consistency with general convention.
10701
10702         * emacs.c:
10703         * dumper.c:
10704         include nt.h, not syswindows.h.
10705
10706         * nt.c (mswindows_fstat):
10707         * nt.c (mswindows_stat):
10708         prefix mswindows_ instead of attempting to directly override the
10709         library functions.  fix declarations.
10710
10711         * nt.h:
10712         include syswindows.h.  move some sysdep.h stuff here.
10713
10714         * ntheap.h:
10715         include syswindows.h, not <windows.h>.
10716
10717         * ntplay.c:
10718         clean up headers.
10719
10720         * sysdep.c:
10721         clean up headers.
10722
10723         * sysdep.c (sys_fstat):
10724         * sysdep.c (sys_stat):
10725         call mswindows versions when appropriate.
10726
10727         * sysdep.h:
10728         move mswin decls to nt.h.
10729
10730         * syswindows.h:
10731         add long comment describing appropriate use of the various windows
10732         headers.
10733
10734 2000-06-11  Ben Wing  <ben@xemacs.org>
10735
10736         * device-x.c: Correct doc string for sixth arg of x-get-resource.
10737
10738 2000-06-10  Ben Wing  <ben@xemacs.org>
10739
10740         * Makefile.in.in (release):
10741         Correction to make sure xemacs.exe always dumped when correct.
10742
10743         * alloca.c:
10744         * balloon_help.c:
10745         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
10746
10747         * buffer.c (set_buffer_internal):
10748         [[[[2]]]]: Remove HAVE_FEP code.
10749
10750         * buffer.c (init_initial_directory):
10751         [3].
10752
10753         * bytecode.c:
10754         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
10755         individual files.
10756
10757         * callproc.c:
10758         * callproc.c (call_process_cleanup):
10759         * callproc.c (Fold_call_process_internal):
10760         * callproc.c (child_setup):
10761         * callproc.c (getenv_internal):
10762         * callproc.c (init_callproc):
10763         * callproc.c (vars_of_callproc):
10764         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
10765         __CYGWIN32__ -> CYGWIN.
10766         DOS_NT -> WIN32_NATIVE.
10767         Remove MSDOS support/references, converting to WIN32_NATIVE
10768           where correct.
10769         __MINGW32__ -> MINGW.
10770         Fix windows.h includes.
10771         Remove bogus HAVE_NTGUI.
10772
10773         * config.h.in:
10774         [2].
10775
10776         * console-msw.c:
10777         mswindows_message_outputted added for use in allowing startup
10778         errors on the console to be seen.
10779
10780         * console-msw.c (msw_ensure_console_allocated):
10781         * console-msw.c (msw_output_console_string):
10782         * console-msw.c (DHEADER):
10783         * console-msw.c (DOPAQUE_DATA):
10784         * console-msw.c (DEVENT):
10785         * console-msw.c (DCONS):
10786         * console-msw.c (DCONSCDR):
10787         * console-msw.c (DSTRING):
10788         * console-msw.c (DVECTOR):
10789         * console-msw.c (DSYMBOL):
10790         * console-msw.c (DSYMNAME):
10791         Fix warnings.
10792
10793         * console-stream.c (stream_init_console):
10794         Fix text/binary problems.
10795
10796         * device-msw.c:
10797         * device-msw.c (mswindows_finish_init_device):
10798         * device-msw.c (mswindows_delete_device):
10799         [1].
10800
10801         * device.c (handle_asynch_device_change):
10802         [3].
10803
10804         * dgif_lib.c:
10805         * dgif_lib.c (DGifOpenFileName):
10806         * dgif_lib.c (DGifOpenFileHandle):
10807         * dgif_lib.c (DGifGetLine):
10808         * dgif_lib.c (DGifGetPixel):
10809         Added config.h/lisp.h, fix up includes.
10810         [1].
10811
10812         * dired-msw.c:
10813         [4].
10814
10815         * dired.c:
10816         * dired.c (file_name_completion):
10817         * dired.c (Ffile_attributes):
10818         * dired.c (syms_of_dired):
10819         [1].
10820
10821         * dumper.c:
10822         * dumper.c (pdump_file_unmap):
10823         * dumper.c (pdump_load):
10824         [1].
10825
10826         * editfns.c:
10827         * editfns.c (Ftemp_directory):
10828         * editfns.c (user_login_name):
10829         * editfns.c (Fuser_real_login_name):
10830         * editfns.c (get_home_directory):
10831         [1].
10832
10833         * elhash.c (finish_marking_weak_hash_tables):
10834         [[[[5]]]]: Fix GCC warnings.
10835
10836         * emacs.c:
10837         * emacs.c (mswindows_handle_hardware_exceptions):
10838         * emacs.c (make_arg_list_1):
10839         * emacs.c (main_1):
10840         * emacs.c (Fkill_emacs):
10841         * emacs.c (Fdump_emacs):
10842         [1].
10843         Fix problems with nested crashes, add long comment.
10844
10845         * event-Xt.c (init_event_Xt_late):
10846         [1].
10847
10848         * event-msw.c:
10849         * event-msw.c (mswindows_dde_callback):
10850         * event-msw.c (mswindows_handle_sticky_modifiers):
10851         * event-msw.c (mswindows_wnd_proc):
10852         [1].
10853         [5].
10854
10855         * events.c (character_to_event):
10856         [1].
10857
10858         * fileio.c:
10859         * fileio.c (Ffile_name_directory):
10860         * fileio.c (Ffile_name_nondirectory):
10861         * fileio.c (directory_file_name):
10862         * fileio.c (Fexpand_file_name):
10863         * fileio.c (Fsubstitute_in_file_name):
10864         * fileio.c (Ffile_name_absolute_p):
10865         * fileio.c (check_executable):
10866         * fileio.c (Ffile_readable_p):
10867         * fileio.c (Ffile_accessible_directory_p):
10868         * fileio.c (Ffile_modes):
10869         * fileio.c (Funix_sync):
10870         * fileio.c (vars_of_fileio):
10871         [1]. [4].
10872
10873         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
10874
10875         Expand getdefdir defn.
10876         Fix bogus rename() comment.
10877
10878         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
10879         to use standard XEmacs include files, e.g. sysfile.h, rather
10880         than system-specific includes.
10881
10882         * fns.c:
10883         * fns.c (Fsubseq):
10884         [5]. [6].
10885
10886         * frame.c (vars_of_frame):
10887         [1].
10888
10889         * getloadavg.c:
10890         * getloadavg.c (getloadavg):
10891         [1]. [6].
10892         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
10893         (We don't use it elsewhere in the code; just add a comment.)
10894
10895         * gif_io.c:
10896         [6].
10897         Add config.h.
10898
10899         * glyphs-msw.c:
10900         * glyphs-msw.c (mswindows_resource_instantiate):
10901         [1].
10902
10903         * glyphs-x.c (x_native_layout_instantiate):
10904         [5].
10905
10906         * gui-msw.c (Fmswindows_shell_execute):
10907         [1].
10908
10909         * insdel.c:
10910         [4].
10911
10912         * lisp.h:
10913         [4]. [5].
10914
10915         * lread.c (locate_file_in_directory_mapper):
10916         [1].
10917
10918         * lstream.c:
10919         [4].
10920
10921         * mem-limits.h:
10922         * mem-limits.h (get_lim_data):
10923         [1].
10924
10925         * menubar-msw.c:
10926         [4].
10927
10928         * ndir.h:
10929         [1].
10930
10931         * nt.c:
10932         * nt.c (getwd):
10933         * nt.c (closedir):
10934         * nt.c (rva_to_section):
10935         * nt.c (mswindows_executable_type):
10936         [1]. [6].
10937         Fix closedir() defn.
10938
10939         * nt.h:
10940         [[[[8]]]]: *_OK defs moved to sysfile.h.
10941
10942         * ntproc.c:
10943         [6]. [7].
10944
10945         * objects-x.c:
10946         [4].
10947
10948         * print.c:
10949         * print.c (std_handle_out_external):
10950         [1]. [4].
10951
10952         * process-nt.c:
10953         * process-nt.c (nt_create_process):
10954         [6].
10955         try to fix process quoting somewhat.
10956
10957         * process-unix.c (unix_create_process):
10958         [1].
10959
10960         * process.c:
10961         * process.c (vars_of_process):
10962         Add Vnull_device.
10963
10964         * process.h:
10965         [1].
10966
10967         * realpath.c:
10968         * realpath.c (xrealpath):
10969         [1].
10970
10971         * redisplay-tty.c (init_tty_for_redisplay):
10972         [3].
10973
10974         * redisplay.c:
10975         [4]. [6].
10976
10977         * scrollbar-msw.c:
10978         [4].
10979
10980         * sheap.c:
10981         * sheap.c (more_static_core):
10982         * sheap.c (report_sheap_usage):
10983         [5]. [6].
10984
10985         * signal.c:
10986         * signal.c (alarm_signal):
10987         [1]. [6].
10988
10989         * sound.c:
10990         [6].
10991
10992         * strftime.c:
10993         * strftime.c (zone_name):
10994         [1]. [5].
10995
10996         * symsinit.h (init_sunpro):
10997         [1].
10998
10999         * syscommctrl.h:
11000         commctrl.h not in Cygwin b20.1.
11001
11002         * sysdep.c:
11003         * sysdep.c (endif):
11004         * sysdep.c (sys_subshell):
11005         * sysdep.c (init_baud_rate):
11006         * sysdep.c (emacs_get_tty):
11007         * sysdep.c (emacs_set_tty):
11008         * sysdep.c (tty_init_sys_modes_on_device):
11009         * sysdep.c (init_system_name):
11010         * sysdep.c (sys_open):
11011         * sysdep.c (interruptible_open):
11012         * sysdep.c (sys_fopen):
11013         * sysdep.c (sys_mkdir):
11014         * sysdep.c (sys_rename):
11015         * sysdep.c (get_process_times_1):
11016         [1]. [6].
11017
11018         * sysdep.h:
11019         [1].
11020
11021         * sysdir.h:
11022         * sysdir.h (DIRENTRY_NONEMPTY):
11023         [1]. [6].
11024
11025         * sysdll.c (dll_init):
11026         * sysdll.h:
11027         [1].
11028
11029         * sysfile.h:
11030         [1]. [6]. [8].
11031         added text/binary defs.
11032
11033         * sysfloat.h:
11034         [1].
11035
11036         * sysproc.h:
11037         * sysproc.h (EDESTADDRREQ):
11038         * sysproc.h (poll_fds_for_input):
11039         [1]. [6].
11040
11041         * syspwd.h:
11042         [6].
11043
11044         * syssignal.h:
11045         [1].
11046
11047         * systime.h:
11048         [1]. [6].
11049
11050         * systty.h:
11051         [1].
11052
11053         * syswindows.h:
11054         [1].
11055         Always define WIN32_LEAN_AND_MEAN.
11056
11057         * unexcw.c (unexec):
11058         [5].
11059
11060         * unexec.c:
11061         * unexec.c (copy_text_and_data):
11062         * unexec.c (adjust_lnnoptrs):
11063         [1].
11064
11065         * unexnt.c:
11066         * unexnt.c (_start):
11067         [1].
11068
11069 2000-06-07  Ben Wing  <ben@xemacs.org>
11070
11071         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
11072         was used only as a model.  We've long since extracted any useful
11073         logic or code out of this. (I just did an exhaustive search.)
11074
11075         * s\msdos.h: Removed.
11076
11077         * s\windows95.h: Removed.
11078
11079 2000-06-10  Ben Wing  <ben@xemacs.org>
11080
11081         * s\cygwin32.h:
11082         [1]. [5].
11083         Don't use extern with fun defs.
11084
11085         * s\mingw32.h:
11086         [1]. [7].
11087         Remove nt\inc include.
11088         Remove getdisk, getdefdir. (The former is unused, the latter
11089         expanded in fileio.h.)
11090
11091         * s\windowsnt.h:
11092         * s\windowsnt.h (WIN32_NATIVE):
11093         * s\windowsnt.h (HAVE_STRCASECMP):
11094         [1]. [7].
11095         Add long comment about preprocessor changes.
11096         Remove getdisk, getdefdir. (The former is unused, the latter
11097         expanded in fileio.h.)
11098
11099 2000-06-10  Ben Wing  <ben@xemacs.org>
11100
11101         * m\arm.h:
11102         * m\delta.h:
11103         * m\intel386.h:
11104         * m\sequent.h:
11105         * m\template.h:
11106         * m\windowsnt.h:
11107         [1].
11108         Remove bogus/unused NO_SOCK_SIGIO.
11109
11110 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
11111
11112         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
11113         not an Emchar.
11114
11115 2000-06-04  Mike Sperber <mike@xemacs.org>
11116
11117         * casetab.c (set_case_table): For `set-standard-case-table',
11118         actually deposit the new case tables where the rest of XEmacs can
11119         see them.
11120
11121 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
11122
11123         * data.c (Faset): Don't cast XCHAR() to unsigned char.
11124
11125 2000-06-05  Ben Wing  <ben@xemacs.org>
11126
11127         * callproc.c (child_setup): Don't do close_load_descs() under
11128         MS Windows.  Put in a comment explaining why.
11129
11130 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
11131
11132         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
11133         Toolkit shell" which breaks `kill-compilation' on Windows NT
11134         native, retaining STDERR handling improvements.
11135
11136 2000-06-01  Andreas Jaeger  <aj@suse.de>
11137
11138         * s/s390.h: Support for S390, based on a patch by Martin
11139         Schwidefsky <schwidefsky@de.ibm.com>.
11140
11141 2000-05-30  Andy Piper  <andy@xemacs.org>
11142
11143         * window.c (allocate_window):
11144         (make_dummy_parent):
11145         (Fset_window_configuration): use new hashtable type.
11146
11147         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
11148         (struct image_instantiator_methods):
11149         (struct Lisp_Image_Instance): make instance geometry signed.
11150
11151         * glyphs.c (instantiate_image_instantiator):
11152         (image_instance_query_geometry):
11153         (image_instance_layout):
11154         (image_instance_layout):
11155         (query_string_geometry):
11156         (text_query_geometry):
11157         (image_instantiate):
11158         (image_instantiate):
11159         (cache_subwindow_instance_in_frame_maybe):
11160         (subwindow_query_geometry): make instance geometry signed.
11161
11162         * glyphs-widget.c (widget_query_geometry):
11163         (widget_layout):
11164         (button_query_geometry):
11165         (tree_view_query_geometry):
11166         (tab_control_query_geometry):
11167         (layout_query_geometry):
11168         (layout_layout):
11169         (native_layout_layout): make instance geometry signed.
11170
11171 2000-05-29  Olivier Galibert  <galibert@pobox.com>
11172
11173         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
11174         constant.
11175
11176         * general.c (syms_of_general): Add Qfull_assoc symbol.
11177
11178         * data.c (finish_marking_weak_lists): Mark full-assoc lists
11179         correctly.
11180         (decode_weak_list_type): Decode full-assoc type.
11181         (encode_weak_list_type): Encode full-assoc type.
11182         (Fmake_weak_list): Update doc string.
11183
11184 2000-05-30  Andy Piper  <andy@xemacs.org>
11185
11186         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
11187
11188         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
11189         (decode_hash_table_weakness): ditto.
11190         (Fhash_table_weakness): ditto.
11191         (Fhash_table_type): ditto.
11192         (finish_marking_weak_hash_tables): ditto.
11193         (hash_table_weakness_validate): ditto.
11194         (syms_of_elhash): ditto.
11195
11196 2000-05-28  Martin Buchholz <martin@xemacs.org>
11197
11198         * XEmacs 21.2.34 is released.
11199
11200 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
11201
11202         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
11203         start cache.
11204         (updating_line_start_cache): Gone.
11205         (regenerate_window): Replace resetting of VERTICAL_CLIP by
11206         generic code to force a minimum of 1 line laid out in the
11207         CMOTION_DISP case.
11208
11209 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
11210
11211         * glyphs.c (instantiate_image_instantiator): Check for initialized
11212         height & width no longer special cases IMAGE_NOTHING.
11213         (nothing_instantiate): Set height and width of instance.
11214
11215 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
11216
11217         * unexelf.c (unexec): Search for ".data" section.
11218         Initialize new_data2_offset from old_data_index.
11219         Remove redundant check for ElfW.
11220
11221 2000-05-23  Andy Piper  <andy@xemacs.org>
11222
11223         * glyphs.c (get_image_instantiator_governing_domain): allow more
11224         specific domains as the governing domain rather than expecting an
11225         exact match. This fixes problems with layouts.
11226
11227 2000-05-22  Andy Piper  <andy@xemacs.org>
11228
11229         * redisplay-output.c (compare_runes): check for non-images
11230
11231         * glyphs.c (set_glyph_dirty_p): ditto.
11232         (update_glyph_cachel_data): ditto.
11233
11234         * glyphs-widget.c (layout_post_instantiate): ditto.
11235         (layout_post_instantiate): ditto.
11236
11237         * event-msw.c (mswindows_wnd_proc): warning removal.
11238
11239 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
11240
11241         * s\mingw32.h: Added #undef for CLASH_DETECTION.
11242
11243         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
11244
11245         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
11246
11247         * nt.c (rva_to_section): mingw32 needs rva_to_section.
11248         (mswindows_executable_type): mingw32 now has enough headers for
11249         this to work.
11250
11251 2000-05-20  Andy Piper  <andy@xemacs.org>
11252
11253         * console-msw.c (mswindows_output_last_error): ; -> ,
11254
11255 2000-05-12  Andy Piper  <andy@xemacs.org>
11256
11257         * console-msw.c (FROB): compare ints with ints.
11258
11259 2000-05-11  Andy Piper  <andy@xemacs.org>
11260
11261         * glyphs-x.c (x_finalize_image_instance): make minimal build
11262         happy.
11263
11264 2000-05-20  Ben Wing  <ben@xemacs.org>
11265
11266         * event-Xt.c:
11267         * event-Xt.c (vars_of_event_Xt):
11268         move modifier-keys-are-sticky to event-stream.c.
11269
11270         * event-msw.c:
11271         * event-msw.c (mswindows_enqueue_mouse_button_event):
11272         * event-msw.c (key_needs_default_processing_p):
11273         * event-msw.c (XEMSW_LCONTROL):
11274         * event-msw.c (mswindows_handle_sticky_modifiers):
11275         * event-msw.c (FROB):
11276         * event-msw.c (clear_sticky_modifiers):
11277         * event-msw.c (output_modifier_keyboard_state):
11278         * event-msw.c (output_alt_keyboard_state):
11279         * event-msw.c (mswindows_wnd_proc):
11280         * event-msw.c (mswindows_modifier_state):
11281         * event-msw.c (emacs_mswindows_handle_magic_event):
11282         implement sticky modifiers.
11283
11284         * event-stream.c:
11285         * event-stream.c (vars_of_event_stream):
11286         move modifier-keys-are-sticky here.
11287
11288         * lisp.h:
11289         add CHECK_FUNCTION.
11290
11291         * rangetab.c:
11292         implement map-range-table.
11293
11294
11295 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
11296
11297         * redisplay-tty.c (reset_tty_modes):
11298         (tty_redisplay_shutdown): Adjust argument type to
11299         tty_frame_output_end.
11300
11301 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
11302
11303         * eval.c (Fbacktrace): Don't output a line with only right
11304         parenthesis.
11305
11306 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
11307
11308         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
11309         (Fpq_reset_poll): Ditto.
11310
11311 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
11312
11313         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
11314
11315 2000-05-16  Ben Wing  <ben@xemacs.org>
11316
11317         * buffer.c:
11318         * buffer.c (dfc_convert_to/from_internal_format):
11319         * buffer.c (reinit_vars_of_buffer):
11320         Fix conversion functions to allow reentrancy.
11321
11322         * console-msw.c:
11323         * console-msw.c (mswindows_output_last_error):
11324         New fun, generally useful -- output a human-readable
11325         version of GetLastError() on the console.
11326
11327         * console-msw.h:
11328         * console-msw.h (struct mswindows_frame):
11329         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
11330
11331         * console-stream.c (stream_output_begin):
11332         * console-stream.c (stream_output_end):
11333         * console-stream.c (stream_output_vertical_divider):
11334         * console-stream.c (stream_clear_region):
11335         * console-stream.c (stream_flash):
11336         * console-stream.c (console_type_create_stream):
11337         Delete blank stream methods, not needed.
11338
11339         * console.h (struct console_methods):
11340         Split begin/end methods into window and frame.
11341
11342         * event-msw.c:
11343         * event-msw.c (mswindows_handle_paint):
11344         * event-msw.c (output_alt_keyboard_state):
11345         * event-msw.c (mswindows_wnd_proc):
11346         * event-msw.c (vars_of_event_mswindows):
11347         Comment about problems with ignored-expose.
11348         Define mswindows-debug-events; not really implemented.
11349
11350         * frame-msw.c (mswindows_init_frame_1):
11351         random cleanups.
11352
11353         * glyphs-msw.c:
11354         * glyphs-msw.c (begin_defer_window_pos):
11355         * glyphs-msw.c (mswindows_unmap_subwindow):
11356         * glyphs-msw.c (mswindows_map_subwindow):
11357         * glyphs-msw.c (mswindows_resize_subwindow):
11358         Use DeferWindowPos to reduce flashing when mapping/unmapping.
11359
11360         * glyphs.c (make_image_instance_1):
11361         Fix crash.
11362
11363         * gutter.c (Fredisplay_gutter_area):
11364         Use new begin/end methods.
11365
11366         * lisp.h (Dynarr_new2):
11367         New creation fun.
11368
11369         * redisplay-msw.c:
11370         * redisplay-msw.c (mswindows_frame_output_begin):
11371         * redisplay-msw.c (mswindows_frame_output_end):
11372         * redisplay-msw.c (console_type_create_redisplay_mswindows):
11373         New begin/end methods -- handle DeferWindowPos.
11374
11375         * redisplay-output.c (redisplay_move_cursor):
11376         * redisplay-output.c (redraw_cursor_in_window):
11377         * redisplay-output.c (redisplay_update_line):
11378         * redisplay-output.c (redisplay_output_window):
11379         New begin/end methods.
11380
11381         * redisplay-tty.c:
11382         * redisplay-tty.c (tty_frame_output_begin):
11383         * redisplay-tty.c (tty_frame_output_end):
11384         * redisplay-tty.c (console_type_create_redisplay_tty):
11385         New begin/end methods.
11386
11387         * redisplay-x.c:
11388         * redisplay-x.c (x_window_output_begin):
11389         * redisplay-x.c (x_window_output_end):
11390         * redisplay-x.c (console_type_create_redisplay_x):
11391         New begin/end methods.
11392
11393         * redisplay.c (redisplay_frame):
11394         * redisplay.c (Fredisplay_echo_area):
11395         New begin/end methods.
11396         use MAYBE_DEVMETH for clear_frame; it may not exist.
11397
11398         * window.h (WINDOW_XFRAME):
11399         WINDOW_XFOO macros -- get locale and decode struct pointer.
11400
11401
11402 2000-05-12  Ben Wing  <ben@xemacs.org>
11403
11404         * emacs.c:
11405         * emacs.c (ensure_no_quitting_from_now_on):
11406         * emacs.c (fatal_error_signal):
11407         * emacs.c (mswindows_handle_hardware_exceptions):
11408         * emacs.c (main):
11409         * emacs.c (Fkill_emacs):
11410         * emacs.c (shut_down_emacs):
11411         * emacs.c (assert_failed):
11412         various improvements in fatal error handling.
11413
11414         * eval.c:
11415         move preparing_for_armageddon to emacs.c.
11416
11417         * lisp.h:
11418         declare fatal_error_in_progress.
11419
11420         * print.c:
11421         * print.c (std_handle_out_external):
11422         * print.c (std_handle_out_va):
11423         * print.c (stderr_out):
11424         * print.c (stdout_out):
11425         use console under mswin when no standard output.
11426         don't do code conversion during fatal error.
11427
11428         * scrollbar.c (Fscrollbar_page_up):
11429         * scrollbar.c (Fscrollbar_page_down):
11430         fix missing else.  reindent.
11431
11432 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
11433
11434         Emergency fix.
11435
11436         * glyphs.h (GLYPH_CACHEL_DESCENT):
11437         (GLYPH_CACHEL_DESCENT):
11438         (GLYPH_CACHEL_DESCENT):
11439         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
11440         used in case these are inline functions.
11441         Use more absurd values to error check.
11442
11443         include window.h for error check functions.
11444
11445 2000-05-11  Ben Wing  <ben@xemacs.org>
11446
11447         * cmdloop.c (Freally_early_error_handler):
11448         Display message box under windows; otherwise, message will disappear
11449         before it can be viewed.
11450
11451         * console-msw.c:
11452         * console-msw.c (Fmswindows_message_box):
11453         * console-msw.c (FROB):
11454         * console-msw.c (syms_of_console_mswindows):
11455         Define new fun `mswindows-message-box'.
11456         #### I will merge this into `popup-dialog-box'; just give me
11457         a bit of time.
11458
11459         * general.c:
11460         * general.c (syms_of_general):
11461         Some new symbols used in `mswindows-message-box'.
11462
11463         * glyphs.c:
11464         * glyphs.c (Fset_image_instance_property):
11465         put warning in this fun.
11466
11467         * glyphs.h:
11468         * glyphs.h (GLYPH_CACHEL_WIDTH):
11469         * glyphs.h (GLYPH_CACHEL_ASCENT):
11470         * glyphs.h (GLYPH_CACHEL):
11471         * glyphs.h (GLYPH_CACHEL_GLYPH):
11472         define error-checking versions to try to catch a bug i've seen --
11473         redisplay gets in an infinite loop because the glyph width of the
11474         continuation glyph is 65535.
11475
11476         * lisp.h:
11477         Extern message-box stuff.
11478
11479         * window.c (allocate_window):
11480         * window.c (make_dummy_parent):
11481         * window.c (Fset_window_configuration):
11482         Use EQUAL not EQ for subwindow caches to make them work a bit
11483         better. (Something is still very broken.)
11484
11485
11486 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
11487
11488         * glyphs.c (image_instantiate): Suppress gcc warnings.
11489         (Fmake_image_instance): Fix doc string.
11490         * specifier.c (Fmake_specifier): Ditto.
11491
11492 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
11493
11494         * paths.h.in (PATH_LOCK): Removed.
11495         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
11496         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
11497
11498 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
11499
11500         * fns.c (Ffeaturep): Update e-mail address in doc-string.
11501         Document (featurep '(and xemacs 21.02)).
11502
11503 2000-05-09  Ben Wing  <ben@xemacs.org>
11504
11505         * buffer.c (complex_vars_of_buffer):
11506         update modeline-format doc.
11507
11508         * device.h:
11509         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
11510
11511         * emacs.c:
11512         timeline of all released versions of Emacs, for use in creating
11513         authorship comments and in synching up.
11514
11515         * glyphs-widget.c (image_instantiator_buttons):
11516         * glyphs-widget.c (image_instantiator_edit_fields):
11517         * glyphs-widget.c (image_instantiator_combo_box):
11518         * glyphs-widget.c (image_instantiator_scrollbar):
11519         * glyphs-widget.c (image_instantiator_progress_guage):
11520         * glyphs-widget.c (image_instantiator_tree_view):
11521         * glyphs-widget.c (image_instantiator_tab_control):
11522         * glyphs-widget.c (image_instantiator_labels):
11523         * glyphs-widget.c (image_instantiator_layout):
11524         * glyphs-widget.c (image_instantiator_native_layout):
11525         rename decode_domain method to governing_domain.
11526
11527         * glyphs.c:
11528         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
11529         * glyphs.c (add_entry_to_device_ii_format_list):
11530         make sure we don't put an entry more than once into the list.
11531         * glyphs.c (check_instance_cache_mapper):
11532         *************************************************************
11533         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
11534         HAVE BEEN GETTING.
11535         *************************************************************
11536         * glyphs.c (get_image_instantiator_governing_domain):
11537         clean up, expand on new concept of governing domain.
11538         * glyphs.c (instantiate_image_instantiator):
11539         * glyphs.c (allocate_image_instance):
11540         use governing_domain instead of cache_domain in naming.
11541         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
11542         * glyphs.c (make_image_instance_1):
11543         * glyphs.c (Fmake_image_instance):
11544         allow for any domain (not just device), and process the
11545         governing domain correctly.  very big doc fix.
11546         * glyphs.c (Fimage_instance_domain):
11547         new primitive, to retrieve the governing domain of an image instance.
11548         * glyphs.c (image_instantiate):
11549         use new governing_domain stuff.  this fixes a crash you could get
11550         by instantiating certain widget glyphs in frame locales. (should
11551         signal an error instead of crashing.)
11552         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
11553         * glyphs.c (Fglyphp): clean up doc.
11554         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
11555         * glyphs.c (syms_of_glyphs):
11556         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
11557         * glyphs.c (image_instantiator_format_create): add some comments about
11558         bogus code.
11559         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
11560         for current-display-table. (Apparently Hrjove implemented in 1998 a
11561         design I wrote up in 1996, but didn't update the doc string.)
11562
11563         * glyphs.h: clean up a doc string.
11564         * glyphs.h (governing_domain):
11565         * glyphs.h (struct image_instantiator_methods):
11566         changes for governing_domain stuff.
11567
11568         * gutter.c:
11569         * gutter.c (Fgutter_specifier_p):
11570         * gutter.c (Fgutter_size_specifier_p):
11571         * gutter.c (Fgutter_visible_specifier_p):
11572         * objects.c:
11573         * objects.c (Fcolor_specifier_p):
11574         * objects.c (Ffont_specifier_p):
11575         * objects.c (Fface_boolean_specifier_p):
11576         doc strings moved to make-*-specifier.
11577
11578         * redisplay.c (add_disp_table_entry_runes_1):
11579         * redisplay.c (generate_fstring_runes):
11580         * redisplay.c (screen):
11581         add random comments and doc strings.
11582
11583         * specifier.c:
11584         * specifier.c (Fmake_specifier):
11585         major overhaul of this doc string.
11586
11587         * specifier.c (Fvalid_specifier_domain_p):
11588         comment about the bogosity of image instances being domains.
11589         * specifier.c (decode_domain):
11590         now non-static, used in glyphs.c.
11591         * specifier.c (specifier_instance):
11592         comment about the bogosity of image instances being domains.
11593         * specifier.c (Fgeneric_specifier_p):
11594         move doc string to make-generic-specifier.
11595         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
11596         rebackslashify.
11597
11598         * specifier.h:
11599         * specifier.h (DOMAIN_FRAME):
11600         * specifier.h (DOMAIN_LIVE_P):
11601         * specifier.h (DOMAIN_XDEVICE):
11602         rebackslashify.
11603         add comments about problems with these macros.
11604         prototype for decode_domain.
11605
11606         * toolbar.c:
11607         * toolbar.c (Ftoolbar_specifier_p):
11608         move doc string to `make-toolbar-specifier'.
11609
11610         * window.c (window_unmap_subwindows_cache_mapper):
11611         *************************************************************
11612         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
11613         HAVE BEEN GETTING.
11614         *************************************************************
11615
11616 2000-05-09  Andy Piper  <andy@xemacs.org>
11617
11618         * glyphs.h: declare reset_frame_subwindow_instance_cache.
11619
11620         * window.c (Fset_window_configuration): reset the frame subwindow
11621         cache and re-initialize the window subwindow caches.
11622
11623         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
11624
11625 2000-05-09  Ben Wing  <ben@xemacs.org>
11626
11627         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
11628         DWORD.
11629
11630 2000-04-26  Mike Woolley  <mike@bulsara.com>
11631
11632         * ntheap.c: Changed recreate_heap to limit the amount reserved
11633         for the heap to that which is actually available. Also now
11634         displays a message box (with some dignostics) in the event that
11635         it still can't start.
11636
11637 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
11638
11639         * callproc.c (Fold_call_process_internal): GCPRO path
11640
11641 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
11642
11643         Patch by Bill Perry.
11644
11645         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
11646         back data instead of #ifdef.
11647         (Fscrollbar_page_down): ditto.
11648
11649 2000-05-07  Ben Wing  <ben@xemacs.org>
11650
11651         * buffer.h:
11652         Kludge for defining Qmswindows_tstr.
11653
11654         * nt.c:
11655         * nt.c (open_input_file):
11656         * nt.c (open_output_file):
11657         * nt.c (rva_to_section):
11658         * nt.c (mswindows_executable_type):
11659         Move all memory-mapped-file routines here (some were in unexnt.c,
11660         which is bad because they are used by process-nt.c, and unexnt
11661         won't be around when portable dumping).  Synched the above routines
11662         with FSF 20.6.
11663
11664         * nt.h:
11665         Removed ifdef'd out bogus code.
11666         Fixed some prototypes.
11667
11668         * nt.h (file_data):
11669         * nt.h (OFFSET_TO_RVA):
11670         * nt.h (RVA_TO_OFFSET):
11671         * nt.h (RVA_TO_PTR):
11672         Moved the memory-mapped-file structures, macros and prototypes
11673         here, to parallel nt.c.  ntheap.h should really be removed
11674         entirely, and it's a non-portable-dumper specific file.
11675
11676         * ntheap.h (round_to_next):
11677         Moved the memory-mapped-file structures, macros and prototypes
11678         to nt.h.
11679
11680         * ntproc.c (compare_env):
11681         Moved rva_to_section and mswindows_executable_type to nt.c.
11682         Moved compare_env to process-nt.c.
11683         ntproc.c will die, one day.
11684
11685         * ntproc.c (sys_spawnve):
11686         Account for win32_ -> mswindows_.
11687
11688         * process-nt.c:
11689         * process-nt.c (struct nt_process_data):
11690         * process-nt.c (ensure_console_window_exists):
11691         * process-nt.c (compare_env):
11692         * process-nt.c (nt_create_process):
11693         * process-nt.c (nt_kill_process_by_pid):
11694         * process-nt.c (syms_of_process_nt):
11695         * process-nt.c (vars_of_process_nt):
11696         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
11697         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
11698         changes).  Eliminate our old `nt-quote-process-args' mechanism.
11699         Synch up nt_create_process with FSF 20.6 sys_spawnve.
11700         Move compare_env here from ntproc.c.
11701
11702         * process.c (Fprocess_send_region):
11703         Takes an optional fourth argument, BUFFER, which should fix some
11704         problems with call-process.
11705
11706         * syscommctrl.h:
11707         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
11708
11709         * syswindows.h:
11710         Move ICC_BAR_CLASSES to syscommctrl.h.
11711         Add preliminary macros for MSWindows/Mule.  More to come.
11712
11713         * unexnt.c:
11714         * unexnt.c (unexec):
11715         open_output_file moved to nt.c.
11716
11717
11718 2000-05-05  Andy Piper  <andy@xemacs.org>
11719
11720         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
11721         instance from the frame cache also since GC may catch up too late
11722         to make frame deletion sane.
11723
11724 2000-05-04  Andy Piper  <andy@xemacs.org>
11725
11726         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
11727         (x_finalize_image_instance): ungcpro on deletion.
11728
11729         * glyphs.c (image_instantiator_format_create): give pointers a
11730         query geometry method so that the geometry is at least set.
11731
11732         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
11733         initialize layouts if using widgets.
11734
11735 2000-05-03  Andy Piper  <andy@xemacs.org>
11736
11737         * nt.c: remove bogus reference to sysmmsystem.h
11738
11739         * gui-x.c (popup_selection_callback): fix no selection abort.
11740
11741 2000-05-02  Andy Piper  <andy@xemacs.org>
11742
11743         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
11744         (mswindows_widget_instantiate): ditto.
11745
11746         * glyphs-widget.c (initialize_widget_image_instance): initialize
11747         children correctly.
11748         (widget_instantiate): cope with children and items in the same
11749         instance.
11750
11751         * glyphs.c (mark_image_instance): cope with children as a first
11752         class member.
11753         (image_instance_equal): ditto.
11754         (image_instance_hash): ditto.
11755         (image_instance_changed): ditto.
11756
11757 2000-04-30  Andy Piper  <andy@xemacs.org>
11758
11759         * glyphs.c (subwindow_query_geometry): new function. Return some
11760         defaults.
11761         (subwindow_instantiate): don't assign dimensions if none have been
11762         given.
11763         (image_instantiator_format_create): add subwindow_query_geometry.
11764         (print_image_instance): cope with layouts as widgets.
11765
11766 2000-04-29  Andy Piper  <andy@xemacs.org>
11767
11768         * frame.c (delete_frame_internal): call
11769         free_frame_subwindow_instance_cache so that all subwindows are
11770         finalized before their parent.
11771         (mark_frame): remove subwindow_cachels.
11772         (Fmake_frame): remove subwindow_cachel manipulation.
11773         (allocate_frame_core): subwindow_instance_cache is a weak list.
11774         (delete_frame_internal): set subwindow_instance_cache to nil.
11775
11776         * glyphs-msw.c (mswindows_finalize_image_instance): make double
11777         finalization safe.
11778         (mswindows_finalize_image_instance): use the device
11779         not the domain as the domain may have died already.
11780
11781         * glyphs-x.c (x_finalize_image_instance): ditto.
11782         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
11783         HEIGHT.
11784
11785         * redisplay-output.c (redisplay_unmap_subwindows): update for
11786         subwindow instance cache as a weak list.
11787         (redisplay_unmap_subwindows_maybe): ditto.
11788         (redisplay_unmap_subwindows_except_us): ditto.
11789
11790         * glyphs.c (unmap_subwindow): error checking will check the domain
11791         so don't deal with it here. Don't use cachels anymore.
11792         (map_subwindow): ditto.
11793         (update_subwindow_cachel_data): remove old accessor names.
11794         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
11795         (Fresize_subwindow): don't update cachel.
11796         (mark_subwindow_cachels):
11797         (update_subwindow_cachel_data):
11798         (add_subwindow_cachel):
11799         (get_subwindow_cachel_index):
11800         (update_subwindow_cachel):
11801         (reset_subwindow_cachels):
11802         (mark_subwindow_cachels_as_not_updated): deleted.
11803         (cache_subwindow_instance_in_frame_maybe): new function. Add a
11804         subwindow instance to the frame cache.
11805         (find_matching_subwindow): update for subwindow instance cache as
11806         a weak list.
11807         (update_widget_instances): ditto.
11808         (image_instance_type_to_mask):inlined.
11809         (free_frame_subwindow_instance_cache): new function. finalize all
11810         subwindows that are instantiated.
11811
11812         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
11813         of cachel information.
11814         (IMAGE_INSTANCE_DISPLAY_X):
11815         (IMAGE_INSTANCE_DISPLAY_Y):
11816         (IMAGE_INSTANCE_DISPLAY_WIDTH):
11817         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
11818         (XIMAGE_INSTANCE_DISPLAY_X):
11819         (XIMAGE_INSTANCE_DISPLAY_Y):
11820         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
11821         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
11822         remove subwindow_cachel structure and function references.
11823         (image_instance_type_to_mask): inline from glyphs.c
11824
11825         * redisplay.c (redisplay_frame): remove subwindow_cachel
11826         references.
11827
11828         * frame.h (struct frame): remove subwindow_cachels.
11829         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
11830
11831         * frameslots.h: add subwindow_instance_cache.
11832
11833         * window.c (replace_window): check subwindow cache of replacement.
11834         (window_unmap_subwindows_cache_mapper):
11835         (window_unmap_subwindows): new functions. Unmap all subwindows
11836         cached on this window.
11837         (mark_window_as_deleted): unmap all subwindows.
11838
11839 2000-04-27  Andy Piper  <andy@xemacs.org>
11840
11841         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
11842
11843         * glyphs-widget.c (widget_layout): return something.
11844         (layout_layout): return something. Fail if not initialized.
11845         (layout_query_geometry): ditto.
11846         (image_instantiator_native_layout): new function. Initialized the
11847         native layout type.
11848         (widget_instantiate): don't do layout stuff here.
11849
11850         * glyphs.c (instantiate_image_instantiator): reorded calling or
11851         instantiate and post_instantiate with layout in between.
11852         (image_instance_layout): be more selective about deciding whether
11853         the layout has been done or not.
11854
11855         * glyphs.h (struct image_instantiator_methods): return a value
11856         from layout_method.
11857
11858 2000-04-26  Andy Piper  <andy@xemacs.org>
11859
11860         * glyphs.c (allocate_image_instance): make initial width and
11861         height unspecified. Set initialized to 0.
11862
11863         * syscommctrl.h new file. Encapsulates commctrl.h.
11864
11865         * syswindows.h new file. Encapsulates windows.h.
11866
11867         * ntplay.c: use new syswindows.h and syscommctrl.h header.
11868         * nt.c: ditto.
11869         * console-msw.h: ditto.
11870
11871         * redisplay-tty.c (tty_output_display_block): remove layout references.
11872
11873         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
11874         window handle rather than just the frame.
11875
11876         * glyphs.c (mark_image_instance): remove layout references.
11877         (print_image_instance): ditto.
11878         (image_instance_equal): ditto.
11879         (image_instance_hash): ditto.
11880         (decode_image_instance_type): ditto.
11881         (encode_image_instance_type): ditto.
11882         (image_instantiate): ditto.
11883         (allocate_glyph): ditto.
11884         (Fimage_instance_height): ditto.
11885         (Fimage_instance_width): ditto.
11886         (update_subwindow): ditto.
11887
11888         * redisplay-x.c (x_output_display_block): recode for layouts as
11889         widgets.
11890
11891         * redisplay-output.c (redisplay_output_layout): recode for layouts
11892         as widgets.
11893         (compare_runes): remove layout references.
11894
11895         * redisplay-msw.c (mswindows_output_display_block): recode for
11896         layouts as widgets.
11897
11898         * glyphs-widget.c (image_instantiator_layout): remove
11899         layout_possible_dest_types.
11900         (layout_possible_dest_types): deleted.
11901
11902         * glyphs.h (image_instance_type): remove layout references.
11903         (struct Lisp_Image_Instance): ditto. Add initialized flag.
11904         (IMAGE_INSTANCE_INITIALIZED): new accessor.
11905         (XIMAGE_INSTANCE_INITIALIZED): ditto.
11906
11907 2000-04-25  Andy Piper  <andy@xemacs.org>
11908
11909         * glyphs-widget.c (image_instantiator_buttons):
11910         (image_instantiator_edit_fields):
11911         (image_instantiator_combo_box):
11912         (image_instantiator_scrollbar):
11913         (image_instantiator_progress_guage):
11914         (image_instantiator_tree_view):
11915         (image_instantiator_tab_control):
11916         (image_instantiator_labels):
11917         (image_instantiator_layout): call default post_instantiate method.
11918         (widget_post_instantiate): new function. Simply lays out the
11919         widgets.
11920
11921         * glyphs.h (struct image_instantiator_methods): add
11922         post_instantiate method.
11923
11924         * glyphs.c (instantiate_image_instantiator): add post_instantiate
11925         method calls.
11926
11927 2000-04-23  Andy Piper  <andy@xemacs.org>
11928
11929         * glyphs.h (struct image_instantiator_methods): add
11930         decode_domain_method.
11931         (struct Lisp_Image_Instance): remove subwindow frame - it can be
11932         derived from the domain.
11933         (IMAGE_INSTANCE_FRAME): new accessor.
11934         (XIMAGE_INSTANCE_FRAME): ditto.
11935
11936         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
11937         instead of _SUBWINDOW_FRAME.
11938         (finalize_image_instance): ditto.
11939         (Fimage_instance_foreground): ditto.
11940         (Fimage_instance_background): ditto.
11941         (image_instantiate): ditto.
11942         (update_subwindow_cachel): ditto.
11943         (update_subwindow): ditto.
11944         (unmap_subwindow): ditto.
11945         (map_subwindow): ditto
11946         (subwindow_instantiate): ditto.
11947         * glyphs-msw.c (mswindows_update_widget): ditto.
11948         (mswindows_progress_gauge_instantiate): ditto.
11949         (mswindows_tab_control_update): ditto.
11950         * glyphs-x.c (x_update_widget): ditto.
11951         (x_widget_instantiate): ditto.
11952         (x_tab_control_instantiate): ditto.
11953         (x_tab_control_update): ditto.
11954         * event-msw.c (mswindows_wnd_proc): ditto
11955
11956         * glyphs-widget.c (image_instantiator_layout): use
11957         subwindow_decode_domain.
11958         (image_instantiator_buttons): ditto.
11959         (image_instantiator_edit_fields): ditto.
11960         (image_instantiator_combo_box): ditto.
11961         (image_instantiator_scrollbar): ditto.
11962         (image_instantiator_progress_guage): ditto.
11963         (image_instantiator_tree_view): ditto.
11964         (image_instantiator_tab_control): ditto.
11965         (image_instantiator_labels): ditto.
11966         (image_instantiator_layout): ditto.
11967
11968         * glyphs.c: add instance error checking to many functions.
11969         (instantiate_image_instantiator): decode device from cache_domain.
11970         (image_instantiate): partially rewrite by using
11971         decode_image_instantiator_domain to determine what domain the
11972         instance needs to be cached in.
11973         (decode_image_instantiator_domain): new function. Determine what
11974         domain the image needs to be cached in.
11975         (check_window_subwindow_cache): new error checking function.
11976         (check_instance_cache_mapper): ditto.
11977         (check_image_instance_structure): ditto.
11978         (subwindow_decode_domain): new function. Encodes a window as a
11979         subwindow's cache domain.
11980         (image_instantiator_format_create): use it for text and
11981         subwindows.
11982
11983 2000-04-21  Andy Piper  <andy@xemacs.org>
11984
11985         * glyphs.c (image_instance_device): new function.
11986         (image_instance_frame): new function.
11987         (image_instance_window): new function.
11988         (image_instance_live_p): new function.
11989
11990         * window.c (mark_window_as_deleted): reset the subwindow_instance_
11991         cache to nil.
11992
11993         * glyphs.h (struct Lisp_Image_Instance): device->domain.
11994         (IMAGE_INSTANCE_DOMAIN): new accessor.
11995         (XIMAGE_INSTANCE_DOMAIN): ditto.
11996
11997         * glyphs-x.c (x_finalize_image_instance): device->domain.
11998
11999         * glyphs-msw.c (init_image_instance_geometry): device->domain.
12000         (mswindows_finalize_image_instance): ditto.
12001
12002         * glyphs-eimage.c (jpeg_instantiate): device->domain.
12003         (gif_instantiate): ditto.
12004         (png_instantiate): ditto.
12005         (tiff_instantiate): ditto.
12006
12007         * glyphs.c (instantiate_image_instantiator): use domain rather
12008         than device.
12009         (mark_image_instance): device -> domain.
12010         (print_image_instance): ditto.
12011         (finalize_image_instance): ditto.
12012         (image_instance_equal): ditto.
12013         (allocate_image_instance): ditto.
12014         (Fcolorize_image_instance): ditto.
12015         (query_string_geometry): ditto.
12016         (image_instantiate): ditto
12017         (query_string_font): ditto.
12018         (image_instantiate): ditto.
12019         (update_subwindow): ditto.
12020         (unmap_subwindow): ditto.
12021         (map_subwindow): ditto.
12022         (subwindow_instantiate): ditto.
12023
12024         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
12025         (DOMAIN_FRAME): ditto.
12026         (DOMAIN_WINDOW): ditto.
12027         (DOMAIN_LIVE_P): ditto.
12028         (XDOMAIN_DEVICE): ditto.
12029         (XDOMAIN_FRAME): ditto.
12030         (XDOMAIN_WINDOW): ditto.
12031
12032         * specifier.c (Fvalid_specifier_domain_p): add image instances as
12033         a valid specifier domain.
12034
12035 2000-04-19  Andy Piper  <andy@xemacs.org>
12036
12037         * glyphs-widget.c (syms_of_glyphs_widget): remove
12038         widget-callback-current-channel.
12039         (vars_of_glyphs_widget): ditto.
12040         * glyphs.h: ditto
12041
12042         * gui.c (get_gui_callback): revert to previous behaviour.
12043
12044 2000-04-18  Andy Piper  <andy@xemacs.org>
12045
12046         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
12047         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
12048         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
12049
12050         * glyphs.c (image_instance_equal): add margin_width.
12051         (image_instance_hash): ditto.
12052
12053         * glyphs-widget.c (widget_instantiate): deal with margin-width.
12054         (layout_query_geometry): ditto.
12055         (layout_layout): ditto.
12056         (syms_of_glyphs_widget): add margin-width.
12057         (image_instantiator_layout): allow margin-width.
12058
12059         * glyphs.c (update_widget_instances): make a normal function.
12060         (syms_of_glyphs): remove Qupdate_widget_instances.
12061         * glyphs.h: ditto.
12062
12063         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
12064         so that we don't corrupt ideas about the last event or
12065         command. Remove widget-callback-current-channel fiddling.
12066         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
12067
12068 2000-05-01  Martin Buchholz <martin@xemacs.org>
12069
12070         * XEmacs 21.2.33 is released.
12071
12072 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
12073
12074         * make-src-depend: Allow dots in header file name.
12075
12076 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
12077
12078         * mule-charset.h (struct charset_lookup): Add
12079         next_allocated_1_byte_leading_byte and
12080         next_allocated_2_byte_leading_byte.
12081         * mule-charset.c: Move above two variables so that those values
12082         will be dumped.
12083
12084 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
12085
12086         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
12087         when string length is zero.
12088         (find_charsets_in_emchar_string): Ditto.
12089
12090 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
12091
12092         * lisp.h: extern Qdialog and Qmenubar.
12093
12094         * gui-x.c: added events.h.
12095                 also fixed typo which made the file uncompilable.
12096
12097         * general.c: Added Qmenubar and Qdialog
12098
12099 2000-04-28  Ben Wing  <ben@xemacs.org>
12100
12101         * frame-msw.c (mswindows_init_frame_1):
12102         * frame-msw.c (mswindows_mark_frame):
12103         * event-msw.c (mswindows_enqueue_dispatch_event):
12104         * console-msw.h:
12105         * console-msw.h (struct mswindows_frame):
12106         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
12107         there are now three hash tables for callbacks.
12108         mswindows_enqueue_dispatch_event is no longer static.
12109
12110         * dialog-x.c (maybe_run_dbox_text_callback):
12111         * dialog-x.c (dbox_descriptor_to_widget_value):
12112         switch to new cons3 form for callbacks.
12113
12114         * glyphs-msw.c (mswindows_register_gui_item):
12115         * glyphs-msw.c (mswindows_widget_instantiate):
12116         * glyphs-msw.c (add_tree_item):
12117         * glyphs-msw.c (add_tab_item):
12118         new image instance parameter, so it can be passed to callback-ex.
12119         respect :callback-ex as well as :callback.
12120
12121         * glyphs-widget.c (VALID_GUI_KEYWORDS):
12122         add :callback-ex.
12123
12124         * glyphs.c (print_image_instance):
12125         prettify, e.g. now prints widget type.
12126
12127         * gui-x.h:
12128         certain funs have new image instance parameter.
12129
12130         * gui.c:
12131         * gui.c (get_gui_callback):
12132         * gui.c (gui_item_add_keyval_pair):
12133         * gui.c (gui_item_init):
12134         * gui.c (gui_add_item_keywords_to_plist):
12135         * gui.c (mark_gui_item):
12136         * gui.c (gui_item_hash):
12137         * gui.c (gui_item_equal):
12138         * gui.c (copy_gui_item):
12139         * gui.c (syms_of_gui):
12140         recognize callback-ex in a number of places.
12141         also, fix the annoying "can't get out of yes-no dialog" bug.
12142
12143         * gui.h:
12144         * gui.h (struct Lisp_Gui_Item):
12145         recognize callback-ex in a number of places.
12146
12147         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
12148         new parameter in button_item_to_widget_value.
12149
12150         * glyphs-x.c (x_update_widget):
12151         * glyphs-x.c (x_button_instantiate):
12152         * glyphs-x.c (x_button_update):
12153         * glyphs-x.c (x_progress_gauge_instantiate):
12154         * glyphs-x.c (x_edit_field_instantiate):
12155         * glyphs-x.c (x_combo_box_instantiate):
12156         * glyphs-x.c (x_tab_control_instantiate):
12157         * glyphs-x.c (x_label_instantiate):
12158         new image instance parameter in various places.
12159
12160         * event-Xt.c:
12161         * event-Xt.c (enqueue_Xt_dispatch_event):
12162         this fun gets exported.
12163
12164         * gui-msw.c:
12165         * gui-msw.c (mswindows_handle_gui_wm_command):
12166         handle both :callback and :callback-ex, and generate our own
12167         event because it's one of the callback-ex arguments.
12168
12169         * gui-x.c:
12170         * gui-x.c (popup_selection_callback):
12171         handle both :callback and :callback-ex, and generate our own
12172         event because it's one of the callback-ex arguments.
12173         * gui-x.c (button_item_to_widget_value):
12174         * gui-x.c (gui_items_to_widget_values_1):
12175         * gui-x.c (gui_item_children_to_widget_values):
12176         * gui-x.c (gui_items_to_widget_values):
12177         new image instance parameter in various places.
12178
12179         * fns.c (Freplace_list):
12180         fix small typo in doc string.
12181
12182         * lisp.h:
12183         declare enqueue_Xt_dispatch_event.
12184
12185 2000-04-28  Ben Wing  <ben@xemacs.org>
12186
12187         * buffer.c:
12188         * buffer.c (Frecord_buffer):
12189         * buffer.c (syms_of_buffer):
12190         delete record-buffer-hook.
12191
12192         * fns.c:
12193         * fns.c (Freplace_list):
12194         * fns.c (syms_of_fns):
12195         new primitive replace-list.
12196
12197         * frameslots.h:
12198         slot for old buffer-alist.
12199
12200         * lisp.h:
12201         exfun replace-list.
12202
12203         * redisplay.c:
12204         * redisplay.c (redisplay_frame):
12205         * redisplay.c (syms_of_redisplay):
12206         * redisplay.c (vars_of_redisplay):
12207         new hook buffer-list-changed-hook.
12208         call it.
12209
12210 2000-04-27  Ben Wing  <ben@xemacs.org>
12211
12212         * extents.h: extern in_modeline_generation.
12213
12214         * redisplay.c (generate_formatted_string_db): set
12215         in_modeline_generation.
12216
12217         * extents.c (extent_changed_for_redisplay): don't mark redisplay
12218         flags if in modeline generation.  otherwise frame-modified-tick
12219         is ticked far too often.
12220         Declare in_modeline_generation.
12221
12222 2000-04-26  Ben Wing  <ben@xemacs.org>
12223
12224         * emacs.c (vars_of_emacs): document quick-build "error-checking"
12225         option.
12226         (vars_of_emacs): add quick-build as an error-checking option.
12227         A bit kludgy, but there doesn't seem much point in creating
12228         a real var for this.
12229
12230         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
12231
12232 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
12233
12234         * redisplay.h (struct display_line): Add a new variable,
12235         line_continuation.
12236
12237         * redisplay.c (create_text_block): Set dl->line_continuation if
12238         the line continues.
12239         (create_string_text_block): Ditto.
12240         (regenerate_window_incrementally): Use line_continuation instead
12241         of searching continuation glyph.
12242         (add_margin_runes): Call add_glyph_rune.
12243         (add_glyph_rune): Handle margin glyph.
12244
12245 2000-04-20  Martin Buchholz  <martin@xemacs.org>
12246
12247         * filelock.c (fill_in_lock_file_name):
12248         ANSIfy.
12249         Check for IS_ANY_SEP instead of '/'.
12250         (lock_file_1):
12251         Avoid generating gratuitous garbage.  Call user_login_name() directly.
12252         Never check errno without first seeing that system call failed.
12253         (unlock_file): Add GCPRO.
12254         (Flock_buffer): Fix docstring.
12255         (Ffile_locked_p): Fix docstring.  Add GCPRO.
12256
12257 2000-04-19  Martin Buchholz  <martin@xemacs.org>
12258
12259         * sysdep.c (get_pty_max_bytes):
12260         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
12261         strings longer than 252 bytes.
12262
12263         * md5.c: Unconditionally include ANSI header <limits.h>
12264
12265         * glyphs-x.c (convert_EImage_to_XImage):
12266         * lisp-union.h (union Lisp_Object):
12267         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
12268
12269 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
12270
12271         * filelock.c (current_lock_owner): Remove unused variable o, p.
12272
12273 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
12274
12275         * callint.c: Remove multiply defined symbol Qlet
12276         (syms_of_callint): ditto.
12277
12278 2000-04-14  Andy Piper  <andy@xemacs.org>
12279
12280         * general.c (syms_of_general): add last-command, this-command, let
12281         and funcall.
12282
12283         * lisp.h: declare various symbols.
12284
12285         * glyphs.h: declare Qwidget_callback_current_channel;
12286
12287         * glyphs-widget.c (syms_of_glyphs_widget): add
12288         Qgui_callback_current_channel.
12289         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
12290
12291         * gui-msw.c (mswindows_handle_gui_wm_command): bind
12292         widget-callback-current-channel when invoking the interactive
12293         arg. Also bind last-command and next-command when invoking the
12294         widget updates.
12295         * gui-x.c (popup_selection_callback): ditto.
12296
12297         * gui.c (get_gui_callback): massage args so that we are always
12298         calling eval. This allows us to add our own variable bindings
12299         outside.
12300
12301         * glyphs-x.c (x_button_instantiate): use
12302         gui_items_to_widget_values since this is GC safe.
12303         (x_progress_gauge_instantiate): ditto.
12304         (x_edit_field_instantiate): ditto.
12305         (x_label_instantiate): ditto.
12306
12307         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
12308         (emacs_Xt_event_widget_focus_out): new function
12309         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
12310         focus.
12311         (emacs_Xt_event_add_widget_actions): new function. add focus
12312         functions as actions.
12313         (init_event_Xt_late): use it.
12314
12315 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
12316
12317         * event-stream.c (Fdispatch_event): Doc fix.
12318
12319 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
12320
12321         * postgresql.c: Remove all references to PQsetenv*.
12322
12323         * postgresql.h: Remove references to PGsetenvHandler object.
12324         * lrecord.h (lrecord_type): Ditto.
12325
12326 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12327
12328         * glyphs-msw.h (struct mswindows_image_instance_data): Added
12329         real_heigh and real_width members, and accessor macros for these.
12330
12331         * glyphs-msw.c (init_image_instance_geometry): New function.
12332         (init_image_instance_from_dibitmap): Use it.
12333         (mswindows_resource_instantiate): Use it.
12334         (init_image_instance_from_xbm_inline): Use it.
12335         (mswindows_initialize_image_instance_mask): Use real bitmap
12336         geometry.
12337         (mswindows_create_resized_bitmap): Ditto.
12338         (mswindows_create_resized_mask): Ditto.
12339
12340         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
12341         and bitmap to their surface size.
12342
12343 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
12344
12345         * process-unix.c (unix_send_process): Guard against process MIA
12346         after Faccept_process_output.
12347
12348 2000-04-11  Ben Wing  <ben@xemacs.org>
12349
12350         * eval.c (unbind_to_hairy): fix brokenness introduced by
12351         nanosecond speed improvements.
12352
12353 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
12354
12355         * sunplay.c (init_device): To play sounds correctly, the device
12356         apparently needs to be initialized at least once by XEmacs.  Make
12357         it so.
12358
12359 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
12360
12361         * redisplay.c (add_margin_runes): Add text image glyph
12362           handling.
12363
12364 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
12365
12366         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
12367         gcc is newer than 2.5.
12368
12369 2000-04-06  Colin Rafferty  <colin@xemacs.org>
12370
12371         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
12372
12373         * fns.c (size_bit_vector):
12374         * alloc.c (size_vector):
12375         (make_vector_internal):
12376         (make_bit_vector_internal):
12377         (sweep_bit_vectors_1):
12378         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
12379
12380 2000-04-06  Andy Piper  <andy@xemacs.org>
12381
12382         * gmalloc.c (malloc): undo previous change.
12383         (malloc): ditto.
12384         (free): ditto.
12385         (realloc): ditto.
12386
12387 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
12388
12389         * line-number.c (buffer_line_number): Revert to former version.
12390
12391 2000-04-06  Andy Piper  <andy@xemacs.org>
12392
12393         * gmalloc.c (malloc): add error checking.
12394         (malloc): ditto.
12395         (free): ditto.
12396         (realloc): ditto.
12397
12398         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
12399         button_item_to_widget_value arg.
12400
12401         * glyphs-x.c (x_button_instantiate): add extra
12402         button_item_to_widget_value arg.
12403         (x_progress_gauge_instantiate): ditto.
12404         (x_edit_field_instantiate): ditto.
12405         (x_label_instantiate): ditto.
12406
12407         * gui-x.c (gui_items_to_widget_values_1): add extra
12408         button_item_to_widget_value arg.
12409         (button_item_to_widget_value): add extra menu_item_p arg.
12410
12411         * gui-x.h: change signature of button_item_to_widget_value.
12412
12413         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
12414         button_item_to_widget_value arg.
12415
12416 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
12417
12418         * buffer.h (struct buffer): auto_save_modified should be long.
12419
12420 2000-04-05  Andy Piper  <andy@xemacs.org>
12421
12422         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
12423         type.
12424         (button_query_geometry): give a little more room so that athena
12425         buttons fit.
12426
12427 2000-04-05  Andy Piper  <andy@xemacs.org>
12428
12429         * faces.c (complex_vars_of_faces): The widget face should inherit
12430         the font of the gui-element face.
12431
12432 2000-04-04  Andy Piper  <andy@xemacs.org>
12433
12434         * glyphs-x.c (x_button_update): new function. unconditionally
12435         update a button's state when the instance is dirty.
12436         (image_instantiator_format_create_glyphs_x): add x_button_update.
12437         (x_widget_instantiate): remove old resize cruft.
12438
12439 2000-04-02  Andy Piper  <andy@xemacs.org>
12440
12441         * frame.c (change_frame_size_1): The introduction of gutters means
12442         that we need to allow 0 as a potential frame dimension.
12443
12444 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
12445
12446         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
12447         image glyph if allow_cursor.
12448         (add_hscroll_rune): Don't allow cursor to border glyph.
12449         (create_text_block): Ditto.
12450
12451         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
12452         text not in buffer.
12453         (redisplay_output_layout): Call ensure_face_cachel_complete for
12454         text image glyph.
12455
12456
12457 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
12458
12459         * redisplay.c (add_glyph_rune): Adding text image as text runes.
12460
12461         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
12462         not in buffer
12463
12464         * redisplay-tty.c (tty_output_display_block): Delete the routine
12465         for text image glyph
12466         * redisplay-x.c (x_output_display_block): ditto
12467         * redisplay-msw.c (mswindows_output_display_block): ditto
12468
12469 2000-02-02  Mike Alexander  <mta@arbortext.com>
12470
12471         Note: Some of these were committed by accident as part of other
12472         patches.
12473
12474         * regex.c (regex_compile): Avoid compiler warnings.
12475
12476         * ntproc.c (sys_spawnve): Avoid compiler warnings.
12477
12478         * nt.h: Declare term_ntproc correctly.
12479
12480         * nt.c: Remove incorrect declaration of get_home_directory which
12481         is declared correctly in lisp.h.
12482
12483         * keymap.c (get_keyelt): Avoid compiler warnings.
12484         (raw_lookup_key_mapper): Avoid compiler warnings.
12485
12486         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
12487
12488         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
12489
12490         * filemode.c (mode_string): Avoid compiler warnings.
12491
12492         * file-coding.c (Fcoding_system_aliasee): Add return statement to
12493         avoid warning.
12494
12495         * events-mod.h: Undef some things that winuser.h defines differently.
12496
12497         * data.c (Faset): Avoid compiler warnings.
12498
12499         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
12500
12501 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
12502
12503         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
12504         Fall through to simple beep on error.
12505         Replace "extern" by real header file.
12506
12507         * linuxplay.c: Use nativesound.h
12508         (play_sound_data): Return error code. Be less verbose on error.
12509
12510         * sunplay.c: Use nativesound.h
12511         (play_sound_data): Return error code. Be less verbose on error.
12512
12513         * ntplay.c: Use nativesound.h
12514         (play_sound_data): Return fake error code
12515
12516         * sgiplay.c: Use nativesound.h
12517         (play_sound_data): Return error code
12518
12519         * hpplay.c: Use nativesound.h, partially implement
12520         new error code. Break compilation until finished.
12521         (play_sound_data): error code.
12522
12523         * nativesound.h (play_sound_file):
12524           (play_sound_data): Prototype in new header.
12525
12526 2000-03-31  Andy Piper  <andy@xemacs.org>
12527
12528         * glyphs-widget.c: (button_query_geometry): new function. Adjust
12529         for toggle and radio buttons.
12530         (image_instantiator_buttons): use it.
12531
12532 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
12533
12534         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
12535         (x_update_horizontal_scrollbar_callback): Return if no mirror was
12536         found. Scrollbar event probably belonged to some old config.
12537
12538 2000-03-31  Andy Piper  <andy@xemacs.org>
12539
12540         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
12541         than 1.
12542         (initialize_widget_image_instance): default layout to
12543         LAYOUT_HORIZONTAL rather than 0.
12544         (widget_instantiate): reverse the item list at the end rather than
12545         every iteration.
12546         (layout_layout): re-code for the border text at the front of the
12547         item list rather than at the end.
12548         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
12549         provided by the user.
12550         (widget_query_geometry): comment.
12551
12552 2000-03-30  Andy Piper  <andy@xemacs.org>
12553
12554         * glyphs-widget.c (image_instantiator_layout): allow standard
12555         widget keywords in layouts.
12556
12557         * gutter.c (output_gutter): cope with nil gutter contents.
12558
12559         * frame.c (Fset_frame_properties): add gutter docs.
12560
12561 2000-03-29  Andy Piper  <andy@xemacs.org>
12562
12563         * toolbar-msw.c (TBSTYLE_FLAT): add.
12564         (mswindows_output_toolbar): minor fiddling.
12565
12566 2000-03-29  Andy Piper  <andy@xemacs.org>
12567
12568         * gutter.c (output_gutter): force gutter size recalculation if
12569         what we are trying to display won't fit.
12570         (update_gutter_geometry): new function. A per-gutter version of
12571         update_frame_gutter_geometry.
12572         (update_frame_gutter_geometry): use it.
12573         (redraw_exposed_gutter): add extra debugging output.
12574
12575 2000-03-28  Mike Alexander  <mta@arbortext.com>
12576
12577         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
12578         (pdump_file_unmap): Implement it on Windows
12579         (pdump_file_get): Save alocated handles for pdump_file_unmap
12580
12581 2000-03-28  Andy Piper  <andy@xemacs.org>
12582
12583         * gui.c (get_gui_callback): treat Quit specially.
12584
12585 2000-03-27  Andy Piper  <andy@xemacs.org>
12586
12587         * glyphs.c (image_instantiate): be careful to check in the same
12588         way we assigned.
12589
12590 2000-03-27  Didier Verna  <didier@xemacs.org>
12591
12592         * config.h.in: define the proper SMART_INCLUDE macro.
12593         handle renaming of `foo_h_path' to `foo_h_file'.
12594
12595         * database.c: ditto.
12596
12597         * emacs.c: ditto.
12598
12599         * linuxplay.c: ditto.
12600
12601         * terminfo.c: ditto.
12602
12603         * tooltalk.h: ditto.
12604
12605 2000-03-27  Andy Piper  <andy@xemacs.org>
12606
12607         * glyphs-msw.c (mswindows_update_widget): make sure the widget
12608         gets updated whenever the face might have changed.
12609
12610 2000-03-26  Mike Alexander  <mta@arbortext.com>
12611
12612         * dumper.c (pdump_resource_free): Fix the comment.
12613
12614 2000-03-21  Olivier Galibert  <galibert@pobox.com>
12615
12616         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
12617
12618 2000-03-22  Mike Alexander  <mta@arbortext.com>
12619
12620         * dumper.c: Include Windows headers on Windows
12621         (pdump_resource_free): Add a body to the function
12622         (pdump_load): exe_name -> exe_path and add some comments.
12623
12624 2000-03-25  Mike Alexander  <mta@arbortext.com>
12625
12626         * gui.c (copy_gui_item_tree): Return a value in all cases
12627
12628 2000-03-21  Didier Verna  <didier@xemacs.org>
12629
12630         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
12631         lwlib/config.h.in.
12632         (SMART_INCLUDE): new macro.
12633         (POSTGRES_INCLUDE): new macro to include postgresql headers from
12634         the proper location.
12635
12636         * postgresql.c: use it.
12637
12638         * inline.c: ditto.
12639
12640 2000-03-24  Andy Piper  <andy@xemacs.org>
12641
12642         * gutter.c (redraw_exposed_gutters): must be "in display" when we
12643         do this.
12644
12645 2000-03-24  Andy Piper  <andy@xemacs.org>
12646
12647         * redisplay-output.c (compare_runes): use image_instance_changed
12648         to detect changes. Do not depend on glyphs_changed, only depend on
12649         dirtiness.
12650          (redisplay_output_layout): add debug messages.
12651         (compare_runes): ditto.
12652
12653         * glyphs.h: declare new functions.
12654         (struct Lisp_Image_Instance): remove percent and associated
12655         accessors.
12656
12657         * gui.h: declare new copying functions.
12658
12659         * gui.c (copy_gui_item_tree): new function.
12660         (copy_gui_item): new function.
12661         (gui_item_id_hash): revert to standard hash.
12662         (gui_item_hash): ditto.
12663         (gui_item_hash_internal): deleted.
12664         (mark_gui_item): mark value.
12665         (gui_item_add_keyval_pair): add value.
12666         (gui_item_init): ditto.
12667         (gui_add_item_keywords_to_plist): ditto.
12668         (gui_item_equal): ditto.
12669         (syms_of_gui): add Q_value.
12670
12671         * glyphs-x.c (x_progress_gauge_update): use pending items and
12672         value for setting the state.
12673         (x_update_widget): don't set items from pending here.
12674
12675         * glyphs-widget.c (update_widget): update items here.
12676         (progress_gauge_set_property): use items for storing value. Put
12677         new value in pending items.
12678
12679         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
12680         items for new value. Convert percent -> value.
12681         (mswindows_tab_control_update): don't update items here.
12682
12683         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
12684         (update_subwindow): ditto.
12685         (image_instance_changed): new function. Compare hash values and
12686         past and present widget items.
12687         (image_instantiate): We more careful about where we instantiate
12688         things.
12689         (image_instantiate): add error checking.
12690
12691         * gutter.c (syms_of_gutter): use -hook.
12692
12693 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
12694
12695         * console-tty.c (Fset_console_tty_input_coding_system): Use
12696         Qkeyboard.
12697         (Fset_console_tty_output_coding_system): Use Qterminal.
12698         (tty_init_console): Use Qkeyboard and Qterminal.
12699
12700 2000-03-21  Ben Wing  <ben@xemacs.org>
12701
12702         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
12703         From Mike Alexander <mta@arbortext.com>.
12704
12705 2000-03-21  Ben Wing  <ben@xemacs.org>
12706
12707         * event-msw.c (mswindows_need_event): Horrible kludge to fix
12708         process brokenness.  Proper implementation to come.
12709         * callproc.c:
12710         Rename call-process-internal to old-call-process-internal.
12711         New impl. in process.el.
12712
12713 2000-03-21  Martin Buchholz  <martin@xemacs.org>
12714
12715         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
12716
12717 2000-03-20  Andy Piper  <andy@xemacs.org>
12718
12719         * glyphs.c (full_list_hash): make hashes of the same elements in
12720         different orders return different values.
12721
12722 2000-03-20  Martin Buchholz <martin@xemacs.org>
12723
12724         * XEmacs 21.2.32 is released.
12725
12726 2000-03-20  Martin Buchholz  <martin@xemacs.org>
12727
12728         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
12729         (DFC_MALLOC_USE_CONVERTED_DATA):
12730         Add aliasing-safe casts to allow use with char* or unsigned char*
12731         lvalues.
12732
12733         * eldap.c (Fldap_open):
12734         (Fldap_search_basic):
12735         (Fldap_add):
12736         (Fldap_modify):
12737         Make C++-compilable.
12738         Make sure GCPRO'ed variables are initialized.
12739         Use temp variables to avoid repeated calls to Flength.
12740
12741 2000-03-16  Martin Buchholz  <martin@xemacs.org>
12742
12743         * sysfile.h:
12744         Make sure PATH_MAX is always defined.
12745         Include limits.h for PATH_MAX.
12746         Deprecate use of MAXPATHLEN.
12747
12748 2000-03-10  Martin Buchholz  <martin@xemacs.org>
12749
12750         * emacs.c: Add reinit_vars_of_fileio.
12751         * symsinit.h: Add reinit_vars_of_fileio.
12752         * fileio.c (reinit_vars_of_fileio): New.
12753         * fileio.c (Fmake_temp_name):
12754         Initialize temp_name random number from microseconds to make
12755         collisions even less likely.  Initialize always at process startup
12756         time.  (make-temp-name) used to return the same file name twice in
12757         a row when PDUMP.
12758         Random stylistic fiddling.
12759         Comment fixes.
12760
12761 2000-03-20  Andy Piper  <andy@xemacs.org>
12762
12763         * glyphs.c (image_instantiate): allow text glyphs to be
12764         instantiated in the minibuffer window.
12765
12766 2000-03-19  Andy Piper  <andy@xemacs.org>
12767
12768         * glyphs.c (image_instance_hash): be careful about which items we
12769         hash on.
12770
12771         * glyphs-widget.c (tab_control_set_property): record into pending
12772         items rather than the actual items.
12773
12774         * glyphs-x.c (x_update_widget): use pending items to update with.
12775
12776         * glyphs-msw.c (mswindows_tab_control_update): use pending items
12777         to update with.
12778
12779         * glyphs.c (mark_image_instance): mark pending items.
12780
12781         * window.c (Fset_window_configuration): record the buffer.
12782         (Fselect_window): totally revert previous change which breaks many
12783         things.
12784
12785 2000-03-18  Andy Piper  <andy@xemacs.org>
12786
12787         * glyphs-msw.c (mswindows_tab_control_update): force selected
12788         item.
12789
12790         * glyphs.c (image_instantiate): don't allow the minibuffer as a
12791         window domain cache, otherwise we get inconsistencies at
12792         startup. There is something fishy at startup which can lead to the
12793         minibuffer being the selected window when the gutter content is
12794         instantiated.
12795
12796         * gui.c (parse_gui_item_tree_list): add probably unnecessary
12797         gcpros.
12798         (parse_gui_item_tree_children): ditto.
12799         (parse_gui_item_tree_item): ditto.
12800
12801         * glyphs.c (Fupdate_widget_instances): return something.
12802
12803 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
12804
12805         * window.c (Fselect_window): Undo 2000-03-17 change.
12806
12807 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
12808
12809         * postgresql.c (Fpq_setenv): Remove this turkey when linking
12810         against v7.0 libraries.  Insta-coredump city until the postgres
12811         folks fix it.
12812
12813 2000-03-17  Andy Piper  <andy@xemacs.org>
12814
12815         * faces.c (complex_vars_of_faces): don't give the widget face an
12816         inherited background pixmap.
12817
12818         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
12819         selected item.
12820
12821         * event-stream.c (Fdispatch_non_command_events): return something.
12822
12823         * gutter.c (output_gutter): use widget face.
12824         (clear_gutter): ditto.
12825
12826         * NEWS: adjust again.
12827
12828         * window.c (Fselect_window): make sure this runs to completion to
12829         avoid oddities with Fset_window_configuration.
12830         (Fcurrent_window_configuration): in general do not save the
12831         minibuffer as the selected window.
12832
12833         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
12834
12835 2000-03-16  Olivier Galibert  <galibert@pobox.com>
12836
12837         * emacs.c (Frunning_temacs_p): Revert previous patch.
12838         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
12839
12840 2000-03-16  Andy Piper  <andy@xemacs.org>
12841
12842         * glyphs-x.c (x_tab_control_update): if no widget values then
12843         return.
12844
12845         * NEWS: update for new features.
12846
12847         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
12848         synthetic event to the native system.
12849         (reinit_vars_of_event_Xt): set force_event_pending to
12850         emacs_Xt_force_event_pending.
12851
12852         * events.h (struct event_stream): add force_event_pending.
12853
12854         * specifier.c (recompute_one_cached_specifier_in_window): add
12855         comment.
12856
12857         * redisplay.c (redisplay_frame): don't call
12858         update_frame_subwindows. Reset subwindow cachels when
12859         subwindows_changed, removing this was an optimization too far.
12860
12861         * redisplay-output.c (compare_runes): reorganize so that we catch
12862         glyph changes when we want them. Set optimize_output when this
12863         would help layouts.
12864         (redisplay_output_layout): remove frame_really_changed, use
12865         optimize_output instead.
12866
12867         * redisplay-msw.c (mswindows_output_display_block): reset
12868         optimize_output after outputting a glyph.
12869         * redisplay-x.c (x_output_display_block): ditto.
12870         * redisplay-tty.c (tty_output_display_block): ditto.
12871
12872         * gutter.c: (specifier_vars_of_gutter): use new spec changed
12873         functions.
12874         (gutter_specs_changed): do specific gutter positions.
12875         (top_gutter_specs_changed): new function. Only update the
12876         specified gutter specs.
12877         (bottom_gutter_specs_changed): ditto.
12878         (left_gutter_specs_changed): ditto.
12879         (right_gutter_specs_changed): ditto.
12880
12881         * gui.c (gui_item_hash_internal): new function, does a real hash.
12882         (gui_item_id_hash): use it.
12883         (gui_item_hash): hash the eval'ed gui_item.
12884
12885         * gui-x.c (popup_selection_callback): send an eval event to call
12886         Fupdate_widget_instances.
12887
12888         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
12889         to call Fupdate_widget_instances.
12890
12891         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
12892         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
12893
12894         * glyphs.c: (update_frame_subwindows): deleted.
12895         (Fupdate_widget_instances): new function for updating the dirty
12896         state of widgets that might have changed.
12897         (syms_of_glyphs): add Qupdate_widget_instances.
12898         (full_list_hash): hash a list completely.
12899         (image_instance_hash): use it for items and properties.
12900
12901         * frame-msw.c (mswindows_size_frame_internal): remove unused
12902         variable.
12903
12904         * faces.h (struct face_cachel): fix comment.
12905
12906         * event-stream.c (Fdispatch_non_command_events): new
12907         function. Process non-command events, forcing an event cycle
12908         beforehand.
12909         (syms_of_event_stream): declare.
12910         (event_stream_force_event_pending): new function. Force an event
12911         on the native event queue so that an event cycle will occur next
12912         time we check.
12913
12914         * event-msw.c:
12915         (struct ntpipe_shove_stream):
12916         (mswindows_enqueue_dispatch_event):
12917         (mswindows_dequeue_dispatch_event):
12918         (mswindows_cancel_dispatch_event):
12919         (mswindows_pump_outstanding_events):
12920         (mswindows_drain_windows_queue):
12921         (mswindows_handle_paint):
12922         (mswindows_wnd_proc):
12923         (mswindows_key_to_emacs_keysym):
12924         (get_process_input_waitable):
12925         (emacs_mswindows_delete_stream_pair): re-indent file.
12926         (mswindows_need_event): do not process further fds if the windows
12927         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
12928         fixes the 100% cpu problem.
12929         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
12930
12931 2000-03-15  Olivier Galibert  <galibert@pobox.com>
12932
12933         * alloc.h: New.
12934         * dumper.h: New.
12935         * dumper.c: New.
12936
12937         * emacs.c: Moved dump file searching to dumper.c.
12938         (Frunning_temacs_p): Fixed.
12939
12940         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
12941         last_lrecord_type_index_assigned.
12942
12943 2000-02-20  Olivier Galibert  <galibert@pobox.com>
12944
12945         * symsinit.h: Added reinit parameter to init_console_stream
12946         declaration.
12947
12948         * lisp.h: Added file parameter to pdump_load declaration.
12949
12950         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
12951         support.  Added dump file searching.
12952
12953         * config.h.in: Added EMACS_PROGNAME.
12954
12955         * console-stream.c (init_console_stream): Fix reinitialisation
12956         when running from temacs.
12957
12958         * alloc.c (pdump): Add id support.
12959         (pdump_load): Add file parameter and signature/id support.
12960
12961         * Makefile.in.in: Add full pdump support.
12962
12963 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
12964
12965         * postgresql.c: Update documentation to reflect latest code
12966         status.
12967         (print_result): Show tuple counts in printed representation when
12968         appropriate.
12969         (Fpq_put_nbytes): MULE-ize.
12970         (Fpq_get_line_async): Ditto.
12971
12972 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
12973
12974         * postgresql.c (Fpq_lo_import): Fix return value.
12975         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
12976
12977 2000-03-13  Ben Wing  <ben@xemacs.org>
12978
12979         * alloc.c (pdump_load):
12980         Fix compile warning under mswin.
12981
12982 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
12983
12984         * postgresql.c: Mule-ization, bug fixes.
12985         Use PG_CODING to encapsulate coding system name changes.
12986         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
12987         (pg-coding-system): Create.
12988
12989         (Fpq_conn_defaults): Mule-ize.
12990         (Fpq_connectdb): Mule-ize & bug fix.
12991         (Fpq_connect_start): Mule-ize.
12992         (Fpq_set_client_encoding): Mule-ize.
12993         (Fpq_finish): Document `DEAD' connection status.
12994         (Fpq_clear): Ditto.
12995         (Fpq_pgconn): Mule-ize.
12996         (Fpq_exec): Mule-ize & bug fix.
12997         (Fpq_send_query): Ditto.
12998         (Fpq_get_result): Ditto.
12999         (Fpq_res_status): Mule-ize.
13000         (Fpq_result_error_message): Mule-ize.
13001         (Fpq_ntuples): fix comments.
13002         (Fpq_fname): Mule-ize.
13003         (Fpq_fnumber): Mule-ize.
13004         (Fpq_ftype): fix comments.
13005         (Fpq_get_value): Mule-ize.
13006         (Fpq_cmd_status): Ditto.
13007         (Fpq_cmd_tuples): Ditto.
13008         (Fpq_oid_value): Ditto.
13009         (Fpq_notifies): Ditto.
13010         (Fpq_lo_import): Ditto.
13011         (Fpq_lo_export): Ditto.
13012         (Fpq_get_line): Ditto.
13013         (Fpq_put_line): Mule-ize and bug fix.
13014         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
13015
13016 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
13017
13018         * postgresql.c (vars_of_postgresql): Mule-ize.
13019         (Fpq_conn_defaults): Ditto.
13020
13021 2000-03-12  Ben Wing  <ben@xemacs.org>
13022
13023         * alloc.c (Fmake_byte_code):
13024         * alloc.c (debug_string_purity_print):
13025         * alloc.c (pdump_backtrace):
13026         * alloc.c (pdump_get_indirect_count):
13027         * alloc.c (pdump_register_sub):
13028         * alloc.c (pdump_register_object):
13029         * alloc.c (pdump_register_struct):
13030         * alloc.c (pdump_dump_data):
13031         * alloc.c (pdump_reloc_one):
13032         Minor cleanups.
13033
13034         * console-msw.c:
13035         * console-msw.c (GetConsoleHwnd):
13036         * console-msw.c (msw_hide_console):
13037         * console-msw.c (msw_show_console):
13038         * console-msw.c (msw_ensure_console_buffered):
13039         * console-msw.c (msw_output_console_string):
13040         * console-msw.c (console_type_create_mswindows):
13041
13042         a) Added functions to manipulate the console window for use with
13043         shell support.
13044
13045         b) Added support for writing text to the console, which is now
13046         used under Windows when xemacs is not being run non-interactively,
13047         to write text that would otherwise be destined for stdout because
13048         under these circumstances, text written to stdout tends to
13049         disappear and not be seen.
13050
13051         * console-msw.h:
13052         * event-Xt.c:
13053         * event-Xt.c (x_event_to_emacs_event):
13054         * event-Xt.c (describe_event_window):
13055         * events-mod.h (XEMACS_MOD_CONTROL):
13056         * events.c:
13057         * events.c (Fmake_event):
13058         * events.c (character_to_event):
13059         * events.c (event_to_character):
13060         * events.c (format_event_object):
13061         * events.c (Fevent_modifiers):
13062         * events.h:
13063         * events.h (struct key_data):
13064         * events.h (struct button_data):
13065         * events.h (struct misc_user_data):
13066         * frame-x.c (Fcde_start_drag_internal):
13067         * frame-x.c (Foffix_start_drag_internal):
13068         * gpmevent.c (Freceive_gpm_event):
13069         * keymap.c:
13070         * keymap.c (bucky_sym_to_bucky_bit):
13071         * keymap.c (control_meta_superify):
13072         * keymap.c (make_key_description):
13073         * keymap.c (keymap_lookup_directly):
13074         * keymap.c (create_bucky_submap):
13075         * keymap.c (keymap_store):
13076         * keymap.c (define_key_check_and_coerce_keysym):
13077         * keymap.c (define_key_parser):
13078         * keymap.c (define_key_alternate_name):
13079         * keymap.c (Fdefine_key):
13080         * keymap.c (raw_lookup_key_mapper):
13081         * keymap.c (struct map_keymap_unsorted_closure):
13082         * keymap.c (map_keymap_unsorted_mapper):
13083         * keymap.c (map_keymap_sort_predicate):
13084         * keymap.c (map_keymap_sorted):
13085         * keymap.c (accessible_keymaps_mapper_1):
13086         * keymap.c (where_is_recursive_mapper):
13087         * keymap.c (describe_map_mapper):
13088         * keymap.c (describe_map_sort_predicate):
13089         * keymap.c (describe_map):
13090         * keymap.c (complex_vars_of_keymap):
13091         And a number of other files, the key modifier preprocessor
13092         constants that xemacs uses have names that conflict with constants
13093         defined under MS Windows for other purposes, so they were renamed
13094         to begin with the prefix XEMACS_. The variables that hold such
13095         modifiers were changed to consistently be of type int to fix
13096         various compile warnings.
13097
13098         * console.c (complex_vars_of_console):
13099         * device.c:
13100         * device-msw.c:
13101         * device-msw.c (mswindows_finish_init_device):
13102         * device-msw.c (msw_get_workspace_coords):
13103         * device-msw.c (mswindows_device_system_metrics):
13104         and various other files, added support for a new
13105         device property called offset-workspace which returns the position
13106         of the upper left corner of the workspace area and goes along with
13107         the existing size-workspace property.
13108
13109         * dialog-msw.c:
13110         * dialog-msw.c (push_bufbyte_string_as_unicode):
13111         * dialog-msw.c (mswindows_popup_dialog_box):
13112         Added support for XEmacs-style accelerator specifications in
13113         button text.  Note: I didn't add support for this under X Windows,
13114         and somebody needs to do this.
13115
13116         * dialog.c:
13117         * dialog.c (Fpopup_dialog_box):
13118         Documented the support for accelerators that was just mentioned.
13119
13120         editfns.c (get_home_directory): Changed behavior under Windows
13121         when HOME not defined; former behavior was irretrievably broken.
13122
13123         * emacs.c:
13124         * emacs.c (main_1):
13125         * emacs.c (main):
13126         * minibuf.c (clear_echo_area_internal):
13127         * minibuf.c (echo_area_append):
13128         * print.c:
13129         * print.c (std_handle_out_external):
13130         * print.c (std_handle_out_va):
13131         * print.c (fatal):
13132         * print.c (write_string_to_stdio_stream):
13133         * print.c (output_string):
13134         * print.c (debug_print):
13135         * print.c (debug_backtrace):
13136         * print.c (debug_short_backtrace):
13137         Cleaned up the code that prints text to stdout so that this can be
13138         changed to output into a console window instead under MS Windows,
13139         as described above.
13140
13141         * eval.c:
13142         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
13143         * eval.c (internal_catch):
13144         * eval.c (unwind_to_catch):
13145         * eval.c (throw_or_bomb_out):
13146         * eval.c (condition_case_1):
13147         * eval.c (signal_1):
13148         * eval.c (check_error_state_sanity):
13149         * eval.c (call_with_suspended_errors_1):
13150         * eval.c (call_with_suspended_errors):
13151         * eval.c (reinit_vars_of_eval):
13152         Added code to catch throw loops and check for a pesky bug that may
13153         be gone now.
13154
13155         * event-msw.c:
13156         * event-msw.c (key_needs_default_processing_p):
13157         * event-msw.c (mswindows_wnd_proc):
13158         * event-msw.c (mswindows_modifier_state):
13159         * event-msw.c (emacs_mswindows_quit_p):
13160         * event-msw.c (vars_of_event_mswindows):
13161         a) Added support for using the alt key to select menu items as is
13162         standard under MS Windows.  This is controlled using the variable
13163         menu-accelerator-enabled, just like under X Windows.  There is an
13164         option on the options menu to turn this support on.  I really
13165         think that it should be on by default under Windows, but I'm not
13166         going to make this change yet.
13167
13168         b)  Added support for dynamic display size changes under Windows.
13169
13170         * event-stream.c:
13171         * event-stream.c (maybe_echo_keys):
13172         * event-stream.c (Fnext_event):
13173         * event-stream.c (command_builder_find_leaf):
13174         * event-stream.c (lookup_command_event):
13175         * event-stream.c (execute_command_event):
13176         * event-stream.c (pre_command_hook):
13177         * event-stream.c (post_command_hook):
13178         * event-stream.c (syms_of_event_stream):
13179         * event-stream.c (vars_of_event_stream):
13180         * event-stream.c (complex_vars_of_event_stream):
13181         * events.h (struct command_builder):
13182
13183         a) Tried to clean up a little bit the horribly written x-specific
13184         accelerator code that crept into this file.  I moved this code
13185         into menubar-x.c where it belongs. I also needed to move the
13186         command builder structure into the file events.h because it is
13187         accessed directly by this accelerator code.  What I didn't do, but
13188         which should be done at some point, is to properly abstract this
13189         code using device methods instead of the kludgy way that it
13190         currently hooks into the event code.
13191
13192         b) Added the lisp variables this-command-properties and
13193         last-command- properties, which should be used to synchronize two
13194         adjacent commands in preference to playing games with the variable
13195         this-command, which is typically what happens.
13196
13197         c) Added some slightly nasty code to hook into the lisp support
13198         for shifted- motion-key selection.  This is actually necessary for
13199         somewhat complicated reasons, which are described in
13200         simple.el. (NB: I think the proper thing would be to have the code
13201         that calls the pre and post command hooks also call out to generic
13202         lisp functions in simple.el, where all built-in stuff could be
13203         added.  I will think about this more.)
13204
13205         * event-unixoid.c (poll_fds_for_input):
13206         * lread.c (readchar):
13207         * redisplay-tty.c (tty_clear_frame):
13208         * redisplay-x.c (x_get_gc):
13209         * signal.c (interrupt_signal):
13210         And a whole bunch of other files: fixed up places that printed
13211         directly to stderr to instead call the function stderr_out so that
13212         the changes I made under Windows work correctly.
13213
13214         * filemode.c (mode_string):
13215         Warning fixes.
13216
13217         * frame-msw.c:
13218         * frame-msw.c (mswindows_size_frame_internal):
13219         Fixed the computation of frame size and position to keep the frame
13220         within the workspace area, rather than within the physical
13221         dimensions of the screen, so that the frame doesn't overlap window
13222         manager decorations, such as the start menu and toolbar, typically
13223         at the bottom of the screen.
13224
13225         * frame.c (vars_of_frame):
13226         Changed the default frame title format under MS Windows to consist
13227         of buffername-XEmacs, which is standard under MS Windows.  I think
13228         it might be a good idea to change this everywhere because I think
13229         it is superior to the current frame title format, but this is the
13230         kind of change that is likely to cause some people to get annoyed,
13231         so I'm not making it.
13232
13233         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
13234
13235         * gui-msw.c (mswindows_handle_gui_wm_command):
13236         Fixed compile warnings.
13237
13238         * gui-x.c:
13239         * gui-x.c (strdup_and_add_accel):
13240         * gui-x.c (button_item_to_widget_value):
13241         * gui-x.h:
13242         Added code to automatically put an accelerator onto the beginning
13243         of menu items that don't have one as is now the standard, and is
13244         described more later.  Also fixed things so that the menu item
13245         name can be an evaluated expression, again a new standard.
13246
13247         * gui.c:
13248         * gui.c (gui_item_add_keyval_pair):
13249         * gui.c (make_gui_item_from_keywords_internal):
13250         * gui.c (gui_add_item_keywords_to_plist):
13251         * gui.c (gui_item_accelerator):
13252         * gui.c (gui_name_accelerator):
13253         * gui.c (gui_item_included_p):
13254         * gui.c (gui_item_display_flush_left):
13255         * gui.c (gui_item_display_flush_right):
13256         * gui.c (parse_gui_item_tree_item):
13257         * gui.c (parse_gui_item_tree_children):
13258         * gui.c (parse_gui_item_tree_list):
13259         Mule-ized.  Cleanup.  GCPRO addition.
13260
13261         * line-number.c (buffer_line_number):
13262         * lisp.h:
13263         * lisp.h (EMACS_INT_MAX):
13264         Added the manifest constant EMACS_INT_MIN corresponding to the
13265         existing constant EMACS_INT_MAX.  This is partially to fix compile
13266         warnings under Windows, and partly for cleanliness.
13267
13268         * menubar-msw.c:
13269         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
13270         * menubar-msw.c (msw_translate_menu_or_dialog_item):
13271         * menubar-msw.c (displayable_menu_item):
13272         * menubar-msw.c (populate_menu_add_item):
13273         * menubar-msw.c (populate_or_checksum_helper):
13274         * menubar-msw.c (populate_menu):
13275         * menubar-msw.c (update_frame_menubar_maybe):
13276         * menubar-msw.c (prune_menubar):
13277         * menubar-msw.c (msw_char_is_accelerator):
13278         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
13279         * menubar-msw.c (mswindows_handle_wm_command):
13280         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
13281         * menubar-msw.c (mswindows_handle_wm_initmenu):
13282         * menubar-msw.c (mswindows_update_frame_menubars):
13283         * menubar-msw.c (mswindows_free_frame_menubars):
13284         * menubar-msw.c (mswindows_popup_menu):
13285         Fixed a bug in handling accelerators where an extra character
13286         would be displayed in the menu item.  Also generalized the
13287         function displayable_menu_item because it is now used by the
13288         dialog box code as well.  And finally, added code in the functions
13289         that create the menubar to extract a list of accelerators for the
13290         top level menubar, which is used in the event code to determine
13291         whether a particular alt-key combination should be used to invoke
13292         a menu item, or should be passed through to access the standard
13293         XEmacs keymap binding for this key combination.
13294
13295         Much needed GCPROing.
13296
13297         * menubar-x.c:
13298         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
13299         * menubar-x.c (menu_item_descriptor_to_widget_value):
13300         * menubar-x.c (restore_in_menu_callback):
13301         * menubar-x.c (x_popup_menu):
13302         * menubar-x.c (menu_move_up):
13303         * menubar-x.c (menu_move_down):
13304         * menubar-x.c (menu_move_left):
13305         * menubar-x.c (menu_move_right):
13306         * menubar-x.c (menu_select_item):
13307         * menubar-x.c (command_builder_operate_menu_accelerator):
13308         * menubar-x.c (menu_accelerator_junk_on_error):
13309         * menubar-x.c (command_builder_find_menu_accelerator):
13310         * menubar-x.c (Faccelerate_menu):
13311         * menubar.h:
13312         Moved a whole bunch of code here that was previously in
13313         event-stream.c as described above.  There is also code connected
13314         to the new standard of adding an accelerator to the beginning of
13315         menu items that don't have one as described above and below.
13316
13317         * menubar.c:
13318         * menubar.c (menu_parse_submenu_keywords):
13319         * menubar.c (Fmenu_find_real_submenu):
13320         * menubar.c (Fnormalize_menu_item_name):
13321         * menubar.c (syms_of_menubar):
13322         * menubar.c (vars_of_menubar):
13323         * menubar.c (complex_vars_of_menubar):
13324
13325         a) Cleaned up a bunch of documentation and improved it.
13326
13327         b) XEmacs now automatically adds an accelerator onto the beginning
13328         of any menu items that don't have one.  I did this because there
13329         will inevitably be some menu items on the main menubar that don't
13330         have accelerators on them because the package that adds that
13331         particular menu item hasn't yet been fixed up to have accelerators
13332         in them and it looked rather strange to have some items with and
13333         some items without accelerators, especially since even in items
13334         without accelerators, you can, at least under windows, still
13335         access the item through an accelerator corresponding to the first
13336         character in the item's name.  If people don't like this behavior,
13337         I can add a variable to turn it off optionally, but I'm not sure
13338         this is a good idea because we really do need to have accelerators
13339         on all of the menu items, and if a package doesn't like the
13340         accelerators being put on the first character, then it should put
13341         the accelerators where they belong.
13342
13343         c) I made a behavior change, which is that the descriptor that
13344         specifies the text of the menu item, which formerly was just a
13345         string, can now also be an evaluated expression.  This makes this
13346         descriptor parallel with all of the others, which could also be
13347         evaluated expressions.  This also obviates the need for the
13348         keyword :label, which was previously listed in the documentation
13349         as unimplemented, and which was for the same purpose.
13350
13351         d) GCPROing.
13352
13353         * ntproc.c:
13354         * ntproc.c (new_child):
13355         * ntproc.c (sys_spawnve):
13356         * ntproc.c (find_child_console):
13357         * ntproc.c (sys_kill):
13358         Fixed compile warnings.  By the way, this file should really go
13359         away entirely, and this will happen as soon as Kirill makes his
13360         final round of process cleanups, which affect the function
13361         call-process.
13362
13363         * process-nt.c:
13364         * process-nt.c (struct nt_process_data):
13365         * process-nt.c (find_process_from_pid):
13366         * process-nt.c (send_signal_the_nt_way):
13367         * process-nt.c (enable_child_signals):
13368         * process-nt.c (find_child_console):
13369         * process-nt.c (send_signal_the_95_way):
13370         * process-nt.c (nt_finalize_process_data):
13371         * process-nt.c (ensure_console_window_exists):
13372         * process-nt.c (nt_create_process):
13373         * process-nt.c (nt_kill_child_process):
13374         * process-nt.c (nt_kill_process_by_pid):
13375         * process-nt.c (nt_open_network_stream):
13376         * process-nt.c (vars_of_process_nt):
13377         Copied over code from Emacs 20.5 to correctly send signals to sub-
13378         processes under Windows 95.  Also added code to automatically
13379         create and hide console window when a sub-process is created under
13380         Windows 95, which obviates the need for the separate runemacs.exe
13381         executable, and finally implemented some variables that were
13382         implemented in Emacs 20.5, but previously not in XEmacs.  These
13383         include mswindows- start-process-share-console and
13384         mswindows-start-process-inherit-error-mode. (Both of these only
13385         apply to Windows 95.)
13386
13387         * regex.c (regex_compile): Fixed a compile warning.
13388
13389         * select-msw.c:
13390         * select-msw.c (mswindows_own_selection):
13391         * select-msw.c (mswindows_get_foreign_selection):
13392         * select-msw.c (mswindows_disown_selection):
13393         * select-msw.c (console_type_create_select_mswindows):
13394         * select-msw.c (syms_of_select_mswindows):
13395         Cleaned up the file and implemented the device method
13396         selection_exists_p, which had accidentally been left out.  Also
13397         removed four lisp functions that were remnants from before the
13398         time when the selection code was properly device abstracted.
13399         These functions are no longer needed because there are generic
13400         equivalents, and because they were added recently and don't exist
13401         in FSF Emacs, I don't think there's any problem with just deleting
13402         them.
13403
13404         * sysdep.c:
13405         * sysdep.c (sys_subshell):
13406         Fixed a compile warning, although in this case there's probably
13407         something wrong with this code, and it ought to be looked into
13408         more thoroughly by somebody who understands it.
13409
13410         * window.c:
13411         * window.c (Fwindow_text_area_height):
13412         * window.c (Fwindow_width):
13413         * window.c (Fwindow_full_width):
13414         * window.c (Fwindow_pixel_width):
13415         * window.c (debug_print_window):
13416         * window.c (syms_of_window):
13417         Added functions window-text-area-height and window-full-width,
13418         which are functions for returning various width and height
13419         characteristics of a window. (One of these functions is necessary
13420         for making the file dialog box work correctly, and the other one
13421         was added for completeness.)  Also added a table to the
13422         documentation for window-height which describes the entire scheme
13423         for accessing width and height characteristics of a window.
13424
13425 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13426
13427         * nt.c (fstat): Added a comment for another problem with
13428         non-encapsulated [f]stat(), reported by Adrian Aichner
13429         <aichner@ecf.teradyne.com>.
13430
13431 2000-03-11  Andy Piper  <andy@xemacs.org>
13432
13433         * window.c (make_dummy_parent): initialize subwindow instance
13434         cache.
13435         (Fset_window_configuration): zero extent_modiff.
13436
13437 2000-03-10  Andy Piper  <andy@xemacs.org>
13438
13439         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
13440         more changes can be triggered.
13441         (Fredisplay_frame): ditto.
13442         (Fredraw_device): ditto.
13443         (Fredisplay_device): ditto.
13444         (redisplay_frame): make non-static.
13445         (redisplay_frame): call update_frame_gutter_geometry outside of
13446         display proper.
13447
13448         * gutter.h: declare update_frame_gutter_geometry.
13449
13450         * redisplay.h: declare redisplay_frame.
13451
13452         * gutter.c (update_frame_gutter_geometry): move geometry changes
13453         in update_frame_gutters here. Geometry changes can only occur
13454         outside of redisplay.
13455         (update_frame_gutters): remove geometry change code.
13456         (Fredisplay_gutter_area): make sure that we are in display when we
13457         update and that we have flushed any size changes.
13458
13459 2000-03-11  Andy Piper  <andy@xemacs.org>
13460
13461         * alloc.c (pdump_dump_data): remove i & count shadows.
13462
13463 2000-02-27  Mike Alexander  <mta@arbortext.com>
13464
13465         * sysdep.h: Declare pdump_read_file
13466
13467         * sysdep.c (pdump_read_file): New function
13468
13469         * alloc.c (pdump_load): Call pdump_read_file to get the portable
13470         dump data
13471
13472 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
13473
13474         * lrecord.h: add `lrecord_type_pgsetenv'.
13475
13476 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
13477
13478         * symsinit.h: declare (vars|syms)_of* functions.
13479         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
13480
13481 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
13482
13483         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
13484
13485         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
13486         GCCs.
13487
13488         * emacs.c (main_1): Call postgres initialization code.
13489
13490         * postgresql.h: New file.  PostgreSQL RDBMS support.
13491         * postgresql.c: New file.
13492
13493 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
13494
13495         * redisplay-output.c (redisplay_output_display_block): Disable
13496         redundant code.
13497
13498 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
13499
13500         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
13501         (Fcanna_henkan_next): Ditto.
13502         (Fcanna_bunsetu_henkou): Ditto.
13503         (Fcanna_henkan_kakutei): Ditto.
13504         (Fcanna_henkan_end): Ditto.
13505         (Fcanna_henkan_quit): Ditto.
13506         (Fcanna_henkan_next): Set retun value correctly.
13507         (c2mu): Use unsigned char instead of signed char.
13508
13509 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
13510
13511         * emacs.c (main_1): Always call syms_of_gui.
13512         * inline.c: include gui.h
13513
13514 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
13515
13516         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
13517         converted to Lisp_Object.
13518         (Qtop_bottom): New variable.
13519         (syms_of_redisplay): Initialize it.
13520         * redisplay.h (Vvisible_bell): Ditto.
13521         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
13522         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
13523         only flash top and bottom.
13524
13525 2000-03-08  Andy Piper  <andy@xemacs.org>
13526
13527         * buffer.c (Frename_buffer): record new buffer name the right way.
13528
13529 2000-03-08  Andy Piper  <andy@xemacs.org>
13530
13531         * glyphs.c (update_subwindow): increase hash depth so that widget
13532         items get picked up properly.
13533
13534         * redisplay-output.c (compare_runes): increase hash depth so that
13535         widget items get picked up properly.
13536
13537 2000-03-08  Andy Piper  <andy@xemacs.org>
13538
13539         * gutter.c (output_gutter): add some debug.
13540
13541         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
13542         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
13543         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
13544
13545         * redisplay-output.c (compare_runes): use display_hash to
13546         determine if glyphs really are not the same.
13547
13548         * glyphs.c (update_subwindow): check display_hash to see if
13549         anything really needs to be updated. If not then do
13550         nothing. Record the display_hash after updating.
13551         (image_instance_equal): compare the image_instance face also.
13552
13553 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
13554
13555         * redisplay.h: Fix comment style.
13556
13557 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
13558
13559         * consle-msw.h (struct mswindows_frame):
13560         Added new member paint_pending to indicate whether a WM_PAINT
13561         magic event has been queued for this frame.
13562
13563         * event-msw.c (mswindows_drain_windows_queue):
13564         Don't queue a WM_PAINT magic event if one is already queued.
13565         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
13566
13567         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
13568
13569 2000-03-07  Didier Verna  <didier@xemacs.org>
13570
13571         * dired.c: #include `regex.h' after `sysfile.h'.
13572
13573 2000-03-06  Martin Buchholz  <martin@xemacs.org>
13574
13575         * sound.c (init_nas_sound): Fix compiler warning.
13576
13577         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
13578         (FREE_STRUCT_P):
13579         (MARK_STRUCT_AS_FREE):
13580         (MARK_STRUCT_AS_NOT_FREE):
13581         Make `gcc -fstrict-aliasing' work properly.
13582
13583 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
13584
13585         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
13586         (mswindows_delete_device): Call CoUnnitialize().
13587
13588         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
13589
13590 2000-02-25    <CraigL@DyCon.com>
13591
13592         * process-nt.c: MinGW now has <shellapi.h>, but still needs
13593         <errno.h>.
13594
13595         * sysdep.c: This extern declaration for environ prevents MinGW
13596         from finding the variable in CRTDLL.DLL.
13597
13598         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
13599         windows headers.
13600         (SHGFI_EXETYPE): ..
13601         (WM_MOUSEWHEEL): ..
13602         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
13603         definitions.
13604         (MMRESULT): Removed, now defined in cygwin's windows headers.
13605         (TIMECAPS): ..
13606         (uid_t,gid_t,pid_t,ssize_t): ..
13607         (_timeb): Removed, MinGW defines both _timeb and timeb.
13608         (HAVE_H_ERRNO): Added.
13609         (HAVE_TZNAME): Added, configure is not detecting this.
13610
13611 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
13612
13613         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
13614         * syntax.c (syntax_match): Use it.
13615
13616         * cmds.c: Import auto-fill-chars from FSF Emacs.
13617         (Vauto_fill_chars): New variables.
13618         (internal_self_insert): Check Vauto_fill_chars.
13619         (vars_of_cmds):
13620         Declare auto-fill-chars as a Lisp variable and initialize it.
13621
13622 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
13623
13624         * fileio.c (Fmake_symbolic_link):
13625         (Ffile_symlink_p):
13626         Run handlers even if local machine doesn't have symlinks.
13627
13628 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
13629
13630         * event-msw.c (mswindows_drain_windows_queue):
13631         Don't generate paint magic events for non-XEmacs frames.
13632
13633 2000-03-05  Andy Piper  <andy@xemacs.org>
13634
13635         * redisplay.c (redisplay_frame): generate_displayable_area and
13636         friends assumes that we are not in GC, we therefore have to make
13637         sure that this doesn't happen.
13638
13639         * gutter.c (calculate_gutter_size): generate_displayable_area
13640         assumes that we are not in GC, we therefore have to make sure that
13641         this doesn't happen.
13642
13643 2000-03-05  Martin Buchholz  <martin@xemacs.org>
13644
13645         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
13646
13647 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
13648
13649         * redisplay.c (regenerate_window): Make sure we set a sane value
13650         for end_pos even if we jump out of the loop.
13651         (regenerate_window): Answer Ben's question :-).
13652         (start_end_of_last_line): Add may_error argument.
13653         (start_of_last_line):
13654         (end_of_last_line): Pass may_error = 0.
13655         (end_of_last_line_may_error): New function.
13656         (pixel_to_glyph_translation): Use it, so we don't crash in
13657         event_to_glyph.
13658
13659 2000-03-04  Andy Piper  <andy@xemacs.org>
13660
13661         * window.h (struct window): add gutter_extent_modiff.
13662
13663         * window.c (allocate_window): zero out gutter_extent_modiff.
13664
13665         * redisplay.h: declare sync_display_line_structs.
13666
13667         * redisplay.c (add_glyph_rune): add a better comment.
13668
13669         * redisplay-output.c (sync_display_line_structs): made non-static.
13670         (compare_runes): remove unneccesary glyph cachel access.
13671
13672         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
13673
13674         * gutter.c (output_gutter): don't output the gutter if extent
13675         changes only involve extents in buffers. use 4 sets of display
13676         lines.
13677         (gutter_extent_signal_changed_region_maybe): new function. Mark
13678         extents in gutters as changed.
13679         (update_frame_gutters): use 4 sets of display lines.
13680         (reset_gutter_display_lines): ditto.
13681         (free_frame_gutters): ditto.
13682         (redraw_exposed_gutter): force output of gutters.
13683
13684         * frame.h (struct frame): add 4 sets of gutter display lines.
13685
13686         * extents.c: (extent_changed_for_redisplay): signal changes to
13687         extents in strings in the gutter as well as extents in buffers.
13688
13689 2000-03-02  Andy Piper  <andy@xemacs.org>
13690
13691         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
13692
13693         * frame.c (Fmake_frame): make sure the gutters get initialized
13694         after the frame is visible.
13695         (set_frame_selected_window): re-arrange compilation macros a
13696         little.
13697         (change_frame_size_1): mark gutters changed.
13698
13699         * device.c (Fset_device_class): mark gutters changed.
13700
13701 2000-03-01  Andy Piper  <andy@xemacs.org>
13702
13703         * window.c (window_top_frame_gutter_height): deleted.
13704         (window_bottom_frame_gutter_height): ditto.
13705         (window_left_frame_gutter_height): ditto.
13706         (window_right_frame_gutter_height): ditto.
13707         (window_top_gutter_height): don't use them.
13708         (window_bottom_gutter_height): ditto.
13709         (window_left_gutter_width): ditto.
13710         (window_right_gutter_width): ditto.
13711         (Fsplit_window): ditto.
13712         (Fwindow_pixel_edges): don't use border dimensions here.
13713
13714         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
13715         (update_scrollbar_instance): ditto.
13716
13717         * redisplay.c (generate_modeline): don't take gutters into account.
13718         (generate_modeline): ditto.
13719         (redisplay_frame): small gutter display optimization.
13720
13721         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
13722
13723         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
13724         gutters into account.
13725
13726         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
13727         for window position and type.
13728
13729         * gutter.c (get_gutter_coords): fix for frame gutters.
13730         (update_frame_gutters): update frame geometry if the gutters have
13731         changed.
13732         (init_frame_gutters): record current gutter geometries.
13733
13734         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
13735         var.
13736         (mswindows_widget_instantiate): ditto.
13737
13738         * frame.h (struct frame): add current_gutter_bounds.
13739
13740         * frame.c (change_frame_size_1): position window and minibuffer
13741         appropriately taking into account the frame gutters.
13742
13743         * frame-x.c: (x_initialize_frame_size): take into account the
13744         frame gutters.
13745
13746 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
13747
13748         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
13749
13750 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
13751
13752         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
13753
13754 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
13755
13756         * file-coding.c (reset_decoding_stream): Clear previous
13757         detection state when autodetect.
13758
13759 2000-02-29  Didier Verna  <didier@xemacs.org>
13760
13761         * extents.c (set_extent_glyph_1): don't require extents to be
13762         attached.
13763
13764 2000-02-27  Andy Piper  <andy@xemacs.org>
13765
13766         * gutter.c (Fset_default_gutter_position): don't default left and
13767         right gutter visibility to t.
13768         (Fset_default_gutter_position): run
13769         default-gutter-position-changed-hook.
13770         (syms_of_gutter): add default-gutter-position-changed-hook.
13771
13772 2000-02-26  Andy Piper  <andy@xemacs.org>
13773
13774         * specifier.c (Fmake_specifier): add gutter references.
13775
13776         * gutter.h (RAW_WINDOW_GUTTER): new macro.
13777
13778         * lisp.h: declare Fvalid_plist_p.
13779
13780         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
13781         as changed.
13782         (default_gutter_visible_p_changed_in_window): invalidate gutter as
13783         well as its visibility so that it gets reconstructed.
13784         (construct_window_gutter_spec): new function. Construct a string
13785         to be displayed in the gutter from a plist of strings. Take care
13786         to only use elements that are declared as visible.
13787         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
13788         WINDOW_GUTTER.
13789         (gutter_validate): allow plists of strings in the specifier.
13790         (gutter_specs_changed): construct the real_gutter from the gutter
13791         specs using construct_window_gutter_spec.
13792         (gutter_visible_validate): gutter-visible is a new specifier type.
13793         (Fgutter_visible_specifier_p): new function for the new specifier.
13794         (syms_of_gutter): declare gutter-visible and
13795         Fgutter_visible_specifier_p.
13796         (specifier_type_create_gutter): intitalize new gutter-visible
13797         specifier.
13798         (reinit_specifier_type_create_gutter): ditto.
13799         (specifier_vars_of_gutter): use new specifier type for gutter
13800         visibility.
13801         (init_frame_gutters): construct real_gutter correctly.
13802         (Fgutter_specifier_p): beef up documentation.
13803         (Fgutter_size_specifier_p): ditto.
13804
13805         * winslots.h: add real_gutter slots.
13806
13807 2000-02-25  Andy Piper  <andy@xemacs.org>
13808
13809         * device-msw.c: Be kind to older cygwin versions. From Raymond
13810         Toy <toy@rtp.ericsson.se>.
13811
13812         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
13813         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
13814
13815 2000-02-25  Martin Buchholz  <martin@xemacs.org>
13816
13817         * elhash.c (MARK_OBJ): Practice macro hygiene.
13818
13819 2000-02-24  Martin Buchholz  <martin@xemacs.org>
13820
13821         * miscplay.c: s/__inline__/inline/g;
13822         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
13823         (get_device_compdc): INLINE ==> static inline
13824         * *.[ch]: Change INLINE to INLINE_HEADER globally.
13825         find -name '*.h' | \
13826         xargs global-replace \
13827         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
13828
13829 2000-02-25  Andy Piper  <andy@xemacs.org>
13830
13831         * window.c (window_top_frame_gutter_height): new function.
13832         (window_top_window_gutter_height): ditto.
13833         (window_top_gutter_height): use them.
13834         (window_bottom_frame_gutter_height): new function.
13835         (window_bottom_window_gutter_height): ditto.
13836         (window_bottom_gutter_height): use them.
13837         (window_left_window_gutter_width): new function.
13838         (window_left_frame_gutter_width): ditto.
13839         (window_left_gutter_width): use them.
13840         (window_right_window_gutter_width): new function.
13841         (window_right_frame_gutter_width): ditto.
13842         (window_right_gutter_width): use them.
13843         (window_pixel_height): new function. calulate window pixel height
13844         with frame gutter involvement.
13845         (Fsplit_window): calculate new sizes taking frame gutters into
13846         account.
13847         (window_char_height_to_pixel_height): don't include frame gutters.
13848         (window_char_height): use window_pixel_height.
13849         (window_pixheight): rename from window_pixel_height.
13850         (change_window_height): use it.
13851         (window_pixel_height_to_char_height): don't include frame gutters.
13852         (window_char_width_to_pixel_width): ditto.
13853
13854 2000-02-25  Andy Piper  <andy@xemacs.org>
13855
13856         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
13857         if it is.
13858
13859 2000-02-24  Martin Buchholz  <martin@xemacs.org>
13860
13861         * alloc.c (staticpro):
13862         (staticpro_nodump):
13863         (dumpstruct):
13864         (dumpopaque):
13865         (pdump_wire):
13866         (pdump_wire_list):
13867         (compact_string_chars):
13868         (pdump_dump_wired):
13869         Convert:  if (foo) abort();  ==>  assert (! foo);
13870
13871         * eldap.c (Fldap_search_basic):
13872         (Fldap_add):
13873         (Fldap_modify):
13874         (Fldap_delete):
13875         Fix compiler warnings, and possible crashes if (random) return
13876         value were to be used.
13877
13878 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13879
13880         * device-msw.c: Workaround ResetDC failure.
13881
13882         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
13883         applying a devmode.
13884
13885         * redisplay-msw.c (get_frame_dc): Added start_page_p.
13886         (mswindows_text_width): Do not start printer page.
13887
13888         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
13889
13890         * glyphs-msw.c: Added image methods to msprinter console and
13891         msprinter-specific image instantiation.
13892
13893 2000-02-20  Mike Alexander  <mta@arbortext.com>
13894
13895         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
13896         to avoid crashes when selection-sets-clipboard is on
13897         (mswindows_own_selection): ditto
13898
13899 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13900
13901         * glyphs-msw.c:
13902         * redisplay-msw.c (get_frame_dc):
13903         (get_frame_compdc):
13904         * console-msw.h:
13905         * device-msw.c (mswindows_init_device):
13906         (mswindows_delete_device):
13907         (msprinter_init_device):
13908         (msprinter_delete_device):
13909         * frame-msw.c (mswindows_init_frame_1):
13910         (mswindows_delete_frame):
13911         (msprinter_init_frame_3):
13912         (msprinter_delete_frame): Move compatible DC to device object from
13913         frame object, for both mswindows and msprinter. Only one at a time
13914         is needed, it is a real waste to have one per frame!
13915
13916 2000-02-23  Andy Piper  <andy@xemacs.org>
13917
13918         * glyphs.c: add dynamic width and height elements.
13919         (image_instance_equal): ditto.
13920
13921         * glyphs-widget.c (widget_query_geometry): calculate width and
13922         height dynamically if required.
13923         (initialize_widget_image_instance): initialize dynamic dimensions.
13924         (widget_instantiate): pick-up dynamic dimensions.
13925
13926         * glyphs.h (struct Lisp_Image_Instance): add width and height for
13927         dynamic determination. Add appropriate macros.
13928
13929         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
13930         dimensions safe.
13931         (WINDOW_GUTTER_SIZE): ditto.
13932         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
13933
13934         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
13935         inline.
13936         (get_frame_dc): ditto.
13937
13938         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
13939         here.
13940
13941 2000-02-23  Martin Buchholz <martin@xemacs.org>
13942
13943         * XEmacs 21.2.31 is released.
13944
13945 2000-02-22  Ben Wing <ben@xemacs.org>
13946
13947         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
13948
13949 2000-02-22  Andy Piper  <andy@xemacs.org>
13950
13951         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
13952
13953 2000-02-21  Mike Sperber <mike@xemacs.org>
13954
13955         * .dbxrc:
13956         * .gdbinit:
13957         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
13958         variables.
13959
13960 2000-02-21  Mike Sperber <mike@xemacs.org>
13961
13962         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
13963
13964 2000-02-21  Martin Buchholz <martin@xemacs.org>
13965
13966         * XEmacs 21.2.30 is released.
13967
13968 2000-02-20  Martin Buchholz  <martin@xemacs.org>
13969
13970         Performance hacking.
13971         * *.c (syms_of_*):
13972         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
13973         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
13974         * emacs.c (main_1):
13975         * lisp.h (DEFUN):
13976         * console.c (DEFVAR_CONSOLE_LOCAL_1):
13977         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
13978         * symeval.h (DEFVAR_SYMVAL_FWD):
13979         * symbols.c (guts_of_unbound_marker):
13980         Make all c_readonly objects also lisp_readonly and marked for life.
13981         * lrecord.h (struct lrecord_implementation):
13982         Document flags better.
13983         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
13984         * lrecord.h (DECLARE_LRECORD):
13985         * lrecord.h (XSETRECORD):
13986         * lrecord.h (RECORDP):
13987         * lrecord.h (RECORD_TYPEP):
13988         * lrecord.h (RECORD_MARKER): New.
13989         * lrecord.h (error_check_*):
13990         * lrecord.h (CONCHECK_NONRECORD):
13991         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
13992         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
13993         * lrecord.h (set_lheader_implementation):
13994         * lrecord.h (enum lrecord_type): New.
13995         * symeval.h (SYMBOL_VALUE_MAGIC_P):
13996         * alloc.c (disksave_object_finalization_1):
13997         * alloc.c (mark_object):
13998         * alloc.c (lrecord_type_index):
13999         * alloc.c (tick_lcrecord_stats):
14000         * alloc.c (Fgarbage_collect):
14001         * alloc.c (init_alloc_once_early):
14002         * alloc.c (pdump_load):
14003         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
14004         * alloc.c (lrecord_type_index): Delete.
14005         Make lisp object type indexes be constant.
14006           Makes (byte-compile) 5% faster.
14007         Put all marker functions into their own array.
14008           Makes (garbage-collect) 5% faster.
14009         Optimize SYMBOL_VALUE_MAGIC_P.
14010           Makes (byte-compile) 2-3% faster.
14011         * config.h.in (gc_checking_assert): New.
14012         * alloc.c: Use gc_checking_assert().
14013         * .dbxrc: Make compatible with new object type implementation.
14014         * .gdbinit: Make compatible with new object type implementation.
14015         * alloc.c: Delete all symbols defined only for debugging, such as
14016         Lisp_Type_Vector and lrecord_charset.
14017
14018 2000-02-21  Andy Piper  <andy@xemacs.org>
14019
14020         * gui-msw.c (Fmswindows_shell_execute): fix file location
14021         problems.
14022
14023         * buffer.c (Fkill_buffer): remove buffer from alist buffer
14024         unshowing so that set_window_buffer doesn't undo
14025         kill_buffer_hook's hard work.
14026
14027         * glyphs-widget.c (tab_control_query_geometry): don't count the
14028         first item when calculating geometry.
14029
14030         * glyphs.c (map_subwindow): remove redundant code.
14031         (update_frame_subwindows): be more circumspect about when to
14032         update subwindows.
14033
14034         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
14035         when items haven't changed. Update faces if faces have changed as
14036         well as just the widget face.
14037         (x_tab_control_update): Update faces if faces have changed as well
14038         as just the widget face.
14039
14040 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14041
14042         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
14043         registration.
14044         (build_syscolor_string): Use mswindows_color_to_string to try to
14045         get a named color.
14046         (mswindows_device_system_metrics): Reverse the foreground and
14047         background colors so that they match the documentation.
14048
14049         * objects-msw.c: (mswindows_X_color_map): tweak some values so
14050         they match the default Windows palette.
14051         (mswindows_color_to_string): New function.
14052
14053 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14054
14055         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
14056
14057 2000-02-18  Olivier Galibert  <galibert@pobox.com>
14058
14059         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
14060         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
14061
14062         * symbols.c (init_symbols_once_early): Removed obsolete
14063         DATA_SEG_BITS related kludge.
14064         (defvar_magic): Ditto.
14065
14066         * malloc.c: Removed obsolete DATA_SEG_BITS
14067         * ralloc.c: Ditto.
14068         * mem-limits.h: Ditto.
14069
14070         * Makefile.in.in: Removed obsolete HAVE_SHM
14071         * emacs.c: Ditto.
14072
14073 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14074
14075         *  device-msw.c (mswindows_delete_device): Free DDE string
14076         handles.
14077
14078 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14079
14080         * keymap.c (get_keyelt):
14081         * unexnt.c (unexec):
14082         * vm-limit.c (memory_warnings):
14083         * ntheap.c (recreate_heap):
14084         * ntheap.h (UNINIT_PTR):
14085         * select-msw.c (Fmswindows_get_clipboard):
14086         (Fmswindows_set_clipboard):
14087         * objects-msw.h (MSWINDOWS_BAD_HFONT):
14088         * objects-msw.c:
14089         * menubar-msw.c (displayable_menu_item):
14090         * glyphs-msw.c:
14091         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
14092         * sysdep.c (sys_subshell):
14093         * process-nt.c (nt_create_process):
14094         * nt.c (normalize_filename):
14095         (dostounix_filename):
14096         (unixtodos_filename):
14097         * ntproc.c (win32_executable_type):
14098         * ntplay.c (play_sound_data_1):
14099         (play_sound_file):
14100         * editfns.c (get_home_directory):
14101         * event-msw.c (struct winsock_stream):
14102         (mswindows_dde_callback):
14103         * device-msw.c (msprinter_init_device):
14104         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
14105
14106         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
14107         mswindows_clear_toolbar were swapped!
14108
14109         * objects-msw.c:(colormap_t):
14110         (fontmap_t):
14111         * emacs.c (struct standard_args): Fixed const jumble.
14112
14113         * glyphs-widget.c (update_widget): Fixed comparison notation.
14114
14115         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
14116
14117         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
14118         __declspec(noreturn) syntax.
14119
14120 2000-02-19  Martin Buchholz  <martin@xemacs.org>
14121
14122         * eldap.c (Fldap_open):
14123         (Fldap_search_basic):
14124         (Fldap_add):
14125         (Fldap_modify):
14126         Use new coding system conversion macros.
14127
14128 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
14129
14130         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
14131
14132 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
14133
14134         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
14135         (Fldap_add, Fldap_modify, Fldap_delete): New functions
14136
14137         * eldap.c (Qadd, Qreplace): New constant symbols
14138         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
14139         interruptions by XEmacs signals
14140         Remove unnecessary calls to slow_down_interrupts and
14141         speed_up_interrupts
14142         (Fldap_search_basic): Renamed from Fldap_search_internal
14143         Added new optional parameter VERBOSE that triggers the
14144         display of progress messages
14145         Remove unnecessary calls to slow_down_interrupts and
14146         speed_up_interrupts
14147         LDAP result code analysis rewritten
14148         (Fldap_add, Fldap_modify, Fldap_delete): New functions
14149         (syms_of_eldap): Define the new symbols and functions
14150
14151
14152 2000-02-17  Martin Buchholz  <martin@xemacs.org>
14153
14154         * realpath.c: Determine PATH_MAX maximally portably.
14155
14156         * insdel.c (bytecount_to_charcount): Optimize.
14157         The function used to be optimized for entirely ASCII sequences.
14158         Now it is optimized for successive characters from the same
14159         charset.  This also wins big for _mostly_ ASCII sequences.
14160
14161         * fileio.c (Ffile_truename): convert return from realpath() using
14162         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
14163         - Rewrite GCPROing slightly.
14164
14165         * sysdep.c (sys_open): Do filename conversion, like all other
14166         sys_* functions.  Fixes bug:
14167         (let ((file-name-coding-system 'iso-8859-2))
14168            (write-region x y latin2-name))
14169         ==> writes filename using internal encoding.
14170
14171 2000-02-18  Martin Buchholz  <martin@xemacs.org>
14172
14173         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
14174         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
14175         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
14176         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
14177         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
14178         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
14179         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
14180         (CONST_IF_NOT_DEBUG): Delete.
14181         * alloc.c (this_one_is_unmarkable): Delete.
14182         (mark_object): Don't check for this_one_is_unmarkable. Use the
14183         c_readonly flag instead.
14184         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
14185
14186 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14187
14188         * event-msw.c (mswindows_drain_windows_queue):
14189         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
14190         away redundant repaint events.
14191
14192 2000-02-17  Andy Piper  <andy@xemacs.org>
14193
14194         * redisplay.h: declare mark_redisplay_structs.
14195
14196         * redisplay.c (redisplay_window):
14197         (redisplay_frame): don't check subwindows_state_changed.
14198         (mark_redisplay): mark gutters here.
14199
14200         * glyphs.c: (instantiate_image_instantiator): always layout if we
14201         haven't done so already.
14202         (allocate_image_instance): don't mark as dirty.
14203         (update_subwindow): bind inhibit_quit.
14204
14205         * gutter.c (mark_gutters): new function.
14206
14207         * glyphs-x.c (x_update_widget): Always resize to get round a
14208         widget bug.
14209
14210         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
14211         breaking absolutely everything.
14212
14213         * gutter.h: declare mark_gutters.
14214
14215 2000-02-16  Martin Buchholz <martin@xemacs.org>
14216
14217         * XEmacs 21.2.29 is released.
14218
14219 2000-02-15  Olivier Galibert  <galibert@pobox.com>
14220
14221         * fns.c (size_bit_vector): Fix computation of the size.
14222
14223 2000-02-15  Martin Buchholz  <martin@xemacs.org>
14224
14225         * *.[ch]: Change CONST to const globally.
14226         find -name '*.[ch]' | \
14227         xargs global-replace \
14228         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
14229         - Remove vestigial references to CONST_IS_LOSING
14230
14231 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14232
14233         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
14234         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
14235         events instead of dispatching them directly.
14236         (mswindows_handle_paint): New function to do repainting.
14237         (mswindows_wnd_proc):
14238         (emacs_mswindows_handle_magic_event): Call above function.
14239
14240 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14241
14242         * objects-msw.c (mswindows_create_font_variant): Return the new
14243         font handle.
14244         (initialize_font_instance): Get font metrics from the underlined
14245         variant of the font to cope with the case where the underlined
14246         font has a bigger descent.
14247
14248 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
14249
14250         * gui.c (gui_item_accelerator): Return the first underlined
14251         character in item name.
14252
14253 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14254
14255         * lisp.h: Added Qprinter.
14256
14257         * general.c (syms_of_general): Initialized it.
14258
14259         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
14260         (get_frame_dc):
14261         (get_frame_compdc): Made inline.
14262
14263         * console.h (struct console_methods): Added eject_page method.
14264
14265         * frame.h: Added FRAME_DISPLAY_P and friends.
14266         Aligned backslahes in many macros in more readable fashion.
14267         Added page_number to struct frame, and an accessor macro
14268         for it.
14269
14270         * defice.h: Added DEVICE_DISPLAY_P and friends.
14271
14272         * device.c (Fdevice_printer_p): Used these.
14273
14274         * frame.c (allocate_frame_core): Initialize page number.
14275         (Fprint_job_page_number):
14276         (Fprint_job_eject_page): Implemented.
14277
14278         * frame-msw.c (msprinter_eject_page): Added method.
14279         (msprinter_start_page): Added.
14280
14281         * window.c (Fwindow_truncated_p): Fixed docstring.
14282         (Fwindow_last_line_visible_height): Implemented.
14283
14284 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
14285
14286         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
14287
14288 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
14289
14290         * syntax.c (scan_words): Always advance at least one character.
14291
14292 2000-02-13  Andy Piper  <andy@xemacs.org>
14293
14294         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
14295         to make sure the glyph is in the cachels.
14296
14297         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
14298         global image instance flag.
14299         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
14300         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
14301
14302         * glyphs.c (allocate_image_instance): set dirty bits correctly.
14303         (Fset_image_instance_property): mark layout as changed.
14304         (invalidate_glyph_geometry_maybe): mark layout as changed.
14305         (glyph_width): use new NEEDS_LAYOUT macro.
14306         (glyph_ascent): ditto.
14307         (glyph_descent): ditto.
14308         (glyph_height): ditto.
14309         (image_instance_layout): mark layout as clean after laying out.
14310         (update_subwindow): don't mark layout as clean here.
14311
14312         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
14313         should no longer be needed.
14314
14315         * glyphs-x.c (x_update_widget): sanitize asserts.
14316         (x_finalize_image_instance): sanitize assignment to widgets.
14317
14318         * glyphs-widget.c (widget_instantiate): don't need to clear the
14319         layout flag here.
14320
14321 2000-02-13  Martin Buchholz  <martin@xemacs.org>
14322
14323         * sysdep.c (getcwd): Use standard prototype.
14324         * sysdep.h (getcwd): Use standard prototype.
14325
14326         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
14327         (sequence, start, end).
14328         Remove redundant type checking.
14329         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
14330         view of `caller-protects') to avoid a crash where the real fix was
14331         found elsewhere.
14332
14333 2000-02-12  Martin Buchholz  <martin@xemacs.org>
14334
14335         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
14336
14337         * s/sol2.h: Remove feature macro initialization.
14338
14339         * alloc.c (alloc_lcrecord): Add more type checking assertions.
14340         (vector_hash): New.  Code from internal_hash.
14341         * lrecord.h:
14342         Fix up allocation subsystem comments.
14343
14344         * config.h.in: Add __EXTENSIONS__ for Solaris.
14345
14346         * systime.h (EMACS_GETTIMEOFDAY): New.
14347         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
14348         Remove Solaris-specific code.
14349         Use void* for the (ignored) second arg for gettimeofday().
14350
14351         * elhash.c (hash_table_hash): Implement it, finally.
14352         * elhash.c:  Use hashcode_t.
14353
14354         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
14355         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
14356
14357         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
14358         * fns.c (size_bit_vector):
14359         * alloc.c (size_vector):
14360         (make_vector_internal):
14361         (make_bit_vector_internal):
14362         (sweep_bit_vectors_1):
14363         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
14364
14365 2000-02-10  Martin Buchholz  <martin@xemacs.org>
14366
14367         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
14368         Include strings.h to avoid warnings for bzero and strcasecmp.
14369
14370 2000-02-10  Olivier Galibert  <galibert@pobox.com>
14371
14372         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
14373         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
14374
14375         * fns.c (size_bit_vector): New.  Declare bit vectors as a
14376         sequence.
14377
14378 2000-02-10  Olivier Galibert  <galibert@pobox.com>
14379
14380         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
14381         use a value field instead.
14382         (symbol_value_forward_forward): Use value field.
14383         (DEFVAR_SYMVAL_FWD): Use value field.
14384         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
14385         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
14386         (DEFVAR_CONST_INT): Ditto.
14387         (DEFVAR_BOOL): Ditto.
14388         (DEFVAR_CONST_BOOL): Ditto.
14389         (DEFVAR_INT_MAGIC): Ditto.
14390         (DEFVAR_BOOL_MAGIC): Ditto.
14391
14392         * symbols.c (guts_of_unbound_marker): Use value field.
14393         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
14394         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
14395
14396         * lisp.h: Declare dumpopaque and noninteractive1.
14397
14398         * alloc.c (dumpopaque): Added.
14399         (pdump_dump_opaquevec): Added.
14400         (pdump): Call pdump_dump_opaquevec to dump opaque data.
14401         (pdump_load): Reload opaque data.  Sync noninteractive1 with
14402         noninteractive.
14403
14404 2000-02-10  Andy Piper  <andy@xemacs.org>
14405
14406         * glyphs.c (image_instance_layout): if the size changes, mark it
14407         as such.
14408
14409         * redisplay-output.c (redisplay_output_layout): Update the
14410         subwindow here.
14411         (redisplay_output_subwindow): ditto.
14412
14413         * glyphs.c (update_subwindow): make sure we reset flags for
14414         layouts as well as everything else.
14415
14416         * glyphs-widget.c (layout_layout): don't need to set the instances
14417         dimensions here.
14418
14419 2000-02-09  Martin Buchholz  <martin@xemacs.org>
14420
14421         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
14422         not HAVE_DLOPEN, which is a lower-level thing.
14423
14424         * .cvsignore: Ignore gmon.out
14425
14426 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
14427
14428         * .cvsignore: Ignore portable dumper xemacs.dmp file
14429
14430 2000-02-09  Andy Piper  <andy@xemacs.org>
14431
14432         * redisplay-output.c (redisplay_output_layout): be more clever
14433         about when we output based on the changed flags.
14434
14435         * glyphs.h (struct image_instantiator_methods): add update_method.
14436         (struct Lisp_Image_Instance): add changed flags. Declare new
14437         macros for manipulating them.
14438
14439         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
14440         (image_instance_parent_glyph): find an image_instance's parent
14441         glyph or image_instance.
14442         (image_instance_layout): mark the size as changed.
14443         (set_image_instance_dirty_p): new function. mark an image
14444         instance, plus all of its parents, as dirty.
14445         (Fset_image_instance_property): use it.
14446         (Fglyph_animated_timeout_handler): use it.
14447         (update_subwindow): call update_widget and device methods for
14448         update_subwindow. Mark all changed flags as clean.
14449         (Fresize_subwindow): mark size as changed.
14450
14451         * glyphs-x.c (x_finalize_image_instance): try and detect gc
14452         failures.
14453         (x_update_subwindow): only resize subwindows here.
14454         (x_update_widget): new function. Update all changed properties of
14455         a widget.
14456         (x_resize_subwindow): deleted.
14457         (x_widget_set_property): deleted.
14458         (x_progress_gauge_set_property): deleted.
14459         (x_progress_gauge_update): new function. Implement recorded
14460         changes.
14461         (x_tab_control_update): ditto.
14462         (x_tab_control_set_property): deleted.
14463         (console_type_create_glyphs_x): declare new functions.
14464         (image_instantiator_format_create_glyphs_x): ditto.
14465
14466         * glyphs-widget.c (widget_set_property): mark text changed.
14467         (update_widget): new function. Update properties of a widget.
14468         (widget_instantiate): for layouts make sure we set their
14469         children's parent correctly.
14470         (tab_control_set_property): new function. Record changes that will
14471         take place under redisplay's control.
14472         (progress_gauge_set_property): ditto.
14473         (image_instantiator_progress_guage): declare new functions.
14474         (image_instantiator_tab_control): ditto.
14475
14476         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
14477         now.
14478         (mswindows_update_widget): new function. Update all properties on
14479         a widget that have changed.
14480         (mswindows_button_update): new function. Update a button's set
14481         state.
14482         (mswindows_tab_control_update): new function. Update the items in
14483         a tab.
14484         (mswindows_tab_control_set_property): deleted.
14485         (mswindows_progress_gauge_update): new function. Update the
14486         progress gauge's progress.
14487         (mswindows_widget_set_property): deleted. This is all done
14488         asynchronously now.
14489         (mswindows_progress_gauge_set_property): ditto.
14490         (console_type_create_glyphs_mswindows): declare new methods.
14491         (image_instantiator_format_create_glyphs_mswindows): ditto.
14492
14493         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
14494         (msprinter_set_frame_properties): ditto.
14495
14496         * console.h (struct console_methods): Add update_widget_method.
14497
14498 2000-02-09  Andy Piper  <andy@xemacs.org>
14499
14500         * gui-msw.c (Fmswindows_shell_execute): Make
14501         mswindows-shell-execute industrial strength.
14502
14503 2000-02-08  Martin Buchholz  <martin@xemacs.org>
14504
14505         * lrecord.h: Make macro argument `props' match member function `plist'.
14506         * fns.c (Fget):
14507         * fns.c (Fput):
14508         * fns.c (Fremprop):
14509         * fns.c (Fobject_plist):
14510         * alloc.c:
14511         * symbols.c:
14512         Object property list frobbing cleanup.
14513         - Allow any lisp object (compared with `eq'), not just symbols, as
14514           keys in object plists.
14515         - Move symbol plist frobbing into symbols.c, where it belongs.
14516         - Move string plist frobbing into alloc.c, where it belongs.
14517         - Everything's an lrecord now, so no need to test for symbolp, etc.
14518         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
14519
14520         * extents.c: Reorder code to remove declarations.
14521
14522         * frame.h (store_in_alist): Remove useless declaration.
14523
14524 2000-02-07  Martin Buchholz  <martin@xemacs.org>
14525
14526         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
14527         * config.h.in: Add HAVE_XCONVERTCASE.
14528
14529 2000-02-07  Andy Piper  <andy@xemacs.org>
14530
14531         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
14532         it breaks many things.
14533
14534 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
14535
14536         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
14537         actually can start a common comment type.
14538         * src/syntax.h (SYNTAX_END_P): ditto for end.
14539
14540 2000-02-07  Martin Buchholz <martin@xemacs.org>
14541
14542         * XEmacs 21.2.28 is released.
14543
14544 2000-02-06  Martin Buchholz  <martin@xemacs.org>
14545
14546         * event-Xt.c (x_keysym_to_character): New.
14547         (maybe_define_x_key_as_self_inserting_character): New.
14548         (x_has_keysym): New.
14549         Auto-define all keys on the keyboard as self-insert-key.
14550
14551 2000-02-02  Martin Buchholz  <martin@xemacs.org>
14552
14553         * menubar.c (vars_of_menubar): A small code simplification.
14554
14555         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
14556
14557         * ExternalShell.c:
14558         * ExternalClient.c:
14559         * EmacsShell-sub.c:
14560         * EmacsManager.c:
14561         * EmacsFrame.c:
14562         Use consistent style for specifying X resources.
14563
14564         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
14565         This makes (dontusethis-set-symbol-value-handler) actually usable.
14566
14567         * lrecord.h (lrecord_decription_type):
14568         * alloc.c (pdump_register_sub):
14569         (pdump_dump_data):
14570         (pdump_reloc_one):
14571         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
14572         Comply with XEmacs coding style.
14573         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
14574         args, and XD_LISP_OBJECT_ARRAY with 3 args.
14575
14576         * keymap.c (Faccessible_keymaps):
14577         Make (accessible-keymaps map "\C-h") do the Right Thing.
14578         Make (accessible-keymaps map []) do the Right Thing.
14579         Make (accessible-keymaps map "") do the Right Thing.
14580         (check_keymap_definition_loop): New function.
14581         (keymap_store_internal): Keep luser from shooting self in foot,
14582           via (define-key ctl-x-4-map "p" global-map).
14583         Remove fullness slot from struct Lisp_Keymap, since hash tables
14584         are now reliable.
14585         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
14586
14587 2000-01-30  Martin Buchholz  <martin@xemacs.org>
14588
14589         * redisplay.c (init_redisplay): Fix small memory leak.
14590         * elhash.h:
14591         * elhash.c (pdump_reorganize_hash_table):
14592         Rename from reorganize_hash_table. Change prototype.
14593         Reuse the original memory for hentries.  Save 100k.
14594         * alloc.c (PDUMP_READ): new macro.
14595         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
14596         * alloc.c: No need to #ifndef before #undef.
14597
14598         * print.c: Allow debug_print() to print readably by modifying
14599         debug_print_readably.  Use consistent variable names.
14600
14601         * .dbxrc: Try to get things to work even if stopped in a function
14602         without source available by explicitly specifying source files.
14603 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14604
14605         * unexnt.c (_start): Removed bogus code which caused loading heap
14606         from differrent executable file.
14607         Removed bogus assignment to _fmode, which caused inconsistencies.
14608
14609 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14610
14611         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
14612         Have spawnve encapsulation regard DONT_ENCAPSULATE.
14613         Do not preliminary `#define signal sigset'.
14614
14615         * systime.h: Do not prototype environ on windows nt and cygwin,
14616         this conflicts with system header.
14617
14618         * syssignal.h: Use correct define for WINDOWSNT
14619
14620         * sysdep.h: Do not prototype environ on windows nt, this conflicts
14621         with system header.
14622
14623         * sysdep.c (near start of file): Fixed commentary and rearranged
14624         ifdefs in readable order.
14625         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
14626         (start_of_text):
14627         (end_of_text):
14628         (end_of_data): Do not compile in if using PDUMP.
14629
14630         * symsinit.h: Prototyped vars_of_nt().
14631
14632         * ntproc.c (windows9x_p): Added, instead of os_subtype.
14633         (find_child_console): Use it.
14634         (sys_kill): Use it.
14635
14636         * ntheap.h: Do not extern os_subtype.
14637
14638         * ntheap.c (cache_system_info): Do not cache unneeded:
14639         nt_major_version, nt_minor_version and os_subtype.
14640         (recreate_heap): Do not compile in when PDUMPing.
14641
14642         * nt.c (geteuid and friends): Use the new varibale
14643         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
14644         (init_user_info): Removed the above mentioned hackery.
14645         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
14646         stat has been fixed in the C runtime.
14647         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
14648
14649         * file-coding.c (struct file_coding_dump): Do not define
14650         ucs_to_mule_table in the struct if not MULE.
14651         (struct struct lrecord_description fcd_description_1): Do not dump
14652         the above.
14653
14654         * emacs.c (main_1): Call vars_of_nt().
14655         (right before Fdump_emacs_data): Don't need lastfile if using both
14656         portabe dumper and system malloc.
14657
14658         * alloc.c (Fmemory_limit): Conditionalized out.
14659         (pdump): Use OPEN_BINARY for the portable dump file.
14660         (pdump_load): Ditto.
14661
14662 2000-02-02  Mike Alexander  <mta@arbortext.com>
14663
14664         * nt.c (convert_time): Set tm_isdst before calling mktime and
14665         avoid calling it at all if the compiler supports 64 bit integers.
14666         Also initialize utc_base_ft before using it.
14667
14668 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
14669
14670         * frame.c (change_frame_size_1): Take f->internal_border_width
14671         into consideration when calculating the width of the frame.
14672
14673 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14674
14675         * window.c (frame_min_height):
14676         (frame_size_valid_p):
14677         (frame_pixsize_valid_p): Added.
14678         (check_frame_size): Generalized.
14679
14680         * window.h: Prototyped the above.
14681
14682         * lisp.h:
14683         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
14684         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
14685         Deleted Vwin32_* and Vbinary_process_* unused variables.
14686
14687         * device-msw.c (msprinter_init_device): Do not get printer font
14688         list; Added DEVMODE functions.
14689
14690         * frame-msw.c: Added lots of printer code.
14691
14692         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
14693         general.c.
14694
14695         * console-msw.h: Added more msprinter device private slots.
14696
14697 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14698
14699         * event-msw.c (key_needs_default_processing_p): Added.
14700         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
14701
14702 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14703
14704         * glyphs.c (image_instance_layout): Mark image instance as clean
14705         after layout.
14706         (glyph_dirty_p): Removed redundant function.
14707         (invalidate_glyph_geometry_maybe): Added.
14708         (update_glyph_cachel_data): Call it.
14709
14710         * glyphs.h: Prototyped it.
14711
14712         * redisplay.c (add_glyph_rune): Call it.
14713         (redisplay_window): Reset glyphs cachels when frame faces have
14714         changed, thus forcing recomputation of built-in border glyphs.
14715
14716 2000-01-30  Martin Buchholz  <martin@xemacs.org>
14717
14718         * Makefile.in.in: Make portable dumper and purify play well together.
14719         Add imperfect, but better than nothing, support for pdump.
14720         Remove xemacs.dmp when temacs is re-generated.
14721         Don't ignore errors when dumping xemacs.
14722
14723         * symbols.c (maybe_call_magic_handler): Remove one magic number.
14724
14725 2000-01-28  Andy Piper  <andy@xemacs.org>
14726
14727         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
14728         (setup_normal_frame): ditto.
14729         (setup_frame_without_minibuffer): ditto.
14730         (setup_minibuffer_frame): ditto.
14731         (delete_frame_internal): ditto.
14732         (Fmake_frame_invisible): ditto.
14733         (Ficonify_frame): ditto.
14734
14735         * window.h: change Fset_window_buffer signature.
14736
14737         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
14738         (Fset_window_buffer): allow recording of buffer if the window is
14739         the selected window.
14740         (window_loop): Use new Fset_window signature.
14741
14742 2000-01-23  Daniel Pittman  <daniel@danann.net>
14743
14744         * config.h.in: Added template for `HAVE_ATHENA_3D'
14745
14746 2000-01-29  Andy Piper  <andy@xemacs.org>
14747
14748         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
14749
14750         * gutter.c (output_gutter): Don't output if the window isn't live.
14751
14752 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14753
14754         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
14755         of 01/12/00: Moved SetFocus back here where it belongs.
14756
14757 2000-01-23  Andy Piper  <andy@xemacs.org>
14758
14759         * s/cygwin32.h: declare printer things.
14760
14761 2000-01-26  Andy Piper  <andy@xemacs.org>
14762
14763         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
14764         Alexander.
14765
14766 2000-01-24  Andy Piper  <andy@xemacs.org>
14767
14768         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
14769         (mswindows_button_instantiate): Make sure glyph is a pixmap.
14770
14771         * glyphs-widget.c (widget_instantiate): Avoid shadows.
14772
14773         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
14774
14775         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
14776
14777         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
14778         (mswindows_output_display_block): Avoid local shadows.
14779
14780         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
14781         (mswindows_enqueue_mouse_button_event): ditto.
14782         (mswindows_handle_gui_wm_command): remove declaration.
14783
14784         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
14785         warnings.
14786
14787         * console-msw.h: Avoid shadows.
14788         (mswindows_get_toolbar_button_text):
14789         (emacs_mswindows_create_stream_pair):
14790         (emacs_mswindows_delete_stream_pair):
14791         (mswindows_handle_toolbar_wm_command): declare.
14792
14793         * device-msw.c (build_syscolor_string): Avoid shadows.
14794
14795 2000-01-23  Andy Piper  <andy@xemacs.org>
14796
14797         * glyphs-widget.c (widget_instantiate): reverse the items for
14798         layouts so that children are in the expected order.
14799
14800 2000-01-28  Martin Buchholz  <martin@xemacs.org>
14801
14802         * ralloc.c: safe_bcopy ==> memmove
14803         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
14804         * s/msdos.h: Remove BCOPY macros.
14805         * insdel.c (gap_right): Remove BCOPY conditional code.
14806         * insdel.c (gap_left): Remove BCOPY conditional code.
14807         XEmacs demands a working ANSI C compiler - hence memmove.
14808
14809         * regex.c (regex_compile): Remove accidental use of trigraphs.
14810
14811 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14812
14813         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
14814         event timestamp.
14815
14816 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14817
14818         * event-msw.c (mswindows_drain_windows_queue): Added the
14819         parameter.
14820         (mswindows_need_event): Commented the call to
14821         mswindows_drain_windows_queue().
14822         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
14823         only.
14824
14825         * console-msw.h: Moved a few function prototypes here from
14826         event-msw.c.
14827
14828         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
14829         parameter from unsigned short to unsigned long.
14830         (Fmswindows_shell_execute): Added return value.
14831
14832 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
14833
14834         * sysdep.c (init_system_name):
14835           process-unix.c (unix_canonicalized_host_name):
14836         Don't call freeaddrinfo() if getaddrinfo() fails.
14837
14838         * process-unix.c (unix_open_unix_network_stream):
14839         Moved the code to get a port # into address loop.
14840
14841 2000-01-27  Martin Buchholz  <martin@xemacs.org>
14842
14843         * buffer.c (reinit_vars_of_buffer):
14844         The right place to initialize conversion_in_dynarr and
14845         conversion_out_dynarr.
14846
14847         * alloc.c (pdump): Use the real open() till sys_open() is functional.
14848
14849         * process-unix.c (unix_canonicalize_host_name): Muleize.
14850         (unix_open_network_stream): Muleize.
14851
14852         * buffer.h: Fix up prototypes for ralloc.c functions.
14853
14854 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
14855         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
14856         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
14857                 instead of gethostbyname()
14858         * process-unix.c: In unix_canonicalize_host_name() and
14859                 unix_open_network_stream(), add code to use getaddrinfo()
14860                 instead of gethostbyname().
14861
14862 2000-01-27  Daniel Pittman <daniel@danann.net>
14863
14864         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
14865         libs when built with flat Athena.
14866
14867 2000-01-27  Martin Buchholz  <martin@xemacs.org>
14868
14869         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
14870         Use coding standards for function prototypes.
14871
14872 2000-01-25  Martin Buchholz  <martin@xemacs.org>
14873
14874         * dialog-msw.c (push_lisp_string_as_unicode):
14875         * doc.c (unparesseuxify_doc_string):
14876         * dired.c (Fuser_name_completion_1):
14877         * dired.c (Fuser_name_all_completions):
14878         * dired.c (free_user_cache):
14879         * dired.c (user_name_completion):
14880         * console-x.c (get_display_arg_connection):
14881         * minibuf.c (clear_echo_area_internal):
14882         * minibuf.c (echo_area_append):
14883         * eldap.c (Fldap_open):
14884         * eldap.c (Fldap_search_internal):
14885         * frame-x.c (x_set_frame_text_value):
14886         * frame-x.c (x_set_frame_properties):
14887         * frame-x.c (x_create_widgets):
14888         * redisplay-tty.c (term_get_fkeys_1):
14889         * objects-x.c (x_parse_nearest_color):
14890         * objects-x.c (x_valid_color_name_p):
14891         * objects-x.c (x_initialize_font_instance):
14892         * objects-x.c (x_list_fonts):
14893         * objects-x.c (x_find_charset_font):
14894         * tooltalk.c (Fadd_tooltalk_message_arg):
14895         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
14896         * tooltalk.c (Fadd_tooltalk_pattern_arg):
14897         * process-unix.c (unix_create_process):
14898         * ntproc.c (sys_spawnve):
14899         * sound.c (Fplay_sound_file):
14900         * sound.c (Fplay_sound):
14901         * buffer.c (init_initial_directory):
14902         * buffer.c (init_buffer):
14903         * editfns.c (init_editfns):
14904         * editfns.c (Ftemp_directory):
14905         * editfns.c (Fuser_full_name):
14906         * editfns.c (uncache_home_directory):
14907         * editfns.c (get_home_directory):
14908         * editfns.c (Fuser_home_directory):
14909         * editfns.c (Fformat_time_string):
14910         * editfns.c (Fcurrent_time_string):
14911         * gui-x.c (button_item_to_widget_value):
14912         * database.c (Fopen_database):
14913         * event-Xt.c (x_to_emacs_keysym):
14914         * event-Xt.c (x_event_to_emacs_event):
14915         * event-Xt.c (describe_event_window):
14916         * event-msw.c (mswindows_wnd_proc):
14917         * glyphs-eimage.c (jpeg_instantiate):
14918         * glyphs-eimage.c (gif_instantiate):
14919         * glyphs-eimage.c (png_instantiate):
14920         * glyphs-eimage.c (tiff_instantiate):
14921         * glyphs-x.c (xbm_instantiate_1):
14922         * glyphs-x.c (x_xbm_instantiate):
14923         * glyphs-x.c (x_xface_instantiate):
14924         * glyphs-x.c (autodetect_instantiate):
14925         * glyphs-x.c (cursor_font_instantiate):
14926         * glyphs-x.c (x_widget_instantiate):
14927         * glyphs-x.c (x_widget_set_property):
14928         * glyphs-x.c (x_widget_property):
14929         * glyphs-x.c (BUILD_GLYPH_INST):
14930         * print.c (write_string_to_stdio_stream):
14931         * print.c (output_string):
14932         * print.c (Falternate_debugging_output):
14933         * print.c (Fexternal_debugging_output):
14934         * glyphs-msw.c (extract_xpm_color_names):
14935         * glyphs-msw.c (mswindows_xpm_instantiate):
14936         * glyphs-msw.c (bmp_instantiate):
14937         * glyphs-msw.c (resource_name_to_resource):
14938         * glyphs-msw.c (mswindows_resource_instantiate):
14939         * glyphs-msw.c (xbm_instantiate_1):
14940         * glyphs-msw.c (mswindows_xbm_instantiate):
14941         * glyphs-msw.c (mswindows_xface_instantiate):
14942         * glyphs-msw.c (mswindows_widget_instantiate):
14943         * glyphs-msw.c (add_tree_item):
14944         * glyphs-msw.c (add_tab_item):
14945         * glyphs-msw.c (mswindows_combo_box_instantiate):
14946         * glyphs-msw.c (mswindows_widget_property):
14947         * glyphs-msw.c (mswindows_combo_box_property):
14948         * glyphs-msw.c (mswindows_widget_set_property):
14949         * console.c (stuff_buffered_input):
14950         * objects-msw.c (mswindows_initialize_color_instance):
14951         * objects-msw.c (mswindows_valid_color_name_p):
14952         * objects-msw.c (mswindows_list_fonts):
14953         * objects-msw.c (mswindows_font_instance_truename):
14954         * bytecode.c (optimize_compiled_function):
14955         * select-x.c (symbol_to_x_atom):
14956         * select-x.c (x_atom_to_symbol):
14957         * select-x.c (hack_motif_clipboard_selection):
14958         * select-x.c (selection_data_to_lisp_data):
14959         * select-x.c (lisp_data_to_selection_data):
14960         * select-x.c (Fx_get_cutbuffer_internal):
14961         * select-x.c (Fx_store_cutbuffer_internal):
14962         * buffer.h (TO_EXTERNAL_FORMAT): New function.
14963         * buffer.h (TO_INTERNAL_FORMAT): New function.
14964         * emacs.c (make_arg_list_1):
14965         * emacs.c (make_argc_argv):
14966         * emacs.c (main_1):
14967         * emacs.c (Fdump_emacs):
14968         * emacs.c (split_string_by_emchar_1):
14969         * file-coding.h:
14970         * lisp.h:
14971         * lstream.h:
14972         * symsinit.h:
14973         * device-x.c (x_init_device):
14974         * device-x.c (Fx_valid_keysym_name_p):
14975         * device-x.c (Fx_get_font_path):
14976         * device-x.c (Fx_set_font_path):
14977         * glyphs.c (bitmap_to_lisp_data):
14978         * glyphs.c (pixmap_to_lisp_data):
14979         * alloc.c (make_ext_string): Use coding system arguments.  Update
14980         all callers.
14981         * alloc.c (build_string):
14982         * callproc.c (child_setup):
14983         * callproc.c (init_callproc):
14984         * fileio.c (lisp_strerror):
14985         * fileio.c (directory_file_name):
14986         * fileio.c (Fexpand_file_name):
14987         * fileio.c (Ffile_truename):
14988         * fileio.c (Fsysnetunam):
14989         * fileio.c (Fdo_auto_save):
14990         * sysdep.c (sys_readdir):
14991         * tests.c: New file.  Allow adding C tests.
14992         Replace GET_* macros with a more comprehensible and flexible
14993         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
14994         Modify all calls.
14995         Any coding system can be used to do format conversion.
14996         Eliminate enum external_data_format.
14997         Eliminate convert_to_external_format.
14998         Eliminate convert_to_internal_format.
14999         Make sure file-name, keyboard, terminal, and ctext are always
15000         defined as coding systems or aliases.  Make
15001         file-name-coding-system, terminal-coding-system, and
15002         keyboard-coding-system magical variables that are equivalent to
15003         defining the corresponding coding system aliases.
15004
15005         * file-coding.c (Fcoding_system_canonical_name_p): New function.
15006         * file-coding.c (Fcoding_system_alias_p): New function.
15007         * file-coding.c (Fcoding_system_aliasee): New function.
15008         * file-coding.c (append_suffix_to_symbol): New function.
15009         * file-coding.c (dangling_coding_system_alias_p): New function.
15010         * file-coding.c (Ffind_coding_system):
15011         * file-coding.c (Fcopy_coding_system):
15012         * file-coding.c (encode_coding_no_conversion):
15013         * file-coding.c (syms_of_file_coding):
15014         * file-coding.c (vars_of_file_coding):
15015         Rewrite coding system alias code.
15016         Allow nested aliases, like symbolic links.
15017         Allow redefinition of coding system aliases.
15018         Prevent existence of dangling coding system aliases.
15019
15020         * dired.c (Fuser_name_completion_1):
15021         * dired.c (Fuser_name_all_completions):
15022         A crash would happen if user did QUIT in the middle of building
15023         user_name_cache.  Remove redundant code in mainline and unwind_protect.
15024
15025         * lisp.h:
15026         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
15027
15028         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
15029         an unsigned char *.  Update all callers.
15030
15031 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15032
15033         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
15034
15035 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15036
15037         * elhash.c (hentry_description): Use more portable definition.
15038         (resize_hash_table): Initialize new hentries using
15039         xnew_array_and_zero, thereby simplifying the code.
15040
15041         * mule-charset.c (make_charset): Make sure entire object is
15042         initialized, to avoid Purify warnings.
15043
15044         * alloc.c (resize_string): Fix unlikely crash with big strings.
15045
15046 2000-01-24  Martin Buchholz  <martin@xemacs.org>
15047
15048         * realpath.c (xrealpath):
15049         Don't call getwd().
15050
15051 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15052
15053         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
15054
15055 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
15056
15057         * unexelfsgi.c (unexec): Change the way we decide which segment
15058         should be extended.
15059
15060         Assumption that .bss section should be outside the PT_LOADable
15061         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
15062         it's present) is inside the 'data' segment. This would fail the
15063         test which was used to find a segment to grow and cover new
15064         heap. Instead of this assumption, I created another one - on IRIX
15065         the segment to grow should start below .bss and it's address
15066         should extent above the end of .bss. Once this segment is
15067         identified, it's grown to accommodate the new heap and new
15068         zero-length .bss section is added at the end of .data2.
15069
15070 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15071
15072         * eval.c (Feval): Wrong number of arguments should use original
15073         function, not the indirect_function version of it.
15074
15075 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
15076
15077         * glyphs-x.c (x_button_instantiate): Don't add image if
15078         it is not a pixmap.
15079         (x_locate_pixmap_file): Call Fexpand_file_name when file name
15080         is relative.
15081
15082 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
15083
15084         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
15085         declaration.
15086         (DEFVAR_INT_MAGIC): Ditto.
15087         (DEFVAR_BOOL_MAGIC): Ditto.
15088         * glyphs.h: Reindent backslash.
15089
15090 2000-01-24  Martin Buchholz  <martin@xemacs.org>
15091
15092         * glyphs-widget.c (layout_query_geometry):
15093         (layout_layout): Use correct types for gheight, gwidth.
15094
15095 2000-01-24  Martin Buchholz  <martin@xemacs.org>
15096
15097         * EmacsManager.c (QueryGeometry): Purified.
15098
15099 2000-01-23  Martin Buchholz  <martin@xemacs.org>
15100
15101         * alloc.c (make_float): Make sure entire object is initialized, to
15102         avoid Purify warnings.
15103         (pdump_register_sub): Remove useless assignment.
15104         (pdump): Use xmalloc, not malloc.
15105         (pdump_load): Use xmalloc, not malloc.
15106
15107 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15108
15109         * callproc.c:
15110         * dired-msw.c:
15111         * fileio.c:
15112         * process-nt.c:
15113         * redisplay-msw.c:
15114         * sysdep.c: Removed redundant #include <windows.h>
15115
15116 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15117
15118         * frame.c (delete_frame_internal): Do not delete device when its
15119         implementation so declares.
15120         (delete_frame_internal): Set device selected frame to nil when
15121         last frame goes away.
15122
15123         * device-msw.c (msprinter_device_system_metrics): Implemented.
15124         (mswindows_device_system_metrics): Added 'device-dpi property.
15125
15126         * device.c: (Fdevice_printer_p): Added.
15127         Added 'offset-workspace device metric.
15128
15129         * console.h (device_metrics): Declared DM_offset_workspace.
15130
15131 2000-01-23  Martin Buchholz  <martin@xemacs.org>
15132
15133         * fileio.c (Ffile_truename): Remove pointless and confusing
15134         initialization of elen.
15135
15136         * glyphs-widget.c: Compiler warning fixes.
15137
15138 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
15139
15140         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
15141         instead of a Lisp_Object as argument to make it consistent with
15142         the other LIVE_P macros.
15143         (CHECK_LIVE_PROCESS): New macro.
15144
15145         * process.c: Declare Qprocess_live_p.
15146         (Fprocess_live_p): New function.
15147         (create_process): Use PROCESS_LIVE_P.
15148         (read_process_output): Ditto.
15149         (set_process_filter): Ditto.
15150         (Fdelete_process): Ditto.
15151         (kill_buffer_processes): Ditto
15152         (process_send_signal): Use CHECK_LIVE_PROCESS.
15153         (Fprocess_input_coding_system): Check whether process is still
15154         alive (fix PR#1061).
15155         (Fprocess_output_coding_system): Ditto.
15156         (Fprocess_coding_system): Ditto.
15157         (Fset_process_input_coding_system): Ditto.
15158         (Fset_process_output_coding_system): Ditto.
15159
15160 2000-01-23  Andy Piper  <andy@xemacs.org>
15161
15162         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
15163         layout and widget.
15164
15165         * glyphs.c (mark_image_instance): take into account changed
15166         image_instance format.
15167         (image_instance_equal): ditto.
15168         (image_instance_hash): ditto.
15169
15170         * glyphs-widget.c (widget_instantiate): Incorporate layout
15171         instantiation here. Delay layout of the layout until later.
15172         (layout_instantiate): deleted.
15173         (layout_query_geometry): new function. get the geometry of a
15174         layout.
15175         (layout_layout): layout a layout dynamically.
15176         (image_instantiator_widget): New function - splitting up
15177         image_instantiator_format_create_glyphs_widget for netwinder
15178         compilation.
15179         (image_instantiator_buttons):
15180         (image_instantiator_edit_fields):
15181         (image_instantiator_combo_box):
15182         (image_instantiator_scrollbar):
15183         (image_instantiator_progress_guage):
15184         (image_instantiator_tree_view):
15185         (image_instantiator_tab_control):
15186         (image_instantiator_labels):
15187         (image_instantiator_layout): ditto.
15188         (image_instantiator_format_create_glyphs_widget): Call preceding
15189         functions.
15190
15191 2000-01-22  Martin Buchholz  <martin@xemacs.org>
15192
15193         * process.c (Fset_process_coding_system):
15194         * device-x.c (Fx_keysym_hash_table):
15195         Docstring fixes.
15196
15197         * lstream.c (Lstream_write): Return documented value, not 0.
15198
15199         * fileio.c (directory_file_name):
15200         (Fsubstitute_in_file_name):
15201         (Fsubstitute_insert_file_contents_internal):
15202         (Fwrite_region_internal):
15203         * emacs.c:
15204         * sysdep.c:
15205         * getloadavg.c:
15206         * systty.h:
15207         Remove vestigial APOLLO-conditional code.
15208
15209 2000-01-21  Martin Buchholz  <martin@xemacs.org>
15210
15211         * getpagesize.h: Add guard macros.
15212         * libsst.h: Add guard macros.
15213         * libst.h: Add guard macros.
15214         * line-number.h: Add guard macros.
15215         * ndir.h: Add guard macros.
15216         * sysfloat.h: Add guard macros.
15217         * sysfile.h: Add guard macros.
15218         * sysproc.h: Add guard macros.
15219         * syswait.h: Add guard macros.
15220         * xintrinsic.h: Add guard macros.
15221         * xintrinsicp.h: Add guard macros.
15222         * xmmanager.h: Add guard macros.
15223         * xmmanagerp.h: Add guard macros.
15224         * xmprimitive.h: Add guard macros.
15225         * xmu.h: Add guard macros.
15226         * gpmevent.h: Add copyright statement. Add guard macros.
15227         * miscplay.h: Add guard macros.
15228         * *.h: Use consistent C-standards-approved guard macro names.
15229
15230         * opaque.c (make_opaque): Switch parameter order.
15231         * opaque.h (make_opaque): Switch parameter order.
15232         Update all callers.
15233         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
15234
15235         * config.h.in (type_checking_assert): Added.
15236         (bufpos_checking_assert): Added.
15237
15238 2000-01-21  Martin Buchholz  <martin@xemacs.org>
15239
15240         * alloc.c: Harmless pdump changes.
15241         - Use countof().
15242         - spell alignment correctly.
15243         * sysdep.c: Use countof()
15244
15245 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15246
15247         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
15248         initially_selected_for_input() console method, default to 0.
15249         (semi_canonicalize_console_connection): Try to delegate to
15250         canonicalize_console_connection if no such console method.
15251         (canonicalize_console_connection): Vice versa.
15252         (print_console): Do not print nil connection.
15253
15254         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
15255         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
15256         (XDEVIMPF_FRAMELESS_OK): Added.
15257         (CONSOLE_INHERITS_METHOD): Added.
15258
15259         * console-msw.c (mswindows_canonicalize_console_connection):
15260         Added.
15261         (mswindows_canonicalize_device_connection): Added.
15262
15263         * console-msw.h (struct msprinter_device): Added this struct and
15264         accessor macros.
15265         (mswindows_device): Made fontlist a lisp object.
15266
15267         * device.c (semi_canonicalize_device_connection):  Try to delegate
15268         to canonicalize_device_connection if no such console method.
15269         (canonicalize_device_connection): Vice versa.
15270         (print_device): Do not print nil connection.
15271
15272         * device-msw.c (mswindows_init_device): Call InitCommonControls
15273         when have widgets.
15274         (mswindows_delete_device): Removed fontlist deallocation.
15275         (mswindows_mark_device): Added.
15276
15277         * events.c (event_equal): Added abort() at unreached code.
15278         (event_hash): Ditto.
15279
15280         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
15281         fallback tags of Windows devices.
15282
15283         * general.c (syms_of_general): Initialized Qmsprinter.
15284
15285         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
15286         of fallback tags of Windows devices.
15287
15288         * lisp.h: Declared Qmsprinter.
15289
15290         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
15291         of strings.
15292         (mswindows_list_fonts): Ditto.
15293         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
15294         that it can be used by both mswindows and msprinter devices.
15295         (initialize_font_instance): Added.
15296         (mswindows_initialize_font_instance): Use it.
15297         (msprinter_initialize_font_instance): Added.
15298
15299         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
15300         and implementation flags check.
15301         (redisplay_without_hooks): Changed the call to the above.
15302         (Fredraw_device): Ditto.
15303         (Fredisplay_device): Ditto.
15304
15305         * redisplay-msw.c (get_frame_dc): Implemented.
15306         (get_frame_compdc): Implemented.
15307         (many functions): Use the two functions above to get device
15308         contexts, ether for a window or a printer.
15309
15310 2000-01-21  Olivier Galibert  <galibert@pobox.com>
15311
15312         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
15313         initialization here.
15314         (init_symbols_once_early): Call it.
15315         * emacs.c (main_1): Call it.
15316         * symsinit.h: Declare it.
15317
15318 2000-01-19  Olivier Galibert  <galibert@pobox.com>
15319
15320         * alloc.c: Use a lrecord_header * in the backtrace instead of a
15321         Lisp_Object.
15322         (pdump_backtrace): Ditto.
15323         (pdump_register_object): Ditto.  Cleanup use of the pointers.
15324         (pdump_get_entry): Abort if trying to register a null pointer.
15325         (pdump_dump_data): Cleanup types when relocating.
15326         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
15327         (pdump_dump_rtables): Remove bad casts.
15328         (pdump_load): Cleanup relocation w.r.t union type.  Use a
15329         Lisp_Object instead of a EMACS_INT for the hashtable
15330         reorganization.
15331
15332 2000-01-20  Martin Buchholz  <martin@xemacs.org>
15333
15334         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
15335
15336         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
15337
15338         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
15339
15340         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
15341
15342 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15343
15344         * faces.h (FACE_STRIKETHRU_P): Added.
15345
15346         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
15347         of font variants.
15348
15349         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
15350         (mswindows_set_dc_font): New function, aware of font variants,
15351         separated from mswindows_update_dc.
15352
15353         * objects-msw.h (struct mswindows_font_instance_data): Added
15354         definition.
15355
15356         * objects-msw.c (mswindows_finalize_font_instance): Delete all
15357         cached fonts and the data structure.
15358         (mswindows_initialize_font_instance): Added creation of font data
15359         structure.
15360         (mswindows_print_font_instance): Print at least something.
15361         (mswindows_create_font_variant): Implemented.
15362         (mswindows_get_hfont): Implemented.
15363
15364 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
15365
15366         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
15367         prototyping problem with msvc.
15368
15369         * emacs.c (main_1): added syms_of_gui_mswindows() call
15370
15371         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
15372         syms_of_gui_mswindows() function
15373
15374         * symsinit.h: added the prototype for syms_of_gui_mswindows()
15375
15376 2000-01-18  Martin Buchholz <martin@xemacs.org>
15377
15378         * XEmacs 21.2.27 is released.
15379
15380 2000-01-18  Martin Buchholz  <martin@xemacs.org>
15381
15382         * glyphs-eimage.c (struct tiff_error_struct):
15383         (tiff_error_func):
15384         (tiff_warning_func):
15385         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
15386
15387         * unexmips.c:
15388         * unexhp9k3.c:
15389         * unexfreebsd.c:
15390         * unexec.c: Remove vestigial Lucid C code.
15391         * unexalpha.c:
15392         * unexaix.c:
15393         * termcap.c:
15394         * libsst.c: Ansify.
15395         Remove declarations of errno and strerror().
15396
15397         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
15398
15399         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
15400
15401 2000-01-16  Martin Buchholz  <martin@xemacs.org>
15402
15403         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
15404         Optimize.
15405
15406 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15407
15408         * md5.c:
15409         * file-coding.c:
15410         * file-coding.h:
15411         Change enum eol_type to eol_type_t.
15412
15413 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15414
15415         * gui.c (get_gui_callback): Check cons before accessing car.
15416
15417 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15418
15419         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
15420         (XSETSPECIFIER_TYPE): Ditto.
15421
15422 2000-01-17  Didier Verna  <didier@xemacs.org>
15423
15424         * redisplay.c (generate_fstring_runes): compute string size in
15425         characters, not bytes.
15426
15427 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
15428
15429         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
15430
15431 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
15432
15433         * print.c (print_error_message): Call print_prepare().
15434
15435 2000-01-14  Martin Buchholz  <martin@xemacs.org>
15436
15437         * .dbxrc: Renamed from dbxrc.
15438
15439         * events.c (event_to_character):
15440         Use `assert (foo)' instead of `if (!foo) abort()'
15441
15442         * .gdbinit (xtype): Add documentation.
15443         * .gdbinit (check-temacs): New function.
15444         * .gdbinit (check-xemacs): New function.
15445         * dbxrc (check-xemacs): New function.
15446         * dbxrc (check-xemacs): New function.
15447
15448 2000-01-14  Andy Piper  <andy@xemacs.org>
15449
15450         * glyphs-widget.c (widget_query_geometry): Make sure that we
15451         calculate default dimensions correctly.
15452
15453 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15454
15455         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
15456
15457         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
15458         pdump_wire'd variable.
15459
15460         * emacs.c: (main_1): Conditionalized calls to
15461         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
15462
15463 2000-01-13  Martin Buchholz  <martin@xemacs.org>
15464
15465         * window.c (Fset_window_configuration):
15466         * sysdep.c (_start):
15467         * input-method-motif.c (res):
15468         * event-Xt.c (Xt_process_to_emacs_event):
15469         Simple compiler warning fixes.
15470
15471         * bytecode.c (funcall_compiled_function): Use the original
15472         function symbol on the backtrace list in preference to the
15473         compiled_function object in error messages.
15474
15475 2000-01-13  Andy Piper  <andy@xemacs.org>
15476
15477         * glyphs-x.c (update_widget_face): Make sure we update the widget
15478         background as well as foreground.
15479
15480 2000-01-13  Andy Piper  <andy@xemacs.org>
15481
15482         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
15483         fields to subwindow.
15484         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
15485         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
15486         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
15487         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
15488
15489         * glyphs-widget.c (check_valid_tab_orientation): new function.
15490         (initialize_widget_image_instance): zero orientation and
15491         justification.
15492         (widget_instantiate): pick up orientation.
15493         (tab_control_query_geometry): return appropriate values for
15494         vertical tabs.
15495
15496         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
15497         appropriate creation flags for left, right and bottom tabs.
15498
15499         * s/cygwin32.h: add tab definitions.
15500
15501 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15502
15503         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
15504         frame upon hiding a subwindow.
15505         (mswindows_button_instantiate): Changed the push button style to
15506         BS_PUSHBUTTON.
15507         (mswindows_button_instantiate): Removed button BS_NOTIFY
15508         style.
15509         (mswindows_button_instantiate): Removed redundant check for
15510         a disabled gui item.
15511         (mswindows_button_instantiate): Made use of WS_TABSTOP
15512         consistent: "operable" controls (edit, button, tree, scroll) have
15513         this style, "display-only" ones (static, progress gauge) do
15514         not. This style is currently ignored by XEmacs though. Also,
15515         removed the WS_EX_CONTROLPARENT style - it is not for children,
15516         it is for their parents!
15517         (mswindows_edit_field_instantiate): Ditto.
15518         (mswindows_progress_gauge_instantiate): Ditto.
15519         (mswindows_tree_view_instantiate): Ditto.
15520         (mswindows_tab_control_instantiate): Ditto.
15521         (mswindows_scrollbar_instantiate): Ditto.
15522         (mswindows_combo_box_instantiate): Ditto.
15523         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
15524         style to the "clip" window.
15525         (mswindows_button_instantiate): Removed compilation warning by
15526         equally typing terms of the ?: operator.
15527
15528 2000-01-12  Didier Verna  <didier@xemacs.org>
15529
15530         * redisplay.c (generate_fstring_runes): new parameter holding the
15531         last modeline-format extent.
15532         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
15533         extent, fill the glyph block with it.
15534         (generate_fstring_runes): handle these parameters.
15535         (generate_formatted_string_db): ditto.
15536
15537         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
15538         glyphs'extents in the modeline.
15539
15540 1999-01-11  Mike Woolley  <mike@bulsara.com>
15541
15542         * ntheap.c: Reduced the reserved heap space from 1Gb down to
15543         256Mb, as a workaround for the non-starting problem many people
15544         have experienced.
15545
15546 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15547
15548         * console-tty.c (Fset_console_tty_output_coding_system):
15549         Force redrawing tty frame.
15550
15551 2000-01-10  Didier Verna  <didier@xemacs.org>
15552
15553         * redisplay.c (generate_fstring_runes): fix size computation bug.
15554
15555 2000-01-09  William M. Perry <wmperry@aventail.com>
15556
15557         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
15558
15559 2000-01-09  Andy Piper  <andy@xemacs.org>
15560
15561         * glyphs-msw.c: index -> i to avoid shadows.
15562         (xbm_create_bitmap_from_data): make static.
15563         (check_valid_string_or_int): deleted.
15564         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
15565
15566         * glyphs-x.c (x_update_subwindow): remove unused args.
15567
15568         * glyphs.c (glyph_image_instance): return the thing. Don't set the
15569         back pointer - this is done in allocate_image_instance.
15570         (query_string_font): return Qnil to make the compiler happy.
15571         (unmap_subwindow): set to ~0 to make the compiler happy.
15572         (glyph_query_geometry): comment out until used.
15573         (glyph_layout): ditto.
15574
15575 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
15576
15577         * insdel.c (signal_after_change): Remove extraneous unbind_to().