update.
[chise/xemacs-chise.git.1] / src / ChangeLog
1 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2
3         * chartab.c (Q_ucs): Deleted.
4         (Fput_char_attribute): Don't refer `->ucs'.
5         (Fdefine_char): Likewise.
6         (Ffind_char): Likewise.
7         (syms_of_chartab): Delete `->ucs'.
8
9 2003-04-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
10
11         * mule-charset.c (Qmap_cns11643_2): Renamed from
12         `Qchinese_cns11643_2'.
13         (syms_of_mule_charset): Add new symbol `=cns11643-2' instead of
14         `chinese-cns11643-2'.
15         (complex_vars_of_mule_charset): Rename `chinese-cns11643-2' to
16         `=cns11643-2'.
17
18 2003-04-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
19
20         * mule-charset.c (Qmap_cns11643_1): Renamed from
21         `Qchinese_cns11643_1'.
22         (syms_of_mule_charset): Add new symbol `=cns11643-1' instead of
23         `chinese-cns11643-1'.
24         (complex_vars_of_mule_charset): Rename `chinese-cns11643-1' to
25         `=cns11643-1'.
26
27 2003-04-24  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
28
29         * mule-charset.c (Qmap_gb12345): Renamed from `Qchinese_gb12345'.
30         (syms_of_mule_charset): Add new symbol `=gb12345' instead of
31         `chinese-gb12345'.
32         (complex_vars_of_mule_charset): Rename `chinese-gb12345' to
33         `=gb12345'.
34
35 2003-04-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
36
37         * mule-charset.c (Qmap_gb2312): Renamed from `Qchinese_gb2312'.
38         (syms_of_mule_charset): Add new symbol `=gb2312' instead of
39         `chinese-gb2312'.
40         (complex_vars_of_mule_charset): Rename `chinese-gb2312' to
41         `=gb2312'.
42
43 2003-04-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
44
45         * mule-charset.c (Qmap_big5): Renamed from `Qchinese_big5'.
46         (syms_of_mule_charset): Add new symbol `=big5' instead of
47         `chinese-big5'.
48         (complex_vars_of_mule_charset): Rename `chinese-big5' to `=big5'.
49
50 2003-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
51
52         * mule-charset.c (Qmap_ks_x1001): Renamed from `Qkorean_ksc5601'.
53         (syms_of_mule_charset): Add new symbol `=ks-x1001' instead of
54         `korean-ksc5601'.
55         (complex_vars_of_mule_charset): Rename `korean-ksc5601' to
56         `=ks-x1001'.
57
58 2003-04-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
59
60         * mule-charset.c (Qmap_jis_x0212): Renamed from
61         `Qjapanese_jisx0212'.
62         (syms_of_mule_charset): Add new symbol `=jis-x0212' instead of
63         `japanese-jisx0212'.
64         (complex_vars_of_mule_charset): Rename `japanese-jisx0212' to
65         `=jis-x0212'.
66
67 2003-04-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
68
69         * mule-charset.c (Qmap_jis_x0208_1983): Renamed from
70         `Qjapanese_jisx0208'.
71         (syms_of_mule_charset): Add new symbol `=jis-x0208-1983' instead
72         of `japanese-jisx0208'.
73         (complex_vars_of_mule_charset): Rename `japanese-jisx0208' to
74         `=jis-x0208-1983'.
75
76 2003-04-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
77
78         * mule-charset.c (Qmap_jis_x0208_1978): Renamed from
79         `Qjapanese_jisx0208_1978'.
80         (syms_of_mule_charset): Add new symbol `=jis-x0208-1978' instead
81         of `japanese-jisx0208-1978'.
82         (complex_vars_of_mule_charset): Rename `japanese-jisx0208-1978' to
83         `=jis-x0208-1978'.
84
85 2003-04-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
86
87         * chartab.c (decode_char_table_range): CHARTAB_RANGE_DEFAULT is
88         only for XEmacs CHISE.
89
90 2003-04-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
91
92         * char-ucs.h: Compact non-ISO-IR charset-ids.
93         (LEADING_BYTE_UCS): Changed to -177.
94         (LEADING_BYTE_CONTROL_1): Changed to -77.
95         (LEADING_BYTE_UCS_BMP): Changed to -176.
96         (LEADING_BYTE_JAPANESE_JISX0208_1990): Changed to -168.
97
98 2003-04-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
99
100         * mule-charset.c (Qiso_ir): New variable.
101         (Fmake_charset): Recognise new property `iso-ir'.
102         (syms_of_mule_charset): Add new symbol `iso-ir'.
103
104 2003-04-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
105
106         * char-ucs.h: Change charset-id of ISO-IR sets from ISO-IR-number
107         n to -n; charset-id of non ISO-IR sets are changed to positive
108         numbers.
109
110 2003-03-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
111
112         * text-coding.c (decode_add_er_char): Use XUINT instead of XINT
113         for &MCS-XXXXXXXX; values.
114
115 2003-03-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
116
117         * mule.c (Vxemacs_chise_version): Renamed from
118         `Vutf_2000_version'.
119         (vars_of_mule): Add new variable `xemacs-chise-version'; define
120         `utf-2000-version' as an alias for `xemacs-chise-version'.
121
122 2003-03-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
123
124         * mule-charset.c: Include <chise.h> when `CHISE' is defined.
125         (load_char_decoding_entry_maybe): Use libchise when `CHISE' is
126         defined.
127
128         * config.h.in (CHISE): New macro.
129
130 2003-03-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
131
132         * mule-charset.c (put_char_ccs_code_point): Refer `=ucs' instead
133         of `ucs'.
134         (Qmap_ucs): New variable.
135         (syms_of_mule_charset): Add new symbol `=ucs'.
136         (complex_vars_of_mule_charset): Rename `ucs' to `=ucs'.
137
138         * fns.c (ids_format_unit): Refer `=ucs' instead of `ucs'.
139         (simplify_char_spec): Likewise.
140
141         * chartab.c (Fdefine_char): Refer `=ucs' as same as `ucs'.
142
143         * char-ucs.h (Qmap_ucs): New extern variable.
144
145 2003-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
146
147         * mule-charset.c (Qmap_jis_x0208): Renamed from `Qjis_x0208'.
148         (Qmap_jis_x0208_1990): Renamed from `Qjapanese_jisx0208_1990';
149         don't define it when UTF2000 is not defined.
150         (syms_of_mule_charset): Modify for `Qmap_jis_x0208'; rename
151         `japanese-jisx0208-1990' to `=jis-x0208-1990'; don't define it
152         when UTF2000 is not defined.
153         (complex_vars_of_mule_charset): Modify for `Qmap_jis_x0208';
154         rename `japanese-jisx0208-1990' to `=jis-x0208-1990'.
155
156 2003-03-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
157
158         * char-ucs.h (LEADING_BYTE_UCS_GB): Deleted.
159
160         * mule-charset.c (Vcharset_ucs_gb): Deleted.
161         (Qucs_gb): Deleted.
162         (syms_of_mule_charset): Delete `ucs-gb'.
163         (complex_vars_of_mule_charset): Likewise.
164
165 2003-03-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
166
167         * char-ucs.h (LEADING_BYTE_UCS_CNS): Deleted.
168
169         * mule-charset.c (Vcharset_ucs_cns): Deleted.
170         (Qucs_cns): Deleted.
171         (syms_of_mule_charset): Delete `ucs-cns'.
172         (complex_vars_of_mule_charset): Likewise.
173
174 2003-03-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
175
176         * char-ucs.h (LEADING_BYTE_UCS_JIS): Deleted.
177
178         * mule-charset.c (Vcharset_ucs_jis): Deleted.
179         (Qucs_jis): Deleted.
180         (syms_of_mule_charset): Delete `ucs-jis'.
181         (complex_vars_of_mule_charset): Likewise.
182
183 2003-03-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
184
185         * char-ucs.h (LEADING_BYTE_UCS_KS): Deleted.
186
187         * mule-charset.c (Vcharset_ucs_ks): Deleted.
188         (Qucs_ks): Deleted.
189         (syms_of_mule_charset): Delete `ucs-ks'.
190         (complex_vars_of_mule_charset): Likewise.
191
192 2003-03-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
193
194         * mule-charset.c (Vcharset_ideograph_daikanwa_2): Deleted.
195         (Qideograph_daikanwa_2): Deleted.
196         (syms_of_mule_charset): Delete `ideograph-daikanwa-2'.
197         (complex_vars_of_mule_charset): Likewise.
198
199         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): Deleted.
200         (LEADING_BYTE_DAIKANWA_1): Deleted.
201         (LEADING_BYTE_DAIKANWA_2): Deleted.
202         (MIN_CHAR_DAIKANWA): Deleted.
203         (MAX_CHAR_DAIKANWA): Deleted.
204
205 2003-02-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
206
207         * char-ucs.h (LEADING_BYTE_DAIKANWA_3): Deleted.
208         (LEADING_BYTE_HANZIKU_{1..12}): Deleted.
209         ({MIN|MAX}_CHAR_HANZIKU_{1..12}): Deleted.
210
211         * mule-charset.c (Vcharset_ideograph_hanziku_{1..12}): Deleted.
212         (Vcharset_ideograph_daikanwa): Deleted.
213         (Qideograph_hanziku_{1..12}): Deleted.
214         (Qideograph_daikanwa): Deleted.
215         (encode_builtin_char_1): Don't use {MIN|MAX}_CHAR_DAIKANWA and
216         Vcharset_ideograph_daikanwa.
217         (syms_of_mule_charset): Delete `ideograph-daikanwa' and
218         `ideograph-hanziku-{1..12}'.
219         (complex_vars_of_mule_charset): Likewise.
220
221 2003-02-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
222
223         * char-ucs.h (LEADING_BYTE_GT_PJ_{1..11}): Deleted.
224
225         * mule-charset.c (Vcharset_ideograph_gt_pj_{1..11}): Deleted.
226         (Qideograph_gt_pj_{1..11}): Deleted.
227         (syms_of_mule_charset): Delete `ideograph-gt-pj-{1..11}'.
228         (complex_vars_of_mule_charset): Likewise.
229
230 2003-02-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
231
232         * mule-charset.c (Vcharset_ucs_big5): Deleted.
233         (Vcharset_ideograph_gt): Deleted.
234         (Qucs_big5): Deleted.
235         (Qideograph_gt): Deleted.
236         (syms_of_mule_charset): Delete symbol `ucs-big5' and
237         `ideograph-gt'.
238         (complex_vars_of_mule_charset): Delete coded-charset `ucs-big5'
239         and `ideograph-gt'.
240
241         * char-ucs.h (LEADING_BYTE_UCS_BIG5): Deleted.
242         (LEADING_BYTE_GT): Deleted.
243         (MIN_CHAR_GT): Deleted.
244         (MAX_CHAR_GT): Deleted.
245
246 2003-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
247
248         * chartab.c (Fput_char_attribute): Canonicalise charset-aliases.
249
250 2003-01-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
251
252         * chartab.c (save_uint8_byte_table): Add new argument `filter'.
253         (save_uint16_byte_table): Likewise.
254         (save_byte_table): Likewise; convert values by it.
255         (Fput_char_attribute): Don't use `char-refs-simplify-char-specs'
256         for `ideographic-structure'.
257         (Fsave_char_attribute_table): Use `char-refs-simplify-char-specs'
258         as the filter for `ideographic-structure'.
259
260 2003-01-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
261
262         * chartab.c (put_char_composition): New function.
263         (Fput_char_attribute): Use `put_char_composition'; use
264         `Fchar_refs_simplify_char_specs' for `ideographic-structure'.
265
266         * fns.c (simplify_char_spec): New function.
267         (char_ref_simplify_spec): New function.
268         (Fchar_refs_simplify_char_specs): New function.
269         (syms_of_fns): Add new builtin function
270         `char-refs-simplify-char-specs'.
271
272 2003-01-05  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
273
274         * mule-charset.c (Vcharset_ideograph_cbeta): Deleted.
275         (Qideograph_cbeta): Deleted.
276         (syms_of_mule_charset): Don't define `ideograph-cbeta'.
277         (complex_vars_of_mule_charset): Likewise.
278
279         * char-ucs.h (LEADING_BYTE_CBETA): Deleted.
280         (MIN_CHAR_CBETA): Comment out.
281         (MAX_CHAR_CBETA): Likewise.
282
283 2002-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
284
285         * mule-charset.c, chartab.h, casetab.c, char-ucs.h, chartab.c: Use
286         `HAVE_CHISE_CLIENT' instead of `HAVE_DATABASE' to indicate the
287         CHISE client feature.
288
289 2002-12-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
290
291         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.20.
292
293 2002-12-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
294
295         * mule-charset.c (charset_lookup_description_1): Use
296         `NUM_LEADING_BYTES' in UTF-2000.
297
298 2002-12-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
299
300         * char-ucs.h (GC_CHARSETP): Deleted.
301
302 2002-12-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
303
304         * char-ucs.h (MAX_CHAR_GT): Updated.
305
306 2002-12-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
307
308         * text-coding.c: Sync with XEmacs 21.4.10.
309
310 2002-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
311
312         * mule-charset.c (Vcharset_china3_jef): Deleted.
313         (Qchina3_jef): Deleted.
314         (syms_of_mule_charset): Don't define `china3-jef'.
315         (complex_vars_of_mule_charset): Likewise.
316
317         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Deleted.
318         (MIN_CHAR_CHINA3_JEF): Comment out.
319         (MAX_CHAR_CHINA3_JEF): Comment out.
320
321 2002-11-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
322
323         * mule-charset.c (Vcharset_ucs_gb): New variable.
324         (Qucs_gb): New variable.
325         (syms_of_mule_charset): Add new symbol `ucs-gb'.
326         (complex_vars_of_mule_charset): Add new coded-charset `ucs-gb'.
327
328         * char-ucs.h (LEADING_BYTE_UCS_GB): New macro.
329
330 2002-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
331
332         * mule-charset.c (charset_code_point): if a coded-charset has a
333         final-byte, don't inherit the builtin range of the mother CCS.
334
335 2002-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
336
337         * mule-charset.c (charset_code_point): Fix problem about
338         inheritance.
339
340 2002-11-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
341
342         * mule-charset.c (decode_builtin_char): Reorganized.
343
344 2002-10-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
345
346         * text-coding.c (char_encode_as_entity_reference): Modify for
347         `charset_code_point'.
348         (char_encode_shift_jis): Likewise.
349         (char_encode_big5): Likewise.
350         (char_encode_utf8): Likewise.
351         (char_encode_iso2022): Likewise.
352
353         * mule-charset.c (charset_code_point): Add new argument
354         `defined_only'.
355         (Fencode_char): Add new optional argument `defined_only'.
356
357         * chartab.c (put_char_table): Modify for `charset_code_point'.
358
359         * char-ucs.h (charset_code_point): Add new argument
360         `defined_only'.
361         (encode_char_1): Modify for `charset_code_point'.
362
363 2002-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
364
365         * mule-charset.c (complex_vars_of_mule_charset): Don't specify
366         `MIN_CHAR_THAI' and `MAX_CHAR_THAI' for `thai-tis620'.
367
368 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
369
370         * mule-charset.c (Vcharset_jis_x0208): New variable in UTF-2000.
371         (Qjis_x0208): Likewise.
372         (decode_builtin_char): Prefer XCHARSET_MAX_CODE(charset) than
373         XCHARSET_FINAL(charset).
374         (charset_code_point): Modify condition for final-byte based
375         builtin-chars.
376         (syms_of_mule_charset): Add new symbol `=jis-x0208' in UTF-2000.
377         (complex_vars_of_mule_charset): Add new coded-charset `=jis-x0208'
378         in UTF-2000; specify `=jis-x0208' as the mother of
379         `japanese-jisx0208-1978', `japanese-jisx0208' and
380         `japanese-jisx0208-1990' in UTF-2000.
381
382 2002-10-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
383
384         * char-ucs.h (LEADING_BYTE_JIS_X0208): New macro.
385
386 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
387
388         * text-coding.c (decode_coding_utf16): Support UTF-16.
389         (char_encode_utf16): Fixed.
390
391 2002-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
392
393         * text-coding.c (Qutf16): New variable in MULE.
394         (Fmake_coding_system): Accept `utf-16' as `type' in MULE.
395         (Fcoding_system_type): Add `utf-16' in MULE.
396         (struct detection_state): Add a structure for utf16 in MULE.
397         (detect_coding_type): Setup st->utf16.mask in MULE.
398         (mule_decode): Use `decode_coding_utf16' for `CODESYS_UTF16' in
399         MULE.
400         (reset_encoding_stream): Use `char_encode_utf16' and
401         `char_finish_utf16' for `CODESYS_UTF16' in MULE.
402         (detect_coding_utf16): New function [incomplete].
403         (decode_coding_utf16): New function [support only UCS-2].
404         (char_encode_utf16): New function.
405         (char_finish_utf16): New function.
406         (syms_of_file_coding): Add new symbol `utf-16'; setup
407         `coding_category_symbol[CODING_CATEGORY_UTF16]'.
408
409         * file-coding.h (enum coding_system_type): Add `CODESYS_UTF16' in
410         UTF-2000.
411         (enum coding_category_type): Add `CODING_CATEGORY_UTF16' in MULE.
412         (CODING_CATEGORY_UTF16_MASK): New macro in MULE.
413
414 2002-10-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
415
416         * chartab.c (put_char_table): When a charset is specified as a
417         range in UTF-2000, don't support builtin characters.
418
419 2002-09-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
420
421         * mule-charset.c (decode_defined_char): Don't refer external
422         database if Qunbound or Qnil are found.
423         (Fsave_charset_mapping_table): Don't define it if
424         HAVE_CHISE_CLIENT is not defined.
425         (Freset_charset_mapping_table): New function.
426         (load_char_decoding_entry_maybe): Store Qnil if a character is not
427         found in external database.
428         (syms_of_mule_charset): Don't define `save-charset-mapping-table'
429         if HAVE_CHISE_CLIENT is not defined; add new builtin function
430         `reset-charset-mapping-table' if HAVE_CHISE_CLIENT is defined.
431
432 2002-09-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
433
434         * text-coding.c (decode_coding_utf8): Check CCS is specified or
435         not.
436
437 2002-08-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
438
439         * chartab.h: Add extern declarations for Qdowncase, Qflippedcase,
440         Q_lowercase, Q_uppercase in UTF-2000.
441
442         * chartab.c (get_char_table): Add special code for the standard
443         case table to use character attribute `->downcase' and
444         `->uppercase' for case operations in UTF-2000.
445
446         * casetab.c (Qflippedcase): New variable in UTF-2000.
447         (Q_lowercase): Likewise.
448         (Q_uppercase): Likewise.
449         (syms_of_casetab): Add new symbols `flippedcase', `->lowercase'
450         and `->uppercase' in UTF-2000.
451         (complex_vars_of_casetab): Assign attribute name `downcase' to
452         downcase and CANON table of Vstandard_case_table in UTF-2000;
453         assign attribute name `flippedcase' to upcase and EQV table of
454         Vstandard_case_table in UTF-2000.
455
456 2002-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
457
458         * text-coding.c (decode_add_er_char): Support isolated-chars.
459         (char_encode_as_entity_reference): Likewise.
460
461 2002-08-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
462
463         * emacs.c (Vutf_2000_lisp_directory): New variable.
464         (Vconfigure_utf_2000_lisp_directory): Likewise.
465         (complex_vars_of_emacs): Add new variable
466         `utf-2000-lisp-directory' and `configure-utf-2000-lisp-directory'.
467
468 2002-08-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
469
470         * char-ucs.h (DECODE_CHAR): Delete special code for
471         `chinese-big5-1' and `chinese-big5-2'.
472
473         * mule-charset.c (Qbig5_1): New variable in UTF-2000.
474         (Qbig5_2): Likewise.
475         (decode_defined_char): Support CONVERSION_BIG5_1 and
476         CONVERSION_BIG5_2.
477         (decode_builtin_char): Likewise.
478         (charset_code_point): Likewise.
479         (Fmake_charset): Accept `big5-1' and `big5-2' as a value of
480         'conversion in UTF-2000.
481         (syms_of_mule_charset): Add new symbol `big5-1' and `big5-2'.
482         (complex_vars_of_mule_charset): Define `chinese-big5-1' and
483         `chinese-big5-2' as children of `chinese-big5'.
484
485         * char-ucs.h (CONVERSION_BIG5_1): New macro.
486         (CONVERSION_BIG5_2): New macro.
487
488 2002-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
489
490         * text-coding.c (char_encode_big5): Support entity-reference.
491
492 2002-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
493
494         * text-coding.c (char_encode_as_entity_reference): New function.
495         (char_encode_utf8): Use `char_encode_as_entity_reference'.
496
497 2002-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
498
499         * text-coding.c (decode_coding_big5): Support entity-reference
500         decoding feature.
501
502 2002-08-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
503
504         * text-coding.c (allocate_coding_system): Initialize initial
505         charsets for CODESYS_UTF8.
506         (Fmake_coding_system): Accept charset-g0, charset-g1 and
507         charset-g2 for CODESYS_UTF8.
508         (decode_coding_utf8): Use charset-g0.
509         (char_encode_utf8): Use charset-g0; use charset-g1 and charset-g2
510         to force variants to map to UCS.
511
512 2002-07-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
513
514         * text-coding.c (Qutf_8_mcs): New variable.
515         (syms_of_file_coding): Add new symbol `utf-8-mcs' in UTF-2000.
516         (complex_vars_of_file_coding): Define coding-system `utf-8-mcs'
517         instead of `utf-8' in UTF-2000.
518
519 2002-07-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
520
521         * mule-charset.c (charset_code_point): If CHARSET_CONVERSION is
522         CONVERSION_IDENTICAL, identical conversion is used even if a CCS
523         is ISO-2022 style; instead of it, CONVERSION_94, CONVERSION_96,
524         CONVERSION_94x94, CONVERSION_96x96, CONVERSION_94x94x94,
525         CONVERSION_96x96x96, CONVERSION_94x94x94x94 and
526         CONVERSION_96x96x96x96 are introduced.
527         (complex_vars_of_mule_charset): Specify CONVERSION_96 instead of
528         CONVERSION_IDENTICAL for thai-tis620; Specify CONVERSION_94x94
529         instead of CONVERSION_IDENTICAL for japanese-jisx0208-1990.
530
531         * char-ucs.h (CONVERSION_94): New macro.
532         (CONVERSION_96): New macro.
533         (CONVERSION_94x94): New macro.
534         (CONVERSION_96x96): New macro.
535         (CONVERSION_94x94x94): New macro.
536         (CONVERSION_96x96x96): New macro.
537         (CONVERSION_94x94x94x60): New macro.
538         (CONVERSION_94x94x94x94): New macro.
539         (CONVERSION_96x96x96x96): New macro.
540
541 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
542
543         * chartab.c (Vcharacter_variant_table): Deleted.
544         (Fchar_variants): Use character-attribute `->ucs-variants' instead
545         of `Vcharacter_variant_table'.
546         (Fput_char_attribute): Likewise.
547         (vars_of_chartab): Don't setup `Vcharacter_variant_table'.
548         (complex_vars_of_chartab): Likewise.
549
550 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
551
552         * lisp.h: Add an EXFUN for `Fchar_ref_p'.
553
554         * fns.c (Qideographic_structure): New variable.
555         (Qkeyword_char): New variable.
556         (ids_format_unit): New function.
557         (Fideographic_structure_to_ids): New function.
558         (syms_of_fns): Add new symbols `ideographic-structure' and
559         `:char'; add new builtin function `ideographic-structure-to-ids'.
560
561         * data.c (Fchar_ref_p): New function.
562         (syms_of_data): Add new builtin function `char-ref-p'.
563
564         * chartab.h: Add an EXFUN for `Ffind_char'.
565
566 2002-07-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
567
568         * text-coding.c (Vcharacter_composition_table): Deleted.
569         (COMPOSE_ADD_CHAR): Use the implementation for external-DB support
570         in every UTF-2000.
571
572         * chartab.c: Add EXFUN for `Fmap_char_attribute' in every
573         UTF-2000.
574         (Vcharacter_composition_table): Deleted.
575         (Fget_composite_char): Use the implementation for external-DB
576         support in every UTF-2000.
577         (Fput_char_attribute): Likewise.
578         (char_attribute_system_db_file): Don't define if external-DB
579         feature is not available.
580         (Fsave_char_attribute_table): Likewise.
581         (Fmount_char_attribute_table): Likewise.
582         (Fclose_char_attribute_table): Likewise.
583         (Freset_char_attribute_table): Likewise.
584         (Fload_char_attribute_table): Likewise.
585         (syms_of_chartab): Don't define `save-char-attribute-table',
586         `mount-char-attribute-table', `reset-char-attribute-table',
587         `close-char-attribute-table' and `load-char-attribute-table' if
588         external-DB feature is not available.
589         (vars_of_chartab): Don't setup `Vcharacter_composition_table'.
590
591 2002-07-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
592
593         * text-coding.c (Qcomposition): Add extern if external-DB feature
594         is supported.
595         (Vcharacter_composition_table): Don't add extern if external-DB
596         feature is supported.
597         (COMPOSE_ADD_CHAR): Modify for new data-representation of
598         character composition rule if external-DB feature is supported.
599
600         * chartab.c (Vcharacter_composition_table): Don't define if
601         external-DB feature is supported.
602         (Qcomposition): New variable.
603         (Fget_composite_char): New implementation for external-DB support.
604         (Fput_char_attribute): Use `composition' property of each
605         character instead of `Vcharacter_composition_table' to store
606         character-composition rules if external-DB feature is supported.
607         (syms_of_chartab): Add new symbol `composition'.
608         (vars_of_chartab): Don't setup `Vcharacter_composition_table' if
609         external-DB feature is supported.
610
611 2002-07-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
612
613         * chartab.c (Vchar_db_stingy_mode): New variable.
614         (load_char_attribute_maybe): Close database if
615         Vchar_db_stingy_mode is not NIL.
616         (Fload_char_attribute_table_map_function): Use
617         `get_char_id_table_0' instead of `get_char_id_table'.
618         (vars_of_chartab): Add new variable `char-db-stingy-mode'.
619
620         * chartab.h (get_char_id_table_0): New inline function.
621         (get_char_id_table): Use `get_char_id_table_0'.
622
623 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
624
625         * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
626         and `COMPOSE_ADD_CHAR'.
627         (decode_coding_iso2022): Use `decode_flush_er_chars'.
628
629 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
630
631         * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
632         instead of `DECODE_ADD_UCS_CHAR'.
633         (COMPOSE_ADD_CHAR): Likewise.
634
635 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
636
637         * text-coding.c (decode_flush_er_chars): New inline function.
638         (decode_add_er_char): New function.
639         (decode_coding_utf8): Use `decode_flush_er_chars' and
640         `decode_add_er_char'.
641
642 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
643
644         * text-coding.c (decode_coding_utf8): Flush for er_buf must be
645         done before `decode_output_utf8_partial_char'.
646
647         * mule-charset.c (complex_vars_of_mule_charset): Specify
648         `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
649         `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
650
651 2002-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
652
653         * mule-charset.c (decode_defined_char): New function; search
654         mother.
655         (decode_builtin_char): Don't search mother if
656         XCHARSET_MAX_CODE(charset) == 0.
657         (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
658         == 0 even if code >= XCHARSET_MAX_CODE(charset).
659         (Fdecode_char): Use `decode_defined_char' instead of
660         `DECODE_DEFINED_CHAR'.
661         (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
662         mother of `Vcharset_ucs_jis'.
663
664         * text-coding.c (decode_coding_big5): Use `decode_defined_char'
665         instead of `DECODE_DEFINED_CHAR'.
666
667         * char-ucs.h (decode_defined_char): Renamed from
668         `DECODE_DEFINED_CHAR'; changed to normal function.
669         (DECODE_CHAR): Use `decode_defined_char' instead of
670         `DECODE_DEFINED_CHAR'.
671
672         * lisp.h: Add `EXFUN' for `Fstring_to_number'.
673
674 2002-07-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
675
676         * char-ucs.h: Add `extern' for `Vcharset_ucs'.
677
678         * text-coding.c (Vcoded_charset_entity_reference_alist): New
679         variable.
680         (Quse_entity_reference): New variable.
681         (Qd): New variable.
682         (Qx): New variable.
683         (QX): New variable.
684         (coding_system_description): Add description for
685         `ccs_priority_list'.
686         (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
687         (allocate_coding_system): Initialize `ccs_priority_list' in
688         UTF-2000.
689         (Fmake_coding_system): Add description about
690         'use-entity-reference; setup CODING_SYSTEM_USE_ENTITY_REFERENCE
691         (codesys).
692         (Fcoding_system_property): Accept `disable-composition' and
693         `use-entity-reference' in UTF-2000.
694         (struct decoding_stream): Add new member `er_counter' and `er_buf'
695         in UTF-2000.
696         (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
697         (decode_coding_utf8): Decode entity-reference if
698         CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
699         (char_encode_utf8): Encode non-Unicode characters as
700         entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
701         (str->codesys).
702         (syms_of_file_coding): Add new symbols `use-entity-reference',
703         `d', `x', `X'.
704         (vars_of_file_coding): Add new variable
705         `coded-charset-entity-reference-alist'.
706         (complex_vars_of_file_coding): Declare `disable-composition' and
707         `use-entity-reference' to be coding-system-properties in UTF-2000.
708
709         * file-coding.h (struct Lisp_Coding_System): Add new member
710         `use_entity_reference' and `ccs_priority_list'.
711         (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
712         (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
713         (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
714
715 2002-07-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
716
717         * chartab.c (save_uint8_byte_table): Don't clear the table.
718         (save_uint16_byte_table): Likewise.
719         (save_byte_table): Likewise.
720         (Fmount_char_attribute_table): New function.
721         (syms_of_chartab): Add new builtin function
722         `mount-char-attribute-table'.
723
724 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
725
726         * mule-charset.c (Fsave_charset_mapping_table): Open database as
727         "w+" mode.
728         (load_char_decoding_entry_maybe): Open database as read-only mode.
729
730         * chartab.c (Fsave_char_attribute_table): Don't share `ct->db';
731         open database as "w+" mode.
732         (load_char_attribute_maybe): Open database as read-only mode.
733         (Fload_char_attribute_table): Likewise.
734
735 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
736
737         * chartab.c (mark_char_table): Don't refer `ct->db_file'.
738         (char_table_description): Delete member `db_file'.
739         (Fmake_char_table): Don't refer `ct->db_file'.
740         (Fcopy_char_table): Likewise.
741         (Fsave_char_attribute_table): Likewise.
742         (Fclose_char_attribute_table): Likewise.
743         (Freset_char_attribute_table): Likewise.
744         (load_char_attribute_maybe): Likewise.
745         (Fload_char_attribute_table): Likewise.
746
747         * chartab.h (struct Lisp_Char_Table): Delete member `db_file'.
748
749 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
750
751         * chartab.c: Add an EXFUN for `Fmap_char_attribute'.
752         (Fsave_char_attribute_table): Don't check `ct->db_file' if
753         `ct->db' is living.
754         (load_char_attribute_maybe): Likewise.
755         (Fload_char_attribute_table): Likewise.
756
757 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
758
759         * chartab.c (Fclose_char_attribute_table): Set Qnil on
760         `ct->db_file' unconditionally.
761
762 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
763
764         * chartab.c (mark_char_table): Mark `ct->db_file' and `ct->db' in
765         UTF-2000.
766         (char_table_description): Add description for `db_file' and `db'
767         in UTF-2000.
768         (Fmake_char_table): Initialize `ct->db_file' and `ct->db' in
769         UTF-2000.
770         (Fcopy_char_table): Copy `ct->db_file' and `ct->db' in UTF-2000.
771         (Fsave_char_attribute_table): Use `ct->db_file' and `ct->db'.
772         (Fclose_char_attribute_table): New function.
773         (Freset_char_attribute_table): Reset `ct->db_file' and `ct->db'.
774         (load_char_attribute_maybe): Change interface; use `cit->db_file'
775         and `cit->db'.
776         (Fload_char_attribute_table): Use `ct->db_file' and `ct->db'.
777         (syms_of_chartab): Add new builtin function
778         `Fclose_char_attribute_table'.
779
780 2002-06-28  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
781
782         * chartab.h (struct Lisp_Char_Table): Add new member `db_file' and
783         `db' in UTF-2000.
784         (load_char_attribute_maybe): Change interface.
785         (get_char_id_table): Modify for `load_char_attribute_maybe'.
786
787 2002-06-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
788
789         * database.h: Add an EXFUN for `Fdatabase_live_p'.
790
791 2002-04-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
792
793         * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
794         instead of `DECODE_CHAR' for mother; don't use special code for
795         chinese-big5 to use code space of chinese-big5-1 and
796         chinese-big5-2.
797         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
798         `MAX_CHAR_BIG5_CDP' for chinese-big5.
799
800         * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
801         (MAX_CHAR_BIG5_CDP): Revival.
802
803 2002-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
804
805         * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
806         the XLFD registry-encoding name of `chinese-big5'.
807
808 2002-04-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
809
810         * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
811         (Qchinese_big5_cdp): Deleted.
812         (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
813         (complex_vars_of_mule_charset): Delete coded-charset
814         `chinese-big5-cdp'.
815
816         * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
817         (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
818         `CHARSET_ID_OFFSET - n' for private CCS.
819         (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
820         (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
821         of `MIN_LEADING_BYTE'.
822         (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
823         `(CHARSET_ID_OFFSET - 97)'.
824         (MIN_CHAR_BIG5_CDP): Deleted.
825         (MAX_CHAR_BIG5_CDP): Deleted.
826
827 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
828
829         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.19.
830
831 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
832
833         * mule.c (Vutf_2000_version): New variable [moved from chartab.c].
834         (vars_of_mule): Add new variable `utf-2000-version' [moved from
835         chartab.c].
836
837         * chartab.c (Vutf_2000_version): Moved to mule.c.
838         (vars_of_chartab): Move code about `utf-2000-version' into mule.c.
839
840 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
841
842         * mule-charset.c (load_char_decoding_entry_maybe): Don't define it
843         when HAVE_CHISE_CLIENT is not defined.
844
845         * mule.c (vars_of_mule): Provide feature `chise' when
846         HAVE_CHISE_CLIENT is defined.
847
848 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
849
850         * config.h.in (UTF2000): Add comment.
851         (HAVE_CHISE_CLIENT): New macro.
852
853 2002-02-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
854
855         * chartab.c (Fchar_variants): Check Vcharacter_variant_table is
856         CONSP.
857         (Fput_char_attribute): Likewise.
858         (char_attribute_system_db_file): Encode file-name of attribute.
859         (vars_of_chartab): Set Qunbound into Vcharacter_variant_table as
860         the initial value.
861
862 2002-02-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
863
864         * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
865         (Fsave_charset_mapping_table): Use
866         `char_attribute_system_db_file'.
867         (load_char_decoding_entry_maybe): Likewise.
868
869         * chartab.h (Qsystem_char_id): New external variable.
870         (char_attribute_system_db_file): New prototype.
871
872         * chartab.c (Qsystem_char_id): New variable in UTF-2000.
873         (char_attribute_system_db_file): New function.
874         (Fsave_char_attribute_table): Use `char_attribute_system_db_file'.
875         (Freset_char_attribute_table): Likewise.
876         (load_char_attribute_maybe): Likewise.
877         (Fload_char_attribute_table): Likewise.
878         (syms_of_chartab): Add new symbol `system-char-id'.
879
880 2002-02-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
881
882         * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
883         `XCHARSET_GRAPHIC(ccs)'.
884
885 2002-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
886
887         * mule-charset.c (Fsave_charset_mapping_table): Fixed.
888
889 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
890
891         * chartab.c (Q_ucs_variants): New variable.
892         (syms_of_chartab): Add new symbol `->ucs-variants'.
893         (complex_vars_of_chartab): Set `Vcharacter_variant_table' on
894         `Vchar_attribute_hash_table' as the value of `->ucs-variants'; set
895         `->ucs-variants' on `XCHAR_TABLE_NAME (Vcharacter_variant_table)'.
896
897         * mule-charset.c (load_char_decoding_entry_maybe): New function.
898
899         * char-ucs.h (load_char_decoding_entry_maybe): New prototype when
900         `HAVE_DATABASE' is defined.
901         (DECODE_DEFINED_CHAR): Use `load_char_decoding_entry_maybe' when
902         `HAVE_DATABASE' is defined.
903
904 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
905
906         * chartab.c (Fsave_char_attribute_table): Don't clear internal
907         attribute-table.
908         (Freset_char_attribute_table): New function.
909         (syms_of_chartab): Add new builtin function
910         `reset-char-attribute-table'.
911
912 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
913
914         * chartab.c (load_char_attribute_maybe): Don't make directories.
915
916 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
917
918         * char-ucs.h: Add EXFUN for `Fmake_directory_internal'.
919
920         * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
921         for decoding-table.
922
923 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
924
925         * mule-charset.c (Fsave_charset_mapping_table): Use
926         `XCHARSET_BYTE_SIZE' instead of `XCHARSET_CHARS'.
927
928         * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
929         instead of `XCHARSET_CHARS'.
930
931 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
932
933         * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
934         (XCHARSET_BYTE_SIZE): Likewise.
935
936         * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
937         mule-charset.c].
938         (XCHARSET_BYTE_SIZE): Likewise.
939
940 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
941
942         * chartab.c (Fput_char_attribute): Use exec-directory instead of
943         data-directory to store database.
944         (Fsave_char_attribute_table): Likewise.
945         (load_char_attribute_maybe): Likewise.
946         (Fload_char_attribute_table): Likewise.
947
948 2002-02-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
949
950         * mule-charset.c (Fsave_charset_mapping_table): New function.
951         (syms_of_mule_charset): Add new builtin function
952         `save-charset-mapping-table'.
953
954 2002-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
955
956         * char-ucs.h (decoding_table_check_elements): Delete prototype.
957         (get_ccs_octet_table): New inline function.
958         (put_ccs_octet_table): Likewise.
959         (decoding_table_put_char): Use `get_ccs_octet_table' and
960         `put_ccs_octet_table'.
961         (decoding_table_remove_char): Use `decoding_table_put_char'.
962         (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
963
964         * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
965         into encoding_table.
966         (make_charset): Use Qunbound instead Qnil as initial value of
967         decoding_table.
968
969 2002-02-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
970
971         * chartab.c (map_over_uint8_byte_table): Set Qunbound if an
972         element is Qunloaded.
973         (map_over_uint16_byte_table): Likewise.
974         (map_over_byte_table): Likewise.
975         (map_char_table): Likewise for CHARTAB_RANGE_ALL in UTF-2000; when
976         CHARTAB_RANGE_CHARSET is specified in UTF-2000 with external
977         database support, load encoding-table of the specified
978         coded-charset if it is not loaded yet.
979         (save_uint8_byte_table): New function of UTF-2000 with external
980         database support.
981         (save_uint16_byte_table): Likewise.
982         (save_byte_table): Likewise.
983         (Fput_char_attribute): Don't store value into external database
984         even if the external database feature is supported in UTF-2000;
985         set `attribute' as name of char-table if the external database
986         feature is supported.
987         (Fsave_char_attribute_table): New function in UTF-2000.
988         (syms_of_chartab): Add new builtin function
989         `save-char-attribute-table' in UTF-2000.
990
991 2002-02-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
992
993         * chartab.c (char_attribute_table_to_put): New variable in
994         UTF-2000.
995         (Qput_char_table_map_function): Likewise.
996         (value_to_put): Likewise.
997         (Fput_char_table_map_function): New function in UTF-2000.
998         (put_char_table): Use `Fmap_char_attribute' for
999         CHARTAB_RANGE_CHARSET in UTF-2000.
1000         (Fput_char_attribute): Store symbol instead of string in
1001         `XCHAR_TABLE_NAME (table)'.
1002         (load_char_attribute_maybe): Likewise.
1003         (syms_of_chartab): Add new symbol/function
1004         `put-char-table-map-function'.
1005
1006 2002-01-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1007
1008         * database.h: Add new EXFUN for `Fmap_database'.
1009
1010         * database.c (Fmap_database): Renamed from `Fmapdatabase'.
1011         (syms_of_database): Likewise.
1012
1013         * chartab.h (struct Lisp_Char_Table): Add new member `unloaded' in
1014         UTF-2000.
1015         (CHAR_TABLE_UNLOADED): New macro of UTF-2000.
1016         (XCHAR_TABLE_UNLOADED): Likewise.
1017
1018         * chartab.c (fill_char_table): Initialize `ct->unloaded'.
1019         (Fput_char_attribute): Set XCHAR_TABLE_UNLOADED(table) if
1020         HAVE_DATABASE is defined.
1021         (char_attribute_table_to_load): New variable of UTF-2000 with
1022         external database support.
1023         (Qload_char_attribute_table_map_function): Likewise.
1024         (Fload_char_attribute_table_map_function): New function of
1025         UTF-2000 with external database support.
1026         (Fload_char_attribute_table): New function of UTF-2000.
1027         (Fmap_char_attribute): Call Fload_char_attribute_table if
1028         CHAR_TABLE_UNLOADED(ct) is set when HAVE_DATABASE is defined.
1029         (syms_of_chartab): Add new symbol and function
1030         `load-char-attribute-table-map-function' in UTF-2000 with external
1031         database support; add new function `load-char-attribute-table' in
1032         UTF-2000.
1033
1034 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1035
1036         * chartab.h (load_char_attribute_maybe): New prototype for
1037         UTF-2000 with DATABASE support.
1038         (get_char_id_table): Use `load_char_attribute_maybe' if
1039         HAVE_DATABASE is defined.
1040
1041         * chartab.c (load_char_attribute_maybe): New function in UTF-2000
1042         with DATABASE support.
1043
1044 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1045
1046         * chartab.c (Fput_char_attribute): Use S-expression as key of
1047         external database.
1048
1049         * chartab.h (get_char_id_table): Use S-expression as key of
1050         external database.
1051
1052 2002-01-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1053
1054         * chartab.c (map_over_uint8_byte_table): Add new argument `root';
1055         if an element is not loaded, load the corresponding attributes
1056         from an external database.
1057         (map_over_uint16_byte_table): Likewise.
1058         (map_over_byte_table): Likewise.
1059         (map_char_table): Modify for `map_over_uint8_byte_table',
1060         `map_over_uint16_byte_table' and `map_over_byte_table'; if an
1061         element is not loaded, load the corresponding attributes from an
1062         external database.
1063         (Fput_char_attribute): Change initial values to Qunloaded.
1064
1065         * chartab.h (get_char_id_table): If a character attribute is not
1066         loaded and the attribute value is not found in an external
1067         database, store Qunbound as the attribute value.
1068
1069 2002-01-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1070
1071         * chartab.c (BT_UINT8_unloaded): New macro.
1072         (UINT8_VALUE_P): Accept Qunloaded.
1073         (UINT8_ENCODE): Likewise.
1074         (UINT8_DECODE): Likewise.
1075         (BT_UINT16_unloaded): New macro.
1076         (UINT16_VALUE_P): Accept Qunloaded.
1077         (UINT16_ENCODE): Likewise.
1078         (UINT16_DECODE): Likewise.
1079         (UINT8_TO_UINT16): Convert BT_UINT8_unloaded into
1080         BT_UINT16_unloaded.
1081         (mark_char_table): Mark `ct->name' in UTF-2000.
1082         (char_table_description): Add `name' in UTF-2000.
1083         (Fmake_char_table): Initialize `ct->name'.
1084         (Fcopy_char_table): Copy `ct->name'.
1085         (Fput_char_attribute): Store value into an external database if
1086         HAVE_DATABASE is defined.
1087
1088         * chartab.h (struct Lisp_Char_Table): Add new member `name' in
1089         UTF-2000.
1090         (CHAR_TABLE_NAME): New macro in UTF-2000.
1091         (XCHAR_TABLE_NAME): New macro in UTF-2000.
1092         (get_char_id_table): Try to read an external database if Qunloaded
1093         is stored in a table.
1094
1095         * symbols.c (init_symbols_once_early): Assign '#<unloaded> into
1096         Qunloaded.
1097
1098 2002-01-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1099
1100         * database.h: Add EXFUN definitions for Fopen_database,
1101         Fput_database, Fget_database and Fclose_database.
1102
1103         * data.c (Qunloaded): New variable in UTF-2000.
1104
1105         * lisp.h (Qunloaded): New variable in UTF-2000.
1106
1107 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1108
1109         * mule-charset.c (put_char_ccs_code_point): Modify for
1110         `decoding_table_remove_char' and `decoding_table_put_char'.
1111         (remove_char_ccs): Modify for `decoding_table_remove_char'.
1112
1113         * char-ucs.h (decoding_table_remove_char): Change arguments to
1114         hide decoding_table vector.
1115         (decoding_table_put_char): Likewise.
1116
1117 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1118
1119         * mule-charset.c (decoding_table_remove_char): Moved to
1120         char-ucs.h.
1121         (decoding_table_put_char): Likewise.
1122
1123         * char-ucs.h (decoding_table_check_elements): New prototype [moved
1124         from mule-charset.c].
1125         (decoding_table_remove_char): New inline function [moved from
1126         mule-charset.c].
1127         (decoding_table_put_char): Likewise.
1128
1129 2002-01-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1130
1131         * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
1132         extension.
1133
1134 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1135
1136         * mule-charset.c (decode_builtin_char): Support mother charsets.
1137
1138 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1139
1140         * mule-charset.c (Q94x94x60): New variable.
1141         (charset_code_point): Support conversion `94x94x60'.
1142         (Fmake_charset): Likewise.
1143         (syms_of_mule_charset): Add new symbol `94x94x60'.
1144
1145         * char-ucs.h (CONVERSION_94x94x60): New macro.
1146
1147 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1148
1149         * mule-charset.c (charset_code_point): Unify code about
1150         `code-offset'.
1151
1152 2001-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1153
1154         * mule-charset.c (charset_code_point): Merge code about builtin
1155         characters into code about mother charsets; don't use
1156         `range_charset_code_point'.
1157         (range_charset_code_point): Deleted.
1158
1159 2001-12-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1160
1161         * mule-charset.c (Qcode_offset): New variable.
1162         (Fmake_charset): Use `XUINT' to get value of `min-code' and
1163         `max-code'; accept new property `code-offset'.
1164         (syms_of_mule_charset): Add new symbol `code-offset'.
1165
1166 2001-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1167
1168         * mule-charset.c (range_charset_code_point): Fixed.
1169
1170 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1171
1172         * mule-charset.c (decode_builtin_char): Change semantics of
1173         code-offset of coded-charset.
1174         (charset_code_point): Likewise.
1175         (range_charset_code_point): Likewise.
1176         (complex_vars_of_mule_charset): Modify for the change.
1177
1178 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1179
1180         * mule-charset.c (Fencode_char): Reverse arguments.
1181
1182         * mule-charset.c (charset_code_point): Fixed.
1183
1184 2001-12-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1185
1186         * mule-charset.c (Vcharset_mojikyo): Deleted.
1187         (Vcharset_mojikyo_2022_1): Deleted.
1188         (Vcharset_mojikyo_pj_{1..21}): Deleted.
1189         (Qmin_code): New variable in UTF-2000.
1190         (Qmax_code): Likewise.
1191         (Qmother): Likewise.
1192         (Qconversion): Likewise.
1193         (Q94x60): Likewise.
1194         (Qmojikyo): Deleted.
1195         (Qmojikyo_2022_1): Deleted.
1196         (Qmojikyo_pj_{1..22}): Deleted.
1197         (mark_charset): Mark `cs->mother'.
1198         (charset_description): Add description for `mother'.
1199         (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
1200         new arguments `mother' and `conversion'; use
1201         `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
1202         (charset_code_point): Moved from char-ucs.h; support `mother'
1203         charset feature.
1204         (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
1205         of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
1206         (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
1207         UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
1208         allow 2 as the value of `graphic' in UTF-2000; add new properties
1209         `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
1210         require `final' in UTF-2000; modify for `make_charset'.
1211         (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
1212         instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
1213         (Fcharset_property): Support `mother', `min-code' and `max-code'.
1214         (Fencode_char): New function.
1215         (syms_of_mule_charset): Add new builtin function `encode-char' in
1216         UTF-2000; add new symbols `min-code', `max-code', `mother',
1217         `conversion' and `94x60'; delete symbols `mojikyo',
1218         `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
1219         (complex_vars_of_mule_charset): Modify for `make_charset' change;
1220         delete coded-charsets `mojikyo', `mojikyo-2022-1' and
1221         `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
1222
1223         * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
1224         `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
1225
1226         * char-ucs.h (Vcharset_mojikyo): Deleted.
1227         (Vcharset_mojikyo_2022_1): Deleted.
1228         (LEADING_BYTE_MOJIKYO): Deleted.
1229         (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
1230         (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
1231         (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
1232         (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
1233         add new member `mother'; add new member `conversion'.
1234         (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
1235         (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
1236         (CHARSET_MOTHER): New macro.
1237         (CHARSET_CONVERSION): New macro.
1238         (CONVERSION_IDENTICAL): New macro.
1239         (CONVERSION_94x60): New macro.
1240         (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
1241         (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
1242         (XCHARSET_MOTHER): New macro.
1243         (XCHARSET_CONVERSION): New macro.
1244         (MIN_CHAR_MOJIKYO): Deleted.
1245         (MAX_CHAR_MOJIKYO): Deleted.
1246         (DECODE_MOJIKYO_2022): Deleted.
1247         (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
1248         (charset_code_point): Changed to non-inline function.
1249         (encode_char_1): Use `charset_code_point'.
1250         (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
1251
1252 2001-12-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1253
1254         * lread.c (read_compiled_function): Fix prototype.
1255         (read_vector): Likewise.
1256
1257 2001-12-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1258
1259         * lrecord.h (struct lrecord_header): Delete `older'.
1260         (set_lheader_implementation): Delete code for `older'.
1261         (set_lheader_older_implementation): Deleted.
1262         (enum lrecord_type): Delete `lrecord_type_char_id_table'.
1263         (OLDER_RECORD_P): Deleted.
1264         (OLDER_RECORD_HEADER_P): Deleted.
1265         (alloc_older_lcrecord): Deleted.
1266         (alloc_older_lcrecord_type): Deleted.
1267
1268         * alloc.c (all_older_lcrecords): Deleted.
1269         (alloc_older_lcrecord): Deleted.
1270         (disksave_object_finalization_1): Delete code for older objects.
1271         (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
1272         (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
1273
1274 2001-12-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1275
1276         * mule-charset.c (decoding_table_put_char): Use `make_vector'
1277         instead of `make_older_vector'.
1278         (put_char_ccs_code_point): Likewise.
1279         (mark_charset): Mark `cs->decoding_table'.
1280         (Fset_charset_mapping_table): Don't use `make_vector_newer'.
1281
1282         * lisp.h (make_older_vector): Deleted.
1283         (make_vector_newer): Deleted.
1284
1285         * config.h.in (HAVE_GGC): Deleted.
1286
1287         * alloc.c (make_older_vector): Deleted.
1288         (make_vector_newer_1): Deleted.
1289         (make_vector_newer): Deleted.
1290
1291 2001-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1292
1293         * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
1294         (Qideograph_daikanwa_2): New variable.
1295         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
1296         (complex_vars_of_mule_charset): Add new coded-charset
1297         `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
1298         `LEADING_BYTE_DAIKANWA'.
1299
1300         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
1301         (LEADING_BYTE_DAIKANWA_1): New macro.
1302         (LEADING_BYTE_DAIKANWA_2): New macro.
1303         (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
1304
1305 2001-12-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1306
1307         * mule-charset.c (complex_vars_of_mule_charset): Change
1308         DOC-strings and registry of `ideograph-daikanwa'; now it indicates
1309         the second revised version.
1310
1311 2001-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1312
1313         * mule-charset.c (Vcharset_ucs_smp): New variable.
1314         (Vcharset_ucs_sip): New variable.
1315         (Qucs_smp): New variable.
1316         (Qucs_sip): New variable.
1317         (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
1318         MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
1319         (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
1320         (complex_vars_of_mule_charset): Modify middle-DOC and registry of
1321         `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
1322         charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
1323
1324         * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
1325         (LEADING_BYTE_UCS_SIP): New macro.
1326         (MIN_CHAR_SMP): New macro.
1327         (MAX_CHAR_SMP): New macro.
1328         (MIN_CHAR_SIP): New macro.
1329         (MAX_CHAR_SIP): New macro.
1330
1331 2001-11-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
1332
1333         * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
1334         utf-2000.
1335
1336 2001-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1337
1338         * mule-charset.c (put_char_ccs_code_point): Return canonicalized
1339         value; don't store value into `encoding_table' of `Lisp_Charset'.
1340         (mark_charset): `encoding_table' was deleted.
1341         (charset_description): Likewise.
1342         (make_charset): Likewise.
1343         (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
1344         `put_char_ccs_code_point'.
1345
1346         * chartab.h (Fput_char_attribute): New EXFUN.
1347
1348         * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
1349         is unified with normal symbol space.
1350         (Fget_char_attribute): Likewise.
1351         (Fput_char_attribute): Likewise; behavior of
1352         `put_char_ccs_code_point' is changed.
1353
1354         * char-ucs.h: Include "elhash.h".
1355         (Vchar_attribute_hash_table): New external variable.
1356         (struct Lisp_Charset): Delete `encoding_table'.
1357         (CHARSET_ENCODING_TABLE): New implementation; refer
1358         `Vchar_attribute_hash_table' instead of `encoding_table' of struct
1359         `Lisp_Charset'.
1360
1361 2001-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1362
1363         * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
1364         (cs) == 0.
1365
1366 2001-11-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1367
1368         * text-coding.c (char_encode_big5): Prefer charset-g1 than
1369         `chinese-big5'.
1370
1371 2001-11-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1372
1373         * chartab.c (uint8_byte_table_description): New constant.
1374         (uint8-byte-table): Use `uint8_byte_table_description'.
1375         (uint16_byte_table_description): New constant.
1376         (uint16-byte-table): Use `uint16_byte_table_description'.
1377
1378 2001-10-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1379
1380         * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
1381         range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
1382
1383 2001-10-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1384
1385         * mule-charset.c (Vcharset_ucs_ks): New variable.
1386         (Qucs_ks): New variable.
1387         (syms_of_mule_charset): Add new symbol `ucs-ks'.
1388         (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
1389
1390         * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
1391
1392 2001-10-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1393
1394         * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
1395         (Fdecode_char): Likewise.
1396
1397         * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
1398         chartab.h.
1399         (Fdefine_char): Modify for Fdecode_char.
1400         (Ffind_char): Likewise.
1401
1402         * mule-charset.c (Fdecode_char): Add new optional argument
1403         `defined-only'.
1404         (Fdecode_builtin_char): Modify for `Fdecode_char'.
1405
1406 2001-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1407
1408         * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
1409         -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
1410         (allocate_coding_system): Initialize initial-charsets of
1411         CODESYS_BIG5 in XEmacs UTF-2000.
1412         (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
1413         CODESYS_BIG5 in XEmacs UTF-2000.
1414         (decode_coding_big5): Use initial-charset-g0 and -g1 of
1415         CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
1416
1417         * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
1418         variables.
1419         (Qideograph_hanziku_{1 .. 12}): Likewise.
1420         (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
1421         .. 12}'.
1422         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
1423         `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
1424         `ideograph-hanziku-{1 .. 12}'.
1425
1426         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
1427         (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
1428         ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
1429         ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
1430         (DECODE_DEFINED_CHAR): New inline function.
1431         (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
1432
1433 2001-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1434
1435         * mule-charset.c (Vcharset_china3_jef): Renamed from
1436         `Vcharset_japanese_jef_china3'.
1437         (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
1438         (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
1439         `{MIN|MAX}_CHAR_JEF_CHINA3'..
1440         (syms_of_mule_charset): Rename `china3-jef' from
1441         `japanese-jef-china3'.
1442         (complex_vars_of_mule_charset): Likewise; rename
1443         `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
1444
1445         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
1446         `LEADING_BYTE_JEF_CHINA3'.
1447         (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
1448         (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
1449
1450 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1451
1452         * mule-charset.c (encode_builtin_char_1): Comment out special code
1453         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
1454
1455         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
1456         (MAX_CHAR_MOJIKYO_0): Comment out.
1457         (MIN_CHAR_CBETA): Changed to 0x00E20000.
1458         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
1459         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
1460         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
1461
1462 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1463
1464         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
1465         (Qideograph_cbeta): New variable.
1466         (encode_builtin_char_1): Comment out special code for
1467         coded-charset `mojikyo' and `japanese-jef-china3'.
1468         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
1469         (complex_vars_of_mule_charset): Add new coded-charset
1470         `ideograph-cbeta'.
1471
1472         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
1473         (MIN_CHAR_CBETA): New macro.
1474         (MAX_CHAR_CBETA): New macro.
1475
1476 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1477
1478         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
1479         (LEADING_BYTE_JEF_CHINA3): New macro.
1480         (MIN_CHAR_JEF_CHINA3): New macro.
1481         (MAX_CHAR_JEF_CHINA3): Likewise.
1482         (DECODE_CHAR): Fixed.
1483
1484 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1485
1486         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
1487         (Qjapanese_jef_china3): New variable.
1488         (encode_builtin_char_1): Support `japanese-jef-china3'.
1489         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
1490         (complex_vars_of_mule_charset): Add new coded-charset
1491         `japanese-jef-china3'.
1492
1493 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1494
1495         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
1496         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
1497         94^4, 96^3, 96^4, 128^n and 256^n set.
1498         (put_char_table): Use `XCHARSET_CELL_RANGE'.
1499         (map_char_table): Likewise.
1500
1501 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1502
1503         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
1504         UTF-2000.
1505
1506 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1507
1508         * chartab.h (get_char_id_table): New inline function.
1509
1510         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
1511         function.
1512
1513 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1514
1515         * chartab.h (decode_char_table_range): New prototype in XEmacs
1516         UTF-2000.
1517         (put_char_id_table): New inline function in XEmacs UTF-2000.
1518
1519         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
1520         function.
1521         (decode_char_table_range): Delete static declaration in XEmacs
1522         UTF-2000.
1523
1524 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1525
1526         * chartab.c (put_char_id_table): Use `put_char_table'.
1527
1528 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1529
1530         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
1531         (map_over_uint16_byte_table): Likewise.
1532         (map_over_byte_table): Likewise.
1533         (map_char_table): Modify for `map_over_uint8_byte_table',
1534         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
1535         UTF-2000.
1536
1537 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1538
1539         * chartab.c (struct map_char_table_for_charset_arg): New
1540         structure.
1541         (map_char_table_for_charset_fun): New function.
1542         (map_char_table): Use `map_char_table' for encoding_table of
1543         `range->charset'.
1544
1545 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1546
1547         * chartab.c (map_char_table): Check a character is found in
1548         range->charset instead of non default value is defined in
1549         char-table when range is CHARTAB_RANGE_ROW.
1550
1551 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1552
1553         * chartab.c (map_char_id_table): Deleted.
1554         (Fmap_char_attribute): Use `map_char_table' instead of
1555         `map_char_id_table'.
1556
1557 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1558
1559         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
1560         UTF-2000.
1561         (update_syntax_table): Deleted in XEmacs UTF-2000.
1562
1563         * syntax.c (find_defun_start): Use `syntax_table' instead of
1564         `mirror_syntax_table' in XEmacs UTF-2000.
1565         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
1566         UTF-2000.
1567         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
1568         XEmacs UTF-2000.
1569         (Fmatching_paren): Likewise.
1570         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
1571         in XEmacs UTF-2000.
1572         (find_start_of_comment): Likewise.
1573         (find_end_of_comment): Likewise.
1574         (Fforward_comment): Likewise.
1575         (scan_lists): Likewise.
1576         (char_quoted): Likewise.
1577         (Fbackward_prefix_chars): Likewise.
1578         (scan_sexps_forward): Likewise.
1579         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
1580         (update_syntax_table): Likewise.
1581
1582         * search.c (skip_chars): Use `syntax_table' instead of
1583         `mirror_syntax_table' in XEmacs UTF-2000.
1584         (wordify): Likewise.
1585         (Freplace_match): Likewise.
1586
1587         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
1588         `mirror_syntax_table' in XEmacs UTF-2000.
1589         (WORDCHAR_P_UNSAFE): Likewise.
1590         (re_match_2_internal): Likewise.
1591
1592         * font-lock.c (find_context): Use `buf->syntax_table' instead of
1593         `buf->mirror_syntax_table' in XEmacs UTF-2000.
1594
1595         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
1596         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
1597
1598         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
1599         XEmacs UTF-2000.
1600
1601         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
1602         UTF-2000.
1603         (print_char_table): Print `default_value' in XEmacs UTF-2000.
1604         (char_table_description): Delete `mirror_table' in XEmacs
1605         UTF-2000.
1606         (fill_char_table): Don't call `update_syntax_table' in XEmacs
1607         UTF-2000.
1608         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
1609         (Fcopy_char_table): Likewise.
1610         (put_char_table): Don't call `update_syntax_table' in XEmacs
1611         UTF-2000.
1612
1613         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
1614         `buf->mirror_syntax_table' in XEmacs UTF-2000.
1615         (casify_region_internal): Likewise.
1616
1617         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
1618
1619         * buffer.c (common_init_complex_vars_of_buffer): Don't use
1620         `mirror_syntax_table' in XEmacs UTF-2000.
1621
1622         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
1623         `buf->mirror_syntax_table' in XEmacs UTF-2000.
1624         (Fexpand_abbrev): Likewise.
1625
1626 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1627
1628         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
1629
1630 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1631
1632         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
1633         (map_over_uint16_byte_table): Likewise.
1634         (map_over_byte_table): Likewise.
1635         (get_char_id_table): Refer `cit->default_value'.
1636         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
1637         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
1638         of character-id ranges.
1639         (mark_char_table): Mark `ct->default_value'.
1640         (char_table_description): Add `default_value'.
1641         (fill_char_table): Use `default_value'.
1642         (decode_char_table_range): Decode `nil' as
1643         `CHARTAB_RANGE_DEFAULT'.
1644         (get_char_id_table): Refer `cit->default_value'.
1645         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
1646         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
1647         temporary hack; check value of char-table is bound or not.
1648         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
1649
1650         * chartab.h (struct Lisp_Char_Table): Add new member
1651         `default_value' in XEmacs UTF-2000.
1652         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
1653         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
1654         UTF-2000.
1655
1656 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1657
1658         * chartab.h (Lisp_Char_ID_Table): Deleted.
1659
1660         * chartab.c (char_table_description): Fix typo.
1661         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
1662         `Lisp_Char_ID_Table'.
1663
1664 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1665
1666         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
1667         `CHAR_ID_TABLE_P'.
1668
1669         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
1670         `CHAR_ID_TABLE_P'.
1671
1672         * chartab.h (XCHAR_ID_TABLE): Deleted.
1673         (XSETCHAR_ID_TABLE): Deleted.
1674         (CHAR_ID_TABLE_P): Deleted.
1675
1676         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
1677         `CHAR_ID_TABLE_P'.
1678         (Fget_composite_char): Likewise.
1679         (put_char_table): Likewise.
1680         (add_char_attribute_alist_mapper): Fixed.
1681         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
1682         `CHAR_ID_TABLE_P'.
1683         (Fget_char_attribute): Likewise.
1684         (Fget_char_attribute): Likewise.
1685         (Fmap_char_attribute): Likewise.
1686
1687         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
1688         `CHAR_ID_TABLE_P'.
1689         (encode_char_1): Likewise.
1690
1691 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1692
1693         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
1694         `XCHAR_ID_TABLE'.
1695
1696         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
1697         instead of `XCHAR_ID_TABLE'.
1698         (remove_char_ccs): Likewise.
1699
1700         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
1701         `XCHAR_ID_TABLE'.
1702         (Fget_composite_char): Likewise.
1703         (Fchar_variants): Likewise.
1704         (put_char_table): Likewise.
1705         (add_char_attribute_alist_mapper): Likewise.
1706         (Fchar_attribute_alist): Likewise.
1707         (Fget_char_attribute): Likewise.
1708         (Fput_char_attribute): Likewise.
1709         (Fmap_char_attribute): Likewise.
1710         (Fmap_char_attribute): Likewise.
1711
1712         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
1713         `XCHAR_ID_TABLE'.
1714         (encode_char_1): Likewise.
1715
1716 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1717
1718         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
1719         `Lisp_Char_ID_Table'.
1720         (mark_char_id_table): Deleted.
1721         (print_char_id_table): Likewise.
1722         (char_id_table_equal): Likewise.
1723         (char_id_table_hash): Likewise.
1724         (char_id_table_description): Likewise.
1725         (char_id_table): Likewise.
1726         (make_char_id_table): Use `Fmake_char_table' and
1727         `fill_char_table'.
1728         (get_char_id_table): Use `Lisp_Char_Table' instead of
1729         `Lisp_Char_ID_Table'.
1730         (put_char_id_table): Likewise.
1731         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
1732         `XCHAR_ID_TABLE'.
1733         (Fremove_char_attribute): Likewise.
1734         (syms_of_chartab): Don't define type `char-id-table'.
1735
1736         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
1737         (char_id_table): Likewise.
1738         (GC_CHAR_ID_TABLE_P): Likewise.
1739         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
1740         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
1741         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
1742         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
1743         (get_char_id_table): Use `Lisp_Char_Table' instead of
1744         `Lisp_Char_ID_Table'.
1745         (put_char_id_table_0): Likewise.
1746         (put_char_id_table): Likewise.
1747
1748 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1749
1750         * chartab.h: Lisp_Byte_Table related codes are moved from
1751         chartab.h.
1752
1753         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
1754
1755 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1756
1757         * chartab.h: Don't include "chartab.h".
1758         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
1759         (Lisp_Char_ID_Table): Likewise.
1760         (char_id_table): Likewise.
1761         (XCHAR_ID_TABLE): Likewise.
1762         (XSETCHAR_ID_TABLE): Likewise.
1763         (CHAR_ID_TABLE_P): Likewise.
1764         (GC_CHAR_ID_TABLE_P): Likewise.
1765         (get_char_id_table): Likewise.
1766
1767         * char-ucs.h: Include "chartab.h".
1768         (struct Lisp_Char_ID_Table): Moved to chartab.h.
1769         (Lisp_Char_ID_Table): Likewise.
1770         (char_id_table): Likewise.
1771         (XCHAR_ID_TABLE): Likewise.
1772         (XSETCHAR_ID_TABLE): Likewise.
1773         (CHAR_ID_TABLE_P): Likewise.
1774         (GC_CHAR_ID_TABLE_P): Likewise.
1775         (get_char_id_table): Likewise.
1776
1777 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1778
1779         * chartab.c (copy_uint8_byte_table): New function.
1780         (copy_uint16_byte_table): New function.
1781         (copy_byte_table): New function.
1782         (map_over_uint8_byte_table): Modify to avoid huge numbers of
1783         characters to call.
1784         (map_over_uint16_byte_table): Likewise.
1785         (map_over_byte_table): Likewise.
1786         (get_byte_table): Move prototype to chartab.h.
1787         (put_byte_table): Likewise.
1788         (put_char_id_table_0): Moved to chartab.h.
1789         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
1790         (char_table_entry_equal): Likewise.
1791         (char_table_entry_hash): Likewise.
1792         (char_table_entry_description): Likewise.
1793         (char_table_entry): Likewise.
1794         (make_char_table_entry): Likewise.
1795         (copy_char_table_entry): Likewise.
1796         (get_non_ascii_char_table_value): Likewise.
1797         (map_over_charset_ascii): Likewise.
1798         (map_over_charset_control_1): Likewise.
1799         (map_over_charset_row): Likewise.
1800         (map_over_other_charset): Likewise.
1801         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
1802         (print_char_table): Likewise.
1803         (char_table_equal): Likewise.
1804         (char_table_hash): Likewise.
1805         (char_table_description): Likewise.
1806         (fill_char_table): Likewise.
1807         (Fcopy_char_table): Likewise.
1808         (get_char_table): Likewise.
1809         (Fget_range_char_table): Likewise.
1810         (put_char_table): Likewise.
1811         (map_char_table): Likewise.
1812         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
1813         UTF-2000.
1814
1815 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1816
1817         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
1818         `Vauto_fill_chars' in XEmacs UTF-2000.
1819
1820         * chartab.h (get_byte_table): New prototype [moved from
1821         chartab.c].
1822         (put_byte_table): Likewise [moved from chartab.c].
1823         (put_char_id_table_0): New inline function [moved from chartab.c].
1824         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
1825         (Lisp_Char_Table_Entry): Likewise.
1826         (char_table_entry): Likewise.
1827         (XCHAR_TABLE_ENTRY): Likewise.
1828         (XSETCHAR_TABLE_ENTRY): Likewise.
1829         (CHAR_TABLE_ENTRYP): Likewise.
1830         (CHECK_CHAR_TABLE_ENTRY): Likewise.
1831         (NUM_ASCII_CHARS): Likewise.
1832         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
1833         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
1834
1835 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1836
1837         * chartab.c (get_char_id_table): Change interface.
1838         (put_char_id_table_0): New function.
1839         (put_char_id_table): Change interface; new implementation.
1840         (Fget_composite_char): Modify for interface change of
1841         `get_char_id_table'.
1842         (Fchar_variants): Likewise.
1843         (add_char_attribute_alist_mapper): Likewise.
1844         (Fchar_attribute_alist): Likewise.
1845         (Fget_char_attribute): Likewise.
1846         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
1847         as same as character as the first argument like `put-char-table';
1848         modify for interface change of `put_char_id_table'.
1849         (Fremove_char_attribute): Modify for interface change of
1850         `put_char_id_table'.
1851
1852 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1853
1854         * text-coding.c: Sync up with XEmacs 21.2.41.
1855         (COMPOSE_ADD_CHAR): Modify for interface change of
1856         `get_char_id_table'.
1857
1858         * mule-charset.c (put_char_ccs_code_point): Modify for interface
1859         change of `put_char_id_table'.
1860         (remove_char_ccs): Likewise.
1861
1862         * chartab.h (put_char_id_table): Change interface.
1863
1864         * char-ucs.h (get_char_id_table): Change interface.
1865         (charset_code_point): Modify for interface change of
1866         `get_char_id_table'.
1867         (encode_char_1): Likewise.
1868
1869 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1870
1871         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
1872         argument `ccs'.
1873         (map_over_uint16_byte_table): Likewise.
1874         (map_over_byte_table): Likewise.
1875         (map_char_id_table): Add new argument `range' like
1876         `map_char_table'.
1877         (Fmap_char_attribute): Add new argument `range' like
1878         `Fmap_char_table'.
1879
1880 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1881
1882         * chartab.c (map_over_uint8_byte_table): Change interface of
1883         mapping function to use struct chartab_range instead of Emchar.
1884         (map_over_uint16_byte_table): Likewise.
1885         (map_over_byte_table): Likewise.
1886         (map_char_id_table): Likewise.
1887         (struct slow_map_char_id_table_arg): Deleted.
1888         (slow_map_char_id_table_fun): Deleted.
1889         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
1890         function `slow_map_char_table_fun' instead of struct
1891         `slow_map_char_id_table_arg' and function
1892         `slow_map_char_id_table_fun'.
1893
1894 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1895
1896         * mule-charset.c: Move char-it-table related codes to chartab.c.
1897         (Vutf_2000_version): Moved to chartab.c.
1898         (Fdefine_char): Likewise.
1899         (Ffind_char): Likewise.
1900         (syms_of_mule_charset): Move types `uint8-byte-table',
1901         `uint16-byte-table', `byte-table' and `char-id-table' to
1902         chartab.c; move functions `char_attribute_list,
1903         `find_char_attribute_table, `char_attribute_alist,
1904         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
1905         `map_char_attribute, `define_char, `find_char, `char_variants and
1906         `get_composite_char to chartab.c; move symbols `=>ucs',
1907         `->decomposition', `compat', `isolated', `initial', `medial',
1908         `final', `vertical', `noBreak', `fraction', `super', `sub',
1909         `circle', `square', `wide', `narrow', `small' and `font' to
1910         chartab.c.
1911         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
1912         setting codes for `Vcharacter_composition_table' and
1913         `Vcharacter_variant_table' to chartab.c.
1914         (complex_vars_of_mule_charset): Move setting code for
1915         `Vchar_attribute_hash_table' to chartab.c.
1916
1917         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
1918         (make_char_id_table): New prototype.
1919         (put_char_id_table): Likewise.
1920         (Fget_char_attribute): Likewise.
1921
1922         * chartab.c: Move char-id-table related code from mule-charset.c.
1923         (Vutf_2000_version): Moved from mule-charset.c.
1924
1925         * char-ucs.h (Qucs): New external variable.
1926         (put_char_ccs_code_point): New prototype.
1927         (remove_char_ccs): Likewise.
1928
1929 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1930
1931         * mule-charset.c (Vcharset_ucs_jis): New variable.
1932         (Qucs_jis): Likewise.
1933         (syms_of_mule_charset): Add new symbol `ucs-jis'.
1934         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
1935
1936         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
1937
1938 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1939
1940         * mule-charset.c (map_over_uint8_byte_table): New function.
1941         (map_over_uint16_byte_table): Likewise.
1942         (map_over_byte_table): Likewise.
1943         (map_char_id_table): Likewise.
1944         (slow_map_char_id_table_fun): Likewise.
1945         (Fmap_char_attribute): Likewise.
1946         (syms_of_mule_charset): Add new function `map-char-attribute'.
1947
1948 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1949
1950         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
1951         (syms_of_mule_charset): Add new function `find-char'.
1952
1953 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1954
1955         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
1956         XEmacs UTF-2000.
1957         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
1958         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
1959         XEmacs UTF-2000.
1960         (complex_vars_of_mule_charset): Add new coded-charset
1961         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
1962         `ideograph-gt-pj-*'.
1963
1964         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
1965
1966 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1967
1968         * mule-charset.c (encode_builtin_char_1): Purge codes about
1969         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
1970         {MIN|MAX}_CHAR_HEBREW.
1971         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
1972         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
1973
1974         * char-ucs.h (MIN_CHAR_GREEK): Purged.
1975         (MAX_CHAR_GREEK): Purged.
1976         (MIN_CHAR_CYRILLIC): Purged.
1977         (MAX_CHAR_CYRILLIC): Purged.
1978         (MIN_CHAR_HEBREW): Commented out.
1979         (MAX_CHAR_HEBREW): Likewise.
1980
1981 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1982
1983         * mule-charset.c (Qto_ucs): New variable.
1984         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
1985         (Fdefine_char): Likewise.
1986         (syms_of_mule_charset): Add new symbol `=>ucs'.
1987
1988 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1989
1990         * mule-charset.c (Fdecode_char): Fixed.
1991
1992 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1993
1994         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
1995         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
1996         "tcvn5712-1".
1997
1998 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1999
2000         * mule-charset.c (Vcharset_ucs_big5): New variable.
2001         (Qucs_big5): Likewise.
2002         (syms_of_mule_charset): Add new symbol `ucs-big5'.
2003         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
2004
2005         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
2006
2007 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2008
2009         * mule-charset.c (decode_builtin_char): Check Big5 code range
2010         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
2011
2012 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2013
2014         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
2015         (Qchinese_gb12345): Likewise.
2016         (Fdecode_builtin_char): Fixed.
2017         (syms_of_mule_charset): Add `chinese-gb12345'.
2018         (complex_vars_of_mule_charset): Add coded-charset
2019         `chinese-gb12345'.
2020
2021         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
2022         (LEADING_BYTE_CHINESE_GB12345): New macro.
2023
2024 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2025
2026         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
2027         and `latin-viscii-upper' for `latin-viscii'.
2028
2029 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2030
2031         * mule-charset.c (Fdecode_builtin_char): Comment out
2032         regularization code for ISO-IR GR representation.
2033
2034 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2035
2036         * mule-charset.c (decode_builtin_char): New function; renamed from
2037         `make_builtin_char'; return -1 instead of signal.
2038         (Fdecode_builtin_char): Use `decode_builtin_char'.
2039
2040         * char-ucs.h (decode_builtin_char): New prototype; renamed from
2041         `make_builtin_char'.
2042         (DECODE_CHAR): Use `decode_builtin_char' instead of
2043         `make_builtin_char'; use mapping table of `chinese-big5' for
2044         `chinese-big5-{1,2}'.
2045
2046 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2047
2048         * text-coding.c (char_encode_big5): New function.
2049         (char_finish_big5): Likewise.
2050         (reset_encoding_stream): Use `char_encode_big5' and
2051         `char_finish_big5' for CODESYS_BIG5.
2052         (mule_encode): Don't use `encode_coding_big5'.
2053         (encode_coding_big5): Deleted.
2054
2055 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2056
2057         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
2058         0x81- in XEmacs UTF-2000.
2059         (detect_coding_big5): Likewise.
2060
2061 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2062
2063         * mule-charset.c (Fdefine_char): Don't use a CCS property to
2064         generate character-id if the CCS property does not have
2065         corresponding predefined character.
2066         (make_builtin_char): Return -1 if corresponding predefined
2067         character is not found.
2068         (Fdecode_char): Return nil if corresponding character is not
2069         found.
2070         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
2071         don't map to builtin ucs space.
2072
2073 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2074
2075         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
2076         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
2077
2078 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2079
2080         * mule-charset.c (Vcharset_ideograph_gt): New variable.
2081         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
2082         (Qideograph_gt): Likewise.
2083         (Qideograph_gt_pj_{1..11}): Likewise.
2084         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
2085         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
2086         `ideograph-gt-pj-11'.
2087         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
2088         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
2089         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
2090
2091         * char-ucs.h (LEADING_BYTE_GT): New macro.
2092         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
2093         (MIN_CHAR_GT): Likewise.
2094         (MAX_CHAR_GT): Likewise.
2095
2096 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2097
2098         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
2099         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
2100
2101         * doprnt.c (unsigned_int_converters): Add `c'.
2102         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
2103
2104         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
2105         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
2106         `MIN_CHAR_MOJIKYO'.
2107         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
2108         (MAX_CHAR_MOJIKYO_0): New macro.
2109         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
2110
2111 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2112
2113         * mule-charset.c (Fdefine_char): Delete cemented out code.
2114         (encode_builtin_char_1): Modify for new allocation of builtin
2115         Mojikyo characters.
2116
2117         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
2118
2119 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2120
2121         * mule-charset.c (Vcharset_ucs_cns): New variable.
2122         (Qucs_cns): New variable.
2123         (syms_of_mule_charset): Add new symbol `ucs-cns'.
2124         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
2125
2126 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2127
2128         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
2129
2130 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
2131
2132         * search.c (search_buffer): Make `charset_base_code' as
2133         character-id >> 6 to eliminate the corresponding last byte in
2134         UTF-8 representation [I'm not sure it is right thing].
2135         (boyer_moore): Likewise.
2136
2137 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
2138
2139         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
2140         representation in MULE.
2141
2142 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2143
2144         * text-coding.c (Fmake_coding_system): Use
2145         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
2146         `EXTERNAL_PROPERTY_LIST_LOOP'.
2147
2148 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2149
2150         * text-coding.c (decode_output_utf8_partial_char): New function.
2151         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
2152
2153 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2154
2155         * text-coding.c (decode_coding_utf8): Output original byte
2156         sequence if it is broken; change order of conditions.
2157
2158         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
2159         of conditions.
2160
2161         * mb-multibyte.h (BYTE_ASCII_P):
2162         Use bit ops for char-signedness safety.
2163         (BYTE_C0_P): Use bit ops for char-signedness safety.
2164         (BYTE_C1_P): Use bit ops for char-signedness safety.
2165
2166         * character.h: (XCHAR_OR_CHAR_INT):
2167         Always use inline function.
2168         Remove redundant type checking assert() - XINT will abort quite
2169         nicely.
2170
2171 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2172
2173         * text-coding.c: (Fencode_shift_jis_char):
2174         (Fencode_big5_char):
2175         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
2176         Replace 0 with '\0' when working with bytes.
2177         Replace initial "(" with "\(" in docstrings.
2178
2179         (Fmake_coding_system):
2180         When type is ccl and value is vector, register it with a proper
2181         symbol.  And checks whether the given ccl program is valid.
2182         (mule_decode): When calling ccl_driver, if src indicates
2183         NULL pointer, set an empty string instead.
2184         (mule_encode): Likewise.
2185
2186         (detect_eol_type):
2187         (detect_coding_sjis):
2188         (decode_coding_sjis):
2189         (detect_coding_big5):
2190         (decode_coding_big5):
2191         (detect_coding_ucs4):
2192         (decode_coding_ucs4):
2193         (detect_coding_utf8):
2194         (decode_coding_utf8):
2195         (detect_coding_iso2022):
2196         (decode_coding_iso2022):
2197         (decode_coding_no_conversion):
2198         (mule_decode):
2199         Make all detecting and decoding functions take an Extbyte * arg.
2200         (text_encode_generic):
2201         (encode_coding_big5):
2202         (encode_coding_no_conversion):
2203         (mule_encode):
2204         Make all encoding functions take a Bufbyte * arg.
2205         Use size_t instead of unsigned int for memory sizes.
2206         Only cast to unsigned char whenever dereferencing Extbyte *.
2207
2208         (struct lrecord_description fcd_description_1): Use countof.
2209         (complex_vars_of_file_coding):
2210         Use countof instead of sizeof.
2211         Use CHECK_NATNUM instead of CHECK_INT.
2212
2213 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2214
2215         * mule-charset.c (Fget_char_attribute): Add new optional argument
2216         `default-value'.
2217         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
2218         (remove_char_ccs): Likewise.
2219
2220 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2221
2222         * text-coding.c (char_encode_shift_jis): New implementation in
2223         UTF-2000.
2224         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
2225         ...)'.
2226
2227         * mule-charset.c (Vcharset_chinese_big5): New variable in
2228         UTF-2000.
2229         (Qchinese_big5): New variable in UTF-2000.
2230         (BIG5_SAME_ROW): New macro in UTF-2000.
2231         (make_builtin_char): Use builtin characters of
2232         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
2233         characters of `Vcharset_chinese_big5'.
2234         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
2235         (complex_vars_of_mule_charset): Add new coded-charset
2236         `chinese-big5' in UTF-2000.
2237
2238         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
2239         (Vcharset_chinese_big5): New external variable declaration.
2240         (Vcharset_japanese_jisx0208_1990): Likewise.
2241
2242 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2243
2244         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
2245         function.
2246         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
2247
2248 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2249
2250         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
2251         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
2252         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
2253         `mojikyo-pj-*'.
2254
2255 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2256
2257         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
2258
2259 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2260
2261         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2262         to 0.17.
2263
2264 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2265
2266         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
2267         for `CHARSET_BY_ATTRIBUTES'.
2268         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
2269         `CHARSET_BY_ATTRIBUTES'.
2270
2271         * text-coding.c (struct decoding_stream): Rename member `CH' to
2272         `CPOS'.
2273         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
2274         (decode_coding_sjis): Likewise.
2275         (decode_coding_big5): Likewise.
2276         (decode_coding_ucs4): Likewise.
2277         (decode_coding_utf8): Likewise.
2278         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
2279         `CHARSET_BY_ATTRIBUTES'.
2280         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
2281         `str->counter'; decode 3, 4 bytes sets.
2282         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
2283         sets.
2284         (decode_coding_no_conversion): Use `str->cpos' instead of
2285         `str->ch'.
2286
2287         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
2288         (Qmojikyo_2022_1): New variable.
2289         (make_charset): Don't use `CHARSET_TYPE_*'.
2290         (range_charset_code_point): Support coded-charset
2291         `mojikyo-2022-1'.
2292         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
2293         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
2294         `CHARSET_BY_ATTRIBUTES'.
2295         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
2296         `CHARSET_BY_ATTRIBUTES'.
2297         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
2298         (complex_vars_of_mule_charset): Add new coded-charset
2299         `mojikyo-2022-1'.
2300
2301         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
2302         interface; changed to inline function.
2303
2304         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
2305         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
2306         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
2307         (CHARSET_TYPE_94): Deleted.
2308         (CHARSET_TYPE_94X94): Deleted.
2309         (CHARSET_TYPE_96): Deleted.
2310         (CHARSET_TYPE_96X96): Deleted.
2311         (CHARSET_TYPE_128): Deleted.
2312         (CHARSET_TYPE_128X128): Deleted.
2313         (CHARSET_TYPE_256): Deleted.
2314         (CHARSET_TYPE_256X256): Deleted.
2315         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
2316         to inline function.
2317         (DECODE_MOJIKYO_2022): New inline function.
2318         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
2319         `Vcharset_mojikyo_2022_1'.
2320
2321 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2322
2323         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
2324         instead of `EQ'.
2325         (put_byte_table): Likewise.
2326         (char_id_table_equal): Use `get_byte_table' [new implementation].
2327
2328 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2329
2330         * mule-charset.c: Include <limits.h> in UTF-2000.
2331         (BT_UINT8_MIN): New macro in UTF-2000.
2332         (BT_UINT8_MAX): New macro in UTF-2000.
2333         (BT_UINT8_t): New macro in UTF-2000.
2334         (BT_UINT8_nil): New macro in UTF-2000.
2335         (BT_UINT8_unbound): New macro in UTF-2000.
2336         (INT_UINT8_P): New inline function in UTF-2000.
2337         (UINT8_VALUE_P): New inline function in UTF-2000.
2338         (UINT8_ENCODE): New inline function in UTF-2000.
2339         (UINT8_DECODE): New inline function in UTF-2000.
2340         (mark_uint8_byte_table): New function in UTF-2000.
2341         (print_uint8_byte_table): New function in UTF-2000.
2342         (uint8_byte_table_equal): New function in UTF-2000.
2343         (uint8_byte_table_hash): New function in UTF-2000.
2344         (make_uint8_byte_table): New function in UTF-2000.
2345         (uint8_byte_table_same_value_p): New function in UTF-2000.
2346         (BT_UINT16_MIN): New macro in UTF-2000.
2347         (BT_UINT16_MAX): New macro in UTF-2000.
2348         (BT_UINT16_t): New macro in UTF-2000.
2349         (BT_UINT16_nil): New macro in UTF-2000.
2350         (BT_UINT16_unbound): New macro in UTF-2000.
2351         (INT_UINT16_P): New inline function in UTF-2000.
2352         (UINT16_VALUE_P): New inline function in UTF-2000.
2353         (UINT16_ENCODE): New inline function in UTF-2000.
2354         (UINT16_DECODE): New inline function in UTF-2000.
2355         (UINT8_TO_UINT16): New inline function in UTF-2000.
2356         (mark_uint16_byte_table): New function in UTF-2000.
2357         (print_uint16_byte_table): New function in UTF-2000.
2358         (uint16_byte_table_equal): New function in UTF-2000.
2359         (uint16_byte_table_hash): New function in UTF-2000.
2360         (make_uint16_byte_table): New function in UTF-2000.
2361         (uint16_byte_table_same_value_p): New function in UTF-2000.
2362         (print_byte_table): New function in UTF-2000.
2363         (byte-table): Use `print_byte_table' as printer.
2364         (make_byte_table): Delete second argument `older'.
2365         (byte_table_same_value_p): New function in UTF-2000.
2366         (copy_byte_table): Deleted.
2367         (get_byte_table): New function in UTF-2000.
2368         (put_byte_table): New function in UTF-2000.
2369         (print_char_id_table): New function in UTF-2000.
2370         (char-id-table): Use `print_char_id_table' as printer.
2371         (make_char_id_table): Delete second argument `older'.
2372         (get_char_id_table): Use `get_byte_table [new implementation].
2373         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
2374         implementation].
2375         (Ffind_char_attribute_table): New function in UTF-2000.
2376         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
2377         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
2378         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
2379         (syms_of_mule_charset): Add new function
2380         `find-char-attribute-table' in UTF-2000.
2381
2382         * lrecord.h (enum lrecord_type): Add
2383         `lrecord_type_uint16_byte_table' and
2384         `lrecord_type_uint8_byte_table'.
2385
2386         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
2387         (Lisp_Uint8_Byte_Table): New type.
2388         (XUINT8_BYTE_TABLE): New macro.
2389         (XSETUINT8_BYTE_TABLE): New macro.
2390         (UINT8_BYTE_TABLE_P): New macro.
2391         (GC_UINT8_BYTE_TABLE_P): New macro.
2392         (struct Lisp_Uint16_Byte_Table): New structure.
2393         (Lisp_Uint16_Byte_Table): New type.
2394         (XUINT16_BYTE_TABLE): New macro.
2395         (XSETUINT16_BYTE_TABLE): New macro.
2396         (UINT16_BYTE_TABLE_P): New macro.
2397         (GC_UINT16_BYTE_TABLE_P): New macro.
2398
2399 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2400
2401         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
2402         (Vcharacter_ideographic_strokes_table): Deleted.
2403         (Vcharacter_total_strokes_table): Deleted.
2404         (Vcharacter_morohashi_daikanwa_table): Deleted.
2405         (Vcharacter_decomposition_table): Deleted.
2406         (Qname): Deleted because it is duplicated.
2407         (Qideographic_radical): Deleted.
2408         (Qideographic_strokes): Deleted.
2409         (Qtotal_strokes): Deleted.
2410         (Qmorohashi_daikanwa): Deleted.
2411         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
2412         `ideographic-radical', `ideographic-strokes', `total-strokes',
2413         `morohashi-daikanwa' and `->decomposition'.
2414         (Fget_char_attribute): Likewise.
2415         (Fput_char_attribute): Likewise; use `make-vector' instead of
2416         `make_older_vector' for `->decomposition' value.
2417         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
2418         `ideograph-daikanwa'.
2419         (syms_of_mule_charset): Delete builtin symbols `name',
2420         `ideographic-radical', `ideographic-strokes', `total-strokes' and
2421         `morohashi-daikanwa'.
2422         (vars_of_mule_charset): Don't setup
2423         `Vcharacter_ideographic_radical_table',
2424         `Vcharacter_ideographic_strokes_table',
2425         `Vcharacter_total_strokes_table',
2426         `Vcharacter_morohashi_daikanwa_table' and
2427         `Vcharacter_decomposition_table'.
2428
2429 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2430
2431         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
2432         `make_older_vector', `make_vector_newer_1' and
2433         `make_vector_newer'.
2434
2435         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
2436         `make_older_vector' and `make_vector_newer'.
2437
2438         * config.h.in (HAVE_GGC): New macro.
2439
2440 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2441
2442         * mule-charset.c (struct char_attribute_list_closure): New
2443         structure in UTF-2000.
2444         (add_char_attribute_to_list_mapper): New function in UTF-2000.
2445         (Fchar_attribute_list): Likewise.
2446         (Fset_charset_mapping_table): Use `make_vector_newer'.
2447         (Fdecode_builtin_char): New function in UTF-2000.
2448         (syms_of_mule_charset): Add new function `char-attribute-list' and
2449         `decode-builtin-char' in UTF-2000.
2450
2451         * lisp.h (make_vector_newer): New prototype.
2452
2453         * alloc.c (make_vector_newer_1): New function.
2454         (make_vector_newer): New function.
2455
2456 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2457
2458         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
2459         50100)'.
2460
2461 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2462
2463         * mule-charset.c (Vchar_attribute_hash_table): New variable.
2464         (Vcharacter_attribute_table): Deleted.
2465         (Vcharacter_name_table): Deleted.
2466         (put_char_attribute): Deleted.
2467         (remove_char_attribute): Deleted.
2468         (struct char_attribute_alist_closure): New structure.
2469         (add_char_attribute_alist_mapper): New function.
2470         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
2471         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
2472         (Fget_char_attribute): Likewise.
2473         (Fput_char_attribute): Likewise.
2474         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
2475         of `remove_char_attribute'.
2476         (Fdefine_char): Return character.
2477         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
2478         and `Vcharacter_name_table'.
2479         (complex_vars_of_mule_charset): Likewise
2480         `Vchar_attribute_hash_table'.
2481
2482 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2483
2484         * character.h (CHARC_CHARSET): New macro.
2485         (CHARC_CHARSET_ID): New macro.
2486         (CHARC_CODE_POINT): New macro.
2487         (CHARC_COLUMNS): New macro.
2488         (CHARC_TO_CHAR): New inline function.
2489         (CHARC_EQ): New inline function.
2490         (CHARC_ASCII_EQ): New inline function.
2491         (CHARC_IS_SPACE): New inline function.
2492         (ASCII_TO_CHARC): New inline function.
2493
2494         * char-ucs.h (encode_char_2): Deleted.
2495         (ENCODE_CHAR): Use `encode_char_1' again.
2496         (breakup_char_1): Likewise.
2497         (CHAR_TO_CHARC): New inline function.
2498
2499         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
2500
2501 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2502
2503         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
2504         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
2505         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
2506         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
2507         (create_string_text_block): Use `CHARC_ASCII_EQ' and
2508         `CHARC_IS_SPACE'.
2509         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
2510
2511         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
2512         `CHARC_CODE_POINT'.
2513         (x_output_display_block): Use `CHARC_CHARSET' and
2514         `CHARC_ASCII_EQ'.
2515
2516         * redisplay-tty.c (tty_output_display_block): Use
2517         `CHARC_ASCII_EQ'.
2518         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
2519
2520         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
2521
2522         * insdel.c (find_charsets_in_charc_string): Use
2523         `CHARC_CHARSET_ID'.
2524         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
2525         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
2526         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
2527         (convert_charc_string_into_malloced_string): Likewise.
2528
2529 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2530
2531         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
2532         instead of <Emchar_dynarr *> for buf; use
2533         `convert_bufbyte_string_into_charc_dynarr' instead of
2534         `convert_bufbyte_string_into_emchar_dynarr'; use
2535         `find_charsets_in_charc_string' instead of
2536         `find_charsets_in_emchar_string'.
2537
2538         * redisplay.h:
2539         - Include "character.h".
2540         (struct rune): New member `cglyph'; delete member `chr'.
2541
2542         * redisplay.c (redisplay_text_width_charc_string): New function;
2543         delete `redisplay_text_width_emchar_string'.
2544         (rtw_charc_dynarr): New variable; renamed from
2545         `rtw_emchar_dynarr'.
2546         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
2547         `rtw_emchar_dynarr'; use
2548         `convert_bufbyte_string_into_charc_dynarr' instead of
2549         `convert_bufbyte_string_into_emchar_dynarr'; use
2550         `redisplay_text_width_charc_string' instead of
2551         `redisplay_text_width_emchar_string'.
2552         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
2553         instead of `rtw_emchar_dynarr'; use
2554         `convert_bufbyte_string_into_charc_dynarr' instead of
2555         `convert_bufbyte_string_into_emchar_dynarr'.
2556         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
2557         `redisplay_text_width_charc_string' instead of
2558         `redisplay_text_width_emchar_string'.
2559         (create_text_block): Modify for <struct rune> change.
2560         (generate_formatted_string_db): Likewise.
2561         (create_string_text_block): Likewise.
2562         (pixel_to_glyph_translation): Likewise.
2563
2564         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
2565         instead of <const Emchar *>.
2566         (x_text_width): Likewise.
2567         (x_output_display_block): Use <Charc_dynarr *> instead
2568         <Emchar_dynarr *>; modify for <structure rune> change.
2569         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
2570         *>.
2571
2572         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
2573         <const Emchar *>; use `charc_string_displayed_columns' instead of
2574         `emchar_string_displayed_columns'.
2575         (tty_output_display_block): Use <Charc_dynarr *> instead of
2576         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
2577         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
2578         (tty_output_charc_dynarr_dynarr): New variable; renamed from
2579         `tty_output_emchar_dynarr_dynarr'.
2580         (tty_output_charc_dynarr): New function; delete
2581         `tty_output_charc_dynarr'.
2582
2583         * redisplay-output.c (compare_runes): Modify for `struct rune'.
2584         (redisplay_output_layout): Use <Charc_dynarr *> instead of
2585         <Emchar_dynarr *> for buf; use
2586         `convert_bufbyte_string_into_charc_dynarr' instead of
2587         `convert_bufbyte_string_into_emchar_dynarr'.
2588
2589         * frame.c (title_string_charc_dynarr): New variable; renamed from
2590         `title_string_emchar_dynarr'.
2591         (generate_title_string): Use `title_string_charc_dynarr' instead
2592         of `title_string_emchar_dynarr'; use
2593         `convert_charc_string_into_malloced_string' instead of
2594         `convert_emchar_string_into_malloced_string'.
2595         (init_frame): Use `title_string_charc_dynarr' instead of
2596         `title_string_emchar_dynarr'.
2597
2598         * console.h:
2599         - Include "character.h".
2600         (struct console_methods): Use <const Charc *> instead of <const
2601         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
2602         <Emchar_dynarr *> in output_string_method.
2603
2604         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
2605         <Emchar_dynarr *>.
2606
2607         * console-stream.c (stream_text_width): Use <const Charc *>
2608         instead of <const Emchar *>.
2609
2610         * character.h (Charc_dynarr): New type.
2611
2612         * char-ucs.h (structure Charc): New structure; define new type
2613         `Charc'.
2614
2615         * char-lb.h (DECODE_CHAR): New inline function.
2616         (encode_char_1): New inline function.
2617         (ENCODE_CHAR): New macro.
2618         (structure Charc): New structure; define new type `Charc'.
2619
2620         * char-1byte.h (Vcharset_control_1): New macro.
2621         (Vcharset_latin_iso8859_1): New macro.
2622         (DECODE_CHAR): New inline function.
2623         (encode_char_1): New inline function.
2624         (ENCODE_CHAR): New macro.
2625         (structure Charc): New structure; define new type `Charc'.
2626
2627         * insdel.c (find_charsets_in_charc_string): New function; delete
2628         `find_charsets_in_emchar_string'.
2629         (charc_string_displayed_columns): New function; delete
2630         `emchar_string_displayed_columns'.
2631         (convert_bufbyte_string_into_charc_dynarr): New function; delete
2632         `convert_bufbyte_string_into_emchar_dynarr'.
2633         (convert_charc_string_into_bufbyte_dynarr): New function; delete
2634         `convert_charc_string_into_bufbyte_dynarr'.
2635         (convert_charc_string_into_malloced_string): New function; delete
2636         `convert_charc_string_into_malloced_string'.
2637
2638         * buffer.h (find_charsets_in_charc_string): New prototype; delete
2639         `find_charsets_in_emchar_string'.
2640         (charc_string_displayed_columns): New prototype; delete
2641         `emchar_string_displayed_columns'.
2642         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
2643         `convert_charc_string_into_bufbyte_dynarr'.
2644         (convert_charc_string_into_malloced_string): New prototype; delete
2645         `convert_charc_string_into_malloced_string'.
2646
2647 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2648
2649         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
2650
2651 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2652
2653         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
2654
2655         * char-ucs.h: Use <short> for <Charset_ID>.
2656
2657         * mule-charset.h, char-1byte.h: Use <unsigned char> for
2658         <Charset_ID>.
2659
2660 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2661
2662         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2663         to 0.16.
2664
2665 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2666
2667         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
2668         variable.
2669         (Qmorohashi_daikanwa): New variable.
2670         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
2671         for `morohashi-daikanwa' attribute.
2672         (Fget_char_attribute): Likewise.
2673         (Fput_char_attribute): Likewise.
2674         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
2675         has the same value of `ideograph-daikanwa'.
2676         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
2677         (vars_of_mule_charset): Setup
2678         `Vcharacter_morohashi_daikanwa_table'.
2679
2680 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2681
2682         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
2683         attributes.
2684         (add_charset_to_list_mapper): Add `key' instead of
2685         `XCHARSET_NAME (value)' to return aliases.
2686
2687 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2688
2689         * mule-charset.c (Vcharacter_ideographic_radical_table): New
2690         variable.
2691         (Vcharacter_ideographic_strokes_table): New variable.
2692         (Qideographic_radical): New variable.
2693         (Qideographic_strokes): New variable.
2694         (Fchar_attribute_alist): Use
2695         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
2696         attribute; use `Vcharacter_ideographic_strokes_table' for
2697         `ideographic-strokes' attribute.
2698         (Fget_char_attribute): Likewise.
2699         (Fput_char_attribute): Likewise.
2700         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
2701         `ideographic-strokes'.
2702         (vars_of_mule_charset): Setup
2703         `Vcharacter_ideographic_radical_table' and
2704         `Vcharacter_ideographic_strokes_table'.
2705
2706 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2707
2708         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
2709         (Qtotal_strokes): New variable.
2710         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
2711         `total-strokes' attribute.
2712         (Fget_char_attribute): Likewise.
2713         (Fput_char_attribute): Likewise.
2714         (syms_of_mule_charset): Add new symbol `total-strokes'.
2715         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
2716
2717 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2718
2719         * mule-charset.c (Vcharacter_decomposition_table): New variable.
2720         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
2721         are found.
2722         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
2723         `->decomposition' attribute.
2724         (Fput_char_attribute): Likewise.
2725         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
2726
2727 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2728
2729         * mule-charset.c (decoding_table_check_elements): New function.
2730         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
2731
2732 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2733
2734         * mule-charset.c (Fset_charset_mapping_table): Use
2735         `put_char_ccs_code_point'.
2736
2737 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2738
2739         * mule-charset.c (decoding_table_put_char): New inline function.
2740         (put_char_ccs_code_point): Use `decoding_table_put_char'.
2741
2742 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2743
2744         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
2745         (XCHARSET_BYTE_SIZE): New macro.
2746         (decoding_table_remove_char): New inline function.
2747         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
2748         `decoding_table_remove_char'.
2749         (remove_char_ccs): Use `decoding_table_remove_char'.
2750         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
2751
2752 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2753
2754         * mule-charset.c (Vcharacter_name_table): New variable.
2755         (Qname): New variable.
2756         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
2757         attribute.
2758         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
2759         `Vcharacter_name_table' for `name' attribute.
2760         (Fremove_char_attribute): Use function `remove_char_ccs'.
2761         (put_char_ccs_code_point): New function.
2762         (remove_char_ccs): New function.
2763         (syms_of_mule_charset): Add new symbol `name'.
2764         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
2765
2766 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2767
2768         * mule-charset.c (make_byte_table): Add new argument `older'.
2769         (make_char_id_table): Likewise.
2770         (copy_char_id_table): Comment out because it is not used.
2771         (put_char_id_table): Modify for `make_byte_table'.
2772         (Fput_char_attribute): Make encoding_table as older object;
2773         inherit older bit of `Vcharacter_composition_table'.
2774         (mark_charset): Don't mark `cs->encoding_table'.
2775         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
2776         normal object; make `Vcharacter_composition_table' as an older
2777         object; delete staticpro for `Vcharacter_composition_table'; make
2778         `Vcharacter_variant_table' as a normal object.
2779
2780         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
2781         (mark_object): Don't check older object in UTF-2000.
2782
2783         * lrecord.h (struct lrecord_header): Add new member `older' in
2784         UTF-2000.
2785         (set_lheader_implementation): Setup `SLI_header->older' in
2786         UTF-2000.
2787         (set_lheader_older_implementation): New macro in UTF-2000.
2788         (OLDER_RECORD_P): New macro in UTF-2000.
2789         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
2790         (alloc_older_lcrecord): New prototype in UTF-2000.
2791         (alloc_older_lcrecord_type): New macro in UTF-2000.
2792
2793 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2794
2795         * mule-charset.c (byte_table_description): Use
2796         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
2797         (char_id_table_description): Delete bogus `, 1'.
2798         (Fget_char_attribute): Refer encoding_table of each coded-charset
2799         to get value of coded-charset attribute of a character.
2800         (Fput_char_attribute): Use `make_older_vector' instead of
2801         `make_vector'; use encoding_table of each coded-charset to store
2802         value of coded-charset attribute of a character.
2803         (Fremove_char_attribute): Use encoding_table of each coded-charset
2804         to store value of coded-charset attribute of a character.
2805         (mark_charset): Mark `cs->encoding_table'; don't mark
2806         `cs->decoding_table'.
2807         (charset_description): Add description of new member
2808         `encoding_table'.
2809         (make_charset): Initialize `encoding_table'.
2810
2811         * char-ucs.h (struct Lisp_Charset): Add new member
2812         `encoding_table'.
2813         (CHARSET_ENCODING_TABLE): New macro.
2814         (XCHARSET_ENCODING_TABLE): New macro.
2815         (charset_code_point): New implementation.
2816         (encode_char_1): Likewise.
2817
2818         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
2819         (disksave_object_finalization_1): Call finalizers of
2820         `all_older_lcrecords' in UTF-2000.
2821         (make_older_vector): New function in UTF-2000.
2822         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
2823         UTF-2000.
2824
2825         * lisp.h (make_older_vector): New prototype in UTF-2000.
2826
2827 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2828
2829         * lrecord.h (enum lrecord_type): Rename
2830         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
2831
2832         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
2833         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
2834         `get_char_code_table'.
2835
2836         * mule-charset.c (mark_char_id_table): Renamed from
2837         `mark_char_code_table'.
2838         (char_id_table_equal): Renamed from `char_code_table_equal'.
2839         (char_id_table_hash): Renamed from `char_code_table_hash'.
2840         (make_char_id_table): Renamed from `make_char_code_table'.
2841         (copy_char_id_table): Renamed from `copy_char_code_table'.
2842         (get_char_id_table): Renamed from `get_char_code_table'.
2843         (put_char_id_table): Renamed from `put_char_code_table'.
2844         (to_char_id): Renamed from `to_char_code'.
2845
2846         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
2847         `Lisp_Char_Code_Table'.
2848         (char_id_table): Renamed from `char_code_table'.
2849         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
2850         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
2851         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
2852         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
2853         (get_char_id_table): Renamed from `get_char_code_table'.
2854
2855 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2856
2857         * lrecord.h (enum lrecord_type): Rename
2858         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
2859
2860         * mule-charset.c (mark_byte_table): Renamed from
2861         `mark_char_byte_table'.
2862         (byte_table_equal): Renamed from `char_byte_table_equal'.
2863         (byte_table_hash): Renamed from `byte_table_hash'.
2864         (make_byte_table): Renamed from `make_byte_table'.
2865         (copy_byte_table): Renamed from `copy_char_byte_table'.
2866
2867         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
2868         `Lisp_Char_Byte_Table'.
2869         (byte_table): Renamed from `char_byte_table'.
2870         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
2871         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
2872         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
2873         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
2874
2875 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2876
2877         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
2878         (dfc_convert_to_internal_format): Likewise.
2879         
2880         * text-coding.c (Fcoding_system_canonical_name_p): New function.
2881         * text-coding.c (Fcoding_system_alias_p): New function.
2882         * text-coding.c (Fcoding_system_aliasee): New function.
2883         * text-coding.c (append_suffix_to_symbol): New function.
2884         * text-coding.c (dangling_coding_system_alias_p): New function.
2885         * text-coding.c (Ffind_coding_system):
2886         * text-coding.c (Fcopy_coding_system):
2887         * text-coding.c (encode_coding_no_conversion):
2888         * text-coding.c (syms_of_file_coding):
2889         * text-coding.c (vars_of_file_coding):
2890         Rewrite coding system alias code.
2891         Allow nested aliases, like symbolic links.
2892         Allow redefinition of coding system aliases.
2893         Prevent existence of dangling coding system aliases.
2894         Eliminate convert_to_external_format.
2895         Eliminate convert_to_internal_format.
2896         
2897         * text-coding.c: Change enum eol_type to eol_type_t.
2898
2899 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2900
2901         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
2902         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
2903
2904         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
2905         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
2906
2907 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2908
2909         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
2910         `ideograph-daikanwa'.
2911
2912         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
2913         (Vcharset_ucs_bmp): Likewise.
2914         (Vcharset_mojikyo): Add new extern variable definition.
2915         (Vcharset_latin_iso8859_2): Deleted because it is not used.
2916         (Vcharset_latin_iso8859_3): Likewise.
2917         (Vcharset_latin_iso8859_4): Likewise.
2918         (Vcharset_latin_iso8859_9): Likewise.
2919         (Vcharset_latin_viscii_lower): Likewise.
2920         (Vcharset_latin_viscii_upper): Likewise.
2921         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
2922         `mojikyo' code-point is used to decode.
2923         (encode_char_2): New function [to convert `mojikyo' code-point to
2924         Mojikyo font encoding].
2925         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
2926         (breakup_char_1): Likewise.
2927         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
2928
2929 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2930
2931         * text-coding.c (Fmake_coding_system): Add document about
2932         `disable-composition' property.
2933
2934 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2935
2936         * text-coding.c (Qdisable_composition): New variable; delete
2937         `Qcomposite'.
2938         (Fmake_coding_system): Add new property `disable-composite';
2939         delete property `composite'.
2940         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
2941         instead of `!CODING_SYSTEM_COMPOSITE'.
2942         (syms_of_file_coding): Add new symbol `disable-composition';
2943         delete symbol `composite'.
2944
2945         * file-coding.h (struct Lisp_Coding_System): Add
2946         `disable_composition'; delete `enable_composition'.
2947         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
2948         `CODING_SYSTEM_COMPOSITE'.
2949         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
2950         `XCODING_SYSTEM_COMPOSITE'.
2951
2952 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2953
2954         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2955         to 0.15.
2956
2957 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2958
2959         * text-coding.c (Qcomposite): New variable.
2960         (Fmake_coding_system): Add new property `composite'.
2961         (struct decoding_stream): Add `combined_char_count',
2962         `combined_chars' and `combining_table' in UTF-2000.
2963         (COMPOSE_FLUSH_CHARS): New macro.
2964         (COMPOSE_ADD_CHAR): New macro.
2965         (reset_decoding_stream): Reset `str->combined_char_count' and
2966         `str->combining_table' in UTF-2000.
2967         (decode_coding_iso2022): Modify for character-decomposition.
2968         (syms_of_file_coding): Add new symbol `composite'.
2969
2970 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2971
2972         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
2973         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
2974         of `Vcharacter_composition_table' if `->decomposition' property
2975         has only 1 element.
2976         (Qlatin_tcvn5712): New variable.
2977         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
2978         (complex_vars_of_mule_charset): Add new coded-charset
2979         `latin-tcvn5712'.
2980
2981         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
2982
2983 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2984
2985         * file-coding.h (struct Lisp_Coding_System): Add
2986         `enable_composition'.
2987         (CODING_SYSTEM_COMPOSITE): New macro.
2988         (XCODING_SYSTEM_COMPOSITE): New macro.
2989
2990 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
2991
2992         * mule-canna.c (c2mu): Fix problem with UTF-2000.
2993
2994 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
2995
2996         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
2997         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
2998
2999 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
3000
3001         * mule-charset.c (Vcharset_mojikyo): New variable.
3002         (Fdefine_char): Don't use coded-charset which does not have
3003         non-builtin character range to allocate character-id.
3004         (Qmojikyo): New variable.
3005         (syms_of_mule_charset): Add new symbol `mojikyo'.
3006         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
3007
3008         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
3009         (LEADING_BYTE_MOJIKYO): New macro.
3010         (MIN_CHAR_MOJIKYO): New macro.
3011         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
3012         (MAX_CHAR_MOJIKYO): New macro.
3013
3014 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
3015
3016         * mule-charset.c (remove_char_attribute): Fixed.
3017
3018 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
3019
3020         * mule-charset.c (remove_char_attribute): New function.
3021         (Fremove_char_attribute): New function.
3022         (encode_builtin_char_1): Comment out builtin-support for
3023         greek-iso8859-7 and cyrillic-iso8859-5.
3024         (Fdecode_char): Check `code' is an integer.
3025         (syms_of_mule_charset): Add `remove-char-attribute'.
3026         (MIN_CHAR_GREEK): Deleted.
3027         (MAX_CHAR_GREEK): Likewise.
3028         (MIN_CHAR_CYRILLIC): Likewise.
3029         (MAX_CHAR_CYRILLIC): Likewise.
3030         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
3031         MAX_CHAR_GREEK for `greek-iso8859-7'.
3032
3033         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
3034         (MAX_CHAR_GREEK): Likewise.
3035         (MIN_CHAR_CYRILLIC): Likewise.
3036         (MAX_CHAR_CYRILLIC): Likewise.
3037
3038 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
3039
3040         * mule-charset.c (Fdefine_char): Fix problem when new code-point
3041         format is used without `ucs' property.
3042         (Fdecode_char): Fix problem with GR representation.
3043         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
3044         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
3045
3046 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3047
3048         * mule-charset.c (make_builtin_char): New function.
3049         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
3050         (Fset_charset_mapping_table): Modify for new representation of
3051         code-point.
3052         (Fdecode_char): New function.
3053         (syms_of_mule_charset): Add new builtin function `decode-char' in
3054         UTF-2000.
3055
3056         * char-ucs.h (make_builtin_char): New prototype.
3057         (DECODE_CHAR): New inline function.
3058         (MAKE_CHAR): Use `DECODE_CHAR'.
3059
3060 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
3061
3062         * text-coding.c (parse_charset_conversion_specs): Use
3063         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
3064         `XCHARSET_TYPE'.
3065         (iso2022_designate): Likewise.
3066
3067         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
3068         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
3069
3070         * mule-charset.c (Vcharset_ucs): New variable.
3071         (print_charset): Change design; use `CHARSET_CHARS' and
3072         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
3073         (make_charset): Change signature to specify `chars' and
3074         `dimension' instead of `type'.
3075         (range_charset_code_point): Modify for 256^n-set.
3076         (encode_builtin_char_1): Encode as `ucs' in default.
3077         (Fmake_charset): Modify for `make_charset'.
3078         (Fmake_reverse_direction_charset): Likewise.
3079         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
3080         UTF-2000.
3081         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
3082         for `make_charset'.
3083
3084         * char-ucs.h (Vcharset_ucs): New variable.
3085         (LEADING_BYTE_UCS): New macro.
3086         (struct Lisp_Charset): Delete `type'; change type of `dimension'
3087         and `chars' to `unsigned short' from `unsigned int'.
3088         (CHARSET_TYPE): Deleted.
3089         (XCHARSET_TYPE): Deleted.
3090
3091 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
3092
3093         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
3094
3095         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
3096         (ENCODE_CHAR): New macro.
3097
3098 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3099
3100         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3101         to 0.14 (Kawachi-Katakami).
3102
3103 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3104
3105         * text-coding.c (char_encode_shift_jis): Modify for
3106         `charset_code_point'.
3107         (char_encode_iso2022): Likewise.
3108
3109         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
3110         (integer) instead of list of <Lisp_Object>s (integers) as the
3111         format of code-point of a coded-charset.
3112         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
3113         (encode_builtin_char_1): New function; delete
3114         `split_builtin_char'.
3115         (charset_code_point): Return <int> instead of <Lisp_Object>.
3116         (Fsplit_char): Don't use `SPLIT_CHAR'.
3117
3118         * char-ucs.h (encode_builtin_char_1): New prototype; delete
3119         prototype for `split_builtin_char'.
3120         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
3121         (charset_code_point): Likewise.
3122         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
3123         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
3124
3125 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
3126
3127         * mule-charset.c (complex_vars_of_mule_charset): Don't define
3128         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
3129
3130 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3131
3132         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
3133
3134         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
3135         (MAX_CHAR_OBS_94x94): Deleted.
3136
3137 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3138
3139         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
3140
3141         * char-ucs.h (MAX_CHAR_BMP): New macro.
3142
3143 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3144
3145         * text-coding.c: Sync with r21-2-24.
3146
3147 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
3148
3149         * file-coding.c: Modify for UTF-2000.
3150
3151 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3152
3153         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3154         to 0.13 (Takaida).
3155
3156 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3157
3158         * mule-charset.c (split_builtin_char): Delete builtin support for
3159         `katakana-jisx0201'.
3160         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
3161         BMP area in builtin representation.
3162
3163         * char-ucs.h (MAKE_CHAR): Delete builtin support for
3164         `Vcharset_katakana_jisx0201'.
3165
3166 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
3167
3168         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
3169         (Qisolated): New variable.
3170         (Qinitial): New variable.
3171         (Qmedial): New variable.
3172         (Qfinal): New variable.
3173         (Qvertical): New variable.
3174         (Qsmall): New variable.
3175         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
3176         `Qvertical' and `Qsmall'.
3177         (Qmojikyo_pj_[1 .. 21]): New variable.
3178         (syms_of_mule_charset): Add new symbols `isolated', `initial',
3179         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
3180         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
3181         .. 21]'.
3182
3183 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
3184
3185         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
3186         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
3187         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
3188
3189 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3190
3191         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
3192         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
3193         BMP.
3194         (Qjapanese_jisx0208_1990): New variable.
3195         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
3196         (complex_vars_of_mule_charset): Add new coded-charset
3197         `japanese-jisx0208-1990'.
3198
3199         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
3200         (MIN_CHAR_JIS_X0208_1990): New macro.
3201         (MAX_CHAR_JIS_X0208_1990): New macro.
3202
3203 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3204
3205         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
3206         coded-charset is not found.
3207
3208 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3209
3210         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
3211         (Fdefine_char): Use `Fmake_char'.
3212
3213 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3214
3215         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
3216         (Vcharset_hiragana_jisx0208): Deleted.
3217         (Vcharset_katakana_jisx0208): Deleted.
3218         (Qideograph_daikanwa): New variable.
3219         (Qhiragana_jisx0208): Deleted.
3220         (Qkatakana_jisx0208): Deleted.
3221         (split_builtin_char): Split `ideograph-daikanwa'.
3222         (Fsplit_char): New implementation for UTF-2000.
3223         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
3224         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
3225         (complex_vars_of_mule_charset): Add new coded-charset
3226         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
3227         `katakana-jisx0208'.
3228
3229         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
3230         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
3231         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
3232         (MIN_CHAR_DAIKANWA): New macro.
3233         (MAX_CHAR_DAIKANWA): New macro.
3234
3235 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3236
3237         * data.c (Fstring_to_number): Don't recognize floating point if
3238         base is not 10.
3239
3240 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3241
3242         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
3243
3244 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3245
3246         * mule-charset.c (Qsquare): New variable.
3247         (to_char_code): Add `Qsquare'.
3248         (syms_of_mule_charset): Add new symbol `square'.
3249
3250 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3251
3252         * mule-charset.c (Qcircle): New variable.
3253         (to_char_code): Add `Qcircle'.
3254         (syms_of_mule_charset): Add new symbol `circle'.
3255
3256 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3257
3258         * mule-charset.c (Qfont): New variable.
3259         (to_char_code): Add `Qfont'.
3260         (syms_of_mule_charset): Add new symbol `font'.
3261
3262 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3263
3264         * mule-charset.c (Qsub): New variable.
3265         (to_char_code): Add `Qsub'.
3266         (syms_of_mule_charset): Add new symbol `sub'.
3267
3268 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3269
3270         * mule-charset.c (Fput_char_attribute): Convert each element of
3271         VALUE to GL position if ATTRIBUTE is a GR-set,
3272
3273 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3274
3275         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
3276         coded-charset is a GR-set.
3277
3278 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3279
3280         * mule-charset.c (Fput_char_attribute): Check each element of
3281         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
3282
3283 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3284
3285         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
3286         UTF-2000.
3287         (Qethiopic_ucs): New variable in UTF-2000.
3288         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
3289         (complex_vars_of_mule_charset): Add new coded-charset
3290         `ethiopic-ucs' in UTF-2000.
3291
3292         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
3293         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
3294         9)'.
3295         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
3296         10)'.
3297         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
3298
3299 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
3300
3301         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
3302         `ascii'.
3303
3304 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3305
3306         * mule-charset.c (Vcharacter_variant_table): New variable.
3307         (Q_ucs): New variable.
3308         (Fchar_variants): New function.
3309         (Fput_char_attribute): Register `->ucs' value to
3310         `Vcharacter_variant_table'.
3311         (syms_of_mule_charset): Add new function `char-variants' and new
3312         symbol `->ucs'.
3313         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
3314
3315 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3316
3317         * mule-charset.c (get_char_code_table): Allow negative character
3318         code.
3319         (put_char_code_table): Likewise.
3320         (Vcharacter_composition_table): New variable.
3321         (Q_decomposition): New variable.
3322         (Qwide): New variable.
3323         (Qnarrow): New variable.
3324         (Qcompat): New variable.
3325         (QnoBreak): New variable.
3326         (Qsuper): New variable.
3327         (Qfraction): New variable.
3328         (to_char_code): New function.
3329         (Fget_composite_char): New function.
3330         (Fput_char_attribute): Register `->decomposition' value to
3331         `Vcharacter_composition_table'.
3332         (syms_of_mule_charset): Add new function `get-composite-char', new
3333         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
3334         `super' and `fraction'.
3335         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
3336
3337 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3338
3339         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
3340         character; copy the return value.
3341
3342 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3343
3344         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
3345
3346         * mule-charset.c (range_charset_code_point): Must use make_int.
3347         (split_builtin_char): New function.
3348
3349 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3350
3351         * mule-charset.c (char_byte_table): Change name from
3352         "char-code-table" to "char-byte-table".
3353         (mark_char_code_table): New function.
3354         (char_code_table_equal): New function.
3355         (char_code_table_hash): New function.
3356         (char_code_table_description): New constant.
3357         (char_code_table): New type.
3358         (make_char_code_table): New function.
3359         (copy_char_code_table): New function.
3360         (get_char_code_table): Modify for `char_code_table' type.
3361         (put_char_code_table): Likewise.
3362         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
3363         (Kashiwara).
3364
3365         * char-ucs.h (char_code_table): New type.
3366         (XCHAR_CODE_TABLE): New macro.
3367         (XSETCHAR_CODE_TABLE): New macro.
3368         (CHAR_CODE_TABLE_P): New macro.
3369         (GC_CHAR_CODE_TABLE_P): New macro.
3370         (struct Lisp_Char_Code_Table): New structure.
3371
3372 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3373
3374         * mule-charset.c (Fmake_charset): Setup byte_offset for
3375         {94|96}^n-set.
3376
3377 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3378
3379         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
3380         character.
3381
3382 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3383
3384         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
3385         is found.
3386
3387 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3388
3389         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
3390         charset, it is regarded as a charset.
3391         (put_char_attribute): New function in UTF-2000.
3392         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
3393         charset, mapping-table of the charset is modified.
3394         (Fdefine_char): New function in UTF-2000.
3395         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
3396         `Fput_char_attribute'.
3397         (syms_of_mule_charset): Add new function `define-char' and new
3398         symbol `ucs' in UTF-2000.
3399         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
3400
3401 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3402
3403         * mule-charset.c (Fcharset_name): Define `byte_offset' in
3404         non-UTF-2000 configuration.
3405
3406 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3407
3408         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
3409         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
3410
3411         * mule-charset.c (mark_charset): `cs->encoding_table' has been
3412         deleted.
3413         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
3414         (Fset_charset_mapping_table): Likewise.
3415
3416         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
3417         (CHARSET_ENCODING_TABLE): Delete.
3418         (XCHARSET_ENCODING_TABLE): Delete.
3419         (charset_code_point): New interface.
3420
3421 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3422
3423         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
3424         instead of `charset_get_byte1' and `charset_get_byte2'.
3425
3426         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
3427         (charset_get_byte2): Deleted.
3428
3429 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3430
3431         * char-ucs.h (SPLIT_CHAR): New inline function.
3432         (breakup_char_1): Use `SPLIT_CHAR'.
3433
3434         * mule-charset.c (range_charset_code_point): New function.
3435         (charset_code_point): New function.
3436
3437         * char-ucs.h (range_charset_code_point): New interface.
3438         (breakup_char_1): Use `range_charset_code_point'.
3439
3440 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3441
3442         * mule-charset.c (Fmake_charset): Delete unused local variable
3443         `code_offset'.
3444
3445         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
3446         (breakup_char_1): Find a charset and code-point in
3447         `Vcharacter_attribute_table'.
3448
3449 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3450
3451         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3452         to 0.10 (Yao).
3453
3454 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
3455
3456         * mule-charset.c (Vcharacter_attribute_table): New variable.
3457         (Fchar_attribute_alist): New function.
3458         (Fget_char_attribute): New function.
3459         (Fput_char_attribute): New function.
3460         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
3461         too.
3462         (syms_of_mule_charset): Add new function `char-attribute-alist',
3463         `get-char-attribute' and `put-char-attribute'.
3464         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
3465
3466 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
3467
3468         * mule-charset.c (Fmake_charset): Just use
3469         `get_unallocated_leading_byte'.
3470
3471         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
3472         sets; don't use final-byte based number for private sets.
3473
3474 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3475
3476         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
3477         integer.
3478
3479 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3480
3481         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3482         to 0.9.
3483
3484 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3485
3486         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
3487         of `CHAR_LEADING_BYTE' in UTF-2000.
3488
3489         * insdel.c (find_charsets_in_bufbyte_string): Use
3490         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
3491         (find_charsets_in_emchar_string): Likewise.
3492
3493         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
3494         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
3495
3496         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
3497         (CHAR_CHARSET_ID): New macro.
3498
3499 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3500
3501         * chartab.c (get_char_table): Don't use type `Charset_ID' for
3502         charset-id - MIN_LEADING_BYTE.
3503         (put_char_table): Likewise.
3504
3505 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3506
3507         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
3508         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
3509         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
3510         (CHARSET_ID_OFFSET): New macro.
3511         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
3512         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
3513         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
3514         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
3515         4).
3516         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
3517         5).
3518         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
3519         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
3520         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
3521         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
3522         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
3523
3524 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3525
3526         * mule-charset.c (next_allocated_leading_byte): New variable in
3527         UTF-2000.
3528         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
3529         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
3530         (get_unallocated_leading_byte): Simply use
3531         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
3532         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
3533         UTF-2000.
3534
3535         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
3536         (MAX_LEADING_BYTE_PRIVATE): New macro.
3537         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
3538         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
3539
3540 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3541
3542         * mule-charset.c (Fmake_charset): Allocate final-byte based
3543         charset-id for 94-set, 96-set and 94x94-set.
3544
3545 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3546
3547         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
3548         ambiguous `else'.
3549         (Fmake_charset): Likewise.
3550         (complex_vars_of_mule_charset): Modify the font registry of
3551         `ucs-bmp' not to match `Ethiopic-Unicode'.
3552
3553 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3554
3555         * mule-charset.c (complex_vars_of_mule_charset): Add font
3556         registory of `ucs-bmp'.
3557
3558 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3559
3560         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
3561         coded-charsets in `default-coded-charset-priority-list' when
3562         breaking up a character.
3563
3564         * mule-charset.c (Vcharset_latin_viscii): New variable.
3565         (Qlatin_viscii): New variable.
3566         (make_charset): Don't use `decoding_table'.
3567         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
3568         byte_offset.
3569         (Fset_charset_mapping_table): New implementation.
3570         (syms_of_mule_charset): Add new symbol `latin-viscii'.
3571         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
3572         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
3573         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
3574         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
3575         charset `latin_viscii'.
3576
3577         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
3578         (CHARSET_TYPE_94X94): Change to 1 from 2.
3579         (CHARSET_TYPE_96): Change to 2 from 1.
3580         (CHARSET_TYPE_128): New macro.
3581         (CHARSET_TYPE_128X128): Change to 5 from 4.
3582         (CHARSET_TYPE_256): New macro.
3583         (CHARSET_TYPE_256X256): Change to 7 from 5.
3584         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
3585
3586 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3587
3588         * text-coding.c (char_encode_shift_jis): Refer
3589         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
3590         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
3591
3592         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
3593         (char_byte_table_equal): New function in UTF-2000.
3594         (char_byte_table_hash): New function in UTF-2000.
3595         (char_byte_table_description): New constant in UTF-2000.
3596         (char_byte_table): New type in UTF-2000.
3597         (make_char_byte_table): New function in UTF-2000.
3598         (copy_char_byte_table): New function in UTF-2000.
3599         (make_char_code_table): New macro in UTF-2000.
3600         (get_char_code_table): New function in UTF-2000.
3601         (put_char_code_table): New function in UTF-2000.
3602         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
3603         (charset_description): Add setting in UTF-2000.
3604         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
3605         `CHARSET_TO_BYTE1_TABLE(cs)'.
3606         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
3607         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
3608         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
3609         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
3610         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
3611         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
3612         `CHARSET_TO_BYTE2_TABLE(cs)'.
3613
3614         * char-ucs.h (char_byte_table): New type.
3615         (XCHAR_BYTE_TABLE): New macro.
3616         (XSETCHAR_BYTE_TABLE): New macro.
3617         (CHAR_BYTE_TABLE_P): New macro.
3618         (GC_CHAR_BYTE_TABLE_P): New macro.
3619         (struct Lisp_Char_Byte_Table): New structure.
3620         (get_char_code_table): New interface.
3621         (Emchar_to_byte_table): Deleted.
3622         (get_byte_from_character_table): Deleted.
3623         (struct Lisp_Charset): Add `encoding_table'; delete
3624         `to_byte1_table' and `to_byte2_table'.
3625         (CHARSET_ENCODING_TABLE): New macro.
3626         (CHARSET_TO_BYTE1_TABLE): Deleted.
3627         (CHARSET_TO_BYTE2_TABLE): Deleted.
3628         (XCHARSET_ENCODING_TABLE): New macro.
3629         (XCHARSET_TO_BYTE1_TABLE): Deleted.
3630         (XCHARSET_TO_BYTE2_TABLE): Deleted.
3631
3632 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
3633
3634         * mule-charset.c (syms_of_mule_charset): Delete charset alias
3635         `vietnamese-viscii-*'.
3636
3637 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
3638
3639         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
3640         (Qvietnamese_viscii_upper): New variable.
3641         (Fdefine_charset_alias): New function.
3642         (syms_of_mule_charset): Add new function `define-charset-alias'.
3643         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
3644         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
3645         `latin-viscii-*'.
3646
3647 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
3648
3649         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
3650         (MAX_CHAR_OBS_94x94): New macro.
3651         (breakup_char_1): Support obsolete XEmacs-UCS private code space
3652         for 94x94 sets.
3653
3654         * mule-charset.c (put_byte_from_character_table): Change unit size
3655         from 128 to 256.
3656         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
3657         not defined.
3658         (Fmake_reverse_direction_charset): Modify dummy argument of
3659         `make_charset' for non-UTF-2000 environment.
3660
3661 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3662
3663         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
3664
3665         * mule-charset.c (destroy_byte_from_character_table): New macro.
3666         (latin_jisx0201_to_ucs): Deleted.
3667         (latin_iso8859_2_to_ucs): Deleted.
3668         (latin_iso8859_3_to_ucs): Deleted.
3669         (latin_iso8859_4_to_ucs): Deleted.
3670         (latin_iso8859_9_to_ucs): Deleted.
3671         (latin_viscii_lower_to_ucs): Deleted.
3672         (latin_viscii_upper_to_ucs): Deleted.
3673         (mark_charset): Mark `cs->decoding_table'.
3674         (Fcharset_mapping_table): Fix DOC-string.
3675         (Fset_charset_mapping_table): New function.
3676         (syms_of_mule_charset): Add nwe function
3677         `set-charset-mapping-table'.
3678         (complex_vars_of_mule_charset): Don't setup and use
3679         `latin_*_to_ucs'.
3680
3681 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3682
3683         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
3684         charset.
3685
3686 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3687
3688         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
3689         (Vcharset_katakana_jisx0208): New variable.
3690         (Qhiragana_jisx0208): New variable.
3691         (Qkatakana_jisx0208): New variable.
3692         (make_charset): Add new argument `byte_offset'.
3693         (charset_get_byte1): Modify for new coded-charset definition; use
3694         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
3695         `XCHARSET_BYTE_OFFSET'.
3696         (Fmake_charset): Modify for `make_charset'.
3697         (Fmake_reverse_direction_charset): Likewise.
3698         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
3699         `katakana-jisx0208'.
3700         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
3701         `.'  in font registry of charset `katakana-jisx0201',
3702         `latin-jisx0201', `vietnamese-viscii-lower' and
3703         `vietnamese-viscii-upper'; modify DOC-string of charset
3704         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
3705         registry of charset `japanese-jisx0208' not to use font for JIS
3706         X0208:1990; add new charset `hiragana-jisx0208' and
3707         `katakana-jisx0208'.
3708
3709         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
3710         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
3711         (struct Lisp_Charset): Add `byte_offset'.
3712         (CHARSET_BYTE_OFFSET): New macro.
3713         (XCHARSET_UCS_MIN): New macro.
3714         (XCHARSET_UCS_MAX): New macro.
3715         (XCHARSET_CODE_OFFSET): New macro.
3716         (XCHARSET_BYTE_OFFSET): New macro.
3717         (MIN_CHAR_HIRAGANA): New macro.
3718         (MAX_CHAR_HIRAGANA): New macro.
3719         (MIN_CHAR_KATAKANA): New macro.
3720         (MAX_CHAR_KATAKANA): New macro.
3721         (MAKE_CHAR): Modify for new coded-charset definition; use
3722         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
3723         `XCHARSET_BYTE_OFFSET'.
3724
3725 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3726
3727         * mule-charset.c (CHAR96): Deleted.
3728         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
3729         <Lisp_Object>.
3730         (latin_iso8859_2_to_ucs): Likewise.
3731         (latin_iso8859_3_to_ucs): Likewise.
3732         (latin_iso8859_4_to_ucs): Likewise.
3733         (latin_iso8859_9_to_ucs): Likewise.
3734         (latin_viscii_lower_to_ucs): Likewise.
3735         (latin_viscii_upper_to_ucs): Likewise.
3736         (latin_tcvn5712_to_ucs): Commented out.
3737         (make_charset): Change type of argument `decoding_table' from
3738         <Emchar*> to <Lisp_Object> [vector of characters].
3739         (Fmake_charset): Modify for `make_charset'.
3740         (Fmake_reverse_direction_charset): Likewise.
3741         (Fcharset_mapping_table): New function in UTF-2000.
3742         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
3743         UTF-2000.
3744         (complex_vars_of_mule_charset): Modify for type change of
3745         `*_to_ucs'; modify for `make_charset'.
3746
3747         * char-ucs.h (struct Lisp_Charset): Change type of
3748         `decoding_table' from <Emchar*> to <Lisp_Object>.
3749         (MAKE_CHAR): Modify for new specification of `decoding_table'.
3750
3751 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
3752
3753         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
3754         error with non-UTF-2000-Mule.
3755
3756 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
3757
3758         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
3759         in lisp again].
3760         (Vcharset_chinese_cns11643_4): Likewise.
3761         (Vcharset_chinese_cns11643_5): Likewise.
3762         (Vcharset_chinese_cns11643_6): Likewise.
3763         (Vcharset_chinese_cns11643_7): Likewise.
3764         (Qchinese_cns11643_3): Likewise.
3765         (Qchinese_cns11643_4): Likewise.
3766         (Qchinese_cns11643_5): Likewise.
3767         (Qchinese_cns11643_6): Likewise.
3768         (Qchinese_cns11643_7): Likewise.
3769         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
3770         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
3771         and `chinese-cns11643-7' to lisp/mule/chinese.el.
3772         (complex_vars_of_mule_charset): Likewise.
3773
3774 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3775
3776         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
3777         96-set.
3778         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
3779         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
3780
3781 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
3782
3783         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
3784         0xFF60.
3785         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
3786         (breakup_char_1): Likewise.
3787
3788         * text-coding.c (char_encode_iso2022): Keep designated charsets if
3789         one of them includes the specified character.
3790
3791 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3792
3793         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
3794
3795 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3796
3797         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
3798
3799 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3800
3801         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
3802         definition for non-UTF-2000 Mule.
3803         (latin_iso8859_3_to_ucs): Likewise.
3804         (latin_iso8859_4_to_ucs): Likewise.
3805         (latin_iso8859_9_to_ucs): Likewise.
3806         (latin_jisx0201_to_ucs): Likewise.
3807         (MIN_CHAR_THAI): Likewise.
3808         (MAX_CHAR_THAI): Likewise.
3809         (MIN_CHAR_GREEK): Likewise.
3810         (MAX_CHAR_GREEK): Likewise.
3811         (MIN_CHAR_HEBREW): Likewise.
3812         (MAX_CHAR_HEBREW): Likewise.
3813         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
3814         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
3815         (MIN_CHAR_CYRILLIC): Likewise.
3816         (MAX_CHAR_CYRILLIC): Likewise.
3817
3818 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3819
3820         * char-ucs.h (breakup_char_1): Use
3821         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
3822         thai-tis620 and katakana-jisx0201 area.
3823
3824 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3825
3826         * char-ucs.h (breakup_char_1): Use
3827         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
3828         area.
3829
3830         * text-coding.c (reset_encoding_stream): Fixed.
3831         (char_encode_ucs4): Delete `& 255'.
3832
3833         * char-ucs.h (breakup_char_1): Use
3834         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
3835
3836 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3837
3838         * file-coding.c (Fmake_coding_system): Don't set up
3839         `codesys->fixed.size'.
3840         (encode_coding_no_conversion): Don't refer
3841         `str->codesys->fixed.size'.
3842
3843 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3844
3845         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
3846         (latin_a_char_to_byte1): Deleted.
3847         (latin_a_char_to_byte2): Deleted.
3848
3849 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3850
3851         * mule-charset.c (make_charset): Add new argument `ucs_min',
3852         `ucs_max' and `code_offset'.
3853         (charset_get_byte1): New implementation [delete specific charset
3854         depended implementations].
3855         (Fmake_charset): Modify for `make_charset'.
3856         (Fmake_reverse_direction_charset): Likewise.
3857         (complex_vars_of_mule_charset): Likewise.
3858
3859         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
3860         `code_offset'.
3861         (CHARSET_UCS_MIN): New macro.
3862         (CHARSET_UCS_MAX): New macro.
3863         (CHARSET_CODE_OFFSET): New macro.
3864         (MAKE_CHAR): Delete charset depended definitions [except
3865         katakana-jisx0201].
3866
3867 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
3868
3869         * char-ucs.h (breakup_char_1): Use
3870         `Vdefault_coded_charset_priority_list' for C0-Controls,
3871         Basic-Latin, C1-Controls and Latin-1-Supplement area.
3872
3873 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3874
3875         * char-ucs.h (charset_get_byte1): New function.
3876         (XCHARSET_GET_BYTE1): Deleted.
3877         (charset_get_byte2): New function.
3878         (XCHARSET_GET_BYTE2): Deleted.
3879         (Vdefault_coded_charset_priority_list): New external variable.
3880         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
3881         `Vdefault_preferred_coded_charset_list'.
3882
3883         * mule-charset.c (charset_get_byte1): New function.
3884         (charset_get_byte2): New function.
3885         (Vdefault_coded_charset_priority_list): New variable.
3886         (vars_of_mule_charset): Add new variable
3887         `default-coded-charset-priority-list'.
3888
3889 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3890
3891         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
3892         (XCHARSET_GET_BYTE2): New inline function.
3893         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
3894         `XCHARSET_GET_BYTE2'.
3895
3896 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3897
3898         * mule-charset.c (make_charset): Initialize
3899         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
3900         NULL if table is not defined.
3901
3902 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3903
3904         * text-coding.c (char_encode_shift_jis): Use
3905         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
3906         `ucs_to_latin_jisx0201'.
3907
3908         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
3909         (ucs_to_latin_iso8859_2): Deleted.
3910         (ucs_to_latin_iso8859_3): Deleted.
3911         (ucs_to_latin_iso8859_4): Deleted.
3912         (ucs_to_latin_iso8859_9): Deleted.
3913         (ucs_to_latin_viscii_lower): Deleted.
3914         (ucs_to_latin_viscii_upper): Deleted.
3915         (ucs_to_latin_tcvn5712): Deleted.
3916         (make_charset): Add new argument `decoding_table'; set up
3917         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
3918         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
3919         `decoding_table' is defined in UTF-2000.
3920         (Fmake_charset): Modify for `make_charset'.
3921         (Fmake_reverse_direction_charset): Likewise.
3922         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
3923         and `GENERATE_96_SET'.
3924
3925         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
3926         (ucs_to_latin_jisx0201): Deleted.
3927         (latin_iso8859_2_to_ucs): Deleted.
3928         (ucs_to_latin_iso8859_2): Deleted.
3929         (latin_iso8859_3_to_ucs): Deleted.
3930         (ucs_to_latin_iso8859_3): Deleted.
3931         (latin_iso8859_4_to_ucs): Deleted.
3932         (ucs_to_latin_iso8859_4): Deleted.
3933         (latin_iso8859_9_to_ucs): Deleted.
3934         (ucs_to_latin_iso8859_9): Deleted.
3935         (latin_viscii_lower_to_ucs): Deleted.
3936         (ucs_to_latin_viscii_lower): Deleted.
3937         (latin_viscii_upper_to_ucs): Deleted.
3938         (ucs_to_latin_viscii_upper): Deleted.
3939         (struct Lisp_Charset): Renamed `encoding_table' to
3940         `to_byte1_table'; add `to_byte2_table'.
3941         (CHARSET_DECODING_TABLE): New macro.
3942         (CHARSET_TO_BYTE1_TABLE): New macro.
3943         (CHARSET_TO_BYTE2_TABLE): New macro.
3944         (XCHARSET_DECODING_TABLE): New macro.
3945         (XCHARSET_TO_BYTE1_TABLE): New macro.
3946         (XCHARSET_TO_BYTE2_TABLE): New macro.
3947         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
3948         tables.
3949         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
3950         don't use `ucs_to_*' tables.
3951
3952 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3953
3954         * text-coding.c (Fmake_coding_system): Don't set up
3955         `codesys->fixed.size'.
3956         (encode_coding_no_conversion): Use `if' instead of `switch'.
3957
3958         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
3959
3960 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3961
3962         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
3963         (Fmake_charset): Modify for `make_charset'.
3964         (Fmake_reverse_direction_charset): Likewise.
3965         (complex_vars_of_mule_charset): Likewise.
3966
3967 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3968
3969         * text-coding.c (char_encode_shift_jis): Use table
3970         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
3971
3972 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3973
3974         * text-coding.c (text_encode_generic): Use `if' instead of
3975         `switch'.
3976         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
3977         decode JIS-Latin.
3978
3979 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3980
3981         * text-coding.c (encode_coding_sjis): Deleted.
3982         (char_encode_shift_jis): New function.
3983         (char_finish_shift_jis): New function.
3984         (reset_encoding_stream): Set up `encode_char' and `finish' for
3985         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
3986         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
3987         (char_encode_utf8): Treat `eol_type'.
3988
3989 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3990
3991         * file-coding.c (decode_coding_iso2022): Use
3992         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
3993
3994 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3995
3996         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3997         to 0.7 (Hirano).
3998
3999 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4000
4001         * char-lb.h (CHAR_COLUMNS): New macro.
4002
4003 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4004
4005         * text-coding.c (char_encode_ucs4): New function.
4006         (char_finish_ucs4): New function.
4007         (encode_coding_ucs4): Deleted.
4008         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
4009         (text_encode_generic): Delete local variable `charset' and `half'.
4010         (ucs_to_mule_table): Deleted.
4011         (mule_to_ucs_table): Deleted.
4012         (Fset_ucs_char): Deleted.
4013         (ucs_to_char): Deleted.
4014         (Fucs_char): Deleted.
4015         (Fset_char_ucs): Deleted.
4016         (Fchar_ucs): Deleted.
4017         (decode_ucs4): Deleted.
4018         (mule_char_to_ucs4): Deleted.
4019         (encode_ucs4): Deleted.
4020         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
4021         (decode_coding_utf8): Likewise.
4022         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
4023         (char_encode_iso2022): Fixed.
4024         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
4025         `Fset_char_ucs' and `Fchar_ucs'.
4026         (complex_vars_of_file_coding): Don't initialize
4027         `ucs_to_mule_table'.
4028
4029         * objects-tty.c (tty_initialize_font_instance): Don't use
4030         `XCHARSET_COLUMNS'.
4031
4032         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
4033         UTF-2000.
4034
4035         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
4036         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4037
4038         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
4039         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4040         (emchar_string_displayed_columns): Likewise.
4041
4042         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
4043         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4044         (string_column_at_point): Likewise.
4045         (Fmove_to_column): Likewise.
4046
4047         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
4048         `encoding_table' and `decoding_table'.
4049         (CHARSET_REP_BYTES): Deleted.
4050         (XCHARSET_REP_BYTES): Deleted.
4051         (XCHARSET_COLUMNS): Deleted.
4052         (CHAR_COLUMNS): New macro.
4053         (lookup_composite_char): Deleted unconditionally.
4054         (composite_char_string): Likewise.
4055
4056 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4057
4058         * char-ucs.h (Emchar_to_byte_table): New type.
4059         (get_byte_from_character_table): New function interface.
4060         (Vcharset_latin_jisx0201): New variable.
4061         (latin_jisx0201_to_ucs): New variable.
4062         (ucs_to_latin_jisx0201): New variable.
4063         (Vcharset_latin_iso8859_2): New variable.
4064         (latin_iso8859_2_to_ucs): New variable.
4065         (ucs_to_latin_iso8859_2): New variable.
4066         (Vcharset_latin_iso8859_3): New variable.
4067         (latin_iso8859_3_to_ucs): New variable.
4068         (ucs_to_latin_iso8859_3): New variable.
4069         (Vcharset_latin_iso8859_4): New variable.
4070         (latin_iso8859_4_to_ucs): New variable.
4071         (ucs_to_latin_iso8859_4): New variable.
4072         (Vcharset_latin_iso8859_9): New variable.
4073         (latin_iso8859_9_to_ucs): New variable.
4074         (ucs_to_latin_iso8859_9): New variable.
4075         (Vcharset_latin_viscii_lower): New variable.
4076         (latin_viscii_lower_to_ucs): New variable.
4077         (ucs_to_latin_viscii_lower): New variable.
4078         (Vcharset_latin_viscii_upper): New variable.
4079         (latin_viscii_upper_to_ucs): New variable.
4080         (ucs_to_latin_viscii_upper): New variable.
4081         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
4082         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
4083         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
4084         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
4085         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
4086         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
4087         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
4088         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
4089         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
4090         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
4091
4092         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
4093         (Vcharset_latin_viscii_upper): New variable.
4094         (make_byte_from_character_table): New function.
4095         (put_byte_from_character_table): New function.
4096         (get_byte_from_character_table): New function.
4097         (CHAR96): New macro.
4098         (ucs_to_latin_jisx0201): New variable.
4099         (latin_jisx0201_to_ucs): New variable.
4100         (ucs_to_latin_iso8859_2): New variable.
4101         (latin_iso8859_2_to_ucs): New variable.
4102         (ucs_to_latin_iso8859_3): New variable.
4103         (latin_iso8859_3_to_ucs): New variable.
4104         (ucs_to_latin_iso8859_4): New variable.
4105         (latin_iso8859_4_to_ucs): New variable.
4106         (ucs_to_latin_iso8859_9): New variable.
4107         (latin_iso8859_9_to_ucs): New variable.
4108         (ucs_to_latin_viscii_lower): New variable.
4109         (latin_viscii_lower_to_ucs): New variable.
4110         (ucs_to_latin_viscii_upper): New variable.
4111         (latin_viscii_upper_to_ucs): New variable.
4112         (ucs_to_latin_tcvn5712): New variable.
4113         (latin_tcvn5712_to_ucs): New variable.
4114         (Qlatin_viscii_lower): New variable.
4115         (Qlatin_viscii_upper): New variable.
4116         (syms_of_mule_charset): Set up new symbol
4117         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
4118         (complex_vars_of_mule_charset): Set up new charset
4119         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
4120         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
4121         `ucs_to_<CHARSET>' tables.
4122
4123 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
4124
4125         * text-coding.c: New file.
4126
4127 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4128
4129         * mule-charset.c (Fmake_char): Fix problem of 256-set.
4130
4131         * char-ucs.h (Vcharset_ucs_bmp): New variable.
4132         (MAKE_CHAR): Modify for `ucs-bmp'.
4133         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
4134         non-MULE characters of BMP.
4135
4136 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
4137
4138         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4139         to 0.6.
4140
4141 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4142
4143         * lstream.h:
4144         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
4145         - Include character.h for `CHAR_ASCII_P'.
4146
4147         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
4148
4149         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
4150         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
4151
4152         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
4153         (BYTE_C0_P): Likewise.
4154         (BYTE_C1_P): Likewise.
4155         (Lstream_get_emchar_1): Likewise.
4156         (Lstream_fput_emchar): Likewise.
4157         (Lstream_funget_emchar): Likewise.
4158         (copy_internal_to_external): Likewise.
4159         (copy_external_to_internal): Likewise.
4160
4161         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
4162         (BYTE_C0_P): Likewise.
4163         (BYTE_C1_P): Likewise.
4164         (Lstream_get_emchar_1): Likewise.
4165         (Lstream_fput_emchar): Likewise.
4166         (Lstream_funget_emchar): Likewise.
4167         (copy_internal_to_external): Likewise.
4168         (copy_external_to_internal): Likewise.
4169
4170         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
4171         (REP_BYTES_BY_FIRST_BYTE): Likewise.
4172
4173         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
4174         (BYTE_ASCII_P): Moved to mb-1byte.h.
4175
4176 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4177
4178         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
4179
4180         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
4181         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
4182         (VALID_CHARPTR_P): Moved to mb-*byte.h.
4183         (VALIDATE_CHARPTR_BACKWARD): Likewise.
4184         (VALIDATE_CHARPTR_FORWARD): Likewise.
4185         (simple_charptr_emchar): Moved to mb-multibyte.h.
4186         (simple_set_charptr_emchar): Likewise.
4187         (simple_charptr_copy_char): Likewise.
4188         (non_ascii_charptr_emchar): Likewise.
4189         (non_ascii_set_charptr_emchar): Likewise.
4190         (non_ascii_charptr_copy_char): Likewise.
4191         (charptr_emchar): Moved to mb-*byte.h.
4192         (set_charptr_emchar): Likewise.
4193         (charptr_copy_char): Likewise.
4194
4195         * mb-1byte.h, mb-multibyte.h: New files.
4196
4197 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4198
4199         * mb-utf-8.h (MULTIBYTE): New macro.
4200         (MAX_EMCHAR_LEN): Moved from buffer.h.
4201         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
4202
4203         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
4204
4205         * mb-lb.h, multibyte.h: New files.
4206
4207         * char-1byte.h (Charset_ID): Moved from buffer.h.
4208         (MIN_LEADING_BYTE): Likewise.
4209         (LEADING_BYTE_ASCII): Likewise.
4210         (NUM_LEADING_BYTES): Likewise.
4211         (CHARSETP): Likewise.
4212         (CHARSET_BY_LEADING_BYTE): Likewise.
4213         (XCHARSET_LEADING_BYTE): Likewise.
4214         (XCHARSET_GRAPHIC): Likewise.
4215         (XCHARSET_COLUMNS): Likewise.
4216         (XCHARSET_DIMENSION): Likewise.
4217         (CHAR_CHARSET): Likewise.
4218         (CHAR_LEADING_BYTE): Likewise.
4219         (BREAKUP_CHAR): Likewise.
4220         (Vcharset_ascii): Likewise.
4221
4222         * buffer.h: Include multibyte.h unconditionally.
4223         (VALID_CHARPTR_P): Moved to multibyte.h.
4224         (ASSERT_VALID_CHARPTR): Likewise.
4225         (REAL_INC_CHARPTR): Likewise.
4226         (REAL_INC_CHARBYTIND): Likewise.
4227         (REAL_DEC_CHARPTR): Likewise.
4228         (INC_CHARPTR): Likewise.
4229         (INC_CHARBYTIND): Likewise.
4230         (DEC_CHARPTR): Likewise.
4231         (VALIDATE_CHARPTR_BACKWARD): Likewise.
4232         (VALIDATE_CHARPTR_FORWARD): Likewise.
4233         (charptr_n_addr): Likewise.
4234         (MAX_EMCHAR_LEN): Moved to mb-*.h.
4235         (simple_charptr_emchar): Moved to multibyte.h.
4236         (simple_set_charptr_emchar): Likewise.
4237         (simple_charptr_copy_char): Likewise.
4238         (non_ascii_charptr_emchar): Likewise.
4239         (non_ascii_set_charptr_emchar): Likewise.
4240         (non_ascii_charptr_copy_char): Likewise.
4241         (charptr_emchar): Likewise.
4242         (set_charptr_emchar): Likewise.
4243         (charptr_copy_char): Likewise.
4244         (charptr_emchar_n): Likewise.
4245         (Charset_ID): Moved to char-1byte.h.
4246         (Vcharset_ascii): Likewise.
4247         (CHAR_CHARSET): Likewise.
4248         (CHAR_LEADING_BYTE): Likewise.
4249         (LEADING_BYTE_ASCII): Likewise.
4250         (NUM_LEADING_BYTES): Likewise.
4251         (MIN_LEADING_BYTE): Likewise.
4252         (CHARSETP): Likewise.
4253         (CHARSET_BY_LEADING_BYTE): Likewise.
4254         (XCHARSET_LEADING_BYTE): Likewise.
4255         (XCHARSET_GRAPHIC): Likewise.
4256         (XCHARSET_COLUMNS): Likewise.
4257         (XCHARSET_DIMENSION): Likewise.
4258         (BREAKUP_CHAR): Likewise.
4259
4260 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4261
4262         * character.h: Add document about interface for characters.
4263
4264         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
4265         (MAKE_CHAR): Delete comment about
4266         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
4267         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
4268         (BREAKUP_CHAR): Modify name of arguments.
4269         (CHAR_CHARSET): Modify name of argument.
4270
4271         * buffer.h: Delete document about Emchar accessors.
4272
4273 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4274
4275         * character.h (CHAR_INTP): Moved from buffer.h
4276         (CHAR_OR_CHAR_INTP): Likewise.
4277         (XCHAR_OR_CHAR_INT): Likewise.
4278         (CHECK_CHAR_COERCE_INT): Likewise.
4279
4280         * buffer.h (CHAR_INTP): Moved to character.h
4281         (CHAR_OR_CHAR_INTP): Likewise.
4282         (XCHAR_OR_CHAR_INT): Likewise.
4283         (CHECK_CHAR_COERCE_INT): Likewise.
4284
4285 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4286
4287         * character.h:
4288         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
4289         - Include char-1byte.h, char-lb.h or char-ucs.h.
4290
4291         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
4292
4293         * buffer.h: Include character unconditionally.
4294         (valid_char_p): Moved to char-*.h.
4295         (non_ascii_valid_char_p): Moved to char-lb.h.
4296
4297         * char-1byte.h, char-lb.h, char-ucs.h: New files.
4298
4299 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4300
4301         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
4302         in UTF-2000 because it is not ported yet and not to use
4303         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
4304         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
4305         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
4306
4307         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
4308         (CHAR_ASCII_P): Moved from character.h.
4309
4310         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
4311         (CHAR_ASCII_P): Likewise.
4312         (CHAR_FIELD1_MASK): Deleted.
4313         (CHAR_FIELD2_MASK): Deleted.
4314         (CHAR_FIELD3_MASK): Deleted.
4315         (MAX_CHAR_BASIC_LATIN): New macro.
4316         (CHAR_FIELD1): Deleted.
4317         (CHAR_FIELD2_INTERNAL): Deleted.
4318         (CHAR_FIELD3_INTERNAL): Deleted.
4319         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
4320         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
4321         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
4322         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
4323         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
4324         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
4325         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
4326         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
4327         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
4328         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
4329         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
4330         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
4331         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
4332         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
4333         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
4334         (MIN_CHAR_COMPOSITION): Deleted.
4335         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
4336         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
4337
4338 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
4339
4340         * buffer.h: Include mb-utf-8.h in UTF-2000.
4341
4342         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
4343
4344         * mb-utf-8.h: New file.
4345
4346 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
4347
4348         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
4349         instead of `int'.
4350
4351         * mule-charset.h, buffer.h (Charset_ID): New type.
4352
4353 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
4354
4355         * mule-canna.c (c2mu): Use `MAKE_CHAR',
4356         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
4357         instead of `MULE_CHAR_PRIVATE_OFFSET',
4358         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
4359         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
4360         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
4361
4362         * character.h (Vcharset_japanese_jisx0212): New variable
4363         definition.
4364
4365 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
4366
4367         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
4368         (charset_by_attributes): Delete array about direction.
4369         (latin_a_char_to_charset): New variable in UTF-2000.
4370         (latin_a_char_to_byte1): New variable in UTF-2000.
4371         (latin_a_char_to_byte2): New variable in UTF-2000.
4372         (Qucs_bmp): New variable.
4373         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
4374         `Bufbyte'.
4375         (next_allocated_2_byte_leading_byte): Likewise.
4376         (non_ascii_set_charptr_emchar): Likewise.
4377         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
4378         `CHARSET_TYPE_256X256' in UTF-2000; modify for
4379         `charset_by_attributes'.
4380         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
4381         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
4382         and `CHARSET_BY_LEADING_BYTE'.
4383         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
4384         `utf-2000-version' to `vars_of_mule_charset'.
4385         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
4386         define `leading-code-private-11' in UTF-2000; move setting of
4387         `utf-2000-version' from `syms_of_mule_charset'.
4388         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
4389         UTF-2000.
4390
4391         * character.h (Charset_ID): New type.
4392         (LEADING_BYTE_UCS_BMP): New macro.
4393         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
4394         (CHARSET_ID_OFFSET_94): New macro.
4395         (MIN_CHARSET_ID_PRIVATE_94): New macro.
4396         (MAX_CHARSET_ID_PRIVATE_94): New macro.
4397         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
4398         final-byte.
4399         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
4400         (LEADING_BYTE_LATIN_JISX0201): Likewise.
4401         (CHARSET_ID_OFFSET_96): New macro.
4402         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
4403         CHARSET_ID_OFFSET_96 and final-byte.
4404         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
4405         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
4406         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
4407         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
4408         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
4409         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
4410         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
4411         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
4412         (LEADING_BYTE_THAI_TIS620): Likewise.
4413         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
4414         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
4415         (CHARSET_ID_OFFSET_94x94): New macro.
4416         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
4417         CHARSET_ID_OFFSET_94x94 and final-byte.
4418         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
4419         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
4420         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
4421         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
4422         (LEADING_BYTE_CHINESE_GB2312): Likewise.
4423         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
4424         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
4425         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
4426         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
4427         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
4428         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
4429         (CHARSET_TYPE_128X128): New macro.
4430         (CHARSET_TYPE_256X256): New macro.
4431         (XCHARSET_PRIVATE_P): Delete unconditionally.
4432         (charset_by_attributes): Delete array about direction.
4433         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
4434         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
4435         (MIN_CHAR_94): New macro.
4436         (MAX_CHAR_94): New macro.
4437         (MIN_CHAR_96): New macro.
4438         (MAX_CHAR_96): New macro.
4439         (MIN_CHAR_94x94): New macro.
4440         (MAX_CHAR_94x94): New macro.
4441         (MIN_CHAR_96x96): New macro.
4442         (MAX_CHAR_96x96): New macro.
4443         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
4444         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
4445         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
4446         - 32)'.
4447         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
4448         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
4449         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
4450         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
4451         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
4452         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
4453         `XCHARSET_LEADING_BYTE' to make code-point.
4454         (latin_a_char_to_charset): New variable.
4455         (latin_a_char_to_byte1): New variable.
4456         (latin_a_char_to_byte2): New variable.
4457         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
4458         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
4459         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
4460
4461         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
4462         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
4463         (find_charsets_in_emchar_string): Likewise.
4464         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
4465
4466         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
4467         `int'.
4468         (decode_coding_iso2022): Likewise.
4469
4470         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
4471         of `unsigned char'.
4472
4473         * redisplay.c (redisplay_text_width_emchar_string): Use
4474         `Charset_ID' instead of `unsigned char'.
4475         (redisplay_frame_text_width_string): Likewise.
4476
4477         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
4478         `unsigned char'.
4479
4480         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
4481         instead of `unsigned char'.
4482         (face_cachel_charset_font_metric_info): Likewise.
4483
4484         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
4485         (get_non_ascii_char_table_value): Likewise.
4486         (get_char_table): Likewise.
4487         (put_char_table): Likewise.
4488         (map_over_other_charset): Likewise.
4489         (map_char_table): Likewise.
4490
4491         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
4492         instead of `unsigned char'.
4493
4494 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
4495
4496         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
4497         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
4498
4499         * mule-charset.c (leading_code_private_11): Don't define in
4500         UTF-2000.
4501
4502         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
4503         in UTF-2000 because it is not ported yet and not to use
4504         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
4505
4506 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
4507
4508         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
4509
4510 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4511
4512         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
4513         in UTF-2000.
4514
4515         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
4516         of unsigned char to store leading-byte.
4517
4518         * chartab.c (get_non_ascii_char_table_value): Don't use
4519         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
4520
4521         * file-coding.c (encode_coding_big5): Delete bogus implementation
4522         in UTF2000.
4523
4524         * character.h (LEADING_BYTE_*): Delete definition for
4525         non-UTF-2000.
4526         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
4527         (LEADING_BYTE_PREFIX_P): Deleted.
4528         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
4529         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
4530         (BUFBYTE_LEADING_BYTE_P): Deleted.
4531         (CHARSET_PRIVATE_P): Deleted unconditionally.
4532         (rep_bytes_by_first_byte): Deleted unconditionally.
4533         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
4534         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
4535         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
4536         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
4537         (CHAR_FIELD2): Deleted.
4538         (CHAR_FIELD3): Deleted.
4539         (MAKE_CHAR): Delete definition for non-UTF-2000.
4540         (BREAKUP_CHAR_1_UNSAFE): Deleted.
4541         (breakup_char_1): New implementation.
4542         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
4543         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
4544
4545 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4546
4547         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
4548         condition.
4549
4550 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4551
4552         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
4553         (CHARSET_PRIVATE_P): Likewise.
4554         (XCHARSET_PRIVATE_P): Likewise.
4555         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
4556
4557         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
4558         UTF2000.
4559         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
4560
4561 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4562
4563         * character.h (LEADING_BYTE_*): Changed in UTF2000.
4564         (NUM_LEADING_BYTES): Changed from 128 to 256.
4565         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
4566         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
4567         UTF2000.
4568         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
4569
4570         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
4571         UTF2000.
4572         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
4573         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
4574         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
4575         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
4576         (Qchinese_cns11643_3): New variable in UTF2000.
4577         (Qchinese_cns11643_4): New variable in UTF2000.
4578         (Qchinese_cns11643_5): New variable in UTF2000.
4579         (Qchinese_cns11643_6): New variable in UTF2000.
4580         (Qchinese_cns11643_7): New variable in UTF2000.
4581         (syms_of_mule_charset): Define `chinese-cns11643-3',
4582         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
4583         and `chinese-cns11643-7' in UTF2000.
4584         (vars_of_mule_charset): Initialize
4585         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
4586         + 1 in UTF2000.
4587         (complex_vars_of_mule_charset): Setup charset
4588         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
4589         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
4590
4591 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4592
4593         * mule-charset.c: Move setting for `leading-code-private-11' from
4594         `syms_of_mule_charset' to `vars_of_mule_charset'.
4595
4596 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4597
4598         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
4599         and `NUM_LEADING_BYTES' in assert.
4600
4601 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4602
4603         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
4604         instead of 128.
4605         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
4606         `NUM_LEADING_BYTES' instead of 128.
4607
4608 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
4609
4610         * mule-charset.h (charset_by_leading_byte): Use
4611         `NUM_LEADING_BYTES' instead of 128.
4612         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
4613
4614         * mule-charset.c (charset_by_leading_byte): Use
4615         `NUM_LEADING_BYTES' instead of 128.
4616         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
4617
4618         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
4619         128.
4620
4621 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
4622
4623         * mule-charset.c (syms_of_mule_charset): Update to
4624         0.4 (Shin-Imamiya).
4625
4626 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
4627
4628         * file-coding.c (encode_coding_sjis): New implementation for
4629         UTF2000.  (decode_coding_sjis): Ditto.
4630
4631 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4632
4633         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
4634         Don't define in UTF2000.
4635
4636         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
4637         defined.
4638
4639         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
4640         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
4641         MULE.
4642
4643 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4644
4645         * config.h.in (CHAR_IS_UCS4): New macro.
4646
4647         * mule-charset.c (rep_bytes_by_first_byte): Modify for
4648         conventional MULE representation.
4649         (syms_of_mule_charset): Update to 0.3 (Imamiya).
4650
4651         * mule-charset.h: Reverted to original.
4652
4653         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
4654         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
4655         "mule-charset.h" if CHAR_IS_UCS4 is defined.
4656
4657         * character.h: New file.
4658
4659         * file-coding.c (Fmake_coding_system): Set 1 to
4660         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
4661         defined.
4662         (encode_coding_no_conversion): New implementation for UTF2000.
4663
4664         * file-coding.h (struct Lisp_Coding_System): Add new member
4665         `fixed.size'.
4666
4667 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
4668
4669         * file-coding.c (decode_coding_iso2022): Code-point arguments of
4670         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
4671         (encode_coding_iso2022): New implementation for UTF2000.
4672
4673 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4674
4675         * mule-canna.c (c2mu): New implementation for UTF2000.
4676         (m2c): Likewise.
4677
4678 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4679
4680         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
4681
4682 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4683
4684         * file-coding.c (reset_encoding_stream): Set 0 to
4685         `str->iso2022.current_char_boundary' in UTF2000.
4686         (encode_utf8): Don't define in UTF2000.
4687         (encode_coding_utf8): New implementation for UTF-8 representation
4688         of UTF2000.
4689         (complex_vars_of_file_coding): Define coding-system `utf-8'.
4690
4691 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4692
4693         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
4694
4695         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
4696         UTF2000.
4697         (REP_BYTES_BY_FIRST_BYTE): Likewise.
4698
4699         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
4700
4701         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
4702         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
4703         as UTF-8 in UTF2000.
4704         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
4705         (non_ascii_valid_char_p): Don't define in UTF2000.
4706         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
4707         (Lstream_get_emchar_1): Likewise.
4708         (utf-2000-version): New variable in UTF2000.
4709
4710         * lread.c (read_escape): Add new reader `u'.
4711
4712         * insdel.c (three_to_one_table): Don't define in UTF2000.
4713         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
4714         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
4715         UTF2000.
4716         (bytind_to_bufpos_func): Likewise.
4717         (buffer_mule_signal_inserted_region): Likewise.
4718         (vars_of_insdel): Don't initialize `three_to_one_table'.
4719         (init_buffer_text): Use `buf->text->mule_size' instead of
4720         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
4721         UTF2000.
4722
4723         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
4724         UTF-8 representation in UTF2000.
4725         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
4726         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
4727         (decode_coding_iso2022): Don't define local variable `lb' in
4728         UTF2000; don't use LEADING_BYTE in UTF2000; use
4729         `DECODE_ADD_UCS_CHAR' in UTF2000.
4730         (convert_to_external_format): Decode as UTF-8 in UTF2000.
4731
4732         * config.h.in (UTF2000): New macro.
4733
4734         * buffer.h (struct buffer_text): Add new member `mule_size' and
4735         don't add `mule_shifter' and `mule_three_p' in UTF2000.
4736         (valid_char_p): Return always 1 in UTF2000.
4737         (MAX_EMCHAR_LEN): 6 in UTF2000.
4738         (three_to_one_table): Don't define in UTF2000.
4739         (real_bufpos_to_bytind): Modify for UTF-8 representation in
4740         UTF2000.
4741         (real_bytind_to_bufpos): Likewise.
4742
4743         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
4744
4745 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4746
4747         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
4748         representation change.
4749         (Vutf_2000_version): New variable.
4750         (leading_code_private_11): New variable.
4751         (syms_of_mule_charset): Add new variables `utf-2000-version' and
4752         `leading-code-private-11'.
4753
4754         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
4755         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
4756         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
4757         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
4758         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
4759         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
4760         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
4761         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
4762         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
4763         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
4764         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
4765         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
4766         (MIN_CHAR_GREEK): New macro.
4767         (MAX_CHAR_GREEK): New macro.
4768         (MIN_CHAR_CYRILLIC): New macro.
4769         (MAX_CHAR_CYRILLIC): New macro.
4770         (MIN_CHAR_HEBREW): New macro.
4771         (MAX_CHAR_HEBREW): New macro.
4772         (MIN_CHAR_THAI): New macro.
4773         (MAX_CHAR_THAI): New macro.
4774         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
4775         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
4776         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
4777         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
4778         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
4779         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
4780         (CHAR_FIELD2): New inline function.
4781         (CHAR_FIELD3): New inline function.
4782         (MULE_CHAR_PRIVATE_OFFSET): New macro.
4783         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
4784         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
4785         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
4786         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
4787         (MIN_CHAR_COMPOSITION): Likewise.
4788         (CHAR_LEADING_BYTE): Modified for character representation change.
4789         (MAKE_CHAR): Likewise.
4790
4791         * lisp.h (Vcharset_latin_iso8859_1): New variable.
4792         (Vcharset_greek_iso8859_7): Likewise.
4793         (Vcharset_cyrillic_iso8859_5): Likewise.
4794         (Vcharset_hebrew_iso8859_8): Likewise.
4795         (Vcharset_thai_tis620): Likewise.
4796         (Vcharset_katakana_jisx0201): Likewise.
4797
4798 2003-01-03  Stephen J. Turnbull  <stephen@xemacs.org>
4799
4800         * XEmacs 21.4.11 "Native Windows TTY Support" is released.
4801
4802 2002-12-14  Ben Wing  <ben@xemacs.org>
4803
4804         * callint.c: Declaration error.
4805         * dumper.c (pdump):
4806         * dumper.c (pdump_load): Warning fix.
4807         * process.c: GCPRO error.
4808         * glyphs.c (unmap_subwindow):
4809         * glyphs.c (map_subwindow): Parenthesizing errors with ! and &&.
4810         * event-stream.c (maybe_kbd_translate): Wrong argument to
4811         character_to_event().
4812
4813         * alloc.c (garbage_collect_1):
4814         * emacs.c:
4815         * emacs.c (debug_can_access_memory):
4816         * emacs.c (fatal_error_signal):
4817         * emacs.c (mswindows_handle_hardware_exceptions):
4818         * emacs.c (main_1):
4819         * emacs.c (main):
4820         * emacs.c (assert_failed):
4821         * emacs.c (syms_of_emacs):
4822         * lisp.h:
4823         * print.c:
4824         * print.c (std_handle_out_va):
4825         * print.c (write_string_to_stdio_stream):
4826         * print.c (write_fmt_string):
4827         * print.c (printing_badness):
4828         * print.c (printing_major_badness):
4829         * print.c (print_internal):
4830         * print.c (debug_print_no_newline):
4831         * print.c (debug_backtrace):
4832         Be more defensive in handling bad values when printing.  Add code
4833         from trunk involving inhibit_non_essential_printing_operations.
4834         When going down or in debug_print(), don't do external conversion
4835         and such and try really, really hard when printing to avoid core
4836         dumping.  Add force-debugging-signal, debug_break().
4837
4838 2002-12-12  Stephen J. Turnbull  <stephen@xemacs.org>
4839
4840         * dumper.c (pdump_load): Include sysdep.h; retry with truename.
4841         Analysis and original patch by Vin Shelton <acs@xemacs.org>.
4842
4843 2002-12-02  Greg Allen  <greg_allen@westlb-systems.co.uk>
4844
4845         * database.c: Fix open_database. Berkeley DB API has changed in
4846         4.1. see: http://www.sleepycat.com/docs/ref/upgrade.4.1/fop.html
4847
4848 2002-11-26  Stephen J. Turnbull  <stephen@xemacs.org>
4849
4850         * specifier.c (Fvalid_specifier_type_p): Typo in comment.
4851
4852 2002-11-13  Stephen J. Turnbull  <stephen@xemacs.org>
4853
4854         * event-Xt.c (Xt_timeout):
4855         (Xt_timeout_callback):
4856         (emacs_Xt_add_timeout):
4857         (emacs_Xt_remove_timeout):
4858         (Xt_timeout_to_emacs_event):
4859         Turn completed_timeouts from a stack into a queue.  Fixes
4860         deadlocks <15829.21626.171573.994716@sinisa.nasamreza.org>.
4861
4862 2002-11-07  Wolfram Gloger  <wg@malloc.de>
4863
4864         * alloc.c (reinit_alloc_once_early): Disable mmap in Doug Lea malloc.
4865         * emacs.c (main): Assert that mmap'd allocation is disabled.
4866
4867 2002-10-14  Andy Piper  <andy@xemacs.org>
4868
4869         * glyphs-widget.c (layout_query_geometry): add in fiddle
4870         factor. Include border text in width layout calculation.
4871         (layout_layout): use BORDER_FIDDLE_FACTOR instead of 10.
4872
4873 2002-11-02  Stephen J. Turnbull  <stephen@xemacs.org>
4874
4875         * XEmacs 21.4.10 "Military Intelligence" is released.
4876
4877 2002-10-17  Raymond Toy  <toy@rtp.ericsson.se>
4878
4879         * nas.c: Update for NAS 1.6 and later, from Jon Trulson.  Was
4880         using the NAS private array SoundFileInfo that no longer exists in
4881         NAS 1.6 and later.  Preserve backward compatibility with NAS 1.5a
4882         and earlier.  This is broken for some versions between 1.5a and
4883         1.5f.
4884
4885 2002-10-10  Stephen J. Turnbull  <stephen@xemacs.org>
4886
4887         * realpath.c (win32_readlink): Try to fix truename of wildcard bug.
4888
4889         * emacs.c (shut_down_emacs): Improve crash message.
4890
4891 2002-10-09  Stephen J. Turnbull  <stephen@xemacs.org>
4892
4893         * file-coding.c (determine_real_coding_system): Check for coding
4894         cookie in first LINES_TO_CHECK lines (currently 2).  Cater to
4895         shebangs and Python PEP 263.
4896
4897 2002-10-08  Andy Piper  <andy@xemacs.org>
4898
4899         * glyphs-widget.c (layout_query_geometry): only resize dynamically
4900         if static sizes haven't been set.
4901
4902 2002-08-30  Mike Alexander  <mta@arbortext.com>
4903
4904         * event-msw.c (winsock_closer): Use closesocket, not CloseHandle
4905         to close a socket.
4906
4907 2002-10-03  Stephen J. Turnbull  <stephen@xemacs.org>
4908
4909         * callproc.c (child_setup): 21.4 doesn't have retry_close.
4910
4911 2002-09-20  Mike Sperber <mike@xemacs.org>
4912
4913         (This partially gets back my patch from 2002-07-20 without the
4914         bug.)
4915         * callproc.c (child_setup): Remove Ben's comment noting confusion
4916         over the file descriptors >= 3: close_process_descs() doesn't
4917         close those.  Fix fd range to go up to MAXDESC-1 instead of 64.
4918         * process-unix.c (unix_create_process): Call
4919         begin_dont_check_for_quit to inhibit unwanted interaction (and
4920         thus breaking of X event synchronicity) in the child.
4921
4922 2002-09-26  Golubev I. N.  <gin@mo.msk.ru>
4923
4924         * frame-x.c (x_delete_frame): do not call XtDisplay on a destroyed
4925         widget.
4926
4927 2002-08-20  Ben Sigelman  <bhsigelm@cs.brown.edu>
4928
4929         * event-Xt.c (drain_X_queue): loop over while(XEventsQueued())
4930         instead of while(XtAppPending()&XtIMXEvent).  Upon a gdm logout,
4931         the xemacs process did not exit, but looped infinitely here.  This
4932         fixes that problem.
4933
4934 2002-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
4935
4936         * font-lock.c (SYNTAX_START_STYLE, SYNTAX_END_STYLE): Quiet GCC.
4937         (find_context): Improve comments.
4938
4939         * regex.c (re_compile_fastmap):  Gratuitous #ifdef comment fixes.
4940         (re_match_2): An XCHAR_TABLE operation was missing.
4941
4942         Many of the following changes were inspired by Andy Piper's (now
4943         obsolete) patch to make syntax-table text property lookup optional.
4944
4945         [Documentation]
4946
4947         * syntax.h (top level): Document semantics of syntax flags.
4948         * syntax.c (comstr_start, Fforward_comment): Improve comments.
4949         * syntax.c, syntax.h (top level): Document syntax cache better in
4950         comments.
4951
4952         [Instrument syntax caching (temporary change)]
4953
4954         * syntax.h (enum syntax_cache_statistics_functions, struct
4955         syntax_cache_statistics, SCS_STATISTICS_SET_FUNCTION,
4956         SYNTAX_CACHE_STATISTICS_COUNT_INIT): New types and macros.
4957         * syntax.c (scan_words, Fforward_comment, scan_lists,
4958         Fbackward_prefix_characters):
4959         * font-lock.c (find_context):
4960         Use them to instrument syntax caching. 
4961         * syntax.c (struct syntax_cache_statistics, scs_statistics,
4962         syntax_cache_statistics_function_names): New type and variables.
4963         * syntax.c (update_syntax_cache): Update and report statistics.
4964
4965         [Major syntax cache optimizations]
4966
4967         syntax.c (lookup_syntax_properties): Default off.
4968
4969         * syntax.h (UPDATE_SYNTAX_INTERNAL): New, implements UPDATE_SYNTAX*.
4970         * syntax.c (update_syntax_cache):
4971         Move init test from update_syntax_cache to UPDATE_SYNTAX_INTERNAL.
4972
4973         [Minor syntax cache optimizations and code clarifications]
4974
4975         * syntax.h (SYNTAX_COMMENT_BITS, SYNTAX_START_P, SYNTAX_END_P,
4976         SYNTAX_STYLES_MATCH_START_P, SYNTAX_STYLES_MATCH_1CHAR_P,
4977         SYNTAX_STYLES_MATCH_END_P, STYLE_FOUND_1CHAR_P, STYLE_FOUND_P,
4978         SYNTAX_COMMENT_MASK_END, SYNTAX_COMMENT_MASK_START,
4979         SYNTAX_COMMENT_1CHAR_MASK): Remove redundant argument `table'.
4980         (Code clarification.)
4981
4982         * syntax.c (scan_words, find_end_of_comment, scan_sexps_forward,
4983         scan_lists): Compute code from syncode, use Boolean macros instead
4984         of redundant masking operations.  (Code clarification; any decent
4985         compiler can do this optimization.)
4986
4987         * syntax.c (scan_lists): Rearrange switches (case Sstring_fence)
4988         for clarity.
4989
4990         * syntax.h, syntax.c (NEXT_SINGLE_PROPERTY_CHANGE,
4991         PREVIOUS_SINGLE_PROPERTY_CHANGE, update_syntax_cache): Conditionally
4992         use F*_single_property_change instead of F*_extent_change.
4993         Currently F*_single_property_change is _much_ less efficient.
4994
4995         * dired.c (Fdirectory_files): Qt not valid in syntax_cache.object.
4996         * syntax.h (SETUP_SYNTAX_CACHE_FOR_OBJECT):  Initialize
4997         syntax_cache.object properly, don't leave Qt or Qnil.
4998         (SYNTAX_CACHE_BYTE_TO_CHAR): Use SETUP_SYNTAX_CACHE_FOR_OBJECT.
4999         * syntax.c (update_syntax_cache): Use BUFFERP and STRINGP, not
5000         tests for Qt or Qnil.
5001
5002 2002-09-21  Stephen J. Turnbull  <stephen@xemacs.org>
5003
5004         * redisplay.c (point_in_line_start_cache): 
5005         * extents.c (print_extent_1):
5006         Fix warnings.
5007
5008         * extents.c (Fset_extent_property): Document `syntax-table' property.
5009
5010         * extents.h (Fnext_single_property_change): EXFUN it.
5011
5012 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
5013
5014         * search.c (clear_unused_search_regs): New static function.
5015         (search_buffer): 
5016         (simple_search): 
5017         (boyer_moore):
5018         Use it.  Fixes "stale match data" bug reported by Martin Stjernholm.
5019         Minor clarifications in comments.
5020
5021         * regex.c (re_match_2_internal): Ensure no stale submatches.
5022
5023 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
5024
5025         * event-Xt.c (enqueue_focus_event): Add missing prototype.
5026
5027 2002-08-29  Jerry James  <james@xemacs.org>
5028
5029         * lisp.h: structrures -> structures.
5030
5031 2002-06-03  Andy Piper  <andy@xemacs.org>
5032
5033         * frame.c (frame_conversion_internal): add conversion appropriate
5034         for setting frame dimensions in pixels.
5035
5036         * console.h (struct console_methods): add device-specific widget
5037         layout functions.
5038
5039         * emacs.c (main_1): initialize glyph vars.
5040
5041         * event-Xt.c (handle_focus_event_1): call handle_focus_event_2
5042         (handle_focus_event_2): new function. Allow focus to
5043         be set to a particular window and widget.
5044         (enqueue_focus_event): new function. Create a
5045         synthetic focus event.
5046         (emacs_Xt_handle_magic_event): call
5047         handle_focus_event_2.
5048
5049         * frame.c (Fset_frame_pixel_height): new function. Allow
5050         pixel-based sizing. Does the right thing on character-oriented
5051         displays.
5052         (Fset_frame_pixel_width): ditto.
5053         (Fset_frame_pixel_size): ditto.
5054         (syms_of_frame): declare.
5055
5056         * general-slots.h: add :vertically-justify and
5057         :horizontally-justify.
5058
5059         * glyphs-msw.c (xbm_create_bitmap_from_data): warning fix.
5060         (mswindows_widget_border_width): new function.
5061         (mswindows_combo_box_instantiate): set border widths.
5062         (console_type_create_glyphs_mswindows): declare.
5063
5064         * glyphs-widget.c:
5065         (check_valid_justification): allow vertical and horizontal
5066         justification.
5067         (widget_border_width): new function. Call device methods.
5068         (widget_instance_border_width): ditto.
5069         (logical_unit_height): new function. Determine the height of a
5070         logical-unit. Logical units are intended to provide grid-like
5071         layout for subcontrols in a layout. If the layout is
5072         :vertically-justify top then subcontrols will be positioned on
5073         logical-unit boundaries, thus allowing adjacent subcontrols to
5074         line up.
5075         (widget_logical_unit_height): ditto for widgets.
5076         (redisplay_widget): misc cleanup.
5077         (widget_spacing): new function. Call device specific
5078         methods. Intended to be the default gap between adjacent widgets.
5079         (widget_query_geometry): use new spacing functions to determine
5080         appropriate geometry.
5081         (initialize_widget_image_instance): initialize horizontal and
5082         vertical justification.
5083         (widget_instantiate): use logica-units where appropriate for
5084         sizing large widgets.
5085         (button_query_geometry): use widget_instance_border_width.
5086         (tree_view_query_geometry): ditto.
5087         (tab_control_query_geometry): ditto.
5088         (edit_field_query_geometry): new function.
5089         (layout_update): pick up :justify, :horizontally-justify and
5090         :vertically-justify none of which worked previously. :justify is
5091         used as a fallback for both horizontal and vertical justification.
5092         (layout_query_geometry): use logical units to size appropriately.
5093         (layout_layout): ditto.
5094         (Fwidget_logical_to_character_width): new function. Allow users to
5095         convert from logical units to characters so that frame sizes can
5096         be set appropriately.
5097         (Fwidget_logical_to_character_height): ditto.
5098         (syms_of_glyphs_widget): declare.
5099         (image_instantiator_edit_fields): add edit_field_query_geometry.
5100         (VALID_LAYOUT_KEYWORDS): declare :vertically-justify and
5101         :horizontally-justify.
5102         (specifier_vars_of_glyphs_widget): new function. Declare
5103         Vwidget_border_width which is not yet used.
5104
5105         * glyphs-x.c (x_map_subwindow): enqueue appropriate focus events.
5106         (x_widget_border_width): new function.
5107         (x_widget_instantiate): create a sensible name for widgets.
5108         (console_type_create_glyphs_x): declare x_widget_border_width.
5109
5110         * glyphs.h (DEFAULT_WIDGET_BORDER_WIDTH): new macro.
5111         (struct Lisp_Image_Instance): add :vertically-justify and
5112         :horizontally-justify.
5113         (LAYOUT_JUSTIFY_TOP): new.
5114         (IMAGE_INSTANCE_SUBWINDOW_H_JUSTIFY): new.
5115         (ROUND_UP): new macro. Round argument up to next integral
5116         interval.
5117
5118         * redisplay-output.c (redisplay_output_layout): misc formatting.
5119
5120         * symsinit.h: declare specifier_vars_of_glyphs_widget.
5121
5122 2002-08-23  Stephen J. Turnbull  <stephen@xemacs.org>
5123
5124         * XEmacs 21.4.9 "Informed Management" is released.
5125
5126 2002-08-19  Andy Piper  <andy@xemacs.org>
5127
5128         * fileio.c (Ffile_truename): on cygwin using win32 normalize to
5129         win32 format.
5130
5131         * realpath.c (xrealpath): normalize drive spec also so that dir
5132         sep chars are not mixed on cygwin.
5133
5134 2002-08-06  Jerry James  <james@xemacs.org>
5135
5136         * window.c (Fsplit_window): Count only half of the divider width
5137         against the left window when splitting horizontally. 
5138
5139 2002-06-24  Andy Piper  <andy@xemacs.org>
5140
5141         * toolbar-gtk.c (GTK_OUTPUT_BUTTONS_LOOP): output button if whole
5142         toolbar was cleared.
5143
5144         * toolbar-msw.c (mswindows_clear_frame_toolbars): new
5145         function. Split out from mswindows_output_frame_toolbars.
5146         (mswindows_output_frame_toolbars): move clear pieces to
5147         mswindows_output_frame_toolbars.
5148
5149         * toolbar-gtk.c (gtk_clear_frame_toolbars): new function. Split
5150         out from gtk_output_frame_toolbars.
5151         (gtk_output_frame_toolbars): move clear pieces to
5152         gtk_clear_frame_toolbars.
5153
5154         * toolbar-x.c (X_OUTPUT_BUTTONS_LOOP): always output buttons when
5155         the frame is cleared. How this ever worked before is a mystery.
5156         (x_output_frame_toolbars): Only output toolbars.
5157         (x_clear_frame_toolbars): new. Clear previous toolbar locations.
5158
5159         * gutter.c (update_gutter_geometry):
5160         Mark frame layout changed.
5161         (update_frame_gutter_geometry, update_frame_gutters):
5162         Respect frame_layout_changed.
5163
5164         * console.h (struct console_methods): add
5165         clear_frame_toolbars_method.
5166
5167         * redisplay.c (redisplay_frame): call
5168         update_frame_toolbars_geometry and re-order update_frame_toolbars.
5169
5170         * toolbar.h: declare update_frame_toolbars_geometry.
5171
5172         * toolbar.c (update_frame_toolbars_geometry): new function. Split
5173         out from update_frame_toolbars.  Call clear_frame_toolbars.
5174         (update_frame_toolbars): only output, do not change geometry.
5175
5176         * redisplay.c: add frame_layout_changed.
5177
5178         * redisplay.h: add frame_layout_changed.
5179         (CLASS_RESET_CHANGED_FLAGS): set it.
5180         (GLOBAL_RESET_CHANGED_FLAGS): ditto.
5181         (CLASS_REDISPLAY_FLAGS_CHANGEDP): test it.
5182         (GLOBAL_REDISPLAY_FLAGS_CHANGEDP): ditto.
5183
5184         * device.h (struct device): add frame_layout_changed.
5185         (MARK_DEVICE_FRAME_LAYOUT_CHANGED): new.
5186
5187         * frame.h (struct frame): add frame_layout_changed.
5188         (MARK_FRAME_LAYOUT_CHANGED): new.
5189
5190 2002-06-30  Mike Alexander  <mta@arbortext.com>
5191
5192         * event-msw.c (mswindows_need_event): Don't wait for a new message
5193         if the queue is not empty.  Suggested by Paul Moore.
5194
5195 2002-06-12  Andy Piper  <andy@xemacs.org>
5196
5197         * frame-msw.c (msprinter_init_frame_3): calculate the frame size
5198         for printing on accurately.
5199
5200 2002-06-09  Rick Rankin <rick_rankin@yahoo.com>
5201
5202         * event-msw.c (mswindows_wnd_proc): Add a handler for the
5203         WM_ACTIVATE message. Make sure that the frame is visible if the
5204         window is visible. This seemss to fix the problem where XEmacs
5205         appears to freeze after switching desktops with certain virtual
5206         window managers.
5207         (debug_output_mswin_message): Added code to output message
5208         parameters for WM_WINDOWPOSCHANGED, 
5209         WM_WINDOWPOSCHANGING, WM_MOVE, and WM_SIZE messages.
5210
5211 2002-05-25  Andy Piper  <andy@xemacs.org>
5212
5213         * select-x.c (vars_of_select_x): Fix docstring of
5214         x-selection-strict-motif-ownership
5215
5216 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
5217
5218         * keymap.c (get_keymap):
5219         Add comment about do_autoload GCPROs own args.
5220
5221 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
5222
5223         * bytecode.c (execute_optimized_program): check_opcode ifdef
5224         ERROR_CHECK_BYTE_CODE.
5225
5226 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
5227
5228         Thanks to Ben Wing and Michael Sperber.
5229
5230         * eval.c (Fcommand_execute):
5231         (Feval):
5232         (Ffuncall):
5233         (Fmacroexpand_internal):
5234         (function_argcount):
5235         callint.c (Fcall_interactively):
5236         Add comment about do_autoload GCPROs own args.
5237
5238         * (do_autoload): GCPRO both args as well as local Lisp_Object.
5239
5240         * eval.c (Ffuncall): Extra braces to placate GCC.
5241
5242 2002-08-10  Stephen J. Turnbull  <stephen@xemacs.org>
5243
5244         * backtrace.h (grow_specpdl):
5245         (SPECPDL_RESERVE):
5246         * EmacsFrame.c (EmacsFrameSetValues):
5247         * eval.c (grow_specpdl):
5248         * ExternalShell.c (hack_event_masks_1):
5249         * glyphs-x.c (convert_EImage_to_XImage): 
5250         (x_finalize_image_instance):
5251         * ralloc.c (page_size):
5252         (r_alloc_sbrk):
5253         * xgccache.c (gc_cache_hash):
5254         Fix unsigned comparison warnings.
5255
5256 2002-07-29  Jerry James  <james@xemacs.org>
5257
5258         * lread.c (locate_file): Any nonnegative return value indicates
5259         success if MODE is nonnegative.
5260
5261 2002-08-03  Brian A Palmer  <bpalmer@rescomp.Stanford.EDU>
5262
5263         * emacs.c (Fsplit_string_by_char): Make 2nd arg SEPCHAR a required
5264         argument. 
5265
5266 2002-07-17  Stephen J. Turnbull  <stephen@xemacs.org>
5267
5268         * process-unix.c (unix_send_process): #ifdef the coding_stream member.
5269
5270         * dumper.c (pdump_get_indirect_count):
5271         (pdump_scan_by_alignment):
5272         (pdump_dump_root_struct_ptrs):
5273         (pdump_dump_rtables):
5274         (pdump_dump_root_objects):
5275         (pdump):
5276         * nas.c (WaveOpenDataForReading):
5277         * fns.c (print_bit_vector):
5278         * font-lock.c (SINGLE_SYNTAX_STYLE):
5279         * glyphs.c (check_for_ignored_expose):
5280         (find_matching_subwindow):
5281         * glyphs-eimage.c:
5282         * imgproc.c (get_histogram):
5283         * redisplay.c (point_in_line_start_cache):
5284         * redisplay-output.c (redisplay_unmap_subwindows):
5285         * symbols.c (defsymbol_massage_name_1):
5286         (defkeyword_massage_name):
5287         (deferror_massage_name_and_message):
5288         * redisplay-x.c (x_output_string): 
5289         * emacs.c (run_temacs_argv_size, run_temacs_args_size):
5290         * frame.h (struct frame):
5291         * filelock.c (current_lock_owner):
5292         * doprnt.c (emacs_doprnt_1):
5293         * lisp.h (struct Lisp_Bit_Vector):
5294         (DO_REALLOC):
5295         Fix warnings.
5296
5297 2002-02-13  Ben Wing  <ben@xemacs.org>
5298
5299         * event-stream.c (reset_key_echo):
5300         * event-stream.c (reset_this_command_keys):
5301         * event-stream.c (execute_command_event):
5302         If console is dead as a result of C-x 5 0, then post-command stuff
5303         needs to be careful and do only non-console-specific stuff.
5304
5305 2002-07-01  Mike Sperber <mike@xemacs.org>
5306
5307         * process-unix.c (unix_send_process): Mark coding_outstream as
5308         non-open upon SIGPIPE.
5309
5310         * event-stream.c (Fnext_event): Reorder switch cases to something
5311         that makes sense.
5312
5313 2001-08-13  Dmitry Astapov  <adept@umc.com.ua>
5314
5315         * event-Xt.c (maybe_define_x_key_as_self_inserting_character):
5316         Don't bogusly reinitialize ascii_character property.
5317
5318 2002-07-08  Mike Sperber <mike@xemacs.org>
5319
5320         * process.c (Fstart_process_internal): Do error checking before we
5321         fork off the child, so the child can't muck with the state of the
5322         parent.
5323
5324 2002-07-08  Mike Sperber <mike@xemacs.org>
5325
5326         * ralloc.c (init_ralloc): Allocate properly for pdump.
5327
5328 2002-06-12  Andy Piper  <andy@xemacs.org>
5329
5330         * glyphs.c (query_string_geometry): check the string.
5331
5332         * glyphs-widget.c (widget_logical_unit_height): cope with nil
5333         widget names.
5334
5335 2002-06-17  Jerry James  <james@xemacs.org>
5336
5337         * sysdll.c: Remove RTLD_GLOBAL initialization.
5338         * sysdll.c (dll_open): Do not use RTLD_GLOBAL.
5339
5340 2002-06-25  Stephen J. Turnbull  <stephen@xemacs.org>
5341
5342         * search.c (skip_chars): Port Ben's crash fix and efficiency patch.
5343
5344 2002-05-16  Mathias Grimmberger  <mgri@zaphod.sax.de>
5345
5346         * sysdep.c (sys_rename): Make sys_rename work for the case where
5347         Windows rename sets errno to EACCES if target file exists.
5348
5349 2002-05-21  Jonathan Harris  <jonathan@xemacs.org>
5350
5351         * device-msw.c (mswindows_handle_page_setup_dialog_box):
5352         Fix detection of metric units to work on Win95
5353
5354 2002-05-21  Stephen J. Turnbull  <stephen@xemacs.org>
5355
5356         * syswindows.h: #define LOCALE_RETURN_NUMBER.  Why, I don't know.
5357
5358 2002-04-25  Andy Piper  <andy@xemacs.org>
5359
5360         * redisplay.c (create_text_block): Remove extra comment trailer.
5361
5362 2002-04-24  Andy Piper  <andy@xemacs.org>
5363
5364         * redisplay.c (create_text_block): Don't actually add propagation
5365         data if the line ends after we have added a glyph.
5366
5367 2002-04-22  Andy Piper  <andy@xemacs.org>
5368
5369         * extents.c (extent_fragment_update): check for glyphs we have
5370         previously displayed.
5371         * extents.c (print_extent_1): warning removal.
5372         * extents.h: change prototype.
5373         * redisplay-output.c (redisplay_normalize_glyph_area): calculate
5374         widths correctly for wide glyphs.
5375         * redisplay.c (position_redisplay_data_type): add end_glyph_width.
5376         * redisplay.c (prop_type): add PROP_GLYPH.
5377         * redisplay.c (struct prop_block): add glyph type
5378         * redisplay.c (add_glyph_rune): when adding part of a glyph add it
5379         to the propagation data.
5380         * redisplay.c (create_text_block): if there is a glyph in the
5381         propagation data use it to salt extent_fragment_update.
5382         * redisplay.c (create_string_text_block): ditto.
5383
5384 2002-04-13  Nix  <nix@esperi.demon.co.uk>
5385
5386         * redisplay.h (struct rune): Add ascent, descent, and yoffset fields.
5387         * redisplay-output.c (compare_runes): Compare them.
5388         * redisplay.c: Update copyright date.
5389         * redisplay.c (pos_data): Add need_baseline_computation field.
5390         * redisplay.c (add_glyph_rune): Update ascent, descent, and
5391         need_baseline_computation; zero yoffset. Set max_pixmap_height
5392         for all pixmaps, not just automatically positioned ones.
5393         * redisplay.c (calculate_yoffset): New, compute yoffset values.
5394         * redisplay.c (calculate_baseline): New, compute textual baseline.
5395         * redisplay.c (add_glyph_rune): Call them.
5396         * redisplay.c (create_text_block): Likewise.
5397         * redisplay.c (create_overlay_glyph_block): Likewise.
5398         * redisplay.c (add_margin_runes): Likewise.
5399         * redisplay.c (create_string_text_block): Likewise. Fix tabdamage.
5400
5401         * redisplay.h: (redisplay_calculate_display_boxes): Change prototype.
5402         * redisplay-output.c (redisplay_calculate_display_boxes): Use yoffset.
5403         * redisplay-msw.c (mswindows_output_blank): Pass 0 as yoffset.
5404         * redisplay-msw.c (mswindows_output_string): Likewise.
5405         * redisplay-msw.c (mswindows_output_display_block): Pass yoffset.
5406         * redisplay-gtk.c (gtk_output_display_block): Likewise.
5407         * redisplay-x.c (x_output_display_block): Likewise.
5408
5409 2002-03-28  Ben Wing  <ben@xemacs.org>
5410
5411         * redisplay.c: Fixed bug in redisplay
5412         w.r.t. hscroll/truncation/continuation glyphs causing jumping up
5413         and down of the lines, since they're bigger than the line
5414         size. (It was seen most obviously when there's a horizontal scroll
5415         bar, e.g. do C-h a glyph or something like that.) The problem was
5416         that the glyph-contrib-p setting on glyphs was ignored even if it
5417         was set properly, which it wasn't until now.
5418
5419 2002-04-24  Andy Piper  <andy@xemacs.org>
5420
5421         * lisp.h (Dynarr_end): Fix definition.
5422
5423 2002-02-06  Adrian Aichner  <adrian@xemacs.org>
5424
5425         * redisplay.c (mark_redisplay): Remove call to
5426         update_frame_window_mirror.
5427
5428 2001-11-15  Andy Piper  <andy@xemacs.org>
5429
5430         * win32.c (Fmswindows_shell_execute): fix handling of URL's under
5431         cygwin (again).
5432
5433 2002-02-13  Andy Piper  <andy@xemacs.org>
5434
5435         * event-msw.c (mswindows_wnd_proc): only mark the frame visible if
5436         we did in fact enqueue the XM_MAPFRAME event.
5437
5438 2002-01-15  Adrian Aichner  <adrian@xemacs.org>
5439
5440         * event-msw.c (mswindows_wnd_proc): Add handling of WM_SHOWWINDOW
5441         to fix problem switching between virtual desktops under virtuawin
5442         virtual window manager.
5443
5444 2001-07-30  Adrian Aichner  <adrian@xemacs.org>
5445
5446         * event-msw.c: Typo fix.
5447         * event-msw.c (mswindows_wnd_proc): Set FRAME_VISIBLE_P after
5448         magic XM_MAPFRAME event has been sent.
5449
5450 2001-11-23  Andy Piper  <andy@xemacs.org>
5451
5452         * event-msw.c (mswindows_wnd_proc): Don't pump mousewheel events.
5453
5454 2001-11-21  Andy Piper  <andy@xemacs.org>
5455
5456         * scrollbar-msw.c (mswindows_handle_mousewheel_event): cope with
5457         mouse events outside the frame.
5458
5459 2002-03-20  Andy Piper  <andy@xemacs.org>
5460
5461         * menubar-msw.c (mswindows_popup_menu): warning removal.
5462         * dialog-msw.c (dialog_popped_down): ditto.
5463
5464 2001-12-11  Andy Piper  <andy@xemacs.org>
5465
5466         * dialog-msw.c (dialog_popped_down): new function. unset popup_up_p.
5467         * dialog-msw.c (mswindows_make_dialog_box_internal): set
5468         popup_up_p.
5469         * menubar-msw.c (unsafe_handle_wm_initmenupopup_1): ditto.
5470         * menubar-msw.c (mswindows_handle_wm_command): ditto.
5471         * menubar-msw.c (mswindows_popup_menu): ditto.
5472
5473 2001-10-29  Andy Piper  <andy@xemacs.org>
5474
5475         * dialog-msw.c (handle_directory_dialog_box): quit if the user
5476         cancels.
5477
5478 2002-01-03  Andy Piper  <andy@xemacs.org>
5479
5480         * realpath.c (ABS_LENGTH): dtrt for cygwin systems using drive
5481         letters.
5482         (xrealpath): ditto.
5483
5484 2002-03-29  Jonathan Harris  <jonathan@xemacs.org>
5485
5486         * device-msw.c (plist_get_margin): Add arg specifying mm or inches
5487         * device-msw.c (plist_set_margin): Fix multiplicand used for mm
5488         * device-msw.c (mswindows_handle_page_setup_dialog_box):
5489         Detect and handle case where machine is set up for metric units
5490
5491 2002-04-02  Andy Piper  <andy@xemacs.org>
5492
5493         * dired-msw.c (mswindows_get_files): 
5494         * nt.c (mswindows_stat): SetErrorMode() so that file errors are
5495         completely handled by XEmacs. Suggested by Thomas Vogler
5496         <mail@thomas-vogler.de>.
5497
5498 2001-11-14  Andy Piper  <andy@xemacs.org>
5499
5500         * nt.c (REG_ROOT): change registry key to XEmacs.
5501
5502 2002-04-27  Andy Piper  <andy@xemacs.org>
5503
5504         * glyphs-msw.c (mswindows_widget_instantiate): remove dead-code.
5505
5506 2002-04-26  Andy Piper  <andy@xemacs.org>
5507
5508         * glyphs-msw.c (mswindows_map_subwindow): observe :initial-focus
5509         behavior.
5510
5511 2002-03-14  Mike Alexander  <mta@arbortext.com>
5512
5513         * event-msw.c (mswindows_unwait_process): New, remove process from
5514         wait list
5515         * process-nt.c (nt_finalize_process_data): Call
5516         mswindows_unwait_process
5517         * console-msw.h: Declare mswindows_unwait_process
5518
5519 2002-05-14  Stephen J. Turnbull  <stephen@xemacs.org>
5520
5521         * editfns.c (Fdecode_time):
5522         (Fformat_time_string):
5523         Check for invalid time.  Thanks to Nick Pakoulin <npak@ispras.ru>.
5524         (make_time): Warning elimination (change arg name).
5525
5526 2001-11-24  Andy Piper  <andy@xemacs.org>
5527
5528         * window.c (Fsplit_window): Doc return type.
5529
5530 2002-04-01  Andy Piper  <andy@xemacs.org>
5531
5532         * emacs.c (Fkill_emacs): Only output message box in interactive
5533         mode.
5534
5535 2002-04-26  Andy Piper  <andy@xemacs.org>
5536  
5537         * config.h.in: pull in 21.5.x change to stop alloca warnings under
5538         cygwin.
5539
5540 2002-03-18  Gregory Steuck  <greg-xemacs-patch@nest.cx>
5541
5542         * unexelf.c:  Use ELFSIZE or define from _LP64 to indicate a 64
5543         bit platform.
5544
5545 2002-05-09  Stephen J. Turnbull  <stephen@xemacs.org>
5546
5547         * XEmacs 21.4.8 "Honest Recruiter" is released.
5548
5549 2002-05-07  Nix  <nix@esperi.demon.co.uk>
5550
5551         Supersedes 2002-04-17 patch.
5552
5553         * process.h (PROCESS_LIVE_P): Use the process status as
5554         evidence of health, not the state of the input stream.
5555         (PROCESS_READABLE_P): Say if the process is readable
5556         from. (It may be dead nonetheless.)
5557         (CHECK_READABLE_PROCESS): Test for that condition.
5558
5559         * process.c (create_process): Use PROCESS_READABLE_P.
5560         (read_process_output, set_process_filter): Likewise.
5561
5562         * process.c (Fprocess_input_coding_system): Use CHECK_READABLE_PROCESS.
5563         (Fset_process_input_coding_system, Fprocess_coding_system): Likewise.
5564
5565         This code is #if 0'd, this is not the time to add new functions:
5566
5567         * process.c (Fprocess_readable_p): Report readability status.
5568         * process.c (Qprocess_readable_p): New, associated symbol...
5569         * process.c (syms_of_process): ... initialize it.
5570
5571 2002-05-04  Stephen J. Turnbull  <stephen@xemacs.org>
5572
5573         * XEmacs 21.4.7 "Economic Science" is released.
5574
5575 2002-04-17  Nix  <nix@esperi.demon.co.uk>
5576
5577         * process.h (PROCESS_LIVE_P): Use the process status as
5578         evidence of health, not the state of the input stream.
5579
5580 2002-04-30  Charles G. Waldman <cgw@xemacs.org>
5581
5582         * sysdep.c (sys_siglist): change "signum" to "signal"
5583
5584 2001-04-21  Martin Buchholz  <martin@xemacs.org>
5585
5586         * s/darwin.h: New file.
5587         Thanks to Greg Parker <gparker@cs.stanford.edu>.
5588         
5589 2002-04-23  Andreas Jaeger  <aj@suse.de>
5590
5591         * s/linux.h (LIB_STANDARD): Define correctly for x86-64 and s390x
5592         which use lib64 for 64-bit libs.
5593         (START_FILES): Likewise.
5594
5595 2002-02-11  Mike Sperber  <mike@xemacs.org>
5596
5597         * device-x.c: 
5598         (x_IO_error_handler):
5599         (x_init_device): Temporarily keep device in static variable
5600         `device_being_initialized' so we can recover gracefully from
5601         internal XOpenDevice failure.  (XOpenDevice is documented to
5602         return NULL on failure, but sometimes calls the IO error handler
5603         instead.)
5604
5605 2002-01-31  John H. Palmieri  <palmieri@math.washington.edu>
5606
5607         * dired.c (Ffile_name_all_completions): Change documentation --
5608         remove reference to completion-ignored-extensions.
5609         * dired.c (vars_of_dired): Change documentation for
5610         completion-ignored-extensions -- remove reference to
5611         file-name-all-completions.
5612
5613 2002-03-06  Jerry James  <james@xemacs.org>
5614
5615         * emodules.c (emodules_load): Fix multiple loading of same module.
5616
5617 2002-01-25  Andrew Begel <abegel@cs.berkeley.edu>
5618         * sysdll.c (dll_open): Changed to use RTLD_NOW instead of
5619         RTLD_LAZY to avoid incorrect symbol binding when using nested
5620         shared libraries on Solaris.
5621
5622 2002-02-12  Stephen J. Turnbull  <stephen@xemacs.org>
5623
5624         * fileio.c (Ffind_file_name_handler): Improve docstring.
5625
5626 2002-01-20  Stephen J. Turnbull  <stephen@xemacs.org>
5627
5628         * fns.c (Fmapconcat): Improve docstring.
5629
5630 2002-01-03  Eric Gillespie, Jr.  <epg@pretzelnet.org>
5631
5632         * device-gtk.c: Add prototype for
5633         emacs_gtk_selection_clear_event_handle.
5634         (gtk_init_device): Call gtk_selection_add_target for CLIPBOARD
5635         selection.  Setup signal handler for "selection_clear_event"
5636         (emacs_gtk_selection_clear_event_handle).
5637
5638         * select-gtk.c (emacs_gtk_selection_clear_event_handle): Handle
5639         other applications owning the clipboard (based on
5640         x_handle_selection_clear).
5641
5642 2001-12-23  William M. Perry  <wmperry@gnu.org>
5643
5644         * menubar-gtk.c (gtk_popup_menu)  Add sanity checks, fix crash.
5645         
5646 2002-01-04  Martin Buchholz  <martin@xemacs.org>
5647
5648         * keymap.c (define_key_alternate_name): Parenthesize EQ.
5649
5650 2001-12-17  Stephen J. Turnbull  <stephen@xemacs.org>
5651
5652         * XEmacs 21.4.6 "Common Lisp" is released.
5653
5654 2001-12-16  Torsten Duwe  <duwe@caldera.de>
5655
5656         * search.c (Freplace_match): Add missing sub-expression functionality.
5657
5658         * buffer.c (decode_buffer): Add a check for pointer type to
5659         decode_buffer, before gcc's CSE optimization reorders a
5660         dereference in front of the allow_string test.
5661
5662 2001-11-16  Darryl Okahata  <darrylo@xemacs.org>
5663
5664         * window.c (window_loop): Fix bug that sometimes prevented
5665         window_loop() from iterating across multiple devices.  Also, at
5666         Ben's request, changed infloop-detecting code to abort() instead
5667         of silently terminating window_loop().
5668
5669 2001-11-21  Stephen J. Turnbull  <stephen@xemacs.org>
5670
5671         Based on analysis and patch by Simon Josefson <jas@extundo.com>.
5672         * editfns.c (make_time): New function.
5673         (Fencode_time): Use it instead of wasteful_word_to_lisp.
5674         * lisp.h (make_time): Prototype and comment it.
5675         * dired.c (wasteful_word_to_lisp): Deprecate.
5676         (Ffile_attributes): Use make_time() instead of wasteful_word_to_lisp().
5677
5678 2001-10-31  Kyle Jones  <kyle_jones@wonderworks.com>
5679
5680         * fileio.c (auto_save_1): Use current coding system, not
5681         escape-quoted.
5682
5683 2001-11-13  Ben Wing  <ben@xemacs.org>
5684
5685         * window.c:
5686         * window.c (window_truncation_on):
5687         * window.c (syms_of_window):
5688         truncate-partial-width-windows should respect the buffer being
5689         displayed, like other redisplay vars.
5690
5691 2001-11-13  Hirokazu FUKUI  <hfukui@sannet.ne.jp>
5692
5693         * event-stream.c (Fread_key_sequence): save current buffer.
5694
5695 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
5696
5697         * ntheap.c (_heap_init): Don't redefine in VS.NET (MSC >= 1300).
5698
5699 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
5700
5701         * alloc.c (lcrecord_stats): Add space for types defined in modules.
5702
5703 2001-10-26  Mike Alexander  <mta@arbortext.com>
5704
5705         * event-msw.c (slurper_free_shared_data_maybe): Free the pipe handle.
5706
5707 2001-10-25  Andy Piper  <andy@xemacs.org>
5708
5709         * ChangeLog:
5710         * dialog-msw.c (handle_directory_proc): new function.
5711          (handle_directory_dialog_box): new fucntion.
5712          (handle_file_dialog_box): use new directory dialog support.
5713          (mswindows_make_dialog_box_internal): ditto.
5714         * event-msw.c (mswindows_wnd_proc): minor fix to scrollbar event
5715         handling.
5716         (mswindows_find_frame): make global.
5717         * fileio.c (Fexpand_file_name): build fix.
5718         * general-slots.h: add Qdirectory.
5719         * scrollbar-msw.c (mswindows_handle_scrollbar_event): fix focus
5720         handling.
5721         * syswindows.h (LOCAL_TO_WIN32_FILE_FORMAT): fix problem with
5722         cygwin not leaving win32 paths unchanged.
5723         * win32.c (Fmswindows_cygwin_to_win32_path): new function. Use the
5724         cygwin runtime to do path conversion.
5725         (Fmswindows_shell_execute): fix cygwin handling of URLs.
5726         (syms_of_win32): add new function.
5727         * window.c (window_loop): build fix.
5728
5729 2001-10-15  Andy Piper  <andy@xemacs.org>
5730
5731         (Fmswindows_shell_execute): fix handling of URL's under cygwin.
5732
5733 2001-10-23  Stephen J. Turnbull  <stephen@xemacs.org>
5734
5735         * XEmacs 21.4.5 "Civil Service" is released.
5736
5737 2001-04-08  Danny Colascione  <qtmstr@optonline.net>
5738
5739         * glyphs-x.c: Force buffer-tab highlight update when moving the
5740         buffer, avoiding an ugly black border, used for keyboard focus
5741         indication, on a widget that can never have keyboard focus, the
5742         buffer tab.
5743
5744 2001-08-30  Daiki Ueno  <ueno@unixuser.org>
5745
5746         * process-unix.c (unix_open_multicast_group): Remove too much
5747         conversion between host and network byte order.
5748
5749 2001-09-10  Nix  <nix@esperi.demon.co.uk>
5750
5751         * src/buffer.c (kill_buffer): Undedicate windows showing BUF
5752         before replacing them.
5753
5754         * src/window.c (window_loop): Implement new UNDEDICATE_BUFFER
5755         operation.
5756
5757         * src/window.c (undedicate_windows): Use it.
5758         * src/window.h: Add prototype.
5759
5760 2001-09-17  Ben Wing  <ben@xemacs.org>
5761
5762         * fileio.c (normalize_filename):
5763         * fileio.c (Fexpand_file_name):
5764         Fix various C++ compile errors in Andy's recent code.
5765         
5766         * callint.c (Fcall_interactively):
5767         * editfns.c (Ftemp_directory):
5768         * editfns.c (Fuser_full_name):
5769         * emacs.c (argmatch):
5770         * lread.c (locate_file_map_suffixes):
5771         * redisplay-x.c (x_ring_bell):
5772         Fix sign-compare warnings.
5773         
5774 2001-09-08  Andy Piper  <andy@xemacs.org>
5775
5776         * fileio.c (normalize_filename): copied from nt.c
5777         * (Ffile_name_directory): enable win32 paths under cygwin.
5778         * (Ffile_name_nondirectory): ditto.
5779         * (directory_file_name): ditto.
5780         * (Fexpand_file_name): ditto.
5781         * (Ffile_truename): ditto.
5782         * (Fsubstitute_in_file_name): ditto.
5783         * (Ffile_name_absolute_p): ditto.
5784         * (Ffile_readable_p): ditto.
5785
5786 2001-09-08  Andy Piper  <andy@xemacs.org>
5787
5788         * device-msw.c (mswindows_finish_init_device): remove dde
5789         initialization.
5790         * device-msw.c (mswindows_init_dde): factor out from
5791         mswindows_finish_init_device()
5792         * device-msw.c (init_mswindows_very_early): new function
5793         initialize but don't enable dde.
5794         * emacs.c (main_1): call init_mswindows_very_early.
5795         * event-msw.c:
5796         * event-msw.c (mswindows_dde_callback): only execute when we are
5797         ready.
5798         * symsinit.h: declare init_mswindows_very_early.
5799
5800 2001-05-02  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
5801
5802         [sjt: This has been in 21.5 for months with no complaints.]
5803
5804         * console.h (struct console_methods): Added flags member.
5805         (CONSOLE_IMPLEMENTATION_FLAGS): Defined.
5806         (CONMETH_IMPL_FLAG):
5807         (CONSOLE_IMPL_FLAG): Macro to check implememntation flags.
5808         Defined XDEVIMPF_DONT_PREEMPT_REDISPLAY.
5809
5810         * device.c (window_system_pixelated_geometry): Use the above macros.
5811
5812         * device.h (DEVICE_IMPL_FLAG): Macro to check a device
5813         implememntation flag.
5814         * device.h (DEVICE_DISPLAY_P): Use it.
5815
5816         * frame.c (delete_frame_internal): Use the above macro.
5817
5818         * redisplay.c (redisplay_device): Use it.
5819         (redisplay_device): Obey XDEVIMPF_DONT_PREEMPT_REDISPLAY.
5820         (redisplay_frame): Ditto.
5821
5822         * device-msw.c (mswindows_device_implementation_flags): Removed.
5823         (msprinter_device_implementation_flags): Removed.
5824         (console_type_create_device_mswindows): Removed references to
5825         implementation_flags methods, set implementation flags here.
5826         (console_type_create_device_mswindows): Added XDEVIMPF_DONT_PREEMPT.
5827
5828         * device-gtk.c (gtk_device_implementation_flags): Removed method.
5829         (console_type_create_device_gtk): Removed method declaration.
5830         Added commented out statement which semantically matches the
5831         commented out statement in the above removed method.
5832
5833 2001-04-14  Gordon Sadler  <gbsadler1@lcisp.com>
5834
5835         The attached patch fixes a few warnings. 
5836
5837         * src/emacs.c: prototype console_type_create_select_gtk for GTK only
5838         * src/frame-gtk.c: guard against GNOME calls in GTK only
5839         * src/redisplay-gtk.c: include <sys/poll.h> #ifdef HAVE_POLL
5840         * src/select-gtk.c: prototype lisp_to_time
5841
5842 2001-06-08  Ben Wing  <ben@xemacs.org>
5843
5844         ------ gc-in-window-procedure fixes ------
5845         
5846         * alloc.c:
5847         * alloc.c (struct post_gc_action):
5848         * alloc.c (register_post_gc_action):
5849         * alloc.c (run_post_gc_actions):
5850         * alloc.c (garbage_collect_1):
5851         Create "post-gc actions", to avoid those dreaded "GC during window
5852         procedure" problems.
5853
5854         * event-msw.c:
5855         Abort, clean and simple, when GC in window procedure.  We want
5856         to flush these puppies out.
5857
5858         * glyphs-msw.c:
5859         * glyphs-msw.c (finalize_destroy_window):
5860         * glyphs-msw.c (mswindows_finalize_image_instance):
5861         Use a post-gc action when destroying subwindows.
5862
5863         * lisp.h:
5864         Declare register_post_gc_action().
5865
5866         * scrollbar-msw.c:
5867         * scrollbar-msw.c (unshow_that_mofo):
5868         Use a post-gc action when unshowing scrollbar windows, if in gc.
5869
5870         * redisplay.c (mark_redisplay):
5871         Add comment about the utter evilness of what's going down here.
5872
5873         ------ cygwin setitimer fixes ------
5874         
5875         * Makefile.in.in (sheap_objs):
5876         * Makefile.in.in (profile_objs):
5877         * Makefile.in.in (objs):
5878         Compile profile.c only when HAVE_SETITIMER.
5879         
5880         * nt.c (mswindows_sigset):
5881         * nt.c (mswindows_sighold):
5882         * nt.c (mswindows_sigrelse):
5883         * nt.c (mswindows_sigpause):
5884         * nt.c (mswindows_raise):
5885         * nt.c (close_file_data):
5886         Style fixes.
5887         
5888         * nt.c:
5889         Move setitimer() emulation to win32.c, because Cygwin needs it too.
5890         
5891         * profile.c:
5892         * profile.c (Fstart_profiling):
5893         * profile.c (Fstop_profiling):
5894         Make sure we don't compile if no setitimer().  Use qxe_setitimer()
5895         instead of just plain setitimer().
5896         
5897         * signal.c:
5898         * signal.c (set_one_shot_timer):
5899         * signal.c (alarm):
5900         Define qxe_setitimer() as an encapsulation around setitimer() --
5901         call setitimer() directly unless Cygwin or MS Win, in which case
5902         we use our simulated version in win32.c.
5903         
5904         * systime.h:
5905         * systime.h (struct itimerval):
5906         * systime.h (ITIMER_REAL):
5907         Prototype mswindows_setitimer() and qxe_setitimer().  Long
5908         comment about "qxe" and the policy regarding encapsulation.
5909
5910         * win32.c:
5911         * win32.c (setitimer_helper_proc):
5912         * win32.c (setitimer_helper_period):
5913         * win32.c (setitimer_helper):
5914         * win32.c (mswindows_setitimer):
5915         Move setitimer() emulation here, so Cygwin can use it.
5916         Rename a couple of functions and variables to be longer and more
5917         descriptive.  In setitimer_helper_proc(), send the signal
5918         using either mswindows_raise() or (on Cygwin) kill().  If for
5919         some reason we are still getting lockups, we'll change the kill()
5920         to directly invoke the signal handlers.
5921
5922         ------ windows shell fixes ------
5923         
5924         * callproc.c:
5925         * ntproc.c:
5926         Comments about how these two files must die.
5927
5928         * callproc.c (init_callproc):
5929         On MS Windows, init shell-file-name from SHELL, then COMSPEC,
5930         not just COMSPEC. (more correct and closer to FSF.) Don't
5931         force a value for SHELL into the environment. (Comments added
5932         to explain why not.)
5933         
5934         * nt.c (init_user_info):
5935         Don't shove a fabricated SHELL into the environment.  See above.
5936
5937 2001-06-01  Ben Wing  <ben@xemacs.org>
5938
5939         * Makefile.in.in (ldflags):
5940         eliminate that pesky "defaulting to 00401000" warning.
5941         * nt.h:
5942         eliminate warnings.
5943
5944 2001-06-15  Golubev I. N.  <gin@mo.msk.ru>
5945
5946         * s/sco5.h (FORCE_ALLOCATE_PTY_THE_OLD_FASHIONED_WAY): #define.
5947         * process-unix.c (allocate_pty): #ifndef "modern" pty allocation.
5948
5949 2001-04-24  Jerry James <james@xemacs.org>
5950
5951         * faces.h: pass parameters to Fadd_spec_to_specifier in the
5952         correct order.
5953
5954 2001-06-01  Ben Wing  <ben@xemacs.org>
5955
5956         * event-msw.c (debug_mswin_messages):
5957         conditionalize the messages that were causing compile errors.
5958         (if only macros could generate #ifdef statements ...)
5959
5960 2001-07-28  Stephen J. Turnbull  <stephen@xemacs.org>
5961
5962         * XEmacs 21.4.4 "Artificial Intelligence" is released.
5963
5964 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
5965
5966         * event-msw.c (mswindows_wnd_proc): Add GC debugging assert.
5967
5968 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
5969
5970         * config.h.in (IPV6_CANONICALIZE): New #define for --with-ipv6-lookup.
5971         * process-unix.c (unix_canonicalize_host_name):
5972         sysdep.c (init_system_name):
5973         Use it to conditionally support IPv6 canonicalization.
5974
5975 2001-05-31  Paul Stodghill  <stodghil@cs.cornell.edu>
5976
5977         * event-msw.c:
5978         Cygwin does not define WM_IME_xxx. Modify the #if's accordingly.
5979
5980 2001-05-19  Paul Krause  <paulkrause1@mediaone.net>
5981
5982         * scrollbar-msw.c: Fixes a crash that occurs on Windows when an
5983         attempt is made to scroll when no scroll bar is available.
5984
5985 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
5986
5987         * input-method-motif.c (XIM_delete_frame): New callback.
5988         (XIM_init_frame): Register it.  (Reapplied by SJT, it somehow
5989         got deleted from 21.4.3.)
5990
5991 2001-06-01  Ben Wing  <ben@xemacs.org>
5992
5993         * nt.c (mswindows_utime):
5994         * nt.c (close_file_data):
5995         fix off-by-one-indirection error.
5996
5997 2001-05-29  Adrian Aichner  <adrian@xemacs.org>
5998
5999         * fileio.c: Include nt.h.  Remove lisp_string_set_file_times()
6000         because set_file_times() now takes Lisp_Object path, instead of
6001         char*.
6002         * nt.c: Include buffer.h.
6003         * nt.c (convert_from_time_t): New.
6004         * nt.c (mswindows_utime): New.  Use utime, since SetFileTime does
6005         not set mtime correctly.
6006         * nt.h: Declare mswindows_utime().
6007         * sysdep.c (set_file_times): set_file_times() now takes Lisp_Object
6008         path, instead of char*.
6009         * systime.h: Include <sys/utime.h> on WIN32_NATIVE.
6010
6011 2001-05-30  Ben Wing  <ben@xemacs.org>
6012
6013         For 21.4:
6014
6015         (Stephen, just take all event-msw.c patches.  This includes
6016         the "iconify" fix below.)
6017
6018         * event-msw.c:
6019         * event-msw.c (mswindows_dequeue_dispatch_event):
6020         * event-msw.c (assert):
6021         * event-msw.c (emacs_mswindows_quit_p):
6022         * event-msw.c (debug_mswin_messages):
6023         * event-msw.c (debug_output_mswin_message):
6024         * event-msw.c (vars_of_event_mswindows):
6025         Fix yet more problems with C-g handling.
6026         Implement debug-mswindows-events.
6027         
6028 2001-05-24  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
6029
6030         * event-msw.c (WM_DROPFILES): Use correct type for OLE characters.
6031         
6032 2001-05-23  Ben Wing  <ben@xemacs.org>
6033
6034         * event-msw.c (winsock_writer):
6035         * event-msw.c (winsock_closer):
6036         prior kludgy code was clobbering the buffer, thinking it was
6037         "unused" space to store an unneeded return value; instead, use
6038         the variable we've already got staring us in the face.
6039
6040 2001-05-17  Andy Piper  <andy@xemacs.org>
6041
6042         * sysfile.h: don't assume that file attributes are boolean
6043
6044 2001-05-23  Ben Wing  <ben@xemacs.org>
6045
6046         * device-msw.c (msprinter_init_device):
6047         signal an error rather than crash with an unavailable network
6048         printer (from Mike Alexander).
6049         
6050         * event-msw.c:
6051         * event-msw.c (struct winsock_stream):
6052         * event-msw.c (winsock_writer):
6053         * event-msw.c (winsock_closer):
6054         * event-msw.c (make_winsock_stream_1):
6055         cleanup headers.  fix (hopefully) an error with data corruption
6056         when sending to a network connection.
6057
6058         * fileio.c (Fexpand_file_name): Fix evil code that attempts
6059         to handle the ~user prefix by (a) always assuming we're referencing
6060         ourselves and not even verifying the user -- hence any file with
6061         a tilde as its first char is invalid! (b) if there wasn't a slash
6062         following the filename, the pointer was set *past* the end of
6063         file and we started reading from uninitialized memory.  Now we
6064         simply treat these as files, always.
6065
6066         * buffer.c (common_init_complex_vars_of_buffer): comment change.
6067         
6068 2001-05-19  Ben Wing  <ben@xemacs.org>
6069
6070         * eval.c: doc comment about gcpro'ing in record_unwind_protect.
6071
6072         * process-nt.c:
6073         * process-nt.c (vars_of_process_nt):
6074         remove unused mswindows-quote-process-args.  rec for 21.4.
6075         
6076 2001-05-12  Ben Wing  <ben@xemacs.org>
6077
6078         * event-msw.c (mswindows_dde_callback):
6079         * event-msw.c (mswindows_wnd_proc):
6080         eliminate cygwin warnings.
6081
6082 2001-05-06  Ben Wing  <ben@xemacs.org>
6083
6084         * console-msw.h:
6085         * device-msw.c:
6086         * device-msw.c (print_dialog_worker):
6087         * device-msw.c (mswindows_handle_print_dialog_box):
6088         * device-msw.c (syms_of_device_mswindows):
6089         * dialog-msw.c (mswindows_make_dialog_box_internal):
6090         * general-slots.h:
6091         implement printing the selection when it's selected.
6092
6093 2001-05-20  Drazen Kacar  <dave@arsdigita.com>
6094
6095         * glyphs-gtk.c (gtk_resource_instantiate): C++ comment -> #if 0
6096
6097 2001-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
6098
6099         * lisp.h (EMACS_INT_MAX): This should be one bit less since
6100         EMACS_INT is signed.
6101
6102 2001-04-15  Michael Lausch  <mla@1012surf.net>
6103
6104         * scrollbar-gtk.c (gtk_create_scrollbar_instance): Call
6105         gtk_widget_request_size() to give scrollbar >0 width for
6106         GTK >1.2.8.
6107
6108 2001-05-30  William M. Perry  <wmperry@gnu.org>
6109
6110         * event-gtk.c: Check for buttons as modifier keys.
6111
6112 2001-05-25  Craig Lanning  <CraigL@Knology.net>
6113
6114         * s\mingw32.h:
6115         Properly find MinGW's <process.h> inside Cygwin's restructured
6116         include directories.  Don't try to include <cygwin/version.h>
6117         since we are dropping support for MinGW in versions of Cygwin
6118         earlier than b21.
6119         * nt.c:
6120         Drop support for MinGW in versions of Cygwin before b21.
6121         * sysdep.c:
6122         Properly find MinGW's <process.h> inside Cygwin's restructured
6123         include directories.
6124         * syswindows.h:
6125         Drop support for MinGW in versions of Cygwin before b21.
6126         * unexcw.c:
6127         Even though a.out.h is no longer detected by configure, allow
6128         MinGW to use it until we figure out how to do the job with Win32.
6129
6130 2001-07-11  Matt Tucker  <tuck@whistlingfish.net>
6131
6132         * syntax.c (find_start_of_comment):
6133         Fix `unbalanced parentheses' bug when dealing with mixed comment
6134         styles in c++/java/etc. mode
6135
6136 2001-05-29  Mike Alexander  <mta@arbortext.com>
6137
6138         * console-msw.h (FRAME_MSPRINTER_CHARHEIGHT): Unswap
6139         FRAME_MSPRINTER_CHARWIDTH and FRAME_MSPRINTER_CHARHEIGHT
6140
6141 2001-05-17  Andrew Begel  <abegel@eecs.berkeley.edu>
6142
6143         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Add needed cast.
6144
6145 2001-03-31  Mike Sperber <mike@xemacs.org>
6146
6147         * search.c (Freplace_match): Support FSF-style specification of
6148         match subexpression when applied to a buffer.
6149
6150 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
6151
6152         * event-stream.c (is_scrollbar_event): add missing semicolon
6153
6154 2001-05-22  Isaac Hollander  <ysh@mindspring.com>
6155
6156         * Makefile.in.in: Use TAR macro instead of hardcoding
6157           tar.  Allows use of GNU tar instead of system tar
6158
6159 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
6160
6161         * event-stream.c (is_scrollbar_event): add missing semicolon
6162
6163 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
6164
6165         * XEmacs 21.4.3 "Academic Rigor" is released.
6166
6167 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
6168
6169         * regex.c: Define DECLARE_NOTHING when "lisp.h" is not included.
6170
6171 2001-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
6172
6173         * buffer.c (Vcase_fold_search): Remove obsolete
6174           comment about non ASCII case-fold-search.  This
6175           bug has been fixed by case-table changes.
6176
6177 2001-05-11  Stephen J. Turnbull  <stephen@xemacs.org>
6178
6179         * event-msw.c: Restore include of events-mod.h.
6180
6181 2001-04-22   zhaoway  <zw@debian.org>
6182
6183         * event-stream.c (is_scrollbar_event): Noop returning 0 if
6184         !HAVE_SCROLLBARS.
6185
6186 2001-05-10  Stephen J. Turnbull  <stephen@xemacs.org>
6187
6188         * XEmacs 21.4.2 "Developer-Friendly Unix APIs" is released.
6189
6190 2001-05-08  Yoshiaki Kasahara  <kasahara@nc.kyushu-u.ac.jp>
6191
6192         * mule-charset.c (Fmake_charset): Add missing else.
6193
6194 2001-04-23  Ben Wing  <ben@xemacs.org>
6195
6196         * event-msw.c (FAKE_MOD_QUIT):
6197         * event-msw.c (mswindows_dequeue_dispatch_event):
6198         * event-msw.c (mswindows_wnd_proc):
6199         * event-msw.c (emacs_mswindows_quit_p):
6200         Get critical quit working.
6201
6202 2001-05-05  Ben Wing  <ben@xemacs.org>
6203
6204         * console-msw.h:
6205         * device-msw.c:
6206         * device-msw.c (mswindows_get_default_margin):
6207         * frame-msw.c (mswindows_size_frame_internal):
6208         * frame-msw.c (msprinter_init_frame_1):
6209         * frame-msw.c (vars_of_frame_mswindows):
6210         Change top/bottom margin defaults to 0.5 inches.
6211
6212 2001-05-01  Martin Buchholz  <martin@xemacs.org>
6213
6214         Fix link error with gcc 3.0 on Linux.
6215         * terminfo.c (UP): Remove.
6216         * terminfo.c (BC): Remove.
6217         * terminfo.c (PC): Remove.
6218         They weren't used, and in any case, these symbols should be
6219         defined in the *library*.
6220
6221 2001-05-03  Martin Buchholz  <martin@xemacs.org>
6222
6223         * s/aix4.h: Fix crash with xlc -O3.
6224         Improve comment explaining how -O3 works.
6225
6226 2001-04-15  Ben Wing  <ben@xemacs.org>
6227
6228         * event-stream.c:
6229         * event-stream.c (Fnext_event):
6230         * event-stream.c (is_scrollbar_event):
6231         * event-stream.c (execute_command_event):
6232         Better fix for Yoshiki's `C-x @ h <scrollbar-drag> x causes a
6233         crash' problem.  His fix introduces other problems.  We filter
6234         out scrollbar events specifically, making them somewhat invisible
6235         to command-building, and not appearing in `this-command-keys'.
6236         More work is still needed (see comments in event-stream.c), but
6237         this fixes all the major problems.
6238
6239 2001-04-20  Ben Wing  <ben@xemacs.org>
6240
6241         * .cvsignore: Added stuff for Windows.
6242
6243 2001-04-28  Ben Wing  <ben@xemacs.org>
6244
6245         * buffer.c (Ferase_buffer):
6246         * editfns.c (buffer_insert1):
6247         * editfns.c (Finsert_before_markers):
6248         * editfns.c (Finsert_string):
6249         * editfns.c (Finsert_char):
6250         * editfns.c (Fdelete_region):
6251         * editfns.c (Fwiden):
6252         * editfns.c (Fnarrow_to_region):
6253         remove bogus lines setting zmacs_region_stays to 0.
6254         
6255 2001-04-15  Gunnar Evermann  <ge204@eng.cam.ac.uk>
6256
6257         * process-unix.c (unix_open_network_stream): If connect() fails
6258         invalidate file descriptor after closing it.
6259
6260 2001-03-08  Mike Alexander  <mta@arbortext.com>
6261
6262         * event-msw.c (mswindows_need_event_in_modal_loop):
6263         Don't dispatch a message if we didn't get one.
6264         (mswindows_need_event):
6265         Terminate the correct process when one exits instead of the first
6266         one on Vprocess_list and look for process termination when in
6267         mswindows_protect_modal_loop.
6268
6269 2001-04-19  Stephen J. Turnbull  <stephen@xemacs.org>
6270
6271         * XEmacs 21.4.1 "Copyleft" is released.
6272
6273 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
6274
6275         * input-method-motif.c (XIM_delete_frame): New callback.
6276         (XIM_init_frame): Register it.
6277
6278 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
6279
6280         * XEmacs 21.4.0 "Solid Vapor" is released.
6281
6282 2001-04-15  Ben Wing  <ben@xemacs.org>
6283
6284         * cmdloop.c (call_command_loop):
6285         Fix braino in bit-rotting code.
6286         
6287 2001-04-07  Hrvoje Niksic  <hniksic@arsdigita.com>
6288
6289         * extents.c (Fset_extent_endpoints): Force creation of extent info
6290         in buffer_or_string.
6291
6292         * extents.c (process_extents_for_insertion_mapper): Correctly
6293         check for open-open zero-length extents.
6294
6295 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
6296
6297         * lisp.h: New typedefs Memory_count, Element_count.
6298         * regex.c:
6299         * regex.h:
6300         Sign-compare warning elimination: several unsigned -> signed.
6301         Based on work by Ben Wing <ben@xemacs.org>.
6302
6303 2001-04-14  Stephen J. Turnbull  <stephen@xemacs.org>
6304
6305         * XEmacs 21.2.47 "Zephir" is released.
6306
6307 2001-04-02  Jan Vroonhof  <jan@xemacs.org>
6308
6309         * redisplay.c (add_bufbyte_string_runes): Update data->bytepos
6310
6311 2001-04-03  Mike Sperber <mike@xemacs.org>
6312
6313         * search.c: Revert previous patch due because of release.
6314
6315 2001-03-30  Ben Wing  <ben@xemacs.org>
6316
6317         * s\cygwin32.h:
6318         Add missing killpg prototype.
6319
6320         * elhash.c:
6321         Add a comment about fixing problems when a new entry is added
6322         while mapping.
6323
6324         * frame-msw.c (mswindows_init_frame_1):
6325         Fix compile warnings.
6326
6327         * menubar.c (vars_of_menubar):
6328         Provide `menu-accelerator-support' to indicate that we properly
6329         support %_ in menu specifications, so that package code can
6330         conditionalize on this (and remove %_ from menu specifications
6331         on older versions).
6332
6333         * event-msw.c:
6334         * scrollbar-msw.c:
6335         * scrollbar-msw.c (can_scroll):
6336         * scrollbar-msw.h:
6337         Fix handling of mouse wheel under Windows to follow standards --
6338         now scrolls window under pointer, not selected window.
6339
6340 2001-03-31  Mike Sperber <mike@xemacs.org>
6341
6342         * search.c (Freplace_match): Support FSF-style specification of
6343         match subexpression when applied to a buffer.
6344
6345 2001-03-15  Martin Buchholz  <martin@xemacs.org>
6346
6347         * keymap.c (Fmap_keymap): map-keymap explicitly allows a mapping
6348         function to modify KEYMAP, so map over a copy of the hash table.
6349
6350 2001-03-21  Martin Buchholz <martin@xemacs.org>
6351
6352         * XEmacs 21.2.46 "Urania" is released.
6353
6354 2001-03-20  Dan Holmsand  <dan@eyebee.com>
6355
6356         * realpath.c (xrealpath): Make file-truename work with symlinks to
6357         /cygdrive paths on cygwin. Always lowercase drive-letters on
6358         native windows.
6359         (cygwin_readlink): Don't try to find canonical filename unless
6360         file exists.
6361
6362 2001-03-15  Stephen J. Turnbull  <stephen@xemacs.org>
6363
6364         * ChangeLog: Log GTK merge.
6365
6366         * dumper.c:
6367         * select-x.c:
6368         * specifier.c:
6369         * symeval.h:
6370         Revert gratuitous whitespace changes from GTK merge.
6371
6372         * emacs.c: Document end of complex #ifdef @ l. 1495.
6373
6374
6375 2001-03-12  Andy Piper  <andy@xemacs.org>
6376
6377         * mingw32.h: unfortunately cygnus changed mingw32 -> mingw so we
6378         have to do likewise.
6379
6380 2001-03-12  Andy Piper  <andy@xemacs.org>
6381
6382         * sysdep.c: we only support mingw now.
6383
6384 2001-03-09  Andy Piper  <andy@xemacs.org>
6385
6386         * unexcw.c (copy_executable_and_dump_data_section): making approx
6387         overrun a warning only.
6388
6389 2001-03-10  William M. Perry  <wmperry@aventail.com>
6390
6391         * faces.c (complex_vars_of_faces): Rewrote the font mucking to
6392         satisfy Stephen's identical-after-cpp plea.
6393
6394 2001-03-02  Ben Wing  <ben@xemacs.org>
6395
6396         * cmds.c:
6397         * cmds.c (Fforward_char):
6398         * syntax.c:
6399         * window.c:
6400
6401         Augment documentation of the most common motion commands to make
6402         note of the shifted-motion support.
6403         
6404 2001-03-02  Ben Wing  <ben@xemacs.org>
6405
6406         * nt.c (mswindows_fstat):
6407         * nt.c (mswindows_stat):
6408         * search.c (boyer_moore):
6409         Fix compile warnings under Windows.
6410         
6411         * sysdep.c (sys_readdir):
6412         Fix buggy filename-conversion code under Mule.
6413
6414 2001-03-09  William M. Perry  <wmperry@aventail.com>
6415
6416         * Makefile.in.in:
6417         * config.h.in:
6418         * console.c:
6419         * console.h:
6420         * device.c:
6421         * device.h:
6422         * dragdrop.c:
6423         * emacs.c:
6424         * event-stream.c:
6425         * events.c:
6426         * events.h:
6427         * faces.c:
6428         * frame.h:
6429         * general-slots.h:
6430         * glyphs.c:
6431         * gutter.c:
6432         * inline.c:
6433         * lisp.h:
6434         * lrecord.h:
6435         * make-src-depend:
6436         * redisplay-output.c:
6437         * redisplay.c:
6438         * symsinit.h:
6439         * sysfile.h:
6440         * toolbar.c:
6441         * window.c:
6442         The Great GTK Merge.
6443
6444         * ChangeLog.GTK:
6445         * console-gtk.c:
6446         * console-gtk.h:
6447         * device-gtk.c:
6448         * emacs-marshals.c:
6449         * emacs-widget-accessors.c:
6450         * event-gtk.c:
6451         * frame-gtk.c:
6452         * gccache-gtk.c:
6453         * gccache-gtk.h:
6454         * glade.c:
6455         * glyphs-gtk.c:
6456         * glyphs-gtk.h:
6457         * gtk-glue.c:
6458         * gtk-xemacs.c:
6459         * gtk-xemacs.h:
6460         * gui-gtk.c:
6461         * gui-gtk.h:
6462         * menubar-gtk.c:
6463         * native-gtk-toolbar.c:
6464         * objects-gtk.c:
6465         * objects-gtk.h:
6466         * redisplay-gtk.c:
6467         * scrollbar-gtk.c:
6468         * scrollbar-gtk.h:
6469         * select-gtk.c:
6470         * toolbar-gtk.c:
6471         * ui-byhand.c:
6472         * ui-gtk.c:
6473         * ui-gtk.h:
6474         The Great GTK Merge: new files.
6475
6476 2001-02-26  Ben Wing  <ben@xemacs.org>
6477
6478         Reapplied Lstream change.
6479
6480 2001-02-26  Ben Wing  <ben@xemacs.org>
6481
6482         Undid the last change, since it is more controversial than I
6483         thought.  It should be back in at some point soon.
6484         
6485 2001-02-25  Ben Wing  <ben@xemacs.org>
6486
6487         * buffer.c:
6488         * callproc.c (Fold_call_process_internal):
6489         * event-msw.c (ntpipe_slurp_reader):
6490         * event-msw.c (ntpipe_shove_writer):
6491         * event-msw.c (winsock_reader):
6492         * event-msw.c (winsock_writer):
6493         * file-coding.c:
6494         * file-coding.c (detect_eol_type):
6495         * file-coding.c (detect_coding_type):
6496         * file-coding.c (determine_real_coding_system):
6497         * file-coding.c (Fdetect_coding_region):
6498         * file-coding.c (decoding_reader):
6499         * file-coding.c (decoding_writer):
6500         * file-coding.c (mule_decode):
6501         * file-coding.c (Fdecode_coding_region):
6502         * file-coding.c (encoding_reader):
6503         * file-coding.c (encoding_writer):
6504         * file-coding.c (mule_encode):
6505         * file-coding.c (Fencode_coding_region):
6506         * file-coding.c (detect_coding_sjis):
6507         * file-coding.c (decode_coding_sjis):
6508         * file-coding.c (encode_coding_sjis):
6509         * file-coding.c (detect_coding_big5):
6510         * file-coding.c (decode_coding_big5):
6511         * file-coding.c (encode_coding_big5):
6512         * file-coding.c (detect_coding_ucs4):
6513         * file-coding.c (decode_coding_ucs4):
6514         * file-coding.c (encode_coding_ucs4):
6515         * file-coding.c (detect_coding_utf8):
6516         * file-coding.c (decode_coding_utf8):
6517         * file-coding.c (encode_coding_utf8):
6518         * file-coding.c (detect_coding_iso2022):
6519         * file-coding.c (decode_coding_iso2022):
6520         * file-coding.c (encode_coding_iso2022):
6521         * file-coding.c (decode_coding_no_conversion):
6522         * file-coding.c (encode_coding_no_conversion):
6523         * glyphs-x.c (write_lisp_string_to_temp_file):
6524         * gpmevent.c (tty_get_foreign_selection):
6525         * lisp.h:
6526         * lstream.c:
6527         * lstream.c (Lstream_flush_out):
6528         * lstream.c (Lstream_adding):
6529         * lstream.c (Lstream_write_1):
6530         * lstream.c (Lstream_write):
6531         * lstream.c (Lstream_raw_read):
6532         * lstream.c (Lstream_read_more):
6533         * lstream.c (Lstream_read):
6534         * lstream.c (Lstream_unread):
6535         * lstream.c (Lstream_fputc):
6536         * lstream.c (stdio_reader):
6537         * lstream.c (stdio_writer):
6538         * lstream.c (filedesc_reader):
6539         * lstream.c (filedesc_writer):
6540         * lstream.c (lisp_string_reader):
6541         * lstream.c (struct fixed_buffer_stream):
6542         * lstream.c (make_fixed_buffer_input_stream):
6543         * lstream.c (make_fixed_buffer_output_stream):
6544         * lstream.c (fixed_buffer_reader):
6545         * lstream.c (fixed_buffer_writer):
6546         * lstream.c (struct resizing_buffer_stream):
6547         * lstream.c (resizing_buffer_writer):
6548         * lstream.c (dynarr_writer):
6549         * lstream.c (lisp_buffer_reader):
6550         * lstream.c (lisp_buffer_writer):
6551         * lstream.h:
6552         * lstream.h (lstream_implementation):
6553         * lstream.h (struct lstream):
6554         * md5.c (Fmd5):
6555         * process-nt.c (nt_send_process):
6556         * process-unix.c (unix_send_process):
6557         
6558         Correct Lstream lossage due to mixing of signed and unsigned
6559         quantities.  All Lstream uses of size_t and ssize_t are now a
6560         single signed data type Lstream_data_count.  This fixes problems
6561         under Windows with sending large quantities of data to a process,
6562         and may well fix other subtle bugs.
6563
6564 2001-02-23  Martin Buchholz <martin@xemacs.org>
6565
6566         * XEmacs 21.2.45 "Thelxepeia" is released.
6567
6568 2001-02-21  Martin Buchholz  <martin@xemacs.org>
6569
6570         * lisp-union.h (XSETINT): 
6571         (XSETCHAR):
6572         (XSETOBJ): 
6573         Reverse previous change of 2001-02-06.
6574
6575 2001-02-20  Matt Tucker  <tuck@whistlingfish.net>
6576
6577         Fix `VALID_BYTIND_P' crashes in regex.c when using narrowed
6578         buffers.
6579         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
6580         * syntax.h (SYNTAX_CACHE_OBJECT_BYTE_TO_CHAR):
6581         Add `BI_BUF_BEGV' to bytepos before calculating bufpos.
6582         * regex.c (POS_AS_IN_BUFFER): removed
6583         * regex.c (re_search_2):
6584         * regex.c (re_match_2):
6585         Don't use an offset of 1 when calculating buffer positions, since
6586         `BI_BUF_BEGV' does it already.
6587
6588 2001-02-18  Wim Dumon  <wim@easics.be>
6589
6590         * insdel.c (prepare_to_modify_buffer): Also check for
6591         supersession when clash-detection is enabled. 
6592
6593 2001-02-17  Matt Tucker  <tuck@whistlingfish.net>
6594
6595         * regex.c (re_match_2_internal):
6596         Convert temp characters from 'const unsigned char' to 're_char'.
6597         Fix crashing bug with extended characters under mule.
6598         * syntax.c (Qsyntax_table): Moved from vars_of_syntax to
6599         syms_of_syntax. Use defsymbol to define. Fixes hanging bug with
6600         font-lock, pdump, and new syntax-table code.
6601         * syntax.c (find_start_of_comment):
6602         (find_end_of_comment):
6603         (forward-comment):
6604         Fix crashing bugs involving moving beyond end of buffer.
6605         * syntax.c (find_start_of_comment):
6606         Fixed logic to allow proper detection of cases where the same
6607         character is used to end both a two-char comment start and a
6608         two-char comment end sequence. Fixes `(forward-comment -1)'.
6609         * syntax.c (find_start_of_comment):
6610         Return position just past last comment-end character for all cases
6611         (previously was only done for two-char comment-end sequences).
6612         * syntax.c (forward-comment):
6613         Take value returned from `find_end_of_comment', rather than
6614         incrementing it.
6615         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
6616         Properly deal with BUFFERP (syntax_cache.object)
6617
6618 2001-02-17  Martin Buchholz  <martin@xemacs.org>
6619
6620         * alloc.c (Fgarbage_collect): 
6621         * alloc.c (make_bit_vector_from_byte_vector):
6622         -Wsign-compare-correctness.
6623
6624 2001-02-16  Martin Buchholz  <martin@xemacs.org>
6625
6626         * lisp-union.h (XSETINT): Eliminate unnecessary temp var.
6627         (XSETCHAR): Likewise.
6628         (XSETOBJ): Likewise.
6629
6630 2001-02-15  Martin Buchholz  <martin@xemacs.org>
6631
6632         * mule-canna.c (canna-func-delete_previous): 
6633         Rename to canna-func-delete-previous.
6634
6635 2001-02-14  Martin Buchholz  <martin@xemacs.org>
6636
6637         * mule-ccl.c (ccl_driver): Warning suppression.  Use countof.
6638
6639 2001-02-13  Matt Tucker  <tuck@whistlingfish.net>
6640
6641         * font-lock.c (find_context): Fix C++ compile errors introduced by
6642         recent patch
6643
6644 2001-02-13  Martin Buchholz  <martin@xemacs.org>
6645
6646         * s/aix4.h: Later versions of IBM C compiler need a bug workaround
6647         pragma, but earlier ones barf on the same pragma.
6648
6649 2001-02-06  Mike Sperber <mike@xemacs.org>
6650
6651         * emacs.c (complex_vars_of_emacs): Add `mule-lisp-directory' and
6652         `configure-mule-lisp-directory'.
6653
6654 2001-02-12  Martin Buchholz  <martin@xemacs.org>
6655
6656         Make sure dump-id.c is compiled in the same way as other .c's.
6657         Fixes pdump compilation failure with HP's cc, which defaults to K&R.
6658         * dump-id.h: Remove.
6659         * emacs.c: Move dump-id.h into dumper.h.
6660         * dumper.h: Move dump-id.h into dumper.h.
6661         * Makefile.in.in:
6662         Use standard .c.o rule for building dump-id.o.
6663         Remove preprocessor flags from link command.
6664         Add dump-id.o to ${otherobjs} if PDUMP.
6665
6666 2001-02-07  Matt Tucker  <tuck@whistlingfish.net>
6667
6668         Port FSF 20.7 syntax table improvements.
6669         * syntax.c.
6670         * syntax.h.
6671
6672         Fixups for new syntax table stuff.
6673         * dired.c: Include syntax.c.
6674         (Fdirectory_files): Initialize regex_match_object and
6675         regex_emacs_buffer.
6676         * extents.h: EXFUN Fnext_extent_change, Fprevious_extent_change,
6677         and Fget_char_property.
6678
6679         Use ported FSF 20.7 syntax table improvements.
6680         * font-lock.c.
6681         * regex.c.
6682         * search.c.
6683         
6684 2001-02-09  Martin Buchholz  <martin@xemacs.org>
6685
6686         * regex.c (Boolean): Renamed to `re_bool', to avoid conflict with
6687         Unixware's enum boolean from sys/types.h.
6688
6689 2001-02-10  Martin Buchholz  <martin@xemacs.org>
6690
6691         Fix support for building with latest Purify.
6692         * Makefile.in.in (PURIFY_LIBS): Remove thread flags.
6693         (PURIFY_FLAGS): Likewise.
6694
6695 2001-02-09  Martin Buchholz  <martin@xemacs.org>
6696
6697         * fileio.c (lisp_string_set_file_times): New.
6698         * fileio.c (Fcopy_file): Use it.
6699         Fixes bug:
6700         (copy-file filename non-ascii-filename t t)
6701         ==> No such file or directory, non-ascii-filename
6702
6703 2001-02-10  Martin Buchholz  <martin@xemacs.org>
6704
6705         * glyphs-x.c (generate_cursor_fg_bg): Avoid a warning.
6706         USHRT_MAX seems clearer than ~0 anyways.
6707
6708 2001-02-09  Martin Buchholz  <martin@xemacs.org>
6709
6710         dumper improvements.  Inspired by Olivier.
6711         * dumper.c (pdump_max_align): New.
6712         * dumper.c (pdump_add_entry): Use pdump_max_align.
6713         * dumper.c (pdump_get_entry_list): Likewise.
6714         * dumper.c (pdump_scan_by_alignment): Likewise.
6715         Don't iterate through unnecessary alignments.
6716         * dumper.c (pdump_file_get): No need to align result of malloc().
6717         * dumper.c (pdump_mallocadr): Remove.  
6718         The result of malloc() is guaranteed to be maximally aligned.
6719         * dumper.c: s/elmt/elt/g;
6720         * dumper.c (pdump_object_table): Allocate dynamically, not statically.
6721         * dumper.c (pdump_alert_undump_object): Likewise.
6722         * dumper.c (pdump_align_table): 
6723         Don't support alignments > 64.
6724         Store ALIGNOF's, not shift counts, in table.
6725
6726 2001-02-09  Martin Buchholz  <martin@xemacs.org>
6727
6728         * s/mingw32.h (HAVE_STRUCT_UTIMBUF): Remove.
6729         * s/windowsnt.h (HAVE_STRUCT_UTIMBUF): Remove.
6730         * systime.h: Use HAVE_UTIME.
6731         * sysdep.c (struct utimbuf): Remove.
6732         * sysdep.c (set_file_times): Prefer utime() to utimes().
6733         * config.h.in (HAVE_UTIME): New.
6734         * config.h.in (HAVE_UTIME_H): Remove.
6735         * config.h.in (HAVE_STRUCT_UTIMBUF): Remove.
6736
6737 2001-02-09  Martin Buchholz  <martin@xemacs.org>
6738
6739         * s/aix4.h: Hide #pragmas inside #ifndef NOT_C_CODE.
6740
6741 2001-02-08  Martin Buchholz  <martin@xemacs.org>
6742
6743         * s/irix6-0.h: Use the standard system memmove, not bcopy.
6744
6745 2001-02-08  Martin Buchholz <martin@xemacs.org>
6746
6747         * XEmacs 21.2.44 "Thalia" is released.
6748
6749 2001-02-06  Martin Buchholz  <martin@xemacs.org>
6750
6751         Fixes crashes in kill-emacs on some systems.
6752         * process-unix.c (unix_kill_child_process):
6753         It's OK for kill() to fail with ESRCH.
6754
6755 2001-02-07  Martin Buchholz  <martin@xemacs.org>
6756
6757         Contortions to make .gdbinit tricks work on most systems.
6758         * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
6759         * alloc.c (dbg_valmask): Make non-const.
6760         * alloc.c (dbg_typemask): Make non-const.
6761         * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
6762         * alloc.c (dbg_valbits): Make non-const.
6763         * alloc.c (dbg_gctypebits): Make non-const.
6764         * .gdbinit (decode_object): Make it work with AIX cc.
6765
6766 2001-02-06  Martin Buchholz  <martin@xemacs.org>
6767
6768         * elhash.c (make_general_lisp_hash_table):
6769         Use simpler and more efficient calloc to clear entries.
6770
6771 2001-02-07  Martin Buchholz  <martin@xemacs.org>
6772
6773         * window.c (window_scroll): Work around an AIX C compiler bug.
6774         Fixes 'scroll-up' does nothing problem with xlC.
6775
6776 2001-02-05  Martin Buchholz  <martin@xemacs.org>
6777
6778         * .gdbinit: Remove obsolete comment.
6779
6780 2001-01-31  Mike Alexander  <mta@arbortext.com>
6781
6782         * select.c (Fown_selection_internal): Set owned_p for device
6783         method correctly.
6784
6785 2001-02-01  Martin Buchholz  <martin@xemacs.org>
6786
6787         Port to g++ 2.97.
6788         "not" cannot be used as a macro name as it is an operator in C++
6789         * config.h.in: Stop #defining `not'.
6790         * chartab.c (check_category_char): not ==> not_p
6791         * chartab.h: Likewise.
6792         * regex.c (re_match_2_internal): Likewise.
6793
6794 2001-02-02  Martin Buchholz  <martin@xemacs.org>
6795
6796         * lisp-disunion.h: Fix up comments.
6797
6798 2001-01-31  Martin Buchholz  <martin@xemacs.org>
6799
6800         * keymap.c (define_key_check_and_coerce_keysym):
6801         (syms_of_keymap):
6802         Support mouse-6 and mouse-7 bindings in the obvious way.
6803
6804 2001-02-01  Martin Buchholz  <martin@xemacs.org>
6805
6806         * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
6807
6808 2001-01-30  Martin Buchholz  <martin@xemacs.org>
6809
6810         Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
6811         Previous patch missed DEFVAR_INT_MAGIC.
6812         Make sure future DEFVAR_foo use correct types.
6813         * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
6814         * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
6815         * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
6816         * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
6817         * (DEFVAR_INT): Likewise.
6818         * redisplay.c (vertical_clip): Should be of type Fixnum.
6819         * redisplay.c (horizontal_clip): Likewise.
6820         * lisp.h (dump_add_opaque_int): New.
6821         (dump_add_opaque_fixnum): New.
6822
6823 2001-01-29  Andy Piper  <andy@xemacs.org>
6824
6825         * glyphs-widget.c (check_valid_int_or_function): allow symbols
6826         since they can be eval'ed
6827
6828 2001-01-29  Martin Buchholz  <martin@xemacs.org>
6829
6830         * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
6831         Oops, XEmacs redefines `class'.  Use `typename' instead.
6832
6833 2001-01-28  Martin Buchholz  <martin@xemacs.org>
6834
6835         * dumper.c: Fix C++ compile errors.
6836
6837 2001-01-29  Martin Buchholz  <martin@xemacs.org>
6838
6839         * tparam.c: Use correct prototypes.
6840
6841 2001-01-28  Martin Buchholz  <martin@xemacs.org>
6842
6843         * sysproc.h: #include util.h for NetBSD's openpty.
6844
6845 2001-01-27  Martin Buchholz  <martin@xemacs.org>
6846
6847         More 64-bit correctness.
6848         The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
6849         Use a typedef `fixnum' for the type used for DEFVAR_INT.
6850         Fix up comments.
6851         This finally finishes the 64-bit SGI port.
6852         Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
6853         * symbols.c: Fix up comments and type casts.
6854         * symbols.c (do_symval_forwarding): s/int/Fixnum/g
6855         * symbols.c (store_symval_forwarding): s/int/Fixnum/g
6856         * symeval.h (Fixnum): New type.
6857         * symeval.h (symbol_value_type): Fix up comment.
6858
6859         * commands.h:
6860         * nt.c:
6861         * emacs.c:
6862         * data.c:
6863         * redisplay.c:
6864         * abbrev.c:
6865         * dired-msw.c:
6866         * event-Xt.c:
6867         * eldap.c:
6868         * window.c:
6869         * sound.c:
6870         * event-stream.c:
6871         * eval.c:
6872         * buffer.c:
6873         * mule-canna.c: A million DEFVAR_INTs here...
6874         * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
6875         * extents.c:
6876         * cmdloop.c:
6877         * lisp.h:
6878         * select-x.c:
6879         * console-x.h:
6880         * event-msw.c:
6881         * mule-wnnfns.c:
6882         * hpplay.c:
6883         * ralloc.c:
6884         * alloc.c:
6885         * keymap.c:
6886         * profile.c:
6887         s/int/Fixnum/g in DEFVAR_INT declarations.
6888
6889 2001-01-26  Martin Buchholz  <martin@xemacs.org>
6890
6891         Port pdump to SGI alignment-sensitive environment.
6892         Lisp Object sizeof methods now return aligned sizes.  Rely on that.
6893         Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
6894         properly aligned.
6895         Define and use aligned reading and writing macros.
6896         Use buffered stdio instead of posix i/o for faster dumping.
6897         Eliminate kludgy 256 byte space for header.
6898         Read and write from dump file using structs for alignment safety.
6899         * dumper.c (pdump_align_stream): New.
6900         * dumper.c (PDUMP_ALIGN_OUTPUT): New.
6901         * dumper.c (PDUMP_READ_ALIGNED): New.
6902         * dumper.c (PDUMP_WRITE_ALIGNED): New.
6903         * dumper.c (pdump_static_Lisp_Object): New struct.
6904         * dumper.c (pdump_static_pointer): New struct.
6905         * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
6906         * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
6907         * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
6908         * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
6909
6910         * dumper.c (pdump_backtrace):
6911         * dumper.c (pdump_get_indirect_count):
6912         * dumper.c (pdump_register_object):
6913         * dumper.c (pdump_register_struct):
6914         * dumper.c (pdump_reloc_one):
6915         * dumper.c (pdump_scan_by_alignment):
6916         * dumper.c (pdump_dump_from_root_struct_ptrs):
6917         * dumper.c (pdump_dump_opaques):
6918         * dumper.c (pdump_dump_rtables):
6919         * dumper.c (pdump_dump_from_root_objects):
6920         * dumper.c (pdump):
6921         * dumper.c (pdump_load_finish):
6922         Use aligned reading and writing.
6923
6924         * dumper.c (pdump_free): Make static.
6925         * dumper.c (pdump_hFile): Likewise.
6926         * dumper.c (pdump_hMap): Likewise.
6927
6928 2001-01-26  Martin Buchholz <martin@xemacs.org>
6929
6930         * XEmacs 21.2.43 "Terspichore" is released.
6931
6932 2001-01-25  Martin Buchholz  <martin@xemacs.org>
6933
6934         Type fiddling for window_config.saved_windows_count
6935         * window.c (struct window_config): 
6936         Make saved_windows_count member unsigned.
6937         * window.c (sizeof_window_config_for_n_windows): 
6938         Make parameter unsigned.
6939         * window.c (mark_window_config):
6940         * window.c (window_config_equal):
6941         * window.c (free_window_configuration):
6942         * window.c (Fset_window_configuration):
6943         * window.c (count_windows):
6944         * window.c (Fcurrent_window_configuration):
6945         * window.c (reinit_vars_of_window):
6946         Update all callers and users.
6947
6948 2001-01-25  Martin Buchholz  <martin@xemacs.org>
6949
6950         Alignment correctness for flexible arrays.
6951         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
6952         Make alignment-correct. Add interesting comments.
6953         * alloc.c (size_vector):
6954         * alloc.c (make_vector_internal):
6955         * alloc.c (make_bit_vector_internal):
6956         * alloc.c (sweep_bit_vectors_1):
6957         * fns.c (size_bit_vector):
6958         Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
6959         * window.c (sizeof_window_config_for_n_windows): 
6960         Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
6961
6962 2001-01-24  Martin Buchholz  <martin@xemacs.org>
6963
6964         * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
6965
6966 2001-01-23  Andy Piper  <andy@xemacs.org>
6967
6968         * select.c (Fown_selection_internal): pass owned_p
6969
6970         * select-msw.c (mswindows_own_selection): New Signature.
6971
6972         * console.h (struct console_methods): add owned_p to
6973         _own_selection.
6974
6975         * select-x.c (x_own_selection): pass owned_p
6976         (hack_motif_clipboard_selection): use owned_p
6977         (vars_of_select_x): new variable -
6978         x_selection_strict_motif_ownership.
6979
6980 2001-01-23  Martin Buchholz  <martin@xemacs.org>
6981
6982         * specifier.h (specifier_data_offset): Remove pointless parens.
6983         * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
6984
6985 2001-01-24  Martin Buchholz  <martin@xemacs.org>
6986
6987         Make Lisp_Object sizeof methods be alignment-correct.
6988         pdump must restore objects to the same alignment as the C compiler
6989         assumes.  It really matters on SGIs.
6990         * lstream.c (aligned_sizeof_lstream): New.
6991         (sizeof_lstream): Use aligned_sizeof_lstream.
6992         (Lstream_new): Likewise.
6993         * opaque.c (aligned_sizeof_opaque): New.
6994         (sizeof_opaque): Use aligned_sizeof_opaque.
6995         (make_opaque): Likewise.
6996         * specifier.c (aligned_sizeof_specifier): New.
6997         (sizeof_specifier): Use aligned_sizeof_specifier.
6998         (make_specifier_internal): Likewise.
6999
7000 2001-01-23  Martin Buchholz  <martin@xemacs.org>
7001
7002         * lstream.h (struct lstream): Use max_align_t for trailing data.
7003         * specifier.h (struct Lisp_Specifier): Likewise.
7004
7005 2001-01-22  Martin Buchholz  <martin@xemacs.org>
7006
7007         * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
7008         (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
7009         (CCL_SUSPEND): Likewise.
7010         (CCL_INVALID_CMD): Likewise.
7011         (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
7012         (ccl_driver): Likewise.
7013         (CCL_WRITE_CHAR): Macro hygiene.
7014         (CCL_WRITE_STRING): Macro hygiene.
7015
7016 2001-01-22  Martin Buchholz  <martin@xemacs.org>
7017
7018         Port "portable" dumper to SunOS 4 and HP-UX.
7019         * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
7020         * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
7021         * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
7022
7023 2001-01-22  Martin Buchholz  <martin@xemacs.org>
7024
7025         * lisp.h (ALIGNOF): A better definition for C++.
7026
7027 2001-01-20  Martin Buchholz  <martin@xemacs.org>
7028
7029         Macro hygiene.
7030         Fix printf warnings: int format, long int arg.
7031         * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
7032         (PUSH_FAILURE_POINT): Use correct printf formats.
7033         (POP_FAILURE_POINT): Use correct printf formats.  
7034         Use do {...} while (0)
7035
7036 2001-01-20  Martin Buchholz <martin@xemacs.org>
7037
7038         * XEmacs 21.2.42 "Poseidon" is released.
7039
7040 2001-01-20  Martin Buchholz  <martin@xemacs.org>
7041
7042         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
7043
7044 2001-01-19  Martin Buchholz  <martin@xemacs.org>
7045
7046         De-kludgify FIXED_TYPE free list frobbing.
7047         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
7048         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
7049         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
7050         * alloc.c (Lisp_Free): New pseudo lisp object definition.
7051         * alloc.c (LRECORD_FREE_P): New.
7052         * alloc.c (MARK_LRECORD_AS_FREE): New.
7053         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
7054         * alloc.c (STRUCT_FREE_P): Deleted.
7055         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
7056         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
7057         * alloc.c (STRING_CHARS_FREE_P): New.
7058         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
7059         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
7060         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
7061         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
7062         * alloc.c (resize_string): Use new definitions.
7063         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
7064         * alloc.c (verify_string_chars_integrity): Use new definitions.
7065         * alloc.c (compact_string_chars): Use new definitions.
7066         * alloc.c: Update monster comments.
7067         * lrecord.h (lrecord_type): Add some new lrecord types for
7068         alloc.c's use.
7069
7070 2001-01-18  Martin Buchholz  <martin@xemacs.org>
7071
7072         Improve alignment hackery.
7073         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
7074         (max_align_t): Moved from opaque.h - general purpose.
7075         (ALIGN_PTR): Use size_t, not long.
7076         * opaque.h (max_align_t): Move to lisp.h.
7077
7078 2001-01-18  Norbert Koch  <nk@LF.net>
7079
7080         * gui.h: Fix and add prototypes to fix build problems.
7081
7082 2001-01-18  Martin Buchholz  <martin@xemacs.org>
7083
7084         temacs is going away, so `dump-temacs' is now a bad name.
7085         * .dbxrc (dump-temacs): Rename to `dmp'.
7086         * .gdbinit (dump-temacs): Rename to `dmp'.
7087
7088 2001-01-17  Andy Piper  <andy@xemacs.org>
7089
7090         * glyphs.c (print_image_instance): comment to make martin happy.
7091
7092         * glyphs-x.c (x_redisplay_widget): update faces after a frame
7093         change.
7094
7095         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
7096         activation.
7097         (mswindows_tab_control_redisplay): warning suppression.
7098
7099         * glyphs-widget.c (widget_update): re-write to cope with updated
7100         items.
7101         (widget_instantiate): use new gui_item functions.
7102         (tab_control_update): deleted.
7103         (progress_gauge_update): deleted.
7104         (image_instantiator_progress_guage): take out update reference.
7105         (image_instantiator_tree_view): ditto.
7106         (image_instantiator_tab_control): ditto.
7107
7108         * gui.c (widget_gui_parse_item_keywords): new function. Do things
7109         Right the new way.
7110         (gui_item_add_keyval_pair): re-write to cope with descriptors and
7111         return whether anything was changed.
7112         (update_gui_item_keywords): as it sounds.
7113
7114         * gui.h: declare widget_gui_parse_item_keywords.
7115
7116         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
7117         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
7118
7119 2001-01-17  Martin Buchholz <martin@xemacs.org>
7120
7121         * XEmacs 21.2.41 "Polyhymnia" is released.
7122
7123 2001-01-16  Didier Verna  <didier@xemacs.org>
7124
7125         * glyphs.c (image_instantiate): don't use fallbacks when
7126         instantiating a face's background pixmap by inheritance.
7127
7128 2001-01-14  Mike Sperber <mike@xemacs.org>
7129
7130         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
7131         Conditionalize accordingly.
7132
7133 2001-01-16  Martin Buchholz  <martin@xemacs.org>
7134
7135         * dumper.c (pdump_file_get): Fix a compiler warning.
7136
7137 2001-01-15  Martin Buchholz  <martin@xemacs.org>
7138
7139         Make Purify happy when pdumping.
7140         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
7141         iniitalizing all bits of new lisp object memory.
7142         * symbols.c (Fmake_local_variable): Likewise.
7143         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
7144         * symbols.c (Fdefvaralias): Likewise.
7145         * mule-charset.c (vars_of_mule_charset): Likewise.
7146
7147 2001-01-15  Martin Buchholz  <martin@xemacs.org>
7148         Add the `-nd' flag when running pre-dump operations under the debugger.
7149         * .dbxrc (run-temacs): Add `-nd'.
7150         * .dbxrc (update-elc): Likewise.
7151         * .dbxrc (dump-temacs): Likewise.
7152         * .gdbinit (run-temacs): Likewise.
7153         * .gdbinit (check-temacs): Likewise.
7154         * .gdbinit (update-elc): Likewise.
7155         * .gdbinit (dump-temacs): Likewise.
7156
7157 2001-01-14  Martin Buchholz  <martin@xemacs.org>
7158
7159         Allow building 64-bit executables on AIX with GNU malloc, e.g.
7160         export OBJECT_MODE=64
7161         configure --pdump --use-union-type=no
7162         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
7163         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
7164
7165         * miscplay.c (sndcnv8U_2mono):
7166         Avoid two uses of `++' in the same expression.
7167         Suppresses a GCC warning.
7168
7169 2001-01-13  Martin Buchholz  <martin@xemacs.org>
7170
7171         Make sure future compilers don't miscompile alloc.c.
7172         * alloc.c:
7173         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
7174         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
7175
7176 2001-01-12  Martin Buchholz  <martin@xemacs.org>
7177
7178         * dumper.c: A little post-pdump-rename comment fixup.
7179
7180 2001-01-09  Jerry James  <james@eecs.ku.edu>
7181
7182         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
7183
7184 2001-01-13  Martin Buchholz  <martin@xemacs.org>
7185
7186         * *.[ch]: Globally rename symbols using the following `pdump-rename'
7187         script:
7188         #!/bin/sh
7189         replace_symbol () {
7190           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
7191         }
7192
7193         replace_symbol pdump_wire_lists pdump_weak_object_chains
7194         replace_symbol pdump_wire_list dump_add_weak_object_chain
7195
7196         replace_symbol pdump_wires pdump_root_objects
7197         replace_symbol pdump_wire dump_add_root_object
7198
7199         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
7200         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
7201
7202         replace_symbol dumpstructinfos pdump_root_struct_ptrs
7203         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
7204         replace_symbol dumpstructinfo pdump_root_struct_ptr
7205         replace_symbol dumpstruct dump_add_root_struct_ptr
7206
7207         replace_symbol dumpopaque dump_add_opaque
7208         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
7209         replace_symbol dumpopaqueinfos pdump_opaques
7210         replace_symbol dumpopaqueinfo pdump_opaque
7211
7212         replace_symbol nb_structdump nb_root_struct_ptrs
7213         replace_symbol nb_opaquedump nb_opaques
7214
7215         replace_symbol align_table pdump_align_table
7216         replace_symbol dump_header pdump_header
7217
7218         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
7219         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
7220
7221
7222 2001-01-12  Martin Buchholz  <martin@xemacs.org>
7223
7224         * s/aix4.h: Keep the C for AIX compiler from overaggressively
7225         optimizing bytecount_to_charcount().
7226
7227 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
7228
7229         * config.h.in:
7230         (HAVE_DLFCN_H): Removed.
7231         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
7232
7233 2001-01-06  Martin Buchholz  <martin@xemacs.org>
7234
7235         Portable dumper maintainability improvements.
7236         * alloc.c (staticpro):
7237         * alloc.c (staticpro_nodump):
7238         * alloc.c (garbage_collect_1):
7239         * alloc.c (reinit_alloc_once_early):
7240         * alloc.c (init_alloc_once_early):
7241         * alloc.c: Move dumper functions to alloc.c.
7242         * dumper.c (pdump_backtrace):
7243         * dumper.c (pdump_dump_structs):
7244         * dumper.c (pdump_dump_opaques):
7245         * dumper.c (pdump_dump_rtables):
7246         * dumper.c (pdump_dump_wired):
7247         * dumper.c (pdump):
7248         * dumper.c (pdump_load_check):
7249         * dumper.c (pdump_load_finish):
7250         * dumper.c (pdump_file_unmap):
7251         * dumper.c (pdump_file_get):
7252         * dumper.c (pdump_resource_free):
7253         * dumper.c (pdump_resource_get):
7254         * dumper.c (pdump_file_free):
7255         * dumper.c (pdump_file_try):
7256         * dumper.c (pdump_load):
7257         Remove fixed size limits on staticpro(), staticpro_nodump(),
7258         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
7259         Remove custom code for dumping lrecord_implementations_table - use
7260         dumpopaque instead.
7261         Remove (most of the) custom code for dumping staticpros - dump it
7262         like any other dynarr.
7263
7264         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
7265         * dumper.c: Moved functions from alloc.c.
7266         * alloc.c (dumpstruct): Moved to dumper.c.
7267         * alloc.c (dumpopaque): Likewise.
7268         * alloc.c (pdump_wire): Likewise.
7269         * alloc.c (pdump_wire_list): Likewise.
7270
7271         * lisp.h (Dynarr_sizeof): New.
7272         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
7273         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
7274         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
7275
7276         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
7277         * lisp.h (dumpopaque): ditto.
7278         * lisp.h (pdump_wire): ditto.
7279         * lisp.h (pdump_wire_list): ditto.
7280
7281 2001-01-09  Martin Buchholz  <martin@xemacs.org>
7282
7283         * make-src-depend (PrintPatternDeps):
7284         Use `sort' to make output independent of perl version.
7285
7286 2001-01-08  Martin Buchholz  <martin@xemacs.org>
7287
7288         Port to Netbsd 1.5.
7289         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
7290         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
7291
7292 2001-01-03  Didier Verna  <didier@xemacs.org>
7293
7294         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
7295         that `focus_frame' is alive before thinking of calling
7296         `redisplay_redraw_cursor' on it.
7297
7298 2001-01-08  Martin Buchholz <martin@xemacs.org>
7299
7300         * XEmacs 21.2.40 is released.
7301
7302 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
7303
7304         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
7305
7306 2001-01-06  Martin Buchholz  <martin@xemacs.org>
7307
7308         * alloc.c (dbg_valmask): Make const.
7309         * alloc.c (dbg_typemask): Make const.
7310         * alloc.c (dbg_USE_UNION_TYPE): Make const.
7311         * alloc.c (dbg_valbits): Make const.
7312         * alloc.c (dbg_gctypebits): Make const.
7313
7314 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
7315
7316         * redisplay-x.c (x_bevel_area):
7317         redisplay.h (struct rune):
7318         Typo fixes in comments.
7319
7320 2001-01-05  Andy Piper  <andy@xemacs.org>
7321
7322         * glyphs-x.c (x_redisplay_widget): use size changed for offset
7323         adjustment.
7324
7325         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
7326
7327 2001-01-05  Martin Buchholz  <martin@xemacs.org>
7328
7329         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
7330
7331         * mule-ccl.c (stack_idx_of_map_multiple):
7332         Non const global data must not be initialized!
7333         Found by MIYASHITA Hisashi.
7334
7335 2001-01-02  Andy Piper  <andy@xemacs.org>
7336
7337         * frame.c (change_frame_size): make sure frame size is always
7338         marked as changed.
7339
7340         * glyphs.c (image_instance_layout): minor code reuse.
7341
7342         * window.c (Fcurrent_window_configuration): revert previous
7343         change.
7344
7345 2001-01-02  Martin Buchholz  <martin@xemacs.org>
7346
7347         * glyphs.h:
7348         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
7349
7350 2000-12-31  Andy Piper  <andy@xemacs.org>
7351
7352         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
7353         when widget gets unmapped.
7354
7355         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
7356         function. Make sure widgets losing focus don't just drop it.
7357         (handle_focus_event_1): record the widget with focus.
7358
7359 2000-12-31  Andy Piper  <andy@xemacs.org>
7360
7361         * window.c (allocate_window): use
7362         make_image_instance_cache_hash_table.
7363         (make_dummy_parent): ditto.
7364         (Fset_window_configuration): ditto.
7365
7366         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
7367
7368         * glyphs.c (process_image_string_instantiator): use
7369         INSTANTIATOR_TYPE.
7370         (get_image_instantiator_governing_domain): ditto.
7371         (normalize_image_instantiator): ditto.
7372         (instantiate_image_instantiator): ditto.
7373         (make_image_instance_1): ditto.
7374         (image_instantiate): ditto. Key on glyph *and* instantiator type.
7375         (instantiator_eq_equal): new function for use with instance hash
7376         tables.
7377         (instantiator_eq_hash): ditto.
7378         (make_image_instance_cache_hash_table): create a suitable hash
7379         table for storing image instances.
7380
7381         * elhash.h (hash_table_weakness): new internal weakness type
7382         HASH_TABLE_KEY_CAR_VALUE_WEAK.
7383         declare new functions.
7384
7385         * elhash.c (finish_marking_weak_hash_tables): introduce yet
7386         another weakness type for glyphs.
7387         (make_standard_lisp_hash_table): new function split out from
7388         make_general_lisp_hash_table.
7389         (make_lisp_hash_table): call make_standard_lisp_hash_table.
7390         (hash_table_instantiate): ditto.
7391         (Fmake_hash_table): ditto.
7392
7393 2000-12-31  Martin Buchholz <martin@xemacs.org>
7394
7395         * XEmacs 21.2.39 is released.
7396
7397 2000-12-29  Andy Piper  <andy@xemacs.org>
7398
7399         * menubar.c (menubar_visible_p_changed): signal the frame changed.
7400
7401         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
7402         the frame has changed so that we pick up geometry changes such as
7403         menubar visibility.
7404
7405 2000-12-28  Andy Piper  <andy@xemacs.org>
7406
7407         * lastfile.c (my_ebss): make a char array so we can pad the
7408         bss. Fixes cygwin unexec.
7409
7410         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
7411
7412 2000-12-26  Andy Piper  <andy@xemacs.org>
7413
7414         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
7415         comments and try and be more precise about a non-/SIGIO world.
7416         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
7417         SIGIO.
7418
7419         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
7420         we don't normalize to zero width or height.
7421
7422 2000-12-24  Andy Piper  <andy@xemacs.org>
7423
7424         * Makefile.in.in (ldflags): add -mwindows when appropriate.
7425
7426 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
7427
7428         * s/sco5.h: SCO 5 has pty support.
7429
7430 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
7431
7432         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
7433         input-method-xlib.c contains whole contents of input-method-xfs.c,
7434         so we can use input-method-xlib.c's code for USE_XFONTSET
7435         using #ifdefs.
7436         * input-method-xfs.c: removed.
7437
7438 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
7439
7440         * file-coding.h (enum coding_category_type): reorder enumerators to
7441         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
7442         (now one greater than largest real coding_category_type enumerator).
7443         * file-coding.c (coding_category_symbol, coding_category_by_priority,
7444         coding_category_system, fcd_descriptihon_1, decode_coding_category,
7445         Fcoding_category_list, Fset_coding_priority_list,
7446         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
7447         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
7448
7449 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
7450
7451         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
7452         * redisplay-output.c (redisplay_output_window): Clear top of window
7453         when face is changed.
7454         * redisplay-x.c (x_redraw_exposed_window): Call
7455         redisplay_clear_top_of_window.
7456         * redisplay.h: Publish redisplay_clear_top_of_window.
7457
7458 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
7459
7460         * buffer.c (Fkill_buffer): Map over all devices.
7461         * window.c (window_loop): Remove UNSHOW_BUFFER code.
7462         (list_windows): New function.
7463         (list_all_windows): Ditto.
7464         (Freplace_buffer_in_windows): Use them.
7465
7466 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
7467
7468         * database.c (berkdb_subtype): Recognize new subtype `queue'.
7469         (Fopen_database): Use `db_create' instead of `db_open'.
7470         (syms_of_database): Initialize Qqueue.
7471
7472 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
7473
7474         * buffer.c (common_init_complex_vars_of_buffer): Initialize
7475         buffer_local_face_property.
7476         * buffer.h (struct buffer): New member buffer_local_face_property.
7477         * window.c (Fset_window_buffer):  Mark window's face as changed
7478         when buffer has buffer local face.
7479         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
7480         * objects.c (color_after_change): Set buffer_local_face_property
7481         when locale of face specifier is buffer.
7482         * objects.c (font_after_change): Ditto.
7483         * objects.c (face_boolean_after_change): Ditto.
7484         * glyphs.c (image_after_change): Ditto.
7485
7486 2000-12-09  Dan Holmsand  <dan@eyebee.com>
7487
7488         * nt.c (mswindows_fstat): Report file permissions, volume serial
7489         number, etc. Code adapted from FSF Emacs 20.7.
7490
7491 2000-12-09  Dan Holmsand  <dan@eyebee.com>
7492
7493         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
7494         of stat when we don't have symbolic links, to make sure
7495         mswindows_stat is called on mswindows.
7496
7497 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
7498
7499         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
7500
7501 2000-12-12  Martin Buchholz  <martin@xemacs.org>
7502
7503         * doprnt.c (emacs_doprnt_1): More printing fixes.
7504         Make printing of numbers compatible with libc and FSF Emacs.
7505         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
7506         Use the system printf to do most of the hard work of formatting,
7507         instead of doprnt_1().
7508         Calculate memory to allocate for format string.
7509         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
7510         (doprnt_1): Cleaner code and documentation.
7511
7512 2000-12-01  Jerry James  <james@eecs.ukans.edu>
7513
7514         * Makefile.in.in: Use the loop variable to install headers.
7515
7516 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
7517
7518         * window.c (Fsplit_window): Don't invalidate face cache.
7519
7520 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
7521
7522         * minibuf.c (Fall_completions): Undo the previous change
7523         which removed checking elements start with space.
7524
7525 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
7526
7527         * mule-canna.c: Didier suppression.
7528
7529 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
7530
7531         * mule-canna.c: rename static unsigned char buf[] to key_buffer
7532         (warning suppression).  Add English comment translations.
7533
7534 2000-12-05  Martin Buchholz  <martin@xemacs.org>
7535
7536         * unexelfsgi.c (unexec): Better test for mmap failure.
7537
7538 2000-12-05  Martin Buchholz <martin@xemacs.org>
7539
7540         * XEmacs 21.2.38 is released.
7541
7542 2000-12-05  Martin Buchholz  <martin@xemacs.org>
7543
7544         * redisplay.c (bar-cursor): Make a user variable.
7545
7546         * symsinit.h: Add init_postgresql_from_environment.
7547
7548 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
7549
7550         * regex.c: Convert to clean C.
7551
7552 2000-12-05  Dan Holmsand  <dan@eyebee.com>
7553
7554         * realpath.c:
7555         Don't #include sysfile.h. Revert to duplicating PATH_MAX
7556         initialization.
7557         (sys_readlink): renamed to system_readlink to avoid conflict with
7558         the other sys_readlink.
7559
7560 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
7561
7562         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
7563
7564 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
7565
7566         * postgresql.c (init_postgresql_from_environment): new function.
7567         (vars_of_postgresql): Move code initializing Lisp variables out and
7568         into init_postgresql_from_environment.
7569         emacs.c (main_1): Call init_postgresql_from_environment if and only
7570         if running a dumped XEmacs.
7571
7572 2000-08-31  Dan Holmsand  <dan@eyebee.com>
7573
7574         * buffer.c: Make find-file-compare-truenames default to true on
7575         windows.
7576
7577         * realpath.c (win32_abs_start):
7578         (cygwin_readlink):
7579         (win32_readlink): New functions.
7580         (xrealpath): Return really real filenames on windows.
7581
7582         * fileio.c (Ffile_truename): Make file-truename work on windows.
7583
7584 2000-11-29  Didier Verna  <didier@xemacs.org>
7585
7586         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
7587         * faces.c (update_face_cachel_data): use it.
7588         * faces.c (add_face_cachel): use it. Complete background pixmap
7589         frobbing in face cache if `update_face_cachel_data' has not done so.
7590
7591 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
7592
7593         * search.c (string_match_1): Don't set last_thing_searched
7594         when search failed.
7595
7596 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
7597
7598         * buffer.c: Include casetab.h
7599         (common_init_complex_vars_of_buffer): Use new case-table object.
7600         * buffer.h: Include casetab.h
7601         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
7602         (DOWNCASE_TABLE_OF): Ditto.
7603         * bufslots.h: Remove char-tables and add case-table.
7604         * casetab.c: Include casetab.h
7605         (CASE_TABLE_P): Removed.
7606         (mark_case_table): New function.
7607         (allocate_case_table): New function.
7608         (Fcase_table_p): Use new case-table.
7609         (case_table_char): New function.
7610         (Fget_case_table): Ditto.
7611         (Fput_case_table): Ditto.
7612         (Fput_case_table_pair): Ditto.
7613         (Fcopy_case_table): Ditto.
7614         (Fcurrent_case_table): Return case-table.
7615         (Fstandard_case_table): Return case-table.
7616         (Fset_case_table): Fix doc-string.
7617         (set_case_table): Use case-table
7618         (syms_of_casetab): DEFSUBR new functions.
7619         (complex_vars_of_casetab): Set up standard case-table.
7620         * casetab.h: New file.
7621         * editfns.c: Include casetab.h
7622         (Fcompare_buffer_substrings): Use case-table.
7623         * inline.c: Include casetab.h
7624         * lisp.h: Remove bogus extern.
7625         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
7626         * search.c: Include casetab.h
7627         (TRANSLATE_ASCII): Removed.
7628         (TRANSLATE): Unconditionally translate character.
7629         (looking_at_1): Use case-table.
7630         (string_match_1): Ditto.
7631         (fast_string_match): Ditto.
7632         (search_command): Ditto.
7633         (search_buffer): Separate boyer_moore.  Check whether
7634         boyer_moore is possible.
7635         (simple_search): New function.
7636         (boyer_moore): Separated from search_buffer. Translate char.
7637
7638 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
7639
7640         * regex.c (RE_TR_ASCII): Removed.
7641         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
7642         (PATFETCH): Call PATFETCH_RAW.
7643         (PATFETCH_RAW): Fetch Emchar.
7644         (PATUNFETCH): Decrement charptr.
7645         (GET_BUFFER_SPACE): Rename b to buf_end.
7646         (BUF_PUSH): Ditto.
7647         (BUF_PUSH_2): Ditto.
7648         (BUF_PUSH_3): Ditto.
7649         (EXTEND_BUFFER): Ditto.
7650         (SET_LIST_BIT): Ditto.
7651         (regex_compile): Ditto.  Translate non ASCII char.
7652         (compile_range): Ditto.
7653         (re_search_2): Ditto.
7654         (re_match_2_internal): Compare Emchar.
7655         (bcmp_translate): Ditto.
7656
7657 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
7658
7659         * lisp.h (basic char/int typedefs):  comment improvement.
7660
7661 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
7662
7663         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
7664         unstomp inhibit_site_lisp.  Improve comments.
7665
7666 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
7667
7668         * mule-charset.c (Fcharset_property):  improve type checking, comments.
7669
7670 2000-11-28  Andy Piper  <andy@xemacs.org>
7671
7672         * redisplay-output.c (redisplay_output_subwindow): make sure we do
7673         clipped display for windows in the gutter also.
7674         (redisplay_display_boxes_in_window_p): change semantics of return
7675         codes to be more intuitive.
7676
7677         * gutter.h: declare display_boxes_in_gutter_p.
7678
7679         * gutter.c (display_boxes_in_gutter_p): new function for
7680         redisplay.
7681
7682 2000-11-22  Andy Piper  <andy@xemacs.org>
7683
7684         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
7685         autodetect domain.
7686
7687 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
7688
7689         * callproc.c (Fold_call_process_internal):
7690         * gpm.c (Freceive_gpm_event):
7691         (tty_get_foreign_selection): Might be just warning supression.
7692         * fileio.c (Fwrite_region_internal):
7693         (Fset_visited_file_modtime):
7694         * keymap.c (event_matches_key_specifier_p):
7695         Initialize GCPROed variable.
7696
7697         * menubar-x.c (command_builder_find_menu_accelerator):
7698         Initialize before use.
7699
7700 2000-11-23  Andy Piper  <andy@xemacs.org>
7701
7702         * unexcw.c (unexec): make the resulting executable executable.
7703
7704 2000-11-21  Martin Buchholz  <martin@xemacs.org>
7705
7706         * doc.c (get_doc_string):
7707         Use size_t, not int, for result of XSTRING_LENGTH.
7708
7709         * cmds.c (Fdelete_char):
7710         * cmds.c (Fpoint_at_eol):
7711         * cmds.c (Fself_insert_command):
7712         Use EMACS_INT, not int, for result of XINT.
7713         Someday, someone will want to insert more than 2**31 identical characters.
7714
7715         * cmds.c (Fdelete_char):
7716         * cmds.c (Fdelete_backward_char):
7717         * syntax.c (Fforward_word):
7718         * syntax.c (Fforward_comment):
7719         Make COUNT argument optional, for consistency with forward-char et al.
7720
7721 2000-11-22  Martin Buchholz  <martin@xemacs.org>
7722
7723         * lisp.h:
7724         * print.c (long_to_string):
7725         Return a useful value: the pointer at end of data written.
7726
7727         * doprnt.c:
7728         Use `static const char * const' for constant strings.
7729         (union printf_arg): Delete `i', `ui' members.
7730         (get_doprnt_args):
7731         (emacs_doprnt_1):
7732         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
7733         Do all printf-ing via the `l' specifier.
7734         Use EMACS_INT instead of int.
7735         Optimize.
7736
7737 2000-11-20  Didier Verna  <didier@xemacs.org>
7738
7739         * faces.c (update_face_cachel_data): don't frob the background
7740         pixmap when the window is being created. The face is needed but
7741         does not exist yet.
7742
7743 2000-11-20  Andy Piper  <andy@xemacs.org>
7744
7745         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
7746         messing with a debug environment.
7747
7748 2000-11-20  Martin Buchholz  <martin@xemacs.org>
7749
7750         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
7751
7752 2000-11-20  Martin Buchholz  <martin@xemacs.org>
7753
7754         * casetab.c (Fcase_table_p): Fix compile error and crash.
7755
7756 2000-11-18  Philip Aston  <philipa@mail.com>
7757
7758         * s/cygwin32.h: Cygwin has SVR4-like pty support.
7759
7760 2000-11-18  Martin Buchholz  <martin@xemacs.org>
7761
7762         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
7763         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
7764
7765 2000-11-17  Martin Buchholz  <martin@xemacs.org>
7766
7767         * config.h.in: Define HAVE_ELF_H if elf.h exists.
7768         * unexelf.c: Use HAVE_ELF_H.
7769         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
7770         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
7771         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
7772         Greg Harrington <greg_harrington@hotmail.com> provided a machine
7773         for testing.
7774         So this is an unexelfsgi.c from a different line of development.
7775
7776 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
7777
7778         * regex.c (RE_TR_ASCII): New function.
7779         (RE_TRANSLATE): Call it.
7780
7781 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
7782
7783         * buffer.h (TRT_TABLE_OF): Remove assert.
7784         (IN_TRT_TABLE_DOMAIN): Removed.
7785
7786 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
7787
7788         * free-hook.c (log_gcpro):
7789         (show_gcprohist): Add support for GCPRO5.
7790
7791 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
7792
7793         * emacs.c (main_1): Improve -sd error message when --pdump=no.
7794
7795 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
7796
7797         * symeval.h: Declare flush_all_buffer_local_cache.
7798
7799         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
7800         (flush_buffer_local_cache): Added.
7801         (flush_all_buffer_local_cache): Added.
7802
7803         * lrecord.h: Remove unused XD_LO_RESET_NIL.
7804
7805         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
7806         (pdump_dump_data): Ditto.
7807         (pdump_reloc_one): Ditto.
7808         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
7809         before dumping.
7810
7811
7812 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
7813
7814         * buffer.c: Remove if 0'ed entry.
7815         * buffer.h: Rewrite TRT to use char-table.
7816         * bufslots.h: Remove mirror tables.
7817         * casetab.c: Remove mirror tables.
7818         (CASE_TABLE_P): New macro.
7819         (Fcase_table_p): Element of a case table is string or char-table.
7820         (make_mirror_trt_table): Removed.
7821         (set_case_table): Setup char-table from strings for backward
7822         compatibility.
7823         * dired.c (Fdirectory_files):
7824         * dired-msw.c: (mswindows_get_files):
7825         * lisp.h: Change prototype of re_pattern_buffer.
7826         * regex.c: (RE_TRANSLATE): New macro.
7827         (TRANSLATE_P): Ditto.
7828         Change translate to type RE_TRANSLATE_TYPE.
7829         * regex.h: Define RE_TRANSLATE_TYPE
7830         * search.c (TRANSLATE): New macro.
7831         (TRANSLATE_ASCII): New macro.
7832         Translate table is changed to Lisp_Object.
7833         (signal_failure): Inhibit return.
7834
7835 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
7836
7837         * device-msw.c:
7838         * eldap.c:
7839         * event-Xt.c:
7840         * event-stream.c:
7841         * print.c:
7842         Do UNGCPRO before return.
7843
7844 2000-11-14  Martin Buchholz <martin@xemacs.org>
7845
7846         * XEmacs 21.2.37 is released.
7847
7848 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
7849
7850         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
7851         Add comments about discarded return value.
7852
7853 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
7854
7855         * callint.c:
7856         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
7857
7858 2000-10-27  Andy Piper  <andy@xemacs.org>
7859
7860         * gutter.c (Fset_default_gutter_position): default left and right
7861         gutters to visible.
7862         (calculate_gutter_size): calculate resonable heuristic for left
7863         and right gutter sizes.
7864         (specifier_vars_of_gutter): change left and right gutter sizes to
7865         autodetect.
7866         (calculate_gutter_size_from_display_lines): new function.
7867         (output_gutter): check for resizing on left and right gutters.
7868         (clear_gutter): don't special case top and left gutters.
7869         (specifier_vars_of_gutter): use new signature for
7870         set_specifier_caching.
7871
7872         * glyphs-x.c (x_redisplay_widget): spelling fix.
7873         * glyphs.c (specifier_vars_of_glyphs):
7874         * menubar.c (specifier_vars_of_menubar):
7875         * redisplay.c (specifier_vars_of_redisplay):
7876         * toolbar.c (specifier_vars_of_toolbar):
7877         * window.c (specifier_vars_of_window):
7878         * scrollbar.c (specifier_vars_of_scrollbar):
7879         (complex_vars_of_scrollbar): use new signature for
7880         set_specifier_caching.
7881
7882         * specifier.c (set_specifier_caching): include recompute flag.
7883         (recompute_one_cached_specifier_in_window): always recompute if
7884         flag set.
7885         (recompute_one_cached_specifier_in_frame): ditto.
7886
7887         * specifier.h (struct specifier_caching): add recompute flag.
7888
7889 2000-10-24  Andy Piper  <andy@xemacs.org>
7890
7891         * unexcw.c (copy_executable_and_dump_data_section): add new
7892         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
7893         5.0 happy.
7894
7895 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
7896
7897         * console-x.h (x_device): New member modifier_release_time.
7898         * event-Xt.c (x_handle_sticky_modifiers):
7899         Bound interval modifier keys are sticky.
7900         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
7901         * events.h: extern it.
7902
7903 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
7904
7905         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
7906
7907 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
7908
7909         * event-stream.c (execute_command_event): Preserve current_events
7910         and the like when event is misc-user-event.
7911         Inhibit quit during the call to maybe_echo_keys.
7912
7913 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
7914
7915         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
7916         symlink when buffer is killed.
7917         (inhibit_clash_detection): New variable.
7918
7919 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
7920
7921         * console.c (Fset_input_method): Trigger redisplay on tty.
7922
7923 2000-11-07  Martin Buchholz  <martin@xemacs.org>
7924
7925         * process.c (Fprocess_status): Revert to previous behavior:
7926         (process-status "nosuchprocess") ==> nil
7927
7928 2000-11-06  Martin Buchholz  <martin@xemacs.org>
7929
7930         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
7931         Work around another GCC 2.95.2 optimizer bug.
7932
7933 2000-11-02  Martin Buchholz  <martin@xemacs.org>
7934
7935         * process.c (Fget_process): Use LIST_LOOP_2.
7936         (kill_buffer_processes): Use LIST_LOOP_2.
7937
7938         * minibuf.c (Fall_completions):
7939         Delete old non-functional code for FSF fourth argument.
7940
7941         * frame.c (frame_matches_frame_spec):
7942         Renamed from `frame_matches_frametype'.  Update all callers.
7943         (device_matches_device_spec):
7944         Renamed from 'device_matches_console_spec'.  Update all callers.
7945
7946         * doc.c (Fsubstitute_command_keys):
7947         Remove buffer overflow crash.  Small code cleanups.
7948
7949         * casetab.c (check_case_table): Simpler code.
7950
7951         * window.c (Freplace_buffer_in_windows):
7952         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
7953         (and similar implementation) as Fdelete_windows_on.
7954         Update all callers.
7955
7956         * alloc.c (Fmake_list):
7957         * alloc.c (make_vector):
7958         * alloc.c (Fmake_vector):
7959         * alloc.c (make_bit_vector):
7960         * alloc.c (Fmake_bit_vector):
7961         * alloc.c (Fbit_vector):
7962         * alloc.c (Fmake_string):
7963         * alloc.c (Fpurecopy):
7964         * alloc.c (Fmemory_limit):
7965         * buffer.c:
7966         * buffer.c (Fget_buffer):
7967         * buffer.c (Fkill_buffer):
7968         * buffer.c (complex_vars_of_buffer):
7969         * bytecode.c (Fcompiled_function_stack_depth):
7970         * callint.c (Fprefix_numeric_value):
7971         * event-stream.c:
7972         * event-stream.c (Fread_key_sequence):
7973         * casetab.c:
7974         * casetab.c (Fcase_table_p):
7975         * casetab.c (check_case_table):
7976         * casetab.c (Fset_case_table):
7977         * casetab.c (Fset_standard_case_table):
7978         * chartab.c:
7979         * chartab.c (Fchar_table_type):
7980         * chartab.c (Freset_char_table):
7981         * chartab.c (Fget_char_table):
7982         * chartab.c (Fget_range_char_table):
7983         * chartab.c (Fput_char_table):
7984         * chartab.c (Fmap_char_table):
7985         * chartab.c (Fcategory_table_p):
7986         * chartab.c (Fcheck_category_at):
7987         * chartab.c (Fchar_in_category_p):
7988         * chartab.c (Fcategory_table):
7989         * chartab.c (Fcopy_category_table):
7990         * chartab.c (Fset_category_table):
7991         * chartab.c (Fcategory_designator_p):
7992         * chartab.c (Fcategory_table_value_p):
7993         * cmds.c (Fdelete_char):
7994         * cmds.c (Fdelete_backward_char):
7995         * cmds.c (Fself_insert_command):
7996         * cmds.c (Fself_insert_internal):
7997         * console.c (Fvalid_console_type_p):
7998         * console.c (Fcdfw_console):
7999         * console.c (Fconsole_type):
8000         * console.c (Fconsole_name):
8001         * console.c (Fconsole_device_list):
8002         * console.c (Fconsole_on_window_system_p):
8003         * data.c:
8004         * data.c (Feq):
8005         * data.c (Fold_eq):
8006         * data.c (Fsubr_interactive):
8007         * data.c (Fchar_to_int):
8008         * data.c (Fint_to_char):
8009         * data.c (Fsetcar):
8010         * data.c (Fsetcdr):
8011         * data.c (Fnumber_to_string):
8012         * data.c (Fstring_to_number):
8013         * data.c (Frem):
8014         * database.c (mark_database):
8015         * database.c (finalize_database):
8016         * database.c (Fdatabase_live_p):
8017         * database.c (Fdatabasep):
8018         * device-x.c (Fx_get_resource):
8019         * device.c (Fdfw_device):
8020         * dired.c:
8021         * dired.c (Ffile_name_completion):
8022         * dired.c (Ffile_name_all_completions):
8023         * dired.c (Fuser_name_completion):
8024         * dired.c (Fuser_name_completion_1):
8025         * dired.c (Fuser_name_all_completions):
8026         * doc.c (Fdocumentation):
8027         * doc.c (Fdocumentation_property):
8028         * doc.c (Fsubstitute_command_keys):
8029         * editfns.c:
8030         * editfns.c (Fchar_to_string):
8031         * editfns.c (Fstring_to_char):
8032         * editfns.c (Ftemp_directory):
8033         * editfns.c (Finsert_char):
8034         * editfns.c (Fbuffer_substring_no_properties):
8035         * editfns.c (Fnarrow_to_region):
8036         * editfns.c (Fchar_equal):
8037         * editfns.c (Fchar_Equal):
8038         * editfns.c (Ftranspose_regions):
8039         * emacs.c (Fdump_emacs):
8040         * eval.c (Fthrow):
8041         * eval.c (Fcommand_execute):
8042         * eval.c (Fautoload):
8043         * eval.c (Fbacktrace):
8044         * eval.c (Fbacktrace_frame):
8045         * events.c:
8046         * events.c (Fcopy_event):
8047         * events.c (Fcharacter_to_event):
8048         * events.c (Fevent_button):
8049         * events.c (Fevent_process):
8050         * extents.c:
8051         * extents.c (Fnext_extent_change):
8052         * extents.c (Fextent_property):
8053         * faces.c (Ffacep):
8054         * faces.c (Fmake_face):
8055         * file-coding.c:
8056         * file-coding.c (Fencode_shift_jis_char):
8057         * file-coding.c (Fencode_big5_char):
8058         * fileio.c (Ffile_name_directory):
8059         * fileio.c (Ffile_name_nondirectory):
8060         * fileio.c (Ffile_name_as_directory):
8061         * fileio.c (Fdirectory_file_name):
8062         * fileio.c (Ffile_truename):
8063         * fileio.c (Fsubstitute_in_file_name):
8064         * fileio.c (Ffile_modes):
8065         * fileio.c (Fset_file_modes):
8066         * fileio.c (Fset_default_file_modes):
8067         * fileio.c (Fverify_visited_file_modtime):
8068         * floatfns.c (Facos):
8069         * floatfns.c (Fasin):
8070         * floatfns.c (Fatan):
8071         * floatfns.c (Fcos):
8072         * floatfns.c (Fsin):
8073         * floatfns.c (Ftan):
8074         * floatfns.c (Fbessel_j0):
8075         * floatfns.c (Fbessel_j1):
8076         * floatfns.c (Fbessel_jn):
8077         * floatfns.c (Fbessel_y0):
8078         * floatfns.c (Fbessel_y1):
8079         * floatfns.c (Fbessel_yn):
8080         * floatfns.c (Ferf):
8081         * floatfns.c (Ferfc):
8082         * floatfns.c (Flog_gamma):
8083         * floatfns.c (Fexp):
8084         * floatfns.c (Fexpt):
8085         * floatfns.c (Flog):
8086         * floatfns.c (Flog10):
8087         * floatfns.c (Fsqrt):
8088         * floatfns.c (Fcube_root):
8089         * floatfns.c (Facosh):
8090         * floatfns.c (Fasinh):
8091         * floatfns.c (Fatanh):
8092         * floatfns.c (Fcosh):
8093         * floatfns.c (Fsinh):
8094         * floatfns.c (Ftanh):
8095         * floatfns.c (Fabs):
8096         * floatfns.c (Ffloat):
8097         * floatfns.c (Flogb):
8098         * floatfns.c (Fceiling):
8099         * floatfns.c (Ffloor):
8100         * floatfns.c (Fround):
8101         * floatfns.c (Ftruncate):
8102         * floatfns.c (Ffceiling):
8103         * floatfns.c (Fffloor):
8104         * floatfns.c (Ffround):
8105         * floatfns.c (Fftruncate):
8106         * fns.c (Fstring_equal):
8107         * fns.c (Fstring_lessp):
8108         * fns.c (concat2):
8109         * fns.c (concat3):
8110         * fns.c (vconcat2):
8111         * fns.c (vconcat3):
8112         * fns.c (Fsubstring):
8113         * fns.c (Fassoc):
8114         * fns.c (Fold_assoc):
8115         * fns.c (assoc_no_quit):
8116         * fns.c (Fassq):
8117         * fns.c (Fold_assq):
8118         * fns.c (assq_no_quit):
8119         * fns.c (Frassoc):
8120         * fns.c (Fold_rassoc):
8121         * fns.c (Frassq):
8122         * fns.c (Fold_rassq):
8123         * fns.c (rassq_no_quit):
8124         * fns.c (Fremassoc):
8125         * fns.c (remassoc_no_quit):
8126         * fns.c (Fremassq):
8127         * fns.c (remassq_no_quit):
8128         * fns.c (Fremrassoc):
8129         * fns.c (Fremrassq):
8130         * fns.c (remrassq_no_quit):
8131         * fns.c (Fsort):
8132         * fns.c (Fplist_get):
8133         * fns.c (Fplist_put):
8134         * fns.c (Fplist_remprop):
8135         * fns.c (Fplist_member):
8136         * fns.c (Flax_plist_get):
8137         * fns.c (Flax_plist_put):
8138         * fns.c (Flax_plist_remprop):
8139         * fns.c (Flax_plist_member):
8140         * fns.c (Fequal):
8141         * fns.c (Fold_equal):
8142         * fns.c (Frequire):
8143         * fns.c (Fbase64_encode_region):
8144         * fns.c (Fbase64_encode_string):
8145         * fns.c (Fbase64_decode_region):
8146         * frame.c:
8147         * frame.c (frame_matches_frame_spec):
8148         * frame.c (device_matches_device_spec):
8149         * frame.c (next_frame):
8150         * frame.c (previous_frame):
8151         * frame.c (Fnext_frame):
8152         * frame.c (Fprevious_frame):
8153         * frame.c (Fframe_property):
8154         * frame.c (Fset_frame_height):
8155         * frame.c (Fset_frame_size):
8156         * frame.h:
8157         * glyphs.c:
8158         * glyphs.c (if):
8159         * glyphs.c (decode_error_behavior_flag):
8160         * glyphs.c (Fmake_image_instance):
8161         * indent.c (Findent_to):
8162         * intl.c (Fignore_defer_gettext):
8163         * keymap.c (Fkeymapp):
8164         * keymap.c (Flookup_key):
8165         * lread.c:
8166         * lread.c (Fload_internal):
8167         * lread.c (Feval_buffer):
8168         * lread.c (Feval_region):
8169         * macros.c (Fexecute_kbd_macro):
8170         * marker.c (set_marker_internal):
8171         * marker.c (Fset_marker):
8172         * marker.c (set_marker_restricted):
8173         * marker.c (Fcopy_marker):
8174         * marker.c (noseeum_copy_marker):
8175         * menubar.c:
8176         * menubar.c (Fpopup_menu):
8177         * minibuf.c:
8178         * mule-charset.c (Fcharset_name):
8179         * mule-charset.c (Fchar_charset):
8180         * mule-charset.c (Fchar_octet):
8181         * mule-charset.c (Fsplit_char):
8182         * mule-wnnfns.c (Fwnn_open):
8183         * mule-wnnfns.c (Fwnn_dict_comment):
8184         * mule-wnnfns.c (Fwnn_quit_henkan):
8185         * mule-wnnfns.c (Fwnn_word_toroku):
8186         * mule-wnnfns.c (Fwnn_word_sakujo):
8187         * mule-wnnfns.c (Fwnn_word_use):
8188         * mule-wnnfns.c (Fwnn_hindo_set):
8189         * objects.c:
8190         * objects.c (Fmake_color_instance):
8191         * objects.c (Fmake_font_instance):
8192         * print.c (Fwrite_char):
8193         * process.c:
8194         * process.c (mark_process):
8195         * process.c (print_process):
8196         * process.c (get_process_from_usid):
8197         * process.c (Fprocessp):
8198         * process.c (Fprocess_live_p):
8199         * process.c (Fget_process):
8200         * process.c (Fget_buffer_process):
8201         * process.c (get_process):
8202         * process.c (Fprocess_id):
8203         * process.c (Fprocess_name):
8204         * process.c (Fprocess_command):
8205         * process.c (init_process_io_handles):
8206         * process.c (start_process_unwind):
8207         * process.c (Fstart_process_internal):
8208         * process.c (Fopen_multicast_group_internal):
8209         * process.c (Fset_process_window_size):
8210         * process.c (read_process_output):
8211         * process.c (send_process):
8212         * process.c (Fprocess_tty_name):
8213         * process.c (Fset_process_buffer):
8214         * process.c (Fprocess_buffer):
8215         * process.c (Fprocess_mark):
8216         * process.c (set_process_filter):
8217         * process.c (Fset_process_filter):
8218         * process.c (Fprocess_filter):
8219         * process.c (Fprocess_send_region):
8220         * process.c (Fprocess_send_string):
8221         * process.c (exec_sentinel):
8222         * process.c (Fset_process_sentinel):
8223         * process.c (Fprocess_sentinel):
8224         * process.c (status_notify):
8225         * process.c (Fprocess_status):
8226         * process.c (Fprocess_exit_status):
8227         * process.c (process_send_signal):
8228         * process.c (Fprocess_send_eof):
8229         * process.c (deactivate_process):
8230         * process.c (remove_process):
8231         * process.c (Fdelete_process):
8232         * process.c (kill_buffer_processes):
8233         * process.c (Fprocess_kill_without_query):
8234         * process.c (Fprocess_kill_without_query_p):
8235         * rangetab.c:
8236         * rangetab.c (Fget_range_table):
8237         * rangetab.c (Fput_range_table):
8238         * rangetab.c (Fremove_range_table):
8239         * rangetab.c (Fclear_range_table):
8240         * search.c:
8241         * search.c (Fskip_chars_forward):
8242         * search.c (Fskip_chars_backward):
8243         * search.c (Fskip_syntax_forward):
8244         * search.c (Fskip_syntax_backward):
8245         * search.c (search_command):
8246         * search.c (Freplace_match):
8247         * search.c (Fregexp_quote):
8248         * select.c (Fown_selection_internal):
8249         * select.c (Fselection_owner_p):
8250         * select.c (Fselection_exists_p):
8251         * select.c (Fget_selection_internal):
8252         * specifier.c:
8253         * symbols.c:
8254         * symbols.c (Fintern):
8255         * symbols.c (Fintern_soft):
8256         * symbols.c (Funintern):
8257         * symbols.c (Fapropos_internal):
8258         * symbols.c (Fset_default):
8259         * syntax.c:
8260         * syntax.c (Fsyntax_table_p):
8261         * syntax.c (Fcopy_syntax_table):
8262         * syntax.c (Fset_syntax_table):
8263         * syntax.c (Fchar_syntax):
8264         * syntax.c (syntax_match):
8265         * syntax.c (Fmatching_paren):
8266         * syntax.c (Fforward_word):
8267         * syntax.c (scan_lists):
8268         * syntax.c (Fscan_lists):
8269         * syntax.c (Fscan_sexps):
8270         * syntax.c (Fparse_partial_sexp):
8271         * toolbar.c (Fcheck_toolbar_button_syntax):
8272         * tooltalk.doc:
8273         * window.c:
8274         * window.c (Fwindowp):
8275         * window.c (Fwindow_live_p):
8276         * window.c (Fwindow_point):
8277         * window.c (Fdelete_window):
8278         * window.c (Fnext_window):
8279         * window.c (Fprevious_window):
8280         * window.c (Fother_window):
8281         * window.c (window_loop):
8282         * window.c (Fget_lru_window):
8283         * window.c (Fsplit_window):
8284         * window.c (Fenlarge_window):
8285         * window.c (Fenlarge_window_pixels):
8286         * window.c (Fshrink_window):
8287         * window.c (Fshrink_window_pixels):
8288         * window.c (change_window_height):
8289         * window.c (Fwindow_configuration_p):
8290         * window.c (Fcurrent_window_configuration):
8291         * window.h:
8292         * casefiddle.c (casify_object):
8293         * casefiddle.c (Fupcase):
8294         * casefiddle.c (Fdowncase):
8295         * casefiddle.c (Fcapitalize):
8296         * casefiddle.c (Fupcase_initials):
8297         * casefiddle.c (casify_region_internal):
8298         * casefiddle.c (casify_region):
8299         * casefiddle.c (Fupcase_region):
8300         * casefiddle.c (Fdowncase_region):
8301         * casefiddle.c (Fcapitalize_region):
8302         * casefiddle.c (Fupcase_initials_region):
8303         * casefiddle.c (Fupcase_word):
8304         * casefiddle.c (Fdowncase_word):
8305         * casefiddle.c (Fcapitalize_word):
8306         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
8307         Replace 0 with '\0' when working with bytes.
8308         Replace initial "(" with "\(" in docstrings.
8309
8310 2000-11-01  Martin Buchholz  <martin@xemacs.org>
8311
8312         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
8313
8314         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
8315
8316 2000-10-31  Martin Buchholz  <martin@xemacs.org>
8317
8318         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
8319
8320 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
8321
8322         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
8323         correctly.
8324
8325 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
8326
8327         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
8328         (inhibit_auto_save_session): New variable.
8329         (vars_of_fileio): Declare and initialize them.
8330         * fileio.c (Fdo_auto_save): Don't create session file if
8331         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
8332
8333 2000-10-31  Martin Buchholz  <martin@xemacs.org>
8334
8335         * sgiplay.c (play_internal): C++ compilability.
8336         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
8337         * callproc.c (Fold_call_process_internal):
8338         Remove unused vars `env', `first'.
8339         * scrollbar.c (update_scrollbar_instance):
8340         #### unused var `current_window'.
8341         * redisplay-tty.c: Put currently unused vars insert_mode_on,
8342         etc. within #ifdef NOT_YET.
8343         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
8344         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
8345         * specifier.c (specifier_instance):
8346         #### unused var `tag'.
8347         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
8348
8349 2000-10-27  Martin Buchholz  <martin@xemacs.org>
8350
8351         * fns.c (Fbutlast):
8352         * fns.c (list_sort):
8353         * fns.c (Ffillarray):
8354         * fns.c (bytecode_nconc2):
8355         * fns.c (Fnconc):
8356         * fns.c (mapcar1):
8357         * fns.c (Fmapconcat):
8358         Be pedantically 64-bit correct.  For the time when someone will
8359         want to have a list with length > 2**32.
8360
8361         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
8362         Work around MIPSpro compiler bug.
8363
8364         * process-unix.c (unix_kill_child_process): Add snarky comment.
8365         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
8366
8367         * config.h.in: Oops, _getpt ==> _getpty
8368
8369 2000-10-26  Martin Buchholz  <martin@xemacs.org>
8370
8371         * config.h.in:
8372         * regex.c:
8373         Use void*, not char*, as return type of alloca().
8374
8375         * alloc.c (free_marker): Side effect inside assert expression!
8376
8377 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
8378
8379         * mule-charset.c (Fset_charset_ccl_program): To check
8380         if the given ccl program is valid, use setup_ccl_program()
8381         instead of CHECK_VECTOR().
8382         (Fmake_charset): Likewise.
8383
8384 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
8385
8386         * faces.c (get_extent_fragment_face_cache_index):
8387         Fix cachel.merged_faces memory leak.
8388
8389 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
8390
8391         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
8392         Reset MSB of octets obtained by DECODE_SJIS
8393         because of the incompatibility with Emacs.
8394         (ccl_driver)<CCL_ENCODE_SJIS>:
8395         Set MSB of octets before passing them to
8396         ENCODE_SJIS because of the incompatibility
8397         with Emacs.
8398
8399 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
8400
8401         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
8402         (DECLARE_LRECORD): Undo the last change.
8403         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
8404
8405 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
8406
8407         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
8408         the implementation to lrecord_implementations_table.
8409
8410 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
8411
8412         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
8413         initial value of `lrecord_type_##c_name' and
8414         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
8415         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
8416         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
8417         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
8418         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
8419
8420 2000-10-17  Martin Buchholz  <martin@xemacs.org>
8421
8422         * miscplay.c (sndcnv8S_2mono):
8423         (sndcnv2monounsigned):
8424         (sndcnvULaw_2linear):
8425         (sndcnv16swap):
8426         Remove implementation-defined behavior.
8427
8428 2000-10-12  Martin Buchholz  <martin@xemacs.org>
8429
8430         * input-method-xlib.c: Warning suppression.
8431
8432 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
8433
8434         * mule-ccl.c: Sync up with Emacs 21.0.90.
8435         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
8436         Do nothing.
8437         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
8438         Likewise.
8439         (ccl_driver[WriteMultibyteChar2]): Bug fix.
8440         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
8441         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
8442         leading char belongs to official 2-dimensional charset.
8443         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
8444         write the given character as is.  Otherwise,
8445         if it is a multibyte char, convert it by
8446         non_ascii_set_charptr_emchar, then write it.
8447         (CCL_WRITE_STRING): Likewise.
8448         (ccl_get_compiled_code): New function.
8449         (setup_ccl_program): When ccl_prog is invalid,
8450         return -1.
8451         (Fregister_code_conversion_map): New function.
8452         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
8453
8454         * mule-ccl.h: Sync up with Emacs 21.0.90.
8455         (Fregister_ccl_program): export it.
8456
8457         * redisplay-msw.c (separate_textual_runs):
8458         If ccl program is not valid, don't do ccl conversion.
8459
8460         * redisplay-x.c (separate_textual_runs): Ditto.
8461
8462         * file-coding.c (Fmake_coding_system):
8463         When type is ccl and value is vector, register it
8464         with a proper symbol.  And checks whether the
8465         given ccl program is valid.
8466         (mule_decode): When calling ccl_driver, if src indicates
8467         NULL pointer, set an empty string instead.
8468         (mule_encode): Likewise.
8469
8470 2000-10-11  Martin Buchholz  <martin@xemacs.org>
8471
8472         The following large batch of changes gets us back to a state of
8473         C++ compilability.  Extbyte is now a char, which means that
8474         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
8475
8476         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
8477
8478         * sound.c (Fplay_sound): Type correctness.
8479
8480         * select-x.c (hack_motif_clipboard_selection): Type correctness.
8481         (x_get_window_property): Type correctness.
8482         (receive_incremental_selection): unsigned char ==> Extbyte
8483         (selection_data_to_lisp_data): unsigned char ==> Extbyte
8484         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
8485         (Fx_store_cutbuffer_internal): Type correctness.
8486
8487         * process-unix.c (try_to_initialize_subtty): Type correctness.
8488
8489         * objects-x.c (x_print_color_instance): Type correctness.
8490         (x_print_font_instance): Type correctness.
8491         (x_list_fonts): SExtbyte ==> Extbyte.
8492         (valid_x_font_name_p): SExtbyte ==> Extbyte.
8493         (x_find_charset_font): SExtbyte ==> Extbyte.
8494         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
8495         (truename_via_XListFonts): SExtbyte ==> Extbyte.
8496         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
8497         Use bufbyte_strcmp.
8498
8499         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
8500         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
8501         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
8502         (BYTE_C0_P): Use bit ops for char-signedness safety.
8503         (BYTE_C1_P): Use bit ops for char-signedness safety.
8504         (CHARSET_BY_LEADING_BYTE):
8505         (CHARSET_BY_ATTRIBUTES):
8506         Always use inline function.
8507         Use type_checking_assert.
8508         Hide chlook.
8509
8510         * mule-charset.c (non_ascii_charptr_copy_char):
8511         Modify to work with both ASCII and non-ASCII characters.
8512         Improve docs and variable names.
8513         Replace over-clever fall-through switch with a simple loop.
8514         (Lstream_get_emchar_1):
8515         Replace over-clever fall-through switch with a simple loop.
8516
8517         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
8518         Warning suppression.
8519
8520         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
8521         the return value of Lstream_getc, which could be EOF as well.
8522
8523         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
8524
8525         * lisp.h: Make Extbyte a char, not unsigned char, so that external
8526         APIs can be used on Extbytes without casts.  Risky!
8527         (SExtbyte): Remove.
8528         (UExtbyte): Remove.
8529
8530         * input-method-xlib.c (XIM_init_device):
8531         Use Xlib.h instead of IntrinsicP.h.
8532         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
8533         which will break in X11R7.
8534         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
8535         to call XRegisterIMInstantiateCallback with correct types.
8536
8537         * gui-x.c (button_item_to_widget_value): Type correctness.
8538
8539         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
8540
8541         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
8542         (xbm_instantiate_1): Type correctness.
8543         (BUILD_GLYPH_INST):  Type correctness.
8544
8545         * fileio.c (Fsubstitute_in_file_name): Type correctness.
8546
8547         * file-coding.c:
8548         (decode_coding_sjis):
8549         (decode_coding_big5):
8550         (decode_coding_ucs4):
8551         (decode_coding_utf8):
8552         (decode_coding_iso2022):
8553         (decode_coding_no_conversion):
8554         Make all decoding functions take an Extbyte * arg.
8555         (encode_coding_sjis):
8556         (encode_coding_big5):
8557         (encode_coding_ucs4):
8558         (encode_coding_utf8):
8559         (encode_coding_iso2022):
8560         (encode_coding_no_conversion):
8561         Make all encoding functions take a Bufbyte * arg.
8562         Use size_t instead of unsigned int for memory sizes.
8563         Only cast to unsigned char whenever dereferencing Extbyte *.
8564
8565         * doc.c (unparesseuxify_doc_string): Type correctness.
8566
8567         * console-x.c (split_up_display_spec):
8568         Rewrite without using details of internal string representation.
8569         (x_semi_canonicalize_device_connection): Type correctness.
8570
8571         * config.h.in:
8572         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
8573         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
8574         (HAVE_XFREE386): Removed.
8575
8576         * buffer.h (DEC_CHARPTR): `const' correctness.
8577         (bufbyte_strcmp): New.
8578         (bufbyte_memcmp): New.
8579
8580         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
8581
8582         * buffer.h (XCHAR_OR_CHAR_INT):
8583         Always use inline function.
8584         Remove redundant type checking assert() - XINT will abort quite nicely.
8585
8586 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
8587
8588         * search.c (Freplace_match): Set newtext to an empty string.
8589
8590 2000-10-10  Martin Buchholz  <martin@xemacs.org>
8591
8592         * s/decosf1-3.h: Remove #include of stropts.h
8593         * s/ptx.h: Remove #include of stropts.h
8594         * s/usg5-4.h: Remove #include of stropts.h
8595         * sysproc.h:
8596         * config.h.in:
8597         Use stropts.h, not sys/stropts.h.
8598         Use strtio.h, not sys/strtio.h.
8599
8600 2000-10-04  Martin Buchholz <martin@xemacs.org>
8601
8602         * XEmacs 21.2.36 is released.
8603
8604 2000-09-21  Andy Piper  <andy@xemacs.org>
8605
8606         * glyphs-x.c (x_redisplay_widget): make sure non-structural
8607         changes still involve copying the widget tree.
8608         (update_widget_face): make sure a change is register in the widget
8609         tree. Call update_tab_widget_face appropriately.
8610         (update_tab_widget_face): ditto.
8611         (x_tab_control_redisplay): make sure non-structural changes still
8612         involve copying the widget tree.
8613
8614 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
8615
8616         * lread.c (locate_file): Check the path element is non-nil.
8617
8618 2000-10-02  Martin Buchholz  <martin@xemacs.org>
8619
8620         * lisp.h: Warning suppression for SCO compilers.
8621
8622         * redisplay-tty.c (reset_tty_modes): Fix crash.
8623         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
8624
8625 2000-09-27  Martin Buchholz  <martin@xemacs.org>
8626
8627         Big signal/process handling overhaul.  Bugs fixed:
8628         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
8629         M-x comint-kill-subjob should work for both values nil and t of
8630         process-connection-type. It was broken on most platforms.
8631         Testing on Irix and Cygwin still needed.  Other plaforms tested.
8632         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
8633         * process-unix.c: Signal/Process handling overhaul.
8634         (pty_name): make 64 bytes, as `expect' does, for paranoia.
8635         (allocate_pty): Use all available modern methods of allocating
8636         ptys, falling back to old style BSD allocation as a last resort.
8637         Use allegedly more secure Unix98 pty allocation by default.
8638         (allocate_pty_the_old_fashioned_way): New. the last resort.
8639         (unix_create_process): Push ptem, ldterm, ttcompat where
8640         available.  Autoconfiscate.
8641         (try_to_initialize_subtty): New.
8642         (unix_kill_child_process): Proper signal handling for ptys on most
8643         platforms, using special knowledge of AIX, BSD, etc...
8644         (unix_create_process): Always disconnect_controlling_terminal() for
8645         subprocesses, whether using ptys or not.
8646         * process.h: Remove old getpt-dependent PTY code.
8647         * process.c (Fprocess_send_signal): New, obvious generic function.
8648         (decode_signal): New.
8649         (Finterrupt_process):
8650         (Fkill_process):
8651         (Fquit_process):
8652         (Fstop_process):
8653         (Fcontinue_process):
8654         (Fsignal_process): Use decode_signal.
8655         (process_send_signal):
8656         Many docstring corrections.
8657         Allow any signal to be sent to a process object.
8658         * config.h.in: Add symbols for big signal/process overhaul.
8659         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
8660         * sysproc.h: Include process-related headers, where available:
8661         sys/stropts.h sys/strtio.h pty.h libutil.h
8662         * s/irix4-0.h:
8663         * s/irix5-0.h:
8664         * s/cygwin32.h:
8665         * s/gnu.h:
8666         * s/linux.h:
8667         * s/hpux.h:
8668         * s/aix3-1.h:
8669         Remove old S&M pty stuff.
8670         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
8671         * systty.h: Simplify cpp hackery, improve comments.
8672         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
8673
8674         * editfns.c (Fformat_time_string):
8675         Be a little more paranoid with the return value of ctime.
8676
8677         * fileio.c (check_executable):
8678         (check_writable):
8679         Use symbolic constants X_OK, W_OK.
8680
8681         * console-x.c (split_up_display_spec): Fix a warning.
8682
8683 2000-10-02  Martin Buchholz  <martin@xemacs.org>
8684
8685         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
8686         * ntproc.c (sys_spawnve): make_string ==> build_string
8687         Small clarity improvements.
8688
8689 2000-09-30  Martin Buchholz  <martin@xemacs.org>
8690
8691         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
8692
8693         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
8694
8695         * config.h.in (HAVE_STRCASECMP): Remove.
8696
8697 2000-09-29  Martin Buchholz  <martin@xemacs.org>
8698
8699         * redisplay-output.c (redisplay_output_pixmap):
8700         Cleaner and possibly more 64-bit correct code.
8701
8702 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
8703
8704         * dumper.c (pdump_load_finish): move restoration of
8705         `noninteractive1' to emacs.c (main_1).
8706         * emacs.c (main_1): protect LISP-visible command-line flags
8707         from pdump_load().
8708
8709 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
8710
8711         * Makefile.in.in (versionclean):  Use EXE_TARGET and
8712         DUMP_TARGET instead of literal program names.
8713
8714 2000-09-20  Martin Buchholz  <martin@xemacs.org>
8715
8716         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
8717
8718 2000-09-19  Martin Buchholz  <martin@xemacs.org>
8719
8720         * *: Spelling mega-patch
8721
8722 2000-09-19  Martin Buchholz  <martin@xemacs.org>
8723
8724         * fns.c (bad_bad_turtle):
8725         Delete "Eek!" comment, since we fixed the bug to which it refers.
8726
8727 2000-09-16  Martin Buchholz  <martin@xemacs.org>
8728
8729         * alloca.c: Replace REGISTER with register.
8730
8731 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
8732
8733         * file-coding.c (ucs_to_char): Use countof.
8734
8735 2000-09-16  Martin Buchholz  <martin@xemacs.org>
8736
8737         * file-coding.c: (ucs_to_char):
8738         (complex_vars_of_file_coding):
8739         Use countof instead of sizeof.
8740         Use CHECK_NATNUM instead of CHECK_INT.
8741
8742         * sysdep.c (strcasecmp): Remove.
8743         * device-x.c (ascii_strcasecmp): New.
8744         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
8745         Avoid using non-standard non-portable strcasecmp.
8746
8747 2000-09-16  Martin Buchholz  <martin@xemacs.org>
8748
8749         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
8750         * font-lock.c: remove reference to emacsfns.h.
8751         * search.c: small doc improvement.
8752         * event-Xt.c: correct file names in comments.
8753         * console-x.h Correct file names in comments.
8754         * frame.c: Correct file names in comments.
8755         * event-stream.c: remove Energize from comments.
8756
8757 2000-09-15  Martin Buchholz  <martin@xemacs.org>
8758
8759         * symeval.h (DEFERROR_STANDARD):
8760         (DEFERROR):
8761         (DEFSYMBOL):
8762         (DEFSYMBOL_NO_DUMP):
8763         (DEFSYMBOL_MULTIWORD_PREDICATE):
8764         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
8765         (DEFKEYWORD):
8766         The construct &##name is not sensible C.
8767         Fixes compilation errors with Unixware native compiler.
8768
8769 2000-09-14  Martin Buchholz  <martin@xemacs.org>
8770
8771         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
8772         (next_frame_internal): Removed.  We now just have next_frame.
8773         (next_frame):
8774         Write a simpler and cleaner one-pass algorithm.
8775         Remove called_from_delete_device arg and #ifdefed-out code.
8776         (previous_frame):
8777         Renamed from prev_frame.  Update callers.
8778         Cleaned up to have an analogous implementation to next_frame.
8779         (other_visible_frames_internal): Remove the
8780         called_from_delete_device bogus arg, and hence, remove this
8781         function.  Just use other_visible_frames().
8782
8783         * window.c (Fnext_window):
8784         Prettify docstring.
8785         Since next_frame() is guaranteed to return a frame, remove check
8786         for nil inserted in previous patch.
8787         (Fprevious_window):
8788         Prettify docstring.
8789         Make code look more like Fnext_window.
8790         (window_loop):
8791         Respect the `console' arg when iterating through windows.
8792         Fixes bug: (get-buffer-window buffer t device) not respecting
8793         the `device' arg.
8794         This function needs more work, as others have pointed out.
8795
8796         * frame.h: Rename prev_frame to previous_frame.
8797         device_matches_console_spec no longer takes a `frame' arg.
8798
8799         * s/gnu.h:
8800         * s/linux.h:
8801         * s/hpux.h:
8802         Use EMACS_BLOCK_SIGNAL instead of sigblock.
8803         From "Golubev I. N." <gin@mo.msk.ru>.
8804
8805         * make-src-depend: Fix typo.
8806
8807 2000-09-13  Martin Buchholz  <martin@xemacs.org>
8808
8809         * window.c (Fnext_window):
8810         next_frame() might return nil, not a frame.
8811         Fixes this crash:
8812         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
8813
8814         * frame.c (next_frame_internal):
8815         We've passed a frame if we've passed its device.
8816         Fixes this crash:
8817         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
8818 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
8819
8820 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
8821
8822         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
8823         Allow option to suppress accelerators in menu/dialog items.
8824         (populate_or_checksum_helper): Pass dialog title through above.
8825
8826 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
8827
8828         * event-msw.c (mswindows_key_to_emacs_keysym):
8829         Add "pause" key, fix "menu" key.
8830
8831 2000-09-09  Martin Buchholz  <martin@xemacs.org>
8832
8833         * eval.c (reinit_vars_of_eval):
8834         Increase max_lisp_eval_depth to 1000,
8835         required for thai-xtis.el to byte-compile under some circumstances.
8836
8837 2000-09-04  Martin Buchholz  <martin@xemacs.org>
8838
8839         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
8840         From Kenichi Handa.
8841
8842 2000-09-01  Martin Buchholz  <martin@xemacs.org>
8843
8844         * make-src-depend: Make the generated Makefiles smaller.
8845
8846         * s/hpux.h (SETUP_SLAVE_PTY):
8847         Provide a %d in the format string for the errno argument.
8848
8849         * editfns.c (Ftemp_directory):
8850         Warning fix.
8851         Avoid buffer overrun on very long file name.
8852
8853         * input-method-xlib.c (XIM_init_device):
8854         6th parameter of XRegisterIMInstantiateCallback has different
8855         pointer types on different OSes, so simply cast to (void *).
8856
8857         * unexhp9k800.c: Warning fixes.  Fiddly changes.
8858
8859         * sysdll.c (dll_open):
8860         shl_load will hang hard if passed a NULL filename.
8861         Simply return NULL for compatibility with dlopen.
8862         * sysdll.c: Conform to XEmacs coding standards.
8863
8864         * sysdep.c (get_pty_max_bytes):
8865         Support pty input lines longer than 512 bytes on HP-UX 10.20.
8866
8867 2000-08-31  Martin Buchholz  <martin@xemacs.org>
8868
8869         * tooltalk.c: Add #include <syssignal.h>
8870
8871 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
8872
8873         * s/hpux.h: Don't use undefined function sigunblock().
8874
8875 2000-08-31  Martin Buchholz  <martin@xemacs.org>
8876
8877         * config.h.in: Add HAVE_BALLOON_HELP.
8878         * emacs.c: Use HAVE_BALLOON_HELP.
8879         * Makefile.in.in (x_objs):
8880         Make Balloon Help conditional on finding shape.h.
8881
8882 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
8883
8884         * syntax.c (regex_emacs_buffer_p): New variable.
8885         * syntax.h (regex_emacs_buffer_p): extern.
8886         * search.c (looking_at_1):
8887         (string_match_1):
8888         (fast_string_match):
8889         (search_buffer): Set regex_emacs_buffer_p.
8890         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
8891         when before_dot, at_dot, after_dot.
8892
8893 2000-08-23  Andy Piper  <andy@xemacs.org>
8894
8895         * gui-x.c (popup_selection_callback): Only set action_occurred
8896         when we really have an image instance.
8897         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
8898
8899 2000-08-23  Andy Piper  <andy@xemacs.org>
8900
8901         * gui-msw.c (mswindows_handle_gui_wm_command): set
8902         action_occurred.
8903         * gui-x.c (popup_selection_callback): ditto.
8904
8905         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
8906         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
8907         (struct Lisp_Image_Instance): add action_occurred flag.
8908
8909         * glyphs.c (redisplay_subwindow): use action_occurred flag.
8910         (image_instance_changed): ditto.
8911         (reset_frame_subwindow_instance_cache): only unmap windows - do
8912         not remove them from the cache also.
8913
8914         * glyphs-widget.c (tab_control_update): better debug.
8915         (progress_gauge_update): ditto.
8916         (layout_update): ditto.
8917         (layout_instantiate): ditto.
8918         (tab_control_order_only_changed): cope with null pending items.
8919
8920         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
8921         debug. Force selection of an item when an action occurred. Cope
8922         with null pending_items.
8923         (mswindows_progress_gauge_redisplay): better debug.
8924         * glyphs-x.c (x_tab_control_redisplay): ditto.
8925
8926         * redisplay.c (redisplay_frame): reset the frame cache if the
8927         frame is garbaged.
8928
8929         * window.c (Fset_window_configuration): potentially re-enable
8930         frame cache reset.
8931         (window_unmap_subwindows): need to finalize instances here since
8932         it is only used in mark_window_as_deleted.
8933
8934 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
8935
8936         * nas.c (SndOpenDataForReading):
8937         nas.c (WaveOpenDataForReading):
8938         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
8939         Somehow escaped from the 2000-08-14 patch.
8940
8941 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
8942
8943         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
8944         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
8945
8946 2000-08-21  Andy Piper  <andy@xemacs.org>
8947
8948         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
8949         window if it is not already displayed.
8950
8951         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
8952         it is not already displayed.
8953
8954         * window.c (Fset_window_configuration): don't reset the frame
8955         cache.
8956
8957         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
8958         instances from the frame cache if we are actually finalizing them.
8959         (reset_frame_subwindow_instance_cache): reset frame cache only
8960         after unmapping everything.
8961         (map_subwindow): set displayed flag after mapping.
8962
8963 2000-08-21  Martin Buchholz  <martin@xemacs.org>
8964
8965         * data.c (indirect_function):
8966         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
8967
8968         * eval.c (function_argcount):
8969         Use original function when signaling errors.
8970
8971 2000-08-18  Andy Piper  <andy@xemacs.org>
8972
8973         * frame.c (delete_frame_internal): use new
8974         free_frame_subwindow_instances name.
8975
8976         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
8977         (add_tab_item): make return type correct.
8978         (mswindows_tab_control_instantiate): assert index of tab.
8979         (mswindows_tab_control_redisplay): Re-code to use
8980         gui_item_equal_sans_selected and gui_item_list_find_selected.
8981
8982         * glyphs-widget.c (tab_control_update): Correct comment.
8983
8984         * window.c (window_unmap_subwindows): use new
8985         unmap_subwindow_instance_cache_mapper.
8986         (window_unmap_subwindows_cache_mapper): deleted.
8987         (Fset_window_configuration): comparisons should now be with
8988         EQ. Preserve the subwindow instance cache across configuration
8989         changes.
8990         (allocate_window): ditto.
8991         (make_dummy_parent): ditto.
8992
8993         * glyphs.c (free_frame_subwindow_instances): rename from
8994         free_frame_subwindow_instance_cache. finalize all instances rather
8995         than just those in the display cache.
8996         (finalize_all_subwindow_instances): walk windows unmapping and
8997         finalizing subwindows.
8998         (unmap_subwindow_instance_cache_mapper): moved from
8999         window.c. Allow finalization as well as unmapping.
9000
9001         * gui.c (gui_item_list_find_selected): new function.
9002
9003         * gui.h (gui_item_list_find_selected): declare.
9004
9005         * glyphs-x.c (x_tab_control_redisplay): pick tab
9006         explicitly. Re-code to use gui_item_equal_sans_selected and
9007         gui_item_list_find_selected.
9008
9009         * glyphs-x.h: add lwlib-utils.h
9010
9011         * buffer.c (Frecord_buffer): undo previous change.
9012
9013 2000-08-09  Vin Shelton  <acs@xemacs.org>
9014
9015         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
9016         possible.  Create temporary files more securely.  The patch was
9017         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
9018         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
9019         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
9020         for details.
9021
9022 2000-08-07  Ben Wing  <ben@xemacs.org>
9023
9024         * getloadavg.c: remove duplicate (and windows-breaking)
9025         includes of fcntl.h and sys/file.h.
9026
9027         * nt.c: remove duplicate getloadavg() definition.
9028
9029         * sysdll.h (Qdll_filename_encoding): add missing stand-in
9030         encodings.
9031
9032 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
9033
9034         * eval.c (function_argcount): If function needs to be autoloaded
9035         actually use the loaded definition.
9036         GCPRO function.
9037
9038 2000-08-05  Ben Wing  <ben@xemacs.org>
9039
9040         * getloadavg.c: add prototype for getloadavg().  remove
9041         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
9042         of the code).  remove duplicate header includes.
9043
9044         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
9045
9046         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
9047         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
9048         useful load average.
9049
9050         * alloc.c (reinit_alloc_once_early): removed references to
9051         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
9052         the lisp vars are the only things referencing the malloc_sbrk_*
9053         vars, and they were already if 0'd out.  these vars only exist
9054         in the older malloc.c, which is basically unused, and they're
9055         only for informational purposes.
9056
9057         * m\*.h: removed useless VIRT_ADDR_VARIES.
9058
9059         * m\powerpc.h: removed stray NO_ARG_ARRAY.
9060
9061 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9062
9063         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
9064         color if the image is a mono pixmap.
9065
9066 2000-07-30  Ben Wing  <ben@xemacs.org>
9067
9068         * Makefile.in.in (release):
9069         Remove stray @.
9070
9071         * buffer.c (directory_is_current_directory):
9072         * dired-msw.c (mswindows_get_files):
9073         * dired.c:
9074         * dired.c (Fdirectory_files):
9075         * dired.c (file_name_completion_stat):
9076         * dired.c (Ffile_attributes):
9077         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
9078         preprocessor tricks, to avoid problems on some machines
9079         (e.g. SCO).
9080
9081         * callproc.c (egetenv): GC docs.
9082
9083         * console-msw.h:
9084         * console-msw.h (struct mswindows_dialog_id):
9085         * lrecord.h (lrecord_type):
9086         New object for use with MSW dialogs.
9087
9088         * console.h (struct console_methods):
9089         New enable/disable frame methods, for proper modal dialogs.
9090
9091         * device-msw.c (msprinter_default_printer): Fix to follow
9092         proper Mule conventions.
9093
9094         * device-msw.c:
9095         * device-msw.c (signal_open_printer_error):
9096         * device-msw.c (msprinter_init_device):
9097         * device-msw.c (ensure_not_printing):
9098         * device-msw.c (plist_get_margin):
9099         * device-msw.c (Fmsprinter_select_settings):
9100         * device-msw.c (finalize_devmode):
9101         * device-msw.c (Fmsprinter_settings_despecialize):
9102         * device-msw.c (signal_enum_priner_error):
9103         * extents.c (decode_extent):
9104         * extents.c (decode_map_extents_flags):
9105         * extents.c (decode_extent_at_flag):
9106         * extents.c (Fextent_at):
9107         * extents.c (Fextents_at):
9108         * extents.c (symbol_to_glyph_layout):
9109         [[[[2]]]] Use structured errors.
9110
9111         * dialog-msw.c:
9112         * dialog-msw.c (mswindows_is_dialog_msg):
9113         * dialog-msw.c (mark_mswindows_dialog_id):
9114         * dialog-msw.c (dialog_proc):
9115         * dialog-msw.c (handle_question_dialog_box):
9116         * dialog-msw.c (syms_of_dialog_mswindows):
9117         Define new object to clean up marking; use it as a dialog identifier.
9118         Call new delete-dialog-box-hook.
9119
9120         * dialog-x.c (dbox_selection_callback):
9121         * dialog-x.c (dbox_descriptor_to_widget_value):
9122         * dialog-x.c (x_make_dialog_box_internal):
9123         Call new delete-dialog-box-hook.
9124         Return an id.
9125
9126         * dialog.c:
9127         * dialog.c (syms_of_dialog):
9128         * dialog.c (vars_of_dialog):
9129         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
9130
9131         * eval.c:
9132         * eval.c (signal_call_debugger):
9133         when noninteractive, output stack traces on the console instead
9134         of in a (never-seen) buffer.
9135
9136         * eval.c (signal_type_error):
9137         * eval.c (invalid_argument_2):
9138         * lisp.h:
9139         new funs for use w/structured errors.
9140
9141         * event-Xt.c:
9142         * event-Xt.c (x_to_emacs_keysym):
9143         * event-Xt.c (describe_event):
9144         * event-Xt.c (emacs_Xt_event_handler):
9145         * event-Xt.c (vars_of_event_Xt):
9146         * event-msw.c:
9147         * event-msw.c (mswindows_wnd_proc):
9148         * event-msw.c (vars_of_event_mswindows):
9149         rename {x,mswindows}-debug-events to debug-{}-events for
9150         consistency with other debug-foo variables.
9151
9152         * event-stream.c:
9153         document next-event more clearly.
9154
9155         * fileio.c (Ffile_name_directory):
9156         * fileio.c (Ffile_name_nondirectory):
9157         * fileio.c (Funhandled_file_name_directory):
9158         * fileio.c (file_name_as_directory):
9159         * fileio.c (Ffile_name_as_directory):
9160         * fileio.c (directory_file_name):
9161         * fileio.c (Fdirectory_file_name):
9162         * fileio.c (Fmake_temp_name):
9163         * fileio.c (Ffile_truename):
9164         * fileio.c (Fsubstitute_in_file_name):
9165         * fileio.c (expand_and_dir_to_file):
9166         * fileio.c (barf_or_query_if_file_exists):
9167         * fileio.c (check_executable):
9168         * fileio.c (Ffile_exists_p):
9169         * fileio.c (Ffile_writable_p):
9170         * fileio.c (Ffile_directory_p):
9171         * fileio.c (Ffile_regular_p):
9172         * fileio.c (Ffile_modes):
9173         * fileio.c (Ffile_newer_than_file_p):
9174         * fileio.c (Fverify_visited_file_modtime):
9175         * fileio.c (Fset_visited_file_modtime):
9176         * fileio.c (auto_save_1):
9177         (1). (2).
9178         fix up gcpro's.
9179
9180         * frame-msw.c:
9181         * frame-msw.c (mswindows_init_frame_1):
9182         * frame-msw.c (mswindows_enable_frame):
9183         * frame-msw.c (error_frame_unsizable):
9184         * frame-msw.c (msprinter_init_frame_1):
9185         * frame-msw.c (msprinter_init_frame_3):
9186         * frame-msw.c (console_type_create_frame_mswindows):
9187         (2).
9188         implement new enable/disable frame methods.
9189
9190         * frame-x.c:
9191         * frame-x.c (x_enable_frame):
9192         * frame-x.c (console_type_create_frame_x):
9193         implement new enable/disable frame methods.
9194
9195         * frame.c:
9196         * frame.c (Fdisable_frame):
9197         * frame.c (syms_of_frame):
9198         * frame.h (struct frame):
9199         implement new enable/disable frame methods/functions.
9200
9201         * general-slots.h:
9202         add initial-focus.
9203
9204         * glyphs-msw.c (mswindows_widget_instantiate):
9205         comment that initial-focus should be implemented.
9206
9207         * glyphs-widget.c:
9208         * glyphs-widget.c (check_valid_instantiator):
9209         * glyphs-widget.c (check_valid_orientation):
9210         * glyphs-widget.c (check_valid_tab_orientation):
9211         * glyphs-widget.c (check_valid_justification):
9212         * glyphs-widget.c (check_valid_border):
9213         * glyphs-widget.c (check_valid_callback):
9214         * glyphs-widget.c (check_valid_int_or_function):
9215         * glyphs-widget.c (check_valid_string_or_vector):
9216         * glyphs-widget.c (check_valid_item_list_1):
9217         * glyphs-widget.c (widget_validate):
9218         * glyphs-widget.c (combo_box_validate):
9219         * glyphs-widget.c (widget_instantiate):
9220         * glyphs-widget.c (syms_of_glyphs_widget):
9221         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
9222         * glyphs-widget.c (image_instantiator_combo_box):
9223         * glyphs-widget.c (image_instantiator_scrollbar):
9224         * glyphs-widget.c (image_instantiator_tab_control):
9225         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
9226         (2).
9227         support (unimplemented) keyword initial-focus.
9228         reindent long macros.
9229
9230         * glyphs-x.c (x_redisplay_widget):
9231         * glyphs-x.c (x_button_instantiate):
9232         * glyphs-x.c (x_button_redisplay):
9233         * glyphs-x.c (x_progress_gauge_instantiate):
9234         * glyphs-x.c (x_edit_field_instantiate):
9235         * glyphs-x.c (x_combo_box_instantiate):
9236         * glyphs-x.c (x_tab_control_instantiate):
9237         * glyphs-x.c (x_label_instantiate):
9238         * gui-x.c:
9239         * gui-x.c (button_item_to_widget_value):
9240         * gui-x.c (gui_items_to_widget_values_1):
9241         * gui-x.c (gui_item_children_to_widget_values):
9242         * gui-x.c (gui_items_to_widget_values):
9243         * gui-x.h:
9244         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9245         add new flag to gui-parsing routines to indicate whether
9246         accelerator specs should be supported.
9247
9248         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
9249
9250         * glyphs.h (struct Lisp_Image_Instance):
9251         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
9252         add initial-focus flag.
9253
9254         * gui.c:
9255         * gui.c (syms_of_gui):
9256         * gui.c (vars_of_gui):
9257         clean up menu-no-selection-hook.
9258
9259         * gui.h:
9260         support delete-dialog-box-hook.
9261
9262         * lread.c (Fload_internal):
9263         * lread.c (locate_file_in_directory_mapper):
9264         (1).
9265
9266         * lrecord.h:
9267         * lrecord.h (struct toolbar_button):
9268         * lrecord.h (syms_of_toolbar):
9269         document how to create a new object.
9270
9271         * menubar-msw.c (mswindows_char_is_accelerator):
9272         may be called on frames w/o menus.
9273
9274         * menubar.c (vars_of_menubar):
9275         clean up :filter docs.
9276
9277         * nt.c (readdir):
9278         * ntproc.c:
9279         (1).
9280
9281         * process-nt.c:
9282         * process-nt.c (validate_signal_number):
9283         * process-nt.c (signal_cannot_launch):
9284         * process-nt.c (nt_create_process):
9285         * process-nt.c (nt_send_process):
9286         * process-nt.c (nt_kill_child_process):
9287         * process-nt.c (nt_open_network_stream):
9288         * process-nt.c (syms_of_process_nt):
9289         (2).
9290         delete quote-handling.  call new lisp code that does it better.
9291
9292         * process-unix.c (connect_to_file_descriptor):
9293         * process-unix.c (allocate_pty):
9294         * process-unix.c (unix_send_process):
9295         * process-unix.c (unix_kill_child_process):
9296         * process-unix.c (unix_open_network_stream):
9297         * process-unix.c (unix_open_multicast_group):
9298         (1). (2).
9299
9300         * process.c:
9301         * process.c (Fstart_process_internal):
9302         (2).  need to canonicalize process path even if absolute.
9303
9304         * select-msw.c (symbol_to_ms_cf):
9305         * select-msw.c (ms_cf_to_symbol):
9306         * select-msw.c (cf_is_autofreed):
9307         * select-msw.c (mswindows_destroy_selection):
9308         * select.c:
9309         * select.c (syms_of_select):
9310         * select.h:
9311         support dibv5, fix bugs. (from Mike Alexander)
9312
9313         * select.c (Fget_selection_internal):
9314         * select.c (select_convert_out):
9315
9316         * sysdep.c:
9317         * sysdep.c (xemacs_stat):
9318         renamed.
9319
9320         * sysdep.c (mkdir):
9321         * sysdep.c (rmdir):
9322         but keep original stat() here because we provide encapsulation
9323         around these funs.
9324
9325         * sysfile.h:
9326         * sysfile.h (fstat):
9327         remove stat garbage.
9328
9329         * syswindows.h:
9330         fix X/MSW conflict.
9331         don't include tchar.h.  it's inappropriate because it makes
9332         compile-time distinctions when we want runtime distinctions.
9333         (we provide our own tchar replacements)
9334
9335         * toolbar.c:
9336         use default object printer for toolbar-button.
9337
9338         * unexcw.c:
9339         make sure we don't encapsulate.
9340
9341         * window.c (vars_of_window):
9342         emphasize that temp-buffer-show-hook is obsolete.
9343
9344 2000-08-05  Martin Buchholz  <martin@xemacs.org>
9345
9346         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
9347         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
9348
9349         * events.c (Fevent_timestamp_lessp):
9350         Not 64-bit clean.  Use EMACS_INT, not int.
9351
9352 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
9353
9354         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
9355         unsigned int and changed the last enum to
9356         lrecord_type_last_built_in_type.
9357         (lrecord_implementations_table): changed prototype to know how
9358         long the array is supposed to be.
9359         (lrecord_type_count): new unsigned int to keep track of the
9360         current number of lisp lrecord types.
9361         (DEFINE_EXTERNAL_LRECORD):
9362         (DECLARE_EXTERNAL_LRECORD): Added these two for external
9363         dynamic-modules to declare new lisp types. They are the same
9364         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
9365         int for each new type, and increment lrecord_type_count by 1.
9366
9367         * alloc.c (lrecord_implementations_table): Changed to reference
9368         lrecord_type_last_built_in_type for the size of the array.
9369         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
9370
9371 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
9372
9373         * glyphs.h (check_valid_item_list): Renamed from
9374         check_valid_item_list_1.
9375
9376 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
9377
9378         * select.c (Qselect_coerce): New.
9379         * select.c (Vselection_coercion_alist): New.
9380         * select.c (syms_of_select): Declare.
9381         * select.c (get-selection-internal): Use it.
9382         Use the new select-coerce functionality.
9383
9384         * select.c (select_coerce): New.
9385         * select.h (select_coerce): Declare.
9386         New function to coerce one type of data into another.
9387
9388 2000-08-03  Martin Buchholz  <martin@xemacs.org>
9389
9390         * callproc.c (Fcall_process_internal):
9391         (Fcall_process_internal):
9392         * process-unix.c (unix_create_process):
9393         Save and restore the value of errno, so that error messages are accurate.
9394
9395 2000-08-01  Martin Buchholz  <martin@xemacs.org>
9396
9397         * elhash.c (print_hash_table):
9398         Fix printing of hash tables to also use `key-and-value' instead of `t'.
9399         Prettify docstrings and indentation.
9400
9401 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
9402
9403         * window.c (Fwindow_pixel_edges): Subtract frame border and
9404         gutter size.
9405
9406 2000-07-31  Andy Piper  <andy@xemacs.org>
9407
9408         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
9409         will acknowledge the change.
9410
9411         * glyphs.h: declare tab_control_order_only_changed.
9412
9413         * glyphs-x.c (x_tab_control_redisplay): use
9414         tab_control_order_only_changed.
9415
9416         * glyphs-widget.c (tab_control_order_only_changed): new function.
9417
9418         * glyphs-msw.c (mswindows_tab_control_redisplay): use
9419         tab_control_order_only_changed.
9420
9421         * gui.c (gui_item_equal_sans_selected): new function.
9422         (gui_item_equal): use it.
9423
9424         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
9425         :properties in favor of :items..
9426
9427         * glyphs-widget.c (check_valid_item_list): rename from
9428         check_valid_item_list_1.
9429         (check_valid_item_list_1): renamed.
9430         (combo_box_validate): deprecate :properties in favor of :items.
9431         (widget_instantiate): ditto.
9432         (tab_control_update): ditto.
9433         (image_instantiator_combo_box): ditto.
9434         (image_instantiator_tree_view): ditto.
9435         (image_instantiator_tab_control): ditto.
9436         (layout_post_instantiate): remove dead code.
9437
9438         * print.c (debug_print_no_newline): only write to debugger if in
9439         WIN32_NATIVE.
9440
9441         * elhash.c (Fmake_hash_table): update doc string.
9442
9443         * event-msw.c (mswindows_wnd_proc): don't allow processing of
9444         messages whilst in GC. This at least stops XEmacs crashing but has
9445         the potential for wierd behaviour.
9446
9447 2000-07-31  Martin Buchholz  <martin@xemacs.org>
9448
9449         * config.h.in:
9450         Make existence of s&m files optional.
9451
9452         * s/bsd386.h: Remove HAVE_GETLOADAVG.
9453         * s/freebsd.h: Remove HAVE_GETLOADAVG.
9454         * s/gnu.h: Remove HAVE_GETLOADAVG.
9455         * s/netbsd.h: Remove HAVE_GETLOADAVG.
9456         * s/sol2.h: Remove HAVE_GETLOADAVG.
9457         * lisp.h: Remove getloadavg() declaration.
9458         * fns.c:
9459         Include <sys/loadavg.h> if available.
9460         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
9461         * config.h.in:  Group together getloadavg()-related macros.
9462         Use only configure-time tests to detect getloadavg().
9463
9464 2000-07-30  Martin Buchholz  <martin@xemacs.org>
9465
9466         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
9467
9468 2000-07-25  Andy Piper  <andy@xemacs.org>
9469
9470         * syswindows.h: add tchar.h for native builds.
9471
9472         * frame.c (syms_of_frame): remove set-glyph-image.
9473
9474         * general-slots.h: add Qset_glyph_image.
9475
9476         * glyphs-widget.c (layout_update): add domain arg to
9477         set-glyph-image.
9478         (syms_of_glyphs_widget): remove set-glyph-image.
9479
9480 2000-07-23  Ben Wing  <ben@xemacs.org>
9481
9482         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
9483         Vpopup_frame_list.
9484
9485 2000-07-22  Andy Piper  <andy@xemacs.org>
9486
9487         * symsinit.h: add syms_of_win32().
9488
9489         * gui-msw.c (syms_of_gui_mswindows): remove
9490         Fmswindows_shell_execute.
9491         (Fmswindows_shell_execute): moved to win32.c.
9492
9493         * emacs.c (main_1): add syms_of_win32 ().
9494
9495         * win32.c (init_potentially_nonexistent_functions): rewrite in
9496         compiler-friendly terms.
9497         (Fmswindows_shell_execute): move here from gui-msw.c.
9498         (syms_of_win32): new.
9499
9500         * device-msw.c (Fmswindows_printer_list): clean up args to
9501         EnumPrinters.
9502         Don't include tchar under cygwin or mingw.
9503         (msprinter_default_printer): make cygwin-friendly.
9504
9505 2000-07-21  Andy Piper  <andy@xemacs.org>
9506
9507         * glyphs-widget.c (image_instantiator_tree_view): use tab
9508         control's update function.
9509         (layout_property): new function. Retrieve items.
9510
9511         * glyphs-msw.c (mswindows_tree_view_redisplay): new
9512         function. Re-populate the tree view from the pending items.
9513
9514         * glyphs.c (instantiate_image_instantiator): Make sure the domain
9515         is designated the parent if the domain is an image instance. This
9516         is needed so that dirtiness can be cascade up the hierarchy and
9517         thus for layout children to be redisplayed correctly.
9518         (allocate_image_instance): rename glyph -> parent.
9519
9520         * redisplay.h: change redisplay_output_layout signature.
9521
9522         * redisplay-msw.c (mswindows_output_display_block): use domain
9523         arg.
9524
9525         * redisplay-x.c (x_output_display_block): use domain arg.
9526
9527 2000-07-10  Andy Piper  <andy@xemacs.org>
9528
9529         * window.c (Fset_window_configuration): add comment.
9530
9531         * redisplay-output.c (compare_runes):
9532         (redisplay_output_subwindow): redisplay rather than update subwindow.
9533         (redisplay_output_layout): ditto.
9534
9535         * redisplay-msw.c (mswindows_frame_output_end):
9536         (mswindows_frame_output_end): make defer window pos optional.
9537
9538         * lisp.h: add Flast.
9539
9540         * glyphs.h (struct image_instantiator_methods): add dest_mask top
9541         normalize method. Change update method to be for changed
9542         instantiators. Add redisplay method. Change signature of layout
9543         method.
9544         (struct Lisp_Image_Instance): add instantiator.
9545         (IMAGE_INSTANCE_INSTANTIATOR): new.
9546         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
9547         (XIMAGE_INSTANCE_INSTANTIATOR): new.
9548         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
9549
9550         * glyphs.c:
9551         (find_instantiator_differences): new function.
9552         (Fset_instantiator_property): new convenience function.
9553         (check_image_instance_structure): strictly check for vector
9554         instantiators.
9555         (normalize_image_instantiator): make non-static.
9556         (instantiate_image_instantiator): pass on dest_mask and use new
9557         signatures for image_instance_layout and friends.
9558         (mark_image_instance): mark the instantiator. Mark the subwindow
9559         face not the widget face.
9560         (image_instance_equal): add instantiator.
9561         (image_instance_hash): ditto.
9562         (allocate_image_instance): ditto.
9563         (Fset_image_instance_property): removed.
9564         (Fimage_instance_file_name): ditto.
9565         (Fcolorize_image_instance): ditto.
9566         (image_instance_layout): add offsets to be set.
9567         (update_image_instance): new function. update an image instance
9568         from its changed instantiator.
9569         (inherit_normalize): add dest_mask.
9570         (xbm_normalize): ditto.
9571         (xface_normalize): ditto.
9572         (xpm_normalize): ditto.
9573         (text_update): set_property -> update.
9574         (image_instantiate): use the glyph identity as a hash key, not the
9575         instantiator.
9576         (glyph_width): use new image_instance_layout signature.
9577         (glyph_ascent): ditto.
9578         (glyph_descent): ditto.
9579         (glyph_height): ditto.
9580         (glyph_query_geometry): ressurrect.
9581         (glyph_layout): ditto.
9582         (redisplay_subwindow): update -> redisplay.
9583         (syms_of_glyphs): add Fset_instantiator_property.
9584         (image_instantiator_format_create): set_property -> update.
9585
9586         * glyphs-x.c:
9587         (autodetect_normalize): add dest_maks to signature.
9588         (x_redisplay_subwindow): update -> redisplay.
9589         (x_redisplay_widget): ditto.
9590         (x_button_redisplay): ditto.
9591         (x_progress_gauge_redisplay): ditto.
9592         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
9593         stacking order.
9594         (console_type_create_glyphs_x): update -> redisplay.
9595         (image_instantiator_format_create_glyphs_x): ditto.
9596
9597         * glyphs-widget.c:
9598         (check_valid_instantiator): disallow glyphs in the instantiator,
9599         they must now be vectors.
9600         (check_valid_instantiator_list): ditto.
9601         (glyph_instantiator_to_glyph): use internal symbol rather than
9602         intern.
9603         (widget_update): renamed from widget_set_property. Call cascaded
9604         update methods.
9605         (redisplay_widget): renamed from update_widget.
9606         (widget_layout): image_instance_layout now takes position as well
9607         as size.
9608         (widget_normalize): ditto.
9609         (widget_instantiate): ditto.
9610         (tab_control_query_geometry) ditto.:
9611         (tab_control_update): renamed from tab_control_set_property.
9612         (progress_gauge_update): set_property -> update.
9613         (layout_normalize): rewrite so that child instantiators are
9614         normalized also.
9615         (layout_update): new function. Create glyphs from the normalized
9616         children and cope with any other layout keywords. We do not
9617         instantiate children here that will be take care of by
9618         redisplay_output_layout.
9619         (layout_instantiate): call layout_update and not much else.
9620         (layout_post_instantiate): not sure whether this is needed
9621         anymore.
9622         (layout_query_geometry): query glyph geometry rather than
9623         image_instance geometry.
9624         (layout_layout): set offsets from pass in parameters. Use glyph
9625         geometry and layout functions rather than image instance ones.
9626         (native_layout_layout): ditto.
9627         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
9628         (image_instantiator_widget): set_property -> update.
9629         (image_instantiator_buttons): ditto.
9630         (image_instantiator_progress_guage): ditto.
9631         (image_instantiator_tab_control): ditto.
9632         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
9633         (image_instantiator_layout): add update method.
9634
9635         * glyphs-msw.c (bmp_normalize):
9636         (mswindows_resource_normalize): add dest_mask so that it can be
9637         proprogated by layout_normalize.
9638         (begin_defer_window_pos): make optional because it may not be the
9639         right thing to do and it introduces differences with X.
9640         (mswindows_unmap_subwindow): ditto.
9641         (mswindows_map_subwindow): ditto.
9642         (mswindows_redisplay_subwindow): renamed from
9643         mswindows_update_subwindow.
9644         (mswindows_redisplay_widget): ditto.
9645         (mswindows_button_redisplay): renamed from
9646         mswindows_button_update. Update is now what the instantiation
9647         function does for a changed instantiator.
9648         (mswindows_progress_gauge_instantiate): set the progress value
9649         here if appropriate.
9650         (mswindows_tab_control_redisplay): cope with re-ordering of the
9651         members of the tab widget by simply selecting the new top
9652         widget. This makes things appear ok if you click on a tab.
9653         (mswindows_combo_box_instantiate): image_instance_layout now takes
9654         position as well as size.
9655         (mswindows_progress_gauge_redisplay): renamed from
9656         mswindows_progress_gauge_update.
9657         (console_type_create_glyphs_mswindows): fix update -> redisplay.
9658         (image_instantiator_format_create_glyphs_mswindows): ditto.
9659
9660         * glyphs-eimage.c (jpeg_normalize):
9661         (gif_normalize):
9662         (png_normalize):
9663         (tiff_normalize): add dest_mask so that it can be proprogated by
9664         layout_normalize.
9665
9666         * elhash.c:
9667         (print_hash_table):
9668         (hash_table_weakness_validate):
9669         (decode_hash_table_weakness):
9670         (Fhash_table_weakness):
9671         (Fhash_table_type):
9672         (syms_of_elhash): use Ben's naming scheme for hashtable types..
9673
9674         * console.h (struct console_methods): move update_* to
9675         redisplay_*.
9676
9677 2000-07-20  Ben Wing  <ben@xemacs.org>
9678
9679         * *.[ch] (XSETOBJ): remove unused middle argument.
9680         lisp-disunion.h: correct wrap_object() to one argument.
9681
9682 2000-07-15  Ben Wing  <ben@xemacs.org>
9683
9684         * s/cygwin32.h:
9685         * s/cygwin32.h (CYGWIN_CONV_PATH):
9686         Add missing logb prototype for v1.1.
9687         Use post-b20 names and alias to pre-b20 names when pre-b20.
9688
9689         * s/windowsnt.h: [5].
9690
9691 2000-07-15  Ben Wing  <ben@xemacs.org>
9692
9693         * Makefile.in.in (x_objs):
9694         * Makefile.in.in (sheap_objs):
9695         * Makefile.in.in (objs):
9696         added win32.o, cosmetic cleanups.
9697
9698         * alloc.c (Fmake_byte_code):
9699         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
9700         etc. macros which declare their own args now.
9701
9702         * alloc.c (syms_of_alloc):
9703         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
9704
9705         * buffer.c:
9706         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
9707
9708         * buffer.c (Fget_file_buffer):
9709         Fixed GCPRO problem.
9710
9711         * buffer.c (get_truename_buffer):
9712         Fixed comment about GC checking.
9713
9714         * buffer.c (syms_of_buffer):
9715         Undeclared those dedicated frame funs.
9716         [2].
9717
9718         * buffer.h:
9719         Define convenience macros for internal/external conversions.
9720         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
9721         and Qenvironment_variable_encoding for cleaner code.
9722
9723         * bufslots.h:
9724         Remove dedicated-frame; in lisp.
9725
9726         * bytecode.c (funcall_compiled_function):
9727         [1].
9728
9729         * bytecode.c (syms_of_bytecode):
9730         [2].
9731
9732         * console-msw.c:
9733         * console-msw.c (mswindows_show_console): Rewrote.
9734
9735         * console-msw.c (Fmswindows_debugging_output): New.
9736         Sends to OutputDebugString (special MSWin debugger interface).
9737
9738         * console-msw.c (Fmswindows_message_box):
9739         Fixed stupid bugs so it works when called from kill-emacs.
9740
9741         * console-msw.c (syms_of_console_mswindows):
9742         Declare Fmswindows_debugging_output.
9743
9744         * console-msw.h:
9745         New MSWin prototypes.
9746
9747         * console-msw.h (struct mswindows_frame):
9748         New entry last-click-mods for improved button-modifier support.
9749
9750         * console-msw.h (FRAME_MSWINDOWS_POPUP):
9751         New struct entry `popup' with corresponding accessor.
9752
9753         * console-x.c:
9754         * console-x.c (split_up_display_spec):
9755         * console-x.c (get_display_arg_connection):
9756         * console-x.c (x_semi_canonicalize_console_connection):
9757         * console-x.c (x_canonicalize_device_connection):
9758         [[[6]]]: Change char to more specific type.
9759         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
9760
9761         * console-x.c (x_semi_canonicalize_console_connection):
9762         * console-x.c (x_canonicalize_device_connection):
9763         [[[9]]]: Fix up error signalling to use new structured error system.
9764
9765         * console-x.h:
9766         [[[4]]]: Define codesys aliases:
9767         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
9768         Qx_color_name_encoding, Qx_display_name_encoding.
9769
9770         * console.h (struct console_methods):
9771         New method make_dialog_box_internal supersedes older
9772         popup_dialog_box method.
9773
9774         * data.c:
9775         Define many new errors, part of new structured errors.
9776
9777         * data.c (init_errors_once_early):
9778         * data.c (syms_of_data):
9779         [2].
9780
9781         * device-msw.c (mswindows_init_device):
9782         [[[5]]]: Cleanup to support NT 3.51.
9783
9784         * device-msw.c (decode_devmode): Cleanup.
9785
9786         * device-msw.c (mswindows_handle_print_setup_dialog_box):
9787         * device-msw.c (mswindows_handle_print_dialog_box):
9788         * device-msw.c (mswindows_handle_page_setup_dialog_box):
9789         * device-msw.c (syms_of_device_mswindows):
9790         Delete the dialog box primitives recently introduced by Kirill and
9791         instead interface to general dialog box interface.
9792
9793         * device-x.c:
9794         * device-x.c (compute_x_app_name):
9795         * device-x.c (x_init_device):
9796         * device-x.c (Fx_valid_keysym_name_p):
9797         * device-x.c (Fx_set_font_path):
9798         [6].
9799         [7].
9800
9801         * device.h (wrap_device): New.
9802         First of its kind; meant to replace XSETDEVICE.
9803
9804         * dialog-msw.c: Many file-dialog symbols.
9805
9806         * dialog-msw.c (mswindows_register_popup_frame): New.
9807         * dialog-msw.c (mswindows_is_dialog_msg): New.
9808         For supporting kbd traversal in dialog boxes.
9809
9810         * dialog-msw.c (dialog_proc):
9811         Support hitting ESC in dialogs.
9812
9813         * dialog-msw.c (struct):
9814         Common dialog box errors.
9815
9816         * dialog-msw.c (handle_file_dialog_box): New.
9817         Add file dialog code.
9818
9819         * dialog-msw.c (handle_question_dialog_box):
9820         Redo existing code to support new question dialog syntax.
9821
9822         * dialog-msw.c (console_type_create_dialog_mswindows):
9823         We support new dialog console method.
9824
9825         * dialog-msw.c (syms_of_dialog_mswindows):
9826         * dialog-msw.c (vars_of_dialog_mswindows):
9827         New file dialog symbols, vars.
9828
9829         * dialog-x.c:
9830         * dialog-x.c (maybe_run_dbox_text_callback):
9831         * dialog-x.c (dbox_descriptor_to_widget_value):
9832         * dialog-x.c (x_make_dialog_box_internal):
9833         * dialog-x.c (console_type_create_dialog_x):
9834         Mule-ize entire file.
9835         Redo to support question dialog syntax.
9836         [6].
9837
9838         * dialog.c:
9839         * dialog.c (Fmake_dialog_box_internal):
9840         * dialog.c (syms_of_dialog):
9841         Kill old popup-dialog-box, replace with new primitive.
9842         Just call device method or signal error.
9843
9844         * eldap.c (Fldap_open):
9845         * eldap.c (Fldap_search_basic):
9846         * eldap.c (Fldap_add):
9847         * eldap.c (Fldap_modify):
9848         [1].
9849         [7].
9850
9851         * emacs.c:
9852         * emacs.c (make_arg_list_1):
9853         * emacs.c (make_arg_list):
9854         Mule-ize call to dll_init().
9855         [6].
9856         [8].
9857
9858         * emacs.c (make_argc_argv):
9859         * emacs.c (free_argc_argv):
9860         * emacs.c (init_cmdargs):
9861         * emacs.c (main_1):
9862         * emacs.c (Fkill_emacs):
9863         * emacs.c (Fdump_emacs):
9864         Update comments about what can be used in syms_* etc.
9865         Call init_win32() when necessary.
9866         Fix up MS Win dialog box in kill-buffer to actually work right.
9867         [7].
9868
9869         * eval.c:
9870         * eval.c (For):
9871         * eval.c (Fand):
9872         * eval.c (Fprogn):
9873         * eval.c (Fprog1):
9874         * eval.c (Fprog2):
9875         * eval.c (FletX):
9876         * eval.c (Flet):
9877         * eval.c (condition_case_3):
9878         * eval.c (Feval):
9879         * eval.c (function_argcount):
9880         * eval.c (funcall_lambda):
9881         [1].
9882
9883         * eval.c (type_error): New.
9884         * eval.c (maybe_type_error): New.
9885         * eval.c (continuable_type_error): New.
9886         * eval.c (maybe_continuable_type_error): New.
9887         * eval.c (type_error_with_frob): New.
9888         * eval.c (maybe_type_error_with_frob): New.
9889         * eval.c (continuable_type_error_with_frob): New.
9890         * eval.c (maybe_continuable_type_error_with_frob): New.
9891         New functions for use with structured errors.
9892
9893         * event-Xt.c:
9894         * event-Xt.c (x_event_to_emacs_event):
9895         Buttons are now modifiers too.
9896
9897         * event-Xt.c (emacs_Xt_current_event_timestamp):
9898         Implement new event method.
9899         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
9900
9901         * event-msw.c:
9902         * event-msw.c (ntpipe_shove_writer): [5].
9903         * event-msw.c (mswindows_enqueue_mouse_button_event):
9904         * event-msw.c (mswindows_drain_windows_queue):
9905         * event-msw.c (mswindows_wnd_proc): [7].
9906         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
9907         * event-msw.c (mswindows_modifier_state):
9908         Throughout: support new button modifiers.
9909
9910         * event-msw.c (emacs_mswindows_current_event_timestamp):
9911         Implement new event method.
9912         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
9913
9914         * event-stream.c:
9915         * event-stream.c (event_stream_current_event_timestamp): New.
9916         * event-stream.c (maybe_kbd_translate): New functionality.
9917         * event-stream.c (vars_of_event_stream):
9918         Document new kbd-translate-table functionality.
9919
9920         * event-stream.c (Fcurrent_event_timestamp): New.
9921         New primitive for use in fabricated events.
9922         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
9923
9924         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
9925
9926         * events.c:
9927         * events.c (Fmake_event):
9928         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
9929         [1].
9930         [9].
9931
9932         * events.c (format_event_object): fix gcc warnings.
9933
9934         * events.c (Fevent_timestamp): Document new primitives.
9935
9936         * events.c (TIMESTAMP_HALFSPACE): New.
9937
9938         * events.c (Fevent_timestamp_lessp): New.  New primitive for
9939         comparing timestamps correctly (half-space algorithm).
9940
9941         * events.c (Fevent_modifier_bits): Doc fix.
9942
9943         * events.c (Fevent_modifiers): Major doc addition.
9944         * events.c (event_x_y_pixel_internal): Typo fix.
9945         * events.c (syms_of_events): Declare new primitives.
9946
9947         * events.h:
9948         Update long comment for button modifiers, timestamps.
9949
9950         * events.h (struct event_stream):
9951         New current_event_timestamp method.
9952
9953         * extents.c:
9954         * extents.c (extent_in_region_p):
9955         * extents.c (decode_extent):
9956         * extents.c (Fset_extent_parent):
9957         * extents.c (decode_map_extents_flags):
9958         Fix gcc warnings.
9959         [9].
9960
9961         * extents.c (struct extent_at_arg):
9962         * extents.c (decode_extent_at_flag):
9963         * extents.c (extent_at_mapper):
9964         * extents.c (extent_at_bytind):
9965         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
9966         * extents.c (Fextents_at): New primitive. [9].
9967         * extents.c (symbol_to_glyph_layout): [9].
9968         Support new primitive `extents-at'.
9969
9970
9971         * extents.c (get_text_property_bytind):
9972         extent_at_bytind has another arg.
9973         [9].
9974
9975         * extents.c (syms_of_extents): New primitive.
9976
9977         * file-coding.c (Fmake_coding_system): [1].
9978         * file-coding.c (subsidiary_coding_system): fix gcc warning
9979         * file-coding.c (syms_of_file_coding): [2].
9980
9981         * fileio.c (Fexpand_file_name):
9982         * fileio.c (Fsysnetunam):
9983         * fileio.c (Ffile_exists_p):
9984         * fileio.c (Ffile_executable_p):
9985         * fileio.c (Fverify_visited_file_modtime):
9986         Clean up GCPROing.
9987
9988         * fileio.c (syms_of_fileio): [2].
9989
9990         * filelock.c (lock_file_1):
9991         * filelock.c (current_lock_owner):
9992         * filelock.c (lock_if_free):
9993         * filelock.c (lock_file):
9994         * filelock.c (unlock_file):
9995         Clean up GCPROing.
9996
9997         * fns.c (concat): Fix gcc warning.
9998
9999         * fns.c (Fmember):
10000         * fns.c (Fold_member):
10001         * fns.c (Fmemq):
10002         * fns.c (Fold_memq):
10003         * fns.c (memq_no_quit):
10004         * fns.c (Fassoc):
10005         * fns.c (Fold_assoc):
10006         * fns.c (Fassq):
10007         * fns.c (Fold_assq):
10008         * fns.c (assq_no_quit):
10009         * fns.c (Frassoc):
10010         * fns.c (Fold_rassoc):
10011         * fns.c (Frassq):
10012         * fns.c (Fold_rassq):
10013         * fns.c (rassq_no_quit):
10014         * fns.c (Fdelete):
10015         * fns.c (Fold_delete):
10016         * fns.c (Fdelq):
10017         * fns.c (Fold_delq):
10018         * fns.c (delq_no_quit):
10019         * fns.c (Fremassoc):
10020         * fns.c (Fremassq):
10021         * fns.c (remassq_no_quit):
10022         * fns.c (Fremrassoc):
10023         * fns.c (Fremrassq):
10024         * fns.c (remrassq_no_quit):
10025         * fns.c (Freverse):
10026         * fns.c (mapcar1):
10027         [1].
10028
10029         * frame-msw.c (mswindows_init_frame_1):
10030         * frame-msw.c (mswindows_delete_frame):
10031         Register popups with dialog code so keyboard traversing works.
10032
10033         * frame-tty.c (tty_raise_frame_no_select): [1].
10034
10035         * frame-x.c:
10036         * frame-x.c (x_set_frame_text_value):
10037         * frame-x.c (x_set_frame_properties):
10038         * frame-x.c (x_create_widgets):
10039         [7].
10040
10041         * frame.c:
10042         * frame.c (Fmouse_pixel_position): Minor doc fixes.
10043
10044         * frame.h (wrap_frame): New.
10045         Macro like wrap_device.
10046
10047         * general.c:
10048         * general.c (SYMBOL):
10049         * general.c (syms_of_general):
10050         Major reorg.  This is now just a wrapper and symbols themselves
10051         are listed in general-slots.h.
10052
10053         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
10054         * glyphs-msw.c (mswindows_resource_instantiate): [5].
10055
10056         * glyphs-msw.c (mswindows_native_layout_instantiate):
10057         Add DS_CONTROL so keyboard traversal will work.
10058
10059         * glyphs-widget.c:
10060         * glyphs-widget.c (syms_of_glyphs_widget):
10061         Move some symbols to general-slots.h.
10062
10063         * glyphs-x.c:
10064         * glyphs-x.c (xbm_instantiate_1):
10065         * glyphs-x.c (x_xbm_instantiate):
10066         * glyphs-x.c (x_xface_instantiate):
10067         * glyphs-x.c (autodetect_instantiate):
10068         * glyphs-x.c (cursor_font_instantiate):
10069         * glyphs-x.c (x_update_widget):
10070         * glyphs-x.c (x_widget_instantiate):
10071         * glyphs.c (bitmap_to_lisp_data):
10072         * glyphs.c (pixmap_to_lisp_data):
10073         [7].
10074
10075         * glyphs.c (syms_of_glyphs):
10076         [2].
10077
10078         * gui-x.c:
10079         * gui-x.c (print_widget_value):
10080         * gui-x.c (menu_separator_style_and_to_external):
10081         * gui-x.c (add_accel_and_to_external):
10082         * gui-x.c (button_item_to_widget_value):
10083         * gui-x.c (gui_items_to_widget_values_1):
10084         * gui-x.c (gui_items_to_widget_values):
10085         * gui-x.c (syms_of_gui_x):
10086         * gui-x.c (vars_of_gui_x):
10087         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
10088         [9].
10089
10090         * gui-x.h:
10091         Muleize, prototype changes matching gui-x.c.
10092
10093         * gui.c:
10094         * gui.c (separator_string_p):
10095         * gui.c (gui_item_add_keyval_pair):
10096         * gui.c (make_gui_item_from_keywords_internal):
10097         * gui.c (signal_too_long_error):
10098         * gui.c (parse_gui_item_tree_item):
10099         * gui.c (syms_of_gui):
10100         * gui.c (vars_of_gui):
10101         * gui.h:
10102         menu-no-selection-hook moved here (used by MSWin).
10103         Move some symbols to general-slots.h.
10104         [6].
10105         [9].
10106
10107         * insdel.c (get_buffer_pos_char):
10108         * insdel.c (get_buffer_range_char):
10109         Add GC comments.
10110
10111         * keymap.c (keymap_lookup_directly):
10112         * keymap.c (keymap_store):
10113         * keymap.c (ensure_meta_prefix_char_keymapp):
10114         * keymap.c (describe_map):
10115         * keymap.h:
10116         Support new button modifiers.
10117
10118         * lisp-disunion.h (wrap_object):
10119         * lisp-disunion.h (XSETOBJ):
10120         Rename make_obj to wrap_object.
10121
10122         * lisp-union.h:
10123         * lisp-union.h (make_int):
10124         * lisp-union.h (make_char):
10125         Support wrap_object.
10126
10127         * lisp.h:
10128         * lisp.h (LIST_LOOP):
10129         * lisp.h (EXTERNAL_LIST_LOOP):
10130         * lisp.h (LIST_LOOP_2):
10131         * lisp.h (EXTERNAL_LIST_LOOP_1):
10132         * lisp.h (EXTERNAL_LIST_LOOP_2):
10133         * lisp.h (EXTERNAL_LIST_LOOP_3):
10134         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
10135         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
10136         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
10137         * lisp.h (EXTERNAL_ALIST_LOOP_5):
10138         * lisp.h (EXTERNAL_ALIST_LOOP_6):
10139         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
10140         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
10141         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
10142         * lisp.h (struct Lisp_Symbol):
10143         * lisp.h (maybe_continuable_error_with_frob):
10144         Fix up section comments.
10145         Add new types for char to indicate usage.
10146         Delete symbols auto-generated from general-slots.h.
10147         Add prototypes for structured error functions.
10148         Add long comments describing looping macros and change interface
10149         so that lvalues are automatically declared.
10150         Add NO_DECLARE macro in case callers want to declare lvalues
10151         themselves.
10152
10153         * lread.c (read_syntax_error):
10154         * lread.c (continuable_read_syntax_error):
10155         * lread.c (read_structure):
10156         * lread.c (sequence_reader):
10157         * lread.c (read_list_conser):
10158         * lread.c (read_compiled_function):
10159         Rename syntax_error and continuable_syntax_error to avoid clash
10160         with same-named structured error functions.
10161
10162         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
10163         * menubar-msw.c (populate_menu_add_item):
10164         * menubar-msw.c (populate_or_checksum_helper):
10165         [5].
10166         [9].
10167
10168         * menubar-x.c:
10169         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10170         Mule-ize whole file.
10171
10172         * menubar.c (Fnormalize_menu_item_name): Add optimization.
10173
10174         * mule-charset.c (Fmake_charset):
10175         * mule-wnnfns.c (Fwnn_set_param):
10176         [1].
10177
10178         * ntproc.c (create_child):
10179         * ntproc.c (Fwin32_set_current_locale):
10180         Add comments portending doom.
10181
10182         * objects-msw.c:
10183         * objects-msw.c (old_font_enum_callback_2):
10184         * objects-msw.c (font_enum_callback_1):
10185         * objects-msw.c (mswindows_enumerate_fonts):
10186         [5].
10187
10188         * objects-x.c:
10189         * objects-x.c (allocate_nearest_color):
10190         * objects-x.c (x_parse_nearest_color):
10191         * objects-x.c (x_initialize_color_instance):
10192         * objects-x.c (x_print_color_instance):
10193         * objects-x.c (x_finalize_color_instance):
10194         * objects-x.c (x_valid_color_name_p):
10195         * objects-x.c (x_initialize_font_instance):
10196         * objects-x.c (x_print_font_instance):
10197         * objects-x.c (valid_x_font_name_p):
10198         * objects-x.c (truename_via_FONT_prop):
10199         * objects-x.c (truename_via_random_props):
10200         * objects-x.c (truename_via_XListFonts):
10201         * objects-x.c (x_font_truename):
10202         * objects-x.c (x_font_instance_truename):
10203         * objects-x.c (x_font_instance_properties):
10204         * objects-x.c (x_list_fonts):
10205         * objects-x.c (x_find_charset_font):
10206         Mule-ize entire file.
10207         [7].
10208
10209         * objects-x.h:
10210         Mule-verify.
10211
10212         * print.c:
10213         * print.c (std_handle_out_external):
10214         * print.c (debug_print_no_newline):
10215         * print.c (syms_of_print):
10216         Output to all debugger kinds in debug-print.
10217         Fix console-output code under MSWin to actually work.
10218
10219         * process-nt.c (send_signal):
10220         * process-nt.c (nt_create_process):
10221         Use newer Unicode macros.
10222
10223         * process-unix.c (unix_create_process):
10224         * process-unix.c (unix_canonicalize_host_name):
10225         * process-unix.c (unix_open_network_stream):
10226         [7].
10227
10228         * scrollbar-x.c:
10229         Mule-verify.
10230
10231         * search.c (syms_of_search):
10232         [2].
10233
10234         * select-msw.c (mswindows_destroy_selection):
10235         Use LIST_LOOP_2.
10236
10237         * select-x.c (symbol_to_x_atom):
10238         [7].
10239
10240         * select.c (syms_of_select):
10241         [2].
10242
10243         * sound.c (Fplay_sound_file):
10244         [7].
10245
10246         * specifier.c:
10247         * specifier.c (decode_specifier_type):
10248         * specifier.c (Fvalid_specifier_locale_type_p):
10249         * specifier.c (check_valid_locale_or_locale_type):
10250         * specifier.c (decode_locale):
10251         * specifier.c (decode_locale_type):
10252         * specifier.c (decode_locale_list):
10253         * specifier.c (check_valid_domain):
10254         * specifier.c (decode_specifier_tag_set):
10255         * specifier.c (Fcanonicalize_tag_set):
10256         * specifier.c (Fdefine_specifier_tag):
10257         * specifier.c (Fspecifier_tag_predicate):
10258         * specifier.c (check_valid_inst_list):
10259         * specifier.c (check_valid_spec_list):
10260         * specifier.c (decode_how_to_add_specification):
10261         * specifier.c (check_modifiable_specifier):
10262         * specifier.c (specifier_add_spec):
10263         * specifier.c (boolean_validate):
10264         * specifier.c (display_table_validate):
10265         [9].
10266
10267         * specifier.c (syms_of_specifier):
10268         Move some symbols to general-slots.h.
10269         [2].
10270
10271         * symbols.c:
10272         * symbols.c (Fmapatoms):
10273         * symbols.c (Fapropos_internal):
10274         Add GCPROs.
10275
10276         * symbols.c (set_default_buffer_slot_variable):
10277         * symbols.c (set_default_console_slot_variable):
10278         [1].
10279
10280         * symbols.c (defsymbol_massage_name_1):
10281         * symbols.c (defkeyword_massage_name):
10282         * symbols.c (deferror_1):
10283         * symbols.c (deferror):
10284         * symbols.c (deferror_massage_name_and_message):
10285         * symeval.h:
10286         * symeval.h (DEFSYMBOL):
10287         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
10288
10289         * symbols.c (syms_of_symbols):
10290         [2].
10291
10292         * symsinit.h:
10293         * symsinit.h (init_win32): New.
10294         Also new is syms_of_dialog_mswindows.
10295
10296         * syswindows.h:
10297         Add new Unicode macros, missing Cygwin wide-char functions,
10298         convenience conversion macros for Qmswindows_tstr, macros for
10299         encapsulating required MSWin <-> Cygwin filename conversions,
10300         prototype for dynamically-extracted (not in NT 3.51) functions.
10301
10302         * toolbar-x.c:
10303         Mule-verify.
10304
10305         * tooltalk.c (Fadd_tooltalk_message_arg):
10306         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
10307         * tooltalk.c (Fadd_tooltalk_pattern_arg):
10308         [7].
10309
10310         * tooltalk.c (syms_of_tooltalk):
10311         [2].
10312
10313         * unexnt.c:
10314         * unexnt.c (unexec):
10315         Fix up headers, declaration of unexec() to be more standard.
10316
10317 2000-07-20  Martin Buchholz  <martin@xemacs.org>
10318
10319         * offix.h: Revert change to guard macros - they're used in offix.c!
10320
10321 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10322
10323         * lisp.h: Defsubred Fdelete.
10324
10325         * console-msw.h:  (msprinter_default_printer): Added.
10326
10327         * console-msw.c (msprinter_canonicalize_console_connection):
10328         (msprinter_canonicalize_device_connection): Added.
10329
10330         * device-msw.c (msprinter_default_printer):
10331         (Fmswingows_get_default_printer):
10332         (signal_enum_priner_error):
10333         (Fmswingows_printer_list): Added.
10334
10335 2000-07-19  Martin Buchholz <martin@xemacs.org>
10336
10337         * XEmacs 21.2.35 is released.
10338
10339 2000-07-19  Martin Buchholz  <martin@xemacs.org>
10340
10341         * select-x.c (x_handle_selection_request):
10342         Text selected in xemacs and pasted into xterm failed to appear.
10343         Spelling fixes and cosmetic changes.
10344
10345 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10346
10347         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
10348         XEmacs frame (fix for doubling chars in dialog boxes).
10349
10350 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
10351
10352         * select.c (select_convert_in, select_convert_out):
10353         Don't call intern() every time.
10354
10355         * select.c (Qselect_convert_in, Qselect_convert_out): New.
10356         * select.c (vars_of_select): Initialise them.
10357
10358 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
10359
10360         * select.c (selection-coercible-types): New.
10361
10362         * select.c (own-selection-internal):
10363         * select.c (get-selection-internal):
10364         MULE bug fix - these should default to COMPOUND_TEXT and not
10365         STRING for MULE. I think.
10366
10367         * select.c (select_convert_out): Use selection-coercible-types
10368         to find types that we can attempt to perform coercions on.
10369
10370 2000-07-18  Martin Buchholz  <martin@xemacs.org>
10371
10372         * mule-wnnfns.c:
10373         * mule-canna.c:
10374         Add coding: cookie to identify encoding.
10375
10376         * mule-canna.c (CANNA_mode_keys): make static.
10377         Use proper prototypes, even for functions of no arguments.
10378         Remove external prototype for Fding().
10379
10380         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
10381
10382         * select.c (syms_of_select): Add missing DEFSUBR.
10383
10384 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
10385
10386         * select.c (get_selection_internal, own_selection_internal):
10387         Make the type default to STRING, rather than placing a nil type
10388         into Vselection_alist.
10389
10390 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
10391
10392         * gpmevent.c (tty_selection_exists_p):
10393         * gpmevent.c (tty_own_selection):
10394         Updated parameter lists.
10395
10396 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
10397
10398         * select.h (selection-alist): Removed declaration.
10399
10400         * select.h (get_local_selection):
10401         * select.c (get_local_selection):
10402         Made static.
10403
10404         * select.h (convert_selection): Removed declaration.
10405         * select.c (convert_selection): Removed.
10406         This function belongs in Lisp.
10407
10408         * select.h (select_convert_in): Declare.
10409         * select.h (select_convert_out): Declare.
10410         * select.c (select_convert_in): New.
10411         * select.c (select_convert_out): New.
10412         New conversion functions for other files to call.
10413
10414         * select.h (select_notify_buffer_kill): Declare.
10415         * select.c (select_notify_buffer_kill): New.
10416         New functions that get called from kill-buffer.
10417
10418         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
10419         X-specific lisp code.
10420
10421         * select.h: Declare some of the lisp-visible functions for
10422         external use.
10423
10424         * select.c (clean_local_selection_data): Removed. This was
10425         a disgusting function, and previously should have been in
10426         select-x.c in any case. The functionality is now provided
10427         in select-convert-from-integer (select.el).
10428
10429         * select.c (available-selection-types): Fixed stupidity where
10430         INTEGER and ATOM got added twice. Also add STRING when we see an
10431         extent.
10432
10433         * select.c (get-selection-internal): Removed symbol stripping. No
10434         longer causes conversion when data comes from the internal cache.
10435
10436         * select.c (syms_of_select): Added new functions.
10437
10438         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
10439         error checking - previously this called abort!
10440
10441         * select-x.c (x_own_selection): Changed comment.
10442
10443         * select-x.c (x_handle_selection_request): Use select_convert_out.
10444         Don't mess with selection-alist; it's an internal variable of select.c.
10445
10446         * select-x.c (x_get_foreign_selection): Use select_convert_in.
10447
10448         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
10449         rather than messing with selection-alist.
10450
10451         * select-msw.c (mswindows_get_foreign_selection):
10452         Use TO_INTERNAL_FORMAT rather than hacking.
10453
10454 2000-07-14  Martin Buchholz  <martin@xemacs.org>
10455
10456         * process-unix.c (unix_open_multicast_group):
10457         (unix_open_multicast_group): Remove useless casts.
10458
10459 2000-07-13  Martin Buchholz  <martin@xemacs.org>
10460
10461         * sound.c (Fplay_sound): Fix `unused variable' warning.
10462
10463         * emacs.c (main): Use correct type for _environ on SCO5.
10464
10465 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
10466
10467         * console.h (own_selection_method):
10468         * console.h (selection_exists_p_method):
10469         * console.h (available_selection_types_method): New.
10470         * console.h (register_selection_data_type_method): New.
10471         * console.h (selection_data_type_name): New.
10472
10473         * console-msw.h (mswindows_destroy_selection): Declare it.  New
10474         function & alist to track GlobalAlloc()'d handles that need
10475         releasing when the clipboard data gets replaced or emptied.
10476
10477         * event-msw.c (mswindows_wnd_proc): Call it.
10478
10479         * lisp.h, general.c (Qappend): New symbol representing a
10480         `how-to-add' mode.
10481
10482         * select.c (own-selection-internal):
10483         * select.c (selection-exists-p):
10484         * select.c (available-selection-types): New.
10485         * select.c (register-selection-data-type): New.
10486         * select.c (selection-data-type-name): New.  New functions to deal
10487         with device-specific selection data formats.
10488         * select.c (selection-converter-out-alist): Renamed.
10489         * select.c (selection-converter-in-alist): New.
10490         * select.c (selection-appender-alist): New.  Added new alists.
10491         * select.c (syms_of_select, vars_of_select): Added new symbols &
10492         variables.
10493         * select.c (get_local_selection): Split.
10494         * select.c: Removed spurious type checking - selections may now be
10495         of any type, not just strings.
10496         * select.c (own-selection-internal):
10497
10498         * select.h, select.c (convert_selection): New. Created
10499         convert_selection() function based on get_local_selection().
10500         * select.h, select.c (QCF_*): New symbols representing mswindows
10501         clipboard formats.
10502         * select.h, select.c (Qreplace_all, Qreplace_existing): New
10503         symbols representing `how-to-add' modes.
10504
10505         * select-msw.c (x_sym_p): New.
10506         * select-msw.c (symbol_to_ms_cf): New.
10507         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
10508         symbols & clipboard formats. Can also handle string names.
10509         * select-msw.c (mswindows_own_selection):
10510         * select-msw.c (mswindows_selection_exists_p):
10511         Added `data-type' parameter. Use it.
10512         * select-msw.c (mswindows_available_selection_types): New.
10513         * select-msw.c (mswindows_register_selection_data_type): New.
10514         * select-msw.c (mswindows_selection_data_type_name): New.
10515         * select-msw.c (mswindows_own_selection):
10516         * select-msw.c (mswindows_get_foreign_selection):
10517         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
10518         * select-msw.c (console_create_select_mswindows): Added new methods.
10519         * select-msw.c (mswindows_destroy_selection): New.
10520         * select-msw.c (Vhandle_alist): New list.
10521         * select-msw.c (mswindows_own_selection):
10522
10523         * select-x.c (x_own_selection):
10524         * select-x.c (x_selection_exists_p):
10525         * select-x.c: Added some comments about maybe using new
10526         functionality.
10527         * select-x.c (x_own_selection):
10528
10529         * specifier.c: Remove definition of Qappend (now in general.c)
10530         * specifier.c (syms_of_specifier): Remove Qappend.
10531
10532 2000-07-12  Martin Buchholz  <martin@xemacs.org>
10533
10534         * config.h.in: Add socklen_t.
10535
10536         * s/decosf4-0.h: No special compiler flags needed or desired.
10537         In particular, undefine _BSD for DEC OSF 4.0.
10538
10539 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10540
10541         * redisplay-msw.c (msprinter_frame_output_end): Added.
10542         (console_type_create_redisplay_mswindows): Referred the above.
10543
10544         * frame.c (setup_frame_without_minibuffer): Do not create a
10545         default minibuffer frame on a printer device.
10546
10547         * frame-msw.c (apply_dc_geometry): Added.
10548         (msprinter_start_page):
10549         (msprinter_init_frame_3):
10550         (msprinter_eject_page): Use it.
10551
10552         * console-msw.h (struct msprinter_frame): Added pix_left and top,
10553         and removed residual duplex and orientation properties.
10554
10555 2000-07-11  Martin Buchholz  <martin@xemacs.org>
10556
10557         * eval.c (function_argcount): Work around a DEC CC compiler bug.
10558
10559         * unexalpha.c: Remove system prototypes from C sources!
10560
10561 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
10562
10563         * eval.c: Remove references to M-x edit-options in DEFUNs for
10564         `defvar' and `defconst'.
10565
10566 2000-07-09  Martin Buchholz  <martin@xemacs.org>
10567
10568         * config.h.in: Remove SMART_INCLUDE hackery.
10569
10570         PostgreSQL hacking:
10571         * config.h.in: Don't use SMART_INCLUDE.
10572
10573         * postgresql.h: Include libpq-fe.h here.  Fix typo.
10574         * inline.c: Simply #include "postgresql.h"
10575         * postgresql.c:
10576         - Don't use SMART_INCLUDE
10577         - Use simply "const".
10578         - Use standard doc string conventions.
10579         - Use correct type for result of PQstatus.
10580
10581 2000-07-09  Martin Buchholz  <martin@xemacs.org>
10582
10583         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
10584
10585         C++ compilation changes.
10586         * config.h.in (EXTERN_C): Define.
10587         * config.h.in (not): This is also a C++ keyword.
10588         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
10589         * cm.c: Use EXTERN_C.
10590         * redisplay-tty.c: Use EXTERN_C.
10591         * sysdep.c: Use EXTERN_C.  Remove Gould support.
10592
10593 2000-07-09  Martin Buchholz  <martin@xemacs.org>
10594
10595         * general.c: Remove duplicate definition for Qfunction.
10596
10597 2000-07-08  Ben Wing  <ben@xemacs.org>
10598
10599         * device-msw.c (msprinter_init_device):
10600         * device-msw.c (sync_printer_with_devmode):
10601         * device-msw.c (handle_devmode_changes):
10602         * device-msw.c (print_dialog_worker):
10603         * device-msw.c (Fmsprinter_apply_settings):
10604         * device-msw.c (hash_devmode):
10605         * device-msw.c (Fmsprinter_settings_despecialize):
10606         use Qmswindows_tstr, not Qctext.
10607
10608         * vm-limit.c (check_memory_limits):
10609         avoid infinite loop printing warning messages.
10610
10611 2000-07-05  Craig Lanning  <lanning@scra.org>
10612
10613         * Makefile.in.in: Add support for including the Windows resources
10614         when building with the cygwin and mingw targets.
10615
10616         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
10617         not set or not correct.
10618         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
10619         (init_initial_directory): Don't try to use $PWD on the
10620         WIN32_NATIVE target.
10621
10622         * s\cygwin32.h:
10623         [[Add -mwindows to eliminate console window.]] not required --ben
10624         (HAVE_NATIVE_SOUND): removed; now handled by configure.
10625         (MAIL_USE_POP): removed; now handled by configure.
10626
10627         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
10628         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
10629         (HAVE_NATIVE_SOUND): removed; now handled by configure.
10630         (MAIL_USE_POP): removed; now handled by configure.
10631         (ENCAPSULATE_STAT): from Dan Holmsand, added.
10632         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
10633         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
10634         constant string.
10635         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
10636         up from <winsock.h> via systime.h.
10637         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
10638         (getpagesize): from Dan Holmsand, added.
10639         Added #endif which was left dangling by Ben's mega patch; added
10640         comment to help prevent this in the future.
10641
10642         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
10643
10644 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10645
10646         * console-msw.h (struct mswindows_device): Removed unnecessary
10647         cached device geometry values.
10648         Added update_tick and an accessor macro.
10649         (Lisp_Devmode): Added lrecord declaration.
10650         (struct msprinter_device): Contain devmode as a Lisp object.
10651         Added mswindows_get_selected_frame_hwnd();
10652
10653         * console.h (struct console_methods): Indentation nitpicking.
10654
10655         * device-msw.c (mswindows_init_device): Do not initialize geometry
10656         cache. Initialize update tick.
10657         (mswindows_device_system_metrics): Ask the device for its geometry.
10658         (global_free_2_maybe):
10659         (devmode_to_hglobal):
10660         (handle_printer_changes):
10661         (ensure_not_printing):
10662         (print_dialog_worker):
10663         (Fmsprinter_print_setup_dialog):
10664         (Fmsprinter_print_dialog):
10665         (plist_get_margin):
10666         (plist_set_margin):
10667         (Fmsprinter_page_setup_dialog): Added functions.
10668         (sync_printer_with_devmode):
10669         (handle_devmode_changes):
10670         (Fmsprinter_get_settings):
10671         (Fmsprinter_select_settings):
10672         (Fmsprinter_apply_settings):
10673         (allocate_devmode):
10674         (Fmsprinter_settings_copy):
10675         (Fmsprinter_settings_despecialize):
10676         (print_devmode):
10677         (finalize_devmode):
10678         (equal_devmode):
10679         (hash_devmode): Added functions
10680         (syms_of_device_mswindows): Init devmode lrecord class.
10681
10682         * device.h: Added an exfun for find-device.
10683
10684         * event-msw.c (mswindows_wnd_proc): Do not update the cached
10685         geometry; although, recreate the device compatible DC.
10686
10687         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
10688         (msprinter_init_frame_3):
10689         (msprinter_frame_property):
10690         (msprinter_internal_frame_property_p):
10691         (msprinter_frame_properties):
10692         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
10693         print job properties (will move to device settings).
10694
10695         * lisp.h: Added symbols.
10696
10697         * general.c (syms_of_general): Declared them.
10698
10699         * hash.c (string_hash): Added.
10700
10701         * lrecord.h (lrecord_type): Added devmode lrecord type.
10702
10703 2000-07-02  Mike Sperber <mike@xemacs.org>
10704
10705         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
10706         FreeBSD 4.0.
10707
10708 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
10709
10710         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
10711         integer.
10712
10713 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
10714
10715         * data.c (Fstring_to_number): Don't recognize floating point if
10716         base is not 10.
10717
10718 2000-06-22  Martin Buchholz  <martin@xemacs.org>
10719
10720         * glyphs-widget.c (tab_control_query_geometry):
10721         (widget_query_geometry):
10722         (button_query_geometry):
10723         * glyphs.c (text_query_geometry):
10724         Enforce type correctness.
10725
10726 2000-06-18  Martin Buchholz  <martin@xemacs.org>
10727
10728         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
10729         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
10730
10731 2000-06-17  Martin Buchholz  <martin@xemacs.org>
10732
10733         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
10734         conflicts with gcc's fixincluded version of FOO.h.
10735
10736         * glyphs.h (image_instance_geometry): Remove trailing `,'
10737
10738 2000-06-08  Mike Alexander  <mta@arbortext.com>
10739
10740         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
10741         (shove_thread): Don't write the same output twice
10742         (make_ntpipe_output_stream): Increase priority of shove thread
10743         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
10744         chance to run
10745         (ntpipe_shove_closer): Don't delete the pipe until we're done with
10746         it.
10747
10748 2000-06-12  Ben Wing  <ben@xemacs.org>
10749
10750         * s\mingw32.h (sigset):
10751         * s\windowsnt.h (sigset):
10752         rename msw_ to mswindows_ for consistency with general convention.
10753
10754 2000-06-12  Ben Wing  <ben@xemacs.org>
10755
10756         * console-msw.c:
10757         * console-msw.c (mswindows_get_console_hwnd):
10758         * console-msw.c (mswindows_ensure_console_allocated):
10759         * console-msw.c (mswindows_hide_console):
10760         * console-msw.c (mswindows_show_console):
10761         * console-msw.c (mswindows_ensure_console_buffered):
10762         * console-msw.c (mswindows_output_console_string):
10763         * console-msw.c (mswindows_windows9x_p):
10764         * console-msw.h:
10765         * device-msw.c (mswindows_get_workspace_coords):
10766         * device-msw.c (mswindows_device_system_metrics):
10767         * dialog-msw.c (mswindows_popup_dialog_box):
10768         * event-msw.c (mswindows_wnd_proc):
10769         * frame-msw.c (mswindows_size_frame_internal):
10770         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
10771         * menubar-msw.c (displayable_menu_item):
10772         * menubar-msw.c (mswindows_char_is_accelerator):
10773         * nt.c:
10774         * nt.c (mswindows_sigset):
10775         * nt.c (mswindows_sigrelse):
10776         * nt.c (mswindows_sigpause):
10777         * nt.c (mswindows_raise):
10778         * nt.c (timer_proc):
10779         * ntproc.c:
10780         * ntproc.c (find_child_console):
10781         * ntproc.c (sys_kill):
10782         * print.c:
10783         * print.c (std_handle_out_external):
10784         * process-nt.c (find_child_console):
10785         * process-nt.c (send_signal_the_95_way):
10786         * process-nt.c (ensure_console_window_exists):
10787         * process-nt.c (nt_create_process):
10788         * syssignal.h:
10789         rename msw_ to mswindows_ for consistency with general convention.
10790
10791         * emacs.c:
10792         * dumper.c:
10793         include nt.h, not syswindows.h.
10794
10795         * nt.c (mswindows_fstat):
10796         * nt.c (mswindows_stat):
10797         prefix mswindows_ instead of attempting to directly override the
10798         library functions.  fix declarations.
10799
10800         * nt.h:
10801         include syswindows.h.  move some sysdep.h stuff here.
10802
10803         * ntheap.h:
10804         include syswindows.h, not <windows.h>.
10805
10806         * ntplay.c:
10807         clean up headers.
10808
10809         * sysdep.c:
10810         clean up headers.
10811
10812         * sysdep.c (sys_fstat):
10813         * sysdep.c (sys_stat):
10814         call mswindows versions when appropriate.
10815
10816         * sysdep.h:
10817         move mswin decls to nt.h.
10818
10819         * syswindows.h:
10820         add long comment describing appropriate use of the various windows
10821         headers.
10822
10823 2000-06-11  Ben Wing  <ben@xemacs.org>
10824
10825         * device-x.c: Correct doc string for sixth arg of x-get-resource.
10826
10827 2000-06-10  Ben Wing  <ben@xemacs.org>
10828
10829         * Makefile.in.in (release):
10830         Correction to make sure xemacs.exe always dumped when correct.
10831
10832         * alloca.c:
10833         * balloon_help.c:
10834         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
10835
10836         * buffer.c (set_buffer_internal):
10837         [[[[2]]]]: Remove HAVE_FEP code.
10838
10839         * buffer.c (init_initial_directory):
10840         [3].
10841
10842         * bytecode.c:
10843         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
10844         individual files.
10845
10846         * callproc.c:
10847         * callproc.c (call_process_cleanup):
10848         * callproc.c (Fold_call_process_internal):
10849         * callproc.c (child_setup):
10850         * callproc.c (getenv_internal):
10851         * callproc.c (init_callproc):
10852         * callproc.c (vars_of_callproc):
10853         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
10854         __CYGWIN32__ -> CYGWIN.
10855         DOS_NT -> WIN32_NATIVE.
10856         Remove MSDOS support/references, converting to WIN32_NATIVE
10857           where correct.
10858         __MINGW32__ -> MINGW.
10859         Fix windows.h includes.
10860         Remove bogus HAVE_NTGUI.
10861
10862         * config.h.in:
10863         [2].
10864
10865         * console-msw.c:
10866         mswindows_message_outputted added for use in allowing startup
10867         errors on the console to be seen.
10868
10869         * console-msw.c (msw_ensure_console_allocated):
10870         * console-msw.c (msw_output_console_string):
10871         * console-msw.c (DHEADER):
10872         * console-msw.c (DOPAQUE_DATA):
10873         * console-msw.c (DEVENT):
10874         * console-msw.c (DCONS):
10875         * console-msw.c (DCONSCDR):
10876         * console-msw.c (DSTRING):
10877         * console-msw.c (DVECTOR):
10878         * console-msw.c (DSYMBOL):
10879         * console-msw.c (DSYMNAME):
10880         Fix warnings.
10881
10882         * console-stream.c (stream_init_console):
10883         Fix text/binary problems.
10884
10885         * device-msw.c:
10886         * device-msw.c (mswindows_finish_init_device):
10887         * device-msw.c (mswindows_delete_device):
10888         [1].
10889
10890         * device.c (handle_asynch_device_change):
10891         [3].
10892
10893         * dgif_lib.c:
10894         * dgif_lib.c (DGifOpenFileName):
10895         * dgif_lib.c (DGifOpenFileHandle):
10896         * dgif_lib.c (DGifGetLine):
10897         * dgif_lib.c (DGifGetPixel):
10898         Added config.h/lisp.h, fix up includes.
10899         [1].
10900
10901         * dired-msw.c:
10902         [4].
10903
10904         * dired.c:
10905         * dired.c (file_name_completion):
10906         * dired.c (Ffile_attributes):
10907         * dired.c (syms_of_dired):
10908         [1].
10909
10910         * dumper.c:
10911         * dumper.c (pdump_file_unmap):
10912         * dumper.c (pdump_load):
10913         [1].
10914
10915         * editfns.c:
10916         * editfns.c (Ftemp_directory):
10917         * editfns.c (user_login_name):
10918         * editfns.c (Fuser_real_login_name):
10919         * editfns.c (get_home_directory):
10920         [1].
10921
10922         * elhash.c (finish_marking_weak_hash_tables):
10923         [[[[5]]]]: Fix GCC warnings.
10924
10925         * emacs.c:
10926         * emacs.c (mswindows_handle_hardware_exceptions):
10927         * emacs.c (make_arg_list_1):
10928         * emacs.c (main_1):
10929         * emacs.c (Fkill_emacs):
10930         * emacs.c (Fdump_emacs):
10931         [1].
10932         Fix problems with nested crashes, add long comment.
10933
10934         * event-Xt.c (init_event_Xt_late):
10935         [1].
10936
10937         * event-msw.c:
10938         * event-msw.c (mswindows_dde_callback):
10939         * event-msw.c (mswindows_handle_sticky_modifiers):
10940         * event-msw.c (mswindows_wnd_proc):
10941         [1].
10942         [5].
10943
10944         * events.c (character_to_event):
10945         [1].
10946
10947         * fileio.c:
10948         * fileio.c (Ffile_name_directory):
10949         * fileio.c (Ffile_name_nondirectory):
10950         * fileio.c (directory_file_name):
10951         * fileio.c (Fexpand_file_name):
10952         * fileio.c (Fsubstitute_in_file_name):
10953         * fileio.c (Ffile_name_absolute_p):
10954         * fileio.c (check_executable):
10955         * fileio.c (Ffile_readable_p):
10956         * fileio.c (Ffile_accessible_directory_p):
10957         * fileio.c (Ffile_modes):
10958         * fileio.c (Funix_sync):
10959         * fileio.c (vars_of_fileio):
10960         [1]. [4].
10961
10962         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
10963
10964         Expand getdefdir defn.
10965         Fix bogus rename() comment.
10966
10967         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
10968         to use standard XEmacs include files, e.g. sysfile.h, rather
10969         than system-specific includes.
10970
10971         * fns.c:
10972         * fns.c (Fsubseq):
10973         [5]. [6].
10974
10975         * frame.c (vars_of_frame):
10976         [1].
10977
10978         * getloadavg.c:
10979         * getloadavg.c (getloadavg):
10980         [1]. [6].
10981         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
10982         (We don't use it elsewhere in the code; just add a comment.)
10983
10984         * gif_io.c:
10985         [6].
10986         Add config.h.
10987
10988         * glyphs-msw.c:
10989         * glyphs-msw.c (mswindows_resource_instantiate):
10990         [1].
10991
10992         * glyphs-x.c (x_native_layout_instantiate):
10993         [5].
10994
10995         * gui-msw.c (Fmswindows_shell_execute):
10996         [1].
10997
10998         * insdel.c:
10999         [4].
11000
11001         * lisp.h:
11002         [4]. [5].
11003
11004         * lread.c (locate_file_in_directory_mapper):
11005         [1].
11006
11007         * lstream.c:
11008         [4].
11009
11010         * mem-limits.h:
11011         * mem-limits.h (get_lim_data):
11012         [1].
11013
11014         * menubar-msw.c:
11015         [4].
11016
11017         * ndir.h:
11018         [1].
11019
11020         * nt.c:
11021         * nt.c (getwd):
11022         * nt.c (closedir):
11023         * nt.c (rva_to_section):
11024         * nt.c (mswindows_executable_type):
11025         [1]. [6].
11026         Fix closedir() defn.
11027
11028         * nt.h:
11029         [[[[8]]]]: *_OK defs moved to sysfile.h.
11030
11031         * ntproc.c:
11032         [6]. [7].
11033
11034         * objects-x.c:
11035         [4].
11036
11037         * print.c:
11038         * print.c (std_handle_out_external):
11039         [1]. [4].
11040
11041         * process-nt.c:
11042         * process-nt.c (nt_create_process):
11043         [6].
11044         try to fix process quoting somewhat.
11045
11046         * process-unix.c (unix_create_process):
11047         [1].
11048
11049         * process.c:
11050         * process.c (vars_of_process):
11051         Add Vnull_device.
11052
11053         * process.h:
11054         [1].
11055
11056         * realpath.c:
11057         * realpath.c (xrealpath):
11058         [1].
11059
11060         * redisplay-tty.c (init_tty_for_redisplay):
11061         [3].
11062
11063         * redisplay.c:
11064         [4]. [6].
11065
11066         * scrollbar-msw.c:
11067         [4].
11068
11069         * sheap.c:
11070         * sheap.c (more_static_core):
11071         * sheap.c (report_sheap_usage):
11072         [5]. [6].
11073
11074         * signal.c:
11075         * signal.c (alarm_signal):
11076         [1]. [6].
11077
11078         * sound.c:
11079         [6].
11080
11081         * strftime.c:
11082         * strftime.c (zone_name):
11083         [1]. [5].
11084
11085         * symsinit.h (init_sunpro):
11086         [1].
11087
11088         * syscommctrl.h:
11089         commctrl.h not in Cygwin b20.1.
11090
11091         * sysdep.c:
11092         * sysdep.c (endif):
11093         * sysdep.c (sys_subshell):
11094         * sysdep.c (init_baud_rate):
11095         * sysdep.c (emacs_get_tty):
11096         * sysdep.c (emacs_set_tty):
11097         * sysdep.c (tty_init_sys_modes_on_device):
11098         * sysdep.c (init_system_name):
11099         * sysdep.c (sys_open):
11100         * sysdep.c (interruptible_open):
11101         * sysdep.c (sys_fopen):
11102         * sysdep.c (sys_mkdir):
11103         * sysdep.c (sys_rename):
11104         * sysdep.c (get_process_times_1):
11105         [1]. [6].
11106
11107         * sysdep.h:
11108         [1].
11109
11110         * sysdir.h:
11111         * sysdir.h (DIRENTRY_NONEMPTY):
11112         [1]. [6].
11113
11114         * sysdll.c (dll_init):
11115         * sysdll.h:
11116         [1].
11117
11118         * sysfile.h:
11119         [1]. [6]. [8].
11120         added text/binary defs.
11121
11122         * sysfloat.h:
11123         [1].
11124
11125         * sysproc.h:
11126         * sysproc.h (EDESTADDRREQ):
11127         * sysproc.h (poll_fds_for_input):
11128         [1]. [6].
11129
11130         * syspwd.h:
11131         [6].
11132
11133         * syssignal.h:
11134         [1].
11135
11136         * systime.h:
11137         [1]. [6].
11138
11139         * systty.h:
11140         [1].
11141
11142         * syswindows.h:
11143         [1].
11144         Always define WIN32_LEAN_AND_MEAN.
11145
11146         * unexcw.c (unexec):
11147         [5].
11148
11149         * unexec.c:
11150         * unexec.c (copy_text_and_data):
11151         * unexec.c (adjust_lnnoptrs):
11152         [1].
11153
11154         * unexnt.c:
11155         * unexnt.c (_start):
11156         [1].
11157
11158 2000-06-07  Ben Wing  <ben@xemacs.org>
11159
11160         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
11161         was used only as a model.  We've long since extracted any useful
11162         logic or code out of this. (I just did an exhaustive search.)
11163
11164         * s\msdos.h: Removed.
11165
11166         * s\windows95.h: Removed.
11167
11168 2000-06-10  Ben Wing  <ben@xemacs.org>
11169
11170         * s\cygwin32.h:
11171         [1]. [5].
11172         Don't use extern with fun defs.
11173
11174         * s\mingw32.h:
11175         [1]. [7].
11176         Remove nt\inc include.
11177         Remove getdisk, getdefdir. (The former is unused, the latter
11178         expanded in fileio.h.)
11179
11180         * s\windowsnt.h:
11181         * s\windowsnt.h (WIN32_NATIVE):
11182         * s\windowsnt.h (HAVE_STRCASECMP):
11183         [1]. [7].
11184         Add long comment about preprocessor changes.
11185         Remove getdisk, getdefdir. (The former is unused, the latter
11186         expanded in fileio.h.)
11187
11188 2000-06-10  Ben Wing  <ben@xemacs.org>
11189
11190         * m\arm.h:
11191         * m\delta.h:
11192         * m\intel386.h:
11193         * m\sequent.h:
11194         * m\template.h:
11195         * m\windowsnt.h:
11196         [1].
11197         Remove bogus/unused NO_SOCK_SIGIO.
11198
11199 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
11200
11201         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
11202         not an Emchar.
11203
11204 2000-06-04  Mike Sperber <mike@xemacs.org>
11205
11206         * casetab.c (set_case_table): For `set-standard-case-table',
11207         actually deposit the new case tables where the rest of XEmacs can
11208         see them.
11209
11210 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
11211
11212         * data.c (Faset): Don't cast XCHAR() to unsigned char.
11213
11214 2000-06-05  Ben Wing  <ben@xemacs.org>
11215
11216         * callproc.c (child_setup): Don't do close_load_descs() under
11217         MS Windows.  Put in a comment explaining why.
11218
11219 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
11220
11221         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
11222         Toolkit shell" which breaks `kill-compilation' on Windows NT
11223         native, retaining STDERR handling improvements.
11224
11225 2000-06-01  Andreas Jaeger  <aj@suse.de>
11226
11227         * s/s390.h: Support for S390, based on a patch by Martin
11228         Schwidefsky <schwidefsky@de.ibm.com>.
11229
11230 2000-05-30  Andy Piper  <andy@xemacs.org>
11231
11232         * window.c (allocate_window):
11233         (make_dummy_parent):
11234         (Fset_window_configuration): use new hashtable type.
11235
11236         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
11237         (struct image_instantiator_methods):
11238         (struct Lisp_Image_Instance): make instance geometry signed.
11239
11240         * glyphs.c (instantiate_image_instantiator):
11241         (image_instance_query_geometry):
11242         (image_instance_layout):
11243         (image_instance_layout):
11244         (query_string_geometry):
11245         (text_query_geometry):
11246         (image_instantiate):
11247         (image_instantiate):
11248         (cache_subwindow_instance_in_frame_maybe):
11249         (subwindow_query_geometry): make instance geometry signed.
11250
11251         * glyphs-widget.c (widget_query_geometry):
11252         (widget_layout):
11253         (button_query_geometry):
11254         (tree_view_query_geometry):
11255         (tab_control_query_geometry):
11256         (layout_query_geometry):
11257         (layout_layout):
11258         (native_layout_layout): make instance geometry signed.
11259
11260 2000-05-29  Olivier Galibert  <galibert@pobox.com>
11261
11262         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
11263         constant.
11264
11265         * general.c (syms_of_general): Add Qfull_assoc symbol.
11266
11267         * data.c (finish_marking_weak_lists): Mark full-assoc lists
11268         correctly.
11269         (decode_weak_list_type): Decode full-assoc type.
11270         (encode_weak_list_type): Encode full-assoc type.
11271         (Fmake_weak_list): Update doc string.
11272
11273 2000-05-30  Andy Piper  <andy@xemacs.org>
11274
11275         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
11276
11277         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
11278         (decode_hash_table_weakness): ditto.
11279         (Fhash_table_weakness): ditto.
11280         (Fhash_table_type): ditto.
11281         (finish_marking_weak_hash_tables): ditto.
11282         (hash_table_weakness_validate): ditto.
11283         (syms_of_elhash): ditto.
11284
11285 2000-05-28  Martin Buchholz <martin@xemacs.org>
11286
11287         * XEmacs 21.2.34 is released.
11288
11289 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
11290
11291         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
11292         start cache.
11293         (updating_line_start_cache): Gone.
11294         (regenerate_window): Replace resetting of VERTICAL_CLIP by
11295         generic code to force a minimum of 1 line laid out in the
11296         CMOTION_DISP case.
11297
11298 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
11299
11300         * glyphs.c (instantiate_image_instantiator): Check for initialized
11301         height & width no longer special cases IMAGE_NOTHING.
11302         (nothing_instantiate): Set height and width of instance.
11303
11304 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
11305
11306         * unexelf.c (unexec): Search for ".data" section.
11307         Initialize new_data2_offset from old_data_index.
11308         Remove redundant check for ElfW.
11309
11310 2000-05-23  Andy Piper  <andy@xemacs.org>
11311
11312         * glyphs.c (get_image_instantiator_governing_domain): allow more
11313         specific domains as the governing domain rather than expecting an
11314         exact match. This fixes problems with layouts.
11315
11316 2000-05-22  Andy Piper  <andy@xemacs.org>
11317
11318         * redisplay-output.c (compare_runes): check for non-images
11319
11320         * glyphs.c (set_glyph_dirty_p): ditto.
11321         (update_glyph_cachel_data): ditto.
11322
11323         * glyphs-widget.c (layout_post_instantiate): ditto.
11324         (layout_post_instantiate): ditto.
11325
11326         * event-msw.c (mswindows_wnd_proc): warning removal.
11327
11328 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
11329
11330         * s\mingw32.h: Added #undef for CLASH_DETECTION.
11331
11332         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
11333
11334         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
11335
11336         * nt.c (rva_to_section): mingw32 needs rva_to_section.
11337         (mswindows_executable_type): mingw32 now has enough headers for
11338         this to work.
11339
11340 2000-05-20  Andy Piper  <andy@xemacs.org>
11341
11342         * console-msw.c (mswindows_output_last_error): ; -> ,
11343
11344 2000-05-12  Andy Piper  <andy@xemacs.org>
11345
11346         * console-msw.c (FROB): compare ints with ints.
11347
11348 2000-05-11  Andy Piper  <andy@xemacs.org>
11349
11350         * glyphs-x.c (x_finalize_image_instance): make minimal build
11351         happy.
11352
11353 2000-05-20  Ben Wing  <ben@xemacs.org>
11354
11355         * event-Xt.c:
11356         * event-Xt.c (vars_of_event_Xt):
11357         move modifier-keys-are-sticky to event-stream.c.
11358
11359         * event-msw.c:
11360         * event-msw.c (mswindows_enqueue_mouse_button_event):
11361         * event-msw.c (key_needs_default_processing_p):
11362         * event-msw.c (XEMSW_LCONTROL):
11363         * event-msw.c (mswindows_handle_sticky_modifiers):
11364         * event-msw.c (FROB):
11365         * event-msw.c (clear_sticky_modifiers):
11366         * event-msw.c (output_modifier_keyboard_state):
11367         * event-msw.c (output_alt_keyboard_state):
11368         * event-msw.c (mswindows_wnd_proc):
11369         * event-msw.c (mswindows_modifier_state):
11370         * event-msw.c (emacs_mswindows_handle_magic_event):
11371         implement sticky modifiers.
11372
11373         * event-stream.c:
11374         * event-stream.c (vars_of_event_stream):
11375         move modifier-keys-are-sticky here.
11376
11377         * lisp.h:
11378         add CHECK_FUNCTION.
11379
11380         * rangetab.c:
11381         implement map-range-table.
11382
11383
11384 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
11385
11386         * redisplay-tty.c (reset_tty_modes):
11387         (tty_redisplay_shutdown): Adjust argument type to
11388         tty_frame_output_end.
11389
11390 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
11391
11392         * eval.c (Fbacktrace): Don't output a line with only right
11393         parenthesis.
11394
11395 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
11396
11397         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
11398         (Fpq_reset_poll): Ditto.
11399
11400 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
11401
11402         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
11403
11404 2000-05-16  Ben Wing  <ben@xemacs.org>
11405
11406         * buffer.c:
11407         * buffer.c (dfc_convert_to/from_internal_format):
11408         * buffer.c (reinit_vars_of_buffer):
11409         Fix conversion functions to allow reentrancy.
11410
11411         * console-msw.c:
11412         * console-msw.c (mswindows_output_last_error):
11413         New fun, generally useful -- output a human-readable
11414         version of GetLastError() on the console.
11415
11416         * console-msw.h:
11417         * console-msw.h (struct mswindows_frame):
11418         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
11419
11420         * console-stream.c (stream_output_begin):
11421         * console-stream.c (stream_output_end):
11422         * console-stream.c (stream_output_vertical_divider):
11423         * console-stream.c (stream_clear_region):
11424         * console-stream.c (stream_flash):
11425         * console-stream.c (console_type_create_stream):
11426         Delete blank stream methods, not needed.
11427
11428         * console.h (struct console_methods):
11429         Split begin/end methods into window and frame.
11430
11431         * event-msw.c:
11432         * event-msw.c (mswindows_handle_paint):
11433         * event-msw.c (output_alt_keyboard_state):
11434         * event-msw.c (mswindows_wnd_proc):
11435         * event-msw.c (vars_of_event_mswindows):
11436         Comment about problems with ignored-expose.
11437         Define mswindows-debug-events; not really implemented.
11438
11439         * frame-msw.c (mswindows_init_frame_1):
11440         random cleanups.
11441
11442         * glyphs-msw.c:
11443         * glyphs-msw.c (begin_defer_window_pos):
11444         * glyphs-msw.c (mswindows_unmap_subwindow):
11445         * glyphs-msw.c (mswindows_map_subwindow):
11446         * glyphs-msw.c (mswindows_resize_subwindow):
11447         Use DeferWindowPos to reduce flashing when mapping/unmapping.
11448
11449         * glyphs.c (make_image_instance_1):
11450         Fix crash.
11451
11452         * gutter.c (Fredisplay_gutter_area):
11453         Use new begin/end methods.
11454
11455         * lisp.h (Dynarr_new2):
11456         New creation fun.
11457
11458         * redisplay-msw.c:
11459         * redisplay-msw.c (mswindows_frame_output_begin):
11460         * redisplay-msw.c (mswindows_frame_output_end):
11461         * redisplay-msw.c (console_type_create_redisplay_mswindows):
11462         New begin/end methods -- handle DeferWindowPos.
11463
11464         * redisplay-output.c (redisplay_move_cursor):
11465         * redisplay-output.c (redraw_cursor_in_window):
11466         * redisplay-output.c (redisplay_update_line):
11467         * redisplay-output.c (redisplay_output_window):
11468         New begin/end methods.
11469
11470         * redisplay-tty.c:
11471         * redisplay-tty.c (tty_frame_output_begin):
11472         * redisplay-tty.c (tty_frame_output_end):
11473         * redisplay-tty.c (console_type_create_redisplay_tty):
11474         New begin/end methods.
11475
11476         * redisplay-x.c:
11477         * redisplay-x.c (x_window_output_begin):
11478         * redisplay-x.c (x_window_output_end):
11479         * redisplay-x.c (console_type_create_redisplay_x):
11480         New begin/end methods.
11481
11482         * redisplay.c (redisplay_frame):
11483         * redisplay.c (Fredisplay_echo_area):
11484         New begin/end methods.
11485         use MAYBE_DEVMETH for clear_frame; it may not exist.
11486
11487         * window.h (WINDOW_XFRAME):
11488         WINDOW_XFOO macros -- get locale and decode struct pointer.
11489
11490
11491 2000-05-12  Ben Wing  <ben@xemacs.org>
11492
11493         * emacs.c:
11494         * emacs.c (ensure_no_quitting_from_now_on):
11495         * emacs.c (fatal_error_signal):
11496         * emacs.c (mswindows_handle_hardware_exceptions):
11497         * emacs.c (main):
11498         * emacs.c (Fkill_emacs):
11499         * emacs.c (shut_down_emacs):
11500         * emacs.c (assert_failed):
11501         various improvements in fatal error handling.
11502
11503         * eval.c:
11504         move preparing_for_armageddon to emacs.c.
11505
11506         * lisp.h:
11507         declare fatal_error_in_progress.
11508
11509         * print.c:
11510         * print.c (std_handle_out_external):
11511         * print.c (std_handle_out_va):
11512         * print.c (stderr_out):
11513         * print.c (stdout_out):
11514         use console under mswin when no standard output.
11515         don't do code conversion during fatal error.
11516
11517         * scrollbar.c (Fscrollbar_page_up):
11518         * scrollbar.c (Fscrollbar_page_down):
11519         fix missing else.  reindent.
11520
11521 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
11522
11523         Emergency fix.
11524
11525         * glyphs.h (GLYPH_CACHEL_DESCENT):
11526         (GLYPH_CACHEL_DESCENT):
11527         (GLYPH_CACHEL_DESCENT):
11528         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
11529         used in case these are inline functions.
11530         Use more absurd values to error check.
11531
11532         include window.h for error check functions.
11533
11534 2000-05-11  Ben Wing  <ben@xemacs.org>
11535
11536         * cmdloop.c (Freally_early_error_handler):
11537         Display message box under windows; otherwise, message will disappear
11538         before it can be viewed.
11539
11540         * console-msw.c:
11541         * console-msw.c (Fmswindows_message_box):
11542         * console-msw.c (FROB):
11543         * console-msw.c (syms_of_console_mswindows):
11544         Define new fun `mswindows-message-box'.
11545         #### I will merge this into `popup-dialog-box'; just give me
11546         a bit of time.
11547
11548         * general.c:
11549         * general.c (syms_of_general):
11550         Some new symbols used in `mswindows-message-box'.
11551
11552         * glyphs.c:
11553         * glyphs.c (Fset_image_instance_property):
11554         put warning in this fun.
11555
11556         * glyphs.h:
11557         * glyphs.h (GLYPH_CACHEL_WIDTH):
11558         * glyphs.h (GLYPH_CACHEL_ASCENT):
11559         * glyphs.h (GLYPH_CACHEL):
11560         * glyphs.h (GLYPH_CACHEL_GLYPH):
11561         define error-checking versions to try to catch a bug i've seen --
11562         redisplay gets in an infinite loop because the glyph width of the
11563         continuation glyph is 65535.
11564
11565         * lisp.h:
11566         Extern message-box stuff.
11567
11568         * window.c (allocate_window):
11569         * window.c (make_dummy_parent):
11570         * window.c (Fset_window_configuration):
11571         Use EQUAL not EQ for subwindow caches to make them work a bit
11572         better. (Something is still very broken.)
11573
11574
11575 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
11576
11577         * glyphs.c (image_instantiate): Suppress gcc warnings.
11578         (Fmake_image_instance): Fix doc string.
11579         * specifier.c (Fmake_specifier): Ditto.
11580
11581 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
11582
11583         * paths.h.in (PATH_LOCK): Removed.
11584         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
11585         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
11586
11587 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
11588
11589         * fns.c (Ffeaturep): Update e-mail address in doc-string.
11590         Document (featurep '(and xemacs 21.02)).
11591
11592 2000-05-09  Ben Wing  <ben@xemacs.org>
11593
11594         * buffer.c (complex_vars_of_buffer):
11595         update modeline-format doc.
11596
11597         * device.h:
11598         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
11599
11600         * emacs.c:
11601         timeline of all released versions of Emacs, for use in creating
11602         authorship comments and in synching up.
11603
11604         * glyphs-widget.c (image_instantiator_buttons):
11605         * glyphs-widget.c (image_instantiator_edit_fields):
11606         * glyphs-widget.c (image_instantiator_combo_box):
11607         * glyphs-widget.c (image_instantiator_scrollbar):
11608         * glyphs-widget.c (image_instantiator_progress_guage):
11609         * glyphs-widget.c (image_instantiator_tree_view):
11610         * glyphs-widget.c (image_instantiator_tab_control):
11611         * glyphs-widget.c (image_instantiator_labels):
11612         * glyphs-widget.c (image_instantiator_layout):
11613         * glyphs-widget.c (image_instantiator_native_layout):
11614         rename decode_domain method to governing_domain.
11615
11616         * glyphs.c:
11617         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
11618         * glyphs.c (add_entry_to_device_ii_format_list):
11619         make sure we don't put an entry more than once into the list.
11620         * glyphs.c (check_instance_cache_mapper):
11621         *************************************************************
11622         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
11623         HAVE BEEN GETTING.
11624         *************************************************************
11625         * glyphs.c (get_image_instantiator_governing_domain):
11626         clean up, expand on new concept of governing domain.
11627         * glyphs.c (instantiate_image_instantiator):
11628         * glyphs.c (allocate_image_instance):
11629         use governing_domain instead of cache_domain in naming.
11630         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
11631         * glyphs.c (make_image_instance_1):
11632         * glyphs.c (Fmake_image_instance):
11633         allow for any domain (not just device), and process the
11634         governing domain correctly.  very big doc fix.
11635         * glyphs.c (Fimage_instance_domain):
11636         new primitive, to retrieve the governing domain of an image instance.
11637         * glyphs.c (image_instantiate):
11638         use new governing_domain stuff.  this fixes a crash you could get
11639         by instantiating certain widget glyphs in frame locales. (should
11640         signal an error instead of crashing.)
11641         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
11642         * glyphs.c (Fglyphp): clean up doc.
11643         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
11644         * glyphs.c (syms_of_glyphs):
11645         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
11646         * glyphs.c (image_instantiator_format_create): add some comments about
11647         bogus code.
11648         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
11649         for current-display-table. (Apparently Hrjove implemented in 1998 a
11650         design I wrote up in 1996, but didn't update the doc string.)
11651
11652         * glyphs.h: clean up a doc string.
11653         * glyphs.h (governing_domain):
11654         * glyphs.h (struct image_instantiator_methods):
11655         changes for governing_domain stuff.
11656
11657         * gutter.c:
11658         * gutter.c (Fgutter_specifier_p):
11659         * gutter.c (Fgutter_size_specifier_p):
11660         * gutter.c (Fgutter_visible_specifier_p):
11661         * objects.c:
11662         * objects.c (Fcolor_specifier_p):
11663         * objects.c (Ffont_specifier_p):
11664         * objects.c (Fface_boolean_specifier_p):
11665         doc strings moved to make-*-specifier.
11666
11667         * redisplay.c (add_disp_table_entry_runes_1):
11668         * redisplay.c (generate_fstring_runes):
11669         * redisplay.c (screen):
11670         add random comments and doc strings.
11671
11672         * specifier.c:
11673         * specifier.c (Fmake_specifier):
11674         major overhaul of this doc string.
11675
11676         * specifier.c (Fvalid_specifier_domain_p):
11677         comment about the bogosity of image instances being domains.
11678         * specifier.c (decode_domain):
11679         now non-static, used in glyphs.c.
11680         * specifier.c (specifier_instance):
11681         comment about the bogosity of image instances being domains.
11682         * specifier.c (Fgeneric_specifier_p):
11683         move doc string to make-generic-specifier.
11684         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
11685         rebackslashify.
11686
11687         * specifier.h:
11688         * specifier.h (DOMAIN_FRAME):
11689         * specifier.h (DOMAIN_LIVE_P):
11690         * specifier.h (DOMAIN_XDEVICE):
11691         rebackslashify.
11692         add comments about problems with these macros.
11693         prototype for decode_domain.
11694
11695         * toolbar.c:
11696         * toolbar.c (Ftoolbar_specifier_p):
11697         move doc string to `make-toolbar-specifier'.
11698
11699         * window.c (window_unmap_subwindows_cache_mapper):
11700         *************************************************************
11701         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
11702         HAVE BEEN GETTING.
11703         *************************************************************
11704
11705 2000-05-09  Andy Piper  <andy@xemacs.org>
11706
11707         * glyphs.h: declare reset_frame_subwindow_instance_cache.
11708
11709         * window.c (Fset_window_configuration): reset the frame subwindow
11710         cache and re-initialize the window subwindow caches.
11711
11712         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
11713
11714 2000-05-09  Ben Wing  <ben@xemacs.org>
11715
11716         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
11717         DWORD.
11718
11719 2000-04-26  Mike Woolley  <mike@bulsara.com>
11720
11721         * ntheap.c: Changed recreate_heap to limit the amount reserved
11722         for the heap to that which is actually available. Also now
11723         displays a message box (with some dignostics) in the event that
11724         it still can't start.
11725
11726 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
11727
11728         * callproc.c (Fold_call_process_internal): GCPRO path
11729
11730 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
11731
11732         Patch by Bill Perry.
11733
11734         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
11735         back data instead of #ifdef.
11736         (Fscrollbar_page_down): ditto.
11737
11738 2000-05-07  Ben Wing  <ben@xemacs.org>
11739
11740         * buffer.h:
11741         Kludge for defining Qmswindows_tstr.
11742
11743         * nt.c:
11744         * nt.c (open_input_file):
11745         * nt.c (open_output_file):
11746         * nt.c (rva_to_section):
11747         * nt.c (mswindows_executable_type):
11748         Move all memory-mapped-file routines here (some were in unexnt.c,
11749         which is bad because they are used by process-nt.c, and unexnt
11750         won't be around when portable dumping).  Synched the above routines
11751         with FSF 20.6.
11752
11753         * nt.h:
11754         Removed ifdef'd out bogus code.
11755         Fixed some prototypes.
11756
11757         * nt.h (file_data):
11758         * nt.h (OFFSET_TO_RVA):
11759         * nt.h (RVA_TO_OFFSET):
11760         * nt.h (RVA_TO_PTR):
11761         Moved the memory-mapped-file structures, macros and prototypes
11762         here, to parallel nt.c.  ntheap.h should really be removed
11763         entirely, and it's a non-portable-dumper specific file.
11764
11765         * ntheap.h (round_to_next):
11766         Moved the memory-mapped-file structures, macros and prototypes
11767         to nt.h.
11768
11769         * ntproc.c (compare_env):
11770         Moved rva_to_section and mswindows_executable_type to nt.c.
11771         Moved compare_env to process-nt.c.
11772         ntproc.c will die, one day.
11773
11774         * ntproc.c (sys_spawnve):
11775         Account for win32_ -> mswindows_.
11776
11777         * process-nt.c:
11778         * process-nt.c (struct nt_process_data):
11779         * process-nt.c (ensure_console_window_exists):
11780         * process-nt.c (compare_env):
11781         * process-nt.c (nt_create_process):
11782         * process-nt.c (nt_kill_process_by_pid):
11783         * process-nt.c (syms_of_process_nt):
11784         * process-nt.c (vars_of_process_nt):
11785         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
11786         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
11787         changes).  Eliminate our old `nt-quote-process-args' mechanism.
11788         Synch up nt_create_process with FSF 20.6 sys_spawnve.
11789         Move compare_env here from ntproc.c.
11790
11791         * process.c (Fprocess_send_region):
11792         Takes an optional fourth argument, BUFFER, which should fix some
11793         problems with call-process.
11794
11795         * syscommctrl.h:
11796         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
11797
11798         * syswindows.h:
11799         Move ICC_BAR_CLASSES to syscommctrl.h.
11800         Add preliminary macros for MSWindows/Mule.  More to come.
11801
11802         * unexnt.c:
11803         * unexnt.c (unexec):
11804         open_output_file moved to nt.c.
11805
11806
11807 2000-05-05  Andy Piper  <andy@xemacs.org>
11808
11809         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
11810         instance from the frame cache also since GC may catch up too late
11811         to make frame deletion sane.
11812
11813 2000-05-04  Andy Piper  <andy@xemacs.org>
11814
11815         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
11816         (x_finalize_image_instance): ungcpro on deletion.
11817
11818         * glyphs.c (image_instantiator_format_create): give pointers a
11819         query geometry method so that the geometry is at least set.
11820
11821         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
11822         initialize layouts if using widgets.
11823
11824 2000-05-03  Andy Piper  <andy@xemacs.org>
11825
11826         * nt.c: remove bogus reference to sysmmsystem.h
11827
11828         * gui-x.c (popup_selection_callback): fix no selection abort.
11829
11830 2000-05-02  Andy Piper  <andy@xemacs.org>
11831
11832         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
11833         (mswindows_widget_instantiate): ditto.
11834
11835         * glyphs-widget.c (initialize_widget_image_instance): initialize
11836         children correctly.
11837         (widget_instantiate): cope with children and items in the same
11838         instance.
11839
11840         * glyphs.c (mark_image_instance): cope with children as a first
11841         class member.
11842         (image_instance_equal): ditto.
11843         (image_instance_hash): ditto.
11844         (image_instance_changed): ditto.
11845
11846 2000-04-30  Andy Piper  <andy@xemacs.org>
11847
11848         * glyphs.c (subwindow_query_geometry): new function. Return some
11849         defaults.
11850         (subwindow_instantiate): don't assign dimensions if none have been
11851         given.
11852         (image_instantiator_format_create): add subwindow_query_geometry.
11853         (print_image_instance): cope with layouts as widgets.
11854
11855 2000-04-29  Andy Piper  <andy@xemacs.org>
11856
11857         * frame.c (delete_frame_internal): call
11858         free_frame_subwindow_instance_cache so that all subwindows are
11859         finalized before their parent.
11860         (mark_frame): remove subwindow_cachels.
11861         (Fmake_frame): remove subwindow_cachel manipulation.
11862         (allocate_frame_core): subwindow_instance_cache is a weak list.
11863         (delete_frame_internal): set subwindow_instance_cache to nil.
11864
11865         * glyphs-msw.c (mswindows_finalize_image_instance): make double
11866         finalization safe.
11867         (mswindows_finalize_image_instance): use the device
11868         not the domain as the domain may have died already.
11869
11870         * glyphs-x.c (x_finalize_image_instance): ditto.
11871         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
11872         HEIGHT.
11873
11874         * redisplay-output.c (redisplay_unmap_subwindows): update for
11875         subwindow instance cache as a weak list.
11876         (redisplay_unmap_subwindows_maybe): ditto.
11877         (redisplay_unmap_subwindows_except_us): ditto.
11878
11879         * glyphs.c (unmap_subwindow): error checking will check the domain
11880         so don't deal with it here. Don't use cachels anymore.
11881         (map_subwindow): ditto.
11882         (update_subwindow_cachel_data): remove old accessor names.
11883         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
11884         (Fresize_subwindow): don't update cachel.
11885         (mark_subwindow_cachels):
11886         (update_subwindow_cachel_data):
11887         (add_subwindow_cachel):
11888         (get_subwindow_cachel_index):
11889         (update_subwindow_cachel):
11890         (reset_subwindow_cachels):
11891         (mark_subwindow_cachels_as_not_updated): deleted.
11892         (cache_subwindow_instance_in_frame_maybe): new function. Add a
11893         subwindow instance to the frame cache.
11894         (find_matching_subwindow): update for subwindow instance cache as
11895         a weak list.
11896         (update_widget_instances): ditto.
11897         (image_instance_type_to_mask):inlined.
11898         (free_frame_subwindow_instance_cache): new function. finalize all
11899         subwindows that are instantiated.
11900
11901         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
11902         of cachel information.
11903         (IMAGE_INSTANCE_DISPLAY_X):
11904         (IMAGE_INSTANCE_DISPLAY_Y):
11905         (IMAGE_INSTANCE_DISPLAY_WIDTH):
11906         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
11907         (XIMAGE_INSTANCE_DISPLAY_X):
11908         (XIMAGE_INSTANCE_DISPLAY_Y):
11909         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
11910         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
11911         remove subwindow_cachel structure and function references.
11912         (image_instance_type_to_mask): inline from glyphs.c
11913
11914         * redisplay.c (redisplay_frame): remove subwindow_cachel
11915         references.
11916
11917         * frame.h (struct frame): remove subwindow_cachels.
11918         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
11919
11920         * frameslots.h: add subwindow_instance_cache.
11921
11922         * window.c (replace_window): check subwindow cache of replacement.
11923         (window_unmap_subwindows_cache_mapper):
11924         (window_unmap_subwindows): new functions. Unmap all subwindows
11925         cached on this window.
11926         (mark_window_as_deleted): unmap all subwindows.
11927
11928 2000-04-27  Andy Piper  <andy@xemacs.org>
11929
11930         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
11931
11932         * glyphs-widget.c (widget_layout): return something.
11933         (layout_layout): return something. Fail if not initialized.
11934         (layout_query_geometry): ditto.
11935         (image_instantiator_native_layout): new function. Initialized the
11936         native layout type.
11937         (widget_instantiate): don't do layout stuff here.
11938
11939         * glyphs.c (instantiate_image_instantiator): reorded calling or
11940         instantiate and post_instantiate with layout in between.
11941         (image_instance_layout): be more selective about deciding whether
11942         the layout has been done or not.
11943
11944         * glyphs.h (struct image_instantiator_methods): return a value
11945         from layout_method.
11946
11947 2000-04-26  Andy Piper  <andy@xemacs.org>
11948
11949         * glyphs.c (allocate_image_instance): make initial width and
11950         height unspecified. Set initialized to 0.
11951
11952         * syscommctrl.h new file. Encapsulates commctrl.h.
11953
11954         * syswindows.h new file. Encapsulates windows.h.
11955
11956         * ntplay.c: use new syswindows.h and syscommctrl.h header.
11957         * nt.c: ditto.
11958         * console-msw.h: ditto.
11959
11960         * redisplay-tty.c (tty_output_display_block): remove layout references.
11961
11962         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
11963         window handle rather than just the frame.
11964
11965         * glyphs.c (mark_image_instance): remove layout references.
11966         (print_image_instance): ditto.
11967         (image_instance_equal): ditto.
11968         (image_instance_hash): ditto.
11969         (decode_image_instance_type): ditto.
11970         (encode_image_instance_type): ditto.
11971         (image_instantiate): ditto.
11972         (allocate_glyph): ditto.
11973         (Fimage_instance_height): ditto.
11974         (Fimage_instance_width): ditto.
11975         (update_subwindow): ditto.
11976
11977         * redisplay-x.c (x_output_display_block): recode for layouts as
11978         widgets.
11979
11980         * redisplay-output.c (redisplay_output_layout): recode for layouts
11981         as widgets.
11982         (compare_runes): remove layout references.
11983
11984         * redisplay-msw.c (mswindows_output_display_block): recode for
11985         layouts as widgets.
11986
11987         * glyphs-widget.c (image_instantiator_layout): remove
11988         layout_possible_dest_types.
11989         (layout_possible_dest_types): deleted.
11990
11991         * glyphs.h (image_instance_type): remove layout references.
11992         (struct Lisp_Image_Instance): ditto. Add initialized flag.
11993         (IMAGE_INSTANCE_INITIALIZED): new accessor.
11994         (XIMAGE_INSTANCE_INITIALIZED): ditto.
11995
11996 2000-04-25  Andy Piper  <andy@xemacs.org>
11997
11998         * glyphs-widget.c (image_instantiator_buttons):
11999         (image_instantiator_edit_fields):
12000         (image_instantiator_combo_box):
12001         (image_instantiator_scrollbar):
12002         (image_instantiator_progress_guage):
12003         (image_instantiator_tree_view):
12004         (image_instantiator_tab_control):
12005         (image_instantiator_labels):
12006         (image_instantiator_layout): call default post_instantiate method.
12007         (widget_post_instantiate): new function. Simply lays out the
12008         widgets.
12009
12010         * glyphs.h (struct image_instantiator_methods): add
12011         post_instantiate method.
12012
12013         * glyphs.c (instantiate_image_instantiator): add post_instantiate
12014         method calls.
12015
12016 2000-04-23  Andy Piper  <andy@xemacs.org>
12017
12018         * glyphs.h (struct image_instantiator_methods): add
12019         decode_domain_method.
12020         (struct Lisp_Image_Instance): remove subwindow frame - it can be
12021         derived from the domain.
12022         (IMAGE_INSTANCE_FRAME): new accessor.
12023         (XIMAGE_INSTANCE_FRAME): ditto.
12024
12025         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
12026         instead of _SUBWINDOW_FRAME.
12027         (finalize_image_instance): ditto.
12028         (Fimage_instance_foreground): ditto.
12029         (Fimage_instance_background): ditto.
12030         (image_instantiate): ditto.
12031         (update_subwindow_cachel): ditto.
12032         (update_subwindow): ditto.
12033         (unmap_subwindow): ditto.
12034         (map_subwindow): ditto
12035         (subwindow_instantiate): ditto.
12036         * glyphs-msw.c (mswindows_update_widget): ditto.
12037         (mswindows_progress_gauge_instantiate): ditto.
12038         (mswindows_tab_control_update): ditto.
12039         * glyphs-x.c (x_update_widget): ditto.
12040         (x_widget_instantiate): ditto.
12041         (x_tab_control_instantiate): ditto.
12042         (x_tab_control_update): ditto.
12043         * event-msw.c (mswindows_wnd_proc): ditto
12044
12045         * glyphs-widget.c (image_instantiator_layout): use
12046         subwindow_decode_domain.
12047         (image_instantiator_buttons): ditto.
12048         (image_instantiator_edit_fields): ditto.
12049         (image_instantiator_combo_box): ditto.
12050         (image_instantiator_scrollbar): ditto.
12051         (image_instantiator_progress_guage): ditto.
12052         (image_instantiator_tree_view): ditto.
12053         (image_instantiator_tab_control): ditto.
12054         (image_instantiator_labels): ditto.
12055         (image_instantiator_layout): ditto.
12056
12057         * glyphs.c: add instance error checking to many functions.
12058         (instantiate_image_instantiator): decode device from cache_domain.
12059         (image_instantiate): partially rewrite by using
12060         decode_image_instantiator_domain to determine what domain the
12061         instance needs to be cached in.
12062         (decode_image_instantiator_domain): new function. Determine what
12063         domain the image needs to be cached in.
12064         (check_window_subwindow_cache): new error checking function.
12065         (check_instance_cache_mapper): ditto.
12066         (check_image_instance_structure): ditto.
12067         (subwindow_decode_domain): new function. Encodes a window as a
12068         subwindow's cache domain.
12069         (image_instantiator_format_create): use it for text and
12070         subwindows.
12071
12072 2000-04-21  Andy Piper  <andy@xemacs.org>
12073
12074         * glyphs.c (image_instance_device): new function.
12075         (image_instance_frame): new function.
12076         (image_instance_window): new function.
12077         (image_instance_live_p): new function.
12078
12079         * window.c (mark_window_as_deleted): reset the subwindow_instance_
12080         cache to nil.
12081
12082         * glyphs.h (struct Lisp_Image_Instance): device->domain.
12083         (IMAGE_INSTANCE_DOMAIN): new accessor.
12084         (XIMAGE_INSTANCE_DOMAIN): ditto.
12085
12086         * glyphs-x.c (x_finalize_image_instance): device->domain.
12087
12088         * glyphs-msw.c (init_image_instance_geometry): device->domain.
12089         (mswindows_finalize_image_instance): ditto.
12090
12091         * glyphs-eimage.c (jpeg_instantiate): device->domain.
12092         (gif_instantiate): ditto.
12093         (png_instantiate): ditto.
12094         (tiff_instantiate): ditto.
12095
12096         * glyphs.c (instantiate_image_instantiator): use domain rather
12097         than device.
12098         (mark_image_instance): device -> domain.
12099         (print_image_instance): ditto.
12100         (finalize_image_instance): ditto.
12101         (image_instance_equal): ditto.
12102         (allocate_image_instance): ditto.
12103         (Fcolorize_image_instance): ditto.
12104         (query_string_geometry): ditto.
12105         (image_instantiate): ditto
12106         (query_string_font): ditto.
12107         (image_instantiate): ditto.
12108         (update_subwindow): ditto.
12109         (unmap_subwindow): ditto.
12110         (map_subwindow): ditto.
12111         (subwindow_instantiate): ditto.
12112
12113         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
12114         (DOMAIN_FRAME): ditto.
12115         (DOMAIN_WINDOW): ditto.
12116         (DOMAIN_LIVE_P): ditto.
12117         (XDOMAIN_DEVICE): ditto.
12118         (XDOMAIN_FRAME): ditto.
12119         (XDOMAIN_WINDOW): ditto.
12120
12121         * specifier.c (Fvalid_specifier_domain_p): add image instances as
12122         a valid specifier domain.
12123
12124 2000-04-19  Andy Piper  <andy@xemacs.org>
12125
12126         * glyphs-widget.c (syms_of_glyphs_widget): remove
12127         widget-callback-current-channel.
12128         (vars_of_glyphs_widget): ditto.
12129         * glyphs.h: ditto
12130
12131         * gui.c (get_gui_callback): revert to previous behaviour.
12132
12133 2000-04-18  Andy Piper  <andy@xemacs.org>
12134
12135         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
12136         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
12137         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
12138
12139         * glyphs.c (image_instance_equal): add margin_width.
12140         (image_instance_hash): ditto.
12141
12142         * glyphs-widget.c (widget_instantiate): deal with margin-width.
12143         (layout_query_geometry): ditto.
12144         (layout_layout): ditto.
12145         (syms_of_glyphs_widget): add margin-width.
12146         (image_instantiator_layout): allow margin-width.
12147
12148         * glyphs.c (update_widget_instances): make a normal function.
12149         (syms_of_glyphs): remove Qupdate_widget_instances.
12150         * glyphs.h: ditto.
12151
12152         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
12153         so that we don't corrupt ideas about the last event or
12154         command. Remove widget-callback-current-channel fiddling.
12155         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
12156
12157 2000-05-01  Martin Buchholz <martin@xemacs.org>
12158
12159         * XEmacs 21.2.33 is released.
12160
12161 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
12162
12163         * make-src-depend: Allow dots in header file name.
12164
12165 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
12166
12167         * mule-charset.h (struct charset_lookup): Add
12168         next_allocated_1_byte_leading_byte and
12169         next_allocated_2_byte_leading_byte.
12170         * mule-charset.c: Move above two variables so that those values
12171         will be dumped.
12172
12173 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
12174
12175         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
12176         when string length is zero.
12177         (find_charsets_in_emchar_string): Ditto.
12178
12179 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
12180
12181         * lisp.h: extern Qdialog and Qmenubar.
12182
12183         * gui-x.c: added events.h.
12184                 also fixed typo which made the file uncompilable.
12185
12186         * general.c: Added Qmenubar and Qdialog
12187
12188 2000-04-28  Ben Wing  <ben@xemacs.org>
12189
12190         * frame-msw.c (mswindows_init_frame_1):
12191         * frame-msw.c (mswindows_mark_frame):
12192         * event-msw.c (mswindows_enqueue_dispatch_event):
12193         * console-msw.h:
12194         * console-msw.h (struct mswindows_frame):
12195         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
12196         there are now three hash tables for callbacks.
12197         mswindows_enqueue_dispatch_event is no longer static.
12198
12199         * dialog-x.c (maybe_run_dbox_text_callback):
12200         * dialog-x.c (dbox_descriptor_to_widget_value):
12201         switch to new cons3 form for callbacks.
12202
12203         * glyphs-msw.c (mswindows_register_gui_item):
12204         * glyphs-msw.c (mswindows_widget_instantiate):
12205         * glyphs-msw.c (add_tree_item):
12206         * glyphs-msw.c (add_tab_item):
12207         new image instance parameter, so it can be passed to callback-ex.
12208         respect :callback-ex as well as :callback.
12209
12210         * glyphs-widget.c (VALID_GUI_KEYWORDS):
12211         add :callback-ex.
12212
12213         * glyphs.c (print_image_instance):
12214         prettify, e.g. now prints widget type.
12215
12216         * gui-x.h:
12217         certain funs have new image instance parameter.
12218
12219         * gui.c:
12220         * gui.c (get_gui_callback):
12221         * gui.c (gui_item_add_keyval_pair):
12222         * gui.c (gui_item_init):
12223         * gui.c (gui_add_item_keywords_to_plist):
12224         * gui.c (mark_gui_item):
12225         * gui.c (gui_item_hash):
12226         * gui.c (gui_item_equal):
12227         * gui.c (copy_gui_item):
12228         * gui.c (syms_of_gui):
12229         recognize callback-ex in a number of places.
12230         also, fix the annoying "can't get out of yes-no dialog" bug.
12231
12232         * gui.h:
12233         * gui.h (struct Lisp_Gui_Item):
12234         recognize callback-ex in a number of places.
12235
12236         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
12237         new parameter in button_item_to_widget_value.
12238
12239         * glyphs-x.c (x_update_widget):
12240         * glyphs-x.c (x_button_instantiate):
12241         * glyphs-x.c (x_button_update):
12242         * glyphs-x.c (x_progress_gauge_instantiate):
12243         * glyphs-x.c (x_edit_field_instantiate):
12244         * glyphs-x.c (x_combo_box_instantiate):
12245         * glyphs-x.c (x_tab_control_instantiate):
12246         * glyphs-x.c (x_label_instantiate):
12247         new image instance parameter in various places.
12248
12249         * event-Xt.c:
12250         * event-Xt.c (enqueue_Xt_dispatch_event):
12251         this fun gets exported.
12252
12253         * gui-msw.c:
12254         * gui-msw.c (mswindows_handle_gui_wm_command):
12255         handle both :callback and :callback-ex, and generate our own
12256         event because it's one of the callback-ex arguments.
12257
12258         * gui-x.c:
12259         * gui-x.c (popup_selection_callback):
12260         handle both :callback and :callback-ex, and generate our own
12261         event because it's one of the callback-ex arguments.
12262         * gui-x.c (button_item_to_widget_value):
12263         * gui-x.c (gui_items_to_widget_values_1):
12264         * gui-x.c (gui_item_children_to_widget_values):
12265         * gui-x.c (gui_items_to_widget_values):
12266         new image instance parameter in various places.
12267
12268         * fns.c (Freplace_list):
12269         fix small typo in doc string.
12270
12271         * lisp.h:
12272         declare enqueue_Xt_dispatch_event.
12273
12274 2000-04-28  Ben Wing  <ben@xemacs.org>
12275
12276         * buffer.c:
12277         * buffer.c (Frecord_buffer):
12278         * buffer.c (syms_of_buffer):
12279         delete record-buffer-hook.
12280
12281         * fns.c:
12282         * fns.c (Freplace_list):
12283         * fns.c (syms_of_fns):
12284         new primitive replace-list.
12285
12286         * frameslots.h:
12287         slot for old buffer-alist.
12288
12289         * lisp.h:
12290         exfun replace-list.
12291
12292         * redisplay.c:
12293         * redisplay.c (redisplay_frame):
12294         * redisplay.c (syms_of_redisplay):
12295         * redisplay.c (vars_of_redisplay):
12296         new hook buffer-list-changed-hook.
12297         call it.
12298
12299 2000-04-27  Ben Wing  <ben@xemacs.org>
12300
12301         * extents.h: extern in_modeline_generation.
12302
12303         * redisplay.c (generate_formatted_string_db): set
12304         in_modeline_generation.
12305
12306         * extents.c (extent_changed_for_redisplay): don't mark redisplay
12307         flags if in modeline generation.  otherwise frame-modified-tick
12308         is ticked far too often.
12309         Declare in_modeline_generation.
12310
12311 2000-04-26  Ben Wing  <ben@xemacs.org>
12312
12313         * emacs.c (vars_of_emacs): document quick-build "error-checking"
12314         option.
12315         (vars_of_emacs): add quick-build as an error-checking option.
12316         A bit kludgy, but there doesn't seem much point in creating
12317         a real var for this.
12318
12319         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
12320
12321 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
12322
12323         * redisplay.h (struct display_line): Add a new variable,
12324         line_continuation.
12325
12326         * redisplay.c (create_text_block): Set dl->line_continuation if
12327         the line continues.
12328         (create_string_text_block): Ditto.
12329         (regenerate_window_incrementally): Use line_continuation instead
12330         of searching continuation glyph.
12331         (add_margin_runes): Call add_glyph_rune.
12332         (add_glyph_rune): Handle margin glyph.
12333
12334 2000-04-20  Martin Buchholz  <martin@xemacs.org>
12335
12336         * filelock.c (fill_in_lock_file_name):
12337         ANSIfy.
12338         Check for IS_ANY_SEP instead of '/'.
12339         (lock_file_1):
12340         Avoid generating gratuitous garbage.  Call user_login_name() directly.
12341         Never check errno without first seeing that system call failed.
12342         (unlock_file): Add GCPRO.
12343         (Flock_buffer): Fix docstring.
12344         (Ffile_locked_p): Fix docstring.  Add GCPRO.
12345
12346 2000-04-19  Martin Buchholz  <martin@xemacs.org>
12347
12348         * sysdep.c (get_pty_max_bytes):
12349         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
12350         strings longer than 252 bytes.
12351
12352         * md5.c: Unconditionally include ANSI header <limits.h>
12353
12354         * glyphs-x.c (convert_EImage_to_XImage):
12355         * lisp-union.h (union Lisp_Object):
12356         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
12357
12358 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
12359
12360         * filelock.c (current_lock_owner): Remove unused variable o, p.
12361
12362 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
12363
12364         * callint.c: Remove multiply defined symbol Qlet
12365         (syms_of_callint): ditto.
12366
12367 2000-04-14  Andy Piper  <andy@xemacs.org>
12368
12369         * general.c (syms_of_general): add last-command, this-command, let
12370         and funcall.
12371
12372         * lisp.h: declare various symbols.
12373
12374         * glyphs.h: declare Qwidget_callback_current_channel;
12375
12376         * glyphs-widget.c (syms_of_glyphs_widget): add
12377         Qgui_callback_current_channel.
12378         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
12379
12380         * gui-msw.c (mswindows_handle_gui_wm_command): bind
12381         widget-callback-current-channel when invoking the interactive
12382         arg. Also bind last-command and next-command when invoking the
12383         widget updates.
12384         * gui-x.c (popup_selection_callback): ditto.
12385
12386         * gui.c (get_gui_callback): massage args so that we are always
12387         calling eval. This allows us to add our own variable bindings
12388         outside.
12389
12390         * glyphs-x.c (x_button_instantiate): use
12391         gui_items_to_widget_values since this is GC safe.
12392         (x_progress_gauge_instantiate): ditto.
12393         (x_edit_field_instantiate): ditto.
12394         (x_label_instantiate): ditto.
12395
12396         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
12397         (emacs_Xt_event_widget_focus_out): new function
12398         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
12399         focus.
12400         (emacs_Xt_event_add_widget_actions): new function. add focus
12401         functions as actions.
12402         (init_event_Xt_late): use it.
12403
12404 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
12405
12406         * event-stream.c (Fdispatch_event): Doc fix.
12407
12408 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
12409
12410         * postgresql.c: Remove all references to PQsetenv*.
12411
12412         * postgresql.h: Remove references to PGsetenvHandler object.
12413         * lrecord.h (lrecord_type): Ditto.
12414
12415 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12416
12417         * glyphs-msw.h (struct mswindows_image_instance_data): Added
12418         real_heigh and real_width members, and accessor macros for these.
12419
12420         * glyphs-msw.c (init_image_instance_geometry): New function.
12421         (init_image_instance_from_dibitmap): Use it.
12422         (mswindows_resource_instantiate): Use it.
12423         (init_image_instance_from_xbm_inline): Use it.
12424         (mswindows_initialize_image_instance_mask): Use real bitmap
12425         geometry.
12426         (mswindows_create_resized_bitmap): Ditto.
12427         (mswindows_create_resized_mask): Ditto.
12428
12429         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
12430         and bitmap to their surface size.
12431
12432 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
12433
12434         * process-unix.c (unix_send_process): Guard against process MIA
12435         after Faccept_process_output.
12436
12437 2000-04-11  Ben Wing  <ben@xemacs.org>
12438
12439         * eval.c (unbind_to_hairy): fix brokenness introduced by
12440         nanosecond speed improvements.
12441
12442 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
12443
12444         * sunplay.c (init_device): To play sounds correctly, the device
12445         apparently needs to be initialized at least once by XEmacs.  Make
12446         it so.
12447
12448 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
12449
12450         * redisplay.c (add_margin_runes): Add text image glyph
12451           handling.
12452
12453 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
12454
12455         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
12456         gcc is newer than 2.5.
12457
12458 2000-04-06  Colin Rafferty  <colin@xemacs.org>
12459
12460         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
12461
12462         * fns.c (size_bit_vector):
12463         * alloc.c (size_vector):
12464         (make_vector_internal):
12465         (make_bit_vector_internal):
12466         (sweep_bit_vectors_1):
12467         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
12468
12469 2000-04-06  Andy Piper  <andy@xemacs.org>
12470
12471         * gmalloc.c (malloc): undo previous change.
12472         (malloc): ditto.
12473         (free): ditto.
12474         (realloc): ditto.
12475
12476 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
12477
12478         * line-number.c (buffer_line_number): Revert to former version.
12479
12480 2000-04-06  Andy Piper  <andy@xemacs.org>
12481
12482         * gmalloc.c (malloc): add error checking.
12483         (malloc): ditto.
12484         (free): ditto.
12485         (realloc): ditto.
12486
12487         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
12488         button_item_to_widget_value arg.
12489
12490         * glyphs-x.c (x_button_instantiate): add extra
12491         button_item_to_widget_value arg.
12492         (x_progress_gauge_instantiate): ditto.
12493         (x_edit_field_instantiate): ditto.
12494         (x_label_instantiate): ditto.
12495
12496         * gui-x.c (gui_items_to_widget_values_1): add extra
12497         button_item_to_widget_value arg.
12498         (button_item_to_widget_value): add extra menu_item_p arg.
12499
12500         * gui-x.h: change signature of button_item_to_widget_value.
12501
12502         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
12503         button_item_to_widget_value arg.
12504
12505 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
12506
12507         * buffer.h (struct buffer): auto_save_modified should be long.
12508
12509 2000-04-05  Andy Piper  <andy@xemacs.org>
12510
12511         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
12512         type.
12513         (button_query_geometry): give a little more room so that athena
12514         buttons fit.
12515
12516 2000-04-05  Andy Piper  <andy@xemacs.org>
12517
12518         * faces.c (complex_vars_of_faces): The widget face should inherit
12519         the font of the gui-element face.
12520
12521 2000-04-04  Andy Piper  <andy@xemacs.org>
12522
12523         * glyphs-x.c (x_button_update): new function. unconditionally
12524         update a button's state when the instance is dirty.
12525         (image_instantiator_format_create_glyphs_x): add x_button_update.
12526         (x_widget_instantiate): remove old resize cruft.
12527
12528 2000-04-02  Andy Piper  <andy@xemacs.org>
12529
12530         * frame.c (change_frame_size_1): The introduction of gutters means
12531         that we need to allow 0 as a potential frame dimension.
12532
12533 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
12534
12535         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
12536         image glyph if allow_cursor.
12537         (add_hscroll_rune): Don't allow cursor to border glyph.
12538         (create_text_block): Ditto.
12539
12540         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
12541         text not in buffer.
12542         (redisplay_output_layout): Call ensure_face_cachel_complete for
12543         text image glyph.
12544
12545
12546 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
12547
12548         * redisplay.c (add_glyph_rune): Adding text image as text runes.
12549
12550         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
12551         not in buffer
12552
12553         * redisplay-tty.c (tty_output_display_block): Delete the routine
12554         for text image glyph
12555         * redisplay-x.c (x_output_display_block): ditto
12556         * redisplay-msw.c (mswindows_output_display_block): ditto
12557
12558 2000-02-02  Mike Alexander  <mta@arbortext.com>
12559
12560         Note: Some of these were committed by accident as part of other
12561         patches.
12562
12563         * regex.c (regex_compile): Avoid compiler warnings.
12564
12565         * ntproc.c (sys_spawnve): Avoid compiler warnings.
12566
12567         * nt.h: Declare term_ntproc correctly.
12568
12569         * nt.c: Remove incorrect declaration of get_home_directory which
12570         is declared correctly in lisp.h.
12571
12572         * keymap.c (get_keyelt): Avoid compiler warnings.
12573         (raw_lookup_key_mapper): Avoid compiler warnings.
12574
12575         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
12576
12577         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
12578
12579         * filemode.c (mode_string): Avoid compiler warnings.
12580
12581         * file-coding.c (Fcoding_system_aliasee): Add return statement to
12582         avoid warning.
12583
12584         * events-mod.h: Undef some things that winuser.h defines differently.
12585
12586         * data.c (Faset): Avoid compiler warnings.
12587
12588         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
12589
12590 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
12591
12592         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
12593         Fall through to simple beep on error.
12594         Replace "extern" by real header file.
12595
12596         * linuxplay.c: Use nativesound.h
12597         (play_sound_data): Return error code. Be less verbose on error.
12598
12599         * sunplay.c: Use nativesound.h
12600         (play_sound_data): Return error code. Be less verbose on error.
12601
12602         * ntplay.c: Use nativesound.h
12603         (play_sound_data): Return fake error code
12604
12605         * sgiplay.c: Use nativesound.h
12606         (play_sound_data): Return error code
12607
12608         * hpplay.c: Use nativesound.h, partially implement
12609         new error code. Break compilation until finished.
12610         (play_sound_data): error code.
12611
12612         * nativesound.h (play_sound_file):
12613           (play_sound_data): Prototype in new header.
12614
12615 2000-03-31  Andy Piper  <andy@xemacs.org>
12616
12617         * glyphs-widget.c: (button_query_geometry): new function. Adjust
12618         for toggle and radio buttons.
12619         (image_instantiator_buttons): use it.
12620
12621 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
12622
12623         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
12624         (x_update_horizontal_scrollbar_callback): Return if no mirror was
12625         found. Scrollbar event probably belonged to some old config.
12626
12627 2000-03-31  Andy Piper  <andy@xemacs.org>
12628
12629         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
12630         than 1.
12631         (initialize_widget_image_instance): default layout to
12632         LAYOUT_HORIZONTAL rather than 0.
12633         (widget_instantiate): reverse the item list at the end rather than
12634         every iteration.
12635         (layout_layout): re-code for the border text at the front of the
12636         item list rather than at the end.
12637         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
12638         provided by the user.
12639         (widget_query_geometry): comment.
12640
12641 2000-03-30  Andy Piper  <andy@xemacs.org>
12642
12643         * glyphs-widget.c (image_instantiator_layout): allow standard
12644         widget keywords in layouts.
12645
12646         * gutter.c (output_gutter): cope with nil gutter contents.
12647
12648         * frame.c (Fset_frame_properties): add gutter docs.
12649
12650 2000-03-29  Andy Piper  <andy@xemacs.org>
12651
12652         * toolbar-msw.c (TBSTYLE_FLAT): add.
12653         (mswindows_output_toolbar): minor fiddling.
12654
12655 2000-03-29  Andy Piper  <andy@xemacs.org>
12656
12657         * gutter.c (output_gutter): force gutter size recalculation if
12658         what we are trying to display won't fit.
12659         (update_gutter_geometry): new function. A per-gutter version of
12660         update_frame_gutter_geometry.
12661         (update_frame_gutter_geometry): use it.
12662         (redraw_exposed_gutter): add extra debugging output.
12663
12664 2000-03-28  Mike Alexander  <mta@arbortext.com>
12665
12666         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
12667         (pdump_file_unmap): Implement it on Windows
12668         (pdump_file_get): Save alocated handles for pdump_file_unmap
12669
12670 2000-03-28  Andy Piper  <andy@xemacs.org>
12671
12672         * gui.c (get_gui_callback): treat Quit specially.
12673
12674 2000-03-27  Andy Piper  <andy@xemacs.org>
12675
12676         * glyphs.c (image_instantiate): be careful to check in the same
12677         way we assigned.
12678
12679 2000-03-27  Didier Verna  <didier@xemacs.org>
12680
12681         * config.h.in: define the proper SMART_INCLUDE macro.
12682         handle renaming of `foo_h_path' to `foo_h_file'.
12683
12684         * database.c: ditto.
12685
12686         * emacs.c: ditto.
12687
12688         * linuxplay.c: ditto.
12689
12690         * terminfo.c: ditto.
12691
12692         * tooltalk.h: ditto.
12693
12694 2000-03-27  Andy Piper  <andy@xemacs.org>
12695
12696         * glyphs-msw.c (mswindows_update_widget): make sure the widget
12697         gets updated whenever the face might have changed.
12698
12699 2000-03-26  Mike Alexander  <mta@arbortext.com>
12700
12701         * dumper.c (pdump_resource_free): Fix the comment.
12702
12703 2000-03-21  Olivier Galibert  <galibert@pobox.com>
12704
12705         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
12706
12707 2000-03-22  Mike Alexander  <mta@arbortext.com>
12708
12709         * dumper.c: Include Windows headers on Windows
12710         (pdump_resource_free): Add a body to the function
12711         (pdump_load): exe_name -> exe_path and add some comments.
12712
12713 2000-03-25  Mike Alexander  <mta@arbortext.com>
12714
12715         * gui.c (copy_gui_item_tree): Return a value in all cases
12716
12717 2000-03-21  Didier Verna  <didier@xemacs.org>
12718
12719         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
12720         lwlib/config.h.in.
12721         (SMART_INCLUDE): new macro.
12722         (POSTGRES_INCLUDE): new macro to include postgresql headers from
12723         the proper location.
12724
12725         * postgresql.c: use it.
12726
12727         * inline.c: ditto.
12728
12729 2000-03-24  Andy Piper  <andy@xemacs.org>
12730
12731         * gutter.c (redraw_exposed_gutters): must be "in display" when we
12732         do this.
12733
12734 2000-03-24  Andy Piper  <andy@xemacs.org>
12735
12736         * redisplay-output.c (compare_runes): use image_instance_changed
12737         to detect changes. Do not depend on glyphs_changed, only depend on
12738         dirtiness.
12739          (redisplay_output_layout): add debug messages.
12740         (compare_runes): ditto.
12741
12742         * glyphs.h: declare new functions.
12743         (struct Lisp_Image_Instance): remove percent and associated
12744         accessors.
12745
12746         * gui.h: declare new copying functions.
12747
12748         * gui.c (copy_gui_item_tree): new function.
12749         (copy_gui_item): new function.
12750         (gui_item_id_hash): revert to standard hash.
12751         (gui_item_hash): ditto.
12752         (gui_item_hash_internal): deleted.
12753         (mark_gui_item): mark value.
12754         (gui_item_add_keyval_pair): add value.
12755         (gui_item_init): ditto.
12756         (gui_add_item_keywords_to_plist): ditto.
12757         (gui_item_equal): ditto.
12758         (syms_of_gui): add Q_value.
12759
12760         * glyphs-x.c (x_progress_gauge_update): use pending items and
12761         value for setting the state.
12762         (x_update_widget): don't set items from pending here.
12763
12764         * glyphs-widget.c (update_widget): update items here.
12765         (progress_gauge_set_property): use items for storing value. Put
12766         new value in pending items.
12767
12768         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
12769         items for new value. Convert percent -> value.
12770         (mswindows_tab_control_update): don't update items here.
12771
12772         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
12773         (update_subwindow): ditto.
12774         (image_instance_changed): new function. Compare hash values and
12775         past and present widget items.
12776         (image_instantiate): We more careful about where we instantiate
12777         things.
12778         (image_instantiate): add error checking.
12779
12780         * gutter.c (syms_of_gutter): use -hook.
12781
12782 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
12783
12784         * console-tty.c (Fset_console_tty_input_coding_system): Use
12785         Qkeyboard.
12786         (Fset_console_tty_output_coding_system): Use Qterminal.
12787         (tty_init_console): Use Qkeyboard and Qterminal.
12788
12789 2000-03-21  Ben Wing  <ben@xemacs.org>
12790
12791         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
12792         From Mike Alexander <mta@arbortext.com>.
12793
12794 2000-03-21  Ben Wing  <ben@xemacs.org>
12795
12796         * event-msw.c (mswindows_need_event): Horrible kludge to fix
12797         process brokenness.  Proper implementation to come.
12798         * callproc.c:
12799         Rename call-process-internal to old-call-process-internal.
12800         New impl. in process.el.
12801
12802 2000-03-21  Martin Buchholz  <martin@xemacs.org>
12803
12804         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
12805
12806 2000-03-20  Andy Piper  <andy@xemacs.org>
12807
12808         * glyphs.c (full_list_hash): make hashes of the same elements in
12809         different orders return different values.
12810
12811 2000-03-20  Martin Buchholz <martin@xemacs.org>
12812
12813         * XEmacs 21.2.32 is released.
12814
12815 2000-03-20  Martin Buchholz  <martin@xemacs.org>
12816
12817         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
12818         (DFC_MALLOC_USE_CONVERTED_DATA):
12819         Add aliasing-safe casts to allow use with char* or unsigned char*
12820         lvalues.
12821
12822         * eldap.c (Fldap_open):
12823         (Fldap_search_basic):
12824         (Fldap_add):
12825         (Fldap_modify):
12826         Make C++-compilable.
12827         Make sure GCPRO'ed variables are initialized.
12828         Use temp variables to avoid repeated calls to Flength.
12829
12830 2000-03-16  Martin Buchholz  <martin@xemacs.org>
12831
12832         * sysfile.h:
12833         Make sure PATH_MAX is always defined.
12834         Include limits.h for PATH_MAX.
12835         Deprecate use of MAXPATHLEN.
12836
12837 2000-03-10  Martin Buchholz  <martin@xemacs.org>
12838
12839         * emacs.c: Add reinit_vars_of_fileio.
12840         * symsinit.h: Add reinit_vars_of_fileio.
12841         * fileio.c (reinit_vars_of_fileio): New.
12842         * fileio.c (Fmake_temp_name):
12843         Initialize temp_name random number from microseconds to make
12844         collisions even less likely.  Initialize always at process startup
12845         time.  (make-temp-name) used to return the same file name twice in
12846         a row when PDUMP.
12847         Random stylistic fiddling.
12848         Comment fixes.
12849
12850 2000-03-20  Andy Piper  <andy@xemacs.org>
12851
12852         * glyphs.c (image_instantiate): allow text glyphs to be
12853         instantiated in the minibuffer window.
12854
12855 2000-03-19  Andy Piper  <andy@xemacs.org>
12856
12857         * glyphs.c (image_instance_hash): be careful about which items we
12858         hash on.
12859
12860         * glyphs-widget.c (tab_control_set_property): record into pending
12861         items rather than the actual items.
12862
12863         * glyphs-x.c (x_update_widget): use pending items to update with.
12864
12865         * glyphs-msw.c (mswindows_tab_control_update): use pending items
12866         to update with.
12867
12868         * glyphs.c (mark_image_instance): mark pending items.
12869
12870         * window.c (Fset_window_configuration): record the buffer.
12871         (Fselect_window): totally revert previous change which breaks many
12872         things.
12873
12874 2000-03-18  Andy Piper  <andy@xemacs.org>
12875
12876         * glyphs-msw.c (mswindows_tab_control_update): force selected
12877         item.
12878
12879         * glyphs.c (image_instantiate): don't allow the minibuffer as a
12880         window domain cache, otherwise we get inconsistencies at
12881         startup. There is something fishy at startup which can lead to the
12882         minibuffer being the selected window when the gutter content is
12883         instantiated.
12884
12885         * gui.c (parse_gui_item_tree_list): add probably unnecessary
12886         gcpros.
12887         (parse_gui_item_tree_children): ditto.
12888         (parse_gui_item_tree_item): ditto.
12889
12890         * glyphs.c (Fupdate_widget_instances): return something.
12891
12892 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
12893
12894         * window.c (Fselect_window): Undo 2000-03-17 change.
12895
12896 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
12897
12898         * postgresql.c (Fpq_setenv): Remove this turkey when linking
12899         against v7.0 libraries.  Insta-coredump city until the postgres
12900         folks fix it.
12901
12902 2000-03-17  Andy Piper  <andy@xemacs.org>
12903
12904         * faces.c (complex_vars_of_faces): don't give the widget face an
12905         inherited background pixmap.
12906
12907         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
12908         selected item.
12909
12910         * event-stream.c (Fdispatch_non_command_events): return something.
12911
12912         * gutter.c (output_gutter): use widget face.
12913         (clear_gutter): ditto.
12914
12915         * NEWS: adjust again.
12916
12917         * window.c (Fselect_window): make sure this runs to completion to
12918         avoid oddities with Fset_window_configuration.
12919         (Fcurrent_window_configuration): in general do not save the
12920         minibuffer as the selected window.
12921
12922         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
12923
12924 2000-03-16  Olivier Galibert  <galibert@pobox.com>
12925
12926         * emacs.c (Frunning_temacs_p): Revert previous patch.
12927         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
12928
12929 2000-03-16  Andy Piper  <andy@xemacs.org>
12930
12931         * glyphs-x.c (x_tab_control_update): if no widget values then
12932         return.
12933
12934         * NEWS: update for new features.
12935
12936         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
12937         synthetic event to the native system.
12938         (reinit_vars_of_event_Xt): set force_event_pending to
12939         emacs_Xt_force_event_pending.
12940
12941         * events.h (struct event_stream): add force_event_pending.
12942
12943         * specifier.c (recompute_one_cached_specifier_in_window): add
12944         comment.
12945
12946         * redisplay.c (redisplay_frame): don't call
12947         update_frame_subwindows. Reset subwindow cachels when
12948         subwindows_changed, removing this was an optimization too far.
12949
12950         * redisplay-output.c (compare_runes): reorganize so that we catch
12951         glyph changes when we want them. Set optimize_output when this
12952         would help layouts.
12953         (redisplay_output_layout): remove frame_really_changed, use
12954         optimize_output instead.
12955
12956         * redisplay-msw.c (mswindows_output_display_block): reset
12957         optimize_output after outputting a glyph.
12958         * redisplay-x.c (x_output_display_block): ditto.
12959         * redisplay-tty.c (tty_output_display_block): ditto.
12960
12961         * gutter.c: (specifier_vars_of_gutter): use new spec changed
12962         functions.
12963         (gutter_specs_changed): do specific gutter positions.
12964         (top_gutter_specs_changed): new function. Only update the
12965         specified gutter specs.
12966         (bottom_gutter_specs_changed): ditto.
12967         (left_gutter_specs_changed): ditto.
12968         (right_gutter_specs_changed): ditto.
12969
12970         * gui.c (gui_item_hash_internal): new function, does a real hash.
12971         (gui_item_id_hash): use it.
12972         (gui_item_hash): hash the eval'ed gui_item.
12973
12974         * gui-x.c (popup_selection_callback): send an eval event to call
12975         Fupdate_widget_instances.
12976
12977         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
12978         to call Fupdate_widget_instances.
12979
12980         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
12981         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
12982
12983         * glyphs.c: (update_frame_subwindows): deleted.
12984         (Fupdate_widget_instances): new function for updating the dirty
12985         state of widgets that might have changed.
12986         (syms_of_glyphs): add Qupdate_widget_instances.
12987         (full_list_hash): hash a list completely.
12988         (image_instance_hash): use it for items and properties.
12989
12990         * frame-msw.c (mswindows_size_frame_internal): remove unused
12991         variable.
12992
12993         * faces.h (struct face_cachel): fix comment.
12994
12995         * event-stream.c (Fdispatch_non_command_events): new
12996         function. Process non-command events, forcing an event cycle
12997         beforehand.
12998         (syms_of_event_stream): declare.
12999         (event_stream_force_event_pending): new function. Force an event
13000         on the native event queue so that an event cycle will occur next
13001         time we check.
13002
13003         * event-msw.c:
13004         (struct ntpipe_shove_stream):
13005         (mswindows_enqueue_dispatch_event):
13006         (mswindows_dequeue_dispatch_event):
13007         (mswindows_cancel_dispatch_event):
13008         (mswindows_pump_outstanding_events):
13009         (mswindows_drain_windows_queue):
13010         (mswindows_handle_paint):
13011         (mswindows_wnd_proc):
13012         (mswindows_key_to_emacs_keysym):
13013         (get_process_input_waitable):
13014         (emacs_mswindows_delete_stream_pair): re-indent file.
13015         (mswindows_need_event): do not process further fds if the windows
13016         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
13017         fixes the 100% cpu problem.
13018         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
13019
13020 2000-03-15  Olivier Galibert  <galibert@pobox.com>
13021
13022         * alloc.h: New.
13023         * dumper.h: New.
13024         * dumper.c: New.
13025
13026         * emacs.c: Moved dump file searching to dumper.c.
13027         (Frunning_temacs_p): Fixed.
13028
13029         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
13030         last_lrecord_type_index_assigned.
13031
13032 2000-02-20  Olivier Galibert  <galibert@pobox.com>
13033
13034         * symsinit.h: Added reinit parameter to init_console_stream
13035         declaration.
13036
13037         * lisp.h: Added file parameter to pdump_load declaration.
13038
13039         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
13040         support.  Added dump file searching.
13041
13042         * config.h.in: Added EMACS_PROGNAME.
13043
13044         * console-stream.c (init_console_stream): Fix reinitialisation
13045         when running from temacs.
13046
13047         * alloc.c (pdump): Add id support.
13048         (pdump_load): Add file parameter and signature/id support.
13049
13050         * Makefile.in.in: Add full pdump support.
13051
13052 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
13053
13054         * postgresql.c: Update documentation to reflect latest code
13055         status.
13056         (print_result): Show tuple counts in printed representation when
13057         appropriate.
13058         (Fpq_put_nbytes): MULE-ize.
13059         (Fpq_get_line_async): Ditto.
13060
13061 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
13062
13063         * postgresql.c (Fpq_lo_import): Fix return value.
13064         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
13065
13066 2000-03-13  Ben Wing  <ben@xemacs.org>
13067
13068         * alloc.c (pdump_load):
13069         Fix compile warning under mswin.
13070
13071 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
13072
13073         * postgresql.c: Mule-ization, bug fixes.
13074         Use PG_CODING to encapsulate coding system name changes.
13075         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
13076         (pg-coding-system): Create.
13077
13078         (Fpq_conn_defaults): Mule-ize.
13079         (Fpq_connectdb): Mule-ize & bug fix.
13080         (Fpq_connect_start): Mule-ize.
13081         (Fpq_set_client_encoding): Mule-ize.
13082         (Fpq_finish): Document `DEAD' connection status.
13083         (Fpq_clear): Ditto.
13084         (Fpq_pgconn): Mule-ize.
13085         (Fpq_exec): Mule-ize & bug fix.
13086         (Fpq_send_query): Ditto.
13087         (Fpq_get_result): Ditto.
13088         (Fpq_res_status): Mule-ize.
13089         (Fpq_result_error_message): Mule-ize.
13090         (Fpq_ntuples): fix comments.
13091         (Fpq_fname): Mule-ize.
13092         (Fpq_fnumber): Mule-ize.
13093         (Fpq_ftype): fix comments.
13094         (Fpq_get_value): Mule-ize.
13095         (Fpq_cmd_status): Ditto.
13096         (Fpq_cmd_tuples): Ditto.
13097         (Fpq_oid_value): Ditto.
13098         (Fpq_notifies): Ditto.
13099         (Fpq_lo_import): Ditto.
13100         (Fpq_lo_export): Ditto.
13101         (Fpq_get_line): Ditto.
13102         (Fpq_put_line): Mule-ize and bug fix.
13103         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
13104
13105 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
13106
13107         * postgresql.c (vars_of_postgresql): Mule-ize.
13108         (Fpq_conn_defaults): Ditto.
13109
13110 2000-03-12  Ben Wing  <ben@xemacs.org>
13111
13112         * alloc.c (Fmake_byte_code):
13113         * alloc.c (debug_string_purity_print):
13114         * alloc.c (pdump_backtrace):
13115         * alloc.c (pdump_get_indirect_count):
13116         * alloc.c (pdump_register_sub):
13117         * alloc.c (pdump_register_object):
13118         * alloc.c (pdump_register_struct):
13119         * alloc.c (pdump_dump_data):
13120         * alloc.c (pdump_reloc_one):
13121         Minor cleanups.
13122
13123         * console-msw.c:
13124         * console-msw.c (GetConsoleHwnd):
13125         * console-msw.c (msw_hide_console):
13126         * console-msw.c (msw_show_console):
13127         * console-msw.c (msw_ensure_console_buffered):
13128         * console-msw.c (msw_output_console_string):
13129         * console-msw.c (console_type_create_mswindows):
13130
13131         a) Added functions to manipulate the console window for use with
13132         shell support.
13133
13134         b) Added support for writing text to the console, which is now
13135         used under Windows when xemacs is not being run non-interactively,
13136         to write text that would otherwise be destined for stdout because
13137         under these circumstances, text written to stdout tends to
13138         disappear and not be seen.
13139
13140         * console-msw.h:
13141         * event-Xt.c:
13142         * event-Xt.c (x_event_to_emacs_event):
13143         * event-Xt.c (describe_event_window):
13144         * events-mod.h (XEMACS_MOD_CONTROL):
13145         * events.c:
13146         * events.c (Fmake_event):
13147         * events.c (character_to_event):
13148         * events.c (event_to_character):
13149         * events.c (format_event_object):
13150         * events.c (Fevent_modifiers):
13151         * events.h:
13152         * events.h (struct key_data):
13153         * events.h (struct button_data):
13154         * events.h (struct misc_user_data):
13155         * frame-x.c (Fcde_start_drag_internal):
13156         * frame-x.c (Foffix_start_drag_internal):
13157         * gpmevent.c (Freceive_gpm_event):
13158         * keymap.c:
13159         * keymap.c (bucky_sym_to_bucky_bit):
13160         * keymap.c (control_meta_superify):
13161         * keymap.c (make_key_description):
13162         * keymap.c (keymap_lookup_directly):
13163         * keymap.c (create_bucky_submap):
13164         * keymap.c (keymap_store):
13165         * keymap.c (define_key_check_and_coerce_keysym):
13166         * keymap.c (define_key_parser):
13167         * keymap.c (define_key_alternate_name):
13168         * keymap.c (Fdefine_key):
13169         * keymap.c (raw_lookup_key_mapper):
13170         * keymap.c (struct map_keymap_unsorted_closure):
13171         * keymap.c (map_keymap_unsorted_mapper):
13172         * keymap.c (map_keymap_sort_predicate):
13173         * keymap.c (map_keymap_sorted):
13174         * keymap.c (accessible_keymaps_mapper_1):
13175         * keymap.c (where_is_recursive_mapper):
13176         * keymap.c (describe_map_mapper):
13177         * keymap.c (describe_map_sort_predicate):
13178         * keymap.c (describe_map):
13179         * keymap.c (complex_vars_of_keymap):
13180         And a number of other files, the key modifier preprocessor
13181         constants that xemacs uses have names that conflict with constants
13182         defined under MS Windows for other purposes, so they were renamed
13183         to begin with the prefix XEMACS_. The variables that hold such
13184         modifiers were changed to consistently be of type int to fix
13185         various compile warnings.
13186
13187         * console.c (complex_vars_of_console):
13188         * device.c:
13189         * device-msw.c:
13190         * device-msw.c (mswindows_finish_init_device):
13191         * device-msw.c (msw_get_workspace_coords):
13192         * device-msw.c (mswindows_device_system_metrics):
13193         and various other files, added support for a new
13194         device property called offset-workspace which returns the position
13195         of the upper left corner of the workspace area and goes along with
13196         the existing size-workspace property.
13197
13198         * dialog-msw.c:
13199         * dialog-msw.c (push_bufbyte_string_as_unicode):
13200         * dialog-msw.c (mswindows_popup_dialog_box):
13201         Added support for XEmacs-style accelerator specifications in
13202         button text.  Note: I didn't add support for this under X Windows,
13203         and somebody needs to do this.
13204
13205         * dialog.c:
13206         * dialog.c (Fpopup_dialog_box):
13207         Documented the support for accelerators that was just mentioned.
13208
13209         editfns.c (get_home_directory): Changed behavior under Windows
13210         when HOME not defined; former behavior was irretrievably broken.
13211
13212         * emacs.c:
13213         * emacs.c (main_1):
13214         * emacs.c (main):
13215         * minibuf.c (clear_echo_area_internal):
13216         * minibuf.c (echo_area_append):
13217         * print.c:
13218         * print.c (std_handle_out_external):
13219         * print.c (std_handle_out_va):
13220         * print.c (fatal):
13221         * print.c (write_string_to_stdio_stream):
13222         * print.c (output_string):
13223         * print.c (debug_print):
13224         * print.c (debug_backtrace):
13225         * print.c (debug_short_backtrace):
13226         Cleaned up the code that prints text to stdout so that this can be
13227         changed to output into a console window instead under MS Windows,
13228         as described above.
13229
13230         * eval.c:
13231         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
13232         * eval.c (internal_catch):
13233         * eval.c (unwind_to_catch):
13234         * eval.c (throw_or_bomb_out):
13235         * eval.c (condition_case_1):
13236         * eval.c (signal_1):
13237         * eval.c (check_error_state_sanity):
13238         * eval.c (call_with_suspended_errors_1):
13239         * eval.c (call_with_suspended_errors):
13240         * eval.c (reinit_vars_of_eval):
13241         Added code to catch throw loops and check for a pesky bug that may
13242         be gone now.
13243
13244         * event-msw.c:
13245         * event-msw.c (key_needs_default_processing_p):
13246         * event-msw.c (mswindows_wnd_proc):
13247         * event-msw.c (mswindows_modifier_state):
13248         * event-msw.c (emacs_mswindows_quit_p):
13249         * event-msw.c (vars_of_event_mswindows):
13250         a) Added support for using the alt key to select menu items as is
13251         standard under MS Windows.  This is controlled using the variable
13252         menu-accelerator-enabled, just like under X Windows.  There is an
13253         option on the options menu to turn this support on.  I really
13254         think that it should be on by default under Windows, but I'm not
13255         going to make this change yet.
13256
13257         b)  Added support for dynamic display size changes under Windows.
13258
13259         * event-stream.c:
13260         * event-stream.c (maybe_echo_keys):
13261         * event-stream.c (Fnext_event):
13262         * event-stream.c (command_builder_find_leaf):
13263         * event-stream.c (lookup_command_event):
13264         * event-stream.c (execute_command_event):
13265         * event-stream.c (pre_command_hook):
13266         * event-stream.c (post_command_hook):
13267         * event-stream.c (syms_of_event_stream):
13268         * event-stream.c (vars_of_event_stream):
13269         * event-stream.c (complex_vars_of_event_stream):
13270         * events.h (struct command_builder):
13271
13272         a) Tried to clean up a little bit the horribly written x-specific
13273         accelerator code that crept into this file.  I moved this code
13274         into menubar-x.c where it belongs. I also needed to move the
13275         command builder structure into the file events.h because it is
13276         accessed directly by this accelerator code.  What I didn't do, but
13277         which should be done at some point, is to properly abstract this
13278         code using device methods instead of the kludgy way that it
13279         currently hooks into the event code.
13280
13281         b) Added the lisp variables this-command-properties and
13282         last-command- properties, which should be used to synchronize two
13283         adjacent commands in preference to playing games with the variable
13284         this-command, which is typically what happens.
13285
13286         c) Added some slightly nasty code to hook into the lisp support
13287         for shifted- motion-key selection.  This is actually necessary for
13288         somewhat complicated reasons, which are described in
13289         simple.el. (NB: I think the proper thing would be to have the code
13290         that calls the pre and post command hooks also call out to generic
13291         lisp functions in simple.el, where all built-in stuff could be
13292         added.  I will think about this more.)
13293
13294         * event-unixoid.c (poll_fds_for_input):
13295         * lread.c (readchar):
13296         * redisplay-tty.c (tty_clear_frame):
13297         * redisplay-x.c (x_get_gc):
13298         * signal.c (interrupt_signal):
13299         And a whole bunch of other files: fixed up places that printed
13300         directly to stderr to instead call the function stderr_out so that
13301         the changes I made under Windows work correctly.
13302
13303         * filemode.c (mode_string):
13304         Warning fixes.
13305
13306         * frame-msw.c:
13307         * frame-msw.c (mswindows_size_frame_internal):
13308         Fixed the computation of frame size and position to keep the frame
13309         within the workspace area, rather than within the physical
13310         dimensions of the screen, so that the frame doesn't overlap window
13311         manager decorations, such as the start menu and toolbar, typically
13312         at the bottom of the screen.
13313
13314         * frame.c (vars_of_frame):
13315         Changed the default frame title format under MS Windows to consist
13316         of buffername-XEmacs, which is standard under MS Windows.  I think
13317         it might be a good idea to change this everywhere because I think
13318         it is superior to the current frame title format, but this is the
13319         kind of change that is likely to cause some people to get annoyed,
13320         so I'm not making it.
13321
13322         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
13323
13324         * gui-msw.c (mswindows_handle_gui_wm_command):
13325         Fixed compile warnings.
13326
13327         * gui-x.c:
13328         * gui-x.c (strdup_and_add_accel):
13329         * gui-x.c (button_item_to_widget_value):
13330         * gui-x.h:
13331         Added code to automatically put an accelerator onto the beginning
13332         of menu items that don't have one as is now the standard, and is
13333         described more later.  Also fixed things so that the menu item
13334         name can be an evaluated expression, again a new standard.
13335
13336         * gui.c:
13337         * gui.c (gui_item_add_keyval_pair):
13338         * gui.c (make_gui_item_from_keywords_internal):
13339         * gui.c (gui_add_item_keywords_to_plist):
13340         * gui.c (gui_item_accelerator):
13341         * gui.c (gui_name_accelerator):
13342         * gui.c (gui_item_included_p):
13343         * gui.c (gui_item_display_flush_left):
13344         * gui.c (gui_item_display_flush_right):
13345         * gui.c (parse_gui_item_tree_item):
13346         * gui.c (parse_gui_item_tree_children):
13347         * gui.c (parse_gui_item_tree_list):
13348         Mule-ized.  Cleanup.  GCPRO addition.
13349
13350         * line-number.c (buffer_line_number):
13351         * lisp.h:
13352         * lisp.h (EMACS_INT_MAX):
13353         Added the manifest constant EMACS_INT_MIN corresponding to the
13354         existing constant EMACS_INT_MAX.  This is partially to fix compile
13355         warnings under Windows, and partly for cleanliness.
13356
13357         * menubar-msw.c:
13358         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
13359         * menubar-msw.c (msw_translate_menu_or_dialog_item):
13360         * menubar-msw.c (displayable_menu_item):
13361         * menubar-msw.c (populate_menu_add_item):
13362         * menubar-msw.c (populate_or_checksum_helper):
13363         * menubar-msw.c (populate_menu):
13364         * menubar-msw.c (update_frame_menubar_maybe):
13365         * menubar-msw.c (prune_menubar):
13366         * menubar-msw.c (msw_char_is_accelerator):
13367         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
13368         * menubar-msw.c (mswindows_handle_wm_command):
13369         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
13370         * menubar-msw.c (mswindows_handle_wm_initmenu):
13371         * menubar-msw.c (mswindows_update_frame_menubars):
13372         * menubar-msw.c (mswindows_free_frame_menubars):
13373         * menubar-msw.c (mswindows_popup_menu):
13374         Fixed a bug in handling accelerators where an extra character
13375         would be displayed in the menu item.  Also generalized the
13376         function displayable_menu_item because it is now used by the
13377         dialog box code as well.  And finally, added code in the functions
13378         that create the menubar to extract a list of accelerators for the
13379         top level menubar, which is used in the event code to determine
13380         whether a particular alt-key combination should be used to invoke
13381         a menu item, or should be passed through to access the standard
13382         XEmacs keymap binding for this key combination.
13383
13384         Much needed GCPROing.
13385
13386         * menubar-x.c:
13387         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
13388         * menubar-x.c (menu_item_descriptor_to_widget_value):
13389         * menubar-x.c (restore_in_menu_callback):
13390         * menubar-x.c (x_popup_menu):
13391         * menubar-x.c (menu_move_up):
13392         * menubar-x.c (menu_move_down):
13393         * menubar-x.c (menu_move_left):
13394         * menubar-x.c (menu_move_right):
13395         * menubar-x.c (menu_select_item):
13396         * menubar-x.c (command_builder_operate_menu_accelerator):
13397         * menubar-x.c (menu_accelerator_junk_on_error):
13398         * menubar-x.c (command_builder_find_menu_accelerator):
13399         * menubar-x.c (Faccelerate_menu):
13400         * menubar.h:
13401         Moved a whole bunch of code here that was previously in
13402         event-stream.c as described above.  There is also code connected
13403         to the new standard of adding an accelerator to the beginning of
13404         menu items that don't have one as described above and below.
13405
13406         * menubar.c:
13407         * menubar.c (menu_parse_submenu_keywords):
13408         * menubar.c (Fmenu_find_real_submenu):
13409         * menubar.c (Fnormalize_menu_item_name):
13410         * menubar.c (syms_of_menubar):
13411         * menubar.c (vars_of_menubar):
13412         * menubar.c (complex_vars_of_menubar):
13413
13414         a) Cleaned up a bunch of documentation and improved it.
13415
13416         b) XEmacs now automatically adds an accelerator onto the beginning
13417         of any menu items that don't have one.  I did this because there
13418         will inevitably be some menu items on the main menubar that don't
13419         have accelerators on them because the package that adds that
13420         particular menu item hasn't yet been fixed up to have accelerators
13421         in them and it looked rather strange to have some items with and
13422         some items without accelerators, especially since even in items
13423         without accelerators, you can, at least under windows, still
13424         access the item through an accelerator corresponding to the first
13425         character in the item's name.  If people don't like this behavior,
13426         I can add a variable to turn it off optionally, but I'm not sure
13427         this is a good idea because we really do need to have accelerators
13428         on all of the menu items, and if a package doesn't like the
13429         accelerators being put on the first character, then it should put
13430         the accelerators where they belong.
13431
13432         c) I made a behavior change, which is that the descriptor that
13433         specifies the text of the menu item, which formerly was just a
13434         string, can now also be an evaluated expression.  This makes this
13435         descriptor parallel with all of the others, which could also be
13436         evaluated expressions.  This also obviates the need for the
13437         keyword :label, which was previously listed in the documentation
13438         as unimplemented, and which was for the same purpose.
13439
13440         d) GCPROing.
13441
13442         * ntproc.c:
13443         * ntproc.c (new_child):
13444         * ntproc.c (sys_spawnve):
13445         * ntproc.c (find_child_console):
13446         * ntproc.c (sys_kill):
13447         Fixed compile warnings.  By the way, this file should really go
13448         away entirely, and this will happen as soon as Kirill makes his
13449         final round of process cleanups, which affect the function
13450         call-process.
13451
13452         * process-nt.c:
13453         * process-nt.c (struct nt_process_data):
13454         * process-nt.c (find_process_from_pid):
13455         * process-nt.c (send_signal_the_nt_way):
13456         * process-nt.c (enable_child_signals):
13457         * process-nt.c (find_child_console):
13458         * process-nt.c (send_signal_the_95_way):
13459         * process-nt.c (nt_finalize_process_data):
13460         * process-nt.c (ensure_console_window_exists):
13461         * process-nt.c (nt_create_process):
13462         * process-nt.c (nt_kill_child_process):
13463         * process-nt.c (nt_kill_process_by_pid):
13464         * process-nt.c (nt_open_network_stream):
13465         * process-nt.c (vars_of_process_nt):
13466         Copied over code from Emacs 20.5 to correctly send signals to sub-
13467         processes under Windows 95.  Also added code to automatically
13468         create and hide console window when a sub-process is created under
13469         Windows 95, which obviates the need for the separate runemacs.exe
13470         executable, and finally implemented some variables that were
13471         implemented in Emacs 20.5, but previously not in XEmacs.  These
13472         include mswindows- start-process-share-console and
13473         mswindows-start-process-inherit-error-mode. (Both of these only
13474         apply to Windows 95.)
13475
13476         * regex.c (regex_compile): Fixed a compile warning.
13477
13478         * select-msw.c:
13479         * select-msw.c (mswindows_own_selection):
13480         * select-msw.c (mswindows_get_foreign_selection):
13481         * select-msw.c (mswindows_disown_selection):
13482         * select-msw.c (console_type_create_select_mswindows):
13483         * select-msw.c (syms_of_select_mswindows):
13484         Cleaned up the file and implemented the device method
13485         selection_exists_p, which had accidentally been left out.  Also
13486         removed four lisp functions that were remnants from before the
13487         time when the selection code was properly device abstracted.
13488         These functions are no longer needed because there are generic
13489         equivalents, and because they were added recently and don't exist
13490         in FSF Emacs, I don't think there's any problem with just deleting
13491         them.
13492
13493         * sysdep.c:
13494         * sysdep.c (sys_subshell):
13495         Fixed a compile warning, although in this case there's probably
13496         something wrong with this code, and it ought to be looked into
13497         more thoroughly by somebody who understands it.
13498
13499         * window.c:
13500         * window.c (Fwindow_text_area_height):
13501         * window.c (Fwindow_width):
13502         * window.c (Fwindow_full_width):
13503         * window.c (Fwindow_pixel_width):
13504         * window.c (debug_print_window):
13505         * window.c (syms_of_window):
13506         Added functions window-text-area-height and window-full-width,
13507         which are functions for returning various width and height
13508         characteristics of a window. (One of these functions is necessary
13509         for making the file dialog box work correctly, and the other one
13510         was added for completeness.)  Also added a table to the
13511         documentation for window-height which describes the entire scheme
13512         for accessing width and height characteristics of a window.
13513
13514 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13515
13516         * nt.c (fstat): Added a comment for another problem with
13517         non-encapsulated [f]stat(), reported by Adrian Aichner
13518         <aichner@ecf.teradyne.com>.
13519
13520 2000-03-11  Andy Piper  <andy@xemacs.org>
13521
13522         * window.c (make_dummy_parent): initialize subwindow instance
13523         cache.
13524         (Fset_window_configuration): zero extent_modiff.
13525
13526 2000-03-10  Andy Piper  <andy@xemacs.org>
13527
13528         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
13529         more changes can be triggered.
13530         (Fredisplay_frame): ditto.
13531         (Fredraw_device): ditto.
13532         (Fredisplay_device): ditto.
13533         (redisplay_frame): make non-static.
13534         (redisplay_frame): call update_frame_gutter_geometry outside of
13535         display proper.
13536
13537         * gutter.h: declare update_frame_gutter_geometry.
13538
13539         * redisplay.h: declare redisplay_frame.
13540
13541         * gutter.c (update_frame_gutter_geometry): move geometry changes
13542         in update_frame_gutters here. Geometry changes can only occur
13543         outside of redisplay.
13544         (update_frame_gutters): remove geometry change code.
13545         (Fredisplay_gutter_area): make sure that we are in display when we
13546         update and that we have flushed any size changes.
13547
13548 2000-03-11  Andy Piper  <andy@xemacs.org>
13549
13550         * alloc.c (pdump_dump_data): remove i & count shadows.
13551
13552 2000-02-27  Mike Alexander  <mta@arbortext.com>
13553
13554         * sysdep.h: Declare pdump_read_file
13555
13556         * sysdep.c (pdump_read_file): New function
13557
13558         * alloc.c (pdump_load): Call pdump_read_file to get the portable
13559         dump data
13560
13561 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
13562
13563         * lrecord.h: add `lrecord_type_pgsetenv'.
13564
13565 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
13566
13567         * symsinit.h: declare (vars|syms)_of* functions.
13568         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
13569
13570 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
13571
13572         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
13573
13574         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
13575         GCCs.
13576
13577         * emacs.c (main_1): Call postgres initialization code.
13578
13579         * postgresql.h: New file.  PostgreSQL RDBMS support.
13580         * postgresql.c: New file.
13581
13582 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
13583
13584         * redisplay-output.c (redisplay_output_display_block): Disable
13585         redundant code.
13586
13587 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
13588
13589         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
13590         (Fcanna_henkan_next): Ditto.
13591         (Fcanna_bunsetu_henkou): Ditto.
13592         (Fcanna_henkan_kakutei): Ditto.
13593         (Fcanna_henkan_end): Ditto.
13594         (Fcanna_henkan_quit): Ditto.
13595         (Fcanna_henkan_next): Set retun value correctly.
13596         (c2mu): Use unsigned char instead of signed char.
13597
13598 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
13599
13600         * emacs.c (main_1): Always call syms_of_gui.
13601         * inline.c: include gui.h
13602
13603 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
13604
13605         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
13606         converted to Lisp_Object.
13607         (Qtop_bottom): New variable.
13608         (syms_of_redisplay): Initialize it.
13609         * redisplay.h (Vvisible_bell): Ditto.
13610         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
13611         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
13612         only flash top and bottom.
13613
13614 2000-03-08  Andy Piper  <andy@xemacs.org>
13615
13616         * buffer.c (Frename_buffer): record new buffer name the right way.
13617
13618 2000-03-08  Andy Piper  <andy@xemacs.org>
13619
13620         * glyphs.c (update_subwindow): increase hash depth so that widget
13621         items get picked up properly.
13622
13623         * redisplay-output.c (compare_runes): increase hash depth so that
13624         widget items get picked up properly.
13625
13626 2000-03-08  Andy Piper  <andy@xemacs.org>
13627
13628         * gutter.c (output_gutter): add some debug.
13629
13630         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
13631         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
13632         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
13633
13634         * redisplay-output.c (compare_runes): use display_hash to
13635         determine if glyphs really are not the same.
13636
13637         * glyphs.c (update_subwindow): check display_hash to see if
13638         anything really needs to be updated. If not then do
13639         nothing. Record the display_hash after updating.
13640         (image_instance_equal): compare the image_instance face also.
13641
13642 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
13643
13644         * redisplay.h: Fix comment style.
13645
13646 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
13647
13648         * consle-msw.h (struct mswindows_frame):
13649         Added new member paint_pending to indicate whether a WM_PAINT
13650         magic event has been queued for this frame.
13651
13652         * event-msw.c (mswindows_drain_windows_queue):
13653         Don't queue a WM_PAINT magic event if one is already queued.
13654         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
13655
13656         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
13657
13658 2000-03-07  Didier Verna  <didier@xemacs.org>
13659
13660         * dired.c: #include `regex.h' after `sysfile.h'.
13661
13662 2000-03-06  Martin Buchholz  <martin@xemacs.org>
13663
13664         * sound.c (init_nas_sound): Fix compiler warning.
13665
13666         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
13667         (FREE_STRUCT_P):
13668         (MARK_STRUCT_AS_FREE):
13669         (MARK_STRUCT_AS_NOT_FREE):
13670         Make `gcc -fstrict-aliasing' work properly.
13671
13672 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
13673
13674         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
13675         (mswindows_delete_device): Call CoUnnitialize().
13676
13677         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
13678
13679 2000-02-25    <CraigL@DyCon.com>
13680
13681         * process-nt.c: MinGW now has <shellapi.h>, but still needs
13682         <errno.h>.
13683
13684         * sysdep.c: This extern declaration for environ prevents MinGW
13685         from finding the variable in CRTDLL.DLL.
13686
13687         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
13688         windows headers.
13689         (SHGFI_EXETYPE): ..
13690         (WM_MOUSEWHEEL): ..
13691         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
13692         definitions.
13693         (MMRESULT): Removed, now defined in cygwin's windows headers.
13694         (TIMECAPS): ..
13695         (uid_t,gid_t,pid_t,ssize_t): ..
13696         (_timeb): Removed, MinGW defines both _timeb and timeb.
13697         (HAVE_H_ERRNO): Added.
13698         (HAVE_TZNAME): Added, configure is not detecting this.
13699
13700 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
13701
13702         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
13703         * syntax.c (syntax_match): Use it.
13704
13705         * cmds.c: Import auto-fill-chars from FSF Emacs.
13706         (Vauto_fill_chars): New variables.
13707         (internal_self_insert): Check Vauto_fill_chars.
13708         (vars_of_cmds):
13709         Declare auto-fill-chars as a Lisp variable and initialize it.
13710
13711 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
13712
13713         * fileio.c (Fmake_symbolic_link):
13714         (Ffile_symlink_p):
13715         Run handlers even if local machine doesn't have symlinks.
13716
13717 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
13718
13719         * event-msw.c (mswindows_drain_windows_queue):
13720         Don't generate paint magic events for non-XEmacs frames.
13721
13722 2000-03-05  Andy Piper  <andy@xemacs.org>
13723
13724         * redisplay.c (redisplay_frame): generate_displayable_area and
13725         friends assumes that we are not in GC, we therefore have to make
13726         sure that this doesn't happen.
13727
13728         * gutter.c (calculate_gutter_size): generate_displayable_area
13729         assumes that we are not in GC, we therefore have to make sure that
13730         this doesn't happen.
13731
13732 2000-03-05  Martin Buchholz  <martin@xemacs.org>
13733
13734         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
13735
13736 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
13737
13738         * redisplay.c (regenerate_window): Make sure we set a sane value
13739         for end_pos even if we jump out of the loop.
13740         (regenerate_window): Answer Ben's question :-).
13741         (start_end_of_last_line): Add may_error argument.
13742         (start_of_last_line):
13743         (end_of_last_line): Pass may_error = 0.
13744         (end_of_last_line_may_error): New function.
13745         (pixel_to_glyph_translation): Use it, so we don't crash in
13746         event_to_glyph.
13747
13748 2000-03-04  Andy Piper  <andy@xemacs.org>
13749
13750         * window.h (struct window): add gutter_extent_modiff.
13751
13752         * window.c (allocate_window): zero out gutter_extent_modiff.
13753
13754         * redisplay.h: declare sync_display_line_structs.
13755
13756         * redisplay.c (add_glyph_rune): add a better comment.
13757
13758         * redisplay-output.c (sync_display_line_structs): made non-static.
13759         (compare_runes): remove unneccesary glyph cachel access.
13760
13761         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
13762
13763         * gutter.c (output_gutter): don't output the gutter if extent
13764         changes only involve extents in buffers. use 4 sets of display
13765         lines.
13766         (gutter_extent_signal_changed_region_maybe): new function. Mark
13767         extents in gutters as changed.
13768         (update_frame_gutters): use 4 sets of display lines.
13769         (reset_gutter_display_lines): ditto.
13770         (free_frame_gutters): ditto.
13771         (redraw_exposed_gutter): force output of gutters.
13772
13773         * frame.h (struct frame): add 4 sets of gutter display lines.
13774
13775         * extents.c: (extent_changed_for_redisplay): signal changes to
13776         extents in strings in the gutter as well as extents in buffers.
13777
13778 2000-03-02  Andy Piper  <andy@xemacs.org>
13779
13780         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
13781
13782         * frame.c (Fmake_frame): make sure the gutters get initialized
13783         after the frame is visible.
13784         (set_frame_selected_window): re-arrange compilation macros a
13785         little.
13786         (change_frame_size_1): mark gutters changed.
13787
13788         * device.c (Fset_device_class): mark gutters changed.
13789
13790 2000-03-01  Andy Piper  <andy@xemacs.org>
13791
13792         * window.c (window_top_frame_gutter_height): deleted.
13793         (window_bottom_frame_gutter_height): ditto.
13794         (window_left_frame_gutter_height): ditto.
13795         (window_right_frame_gutter_height): ditto.
13796         (window_top_gutter_height): don't use them.
13797         (window_bottom_gutter_height): ditto.
13798         (window_left_gutter_width): ditto.
13799         (window_right_gutter_width): ditto.
13800         (Fsplit_window): ditto.
13801         (Fwindow_pixel_edges): don't use border dimensions here.
13802
13803         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
13804         (update_scrollbar_instance): ditto.
13805
13806         * redisplay.c (generate_modeline): don't take gutters into account.
13807         (generate_modeline): ditto.
13808         (redisplay_frame): small gutter display optimization.
13809
13810         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
13811
13812         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
13813         gutters into account.
13814
13815         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
13816         for window position and type.
13817
13818         * gutter.c (get_gutter_coords): fix for frame gutters.
13819         (update_frame_gutters): update frame geometry if the gutters have
13820         changed.
13821         (init_frame_gutters): record current gutter geometries.
13822
13823         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
13824         var.
13825         (mswindows_widget_instantiate): ditto.
13826
13827         * frame.h (struct frame): add current_gutter_bounds.
13828
13829         * frame.c (change_frame_size_1): position window and minibuffer
13830         appropriately taking into account the frame gutters.
13831
13832         * frame-x.c: (x_initialize_frame_size): take into account the
13833         frame gutters.
13834
13835 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
13836
13837         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
13838
13839 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
13840
13841         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
13842
13843 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
13844
13845         * file-coding.c (reset_decoding_stream): Clear previous
13846         detection state when autodetect.
13847
13848 2000-02-29  Didier Verna  <didier@xemacs.org>
13849
13850         * extents.c (set_extent_glyph_1): don't require extents to be
13851         attached.
13852
13853 2000-02-27  Andy Piper  <andy@xemacs.org>
13854
13855         * gutter.c (Fset_default_gutter_position): don't default left and
13856         right gutter visibility to t.
13857         (Fset_default_gutter_position): run
13858         default-gutter-position-changed-hook.
13859         (syms_of_gutter): add default-gutter-position-changed-hook.
13860
13861 2000-02-26  Andy Piper  <andy@xemacs.org>
13862
13863         * specifier.c (Fmake_specifier): add gutter references.
13864
13865         * gutter.h (RAW_WINDOW_GUTTER): new macro.
13866
13867         * lisp.h: declare Fvalid_plist_p.
13868
13869         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
13870         as changed.
13871         (default_gutter_visible_p_changed_in_window): invalidate gutter as
13872         well as its visibility so that it gets reconstructed.
13873         (construct_window_gutter_spec): new function. Construct a string
13874         to be displayed in the gutter from a plist of strings. Take care
13875         to only use elements that are declared as visible.
13876         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
13877         WINDOW_GUTTER.
13878         (gutter_validate): allow plists of strings in the specifier.
13879         (gutter_specs_changed): construct the real_gutter from the gutter
13880         specs using construct_window_gutter_spec.
13881         (gutter_visible_validate): gutter-visible is a new specifier type.
13882         (Fgutter_visible_specifier_p): new function for the new specifier.
13883         (syms_of_gutter): declare gutter-visible and
13884         Fgutter_visible_specifier_p.
13885         (specifier_type_create_gutter): intitalize new gutter-visible
13886         specifier.
13887         (reinit_specifier_type_create_gutter): ditto.
13888         (specifier_vars_of_gutter): use new specifier type for gutter
13889         visibility.
13890         (init_frame_gutters): construct real_gutter correctly.
13891         (Fgutter_specifier_p): beef up documentation.
13892         (Fgutter_size_specifier_p): ditto.
13893
13894         * winslots.h: add real_gutter slots.
13895
13896 2000-02-25  Andy Piper  <andy@xemacs.org>
13897
13898         * device-msw.c: Be kind to older cygwin versions. From Raymond
13899         Toy <toy@rtp.ericsson.se>.
13900
13901         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
13902         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
13903
13904 2000-02-25  Martin Buchholz  <martin@xemacs.org>
13905
13906         * elhash.c (MARK_OBJ): Practice macro hygiene.
13907
13908 2000-02-24  Martin Buchholz  <martin@xemacs.org>
13909
13910         * miscplay.c: s/__inline__/inline/g;
13911         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
13912         (get_device_compdc): INLINE ==> static inline
13913         * *.[ch]: Change INLINE to INLINE_HEADER globally.
13914         find -name '*.h' | \
13915         xargs global-replace \
13916         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
13917
13918 2000-02-25  Andy Piper  <andy@xemacs.org>
13919
13920         * window.c (window_top_frame_gutter_height): new function.
13921         (window_top_window_gutter_height): ditto.
13922         (window_top_gutter_height): use them.
13923         (window_bottom_frame_gutter_height): new function.
13924         (window_bottom_window_gutter_height): ditto.
13925         (window_bottom_gutter_height): use them.
13926         (window_left_window_gutter_width): new function.
13927         (window_left_frame_gutter_width): ditto.
13928         (window_left_gutter_width): use them.
13929         (window_right_window_gutter_width): new function.
13930         (window_right_frame_gutter_width): ditto.
13931         (window_right_gutter_width): use them.
13932         (window_pixel_height): new function. calulate window pixel height
13933         with frame gutter involvement.
13934         (Fsplit_window): calculate new sizes taking frame gutters into
13935         account.
13936         (window_char_height_to_pixel_height): don't include frame gutters.
13937         (window_char_height): use window_pixel_height.
13938         (window_pixheight): rename from window_pixel_height.
13939         (change_window_height): use it.
13940         (window_pixel_height_to_char_height): don't include frame gutters.
13941         (window_char_width_to_pixel_width): ditto.
13942
13943 2000-02-25  Andy Piper  <andy@xemacs.org>
13944
13945         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
13946         if it is.
13947
13948 2000-02-24  Martin Buchholz  <martin@xemacs.org>
13949
13950         * alloc.c (staticpro):
13951         (staticpro_nodump):
13952         (dumpstruct):
13953         (dumpopaque):
13954         (pdump_wire):
13955         (pdump_wire_list):
13956         (compact_string_chars):
13957         (pdump_dump_wired):
13958         Convert:  if (foo) abort();  ==>  assert (! foo);
13959
13960         * eldap.c (Fldap_search_basic):
13961         (Fldap_add):
13962         (Fldap_modify):
13963         (Fldap_delete):
13964         Fix compiler warnings, and possible crashes if (random) return
13965         value were to be used.
13966
13967 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13968
13969         * device-msw.c: Workaround ResetDC failure.
13970
13971         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
13972         applying a devmode.
13973
13974         * redisplay-msw.c (get_frame_dc): Added start_page_p.
13975         (mswindows_text_width): Do not start printer page.
13976
13977         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
13978
13979         * glyphs-msw.c: Added image methods to msprinter console and
13980         msprinter-specific image instantiation.
13981
13982 2000-02-20  Mike Alexander  <mta@arbortext.com>
13983
13984         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
13985         to avoid crashes when selection-sets-clipboard is on
13986         (mswindows_own_selection): ditto
13987
13988 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13989
13990         * glyphs-msw.c:
13991         * redisplay-msw.c (get_frame_dc):
13992         (get_frame_compdc):
13993         * console-msw.h:
13994         * device-msw.c (mswindows_init_device):
13995         (mswindows_delete_device):
13996         (msprinter_init_device):
13997         (msprinter_delete_device):
13998         * frame-msw.c (mswindows_init_frame_1):
13999         (mswindows_delete_frame):
14000         (msprinter_init_frame_3):
14001         (msprinter_delete_frame): Move compatible DC to device object from
14002         frame object, for both mswindows and msprinter. Only one at a time
14003         is needed, it is a real waste to have one per frame!
14004
14005 2000-02-23  Andy Piper  <andy@xemacs.org>
14006
14007         * glyphs.c: add dynamic width and height elements.
14008         (image_instance_equal): ditto.
14009
14010         * glyphs-widget.c (widget_query_geometry): calculate width and
14011         height dynamically if required.
14012         (initialize_widget_image_instance): initialize dynamic dimensions.
14013         (widget_instantiate): pick-up dynamic dimensions.
14014
14015         * glyphs.h (struct Lisp_Image_Instance): add width and height for
14016         dynamic determination. Add appropriate macros.
14017
14018         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
14019         dimensions safe.
14020         (WINDOW_GUTTER_SIZE): ditto.
14021         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
14022
14023         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
14024         inline.
14025         (get_frame_dc): ditto.
14026
14027         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
14028         here.
14029
14030 2000-02-23  Martin Buchholz <martin@xemacs.org>
14031
14032         * XEmacs 21.2.31 is released.
14033
14034 2000-02-22  Ben Wing <ben@xemacs.org>
14035
14036         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
14037
14038 2000-02-22  Andy Piper  <andy@xemacs.org>
14039
14040         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
14041
14042 2000-02-21  Mike Sperber <mike@xemacs.org>
14043
14044         * .dbxrc:
14045         * .gdbinit:
14046         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
14047         variables.
14048
14049 2000-02-21  Mike Sperber <mike@xemacs.org>
14050
14051         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
14052
14053 2000-02-21  Martin Buchholz <martin@xemacs.org>
14054
14055         * XEmacs 21.2.30 is released.
14056
14057 2000-02-20  Martin Buchholz  <martin@xemacs.org>
14058
14059         Performance hacking.
14060         * *.c (syms_of_*):
14061         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
14062         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
14063         * emacs.c (main_1):
14064         * lisp.h (DEFUN):
14065         * console.c (DEFVAR_CONSOLE_LOCAL_1):
14066         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
14067         * symeval.h (DEFVAR_SYMVAL_FWD):
14068         * symbols.c (guts_of_unbound_marker):
14069         Make all c_readonly objects also lisp_readonly and marked for life.
14070         * lrecord.h (struct lrecord_implementation):
14071         Document flags better.
14072         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
14073         * lrecord.h (DECLARE_LRECORD):
14074         * lrecord.h (XSETRECORD):
14075         * lrecord.h (RECORDP):
14076         * lrecord.h (RECORD_TYPEP):
14077         * lrecord.h (RECORD_MARKER): New.
14078         * lrecord.h (error_check_*):
14079         * lrecord.h (CONCHECK_NONRECORD):
14080         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
14081         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
14082         * lrecord.h (set_lheader_implementation):
14083         * lrecord.h (enum lrecord_type): New.
14084         * symeval.h (SYMBOL_VALUE_MAGIC_P):
14085         * alloc.c (disksave_object_finalization_1):
14086         * alloc.c (mark_object):
14087         * alloc.c (lrecord_type_index):
14088         * alloc.c (tick_lcrecord_stats):
14089         * alloc.c (Fgarbage_collect):
14090         * alloc.c (init_alloc_once_early):
14091         * alloc.c (pdump_load):
14092         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
14093         * alloc.c (lrecord_type_index): Delete.
14094         Make lisp object type indexes be constant.
14095           Makes (byte-compile) 5% faster.
14096         Put all marker functions into their own array.
14097           Makes (garbage-collect) 5% faster.
14098         Optimize SYMBOL_VALUE_MAGIC_P.
14099           Makes (byte-compile) 2-3% faster.
14100         * config.h.in (gc_checking_assert): New.
14101         * alloc.c: Use gc_checking_assert().
14102         * .dbxrc: Make compatible with new object type implementation.
14103         * .gdbinit: Make compatible with new object type implementation.
14104         * alloc.c: Delete all symbols defined only for debugging, such as
14105         Lisp_Type_Vector and lrecord_charset.
14106
14107 2000-02-21  Andy Piper  <andy@xemacs.org>
14108
14109         * gui-msw.c (Fmswindows_shell_execute): fix file location
14110         problems.
14111
14112         * buffer.c (Fkill_buffer): remove buffer from alist buffer
14113         unshowing so that set_window_buffer doesn't undo
14114         kill_buffer_hook's hard work.
14115
14116         * glyphs-widget.c (tab_control_query_geometry): don't count the
14117         first item when calculating geometry.
14118
14119         * glyphs.c (map_subwindow): remove redundant code.
14120         (update_frame_subwindows): be more circumspect about when to
14121         update subwindows.
14122
14123         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
14124         when items haven't changed. Update faces if faces have changed as
14125         well as just the widget face.
14126         (x_tab_control_update): Update faces if faces have changed as well
14127         as just the widget face.
14128
14129 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14130
14131         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
14132         registration.
14133         (build_syscolor_string): Use mswindows_color_to_string to try to
14134         get a named color.
14135         (mswindows_device_system_metrics): Reverse the foreground and
14136         background colors so that they match the documentation.
14137
14138         * objects-msw.c: (mswindows_X_color_map): tweak some values so
14139         they match the default Windows palette.
14140         (mswindows_color_to_string): New function.
14141
14142 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14143
14144         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
14145
14146 2000-02-18  Olivier Galibert  <galibert@pobox.com>
14147
14148         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
14149         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
14150
14151         * symbols.c (init_symbols_once_early): Removed obsolete
14152         DATA_SEG_BITS related kludge.
14153         (defvar_magic): Ditto.
14154
14155         * malloc.c: Removed obsolete DATA_SEG_BITS
14156         * ralloc.c: Ditto.
14157         * mem-limits.h: Ditto.
14158
14159         * Makefile.in.in: Removed obsolete HAVE_SHM
14160         * emacs.c: Ditto.
14161
14162 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14163
14164         *  device-msw.c (mswindows_delete_device): Free DDE string
14165         handles.
14166
14167 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14168
14169         * keymap.c (get_keyelt):
14170         * unexnt.c (unexec):
14171         * vm-limit.c (memory_warnings):
14172         * ntheap.c (recreate_heap):
14173         * ntheap.h (UNINIT_PTR):
14174         * select-msw.c (Fmswindows_get_clipboard):
14175         (Fmswindows_set_clipboard):
14176         * objects-msw.h (MSWINDOWS_BAD_HFONT):
14177         * objects-msw.c:
14178         * menubar-msw.c (displayable_menu_item):
14179         * glyphs-msw.c:
14180         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
14181         * sysdep.c (sys_subshell):
14182         * process-nt.c (nt_create_process):
14183         * nt.c (normalize_filename):
14184         (dostounix_filename):
14185         (unixtodos_filename):
14186         * ntproc.c (win32_executable_type):
14187         * ntplay.c (play_sound_data_1):
14188         (play_sound_file):
14189         * editfns.c (get_home_directory):
14190         * event-msw.c (struct winsock_stream):
14191         (mswindows_dde_callback):
14192         * device-msw.c (msprinter_init_device):
14193         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
14194
14195         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
14196         mswindows_clear_toolbar were swapped!
14197
14198         * objects-msw.c:(colormap_t):
14199         (fontmap_t):
14200         * emacs.c (struct standard_args): Fixed const jumble.
14201
14202         * glyphs-widget.c (update_widget): Fixed comparison notation.
14203
14204         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
14205
14206         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
14207         __declspec(noreturn) syntax.
14208
14209 2000-02-19  Martin Buchholz  <martin@xemacs.org>
14210
14211         * eldap.c (Fldap_open):
14212         (Fldap_search_basic):
14213         (Fldap_add):
14214         (Fldap_modify):
14215         Use new coding system conversion macros.
14216
14217 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
14218
14219         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
14220
14221 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
14222
14223         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
14224         (Fldap_add, Fldap_modify, Fldap_delete): New functions
14225
14226         * eldap.c (Qadd, Qreplace): New constant symbols
14227         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
14228         interruptions by XEmacs signals
14229         Remove unnecessary calls to slow_down_interrupts and
14230         speed_up_interrupts
14231         (Fldap_search_basic): Renamed from Fldap_search_internal
14232         Added new optional parameter VERBOSE that triggers the
14233         display of progress messages
14234         Remove unnecessary calls to slow_down_interrupts and
14235         speed_up_interrupts
14236         LDAP result code analysis rewritten
14237         (Fldap_add, Fldap_modify, Fldap_delete): New functions
14238         (syms_of_eldap): Define the new symbols and functions
14239
14240
14241 2000-02-17  Martin Buchholz  <martin@xemacs.org>
14242
14243         * realpath.c: Determine PATH_MAX maximally portably.
14244
14245         * insdel.c (bytecount_to_charcount): Optimize.
14246         The function used to be optimized for entirely ASCII sequences.
14247         Now it is optimized for successive characters from the same
14248         charset.  This also wins big for _mostly_ ASCII sequences.
14249
14250         * fileio.c (Ffile_truename): convert return from realpath() using
14251         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
14252         - Rewrite GCPROing slightly.
14253
14254         * sysdep.c (sys_open): Do filename conversion, like all other
14255         sys_* functions.  Fixes bug:
14256         (let ((file-name-coding-system 'iso-8859-2))
14257            (write-region x y latin2-name))
14258         ==> writes filename using internal encoding.
14259
14260 2000-02-18  Martin Buchholz  <martin@xemacs.org>
14261
14262         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
14263         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
14264         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
14265         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
14266         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
14267         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
14268         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
14269         (CONST_IF_NOT_DEBUG): Delete.
14270         * alloc.c (this_one_is_unmarkable): Delete.
14271         (mark_object): Don't check for this_one_is_unmarkable. Use the
14272         c_readonly flag instead.
14273         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
14274
14275 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14276
14277         * event-msw.c (mswindows_drain_windows_queue):
14278         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
14279         away redundant repaint events.
14280
14281 2000-02-17  Andy Piper  <andy@xemacs.org>
14282
14283         * redisplay.h: declare mark_redisplay_structs.
14284
14285         * redisplay.c (redisplay_window):
14286         (redisplay_frame): don't check subwindows_state_changed.
14287         (mark_redisplay): mark gutters here.
14288
14289         * glyphs.c: (instantiate_image_instantiator): always layout if we
14290         haven't done so already.
14291         (allocate_image_instance): don't mark as dirty.
14292         (update_subwindow): bind inhibit_quit.
14293
14294         * gutter.c (mark_gutters): new function.
14295
14296         * glyphs-x.c (x_update_widget): Always resize to get round a
14297         widget bug.
14298
14299         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
14300         breaking absolutely everything.
14301
14302         * gutter.h: declare mark_gutters.
14303
14304 2000-02-16  Martin Buchholz <martin@xemacs.org>
14305
14306         * XEmacs 21.2.29 is released.
14307
14308 2000-02-15  Olivier Galibert  <galibert@pobox.com>
14309
14310         * fns.c (size_bit_vector): Fix computation of the size.
14311
14312 2000-02-15  Martin Buchholz  <martin@xemacs.org>
14313
14314         * *.[ch]: Change CONST to const globally.
14315         find -name '*.[ch]' | \
14316         xargs global-replace \
14317         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
14318         - Remove vestigial references to CONST_IS_LOSING
14319
14320 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14321
14322         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
14323         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
14324         events instead of dispatching them directly.
14325         (mswindows_handle_paint): New function to do repainting.
14326         (mswindows_wnd_proc):
14327         (emacs_mswindows_handle_magic_event): Call above function.
14328
14329 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14330
14331         * objects-msw.c (mswindows_create_font_variant): Return the new
14332         font handle.
14333         (initialize_font_instance): Get font metrics from the underlined
14334         variant of the font to cope with the case where the underlined
14335         font has a bigger descent.
14336
14337 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
14338
14339         * gui.c (gui_item_accelerator): Return the first underlined
14340         character in item name.
14341
14342 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14343
14344         * lisp.h: Added Qprinter.
14345
14346         * general.c (syms_of_general): Initialized it.
14347
14348         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
14349         (get_frame_dc):
14350         (get_frame_compdc): Made inline.
14351
14352         * console.h (struct console_methods): Added eject_page method.
14353
14354         * frame.h: Added FRAME_DISPLAY_P and friends.
14355         Aligned backslahes in many macros in more readable fashion.
14356         Added page_number to struct frame, and an accessor macro
14357         for it.
14358
14359         * defice.h: Added DEVICE_DISPLAY_P and friends.
14360
14361         * device.c (Fdevice_printer_p): Used these.
14362
14363         * frame.c (allocate_frame_core): Initialize page number.
14364         (Fprint_job_page_number):
14365         (Fprint_job_eject_page): Implemented.
14366
14367         * frame-msw.c (msprinter_eject_page): Added method.
14368         (msprinter_start_page): Added.
14369
14370         * window.c (Fwindow_truncated_p): Fixed docstring.
14371         (Fwindow_last_line_visible_height): Implemented.
14372
14373 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
14374
14375         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
14376
14377 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
14378
14379         * syntax.c (scan_words): Always advance at least one character.
14380
14381 2000-02-13  Andy Piper  <andy@xemacs.org>
14382
14383         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
14384         to make sure the glyph is in the cachels.
14385
14386         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
14387         global image instance flag.
14388         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
14389         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
14390
14391         * glyphs.c (allocate_image_instance): set dirty bits correctly.
14392         (Fset_image_instance_property): mark layout as changed.
14393         (invalidate_glyph_geometry_maybe): mark layout as changed.
14394         (glyph_width): use new NEEDS_LAYOUT macro.
14395         (glyph_ascent): ditto.
14396         (glyph_descent): ditto.
14397         (glyph_height): ditto.
14398         (image_instance_layout): mark layout as clean after laying out.
14399         (update_subwindow): don't mark layout as clean here.
14400
14401         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
14402         should no longer be needed.
14403
14404         * glyphs-x.c (x_update_widget): sanitize asserts.
14405         (x_finalize_image_instance): sanitize assignment to widgets.
14406
14407         * glyphs-widget.c (widget_instantiate): don't need to clear the
14408         layout flag here.
14409
14410 2000-02-13  Martin Buchholz  <martin@xemacs.org>
14411
14412         * sysdep.c (getcwd): Use standard prototype.
14413         * sysdep.h (getcwd): Use standard prototype.
14414
14415         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
14416         (sequence, start, end).
14417         Remove redundant type checking.
14418         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
14419         view of `caller-protects') to avoid a crash where the real fix was
14420         found elsewhere.
14421
14422 2000-02-12  Martin Buchholz  <martin@xemacs.org>
14423
14424         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
14425
14426         * s/sol2.h: Remove feature macro initialization.
14427
14428         * alloc.c (alloc_lcrecord): Add more type checking assertions.
14429         (vector_hash): New.  Code from internal_hash.
14430         * lrecord.h:
14431         Fix up allocation subsystem comments.
14432
14433         * config.h.in: Add __EXTENSIONS__ for Solaris.
14434
14435         * systime.h (EMACS_GETTIMEOFDAY): New.
14436         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
14437         Remove Solaris-specific code.
14438         Use void* for the (ignored) second arg for gettimeofday().
14439
14440         * elhash.c (hash_table_hash): Implement it, finally.
14441         * elhash.c:  Use hashcode_t.
14442
14443         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
14444         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
14445
14446         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
14447         * fns.c (size_bit_vector):
14448         * alloc.c (size_vector):
14449         (make_vector_internal):
14450         (make_bit_vector_internal):
14451         (sweep_bit_vectors_1):
14452         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
14453
14454 2000-02-10  Martin Buchholz  <martin@xemacs.org>
14455
14456         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
14457         Include strings.h to avoid warnings for bzero and strcasecmp.
14458
14459 2000-02-10  Olivier Galibert  <galibert@pobox.com>
14460
14461         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
14462         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
14463
14464         * fns.c (size_bit_vector): New.  Declare bit vectors as a
14465         sequence.
14466
14467 2000-02-10  Olivier Galibert  <galibert@pobox.com>
14468
14469         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
14470         use a value field instead.
14471         (symbol_value_forward_forward): Use value field.
14472         (DEFVAR_SYMVAL_FWD): Use value field.
14473         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
14474         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
14475         (DEFVAR_CONST_INT): Ditto.
14476         (DEFVAR_BOOL): Ditto.
14477         (DEFVAR_CONST_BOOL): Ditto.
14478         (DEFVAR_INT_MAGIC): Ditto.
14479         (DEFVAR_BOOL_MAGIC): Ditto.
14480
14481         * symbols.c (guts_of_unbound_marker): Use value field.
14482         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
14483         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
14484
14485         * lisp.h: Declare dumpopaque and noninteractive1.
14486
14487         * alloc.c (dumpopaque): Added.
14488         (pdump_dump_opaquevec): Added.
14489         (pdump): Call pdump_dump_opaquevec to dump opaque data.
14490         (pdump_load): Reload opaque data.  Sync noninteractive1 with
14491         noninteractive.
14492
14493 2000-02-10  Andy Piper  <andy@xemacs.org>
14494
14495         * glyphs.c (image_instance_layout): if the size changes, mark it
14496         as such.
14497
14498         * redisplay-output.c (redisplay_output_layout): Update the
14499         subwindow here.
14500         (redisplay_output_subwindow): ditto.
14501
14502         * glyphs.c (update_subwindow): make sure we reset flags for
14503         layouts as well as everything else.
14504
14505         * glyphs-widget.c (layout_layout): don't need to set the instances
14506         dimensions here.
14507
14508 2000-02-09  Martin Buchholz  <martin@xemacs.org>
14509
14510         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
14511         not HAVE_DLOPEN, which is a lower-level thing.
14512
14513         * .cvsignore: Ignore gmon.out
14514
14515 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
14516
14517         * .cvsignore: Ignore portable dumper xemacs.dmp file
14518
14519 2000-02-09  Andy Piper  <andy@xemacs.org>
14520
14521         * redisplay-output.c (redisplay_output_layout): be more clever
14522         about when we output based on the changed flags.
14523
14524         * glyphs.h (struct image_instantiator_methods): add update_method.
14525         (struct Lisp_Image_Instance): add changed flags. Declare new
14526         macros for manipulating them.
14527
14528         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
14529         (image_instance_parent_glyph): find an image_instance's parent
14530         glyph or image_instance.
14531         (image_instance_layout): mark the size as changed.
14532         (set_image_instance_dirty_p): new function. mark an image
14533         instance, plus all of its parents, as dirty.
14534         (Fset_image_instance_property): use it.
14535         (Fglyph_animated_timeout_handler): use it.
14536         (update_subwindow): call update_widget and device methods for
14537         update_subwindow. Mark all changed flags as clean.
14538         (Fresize_subwindow): mark size as changed.
14539
14540         * glyphs-x.c (x_finalize_image_instance): try and detect gc
14541         failures.
14542         (x_update_subwindow): only resize subwindows here.
14543         (x_update_widget): new function. Update all changed properties of
14544         a widget.
14545         (x_resize_subwindow): deleted.
14546         (x_widget_set_property): deleted.
14547         (x_progress_gauge_set_property): deleted.
14548         (x_progress_gauge_update): new function. Implement recorded
14549         changes.
14550         (x_tab_control_update): ditto.
14551         (x_tab_control_set_property): deleted.
14552         (console_type_create_glyphs_x): declare new functions.
14553         (image_instantiator_format_create_glyphs_x): ditto.
14554
14555         * glyphs-widget.c (widget_set_property): mark text changed.
14556         (update_widget): new function. Update properties of a widget.
14557         (widget_instantiate): for layouts make sure we set their
14558         children's parent correctly.
14559         (tab_control_set_property): new function. Record changes that will
14560         take place under redisplay's control.
14561         (progress_gauge_set_property): ditto.
14562         (image_instantiator_progress_guage): declare new functions.
14563         (image_instantiator_tab_control): ditto.
14564
14565         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
14566         now.
14567         (mswindows_update_widget): new function. Update all properties on
14568         a widget that have changed.
14569         (mswindows_button_update): new function. Update a button's set
14570         state.
14571         (mswindows_tab_control_update): new function. Update the items in
14572         a tab.
14573         (mswindows_tab_control_set_property): deleted.
14574         (mswindows_progress_gauge_update): new function. Update the
14575         progress gauge's progress.
14576         (mswindows_widget_set_property): deleted. This is all done
14577         asynchronously now.
14578         (mswindows_progress_gauge_set_property): ditto.
14579         (console_type_create_glyphs_mswindows): declare new methods.
14580         (image_instantiator_format_create_glyphs_mswindows): ditto.
14581
14582         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
14583         (msprinter_set_frame_properties): ditto.
14584
14585         * console.h (struct console_methods): Add update_widget_method.
14586
14587 2000-02-09  Andy Piper  <andy@xemacs.org>
14588
14589         * gui-msw.c (Fmswindows_shell_execute): Make
14590         mswindows-shell-execute industrial strength.
14591
14592 2000-02-08  Martin Buchholz  <martin@xemacs.org>
14593
14594         * lrecord.h: Make macro argument `props' match member function `plist'.
14595         * fns.c (Fget):
14596         * fns.c (Fput):
14597         * fns.c (Fremprop):
14598         * fns.c (Fobject_plist):
14599         * alloc.c:
14600         * symbols.c:
14601         Object property list frobbing cleanup.
14602         - Allow any lisp object (compared with `eq'), not just symbols, as
14603           keys in object plists.
14604         - Move symbol plist frobbing into symbols.c, where it belongs.
14605         - Move string plist frobbing into alloc.c, where it belongs.
14606         - Everything's an lrecord now, so no need to test for symbolp, etc.
14607         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
14608
14609         * extents.c: Reorder code to remove declarations.
14610
14611         * frame.h (store_in_alist): Remove useless declaration.
14612
14613 2000-02-07  Martin Buchholz  <martin@xemacs.org>
14614
14615         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
14616         * config.h.in: Add HAVE_XCONVERTCASE.
14617
14618 2000-02-07  Andy Piper  <andy@xemacs.org>
14619
14620         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
14621         it breaks many things.
14622
14623 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
14624
14625         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
14626         actually can start a common comment type.
14627         * src/syntax.h (SYNTAX_END_P): ditto for end.
14628
14629 2000-02-07  Martin Buchholz <martin@xemacs.org>
14630
14631         * XEmacs 21.2.28 is released.
14632
14633 2000-02-06  Martin Buchholz  <martin@xemacs.org>
14634
14635         * event-Xt.c (x_keysym_to_character): New.
14636         (maybe_define_x_key_as_self_inserting_character): New.
14637         (x_has_keysym): New.
14638         Auto-define all keys on the keyboard as self-insert-key.
14639
14640 2000-02-02  Martin Buchholz  <martin@xemacs.org>
14641
14642         * menubar.c (vars_of_menubar): A small code simplification.
14643
14644         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
14645
14646         * ExternalShell.c:
14647         * ExternalClient.c:
14648         * EmacsShell-sub.c:
14649         * EmacsManager.c:
14650         * EmacsFrame.c:
14651         Use consistent style for specifying X resources.
14652
14653         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
14654         This makes (dontusethis-set-symbol-value-handler) actually usable.
14655
14656         * lrecord.h (lrecord_decription_type):
14657         * alloc.c (pdump_register_sub):
14658         (pdump_dump_data):
14659         (pdump_reloc_one):
14660         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
14661         Comply with XEmacs coding style.
14662         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
14663         args, and XD_LISP_OBJECT_ARRAY with 3 args.
14664
14665         * keymap.c (Faccessible_keymaps):
14666         Make (accessible-keymaps map "\C-h") do the Right Thing.
14667         Make (accessible-keymaps map []) do the Right Thing.
14668         Make (accessible-keymaps map "") do the Right Thing.
14669         (check_keymap_definition_loop): New function.
14670         (keymap_store_internal): Keep luser from shooting self in foot,
14671           via (define-key ctl-x-4-map "p" global-map).
14672         Remove fullness slot from struct Lisp_Keymap, since hash tables
14673         are now reliable.
14674         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
14675
14676 2000-01-30  Martin Buchholz  <martin@xemacs.org>
14677
14678         * redisplay.c (init_redisplay): Fix small memory leak.
14679         * elhash.h:
14680         * elhash.c (pdump_reorganize_hash_table):
14681         Rename from reorganize_hash_table. Change prototype.
14682         Reuse the original memory for hentries.  Save 100k.
14683         * alloc.c (PDUMP_READ): new macro.
14684         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
14685         * alloc.c: No need to #ifndef before #undef.
14686
14687         * print.c: Allow debug_print() to print readably by modifying
14688         debug_print_readably.  Use consistent variable names.
14689
14690         * .dbxrc: Try to get things to work even if stopped in a function
14691         without source available by explicitly specifying source files.
14692 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14693
14694         * unexnt.c (_start): Removed bogus code which caused loading heap
14695         from differrent executable file.
14696         Removed bogus assignment to _fmode, which caused inconsistencies.
14697
14698 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14699
14700         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
14701         Have spawnve encapsulation regard DONT_ENCAPSULATE.
14702         Do not preliminary `#define signal sigset'.
14703
14704         * systime.h: Do not prototype environ on windows nt and cygwin,
14705         this conflicts with system header.
14706
14707         * syssignal.h: Use correct define for WINDOWSNT
14708
14709         * sysdep.h: Do not prototype environ on windows nt, this conflicts
14710         with system header.
14711
14712         * sysdep.c (near start of file): Fixed commentary and rearranged
14713         ifdefs in readable order.
14714         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
14715         (start_of_text):
14716         (end_of_text):
14717         (end_of_data): Do not compile in if using PDUMP.
14718
14719         * symsinit.h: Prototyped vars_of_nt().
14720
14721         * ntproc.c (windows9x_p): Added, instead of os_subtype.
14722         (find_child_console): Use it.
14723         (sys_kill): Use it.
14724
14725         * ntheap.h: Do not extern os_subtype.
14726
14727         * ntheap.c (cache_system_info): Do not cache unneeded:
14728         nt_major_version, nt_minor_version and os_subtype.
14729         (recreate_heap): Do not compile in when PDUMPing.
14730
14731         * nt.c (geteuid and friends): Use the new varibale
14732         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
14733         (init_user_info): Removed the above mentioned hackery.
14734         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
14735         stat has been fixed in the C runtime.
14736         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
14737
14738         * file-coding.c (struct file_coding_dump): Do not define
14739         ucs_to_mule_table in the struct if not MULE.
14740         (struct struct lrecord_description fcd_description_1): Do not dump
14741         the above.
14742
14743         * emacs.c (main_1): Call vars_of_nt().
14744         (right before Fdump_emacs_data): Don't need lastfile if using both
14745         portabe dumper and system malloc.
14746
14747         * alloc.c (Fmemory_limit): Conditionalized out.
14748         (pdump): Use OPEN_BINARY for the portable dump file.
14749         (pdump_load): Ditto.
14750
14751 2000-02-02  Mike Alexander  <mta@arbortext.com>
14752
14753         * nt.c (convert_time): Set tm_isdst before calling mktime and
14754         avoid calling it at all if the compiler supports 64 bit integers.
14755         Also initialize utc_base_ft before using it.
14756
14757 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
14758
14759         * frame.c (change_frame_size_1): Take f->internal_border_width
14760         into consideration when calculating the width of the frame.
14761
14762 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14763
14764         * window.c (frame_min_height):
14765         (frame_size_valid_p):
14766         (frame_pixsize_valid_p): Added.
14767         (check_frame_size): Generalized.
14768
14769         * window.h: Prototyped the above.
14770
14771         * lisp.h:
14772         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
14773         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
14774         Deleted Vwin32_* and Vbinary_process_* unused variables.
14775
14776         * device-msw.c (msprinter_init_device): Do not get printer font
14777         list; Added DEVMODE functions.
14778
14779         * frame-msw.c: Added lots of printer code.
14780
14781         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
14782         general.c.
14783
14784         * console-msw.h: Added more msprinter device private slots.
14785
14786 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14787
14788         * event-msw.c (key_needs_default_processing_p): Added.
14789         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
14790
14791 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14792
14793         * glyphs.c (image_instance_layout): Mark image instance as clean
14794         after layout.
14795         (glyph_dirty_p): Removed redundant function.
14796         (invalidate_glyph_geometry_maybe): Added.
14797         (update_glyph_cachel_data): Call it.
14798
14799         * glyphs.h: Prototyped it.
14800
14801         * redisplay.c (add_glyph_rune): Call it.
14802         (redisplay_window): Reset glyphs cachels when frame faces have
14803         changed, thus forcing recomputation of built-in border glyphs.
14804
14805 2000-01-30  Martin Buchholz  <martin@xemacs.org>
14806
14807         * Makefile.in.in: Make portable dumper and purify play well together.
14808         Add imperfect, but better than nothing, support for pdump.
14809         Remove xemacs.dmp when temacs is re-generated.
14810         Don't ignore errors when dumping xemacs.
14811
14812         * symbols.c (maybe_call_magic_handler): Remove one magic number.
14813
14814 2000-01-28  Andy Piper  <andy@xemacs.org>
14815
14816         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
14817         (setup_normal_frame): ditto.
14818         (setup_frame_without_minibuffer): ditto.
14819         (setup_minibuffer_frame): ditto.
14820         (delete_frame_internal): ditto.
14821         (Fmake_frame_invisible): ditto.
14822         (Ficonify_frame): ditto.
14823
14824         * window.h: change Fset_window_buffer signature.
14825
14826         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
14827         (Fset_window_buffer): allow recording of buffer if the window is
14828         the selected window.
14829         (window_loop): Use new Fset_window signature.
14830
14831 2000-01-23  Daniel Pittman  <daniel@danann.net>
14832
14833         * config.h.in: Added template for `HAVE_ATHENA_3D'
14834
14835 2000-01-29  Andy Piper  <andy@xemacs.org>
14836
14837         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
14838
14839         * gutter.c (output_gutter): Don't output if the window isn't live.
14840
14841 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14842
14843         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
14844         of 01/12/00: Moved SetFocus back here where it belongs.
14845
14846 2000-01-23  Andy Piper  <andy@xemacs.org>
14847
14848         * s/cygwin32.h: declare printer things.
14849
14850 2000-01-26  Andy Piper  <andy@xemacs.org>
14851
14852         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
14853         Alexander.
14854
14855 2000-01-24  Andy Piper  <andy@xemacs.org>
14856
14857         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
14858         (mswindows_button_instantiate): Make sure glyph is a pixmap.
14859
14860         * glyphs-widget.c (widget_instantiate): Avoid shadows.
14861
14862         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
14863
14864         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
14865
14866         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
14867         (mswindows_output_display_block): Avoid local shadows.
14868
14869         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
14870         (mswindows_enqueue_mouse_button_event): ditto.
14871         (mswindows_handle_gui_wm_command): remove declaration.
14872
14873         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
14874         warnings.
14875
14876         * console-msw.h: Avoid shadows.
14877         (mswindows_get_toolbar_button_text):
14878         (emacs_mswindows_create_stream_pair):
14879         (emacs_mswindows_delete_stream_pair):
14880         (mswindows_handle_toolbar_wm_command): declare.
14881
14882         * device-msw.c (build_syscolor_string): Avoid shadows.
14883
14884 2000-01-23  Andy Piper  <andy@xemacs.org>
14885
14886         * glyphs-widget.c (widget_instantiate): reverse the items for
14887         layouts so that children are in the expected order.
14888
14889 2000-01-28  Martin Buchholz  <martin@xemacs.org>
14890
14891         * ralloc.c: safe_bcopy ==> memmove
14892         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
14893         * s/msdos.h: Remove BCOPY macros.
14894         * insdel.c (gap_right): Remove BCOPY conditional code.
14895         * insdel.c (gap_left): Remove BCOPY conditional code.
14896         XEmacs demands a working ANSI C compiler - hence memmove.
14897
14898         * regex.c (regex_compile): Remove accidental use of trigraphs.
14899
14900 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14901
14902         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
14903         event timestamp.
14904
14905 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14906
14907         * event-msw.c (mswindows_drain_windows_queue): Added the
14908         parameter.
14909         (mswindows_need_event): Commented the call to
14910         mswindows_drain_windows_queue().
14911         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
14912         only.
14913
14914         * console-msw.h: Moved a few function prototypes here from
14915         event-msw.c.
14916
14917         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
14918         parameter from unsigned short to unsigned long.
14919         (Fmswindows_shell_execute): Added return value.
14920
14921 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
14922
14923         * sysdep.c (init_system_name):
14924           process-unix.c (unix_canonicalized_host_name):
14925         Don't call freeaddrinfo() if getaddrinfo() fails.
14926
14927         * process-unix.c (unix_open_unix_network_stream):
14928         Moved the code to get a port # into address loop.
14929
14930 2000-01-27  Martin Buchholz  <martin@xemacs.org>
14931
14932         * buffer.c (reinit_vars_of_buffer):
14933         The right place to initialize conversion_in_dynarr and
14934         conversion_out_dynarr.
14935
14936         * alloc.c (pdump): Use the real open() till sys_open() is functional.
14937
14938         * process-unix.c (unix_canonicalize_host_name): Muleize.
14939         (unix_open_network_stream): Muleize.
14940
14941         * buffer.h: Fix up prototypes for ralloc.c functions.
14942
14943 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
14944         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
14945         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
14946                 instead of gethostbyname()
14947         * process-unix.c: In unix_canonicalize_host_name() and
14948                 unix_open_network_stream(), add code to use getaddrinfo()
14949                 instead of gethostbyname().
14950
14951 2000-01-27  Daniel Pittman <daniel@danann.net>
14952
14953         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
14954         libs when built with flat Athena.
14955
14956 2000-01-27  Martin Buchholz  <martin@xemacs.org>
14957
14958         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
14959         Use coding standards for function prototypes.
14960
14961 2000-01-25  Martin Buchholz  <martin@xemacs.org>
14962
14963         * dialog-msw.c (push_lisp_string_as_unicode):
14964         * doc.c (unparesseuxify_doc_string):
14965         * dired.c (Fuser_name_completion_1):
14966         * dired.c (Fuser_name_all_completions):
14967         * dired.c (free_user_cache):
14968         * dired.c (user_name_completion):
14969         * console-x.c (get_display_arg_connection):
14970         * minibuf.c (clear_echo_area_internal):
14971         * minibuf.c (echo_area_append):
14972         * eldap.c (Fldap_open):
14973         * eldap.c (Fldap_search_internal):
14974         * frame-x.c (x_set_frame_text_value):
14975         * frame-x.c (x_set_frame_properties):
14976         * frame-x.c (x_create_widgets):
14977         * redisplay-tty.c (term_get_fkeys_1):
14978         * objects-x.c (x_parse_nearest_color):
14979         * objects-x.c (x_valid_color_name_p):
14980         * objects-x.c (x_initialize_font_instance):
14981         * objects-x.c (x_list_fonts):
14982         * objects-x.c (x_find_charset_font):
14983         * tooltalk.c (Fadd_tooltalk_message_arg):
14984         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
14985         * tooltalk.c (Fadd_tooltalk_pattern_arg):
14986         * process-unix.c (unix_create_process):
14987         * ntproc.c (sys_spawnve):
14988         * sound.c (Fplay_sound_file):
14989         * sound.c (Fplay_sound):
14990         * buffer.c (init_initial_directory):
14991         * buffer.c (init_buffer):
14992         * editfns.c (init_editfns):
14993         * editfns.c (Ftemp_directory):
14994         * editfns.c (Fuser_full_name):
14995         * editfns.c (uncache_home_directory):
14996         * editfns.c (get_home_directory):
14997         * editfns.c (Fuser_home_directory):
14998         * editfns.c (Fformat_time_string):
14999         * editfns.c (Fcurrent_time_string):
15000         * gui-x.c (button_item_to_widget_value):
15001         * database.c (Fopen_database):
15002         * event-Xt.c (x_to_emacs_keysym):
15003         * event-Xt.c (x_event_to_emacs_event):
15004         * event-Xt.c (describe_event_window):
15005         * event-msw.c (mswindows_wnd_proc):
15006         * glyphs-eimage.c (jpeg_instantiate):
15007         * glyphs-eimage.c (gif_instantiate):
15008         * glyphs-eimage.c (png_instantiate):
15009         * glyphs-eimage.c (tiff_instantiate):
15010         * glyphs-x.c (xbm_instantiate_1):
15011         * glyphs-x.c (x_xbm_instantiate):
15012         * glyphs-x.c (x_xface_instantiate):
15013         * glyphs-x.c (autodetect_instantiate):
15014         * glyphs-x.c (cursor_font_instantiate):
15015         * glyphs-x.c (x_widget_instantiate):
15016         * glyphs-x.c (x_widget_set_property):
15017         * glyphs-x.c (x_widget_property):
15018         * glyphs-x.c (BUILD_GLYPH_INST):
15019         * print.c (write_string_to_stdio_stream):
15020         * print.c (output_string):
15021         * print.c (Falternate_debugging_output):
15022         * print.c (Fexternal_debugging_output):
15023         * glyphs-msw.c (extract_xpm_color_names):
15024         * glyphs-msw.c (mswindows_xpm_instantiate):
15025         * glyphs-msw.c (bmp_instantiate):
15026         * glyphs-msw.c (resource_name_to_resource):
15027         * glyphs-msw.c (mswindows_resource_instantiate):
15028         * glyphs-msw.c (xbm_instantiate_1):
15029         * glyphs-msw.c (mswindows_xbm_instantiate):
15030         * glyphs-msw.c (mswindows_xface_instantiate):
15031         * glyphs-msw.c (mswindows_widget_instantiate):
15032         * glyphs-msw.c (add_tree_item):
15033         * glyphs-msw.c (add_tab_item):
15034         * glyphs-msw.c (mswindows_combo_box_instantiate):
15035         * glyphs-msw.c (mswindows_widget_property):
15036         * glyphs-msw.c (mswindows_combo_box_property):
15037         * glyphs-msw.c (mswindows_widget_set_property):
15038         * console.c (stuff_buffered_input):
15039         * objects-msw.c (mswindows_initialize_color_instance):
15040         * objects-msw.c (mswindows_valid_color_name_p):
15041         * objects-msw.c (mswindows_list_fonts):
15042         * objects-msw.c (mswindows_font_instance_truename):
15043         * bytecode.c (optimize_compiled_function):
15044         * select-x.c (symbol_to_x_atom):
15045         * select-x.c (x_atom_to_symbol):
15046         * select-x.c (hack_motif_clipboard_selection):
15047         * select-x.c (selection_data_to_lisp_data):
15048         * select-x.c (lisp_data_to_selection_data):
15049         * select-x.c (Fx_get_cutbuffer_internal):
15050         * select-x.c (Fx_store_cutbuffer_internal):
15051         * buffer.h (TO_EXTERNAL_FORMAT): New function.
15052         * buffer.h (TO_INTERNAL_FORMAT): New function.
15053         * emacs.c (make_arg_list_1):
15054         * emacs.c (make_argc_argv):
15055         * emacs.c (main_1):
15056         * emacs.c (Fdump_emacs):
15057         * emacs.c (split_string_by_emchar_1):
15058         * file-coding.h:
15059         * lisp.h:
15060         * lstream.h:
15061         * symsinit.h:
15062         * device-x.c (x_init_device):
15063         * device-x.c (Fx_valid_keysym_name_p):
15064         * device-x.c (Fx_get_font_path):
15065         * device-x.c (Fx_set_font_path):
15066         * glyphs.c (bitmap_to_lisp_data):
15067         * glyphs.c (pixmap_to_lisp_data):
15068         * alloc.c (make_ext_string): Use coding system arguments.  Update
15069         all callers.
15070         * alloc.c (build_string):
15071         * callproc.c (child_setup):
15072         * callproc.c (init_callproc):
15073         * fileio.c (lisp_strerror):
15074         * fileio.c (directory_file_name):
15075         * fileio.c (Fexpand_file_name):
15076         * fileio.c (Ffile_truename):
15077         * fileio.c (Fsysnetunam):
15078         * fileio.c (Fdo_auto_save):
15079         * sysdep.c (sys_readdir):
15080         * tests.c: New file.  Allow adding C tests.
15081         Replace GET_* macros with a more comprehensible and flexible
15082         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
15083         Modify all calls.
15084         Any coding system can be used to do format conversion.
15085         Eliminate enum external_data_format.
15086         Eliminate convert_to_external_format.
15087         Eliminate convert_to_internal_format.
15088         Make sure file-name, keyboard, terminal, and ctext are always
15089         defined as coding systems or aliases.  Make
15090         file-name-coding-system, terminal-coding-system, and
15091         keyboard-coding-system magical variables that are equivalent to
15092         defining the corresponding coding system aliases.
15093
15094         * file-coding.c (Fcoding_system_canonical_name_p): New function.
15095         * file-coding.c (Fcoding_system_alias_p): New function.
15096         * file-coding.c (Fcoding_system_aliasee): New function.
15097         * file-coding.c (append_suffix_to_symbol): New function.
15098         * file-coding.c (dangling_coding_system_alias_p): New function.
15099         * file-coding.c (Ffind_coding_system):
15100         * file-coding.c (Fcopy_coding_system):
15101         * file-coding.c (encode_coding_no_conversion):
15102         * file-coding.c (syms_of_file_coding):
15103         * file-coding.c (vars_of_file_coding):
15104         Rewrite coding system alias code.
15105         Allow nested aliases, like symbolic links.
15106         Allow redefinition of coding system aliases.
15107         Prevent existence of dangling coding system aliases.
15108
15109         * dired.c (Fuser_name_completion_1):
15110         * dired.c (Fuser_name_all_completions):
15111         A crash would happen if user did QUIT in the middle of building
15112         user_name_cache.  Remove redundant code in mainline and unwind_protect.
15113
15114         * lisp.h:
15115         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
15116
15117         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
15118         an unsigned char *.  Update all callers.
15119
15120 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15121
15122         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
15123
15124 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15125
15126         * elhash.c (hentry_description): Use more portable definition.
15127         (resize_hash_table): Initialize new hentries using
15128         xnew_array_and_zero, thereby simplifying the code.
15129
15130         * mule-charset.c (make_charset): Make sure entire object is
15131         initialized, to avoid Purify warnings.
15132
15133         * alloc.c (resize_string): Fix unlikely crash with big strings.
15134
15135 2000-01-24  Martin Buchholz  <martin@xemacs.org>
15136
15137         * realpath.c (xrealpath):
15138         Don't call getwd().
15139
15140 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15141
15142         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
15143
15144 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
15145
15146         * unexelfsgi.c (unexec): Change the way we decide which segment
15147         should be extended.
15148
15149         Assumption that .bss section should be outside the PT_LOADable
15150         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
15151         it's present) is inside the 'data' segment. This would fail the
15152         test which was used to find a segment to grow and cover new
15153         heap. Instead of this assumption, I created another one - on IRIX
15154         the segment to grow should start below .bss and it's address
15155         should extent above the end of .bss. Once this segment is
15156         identified, it's grown to accommodate the new heap and new
15157         zero-length .bss section is added at the end of .data2.
15158
15159 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15160
15161         * eval.c (Feval): Wrong number of arguments should use original
15162         function, not the indirect_function version of it.
15163
15164 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
15165
15166         * glyphs-x.c (x_button_instantiate): Don't add image if
15167         it is not a pixmap.
15168         (x_locate_pixmap_file): Call Fexpand_file_name when file name
15169         is relative.
15170
15171 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
15172
15173         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
15174         declaration.
15175         (DEFVAR_INT_MAGIC): Ditto.
15176         (DEFVAR_BOOL_MAGIC): Ditto.
15177         * glyphs.h: Reindent backslash.
15178
15179 2000-01-24  Martin Buchholz  <martin@xemacs.org>
15180
15181         * glyphs-widget.c (layout_query_geometry):
15182         (layout_layout): Use correct types for gheight, gwidth.
15183
15184 2000-01-24  Martin Buchholz  <martin@xemacs.org>
15185
15186         * EmacsManager.c (QueryGeometry): Purified.
15187
15188 2000-01-23  Martin Buchholz  <martin@xemacs.org>
15189
15190         * alloc.c (make_float): Make sure entire object is initialized, to
15191         avoid Purify warnings.
15192         (pdump_register_sub): Remove useless assignment.
15193         (pdump): Use xmalloc, not malloc.
15194         (pdump_load): Use xmalloc, not malloc.
15195
15196 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15197
15198         * callproc.c:
15199         * dired-msw.c:
15200         * fileio.c:
15201         * process-nt.c:
15202         * redisplay-msw.c:
15203         * sysdep.c: Removed redundant #include <windows.h>
15204
15205 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15206
15207         * frame.c (delete_frame_internal): Do not delete device when its
15208         implementation so declares.
15209         (delete_frame_internal): Set device selected frame to nil when
15210         last frame goes away.
15211
15212         * device-msw.c (msprinter_device_system_metrics): Implemented.
15213         (mswindows_device_system_metrics): Added 'device-dpi property.
15214
15215         * device.c: (Fdevice_printer_p): Added.
15216         Added 'offset-workspace device metric.
15217
15218         * console.h (device_metrics): Declared DM_offset_workspace.
15219
15220 2000-01-23  Martin Buchholz  <martin@xemacs.org>
15221
15222         * fileio.c (Ffile_truename): Remove pointless and confusing
15223         initialization of elen.
15224
15225         * glyphs-widget.c: Compiler warning fixes.
15226
15227 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
15228
15229         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
15230         instead of a Lisp_Object as argument to make it consistent with
15231         the other LIVE_P macros.
15232         (CHECK_LIVE_PROCESS): New macro.
15233
15234         * process.c: Declare Qprocess_live_p.
15235         (Fprocess_live_p): New function.
15236         (create_process): Use PROCESS_LIVE_P.
15237         (read_process_output): Ditto.
15238         (set_process_filter): Ditto.
15239         (Fdelete_process): Ditto.
15240         (kill_buffer_processes): Ditto
15241         (process_send_signal): Use CHECK_LIVE_PROCESS.
15242         (Fprocess_input_coding_system): Check whether process is still
15243         alive (fix PR#1061).
15244         (Fprocess_output_coding_system): Ditto.
15245         (Fprocess_coding_system): Ditto.
15246         (Fset_process_input_coding_system): Ditto.
15247         (Fset_process_output_coding_system): Ditto.
15248
15249 2000-01-23  Andy Piper  <andy@xemacs.org>
15250
15251         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
15252         layout and widget.
15253
15254         * glyphs.c (mark_image_instance): take into account changed
15255         image_instance format.
15256         (image_instance_equal): ditto.
15257         (image_instance_hash): ditto.
15258
15259         * glyphs-widget.c (widget_instantiate): Incorporate layout
15260         instantiation here. Delay layout of the layout until later.
15261         (layout_instantiate): deleted.
15262         (layout_query_geometry): new function. get the geometry of a
15263         layout.
15264         (layout_layout): layout a layout dynamically.
15265         (image_instantiator_widget): New function - splitting up
15266         image_instantiator_format_create_glyphs_widget for netwinder
15267         compilation.
15268         (image_instantiator_buttons):
15269         (image_instantiator_edit_fields):
15270         (image_instantiator_combo_box):
15271         (image_instantiator_scrollbar):
15272         (image_instantiator_progress_guage):
15273         (image_instantiator_tree_view):
15274         (image_instantiator_tab_control):
15275         (image_instantiator_labels):
15276         (image_instantiator_layout): ditto.
15277         (image_instantiator_format_create_glyphs_widget): Call preceding
15278         functions.
15279
15280 2000-01-22  Martin Buchholz  <martin@xemacs.org>
15281
15282         * process.c (Fset_process_coding_system):
15283         * device-x.c (Fx_keysym_hash_table):
15284         Docstring fixes.
15285
15286         * lstream.c (Lstream_write): Return documented value, not 0.
15287
15288         * fileio.c (directory_file_name):
15289         (Fsubstitute_in_file_name):
15290         (Fsubstitute_insert_file_contents_internal):
15291         (Fwrite_region_internal):
15292         * emacs.c:
15293         * sysdep.c:
15294         * getloadavg.c:
15295         * systty.h:
15296         Remove vestigial APOLLO-conditional code.
15297
15298 2000-01-21  Martin Buchholz  <martin@xemacs.org>
15299
15300         * getpagesize.h: Add guard macros.
15301         * libsst.h: Add guard macros.
15302         * libst.h: Add guard macros.
15303         * line-number.h: Add guard macros.
15304         * ndir.h: Add guard macros.
15305         * sysfloat.h: Add guard macros.
15306         * sysfile.h: Add guard macros.
15307         * sysproc.h: Add guard macros.
15308         * syswait.h: Add guard macros.
15309         * xintrinsic.h: Add guard macros.
15310         * xintrinsicp.h: Add guard macros.
15311         * xmmanager.h: Add guard macros.
15312         * xmmanagerp.h: Add guard macros.
15313         * xmprimitive.h: Add guard macros.
15314         * xmu.h: Add guard macros.
15315         * gpmevent.h: Add copyright statement. Add guard macros.
15316         * miscplay.h: Add guard macros.
15317         * *.h: Use consistent C-standards-approved guard macro names.
15318
15319         * opaque.c (make_opaque): Switch parameter order.
15320         * opaque.h (make_opaque): Switch parameter order.
15321         Update all callers.
15322         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
15323
15324         * config.h.in (type_checking_assert): Added.
15325         (bufpos_checking_assert): Added.
15326
15327 2000-01-21  Martin Buchholz  <martin@xemacs.org>
15328
15329         * alloc.c: Harmless pdump changes.
15330         - Use countof().
15331         - spell alignment correctly.
15332         * sysdep.c: Use countof()
15333
15334 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15335
15336         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
15337         initially_selected_for_input() console method, default to 0.
15338         (semi_canonicalize_console_connection): Try to delegate to
15339         canonicalize_console_connection if no such console method.
15340         (canonicalize_console_connection): Vice versa.
15341         (print_console): Do not print nil connection.
15342
15343         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
15344         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
15345         (XDEVIMPF_FRAMELESS_OK): Added.
15346         (CONSOLE_INHERITS_METHOD): Added.
15347
15348         * console-msw.c (mswindows_canonicalize_console_connection):
15349         Added.
15350         (mswindows_canonicalize_device_connection): Added.
15351
15352         * console-msw.h (struct msprinter_device): Added this struct and
15353         accessor macros.
15354         (mswindows_device): Made fontlist a lisp object.
15355
15356         * device.c (semi_canonicalize_device_connection):  Try to delegate
15357         to canonicalize_device_connection if no such console method.
15358         (canonicalize_device_connection): Vice versa.
15359         (print_device): Do not print nil connection.
15360
15361         * device-msw.c (mswindows_init_device): Call InitCommonControls
15362         when have widgets.
15363         (mswindows_delete_device): Removed fontlist deallocation.
15364         (mswindows_mark_device): Added.
15365
15366         * events.c (event_equal): Added abort() at unreached code.
15367         (event_hash): Ditto.
15368
15369         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
15370         fallback tags of Windows devices.
15371
15372         * general.c (syms_of_general): Initialized Qmsprinter.
15373
15374         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
15375         of fallback tags of Windows devices.
15376
15377         * lisp.h: Declared Qmsprinter.
15378
15379         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
15380         of strings.
15381         (mswindows_list_fonts): Ditto.
15382         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
15383         that it can be used by both mswindows and msprinter devices.
15384         (initialize_font_instance): Added.
15385         (mswindows_initialize_font_instance): Use it.
15386         (msprinter_initialize_font_instance): Added.
15387
15388         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
15389         and implementation flags check.
15390         (redisplay_without_hooks): Changed the call to the above.
15391         (Fredraw_device): Ditto.
15392         (Fredisplay_device): Ditto.
15393
15394         * redisplay-msw.c (get_frame_dc): Implemented.
15395         (get_frame_compdc): Implemented.
15396         (many functions): Use the two functions above to get device
15397         contexts, ether for a window or a printer.
15398
15399 2000-01-21  Olivier Galibert  <galibert@pobox.com>
15400
15401         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
15402         initialization here.
15403         (init_symbols_once_early): Call it.
15404         * emacs.c (main_1): Call it.
15405         * symsinit.h: Declare it.
15406
15407 2000-01-19  Olivier Galibert  <galibert@pobox.com>
15408
15409         * alloc.c: Use a lrecord_header * in the backtrace instead of a
15410         Lisp_Object.
15411         (pdump_backtrace): Ditto.
15412         (pdump_register_object): Ditto.  Cleanup use of the pointers.
15413         (pdump_get_entry): Abort if trying to register a null pointer.
15414         (pdump_dump_data): Cleanup types when relocating.
15415         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
15416         (pdump_dump_rtables): Remove bad casts.
15417         (pdump_load): Cleanup relocation w.r.t union type.  Use a
15418         Lisp_Object instead of a EMACS_INT for the hashtable
15419         reorganization.
15420
15421 2000-01-20  Martin Buchholz  <martin@xemacs.org>
15422
15423         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
15424
15425         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
15426
15427         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
15428
15429         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
15430
15431 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15432
15433         * faces.h (FACE_STRIKETHRU_P): Added.
15434
15435         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
15436         of font variants.
15437
15438         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
15439         (mswindows_set_dc_font): New function, aware of font variants,
15440         separated from mswindows_update_dc.
15441
15442         * objects-msw.h (struct mswindows_font_instance_data): Added
15443         definition.
15444
15445         * objects-msw.c (mswindows_finalize_font_instance): Delete all
15446         cached fonts and the data structure.
15447         (mswindows_initialize_font_instance): Added creation of font data
15448         structure.
15449         (mswindows_print_font_instance): Print at least something.
15450         (mswindows_create_font_variant): Implemented.
15451         (mswindows_get_hfont): Implemented.
15452
15453 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
15454
15455         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
15456         prototyping problem with msvc.
15457
15458         * emacs.c (main_1): added syms_of_gui_mswindows() call
15459
15460         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
15461         syms_of_gui_mswindows() function
15462
15463         * symsinit.h: added the prototype for syms_of_gui_mswindows()
15464
15465 2000-01-18  Martin Buchholz <martin@xemacs.org>
15466
15467         * XEmacs 21.2.27 is released.
15468
15469 2000-01-18  Martin Buchholz  <martin@xemacs.org>
15470
15471         * glyphs-eimage.c (struct tiff_error_struct):
15472         (tiff_error_func):
15473         (tiff_warning_func):
15474         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
15475
15476         * unexmips.c:
15477         * unexhp9k3.c:
15478         * unexfreebsd.c:
15479         * unexec.c: Remove vestigial Lucid C code.
15480         * unexalpha.c:
15481         * unexaix.c:
15482         * termcap.c:
15483         * libsst.c: Ansify.
15484         Remove declarations of errno and strerror().
15485
15486         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
15487
15488         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
15489
15490 2000-01-16  Martin Buchholz  <martin@xemacs.org>
15491
15492         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
15493         Optimize.
15494
15495 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15496
15497         * md5.c:
15498         * file-coding.c:
15499         * file-coding.h:
15500         Change enum eol_type to eol_type_t.
15501
15502 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15503
15504         * gui.c (get_gui_callback): Check cons before accessing car.
15505
15506 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15507
15508         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
15509         (XSETSPECIFIER_TYPE): Ditto.
15510
15511 2000-01-17  Didier Verna  <didier@xemacs.org>
15512
15513         * redisplay.c (generate_fstring_runes): compute string size in
15514         characters, not bytes.
15515
15516 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
15517
15518         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
15519
15520 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
15521
15522         * print.c (print_error_message): Call print_prepare().
15523
15524 2000-01-14  Martin Buchholz  <martin@xemacs.org>
15525
15526         * .dbxrc: Renamed from dbxrc.
15527
15528         * events.c (event_to_character):
15529         Use `assert (foo)' instead of `if (!foo) abort()'
15530
15531         * .gdbinit (xtype): Add documentation.
15532         * .gdbinit (check-temacs): New function.
15533         * .gdbinit (check-xemacs): New function.
15534         * dbxrc (check-xemacs): New function.
15535         * dbxrc (check-xemacs): New function.
15536
15537 2000-01-14  Andy Piper  <andy@xemacs.org>
15538
15539         * glyphs-widget.c (widget_query_geometry): Make sure that we
15540         calculate default dimensions correctly.
15541
15542 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15543
15544         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
15545
15546         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
15547         pdump_wire'd variable.
15548
15549         * emacs.c: (main_1): Conditionalized calls to
15550         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
15551
15552 2000-01-13  Martin Buchholz  <martin@xemacs.org>
15553
15554         * window.c (Fset_window_configuration):
15555         * sysdep.c (_start):
15556         * input-method-motif.c (res):
15557         * event-Xt.c (Xt_process_to_emacs_event):
15558         Simple compiler warning fixes.
15559
15560         * bytecode.c (funcall_compiled_function): Use the original
15561         function symbol on the backtrace list in preference to the
15562         compiled_function object in error messages.
15563
15564 2000-01-13  Andy Piper  <andy@xemacs.org>
15565
15566         * glyphs-x.c (update_widget_face): Make sure we update the widget
15567         background as well as foreground.
15568
15569 2000-01-13  Andy Piper  <andy@xemacs.org>
15570
15571         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
15572         fields to subwindow.
15573         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
15574         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
15575         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
15576         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
15577
15578         * glyphs-widget.c (check_valid_tab_orientation): new function.
15579         (initialize_widget_image_instance): zero orientation and
15580         justification.
15581         (widget_instantiate): pick up orientation.
15582         (tab_control_query_geometry): return appropriate values for
15583         vertical tabs.
15584
15585         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
15586         appropriate creation flags for left, right and bottom tabs.
15587
15588         * s/cygwin32.h: add tab definitions.
15589
15590 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15591
15592         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
15593         frame upon hiding a subwindow.
15594         (mswindows_button_instantiate): Changed the push button style to
15595         BS_PUSHBUTTON.
15596         (mswindows_button_instantiate): Removed button BS_NOTIFY
15597         style.
15598         (mswindows_button_instantiate): Removed redundant check for
15599         a disabled gui item.
15600         (mswindows_button_instantiate): Made use of WS_TABSTOP
15601         consistent: "operable" controls (edit, button, tree, scroll) have
15602         this style, "display-only" ones (static, progress gauge) do
15603         not. This style is currently ignored by XEmacs though. Also,
15604         removed the WS_EX_CONTROLPARENT style - it is not for children,
15605         it is for their parents!
15606         (mswindows_edit_field_instantiate): Ditto.
15607         (mswindows_progress_gauge_instantiate): Ditto.
15608         (mswindows_tree_view_instantiate): Ditto.
15609         (mswindows_tab_control_instantiate): Ditto.
15610         (mswindows_scrollbar_instantiate): Ditto.
15611         (mswindows_combo_box_instantiate): Ditto.
15612         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
15613         style to the "clip" window.
15614         (mswindows_button_instantiate): Removed compilation warning by
15615         equally typing terms of the ?: operator.
15616
15617 2000-01-12  Didier Verna  <didier@xemacs.org>
15618
15619         * redisplay.c (generate_fstring_runes): new parameter holding the
15620         last modeline-format extent.
15621         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
15622         extent, fill the glyph block with it.
15623         (generate_fstring_runes): handle these parameters.
15624         (generate_formatted_string_db): ditto.
15625
15626         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
15627         glyphs'extents in the modeline.
15628
15629 1999-01-11  Mike Woolley  <mike@bulsara.com>
15630
15631         * ntheap.c: Reduced the reserved heap space from 1Gb down to
15632         256Mb, as a workaround for the non-starting problem many people
15633         have experienced.
15634
15635 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15636
15637         * console-tty.c (Fset_console_tty_output_coding_system):
15638         Force redrawing tty frame.
15639
15640 2000-01-10  Didier Verna  <didier@xemacs.org>
15641
15642         * redisplay.c (generate_fstring_runes): fix size computation bug.
15643
15644 2000-01-09  William M. Perry <wmperry@aventail.com>
15645
15646         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
15647
15648 2000-01-09  Andy Piper  <andy@xemacs.org>
15649
15650         * glyphs-msw.c: index -> i to avoid shadows.
15651         (xbm_create_bitmap_from_data): make static.
15652         (check_valid_string_or_int): deleted.
15653         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
15654
15655         * glyphs-x.c (x_update_subwindow): remove unused args.
15656
15657         * glyphs.c (glyph_image_instance): return the thing. Don't set the
15658         back pointer - this is done in allocate_image_instance.
15659         (query_string_font): return Qnil to make the compiler happy.
15660         (unmap_subwindow): set to ~0 to make the compiler happy.
15661         (glyph_query_geometry): comment out until used.
15662         (glyph_layout): ditto.
15663
15664 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
15665
15666         * insdel.c (signal_after_change): Remove extraneous unbind_to().