update.
[chise/xemacs-chise.git.1] / src / ChangeLog
1 2003-04-24  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2
3         * mule-charset.c (Qmap_gb12345): Renamed from `Qchinese_gb12345'.
4         (syms_of_mule_charset): Add new symbol `=gb12345' instead of
5         `chinese-gb12345'.
6         (complex_vars_of_mule_charset): Rename `chinese-gb12345' to
7         `=gb12345'.
8
9 2003-04-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
10
11         * mule-charset.c (Qmap_gb2312): Renamed from `Qchinese_gb2312'.
12         (syms_of_mule_charset): Add new symbol `=gb2312' instead of
13         `chinese-gb2312'.
14         (complex_vars_of_mule_charset): Rename `chinese-gb2312' to
15         `=gb2312'.
16
17 2003-04-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
18
19         * mule-charset.c (Qmap_big5): Renamed from `Qchinese_big5'.
20         (syms_of_mule_charset): Add new symbol `=big5' instead of
21         `chinese-big5'.
22         (complex_vars_of_mule_charset): Rename `chinese-big5' to `=big5'.
23
24 2003-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
25
26         * mule-charset.c (Qmap_ks_x1001): Renamed from `Qkorean_ksc5601'.
27         (syms_of_mule_charset): Add new symbol `=ks-x1001' instead of
28         `korean-ksc5601'.
29         (complex_vars_of_mule_charset): Rename `korean-ksc5601' to
30         `=ks-x1001'.
31
32 2003-04-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
33
34         * mule-charset.c (Qmap_jis_x0212): Renamed from
35         `Qjapanese_jisx0212'.
36         (syms_of_mule_charset): Add new symbol `=jis-x0212' instead of
37         `japanese-jisx0212'.
38         (complex_vars_of_mule_charset): Rename `japanese-jisx0212' to
39         `=jis-x0212'.
40
41 2003-04-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
42
43         * mule-charset.c (Qmap_jis_x0208_1983): Renamed from
44         `Qjapanese_jisx0208'.
45         (syms_of_mule_charset): Add new symbol `=jis-x0208-1983' instead
46         of `japanese-jisx0208'.
47         (complex_vars_of_mule_charset): Rename `japanese-jisx0208' to
48         `=jis-x0208-1983'.
49
50 2003-04-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
51
52         * mule-charset.c (Qmap_jis_x0208_1978): Renamed from
53         `Qjapanese_jisx0208_1978'.
54         (syms_of_mule_charset): Add new symbol `=jis-x0208-1978' instead
55         of `japanese-jisx0208-1978'.
56         (complex_vars_of_mule_charset): Rename `japanese-jisx0208-1978' to
57         `=jis-x0208-1978'.
58
59 2003-04-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
60
61         * chartab.c (decode_char_table_range): CHARTAB_RANGE_DEFAULT is
62         only for XEmacs CHISE.
63
64 2003-04-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
65
66         * char-ucs.h: Compact non-ISO-IR charset-ids.
67         (LEADING_BYTE_UCS): Changed to -177.
68         (LEADING_BYTE_CONTROL_1): Changed to -77.
69         (LEADING_BYTE_UCS_BMP): Changed to -176.
70         (LEADING_BYTE_JAPANESE_JISX0208_1990): Changed to -168.
71
72 2003-04-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
73
74         * mule-charset.c (Qiso_ir): New variable.
75         (Fmake_charset): Recognise new property `iso-ir'.
76         (syms_of_mule_charset): Add new symbol `iso-ir'.
77
78 2003-04-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
79
80         * char-ucs.h: Change charset-id of ISO-IR sets from ISO-IR-number
81         n to -n; charset-id of non ISO-IR sets are changed to positive
82         numbers.
83
84 2003-03-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
85
86         * text-coding.c (decode_add_er_char): Use XUINT instead of XINT
87         for &MCS-XXXXXXXX; values.
88
89 2003-03-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
90
91         * mule.c (Vxemacs_chise_version): Renamed from
92         `Vutf_2000_version'.
93         (vars_of_mule): Add new variable `xemacs-chise-version'; define
94         `utf-2000-version' as an alias for `xemacs-chise-version'.
95
96 2003-03-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
97
98         * mule-charset.c: Include <chise.h> when `CHISE' is defined.
99         (load_char_decoding_entry_maybe): Use libchise when `CHISE' is
100         defined.
101
102         * config.h.in (CHISE): New macro.
103
104 2003-03-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
105
106         * mule-charset.c (put_char_ccs_code_point): Refer `=ucs' instead
107         of `ucs'.
108         (Qmap_ucs): New variable.
109         (syms_of_mule_charset): Add new symbol `=ucs'.
110         (complex_vars_of_mule_charset): Rename `ucs' to `=ucs'.
111
112         * fns.c (ids_format_unit): Refer `=ucs' instead of `ucs'.
113         (simplify_char_spec): Likewise.
114
115         * chartab.c (Fdefine_char): Refer `=ucs' as same as `ucs'.
116
117         * char-ucs.h (Qmap_ucs): New extern variable.
118
119 2003-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
120
121         * mule-charset.c (Qmap_jis_x0208): Renamed from `Qjis_x0208'.
122         (Qmap_jis_x0208_1990): Renamed from `Qjapanese_jisx0208_1990';
123         don't define it when UTF2000 is not defined.
124         (syms_of_mule_charset): Modify for `Qmap_jis_x0208'; rename
125         `japanese-jisx0208-1990' to `=jis-x0208-1990'; don't define it
126         when UTF2000 is not defined.
127         (complex_vars_of_mule_charset): Modify for `Qmap_jis_x0208';
128         rename `japanese-jisx0208-1990' to `=jis-x0208-1990'.
129
130 2003-03-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
131
132         * char-ucs.h (LEADING_BYTE_UCS_GB): Deleted.
133
134         * mule-charset.c (Vcharset_ucs_gb): Deleted.
135         (Qucs_gb): Deleted.
136         (syms_of_mule_charset): Delete `ucs-gb'.
137         (complex_vars_of_mule_charset): Likewise.
138
139 2003-03-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
140
141         * char-ucs.h (LEADING_BYTE_UCS_CNS): Deleted.
142
143         * mule-charset.c (Vcharset_ucs_cns): Deleted.
144         (Qucs_cns): Deleted.
145         (syms_of_mule_charset): Delete `ucs-cns'.
146         (complex_vars_of_mule_charset): Likewise.
147
148 2003-03-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
149
150         * char-ucs.h (LEADING_BYTE_UCS_JIS): Deleted.
151
152         * mule-charset.c (Vcharset_ucs_jis): Deleted.
153         (Qucs_jis): Deleted.
154         (syms_of_mule_charset): Delete `ucs-jis'.
155         (complex_vars_of_mule_charset): Likewise.
156
157 2003-03-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
158
159         * char-ucs.h (LEADING_BYTE_UCS_KS): Deleted.
160
161         * mule-charset.c (Vcharset_ucs_ks): Deleted.
162         (Qucs_ks): Deleted.
163         (syms_of_mule_charset): Delete `ucs-ks'.
164         (complex_vars_of_mule_charset): Likewise.
165
166 2003-03-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
167
168         * mule-charset.c (Vcharset_ideograph_daikanwa_2): Deleted.
169         (Qideograph_daikanwa_2): Deleted.
170         (syms_of_mule_charset): Delete `ideograph-daikanwa-2'.
171         (complex_vars_of_mule_charset): Likewise.
172
173         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): Deleted.
174         (LEADING_BYTE_DAIKANWA_1): Deleted.
175         (LEADING_BYTE_DAIKANWA_2): Deleted.
176         (MIN_CHAR_DAIKANWA): Deleted.
177         (MAX_CHAR_DAIKANWA): Deleted.
178
179 2003-02-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
180
181         * char-ucs.h (LEADING_BYTE_DAIKANWA_3): Deleted.
182         (LEADING_BYTE_HANZIKU_{1..12}): Deleted.
183         ({MIN|MAX}_CHAR_HANZIKU_{1..12}): Deleted.
184
185         * mule-charset.c (Vcharset_ideograph_hanziku_{1..12}): Deleted.
186         (Vcharset_ideograph_daikanwa): Deleted.
187         (Qideograph_hanziku_{1..12}): Deleted.
188         (Qideograph_daikanwa): Deleted.
189         (encode_builtin_char_1): Don't use {MIN|MAX}_CHAR_DAIKANWA and
190         Vcharset_ideograph_daikanwa.
191         (syms_of_mule_charset): Delete `ideograph-daikanwa' and
192         `ideograph-hanziku-{1..12}'.
193         (complex_vars_of_mule_charset): Likewise.
194
195 2003-02-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
196
197         * char-ucs.h (LEADING_BYTE_GT_PJ_{1..11}): Deleted.
198
199         * mule-charset.c (Vcharset_ideograph_gt_pj_{1..11}): Deleted.
200         (Qideograph_gt_pj_{1..11}): Deleted.
201         (syms_of_mule_charset): Delete `ideograph-gt-pj-{1..11}'.
202         (complex_vars_of_mule_charset): Likewise.
203
204 2003-02-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
205
206         * mule-charset.c (Vcharset_ucs_big5): Deleted.
207         (Vcharset_ideograph_gt): Deleted.
208         (Qucs_big5): Deleted.
209         (Qideograph_gt): Deleted.
210         (syms_of_mule_charset): Delete symbol `ucs-big5' and
211         `ideograph-gt'.
212         (complex_vars_of_mule_charset): Delete coded-charset `ucs-big5'
213         and `ideograph-gt'.
214
215         * char-ucs.h (LEADING_BYTE_UCS_BIG5): Deleted.
216         (LEADING_BYTE_GT): Deleted.
217         (MIN_CHAR_GT): Deleted.
218         (MAX_CHAR_GT): Deleted.
219
220 2003-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
221
222         * chartab.c (Fput_char_attribute): Canonicalise charset-aliases.
223
224 2003-01-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
225
226         * chartab.c (save_uint8_byte_table): Add new argument `filter'.
227         (save_uint16_byte_table): Likewise.
228         (save_byte_table): Likewise; convert values by it.
229         (Fput_char_attribute): Don't use `char-refs-simplify-char-specs'
230         for `ideographic-structure'.
231         (Fsave_char_attribute_table): Use `char-refs-simplify-char-specs'
232         as the filter for `ideographic-structure'.
233
234 2003-01-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
235
236         * chartab.c (put_char_composition): New function.
237         (Fput_char_attribute): Use `put_char_composition'; use
238         `Fchar_refs_simplify_char_specs' for `ideographic-structure'.
239
240         * fns.c (simplify_char_spec): New function.
241         (char_ref_simplify_spec): New function.
242         (Fchar_refs_simplify_char_specs): New function.
243         (syms_of_fns): Add new builtin function
244         `char-refs-simplify-char-specs'.
245
246 2003-01-05  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
247
248         * mule-charset.c (Vcharset_ideograph_cbeta): Deleted.
249         (Qideograph_cbeta): Deleted.
250         (syms_of_mule_charset): Don't define `ideograph-cbeta'.
251         (complex_vars_of_mule_charset): Likewise.
252
253         * char-ucs.h (LEADING_BYTE_CBETA): Deleted.
254         (MIN_CHAR_CBETA): Comment out.
255         (MAX_CHAR_CBETA): Likewise.
256
257 2002-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
258
259         * mule-charset.c, chartab.h, casetab.c, char-ucs.h, chartab.c: Use
260         `HAVE_CHISE_CLIENT' instead of `HAVE_DATABASE' to indicate the
261         CHISE client feature.
262
263 2002-12-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
264
265         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.20.
266
267 2002-12-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
268
269         * mule-charset.c (charset_lookup_description_1): Use
270         `NUM_LEADING_BYTES' in UTF-2000.
271
272 2002-12-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
273
274         * char-ucs.h (GC_CHARSETP): Deleted.
275
276 2002-12-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
277
278         * char-ucs.h (MAX_CHAR_GT): Updated.
279
280 2002-12-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
281
282         * text-coding.c: Sync with XEmacs 21.4.10.
283
284 2002-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
285
286         * mule-charset.c (Vcharset_china3_jef): Deleted.
287         (Qchina3_jef): Deleted.
288         (syms_of_mule_charset): Don't define `china3-jef'.
289         (complex_vars_of_mule_charset): Likewise.
290
291         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Deleted.
292         (MIN_CHAR_CHINA3_JEF): Comment out.
293         (MAX_CHAR_CHINA3_JEF): Comment out.
294
295 2002-11-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
296
297         * mule-charset.c (Vcharset_ucs_gb): New variable.
298         (Qucs_gb): New variable.
299         (syms_of_mule_charset): Add new symbol `ucs-gb'.
300         (complex_vars_of_mule_charset): Add new coded-charset `ucs-gb'.
301
302         * char-ucs.h (LEADING_BYTE_UCS_GB): New macro.
303
304 2002-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
305
306         * mule-charset.c (charset_code_point): if a coded-charset has a
307         final-byte, don't inherit the builtin range of the mother CCS.
308
309 2002-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
310
311         * mule-charset.c (charset_code_point): Fix problem about
312         inheritance.
313
314 2002-11-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
315
316         * mule-charset.c (decode_builtin_char): Reorganized.
317
318 2002-10-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
319
320         * text-coding.c (char_encode_as_entity_reference): Modify for
321         `charset_code_point'.
322         (char_encode_shift_jis): Likewise.
323         (char_encode_big5): Likewise.
324         (char_encode_utf8): Likewise.
325         (char_encode_iso2022): Likewise.
326
327         * mule-charset.c (charset_code_point): Add new argument
328         `defined_only'.
329         (Fencode_char): Add new optional argument `defined_only'.
330
331         * chartab.c (put_char_table): Modify for `charset_code_point'.
332
333         * char-ucs.h (charset_code_point): Add new argument
334         `defined_only'.
335         (encode_char_1): Modify for `charset_code_point'.
336
337 2002-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
338
339         * mule-charset.c (complex_vars_of_mule_charset): Don't specify
340         `MIN_CHAR_THAI' and `MAX_CHAR_THAI' for `thai-tis620'.
341
342 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
343
344         * mule-charset.c (Vcharset_jis_x0208): New variable in UTF-2000.
345         (Qjis_x0208): Likewise.
346         (decode_builtin_char): Prefer XCHARSET_MAX_CODE(charset) than
347         XCHARSET_FINAL(charset).
348         (charset_code_point): Modify condition for final-byte based
349         builtin-chars.
350         (syms_of_mule_charset): Add new symbol `=jis-x0208' in UTF-2000.
351         (complex_vars_of_mule_charset): Add new coded-charset `=jis-x0208'
352         in UTF-2000; specify `=jis-x0208' as the mother of
353         `japanese-jisx0208-1978', `japanese-jisx0208' and
354         `japanese-jisx0208-1990' in UTF-2000.
355
356 2002-10-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
357
358         * char-ucs.h (LEADING_BYTE_JIS_X0208): New macro.
359
360 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
361
362         * text-coding.c (decode_coding_utf16): Support UTF-16.
363         (char_encode_utf16): Fixed.
364
365 2002-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
366
367         * text-coding.c (Qutf16): New variable in MULE.
368         (Fmake_coding_system): Accept `utf-16' as `type' in MULE.
369         (Fcoding_system_type): Add `utf-16' in MULE.
370         (struct detection_state): Add a structure for utf16 in MULE.
371         (detect_coding_type): Setup st->utf16.mask in MULE.
372         (mule_decode): Use `decode_coding_utf16' for `CODESYS_UTF16' in
373         MULE.
374         (reset_encoding_stream): Use `char_encode_utf16' and
375         `char_finish_utf16' for `CODESYS_UTF16' in MULE.
376         (detect_coding_utf16): New function [incomplete].
377         (decode_coding_utf16): New function [support only UCS-2].
378         (char_encode_utf16): New function.
379         (char_finish_utf16): New function.
380         (syms_of_file_coding): Add new symbol `utf-16'; setup
381         `coding_category_symbol[CODING_CATEGORY_UTF16]'.
382
383         * file-coding.h (enum coding_system_type): Add `CODESYS_UTF16' in
384         UTF-2000.
385         (enum coding_category_type): Add `CODING_CATEGORY_UTF16' in MULE.
386         (CODING_CATEGORY_UTF16_MASK): New macro in MULE.
387
388 2002-10-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
389
390         * chartab.c (put_char_table): When a charset is specified as a
391         range in UTF-2000, don't support builtin characters.
392
393 2002-09-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
394
395         * mule-charset.c (decode_defined_char): Don't refer external
396         database if Qunbound or Qnil are found.
397         (Fsave_charset_mapping_table): Don't define it if
398         HAVE_CHISE_CLIENT is not defined.
399         (Freset_charset_mapping_table): New function.
400         (load_char_decoding_entry_maybe): Store Qnil if a character is not
401         found in external database.
402         (syms_of_mule_charset): Don't define `save-charset-mapping-table'
403         if HAVE_CHISE_CLIENT is not defined; add new builtin function
404         `reset-charset-mapping-table' if HAVE_CHISE_CLIENT is defined.
405
406 2002-09-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
407
408         * text-coding.c (decode_coding_utf8): Check CCS is specified or
409         not.
410
411 2002-08-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
412
413         * chartab.h: Add extern declarations for Qdowncase, Qflippedcase,
414         Q_lowercase, Q_uppercase in UTF-2000.
415
416         * chartab.c (get_char_table): Add special code for the standard
417         case table to use character attribute `->downcase' and
418         `->uppercase' for case operations in UTF-2000.
419
420         * casetab.c (Qflippedcase): New variable in UTF-2000.
421         (Q_lowercase): Likewise.
422         (Q_uppercase): Likewise.
423         (syms_of_casetab): Add new symbols `flippedcase', `->lowercase'
424         and `->uppercase' in UTF-2000.
425         (complex_vars_of_casetab): Assign attribute name `downcase' to
426         downcase and CANON table of Vstandard_case_table in UTF-2000;
427         assign attribute name `flippedcase' to upcase and EQV table of
428         Vstandard_case_table in UTF-2000.
429
430 2002-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
431
432         * text-coding.c (decode_add_er_char): Support isolated-chars.
433         (char_encode_as_entity_reference): Likewise.
434
435 2002-08-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
436
437         * emacs.c (Vutf_2000_lisp_directory): New variable.
438         (Vconfigure_utf_2000_lisp_directory): Likewise.
439         (complex_vars_of_emacs): Add new variable
440         `utf-2000-lisp-directory' and `configure-utf-2000-lisp-directory'.
441
442 2002-08-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
443
444         * char-ucs.h (DECODE_CHAR): Delete special code for
445         `chinese-big5-1' and `chinese-big5-2'.
446
447         * mule-charset.c (Qbig5_1): New variable in UTF-2000.
448         (Qbig5_2): Likewise.
449         (decode_defined_char): Support CONVERSION_BIG5_1 and
450         CONVERSION_BIG5_2.
451         (decode_builtin_char): Likewise.
452         (charset_code_point): Likewise.
453         (Fmake_charset): Accept `big5-1' and `big5-2' as a value of
454         'conversion in UTF-2000.
455         (syms_of_mule_charset): Add new symbol `big5-1' and `big5-2'.
456         (complex_vars_of_mule_charset): Define `chinese-big5-1' and
457         `chinese-big5-2' as children of `chinese-big5'.
458
459         * char-ucs.h (CONVERSION_BIG5_1): New macro.
460         (CONVERSION_BIG5_2): New macro.
461
462 2002-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
463
464         * text-coding.c (char_encode_big5): Support entity-reference.
465
466 2002-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
467
468         * text-coding.c (char_encode_as_entity_reference): New function.
469         (char_encode_utf8): Use `char_encode_as_entity_reference'.
470
471 2002-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
472
473         * text-coding.c (decode_coding_big5): Support entity-reference
474         decoding feature.
475
476 2002-08-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
477
478         * text-coding.c (allocate_coding_system): Initialize initial
479         charsets for CODESYS_UTF8.
480         (Fmake_coding_system): Accept charset-g0, charset-g1 and
481         charset-g2 for CODESYS_UTF8.
482         (decode_coding_utf8): Use charset-g0.
483         (char_encode_utf8): Use charset-g0; use charset-g1 and charset-g2
484         to force variants to map to UCS.
485
486 2002-07-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
487
488         * text-coding.c (Qutf_8_mcs): New variable.
489         (syms_of_file_coding): Add new symbol `utf-8-mcs' in UTF-2000.
490         (complex_vars_of_file_coding): Define coding-system `utf-8-mcs'
491         instead of `utf-8' in UTF-2000.
492
493 2002-07-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
494
495         * mule-charset.c (charset_code_point): If CHARSET_CONVERSION is
496         CONVERSION_IDENTICAL, identical conversion is used even if a CCS
497         is ISO-2022 style; instead of it, CONVERSION_94, CONVERSION_96,
498         CONVERSION_94x94, CONVERSION_96x96, CONVERSION_94x94x94,
499         CONVERSION_96x96x96, CONVERSION_94x94x94x94 and
500         CONVERSION_96x96x96x96 are introduced.
501         (complex_vars_of_mule_charset): Specify CONVERSION_96 instead of
502         CONVERSION_IDENTICAL for thai-tis620; Specify CONVERSION_94x94
503         instead of CONVERSION_IDENTICAL for japanese-jisx0208-1990.
504
505         * char-ucs.h (CONVERSION_94): New macro.
506         (CONVERSION_96): New macro.
507         (CONVERSION_94x94): New macro.
508         (CONVERSION_96x96): New macro.
509         (CONVERSION_94x94x94): New macro.
510         (CONVERSION_96x96x96): New macro.
511         (CONVERSION_94x94x94x60): New macro.
512         (CONVERSION_94x94x94x94): New macro.
513         (CONVERSION_96x96x96x96): New macro.
514
515 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
516
517         * chartab.c (Vcharacter_variant_table): Deleted.
518         (Fchar_variants): Use character-attribute `->ucs-variants' instead
519         of `Vcharacter_variant_table'.
520         (Fput_char_attribute): Likewise.
521         (vars_of_chartab): Don't setup `Vcharacter_variant_table'.
522         (complex_vars_of_chartab): Likewise.
523
524 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
525
526         * lisp.h: Add an EXFUN for `Fchar_ref_p'.
527
528         * fns.c (Qideographic_structure): New variable.
529         (Qkeyword_char): New variable.
530         (ids_format_unit): New function.
531         (Fideographic_structure_to_ids): New function.
532         (syms_of_fns): Add new symbols `ideographic-structure' and
533         `:char'; add new builtin function `ideographic-structure-to-ids'.
534
535         * data.c (Fchar_ref_p): New function.
536         (syms_of_data): Add new builtin function `char-ref-p'.
537
538         * chartab.h: Add an EXFUN for `Ffind_char'.
539
540 2002-07-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
541
542         * text-coding.c (Vcharacter_composition_table): Deleted.
543         (COMPOSE_ADD_CHAR): Use the implementation for external-DB support
544         in every UTF-2000.
545
546         * chartab.c: Add EXFUN for `Fmap_char_attribute' in every
547         UTF-2000.
548         (Vcharacter_composition_table): Deleted.
549         (Fget_composite_char): Use the implementation for external-DB
550         support in every UTF-2000.
551         (Fput_char_attribute): Likewise.
552         (char_attribute_system_db_file): Don't define if external-DB
553         feature is not available.
554         (Fsave_char_attribute_table): Likewise.
555         (Fmount_char_attribute_table): Likewise.
556         (Fclose_char_attribute_table): Likewise.
557         (Freset_char_attribute_table): Likewise.
558         (Fload_char_attribute_table): Likewise.
559         (syms_of_chartab): Don't define `save-char-attribute-table',
560         `mount-char-attribute-table', `reset-char-attribute-table',
561         `close-char-attribute-table' and `load-char-attribute-table' if
562         external-DB feature is not available.
563         (vars_of_chartab): Don't setup `Vcharacter_composition_table'.
564
565 2002-07-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
566
567         * text-coding.c (Qcomposition): Add extern if external-DB feature
568         is supported.
569         (Vcharacter_composition_table): Don't add extern if external-DB
570         feature is supported.
571         (COMPOSE_ADD_CHAR): Modify for new data-representation of
572         character composition rule if external-DB feature is supported.
573
574         * chartab.c (Vcharacter_composition_table): Don't define if
575         external-DB feature is supported.
576         (Qcomposition): New variable.
577         (Fget_composite_char): New implementation for external-DB support.
578         (Fput_char_attribute): Use `composition' property of each
579         character instead of `Vcharacter_composition_table' to store
580         character-composition rules if external-DB feature is supported.
581         (syms_of_chartab): Add new symbol `composition'.
582         (vars_of_chartab): Don't setup `Vcharacter_composition_table' if
583         external-DB feature is supported.
584
585 2002-07-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
586
587         * chartab.c (Vchar_db_stingy_mode): New variable.
588         (load_char_attribute_maybe): Close database if
589         Vchar_db_stingy_mode is not NIL.
590         (Fload_char_attribute_table_map_function): Use
591         `get_char_id_table_0' instead of `get_char_id_table'.
592         (vars_of_chartab): Add new variable `char-db-stingy-mode'.
593
594         * chartab.h (get_char_id_table_0): New inline function.
595         (get_char_id_table): Use `get_char_id_table_0'.
596
597 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
598
599         * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
600         and `COMPOSE_ADD_CHAR'.
601         (decode_coding_iso2022): Use `decode_flush_er_chars'.
602
603 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
604
605         * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
606         instead of `DECODE_ADD_UCS_CHAR'.
607         (COMPOSE_ADD_CHAR): Likewise.
608
609 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
610
611         * text-coding.c (decode_flush_er_chars): New inline function.
612         (decode_add_er_char): New function.
613         (decode_coding_utf8): Use `decode_flush_er_chars' and
614         `decode_add_er_char'.
615
616 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
617
618         * text-coding.c (decode_coding_utf8): Flush for er_buf must be
619         done before `decode_output_utf8_partial_char'.
620
621         * mule-charset.c (complex_vars_of_mule_charset): Specify
622         `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
623         `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
624
625 2002-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
626
627         * mule-charset.c (decode_defined_char): New function; search
628         mother.
629         (decode_builtin_char): Don't search mother if
630         XCHARSET_MAX_CODE(charset) == 0.
631         (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
632         == 0 even if code >= XCHARSET_MAX_CODE(charset).
633         (Fdecode_char): Use `decode_defined_char' instead of
634         `DECODE_DEFINED_CHAR'.
635         (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
636         mother of `Vcharset_ucs_jis'.
637
638         * text-coding.c (decode_coding_big5): Use `decode_defined_char'
639         instead of `DECODE_DEFINED_CHAR'.
640
641         * char-ucs.h (decode_defined_char): Renamed from
642         `DECODE_DEFINED_CHAR'; changed to normal function.
643         (DECODE_CHAR): Use `decode_defined_char' instead of
644         `DECODE_DEFINED_CHAR'.
645
646         * lisp.h: Add `EXFUN' for `Fstring_to_number'.
647
648 2002-07-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
649
650         * char-ucs.h: Add `extern' for `Vcharset_ucs'.
651
652         * text-coding.c (Vcoded_charset_entity_reference_alist): New
653         variable.
654         (Quse_entity_reference): New variable.
655         (Qd): New variable.
656         (Qx): New variable.
657         (QX): New variable.
658         (coding_system_description): Add description for
659         `ccs_priority_list'.
660         (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
661         (allocate_coding_system): Initialize `ccs_priority_list' in
662         UTF-2000.
663         (Fmake_coding_system): Add description about
664         'use-entity-reference; setup CODING_SYSTEM_USE_ENTITY_REFERENCE
665         (codesys).
666         (Fcoding_system_property): Accept `disable-composition' and
667         `use-entity-reference' in UTF-2000.
668         (struct decoding_stream): Add new member `er_counter' and `er_buf'
669         in UTF-2000.
670         (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
671         (decode_coding_utf8): Decode entity-reference if
672         CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
673         (char_encode_utf8): Encode non-Unicode characters as
674         entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
675         (str->codesys).
676         (syms_of_file_coding): Add new symbols `use-entity-reference',
677         `d', `x', `X'.
678         (vars_of_file_coding): Add new variable
679         `coded-charset-entity-reference-alist'.
680         (complex_vars_of_file_coding): Declare `disable-composition' and
681         `use-entity-reference' to be coding-system-properties in UTF-2000.
682
683         * file-coding.h (struct Lisp_Coding_System): Add new member
684         `use_entity_reference' and `ccs_priority_list'.
685         (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
686         (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
687         (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
688
689 2002-07-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
690
691         * chartab.c (save_uint8_byte_table): Don't clear the table.
692         (save_uint16_byte_table): Likewise.
693         (save_byte_table): Likewise.
694         (Fmount_char_attribute_table): New function.
695         (syms_of_chartab): Add new builtin function
696         `mount-char-attribute-table'.
697
698 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
699
700         * mule-charset.c (Fsave_charset_mapping_table): Open database as
701         "w+" mode.
702         (load_char_decoding_entry_maybe): Open database as read-only mode.
703
704         * chartab.c (Fsave_char_attribute_table): Don't share `ct->db';
705         open database as "w+" mode.
706         (load_char_attribute_maybe): Open database as read-only mode.
707         (Fload_char_attribute_table): Likewise.
708
709 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
710
711         * chartab.c (mark_char_table): Don't refer `ct->db_file'.
712         (char_table_description): Delete member `db_file'.
713         (Fmake_char_table): Don't refer `ct->db_file'.
714         (Fcopy_char_table): Likewise.
715         (Fsave_char_attribute_table): Likewise.
716         (Fclose_char_attribute_table): Likewise.
717         (Freset_char_attribute_table): Likewise.
718         (load_char_attribute_maybe): Likewise.
719         (Fload_char_attribute_table): Likewise.
720
721         * chartab.h (struct Lisp_Char_Table): Delete member `db_file'.
722
723 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
724
725         * chartab.c: Add an EXFUN for `Fmap_char_attribute'.
726         (Fsave_char_attribute_table): Don't check `ct->db_file' if
727         `ct->db' is living.
728         (load_char_attribute_maybe): Likewise.
729         (Fload_char_attribute_table): Likewise.
730
731 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
732
733         * chartab.c (Fclose_char_attribute_table): Set Qnil on
734         `ct->db_file' unconditionally.
735
736 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
737
738         * chartab.c (mark_char_table): Mark `ct->db_file' and `ct->db' in
739         UTF-2000.
740         (char_table_description): Add description for `db_file' and `db'
741         in UTF-2000.
742         (Fmake_char_table): Initialize `ct->db_file' and `ct->db' in
743         UTF-2000.
744         (Fcopy_char_table): Copy `ct->db_file' and `ct->db' in UTF-2000.
745         (Fsave_char_attribute_table): Use `ct->db_file' and `ct->db'.
746         (Fclose_char_attribute_table): New function.
747         (Freset_char_attribute_table): Reset `ct->db_file' and `ct->db'.
748         (load_char_attribute_maybe): Change interface; use `cit->db_file'
749         and `cit->db'.
750         (Fload_char_attribute_table): Use `ct->db_file' and `ct->db'.
751         (syms_of_chartab): Add new builtin function
752         `Fclose_char_attribute_table'.
753
754 2002-06-28  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
755
756         * chartab.h (struct Lisp_Char_Table): Add new member `db_file' and
757         `db' in UTF-2000.
758         (load_char_attribute_maybe): Change interface.
759         (get_char_id_table): Modify for `load_char_attribute_maybe'.
760
761 2002-06-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
762
763         * database.h: Add an EXFUN for `Fdatabase_live_p'.
764
765 2002-04-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
766
767         * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
768         instead of `DECODE_CHAR' for mother; don't use special code for
769         chinese-big5 to use code space of chinese-big5-1 and
770         chinese-big5-2.
771         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
772         `MAX_CHAR_BIG5_CDP' for chinese-big5.
773
774         * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
775         (MAX_CHAR_BIG5_CDP): Revival.
776
777 2002-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
778
779         * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
780         the XLFD registry-encoding name of `chinese-big5'.
781
782 2002-04-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
783
784         * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
785         (Qchinese_big5_cdp): Deleted.
786         (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
787         (complex_vars_of_mule_charset): Delete coded-charset
788         `chinese-big5-cdp'.
789
790         * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
791         (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
792         `CHARSET_ID_OFFSET - n' for private CCS.
793         (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
794         (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
795         of `MIN_LEADING_BYTE'.
796         (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
797         `(CHARSET_ID_OFFSET - 97)'.
798         (MIN_CHAR_BIG5_CDP): Deleted.
799         (MAX_CHAR_BIG5_CDP): Deleted.
800
801 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
802
803         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.19.
804
805 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
806
807         * mule.c (Vutf_2000_version): New variable [moved from chartab.c].
808         (vars_of_mule): Add new variable `utf-2000-version' [moved from
809         chartab.c].
810
811         * chartab.c (Vutf_2000_version): Moved to mule.c.
812         (vars_of_chartab): Move code about `utf-2000-version' into mule.c.
813
814 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
815
816         * mule-charset.c (load_char_decoding_entry_maybe): Don't define it
817         when HAVE_CHISE_CLIENT is not defined.
818
819         * mule.c (vars_of_mule): Provide feature `chise' when
820         HAVE_CHISE_CLIENT is defined.
821
822 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
823
824         * config.h.in (UTF2000): Add comment.
825         (HAVE_CHISE_CLIENT): New macro.
826
827 2002-02-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
828
829         * chartab.c (Fchar_variants): Check Vcharacter_variant_table is
830         CONSP.
831         (Fput_char_attribute): Likewise.
832         (char_attribute_system_db_file): Encode file-name of attribute.
833         (vars_of_chartab): Set Qunbound into Vcharacter_variant_table as
834         the initial value.
835
836 2002-02-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
837
838         * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
839         (Fsave_charset_mapping_table): Use
840         `char_attribute_system_db_file'.
841         (load_char_decoding_entry_maybe): Likewise.
842
843         * chartab.h (Qsystem_char_id): New external variable.
844         (char_attribute_system_db_file): New prototype.
845
846         * chartab.c (Qsystem_char_id): New variable in UTF-2000.
847         (char_attribute_system_db_file): New function.
848         (Fsave_char_attribute_table): Use `char_attribute_system_db_file'.
849         (Freset_char_attribute_table): Likewise.
850         (load_char_attribute_maybe): Likewise.
851         (Fload_char_attribute_table): Likewise.
852         (syms_of_chartab): Add new symbol `system-char-id'.
853
854 2002-02-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
855
856         * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
857         `XCHARSET_GRAPHIC(ccs)'.
858
859 2002-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
860
861         * mule-charset.c (Fsave_charset_mapping_table): Fixed.
862
863 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
864
865         * chartab.c (Q_ucs_variants): New variable.
866         (syms_of_chartab): Add new symbol `->ucs-variants'.
867         (complex_vars_of_chartab): Set `Vcharacter_variant_table' on
868         `Vchar_attribute_hash_table' as the value of `->ucs-variants'; set
869         `->ucs-variants' on `XCHAR_TABLE_NAME (Vcharacter_variant_table)'.
870
871         * mule-charset.c (load_char_decoding_entry_maybe): New function.
872
873         * char-ucs.h (load_char_decoding_entry_maybe): New prototype when
874         `HAVE_DATABASE' is defined.
875         (DECODE_DEFINED_CHAR): Use `load_char_decoding_entry_maybe' when
876         `HAVE_DATABASE' is defined.
877
878 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
879
880         * chartab.c (Fsave_char_attribute_table): Don't clear internal
881         attribute-table.
882         (Freset_char_attribute_table): New function.
883         (syms_of_chartab): Add new builtin function
884         `reset-char-attribute-table'.
885
886 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
887
888         * chartab.c (load_char_attribute_maybe): Don't make directories.
889
890 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
891
892         * char-ucs.h: Add EXFUN for `Fmake_directory_internal'.
893
894         * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
895         for decoding-table.
896
897 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
898
899         * mule-charset.c (Fsave_charset_mapping_table): Use
900         `XCHARSET_BYTE_SIZE' instead of `XCHARSET_CHARS'.
901
902         * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
903         instead of `XCHARSET_CHARS'.
904
905 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
906
907         * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
908         (XCHARSET_BYTE_SIZE): Likewise.
909
910         * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
911         mule-charset.c].
912         (XCHARSET_BYTE_SIZE): Likewise.
913
914 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
915
916         * chartab.c (Fput_char_attribute): Use exec-directory instead of
917         data-directory to store database.
918         (Fsave_char_attribute_table): Likewise.
919         (load_char_attribute_maybe): Likewise.
920         (Fload_char_attribute_table): Likewise.
921
922 2002-02-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
923
924         * mule-charset.c (Fsave_charset_mapping_table): New function.
925         (syms_of_mule_charset): Add new builtin function
926         `save-charset-mapping-table'.
927
928 2002-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
929
930         * char-ucs.h (decoding_table_check_elements): Delete prototype.
931         (get_ccs_octet_table): New inline function.
932         (put_ccs_octet_table): Likewise.
933         (decoding_table_put_char): Use `get_ccs_octet_table' and
934         `put_ccs_octet_table'.
935         (decoding_table_remove_char): Use `decoding_table_put_char'.
936         (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
937
938         * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
939         into encoding_table.
940         (make_charset): Use Qunbound instead Qnil as initial value of
941         decoding_table.
942
943 2002-02-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
944
945         * chartab.c (map_over_uint8_byte_table): Set Qunbound if an
946         element is Qunloaded.
947         (map_over_uint16_byte_table): Likewise.
948         (map_over_byte_table): Likewise.
949         (map_char_table): Likewise for CHARTAB_RANGE_ALL in UTF-2000; when
950         CHARTAB_RANGE_CHARSET is specified in UTF-2000 with external
951         database support, load encoding-table of the specified
952         coded-charset if it is not loaded yet.
953         (save_uint8_byte_table): New function of UTF-2000 with external
954         database support.
955         (save_uint16_byte_table): Likewise.
956         (save_byte_table): Likewise.
957         (Fput_char_attribute): Don't store value into external database
958         even if the external database feature is supported in UTF-2000;
959         set `attribute' as name of char-table if the external database
960         feature is supported.
961         (Fsave_char_attribute_table): New function in UTF-2000.
962         (syms_of_chartab): Add new builtin function
963         `save-char-attribute-table' in UTF-2000.
964
965 2002-02-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
966
967         * chartab.c (char_attribute_table_to_put): New variable in
968         UTF-2000.
969         (Qput_char_table_map_function): Likewise.
970         (value_to_put): Likewise.
971         (Fput_char_table_map_function): New function in UTF-2000.
972         (put_char_table): Use `Fmap_char_attribute' for
973         CHARTAB_RANGE_CHARSET in UTF-2000.
974         (Fput_char_attribute): Store symbol instead of string in
975         `XCHAR_TABLE_NAME (table)'.
976         (load_char_attribute_maybe): Likewise.
977         (syms_of_chartab): Add new symbol/function
978         `put-char-table-map-function'.
979
980 2002-01-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
981
982         * database.h: Add new EXFUN for `Fmap_database'.
983
984         * database.c (Fmap_database): Renamed from `Fmapdatabase'.
985         (syms_of_database): Likewise.
986
987         * chartab.h (struct Lisp_Char_Table): Add new member `unloaded' in
988         UTF-2000.
989         (CHAR_TABLE_UNLOADED): New macro of UTF-2000.
990         (XCHAR_TABLE_UNLOADED): Likewise.
991
992         * chartab.c (fill_char_table): Initialize `ct->unloaded'.
993         (Fput_char_attribute): Set XCHAR_TABLE_UNLOADED(table) if
994         HAVE_DATABASE is defined.
995         (char_attribute_table_to_load): New variable of UTF-2000 with
996         external database support.
997         (Qload_char_attribute_table_map_function): Likewise.
998         (Fload_char_attribute_table_map_function): New function of
999         UTF-2000 with external database support.
1000         (Fload_char_attribute_table): New function of UTF-2000.
1001         (Fmap_char_attribute): Call Fload_char_attribute_table if
1002         CHAR_TABLE_UNLOADED(ct) is set when HAVE_DATABASE is defined.
1003         (syms_of_chartab): Add new symbol and function
1004         `load-char-attribute-table-map-function' in UTF-2000 with external
1005         database support; add new function `load-char-attribute-table' in
1006         UTF-2000.
1007
1008 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1009
1010         * chartab.h (load_char_attribute_maybe): New prototype for
1011         UTF-2000 with DATABASE support.
1012         (get_char_id_table): Use `load_char_attribute_maybe' if
1013         HAVE_DATABASE is defined.
1014
1015         * chartab.c (load_char_attribute_maybe): New function in UTF-2000
1016         with DATABASE support.
1017
1018 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1019
1020         * chartab.c (Fput_char_attribute): Use S-expression as key of
1021         external database.
1022
1023         * chartab.h (get_char_id_table): Use S-expression as key of
1024         external database.
1025
1026 2002-01-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1027
1028         * chartab.c (map_over_uint8_byte_table): Add new argument `root';
1029         if an element is not loaded, load the corresponding attributes
1030         from an external database.
1031         (map_over_uint16_byte_table): Likewise.
1032         (map_over_byte_table): Likewise.
1033         (map_char_table): Modify for `map_over_uint8_byte_table',
1034         `map_over_uint16_byte_table' and `map_over_byte_table'; if an
1035         element is not loaded, load the corresponding attributes from an
1036         external database.
1037         (Fput_char_attribute): Change initial values to Qunloaded.
1038
1039         * chartab.h (get_char_id_table): If a character attribute is not
1040         loaded and the attribute value is not found in an external
1041         database, store Qunbound as the attribute value.
1042
1043 2002-01-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1044
1045         * chartab.c (BT_UINT8_unloaded): New macro.
1046         (UINT8_VALUE_P): Accept Qunloaded.
1047         (UINT8_ENCODE): Likewise.
1048         (UINT8_DECODE): Likewise.
1049         (BT_UINT16_unloaded): New macro.
1050         (UINT16_VALUE_P): Accept Qunloaded.
1051         (UINT16_ENCODE): Likewise.
1052         (UINT16_DECODE): Likewise.
1053         (UINT8_TO_UINT16): Convert BT_UINT8_unloaded into
1054         BT_UINT16_unloaded.
1055         (mark_char_table): Mark `ct->name' in UTF-2000.
1056         (char_table_description): Add `name' in UTF-2000.
1057         (Fmake_char_table): Initialize `ct->name'.
1058         (Fcopy_char_table): Copy `ct->name'.
1059         (Fput_char_attribute): Store value into an external database if
1060         HAVE_DATABASE is defined.
1061
1062         * chartab.h (struct Lisp_Char_Table): Add new member `name' in
1063         UTF-2000.
1064         (CHAR_TABLE_NAME): New macro in UTF-2000.
1065         (XCHAR_TABLE_NAME): New macro in UTF-2000.
1066         (get_char_id_table): Try to read an external database if Qunloaded
1067         is stored in a table.
1068
1069         * symbols.c (init_symbols_once_early): Assign '#<unloaded> into
1070         Qunloaded.
1071
1072 2002-01-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1073
1074         * database.h: Add EXFUN definitions for Fopen_database,
1075         Fput_database, Fget_database and Fclose_database.
1076
1077         * data.c (Qunloaded): New variable in UTF-2000.
1078
1079         * lisp.h (Qunloaded): New variable in UTF-2000.
1080
1081 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1082
1083         * mule-charset.c (put_char_ccs_code_point): Modify for
1084         `decoding_table_remove_char' and `decoding_table_put_char'.
1085         (remove_char_ccs): Modify for `decoding_table_remove_char'.
1086
1087         * char-ucs.h (decoding_table_remove_char): Change arguments to
1088         hide decoding_table vector.
1089         (decoding_table_put_char): Likewise.
1090
1091 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1092
1093         * mule-charset.c (decoding_table_remove_char): Moved to
1094         char-ucs.h.
1095         (decoding_table_put_char): Likewise.
1096
1097         * char-ucs.h (decoding_table_check_elements): New prototype [moved
1098         from mule-charset.c].
1099         (decoding_table_remove_char): New inline function [moved from
1100         mule-charset.c].
1101         (decoding_table_put_char): Likewise.
1102
1103 2002-01-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1104
1105         * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
1106         extension.
1107
1108 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1109
1110         * mule-charset.c (decode_builtin_char): Support mother charsets.
1111
1112 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1113
1114         * mule-charset.c (Q94x94x60): New variable.
1115         (charset_code_point): Support conversion `94x94x60'.
1116         (Fmake_charset): Likewise.
1117         (syms_of_mule_charset): Add new symbol `94x94x60'.
1118
1119         * char-ucs.h (CONVERSION_94x94x60): New macro.
1120
1121 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1122
1123         * mule-charset.c (charset_code_point): Unify code about
1124         `code-offset'.
1125
1126 2001-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1127
1128         * mule-charset.c (charset_code_point): Merge code about builtin
1129         characters into code about mother charsets; don't use
1130         `range_charset_code_point'.
1131         (range_charset_code_point): Deleted.
1132
1133 2001-12-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1134
1135         * mule-charset.c (Qcode_offset): New variable.
1136         (Fmake_charset): Use `XUINT' to get value of `min-code' and
1137         `max-code'; accept new property `code-offset'.
1138         (syms_of_mule_charset): Add new symbol `code-offset'.
1139
1140 2001-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1141
1142         * mule-charset.c (range_charset_code_point): Fixed.
1143
1144 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1145
1146         * mule-charset.c (decode_builtin_char): Change semantics of
1147         code-offset of coded-charset.
1148         (charset_code_point): Likewise.
1149         (range_charset_code_point): Likewise.
1150         (complex_vars_of_mule_charset): Modify for the change.
1151
1152 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1153
1154         * mule-charset.c (Fencode_char): Reverse arguments.
1155
1156         * mule-charset.c (charset_code_point): Fixed.
1157
1158 2001-12-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1159
1160         * mule-charset.c (Vcharset_mojikyo): Deleted.
1161         (Vcharset_mojikyo_2022_1): Deleted.
1162         (Vcharset_mojikyo_pj_{1..21}): Deleted.
1163         (Qmin_code): New variable in UTF-2000.
1164         (Qmax_code): Likewise.
1165         (Qmother): Likewise.
1166         (Qconversion): Likewise.
1167         (Q94x60): Likewise.
1168         (Qmojikyo): Deleted.
1169         (Qmojikyo_2022_1): Deleted.
1170         (Qmojikyo_pj_{1..22}): Deleted.
1171         (mark_charset): Mark `cs->mother'.
1172         (charset_description): Add description for `mother'.
1173         (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
1174         new arguments `mother' and `conversion'; use
1175         `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
1176         (charset_code_point): Moved from char-ucs.h; support `mother'
1177         charset feature.
1178         (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
1179         of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
1180         (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
1181         UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
1182         allow 2 as the value of `graphic' in UTF-2000; add new properties
1183         `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
1184         require `final' in UTF-2000; modify for `make_charset'.
1185         (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
1186         instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
1187         (Fcharset_property): Support `mother', `min-code' and `max-code'.
1188         (Fencode_char): New function.
1189         (syms_of_mule_charset): Add new builtin function `encode-char' in
1190         UTF-2000; add new symbols `min-code', `max-code', `mother',
1191         `conversion' and `94x60'; delete symbols `mojikyo',
1192         `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
1193         (complex_vars_of_mule_charset): Modify for `make_charset' change;
1194         delete coded-charsets `mojikyo', `mojikyo-2022-1' and
1195         `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
1196
1197         * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
1198         `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
1199
1200         * char-ucs.h (Vcharset_mojikyo): Deleted.
1201         (Vcharset_mojikyo_2022_1): Deleted.
1202         (LEADING_BYTE_MOJIKYO): Deleted.
1203         (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
1204         (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
1205         (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
1206         (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
1207         add new member `mother'; add new member `conversion'.
1208         (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
1209         (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
1210         (CHARSET_MOTHER): New macro.
1211         (CHARSET_CONVERSION): New macro.
1212         (CONVERSION_IDENTICAL): New macro.
1213         (CONVERSION_94x60): New macro.
1214         (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
1215         (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
1216         (XCHARSET_MOTHER): New macro.
1217         (XCHARSET_CONVERSION): New macro.
1218         (MIN_CHAR_MOJIKYO): Deleted.
1219         (MAX_CHAR_MOJIKYO): Deleted.
1220         (DECODE_MOJIKYO_2022): Deleted.
1221         (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
1222         (charset_code_point): Changed to non-inline function.
1223         (encode_char_1): Use `charset_code_point'.
1224         (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
1225
1226 2001-12-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1227
1228         * lread.c (read_compiled_function): Fix prototype.
1229         (read_vector): Likewise.
1230
1231 2001-12-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1232
1233         * lrecord.h (struct lrecord_header): Delete `older'.
1234         (set_lheader_implementation): Delete code for `older'.
1235         (set_lheader_older_implementation): Deleted.
1236         (enum lrecord_type): Delete `lrecord_type_char_id_table'.
1237         (OLDER_RECORD_P): Deleted.
1238         (OLDER_RECORD_HEADER_P): Deleted.
1239         (alloc_older_lcrecord): Deleted.
1240         (alloc_older_lcrecord_type): Deleted.
1241
1242         * alloc.c (all_older_lcrecords): Deleted.
1243         (alloc_older_lcrecord): Deleted.
1244         (disksave_object_finalization_1): Delete code for older objects.
1245         (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
1246         (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
1247
1248 2001-12-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1249
1250         * mule-charset.c (decoding_table_put_char): Use `make_vector'
1251         instead of `make_older_vector'.
1252         (put_char_ccs_code_point): Likewise.
1253         (mark_charset): Mark `cs->decoding_table'.
1254         (Fset_charset_mapping_table): Don't use `make_vector_newer'.
1255
1256         * lisp.h (make_older_vector): Deleted.
1257         (make_vector_newer): Deleted.
1258
1259         * config.h.in (HAVE_GGC): Deleted.
1260
1261         * alloc.c (make_older_vector): Deleted.
1262         (make_vector_newer_1): Deleted.
1263         (make_vector_newer): Deleted.
1264
1265 2001-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1266
1267         * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
1268         (Qideograph_daikanwa_2): New variable.
1269         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
1270         (complex_vars_of_mule_charset): Add new coded-charset
1271         `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
1272         `LEADING_BYTE_DAIKANWA'.
1273
1274         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
1275         (LEADING_BYTE_DAIKANWA_1): New macro.
1276         (LEADING_BYTE_DAIKANWA_2): New macro.
1277         (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
1278
1279 2001-12-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1280
1281         * mule-charset.c (complex_vars_of_mule_charset): Change
1282         DOC-strings and registry of `ideograph-daikanwa'; now it indicates
1283         the second revised version.
1284
1285 2001-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1286
1287         * mule-charset.c (Vcharset_ucs_smp): New variable.
1288         (Vcharset_ucs_sip): New variable.
1289         (Qucs_smp): New variable.
1290         (Qucs_sip): New variable.
1291         (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
1292         MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
1293         (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
1294         (complex_vars_of_mule_charset): Modify middle-DOC and registry of
1295         `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
1296         charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
1297
1298         * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
1299         (LEADING_BYTE_UCS_SIP): New macro.
1300         (MIN_CHAR_SMP): New macro.
1301         (MAX_CHAR_SMP): New macro.
1302         (MIN_CHAR_SIP): New macro.
1303         (MAX_CHAR_SIP): New macro.
1304
1305 2001-11-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
1306
1307         * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
1308         utf-2000.
1309
1310 2001-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1311
1312         * mule-charset.c (put_char_ccs_code_point): Return canonicalized
1313         value; don't store value into `encoding_table' of `Lisp_Charset'.
1314         (mark_charset): `encoding_table' was deleted.
1315         (charset_description): Likewise.
1316         (make_charset): Likewise.
1317         (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
1318         `put_char_ccs_code_point'.
1319
1320         * chartab.h (Fput_char_attribute): New EXFUN.
1321
1322         * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
1323         is unified with normal symbol space.
1324         (Fget_char_attribute): Likewise.
1325         (Fput_char_attribute): Likewise; behavior of
1326         `put_char_ccs_code_point' is changed.
1327
1328         * char-ucs.h: Include "elhash.h".
1329         (Vchar_attribute_hash_table): New external variable.
1330         (struct Lisp_Charset): Delete `encoding_table'.
1331         (CHARSET_ENCODING_TABLE): New implementation; refer
1332         `Vchar_attribute_hash_table' instead of `encoding_table' of struct
1333         `Lisp_Charset'.
1334
1335 2001-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1336
1337         * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
1338         (cs) == 0.
1339
1340 2001-11-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1341
1342         * text-coding.c (char_encode_big5): Prefer charset-g1 than
1343         `chinese-big5'.
1344
1345 2001-11-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1346
1347         * chartab.c (uint8_byte_table_description): New constant.
1348         (uint8-byte-table): Use `uint8_byte_table_description'.
1349         (uint16_byte_table_description): New constant.
1350         (uint16-byte-table): Use `uint16_byte_table_description'.
1351
1352 2001-10-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1353
1354         * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
1355         range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
1356
1357 2001-10-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1358
1359         * mule-charset.c (Vcharset_ucs_ks): New variable.
1360         (Qucs_ks): New variable.
1361         (syms_of_mule_charset): Add new symbol `ucs-ks'.
1362         (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
1363
1364         * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
1365
1366 2001-10-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1367
1368         * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
1369         (Fdecode_char): Likewise.
1370
1371         * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
1372         chartab.h.
1373         (Fdefine_char): Modify for Fdecode_char.
1374         (Ffind_char): Likewise.
1375
1376         * mule-charset.c (Fdecode_char): Add new optional argument
1377         `defined-only'.
1378         (Fdecode_builtin_char): Modify for `Fdecode_char'.
1379
1380 2001-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1381
1382         * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
1383         -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
1384         (allocate_coding_system): Initialize initial-charsets of
1385         CODESYS_BIG5 in XEmacs UTF-2000.
1386         (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
1387         CODESYS_BIG5 in XEmacs UTF-2000.
1388         (decode_coding_big5): Use initial-charset-g0 and -g1 of
1389         CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
1390
1391         * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
1392         variables.
1393         (Qideograph_hanziku_{1 .. 12}): Likewise.
1394         (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
1395         .. 12}'.
1396         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
1397         `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
1398         `ideograph-hanziku-{1 .. 12}'.
1399
1400         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
1401         (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
1402         ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
1403         ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
1404         (DECODE_DEFINED_CHAR): New inline function.
1405         (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
1406
1407 2001-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1408
1409         * mule-charset.c (Vcharset_china3_jef): Renamed from
1410         `Vcharset_japanese_jef_china3'.
1411         (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
1412         (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
1413         `{MIN|MAX}_CHAR_JEF_CHINA3'..
1414         (syms_of_mule_charset): Rename `china3-jef' from
1415         `japanese-jef-china3'.
1416         (complex_vars_of_mule_charset): Likewise; rename
1417         `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
1418
1419         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
1420         `LEADING_BYTE_JEF_CHINA3'.
1421         (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
1422         (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
1423
1424 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1425
1426         * mule-charset.c (encode_builtin_char_1): Comment out special code
1427         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
1428
1429         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
1430         (MAX_CHAR_MOJIKYO_0): Comment out.
1431         (MIN_CHAR_CBETA): Changed to 0x00E20000.
1432         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
1433         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
1434         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
1435
1436 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1437
1438         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
1439         (Qideograph_cbeta): New variable.
1440         (encode_builtin_char_1): Comment out special code for
1441         coded-charset `mojikyo' and `japanese-jef-china3'.
1442         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
1443         (complex_vars_of_mule_charset): Add new coded-charset
1444         `ideograph-cbeta'.
1445
1446         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
1447         (MIN_CHAR_CBETA): New macro.
1448         (MAX_CHAR_CBETA): New macro.
1449
1450 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1451
1452         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
1453         (LEADING_BYTE_JEF_CHINA3): New macro.
1454         (MIN_CHAR_JEF_CHINA3): New macro.
1455         (MAX_CHAR_JEF_CHINA3): Likewise.
1456         (DECODE_CHAR): Fixed.
1457
1458 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1459
1460         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
1461         (Qjapanese_jef_china3): New variable.
1462         (encode_builtin_char_1): Support `japanese-jef-china3'.
1463         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
1464         (complex_vars_of_mule_charset): Add new coded-charset
1465         `japanese-jef-china3'.
1466
1467 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1468
1469         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
1470         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
1471         94^4, 96^3, 96^4, 128^n and 256^n set.
1472         (put_char_table): Use `XCHARSET_CELL_RANGE'.
1473         (map_char_table): Likewise.
1474
1475 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1476
1477         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
1478         UTF-2000.
1479
1480 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1481
1482         * chartab.h (get_char_id_table): New inline function.
1483
1484         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
1485         function.
1486
1487 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1488
1489         * chartab.h (decode_char_table_range): New prototype in XEmacs
1490         UTF-2000.
1491         (put_char_id_table): New inline function in XEmacs UTF-2000.
1492
1493         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
1494         function.
1495         (decode_char_table_range): Delete static declaration in XEmacs
1496         UTF-2000.
1497
1498 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1499
1500         * chartab.c (put_char_id_table): Use `put_char_table'.
1501
1502 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1503
1504         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
1505         (map_over_uint16_byte_table): Likewise.
1506         (map_over_byte_table): Likewise.
1507         (map_char_table): Modify for `map_over_uint8_byte_table',
1508         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
1509         UTF-2000.
1510
1511 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1512
1513         * chartab.c (struct map_char_table_for_charset_arg): New
1514         structure.
1515         (map_char_table_for_charset_fun): New function.
1516         (map_char_table): Use `map_char_table' for encoding_table of
1517         `range->charset'.
1518
1519 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1520
1521         * chartab.c (map_char_table): Check a character is found in
1522         range->charset instead of non default value is defined in
1523         char-table when range is CHARTAB_RANGE_ROW.
1524
1525 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1526
1527         * chartab.c (map_char_id_table): Deleted.
1528         (Fmap_char_attribute): Use `map_char_table' instead of
1529         `map_char_id_table'.
1530
1531 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1532
1533         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
1534         UTF-2000.
1535         (update_syntax_table): Deleted in XEmacs UTF-2000.
1536
1537         * syntax.c (find_defun_start): Use `syntax_table' instead of
1538         `mirror_syntax_table' in XEmacs UTF-2000.
1539         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
1540         UTF-2000.
1541         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
1542         XEmacs UTF-2000.
1543         (Fmatching_paren): Likewise.
1544         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
1545         in XEmacs UTF-2000.
1546         (find_start_of_comment): Likewise.
1547         (find_end_of_comment): Likewise.
1548         (Fforward_comment): Likewise.
1549         (scan_lists): Likewise.
1550         (char_quoted): Likewise.
1551         (Fbackward_prefix_chars): Likewise.
1552         (scan_sexps_forward): Likewise.
1553         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
1554         (update_syntax_table): Likewise.
1555
1556         * search.c (skip_chars): Use `syntax_table' instead of
1557         `mirror_syntax_table' in XEmacs UTF-2000.
1558         (wordify): Likewise.
1559         (Freplace_match): Likewise.
1560
1561         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
1562         `mirror_syntax_table' in XEmacs UTF-2000.
1563         (WORDCHAR_P_UNSAFE): Likewise.
1564         (re_match_2_internal): Likewise.
1565
1566         * font-lock.c (find_context): Use `buf->syntax_table' instead of
1567         `buf->mirror_syntax_table' in XEmacs UTF-2000.
1568
1569         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
1570         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
1571
1572         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
1573         XEmacs UTF-2000.
1574
1575         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
1576         UTF-2000.
1577         (print_char_table): Print `default_value' in XEmacs UTF-2000.
1578         (char_table_description): Delete `mirror_table' in XEmacs
1579         UTF-2000.
1580         (fill_char_table): Don't call `update_syntax_table' in XEmacs
1581         UTF-2000.
1582         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
1583         (Fcopy_char_table): Likewise.
1584         (put_char_table): Don't call `update_syntax_table' in XEmacs
1585         UTF-2000.
1586
1587         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
1588         `buf->mirror_syntax_table' in XEmacs UTF-2000.
1589         (casify_region_internal): Likewise.
1590
1591         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
1592
1593         * buffer.c (common_init_complex_vars_of_buffer): Don't use
1594         `mirror_syntax_table' in XEmacs UTF-2000.
1595
1596         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
1597         `buf->mirror_syntax_table' in XEmacs UTF-2000.
1598         (Fexpand_abbrev): Likewise.
1599
1600 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1601
1602         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
1603
1604 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1605
1606         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
1607         (map_over_uint16_byte_table): Likewise.
1608         (map_over_byte_table): Likewise.
1609         (get_char_id_table): Refer `cit->default_value'.
1610         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
1611         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
1612         of character-id ranges.
1613         (mark_char_table): Mark `ct->default_value'.
1614         (char_table_description): Add `default_value'.
1615         (fill_char_table): Use `default_value'.
1616         (decode_char_table_range): Decode `nil' as
1617         `CHARTAB_RANGE_DEFAULT'.
1618         (get_char_id_table): Refer `cit->default_value'.
1619         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
1620         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
1621         temporary hack; check value of char-table is bound or not.
1622         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
1623
1624         * chartab.h (struct Lisp_Char_Table): Add new member
1625         `default_value' in XEmacs UTF-2000.
1626         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
1627         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
1628         UTF-2000.
1629
1630 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1631
1632         * chartab.h (Lisp_Char_ID_Table): Deleted.
1633
1634         * chartab.c (char_table_description): Fix typo.
1635         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
1636         `Lisp_Char_ID_Table'.
1637
1638 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1639
1640         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
1641         `CHAR_ID_TABLE_P'.
1642
1643         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
1644         `CHAR_ID_TABLE_P'.
1645
1646         * chartab.h (XCHAR_ID_TABLE): Deleted.
1647         (XSETCHAR_ID_TABLE): Deleted.
1648         (CHAR_ID_TABLE_P): Deleted.
1649
1650         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
1651         `CHAR_ID_TABLE_P'.
1652         (Fget_composite_char): Likewise.
1653         (put_char_table): Likewise.
1654         (add_char_attribute_alist_mapper): Fixed.
1655         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
1656         `CHAR_ID_TABLE_P'.
1657         (Fget_char_attribute): Likewise.
1658         (Fget_char_attribute): Likewise.
1659         (Fmap_char_attribute): Likewise.
1660
1661         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
1662         `CHAR_ID_TABLE_P'.
1663         (encode_char_1): Likewise.
1664
1665 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1666
1667         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
1668         `XCHAR_ID_TABLE'.
1669
1670         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
1671         instead of `XCHAR_ID_TABLE'.
1672         (remove_char_ccs): Likewise.
1673
1674         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
1675         `XCHAR_ID_TABLE'.
1676         (Fget_composite_char): Likewise.
1677         (Fchar_variants): Likewise.
1678         (put_char_table): Likewise.
1679         (add_char_attribute_alist_mapper): Likewise.
1680         (Fchar_attribute_alist): Likewise.
1681         (Fget_char_attribute): Likewise.
1682         (Fput_char_attribute): Likewise.
1683         (Fmap_char_attribute): Likewise.
1684         (Fmap_char_attribute): Likewise.
1685
1686         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
1687         `XCHAR_ID_TABLE'.
1688         (encode_char_1): Likewise.
1689
1690 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1691
1692         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
1693         `Lisp_Char_ID_Table'.
1694         (mark_char_id_table): Deleted.
1695         (print_char_id_table): Likewise.
1696         (char_id_table_equal): Likewise.
1697         (char_id_table_hash): Likewise.
1698         (char_id_table_description): Likewise.
1699         (char_id_table): Likewise.
1700         (make_char_id_table): Use `Fmake_char_table' and
1701         `fill_char_table'.
1702         (get_char_id_table): Use `Lisp_Char_Table' instead of
1703         `Lisp_Char_ID_Table'.
1704         (put_char_id_table): Likewise.
1705         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
1706         `XCHAR_ID_TABLE'.
1707         (Fremove_char_attribute): Likewise.
1708         (syms_of_chartab): Don't define type `char-id-table'.
1709
1710         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
1711         (char_id_table): Likewise.
1712         (GC_CHAR_ID_TABLE_P): Likewise.
1713         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
1714         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
1715         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
1716         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
1717         (get_char_id_table): Use `Lisp_Char_Table' instead of
1718         `Lisp_Char_ID_Table'.
1719         (put_char_id_table_0): Likewise.
1720         (put_char_id_table): Likewise.
1721
1722 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1723
1724         * chartab.h: Lisp_Byte_Table related codes are moved from
1725         chartab.h.
1726
1727         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
1728
1729 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1730
1731         * chartab.h: Don't include "chartab.h".
1732         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
1733         (Lisp_Char_ID_Table): Likewise.
1734         (char_id_table): Likewise.
1735         (XCHAR_ID_TABLE): Likewise.
1736         (XSETCHAR_ID_TABLE): Likewise.
1737         (CHAR_ID_TABLE_P): Likewise.
1738         (GC_CHAR_ID_TABLE_P): Likewise.
1739         (get_char_id_table): Likewise.
1740
1741         * char-ucs.h: Include "chartab.h".
1742         (struct Lisp_Char_ID_Table): Moved to chartab.h.
1743         (Lisp_Char_ID_Table): Likewise.
1744         (char_id_table): Likewise.
1745         (XCHAR_ID_TABLE): Likewise.
1746         (XSETCHAR_ID_TABLE): Likewise.
1747         (CHAR_ID_TABLE_P): Likewise.
1748         (GC_CHAR_ID_TABLE_P): Likewise.
1749         (get_char_id_table): Likewise.
1750
1751 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1752
1753         * chartab.c (copy_uint8_byte_table): New function.
1754         (copy_uint16_byte_table): New function.
1755         (copy_byte_table): New function.
1756         (map_over_uint8_byte_table): Modify to avoid huge numbers of
1757         characters to call.
1758         (map_over_uint16_byte_table): Likewise.
1759         (map_over_byte_table): Likewise.
1760         (get_byte_table): Move prototype to chartab.h.
1761         (put_byte_table): Likewise.
1762         (put_char_id_table_0): Moved to chartab.h.
1763         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
1764         (char_table_entry_equal): Likewise.
1765         (char_table_entry_hash): Likewise.
1766         (char_table_entry_description): Likewise.
1767         (char_table_entry): Likewise.
1768         (make_char_table_entry): Likewise.
1769         (copy_char_table_entry): Likewise.
1770         (get_non_ascii_char_table_value): Likewise.
1771         (map_over_charset_ascii): Likewise.
1772         (map_over_charset_control_1): Likewise.
1773         (map_over_charset_row): Likewise.
1774         (map_over_other_charset): Likewise.
1775         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
1776         (print_char_table): Likewise.
1777         (char_table_equal): Likewise.
1778         (char_table_hash): Likewise.
1779         (char_table_description): Likewise.
1780         (fill_char_table): Likewise.
1781         (Fcopy_char_table): Likewise.
1782         (get_char_table): Likewise.
1783         (Fget_range_char_table): Likewise.
1784         (put_char_table): Likewise.
1785         (map_char_table): Likewise.
1786         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
1787         UTF-2000.
1788
1789 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1790
1791         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
1792         `Vauto_fill_chars' in XEmacs UTF-2000.
1793
1794         * chartab.h (get_byte_table): New prototype [moved from
1795         chartab.c].
1796         (put_byte_table): Likewise [moved from chartab.c].
1797         (put_char_id_table_0): New inline function [moved from chartab.c].
1798         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
1799         (Lisp_Char_Table_Entry): Likewise.
1800         (char_table_entry): Likewise.
1801         (XCHAR_TABLE_ENTRY): Likewise.
1802         (XSETCHAR_TABLE_ENTRY): Likewise.
1803         (CHAR_TABLE_ENTRYP): Likewise.
1804         (CHECK_CHAR_TABLE_ENTRY): Likewise.
1805         (NUM_ASCII_CHARS): Likewise.
1806         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
1807         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
1808
1809 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1810
1811         * chartab.c (get_char_id_table): Change interface.
1812         (put_char_id_table_0): New function.
1813         (put_char_id_table): Change interface; new implementation.
1814         (Fget_composite_char): Modify for interface change of
1815         `get_char_id_table'.
1816         (Fchar_variants): Likewise.
1817         (add_char_attribute_alist_mapper): Likewise.
1818         (Fchar_attribute_alist): Likewise.
1819         (Fget_char_attribute): Likewise.
1820         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
1821         as same as character as the first argument like `put-char-table';
1822         modify for interface change of `put_char_id_table'.
1823         (Fremove_char_attribute): Modify for interface change of
1824         `put_char_id_table'.
1825
1826 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1827
1828         * text-coding.c: Sync up with XEmacs 21.2.41.
1829         (COMPOSE_ADD_CHAR): Modify for interface change of
1830         `get_char_id_table'.
1831
1832         * mule-charset.c (put_char_ccs_code_point): Modify for interface
1833         change of `put_char_id_table'.
1834         (remove_char_ccs): Likewise.
1835
1836         * chartab.h (put_char_id_table): Change interface.
1837
1838         * char-ucs.h (get_char_id_table): Change interface.
1839         (charset_code_point): Modify for interface change of
1840         `get_char_id_table'.
1841         (encode_char_1): Likewise.
1842
1843 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1844
1845         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
1846         argument `ccs'.
1847         (map_over_uint16_byte_table): Likewise.
1848         (map_over_byte_table): Likewise.
1849         (map_char_id_table): Add new argument `range' like
1850         `map_char_table'.
1851         (Fmap_char_attribute): Add new argument `range' like
1852         `Fmap_char_table'.
1853
1854 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1855
1856         * chartab.c (map_over_uint8_byte_table): Change interface of
1857         mapping function to use struct chartab_range instead of Emchar.
1858         (map_over_uint16_byte_table): Likewise.
1859         (map_over_byte_table): Likewise.
1860         (map_char_id_table): Likewise.
1861         (struct slow_map_char_id_table_arg): Deleted.
1862         (slow_map_char_id_table_fun): Deleted.
1863         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
1864         function `slow_map_char_table_fun' instead of struct
1865         `slow_map_char_id_table_arg' and function
1866         `slow_map_char_id_table_fun'.
1867
1868 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1869
1870         * mule-charset.c: Move char-it-table related codes to chartab.c.
1871         (Vutf_2000_version): Moved to chartab.c.
1872         (Fdefine_char): Likewise.
1873         (Ffind_char): Likewise.
1874         (syms_of_mule_charset): Move types `uint8-byte-table',
1875         `uint16-byte-table', `byte-table' and `char-id-table' to
1876         chartab.c; move functions `char_attribute_list,
1877         `find_char_attribute_table, `char_attribute_alist,
1878         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
1879         `map_char_attribute, `define_char, `find_char, `char_variants and
1880         `get_composite_char to chartab.c; move symbols `=>ucs',
1881         `->decomposition', `compat', `isolated', `initial', `medial',
1882         `final', `vertical', `noBreak', `fraction', `super', `sub',
1883         `circle', `square', `wide', `narrow', `small' and `font' to
1884         chartab.c.
1885         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
1886         setting codes for `Vcharacter_composition_table' and
1887         `Vcharacter_variant_table' to chartab.c.
1888         (complex_vars_of_mule_charset): Move setting code for
1889         `Vchar_attribute_hash_table' to chartab.c.
1890
1891         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
1892         (make_char_id_table): New prototype.
1893         (put_char_id_table): Likewise.
1894         (Fget_char_attribute): Likewise.
1895
1896         * chartab.c: Move char-id-table related code from mule-charset.c.
1897         (Vutf_2000_version): Moved from mule-charset.c.
1898
1899         * char-ucs.h (Qucs): New external variable.
1900         (put_char_ccs_code_point): New prototype.
1901         (remove_char_ccs): Likewise.
1902
1903 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1904
1905         * mule-charset.c (Vcharset_ucs_jis): New variable.
1906         (Qucs_jis): Likewise.
1907         (syms_of_mule_charset): Add new symbol `ucs-jis'.
1908         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
1909
1910         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
1911
1912 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1913
1914         * mule-charset.c (map_over_uint8_byte_table): New function.
1915         (map_over_uint16_byte_table): Likewise.
1916         (map_over_byte_table): Likewise.
1917         (map_char_id_table): Likewise.
1918         (slow_map_char_id_table_fun): Likewise.
1919         (Fmap_char_attribute): Likewise.
1920         (syms_of_mule_charset): Add new function `map-char-attribute'.
1921
1922 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1923
1924         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
1925         (syms_of_mule_charset): Add new function `find-char'.
1926
1927 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1928
1929         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
1930         XEmacs UTF-2000.
1931         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
1932         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
1933         XEmacs UTF-2000.
1934         (complex_vars_of_mule_charset): Add new coded-charset
1935         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
1936         `ideograph-gt-pj-*'.
1937
1938         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
1939
1940 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1941
1942         * mule-charset.c (encode_builtin_char_1): Purge codes about
1943         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
1944         {MIN|MAX}_CHAR_HEBREW.
1945         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
1946         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
1947
1948         * char-ucs.h (MIN_CHAR_GREEK): Purged.
1949         (MAX_CHAR_GREEK): Purged.
1950         (MIN_CHAR_CYRILLIC): Purged.
1951         (MAX_CHAR_CYRILLIC): Purged.
1952         (MIN_CHAR_HEBREW): Commented out.
1953         (MAX_CHAR_HEBREW): Likewise.
1954
1955 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1956
1957         * mule-charset.c (Qto_ucs): New variable.
1958         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
1959         (Fdefine_char): Likewise.
1960         (syms_of_mule_charset): Add new symbol `=>ucs'.
1961
1962 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1963
1964         * mule-charset.c (Fdecode_char): Fixed.
1965
1966 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1967
1968         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
1969         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
1970         "tcvn5712-1".
1971
1972 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1973
1974         * mule-charset.c (Vcharset_ucs_big5): New variable.
1975         (Qucs_big5): Likewise.
1976         (syms_of_mule_charset): Add new symbol `ucs-big5'.
1977         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
1978
1979         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
1980
1981 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1982
1983         * mule-charset.c (decode_builtin_char): Check Big5 code range
1984         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
1985
1986 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1987
1988         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
1989         (Qchinese_gb12345): Likewise.
1990         (Fdecode_builtin_char): Fixed.
1991         (syms_of_mule_charset): Add `chinese-gb12345'.
1992         (complex_vars_of_mule_charset): Add coded-charset
1993         `chinese-gb12345'.
1994
1995         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
1996         (LEADING_BYTE_CHINESE_GB12345): New macro.
1997
1998 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1999
2000         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
2001         and `latin-viscii-upper' for `latin-viscii'.
2002
2003 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2004
2005         * mule-charset.c (Fdecode_builtin_char): Comment out
2006         regularization code for ISO-IR GR representation.
2007
2008 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2009
2010         * mule-charset.c (decode_builtin_char): New function; renamed from
2011         `make_builtin_char'; return -1 instead of signal.
2012         (Fdecode_builtin_char): Use `decode_builtin_char'.
2013
2014         * char-ucs.h (decode_builtin_char): New prototype; renamed from
2015         `make_builtin_char'.
2016         (DECODE_CHAR): Use `decode_builtin_char' instead of
2017         `make_builtin_char'; use mapping table of `chinese-big5' for
2018         `chinese-big5-{1,2}'.
2019
2020 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2021
2022         * text-coding.c (char_encode_big5): New function.
2023         (char_finish_big5): Likewise.
2024         (reset_encoding_stream): Use `char_encode_big5' and
2025         `char_finish_big5' for CODESYS_BIG5.
2026         (mule_encode): Don't use `encode_coding_big5'.
2027         (encode_coding_big5): Deleted.
2028
2029 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2030
2031         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
2032         0x81- in XEmacs UTF-2000.
2033         (detect_coding_big5): Likewise.
2034
2035 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2036
2037         * mule-charset.c (Fdefine_char): Don't use a CCS property to
2038         generate character-id if the CCS property does not have
2039         corresponding predefined character.
2040         (make_builtin_char): Return -1 if corresponding predefined
2041         character is not found.
2042         (Fdecode_char): Return nil if corresponding character is not
2043         found.
2044         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
2045         don't map to builtin ucs space.
2046
2047 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2048
2049         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
2050         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
2051
2052 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2053
2054         * mule-charset.c (Vcharset_ideograph_gt): New variable.
2055         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
2056         (Qideograph_gt): Likewise.
2057         (Qideograph_gt_pj_{1..11}): Likewise.
2058         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
2059         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
2060         `ideograph-gt-pj-11'.
2061         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
2062         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
2063         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
2064
2065         * char-ucs.h (LEADING_BYTE_GT): New macro.
2066         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
2067         (MIN_CHAR_GT): Likewise.
2068         (MAX_CHAR_GT): Likewise.
2069
2070 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2071
2072         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
2073         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
2074
2075         * doprnt.c (unsigned_int_converters): Add `c'.
2076         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
2077
2078         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
2079         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
2080         `MIN_CHAR_MOJIKYO'.
2081         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
2082         (MAX_CHAR_MOJIKYO_0): New macro.
2083         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
2084
2085 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2086
2087         * mule-charset.c (Fdefine_char): Delete cemented out code.
2088         (encode_builtin_char_1): Modify for new allocation of builtin
2089         Mojikyo characters.
2090
2091         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
2092
2093 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2094
2095         * mule-charset.c (Vcharset_ucs_cns): New variable.
2096         (Qucs_cns): New variable.
2097         (syms_of_mule_charset): Add new symbol `ucs-cns'.
2098         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
2099
2100 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2101
2102         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
2103
2104 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
2105
2106         * search.c (search_buffer): Make `charset_base_code' as
2107         character-id >> 6 to eliminate the corresponding last byte in
2108         UTF-8 representation [I'm not sure it is right thing].
2109         (boyer_moore): Likewise.
2110
2111 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
2112
2113         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
2114         representation in MULE.
2115
2116 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2117
2118         * text-coding.c (Fmake_coding_system): Use
2119         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
2120         `EXTERNAL_PROPERTY_LIST_LOOP'.
2121
2122 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2123
2124         * text-coding.c (decode_output_utf8_partial_char): New function.
2125         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
2126
2127 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2128
2129         * text-coding.c (decode_coding_utf8): Output original byte
2130         sequence if it is broken; change order of conditions.
2131
2132         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
2133         of conditions.
2134
2135         * mb-multibyte.h (BYTE_ASCII_P):
2136         Use bit ops for char-signedness safety.
2137         (BYTE_C0_P): Use bit ops for char-signedness safety.
2138         (BYTE_C1_P): Use bit ops for char-signedness safety.
2139
2140         * character.h: (XCHAR_OR_CHAR_INT):
2141         Always use inline function.
2142         Remove redundant type checking assert() - XINT will abort quite
2143         nicely.
2144
2145 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2146
2147         * text-coding.c: (Fencode_shift_jis_char):
2148         (Fencode_big5_char):
2149         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
2150         Replace 0 with '\0' when working with bytes.
2151         Replace initial "(" with "\(" in docstrings.
2152
2153         (Fmake_coding_system):
2154         When type is ccl and value is vector, register it with a proper
2155         symbol.  And checks whether the given ccl program is valid.
2156         (mule_decode): When calling ccl_driver, if src indicates
2157         NULL pointer, set an empty string instead.
2158         (mule_encode): Likewise.
2159
2160         (detect_eol_type):
2161         (detect_coding_sjis):
2162         (decode_coding_sjis):
2163         (detect_coding_big5):
2164         (decode_coding_big5):
2165         (detect_coding_ucs4):
2166         (decode_coding_ucs4):
2167         (detect_coding_utf8):
2168         (decode_coding_utf8):
2169         (detect_coding_iso2022):
2170         (decode_coding_iso2022):
2171         (decode_coding_no_conversion):
2172         (mule_decode):
2173         Make all detecting and decoding functions take an Extbyte * arg.
2174         (text_encode_generic):
2175         (encode_coding_big5):
2176         (encode_coding_no_conversion):
2177         (mule_encode):
2178         Make all encoding functions take a Bufbyte * arg.
2179         Use size_t instead of unsigned int for memory sizes.
2180         Only cast to unsigned char whenever dereferencing Extbyte *.
2181
2182         (struct lrecord_description fcd_description_1): Use countof.
2183         (complex_vars_of_file_coding):
2184         Use countof instead of sizeof.
2185         Use CHECK_NATNUM instead of CHECK_INT.
2186
2187 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2188
2189         * mule-charset.c (Fget_char_attribute): Add new optional argument
2190         `default-value'.
2191         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
2192         (remove_char_ccs): Likewise.
2193
2194 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2195
2196         * text-coding.c (char_encode_shift_jis): New implementation in
2197         UTF-2000.
2198         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
2199         ...)'.
2200
2201         * mule-charset.c (Vcharset_chinese_big5): New variable in
2202         UTF-2000.
2203         (Qchinese_big5): New variable in UTF-2000.
2204         (BIG5_SAME_ROW): New macro in UTF-2000.
2205         (make_builtin_char): Use builtin characters of
2206         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
2207         characters of `Vcharset_chinese_big5'.
2208         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
2209         (complex_vars_of_mule_charset): Add new coded-charset
2210         `chinese-big5' in UTF-2000.
2211
2212         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
2213         (Vcharset_chinese_big5): New external variable declaration.
2214         (Vcharset_japanese_jisx0208_1990): Likewise.
2215
2216 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2217
2218         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
2219         function.
2220         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
2221
2222 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2223
2224         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
2225         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
2226         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
2227         `mojikyo-pj-*'.
2228
2229 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2230
2231         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
2232
2233 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2234
2235         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2236         to 0.17.
2237
2238 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2239
2240         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
2241         for `CHARSET_BY_ATTRIBUTES'.
2242         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
2243         `CHARSET_BY_ATTRIBUTES'.
2244
2245         * text-coding.c (struct decoding_stream): Rename member `CH' to
2246         `CPOS'.
2247         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
2248         (decode_coding_sjis): Likewise.
2249         (decode_coding_big5): Likewise.
2250         (decode_coding_ucs4): Likewise.
2251         (decode_coding_utf8): Likewise.
2252         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
2253         `CHARSET_BY_ATTRIBUTES'.
2254         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
2255         `str->counter'; decode 3, 4 bytes sets.
2256         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
2257         sets.
2258         (decode_coding_no_conversion): Use `str->cpos' instead of
2259         `str->ch'.
2260
2261         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
2262         (Qmojikyo_2022_1): New variable.
2263         (make_charset): Don't use `CHARSET_TYPE_*'.
2264         (range_charset_code_point): Support coded-charset
2265         `mojikyo-2022-1'.
2266         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
2267         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
2268         `CHARSET_BY_ATTRIBUTES'.
2269         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
2270         `CHARSET_BY_ATTRIBUTES'.
2271         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
2272         (complex_vars_of_mule_charset): Add new coded-charset
2273         `mojikyo-2022-1'.
2274
2275         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
2276         interface; changed to inline function.
2277
2278         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
2279         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
2280         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
2281         (CHARSET_TYPE_94): Deleted.
2282         (CHARSET_TYPE_94X94): Deleted.
2283         (CHARSET_TYPE_96): Deleted.
2284         (CHARSET_TYPE_96X96): Deleted.
2285         (CHARSET_TYPE_128): Deleted.
2286         (CHARSET_TYPE_128X128): Deleted.
2287         (CHARSET_TYPE_256): Deleted.
2288         (CHARSET_TYPE_256X256): Deleted.
2289         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
2290         to inline function.
2291         (DECODE_MOJIKYO_2022): New inline function.
2292         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
2293         `Vcharset_mojikyo_2022_1'.
2294
2295 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2296
2297         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
2298         instead of `EQ'.
2299         (put_byte_table): Likewise.
2300         (char_id_table_equal): Use `get_byte_table' [new implementation].
2301
2302 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2303
2304         * mule-charset.c: Include <limits.h> in UTF-2000.
2305         (BT_UINT8_MIN): New macro in UTF-2000.
2306         (BT_UINT8_MAX): New macro in UTF-2000.
2307         (BT_UINT8_t): New macro in UTF-2000.
2308         (BT_UINT8_nil): New macro in UTF-2000.
2309         (BT_UINT8_unbound): New macro in UTF-2000.
2310         (INT_UINT8_P): New inline function in UTF-2000.
2311         (UINT8_VALUE_P): New inline function in UTF-2000.
2312         (UINT8_ENCODE): New inline function in UTF-2000.
2313         (UINT8_DECODE): New inline function in UTF-2000.
2314         (mark_uint8_byte_table): New function in UTF-2000.
2315         (print_uint8_byte_table): New function in UTF-2000.
2316         (uint8_byte_table_equal): New function in UTF-2000.
2317         (uint8_byte_table_hash): New function in UTF-2000.
2318         (make_uint8_byte_table): New function in UTF-2000.
2319         (uint8_byte_table_same_value_p): New function in UTF-2000.
2320         (BT_UINT16_MIN): New macro in UTF-2000.
2321         (BT_UINT16_MAX): New macro in UTF-2000.
2322         (BT_UINT16_t): New macro in UTF-2000.
2323         (BT_UINT16_nil): New macro in UTF-2000.
2324         (BT_UINT16_unbound): New macro in UTF-2000.
2325         (INT_UINT16_P): New inline function in UTF-2000.
2326         (UINT16_VALUE_P): New inline function in UTF-2000.
2327         (UINT16_ENCODE): New inline function in UTF-2000.
2328         (UINT16_DECODE): New inline function in UTF-2000.
2329         (UINT8_TO_UINT16): New inline function in UTF-2000.
2330         (mark_uint16_byte_table): New function in UTF-2000.
2331         (print_uint16_byte_table): New function in UTF-2000.
2332         (uint16_byte_table_equal): New function in UTF-2000.
2333         (uint16_byte_table_hash): New function in UTF-2000.
2334         (make_uint16_byte_table): New function in UTF-2000.
2335         (uint16_byte_table_same_value_p): New function in UTF-2000.
2336         (print_byte_table): New function in UTF-2000.
2337         (byte-table): Use `print_byte_table' as printer.
2338         (make_byte_table): Delete second argument `older'.
2339         (byte_table_same_value_p): New function in UTF-2000.
2340         (copy_byte_table): Deleted.
2341         (get_byte_table): New function in UTF-2000.
2342         (put_byte_table): New function in UTF-2000.
2343         (print_char_id_table): New function in UTF-2000.
2344         (char-id-table): Use `print_char_id_table' as printer.
2345         (make_char_id_table): Delete second argument `older'.
2346         (get_char_id_table): Use `get_byte_table [new implementation].
2347         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
2348         implementation].
2349         (Ffind_char_attribute_table): New function in UTF-2000.
2350         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
2351         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
2352         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
2353         (syms_of_mule_charset): Add new function
2354         `find-char-attribute-table' in UTF-2000.
2355
2356         * lrecord.h (enum lrecord_type): Add
2357         `lrecord_type_uint16_byte_table' and
2358         `lrecord_type_uint8_byte_table'.
2359
2360         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
2361         (Lisp_Uint8_Byte_Table): New type.
2362         (XUINT8_BYTE_TABLE): New macro.
2363         (XSETUINT8_BYTE_TABLE): New macro.
2364         (UINT8_BYTE_TABLE_P): New macro.
2365         (GC_UINT8_BYTE_TABLE_P): New macro.
2366         (struct Lisp_Uint16_Byte_Table): New structure.
2367         (Lisp_Uint16_Byte_Table): New type.
2368         (XUINT16_BYTE_TABLE): New macro.
2369         (XSETUINT16_BYTE_TABLE): New macro.
2370         (UINT16_BYTE_TABLE_P): New macro.
2371         (GC_UINT16_BYTE_TABLE_P): New macro.
2372
2373 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2374
2375         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
2376         (Vcharacter_ideographic_strokes_table): Deleted.
2377         (Vcharacter_total_strokes_table): Deleted.
2378         (Vcharacter_morohashi_daikanwa_table): Deleted.
2379         (Vcharacter_decomposition_table): Deleted.
2380         (Qname): Deleted because it is duplicated.
2381         (Qideographic_radical): Deleted.
2382         (Qideographic_strokes): Deleted.
2383         (Qtotal_strokes): Deleted.
2384         (Qmorohashi_daikanwa): Deleted.
2385         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
2386         `ideographic-radical', `ideographic-strokes', `total-strokes',
2387         `morohashi-daikanwa' and `->decomposition'.
2388         (Fget_char_attribute): Likewise.
2389         (Fput_char_attribute): Likewise; use `make-vector' instead of
2390         `make_older_vector' for `->decomposition' value.
2391         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
2392         `ideograph-daikanwa'.
2393         (syms_of_mule_charset): Delete builtin symbols `name',
2394         `ideographic-radical', `ideographic-strokes', `total-strokes' and
2395         `morohashi-daikanwa'.
2396         (vars_of_mule_charset): Don't setup
2397         `Vcharacter_ideographic_radical_table',
2398         `Vcharacter_ideographic_strokes_table',
2399         `Vcharacter_total_strokes_table',
2400         `Vcharacter_morohashi_daikanwa_table' and
2401         `Vcharacter_decomposition_table'.
2402
2403 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2404
2405         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
2406         `make_older_vector', `make_vector_newer_1' and
2407         `make_vector_newer'.
2408
2409         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
2410         `make_older_vector' and `make_vector_newer'.
2411
2412         * config.h.in (HAVE_GGC): New macro.
2413
2414 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2415
2416         * mule-charset.c (struct char_attribute_list_closure): New
2417         structure in UTF-2000.
2418         (add_char_attribute_to_list_mapper): New function in UTF-2000.
2419         (Fchar_attribute_list): Likewise.
2420         (Fset_charset_mapping_table): Use `make_vector_newer'.
2421         (Fdecode_builtin_char): New function in UTF-2000.
2422         (syms_of_mule_charset): Add new function `char-attribute-list' and
2423         `decode-builtin-char' in UTF-2000.
2424
2425         * lisp.h (make_vector_newer): New prototype.
2426
2427         * alloc.c (make_vector_newer_1): New function.
2428         (make_vector_newer): New function.
2429
2430 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2431
2432         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
2433         50100)'.
2434
2435 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2436
2437         * mule-charset.c (Vchar_attribute_hash_table): New variable.
2438         (Vcharacter_attribute_table): Deleted.
2439         (Vcharacter_name_table): Deleted.
2440         (put_char_attribute): Deleted.
2441         (remove_char_attribute): Deleted.
2442         (struct char_attribute_alist_closure): New structure.
2443         (add_char_attribute_alist_mapper): New function.
2444         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
2445         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
2446         (Fget_char_attribute): Likewise.
2447         (Fput_char_attribute): Likewise.
2448         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
2449         of `remove_char_attribute'.
2450         (Fdefine_char): Return character.
2451         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
2452         and `Vcharacter_name_table'.
2453         (complex_vars_of_mule_charset): Likewise
2454         `Vchar_attribute_hash_table'.
2455
2456 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2457
2458         * character.h (CHARC_CHARSET): New macro.
2459         (CHARC_CHARSET_ID): New macro.
2460         (CHARC_CODE_POINT): New macro.
2461         (CHARC_COLUMNS): New macro.
2462         (CHARC_TO_CHAR): New inline function.
2463         (CHARC_EQ): New inline function.
2464         (CHARC_ASCII_EQ): New inline function.
2465         (CHARC_IS_SPACE): New inline function.
2466         (ASCII_TO_CHARC): New inline function.
2467
2468         * char-ucs.h (encode_char_2): Deleted.
2469         (ENCODE_CHAR): Use `encode_char_1' again.
2470         (breakup_char_1): Likewise.
2471         (CHAR_TO_CHARC): New inline function.
2472
2473         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
2474
2475 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2476
2477         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
2478         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
2479         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
2480         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
2481         (create_string_text_block): Use `CHARC_ASCII_EQ' and
2482         `CHARC_IS_SPACE'.
2483         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
2484
2485         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
2486         `CHARC_CODE_POINT'.
2487         (x_output_display_block): Use `CHARC_CHARSET' and
2488         `CHARC_ASCII_EQ'.
2489
2490         * redisplay-tty.c (tty_output_display_block): Use
2491         `CHARC_ASCII_EQ'.
2492         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
2493
2494         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
2495
2496         * insdel.c (find_charsets_in_charc_string): Use
2497         `CHARC_CHARSET_ID'.
2498         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
2499         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
2500         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
2501         (convert_charc_string_into_malloced_string): Likewise.
2502
2503 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2504
2505         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
2506         instead of <Emchar_dynarr *> for buf; use
2507         `convert_bufbyte_string_into_charc_dynarr' instead of
2508         `convert_bufbyte_string_into_emchar_dynarr'; use
2509         `find_charsets_in_charc_string' instead of
2510         `find_charsets_in_emchar_string'.
2511
2512         * redisplay.h:
2513         - Include "character.h".
2514         (struct rune): New member `cglyph'; delete member `chr'.
2515
2516         * redisplay.c (redisplay_text_width_charc_string): New function;
2517         delete `redisplay_text_width_emchar_string'.
2518         (rtw_charc_dynarr): New variable; renamed from
2519         `rtw_emchar_dynarr'.
2520         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
2521         `rtw_emchar_dynarr'; use
2522         `convert_bufbyte_string_into_charc_dynarr' instead of
2523         `convert_bufbyte_string_into_emchar_dynarr'; use
2524         `redisplay_text_width_charc_string' instead of
2525         `redisplay_text_width_emchar_string'.
2526         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
2527         instead of `rtw_emchar_dynarr'; use
2528         `convert_bufbyte_string_into_charc_dynarr' instead of
2529         `convert_bufbyte_string_into_emchar_dynarr'.
2530         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
2531         `redisplay_text_width_charc_string' instead of
2532         `redisplay_text_width_emchar_string'.
2533         (create_text_block): Modify for <struct rune> change.
2534         (generate_formatted_string_db): Likewise.
2535         (create_string_text_block): Likewise.
2536         (pixel_to_glyph_translation): Likewise.
2537
2538         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
2539         instead of <const Emchar *>.
2540         (x_text_width): Likewise.
2541         (x_output_display_block): Use <Charc_dynarr *> instead
2542         <Emchar_dynarr *>; modify for <structure rune> change.
2543         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
2544         *>.
2545
2546         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
2547         <const Emchar *>; use `charc_string_displayed_columns' instead of
2548         `emchar_string_displayed_columns'.
2549         (tty_output_display_block): Use <Charc_dynarr *> instead of
2550         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
2551         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
2552         (tty_output_charc_dynarr_dynarr): New variable; renamed from
2553         `tty_output_emchar_dynarr_dynarr'.
2554         (tty_output_charc_dynarr): New function; delete
2555         `tty_output_charc_dynarr'.
2556
2557         * redisplay-output.c (compare_runes): Modify for `struct rune'.
2558         (redisplay_output_layout): Use <Charc_dynarr *> instead of
2559         <Emchar_dynarr *> for buf; use
2560         `convert_bufbyte_string_into_charc_dynarr' instead of
2561         `convert_bufbyte_string_into_emchar_dynarr'.
2562
2563         * frame.c (title_string_charc_dynarr): New variable; renamed from
2564         `title_string_emchar_dynarr'.
2565         (generate_title_string): Use `title_string_charc_dynarr' instead
2566         of `title_string_emchar_dynarr'; use
2567         `convert_charc_string_into_malloced_string' instead of
2568         `convert_emchar_string_into_malloced_string'.
2569         (init_frame): Use `title_string_charc_dynarr' instead of
2570         `title_string_emchar_dynarr'.
2571
2572         * console.h:
2573         - Include "character.h".
2574         (struct console_methods): Use <const Charc *> instead of <const
2575         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
2576         <Emchar_dynarr *> in output_string_method.
2577
2578         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
2579         <Emchar_dynarr *>.
2580
2581         * console-stream.c (stream_text_width): Use <const Charc *>
2582         instead of <const Emchar *>.
2583
2584         * character.h (Charc_dynarr): New type.
2585
2586         * char-ucs.h (structure Charc): New structure; define new type
2587         `Charc'.
2588
2589         * char-lb.h (DECODE_CHAR): New inline function.
2590         (encode_char_1): New inline function.
2591         (ENCODE_CHAR): New macro.
2592         (structure Charc): New structure; define new type `Charc'.
2593
2594         * char-1byte.h (Vcharset_control_1): New macro.
2595         (Vcharset_latin_iso8859_1): New macro.
2596         (DECODE_CHAR): New inline function.
2597         (encode_char_1): New inline function.
2598         (ENCODE_CHAR): New macro.
2599         (structure Charc): New structure; define new type `Charc'.
2600
2601         * insdel.c (find_charsets_in_charc_string): New function; delete
2602         `find_charsets_in_emchar_string'.
2603         (charc_string_displayed_columns): New function; delete
2604         `emchar_string_displayed_columns'.
2605         (convert_bufbyte_string_into_charc_dynarr): New function; delete
2606         `convert_bufbyte_string_into_emchar_dynarr'.
2607         (convert_charc_string_into_bufbyte_dynarr): New function; delete
2608         `convert_charc_string_into_bufbyte_dynarr'.
2609         (convert_charc_string_into_malloced_string): New function; delete
2610         `convert_charc_string_into_malloced_string'.
2611
2612         * buffer.h (find_charsets_in_charc_string): New prototype; delete
2613         `find_charsets_in_emchar_string'.
2614         (charc_string_displayed_columns): New prototype; delete
2615         `emchar_string_displayed_columns'.
2616         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
2617         `convert_charc_string_into_bufbyte_dynarr'.
2618         (convert_charc_string_into_malloced_string): New prototype; delete
2619         `convert_charc_string_into_malloced_string'.
2620
2621 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2622
2623         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
2624
2625 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2626
2627         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
2628
2629         * char-ucs.h: Use <short> for <Charset_ID>.
2630
2631         * mule-charset.h, char-1byte.h: Use <unsigned char> for
2632         <Charset_ID>.
2633
2634 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2635
2636         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2637         to 0.16.
2638
2639 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2640
2641         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
2642         variable.
2643         (Qmorohashi_daikanwa): New variable.
2644         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
2645         for `morohashi-daikanwa' attribute.
2646         (Fget_char_attribute): Likewise.
2647         (Fput_char_attribute): Likewise.
2648         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
2649         has the same value of `ideograph-daikanwa'.
2650         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
2651         (vars_of_mule_charset): Setup
2652         `Vcharacter_morohashi_daikanwa_table'.
2653
2654 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2655
2656         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
2657         attributes.
2658         (add_charset_to_list_mapper): Add `key' instead of
2659         `XCHARSET_NAME (value)' to return aliases.
2660
2661 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2662
2663         * mule-charset.c (Vcharacter_ideographic_radical_table): New
2664         variable.
2665         (Vcharacter_ideographic_strokes_table): New variable.
2666         (Qideographic_radical): New variable.
2667         (Qideographic_strokes): New variable.
2668         (Fchar_attribute_alist): Use
2669         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
2670         attribute; use `Vcharacter_ideographic_strokes_table' for
2671         `ideographic-strokes' attribute.
2672         (Fget_char_attribute): Likewise.
2673         (Fput_char_attribute): Likewise.
2674         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
2675         `ideographic-strokes'.
2676         (vars_of_mule_charset): Setup
2677         `Vcharacter_ideographic_radical_table' and
2678         `Vcharacter_ideographic_strokes_table'.
2679
2680 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2681
2682         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
2683         (Qtotal_strokes): New variable.
2684         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
2685         `total-strokes' attribute.
2686         (Fget_char_attribute): Likewise.
2687         (Fput_char_attribute): Likewise.
2688         (syms_of_mule_charset): Add new symbol `total-strokes'.
2689         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
2690
2691 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2692
2693         * mule-charset.c (Vcharacter_decomposition_table): New variable.
2694         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
2695         are found.
2696         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
2697         `->decomposition' attribute.
2698         (Fput_char_attribute): Likewise.
2699         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
2700
2701 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2702
2703         * mule-charset.c (decoding_table_check_elements): New function.
2704         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
2705
2706 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2707
2708         * mule-charset.c (Fset_charset_mapping_table): Use
2709         `put_char_ccs_code_point'.
2710
2711 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2712
2713         * mule-charset.c (decoding_table_put_char): New inline function.
2714         (put_char_ccs_code_point): Use `decoding_table_put_char'.
2715
2716 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2717
2718         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
2719         (XCHARSET_BYTE_SIZE): New macro.
2720         (decoding_table_remove_char): New inline function.
2721         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
2722         `decoding_table_remove_char'.
2723         (remove_char_ccs): Use `decoding_table_remove_char'.
2724         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
2725
2726 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2727
2728         * mule-charset.c (Vcharacter_name_table): New variable.
2729         (Qname): New variable.
2730         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
2731         attribute.
2732         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
2733         `Vcharacter_name_table' for `name' attribute.
2734         (Fremove_char_attribute): Use function `remove_char_ccs'.
2735         (put_char_ccs_code_point): New function.
2736         (remove_char_ccs): New function.
2737         (syms_of_mule_charset): Add new symbol `name'.
2738         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
2739
2740 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2741
2742         * mule-charset.c (make_byte_table): Add new argument `older'.
2743         (make_char_id_table): Likewise.
2744         (copy_char_id_table): Comment out because it is not used.
2745         (put_char_id_table): Modify for `make_byte_table'.
2746         (Fput_char_attribute): Make encoding_table as older object;
2747         inherit older bit of `Vcharacter_composition_table'.
2748         (mark_charset): Don't mark `cs->encoding_table'.
2749         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
2750         normal object; make `Vcharacter_composition_table' as an older
2751         object; delete staticpro for `Vcharacter_composition_table'; make
2752         `Vcharacter_variant_table' as a normal object.
2753
2754         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
2755         (mark_object): Don't check older object in UTF-2000.
2756
2757         * lrecord.h (struct lrecord_header): Add new member `older' in
2758         UTF-2000.
2759         (set_lheader_implementation): Setup `SLI_header->older' in
2760         UTF-2000.
2761         (set_lheader_older_implementation): New macro in UTF-2000.
2762         (OLDER_RECORD_P): New macro in UTF-2000.
2763         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
2764         (alloc_older_lcrecord): New prototype in UTF-2000.
2765         (alloc_older_lcrecord_type): New macro in UTF-2000.
2766
2767 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2768
2769         * mule-charset.c (byte_table_description): Use
2770         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
2771         (char_id_table_description): Delete bogus `, 1'.
2772         (Fget_char_attribute): Refer encoding_table of each coded-charset
2773         to get value of coded-charset attribute of a character.
2774         (Fput_char_attribute): Use `make_older_vector' instead of
2775         `make_vector'; use encoding_table of each coded-charset to store
2776         value of coded-charset attribute of a character.
2777         (Fremove_char_attribute): Use encoding_table of each coded-charset
2778         to store value of coded-charset attribute of a character.
2779         (mark_charset): Mark `cs->encoding_table'; don't mark
2780         `cs->decoding_table'.
2781         (charset_description): Add description of new member
2782         `encoding_table'.
2783         (make_charset): Initialize `encoding_table'.
2784
2785         * char-ucs.h (struct Lisp_Charset): Add new member
2786         `encoding_table'.
2787         (CHARSET_ENCODING_TABLE): New macro.
2788         (XCHARSET_ENCODING_TABLE): New macro.
2789         (charset_code_point): New implementation.
2790         (encode_char_1): Likewise.
2791
2792         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
2793         (disksave_object_finalization_1): Call finalizers of
2794         `all_older_lcrecords' in UTF-2000.
2795         (make_older_vector): New function in UTF-2000.
2796         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
2797         UTF-2000.
2798
2799         * lisp.h (make_older_vector): New prototype in UTF-2000.
2800
2801 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2802
2803         * lrecord.h (enum lrecord_type): Rename
2804         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
2805
2806         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
2807         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
2808         `get_char_code_table'.
2809
2810         * mule-charset.c (mark_char_id_table): Renamed from
2811         `mark_char_code_table'.
2812         (char_id_table_equal): Renamed from `char_code_table_equal'.
2813         (char_id_table_hash): Renamed from `char_code_table_hash'.
2814         (make_char_id_table): Renamed from `make_char_code_table'.
2815         (copy_char_id_table): Renamed from `copy_char_code_table'.
2816         (get_char_id_table): Renamed from `get_char_code_table'.
2817         (put_char_id_table): Renamed from `put_char_code_table'.
2818         (to_char_id): Renamed from `to_char_code'.
2819
2820         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
2821         `Lisp_Char_Code_Table'.
2822         (char_id_table): Renamed from `char_code_table'.
2823         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
2824         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
2825         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
2826         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
2827         (get_char_id_table): Renamed from `get_char_code_table'.
2828
2829 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2830
2831         * lrecord.h (enum lrecord_type): Rename
2832         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
2833
2834         * mule-charset.c (mark_byte_table): Renamed from
2835         `mark_char_byte_table'.
2836         (byte_table_equal): Renamed from `char_byte_table_equal'.
2837         (byte_table_hash): Renamed from `byte_table_hash'.
2838         (make_byte_table): Renamed from `make_byte_table'.
2839         (copy_byte_table): Renamed from `copy_char_byte_table'.
2840
2841         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
2842         `Lisp_Char_Byte_Table'.
2843         (byte_table): Renamed from `char_byte_table'.
2844         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
2845         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
2846         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
2847         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
2848
2849 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2850
2851         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
2852         (dfc_convert_to_internal_format): Likewise.
2853         
2854         * text-coding.c (Fcoding_system_canonical_name_p): New function.
2855         * text-coding.c (Fcoding_system_alias_p): New function.
2856         * text-coding.c (Fcoding_system_aliasee): New function.
2857         * text-coding.c (append_suffix_to_symbol): New function.
2858         * text-coding.c (dangling_coding_system_alias_p): New function.
2859         * text-coding.c (Ffind_coding_system):
2860         * text-coding.c (Fcopy_coding_system):
2861         * text-coding.c (encode_coding_no_conversion):
2862         * text-coding.c (syms_of_file_coding):
2863         * text-coding.c (vars_of_file_coding):
2864         Rewrite coding system alias code.
2865         Allow nested aliases, like symbolic links.
2866         Allow redefinition of coding system aliases.
2867         Prevent existence of dangling coding system aliases.
2868         Eliminate convert_to_external_format.
2869         Eliminate convert_to_internal_format.
2870         
2871         * text-coding.c: Change enum eol_type to eol_type_t.
2872
2873 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2874
2875         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
2876         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
2877
2878         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
2879         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
2880
2881 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2882
2883         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
2884         `ideograph-daikanwa'.
2885
2886         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
2887         (Vcharset_ucs_bmp): Likewise.
2888         (Vcharset_mojikyo): Add new extern variable definition.
2889         (Vcharset_latin_iso8859_2): Deleted because it is not used.
2890         (Vcharset_latin_iso8859_3): Likewise.
2891         (Vcharset_latin_iso8859_4): Likewise.
2892         (Vcharset_latin_iso8859_9): Likewise.
2893         (Vcharset_latin_viscii_lower): Likewise.
2894         (Vcharset_latin_viscii_upper): Likewise.
2895         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
2896         `mojikyo' code-point is used to decode.
2897         (encode_char_2): New function [to convert `mojikyo' code-point to
2898         Mojikyo font encoding].
2899         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
2900         (breakup_char_1): Likewise.
2901         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
2902
2903 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2904
2905         * text-coding.c (Fmake_coding_system): Add document about
2906         `disable-composition' property.
2907
2908 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2909
2910         * text-coding.c (Qdisable_composition): New variable; delete
2911         `Qcomposite'.
2912         (Fmake_coding_system): Add new property `disable-composite';
2913         delete property `composite'.
2914         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
2915         instead of `!CODING_SYSTEM_COMPOSITE'.
2916         (syms_of_file_coding): Add new symbol `disable-composition';
2917         delete symbol `composite'.
2918
2919         * file-coding.h (struct Lisp_Coding_System): Add
2920         `disable_composition'; delete `enable_composition'.
2921         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
2922         `CODING_SYSTEM_COMPOSITE'.
2923         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
2924         `XCODING_SYSTEM_COMPOSITE'.
2925
2926 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2927
2928         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2929         to 0.15.
2930
2931 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2932
2933         * text-coding.c (Qcomposite): New variable.
2934         (Fmake_coding_system): Add new property `composite'.
2935         (struct decoding_stream): Add `combined_char_count',
2936         `combined_chars' and `combining_table' in UTF-2000.
2937         (COMPOSE_FLUSH_CHARS): New macro.
2938         (COMPOSE_ADD_CHAR): New macro.
2939         (reset_decoding_stream): Reset `str->combined_char_count' and
2940         `str->combining_table' in UTF-2000.
2941         (decode_coding_iso2022): Modify for character-decomposition.
2942         (syms_of_file_coding): Add new symbol `composite'.
2943
2944 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2945
2946         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
2947         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
2948         of `Vcharacter_composition_table' if `->decomposition' property
2949         has only 1 element.
2950         (Qlatin_tcvn5712): New variable.
2951         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
2952         (complex_vars_of_mule_charset): Add new coded-charset
2953         `latin-tcvn5712'.
2954
2955         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
2956
2957 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2958
2959         * file-coding.h (struct Lisp_Coding_System): Add
2960         `enable_composition'.
2961         (CODING_SYSTEM_COMPOSITE): New macro.
2962         (XCODING_SYSTEM_COMPOSITE): New macro.
2963
2964 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
2965
2966         * mule-canna.c (c2mu): Fix problem with UTF-2000.
2967
2968 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
2969
2970         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
2971         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
2972
2973 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
2974
2975         * mule-charset.c (Vcharset_mojikyo): New variable.
2976         (Fdefine_char): Don't use coded-charset which does not have
2977         non-builtin character range to allocate character-id.
2978         (Qmojikyo): New variable.
2979         (syms_of_mule_charset): Add new symbol `mojikyo'.
2980         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
2981
2982         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
2983         (LEADING_BYTE_MOJIKYO): New macro.
2984         (MIN_CHAR_MOJIKYO): New macro.
2985         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
2986         (MAX_CHAR_MOJIKYO): New macro.
2987
2988 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
2989
2990         * mule-charset.c (remove_char_attribute): Fixed.
2991
2992 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
2993
2994         * mule-charset.c (remove_char_attribute): New function.
2995         (Fremove_char_attribute): New function.
2996         (encode_builtin_char_1): Comment out builtin-support for
2997         greek-iso8859-7 and cyrillic-iso8859-5.
2998         (Fdecode_char): Check `code' is an integer.
2999         (syms_of_mule_charset): Add `remove-char-attribute'.
3000         (MIN_CHAR_GREEK): Deleted.
3001         (MAX_CHAR_GREEK): Likewise.
3002         (MIN_CHAR_CYRILLIC): Likewise.
3003         (MAX_CHAR_CYRILLIC): Likewise.
3004         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
3005         MAX_CHAR_GREEK for `greek-iso8859-7'.
3006
3007         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
3008         (MAX_CHAR_GREEK): Likewise.
3009         (MIN_CHAR_CYRILLIC): Likewise.
3010         (MAX_CHAR_CYRILLIC): Likewise.
3011
3012 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
3013
3014         * mule-charset.c (Fdefine_char): Fix problem when new code-point
3015         format is used without `ucs' property.
3016         (Fdecode_char): Fix problem with GR representation.
3017         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
3018         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
3019
3020 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3021
3022         * mule-charset.c (make_builtin_char): New function.
3023         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
3024         (Fset_charset_mapping_table): Modify for new representation of
3025         code-point.
3026         (Fdecode_char): New function.
3027         (syms_of_mule_charset): Add new builtin function `decode-char' in
3028         UTF-2000.
3029
3030         * char-ucs.h (make_builtin_char): New prototype.
3031         (DECODE_CHAR): New inline function.
3032         (MAKE_CHAR): Use `DECODE_CHAR'.
3033
3034 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
3035
3036         * text-coding.c (parse_charset_conversion_specs): Use
3037         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
3038         `XCHARSET_TYPE'.
3039         (iso2022_designate): Likewise.
3040
3041         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
3042         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
3043
3044         * mule-charset.c (Vcharset_ucs): New variable.
3045         (print_charset): Change design; use `CHARSET_CHARS' and
3046         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
3047         (make_charset): Change signature to specify `chars' and
3048         `dimension' instead of `type'.
3049         (range_charset_code_point): Modify for 256^n-set.
3050         (encode_builtin_char_1): Encode as `ucs' in default.
3051         (Fmake_charset): Modify for `make_charset'.
3052         (Fmake_reverse_direction_charset): Likewise.
3053         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
3054         UTF-2000.
3055         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
3056         for `make_charset'.
3057
3058         * char-ucs.h (Vcharset_ucs): New variable.
3059         (LEADING_BYTE_UCS): New macro.
3060         (struct Lisp_Charset): Delete `type'; change type of `dimension'
3061         and `chars' to `unsigned short' from `unsigned int'.
3062         (CHARSET_TYPE): Deleted.
3063         (XCHARSET_TYPE): Deleted.
3064
3065 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
3066
3067         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
3068
3069         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
3070         (ENCODE_CHAR): New macro.
3071
3072 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3073
3074         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3075         to 0.14 (Kawachi-Katakami).
3076
3077 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3078
3079         * text-coding.c (char_encode_shift_jis): Modify for
3080         `charset_code_point'.
3081         (char_encode_iso2022): Likewise.
3082
3083         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
3084         (integer) instead of list of <Lisp_Object>s (integers) as the
3085         format of code-point of a coded-charset.
3086         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
3087         (encode_builtin_char_1): New function; delete
3088         `split_builtin_char'.
3089         (charset_code_point): Return <int> instead of <Lisp_Object>.
3090         (Fsplit_char): Don't use `SPLIT_CHAR'.
3091
3092         * char-ucs.h (encode_builtin_char_1): New prototype; delete
3093         prototype for `split_builtin_char'.
3094         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
3095         (charset_code_point): Likewise.
3096         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
3097         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
3098
3099 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
3100
3101         * mule-charset.c (complex_vars_of_mule_charset): Don't define
3102         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
3103
3104 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3105
3106         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
3107
3108         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
3109         (MAX_CHAR_OBS_94x94): Deleted.
3110
3111 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3112
3113         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
3114
3115         * char-ucs.h (MAX_CHAR_BMP): New macro.
3116
3117 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3118
3119         * text-coding.c: Sync with r21-2-24.
3120
3121 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
3122
3123         * file-coding.c: Modify for UTF-2000.
3124
3125 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3126
3127         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3128         to 0.13 (Takaida).
3129
3130 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3131
3132         * mule-charset.c (split_builtin_char): Delete builtin support for
3133         `katakana-jisx0201'.
3134         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
3135         BMP area in builtin representation.
3136
3137         * char-ucs.h (MAKE_CHAR): Delete builtin support for
3138         `Vcharset_katakana_jisx0201'.
3139
3140 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
3141
3142         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
3143         (Qisolated): New variable.
3144         (Qinitial): New variable.
3145         (Qmedial): New variable.
3146         (Qfinal): New variable.
3147         (Qvertical): New variable.
3148         (Qsmall): New variable.
3149         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
3150         `Qvertical' and `Qsmall'.
3151         (Qmojikyo_pj_[1 .. 21]): New variable.
3152         (syms_of_mule_charset): Add new symbols `isolated', `initial',
3153         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
3154         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
3155         .. 21]'.
3156
3157 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
3158
3159         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
3160         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
3161         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
3162
3163 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3164
3165         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
3166         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
3167         BMP.
3168         (Qjapanese_jisx0208_1990): New variable.
3169         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
3170         (complex_vars_of_mule_charset): Add new coded-charset
3171         `japanese-jisx0208-1990'.
3172
3173         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
3174         (MIN_CHAR_JIS_X0208_1990): New macro.
3175         (MAX_CHAR_JIS_X0208_1990): New macro.
3176
3177 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3178
3179         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
3180         coded-charset is not found.
3181
3182 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3183
3184         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
3185         (Fdefine_char): Use `Fmake_char'.
3186
3187 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3188
3189         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
3190         (Vcharset_hiragana_jisx0208): Deleted.
3191         (Vcharset_katakana_jisx0208): Deleted.
3192         (Qideograph_daikanwa): New variable.
3193         (Qhiragana_jisx0208): Deleted.
3194         (Qkatakana_jisx0208): Deleted.
3195         (split_builtin_char): Split `ideograph-daikanwa'.
3196         (Fsplit_char): New implementation for UTF-2000.
3197         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
3198         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
3199         (complex_vars_of_mule_charset): Add new coded-charset
3200         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
3201         `katakana-jisx0208'.
3202
3203         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
3204         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
3205         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
3206         (MIN_CHAR_DAIKANWA): New macro.
3207         (MAX_CHAR_DAIKANWA): New macro.
3208
3209 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3210
3211         * data.c (Fstring_to_number): Don't recognize floating point if
3212         base is not 10.
3213
3214 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3215
3216         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
3217
3218 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3219
3220         * mule-charset.c (Qsquare): New variable.
3221         (to_char_code): Add `Qsquare'.
3222         (syms_of_mule_charset): Add new symbol `square'.
3223
3224 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3225
3226         * mule-charset.c (Qcircle): New variable.
3227         (to_char_code): Add `Qcircle'.
3228         (syms_of_mule_charset): Add new symbol `circle'.
3229
3230 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3231
3232         * mule-charset.c (Qfont): New variable.
3233         (to_char_code): Add `Qfont'.
3234         (syms_of_mule_charset): Add new symbol `font'.
3235
3236 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3237
3238         * mule-charset.c (Qsub): New variable.
3239         (to_char_code): Add `Qsub'.
3240         (syms_of_mule_charset): Add new symbol `sub'.
3241
3242 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3243
3244         * mule-charset.c (Fput_char_attribute): Convert each element of
3245         VALUE to GL position if ATTRIBUTE is a GR-set,
3246
3247 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3248
3249         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
3250         coded-charset is a GR-set.
3251
3252 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3253
3254         * mule-charset.c (Fput_char_attribute): Check each element of
3255         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
3256
3257 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3258
3259         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
3260         UTF-2000.
3261         (Qethiopic_ucs): New variable in UTF-2000.
3262         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
3263         (complex_vars_of_mule_charset): Add new coded-charset
3264         `ethiopic-ucs' in UTF-2000.
3265
3266         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
3267         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
3268         9)'.
3269         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
3270         10)'.
3271         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
3272
3273 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
3274
3275         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
3276         `ascii'.
3277
3278 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3279
3280         * mule-charset.c (Vcharacter_variant_table): New variable.
3281         (Q_ucs): New variable.
3282         (Fchar_variants): New function.
3283         (Fput_char_attribute): Register `->ucs' value to
3284         `Vcharacter_variant_table'.
3285         (syms_of_mule_charset): Add new function `char-variants' and new
3286         symbol `->ucs'.
3287         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
3288
3289 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3290
3291         * mule-charset.c (get_char_code_table): Allow negative character
3292         code.
3293         (put_char_code_table): Likewise.
3294         (Vcharacter_composition_table): New variable.
3295         (Q_decomposition): New variable.
3296         (Qwide): New variable.
3297         (Qnarrow): New variable.
3298         (Qcompat): New variable.
3299         (QnoBreak): New variable.
3300         (Qsuper): New variable.
3301         (Qfraction): New variable.
3302         (to_char_code): New function.
3303         (Fget_composite_char): New function.
3304         (Fput_char_attribute): Register `->decomposition' value to
3305         `Vcharacter_composition_table'.
3306         (syms_of_mule_charset): Add new function `get-composite-char', new
3307         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
3308         `super' and `fraction'.
3309         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
3310
3311 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3312
3313         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
3314         character; copy the return value.
3315
3316 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3317
3318         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
3319
3320         * mule-charset.c (range_charset_code_point): Must use make_int.
3321         (split_builtin_char): New function.
3322
3323 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3324
3325         * mule-charset.c (char_byte_table): Change name from
3326         "char-code-table" to "char-byte-table".
3327         (mark_char_code_table): New function.
3328         (char_code_table_equal): New function.
3329         (char_code_table_hash): New function.
3330         (char_code_table_description): New constant.
3331         (char_code_table): New type.
3332         (make_char_code_table): New function.
3333         (copy_char_code_table): New function.
3334         (get_char_code_table): Modify for `char_code_table' type.
3335         (put_char_code_table): Likewise.
3336         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
3337         (Kashiwara).
3338
3339         * char-ucs.h (char_code_table): New type.
3340         (XCHAR_CODE_TABLE): New macro.
3341         (XSETCHAR_CODE_TABLE): New macro.
3342         (CHAR_CODE_TABLE_P): New macro.
3343         (GC_CHAR_CODE_TABLE_P): New macro.
3344         (struct Lisp_Char_Code_Table): New structure.
3345
3346 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3347
3348         * mule-charset.c (Fmake_charset): Setup byte_offset for
3349         {94|96}^n-set.
3350
3351 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3352
3353         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
3354         character.
3355
3356 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3357
3358         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
3359         is found.
3360
3361 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3362
3363         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
3364         charset, it is regarded as a charset.
3365         (put_char_attribute): New function in UTF-2000.
3366         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
3367         charset, mapping-table of the charset is modified.
3368         (Fdefine_char): New function in UTF-2000.
3369         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
3370         `Fput_char_attribute'.
3371         (syms_of_mule_charset): Add new function `define-char' and new
3372         symbol `ucs' in UTF-2000.
3373         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
3374
3375 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3376
3377         * mule-charset.c (Fcharset_name): Define `byte_offset' in
3378         non-UTF-2000 configuration.
3379
3380 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3381
3382         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
3383         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
3384
3385         * mule-charset.c (mark_charset): `cs->encoding_table' has been
3386         deleted.
3387         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
3388         (Fset_charset_mapping_table): Likewise.
3389
3390         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
3391         (CHARSET_ENCODING_TABLE): Delete.
3392         (XCHARSET_ENCODING_TABLE): Delete.
3393         (charset_code_point): New interface.
3394
3395 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3396
3397         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
3398         instead of `charset_get_byte1' and `charset_get_byte2'.
3399
3400         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
3401         (charset_get_byte2): Deleted.
3402
3403 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3404
3405         * char-ucs.h (SPLIT_CHAR): New inline function.
3406         (breakup_char_1): Use `SPLIT_CHAR'.
3407
3408         * mule-charset.c (range_charset_code_point): New function.
3409         (charset_code_point): New function.
3410
3411         * char-ucs.h (range_charset_code_point): New interface.
3412         (breakup_char_1): Use `range_charset_code_point'.
3413
3414 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3415
3416         * mule-charset.c (Fmake_charset): Delete unused local variable
3417         `code_offset'.
3418
3419         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
3420         (breakup_char_1): Find a charset and code-point in
3421         `Vcharacter_attribute_table'.
3422
3423 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3424
3425         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3426         to 0.10 (Yao).
3427
3428 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
3429
3430         * mule-charset.c (Vcharacter_attribute_table): New variable.
3431         (Fchar_attribute_alist): New function.
3432         (Fget_char_attribute): New function.
3433         (Fput_char_attribute): New function.
3434         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
3435         too.
3436         (syms_of_mule_charset): Add new function `char-attribute-alist',
3437         `get-char-attribute' and `put-char-attribute'.
3438         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
3439
3440 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
3441
3442         * mule-charset.c (Fmake_charset): Just use
3443         `get_unallocated_leading_byte'.
3444
3445         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
3446         sets; don't use final-byte based number for private sets.
3447
3448 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3449
3450         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
3451         integer.
3452
3453 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3454
3455         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3456         to 0.9.
3457
3458 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3459
3460         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
3461         of `CHAR_LEADING_BYTE' in UTF-2000.
3462
3463         * insdel.c (find_charsets_in_bufbyte_string): Use
3464         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
3465         (find_charsets_in_emchar_string): Likewise.
3466
3467         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
3468         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
3469
3470         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
3471         (CHAR_CHARSET_ID): New macro.
3472
3473 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3474
3475         * chartab.c (get_char_table): Don't use type `Charset_ID' for
3476         charset-id - MIN_LEADING_BYTE.
3477         (put_char_table): Likewise.
3478
3479 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3480
3481         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
3482         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
3483         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
3484         (CHARSET_ID_OFFSET): New macro.
3485         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
3486         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
3487         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
3488         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
3489         4).
3490         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
3491         5).
3492         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
3493         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
3494         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
3495         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
3496         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
3497
3498 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3499
3500         * mule-charset.c (next_allocated_leading_byte): New variable in
3501         UTF-2000.
3502         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
3503         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
3504         (get_unallocated_leading_byte): Simply use
3505         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
3506         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
3507         UTF-2000.
3508
3509         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
3510         (MAX_LEADING_BYTE_PRIVATE): New macro.
3511         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
3512         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
3513
3514 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3515
3516         * mule-charset.c (Fmake_charset): Allocate final-byte based
3517         charset-id for 94-set, 96-set and 94x94-set.
3518
3519 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3520
3521         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
3522         ambiguous `else'.
3523         (Fmake_charset): Likewise.
3524         (complex_vars_of_mule_charset): Modify the font registry of
3525         `ucs-bmp' not to match `Ethiopic-Unicode'.
3526
3527 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3528
3529         * mule-charset.c (complex_vars_of_mule_charset): Add font
3530         registory of `ucs-bmp'.
3531
3532 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3533
3534         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
3535         coded-charsets in `default-coded-charset-priority-list' when
3536         breaking up a character.
3537
3538         * mule-charset.c (Vcharset_latin_viscii): New variable.
3539         (Qlatin_viscii): New variable.
3540         (make_charset): Don't use `decoding_table'.
3541         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
3542         byte_offset.
3543         (Fset_charset_mapping_table): New implementation.
3544         (syms_of_mule_charset): Add new symbol `latin-viscii'.
3545         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
3546         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
3547         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
3548         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
3549         charset `latin_viscii'.
3550
3551         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
3552         (CHARSET_TYPE_94X94): Change to 1 from 2.
3553         (CHARSET_TYPE_96): Change to 2 from 1.
3554         (CHARSET_TYPE_128): New macro.
3555         (CHARSET_TYPE_128X128): Change to 5 from 4.
3556         (CHARSET_TYPE_256): New macro.
3557         (CHARSET_TYPE_256X256): Change to 7 from 5.
3558         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
3559
3560 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3561
3562         * text-coding.c (char_encode_shift_jis): Refer
3563         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
3564         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
3565
3566         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
3567         (char_byte_table_equal): New function in UTF-2000.
3568         (char_byte_table_hash): New function in UTF-2000.
3569         (char_byte_table_description): New constant in UTF-2000.
3570         (char_byte_table): New type in UTF-2000.
3571         (make_char_byte_table): New function in UTF-2000.
3572         (copy_char_byte_table): New function in UTF-2000.
3573         (make_char_code_table): New macro in UTF-2000.
3574         (get_char_code_table): New function in UTF-2000.
3575         (put_char_code_table): New function in UTF-2000.
3576         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
3577         (charset_description): Add setting in UTF-2000.
3578         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
3579         `CHARSET_TO_BYTE1_TABLE(cs)'.
3580         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
3581         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
3582         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
3583         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
3584         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
3585         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
3586         `CHARSET_TO_BYTE2_TABLE(cs)'.
3587
3588         * char-ucs.h (char_byte_table): New type.
3589         (XCHAR_BYTE_TABLE): New macro.
3590         (XSETCHAR_BYTE_TABLE): New macro.
3591         (CHAR_BYTE_TABLE_P): New macro.
3592         (GC_CHAR_BYTE_TABLE_P): New macro.
3593         (struct Lisp_Char_Byte_Table): New structure.
3594         (get_char_code_table): New interface.
3595         (Emchar_to_byte_table): Deleted.
3596         (get_byte_from_character_table): Deleted.
3597         (struct Lisp_Charset): Add `encoding_table'; delete
3598         `to_byte1_table' and `to_byte2_table'.
3599         (CHARSET_ENCODING_TABLE): New macro.
3600         (CHARSET_TO_BYTE1_TABLE): Deleted.
3601         (CHARSET_TO_BYTE2_TABLE): Deleted.
3602         (XCHARSET_ENCODING_TABLE): New macro.
3603         (XCHARSET_TO_BYTE1_TABLE): Deleted.
3604         (XCHARSET_TO_BYTE2_TABLE): Deleted.
3605
3606 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
3607
3608         * mule-charset.c (syms_of_mule_charset): Delete charset alias
3609         `vietnamese-viscii-*'.
3610
3611 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
3612
3613         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
3614         (Qvietnamese_viscii_upper): New variable.
3615         (Fdefine_charset_alias): New function.
3616         (syms_of_mule_charset): Add new function `define-charset-alias'.
3617         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
3618         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
3619         `latin-viscii-*'.
3620
3621 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
3622
3623         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
3624         (MAX_CHAR_OBS_94x94): New macro.
3625         (breakup_char_1): Support obsolete XEmacs-UCS private code space
3626         for 94x94 sets.
3627
3628         * mule-charset.c (put_byte_from_character_table): Change unit size
3629         from 128 to 256.
3630         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
3631         not defined.
3632         (Fmake_reverse_direction_charset): Modify dummy argument of
3633         `make_charset' for non-UTF-2000 environment.
3634
3635 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3636
3637         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
3638
3639         * mule-charset.c (destroy_byte_from_character_table): New macro.
3640         (latin_jisx0201_to_ucs): Deleted.
3641         (latin_iso8859_2_to_ucs): Deleted.
3642         (latin_iso8859_3_to_ucs): Deleted.
3643         (latin_iso8859_4_to_ucs): Deleted.
3644         (latin_iso8859_9_to_ucs): Deleted.
3645         (latin_viscii_lower_to_ucs): Deleted.
3646         (latin_viscii_upper_to_ucs): Deleted.
3647         (mark_charset): Mark `cs->decoding_table'.
3648         (Fcharset_mapping_table): Fix DOC-string.
3649         (Fset_charset_mapping_table): New function.
3650         (syms_of_mule_charset): Add nwe function
3651         `set-charset-mapping-table'.
3652         (complex_vars_of_mule_charset): Don't setup and use
3653         `latin_*_to_ucs'.
3654
3655 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3656
3657         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
3658         charset.
3659
3660 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3661
3662         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
3663         (Vcharset_katakana_jisx0208): New variable.
3664         (Qhiragana_jisx0208): New variable.
3665         (Qkatakana_jisx0208): New variable.
3666         (make_charset): Add new argument `byte_offset'.
3667         (charset_get_byte1): Modify for new coded-charset definition; use
3668         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
3669         `XCHARSET_BYTE_OFFSET'.
3670         (Fmake_charset): Modify for `make_charset'.
3671         (Fmake_reverse_direction_charset): Likewise.
3672         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
3673         `katakana-jisx0208'.
3674         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
3675         `.'  in font registry of charset `katakana-jisx0201',
3676         `latin-jisx0201', `vietnamese-viscii-lower' and
3677         `vietnamese-viscii-upper'; modify DOC-string of charset
3678         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
3679         registry of charset `japanese-jisx0208' not to use font for JIS
3680         X0208:1990; add new charset `hiragana-jisx0208' and
3681         `katakana-jisx0208'.
3682
3683         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
3684         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
3685         (struct Lisp_Charset): Add `byte_offset'.
3686         (CHARSET_BYTE_OFFSET): New macro.
3687         (XCHARSET_UCS_MIN): New macro.
3688         (XCHARSET_UCS_MAX): New macro.
3689         (XCHARSET_CODE_OFFSET): New macro.
3690         (XCHARSET_BYTE_OFFSET): New macro.
3691         (MIN_CHAR_HIRAGANA): New macro.
3692         (MAX_CHAR_HIRAGANA): New macro.
3693         (MIN_CHAR_KATAKANA): New macro.
3694         (MAX_CHAR_KATAKANA): New macro.
3695         (MAKE_CHAR): Modify for new coded-charset definition; use
3696         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
3697         `XCHARSET_BYTE_OFFSET'.
3698
3699 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3700
3701         * mule-charset.c (CHAR96): Deleted.
3702         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
3703         <Lisp_Object>.
3704         (latin_iso8859_2_to_ucs): Likewise.
3705         (latin_iso8859_3_to_ucs): Likewise.
3706         (latin_iso8859_4_to_ucs): Likewise.
3707         (latin_iso8859_9_to_ucs): Likewise.
3708         (latin_viscii_lower_to_ucs): Likewise.
3709         (latin_viscii_upper_to_ucs): Likewise.
3710         (latin_tcvn5712_to_ucs): Commented out.
3711         (make_charset): Change type of argument `decoding_table' from
3712         <Emchar*> to <Lisp_Object> [vector of characters].
3713         (Fmake_charset): Modify for `make_charset'.
3714         (Fmake_reverse_direction_charset): Likewise.
3715         (Fcharset_mapping_table): New function in UTF-2000.
3716         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
3717         UTF-2000.
3718         (complex_vars_of_mule_charset): Modify for type change of
3719         `*_to_ucs'; modify for `make_charset'.
3720
3721         * char-ucs.h (struct Lisp_Charset): Change type of
3722         `decoding_table' from <Emchar*> to <Lisp_Object>.
3723         (MAKE_CHAR): Modify for new specification of `decoding_table'.
3724
3725 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
3726
3727         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
3728         error with non-UTF-2000-Mule.
3729
3730 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
3731
3732         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
3733         in lisp again].
3734         (Vcharset_chinese_cns11643_4): Likewise.
3735         (Vcharset_chinese_cns11643_5): Likewise.
3736         (Vcharset_chinese_cns11643_6): Likewise.
3737         (Vcharset_chinese_cns11643_7): Likewise.
3738         (Qchinese_cns11643_3): Likewise.
3739         (Qchinese_cns11643_4): Likewise.
3740         (Qchinese_cns11643_5): Likewise.
3741         (Qchinese_cns11643_6): Likewise.
3742         (Qchinese_cns11643_7): Likewise.
3743         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
3744         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
3745         and `chinese-cns11643-7' to lisp/mule/chinese.el.
3746         (complex_vars_of_mule_charset): Likewise.
3747
3748 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3749
3750         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
3751         96-set.
3752         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
3753         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
3754
3755 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
3756
3757         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
3758         0xFF60.
3759         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
3760         (breakup_char_1): Likewise.
3761
3762         * text-coding.c (char_encode_iso2022): Keep designated charsets if
3763         one of them includes the specified character.
3764
3765 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3766
3767         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
3768
3769 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3770
3771         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
3772
3773 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3774
3775         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
3776         definition for non-UTF-2000 Mule.
3777         (latin_iso8859_3_to_ucs): Likewise.
3778         (latin_iso8859_4_to_ucs): Likewise.
3779         (latin_iso8859_9_to_ucs): Likewise.
3780         (latin_jisx0201_to_ucs): Likewise.
3781         (MIN_CHAR_THAI): Likewise.
3782         (MAX_CHAR_THAI): Likewise.
3783         (MIN_CHAR_GREEK): Likewise.
3784         (MAX_CHAR_GREEK): Likewise.
3785         (MIN_CHAR_HEBREW): Likewise.
3786         (MAX_CHAR_HEBREW): Likewise.
3787         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
3788         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
3789         (MIN_CHAR_CYRILLIC): Likewise.
3790         (MAX_CHAR_CYRILLIC): Likewise.
3791
3792 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3793
3794         * char-ucs.h (breakup_char_1): Use
3795         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
3796         thai-tis620 and katakana-jisx0201 area.
3797
3798 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3799
3800         * char-ucs.h (breakup_char_1): Use
3801         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
3802         area.
3803
3804         * text-coding.c (reset_encoding_stream): Fixed.
3805         (char_encode_ucs4): Delete `& 255'.
3806
3807         * char-ucs.h (breakup_char_1): Use
3808         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
3809
3810 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3811
3812         * file-coding.c (Fmake_coding_system): Don't set up
3813         `codesys->fixed.size'.
3814         (encode_coding_no_conversion): Don't refer
3815         `str->codesys->fixed.size'.
3816
3817 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3818
3819         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
3820         (latin_a_char_to_byte1): Deleted.
3821         (latin_a_char_to_byte2): Deleted.
3822
3823 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3824
3825         * mule-charset.c (make_charset): Add new argument `ucs_min',
3826         `ucs_max' and `code_offset'.
3827         (charset_get_byte1): New implementation [delete specific charset
3828         depended implementations].
3829         (Fmake_charset): Modify for `make_charset'.
3830         (Fmake_reverse_direction_charset): Likewise.
3831         (complex_vars_of_mule_charset): Likewise.
3832
3833         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
3834         `code_offset'.
3835         (CHARSET_UCS_MIN): New macro.
3836         (CHARSET_UCS_MAX): New macro.
3837         (CHARSET_CODE_OFFSET): New macro.
3838         (MAKE_CHAR): Delete charset depended definitions [except
3839         katakana-jisx0201].
3840
3841 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
3842
3843         * char-ucs.h (breakup_char_1): Use
3844         `Vdefault_coded_charset_priority_list' for C0-Controls,
3845         Basic-Latin, C1-Controls and Latin-1-Supplement area.
3846
3847 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3848
3849         * char-ucs.h (charset_get_byte1): New function.
3850         (XCHARSET_GET_BYTE1): Deleted.
3851         (charset_get_byte2): New function.
3852         (XCHARSET_GET_BYTE2): Deleted.
3853         (Vdefault_coded_charset_priority_list): New external variable.
3854         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
3855         `Vdefault_preferred_coded_charset_list'.
3856
3857         * mule-charset.c (charset_get_byte1): New function.
3858         (charset_get_byte2): New function.
3859         (Vdefault_coded_charset_priority_list): New variable.
3860         (vars_of_mule_charset): Add new variable
3861         `default-coded-charset-priority-list'.
3862
3863 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3864
3865         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
3866         (XCHARSET_GET_BYTE2): New inline function.
3867         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
3868         `XCHARSET_GET_BYTE2'.
3869
3870 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3871
3872         * mule-charset.c (make_charset): Initialize
3873         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
3874         NULL if table is not defined.
3875
3876 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3877
3878         * text-coding.c (char_encode_shift_jis): Use
3879         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
3880         `ucs_to_latin_jisx0201'.
3881
3882         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
3883         (ucs_to_latin_iso8859_2): Deleted.
3884         (ucs_to_latin_iso8859_3): Deleted.
3885         (ucs_to_latin_iso8859_4): Deleted.
3886         (ucs_to_latin_iso8859_9): Deleted.
3887         (ucs_to_latin_viscii_lower): Deleted.
3888         (ucs_to_latin_viscii_upper): Deleted.
3889         (ucs_to_latin_tcvn5712): Deleted.
3890         (make_charset): Add new argument `decoding_table'; set up
3891         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
3892         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
3893         `decoding_table' is defined in UTF-2000.
3894         (Fmake_charset): Modify for `make_charset'.
3895         (Fmake_reverse_direction_charset): Likewise.
3896         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
3897         and `GENERATE_96_SET'.
3898
3899         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
3900         (ucs_to_latin_jisx0201): Deleted.
3901         (latin_iso8859_2_to_ucs): Deleted.
3902         (ucs_to_latin_iso8859_2): Deleted.
3903         (latin_iso8859_3_to_ucs): Deleted.
3904         (ucs_to_latin_iso8859_3): Deleted.
3905         (latin_iso8859_4_to_ucs): Deleted.
3906         (ucs_to_latin_iso8859_4): Deleted.
3907         (latin_iso8859_9_to_ucs): Deleted.
3908         (ucs_to_latin_iso8859_9): Deleted.
3909         (latin_viscii_lower_to_ucs): Deleted.
3910         (ucs_to_latin_viscii_lower): Deleted.
3911         (latin_viscii_upper_to_ucs): Deleted.
3912         (ucs_to_latin_viscii_upper): Deleted.
3913         (struct Lisp_Charset): Renamed `encoding_table' to
3914         `to_byte1_table'; add `to_byte2_table'.
3915         (CHARSET_DECODING_TABLE): New macro.
3916         (CHARSET_TO_BYTE1_TABLE): New macro.
3917         (CHARSET_TO_BYTE2_TABLE): New macro.
3918         (XCHARSET_DECODING_TABLE): New macro.
3919         (XCHARSET_TO_BYTE1_TABLE): New macro.
3920         (XCHARSET_TO_BYTE2_TABLE): New macro.
3921         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
3922         tables.
3923         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
3924         don't use `ucs_to_*' tables.
3925
3926 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3927
3928         * text-coding.c (Fmake_coding_system): Don't set up
3929         `codesys->fixed.size'.
3930         (encode_coding_no_conversion): Use `if' instead of `switch'.
3931
3932         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
3933
3934 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3935
3936         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
3937         (Fmake_charset): Modify for `make_charset'.
3938         (Fmake_reverse_direction_charset): Likewise.
3939         (complex_vars_of_mule_charset): Likewise.
3940
3941 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3942
3943         * text-coding.c (char_encode_shift_jis): Use table
3944         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
3945
3946 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3947
3948         * text-coding.c (text_encode_generic): Use `if' instead of
3949         `switch'.
3950         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
3951         decode JIS-Latin.
3952
3953 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3954
3955         * text-coding.c (encode_coding_sjis): Deleted.
3956         (char_encode_shift_jis): New function.
3957         (char_finish_shift_jis): New function.
3958         (reset_encoding_stream): Set up `encode_char' and `finish' for
3959         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
3960         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
3961         (char_encode_utf8): Treat `eol_type'.
3962
3963 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3964
3965         * file-coding.c (decode_coding_iso2022): Use
3966         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
3967
3968 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3969
3970         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3971         to 0.7 (Hirano).
3972
3973 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3974
3975         * char-lb.h (CHAR_COLUMNS): New macro.
3976
3977 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3978
3979         * text-coding.c (char_encode_ucs4): New function.
3980         (char_finish_ucs4): New function.
3981         (encode_coding_ucs4): Deleted.
3982         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
3983         (text_encode_generic): Delete local variable `charset' and `half'.
3984         (ucs_to_mule_table): Deleted.
3985         (mule_to_ucs_table): Deleted.
3986         (Fset_ucs_char): Deleted.
3987         (ucs_to_char): Deleted.
3988         (Fucs_char): Deleted.
3989         (Fset_char_ucs): Deleted.
3990         (Fchar_ucs): Deleted.
3991         (decode_ucs4): Deleted.
3992         (mule_char_to_ucs4): Deleted.
3993         (encode_ucs4): Deleted.
3994         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
3995         (decode_coding_utf8): Likewise.
3996         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
3997         (char_encode_iso2022): Fixed.
3998         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
3999         `Fset_char_ucs' and `Fchar_ucs'.
4000         (complex_vars_of_file_coding): Don't initialize
4001         `ucs_to_mule_table'.
4002
4003         * objects-tty.c (tty_initialize_font_instance): Don't use
4004         `XCHARSET_COLUMNS'.
4005
4006         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
4007         UTF-2000.
4008
4009         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
4010         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4011
4012         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
4013         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4014         (emchar_string_displayed_columns): Likewise.
4015
4016         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
4017         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4018         (string_column_at_point): Likewise.
4019         (Fmove_to_column): Likewise.
4020
4021         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
4022         `encoding_table' and `decoding_table'.
4023         (CHARSET_REP_BYTES): Deleted.
4024         (XCHARSET_REP_BYTES): Deleted.
4025         (XCHARSET_COLUMNS): Deleted.
4026         (CHAR_COLUMNS): New macro.
4027         (lookup_composite_char): Deleted unconditionally.
4028         (composite_char_string): Likewise.
4029
4030 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4031
4032         * char-ucs.h (Emchar_to_byte_table): New type.
4033         (get_byte_from_character_table): New function interface.
4034         (Vcharset_latin_jisx0201): New variable.
4035         (latin_jisx0201_to_ucs): New variable.
4036         (ucs_to_latin_jisx0201): New variable.
4037         (Vcharset_latin_iso8859_2): New variable.
4038         (latin_iso8859_2_to_ucs): New variable.
4039         (ucs_to_latin_iso8859_2): New variable.
4040         (Vcharset_latin_iso8859_3): New variable.
4041         (latin_iso8859_3_to_ucs): New variable.
4042         (ucs_to_latin_iso8859_3): New variable.
4043         (Vcharset_latin_iso8859_4): New variable.
4044         (latin_iso8859_4_to_ucs): New variable.
4045         (ucs_to_latin_iso8859_4): New variable.
4046         (Vcharset_latin_iso8859_9): New variable.
4047         (latin_iso8859_9_to_ucs): New variable.
4048         (ucs_to_latin_iso8859_9): New variable.
4049         (Vcharset_latin_viscii_lower): New variable.
4050         (latin_viscii_lower_to_ucs): New variable.
4051         (ucs_to_latin_viscii_lower): New variable.
4052         (Vcharset_latin_viscii_upper): New variable.
4053         (latin_viscii_upper_to_ucs): New variable.
4054         (ucs_to_latin_viscii_upper): New variable.
4055         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
4056         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
4057         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
4058         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
4059         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
4060         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
4061         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
4062         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
4063         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
4064         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
4065
4066         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
4067         (Vcharset_latin_viscii_upper): New variable.
4068         (make_byte_from_character_table): New function.
4069         (put_byte_from_character_table): New function.
4070         (get_byte_from_character_table): New function.
4071         (CHAR96): New macro.
4072         (ucs_to_latin_jisx0201): New variable.
4073         (latin_jisx0201_to_ucs): New variable.
4074         (ucs_to_latin_iso8859_2): New variable.
4075         (latin_iso8859_2_to_ucs): New variable.
4076         (ucs_to_latin_iso8859_3): New variable.
4077         (latin_iso8859_3_to_ucs): New variable.
4078         (ucs_to_latin_iso8859_4): New variable.
4079         (latin_iso8859_4_to_ucs): New variable.
4080         (ucs_to_latin_iso8859_9): New variable.
4081         (latin_iso8859_9_to_ucs): New variable.
4082         (ucs_to_latin_viscii_lower): New variable.
4083         (latin_viscii_lower_to_ucs): New variable.
4084         (ucs_to_latin_viscii_upper): New variable.
4085         (latin_viscii_upper_to_ucs): New variable.
4086         (ucs_to_latin_tcvn5712): New variable.
4087         (latin_tcvn5712_to_ucs): New variable.
4088         (Qlatin_viscii_lower): New variable.
4089         (Qlatin_viscii_upper): New variable.
4090         (syms_of_mule_charset): Set up new symbol
4091         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
4092         (complex_vars_of_mule_charset): Set up new charset
4093         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
4094         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
4095         `ucs_to_<CHARSET>' tables.
4096
4097 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
4098
4099         * text-coding.c: New file.
4100
4101 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4102
4103         * mule-charset.c (Fmake_char): Fix problem of 256-set.
4104
4105         * char-ucs.h (Vcharset_ucs_bmp): New variable.
4106         (MAKE_CHAR): Modify for `ucs-bmp'.
4107         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
4108         non-MULE characters of BMP.
4109
4110 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
4111
4112         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4113         to 0.6.
4114
4115 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4116
4117         * lstream.h:
4118         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
4119         - Include character.h for `CHAR_ASCII_P'.
4120
4121         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
4122
4123         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
4124         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
4125
4126         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
4127         (BYTE_C0_P): Likewise.
4128         (BYTE_C1_P): Likewise.
4129         (Lstream_get_emchar_1): Likewise.
4130         (Lstream_fput_emchar): Likewise.
4131         (Lstream_funget_emchar): Likewise.
4132         (copy_internal_to_external): Likewise.
4133         (copy_external_to_internal): Likewise.
4134
4135         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
4136         (BYTE_C0_P): Likewise.
4137         (BYTE_C1_P): Likewise.
4138         (Lstream_get_emchar_1): Likewise.
4139         (Lstream_fput_emchar): Likewise.
4140         (Lstream_funget_emchar): Likewise.
4141         (copy_internal_to_external): Likewise.
4142         (copy_external_to_internal): Likewise.
4143
4144         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
4145         (REP_BYTES_BY_FIRST_BYTE): Likewise.
4146
4147         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
4148         (BYTE_ASCII_P): Moved to mb-1byte.h.
4149
4150 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4151
4152         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
4153
4154         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
4155         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
4156         (VALID_CHARPTR_P): Moved to mb-*byte.h.
4157         (VALIDATE_CHARPTR_BACKWARD): Likewise.
4158         (VALIDATE_CHARPTR_FORWARD): Likewise.
4159         (simple_charptr_emchar): Moved to mb-multibyte.h.
4160         (simple_set_charptr_emchar): Likewise.
4161         (simple_charptr_copy_char): Likewise.
4162         (non_ascii_charptr_emchar): Likewise.
4163         (non_ascii_set_charptr_emchar): Likewise.
4164         (non_ascii_charptr_copy_char): Likewise.
4165         (charptr_emchar): Moved to mb-*byte.h.
4166         (set_charptr_emchar): Likewise.
4167         (charptr_copy_char): Likewise.
4168
4169         * mb-1byte.h, mb-multibyte.h: New files.
4170
4171 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4172
4173         * mb-utf-8.h (MULTIBYTE): New macro.
4174         (MAX_EMCHAR_LEN): Moved from buffer.h.
4175         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
4176
4177         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
4178
4179         * mb-lb.h, multibyte.h: New files.
4180
4181         * char-1byte.h (Charset_ID): Moved from buffer.h.
4182         (MIN_LEADING_BYTE): Likewise.
4183         (LEADING_BYTE_ASCII): Likewise.
4184         (NUM_LEADING_BYTES): Likewise.
4185         (CHARSETP): Likewise.
4186         (CHARSET_BY_LEADING_BYTE): Likewise.
4187         (XCHARSET_LEADING_BYTE): Likewise.
4188         (XCHARSET_GRAPHIC): Likewise.
4189         (XCHARSET_COLUMNS): Likewise.
4190         (XCHARSET_DIMENSION): Likewise.
4191         (CHAR_CHARSET): Likewise.
4192         (CHAR_LEADING_BYTE): Likewise.
4193         (BREAKUP_CHAR): Likewise.
4194         (Vcharset_ascii): Likewise.
4195
4196         * buffer.h: Include multibyte.h unconditionally.
4197         (VALID_CHARPTR_P): Moved to multibyte.h.
4198         (ASSERT_VALID_CHARPTR): Likewise.
4199         (REAL_INC_CHARPTR): Likewise.
4200         (REAL_INC_CHARBYTIND): Likewise.
4201         (REAL_DEC_CHARPTR): Likewise.
4202         (INC_CHARPTR): Likewise.
4203         (INC_CHARBYTIND): Likewise.
4204         (DEC_CHARPTR): Likewise.
4205         (VALIDATE_CHARPTR_BACKWARD): Likewise.
4206         (VALIDATE_CHARPTR_FORWARD): Likewise.
4207         (charptr_n_addr): Likewise.
4208         (MAX_EMCHAR_LEN): Moved to mb-*.h.
4209         (simple_charptr_emchar): Moved to multibyte.h.
4210         (simple_set_charptr_emchar): Likewise.
4211         (simple_charptr_copy_char): Likewise.
4212         (non_ascii_charptr_emchar): Likewise.
4213         (non_ascii_set_charptr_emchar): Likewise.
4214         (non_ascii_charptr_copy_char): Likewise.
4215         (charptr_emchar): Likewise.
4216         (set_charptr_emchar): Likewise.
4217         (charptr_copy_char): Likewise.
4218         (charptr_emchar_n): Likewise.
4219         (Charset_ID): Moved to char-1byte.h.
4220         (Vcharset_ascii): Likewise.
4221         (CHAR_CHARSET): Likewise.
4222         (CHAR_LEADING_BYTE): Likewise.
4223         (LEADING_BYTE_ASCII): Likewise.
4224         (NUM_LEADING_BYTES): Likewise.
4225         (MIN_LEADING_BYTE): Likewise.
4226         (CHARSETP): Likewise.
4227         (CHARSET_BY_LEADING_BYTE): Likewise.
4228         (XCHARSET_LEADING_BYTE): Likewise.
4229         (XCHARSET_GRAPHIC): Likewise.
4230         (XCHARSET_COLUMNS): Likewise.
4231         (XCHARSET_DIMENSION): Likewise.
4232         (BREAKUP_CHAR): Likewise.
4233
4234 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4235
4236         * character.h: Add document about interface for characters.
4237
4238         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
4239         (MAKE_CHAR): Delete comment about
4240         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
4241         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
4242         (BREAKUP_CHAR): Modify name of arguments.
4243         (CHAR_CHARSET): Modify name of argument.
4244
4245         * buffer.h: Delete document about Emchar accessors.
4246
4247 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4248
4249         * character.h (CHAR_INTP): Moved from buffer.h
4250         (CHAR_OR_CHAR_INTP): Likewise.
4251         (XCHAR_OR_CHAR_INT): Likewise.
4252         (CHECK_CHAR_COERCE_INT): Likewise.
4253
4254         * buffer.h (CHAR_INTP): Moved to character.h
4255         (CHAR_OR_CHAR_INTP): Likewise.
4256         (XCHAR_OR_CHAR_INT): Likewise.
4257         (CHECK_CHAR_COERCE_INT): Likewise.
4258
4259 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4260
4261         * character.h:
4262         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
4263         - Include char-1byte.h, char-lb.h or char-ucs.h.
4264
4265         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
4266
4267         * buffer.h: Include character unconditionally.
4268         (valid_char_p): Moved to char-*.h.
4269         (non_ascii_valid_char_p): Moved to char-lb.h.
4270
4271         * char-1byte.h, char-lb.h, char-ucs.h: New files.
4272
4273 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4274
4275         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
4276         in UTF-2000 because it is not ported yet and not to use
4277         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
4278         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
4279         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
4280
4281         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
4282         (CHAR_ASCII_P): Moved from character.h.
4283
4284         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
4285         (CHAR_ASCII_P): Likewise.
4286         (CHAR_FIELD1_MASK): Deleted.
4287         (CHAR_FIELD2_MASK): Deleted.
4288         (CHAR_FIELD3_MASK): Deleted.
4289         (MAX_CHAR_BASIC_LATIN): New macro.
4290         (CHAR_FIELD1): Deleted.
4291         (CHAR_FIELD2_INTERNAL): Deleted.
4292         (CHAR_FIELD3_INTERNAL): Deleted.
4293         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
4294         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
4295         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
4296         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
4297         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
4298         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
4299         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
4300         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
4301         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
4302         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
4303         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
4304         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
4305         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
4306         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
4307         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
4308         (MIN_CHAR_COMPOSITION): Deleted.
4309         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
4310         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
4311
4312 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
4313
4314         * buffer.h: Include mb-utf-8.h in UTF-2000.
4315
4316         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
4317
4318         * mb-utf-8.h: New file.
4319
4320 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
4321
4322         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
4323         instead of `int'.
4324
4325         * mule-charset.h, buffer.h (Charset_ID): New type.
4326
4327 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
4328
4329         * mule-canna.c (c2mu): Use `MAKE_CHAR',
4330         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
4331         instead of `MULE_CHAR_PRIVATE_OFFSET',
4332         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
4333         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
4334         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
4335
4336         * character.h (Vcharset_japanese_jisx0212): New variable
4337         definition.
4338
4339 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
4340
4341         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
4342         (charset_by_attributes): Delete array about direction.
4343         (latin_a_char_to_charset): New variable in UTF-2000.
4344         (latin_a_char_to_byte1): New variable in UTF-2000.
4345         (latin_a_char_to_byte2): New variable in UTF-2000.
4346         (Qucs_bmp): New variable.
4347         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
4348         `Bufbyte'.
4349         (next_allocated_2_byte_leading_byte): Likewise.
4350         (non_ascii_set_charptr_emchar): Likewise.
4351         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
4352         `CHARSET_TYPE_256X256' in UTF-2000; modify for
4353         `charset_by_attributes'.
4354         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
4355         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
4356         and `CHARSET_BY_LEADING_BYTE'.
4357         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
4358         `utf-2000-version' to `vars_of_mule_charset'.
4359         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
4360         define `leading-code-private-11' in UTF-2000; move setting of
4361         `utf-2000-version' from `syms_of_mule_charset'.
4362         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
4363         UTF-2000.
4364
4365         * character.h (Charset_ID): New type.
4366         (LEADING_BYTE_UCS_BMP): New macro.
4367         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
4368         (CHARSET_ID_OFFSET_94): New macro.
4369         (MIN_CHARSET_ID_PRIVATE_94): New macro.
4370         (MAX_CHARSET_ID_PRIVATE_94): New macro.
4371         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
4372         final-byte.
4373         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
4374         (LEADING_BYTE_LATIN_JISX0201): Likewise.
4375         (CHARSET_ID_OFFSET_96): New macro.
4376         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
4377         CHARSET_ID_OFFSET_96 and final-byte.
4378         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
4379         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
4380         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
4381         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
4382         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
4383         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
4384         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
4385         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
4386         (LEADING_BYTE_THAI_TIS620): Likewise.
4387         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
4388         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
4389         (CHARSET_ID_OFFSET_94x94): New macro.
4390         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
4391         CHARSET_ID_OFFSET_94x94 and final-byte.
4392         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
4393         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
4394         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
4395         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
4396         (LEADING_BYTE_CHINESE_GB2312): Likewise.
4397         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
4398         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
4399         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
4400         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
4401         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
4402         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
4403         (CHARSET_TYPE_128X128): New macro.
4404         (CHARSET_TYPE_256X256): New macro.
4405         (XCHARSET_PRIVATE_P): Delete unconditionally.
4406         (charset_by_attributes): Delete array about direction.
4407         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
4408         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
4409         (MIN_CHAR_94): New macro.
4410         (MAX_CHAR_94): New macro.
4411         (MIN_CHAR_96): New macro.
4412         (MAX_CHAR_96): New macro.
4413         (MIN_CHAR_94x94): New macro.
4414         (MAX_CHAR_94x94): New macro.
4415         (MIN_CHAR_96x96): New macro.
4416         (MAX_CHAR_96x96): New macro.
4417         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
4418         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
4419         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
4420         - 32)'.
4421         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
4422         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
4423         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
4424         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
4425         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
4426         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
4427         `XCHARSET_LEADING_BYTE' to make code-point.
4428         (latin_a_char_to_charset): New variable.
4429         (latin_a_char_to_byte1): New variable.
4430         (latin_a_char_to_byte2): New variable.
4431         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
4432         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
4433         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
4434
4435         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
4436         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
4437         (find_charsets_in_emchar_string): Likewise.
4438         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
4439
4440         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
4441         `int'.
4442         (decode_coding_iso2022): Likewise.
4443
4444         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
4445         of `unsigned char'.
4446
4447         * redisplay.c (redisplay_text_width_emchar_string): Use
4448         `Charset_ID' instead of `unsigned char'.
4449         (redisplay_frame_text_width_string): Likewise.
4450
4451         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
4452         `unsigned char'.
4453
4454         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
4455         instead of `unsigned char'.
4456         (face_cachel_charset_font_metric_info): Likewise.
4457
4458         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
4459         (get_non_ascii_char_table_value): Likewise.
4460         (get_char_table): Likewise.
4461         (put_char_table): Likewise.
4462         (map_over_other_charset): Likewise.
4463         (map_char_table): Likewise.
4464
4465         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
4466         instead of `unsigned char'.
4467
4468 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
4469
4470         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
4471         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
4472
4473         * mule-charset.c (leading_code_private_11): Don't define in
4474         UTF-2000.
4475
4476         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
4477         in UTF-2000 because it is not ported yet and not to use
4478         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
4479
4480 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
4481
4482         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
4483
4484 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4485
4486         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
4487         in UTF-2000.
4488
4489         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
4490         of unsigned char to store leading-byte.
4491
4492         * chartab.c (get_non_ascii_char_table_value): Don't use
4493         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
4494
4495         * file-coding.c (encode_coding_big5): Delete bogus implementation
4496         in UTF2000.
4497
4498         * character.h (LEADING_BYTE_*): Delete definition for
4499         non-UTF-2000.
4500         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
4501         (LEADING_BYTE_PREFIX_P): Deleted.
4502         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
4503         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
4504         (BUFBYTE_LEADING_BYTE_P): Deleted.
4505         (CHARSET_PRIVATE_P): Deleted unconditionally.
4506         (rep_bytes_by_first_byte): Deleted unconditionally.
4507         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
4508         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
4509         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
4510         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
4511         (CHAR_FIELD2): Deleted.
4512         (CHAR_FIELD3): Deleted.
4513         (MAKE_CHAR): Delete definition for non-UTF-2000.
4514         (BREAKUP_CHAR_1_UNSAFE): Deleted.
4515         (breakup_char_1): New implementation.
4516         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
4517         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
4518
4519 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4520
4521         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
4522         condition.
4523
4524 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4525
4526         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
4527         (CHARSET_PRIVATE_P): Likewise.
4528         (XCHARSET_PRIVATE_P): Likewise.
4529         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
4530
4531         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
4532         UTF2000.
4533         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
4534
4535 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4536
4537         * character.h (LEADING_BYTE_*): Changed in UTF2000.
4538         (NUM_LEADING_BYTES): Changed from 128 to 256.
4539         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
4540         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
4541         UTF2000.
4542         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
4543
4544         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
4545         UTF2000.
4546         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
4547         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
4548         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
4549         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
4550         (Qchinese_cns11643_3): New variable in UTF2000.
4551         (Qchinese_cns11643_4): New variable in UTF2000.
4552         (Qchinese_cns11643_5): New variable in UTF2000.
4553         (Qchinese_cns11643_6): New variable in UTF2000.
4554         (Qchinese_cns11643_7): New variable in UTF2000.
4555         (syms_of_mule_charset): Define `chinese-cns11643-3',
4556         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
4557         and `chinese-cns11643-7' in UTF2000.
4558         (vars_of_mule_charset): Initialize
4559         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
4560         + 1 in UTF2000.
4561         (complex_vars_of_mule_charset): Setup charset
4562         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
4563         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
4564
4565 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4566
4567         * mule-charset.c: Move setting for `leading-code-private-11' from
4568         `syms_of_mule_charset' to `vars_of_mule_charset'.
4569
4570 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4571
4572         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
4573         and `NUM_LEADING_BYTES' in assert.
4574
4575 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4576
4577         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
4578         instead of 128.
4579         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
4580         `NUM_LEADING_BYTES' instead of 128.
4581
4582 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
4583
4584         * mule-charset.h (charset_by_leading_byte): Use
4585         `NUM_LEADING_BYTES' instead of 128.
4586         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
4587
4588         * mule-charset.c (charset_by_leading_byte): Use
4589         `NUM_LEADING_BYTES' instead of 128.
4590         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
4591
4592         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
4593         128.
4594
4595 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
4596
4597         * mule-charset.c (syms_of_mule_charset): Update to
4598         0.4 (Shin-Imamiya).
4599
4600 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
4601
4602         * file-coding.c (encode_coding_sjis): New implementation for
4603         UTF2000.  (decode_coding_sjis): Ditto.
4604
4605 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4606
4607         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
4608         Don't define in UTF2000.
4609
4610         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
4611         defined.
4612
4613         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
4614         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
4615         MULE.
4616
4617 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4618
4619         * config.h.in (CHAR_IS_UCS4): New macro.
4620
4621         * mule-charset.c (rep_bytes_by_first_byte): Modify for
4622         conventional MULE representation.
4623         (syms_of_mule_charset): Update to 0.3 (Imamiya).
4624
4625         * mule-charset.h: Reverted to original.
4626
4627         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
4628         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
4629         "mule-charset.h" if CHAR_IS_UCS4 is defined.
4630
4631         * character.h: New file.
4632
4633         * file-coding.c (Fmake_coding_system): Set 1 to
4634         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
4635         defined.
4636         (encode_coding_no_conversion): New implementation for UTF2000.
4637
4638         * file-coding.h (struct Lisp_Coding_System): Add new member
4639         `fixed.size'.
4640
4641 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
4642
4643         * file-coding.c (decode_coding_iso2022): Code-point arguments of
4644         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
4645         (encode_coding_iso2022): New implementation for UTF2000.
4646
4647 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4648
4649         * mule-canna.c (c2mu): New implementation for UTF2000.
4650         (m2c): Likewise.
4651
4652 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4653
4654         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
4655
4656 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4657
4658         * file-coding.c (reset_encoding_stream): Set 0 to
4659         `str->iso2022.current_char_boundary' in UTF2000.
4660         (encode_utf8): Don't define in UTF2000.
4661         (encode_coding_utf8): New implementation for UTF-8 representation
4662         of UTF2000.
4663         (complex_vars_of_file_coding): Define coding-system `utf-8'.
4664
4665 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4666
4667         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
4668
4669         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
4670         UTF2000.
4671         (REP_BYTES_BY_FIRST_BYTE): Likewise.
4672
4673         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
4674
4675         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
4676         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
4677         as UTF-8 in UTF2000.
4678         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
4679         (non_ascii_valid_char_p): Don't define in UTF2000.
4680         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
4681         (Lstream_get_emchar_1): Likewise.
4682         (utf-2000-version): New variable in UTF2000.
4683
4684         * lread.c (read_escape): Add new reader `u'.
4685
4686         * insdel.c (three_to_one_table): Don't define in UTF2000.
4687         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
4688         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
4689         UTF2000.
4690         (bytind_to_bufpos_func): Likewise.
4691         (buffer_mule_signal_inserted_region): Likewise.
4692         (vars_of_insdel): Don't initialize `three_to_one_table'.
4693         (init_buffer_text): Use `buf->text->mule_size' instead of
4694         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
4695         UTF2000.
4696
4697         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
4698         UTF-8 representation in UTF2000.
4699         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
4700         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
4701         (decode_coding_iso2022): Don't define local variable `lb' in
4702         UTF2000; don't use LEADING_BYTE in UTF2000; use
4703         `DECODE_ADD_UCS_CHAR' in UTF2000.
4704         (convert_to_external_format): Decode as UTF-8 in UTF2000.
4705
4706         * config.h.in (UTF2000): New macro.
4707
4708         * buffer.h (struct buffer_text): Add new member `mule_size' and
4709         don't add `mule_shifter' and `mule_three_p' in UTF2000.
4710         (valid_char_p): Return always 1 in UTF2000.
4711         (MAX_EMCHAR_LEN): 6 in UTF2000.
4712         (three_to_one_table): Don't define in UTF2000.
4713         (real_bufpos_to_bytind): Modify for UTF-8 representation in
4714         UTF2000.
4715         (real_bytind_to_bufpos): Likewise.
4716
4717         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
4718
4719 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4720
4721         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
4722         representation change.
4723         (Vutf_2000_version): New variable.
4724         (leading_code_private_11): New variable.
4725         (syms_of_mule_charset): Add new variables `utf-2000-version' and
4726         `leading-code-private-11'.
4727
4728         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
4729         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
4730         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
4731         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
4732         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
4733         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
4734         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
4735         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
4736         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
4737         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
4738         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
4739         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
4740         (MIN_CHAR_GREEK): New macro.
4741         (MAX_CHAR_GREEK): New macro.
4742         (MIN_CHAR_CYRILLIC): New macro.
4743         (MAX_CHAR_CYRILLIC): New macro.
4744         (MIN_CHAR_HEBREW): New macro.
4745         (MAX_CHAR_HEBREW): New macro.
4746         (MIN_CHAR_THAI): New macro.
4747         (MAX_CHAR_THAI): New macro.
4748         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
4749         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
4750         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
4751         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
4752         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
4753         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
4754         (CHAR_FIELD2): New inline function.
4755         (CHAR_FIELD3): New inline function.
4756         (MULE_CHAR_PRIVATE_OFFSET): New macro.
4757         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
4758         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
4759         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
4760         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
4761         (MIN_CHAR_COMPOSITION): Likewise.
4762         (CHAR_LEADING_BYTE): Modified for character representation change.
4763         (MAKE_CHAR): Likewise.
4764
4765         * lisp.h (Vcharset_latin_iso8859_1): New variable.
4766         (Vcharset_greek_iso8859_7): Likewise.
4767         (Vcharset_cyrillic_iso8859_5): Likewise.
4768         (Vcharset_hebrew_iso8859_8): Likewise.
4769         (Vcharset_thai_tis620): Likewise.
4770         (Vcharset_katakana_jisx0201): Likewise.
4771
4772 2003-01-03  Stephen J. Turnbull  <stephen@xemacs.org>
4773
4774         * XEmacs 21.4.11 "Native Windows TTY Support" is released.
4775
4776 2002-12-14  Ben Wing  <ben@xemacs.org>
4777
4778         * callint.c: Declaration error.
4779         * dumper.c (pdump):
4780         * dumper.c (pdump_load): Warning fix.
4781         * process.c: GCPRO error.
4782         * glyphs.c (unmap_subwindow):
4783         * glyphs.c (map_subwindow): Parenthesizing errors with ! and &&.
4784         * event-stream.c (maybe_kbd_translate): Wrong argument to
4785         character_to_event().
4786
4787         * alloc.c (garbage_collect_1):
4788         * emacs.c:
4789         * emacs.c (debug_can_access_memory):
4790         * emacs.c (fatal_error_signal):
4791         * emacs.c (mswindows_handle_hardware_exceptions):
4792         * emacs.c (main_1):
4793         * emacs.c (main):
4794         * emacs.c (assert_failed):
4795         * emacs.c (syms_of_emacs):
4796         * lisp.h:
4797         * print.c:
4798         * print.c (std_handle_out_va):
4799         * print.c (write_string_to_stdio_stream):
4800         * print.c (write_fmt_string):
4801         * print.c (printing_badness):
4802         * print.c (printing_major_badness):
4803         * print.c (print_internal):
4804         * print.c (debug_print_no_newline):
4805         * print.c (debug_backtrace):
4806         Be more defensive in handling bad values when printing.  Add code
4807         from trunk involving inhibit_non_essential_printing_operations.
4808         When going down or in debug_print(), don't do external conversion
4809         and such and try really, really hard when printing to avoid core
4810         dumping.  Add force-debugging-signal, debug_break().
4811
4812 2002-12-12  Stephen J. Turnbull  <stephen@xemacs.org>
4813
4814         * dumper.c (pdump_load): Include sysdep.h; retry with truename.
4815         Analysis and original patch by Vin Shelton <acs@xemacs.org>.
4816
4817 2002-12-02  Greg Allen  <greg_allen@westlb-systems.co.uk>
4818
4819         * database.c: Fix open_database. Berkeley DB API has changed in
4820         4.1. see: http://www.sleepycat.com/docs/ref/upgrade.4.1/fop.html
4821
4822 2002-11-26  Stephen J. Turnbull  <stephen@xemacs.org>
4823
4824         * specifier.c (Fvalid_specifier_type_p): Typo in comment.
4825
4826 2002-11-13  Stephen J. Turnbull  <stephen@xemacs.org>
4827
4828         * event-Xt.c (Xt_timeout):
4829         (Xt_timeout_callback):
4830         (emacs_Xt_add_timeout):
4831         (emacs_Xt_remove_timeout):
4832         (Xt_timeout_to_emacs_event):
4833         Turn completed_timeouts from a stack into a queue.  Fixes
4834         deadlocks <15829.21626.171573.994716@sinisa.nasamreza.org>.
4835
4836 2002-11-07  Wolfram Gloger  <wg@malloc.de>
4837
4838         * alloc.c (reinit_alloc_once_early): Disable mmap in Doug Lea malloc.
4839         * emacs.c (main): Assert that mmap'd allocation is disabled.
4840
4841 2002-10-14  Andy Piper  <andy@xemacs.org>
4842
4843         * glyphs-widget.c (layout_query_geometry): add in fiddle
4844         factor. Include border text in width layout calculation.
4845         (layout_layout): use BORDER_FIDDLE_FACTOR instead of 10.
4846
4847 2002-11-02  Stephen J. Turnbull  <stephen@xemacs.org>
4848
4849         * XEmacs 21.4.10 "Military Intelligence" is released.
4850
4851 2002-10-17  Raymond Toy  <toy@rtp.ericsson.se>
4852
4853         * nas.c: Update for NAS 1.6 and later, from Jon Trulson.  Was
4854         using the NAS private array SoundFileInfo that no longer exists in
4855         NAS 1.6 and later.  Preserve backward compatibility with NAS 1.5a
4856         and earlier.  This is broken for some versions between 1.5a and
4857         1.5f.
4858
4859 2002-10-10  Stephen J. Turnbull  <stephen@xemacs.org>
4860
4861         * realpath.c (win32_readlink): Try to fix truename of wildcard bug.
4862
4863         * emacs.c (shut_down_emacs): Improve crash message.
4864
4865 2002-10-09  Stephen J. Turnbull  <stephen@xemacs.org>
4866
4867         * file-coding.c (determine_real_coding_system): Check for coding
4868         cookie in first LINES_TO_CHECK lines (currently 2).  Cater to
4869         shebangs and Python PEP 263.
4870
4871 2002-10-08  Andy Piper  <andy@xemacs.org>
4872
4873         * glyphs-widget.c (layout_query_geometry): only resize dynamically
4874         if static sizes haven't been set.
4875
4876 2002-08-30  Mike Alexander  <mta@arbortext.com>
4877
4878         * event-msw.c (winsock_closer): Use closesocket, not CloseHandle
4879         to close a socket.
4880
4881 2002-10-03  Stephen J. Turnbull  <stephen@xemacs.org>
4882
4883         * callproc.c (child_setup): 21.4 doesn't have retry_close.
4884
4885 2002-09-20  Mike Sperber <mike@xemacs.org>
4886
4887         (This partially gets back my patch from 2002-07-20 without the
4888         bug.)
4889         * callproc.c (child_setup): Remove Ben's comment noting confusion
4890         over the file descriptors >= 3: close_process_descs() doesn't
4891         close those.  Fix fd range to go up to MAXDESC-1 instead of 64.
4892         * process-unix.c (unix_create_process): Call
4893         begin_dont_check_for_quit to inhibit unwanted interaction (and
4894         thus breaking of X event synchronicity) in the child.
4895
4896 2002-09-26  Golubev I. N.  <gin@mo.msk.ru>
4897
4898         * frame-x.c (x_delete_frame): do not call XtDisplay on a destroyed
4899         widget.
4900
4901 2002-08-20  Ben Sigelman  <bhsigelm@cs.brown.edu>
4902
4903         * event-Xt.c (drain_X_queue): loop over while(XEventsQueued())
4904         instead of while(XtAppPending()&XtIMXEvent).  Upon a gdm logout,
4905         the xemacs process did not exit, but looped infinitely here.  This
4906         fixes that problem.
4907
4908 2002-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
4909
4910         * font-lock.c (SYNTAX_START_STYLE, SYNTAX_END_STYLE): Quiet GCC.
4911         (find_context): Improve comments.
4912
4913         * regex.c (re_compile_fastmap):  Gratuitous #ifdef comment fixes.
4914         (re_match_2): An XCHAR_TABLE operation was missing.
4915
4916         Many of the following changes were inspired by Andy Piper's (now
4917         obsolete) patch to make syntax-table text property lookup optional.
4918
4919         [Documentation]
4920
4921         * syntax.h (top level): Document semantics of syntax flags.
4922         * syntax.c (comstr_start, Fforward_comment): Improve comments.
4923         * syntax.c, syntax.h (top level): Document syntax cache better in
4924         comments.
4925
4926         [Instrument syntax caching (temporary change)]
4927
4928         * syntax.h (enum syntax_cache_statistics_functions, struct
4929         syntax_cache_statistics, SCS_STATISTICS_SET_FUNCTION,
4930         SYNTAX_CACHE_STATISTICS_COUNT_INIT): New types and macros.
4931         * syntax.c (scan_words, Fforward_comment, scan_lists,
4932         Fbackward_prefix_characters):
4933         * font-lock.c (find_context):
4934         Use them to instrument syntax caching. 
4935         * syntax.c (struct syntax_cache_statistics, scs_statistics,
4936         syntax_cache_statistics_function_names): New type and variables.
4937         * syntax.c (update_syntax_cache): Update and report statistics.
4938
4939         [Major syntax cache optimizations]
4940
4941         syntax.c (lookup_syntax_properties): Default off.
4942
4943         * syntax.h (UPDATE_SYNTAX_INTERNAL): New, implements UPDATE_SYNTAX*.
4944         * syntax.c (update_syntax_cache):
4945         Move init test from update_syntax_cache to UPDATE_SYNTAX_INTERNAL.
4946
4947         [Minor syntax cache optimizations and code clarifications]
4948
4949         * syntax.h (SYNTAX_COMMENT_BITS, SYNTAX_START_P, SYNTAX_END_P,
4950         SYNTAX_STYLES_MATCH_START_P, SYNTAX_STYLES_MATCH_1CHAR_P,
4951         SYNTAX_STYLES_MATCH_END_P, STYLE_FOUND_1CHAR_P, STYLE_FOUND_P,
4952         SYNTAX_COMMENT_MASK_END, SYNTAX_COMMENT_MASK_START,
4953         SYNTAX_COMMENT_1CHAR_MASK): Remove redundant argument `table'.
4954         (Code clarification.)
4955
4956         * syntax.c (scan_words, find_end_of_comment, scan_sexps_forward,
4957         scan_lists): Compute code from syncode, use Boolean macros instead
4958         of redundant masking operations.  (Code clarification; any decent
4959         compiler can do this optimization.)
4960
4961         * syntax.c (scan_lists): Rearrange switches (case Sstring_fence)
4962         for clarity.
4963
4964         * syntax.h, syntax.c (NEXT_SINGLE_PROPERTY_CHANGE,
4965         PREVIOUS_SINGLE_PROPERTY_CHANGE, update_syntax_cache): Conditionally
4966         use F*_single_property_change instead of F*_extent_change.
4967         Currently F*_single_property_change is _much_ less efficient.
4968
4969         * dired.c (Fdirectory_files): Qt not valid in syntax_cache.object.
4970         * syntax.h (SETUP_SYNTAX_CACHE_FOR_OBJECT):  Initialize
4971         syntax_cache.object properly, don't leave Qt or Qnil.
4972         (SYNTAX_CACHE_BYTE_TO_CHAR): Use SETUP_SYNTAX_CACHE_FOR_OBJECT.
4973         * syntax.c (update_syntax_cache): Use BUFFERP and STRINGP, not
4974         tests for Qt or Qnil.
4975
4976 2002-09-21  Stephen J. Turnbull  <stephen@xemacs.org>
4977
4978         * redisplay.c (point_in_line_start_cache): 
4979         * extents.c (print_extent_1):
4980         Fix warnings.
4981
4982         * extents.c (Fset_extent_property): Document `syntax-table' property.
4983
4984         * extents.h (Fnext_single_property_change): EXFUN it.
4985
4986 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
4987
4988         * search.c (clear_unused_search_regs): New static function.
4989         (search_buffer): 
4990         (simple_search): 
4991         (boyer_moore):
4992         Use it.  Fixes "stale match data" bug reported by Martin Stjernholm.
4993         Minor clarifications in comments.
4994
4995         * regex.c (re_match_2_internal): Ensure no stale submatches.
4996
4997 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
4998
4999         * event-Xt.c (enqueue_focus_event): Add missing prototype.
5000
5001 2002-08-29  Jerry James  <james@xemacs.org>
5002
5003         * lisp.h: structrures -> structures.
5004
5005 2002-06-03  Andy Piper  <andy@xemacs.org>
5006
5007         * frame.c (frame_conversion_internal): add conversion appropriate
5008         for setting frame dimensions in pixels.
5009
5010         * console.h (struct console_methods): add device-specific widget
5011         layout functions.
5012
5013         * emacs.c (main_1): initialize glyph vars.
5014
5015         * event-Xt.c (handle_focus_event_1): call handle_focus_event_2
5016         (handle_focus_event_2): new function. Allow focus to
5017         be set to a particular window and widget.
5018         (enqueue_focus_event): new function. Create a
5019         synthetic focus event.
5020         (emacs_Xt_handle_magic_event): call
5021         handle_focus_event_2.
5022
5023         * frame.c (Fset_frame_pixel_height): new function. Allow
5024         pixel-based sizing. Does the right thing on character-oriented
5025         displays.
5026         (Fset_frame_pixel_width): ditto.
5027         (Fset_frame_pixel_size): ditto.
5028         (syms_of_frame): declare.
5029
5030         * general-slots.h: add :vertically-justify and
5031         :horizontally-justify.
5032
5033         * glyphs-msw.c (xbm_create_bitmap_from_data): warning fix.
5034         (mswindows_widget_border_width): new function.
5035         (mswindows_combo_box_instantiate): set border widths.
5036         (console_type_create_glyphs_mswindows): declare.
5037
5038         * glyphs-widget.c:
5039         (check_valid_justification): allow vertical and horizontal
5040         justification.
5041         (widget_border_width): new function. Call device methods.
5042         (widget_instance_border_width): ditto.
5043         (logical_unit_height): new function. Determine the height of a
5044         logical-unit. Logical units are intended to provide grid-like
5045         layout for subcontrols in a layout. If the layout is
5046         :vertically-justify top then subcontrols will be positioned on
5047         logical-unit boundaries, thus allowing adjacent subcontrols to
5048         line up.
5049         (widget_logical_unit_height): ditto for widgets.
5050         (redisplay_widget): misc cleanup.
5051         (widget_spacing): new function. Call device specific
5052         methods. Intended to be the default gap between adjacent widgets.
5053         (widget_query_geometry): use new spacing functions to determine
5054         appropriate geometry.
5055         (initialize_widget_image_instance): initialize horizontal and
5056         vertical justification.
5057         (widget_instantiate): use logica-units where appropriate for
5058         sizing large widgets.
5059         (button_query_geometry): use widget_instance_border_width.
5060         (tree_view_query_geometry): ditto.
5061         (tab_control_query_geometry): ditto.
5062         (edit_field_query_geometry): new function.
5063         (layout_update): pick up :justify, :horizontally-justify and
5064         :vertically-justify none of which worked previously. :justify is
5065         used as a fallback for both horizontal and vertical justification.
5066         (layout_query_geometry): use logical units to size appropriately.
5067         (layout_layout): ditto.
5068         (Fwidget_logical_to_character_width): new function. Allow users to
5069         convert from logical units to characters so that frame sizes can
5070         be set appropriately.
5071         (Fwidget_logical_to_character_height): ditto.
5072         (syms_of_glyphs_widget): declare.
5073         (image_instantiator_edit_fields): add edit_field_query_geometry.
5074         (VALID_LAYOUT_KEYWORDS): declare :vertically-justify and
5075         :horizontally-justify.
5076         (specifier_vars_of_glyphs_widget): new function. Declare
5077         Vwidget_border_width which is not yet used.
5078
5079         * glyphs-x.c (x_map_subwindow): enqueue appropriate focus events.
5080         (x_widget_border_width): new function.
5081         (x_widget_instantiate): create a sensible name for widgets.
5082         (console_type_create_glyphs_x): declare x_widget_border_width.
5083
5084         * glyphs.h (DEFAULT_WIDGET_BORDER_WIDTH): new macro.
5085         (struct Lisp_Image_Instance): add :vertically-justify and
5086         :horizontally-justify.
5087         (LAYOUT_JUSTIFY_TOP): new.
5088         (IMAGE_INSTANCE_SUBWINDOW_H_JUSTIFY): new.
5089         (ROUND_UP): new macro. Round argument up to next integral
5090         interval.
5091
5092         * redisplay-output.c (redisplay_output_layout): misc formatting.
5093
5094         * symsinit.h: declare specifier_vars_of_glyphs_widget.
5095
5096 2002-08-23  Stephen J. Turnbull  <stephen@xemacs.org>
5097
5098         * XEmacs 21.4.9 "Informed Management" is released.
5099
5100 2002-08-19  Andy Piper  <andy@xemacs.org>
5101
5102         * fileio.c (Ffile_truename): on cygwin using win32 normalize to
5103         win32 format.
5104
5105         * realpath.c (xrealpath): normalize drive spec also so that dir
5106         sep chars are not mixed on cygwin.
5107
5108 2002-08-06  Jerry James  <james@xemacs.org>
5109
5110         * window.c (Fsplit_window): Count only half of the divider width
5111         against the left window when splitting horizontally. 
5112
5113 2002-06-24  Andy Piper  <andy@xemacs.org>
5114
5115         * toolbar-gtk.c (GTK_OUTPUT_BUTTONS_LOOP): output button if whole
5116         toolbar was cleared.
5117
5118         * toolbar-msw.c (mswindows_clear_frame_toolbars): new
5119         function. Split out from mswindows_output_frame_toolbars.
5120         (mswindows_output_frame_toolbars): move clear pieces to
5121         mswindows_output_frame_toolbars.
5122
5123         * toolbar-gtk.c (gtk_clear_frame_toolbars): new function. Split
5124         out from gtk_output_frame_toolbars.
5125         (gtk_output_frame_toolbars): move clear pieces to
5126         gtk_clear_frame_toolbars.
5127
5128         * toolbar-x.c (X_OUTPUT_BUTTONS_LOOP): always output buttons when
5129         the frame is cleared. How this ever worked before is a mystery.
5130         (x_output_frame_toolbars): Only output toolbars.
5131         (x_clear_frame_toolbars): new. Clear previous toolbar locations.
5132
5133         * gutter.c (update_gutter_geometry):
5134         Mark frame layout changed.
5135         (update_frame_gutter_geometry, update_frame_gutters):
5136         Respect frame_layout_changed.
5137
5138         * console.h (struct console_methods): add
5139         clear_frame_toolbars_method.
5140
5141         * redisplay.c (redisplay_frame): call
5142         update_frame_toolbars_geometry and re-order update_frame_toolbars.
5143
5144         * toolbar.h: declare update_frame_toolbars_geometry.
5145
5146         * toolbar.c (update_frame_toolbars_geometry): new function. Split
5147         out from update_frame_toolbars.  Call clear_frame_toolbars.
5148         (update_frame_toolbars): only output, do not change geometry.
5149
5150         * redisplay.c: add frame_layout_changed.
5151
5152         * redisplay.h: add frame_layout_changed.
5153         (CLASS_RESET_CHANGED_FLAGS): set it.
5154         (GLOBAL_RESET_CHANGED_FLAGS): ditto.
5155         (CLASS_REDISPLAY_FLAGS_CHANGEDP): test it.
5156         (GLOBAL_REDISPLAY_FLAGS_CHANGEDP): ditto.
5157
5158         * device.h (struct device): add frame_layout_changed.
5159         (MARK_DEVICE_FRAME_LAYOUT_CHANGED): new.
5160
5161         * frame.h (struct frame): add frame_layout_changed.
5162         (MARK_FRAME_LAYOUT_CHANGED): new.
5163
5164 2002-06-30  Mike Alexander  <mta@arbortext.com>
5165
5166         * event-msw.c (mswindows_need_event): Don't wait for a new message
5167         if the queue is not empty.  Suggested by Paul Moore.
5168
5169 2002-06-12  Andy Piper  <andy@xemacs.org>
5170
5171         * frame-msw.c (msprinter_init_frame_3): calculate the frame size
5172         for printing on accurately.
5173
5174 2002-06-09  Rick Rankin <rick_rankin@yahoo.com>
5175
5176         * event-msw.c (mswindows_wnd_proc): Add a handler for the
5177         WM_ACTIVATE message. Make sure that the frame is visible if the
5178         window is visible. This seemss to fix the problem where XEmacs
5179         appears to freeze after switching desktops with certain virtual
5180         window managers.
5181         (debug_output_mswin_message): Added code to output message
5182         parameters for WM_WINDOWPOSCHANGED, 
5183         WM_WINDOWPOSCHANGING, WM_MOVE, and WM_SIZE messages.
5184
5185 2002-05-25  Andy Piper  <andy@xemacs.org>
5186
5187         * select-x.c (vars_of_select_x): Fix docstring of
5188         x-selection-strict-motif-ownership
5189
5190 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
5191
5192         * keymap.c (get_keymap):
5193         Add comment about do_autoload GCPROs own args.
5194
5195 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
5196
5197         * bytecode.c (execute_optimized_program): check_opcode ifdef
5198         ERROR_CHECK_BYTE_CODE.
5199
5200 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
5201
5202         Thanks to Ben Wing and Michael Sperber.
5203
5204         * eval.c (Fcommand_execute):
5205         (Feval):
5206         (Ffuncall):
5207         (Fmacroexpand_internal):
5208         (function_argcount):
5209         callint.c (Fcall_interactively):
5210         Add comment about do_autoload GCPROs own args.
5211
5212         * (do_autoload): GCPRO both args as well as local Lisp_Object.
5213
5214         * eval.c (Ffuncall): Extra braces to placate GCC.
5215
5216 2002-08-10  Stephen J. Turnbull  <stephen@xemacs.org>
5217
5218         * backtrace.h (grow_specpdl):
5219         (SPECPDL_RESERVE):
5220         * EmacsFrame.c (EmacsFrameSetValues):
5221         * eval.c (grow_specpdl):
5222         * ExternalShell.c (hack_event_masks_1):
5223         * glyphs-x.c (convert_EImage_to_XImage): 
5224         (x_finalize_image_instance):
5225         * ralloc.c (page_size):
5226         (r_alloc_sbrk):
5227         * xgccache.c (gc_cache_hash):
5228         Fix unsigned comparison warnings.
5229
5230 2002-07-29  Jerry James  <james@xemacs.org>
5231
5232         * lread.c (locate_file): Any nonnegative return value indicates
5233         success if MODE is nonnegative.
5234
5235 2002-08-03  Brian A Palmer  <bpalmer@rescomp.Stanford.EDU>
5236
5237         * emacs.c (Fsplit_string_by_char): Make 2nd arg SEPCHAR a required
5238         argument. 
5239
5240 2002-07-17  Stephen J. Turnbull  <stephen@xemacs.org>
5241
5242         * process-unix.c (unix_send_process): #ifdef the coding_stream member.
5243
5244         * dumper.c (pdump_get_indirect_count):
5245         (pdump_scan_by_alignment):
5246         (pdump_dump_root_struct_ptrs):
5247         (pdump_dump_rtables):
5248         (pdump_dump_root_objects):
5249         (pdump):
5250         * nas.c (WaveOpenDataForReading):
5251         * fns.c (print_bit_vector):
5252         * font-lock.c (SINGLE_SYNTAX_STYLE):
5253         * glyphs.c (check_for_ignored_expose):
5254         (find_matching_subwindow):
5255         * glyphs-eimage.c:
5256         * imgproc.c (get_histogram):
5257         * redisplay.c (point_in_line_start_cache):
5258         * redisplay-output.c (redisplay_unmap_subwindows):
5259         * symbols.c (defsymbol_massage_name_1):
5260         (defkeyword_massage_name):
5261         (deferror_massage_name_and_message):
5262         * redisplay-x.c (x_output_string): 
5263         * emacs.c (run_temacs_argv_size, run_temacs_args_size):
5264         * frame.h (struct frame):
5265         * filelock.c (current_lock_owner):
5266         * doprnt.c (emacs_doprnt_1):
5267         * lisp.h (struct Lisp_Bit_Vector):
5268         (DO_REALLOC):
5269         Fix warnings.
5270
5271 2002-02-13  Ben Wing  <ben@xemacs.org>
5272
5273         * event-stream.c (reset_key_echo):
5274         * event-stream.c (reset_this_command_keys):
5275         * event-stream.c (execute_command_event):
5276         If console is dead as a result of C-x 5 0, then post-command stuff
5277         needs to be careful and do only non-console-specific stuff.
5278
5279 2002-07-01  Mike Sperber <mike@xemacs.org>
5280
5281         * process-unix.c (unix_send_process): Mark coding_outstream as
5282         non-open upon SIGPIPE.
5283
5284         * event-stream.c (Fnext_event): Reorder switch cases to something
5285         that makes sense.
5286
5287 2001-08-13  Dmitry Astapov  <adept@umc.com.ua>
5288
5289         * event-Xt.c (maybe_define_x_key_as_self_inserting_character):
5290         Don't bogusly reinitialize ascii_character property.
5291
5292 2002-07-08  Mike Sperber <mike@xemacs.org>
5293
5294         * process.c (Fstart_process_internal): Do error checking before we
5295         fork off the child, so the child can't muck with the state of the
5296         parent.
5297
5298 2002-07-08  Mike Sperber <mike@xemacs.org>
5299
5300         * ralloc.c (init_ralloc): Allocate properly for pdump.
5301
5302 2002-06-12  Andy Piper  <andy@xemacs.org>
5303
5304         * glyphs.c (query_string_geometry): check the string.
5305
5306         * glyphs-widget.c (widget_logical_unit_height): cope with nil
5307         widget names.
5308
5309 2002-06-17  Jerry James  <james@xemacs.org>
5310
5311         * sysdll.c: Remove RTLD_GLOBAL initialization.
5312         * sysdll.c (dll_open): Do not use RTLD_GLOBAL.
5313
5314 2002-06-25  Stephen J. Turnbull  <stephen@xemacs.org>
5315
5316         * search.c (skip_chars): Port Ben's crash fix and efficiency patch.
5317
5318 2002-05-16  Mathias Grimmberger  <mgri@zaphod.sax.de>
5319
5320         * sysdep.c (sys_rename): Make sys_rename work for the case where
5321         Windows rename sets errno to EACCES if target file exists.
5322
5323 2002-05-21  Jonathan Harris  <jonathan@xemacs.org>
5324
5325         * device-msw.c (mswindows_handle_page_setup_dialog_box):
5326         Fix detection of metric units to work on Win95
5327
5328 2002-05-21  Stephen J. Turnbull  <stephen@xemacs.org>
5329
5330         * syswindows.h: #define LOCALE_RETURN_NUMBER.  Why, I don't know.
5331
5332 2002-04-25  Andy Piper  <andy@xemacs.org>
5333
5334         * redisplay.c (create_text_block): Remove extra comment trailer.
5335
5336 2002-04-24  Andy Piper  <andy@xemacs.org>
5337
5338         * redisplay.c (create_text_block): Don't actually add propagation
5339         data if the line ends after we have added a glyph.
5340
5341 2002-04-22  Andy Piper  <andy@xemacs.org>
5342
5343         * extents.c (extent_fragment_update): check for glyphs we have
5344         previously displayed.
5345         * extents.c (print_extent_1): warning removal.
5346         * extents.h: change prototype.
5347         * redisplay-output.c (redisplay_normalize_glyph_area): calculate
5348         widths correctly for wide glyphs.
5349         * redisplay.c (position_redisplay_data_type): add end_glyph_width.
5350         * redisplay.c (prop_type): add PROP_GLYPH.
5351         * redisplay.c (struct prop_block): add glyph type
5352         * redisplay.c (add_glyph_rune): when adding part of a glyph add it
5353         to the propagation data.
5354         * redisplay.c (create_text_block): if there is a glyph in the
5355         propagation data use it to salt extent_fragment_update.
5356         * redisplay.c (create_string_text_block): ditto.
5357
5358 2002-04-13  Nix  <nix@esperi.demon.co.uk>
5359
5360         * redisplay.h (struct rune): Add ascent, descent, and yoffset fields.
5361         * redisplay-output.c (compare_runes): Compare them.
5362         * redisplay.c: Update copyright date.
5363         * redisplay.c (pos_data): Add need_baseline_computation field.
5364         * redisplay.c (add_glyph_rune): Update ascent, descent, and
5365         need_baseline_computation; zero yoffset. Set max_pixmap_height
5366         for all pixmaps, not just automatically positioned ones.
5367         * redisplay.c (calculate_yoffset): New, compute yoffset values.
5368         * redisplay.c (calculate_baseline): New, compute textual baseline.
5369         * redisplay.c (add_glyph_rune): Call them.
5370         * redisplay.c (create_text_block): Likewise.
5371         * redisplay.c (create_overlay_glyph_block): Likewise.
5372         * redisplay.c (add_margin_runes): Likewise.
5373         * redisplay.c (create_string_text_block): Likewise. Fix tabdamage.
5374
5375         * redisplay.h: (redisplay_calculate_display_boxes): Change prototype.
5376         * redisplay-output.c (redisplay_calculate_display_boxes): Use yoffset.
5377         * redisplay-msw.c (mswindows_output_blank): Pass 0 as yoffset.
5378         * redisplay-msw.c (mswindows_output_string): Likewise.
5379         * redisplay-msw.c (mswindows_output_display_block): Pass yoffset.
5380         * redisplay-gtk.c (gtk_output_display_block): Likewise.
5381         * redisplay-x.c (x_output_display_block): Likewise.
5382
5383 2002-03-28  Ben Wing  <ben@xemacs.org>
5384
5385         * redisplay.c: Fixed bug in redisplay
5386         w.r.t. hscroll/truncation/continuation glyphs causing jumping up
5387         and down of the lines, since they're bigger than the line
5388         size. (It was seen most obviously when there's a horizontal scroll
5389         bar, e.g. do C-h a glyph or something like that.) The problem was
5390         that the glyph-contrib-p setting on glyphs was ignored even if it
5391         was set properly, which it wasn't until now.
5392
5393 2002-04-24  Andy Piper  <andy@xemacs.org>
5394
5395         * lisp.h (Dynarr_end): Fix definition.
5396
5397 2002-02-06  Adrian Aichner  <adrian@xemacs.org>
5398
5399         * redisplay.c (mark_redisplay): Remove call to
5400         update_frame_window_mirror.
5401
5402 2001-11-15  Andy Piper  <andy@xemacs.org>
5403
5404         * win32.c (Fmswindows_shell_execute): fix handling of URL's under
5405         cygwin (again).
5406
5407 2002-02-13  Andy Piper  <andy@xemacs.org>
5408
5409         * event-msw.c (mswindows_wnd_proc): only mark the frame visible if
5410         we did in fact enqueue the XM_MAPFRAME event.
5411
5412 2002-01-15  Adrian Aichner  <adrian@xemacs.org>
5413
5414         * event-msw.c (mswindows_wnd_proc): Add handling of WM_SHOWWINDOW
5415         to fix problem switching between virtual desktops under virtuawin
5416         virtual window manager.
5417
5418 2001-07-30  Adrian Aichner  <adrian@xemacs.org>
5419
5420         * event-msw.c: Typo fix.
5421         * event-msw.c (mswindows_wnd_proc): Set FRAME_VISIBLE_P after
5422         magic XM_MAPFRAME event has been sent.
5423
5424 2001-11-23  Andy Piper  <andy@xemacs.org>
5425
5426         * event-msw.c (mswindows_wnd_proc): Don't pump mousewheel events.
5427
5428 2001-11-21  Andy Piper  <andy@xemacs.org>
5429
5430         * scrollbar-msw.c (mswindows_handle_mousewheel_event): cope with
5431         mouse events outside the frame.
5432
5433 2002-03-20  Andy Piper  <andy@xemacs.org>
5434
5435         * menubar-msw.c (mswindows_popup_menu): warning removal.
5436         * dialog-msw.c (dialog_popped_down): ditto.
5437
5438 2001-12-11  Andy Piper  <andy@xemacs.org>
5439
5440         * dialog-msw.c (dialog_popped_down): new function. unset popup_up_p.
5441         * dialog-msw.c (mswindows_make_dialog_box_internal): set
5442         popup_up_p.
5443         * menubar-msw.c (unsafe_handle_wm_initmenupopup_1): ditto.
5444         * menubar-msw.c (mswindows_handle_wm_command): ditto.
5445         * menubar-msw.c (mswindows_popup_menu): ditto.
5446
5447 2001-10-29  Andy Piper  <andy@xemacs.org>
5448
5449         * dialog-msw.c (handle_directory_dialog_box): quit if the user
5450         cancels.
5451
5452 2002-01-03  Andy Piper  <andy@xemacs.org>
5453
5454         * realpath.c (ABS_LENGTH): dtrt for cygwin systems using drive
5455         letters.
5456         (xrealpath): ditto.
5457
5458 2002-03-29  Jonathan Harris  <jonathan@xemacs.org>
5459
5460         * device-msw.c (plist_get_margin): Add arg specifying mm or inches
5461         * device-msw.c (plist_set_margin): Fix multiplicand used for mm
5462         * device-msw.c (mswindows_handle_page_setup_dialog_box):
5463         Detect and handle case where machine is set up for metric units
5464
5465 2002-04-02  Andy Piper  <andy@xemacs.org>
5466
5467         * dired-msw.c (mswindows_get_files): 
5468         * nt.c (mswindows_stat): SetErrorMode() so that file errors are
5469         completely handled by XEmacs. Suggested by Thomas Vogler
5470         <mail@thomas-vogler.de>.
5471
5472 2001-11-14  Andy Piper  <andy@xemacs.org>
5473
5474         * nt.c (REG_ROOT): change registry key to XEmacs.
5475
5476 2002-04-27  Andy Piper  <andy@xemacs.org>
5477
5478         * glyphs-msw.c (mswindows_widget_instantiate): remove dead-code.
5479
5480 2002-04-26  Andy Piper  <andy@xemacs.org>
5481
5482         * glyphs-msw.c (mswindows_map_subwindow): observe :initial-focus
5483         behavior.
5484
5485 2002-03-14  Mike Alexander  <mta@arbortext.com>
5486
5487         * event-msw.c (mswindows_unwait_process): New, remove process from
5488         wait list
5489         * process-nt.c (nt_finalize_process_data): Call
5490         mswindows_unwait_process
5491         * console-msw.h: Declare mswindows_unwait_process
5492
5493 2002-05-14  Stephen J. Turnbull  <stephen@xemacs.org>
5494
5495         * editfns.c (Fdecode_time):
5496         (Fformat_time_string):
5497         Check for invalid time.  Thanks to Nick Pakoulin <npak@ispras.ru>.
5498         (make_time): Warning elimination (change arg name).
5499
5500 2001-11-24  Andy Piper  <andy@xemacs.org>
5501
5502         * window.c (Fsplit_window): Doc return type.
5503
5504 2002-04-01  Andy Piper  <andy@xemacs.org>
5505
5506         * emacs.c (Fkill_emacs): Only output message box in interactive
5507         mode.
5508
5509 2002-04-26  Andy Piper  <andy@xemacs.org>
5510  
5511         * config.h.in: pull in 21.5.x change to stop alloca warnings under
5512         cygwin.
5513
5514 2002-03-18  Gregory Steuck  <greg-xemacs-patch@nest.cx>
5515
5516         * unexelf.c:  Use ELFSIZE or define from _LP64 to indicate a 64
5517         bit platform.
5518
5519 2002-05-09  Stephen J. Turnbull  <stephen@xemacs.org>
5520
5521         * XEmacs 21.4.8 "Honest Recruiter" is released.
5522
5523 2002-05-07  Nix  <nix@esperi.demon.co.uk>
5524
5525         Supersedes 2002-04-17 patch.
5526
5527         * process.h (PROCESS_LIVE_P): Use the process status as
5528         evidence of health, not the state of the input stream.
5529         (PROCESS_READABLE_P): Say if the process is readable
5530         from. (It may be dead nonetheless.)
5531         (CHECK_READABLE_PROCESS): Test for that condition.
5532
5533         * process.c (create_process): Use PROCESS_READABLE_P.
5534         (read_process_output, set_process_filter): Likewise.
5535
5536         * process.c (Fprocess_input_coding_system): Use CHECK_READABLE_PROCESS.
5537         (Fset_process_input_coding_system, Fprocess_coding_system): Likewise.
5538
5539         This code is #if 0'd, this is not the time to add new functions:
5540
5541         * process.c (Fprocess_readable_p): Report readability status.
5542         * process.c (Qprocess_readable_p): New, associated symbol...
5543         * process.c (syms_of_process): ... initialize it.
5544
5545 2002-05-04  Stephen J. Turnbull  <stephen@xemacs.org>
5546
5547         * XEmacs 21.4.7 "Economic Science" is released.
5548
5549 2002-04-17  Nix  <nix@esperi.demon.co.uk>
5550
5551         * process.h (PROCESS_LIVE_P): Use the process status as
5552         evidence of health, not the state of the input stream.
5553
5554 2002-04-30  Charles G. Waldman <cgw@xemacs.org>
5555
5556         * sysdep.c (sys_siglist): change "signum" to "signal"
5557
5558 2001-04-21  Martin Buchholz  <martin@xemacs.org>
5559
5560         * s/darwin.h: New file.
5561         Thanks to Greg Parker <gparker@cs.stanford.edu>.
5562         
5563 2002-04-23  Andreas Jaeger  <aj@suse.de>
5564
5565         * s/linux.h (LIB_STANDARD): Define correctly for x86-64 and s390x
5566         which use lib64 for 64-bit libs.
5567         (START_FILES): Likewise.
5568
5569 2002-02-11  Mike Sperber  <mike@xemacs.org>
5570
5571         * device-x.c: 
5572         (x_IO_error_handler):
5573         (x_init_device): Temporarily keep device in static variable
5574         `device_being_initialized' so we can recover gracefully from
5575         internal XOpenDevice failure.  (XOpenDevice is documented to
5576         return NULL on failure, but sometimes calls the IO error handler
5577         instead.)
5578
5579 2002-01-31  John H. Palmieri  <palmieri@math.washington.edu>
5580
5581         * dired.c (Ffile_name_all_completions): Change documentation --
5582         remove reference to completion-ignored-extensions.
5583         * dired.c (vars_of_dired): Change documentation for
5584         completion-ignored-extensions -- remove reference to
5585         file-name-all-completions.
5586
5587 2002-03-06  Jerry James  <james@xemacs.org>
5588
5589         * emodules.c (emodules_load): Fix multiple loading of same module.
5590
5591 2002-01-25  Andrew Begel <abegel@cs.berkeley.edu>
5592         * sysdll.c (dll_open): Changed to use RTLD_NOW instead of
5593         RTLD_LAZY to avoid incorrect symbol binding when using nested
5594         shared libraries on Solaris.
5595
5596 2002-02-12  Stephen J. Turnbull  <stephen@xemacs.org>
5597
5598         * fileio.c (Ffind_file_name_handler): Improve docstring.
5599
5600 2002-01-20  Stephen J. Turnbull  <stephen@xemacs.org>
5601
5602         * fns.c (Fmapconcat): Improve docstring.
5603
5604 2002-01-03  Eric Gillespie, Jr.  <epg@pretzelnet.org>
5605
5606         * device-gtk.c: Add prototype for
5607         emacs_gtk_selection_clear_event_handle.
5608         (gtk_init_device): Call gtk_selection_add_target for CLIPBOARD
5609         selection.  Setup signal handler for "selection_clear_event"
5610         (emacs_gtk_selection_clear_event_handle).
5611
5612         * select-gtk.c (emacs_gtk_selection_clear_event_handle): Handle
5613         other applications owning the clipboard (based on
5614         x_handle_selection_clear).
5615
5616 2001-12-23  William M. Perry  <wmperry@gnu.org>
5617
5618         * menubar-gtk.c (gtk_popup_menu)  Add sanity checks, fix crash.
5619         
5620 2002-01-04  Martin Buchholz  <martin@xemacs.org>
5621
5622         * keymap.c (define_key_alternate_name): Parenthesize EQ.
5623
5624 2001-12-17  Stephen J. Turnbull  <stephen@xemacs.org>
5625
5626         * XEmacs 21.4.6 "Common Lisp" is released.
5627
5628 2001-12-16  Torsten Duwe  <duwe@caldera.de>
5629
5630         * search.c (Freplace_match): Add missing sub-expression functionality.
5631
5632         * buffer.c (decode_buffer): Add a check for pointer type to
5633         decode_buffer, before gcc's CSE optimization reorders a
5634         dereference in front of the allow_string test.
5635
5636 2001-11-16  Darryl Okahata  <darrylo@xemacs.org>
5637
5638         * window.c (window_loop): Fix bug that sometimes prevented
5639         window_loop() from iterating across multiple devices.  Also, at
5640         Ben's request, changed infloop-detecting code to abort() instead
5641         of silently terminating window_loop().
5642
5643 2001-11-21  Stephen J. Turnbull  <stephen@xemacs.org>
5644
5645         Based on analysis and patch by Simon Josefson <jas@extundo.com>.
5646         * editfns.c (make_time): New function.
5647         (Fencode_time): Use it instead of wasteful_word_to_lisp.
5648         * lisp.h (make_time): Prototype and comment it.
5649         * dired.c (wasteful_word_to_lisp): Deprecate.
5650         (Ffile_attributes): Use make_time() instead of wasteful_word_to_lisp().
5651
5652 2001-10-31  Kyle Jones  <kyle_jones@wonderworks.com>
5653
5654         * fileio.c (auto_save_1): Use current coding system, not
5655         escape-quoted.
5656
5657 2001-11-13  Ben Wing  <ben@xemacs.org>
5658
5659         * window.c:
5660         * window.c (window_truncation_on):
5661         * window.c (syms_of_window):
5662         truncate-partial-width-windows should respect the buffer being
5663         displayed, like other redisplay vars.
5664
5665 2001-11-13  Hirokazu FUKUI  <hfukui@sannet.ne.jp>
5666
5667         * event-stream.c (Fread_key_sequence): save current buffer.
5668
5669 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
5670
5671         * ntheap.c (_heap_init): Don't redefine in VS.NET (MSC >= 1300).
5672
5673 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
5674
5675         * alloc.c (lcrecord_stats): Add space for types defined in modules.
5676
5677 2001-10-26  Mike Alexander  <mta@arbortext.com>
5678
5679         * event-msw.c (slurper_free_shared_data_maybe): Free the pipe handle.
5680
5681 2001-10-25  Andy Piper  <andy@xemacs.org>
5682
5683         * ChangeLog:
5684         * dialog-msw.c (handle_directory_proc): new function.
5685          (handle_directory_dialog_box): new fucntion.
5686          (handle_file_dialog_box): use new directory dialog support.
5687          (mswindows_make_dialog_box_internal): ditto.
5688         * event-msw.c (mswindows_wnd_proc): minor fix to scrollbar event
5689         handling.
5690         (mswindows_find_frame): make global.
5691         * fileio.c (Fexpand_file_name): build fix.
5692         * general-slots.h: add Qdirectory.
5693         * scrollbar-msw.c (mswindows_handle_scrollbar_event): fix focus
5694         handling.
5695         * syswindows.h (LOCAL_TO_WIN32_FILE_FORMAT): fix problem with
5696         cygwin not leaving win32 paths unchanged.
5697         * win32.c (Fmswindows_cygwin_to_win32_path): new function. Use the
5698         cygwin runtime to do path conversion.
5699         (Fmswindows_shell_execute): fix cygwin handling of URLs.
5700         (syms_of_win32): add new function.
5701         * window.c (window_loop): build fix.
5702
5703 2001-10-15  Andy Piper  <andy@xemacs.org>
5704
5705         (Fmswindows_shell_execute): fix handling of URL's under cygwin.
5706
5707 2001-10-23  Stephen J. Turnbull  <stephen@xemacs.org>
5708
5709         * XEmacs 21.4.5 "Civil Service" is released.
5710
5711 2001-04-08  Danny Colascione  <qtmstr@optonline.net>
5712
5713         * glyphs-x.c: Force buffer-tab highlight update when moving the
5714         buffer, avoiding an ugly black border, used for keyboard focus
5715         indication, on a widget that can never have keyboard focus, the
5716         buffer tab.
5717
5718 2001-08-30  Daiki Ueno  <ueno@unixuser.org>
5719
5720         * process-unix.c (unix_open_multicast_group): Remove too much
5721         conversion between host and network byte order.
5722
5723 2001-09-10  Nix  <nix@esperi.demon.co.uk>
5724
5725         * src/buffer.c (kill_buffer): Undedicate windows showing BUF
5726         before replacing them.
5727
5728         * src/window.c (window_loop): Implement new UNDEDICATE_BUFFER
5729         operation.
5730
5731         * src/window.c (undedicate_windows): Use it.
5732         * src/window.h: Add prototype.
5733
5734 2001-09-17  Ben Wing  <ben@xemacs.org>
5735
5736         * fileio.c (normalize_filename):
5737         * fileio.c (Fexpand_file_name):
5738         Fix various C++ compile errors in Andy's recent code.
5739         
5740         * callint.c (Fcall_interactively):
5741         * editfns.c (Ftemp_directory):
5742         * editfns.c (Fuser_full_name):
5743         * emacs.c (argmatch):
5744         * lread.c (locate_file_map_suffixes):
5745         * redisplay-x.c (x_ring_bell):
5746         Fix sign-compare warnings.
5747         
5748 2001-09-08  Andy Piper  <andy@xemacs.org>
5749
5750         * fileio.c (normalize_filename): copied from nt.c
5751         * (Ffile_name_directory): enable win32 paths under cygwin.
5752         * (Ffile_name_nondirectory): ditto.
5753         * (directory_file_name): ditto.
5754         * (Fexpand_file_name): ditto.
5755         * (Ffile_truename): ditto.
5756         * (Fsubstitute_in_file_name): ditto.
5757         * (Ffile_name_absolute_p): ditto.
5758         * (Ffile_readable_p): ditto.
5759
5760 2001-09-08  Andy Piper  <andy@xemacs.org>
5761
5762         * device-msw.c (mswindows_finish_init_device): remove dde
5763         initialization.
5764         * device-msw.c (mswindows_init_dde): factor out from
5765         mswindows_finish_init_device()
5766         * device-msw.c (init_mswindows_very_early): new function
5767         initialize but don't enable dde.
5768         * emacs.c (main_1): call init_mswindows_very_early.
5769         * event-msw.c:
5770         * event-msw.c (mswindows_dde_callback): only execute when we are
5771         ready.
5772         * symsinit.h: declare init_mswindows_very_early.
5773
5774 2001-05-02  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
5775
5776         [sjt: This has been in 21.5 for months with no complaints.]
5777
5778         * console.h (struct console_methods): Added flags member.
5779         (CONSOLE_IMPLEMENTATION_FLAGS): Defined.
5780         (CONMETH_IMPL_FLAG):
5781         (CONSOLE_IMPL_FLAG): Macro to check implememntation flags.
5782         Defined XDEVIMPF_DONT_PREEMPT_REDISPLAY.
5783
5784         * device.c (window_system_pixelated_geometry): Use the above macros.
5785
5786         * device.h (DEVICE_IMPL_FLAG): Macro to check a device
5787         implememntation flag.
5788         * device.h (DEVICE_DISPLAY_P): Use it.
5789
5790         * frame.c (delete_frame_internal): Use the above macro.
5791
5792         * redisplay.c (redisplay_device): Use it.
5793         (redisplay_device): Obey XDEVIMPF_DONT_PREEMPT_REDISPLAY.
5794         (redisplay_frame): Ditto.
5795
5796         * device-msw.c (mswindows_device_implementation_flags): Removed.
5797         (msprinter_device_implementation_flags): Removed.
5798         (console_type_create_device_mswindows): Removed references to
5799         implementation_flags methods, set implementation flags here.
5800         (console_type_create_device_mswindows): Added XDEVIMPF_DONT_PREEMPT.
5801
5802         * device-gtk.c (gtk_device_implementation_flags): Removed method.
5803         (console_type_create_device_gtk): Removed method declaration.
5804         Added commented out statement which semantically matches the
5805         commented out statement in the above removed method.
5806
5807 2001-04-14  Gordon Sadler  <gbsadler1@lcisp.com>
5808
5809         The attached patch fixes a few warnings. 
5810
5811         * src/emacs.c: prototype console_type_create_select_gtk for GTK only
5812         * src/frame-gtk.c: guard against GNOME calls in GTK only
5813         * src/redisplay-gtk.c: include <sys/poll.h> #ifdef HAVE_POLL
5814         * src/select-gtk.c: prototype lisp_to_time
5815
5816 2001-06-08  Ben Wing  <ben@xemacs.org>
5817
5818         ------ gc-in-window-procedure fixes ------
5819         
5820         * alloc.c:
5821         * alloc.c (struct post_gc_action):
5822         * alloc.c (register_post_gc_action):
5823         * alloc.c (run_post_gc_actions):
5824         * alloc.c (garbage_collect_1):
5825         Create "post-gc actions", to avoid those dreaded "GC during window
5826         procedure" problems.
5827
5828         * event-msw.c:
5829         Abort, clean and simple, when GC in window procedure.  We want
5830         to flush these puppies out.
5831
5832         * glyphs-msw.c:
5833         * glyphs-msw.c (finalize_destroy_window):
5834         * glyphs-msw.c (mswindows_finalize_image_instance):
5835         Use a post-gc action when destroying subwindows.
5836
5837         * lisp.h:
5838         Declare register_post_gc_action().
5839
5840         * scrollbar-msw.c:
5841         * scrollbar-msw.c (unshow_that_mofo):
5842         Use a post-gc action when unshowing scrollbar windows, if in gc.
5843
5844         * redisplay.c (mark_redisplay):
5845         Add comment about the utter evilness of what's going down here.
5846
5847         ------ cygwin setitimer fixes ------
5848         
5849         * Makefile.in.in (sheap_objs):
5850         * Makefile.in.in (profile_objs):
5851         * Makefile.in.in (objs):
5852         Compile profile.c only when HAVE_SETITIMER.
5853         
5854         * nt.c (mswindows_sigset):
5855         * nt.c (mswindows_sighold):
5856         * nt.c (mswindows_sigrelse):
5857         * nt.c (mswindows_sigpause):
5858         * nt.c (mswindows_raise):
5859         * nt.c (close_file_data):
5860         Style fixes.
5861         
5862         * nt.c:
5863         Move setitimer() emulation to win32.c, because Cygwin needs it too.
5864         
5865         * profile.c:
5866         * profile.c (Fstart_profiling):
5867         * profile.c (Fstop_profiling):
5868         Make sure we don't compile if no setitimer().  Use qxe_setitimer()
5869         instead of just plain setitimer().
5870         
5871         * signal.c:
5872         * signal.c (set_one_shot_timer):
5873         * signal.c (alarm):
5874         Define qxe_setitimer() as an encapsulation around setitimer() --
5875         call setitimer() directly unless Cygwin or MS Win, in which case
5876         we use our simulated version in win32.c.
5877         
5878         * systime.h:
5879         * systime.h (struct itimerval):
5880         * systime.h (ITIMER_REAL):
5881         Prototype mswindows_setitimer() and qxe_setitimer().  Long
5882         comment about "qxe" and the policy regarding encapsulation.
5883
5884         * win32.c:
5885         * win32.c (setitimer_helper_proc):
5886         * win32.c (setitimer_helper_period):
5887         * win32.c (setitimer_helper):
5888         * win32.c (mswindows_setitimer):
5889         Move setitimer() emulation here, so Cygwin can use it.
5890         Rename a couple of functions and variables to be longer and more
5891         descriptive.  In setitimer_helper_proc(), send the signal
5892         using either mswindows_raise() or (on Cygwin) kill().  If for
5893         some reason we are still getting lockups, we'll change the kill()
5894         to directly invoke the signal handlers.
5895
5896         ------ windows shell fixes ------
5897         
5898         * callproc.c:
5899         * ntproc.c:
5900         Comments about how these two files must die.
5901
5902         * callproc.c (init_callproc):
5903         On MS Windows, init shell-file-name from SHELL, then COMSPEC,
5904         not just COMSPEC. (more correct and closer to FSF.) Don't
5905         force a value for SHELL into the environment. (Comments added
5906         to explain why not.)
5907         
5908         * nt.c (init_user_info):
5909         Don't shove a fabricated SHELL into the environment.  See above.
5910
5911 2001-06-01  Ben Wing  <ben@xemacs.org>
5912
5913         * Makefile.in.in (ldflags):
5914         eliminate that pesky "defaulting to 00401000" warning.
5915         * nt.h:
5916         eliminate warnings.
5917
5918 2001-06-15  Golubev I. N.  <gin@mo.msk.ru>
5919
5920         * s/sco5.h (FORCE_ALLOCATE_PTY_THE_OLD_FASHIONED_WAY): #define.
5921         * process-unix.c (allocate_pty): #ifndef "modern" pty allocation.
5922
5923 2001-04-24  Jerry James <james@xemacs.org>
5924
5925         * faces.h: pass parameters to Fadd_spec_to_specifier in the
5926         correct order.
5927
5928 2001-06-01  Ben Wing  <ben@xemacs.org>
5929
5930         * event-msw.c (debug_mswin_messages):
5931         conditionalize the messages that were causing compile errors.
5932         (if only macros could generate #ifdef statements ...)
5933
5934 2001-07-28  Stephen J. Turnbull  <stephen@xemacs.org>
5935
5936         * XEmacs 21.4.4 "Artificial Intelligence" is released.
5937
5938 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
5939
5940         * event-msw.c (mswindows_wnd_proc): Add GC debugging assert.
5941
5942 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
5943
5944         * config.h.in (IPV6_CANONICALIZE): New #define for --with-ipv6-lookup.
5945         * process-unix.c (unix_canonicalize_host_name):
5946         sysdep.c (init_system_name):
5947         Use it to conditionally support IPv6 canonicalization.
5948
5949 2001-05-31  Paul Stodghill  <stodghil@cs.cornell.edu>
5950
5951         * event-msw.c:
5952         Cygwin does not define WM_IME_xxx. Modify the #if's accordingly.
5953
5954 2001-05-19  Paul Krause  <paulkrause1@mediaone.net>
5955
5956         * scrollbar-msw.c: Fixes a crash that occurs on Windows when an
5957         attempt is made to scroll when no scroll bar is available.
5958
5959 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
5960
5961         * input-method-motif.c (XIM_delete_frame): New callback.
5962         (XIM_init_frame): Register it.  (Reapplied by SJT, it somehow
5963         got deleted from 21.4.3.)
5964
5965 2001-06-01  Ben Wing  <ben@xemacs.org>
5966
5967         * nt.c (mswindows_utime):
5968         * nt.c (close_file_data):
5969         fix off-by-one-indirection error.
5970
5971 2001-05-29  Adrian Aichner  <adrian@xemacs.org>
5972
5973         * fileio.c: Include nt.h.  Remove lisp_string_set_file_times()
5974         because set_file_times() now takes Lisp_Object path, instead of
5975         char*.
5976         * nt.c: Include buffer.h.
5977         * nt.c (convert_from_time_t): New.
5978         * nt.c (mswindows_utime): New.  Use utime, since SetFileTime does
5979         not set mtime correctly.
5980         * nt.h: Declare mswindows_utime().
5981         * sysdep.c (set_file_times): set_file_times() now takes Lisp_Object
5982         path, instead of char*.
5983         * systime.h: Include <sys/utime.h> on WIN32_NATIVE.
5984
5985 2001-05-30  Ben Wing  <ben@xemacs.org>
5986
5987         For 21.4:
5988
5989         (Stephen, just take all event-msw.c patches.  This includes
5990         the "iconify" fix below.)
5991
5992         * event-msw.c:
5993         * event-msw.c (mswindows_dequeue_dispatch_event):
5994         * event-msw.c (assert):
5995         * event-msw.c (emacs_mswindows_quit_p):
5996         * event-msw.c (debug_mswin_messages):
5997         * event-msw.c (debug_output_mswin_message):
5998         * event-msw.c (vars_of_event_mswindows):
5999         Fix yet more problems with C-g handling.
6000         Implement debug-mswindows-events.
6001         
6002 2001-05-24  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
6003
6004         * event-msw.c (WM_DROPFILES): Use correct type for OLE characters.
6005         
6006 2001-05-23  Ben Wing  <ben@xemacs.org>
6007
6008         * event-msw.c (winsock_writer):
6009         * event-msw.c (winsock_closer):
6010         prior kludgy code was clobbering the buffer, thinking it was
6011         "unused" space to store an unneeded return value; instead, use
6012         the variable we've already got staring us in the face.
6013
6014 2001-05-17  Andy Piper  <andy@xemacs.org>
6015
6016         * sysfile.h: don't assume that file attributes are boolean
6017
6018 2001-05-23  Ben Wing  <ben@xemacs.org>
6019
6020         * device-msw.c (msprinter_init_device):
6021         signal an error rather than crash with an unavailable network
6022         printer (from Mike Alexander).
6023         
6024         * event-msw.c:
6025         * event-msw.c (struct winsock_stream):
6026         * event-msw.c (winsock_writer):
6027         * event-msw.c (winsock_closer):
6028         * event-msw.c (make_winsock_stream_1):
6029         cleanup headers.  fix (hopefully) an error with data corruption
6030         when sending to a network connection.
6031
6032         * fileio.c (Fexpand_file_name): Fix evil code that attempts
6033         to handle the ~user prefix by (a) always assuming we're referencing
6034         ourselves and not even verifying the user -- hence any file with
6035         a tilde as its first char is invalid! (b) if there wasn't a slash
6036         following the filename, the pointer was set *past* the end of
6037         file and we started reading from uninitialized memory.  Now we
6038         simply treat these as files, always.
6039
6040         * buffer.c (common_init_complex_vars_of_buffer): comment change.
6041         
6042 2001-05-19  Ben Wing  <ben@xemacs.org>
6043
6044         * eval.c: doc comment about gcpro'ing in record_unwind_protect.
6045
6046         * process-nt.c:
6047         * process-nt.c (vars_of_process_nt):
6048         remove unused mswindows-quote-process-args.  rec for 21.4.
6049         
6050 2001-05-12  Ben Wing  <ben@xemacs.org>
6051
6052         * event-msw.c (mswindows_dde_callback):
6053         * event-msw.c (mswindows_wnd_proc):
6054         eliminate cygwin warnings.
6055
6056 2001-05-06  Ben Wing  <ben@xemacs.org>
6057
6058         * console-msw.h:
6059         * device-msw.c:
6060         * device-msw.c (print_dialog_worker):
6061         * device-msw.c (mswindows_handle_print_dialog_box):
6062         * device-msw.c (syms_of_device_mswindows):
6063         * dialog-msw.c (mswindows_make_dialog_box_internal):
6064         * general-slots.h:
6065         implement printing the selection when it's selected.
6066
6067 2001-05-20  Drazen Kacar  <dave@arsdigita.com>
6068
6069         * glyphs-gtk.c (gtk_resource_instantiate): C++ comment -> #if 0
6070
6071 2001-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
6072
6073         * lisp.h (EMACS_INT_MAX): This should be one bit less since
6074         EMACS_INT is signed.
6075
6076 2001-04-15  Michael Lausch  <mla@1012surf.net>
6077
6078         * scrollbar-gtk.c (gtk_create_scrollbar_instance): Call
6079         gtk_widget_request_size() to give scrollbar >0 width for
6080         GTK >1.2.8.
6081
6082 2001-05-30  William M. Perry  <wmperry@gnu.org>
6083
6084         * event-gtk.c: Check for buttons as modifier keys.
6085
6086 2001-05-25  Craig Lanning  <CraigL@Knology.net>
6087
6088         * s\mingw32.h:
6089         Properly find MinGW's <process.h> inside Cygwin's restructured
6090         include directories.  Don't try to include <cygwin/version.h>
6091         since we are dropping support for MinGW in versions of Cygwin
6092         earlier than b21.
6093         * nt.c:
6094         Drop support for MinGW in versions of Cygwin before b21.
6095         * sysdep.c:
6096         Properly find MinGW's <process.h> inside Cygwin's restructured
6097         include directories.
6098         * syswindows.h:
6099         Drop support for MinGW in versions of Cygwin before b21.
6100         * unexcw.c:
6101         Even though a.out.h is no longer detected by configure, allow
6102         MinGW to use it until we figure out how to do the job with Win32.
6103
6104 2001-07-11  Matt Tucker  <tuck@whistlingfish.net>
6105
6106         * syntax.c (find_start_of_comment):
6107         Fix `unbalanced parentheses' bug when dealing with mixed comment
6108         styles in c++/java/etc. mode
6109
6110 2001-05-29  Mike Alexander  <mta@arbortext.com>
6111
6112         * console-msw.h (FRAME_MSPRINTER_CHARHEIGHT): Unswap
6113         FRAME_MSPRINTER_CHARWIDTH and FRAME_MSPRINTER_CHARHEIGHT
6114
6115 2001-05-17  Andrew Begel  <abegel@eecs.berkeley.edu>
6116
6117         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Add needed cast.
6118
6119 2001-03-31  Mike Sperber <mike@xemacs.org>
6120
6121         * search.c (Freplace_match): Support FSF-style specification of
6122         match subexpression when applied to a buffer.
6123
6124 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
6125
6126         * event-stream.c (is_scrollbar_event): add missing semicolon
6127
6128 2001-05-22  Isaac Hollander  <ysh@mindspring.com>
6129
6130         * Makefile.in.in: Use TAR macro instead of hardcoding
6131           tar.  Allows use of GNU tar instead of system tar
6132
6133 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
6134
6135         * event-stream.c (is_scrollbar_event): add missing semicolon
6136
6137 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
6138
6139         * XEmacs 21.4.3 "Academic Rigor" is released.
6140
6141 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
6142
6143         * regex.c: Define DECLARE_NOTHING when "lisp.h" is not included.
6144
6145 2001-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
6146
6147         * buffer.c (Vcase_fold_search): Remove obsolete
6148           comment about non ASCII case-fold-search.  This
6149           bug has been fixed by case-table changes.
6150
6151 2001-05-11  Stephen J. Turnbull  <stephen@xemacs.org>
6152
6153         * event-msw.c: Restore include of events-mod.h.
6154
6155 2001-04-22   zhaoway  <zw@debian.org>
6156
6157         * event-stream.c (is_scrollbar_event): Noop returning 0 if
6158         !HAVE_SCROLLBARS.
6159
6160 2001-05-10  Stephen J. Turnbull  <stephen@xemacs.org>
6161
6162         * XEmacs 21.4.2 "Developer-Friendly Unix APIs" is released.
6163
6164 2001-05-08  Yoshiaki Kasahara  <kasahara@nc.kyushu-u.ac.jp>
6165
6166         * mule-charset.c (Fmake_charset): Add missing else.
6167
6168 2001-04-23  Ben Wing  <ben@xemacs.org>
6169
6170         * event-msw.c (FAKE_MOD_QUIT):
6171         * event-msw.c (mswindows_dequeue_dispatch_event):
6172         * event-msw.c (mswindows_wnd_proc):
6173         * event-msw.c (emacs_mswindows_quit_p):
6174         Get critical quit working.
6175
6176 2001-05-05  Ben Wing  <ben@xemacs.org>
6177
6178         * console-msw.h:
6179         * device-msw.c:
6180         * device-msw.c (mswindows_get_default_margin):
6181         * frame-msw.c (mswindows_size_frame_internal):
6182         * frame-msw.c (msprinter_init_frame_1):
6183         * frame-msw.c (vars_of_frame_mswindows):
6184         Change top/bottom margin defaults to 0.5 inches.
6185
6186 2001-05-01  Martin Buchholz  <martin@xemacs.org>
6187
6188         Fix link error with gcc 3.0 on Linux.
6189         * terminfo.c (UP): Remove.
6190         * terminfo.c (BC): Remove.
6191         * terminfo.c (PC): Remove.
6192         They weren't used, and in any case, these symbols should be
6193         defined in the *library*.
6194
6195 2001-05-03  Martin Buchholz  <martin@xemacs.org>
6196
6197         * s/aix4.h: Fix crash with xlc -O3.
6198         Improve comment explaining how -O3 works.
6199
6200 2001-04-15  Ben Wing  <ben@xemacs.org>
6201
6202         * event-stream.c:
6203         * event-stream.c (Fnext_event):
6204         * event-stream.c (is_scrollbar_event):
6205         * event-stream.c (execute_command_event):
6206         Better fix for Yoshiki's `C-x @ h <scrollbar-drag> x causes a
6207         crash' problem.  His fix introduces other problems.  We filter
6208         out scrollbar events specifically, making them somewhat invisible
6209         to command-building, and not appearing in `this-command-keys'.
6210         More work is still needed (see comments in event-stream.c), but
6211         this fixes all the major problems.
6212
6213 2001-04-20  Ben Wing  <ben@xemacs.org>
6214
6215         * .cvsignore: Added stuff for Windows.
6216
6217 2001-04-28  Ben Wing  <ben@xemacs.org>
6218
6219         * buffer.c (Ferase_buffer):
6220         * editfns.c (buffer_insert1):
6221         * editfns.c (Finsert_before_markers):
6222         * editfns.c (Finsert_string):
6223         * editfns.c (Finsert_char):
6224         * editfns.c (Fdelete_region):
6225         * editfns.c (Fwiden):
6226         * editfns.c (Fnarrow_to_region):
6227         remove bogus lines setting zmacs_region_stays to 0.
6228         
6229 2001-04-15  Gunnar Evermann  <ge204@eng.cam.ac.uk>
6230
6231         * process-unix.c (unix_open_network_stream): If connect() fails
6232         invalidate file descriptor after closing it.
6233
6234 2001-03-08  Mike Alexander  <mta@arbortext.com>
6235
6236         * event-msw.c (mswindows_need_event_in_modal_loop):
6237         Don't dispatch a message if we didn't get one.
6238         (mswindows_need_event):
6239         Terminate the correct process when one exits instead of the first
6240         one on Vprocess_list and look for process termination when in
6241         mswindows_protect_modal_loop.
6242
6243 2001-04-19  Stephen J. Turnbull  <stephen@xemacs.org>
6244
6245         * XEmacs 21.4.1 "Copyleft" is released.
6246
6247 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
6248
6249         * input-method-motif.c (XIM_delete_frame): New callback.
6250         (XIM_init_frame): Register it.
6251
6252 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
6253
6254         * XEmacs 21.4.0 "Solid Vapor" is released.
6255
6256 2001-04-15  Ben Wing  <ben@xemacs.org>
6257
6258         * cmdloop.c (call_command_loop):
6259         Fix braino in bit-rotting code.
6260         
6261 2001-04-07  Hrvoje Niksic  <hniksic@arsdigita.com>
6262
6263         * extents.c (Fset_extent_endpoints): Force creation of extent info
6264         in buffer_or_string.
6265
6266         * extents.c (process_extents_for_insertion_mapper): Correctly
6267         check for open-open zero-length extents.
6268
6269 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
6270
6271         * lisp.h: New typedefs Memory_count, Element_count.
6272         * regex.c:
6273         * regex.h:
6274         Sign-compare warning elimination: several unsigned -> signed.
6275         Based on work by Ben Wing <ben@xemacs.org>.
6276
6277 2001-04-14  Stephen J. Turnbull  <stephen@xemacs.org>
6278
6279         * XEmacs 21.2.47 "Zephir" is released.
6280
6281 2001-04-02  Jan Vroonhof  <jan@xemacs.org>
6282
6283         * redisplay.c (add_bufbyte_string_runes): Update data->bytepos
6284
6285 2001-04-03  Mike Sperber <mike@xemacs.org>
6286
6287         * search.c: Revert previous patch due because of release.
6288
6289 2001-03-30  Ben Wing  <ben@xemacs.org>
6290
6291         * s\cygwin32.h:
6292         Add missing killpg prototype.
6293
6294         * elhash.c:
6295         Add a comment about fixing problems when a new entry is added
6296         while mapping.
6297
6298         * frame-msw.c (mswindows_init_frame_1):
6299         Fix compile warnings.
6300
6301         * menubar.c (vars_of_menubar):
6302         Provide `menu-accelerator-support' to indicate that we properly
6303         support %_ in menu specifications, so that package code can
6304         conditionalize on this (and remove %_ from menu specifications
6305         on older versions).
6306
6307         * event-msw.c:
6308         * scrollbar-msw.c:
6309         * scrollbar-msw.c (can_scroll):
6310         * scrollbar-msw.h:
6311         Fix handling of mouse wheel under Windows to follow standards --
6312         now scrolls window under pointer, not selected window.
6313
6314 2001-03-31  Mike Sperber <mike@xemacs.org>
6315
6316         * search.c (Freplace_match): Support FSF-style specification of
6317         match subexpression when applied to a buffer.
6318
6319 2001-03-15  Martin Buchholz  <martin@xemacs.org>
6320
6321         * keymap.c (Fmap_keymap): map-keymap explicitly allows a mapping
6322         function to modify KEYMAP, so map over a copy of the hash table.
6323
6324 2001-03-21  Martin Buchholz <martin@xemacs.org>
6325
6326         * XEmacs 21.2.46 "Urania" is released.
6327
6328 2001-03-20  Dan Holmsand  <dan@eyebee.com>
6329
6330         * realpath.c (xrealpath): Make file-truename work with symlinks to
6331         /cygdrive paths on cygwin. Always lowercase drive-letters on
6332         native windows.
6333         (cygwin_readlink): Don't try to find canonical filename unless
6334         file exists.
6335
6336 2001-03-15  Stephen J. Turnbull  <stephen@xemacs.org>
6337
6338         * ChangeLog: Log GTK merge.
6339
6340         * dumper.c:
6341         * select-x.c:
6342         * specifier.c:
6343         * symeval.h:
6344         Revert gratuitous whitespace changes from GTK merge.
6345
6346         * emacs.c: Document end of complex #ifdef @ l. 1495.
6347
6348
6349 2001-03-12  Andy Piper  <andy@xemacs.org>
6350
6351         * mingw32.h: unfortunately cygnus changed mingw32 -> mingw so we
6352         have to do likewise.
6353
6354 2001-03-12  Andy Piper  <andy@xemacs.org>
6355
6356         * sysdep.c: we only support mingw now.
6357
6358 2001-03-09  Andy Piper  <andy@xemacs.org>
6359
6360         * unexcw.c (copy_executable_and_dump_data_section): making approx
6361         overrun a warning only.
6362
6363 2001-03-10  William M. Perry  <wmperry@aventail.com>
6364
6365         * faces.c (complex_vars_of_faces): Rewrote the font mucking to
6366         satisfy Stephen's identical-after-cpp plea.
6367
6368 2001-03-02  Ben Wing  <ben@xemacs.org>
6369
6370         * cmds.c:
6371         * cmds.c (Fforward_char):
6372         * syntax.c:
6373         * window.c:
6374
6375         Augment documentation of the most common motion commands to make
6376         note of the shifted-motion support.
6377         
6378 2001-03-02  Ben Wing  <ben@xemacs.org>
6379
6380         * nt.c (mswindows_fstat):
6381         * nt.c (mswindows_stat):
6382         * search.c (boyer_moore):
6383         Fix compile warnings under Windows.
6384         
6385         * sysdep.c (sys_readdir):
6386         Fix buggy filename-conversion code under Mule.
6387
6388 2001-03-09  William M. Perry  <wmperry@aventail.com>
6389
6390         * Makefile.in.in:
6391         * config.h.in:
6392         * console.c:
6393         * console.h:
6394         * device.c:
6395         * device.h:
6396         * dragdrop.c:
6397         * emacs.c:
6398         * event-stream.c:
6399         * events.c:
6400         * events.h:
6401         * faces.c:
6402         * frame.h:
6403         * general-slots.h:
6404         * glyphs.c:
6405         * gutter.c:
6406         * inline.c:
6407         * lisp.h:
6408         * lrecord.h:
6409         * make-src-depend:
6410         * redisplay-output.c:
6411         * redisplay.c:
6412         * symsinit.h:
6413         * sysfile.h:
6414         * toolbar.c:
6415         * window.c:
6416         The Great GTK Merge.
6417
6418         * ChangeLog.GTK:
6419         * console-gtk.c:
6420         * console-gtk.h:
6421         * device-gtk.c:
6422         * emacs-marshals.c:
6423         * emacs-widget-accessors.c:
6424         * event-gtk.c:
6425         * frame-gtk.c:
6426         * gccache-gtk.c:
6427         * gccache-gtk.h:
6428         * glade.c:
6429         * glyphs-gtk.c:
6430         * glyphs-gtk.h:
6431         * gtk-glue.c:
6432         * gtk-xemacs.c:
6433         * gtk-xemacs.h:
6434         * gui-gtk.c:
6435         * gui-gtk.h:
6436         * menubar-gtk.c:
6437         * native-gtk-toolbar.c:
6438         * objects-gtk.c:
6439         * objects-gtk.h:
6440         * redisplay-gtk.c:
6441         * scrollbar-gtk.c:
6442         * scrollbar-gtk.h:
6443         * select-gtk.c:
6444         * toolbar-gtk.c:
6445         * ui-byhand.c:
6446         * ui-gtk.c:
6447         * ui-gtk.h:
6448         The Great GTK Merge: new files.
6449
6450 2001-02-26  Ben Wing  <ben@xemacs.org>
6451
6452         Reapplied Lstream change.
6453
6454 2001-02-26  Ben Wing  <ben@xemacs.org>
6455
6456         Undid the last change, since it is more controversial than I
6457         thought.  It should be back in at some point soon.
6458         
6459 2001-02-25  Ben Wing  <ben@xemacs.org>
6460
6461         * buffer.c:
6462         * callproc.c (Fold_call_process_internal):
6463         * event-msw.c (ntpipe_slurp_reader):
6464         * event-msw.c (ntpipe_shove_writer):
6465         * event-msw.c (winsock_reader):
6466         * event-msw.c (winsock_writer):
6467         * file-coding.c:
6468         * file-coding.c (detect_eol_type):
6469         * file-coding.c (detect_coding_type):
6470         * file-coding.c (determine_real_coding_system):
6471         * file-coding.c (Fdetect_coding_region):
6472         * file-coding.c (decoding_reader):
6473         * file-coding.c (decoding_writer):
6474         * file-coding.c (mule_decode):
6475         * file-coding.c (Fdecode_coding_region):
6476         * file-coding.c (encoding_reader):
6477         * file-coding.c (encoding_writer):
6478         * file-coding.c (mule_encode):
6479         * file-coding.c (Fencode_coding_region):
6480         * file-coding.c (detect_coding_sjis):
6481         * file-coding.c (decode_coding_sjis):
6482         * file-coding.c (encode_coding_sjis):
6483         * file-coding.c (detect_coding_big5):
6484         * file-coding.c (decode_coding_big5):
6485         * file-coding.c (encode_coding_big5):
6486         * file-coding.c (detect_coding_ucs4):
6487         * file-coding.c (decode_coding_ucs4):
6488         * file-coding.c (encode_coding_ucs4):
6489         * file-coding.c (detect_coding_utf8):
6490         * file-coding.c (decode_coding_utf8):
6491         * file-coding.c (encode_coding_utf8):
6492         * file-coding.c (detect_coding_iso2022):
6493         * file-coding.c (decode_coding_iso2022):
6494         * file-coding.c (encode_coding_iso2022):
6495         * file-coding.c (decode_coding_no_conversion):
6496         * file-coding.c (encode_coding_no_conversion):
6497         * glyphs-x.c (write_lisp_string_to_temp_file):
6498         * gpmevent.c (tty_get_foreign_selection):
6499         * lisp.h:
6500         * lstream.c:
6501         * lstream.c (Lstream_flush_out):
6502         * lstream.c (Lstream_adding):
6503         * lstream.c (Lstream_write_1):
6504         * lstream.c (Lstream_write):
6505         * lstream.c (Lstream_raw_read):
6506         * lstream.c (Lstream_read_more):
6507         * lstream.c (Lstream_read):
6508         * lstream.c (Lstream_unread):
6509         * lstream.c (Lstream_fputc):
6510         * lstream.c (stdio_reader):
6511         * lstream.c (stdio_writer):
6512         * lstream.c (filedesc_reader):
6513         * lstream.c (filedesc_writer):
6514         * lstream.c (lisp_string_reader):
6515         * lstream.c (struct fixed_buffer_stream):
6516         * lstream.c (make_fixed_buffer_input_stream):
6517         * lstream.c (make_fixed_buffer_output_stream):
6518         * lstream.c (fixed_buffer_reader):
6519         * lstream.c (fixed_buffer_writer):
6520         * lstream.c (struct resizing_buffer_stream):
6521         * lstream.c (resizing_buffer_writer):
6522         * lstream.c (dynarr_writer):
6523         * lstream.c (lisp_buffer_reader):
6524         * lstream.c (lisp_buffer_writer):
6525         * lstream.h:
6526         * lstream.h (lstream_implementation):
6527         * lstream.h (struct lstream):
6528         * md5.c (Fmd5):
6529         * process-nt.c (nt_send_process):
6530         * process-unix.c (unix_send_process):
6531         
6532         Correct Lstream lossage due to mixing of signed and unsigned
6533         quantities.  All Lstream uses of size_t and ssize_t are now a
6534         single signed data type Lstream_data_count.  This fixes problems
6535         under Windows with sending large quantities of data to a process,
6536         and may well fix other subtle bugs.
6537
6538 2001-02-23  Martin Buchholz <martin@xemacs.org>
6539
6540         * XEmacs 21.2.45 "Thelxepeia" is released.
6541
6542 2001-02-21  Martin Buchholz  <martin@xemacs.org>
6543
6544         * lisp-union.h (XSETINT): 
6545         (XSETCHAR):
6546         (XSETOBJ): 
6547         Reverse previous change of 2001-02-06.
6548
6549 2001-02-20  Matt Tucker  <tuck@whistlingfish.net>
6550
6551         Fix `VALID_BYTIND_P' crashes in regex.c when using narrowed
6552         buffers.
6553         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
6554         * syntax.h (SYNTAX_CACHE_OBJECT_BYTE_TO_CHAR):
6555         Add `BI_BUF_BEGV' to bytepos before calculating bufpos.
6556         * regex.c (POS_AS_IN_BUFFER): removed
6557         * regex.c (re_search_2):
6558         * regex.c (re_match_2):
6559         Don't use an offset of 1 when calculating buffer positions, since
6560         `BI_BUF_BEGV' does it already.
6561
6562 2001-02-18  Wim Dumon  <wim@easics.be>
6563
6564         * insdel.c (prepare_to_modify_buffer): Also check for
6565         supersession when clash-detection is enabled. 
6566
6567 2001-02-17  Matt Tucker  <tuck@whistlingfish.net>
6568
6569         * regex.c (re_match_2_internal):
6570         Convert temp characters from 'const unsigned char' to 're_char'.
6571         Fix crashing bug with extended characters under mule.
6572         * syntax.c (Qsyntax_table): Moved from vars_of_syntax to
6573         syms_of_syntax. Use defsymbol to define. Fixes hanging bug with
6574         font-lock, pdump, and new syntax-table code.
6575         * syntax.c (find_start_of_comment):
6576         (find_end_of_comment):
6577         (forward-comment):
6578         Fix crashing bugs involving moving beyond end of buffer.
6579         * syntax.c (find_start_of_comment):
6580         Fixed logic to allow proper detection of cases where the same
6581         character is used to end both a two-char comment start and a
6582         two-char comment end sequence. Fixes `(forward-comment -1)'.
6583         * syntax.c (find_start_of_comment):
6584         Return position just past last comment-end character for all cases
6585         (previously was only done for two-char comment-end sequences).
6586         * syntax.c (forward-comment):
6587         Take value returned from `find_end_of_comment', rather than
6588         incrementing it.
6589         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
6590         Properly deal with BUFFERP (syntax_cache.object)
6591
6592 2001-02-17  Martin Buchholz  <martin@xemacs.org>
6593
6594         * alloc.c (Fgarbage_collect): 
6595         * alloc.c (make_bit_vector_from_byte_vector):
6596         -Wsign-compare-correctness.
6597
6598 2001-02-16  Martin Buchholz  <martin@xemacs.org>
6599
6600         * lisp-union.h (XSETINT): Eliminate unnecessary temp var.
6601         (XSETCHAR): Likewise.
6602         (XSETOBJ): Likewise.
6603
6604 2001-02-15  Martin Buchholz  <martin@xemacs.org>
6605
6606         * mule-canna.c (canna-func-delete_previous): 
6607         Rename to canna-func-delete-previous.
6608
6609 2001-02-14  Martin Buchholz  <martin@xemacs.org>
6610
6611         * mule-ccl.c (ccl_driver): Warning suppression.  Use countof.
6612
6613 2001-02-13  Matt Tucker  <tuck@whistlingfish.net>
6614
6615         * font-lock.c (find_context): Fix C++ compile errors introduced by
6616         recent patch
6617
6618 2001-02-13  Martin Buchholz  <martin@xemacs.org>
6619
6620         * s/aix4.h: Later versions of IBM C compiler need a bug workaround
6621         pragma, but earlier ones barf on the same pragma.
6622
6623 2001-02-06  Mike Sperber <mike@xemacs.org>
6624
6625         * emacs.c (complex_vars_of_emacs): Add `mule-lisp-directory' and
6626         `configure-mule-lisp-directory'.
6627
6628 2001-02-12  Martin Buchholz  <martin@xemacs.org>
6629
6630         Make sure dump-id.c is compiled in the same way as other .c's.
6631         Fixes pdump compilation failure with HP's cc, which defaults to K&R.
6632         * dump-id.h: Remove.
6633         * emacs.c: Move dump-id.h into dumper.h.
6634         * dumper.h: Move dump-id.h into dumper.h.
6635         * Makefile.in.in:
6636         Use standard .c.o rule for building dump-id.o.
6637         Remove preprocessor flags from link command.
6638         Add dump-id.o to ${otherobjs} if PDUMP.
6639
6640 2001-02-07  Matt Tucker  <tuck@whistlingfish.net>
6641
6642         Port FSF 20.7 syntax table improvements.
6643         * syntax.c.
6644         * syntax.h.
6645
6646         Fixups for new syntax table stuff.
6647         * dired.c: Include syntax.c.
6648         (Fdirectory_files): Initialize regex_match_object and
6649         regex_emacs_buffer.
6650         * extents.h: EXFUN Fnext_extent_change, Fprevious_extent_change,
6651         and Fget_char_property.
6652
6653         Use ported FSF 20.7 syntax table improvements.
6654         * font-lock.c.
6655         * regex.c.
6656         * search.c.
6657         
6658 2001-02-09  Martin Buchholz  <martin@xemacs.org>
6659
6660         * regex.c (Boolean): Renamed to `re_bool', to avoid conflict with
6661         Unixware's enum boolean from sys/types.h.
6662
6663 2001-02-10  Martin Buchholz  <martin@xemacs.org>
6664
6665         Fix support for building with latest Purify.
6666         * Makefile.in.in (PURIFY_LIBS): Remove thread flags.
6667         (PURIFY_FLAGS): Likewise.
6668
6669 2001-02-09  Martin Buchholz  <martin@xemacs.org>
6670
6671         * fileio.c (lisp_string_set_file_times): New.
6672         * fileio.c (Fcopy_file): Use it.
6673         Fixes bug:
6674         (copy-file filename non-ascii-filename t t)
6675         ==> No such file or directory, non-ascii-filename
6676
6677 2001-02-10  Martin Buchholz  <martin@xemacs.org>
6678
6679         * glyphs-x.c (generate_cursor_fg_bg): Avoid a warning.
6680         USHRT_MAX seems clearer than ~0 anyways.
6681
6682 2001-02-09  Martin Buchholz  <martin@xemacs.org>
6683
6684         dumper improvements.  Inspired by Olivier.
6685         * dumper.c (pdump_max_align): New.
6686         * dumper.c (pdump_add_entry): Use pdump_max_align.
6687         * dumper.c (pdump_get_entry_list): Likewise.
6688         * dumper.c (pdump_scan_by_alignment): Likewise.
6689         Don't iterate through unnecessary alignments.
6690         * dumper.c (pdump_file_get): No need to align result of malloc().
6691         * dumper.c (pdump_mallocadr): Remove.  
6692         The result of malloc() is guaranteed to be maximally aligned.
6693         * dumper.c: s/elmt/elt/g;
6694         * dumper.c (pdump_object_table): Allocate dynamically, not statically.
6695         * dumper.c (pdump_alert_undump_object): Likewise.
6696         * dumper.c (pdump_align_table): 
6697         Don't support alignments > 64.
6698         Store ALIGNOF's, not shift counts, in table.
6699
6700 2001-02-09  Martin Buchholz  <martin@xemacs.org>
6701
6702         * s/mingw32.h (HAVE_STRUCT_UTIMBUF): Remove.
6703         * s/windowsnt.h (HAVE_STRUCT_UTIMBUF): Remove.
6704         * systime.h: Use HAVE_UTIME.
6705         * sysdep.c (struct utimbuf): Remove.
6706         * sysdep.c (set_file_times): Prefer utime() to utimes().
6707         * config.h.in (HAVE_UTIME): New.
6708         * config.h.in (HAVE_UTIME_H): Remove.
6709         * config.h.in (HAVE_STRUCT_UTIMBUF): Remove.
6710
6711 2001-02-09  Martin Buchholz  <martin@xemacs.org>
6712
6713         * s/aix4.h: Hide #pragmas inside #ifndef NOT_C_CODE.
6714
6715 2001-02-08  Martin Buchholz  <martin@xemacs.org>
6716
6717         * s/irix6-0.h: Use the standard system memmove, not bcopy.
6718
6719 2001-02-08  Martin Buchholz <martin@xemacs.org>
6720
6721         * XEmacs 21.2.44 "Thalia" is released.
6722
6723 2001-02-06  Martin Buchholz  <martin@xemacs.org>
6724
6725         Fixes crashes in kill-emacs on some systems.
6726         * process-unix.c (unix_kill_child_process):
6727         It's OK for kill() to fail with ESRCH.
6728
6729 2001-02-07  Martin Buchholz  <martin@xemacs.org>
6730
6731         Contortions to make .gdbinit tricks work on most systems.
6732         * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
6733         * alloc.c (dbg_valmask): Make non-const.
6734         * alloc.c (dbg_typemask): Make non-const.
6735         * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
6736         * alloc.c (dbg_valbits): Make non-const.
6737         * alloc.c (dbg_gctypebits): Make non-const.
6738         * .gdbinit (decode_object): Make it work with AIX cc.
6739
6740 2001-02-06  Martin Buchholz  <martin@xemacs.org>
6741
6742         * elhash.c (make_general_lisp_hash_table):
6743         Use simpler and more efficient calloc to clear entries.
6744
6745 2001-02-07  Martin Buchholz  <martin@xemacs.org>
6746
6747         * window.c (window_scroll): Work around an AIX C compiler bug.
6748         Fixes 'scroll-up' does nothing problem with xlC.
6749
6750 2001-02-05  Martin Buchholz  <martin@xemacs.org>
6751
6752         * .gdbinit: Remove obsolete comment.
6753
6754 2001-01-31  Mike Alexander  <mta@arbortext.com>
6755
6756         * select.c (Fown_selection_internal): Set owned_p for device
6757         method correctly.
6758
6759 2001-02-01  Martin Buchholz  <martin@xemacs.org>
6760
6761         Port to g++ 2.97.
6762         "not" cannot be used as a macro name as it is an operator in C++
6763         * config.h.in: Stop #defining `not'.
6764         * chartab.c (check_category_char): not ==> not_p
6765         * chartab.h: Likewise.
6766         * regex.c (re_match_2_internal): Likewise.
6767
6768 2001-02-02  Martin Buchholz  <martin@xemacs.org>
6769
6770         * lisp-disunion.h: Fix up comments.
6771
6772 2001-01-31  Martin Buchholz  <martin@xemacs.org>
6773
6774         * keymap.c (define_key_check_and_coerce_keysym):
6775         (syms_of_keymap):
6776         Support mouse-6 and mouse-7 bindings in the obvious way.
6777
6778 2001-02-01  Martin Buchholz  <martin@xemacs.org>
6779
6780         * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
6781
6782 2001-01-30  Martin Buchholz  <martin@xemacs.org>
6783
6784         Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
6785         Previous patch missed DEFVAR_INT_MAGIC.
6786         Make sure future DEFVAR_foo use correct types.
6787         * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
6788         * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
6789         * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
6790         * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
6791         * (DEFVAR_INT): Likewise.
6792         * redisplay.c (vertical_clip): Should be of type Fixnum.
6793         * redisplay.c (horizontal_clip): Likewise.
6794         * lisp.h (dump_add_opaque_int): New.
6795         (dump_add_opaque_fixnum): New.
6796
6797 2001-01-29  Andy Piper  <andy@xemacs.org>
6798
6799         * glyphs-widget.c (check_valid_int_or_function): allow symbols
6800         since they can be eval'ed
6801
6802 2001-01-29  Martin Buchholz  <martin@xemacs.org>
6803
6804         * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
6805         Oops, XEmacs redefines `class'.  Use `typename' instead.
6806
6807 2001-01-28  Martin Buchholz  <martin@xemacs.org>
6808
6809         * dumper.c: Fix C++ compile errors.
6810
6811 2001-01-29  Martin Buchholz  <martin@xemacs.org>
6812
6813         * tparam.c: Use correct prototypes.
6814
6815 2001-01-28  Martin Buchholz  <martin@xemacs.org>
6816
6817         * sysproc.h: #include util.h for NetBSD's openpty.
6818
6819 2001-01-27  Martin Buchholz  <martin@xemacs.org>
6820
6821         More 64-bit correctness.
6822         The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
6823         Use a typedef `fixnum' for the type used for DEFVAR_INT.
6824         Fix up comments.
6825         This finally finishes the 64-bit SGI port.
6826         Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
6827         * symbols.c: Fix up comments and type casts.
6828         * symbols.c (do_symval_forwarding): s/int/Fixnum/g
6829         * symbols.c (store_symval_forwarding): s/int/Fixnum/g
6830         * symeval.h (Fixnum): New type.
6831         * symeval.h (symbol_value_type): Fix up comment.
6832
6833         * commands.h:
6834         * nt.c:
6835         * emacs.c:
6836         * data.c:
6837         * redisplay.c:
6838         * abbrev.c:
6839         * dired-msw.c:
6840         * event-Xt.c:
6841         * eldap.c:
6842         * window.c:
6843         * sound.c:
6844         * event-stream.c:
6845         * eval.c:
6846         * buffer.c:
6847         * mule-canna.c: A million DEFVAR_INTs here...
6848         * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
6849         * extents.c:
6850         * cmdloop.c:
6851         * lisp.h:
6852         * select-x.c:
6853         * console-x.h:
6854         * event-msw.c:
6855         * mule-wnnfns.c:
6856         * hpplay.c:
6857         * ralloc.c:
6858         * alloc.c:
6859         * keymap.c:
6860         * profile.c:
6861         s/int/Fixnum/g in DEFVAR_INT declarations.
6862
6863 2001-01-26  Martin Buchholz  <martin@xemacs.org>
6864
6865         Port pdump to SGI alignment-sensitive environment.
6866         Lisp Object sizeof methods now return aligned sizes.  Rely on that.
6867         Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
6868         properly aligned.
6869         Define and use aligned reading and writing macros.
6870         Use buffered stdio instead of posix i/o for faster dumping.
6871         Eliminate kludgy 256 byte space for header.
6872         Read and write from dump file using structs for alignment safety.
6873         * dumper.c (pdump_align_stream): New.
6874         * dumper.c (PDUMP_ALIGN_OUTPUT): New.
6875         * dumper.c (PDUMP_READ_ALIGNED): New.
6876         * dumper.c (PDUMP_WRITE_ALIGNED): New.
6877         * dumper.c (pdump_static_Lisp_Object): New struct.
6878         * dumper.c (pdump_static_pointer): New struct.
6879         * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
6880         * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
6881         * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
6882         * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
6883
6884         * dumper.c (pdump_backtrace):
6885         * dumper.c (pdump_get_indirect_count):
6886         * dumper.c (pdump_register_object):
6887         * dumper.c (pdump_register_struct):
6888         * dumper.c (pdump_reloc_one):
6889         * dumper.c (pdump_scan_by_alignment):
6890         * dumper.c (pdump_dump_from_root_struct_ptrs):
6891         * dumper.c (pdump_dump_opaques):
6892         * dumper.c (pdump_dump_rtables):
6893         * dumper.c (pdump_dump_from_root_objects):
6894         * dumper.c (pdump):
6895         * dumper.c (pdump_load_finish):
6896         Use aligned reading and writing.
6897
6898         * dumper.c (pdump_free): Make static.
6899         * dumper.c (pdump_hFile): Likewise.
6900         * dumper.c (pdump_hMap): Likewise.
6901
6902 2001-01-26  Martin Buchholz <martin@xemacs.org>
6903
6904         * XEmacs 21.2.43 "Terspichore" is released.
6905
6906 2001-01-25  Martin Buchholz  <martin@xemacs.org>
6907
6908         Type fiddling for window_config.saved_windows_count
6909         * window.c (struct window_config): 
6910         Make saved_windows_count member unsigned.
6911         * window.c (sizeof_window_config_for_n_windows): 
6912         Make parameter unsigned.
6913         * window.c (mark_window_config):
6914         * window.c (window_config_equal):
6915         * window.c (free_window_configuration):
6916         * window.c (Fset_window_configuration):
6917         * window.c (count_windows):
6918         * window.c (Fcurrent_window_configuration):
6919         * window.c (reinit_vars_of_window):
6920         Update all callers and users.
6921
6922 2001-01-25  Martin Buchholz  <martin@xemacs.org>
6923
6924         Alignment correctness for flexible arrays.
6925         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
6926         Make alignment-correct. Add interesting comments.
6927         * alloc.c (size_vector):
6928         * alloc.c (make_vector_internal):
6929         * alloc.c (make_bit_vector_internal):
6930         * alloc.c (sweep_bit_vectors_1):
6931         * fns.c (size_bit_vector):
6932         Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
6933         * window.c (sizeof_window_config_for_n_windows): 
6934         Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
6935
6936 2001-01-24  Martin Buchholz  <martin@xemacs.org>
6937
6938         * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
6939
6940 2001-01-23  Andy Piper  <andy@xemacs.org>
6941
6942         * select.c (Fown_selection_internal): pass owned_p
6943
6944         * select-msw.c (mswindows_own_selection): New Signature.
6945
6946         * console.h (struct console_methods): add owned_p to
6947         _own_selection.
6948
6949         * select-x.c (x_own_selection): pass owned_p
6950         (hack_motif_clipboard_selection): use owned_p
6951         (vars_of_select_x): new variable -
6952         x_selection_strict_motif_ownership.
6953
6954 2001-01-23  Martin Buchholz  <martin@xemacs.org>
6955
6956         * specifier.h (specifier_data_offset): Remove pointless parens.
6957         * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
6958
6959 2001-01-24  Martin Buchholz  <martin@xemacs.org>
6960
6961         Make Lisp_Object sizeof methods be alignment-correct.
6962         pdump must restore objects to the same alignment as the C compiler
6963         assumes.  It really matters on SGIs.
6964         * lstream.c (aligned_sizeof_lstream): New.
6965         (sizeof_lstream): Use aligned_sizeof_lstream.
6966         (Lstream_new): Likewise.
6967         * opaque.c (aligned_sizeof_opaque): New.
6968         (sizeof_opaque): Use aligned_sizeof_opaque.
6969         (make_opaque): Likewise.
6970         * specifier.c (aligned_sizeof_specifier): New.
6971         (sizeof_specifier): Use aligned_sizeof_specifier.
6972         (make_specifier_internal): Likewise.
6973
6974 2001-01-23  Martin Buchholz  <martin@xemacs.org>
6975
6976         * lstream.h (struct lstream): Use max_align_t for trailing data.
6977         * specifier.h (struct Lisp_Specifier): Likewise.
6978
6979 2001-01-22  Martin Buchholz  <martin@xemacs.org>
6980
6981         * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
6982         (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
6983         (CCL_SUSPEND): Likewise.
6984         (CCL_INVALID_CMD): Likewise.
6985         (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
6986         (ccl_driver): Likewise.
6987         (CCL_WRITE_CHAR): Macro hygiene.
6988         (CCL_WRITE_STRING): Macro hygiene.
6989
6990 2001-01-22  Martin Buchholz  <martin@xemacs.org>
6991
6992         Port "portable" dumper to SunOS 4 and HP-UX.
6993         * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
6994         * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
6995         * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
6996
6997 2001-01-22  Martin Buchholz  <martin@xemacs.org>
6998
6999         * lisp.h (ALIGNOF): A better definition for C++.
7000
7001 2001-01-20  Martin Buchholz  <martin@xemacs.org>
7002
7003         Macro hygiene.
7004         Fix printf warnings: int format, long int arg.
7005         * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
7006         (PUSH_FAILURE_POINT): Use correct printf formats.
7007         (POP_FAILURE_POINT): Use correct printf formats.  
7008         Use do {...} while (0)
7009
7010 2001-01-20  Martin Buchholz <martin@xemacs.org>
7011
7012         * XEmacs 21.2.42 "Poseidon" is released.
7013
7014 2001-01-20  Martin Buchholz  <martin@xemacs.org>
7015
7016         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
7017
7018 2001-01-19  Martin Buchholz  <martin@xemacs.org>
7019
7020         De-kludgify FIXED_TYPE free list frobbing.
7021         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
7022         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
7023         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
7024         * alloc.c (Lisp_Free): New pseudo lisp object definition.
7025         * alloc.c (LRECORD_FREE_P): New.
7026         * alloc.c (MARK_LRECORD_AS_FREE): New.
7027         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
7028         * alloc.c (STRUCT_FREE_P): Deleted.
7029         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
7030         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
7031         * alloc.c (STRING_CHARS_FREE_P): New.
7032         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
7033         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
7034         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
7035         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
7036         * alloc.c (resize_string): Use new definitions.
7037         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
7038         * alloc.c (verify_string_chars_integrity): Use new definitions.
7039         * alloc.c (compact_string_chars): Use new definitions.
7040         * alloc.c: Update monster comments.
7041         * lrecord.h (lrecord_type): Add some new lrecord types for
7042         alloc.c's use.
7043
7044 2001-01-18  Martin Buchholz  <martin@xemacs.org>
7045
7046         Improve alignment hackery.
7047         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
7048         (max_align_t): Moved from opaque.h - general purpose.
7049         (ALIGN_PTR): Use size_t, not long.
7050         * opaque.h (max_align_t): Move to lisp.h.
7051
7052 2001-01-18  Norbert Koch  <nk@LF.net>
7053
7054         * gui.h: Fix and add prototypes to fix build problems.
7055
7056 2001-01-18  Martin Buchholz  <martin@xemacs.org>
7057
7058         temacs is going away, so `dump-temacs' is now a bad name.
7059         * .dbxrc (dump-temacs): Rename to `dmp'.
7060         * .gdbinit (dump-temacs): Rename to `dmp'.
7061
7062 2001-01-17  Andy Piper  <andy@xemacs.org>
7063
7064         * glyphs.c (print_image_instance): comment to make martin happy.
7065
7066         * glyphs-x.c (x_redisplay_widget): update faces after a frame
7067         change.
7068
7069         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
7070         activation.
7071         (mswindows_tab_control_redisplay): warning suppression.
7072
7073         * glyphs-widget.c (widget_update): re-write to cope with updated
7074         items.
7075         (widget_instantiate): use new gui_item functions.
7076         (tab_control_update): deleted.
7077         (progress_gauge_update): deleted.
7078         (image_instantiator_progress_guage): take out update reference.
7079         (image_instantiator_tree_view): ditto.
7080         (image_instantiator_tab_control): ditto.
7081
7082         * gui.c (widget_gui_parse_item_keywords): new function. Do things
7083         Right the new way.
7084         (gui_item_add_keyval_pair): re-write to cope with descriptors and
7085         return whether anything was changed.
7086         (update_gui_item_keywords): as it sounds.
7087
7088         * gui.h: declare widget_gui_parse_item_keywords.
7089
7090         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
7091         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
7092
7093 2001-01-17  Martin Buchholz <martin@xemacs.org>
7094
7095         * XEmacs 21.2.41 "Polyhymnia" is released.
7096
7097 2001-01-16  Didier Verna  <didier@xemacs.org>
7098
7099         * glyphs.c (image_instantiate): don't use fallbacks when
7100         instantiating a face's background pixmap by inheritance.
7101
7102 2001-01-14  Mike Sperber <mike@xemacs.org>
7103
7104         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
7105         Conditionalize accordingly.
7106
7107 2001-01-16  Martin Buchholz  <martin@xemacs.org>
7108
7109         * dumper.c (pdump_file_get): Fix a compiler warning.
7110
7111 2001-01-15  Martin Buchholz  <martin@xemacs.org>
7112
7113         Make Purify happy when pdumping.
7114         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
7115         iniitalizing all bits of new lisp object memory.
7116         * symbols.c (Fmake_local_variable): Likewise.
7117         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
7118         * symbols.c (Fdefvaralias): Likewise.
7119         * mule-charset.c (vars_of_mule_charset): Likewise.
7120
7121 2001-01-15  Martin Buchholz  <martin@xemacs.org>
7122         Add the `-nd' flag when running pre-dump operations under the debugger.
7123         * .dbxrc (run-temacs): Add `-nd'.
7124         * .dbxrc (update-elc): Likewise.
7125         * .dbxrc (dump-temacs): Likewise.
7126         * .gdbinit (run-temacs): Likewise.
7127         * .gdbinit (check-temacs): Likewise.
7128         * .gdbinit (update-elc): Likewise.
7129         * .gdbinit (dump-temacs): Likewise.
7130
7131 2001-01-14  Martin Buchholz  <martin@xemacs.org>
7132
7133         Allow building 64-bit executables on AIX with GNU malloc, e.g.
7134         export OBJECT_MODE=64
7135         configure --pdump --use-union-type=no
7136         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
7137         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
7138
7139         * miscplay.c (sndcnv8U_2mono):
7140         Avoid two uses of `++' in the same expression.
7141         Suppresses a GCC warning.
7142
7143 2001-01-13  Martin Buchholz  <martin@xemacs.org>
7144
7145         Make sure future compilers don't miscompile alloc.c.
7146         * alloc.c:
7147         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
7148         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
7149
7150 2001-01-12  Martin Buchholz  <martin@xemacs.org>
7151
7152         * dumper.c: A little post-pdump-rename comment fixup.
7153
7154 2001-01-09  Jerry James  <james@eecs.ku.edu>
7155
7156         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
7157
7158 2001-01-13  Martin Buchholz  <martin@xemacs.org>
7159
7160         * *.[ch]: Globally rename symbols using the following `pdump-rename'
7161         script:
7162         #!/bin/sh
7163         replace_symbol () {
7164           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
7165         }
7166
7167         replace_symbol pdump_wire_lists pdump_weak_object_chains
7168         replace_symbol pdump_wire_list dump_add_weak_object_chain
7169
7170         replace_symbol pdump_wires pdump_root_objects
7171         replace_symbol pdump_wire dump_add_root_object
7172
7173         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
7174         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
7175
7176         replace_symbol dumpstructinfos pdump_root_struct_ptrs
7177         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
7178         replace_symbol dumpstructinfo pdump_root_struct_ptr
7179         replace_symbol dumpstruct dump_add_root_struct_ptr
7180
7181         replace_symbol dumpopaque dump_add_opaque
7182         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
7183         replace_symbol dumpopaqueinfos pdump_opaques
7184         replace_symbol dumpopaqueinfo pdump_opaque
7185
7186         replace_symbol nb_structdump nb_root_struct_ptrs
7187         replace_symbol nb_opaquedump nb_opaques
7188
7189         replace_symbol align_table pdump_align_table
7190         replace_symbol dump_header pdump_header
7191
7192         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
7193         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
7194
7195
7196 2001-01-12  Martin Buchholz  <martin@xemacs.org>
7197
7198         * s/aix4.h: Keep the C for AIX compiler from overaggressively
7199         optimizing bytecount_to_charcount().
7200
7201 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
7202
7203         * config.h.in:
7204         (HAVE_DLFCN_H): Removed.
7205         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
7206
7207 2001-01-06  Martin Buchholz  <martin@xemacs.org>
7208
7209         Portable dumper maintainability improvements.
7210         * alloc.c (staticpro):
7211         * alloc.c (staticpro_nodump):
7212         * alloc.c (garbage_collect_1):
7213         * alloc.c (reinit_alloc_once_early):
7214         * alloc.c (init_alloc_once_early):
7215         * alloc.c: Move dumper functions to alloc.c.
7216         * dumper.c (pdump_backtrace):
7217         * dumper.c (pdump_dump_structs):
7218         * dumper.c (pdump_dump_opaques):
7219         * dumper.c (pdump_dump_rtables):
7220         * dumper.c (pdump_dump_wired):
7221         * dumper.c (pdump):
7222         * dumper.c (pdump_load_check):
7223         * dumper.c (pdump_load_finish):
7224         * dumper.c (pdump_file_unmap):
7225         * dumper.c (pdump_file_get):
7226         * dumper.c (pdump_resource_free):
7227         * dumper.c (pdump_resource_get):
7228         * dumper.c (pdump_file_free):
7229         * dumper.c (pdump_file_try):
7230         * dumper.c (pdump_load):
7231         Remove fixed size limits on staticpro(), staticpro_nodump(),
7232         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
7233         Remove custom code for dumping lrecord_implementations_table - use
7234         dumpopaque instead.
7235         Remove (most of the) custom code for dumping staticpros - dump it
7236         like any other dynarr.
7237
7238         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
7239         * dumper.c: Moved functions from alloc.c.
7240         * alloc.c (dumpstruct): Moved to dumper.c.
7241         * alloc.c (dumpopaque): Likewise.
7242         * alloc.c (pdump_wire): Likewise.
7243         * alloc.c (pdump_wire_list): Likewise.
7244
7245         * lisp.h (Dynarr_sizeof): New.
7246         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
7247         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
7248         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
7249
7250         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
7251         * lisp.h (dumpopaque): ditto.
7252         * lisp.h (pdump_wire): ditto.
7253         * lisp.h (pdump_wire_list): ditto.
7254
7255 2001-01-09  Martin Buchholz  <martin@xemacs.org>
7256
7257         * make-src-depend (PrintPatternDeps):
7258         Use `sort' to make output independent of perl version.
7259
7260 2001-01-08  Martin Buchholz  <martin@xemacs.org>
7261
7262         Port to Netbsd 1.5.
7263         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
7264         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
7265
7266 2001-01-03  Didier Verna  <didier@xemacs.org>
7267
7268         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
7269         that `focus_frame' is alive before thinking of calling
7270         `redisplay_redraw_cursor' on it.
7271
7272 2001-01-08  Martin Buchholz <martin@xemacs.org>
7273
7274         * XEmacs 21.2.40 is released.
7275
7276 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
7277
7278         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
7279
7280 2001-01-06  Martin Buchholz  <martin@xemacs.org>
7281
7282         * alloc.c (dbg_valmask): Make const.
7283         * alloc.c (dbg_typemask): Make const.
7284         * alloc.c (dbg_USE_UNION_TYPE): Make const.
7285         * alloc.c (dbg_valbits): Make const.
7286         * alloc.c (dbg_gctypebits): Make const.
7287
7288 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
7289
7290         * redisplay-x.c (x_bevel_area):
7291         redisplay.h (struct rune):
7292         Typo fixes in comments.
7293
7294 2001-01-05  Andy Piper  <andy@xemacs.org>
7295
7296         * glyphs-x.c (x_redisplay_widget): use size changed for offset
7297         adjustment.
7298
7299         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
7300
7301 2001-01-05  Martin Buchholz  <martin@xemacs.org>
7302
7303         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
7304
7305         * mule-ccl.c (stack_idx_of_map_multiple):
7306         Non const global data must not be initialized!
7307         Found by MIYASHITA Hisashi.
7308
7309 2001-01-02  Andy Piper  <andy@xemacs.org>
7310
7311         * frame.c (change_frame_size): make sure frame size is always
7312         marked as changed.
7313
7314         * glyphs.c (image_instance_layout): minor code reuse.
7315
7316         * window.c (Fcurrent_window_configuration): revert previous
7317         change.
7318
7319 2001-01-02  Martin Buchholz  <martin@xemacs.org>
7320
7321         * glyphs.h:
7322         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
7323
7324 2000-12-31  Andy Piper  <andy@xemacs.org>
7325
7326         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
7327         when widget gets unmapped.
7328
7329         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
7330         function. Make sure widgets losing focus don't just drop it.
7331         (handle_focus_event_1): record the widget with focus.
7332
7333 2000-12-31  Andy Piper  <andy@xemacs.org>
7334
7335         * window.c (allocate_window): use
7336         make_image_instance_cache_hash_table.
7337         (make_dummy_parent): ditto.
7338         (Fset_window_configuration): ditto.
7339
7340         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
7341
7342         * glyphs.c (process_image_string_instantiator): use
7343         INSTANTIATOR_TYPE.
7344         (get_image_instantiator_governing_domain): ditto.
7345         (normalize_image_instantiator): ditto.
7346         (instantiate_image_instantiator): ditto.
7347         (make_image_instance_1): ditto.
7348         (image_instantiate): ditto. Key on glyph *and* instantiator type.
7349         (instantiator_eq_equal): new function for use with instance hash
7350         tables.
7351         (instantiator_eq_hash): ditto.
7352         (make_image_instance_cache_hash_table): create a suitable hash
7353         table for storing image instances.
7354
7355         * elhash.h (hash_table_weakness): new internal weakness type
7356         HASH_TABLE_KEY_CAR_VALUE_WEAK.
7357         declare new functions.
7358
7359         * elhash.c (finish_marking_weak_hash_tables): introduce yet
7360         another weakness type for glyphs.
7361         (make_standard_lisp_hash_table): new function split out from
7362         make_general_lisp_hash_table.
7363         (make_lisp_hash_table): call make_standard_lisp_hash_table.
7364         (hash_table_instantiate): ditto.
7365         (Fmake_hash_table): ditto.
7366
7367 2000-12-31  Martin Buchholz <martin@xemacs.org>
7368
7369         * XEmacs 21.2.39 is released.
7370
7371 2000-12-29  Andy Piper  <andy@xemacs.org>
7372
7373         * menubar.c (menubar_visible_p_changed): signal the frame changed.
7374
7375         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
7376         the frame has changed so that we pick up geometry changes such as
7377         menubar visibility.
7378
7379 2000-12-28  Andy Piper  <andy@xemacs.org>
7380
7381         * lastfile.c (my_ebss): make a char array so we can pad the
7382         bss. Fixes cygwin unexec.
7383
7384         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
7385
7386 2000-12-26  Andy Piper  <andy@xemacs.org>
7387
7388         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
7389         comments and try and be more precise about a non-/SIGIO world.
7390         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
7391         SIGIO.
7392
7393         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
7394         we don't normalize to zero width or height.
7395
7396 2000-12-24  Andy Piper  <andy@xemacs.org>
7397
7398         * Makefile.in.in (ldflags): add -mwindows when appropriate.
7399
7400 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
7401
7402         * s/sco5.h: SCO 5 has pty support.
7403
7404 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
7405
7406         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
7407         input-method-xlib.c contains whole contents of input-method-xfs.c,
7408         so we can use input-method-xlib.c's code for USE_XFONTSET
7409         using #ifdefs.
7410         * input-method-xfs.c: removed.
7411
7412 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
7413
7414         * file-coding.h (enum coding_category_type): reorder enumerators to
7415         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
7416         (now one greater than largest real coding_category_type enumerator).
7417         * file-coding.c (coding_category_symbol, coding_category_by_priority,
7418         coding_category_system, fcd_descriptihon_1, decode_coding_category,
7419         Fcoding_category_list, Fset_coding_priority_list,
7420         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
7421         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
7422
7423 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
7424
7425         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
7426         * redisplay-output.c (redisplay_output_window): Clear top of window
7427         when face is changed.
7428         * redisplay-x.c (x_redraw_exposed_window): Call
7429         redisplay_clear_top_of_window.
7430         * redisplay.h: Publish redisplay_clear_top_of_window.
7431
7432 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
7433
7434         * buffer.c (Fkill_buffer): Map over all devices.
7435         * window.c (window_loop): Remove UNSHOW_BUFFER code.
7436         (list_windows): New function.
7437         (list_all_windows): Ditto.
7438         (Freplace_buffer_in_windows): Use them.
7439
7440 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
7441
7442         * database.c (berkdb_subtype): Recognize new subtype `queue'.
7443         (Fopen_database): Use `db_create' instead of `db_open'.
7444         (syms_of_database): Initialize Qqueue.
7445
7446 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
7447
7448         * buffer.c (common_init_complex_vars_of_buffer): Initialize
7449         buffer_local_face_property.
7450         * buffer.h (struct buffer): New member buffer_local_face_property.
7451         * window.c (Fset_window_buffer):  Mark window's face as changed
7452         when buffer has buffer local face.
7453         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
7454         * objects.c (color_after_change): Set buffer_local_face_property
7455         when locale of face specifier is buffer.
7456         * objects.c (font_after_change): Ditto.
7457         * objects.c (face_boolean_after_change): Ditto.
7458         * glyphs.c (image_after_change): Ditto.
7459
7460 2000-12-09  Dan Holmsand  <dan@eyebee.com>
7461
7462         * nt.c (mswindows_fstat): Report file permissions, volume serial
7463         number, etc. Code adapted from FSF Emacs 20.7.
7464
7465 2000-12-09  Dan Holmsand  <dan@eyebee.com>
7466
7467         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
7468         of stat when we don't have symbolic links, to make sure
7469         mswindows_stat is called on mswindows.
7470
7471 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
7472
7473         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
7474
7475 2000-12-12  Martin Buchholz  <martin@xemacs.org>
7476
7477         * doprnt.c (emacs_doprnt_1): More printing fixes.
7478         Make printing of numbers compatible with libc and FSF Emacs.
7479         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
7480         Use the system printf to do most of the hard work of formatting,
7481         instead of doprnt_1().
7482         Calculate memory to allocate for format string.
7483         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
7484         (doprnt_1): Cleaner code and documentation.
7485
7486 2000-12-01  Jerry James  <james@eecs.ukans.edu>
7487
7488         * Makefile.in.in: Use the loop variable to install headers.
7489
7490 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
7491
7492         * window.c (Fsplit_window): Don't invalidate face cache.
7493
7494 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
7495
7496         * minibuf.c (Fall_completions): Undo the previous change
7497         which removed checking elements start with space.
7498
7499 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
7500
7501         * mule-canna.c: Didier suppression.
7502
7503 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
7504
7505         * mule-canna.c: rename static unsigned char buf[] to key_buffer
7506         (warning suppression).  Add English comment translations.
7507
7508 2000-12-05  Martin Buchholz  <martin@xemacs.org>
7509
7510         * unexelfsgi.c (unexec): Better test for mmap failure.
7511
7512 2000-12-05  Martin Buchholz <martin@xemacs.org>
7513
7514         * XEmacs 21.2.38 is released.
7515
7516 2000-12-05  Martin Buchholz  <martin@xemacs.org>
7517
7518         * redisplay.c (bar-cursor): Make a user variable.
7519
7520         * symsinit.h: Add init_postgresql_from_environment.
7521
7522 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
7523
7524         * regex.c: Convert to clean C.
7525
7526 2000-12-05  Dan Holmsand  <dan@eyebee.com>
7527
7528         * realpath.c:
7529         Don't #include sysfile.h. Revert to duplicating PATH_MAX
7530         initialization.
7531         (sys_readlink): renamed to system_readlink to avoid conflict with
7532         the other sys_readlink.
7533
7534 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
7535
7536         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
7537
7538 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
7539
7540         * postgresql.c (init_postgresql_from_environment): new function.
7541         (vars_of_postgresql): Move code initializing Lisp variables out and
7542         into init_postgresql_from_environment.
7543         emacs.c (main_1): Call init_postgresql_from_environment if and only
7544         if running a dumped XEmacs.
7545
7546 2000-08-31  Dan Holmsand  <dan@eyebee.com>
7547
7548         * buffer.c: Make find-file-compare-truenames default to true on
7549         windows.
7550
7551         * realpath.c (win32_abs_start):
7552         (cygwin_readlink):
7553         (win32_readlink): New functions.
7554         (xrealpath): Return really real filenames on windows.
7555
7556         * fileio.c (Ffile_truename): Make file-truename work on windows.
7557
7558 2000-11-29  Didier Verna  <didier@xemacs.org>
7559
7560         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
7561         * faces.c (update_face_cachel_data): use it.
7562         * faces.c (add_face_cachel): use it. Complete background pixmap
7563         frobbing in face cache if `update_face_cachel_data' has not done so.
7564
7565 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
7566
7567         * search.c (string_match_1): Don't set last_thing_searched
7568         when search failed.
7569
7570 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
7571
7572         * buffer.c: Include casetab.h
7573         (common_init_complex_vars_of_buffer): Use new case-table object.
7574         * buffer.h: Include casetab.h
7575         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
7576         (DOWNCASE_TABLE_OF): Ditto.
7577         * bufslots.h: Remove char-tables and add case-table.
7578         * casetab.c: Include casetab.h
7579         (CASE_TABLE_P): Removed.
7580         (mark_case_table): New function.
7581         (allocate_case_table): New function.
7582         (Fcase_table_p): Use new case-table.
7583         (case_table_char): New function.
7584         (Fget_case_table): Ditto.
7585         (Fput_case_table): Ditto.
7586         (Fput_case_table_pair): Ditto.
7587         (Fcopy_case_table): Ditto.
7588         (Fcurrent_case_table): Return case-table.
7589         (Fstandard_case_table): Return case-table.
7590         (Fset_case_table): Fix doc-string.
7591         (set_case_table): Use case-table
7592         (syms_of_casetab): DEFSUBR new functions.
7593         (complex_vars_of_casetab): Set up standard case-table.
7594         * casetab.h: New file.
7595         * editfns.c: Include casetab.h
7596         (Fcompare_buffer_substrings): Use case-table.
7597         * inline.c: Include casetab.h
7598         * lisp.h: Remove bogus extern.
7599         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
7600         * search.c: Include casetab.h
7601         (TRANSLATE_ASCII): Removed.
7602         (TRANSLATE): Unconditionally translate character.
7603         (looking_at_1): Use case-table.
7604         (string_match_1): Ditto.
7605         (fast_string_match): Ditto.
7606         (search_command): Ditto.
7607         (search_buffer): Separate boyer_moore.  Check whether
7608         boyer_moore is possible.
7609         (simple_search): New function.
7610         (boyer_moore): Separated from search_buffer. Translate char.
7611
7612 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
7613
7614         * regex.c (RE_TR_ASCII): Removed.
7615         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
7616         (PATFETCH): Call PATFETCH_RAW.
7617         (PATFETCH_RAW): Fetch Emchar.
7618         (PATUNFETCH): Decrement charptr.
7619         (GET_BUFFER_SPACE): Rename b to buf_end.
7620         (BUF_PUSH): Ditto.
7621         (BUF_PUSH_2): Ditto.
7622         (BUF_PUSH_3): Ditto.
7623         (EXTEND_BUFFER): Ditto.
7624         (SET_LIST_BIT): Ditto.
7625         (regex_compile): Ditto.  Translate non ASCII char.
7626         (compile_range): Ditto.
7627         (re_search_2): Ditto.
7628         (re_match_2_internal): Compare Emchar.
7629         (bcmp_translate): Ditto.
7630
7631 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
7632
7633         * lisp.h (basic char/int typedefs):  comment improvement.
7634
7635 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
7636
7637         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
7638         unstomp inhibit_site_lisp.  Improve comments.
7639
7640 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
7641
7642         * mule-charset.c (Fcharset_property):  improve type checking, comments.
7643
7644 2000-11-28  Andy Piper  <andy@xemacs.org>
7645
7646         * redisplay-output.c (redisplay_output_subwindow): make sure we do
7647         clipped display for windows in the gutter also.
7648         (redisplay_display_boxes_in_window_p): change semantics of return
7649         codes to be more intuitive.
7650
7651         * gutter.h: declare display_boxes_in_gutter_p.
7652
7653         * gutter.c (display_boxes_in_gutter_p): new function for
7654         redisplay.
7655
7656 2000-11-22  Andy Piper  <andy@xemacs.org>
7657
7658         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
7659         autodetect domain.
7660
7661 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
7662
7663         * callproc.c (Fold_call_process_internal):
7664         * gpm.c (Freceive_gpm_event):
7665         (tty_get_foreign_selection): Might be just warning supression.
7666         * fileio.c (Fwrite_region_internal):
7667         (Fset_visited_file_modtime):
7668         * keymap.c (event_matches_key_specifier_p):
7669         Initialize GCPROed variable.
7670
7671         * menubar-x.c (command_builder_find_menu_accelerator):
7672         Initialize before use.
7673
7674 2000-11-23  Andy Piper  <andy@xemacs.org>
7675
7676         * unexcw.c (unexec): make the resulting executable executable.
7677
7678 2000-11-21  Martin Buchholz  <martin@xemacs.org>
7679
7680         * doc.c (get_doc_string):
7681         Use size_t, not int, for result of XSTRING_LENGTH.
7682
7683         * cmds.c (Fdelete_char):
7684         * cmds.c (Fpoint_at_eol):
7685         * cmds.c (Fself_insert_command):
7686         Use EMACS_INT, not int, for result of XINT.
7687         Someday, someone will want to insert more than 2**31 identical characters.
7688
7689         * cmds.c (Fdelete_char):
7690         * cmds.c (Fdelete_backward_char):
7691         * syntax.c (Fforward_word):
7692         * syntax.c (Fforward_comment):
7693         Make COUNT argument optional, for consistency with forward-char et al.
7694
7695 2000-11-22  Martin Buchholz  <martin@xemacs.org>
7696
7697         * lisp.h:
7698         * print.c (long_to_string):
7699         Return a useful value: the pointer at end of data written.
7700
7701         * doprnt.c:
7702         Use `static const char * const' for constant strings.
7703         (union printf_arg): Delete `i', `ui' members.
7704         (get_doprnt_args):
7705         (emacs_doprnt_1):
7706         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
7707         Do all printf-ing via the `l' specifier.
7708         Use EMACS_INT instead of int.
7709         Optimize.
7710
7711 2000-11-20  Didier Verna  <didier@xemacs.org>
7712
7713         * faces.c (update_face_cachel_data): don't frob the background
7714         pixmap when the window is being created. The face is needed but
7715         does not exist yet.
7716
7717 2000-11-20  Andy Piper  <andy@xemacs.org>
7718
7719         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
7720         messing with a debug environment.
7721
7722 2000-11-20  Martin Buchholz  <martin@xemacs.org>
7723
7724         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
7725
7726 2000-11-20  Martin Buchholz  <martin@xemacs.org>
7727
7728         * casetab.c (Fcase_table_p): Fix compile error and crash.
7729
7730 2000-11-18  Philip Aston  <philipa@mail.com>
7731
7732         * s/cygwin32.h: Cygwin has SVR4-like pty support.
7733
7734 2000-11-18  Martin Buchholz  <martin@xemacs.org>
7735
7736         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
7737         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
7738
7739 2000-11-17  Martin Buchholz  <martin@xemacs.org>
7740
7741         * config.h.in: Define HAVE_ELF_H if elf.h exists.
7742         * unexelf.c: Use HAVE_ELF_H.
7743         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
7744         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
7745         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
7746         Greg Harrington <greg_harrington@hotmail.com> provided a machine
7747         for testing.
7748         So this is an unexelfsgi.c from a different line of development.
7749
7750 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
7751
7752         * regex.c (RE_TR_ASCII): New function.
7753         (RE_TRANSLATE): Call it.
7754
7755 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
7756
7757         * buffer.h (TRT_TABLE_OF): Remove assert.
7758         (IN_TRT_TABLE_DOMAIN): Removed.
7759
7760 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
7761
7762         * free-hook.c (log_gcpro):
7763         (show_gcprohist): Add support for GCPRO5.
7764
7765 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
7766
7767         * emacs.c (main_1): Improve -sd error message when --pdump=no.
7768
7769 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
7770
7771         * symeval.h: Declare flush_all_buffer_local_cache.
7772
7773         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
7774         (flush_buffer_local_cache): Added.
7775         (flush_all_buffer_local_cache): Added.
7776
7777         * lrecord.h: Remove unused XD_LO_RESET_NIL.
7778
7779         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
7780         (pdump_dump_data): Ditto.
7781         (pdump_reloc_one): Ditto.
7782         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
7783         before dumping.
7784
7785
7786 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
7787
7788         * buffer.c: Remove if 0'ed entry.
7789         * buffer.h: Rewrite TRT to use char-table.
7790         * bufslots.h: Remove mirror tables.
7791         * casetab.c: Remove mirror tables.
7792         (CASE_TABLE_P): New macro.
7793         (Fcase_table_p): Element of a case table is string or char-table.
7794         (make_mirror_trt_table): Removed.
7795         (set_case_table): Setup char-table from strings for backward
7796         compatibility.
7797         * dired.c (Fdirectory_files):
7798         * dired-msw.c: (mswindows_get_files):
7799         * lisp.h: Change prototype of re_pattern_buffer.
7800         * regex.c: (RE_TRANSLATE): New macro.
7801         (TRANSLATE_P): Ditto.
7802         Change translate to type RE_TRANSLATE_TYPE.
7803         * regex.h: Define RE_TRANSLATE_TYPE
7804         * search.c (TRANSLATE): New macro.
7805         (TRANSLATE_ASCII): New macro.
7806         Translate table is changed to Lisp_Object.
7807         (signal_failure): Inhibit return.
7808
7809 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
7810
7811         * device-msw.c:
7812         * eldap.c:
7813         * event-Xt.c:
7814         * event-stream.c:
7815         * print.c:
7816         Do UNGCPRO before return.
7817
7818 2000-11-14  Martin Buchholz <martin@xemacs.org>
7819
7820         * XEmacs 21.2.37 is released.
7821
7822 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
7823
7824         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
7825         Add comments about discarded return value.
7826
7827 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
7828
7829         * callint.c:
7830         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
7831
7832 2000-10-27  Andy Piper  <andy@xemacs.org>
7833
7834         * gutter.c (Fset_default_gutter_position): default left and right
7835         gutters to visible.
7836         (calculate_gutter_size): calculate resonable heuristic for left
7837         and right gutter sizes.
7838         (specifier_vars_of_gutter): change left and right gutter sizes to
7839         autodetect.
7840         (calculate_gutter_size_from_display_lines): new function.
7841         (output_gutter): check for resizing on left and right gutters.
7842         (clear_gutter): don't special case top and left gutters.
7843         (specifier_vars_of_gutter): use new signature for
7844         set_specifier_caching.
7845
7846         * glyphs-x.c (x_redisplay_widget): spelling fix.
7847         * glyphs.c (specifier_vars_of_glyphs):
7848         * menubar.c (specifier_vars_of_menubar):
7849         * redisplay.c (specifier_vars_of_redisplay):
7850         * toolbar.c (specifier_vars_of_toolbar):
7851         * window.c (specifier_vars_of_window):
7852         * scrollbar.c (specifier_vars_of_scrollbar):
7853         (complex_vars_of_scrollbar): use new signature for
7854         set_specifier_caching.
7855
7856         * specifier.c (set_specifier_caching): include recompute flag.
7857         (recompute_one_cached_specifier_in_window): always recompute if
7858         flag set.
7859         (recompute_one_cached_specifier_in_frame): ditto.
7860
7861         * specifier.h (struct specifier_caching): add recompute flag.
7862
7863 2000-10-24  Andy Piper  <andy@xemacs.org>
7864
7865         * unexcw.c (copy_executable_and_dump_data_section): add new
7866         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
7867         5.0 happy.
7868
7869 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
7870
7871         * console-x.h (x_device): New member modifier_release_time.
7872         * event-Xt.c (x_handle_sticky_modifiers):
7873         Bound interval modifier keys are sticky.
7874         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
7875         * events.h: extern it.
7876
7877 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
7878
7879         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
7880
7881 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
7882
7883         * event-stream.c (execute_command_event): Preserve current_events
7884         and the like when event is misc-user-event.
7885         Inhibit quit during the call to maybe_echo_keys.
7886
7887 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
7888
7889         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
7890         symlink when buffer is killed.
7891         (inhibit_clash_detection): New variable.
7892
7893 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
7894
7895         * console.c (Fset_input_method): Trigger redisplay on tty.
7896
7897 2000-11-07  Martin Buchholz  <martin@xemacs.org>
7898
7899         * process.c (Fprocess_status): Revert to previous behavior:
7900         (process-status "nosuchprocess") ==> nil
7901
7902 2000-11-06  Martin Buchholz  <martin@xemacs.org>
7903
7904         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
7905         Work around another GCC 2.95.2 optimizer bug.
7906
7907 2000-11-02  Martin Buchholz  <martin@xemacs.org>
7908
7909         * process.c (Fget_process): Use LIST_LOOP_2.
7910         (kill_buffer_processes): Use LIST_LOOP_2.
7911
7912         * minibuf.c (Fall_completions):
7913         Delete old non-functional code for FSF fourth argument.
7914
7915         * frame.c (frame_matches_frame_spec):
7916         Renamed from `frame_matches_frametype'.  Update all callers.
7917         (device_matches_device_spec):
7918         Renamed from 'device_matches_console_spec'.  Update all callers.
7919
7920         * doc.c (Fsubstitute_command_keys):
7921         Remove buffer overflow crash.  Small code cleanups.
7922
7923         * casetab.c (check_case_table): Simpler code.
7924
7925         * window.c (Freplace_buffer_in_windows):
7926         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
7927         (and similar implementation) as Fdelete_windows_on.
7928         Update all callers.
7929
7930         * alloc.c (Fmake_list):
7931         * alloc.c (make_vector):
7932         * alloc.c (Fmake_vector):
7933         * alloc.c (make_bit_vector):
7934         * alloc.c (Fmake_bit_vector):
7935         * alloc.c (Fbit_vector):
7936         * alloc.c (Fmake_string):
7937         * alloc.c (Fpurecopy):
7938         * alloc.c (Fmemory_limit):
7939         * buffer.c:
7940         * buffer.c (Fget_buffer):
7941         * buffer.c (Fkill_buffer):
7942         * buffer.c (complex_vars_of_buffer):
7943         * bytecode.c (Fcompiled_function_stack_depth):
7944         * callint.c (Fprefix_numeric_value):
7945         * event-stream.c:
7946         * event-stream.c (Fread_key_sequence):
7947         * casetab.c:
7948         * casetab.c (Fcase_table_p):
7949         * casetab.c (check_case_table):
7950         * casetab.c (Fset_case_table):
7951         * casetab.c (Fset_standard_case_table):
7952         * chartab.c:
7953         * chartab.c (Fchar_table_type):
7954         * chartab.c (Freset_char_table):
7955         * chartab.c (Fget_char_table):
7956         * chartab.c (Fget_range_char_table):
7957         * chartab.c (Fput_char_table):
7958         * chartab.c (Fmap_char_table):
7959         * chartab.c (Fcategory_table_p):
7960         * chartab.c (Fcheck_category_at):
7961         * chartab.c (Fchar_in_category_p):
7962         * chartab.c (Fcategory_table):
7963         * chartab.c (Fcopy_category_table):
7964         * chartab.c (Fset_category_table):
7965         * chartab.c (Fcategory_designator_p):
7966         * chartab.c (Fcategory_table_value_p):
7967         * cmds.c (Fdelete_char):
7968         * cmds.c (Fdelete_backward_char):
7969         * cmds.c (Fself_insert_command):
7970         * cmds.c (Fself_insert_internal):
7971         * console.c (Fvalid_console_type_p):
7972         * console.c (Fcdfw_console):
7973         * console.c (Fconsole_type):
7974         * console.c (Fconsole_name):
7975         * console.c (Fconsole_device_list):
7976         * console.c (Fconsole_on_window_system_p):
7977         * data.c:
7978         * data.c (Feq):
7979         * data.c (Fold_eq):
7980         * data.c (Fsubr_interactive):
7981         * data.c (Fchar_to_int):
7982         * data.c (Fint_to_char):
7983         * data.c (Fsetcar):
7984         * data.c (Fsetcdr):
7985         * data.c (Fnumber_to_string):
7986         * data.c (Fstring_to_number):
7987         * data.c (Frem):
7988         * database.c (mark_database):
7989         * database.c (finalize_database):
7990         * database.c (Fdatabase_live_p):
7991         * database.c (Fdatabasep):
7992         * device-x.c (Fx_get_resource):
7993         * device.c (Fdfw_device):
7994         * dired.c:
7995         * dired.c (Ffile_name_completion):
7996         * dired.c (Ffile_name_all_completions):
7997         * dired.c (Fuser_name_completion):
7998         * dired.c (Fuser_name_completion_1):
7999         * dired.c (Fuser_name_all_completions):
8000         * doc.c (Fdocumentation):
8001         * doc.c (Fdocumentation_property):
8002         * doc.c (Fsubstitute_command_keys):
8003         * editfns.c:
8004         * editfns.c (Fchar_to_string):
8005         * editfns.c (Fstring_to_char):
8006         * editfns.c (Ftemp_directory):
8007         * editfns.c (Finsert_char):
8008         * editfns.c (Fbuffer_substring_no_properties):
8009         * editfns.c (Fnarrow_to_region):
8010         * editfns.c (Fchar_equal):
8011         * editfns.c (Fchar_Equal):
8012         * editfns.c (Ftranspose_regions):
8013         * emacs.c (Fdump_emacs):
8014         * eval.c (Fthrow):
8015         * eval.c (Fcommand_execute):
8016         * eval.c (Fautoload):
8017         * eval.c (Fbacktrace):
8018         * eval.c (Fbacktrace_frame):
8019         * events.c:
8020         * events.c (Fcopy_event):
8021         * events.c (Fcharacter_to_event):
8022         * events.c (Fevent_button):
8023         * events.c (Fevent_process):
8024         * extents.c:
8025         * extents.c (Fnext_extent_change):
8026         * extents.c (Fextent_property):
8027         * faces.c (Ffacep):
8028         * faces.c (Fmake_face):
8029         * file-coding.c:
8030         * file-coding.c (Fencode_shift_jis_char):
8031         * file-coding.c (Fencode_big5_char):
8032         * fileio.c (Ffile_name_directory):
8033         * fileio.c (Ffile_name_nondirectory):
8034         * fileio.c (Ffile_name_as_directory):
8035         * fileio.c (Fdirectory_file_name):
8036         * fileio.c (Ffile_truename):
8037         * fileio.c (Fsubstitute_in_file_name):
8038         * fileio.c (Ffile_modes):
8039         * fileio.c (Fset_file_modes):
8040         * fileio.c (Fset_default_file_modes):
8041         * fileio.c (Fverify_visited_file_modtime):
8042         * floatfns.c (Facos):
8043         * floatfns.c (Fasin):
8044         * floatfns.c (Fatan):
8045         * floatfns.c (Fcos):
8046         * floatfns.c (Fsin):
8047         * floatfns.c (Ftan):
8048         * floatfns.c (Fbessel_j0):
8049         * floatfns.c (Fbessel_j1):
8050         * floatfns.c (Fbessel_jn):
8051         * floatfns.c (Fbessel_y0):
8052         * floatfns.c (Fbessel_y1):
8053         * floatfns.c (Fbessel_yn):
8054         * floatfns.c (Ferf):
8055         * floatfns.c (Ferfc):
8056         * floatfns.c (Flog_gamma):
8057         * floatfns.c (Fexp):
8058         * floatfns.c (Fexpt):
8059         * floatfns.c (Flog):
8060         * floatfns.c (Flog10):
8061         * floatfns.c (Fsqrt):
8062         * floatfns.c (Fcube_root):
8063         * floatfns.c (Facosh):
8064         * floatfns.c (Fasinh):
8065         * floatfns.c (Fatanh):
8066         * floatfns.c (Fcosh):
8067         * floatfns.c (Fsinh):
8068         * floatfns.c (Ftanh):
8069         * floatfns.c (Fabs):
8070         * floatfns.c (Ffloat):
8071         * floatfns.c (Flogb):
8072         * floatfns.c (Fceiling):
8073         * floatfns.c (Ffloor):
8074         * floatfns.c (Fround):
8075         * floatfns.c (Ftruncate):
8076         * floatfns.c (Ffceiling):
8077         * floatfns.c (Fffloor):
8078         * floatfns.c (Ffround):
8079         * floatfns.c (Fftruncate):
8080         * fns.c (Fstring_equal):
8081         * fns.c (Fstring_lessp):
8082         * fns.c (concat2):
8083         * fns.c (concat3):
8084         * fns.c (vconcat2):
8085         * fns.c (vconcat3):
8086         * fns.c (Fsubstring):
8087         * fns.c (Fassoc):
8088         * fns.c (Fold_assoc):
8089         * fns.c (assoc_no_quit):
8090         * fns.c (Fassq):
8091         * fns.c (Fold_assq):
8092         * fns.c (assq_no_quit):
8093         * fns.c (Frassoc):
8094         * fns.c (Fold_rassoc):
8095         * fns.c (Frassq):
8096         * fns.c (Fold_rassq):
8097         * fns.c (rassq_no_quit):
8098         * fns.c (Fremassoc):
8099         * fns.c (remassoc_no_quit):
8100         * fns.c (Fremassq):
8101         * fns.c (remassq_no_quit):
8102         * fns.c (Fremrassoc):
8103         * fns.c (Fremrassq):
8104         * fns.c (remrassq_no_quit):
8105         * fns.c (Fsort):
8106         * fns.c (Fplist_get):
8107         * fns.c (Fplist_put):
8108         * fns.c (Fplist_remprop):
8109         * fns.c (Fplist_member):
8110         * fns.c (Flax_plist_get):
8111         * fns.c (Flax_plist_put):
8112         * fns.c (Flax_plist_remprop):
8113         * fns.c (Flax_plist_member):
8114         * fns.c (Fequal):
8115         * fns.c (Fold_equal):
8116         * fns.c (Frequire):
8117         * fns.c (Fbase64_encode_region):
8118         * fns.c (Fbase64_encode_string):
8119         * fns.c (Fbase64_decode_region):
8120         * frame.c:
8121         * frame.c (frame_matches_frame_spec):
8122         * frame.c (device_matches_device_spec):
8123         * frame.c (next_frame):
8124         * frame.c (previous_frame):
8125         * frame.c (Fnext_frame):
8126         * frame.c (Fprevious_frame):
8127         * frame.c (Fframe_property):
8128         * frame.c (Fset_frame_height):
8129         * frame.c (Fset_frame_size):
8130         * frame.h:
8131         * glyphs.c:
8132         * glyphs.c (if):
8133         * glyphs.c (decode_error_behavior_flag):
8134         * glyphs.c (Fmake_image_instance):
8135         * indent.c (Findent_to):
8136         * intl.c (Fignore_defer_gettext):
8137         * keymap.c (Fkeymapp):
8138         * keymap.c (Flookup_key):
8139         * lread.c:
8140         * lread.c (Fload_internal):
8141         * lread.c (Feval_buffer):
8142         * lread.c (Feval_region):
8143         * macros.c (Fexecute_kbd_macro):
8144         * marker.c (set_marker_internal):
8145         * marker.c (Fset_marker):
8146         * marker.c (set_marker_restricted):
8147         * marker.c (Fcopy_marker):
8148         * marker.c (noseeum_copy_marker):
8149         * menubar.c:
8150         * menubar.c (Fpopup_menu):
8151         * minibuf.c:
8152         * mule-charset.c (Fcharset_name):
8153         * mule-charset.c (Fchar_charset):
8154         * mule-charset.c (Fchar_octet):
8155         * mule-charset.c (Fsplit_char):
8156         * mule-wnnfns.c (Fwnn_open):
8157         * mule-wnnfns.c (Fwnn_dict_comment):
8158         * mule-wnnfns.c (Fwnn_quit_henkan):
8159         * mule-wnnfns.c (Fwnn_word_toroku):
8160         * mule-wnnfns.c (Fwnn_word_sakujo):
8161         * mule-wnnfns.c (Fwnn_word_use):
8162         * mule-wnnfns.c (Fwnn_hindo_set):
8163         * objects.c:
8164         * objects.c (Fmake_color_instance):
8165         * objects.c (Fmake_font_instance):
8166         * print.c (Fwrite_char):
8167         * process.c:
8168         * process.c (mark_process):
8169         * process.c (print_process):
8170         * process.c (get_process_from_usid):
8171         * process.c (Fprocessp):
8172         * process.c (Fprocess_live_p):
8173         * process.c (Fget_process):
8174         * process.c (Fget_buffer_process):
8175         * process.c (get_process):
8176         * process.c (Fprocess_id):
8177         * process.c (Fprocess_name):
8178         * process.c (Fprocess_command):
8179         * process.c (init_process_io_handles):
8180         * process.c (start_process_unwind):
8181         * process.c (Fstart_process_internal):
8182         * process.c (Fopen_multicast_group_internal):
8183         * process.c (Fset_process_window_size):
8184         * process.c (read_process_output):
8185         * process.c (send_process):
8186         * process.c (Fprocess_tty_name):
8187         * process.c (Fset_process_buffer):
8188         * process.c (Fprocess_buffer):
8189         * process.c (Fprocess_mark):
8190         * process.c (set_process_filter):
8191         * process.c (Fset_process_filter):
8192         * process.c (Fprocess_filter):
8193         * process.c (Fprocess_send_region):
8194         * process.c (Fprocess_send_string):
8195         * process.c (exec_sentinel):
8196         * process.c (Fset_process_sentinel):
8197         * process.c (Fprocess_sentinel):
8198         * process.c (status_notify):
8199         * process.c (Fprocess_status):
8200         * process.c (Fprocess_exit_status):
8201         * process.c (process_send_signal):
8202         * process.c (Fprocess_send_eof):
8203         * process.c (deactivate_process):
8204         * process.c (remove_process):
8205         * process.c (Fdelete_process):
8206         * process.c (kill_buffer_processes):
8207         * process.c (Fprocess_kill_without_query):
8208         * process.c (Fprocess_kill_without_query_p):
8209         * rangetab.c:
8210         * rangetab.c (Fget_range_table):
8211         * rangetab.c (Fput_range_table):
8212         * rangetab.c (Fremove_range_table):
8213         * rangetab.c (Fclear_range_table):
8214         * search.c:
8215         * search.c (Fskip_chars_forward):
8216         * search.c (Fskip_chars_backward):
8217         * search.c (Fskip_syntax_forward):
8218         * search.c (Fskip_syntax_backward):
8219         * search.c (search_command):
8220         * search.c (Freplace_match):
8221         * search.c (Fregexp_quote):
8222         * select.c (Fown_selection_internal):
8223         * select.c (Fselection_owner_p):
8224         * select.c (Fselection_exists_p):
8225         * select.c (Fget_selection_internal):
8226         * specifier.c:
8227         * symbols.c:
8228         * symbols.c (Fintern):
8229         * symbols.c (Fintern_soft):
8230         * symbols.c (Funintern):
8231         * symbols.c (Fapropos_internal):
8232         * symbols.c (Fset_default):
8233         * syntax.c:
8234         * syntax.c (Fsyntax_table_p):
8235         * syntax.c (Fcopy_syntax_table):
8236         * syntax.c (Fset_syntax_table):
8237         * syntax.c (Fchar_syntax):
8238         * syntax.c (syntax_match):
8239         * syntax.c (Fmatching_paren):
8240         * syntax.c (Fforward_word):
8241         * syntax.c (scan_lists):
8242         * syntax.c (Fscan_lists):
8243         * syntax.c (Fscan_sexps):
8244         * syntax.c (Fparse_partial_sexp):
8245         * toolbar.c (Fcheck_toolbar_button_syntax):
8246         * tooltalk.doc:
8247         * window.c:
8248         * window.c (Fwindowp):
8249         * window.c (Fwindow_live_p):
8250         * window.c (Fwindow_point):
8251         * window.c (Fdelete_window):
8252         * window.c (Fnext_window):
8253         * window.c (Fprevious_window):
8254         * window.c (Fother_window):
8255         * window.c (window_loop):
8256         * window.c (Fget_lru_window):
8257         * window.c (Fsplit_window):
8258         * window.c (Fenlarge_window):
8259         * window.c (Fenlarge_window_pixels):
8260         * window.c (Fshrink_window):
8261         * window.c (Fshrink_window_pixels):
8262         * window.c (change_window_height):
8263         * window.c (Fwindow_configuration_p):
8264         * window.c (Fcurrent_window_configuration):
8265         * window.h:
8266         * casefiddle.c (casify_object):
8267         * casefiddle.c (Fupcase):
8268         * casefiddle.c (Fdowncase):
8269         * casefiddle.c (Fcapitalize):
8270         * casefiddle.c (Fupcase_initials):
8271         * casefiddle.c (casify_region_internal):
8272         * casefiddle.c (casify_region):
8273         * casefiddle.c (Fupcase_region):
8274         * casefiddle.c (Fdowncase_region):
8275         * casefiddle.c (Fcapitalize_region):
8276         * casefiddle.c (Fupcase_initials_region):
8277         * casefiddle.c (Fupcase_word):
8278         * casefiddle.c (Fdowncase_word):
8279         * casefiddle.c (Fcapitalize_word):
8280         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
8281         Replace 0 with '\0' when working with bytes.
8282         Replace initial "(" with "\(" in docstrings.
8283
8284 2000-11-01  Martin Buchholz  <martin@xemacs.org>
8285
8286         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
8287
8288         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
8289
8290 2000-10-31  Martin Buchholz  <martin@xemacs.org>
8291
8292         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
8293
8294 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
8295
8296         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
8297         correctly.
8298
8299 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
8300
8301         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
8302         (inhibit_auto_save_session): New variable.
8303         (vars_of_fileio): Declare and initialize them.
8304         * fileio.c (Fdo_auto_save): Don't create session file if
8305         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
8306
8307 2000-10-31  Martin Buchholz  <martin@xemacs.org>
8308
8309         * sgiplay.c (play_internal): C++ compilability.
8310         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
8311         * callproc.c (Fold_call_process_internal):
8312         Remove unused vars `env', `first'.
8313         * scrollbar.c (update_scrollbar_instance):
8314         #### unused var `current_window'.
8315         * redisplay-tty.c: Put currently unused vars insert_mode_on,
8316         etc. within #ifdef NOT_YET.
8317         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
8318         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
8319         * specifier.c (specifier_instance):
8320         #### unused var `tag'.
8321         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
8322
8323 2000-10-27  Martin Buchholz  <martin@xemacs.org>
8324
8325         * fns.c (Fbutlast):
8326         * fns.c (list_sort):
8327         * fns.c (Ffillarray):
8328         * fns.c (bytecode_nconc2):
8329         * fns.c (Fnconc):
8330         * fns.c (mapcar1):
8331         * fns.c (Fmapconcat):
8332         Be pedantically 64-bit correct.  For the time when someone will
8333         want to have a list with length > 2**32.
8334
8335         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
8336         Work around MIPSpro compiler bug.
8337
8338         * process-unix.c (unix_kill_child_process): Add snarky comment.
8339         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
8340
8341         * config.h.in: Oops, _getpt ==> _getpty
8342
8343 2000-10-26  Martin Buchholz  <martin@xemacs.org>
8344
8345         * config.h.in:
8346         * regex.c:
8347         Use void*, not char*, as return type of alloca().
8348
8349         * alloc.c (free_marker): Side effect inside assert expression!
8350
8351 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
8352
8353         * mule-charset.c (Fset_charset_ccl_program): To check
8354         if the given ccl program is valid, use setup_ccl_program()
8355         instead of CHECK_VECTOR().
8356         (Fmake_charset): Likewise.
8357
8358 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
8359
8360         * faces.c (get_extent_fragment_face_cache_index):
8361         Fix cachel.merged_faces memory leak.
8362
8363 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
8364
8365         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
8366         Reset MSB of octets obtained by DECODE_SJIS
8367         because of the incompatibility with Emacs.
8368         (ccl_driver)<CCL_ENCODE_SJIS>:
8369         Set MSB of octets before passing them to
8370         ENCODE_SJIS because of the incompatibility
8371         with Emacs.
8372
8373 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
8374
8375         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
8376         (DECLARE_LRECORD): Undo the last change.
8377         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
8378
8379 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
8380
8381         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
8382         the implementation to lrecord_implementations_table.
8383
8384 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
8385
8386         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
8387         initial value of `lrecord_type_##c_name' and
8388         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
8389         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
8390         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
8391         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
8392         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
8393
8394 2000-10-17  Martin Buchholz  <martin@xemacs.org>
8395
8396         * miscplay.c (sndcnv8S_2mono):
8397         (sndcnv2monounsigned):
8398         (sndcnvULaw_2linear):
8399         (sndcnv16swap):
8400         Remove implementation-defined behavior.
8401
8402 2000-10-12  Martin Buchholz  <martin@xemacs.org>
8403
8404         * input-method-xlib.c: Warning suppression.
8405
8406 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
8407
8408         * mule-ccl.c: Sync up with Emacs 21.0.90.
8409         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
8410         Do nothing.
8411         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
8412         Likewise.
8413         (ccl_driver[WriteMultibyteChar2]): Bug fix.
8414         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
8415         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
8416         leading char belongs to official 2-dimensional charset.
8417         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
8418         write the given character as is.  Otherwise,
8419         if it is a multibyte char, convert it by
8420         non_ascii_set_charptr_emchar, then write it.
8421         (CCL_WRITE_STRING): Likewise.
8422         (ccl_get_compiled_code): New function.
8423         (setup_ccl_program): When ccl_prog is invalid,
8424         return -1.
8425         (Fregister_code_conversion_map): New function.
8426         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
8427
8428         * mule-ccl.h: Sync up with Emacs 21.0.90.
8429         (Fregister_ccl_program): export it.
8430
8431         * redisplay-msw.c (separate_textual_runs):
8432         If ccl program is not valid, don't do ccl conversion.
8433
8434         * redisplay-x.c (separate_textual_runs): Ditto.
8435
8436         * file-coding.c (Fmake_coding_system):
8437         When type is ccl and value is vector, register it
8438         with a proper symbol.  And checks whether the
8439         given ccl program is valid.
8440         (mule_decode): When calling ccl_driver, if src indicates
8441         NULL pointer, set an empty string instead.
8442         (mule_encode): Likewise.
8443
8444 2000-10-11  Martin Buchholz  <martin@xemacs.org>
8445
8446         The following large batch of changes gets us back to a state of
8447         C++ compilability.  Extbyte is now a char, which means that
8448         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
8449
8450         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
8451
8452         * sound.c (Fplay_sound): Type correctness.
8453
8454         * select-x.c (hack_motif_clipboard_selection): Type correctness.
8455         (x_get_window_property): Type correctness.
8456         (receive_incremental_selection): unsigned char ==> Extbyte
8457         (selection_data_to_lisp_data): unsigned char ==> Extbyte
8458         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
8459         (Fx_store_cutbuffer_internal): Type correctness.
8460
8461         * process-unix.c (try_to_initialize_subtty): Type correctness.
8462
8463         * objects-x.c (x_print_color_instance): Type correctness.
8464         (x_print_font_instance): Type correctness.
8465         (x_list_fonts): SExtbyte ==> Extbyte.
8466         (valid_x_font_name_p): SExtbyte ==> Extbyte.
8467         (x_find_charset_font): SExtbyte ==> Extbyte.
8468         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
8469         (truename_via_XListFonts): SExtbyte ==> Extbyte.
8470         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
8471         Use bufbyte_strcmp.
8472
8473         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
8474         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
8475         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
8476         (BYTE_C0_P): Use bit ops for char-signedness safety.
8477         (BYTE_C1_P): Use bit ops for char-signedness safety.
8478         (CHARSET_BY_LEADING_BYTE):
8479         (CHARSET_BY_ATTRIBUTES):
8480         Always use inline function.
8481         Use type_checking_assert.
8482         Hide chlook.
8483
8484         * mule-charset.c (non_ascii_charptr_copy_char):
8485         Modify to work with both ASCII and non-ASCII characters.
8486         Improve docs and variable names.
8487         Replace over-clever fall-through switch with a simple loop.
8488         (Lstream_get_emchar_1):
8489         Replace over-clever fall-through switch with a simple loop.
8490
8491         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
8492         Warning suppression.
8493
8494         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
8495         the return value of Lstream_getc, which could be EOF as well.
8496
8497         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
8498
8499         * lisp.h: Make Extbyte a char, not unsigned char, so that external
8500         APIs can be used on Extbytes without casts.  Risky!
8501         (SExtbyte): Remove.
8502         (UExtbyte): Remove.
8503
8504         * input-method-xlib.c (XIM_init_device):
8505         Use Xlib.h instead of IntrinsicP.h.
8506         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
8507         which will break in X11R7.
8508         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
8509         to call XRegisterIMInstantiateCallback with correct types.
8510
8511         * gui-x.c (button_item_to_widget_value): Type correctness.
8512
8513         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
8514
8515         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
8516         (xbm_instantiate_1): Type correctness.
8517         (BUILD_GLYPH_INST):  Type correctness.
8518
8519         * fileio.c (Fsubstitute_in_file_name): Type correctness.
8520
8521         * file-coding.c:
8522         (decode_coding_sjis):
8523         (decode_coding_big5):
8524         (decode_coding_ucs4):
8525         (decode_coding_utf8):
8526         (decode_coding_iso2022):
8527         (decode_coding_no_conversion):
8528         Make all decoding functions take an Extbyte * arg.
8529         (encode_coding_sjis):
8530         (encode_coding_big5):
8531         (encode_coding_ucs4):
8532         (encode_coding_utf8):
8533         (encode_coding_iso2022):
8534         (encode_coding_no_conversion):
8535         Make all encoding functions take a Bufbyte * arg.
8536         Use size_t instead of unsigned int for memory sizes.
8537         Only cast to unsigned char whenever dereferencing Extbyte *.
8538
8539         * doc.c (unparesseuxify_doc_string): Type correctness.
8540
8541         * console-x.c (split_up_display_spec):
8542         Rewrite without using details of internal string representation.
8543         (x_semi_canonicalize_device_connection): Type correctness.
8544
8545         * config.h.in:
8546         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
8547         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
8548         (HAVE_XFREE386): Removed.
8549
8550         * buffer.h (DEC_CHARPTR): `const' correctness.
8551         (bufbyte_strcmp): New.
8552         (bufbyte_memcmp): New.
8553
8554         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
8555
8556         * buffer.h (XCHAR_OR_CHAR_INT):
8557         Always use inline function.
8558         Remove redundant type checking assert() - XINT will abort quite nicely.
8559
8560 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
8561
8562         * search.c (Freplace_match): Set newtext to an empty string.
8563
8564 2000-10-10  Martin Buchholz  <martin@xemacs.org>
8565
8566         * s/decosf1-3.h: Remove #include of stropts.h
8567         * s/ptx.h: Remove #include of stropts.h
8568         * s/usg5-4.h: Remove #include of stropts.h
8569         * sysproc.h:
8570         * config.h.in:
8571         Use stropts.h, not sys/stropts.h.
8572         Use strtio.h, not sys/strtio.h.
8573
8574 2000-10-04  Martin Buchholz <martin@xemacs.org>
8575
8576         * XEmacs 21.2.36 is released.
8577
8578 2000-09-21  Andy Piper  <andy@xemacs.org>
8579
8580         * glyphs-x.c (x_redisplay_widget): make sure non-structural
8581         changes still involve copying the widget tree.
8582         (update_widget_face): make sure a change is register in the widget
8583         tree. Call update_tab_widget_face appropriately.
8584         (update_tab_widget_face): ditto.
8585         (x_tab_control_redisplay): make sure non-structural changes still
8586         involve copying the widget tree.
8587
8588 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
8589
8590         * lread.c (locate_file): Check the path element is non-nil.
8591
8592 2000-10-02  Martin Buchholz  <martin@xemacs.org>
8593
8594         * lisp.h: Warning suppression for SCO compilers.
8595
8596         * redisplay-tty.c (reset_tty_modes): Fix crash.
8597         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
8598
8599 2000-09-27  Martin Buchholz  <martin@xemacs.org>
8600
8601         Big signal/process handling overhaul.  Bugs fixed:
8602         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
8603         M-x comint-kill-subjob should work for both values nil and t of
8604         process-connection-type. It was broken on most platforms.
8605         Testing on Irix and Cygwin still needed.  Other plaforms tested.
8606         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
8607         * process-unix.c: Signal/Process handling overhaul.
8608         (pty_name): make 64 bytes, as `expect' does, for paranoia.
8609         (allocate_pty): Use all available modern methods of allocating
8610         ptys, falling back to old style BSD allocation as a last resort.
8611         Use allegedly more secure Unix98 pty allocation by default.
8612         (allocate_pty_the_old_fashioned_way): New. the last resort.
8613         (unix_create_process): Push ptem, ldterm, ttcompat where
8614         available.  Autoconfiscate.
8615         (try_to_initialize_subtty): New.
8616         (unix_kill_child_process): Proper signal handling for ptys on most
8617         platforms, using special knowledge of AIX, BSD, etc...
8618         (unix_create_process): Always disconnect_controlling_terminal() for
8619         subprocesses, whether using ptys or not.
8620         * process.h: Remove old getpt-dependent PTY code.
8621         * process.c (Fprocess_send_signal): New, obvious generic function.
8622         (decode_signal): New.
8623         (Finterrupt_process):
8624         (Fkill_process):
8625         (Fquit_process):
8626         (Fstop_process):
8627         (Fcontinue_process):
8628         (Fsignal_process): Use decode_signal.
8629         (process_send_signal):
8630         Many docstring corrections.
8631         Allow any signal to be sent to a process object.
8632         * config.h.in: Add symbols for big signal/process overhaul.
8633         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
8634         * sysproc.h: Include process-related headers, where available:
8635         sys/stropts.h sys/strtio.h pty.h libutil.h
8636         * s/irix4-0.h:
8637         * s/irix5-0.h:
8638         * s/cygwin32.h:
8639         * s/gnu.h:
8640         * s/linux.h:
8641         * s/hpux.h:
8642         * s/aix3-1.h:
8643         Remove old S&M pty stuff.
8644         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
8645         * systty.h: Simplify cpp hackery, improve comments.
8646         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
8647
8648         * editfns.c (Fformat_time_string):
8649         Be a little more paranoid with the return value of ctime.
8650
8651         * fileio.c (check_executable):
8652         (check_writable):
8653         Use symbolic constants X_OK, W_OK.
8654
8655         * console-x.c (split_up_display_spec): Fix a warning.
8656
8657 2000-10-02  Martin Buchholz  <martin@xemacs.org>
8658
8659         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
8660         * ntproc.c (sys_spawnve): make_string ==> build_string
8661         Small clarity improvements.
8662
8663 2000-09-30  Martin Buchholz  <martin@xemacs.org>
8664
8665         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
8666
8667         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
8668
8669         * config.h.in (HAVE_STRCASECMP): Remove.
8670
8671 2000-09-29  Martin Buchholz  <martin@xemacs.org>
8672
8673         * redisplay-output.c (redisplay_output_pixmap):
8674         Cleaner and possibly more 64-bit correct code.
8675
8676 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
8677
8678         * dumper.c (pdump_load_finish): move restoration of
8679         `noninteractive1' to emacs.c (main_1).
8680         * emacs.c (main_1): protect LISP-visible command-line flags
8681         from pdump_load().
8682
8683 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
8684
8685         * Makefile.in.in (versionclean):  Use EXE_TARGET and
8686         DUMP_TARGET instead of literal program names.
8687
8688 2000-09-20  Martin Buchholz  <martin@xemacs.org>
8689
8690         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
8691
8692 2000-09-19  Martin Buchholz  <martin@xemacs.org>
8693
8694         * *: Spelling mega-patch
8695
8696 2000-09-19  Martin Buchholz  <martin@xemacs.org>
8697
8698         * fns.c (bad_bad_turtle):
8699         Delete "Eek!" comment, since we fixed the bug to which it refers.
8700
8701 2000-09-16  Martin Buchholz  <martin@xemacs.org>
8702
8703         * alloca.c: Replace REGISTER with register.
8704
8705 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
8706
8707         * file-coding.c (ucs_to_char): Use countof.
8708
8709 2000-09-16  Martin Buchholz  <martin@xemacs.org>
8710
8711         * file-coding.c: (ucs_to_char):
8712         (complex_vars_of_file_coding):
8713         Use countof instead of sizeof.
8714         Use CHECK_NATNUM instead of CHECK_INT.
8715
8716         * sysdep.c (strcasecmp): Remove.
8717         * device-x.c (ascii_strcasecmp): New.
8718         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
8719         Avoid using non-standard non-portable strcasecmp.
8720
8721 2000-09-16  Martin Buchholz  <martin@xemacs.org>
8722
8723         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
8724         * font-lock.c: remove reference to emacsfns.h.
8725         * search.c: small doc improvement.
8726         * event-Xt.c: correct file names in comments.
8727         * console-x.h Correct file names in comments.
8728         * frame.c: Correct file names in comments.
8729         * event-stream.c: remove Energize from comments.
8730
8731 2000-09-15  Martin Buchholz  <martin@xemacs.org>
8732
8733         * symeval.h (DEFERROR_STANDARD):
8734         (DEFERROR):
8735         (DEFSYMBOL):
8736         (DEFSYMBOL_NO_DUMP):
8737         (DEFSYMBOL_MULTIWORD_PREDICATE):
8738         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
8739         (DEFKEYWORD):
8740         The construct &##name is not sensible C.
8741         Fixes compilation errors with Unixware native compiler.
8742
8743 2000-09-14  Martin Buchholz  <martin@xemacs.org>
8744
8745         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
8746         (next_frame_internal): Removed.  We now just have next_frame.
8747         (next_frame):
8748         Write a simpler and cleaner one-pass algorithm.
8749         Remove called_from_delete_device arg and #ifdefed-out code.
8750         (previous_frame):
8751         Renamed from prev_frame.  Update callers.
8752         Cleaned up to have an analogous implementation to next_frame.
8753         (other_visible_frames_internal): Remove the
8754         called_from_delete_device bogus arg, and hence, remove this
8755         function.  Just use other_visible_frames().
8756
8757         * window.c (Fnext_window):
8758         Prettify docstring.
8759         Since next_frame() is guaranteed to return a frame, remove check
8760         for nil inserted in previous patch.
8761         (Fprevious_window):
8762         Prettify docstring.
8763         Make code look more like Fnext_window.
8764         (window_loop):
8765         Respect the `console' arg when iterating through windows.
8766         Fixes bug: (get-buffer-window buffer t device) not respecting
8767         the `device' arg.
8768         This function needs more work, as others have pointed out.
8769
8770         * frame.h: Rename prev_frame to previous_frame.
8771         device_matches_console_spec no longer takes a `frame' arg.
8772
8773         * s/gnu.h:
8774         * s/linux.h:
8775         * s/hpux.h:
8776         Use EMACS_BLOCK_SIGNAL instead of sigblock.
8777         From "Golubev I. N." <gin@mo.msk.ru>.
8778
8779         * make-src-depend: Fix typo.
8780
8781 2000-09-13  Martin Buchholz  <martin@xemacs.org>
8782
8783         * window.c (Fnext_window):
8784         next_frame() might return nil, not a frame.
8785         Fixes this crash:
8786         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
8787
8788         * frame.c (next_frame_internal):
8789         We've passed a frame if we've passed its device.
8790         Fixes this crash:
8791         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
8792 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
8793
8794 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
8795
8796         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
8797         Allow option to suppress accelerators in menu/dialog items.
8798         (populate_or_checksum_helper): Pass dialog title through above.
8799
8800 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
8801
8802         * event-msw.c (mswindows_key_to_emacs_keysym):
8803         Add "pause" key, fix "menu" key.
8804
8805 2000-09-09  Martin Buchholz  <martin@xemacs.org>
8806
8807         * eval.c (reinit_vars_of_eval):
8808         Increase max_lisp_eval_depth to 1000,
8809         required for thai-xtis.el to byte-compile under some circumstances.
8810
8811 2000-09-04  Martin Buchholz  <martin@xemacs.org>
8812
8813         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
8814         From Kenichi Handa.
8815
8816 2000-09-01  Martin Buchholz  <martin@xemacs.org>
8817
8818         * make-src-depend: Make the generated Makefiles smaller.
8819
8820         * s/hpux.h (SETUP_SLAVE_PTY):
8821         Provide a %d in the format string for the errno argument.
8822
8823         * editfns.c (Ftemp_directory):
8824         Warning fix.
8825         Avoid buffer overrun on very long file name.
8826
8827         * input-method-xlib.c (XIM_init_device):
8828         6th parameter of XRegisterIMInstantiateCallback has different
8829         pointer types on different OSes, so simply cast to (void *).
8830
8831         * unexhp9k800.c: Warning fixes.  Fiddly changes.
8832
8833         * sysdll.c (dll_open):
8834         shl_load will hang hard if passed a NULL filename.
8835         Simply return NULL for compatibility with dlopen.
8836         * sysdll.c: Conform to XEmacs coding standards.
8837
8838         * sysdep.c (get_pty_max_bytes):
8839         Support pty input lines longer than 512 bytes on HP-UX 10.20.
8840
8841 2000-08-31  Martin Buchholz  <martin@xemacs.org>
8842
8843         * tooltalk.c: Add #include <syssignal.h>
8844
8845 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
8846
8847         * s/hpux.h: Don't use undefined function sigunblock().
8848
8849 2000-08-31  Martin Buchholz  <martin@xemacs.org>
8850
8851         * config.h.in: Add HAVE_BALLOON_HELP.
8852         * emacs.c: Use HAVE_BALLOON_HELP.
8853         * Makefile.in.in (x_objs):
8854         Make Balloon Help conditional on finding shape.h.
8855
8856 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
8857
8858         * syntax.c (regex_emacs_buffer_p): New variable.
8859         * syntax.h (regex_emacs_buffer_p): extern.
8860         * search.c (looking_at_1):
8861         (string_match_1):
8862         (fast_string_match):
8863         (search_buffer): Set regex_emacs_buffer_p.
8864         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
8865         when before_dot, at_dot, after_dot.
8866
8867 2000-08-23  Andy Piper  <andy@xemacs.org>
8868
8869         * gui-x.c (popup_selection_callback): Only set action_occurred
8870         when we really have an image instance.
8871         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
8872
8873 2000-08-23  Andy Piper  <andy@xemacs.org>
8874
8875         * gui-msw.c (mswindows_handle_gui_wm_command): set
8876         action_occurred.
8877         * gui-x.c (popup_selection_callback): ditto.
8878
8879         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
8880         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
8881         (struct Lisp_Image_Instance): add action_occurred flag.
8882
8883         * glyphs.c (redisplay_subwindow): use action_occurred flag.
8884         (image_instance_changed): ditto.
8885         (reset_frame_subwindow_instance_cache): only unmap windows - do
8886         not remove them from the cache also.
8887
8888         * glyphs-widget.c (tab_control_update): better debug.
8889         (progress_gauge_update): ditto.
8890         (layout_update): ditto.
8891         (layout_instantiate): ditto.
8892         (tab_control_order_only_changed): cope with null pending items.
8893
8894         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
8895         debug. Force selection of an item when an action occurred. Cope
8896         with null pending_items.
8897         (mswindows_progress_gauge_redisplay): better debug.
8898         * glyphs-x.c (x_tab_control_redisplay): ditto.
8899
8900         * redisplay.c (redisplay_frame): reset the frame cache if the
8901         frame is garbaged.
8902
8903         * window.c (Fset_window_configuration): potentially re-enable
8904         frame cache reset.
8905         (window_unmap_subwindows): need to finalize instances here since
8906         it is only used in mark_window_as_deleted.
8907
8908 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
8909
8910         * nas.c (SndOpenDataForReading):
8911         nas.c (WaveOpenDataForReading):
8912         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
8913         Somehow escaped from the 2000-08-14 patch.
8914
8915 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
8916
8917         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
8918         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
8919
8920 2000-08-21  Andy Piper  <andy@xemacs.org>
8921
8922         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
8923         window if it is not already displayed.
8924
8925         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
8926         it is not already displayed.
8927
8928         * window.c (Fset_window_configuration): don't reset the frame
8929         cache.
8930
8931         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
8932         instances from the frame cache if we are actually finalizing them.
8933         (reset_frame_subwindow_instance_cache): reset frame cache only
8934         after unmapping everything.
8935         (map_subwindow): set displayed flag after mapping.
8936
8937 2000-08-21  Martin Buchholz  <martin@xemacs.org>
8938
8939         * data.c (indirect_function):
8940         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
8941
8942         * eval.c (function_argcount):
8943         Use original function when signaling errors.
8944
8945 2000-08-18  Andy Piper  <andy@xemacs.org>
8946
8947         * frame.c (delete_frame_internal): use new
8948         free_frame_subwindow_instances name.
8949
8950         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
8951         (add_tab_item): make return type correct.
8952         (mswindows_tab_control_instantiate): assert index of tab.
8953         (mswindows_tab_control_redisplay): Re-code to use
8954         gui_item_equal_sans_selected and gui_item_list_find_selected.
8955
8956         * glyphs-widget.c (tab_control_update): Correct comment.
8957
8958         * window.c (window_unmap_subwindows): use new
8959         unmap_subwindow_instance_cache_mapper.
8960         (window_unmap_subwindows_cache_mapper): deleted.
8961         (Fset_window_configuration): comparisons should now be with
8962         EQ. Preserve the subwindow instance cache across configuration
8963         changes.
8964         (allocate_window): ditto.
8965         (make_dummy_parent): ditto.
8966
8967         * glyphs.c (free_frame_subwindow_instances): rename from
8968         free_frame_subwindow_instance_cache. finalize all instances rather
8969         than just those in the display cache.
8970         (finalize_all_subwindow_instances): walk windows unmapping and
8971         finalizing subwindows.
8972         (unmap_subwindow_instance_cache_mapper): moved from
8973         window.c. Allow finalization as well as unmapping.
8974
8975         * gui.c (gui_item_list_find_selected): new function.
8976
8977         * gui.h (gui_item_list_find_selected): declare.
8978
8979         * glyphs-x.c (x_tab_control_redisplay): pick tab
8980         explicitly. Re-code to use gui_item_equal_sans_selected and
8981         gui_item_list_find_selected.
8982
8983         * glyphs-x.h: add lwlib-utils.h
8984
8985         * buffer.c (Frecord_buffer): undo previous change.
8986
8987 2000-08-09  Vin Shelton  <acs@xemacs.org>
8988
8989         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
8990         possible.  Create temporary files more securely.  The patch was
8991         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
8992         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
8993         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
8994         for details.
8995
8996 2000-08-07  Ben Wing  <ben@xemacs.org>
8997
8998         * getloadavg.c: remove duplicate (and windows-breaking)
8999         includes of fcntl.h and sys/file.h.
9000
9001         * nt.c: remove duplicate getloadavg() definition.
9002
9003         * sysdll.h (Qdll_filename_encoding): add missing stand-in
9004         encodings.
9005
9006 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
9007
9008         * eval.c (function_argcount): If function needs to be autoloaded
9009         actually use the loaded definition.
9010         GCPRO function.
9011
9012 2000-08-05  Ben Wing  <ben@xemacs.org>
9013
9014         * getloadavg.c: add prototype for getloadavg().  remove
9015         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
9016         of the code).  remove duplicate header includes.
9017
9018         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
9019
9020         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
9021         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
9022         useful load average.
9023
9024         * alloc.c (reinit_alloc_once_early): removed references to
9025         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
9026         the lisp vars are the only things referencing the malloc_sbrk_*
9027         vars, and they were already if 0'd out.  these vars only exist
9028         in the older malloc.c, which is basically unused, and they're
9029         only for informational purposes.
9030
9031         * m\*.h: removed useless VIRT_ADDR_VARIES.
9032
9033         * m\powerpc.h: removed stray NO_ARG_ARRAY.
9034
9035 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9036
9037         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
9038         color if the image is a mono pixmap.
9039
9040 2000-07-30  Ben Wing  <ben@xemacs.org>
9041
9042         * Makefile.in.in (release):
9043         Remove stray @.
9044
9045         * buffer.c (directory_is_current_directory):
9046         * dired-msw.c (mswindows_get_files):
9047         * dired.c:
9048         * dired.c (Fdirectory_files):
9049         * dired.c (file_name_completion_stat):
9050         * dired.c (Ffile_attributes):
9051         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
9052         preprocessor tricks, to avoid problems on some machines
9053         (e.g. SCO).
9054
9055         * callproc.c (egetenv): GC docs.
9056
9057         * console-msw.h:
9058         * console-msw.h (struct mswindows_dialog_id):
9059         * lrecord.h (lrecord_type):
9060         New object for use with MSW dialogs.
9061
9062         * console.h (struct console_methods):
9063         New enable/disable frame methods, for proper modal dialogs.
9064
9065         * device-msw.c (msprinter_default_printer): Fix to follow
9066         proper Mule conventions.
9067
9068         * device-msw.c:
9069         * device-msw.c (signal_open_printer_error):
9070         * device-msw.c (msprinter_init_device):
9071         * device-msw.c (ensure_not_printing):
9072         * device-msw.c (plist_get_margin):
9073         * device-msw.c (Fmsprinter_select_settings):
9074         * device-msw.c (finalize_devmode):
9075         * device-msw.c (Fmsprinter_settings_despecialize):
9076         * device-msw.c (signal_enum_priner_error):
9077         * extents.c (decode_extent):
9078         * extents.c (decode_map_extents_flags):
9079         * extents.c (decode_extent_at_flag):
9080         * extents.c (Fextent_at):
9081         * extents.c (Fextents_at):
9082         * extents.c (symbol_to_glyph_layout):
9083         [[[[2]]]] Use structured errors.
9084
9085         * dialog-msw.c:
9086         * dialog-msw.c (mswindows_is_dialog_msg):
9087         * dialog-msw.c (mark_mswindows_dialog_id):
9088         * dialog-msw.c (dialog_proc):
9089         * dialog-msw.c (handle_question_dialog_box):
9090         * dialog-msw.c (syms_of_dialog_mswindows):
9091         Define new object to clean up marking; use it as a dialog identifier.
9092         Call new delete-dialog-box-hook.
9093
9094         * dialog-x.c (dbox_selection_callback):
9095         * dialog-x.c (dbox_descriptor_to_widget_value):
9096         * dialog-x.c (x_make_dialog_box_internal):
9097         Call new delete-dialog-box-hook.
9098         Return an id.
9099
9100         * dialog.c:
9101         * dialog.c (syms_of_dialog):
9102         * dialog.c (vars_of_dialog):
9103         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
9104
9105         * eval.c:
9106         * eval.c (signal_call_debugger):
9107         when noninteractive, output stack traces on the console instead
9108         of in a (never-seen) buffer.
9109
9110         * eval.c (signal_type_error):
9111         * eval.c (invalid_argument_2):
9112         * lisp.h:
9113         new funs for use w/structured errors.
9114
9115         * event-Xt.c:
9116         * event-Xt.c (x_to_emacs_keysym):
9117         * event-Xt.c (describe_event):
9118         * event-Xt.c (emacs_Xt_event_handler):
9119         * event-Xt.c (vars_of_event_Xt):
9120         * event-msw.c:
9121         * event-msw.c (mswindows_wnd_proc):
9122         * event-msw.c (vars_of_event_mswindows):
9123         rename {x,mswindows}-debug-events to debug-{}-events for
9124         consistency with other debug-foo variables.
9125
9126         * event-stream.c:
9127         document next-event more clearly.
9128
9129         * fileio.c (Ffile_name_directory):
9130         * fileio.c (Ffile_name_nondirectory):
9131         * fileio.c (Funhandled_file_name_directory):
9132         * fileio.c (file_name_as_directory):
9133         * fileio.c (Ffile_name_as_directory):
9134         * fileio.c (directory_file_name):
9135         * fileio.c (Fdirectory_file_name):
9136         * fileio.c (Fmake_temp_name):
9137         * fileio.c (Ffile_truename):
9138         * fileio.c (Fsubstitute_in_file_name):
9139         * fileio.c (expand_and_dir_to_file):
9140         * fileio.c (barf_or_query_if_file_exists):
9141         * fileio.c (check_executable):
9142         * fileio.c (Ffile_exists_p):
9143         * fileio.c (Ffile_writable_p):
9144         * fileio.c (Ffile_directory_p):
9145         * fileio.c (Ffile_regular_p):
9146         * fileio.c (Ffile_modes):
9147         * fileio.c (Ffile_newer_than_file_p):
9148         * fileio.c (Fverify_visited_file_modtime):
9149         * fileio.c (Fset_visited_file_modtime):
9150         * fileio.c (auto_save_1):
9151         (1). (2).
9152         fix up gcpro's.
9153
9154         * frame-msw.c:
9155         * frame-msw.c (mswindows_init_frame_1):
9156         * frame-msw.c (mswindows_enable_frame):
9157         * frame-msw.c (error_frame_unsizable):
9158         * frame-msw.c (msprinter_init_frame_1):
9159         * frame-msw.c (msprinter_init_frame_3):
9160         * frame-msw.c (console_type_create_frame_mswindows):
9161         (2).
9162         implement new enable/disable frame methods.
9163
9164         * frame-x.c:
9165         * frame-x.c (x_enable_frame):
9166         * frame-x.c (console_type_create_frame_x):
9167         implement new enable/disable frame methods.
9168
9169         * frame.c:
9170         * frame.c (Fdisable_frame):
9171         * frame.c (syms_of_frame):
9172         * frame.h (struct frame):
9173         implement new enable/disable frame methods/functions.
9174
9175         * general-slots.h:
9176         add initial-focus.
9177
9178         * glyphs-msw.c (mswindows_widget_instantiate):
9179         comment that initial-focus should be implemented.
9180
9181         * glyphs-widget.c:
9182         * glyphs-widget.c (check_valid_instantiator):
9183         * glyphs-widget.c (check_valid_orientation):
9184         * glyphs-widget.c (check_valid_tab_orientation):
9185         * glyphs-widget.c (check_valid_justification):
9186         * glyphs-widget.c (check_valid_border):
9187         * glyphs-widget.c (check_valid_callback):
9188         * glyphs-widget.c (check_valid_int_or_function):
9189         * glyphs-widget.c (check_valid_string_or_vector):
9190         * glyphs-widget.c (check_valid_item_list_1):
9191         * glyphs-widget.c (widget_validate):
9192         * glyphs-widget.c (combo_box_validate):
9193         * glyphs-widget.c (widget_instantiate):
9194         * glyphs-widget.c (syms_of_glyphs_widget):
9195         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
9196         * glyphs-widget.c (image_instantiator_combo_box):
9197         * glyphs-widget.c (image_instantiator_scrollbar):
9198         * glyphs-widget.c (image_instantiator_tab_control):
9199         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
9200         (2).
9201         support (unimplemented) keyword initial-focus.
9202         reindent long macros.
9203
9204         * glyphs-x.c (x_redisplay_widget):
9205         * glyphs-x.c (x_button_instantiate):
9206         * glyphs-x.c (x_button_redisplay):
9207         * glyphs-x.c (x_progress_gauge_instantiate):
9208         * glyphs-x.c (x_edit_field_instantiate):
9209         * glyphs-x.c (x_combo_box_instantiate):
9210         * glyphs-x.c (x_tab_control_instantiate):
9211         * glyphs-x.c (x_label_instantiate):
9212         * gui-x.c:
9213         * gui-x.c (button_item_to_widget_value):
9214         * gui-x.c (gui_items_to_widget_values_1):
9215         * gui-x.c (gui_item_children_to_widget_values):
9216         * gui-x.c (gui_items_to_widget_values):
9217         * gui-x.h:
9218         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9219         add new flag to gui-parsing routines to indicate whether
9220         accelerator specs should be supported.
9221
9222         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
9223
9224         * glyphs.h (struct Lisp_Image_Instance):
9225         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
9226         add initial-focus flag.
9227
9228         * gui.c:
9229         * gui.c (syms_of_gui):
9230         * gui.c (vars_of_gui):
9231         clean up menu-no-selection-hook.
9232
9233         * gui.h:
9234         support delete-dialog-box-hook.
9235
9236         * lread.c (Fload_internal):
9237         * lread.c (locate_file_in_directory_mapper):
9238         (1).
9239
9240         * lrecord.h:
9241         * lrecord.h (struct toolbar_button):
9242         * lrecord.h (syms_of_toolbar):
9243         document how to create a new object.
9244
9245         * menubar-msw.c (mswindows_char_is_accelerator):
9246         may be called on frames w/o menus.
9247
9248         * menubar.c (vars_of_menubar):
9249         clean up :filter docs.
9250
9251         * nt.c (readdir):
9252         * ntproc.c:
9253         (1).
9254
9255         * process-nt.c:
9256         * process-nt.c (validate_signal_number):
9257         * process-nt.c (signal_cannot_launch):
9258         * process-nt.c (nt_create_process):
9259         * process-nt.c (nt_send_process):
9260         * process-nt.c (nt_kill_child_process):
9261         * process-nt.c (nt_open_network_stream):
9262         * process-nt.c (syms_of_process_nt):
9263         (2).
9264         delete quote-handling.  call new lisp code that does it better.
9265
9266         * process-unix.c (connect_to_file_descriptor):
9267         * process-unix.c (allocate_pty):
9268         * process-unix.c (unix_send_process):
9269         * process-unix.c (unix_kill_child_process):
9270         * process-unix.c (unix_open_network_stream):
9271         * process-unix.c (unix_open_multicast_group):
9272         (1). (2).
9273
9274         * process.c:
9275         * process.c (Fstart_process_internal):
9276         (2).  need to canonicalize process path even if absolute.
9277
9278         * select-msw.c (symbol_to_ms_cf):
9279         * select-msw.c (ms_cf_to_symbol):
9280         * select-msw.c (cf_is_autofreed):
9281         * select-msw.c (mswindows_destroy_selection):
9282         * select.c:
9283         * select.c (syms_of_select):
9284         * select.h:
9285         support dibv5, fix bugs. (from Mike Alexander)
9286
9287         * select.c (Fget_selection_internal):
9288         * select.c (select_convert_out):
9289
9290         * sysdep.c:
9291         * sysdep.c (xemacs_stat):
9292         renamed.
9293
9294         * sysdep.c (mkdir):
9295         * sysdep.c (rmdir):
9296         but keep original stat() here because we provide encapsulation
9297         around these funs.
9298
9299         * sysfile.h:
9300         * sysfile.h (fstat):
9301         remove stat garbage.
9302
9303         * syswindows.h:
9304         fix X/MSW conflict.
9305         don't include tchar.h.  it's inappropriate because it makes
9306         compile-time distinctions when we want runtime distinctions.
9307         (we provide our own tchar replacements)
9308
9309         * toolbar.c:
9310         use default object printer for toolbar-button.
9311
9312         * unexcw.c:
9313         make sure we don't encapsulate.
9314
9315         * window.c (vars_of_window):
9316         emphasize that temp-buffer-show-hook is obsolete.
9317
9318 2000-08-05  Martin Buchholz  <martin@xemacs.org>
9319
9320         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
9321         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
9322
9323         * events.c (Fevent_timestamp_lessp):
9324         Not 64-bit clean.  Use EMACS_INT, not int.
9325
9326 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
9327
9328         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
9329         unsigned int and changed the last enum to
9330         lrecord_type_last_built_in_type.
9331         (lrecord_implementations_table): changed prototype to know how
9332         long the array is supposed to be.
9333         (lrecord_type_count): new unsigned int to keep track of the
9334         current number of lisp lrecord types.
9335         (DEFINE_EXTERNAL_LRECORD):
9336         (DECLARE_EXTERNAL_LRECORD): Added these two for external
9337         dynamic-modules to declare new lisp types. They are the same
9338         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
9339         int for each new type, and increment lrecord_type_count by 1.
9340
9341         * alloc.c (lrecord_implementations_table): Changed to reference
9342         lrecord_type_last_built_in_type for the size of the array.
9343         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
9344
9345 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
9346
9347         * glyphs.h (check_valid_item_list): Renamed from
9348         check_valid_item_list_1.
9349
9350 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
9351
9352         * select.c (Qselect_coerce): New.
9353         * select.c (Vselection_coercion_alist): New.
9354         * select.c (syms_of_select): Declare.
9355         * select.c (get-selection-internal): Use it.
9356         Use the new select-coerce functionality.
9357
9358         * select.c (select_coerce): New.
9359         * select.h (select_coerce): Declare.
9360         New function to coerce one type of data into another.
9361
9362 2000-08-03  Martin Buchholz  <martin@xemacs.org>
9363
9364         * callproc.c (Fcall_process_internal):
9365         (Fcall_process_internal):
9366         * process-unix.c (unix_create_process):
9367         Save and restore the value of errno, so that error messages are accurate.
9368
9369 2000-08-01  Martin Buchholz  <martin@xemacs.org>
9370
9371         * elhash.c (print_hash_table):
9372         Fix printing of hash tables to also use `key-and-value' instead of `t'.
9373         Prettify docstrings and indentation.
9374
9375 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
9376
9377         * window.c (Fwindow_pixel_edges): Subtract frame border and
9378         gutter size.
9379
9380 2000-07-31  Andy Piper  <andy@xemacs.org>
9381
9382         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
9383         will acknowledge the change.
9384
9385         * glyphs.h: declare tab_control_order_only_changed.
9386
9387         * glyphs-x.c (x_tab_control_redisplay): use
9388         tab_control_order_only_changed.
9389
9390         * glyphs-widget.c (tab_control_order_only_changed): new function.
9391
9392         * glyphs-msw.c (mswindows_tab_control_redisplay): use
9393         tab_control_order_only_changed.
9394
9395         * gui.c (gui_item_equal_sans_selected): new function.
9396         (gui_item_equal): use it.
9397
9398         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
9399         :properties in favor of :items..
9400
9401         * glyphs-widget.c (check_valid_item_list): rename from
9402         check_valid_item_list_1.
9403         (check_valid_item_list_1): renamed.
9404         (combo_box_validate): deprecate :properties in favor of :items.
9405         (widget_instantiate): ditto.
9406         (tab_control_update): ditto.
9407         (image_instantiator_combo_box): ditto.
9408         (image_instantiator_tree_view): ditto.
9409         (image_instantiator_tab_control): ditto.
9410         (layout_post_instantiate): remove dead code.
9411
9412         * print.c (debug_print_no_newline): only write to debugger if in
9413         WIN32_NATIVE.
9414
9415         * elhash.c (Fmake_hash_table): update doc string.
9416
9417         * event-msw.c (mswindows_wnd_proc): don't allow processing of
9418         messages whilst in GC. This at least stops XEmacs crashing but has
9419         the potential for wierd behaviour.
9420
9421 2000-07-31  Martin Buchholz  <martin@xemacs.org>
9422
9423         * config.h.in:
9424         Make existence of s&m files optional.
9425
9426         * s/bsd386.h: Remove HAVE_GETLOADAVG.
9427         * s/freebsd.h: Remove HAVE_GETLOADAVG.
9428         * s/gnu.h: Remove HAVE_GETLOADAVG.
9429         * s/netbsd.h: Remove HAVE_GETLOADAVG.
9430         * s/sol2.h: Remove HAVE_GETLOADAVG.
9431         * lisp.h: Remove getloadavg() declaration.
9432         * fns.c:
9433         Include <sys/loadavg.h> if available.
9434         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
9435         * config.h.in:  Group together getloadavg()-related macros.
9436         Use only configure-time tests to detect getloadavg().
9437
9438 2000-07-30  Martin Buchholz  <martin@xemacs.org>
9439
9440         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
9441
9442 2000-07-25  Andy Piper  <andy@xemacs.org>
9443
9444         * syswindows.h: add tchar.h for native builds.
9445
9446         * frame.c (syms_of_frame): remove set-glyph-image.
9447
9448         * general-slots.h: add Qset_glyph_image.
9449
9450         * glyphs-widget.c (layout_update): add domain arg to
9451         set-glyph-image.
9452         (syms_of_glyphs_widget): remove set-glyph-image.
9453
9454 2000-07-23  Ben Wing  <ben@xemacs.org>
9455
9456         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
9457         Vpopup_frame_list.
9458
9459 2000-07-22  Andy Piper  <andy@xemacs.org>
9460
9461         * symsinit.h: add syms_of_win32().
9462
9463         * gui-msw.c (syms_of_gui_mswindows): remove
9464         Fmswindows_shell_execute.
9465         (Fmswindows_shell_execute): moved to win32.c.
9466
9467         * emacs.c (main_1): add syms_of_win32 ().
9468
9469         * win32.c (init_potentially_nonexistent_functions): rewrite in
9470         compiler-friendly terms.
9471         (Fmswindows_shell_execute): move here from gui-msw.c.
9472         (syms_of_win32): new.
9473
9474         * device-msw.c (Fmswindows_printer_list): clean up args to
9475         EnumPrinters.
9476         Don't include tchar under cygwin or mingw.
9477         (msprinter_default_printer): make cygwin-friendly.
9478
9479 2000-07-21  Andy Piper  <andy@xemacs.org>
9480
9481         * glyphs-widget.c (image_instantiator_tree_view): use tab
9482         control's update function.
9483         (layout_property): new function. Retrieve items.
9484
9485         * glyphs-msw.c (mswindows_tree_view_redisplay): new
9486         function. Re-populate the tree view from the pending items.
9487
9488         * glyphs.c (instantiate_image_instantiator): Make sure the domain
9489         is designated the parent if the domain is an image instance. This
9490         is needed so that dirtiness can be cascade up the hierarchy and
9491         thus for layout children to be redisplayed correctly.
9492         (allocate_image_instance): rename glyph -> parent.
9493
9494         * redisplay.h: change redisplay_output_layout signature.
9495
9496         * redisplay-msw.c (mswindows_output_display_block): use domain
9497         arg.
9498
9499         * redisplay-x.c (x_output_display_block): use domain arg.
9500
9501 2000-07-10  Andy Piper  <andy@xemacs.org>
9502
9503         * window.c (Fset_window_configuration): add comment.
9504
9505         * redisplay-output.c (compare_runes):
9506         (redisplay_output_subwindow): redisplay rather than update subwindow.
9507         (redisplay_output_layout): ditto.
9508
9509         * redisplay-msw.c (mswindows_frame_output_end):
9510         (mswindows_frame_output_end): make defer window pos optional.
9511
9512         * lisp.h: add Flast.
9513
9514         * glyphs.h (struct image_instantiator_methods): add dest_mask top
9515         normalize method. Change update method to be for changed
9516         instantiators. Add redisplay method. Change signature of layout
9517         method.
9518         (struct Lisp_Image_Instance): add instantiator.
9519         (IMAGE_INSTANCE_INSTANTIATOR): new.
9520         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
9521         (XIMAGE_INSTANCE_INSTANTIATOR): new.
9522         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
9523
9524         * glyphs.c:
9525         (find_instantiator_differences): new function.
9526         (Fset_instantiator_property): new convenience function.
9527         (check_image_instance_structure): strictly check for vector
9528         instantiators.
9529         (normalize_image_instantiator): make non-static.
9530         (instantiate_image_instantiator): pass on dest_mask and use new
9531         signatures for image_instance_layout and friends.
9532         (mark_image_instance): mark the instantiator. Mark the subwindow
9533         face not the widget face.
9534         (image_instance_equal): add instantiator.
9535         (image_instance_hash): ditto.
9536         (allocate_image_instance): ditto.
9537         (Fset_image_instance_property): removed.
9538         (Fimage_instance_file_name): ditto.
9539         (Fcolorize_image_instance): ditto.
9540         (image_instance_layout): add offsets to be set.
9541         (update_image_instance): new function. update an image instance
9542         from its changed instantiator.
9543         (inherit_normalize): add dest_mask.
9544         (xbm_normalize): ditto.
9545         (xface_normalize): ditto.
9546         (xpm_normalize): ditto.
9547         (text_update): set_property -> update.
9548         (image_instantiate): use the glyph identity as a hash key, not the
9549         instantiator.
9550         (glyph_width): use new image_instance_layout signature.
9551         (glyph_ascent): ditto.
9552         (glyph_descent): ditto.
9553         (glyph_height): ditto.
9554         (glyph_query_geometry): ressurrect.
9555         (glyph_layout): ditto.
9556         (redisplay_subwindow): update -> redisplay.
9557         (syms_of_glyphs): add Fset_instantiator_property.
9558         (image_instantiator_format_create): set_property -> update.
9559
9560         * glyphs-x.c:
9561         (autodetect_normalize): add dest_maks to signature.
9562         (x_redisplay_subwindow): update -> redisplay.
9563         (x_redisplay_widget): ditto.
9564         (x_button_redisplay): ditto.
9565         (x_progress_gauge_redisplay): ditto.
9566         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
9567         stacking order.
9568         (console_type_create_glyphs_x): update -> redisplay.
9569         (image_instantiator_format_create_glyphs_x): ditto.
9570
9571         * glyphs-widget.c:
9572         (check_valid_instantiator): disallow glyphs in the instantiator,
9573         they must now be vectors.
9574         (check_valid_instantiator_list): ditto.
9575         (glyph_instantiator_to_glyph): use internal symbol rather than
9576         intern.
9577         (widget_update): renamed from widget_set_property. Call cascaded
9578         update methods.
9579         (redisplay_widget): renamed from update_widget.
9580         (widget_layout): image_instance_layout now takes position as well
9581         as size.
9582         (widget_normalize): ditto.
9583         (widget_instantiate): ditto.
9584         (tab_control_query_geometry) ditto.:
9585         (tab_control_update): renamed from tab_control_set_property.
9586         (progress_gauge_update): set_property -> update.
9587         (layout_normalize): rewrite so that child instantiators are
9588         normalized also.
9589         (layout_update): new function. Create glyphs from the normalized
9590         children and cope with any other layout keywords. We do not
9591         instantiate children here that will be take care of by
9592         redisplay_output_layout.
9593         (layout_instantiate): call layout_update and not much else.
9594         (layout_post_instantiate): not sure whether this is needed
9595         anymore.
9596         (layout_query_geometry): query glyph geometry rather than
9597         image_instance geometry.
9598         (layout_layout): set offsets from pass in parameters. Use glyph
9599         geometry and layout functions rather than image instance ones.
9600         (native_layout_layout): ditto.
9601         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
9602         (image_instantiator_widget): set_property -> update.
9603         (image_instantiator_buttons): ditto.
9604         (image_instantiator_progress_guage): ditto.
9605         (image_instantiator_tab_control): ditto.
9606         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
9607         (image_instantiator_layout): add update method.
9608
9609         * glyphs-msw.c (bmp_normalize):
9610         (mswindows_resource_normalize): add dest_mask so that it can be
9611         proprogated by layout_normalize.
9612         (begin_defer_window_pos): make optional because it may not be the
9613         right thing to do and it introduces differences with X.
9614         (mswindows_unmap_subwindow): ditto.
9615         (mswindows_map_subwindow): ditto.
9616         (mswindows_redisplay_subwindow): renamed from
9617         mswindows_update_subwindow.
9618         (mswindows_redisplay_widget): ditto.
9619         (mswindows_button_redisplay): renamed from
9620         mswindows_button_update. Update is now what the instantiation
9621         function does for a changed instantiator.
9622         (mswindows_progress_gauge_instantiate): set the progress value
9623         here if appropriate.
9624         (mswindows_tab_control_redisplay): cope with re-ordering of the
9625         members of the tab widget by simply selecting the new top
9626         widget. This makes things appear ok if you click on a tab.
9627         (mswindows_combo_box_instantiate): image_instance_layout now takes
9628         position as well as size.
9629         (mswindows_progress_gauge_redisplay): renamed from
9630         mswindows_progress_gauge_update.
9631         (console_type_create_glyphs_mswindows): fix update -> redisplay.
9632         (image_instantiator_format_create_glyphs_mswindows): ditto.
9633
9634         * glyphs-eimage.c (jpeg_normalize):
9635         (gif_normalize):
9636         (png_normalize):
9637         (tiff_normalize): add dest_mask so that it can be proprogated by
9638         layout_normalize.
9639
9640         * elhash.c:
9641         (print_hash_table):
9642         (hash_table_weakness_validate):
9643         (decode_hash_table_weakness):
9644         (Fhash_table_weakness):
9645         (Fhash_table_type):
9646         (syms_of_elhash): use Ben's naming scheme for hashtable types..
9647
9648         * console.h (struct console_methods): move update_* to
9649         redisplay_*.
9650
9651 2000-07-20  Ben Wing  <ben@xemacs.org>
9652
9653         * *.[ch] (XSETOBJ): remove unused middle argument.
9654         lisp-disunion.h: correct wrap_object() to one argument.
9655
9656 2000-07-15  Ben Wing  <ben@xemacs.org>
9657
9658         * s/cygwin32.h:
9659         * s/cygwin32.h (CYGWIN_CONV_PATH):
9660         Add missing logb prototype for v1.1.
9661         Use post-b20 names and alias to pre-b20 names when pre-b20.
9662
9663         * s/windowsnt.h: [5].
9664
9665 2000-07-15  Ben Wing  <ben@xemacs.org>
9666
9667         * Makefile.in.in (x_objs):
9668         * Makefile.in.in (sheap_objs):
9669         * Makefile.in.in (objs):
9670         added win32.o, cosmetic cleanups.
9671
9672         * alloc.c (Fmake_byte_code):
9673         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
9674         etc. macros which declare their own args now.
9675
9676         * alloc.c (syms_of_alloc):
9677         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
9678
9679         * buffer.c:
9680         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
9681
9682         * buffer.c (Fget_file_buffer):
9683         Fixed GCPRO problem.
9684
9685         * buffer.c (get_truename_buffer):
9686         Fixed comment about GC checking.
9687
9688         * buffer.c (syms_of_buffer):
9689         Undeclared those dedicated frame funs.
9690         [2].
9691
9692         * buffer.h:
9693         Define convenience macros for internal/external conversions.
9694         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
9695         and Qenvironment_variable_encoding for cleaner code.
9696
9697         * bufslots.h:
9698         Remove dedicated-frame; in lisp.
9699
9700         * bytecode.c (funcall_compiled_function):
9701         [1].
9702
9703         * bytecode.c (syms_of_bytecode):
9704         [2].
9705
9706         * console-msw.c:
9707         * console-msw.c (mswindows_show_console): Rewrote.
9708
9709         * console-msw.c (Fmswindows_debugging_output): New.
9710         Sends to OutputDebugString (special MSWin debugger interface).
9711
9712         * console-msw.c (Fmswindows_message_box):
9713         Fixed stupid bugs so it works when called from kill-emacs.
9714
9715         * console-msw.c (syms_of_console_mswindows):
9716         Declare Fmswindows_debugging_output.
9717
9718         * console-msw.h:
9719         New MSWin prototypes.
9720
9721         * console-msw.h (struct mswindows_frame):
9722         New entry last-click-mods for improved button-modifier support.
9723
9724         * console-msw.h (FRAME_MSWINDOWS_POPUP):
9725         New struct entry `popup' with corresponding accessor.
9726
9727         * console-x.c:
9728         * console-x.c (split_up_display_spec):
9729         * console-x.c (get_display_arg_connection):
9730         * console-x.c (x_semi_canonicalize_console_connection):
9731         * console-x.c (x_canonicalize_device_connection):
9732         [[[6]]]: Change char to more specific type.
9733         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
9734
9735         * console-x.c (x_semi_canonicalize_console_connection):
9736         * console-x.c (x_canonicalize_device_connection):
9737         [[[9]]]: Fix up error signalling to use new structured error system.
9738
9739         * console-x.h:
9740         [[[4]]]: Define codesys aliases:
9741         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
9742         Qx_color_name_encoding, Qx_display_name_encoding.
9743
9744         * console.h (struct console_methods):
9745         New method make_dialog_box_internal supersedes older
9746         popup_dialog_box method.
9747
9748         * data.c:
9749         Define many new errors, part of new structured errors.
9750
9751         * data.c (init_errors_once_early):
9752         * data.c (syms_of_data):
9753         [2].
9754
9755         * device-msw.c (mswindows_init_device):
9756         [[[5]]]: Cleanup to support NT 3.51.
9757
9758         * device-msw.c (decode_devmode): Cleanup.
9759
9760         * device-msw.c (mswindows_handle_print_setup_dialog_box):
9761         * device-msw.c (mswindows_handle_print_dialog_box):
9762         * device-msw.c (mswindows_handle_page_setup_dialog_box):
9763         * device-msw.c (syms_of_device_mswindows):
9764         Delete the dialog box primitives recently introduced by Kirill and
9765         instead interface to general dialog box interface.
9766
9767         * device-x.c:
9768         * device-x.c (compute_x_app_name):
9769         * device-x.c (x_init_device):
9770         * device-x.c (Fx_valid_keysym_name_p):
9771         * device-x.c (Fx_set_font_path):
9772         [6].
9773         [7].
9774
9775         * device.h (wrap_device): New.
9776         First of its kind; meant to replace XSETDEVICE.
9777
9778         * dialog-msw.c: Many file-dialog symbols.
9779
9780         * dialog-msw.c (mswindows_register_popup_frame): New.
9781         * dialog-msw.c (mswindows_is_dialog_msg): New.
9782         For supporting kbd traversal in dialog boxes.
9783
9784         * dialog-msw.c (dialog_proc):
9785         Support hitting ESC in dialogs.
9786
9787         * dialog-msw.c (struct):
9788         Common dialog box errors.
9789
9790         * dialog-msw.c (handle_file_dialog_box): New.
9791         Add file dialog code.
9792
9793         * dialog-msw.c (handle_question_dialog_box):
9794         Redo existing code to support new question dialog syntax.
9795
9796         * dialog-msw.c (console_type_create_dialog_mswindows):
9797         We support new dialog console method.
9798
9799         * dialog-msw.c (syms_of_dialog_mswindows):
9800         * dialog-msw.c (vars_of_dialog_mswindows):
9801         New file dialog symbols, vars.
9802
9803         * dialog-x.c:
9804         * dialog-x.c (maybe_run_dbox_text_callback):
9805         * dialog-x.c (dbox_descriptor_to_widget_value):
9806         * dialog-x.c (x_make_dialog_box_internal):
9807         * dialog-x.c (console_type_create_dialog_x):
9808         Mule-ize entire file.
9809         Redo to support question dialog syntax.
9810         [6].
9811
9812         * dialog.c:
9813         * dialog.c (Fmake_dialog_box_internal):
9814         * dialog.c (syms_of_dialog):
9815         Kill old popup-dialog-box, replace with new primitive.
9816         Just call device method or signal error.
9817
9818         * eldap.c (Fldap_open):
9819         * eldap.c (Fldap_search_basic):
9820         * eldap.c (Fldap_add):
9821         * eldap.c (Fldap_modify):
9822         [1].
9823         [7].
9824
9825         * emacs.c:
9826         * emacs.c (make_arg_list_1):
9827         * emacs.c (make_arg_list):
9828         Mule-ize call to dll_init().
9829         [6].
9830         [8].
9831
9832         * emacs.c (make_argc_argv):
9833         * emacs.c (free_argc_argv):
9834         * emacs.c (init_cmdargs):
9835         * emacs.c (main_1):
9836         * emacs.c (Fkill_emacs):
9837         * emacs.c (Fdump_emacs):
9838         Update comments about what can be used in syms_* etc.
9839         Call init_win32() when necessary.
9840         Fix up MS Win dialog box in kill-buffer to actually work right.
9841         [7].
9842
9843         * eval.c:
9844         * eval.c (For):
9845         * eval.c (Fand):
9846         * eval.c (Fprogn):
9847         * eval.c (Fprog1):
9848         * eval.c (Fprog2):
9849         * eval.c (FletX):
9850         * eval.c (Flet):
9851         * eval.c (condition_case_3):
9852         * eval.c (Feval):
9853         * eval.c (function_argcount):
9854         * eval.c (funcall_lambda):
9855         [1].
9856
9857         * eval.c (type_error): New.
9858         * eval.c (maybe_type_error): New.
9859         * eval.c (continuable_type_error): New.
9860         * eval.c (maybe_continuable_type_error): New.
9861         * eval.c (type_error_with_frob): New.
9862         * eval.c (maybe_type_error_with_frob): New.
9863         * eval.c (continuable_type_error_with_frob): New.
9864         * eval.c (maybe_continuable_type_error_with_frob): New.
9865         New functions for use with structured errors.
9866
9867         * event-Xt.c:
9868         * event-Xt.c (x_event_to_emacs_event):
9869         Buttons are now modifiers too.
9870
9871         * event-Xt.c (emacs_Xt_current_event_timestamp):
9872         Implement new event method.
9873         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
9874
9875         * event-msw.c:
9876         * event-msw.c (ntpipe_shove_writer): [5].
9877         * event-msw.c (mswindows_enqueue_mouse_button_event):
9878         * event-msw.c (mswindows_drain_windows_queue):
9879         * event-msw.c (mswindows_wnd_proc): [7].
9880         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
9881         * event-msw.c (mswindows_modifier_state):
9882         Throughout: support new button modifiers.
9883
9884         * event-msw.c (emacs_mswindows_current_event_timestamp):
9885         Implement new event method.
9886         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
9887
9888         * event-stream.c:
9889         * event-stream.c (event_stream_current_event_timestamp): New.
9890         * event-stream.c (maybe_kbd_translate): New functionality.
9891         * event-stream.c (vars_of_event_stream):
9892         Document new kbd-translate-table functionality.
9893
9894         * event-stream.c (Fcurrent_event_timestamp): New.
9895         New primitive for use in fabricated events.
9896         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
9897
9898         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
9899
9900         * events.c:
9901         * events.c (Fmake_event):
9902         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
9903         [1].
9904         [9].
9905
9906         * events.c (format_event_object): fix gcc warnings.
9907
9908         * events.c (Fevent_timestamp): Document new primitives.
9909
9910         * events.c (TIMESTAMP_HALFSPACE): New.
9911
9912         * events.c (Fevent_timestamp_lessp): New.  New primitive for
9913         comparing timestamps correctly (half-space algorithm).
9914
9915         * events.c (Fevent_modifier_bits): Doc fix.
9916
9917         * events.c (Fevent_modifiers): Major doc addition.
9918         * events.c (event_x_y_pixel_internal): Typo fix.
9919         * events.c (syms_of_events): Declare new primitives.
9920
9921         * events.h:
9922         Update long comment for button modifiers, timestamps.
9923
9924         * events.h (struct event_stream):
9925         New current_event_timestamp method.
9926
9927         * extents.c:
9928         * extents.c (extent_in_region_p):
9929         * extents.c (decode_extent):
9930         * extents.c (Fset_extent_parent):
9931         * extents.c (decode_map_extents_flags):
9932         Fix gcc warnings.
9933         [9].
9934
9935         * extents.c (struct extent_at_arg):
9936         * extents.c (decode_extent_at_flag):
9937         * extents.c (extent_at_mapper):
9938         * extents.c (extent_at_bytind):
9939         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
9940         * extents.c (Fextents_at): New primitive. [9].
9941         * extents.c (symbol_to_glyph_layout): [9].
9942         Support new primitive `extents-at'.
9943
9944
9945         * extents.c (get_text_property_bytind):
9946         extent_at_bytind has another arg.
9947         [9].
9948
9949         * extents.c (syms_of_extents): New primitive.
9950
9951         * file-coding.c (Fmake_coding_system): [1].
9952         * file-coding.c (subsidiary_coding_system): fix gcc warning
9953         * file-coding.c (syms_of_file_coding): [2].
9954
9955         * fileio.c (Fexpand_file_name):
9956         * fileio.c (Fsysnetunam):
9957         * fileio.c (Ffile_exists_p):
9958         * fileio.c (Ffile_executable_p):
9959         * fileio.c (Fverify_visited_file_modtime):
9960         Clean up GCPROing.
9961
9962         * fileio.c (syms_of_fileio): [2].
9963
9964         * filelock.c (lock_file_1):
9965         * filelock.c (current_lock_owner):
9966         * filelock.c (lock_if_free):
9967         * filelock.c (lock_file):
9968         * filelock.c (unlock_file):
9969         Clean up GCPROing.
9970
9971         * fns.c (concat): Fix gcc warning.
9972
9973         * fns.c (Fmember):
9974         * fns.c (Fold_member):
9975         * fns.c (Fmemq):
9976         * fns.c (Fold_memq):
9977         * fns.c (memq_no_quit):
9978         * fns.c (Fassoc):
9979         * fns.c (Fold_assoc):
9980         * fns.c (Fassq):
9981         * fns.c (Fold_assq):
9982         * fns.c (assq_no_quit):
9983         * fns.c (Frassoc):
9984         * fns.c (Fold_rassoc):
9985         * fns.c (Frassq):
9986         * fns.c (Fold_rassq):
9987         * fns.c (rassq_no_quit):
9988         * fns.c (Fdelete):
9989         * fns.c (Fold_delete):
9990         * fns.c (Fdelq):
9991         * fns.c (Fold_delq):
9992         * fns.c (delq_no_quit):
9993         * fns.c (Fremassoc):
9994         * fns.c (Fremassq):
9995         * fns.c (remassq_no_quit):
9996         * fns.c (Fremrassoc):
9997         * fns.c (Fremrassq):
9998         * fns.c (remrassq_no_quit):
9999         * fns.c (Freverse):
10000         * fns.c (mapcar1):
10001         [1].
10002
10003         * frame-msw.c (mswindows_init_frame_1):
10004         * frame-msw.c (mswindows_delete_frame):
10005         Register popups with dialog code so keyboard traversing works.
10006
10007         * frame-tty.c (tty_raise_frame_no_select): [1].
10008
10009         * frame-x.c:
10010         * frame-x.c (x_set_frame_text_value):
10011         * frame-x.c (x_set_frame_properties):
10012         * frame-x.c (x_create_widgets):
10013         [7].
10014
10015         * frame.c:
10016         * frame.c (Fmouse_pixel_position): Minor doc fixes.
10017
10018         * frame.h (wrap_frame): New.
10019         Macro like wrap_device.
10020
10021         * general.c:
10022         * general.c (SYMBOL):
10023         * general.c (syms_of_general):
10024         Major reorg.  This is now just a wrapper and symbols themselves
10025         are listed in general-slots.h.
10026
10027         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
10028         * glyphs-msw.c (mswindows_resource_instantiate): [5].
10029
10030         * glyphs-msw.c (mswindows_native_layout_instantiate):
10031         Add DS_CONTROL so keyboard traversal will work.
10032
10033         * glyphs-widget.c:
10034         * glyphs-widget.c (syms_of_glyphs_widget):
10035         Move some symbols to general-slots.h.
10036
10037         * glyphs-x.c:
10038         * glyphs-x.c (xbm_instantiate_1):
10039         * glyphs-x.c (x_xbm_instantiate):
10040         * glyphs-x.c (x_xface_instantiate):
10041         * glyphs-x.c (autodetect_instantiate):
10042         * glyphs-x.c (cursor_font_instantiate):
10043         * glyphs-x.c (x_update_widget):
10044         * glyphs-x.c (x_widget_instantiate):
10045         * glyphs.c (bitmap_to_lisp_data):
10046         * glyphs.c (pixmap_to_lisp_data):
10047         [7].
10048
10049         * glyphs.c (syms_of_glyphs):
10050         [2].
10051
10052         * gui-x.c:
10053         * gui-x.c (print_widget_value):
10054         * gui-x.c (menu_separator_style_and_to_external):
10055         * gui-x.c (add_accel_and_to_external):
10056         * gui-x.c (button_item_to_widget_value):
10057         * gui-x.c (gui_items_to_widget_values_1):
10058         * gui-x.c (gui_items_to_widget_values):
10059         * gui-x.c (syms_of_gui_x):
10060         * gui-x.c (vars_of_gui_x):
10061         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
10062         [9].
10063
10064         * gui-x.h:
10065         Muleize, prototype changes matching gui-x.c.
10066
10067         * gui.c:
10068         * gui.c (separator_string_p):
10069         * gui.c (gui_item_add_keyval_pair):
10070         * gui.c (make_gui_item_from_keywords_internal):
10071         * gui.c (signal_too_long_error):
10072         * gui.c (parse_gui_item_tree_item):
10073         * gui.c (syms_of_gui):
10074         * gui.c (vars_of_gui):
10075         * gui.h:
10076         menu-no-selection-hook moved here (used by MSWin).
10077         Move some symbols to general-slots.h.
10078         [6].
10079         [9].
10080
10081         * insdel.c (get_buffer_pos_char):
10082         * insdel.c (get_buffer_range_char):
10083         Add GC comments.
10084
10085         * keymap.c (keymap_lookup_directly):
10086         * keymap.c (keymap_store):
10087         * keymap.c (ensure_meta_prefix_char_keymapp):
10088         * keymap.c (describe_map):
10089         * keymap.h:
10090         Support new button modifiers.
10091
10092         * lisp-disunion.h (wrap_object):
10093         * lisp-disunion.h (XSETOBJ):
10094         Rename make_obj to wrap_object.
10095
10096         * lisp-union.h:
10097         * lisp-union.h (make_int):
10098         * lisp-union.h (make_char):
10099         Support wrap_object.
10100
10101         * lisp.h:
10102         * lisp.h (LIST_LOOP):
10103         * lisp.h (EXTERNAL_LIST_LOOP):
10104         * lisp.h (LIST_LOOP_2):
10105         * lisp.h (EXTERNAL_LIST_LOOP_1):
10106         * lisp.h (EXTERNAL_LIST_LOOP_2):
10107         * lisp.h (EXTERNAL_LIST_LOOP_3):
10108         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
10109         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
10110         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
10111         * lisp.h (EXTERNAL_ALIST_LOOP_5):
10112         * lisp.h (EXTERNAL_ALIST_LOOP_6):
10113         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
10114         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
10115         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
10116         * lisp.h (struct Lisp_Symbol):
10117         * lisp.h (maybe_continuable_error_with_frob):
10118         Fix up section comments.
10119         Add new types for char to indicate usage.
10120         Delete symbols auto-generated from general-slots.h.
10121         Add prototypes for structured error functions.
10122         Add long comments describing looping macros and change interface
10123         so that lvalues are automatically declared.
10124         Add NO_DECLARE macro in case callers want to declare lvalues
10125         themselves.
10126
10127         * lread.c (read_syntax_error):
10128         * lread.c (continuable_read_syntax_error):
10129         * lread.c (read_structure):
10130         * lread.c (sequence_reader):
10131         * lread.c (read_list_conser):
10132         * lread.c (read_compiled_function):
10133         Rename syntax_error and continuable_syntax_error to avoid clash
10134         with same-named structured error functions.
10135
10136         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
10137         * menubar-msw.c (populate_menu_add_item):
10138         * menubar-msw.c (populate_or_checksum_helper):
10139         [5].
10140         [9].
10141
10142         * menubar-x.c:
10143         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10144         Mule-ize whole file.
10145
10146         * menubar.c (Fnormalize_menu_item_name): Add optimization.
10147
10148         * mule-charset.c (Fmake_charset):
10149         * mule-wnnfns.c (Fwnn_set_param):
10150         [1].
10151
10152         * ntproc.c (create_child):
10153         * ntproc.c (Fwin32_set_current_locale):
10154         Add comments portending doom.
10155
10156         * objects-msw.c:
10157         * objects-msw.c (old_font_enum_callback_2):
10158         * objects-msw.c (font_enum_callback_1):
10159         * objects-msw.c (mswindows_enumerate_fonts):
10160         [5].
10161
10162         * objects-x.c:
10163         * objects-x.c (allocate_nearest_color):
10164         * objects-x.c (x_parse_nearest_color):
10165         * objects-x.c (x_initialize_color_instance):
10166         * objects-x.c (x_print_color_instance):
10167         * objects-x.c (x_finalize_color_instance):
10168         * objects-x.c (x_valid_color_name_p):
10169         * objects-x.c (x_initialize_font_instance):
10170         * objects-x.c (x_print_font_instance):
10171         * objects-x.c (valid_x_font_name_p):
10172         * objects-x.c (truename_via_FONT_prop):
10173         * objects-x.c (truename_via_random_props):
10174         * objects-x.c (truename_via_XListFonts):
10175         * objects-x.c (x_font_truename):
10176         * objects-x.c (x_font_instance_truename):
10177         * objects-x.c (x_font_instance_properties):
10178         * objects-x.c (x_list_fonts):
10179         * objects-x.c (x_find_charset_font):
10180         Mule-ize entire file.
10181         [7].
10182
10183         * objects-x.h:
10184         Mule-verify.
10185
10186         * print.c:
10187         * print.c (std_handle_out_external):
10188         * print.c (debug_print_no_newline):
10189         * print.c (syms_of_print):
10190         Output to all debugger kinds in debug-print.
10191         Fix console-output code under MSWin to actually work.
10192
10193         * process-nt.c (send_signal):
10194         * process-nt.c (nt_create_process):
10195         Use newer Unicode macros.
10196
10197         * process-unix.c (unix_create_process):
10198         * process-unix.c (unix_canonicalize_host_name):
10199         * process-unix.c (unix_open_network_stream):
10200         [7].
10201
10202         * scrollbar-x.c:
10203         Mule-verify.
10204
10205         * search.c (syms_of_search):
10206         [2].
10207
10208         * select-msw.c (mswindows_destroy_selection):
10209         Use LIST_LOOP_2.
10210
10211         * select-x.c (symbol_to_x_atom):
10212         [7].
10213
10214         * select.c (syms_of_select):
10215         [2].
10216
10217         * sound.c (Fplay_sound_file):
10218         [7].
10219
10220         * specifier.c:
10221         * specifier.c (decode_specifier_type):
10222         * specifier.c (Fvalid_specifier_locale_type_p):
10223         * specifier.c (check_valid_locale_or_locale_type):
10224         * specifier.c (decode_locale):
10225         * specifier.c (decode_locale_type):
10226         * specifier.c (decode_locale_list):
10227         * specifier.c (check_valid_domain):
10228         * specifier.c (decode_specifier_tag_set):
10229         * specifier.c (Fcanonicalize_tag_set):
10230         * specifier.c (Fdefine_specifier_tag):
10231         * specifier.c (Fspecifier_tag_predicate):
10232         * specifier.c (check_valid_inst_list):
10233         * specifier.c (check_valid_spec_list):
10234         * specifier.c (decode_how_to_add_specification):
10235         * specifier.c (check_modifiable_specifier):
10236         * specifier.c (specifier_add_spec):
10237         * specifier.c (boolean_validate):
10238         * specifier.c (display_table_validate):
10239         [9].
10240
10241         * specifier.c (syms_of_specifier):
10242         Move some symbols to general-slots.h.
10243         [2].
10244
10245         * symbols.c:
10246         * symbols.c (Fmapatoms):
10247         * symbols.c (Fapropos_internal):
10248         Add GCPROs.
10249
10250         * symbols.c (set_default_buffer_slot_variable):
10251         * symbols.c (set_default_console_slot_variable):
10252         [1].
10253
10254         * symbols.c (defsymbol_massage_name_1):
10255         * symbols.c (defkeyword_massage_name):
10256         * symbols.c (deferror_1):
10257         * symbols.c (deferror):
10258         * symbols.c (deferror_massage_name_and_message):
10259         * symeval.h:
10260         * symeval.h (DEFSYMBOL):
10261         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
10262
10263         * symbols.c (syms_of_symbols):
10264         [2].
10265
10266         * symsinit.h:
10267         * symsinit.h (init_win32): New.
10268         Also new is syms_of_dialog_mswindows.
10269
10270         * syswindows.h:
10271         Add new Unicode macros, missing Cygwin wide-char functions,
10272         convenience conversion macros for Qmswindows_tstr, macros for
10273         encapsulating required MSWin <-> Cygwin filename conversions,
10274         prototype for dynamically-extracted (not in NT 3.51) functions.
10275
10276         * toolbar-x.c:
10277         Mule-verify.
10278
10279         * tooltalk.c (Fadd_tooltalk_message_arg):
10280         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
10281         * tooltalk.c (Fadd_tooltalk_pattern_arg):
10282         [7].
10283
10284         * tooltalk.c (syms_of_tooltalk):
10285         [2].
10286
10287         * unexnt.c:
10288         * unexnt.c (unexec):
10289         Fix up headers, declaration of unexec() to be more standard.
10290
10291 2000-07-20  Martin Buchholz  <martin@xemacs.org>
10292
10293         * offix.h: Revert change to guard macros - they're used in offix.c!
10294
10295 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10296
10297         * lisp.h: Defsubred Fdelete.
10298
10299         * console-msw.h:  (msprinter_default_printer): Added.
10300
10301         * console-msw.c (msprinter_canonicalize_console_connection):
10302         (msprinter_canonicalize_device_connection): Added.
10303
10304         * device-msw.c (msprinter_default_printer):
10305         (Fmswingows_get_default_printer):
10306         (signal_enum_priner_error):
10307         (Fmswingows_printer_list): Added.
10308
10309 2000-07-19  Martin Buchholz <martin@xemacs.org>
10310
10311         * XEmacs 21.2.35 is released.
10312
10313 2000-07-19  Martin Buchholz  <martin@xemacs.org>
10314
10315         * select-x.c (x_handle_selection_request):
10316         Text selected in xemacs and pasted into xterm failed to appear.
10317         Spelling fixes and cosmetic changes.
10318
10319 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10320
10321         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
10322         XEmacs frame (fix for doubling chars in dialog boxes).
10323
10324 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
10325
10326         * select.c (select_convert_in, select_convert_out):
10327         Don't call intern() every time.
10328
10329         * select.c (Qselect_convert_in, Qselect_convert_out): New.
10330         * select.c (vars_of_select): Initialise them.
10331
10332 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
10333
10334         * select.c (selection-coercible-types): New.
10335
10336         * select.c (own-selection-internal):
10337         * select.c (get-selection-internal):
10338         MULE bug fix - these should default to COMPOUND_TEXT and not
10339         STRING for MULE. I think.
10340
10341         * select.c (select_convert_out): Use selection-coercible-types
10342         to find types that we can attempt to perform coercions on.
10343
10344 2000-07-18  Martin Buchholz  <martin@xemacs.org>
10345
10346         * mule-wnnfns.c:
10347         * mule-canna.c:
10348         Add coding: cookie to identify encoding.
10349
10350         * mule-canna.c (CANNA_mode_keys): make static.
10351         Use proper prototypes, even for functions of no arguments.
10352         Remove external prototype for Fding().
10353
10354         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
10355
10356         * select.c (syms_of_select): Add missing DEFSUBR.
10357
10358 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
10359
10360         * select.c (get_selection_internal, own_selection_internal):
10361         Make the type default to STRING, rather than placing a nil type
10362         into Vselection_alist.
10363
10364 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
10365
10366         * gpmevent.c (tty_selection_exists_p):
10367         * gpmevent.c (tty_own_selection):
10368         Updated parameter lists.
10369
10370 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
10371
10372         * select.h (selection-alist): Removed declaration.
10373
10374         * select.h (get_local_selection):
10375         * select.c (get_local_selection):
10376         Made static.
10377
10378         * select.h (convert_selection): Removed declaration.
10379         * select.c (convert_selection): Removed.
10380         This function belongs in Lisp.
10381
10382         * select.h (select_convert_in): Declare.
10383         * select.h (select_convert_out): Declare.
10384         * select.c (select_convert_in): New.
10385         * select.c (select_convert_out): New.
10386         New conversion functions for other files to call.
10387
10388         * select.h (select_notify_buffer_kill): Declare.
10389         * select.c (select_notify_buffer_kill): New.
10390         New functions that get called from kill-buffer.
10391
10392         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
10393         X-specific lisp code.
10394
10395         * select.h: Declare some of the lisp-visible functions for
10396         external use.
10397
10398         * select.c (clean_local_selection_data): Removed. This was
10399         a disgusting function, and previously should have been in
10400         select-x.c in any case. The functionality is now provided
10401         in select-convert-from-integer (select.el).
10402
10403         * select.c (available-selection-types): Fixed stupidity where
10404         INTEGER and ATOM got added twice. Also add STRING when we see an
10405         extent.
10406
10407         * select.c (get-selection-internal): Removed symbol stripping. No
10408         longer causes conversion when data comes from the internal cache.
10409
10410         * select.c (syms_of_select): Added new functions.
10411
10412         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
10413         error checking - previously this called abort!
10414
10415         * select-x.c (x_own_selection): Changed comment.
10416
10417         * select-x.c (x_handle_selection_request): Use select_convert_out.
10418         Don't mess with selection-alist; it's an internal variable of select.c.
10419
10420         * select-x.c (x_get_foreign_selection): Use select_convert_in.
10421
10422         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
10423         rather than messing with selection-alist.
10424
10425         * select-msw.c (mswindows_get_foreign_selection):
10426         Use TO_INTERNAL_FORMAT rather than hacking.
10427
10428 2000-07-14  Martin Buchholz  <martin@xemacs.org>
10429
10430         * process-unix.c (unix_open_multicast_group):
10431         (unix_open_multicast_group): Remove useless casts.
10432
10433 2000-07-13  Martin Buchholz  <martin@xemacs.org>
10434
10435         * sound.c (Fplay_sound): Fix `unused variable' warning.
10436
10437         * emacs.c (main): Use correct type for _environ on SCO5.
10438
10439 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
10440
10441         * console.h (own_selection_method):
10442         * console.h (selection_exists_p_method):
10443         * console.h (available_selection_types_method): New.
10444         * console.h (register_selection_data_type_method): New.
10445         * console.h (selection_data_type_name): New.
10446
10447         * console-msw.h (mswindows_destroy_selection): Declare it.  New
10448         function & alist to track GlobalAlloc()'d handles that need
10449         releasing when the clipboard data gets replaced or emptied.
10450
10451         * event-msw.c (mswindows_wnd_proc): Call it.
10452
10453         * lisp.h, general.c (Qappend): New symbol representing a
10454         `how-to-add' mode.
10455
10456         * select.c (own-selection-internal):
10457         * select.c (selection-exists-p):
10458         * select.c (available-selection-types): New.
10459         * select.c (register-selection-data-type): New.
10460         * select.c (selection-data-type-name): New.  New functions to deal
10461         with device-specific selection data formats.
10462         * select.c (selection-converter-out-alist): Renamed.
10463         * select.c (selection-converter-in-alist): New.
10464         * select.c (selection-appender-alist): New.  Added new alists.
10465         * select.c (syms_of_select, vars_of_select): Added new symbols &
10466         variables.
10467         * select.c (get_local_selection): Split.
10468         * select.c: Removed spurious type checking - selections may now be
10469         of any type, not just strings.
10470         * select.c (own-selection-internal):
10471
10472         * select.h, select.c (convert_selection): New. Created
10473         convert_selection() function based on get_local_selection().
10474         * select.h, select.c (QCF_*): New symbols representing mswindows
10475         clipboard formats.
10476         * select.h, select.c (Qreplace_all, Qreplace_existing): New
10477         symbols representing `how-to-add' modes.
10478
10479         * select-msw.c (x_sym_p): New.
10480         * select-msw.c (symbol_to_ms_cf): New.
10481         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
10482         symbols & clipboard formats. Can also handle string names.
10483         * select-msw.c (mswindows_own_selection):
10484         * select-msw.c (mswindows_selection_exists_p):
10485         Added `data-type' parameter. Use it.
10486         * select-msw.c (mswindows_available_selection_types): New.
10487         * select-msw.c (mswindows_register_selection_data_type): New.
10488         * select-msw.c (mswindows_selection_data_type_name): New.
10489         * select-msw.c (mswindows_own_selection):
10490         * select-msw.c (mswindows_get_foreign_selection):
10491         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
10492         * select-msw.c (console_create_select_mswindows): Added new methods.
10493         * select-msw.c (mswindows_destroy_selection): New.
10494         * select-msw.c (Vhandle_alist): New list.
10495         * select-msw.c (mswindows_own_selection):
10496
10497         * select-x.c (x_own_selection):
10498         * select-x.c (x_selection_exists_p):
10499         * select-x.c: Added some comments about maybe using new
10500         functionality.
10501         * select-x.c (x_own_selection):
10502
10503         * specifier.c: Remove definition of Qappend (now in general.c)
10504         * specifier.c (syms_of_specifier): Remove Qappend.
10505
10506 2000-07-12  Martin Buchholz  <martin@xemacs.org>
10507
10508         * config.h.in: Add socklen_t.
10509
10510         * s/decosf4-0.h: No special compiler flags needed or desired.
10511         In particular, undefine _BSD for DEC OSF 4.0.
10512
10513 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10514
10515         * redisplay-msw.c (msprinter_frame_output_end): Added.
10516         (console_type_create_redisplay_mswindows): Referred the above.
10517
10518         * frame.c (setup_frame_without_minibuffer): Do not create a
10519         default minibuffer frame on a printer device.
10520
10521         * frame-msw.c (apply_dc_geometry): Added.
10522         (msprinter_start_page):
10523         (msprinter_init_frame_3):
10524         (msprinter_eject_page): Use it.
10525
10526         * console-msw.h (struct msprinter_frame): Added pix_left and top,
10527         and removed residual duplex and orientation properties.
10528
10529 2000-07-11  Martin Buchholz  <martin@xemacs.org>
10530
10531         * eval.c (function_argcount): Work around a DEC CC compiler bug.
10532
10533         * unexalpha.c: Remove system prototypes from C sources!
10534
10535 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
10536
10537         * eval.c: Remove references to M-x edit-options in DEFUNs for
10538         `defvar' and `defconst'.
10539
10540 2000-07-09  Martin Buchholz  <martin@xemacs.org>
10541
10542         * config.h.in: Remove SMART_INCLUDE hackery.
10543
10544         PostgreSQL hacking:
10545         * config.h.in: Don't use SMART_INCLUDE.
10546
10547         * postgresql.h: Include libpq-fe.h here.  Fix typo.
10548         * inline.c: Simply #include "postgresql.h"
10549         * postgresql.c:
10550         - Don't use SMART_INCLUDE
10551         - Use simply "const".
10552         - Use standard doc string conventions.
10553         - Use correct type for result of PQstatus.
10554
10555 2000-07-09  Martin Buchholz  <martin@xemacs.org>
10556
10557         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
10558
10559         C++ compilation changes.
10560         * config.h.in (EXTERN_C): Define.
10561         * config.h.in (not): This is also a C++ keyword.
10562         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
10563         * cm.c: Use EXTERN_C.
10564         * redisplay-tty.c: Use EXTERN_C.
10565         * sysdep.c: Use EXTERN_C.  Remove Gould support.
10566
10567 2000-07-09  Martin Buchholz  <martin@xemacs.org>
10568
10569         * general.c: Remove duplicate definition for Qfunction.
10570
10571 2000-07-08  Ben Wing  <ben@xemacs.org>
10572
10573         * device-msw.c (msprinter_init_device):
10574         * device-msw.c (sync_printer_with_devmode):
10575         * device-msw.c (handle_devmode_changes):
10576         * device-msw.c (print_dialog_worker):
10577         * device-msw.c (Fmsprinter_apply_settings):
10578         * device-msw.c (hash_devmode):
10579         * device-msw.c (Fmsprinter_settings_despecialize):
10580         use Qmswindows_tstr, not Qctext.
10581
10582         * vm-limit.c (check_memory_limits):
10583         avoid infinite loop printing warning messages.
10584
10585 2000-07-05  Craig Lanning  <lanning@scra.org>
10586
10587         * Makefile.in.in: Add support for including the Windows resources
10588         when building with the cygwin and mingw targets.
10589
10590         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
10591         not set or not correct.
10592         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
10593         (init_initial_directory): Don't try to use $PWD on the
10594         WIN32_NATIVE target.
10595
10596         * s\cygwin32.h:
10597         [[Add -mwindows to eliminate console window.]] not required --ben
10598         (HAVE_NATIVE_SOUND): removed; now handled by configure.
10599         (MAIL_USE_POP): removed; now handled by configure.
10600
10601         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
10602         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
10603         (HAVE_NATIVE_SOUND): removed; now handled by configure.
10604         (MAIL_USE_POP): removed; now handled by configure.
10605         (ENCAPSULATE_STAT): from Dan Holmsand, added.
10606         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
10607         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
10608         constant string.
10609         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
10610         up from <winsock.h> via systime.h.
10611         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
10612         (getpagesize): from Dan Holmsand, added.
10613         Added #endif which was left dangling by Ben's mega patch; added
10614         comment to help prevent this in the future.
10615
10616         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
10617
10618 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10619
10620         * console-msw.h (struct mswindows_device): Removed unnecessary
10621         cached device geometry values.
10622         Added update_tick and an accessor macro.
10623         (Lisp_Devmode): Added lrecord declaration.
10624         (struct msprinter_device): Contain devmode as a Lisp object.
10625         Added mswindows_get_selected_frame_hwnd();
10626
10627         * console.h (struct console_methods): Indentation nitpicking.
10628
10629         * device-msw.c (mswindows_init_device): Do not initialize geometry
10630         cache. Initialize update tick.
10631         (mswindows_device_system_metrics): Ask the device for its geometry.
10632         (global_free_2_maybe):
10633         (devmode_to_hglobal):
10634         (handle_printer_changes):
10635         (ensure_not_printing):
10636         (print_dialog_worker):
10637         (Fmsprinter_print_setup_dialog):
10638         (Fmsprinter_print_dialog):
10639         (plist_get_margin):
10640         (plist_set_margin):
10641         (Fmsprinter_page_setup_dialog): Added functions.
10642         (sync_printer_with_devmode):
10643         (handle_devmode_changes):
10644         (Fmsprinter_get_settings):
10645         (Fmsprinter_select_settings):
10646         (Fmsprinter_apply_settings):
10647         (allocate_devmode):
10648         (Fmsprinter_settings_copy):
10649         (Fmsprinter_settings_despecialize):
10650         (print_devmode):
10651         (finalize_devmode):
10652         (equal_devmode):
10653         (hash_devmode): Added functions
10654         (syms_of_device_mswindows): Init devmode lrecord class.
10655
10656         * device.h: Added an exfun for find-device.
10657
10658         * event-msw.c (mswindows_wnd_proc): Do not update the cached
10659         geometry; although, recreate the device compatible DC.
10660
10661         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
10662         (msprinter_init_frame_3):
10663         (msprinter_frame_property):
10664         (msprinter_internal_frame_property_p):
10665         (msprinter_frame_properties):
10666         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
10667         print job properties (will move to device settings).
10668
10669         * lisp.h: Added symbols.
10670
10671         * general.c (syms_of_general): Declared them.
10672
10673         * hash.c (string_hash): Added.
10674
10675         * lrecord.h (lrecord_type): Added devmode lrecord type.
10676
10677 2000-07-02  Mike Sperber <mike@xemacs.org>
10678
10679         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
10680         FreeBSD 4.0.
10681
10682 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
10683
10684         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
10685         integer.
10686
10687 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
10688
10689         * data.c (Fstring_to_number): Don't recognize floating point if
10690         base is not 10.
10691
10692 2000-06-22  Martin Buchholz  <martin@xemacs.org>
10693
10694         * glyphs-widget.c (tab_control_query_geometry):
10695         (widget_query_geometry):
10696         (button_query_geometry):
10697         * glyphs.c (text_query_geometry):
10698         Enforce type correctness.
10699
10700 2000-06-18  Martin Buchholz  <martin@xemacs.org>
10701
10702         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
10703         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
10704
10705 2000-06-17  Martin Buchholz  <martin@xemacs.org>
10706
10707         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
10708         conflicts with gcc's fixincluded version of FOO.h.
10709
10710         * glyphs.h (image_instance_geometry): Remove trailing `,'
10711
10712 2000-06-08  Mike Alexander  <mta@arbortext.com>
10713
10714         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
10715         (shove_thread): Don't write the same output twice
10716         (make_ntpipe_output_stream): Increase priority of shove thread
10717         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
10718         chance to run
10719         (ntpipe_shove_closer): Don't delete the pipe until we're done with
10720         it.
10721
10722 2000-06-12  Ben Wing  <ben@xemacs.org>
10723
10724         * s\mingw32.h (sigset):
10725         * s\windowsnt.h (sigset):
10726         rename msw_ to mswindows_ for consistency with general convention.
10727
10728 2000-06-12  Ben Wing  <ben@xemacs.org>
10729
10730         * console-msw.c:
10731         * console-msw.c (mswindows_get_console_hwnd):
10732         * console-msw.c (mswindows_ensure_console_allocated):
10733         * console-msw.c (mswindows_hide_console):
10734         * console-msw.c (mswindows_show_console):
10735         * console-msw.c (mswindows_ensure_console_buffered):
10736         * console-msw.c (mswindows_output_console_string):
10737         * console-msw.c (mswindows_windows9x_p):
10738         * console-msw.h:
10739         * device-msw.c (mswindows_get_workspace_coords):
10740         * device-msw.c (mswindows_device_system_metrics):
10741         * dialog-msw.c (mswindows_popup_dialog_box):
10742         * event-msw.c (mswindows_wnd_proc):
10743         * frame-msw.c (mswindows_size_frame_internal):
10744         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
10745         * menubar-msw.c (displayable_menu_item):
10746         * menubar-msw.c (mswindows_char_is_accelerator):
10747         * nt.c:
10748         * nt.c (mswindows_sigset):
10749         * nt.c (mswindows_sigrelse):
10750         * nt.c (mswindows_sigpause):
10751         * nt.c (mswindows_raise):
10752         * nt.c (timer_proc):
10753         * ntproc.c:
10754         * ntproc.c (find_child_console):
10755         * ntproc.c (sys_kill):
10756         * print.c:
10757         * print.c (std_handle_out_external):
10758         * process-nt.c (find_child_console):
10759         * process-nt.c (send_signal_the_95_way):
10760         * process-nt.c (ensure_console_window_exists):
10761         * process-nt.c (nt_create_process):
10762         * syssignal.h:
10763         rename msw_ to mswindows_ for consistency with general convention.
10764
10765         * emacs.c:
10766         * dumper.c:
10767         include nt.h, not syswindows.h.
10768
10769         * nt.c (mswindows_fstat):
10770         * nt.c (mswindows_stat):
10771         prefix mswindows_ instead of attempting to directly override the
10772         library functions.  fix declarations.
10773
10774         * nt.h:
10775         include syswindows.h.  move some sysdep.h stuff here.
10776
10777         * ntheap.h:
10778         include syswindows.h, not <windows.h>.
10779
10780         * ntplay.c:
10781         clean up headers.
10782
10783         * sysdep.c:
10784         clean up headers.
10785
10786         * sysdep.c (sys_fstat):
10787         * sysdep.c (sys_stat):
10788         call mswindows versions when appropriate.
10789
10790         * sysdep.h:
10791         move mswin decls to nt.h.
10792
10793         * syswindows.h:
10794         add long comment describing appropriate use of the various windows
10795         headers.
10796
10797 2000-06-11  Ben Wing  <ben@xemacs.org>
10798
10799         * device-x.c: Correct doc string for sixth arg of x-get-resource.
10800
10801 2000-06-10  Ben Wing  <ben@xemacs.org>
10802
10803         * Makefile.in.in (release):
10804         Correction to make sure xemacs.exe always dumped when correct.
10805
10806         * alloca.c:
10807         * balloon_help.c:
10808         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
10809
10810         * buffer.c (set_buffer_internal):
10811         [[[[2]]]]: Remove HAVE_FEP code.
10812
10813         * buffer.c (init_initial_directory):
10814         [3].
10815
10816         * bytecode.c:
10817         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
10818         individual files.
10819
10820         * callproc.c:
10821         * callproc.c (call_process_cleanup):
10822         * callproc.c (Fold_call_process_internal):
10823         * callproc.c (child_setup):
10824         * callproc.c (getenv_internal):
10825         * callproc.c (init_callproc):
10826         * callproc.c (vars_of_callproc):
10827         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
10828         __CYGWIN32__ -> CYGWIN.
10829         DOS_NT -> WIN32_NATIVE.
10830         Remove MSDOS support/references, converting to WIN32_NATIVE
10831           where correct.
10832         __MINGW32__ -> MINGW.
10833         Fix windows.h includes.
10834         Remove bogus HAVE_NTGUI.
10835
10836         * config.h.in:
10837         [2].
10838
10839         * console-msw.c:
10840         mswindows_message_outputted added for use in allowing startup
10841         errors on the console to be seen.
10842
10843         * console-msw.c (msw_ensure_console_allocated):
10844         * console-msw.c (msw_output_console_string):
10845         * console-msw.c (DHEADER):
10846         * console-msw.c (DOPAQUE_DATA):
10847         * console-msw.c (DEVENT):
10848         * console-msw.c (DCONS):
10849         * console-msw.c (DCONSCDR):
10850         * console-msw.c (DSTRING):
10851         * console-msw.c (DVECTOR):
10852         * console-msw.c (DSYMBOL):
10853         * console-msw.c (DSYMNAME):
10854         Fix warnings.
10855
10856         * console-stream.c (stream_init_console):
10857         Fix text/binary problems.
10858
10859         * device-msw.c:
10860         * device-msw.c (mswindows_finish_init_device):
10861         * device-msw.c (mswindows_delete_device):
10862         [1].
10863
10864         * device.c (handle_asynch_device_change):
10865         [3].
10866
10867         * dgif_lib.c:
10868         * dgif_lib.c (DGifOpenFileName):
10869         * dgif_lib.c (DGifOpenFileHandle):
10870         * dgif_lib.c (DGifGetLine):
10871         * dgif_lib.c (DGifGetPixel):
10872         Added config.h/lisp.h, fix up includes.
10873         [1].
10874
10875         * dired-msw.c:
10876         [4].
10877
10878         * dired.c:
10879         * dired.c (file_name_completion):
10880         * dired.c (Ffile_attributes):
10881         * dired.c (syms_of_dired):
10882         [1].
10883
10884         * dumper.c:
10885         * dumper.c (pdump_file_unmap):
10886         * dumper.c (pdump_load):
10887         [1].
10888
10889         * editfns.c:
10890         * editfns.c (Ftemp_directory):
10891         * editfns.c (user_login_name):
10892         * editfns.c (Fuser_real_login_name):
10893         * editfns.c (get_home_directory):
10894         [1].
10895
10896         * elhash.c (finish_marking_weak_hash_tables):
10897         [[[[5]]]]: Fix GCC warnings.
10898
10899         * emacs.c:
10900         * emacs.c (mswindows_handle_hardware_exceptions):
10901         * emacs.c (make_arg_list_1):
10902         * emacs.c (main_1):
10903         * emacs.c (Fkill_emacs):
10904         * emacs.c (Fdump_emacs):
10905         [1].
10906         Fix problems with nested crashes, add long comment.
10907
10908         * event-Xt.c (init_event_Xt_late):
10909         [1].
10910
10911         * event-msw.c:
10912         * event-msw.c (mswindows_dde_callback):
10913         * event-msw.c (mswindows_handle_sticky_modifiers):
10914         * event-msw.c (mswindows_wnd_proc):
10915         [1].
10916         [5].
10917
10918         * events.c (character_to_event):
10919         [1].
10920
10921         * fileio.c:
10922         * fileio.c (Ffile_name_directory):
10923         * fileio.c (Ffile_name_nondirectory):
10924         * fileio.c (directory_file_name):
10925         * fileio.c (Fexpand_file_name):
10926         * fileio.c (Fsubstitute_in_file_name):
10927         * fileio.c (Ffile_name_absolute_p):
10928         * fileio.c (check_executable):
10929         * fileio.c (Ffile_readable_p):
10930         * fileio.c (Ffile_accessible_directory_p):
10931         * fileio.c (Ffile_modes):
10932         * fileio.c (Funix_sync):
10933         * fileio.c (vars_of_fileio):
10934         [1]. [4].
10935
10936         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
10937
10938         Expand getdefdir defn.
10939         Fix bogus rename() comment.
10940
10941         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
10942         to use standard XEmacs include files, e.g. sysfile.h, rather
10943         than system-specific includes.
10944
10945         * fns.c:
10946         * fns.c (Fsubseq):
10947         [5]. [6].
10948
10949         * frame.c (vars_of_frame):
10950         [1].
10951
10952         * getloadavg.c:
10953         * getloadavg.c (getloadavg):
10954         [1]. [6].
10955         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
10956         (We don't use it elsewhere in the code; just add a comment.)
10957
10958         * gif_io.c:
10959         [6].
10960         Add config.h.
10961
10962         * glyphs-msw.c:
10963         * glyphs-msw.c (mswindows_resource_instantiate):
10964         [1].
10965
10966         * glyphs-x.c (x_native_layout_instantiate):
10967         [5].
10968
10969         * gui-msw.c (Fmswindows_shell_execute):
10970         [1].
10971
10972         * insdel.c:
10973         [4].
10974
10975         * lisp.h:
10976         [4]. [5].
10977
10978         * lread.c (locate_file_in_directory_mapper):
10979         [1].
10980
10981         * lstream.c:
10982         [4].
10983
10984         * mem-limits.h:
10985         * mem-limits.h (get_lim_data):
10986         [1].
10987
10988         * menubar-msw.c:
10989         [4].
10990
10991         * ndir.h:
10992         [1].
10993
10994         * nt.c:
10995         * nt.c (getwd):
10996         * nt.c (closedir):
10997         * nt.c (rva_to_section):
10998         * nt.c (mswindows_executable_type):
10999         [1]. [6].
11000         Fix closedir() defn.
11001
11002         * nt.h:
11003         [[[[8]]]]: *_OK defs moved to sysfile.h.
11004
11005         * ntproc.c:
11006         [6]. [7].
11007
11008         * objects-x.c:
11009         [4].
11010
11011         * print.c:
11012         * print.c (std_handle_out_external):
11013         [1]. [4].
11014
11015         * process-nt.c:
11016         * process-nt.c (nt_create_process):
11017         [6].
11018         try to fix process quoting somewhat.
11019
11020         * process-unix.c (unix_create_process):
11021         [1].
11022
11023         * process.c:
11024         * process.c (vars_of_process):
11025         Add Vnull_device.
11026
11027         * process.h:
11028         [1].
11029
11030         * realpath.c:
11031         * realpath.c (xrealpath):
11032         [1].
11033
11034         * redisplay-tty.c (init_tty_for_redisplay):
11035         [3].
11036
11037         * redisplay.c:
11038         [4]. [6].
11039
11040         * scrollbar-msw.c:
11041         [4].
11042
11043         * sheap.c:
11044         * sheap.c (more_static_core):
11045         * sheap.c (report_sheap_usage):
11046         [5]. [6].
11047
11048         * signal.c:
11049         * signal.c (alarm_signal):
11050         [1]. [6].
11051
11052         * sound.c:
11053         [6].
11054
11055         * strftime.c:
11056         * strftime.c (zone_name):
11057         [1]. [5].
11058
11059         * symsinit.h (init_sunpro):
11060         [1].
11061
11062         * syscommctrl.h:
11063         commctrl.h not in Cygwin b20.1.
11064
11065         * sysdep.c:
11066         * sysdep.c (endif):
11067         * sysdep.c (sys_subshell):
11068         * sysdep.c (init_baud_rate):
11069         * sysdep.c (emacs_get_tty):
11070         * sysdep.c (emacs_set_tty):
11071         * sysdep.c (tty_init_sys_modes_on_device):
11072         * sysdep.c (init_system_name):
11073         * sysdep.c (sys_open):
11074         * sysdep.c (interruptible_open):
11075         * sysdep.c (sys_fopen):
11076         * sysdep.c (sys_mkdir):
11077         * sysdep.c (sys_rename):
11078         * sysdep.c (get_process_times_1):
11079         [1]. [6].
11080
11081         * sysdep.h:
11082         [1].
11083
11084         * sysdir.h:
11085         * sysdir.h (DIRENTRY_NONEMPTY):
11086         [1]. [6].
11087
11088         * sysdll.c (dll_init):
11089         * sysdll.h:
11090         [1].
11091
11092         * sysfile.h:
11093         [1]. [6]. [8].
11094         added text/binary defs.
11095
11096         * sysfloat.h:
11097         [1].
11098
11099         * sysproc.h:
11100         * sysproc.h (EDESTADDRREQ):
11101         * sysproc.h (poll_fds_for_input):
11102         [1]. [6].
11103
11104         * syspwd.h:
11105         [6].
11106
11107         * syssignal.h:
11108         [1].
11109
11110         * systime.h:
11111         [1]. [6].
11112
11113         * systty.h:
11114         [1].
11115
11116         * syswindows.h:
11117         [1].
11118         Always define WIN32_LEAN_AND_MEAN.
11119
11120         * unexcw.c (unexec):
11121         [5].
11122
11123         * unexec.c:
11124         * unexec.c (copy_text_and_data):
11125         * unexec.c (adjust_lnnoptrs):
11126         [1].
11127
11128         * unexnt.c:
11129         * unexnt.c (_start):
11130         [1].
11131
11132 2000-06-07  Ben Wing  <ben@xemacs.org>
11133
11134         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
11135         was used only as a model.  We've long since extracted any useful
11136         logic or code out of this. (I just did an exhaustive search.)
11137
11138         * s\msdos.h: Removed.
11139
11140         * s\windows95.h: Removed.
11141
11142 2000-06-10  Ben Wing  <ben@xemacs.org>
11143
11144         * s\cygwin32.h:
11145         [1]. [5].
11146         Don't use extern with fun defs.
11147
11148         * s\mingw32.h:
11149         [1]. [7].
11150         Remove nt\inc include.
11151         Remove getdisk, getdefdir. (The former is unused, the latter
11152         expanded in fileio.h.)
11153
11154         * s\windowsnt.h:
11155         * s\windowsnt.h (WIN32_NATIVE):
11156         * s\windowsnt.h (HAVE_STRCASECMP):
11157         [1]. [7].
11158         Add long comment about preprocessor changes.
11159         Remove getdisk, getdefdir. (The former is unused, the latter
11160         expanded in fileio.h.)
11161
11162 2000-06-10  Ben Wing  <ben@xemacs.org>
11163
11164         * m\arm.h:
11165         * m\delta.h:
11166         * m\intel386.h:
11167         * m\sequent.h:
11168         * m\template.h:
11169         * m\windowsnt.h:
11170         [1].
11171         Remove bogus/unused NO_SOCK_SIGIO.
11172
11173 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
11174
11175         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
11176         not an Emchar.
11177
11178 2000-06-04  Mike Sperber <mike@xemacs.org>
11179
11180         * casetab.c (set_case_table): For `set-standard-case-table',
11181         actually deposit the new case tables where the rest of XEmacs can
11182         see them.
11183
11184 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
11185
11186         * data.c (Faset): Don't cast XCHAR() to unsigned char.
11187
11188 2000-06-05  Ben Wing  <ben@xemacs.org>
11189
11190         * callproc.c (child_setup): Don't do close_load_descs() under
11191         MS Windows.  Put in a comment explaining why.
11192
11193 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
11194
11195         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
11196         Toolkit shell" which breaks `kill-compilation' on Windows NT
11197         native, retaining STDERR handling improvements.
11198
11199 2000-06-01  Andreas Jaeger  <aj@suse.de>
11200
11201         * s/s390.h: Support for S390, based on a patch by Martin
11202         Schwidefsky <schwidefsky@de.ibm.com>.
11203
11204 2000-05-30  Andy Piper  <andy@xemacs.org>
11205
11206         * window.c (allocate_window):
11207         (make_dummy_parent):
11208         (Fset_window_configuration): use new hashtable type.
11209
11210         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
11211         (struct image_instantiator_methods):
11212         (struct Lisp_Image_Instance): make instance geometry signed.
11213
11214         * glyphs.c (instantiate_image_instantiator):
11215         (image_instance_query_geometry):
11216         (image_instance_layout):
11217         (image_instance_layout):
11218         (query_string_geometry):
11219         (text_query_geometry):
11220         (image_instantiate):
11221         (image_instantiate):
11222         (cache_subwindow_instance_in_frame_maybe):
11223         (subwindow_query_geometry): make instance geometry signed.
11224
11225         * glyphs-widget.c (widget_query_geometry):
11226         (widget_layout):
11227         (button_query_geometry):
11228         (tree_view_query_geometry):
11229         (tab_control_query_geometry):
11230         (layout_query_geometry):
11231         (layout_layout):
11232         (native_layout_layout): make instance geometry signed.
11233
11234 2000-05-29  Olivier Galibert  <galibert@pobox.com>
11235
11236         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
11237         constant.
11238
11239         * general.c (syms_of_general): Add Qfull_assoc symbol.
11240
11241         * data.c (finish_marking_weak_lists): Mark full-assoc lists
11242         correctly.
11243         (decode_weak_list_type): Decode full-assoc type.
11244         (encode_weak_list_type): Encode full-assoc type.
11245         (Fmake_weak_list): Update doc string.
11246
11247 2000-05-30  Andy Piper  <andy@xemacs.org>
11248
11249         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
11250
11251         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
11252         (decode_hash_table_weakness): ditto.
11253         (Fhash_table_weakness): ditto.
11254         (Fhash_table_type): ditto.
11255         (finish_marking_weak_hash_tables): ditto.
11256         (hash_table_weakness_validate): ditto.
11257         (syms_of_elhash): ditto.
11258
11259 2000-05-28  Martin Buchholz <martin@xemacs.org>
11260
11261         * XEmacs 21.2.34 is released.
11262
11263 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
11264
11265         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
11266         start cache.
11267         (updating_line_start_cache): Gone.
11268         (regenerate_window): Replace resetting of VERTICAL_CLIP by
11269         generic code to force a minimum of 1 line laid out in the
11270         CMOTION_DISP case.
11271
11272 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
11273
11274         * glyphs.c (instantiate_image_instantiator): Check for initialized
11275         height & width no longer special cases IMAGE_NOTHING.
11276         (nothing_instantiate): Set height and width of instance.
11277
11278 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
11279
11280         * unexelf.c (unexec): Search for ".data" section.
11281         Initialize new_data2_offset from old_data_index.
11282         Remove redundant check for ElfW.
11283
11284 2000-05-23  Andy Piper  <andy@xemacs.org>
11285
11286         * glyphs.c (get_image_instantiator_governing_domain): allow more
11287         specific domains as the governing domain rather than expecting an
11288         exact match. This fixes problems with layouts.
11289
11290 2000-05-22  Andy Piper  <andy@xemacs.org>
11291
11292         * redisplay-output.c (compare_runes): check for non-images
11293
11294         * glyphs.c (set_glyph_dirty_p): ditto.
11295         (update_glyph_cachel_data): ditto.
11296
11297         * glyphs-widget.c (layout_post_instantiate): ditto.
11298         (layout_post_instantiate): ditto.
11299
11300         * event-msw.c (mswindows_wnd_proc): warning removal.
11301
11302 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
11303
11304         * s\mingw32.h: Added #undef for CLASH_DETECTION.
11305
11306         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
11307
11308         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
11309
11310         * nt.c (rva_to_section): mingw32 needs rva_to_section.
11311         (mswindows_executable_type): mingw32 now has enough headers for
11312         this to work.
11313
11314 2000-05-20  Andy Piper  <andy@xemacs.org>
11315
11316         * console-msw.c (mswindows_output_last_error): ; -> ,
11317
11318 2000-05-12  Andy Piper  <andy@xemacs.org>
11319
11320         * console-msw.c (FROB): compare ints with ints.
11321
11322 2000-05-11  Andy Piper  <andy@xemacs.org>
11323
11324         * glyphs-x.c (x_finalize_image_instance): make minimal build
11325         happy.
11326
11327 2000-05-20  Ben Wing  <ben@xemacs.org>
11328
11329         * event-Xt.c:
11330         * event-Xt.c (vars_of_event_Xt):
11331         move modifier-keys-are-sticky to event-stream.c.
11332
11333         * event-msw.c:
11334         * event-msw.c (mswindows_enqueue_mouse_button_event):
11335         * event-msw.c (key_needs_default_processing_p):
11336         * event-msw.c (XEMSW_LCONTROL):
11337         * event-msw.c (mswindows_handle_sticky_modifiers):
11338         * event-msw.c (FROB):
11339         * event-msw.c (clear_sticky_modifiers):
11340         * event-msw.c (output_modifier_keyboard_state):
11341         * event-msw.c (output_alt_keyboard_state):
11342         * event-msw.c (mswindows_wnd_proc):
11343         * event-msw.c (mswindows_modifier_state):
11344         * event-msw.c (emacs_mswindows_handle_magic_event):
11345         implement sticky modifiers.
11346
11347         * event-stream.c:
11348         * event-stream.c (vars_of_event_stream):
11349         move modifier-keys-are-sticky here.
11350
11351         * lisp.h:
11352         add CHECK_FUNCTION.
11353
11354         * rangetab.c:
11355         implement map-range-table.
11356
11357
11358 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
11359
11360         * redisplay-tty.c (reset_tty_modes):
11361         (tty_redisplay_shutdown): Adjust argument type to
11362         tty_frame_output_end.
11363
11364 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
11365
11366         * eval.c (Fbacktrace): Don't output a line with only right
11367         parenthesis.
11368
11369 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
11370
11371         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
11372         (Fpq_reset_poll): Ditto.
11373
11374 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
11375
11376         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
11377
11378 2000-05-16  Ben Wing  <ben@xemacs.org>
11379
11380         * buffer.c:
11381         * buffer.c (dfc_convert_to/from_internal_format):
11382         * buffer.c (reinit_vars_of_buffer):
11383         Fix conversion functions to allow reentrancy.
11384
11385         * console-msw.c:
11386         * console-msw.c (mswindows_output_last_error):
11387         New fun, generally useful -- output a human-readable
11388         version of GetLastError() on the console.
11389
11390         * console-msw.h:
11391         * console-msw.h (struct mswindows_frame):
11392         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
11393
11394         * console-stream.c (stream_output_begin):
11395         * console-stream.c (stream_output_end):
11396         * console-stream.c (stream_output_vertical_divider):
11397         * console-stream.c (stream_clear_region):
11398         * console-stream.c (stream_flash):
11399         * console-stream.c (console_type_create_stream):
11400         Delete blank stream methods, not needed.
11401
11402         * console.h (struct console_methods):
11403         Split begin/end methods into window and frame.
11404
11405         * event-msw.c:
11406         * event-msw.c (mswindows_handle_paint):
11407         * event-msw.c (output_alt_keyboard_state):
11408         * event-msw.c (mswindows_wnd_proc):
11409         * event-msw.c (vars_of_event_mswindows):
11410         Comment about problems with ignored-expose.
11411         Define mswindows-debug-events; not really implemented.
11412
11413         * frame-msw.c (mswindows_init_frame_1):
11414         random cleanups.
11415
11416         * glyphs-msw.c:
11417         * glyphs-msw.c (begin_defer_window_pos):
11418         * glyphs-msw.c (mswindows_unmap_subwindow):
11419         * glyphs-msw.c (mswindows_map_subwindow):
11420         * glyphs-msw.c (mswindows_resize_subwindow):
11421         Use DeferWindowPos to reduce flashing when mapping/unmapping.
11422
11423         * glyphs.c (make_image_instance_1):
11424         Fix crash.
11425
11426         * gutter.c (Fredisplay_gutter_area):
11427         Use new begin/end methods.
11428
11429         * lisp.h (Dynarr_new2):
11430         New creation fun.
11431
11432         * redisplay-msw.c:
11433         * redisplay-msw.c (mswindows_frame_output_begin):
11434         * redisplay-msw.c (mswindows_frame_output_end):
11435         * redisplay-msw.c (console_type_create_redisplay_mswindows):
11436         New begin/end methods -- handle DeferWindowPos.
11437
11438         * redisplay-output.c (redisplay_move_cursor):
11439         * redisplay-output.c (redraw_cursor_in_window):
11440         * redisplay-output.c (redisplay_update_line):
11441         * redisplay-output.c (redisplay_output_window):
11442         New begin/end methods.
11443
11444         * redisplay-tty.c:
11445         * redisplay-tty.c (tty_frame_output_begin):
11446         * redisplay-tty.c (tty_frame_output_end):
11447         * redisplay-tty.c (console_type_create_redisplay_tty):
11448         New begin/end methods.
11449
11450         * redisplay-x.c:
11451         * redisplay-x.c (x_window_output_begin):
11452         * redisplay-x.c (x_window_output_end):
11453         * redisplay-x.c (console_type_create_redisplay_x):
11454         New begin/end methods.
11455
11456         * redisplay.c (redisplay_frame):
11457         * redisplay.c (Fredisplay_echo_area):
11458         New begin/end methods.
11459         use MAYBE_DEVMETH for clear_frame; it may not exist.
11460
11461         * window.h (WINDOW_XFRAME):
11462         WINDOW_XFOO macros -- get locale and decode struct pointer.
11463
11464
11465 2000-05-12  Ben Wing  <ben@xemacs.org>
11466
11467         * emacs.c:
11468         * emacs.c (ensure_no_quitting_from_now_on):
11469         * emacs.c (fatal_error_signal):
11470         * emacs.c (mswindows_handle_hardware_exceptions):
11471         * emacs.c (main):
11472         * emacs.c (Fkill_emacs):
11473         * emacs.c (shut_down_emacs):
11474         * emacs.c (assert_failed):
11475         various improvements in fatal error handling.
11476
11477         * eval.c:
11478         move preparing_for_armageddon to emacs.c.
11479
11480         * lisp.h:
11481         declare fatal_error_in_progress.
11482
11483         * print.c:
11484         * print.c (std_handle_out_external):
11485         * print.c (std_handle_out_va):
11486         * print.c (stderr_out):
11487         * print.c (stdout_out):
11488         use console under mswin when no standard output.
11489         don't do code conversion during fatal error.
11490
11491         * scrollbar.c (Fscrollbar_page_up):
11492         * scrollbar.c (Fscrollbar_page_down):
11493         fix missing else.  reindent.
11494
11495 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
11496
11497         Emergency fix.
11498
11499         * glyphs.h (GLYPH_CACHEL_DESCENT):
11500         (GLYPH_CACHEL_DESCENT):
11501         (GLYPH_CACHEL_DESCENT):
11502         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
11503         used in case these are inline functions.
11504         Use more absurd values to error check.
11505
11506         include window.h for error check functions.
11507
11508 2000-05-11  Ben Wing  <ben@xemacs.org>
11509
11510         * cmdloop.c (Freally_early_error_handler):
11511         Display message box under windows; otherwise, message will disappear
11512         before it can be viewed.
11513
11514         * console-msw.c:
11515         * console-msw.c (Fmswindows_message_box):
11516         * console-msw.c (FROB):
11517         * console-msw.c (syms_of_console_mswindows):
11518         Define new fun `mswindows-message-box'.
11519         #### I will merge this into `popup-dialog-box'; just give me
11520         a bit of time.
11521
11522         * general.c:
11523         * general.c (syms_of_general):
11524         Some new symbols used in `mswindows-message-box'.
11525
11526         * glyphs.c:
11527         * glyphs.c (Fset_image_instance_property):
11528         put warning in this fun.
11529
11530         * glyphs.h:
11531         * glyphs.h (GLYPH_CACHEL_WIDTH):
11532         * glyphs.h (GLYPH_CACHEL_ASCENT):
11533         * glyphs.h (GLYPH_CACHEL):
11534         * glyphs.h (GLYPH_CACHEL_GLYPH):
11535         define error-checking versions to try to catch a bug i've seen --
11536         redisplay gets in an infinite loop because the glyph width of the
11537         continuation glyph is 65535.
11538
11539         * lisp.h:
11540         Extern message-box stuff.
11541
11542         * window.c (allocate_window):
11543         * window.c (make_dummy_parent):
11544         * window.c (Fset_window_configuration):
11545         Use EQUAL not EQ for subwindow caches to make them work a bit
11546         better. (Something is still very broken.)
11547
11548
11549 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
11550
11551         * glyphs.c (image_instantiate): Suppress gcc warnings.
11552         (Fmake_image_instance): Fix doc string.
11553         * specifier.c (Fmake_specifier): Ditto.
11554
11555 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
11556
11557         * paths.h.in (PATH_LOCK): Removed.
11558         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
11559         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
11560
11561 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
11562
11563         * fns.c (Ffeaturep): Update e-mail address in doc-string.
11564         Document (featurep '(and xemacs 21.02)).
11565
11566 2000-05-09  Ben Wing  <ben@xemacs.org>
11567
11568         * buffer.c (complex_vars_of_buffer):
11569         update modeline-format doc.
11570
11571         * device.h:
11572         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
11573
11574         * emacs.c:
11575         timeline of all released versions of Emacs, for use in creating
11576         authorship comments and in synching up.
11577
11578         * glyphs-widget.c (image_instantiator_buttons):
11579         * glyphs-widget.c (image_instantiator_edit_fields):
11580         * glyphs-widget.c (image_instantiator_combo_box):
11581         * glyphs-widget.c (image_instantiator_scrollbar):
11582         * glyphs-widget.c (image_instantiator_progress_guage):
11583         * glyphs-widget.c (image_instantiator_tree_view):
11584         * glyphs-widget.c (image_instantiator_tab_control):
11585         * glyphs-widget.c (image_instantiator_labels):
11586         * glyphs-widget.c (image_instantiator_layout):
11587         * glyphs-widget.c (image_instantiator_native_layout):
11588         rename decode_domain method to governing_domain.
11589
11590         * glyphs.c:
11591         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
11592         * glyphs.c (add_entry_to_device_ii_format_list):
11593         make sure we don't put an entry more than once into the list.
11594         * glyphs.c (check_instance_cache_mapper):
11595         *************************************************************
11596         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
11597         HAVE BEEN GETTING.
11598         *************************************************************
11599         * glyphs.c (get_image_instantiator_governing_domain):
11600         clean up, expand on new concept of governing domain.
11601         * glyphs.c (instantiate_image_instantiator):
11602         * glyphs.c (allocate_image_instance):
11603         use governing_domain instead of cache_domain in naming.
11604         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
11605         * glyphs.c (make_image_instance_1):
11606         * glyphs.c (Fmake_image_instance):
11607         allow for any domain (not just device), and process the
11608         governing domain correctly.  very big doc fix.
11609         * glyphs.c (Fimage_instance_domain):
11610         new primitive, to retrieve the governing domain of an image instance.
11611         * glyphs.c (image_instantiate):
11612         use new governing_domain stuff.  this fixes a crash you could get
11613         by instantiating certain widget glyphs in frame locales. (should
11614         signal an error instead of crashing.)
11615         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
11616         * glyphs.c (Fglyphp): clean up doc.
11617         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
11618         * glyphs.c (syms_of_glyphs):
11619         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
11620         * glyphs.c (image_instantiator_format_create): add some comments about
11621         bogus code.
11622         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
11623         for current-display-table. (Apparently Hrjove implemented in 1998 a
11624         design I wrote up in 1996, but didn't update the doc string.)
11625
11626         * glyphs.h: clean up a doc string.
11627         * glyphs.h (governing_domain):
11628         * glyphs.h (struct image_instantiator_methods):
11629         changes for governing_domain stuff.
11630
11631         * gutter.c:
11632         * gutter.c (Fgutter_specifier_p):
11633         * gutter.c (Fgutter_size_specifier_p):
11634         * gutter.c (Fgutter_visible_specifier_p):
11635         * objects.c:
11636         * objects.c (Fcolor_specifier_p):
11637         * objects.c (Ffont_specifier_p):
11638         * objects.c (Fface_boolean_specifier_p):
11639         doc strings moved to make-*-specifier.
11640
11641         * redisplay.c (add_disp_table_entry_runes_1):
11642         * redisplay.c (generate_fstring_runes):
11643         * redisplay.c (screen):
11644         add random comments and doc strings.
11645
11646         * specifier.c:
11647         * specifier.c (Fmake_specifier):
11648         major overhaul of this doc string.
11649
11650         * specifier.c (Fvalid_specifier_domain_p):
11651         comment about the bogosity of image instances being domains.
11652         * specifier.c (decode_domain):
11653         now non-static, used in glyphs.c.
11654         * specifier.c (specifier_instance):
11655         comment about the bogosity of image instances being domains.
11656         * specifier.c (Fgeneric_specifier_p):
11657         move doc string to make-generic-specifier.
11658         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
11659         rebackslashify.
11660
11661         * specifier.h:
11662         * specifier.h (DOMAIN_FRAME):
11663         * specifier.h (DOMAIN_LIVE_P):
11664         * specifier.h (DOMAIN_XDEVICE):
11665         rebackslashify.
11666         add comments about problems with these macros.
11667         prototype for decode_domain.
11668
11669         * toolbar.c:
11670         * toolbar.c (Ftoolbar_specifier_p):
11671         move doc string to `make-toolbar-specifier'.
11672
11673         * window.c (window_unmap_subwindows_cache_mapper):
11674         *************************************************************
11675         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
11676         HAVE BEEN GETTING.
11677         *************************************************************
11678
11679 2000-05-09  Andy Piper  <andy@xemacs.org>
11680
11681         * glyphs.h: declare reset_frame_subwindow_instance_cache.
11682
11683         * window.c (Fset_window_configuration): reset the frame subwindow
11684         cache and re-initialize the window subwindow caches.
11685
11686         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
11687
11688 2000-05-09  Ben Wing  <ben@xemacs.org>
11689
11690         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
11691         DWORD.
11692
11693 2000-04-26  Mike Woolley  <mike@bulsara.com>
11694
11695         * ntheap.c: Changed recreate_heap to limit the amount reserved
11696         for the heap to that which is actually available. Also now
11697         displays a message box (with some dignostics) in the event that
11698         it still can't start.
11699
11700 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
11701
11702         * callproc.c (Fold_call_process_internal): GCPRO path
11703
11704 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
11705
11706         Patch by Bill Perry.
11707
11708         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
11709         back data instead of #ifdef.
11710         (Fscrollbar_page_down): ditto.
11711
11712 2000-05-07  Ben Wing  <ben@xemacs.org>
11713
11714         * buffer.h:
11715         Kludge for defining Qmswindows_tstr.
11716
11717         * nt.c:
11718         * nt.c (open_input_file):
11719         * nt.c (open_output_file):
11720         * nt.c (rva_to_section):
11721         * nt.c (mswindows_executable_type):
11722         Move all memory-mapped-file routines here (some were in unexnt.c,
11723         which is bad because they are used by process-nt.c, and unexnt
11724         won't be around when portable dumping).  Synched the above routines
11725         with FSF 20.6.
11726
11727         * nt.h:
11728         Removed ifdef'd out bogus code.
11729         Fixed some prototypes.
11730
11731         * nt.h (file_data):
11732         * nt.h (OFFSET_TO_RVA):
11733         * nt.h (RVA_TO_OFFSET):
11734         * nt.h (RVA_TO_PTR):
11735         Moved the memory-mapped-file structures, macros and prototypes
11736         here, to parallel nt.c.  ntheap.h should really be removed
11737         entirely, and it's a non-portable-dumper specific file.
11738
11739         * ntheap.h (round_to_next):
11740         Moved the memory-mapped-file structures, macros and prototypes
11741         to nt.h.
11742
11743         * ntproc.c (compare_env):
11744         Moved rva_to_section and mswindows_executable_type to nt.c.
11745         Moved compare_env to process-nt.c.
11746         ntproc.c will die, one day.
11747
11748         * ntproc.c (sys_spawnve):
11749         Account for win32_ -> mswindows_.
11750
11751         * process-nt.c:
11752         * process-nt.c (struct nt_process_data):
11753         * process-nt.c (ensure_console_window_exists):
11754         * process-nt.c (compare_env):
11755         * process-nt.c (nt_create_process):
11756         * process-nt.c (nt_kill_process_by_pid):
11757         * process-nt.c (syms_of_process_nt):
11758         * process-nt.c (vars_of_process_nt):
11759         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
11760         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
11761         changes).  Eliminate our old `nt-quote-process-args' mechanism.
11762         Synch up nt_create_process with FSF 20.6 sys_spawnve.
11763         Move compare_env here from ntproc.c.
11764
11765         * process.c (Fprocess_send_region):
11766         Takes an optional fourth argument, BUFFER, which should fix some
11767         problems with call-process.
11768
11769         * syscommctrl.h:
11770         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
11771
11772         * syswindows.h:
11773         Move ICC_BAR_CLASSES to syscommctrl.h.
11774         Add preliminary macros for MSWindows/Mule.  More to come.
11775
11776         * unexnt.c:
11777         * unexnt.c (unexec):
11778         open_output_file moved to nt.c.
11779
11780
11781 2000-05-05  Andy Piper  <andy@xemacs.org>
11782
11783         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
11784         instance from the frame cache also since GC may catch up too late
11785         to make frame deletion sane.
11786
11787 2000-05-04  Andy Piper  <andy@xemacs.org>
11788
11789         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
11790         (x_finalize_image_instance): ungcpro on deletion.
11791
11792         * glyphs.c (image_instantiator_format_create): give pointers a
11793         query geometry method so that the geometry is at least set.
11794
11795         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
11796         initialize layouts if using widgets.
11797
11798 2000-05-03  Andy Piper  <andy@xemacs.org>
11799
11800         * nt.c: remove bogus reference to sysmmsystem.h
11801
11802         * gui-x.c (popup_selection_callback): fix no selection abort.
11803
11804 2000-05-02  Andy Piper  <andy@xemacs.org>
11805
11806         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
11807         (mswindows_widget_instantiate): ditto.
11808
11809         * glyphs-widget.c (initialize_widget_image_instance): initialize
11810         children correctly.
11811         (widget_instantiate): cope with children and items in the same
11812         instance.
11813
11814         * glyphs.c (mark_image_instance): cope with children as a first
11815         class member.
11816         (image_instance_equal): ditto.
11817         (image_instance_hash): ditto.
11818         (image_instance_changed): ditto.
11819
11820 2000-04-30  Andy Piper  <andy@xemacs.org>
11821
11822         * glyphs.c (subwindow_query_geometry): new function. Return some
11823         defaults.
11824         (subwindow_instantiate): don't assign dimensions if none have been
11825         given.
11826         (image_instantiator_format_create): add subwindow_query_geometry.
11827         (print_image_instance): cope with layouts as widgets.
11828
11829 2000-04-29  Andy Piper  <andy@xemacs.org>
11830
11831         * frame.c (delete_frame_internal): call
11832         free_frame_subwindow_instance_cache so that all subwindows are
11833         finalized before their parent.
11834         (mark_frame): remove subwindow_cachels.
11835         (Fmake_frame): remove subwindow_cachel manipulation.
11836         (allocate_frame_core): subwindow_instance_cache is a weak list.
11837         (delete_frame_internal): set subwindow_instance_cache to nil.
11838
11839         * glyphs-msw.c (mswindows_finalize_image_instance): make double
11840         finalization safe.
11841         (mswindows_finalize_image_instance): use the device
11842         not the domain as the domain may have died already.
11843
11844         * glyphs-x.c (x_finalize_image_instance): ditto.
11845         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
11846         HEIGHT.
11847
11848         * redisplay-output.c (redisplay_unmap_subwindows): update for
11849         subwindow instance cache as a weak list.
11850         (redisplay_unmap_subwindows_maybe): ditto.
11851         (redisplay_unmap_subwindows_except_us): ditto.
11852
11853         * glyphs.c (unmap_subwindow): error checking will check the domain
11854         so don't deal with it here. Don't use cachels anymore.
11855         (map_subwindow): ditto.
11856         (update_subwindow_cachel_data): remove old accessor names.
11857         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
11858         (Fresize_subwindow): don't update cachel.
11859         (mark_subwindow_cachels):
11860         (update_subwindow_cachel_data):
11861         (add_subwindow_cachel):
11862         (get_subwindow_cachel_index):
11863         (update_subwindow_cachel):
11864         (reset_subwindow_cachels):
11865         (mark_subwindow_cachels_as_not_updated): deleted.
11866         (cache_subwindow_instance_in_frame_maybe): new function. Add a
11867         subwindow instance to the frame cache.
11868         (find_matching_subwindow): update for subwindow instance cache as
11869         a weak list.
11870         (update_widget_instances): ditto.
11871         (image_instance_type_to_mask):inlined.
11872         (free_frame_subwindow_instance_cache): new function. finalize all
11873         subwindows that are instantiated.
11874
11875         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
11876         of cachel information.
11877         (IMAGE_INSTANCE_DISPLAY_X):
11878         (IMAGE_INSTANCE_DISPLAY_Y):
11879         (IMAGE_INSTANCE_DISPLAY_WIDTH):
11880         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
11881         (XIMAGE_INSTANCE_DISPLAY_X):
11882         (XIMAGE_INSTANCE_DISPLAY_Y):
11883         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
11884         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
11885         remove subwindow_cachel structure and function references.
11886         (image_instance_type_to_mask): inline from glyphs.c
11887
11888         * redisplay.c (redisplay_frame): remove subwindow_cachel
11889         references.
11890
11891         * frame.h (struct frame): remove subwindow_cachels.
11892         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
11893
11894         * frameslots.h: add subwindow_instance_cache.
11895
11896         * window.c (replace_window): check subwindow cache of replacement.
11897         (window_unmap_subwindows_cache_mapper):
11898         (window_unmap_subwindows): new functions. Unmap all subwindows
11899         cached on this window.
11900         (mark_window_as_deleted): unmap all subwindows.
11901
11902 2000-04-27  Andy Piper  <andy@xemacs.org>
11903
11904         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
11905
11906         * glyphs-widget.c (widget_layout): return something.
11907         (layout_layout): return something. Fail if not initialized.
11908         (layout_query_geometry): ditto.
11909         (image_instantiator_native_layout): new function. Initialized the
11910         native layout type.
11911         (widget_instantiate): don't do layout stuff here.
11912
11913         * glyphs.c (instantiate_image_instantiator): reorded calling or
11914         instantiate and post_instantiate with layout in between.
11915         (image_instance_layout): be more selective about deciding whether
11916         the layout has been done or not.
11917
11918         * glyphs.h (struct image_instantiator_methods): return a value
11919         from layout_method.
11920
11921 2000-04-26  Andy Piper  <andy@xemacs.org>
11922
11923         * glyphs.c (allocate_image_instance): make initial width and
11924         height unspecified. Set initialized to 0.
11925
11926         * syscommctrl.h new file. Encapsulates commctrl.h.
11927
11928         * syswindows.h new file. Encapsulates windows.h.
11929
11930         * ntplay.c: use new syswindows.h and syscommctrl.h header.
11931         * nt.c: ditto.
11932         * console-msw.h: ditto.
11933
11934         * redisplay-tty.c (tty_output_display_block): remove layout references.
11935
11936         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
11937         window handle rather than just the frame.
11938
11939         * glyphs.c (mark_image_instance): remove layout references.
11940         (print_image_instance): ditto.
11941         (image_instance_equal): ditto.
11942         (image_instance_hash): ditto.
11943         (decode_image_instance_type): ditto.
11944         (encode_image_instance_type): ditto.
11945         (image_instantiate): ditto.
11946         (allocate_glyph): ditto.
11947         (Fimage_instance_height): ditto.
11948         (Fimage_instance_width): ditto.
11949         (update_subwindow): ditto.
11950
11951         * redisplay-x.c (x_output_display_block): recode for layouts as
11952         widgets.
11953
11954         * redisplay-output.c (redisplay_output_layout): recode for layouts
11955         as widgets.
11956         (compare_runes): remove layout references.
11957
11958         * redisplay-msw.c (mswindows_output_display_block): recode for
11959         layouts as widgets.
11960
11961         * glyphs-widget.c (image_instantiator_layout): remove
11962         layout_possible_dest_types.
11963         (layout_possible_dest_types): deleted.
11964
11965         * glyphs.h (image_instance_type): remove layout references.
11966         (struct Lisp_Image_Instance): ditto. Add initialized flag.
11967         (IMAGE_INSTANCE_INITIALIZED): new accessor.
11968         (XIMAGE_INSTANCE_INITIALIZED): ditto.
11969
11970 2000-04-25  Andy Piper  <andy@xemacs.org>
11971
11972         * glyphs-widget.c (image_instantiator_buttons):
11973         (image_instantiator_edit_fields):
11974         (image_instantiator_combo_box):
11975         (image_instantiator_scrollbar):
11976         (image_instantiator_progress_guage):
11977         (image_instantiator_tree_view):
11978         (image_instantiator_tab_control):
11979         (image_instantiator_labels):
11980         (image_instantiator_layout): call default post_instantiate method.
11981         (widget_post_instantiate): new function. Simply lays out the
11982         widgets.
11983
11984         * glyphs.h (struct image_instantiator_methods): add
11985         post_instantiate method.
11986
11987         * glyphs.c (instantiate_image_instantiator): add post_instantiate
11988         method calls.
11989
11990 2000-04-23  Andy Piper  <andy@xemacs.org>
11991
11992         * glyphs.h (struct image_instantiator_methods): add
11993         decode_domain_method.
11994         (struct Lisp_Image_Instance): remove subwindow frame - it can be
11995         derived from the domain.
11996         (IMAGE_INSTANCE_FRAME): new accessor.
11997         (XIMAGE_INSTANCE_FRAME): ditto.
11998
11999         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
12000         instead of _SUBWINDOW_FRAME.
12001         (finalize_image_instance): ditto.
12002         (Fimage_instance_foreground): ditto.
12003         (Fimage_instance_background): ditto.
12004         (image_instantiate): ditto.
12005         (update_subwindow_cachel): ditto.
12006         (update_subwindow): ditto.
12007         (unmap_subwindow): ditto.
12008         (map_subwindow): ditto
12009         (subwindow_instantiate): ditto.
12010         * glyphs-msw.c (mswindows_update_widget): ditto.
12011         (mswindows_progress_gauge_instantiate): ditto.
12012         (mswindows_tab_control_update): ditto.
12013         * glyphs-x.c (x_update_widget): ditto.
12014         (x_widget_instantiate): ditto.
12015         (x_tab_control_instantiate): ditto.
12016         (x_tab_control_update): ditto.
12017         * event-msw.c (mswindows_wnd_proc): ditto
12018
12019         * glyphs-widget.c (image_instantiator_layout): use
12020         subwindow_decode_domain.
12021         (image_instantiator_buttons): ditto.
12022         (image_instantiator_edit_fields): ditto.
12023         (image_instantiator_combo_box): ditto.
12024         (image_instantiator_scrollbar): ditto.
12025         (image_instantiator_progress_guage): ditto.
12026         (image_instantiator_tree_view): ditto.
12027         (image_instantiator_tab_control): ditto.
12028         (image_instantiator_labels): ditto.
12029         (image_instantiator_layout): ditto.
12030
12031         * glyphs.c: add instance error checking to many functions.
12032         (instantiate_image_instantiator): decode device from cache_domain.
12033         (image_instantiate): partially rewrite by using
12034         decode_image_instantiator_domain to determine what domain the
12035         instance needs to be cached in.
12036         (decode_image_instantiator_domain): new function. Determine what
12037         domain the image needs to be cached in.
12038         (check_window_subwindow_cache): new error checking function.
12039         (check_instance_cache_mapper): ditto.
12040         (check_image_instance_structure): ditto.
12041         (subwindow_decode_domain): new function. Encodes a window as a
12042         subwindow's cache domain.
12043         (image_instantiator_format_create): use it for text and
12044         subwindows.
12045
12046 2000-04-21  Andy Piper  <andy@xemacs.org>
12047
12048         * glyphs.c (image_instance_device): new function.
12049         (image_instance_frame): new function.
12050         (image_instance_window): new function.
12051         (image_instance_live_p): new function.
12052
12053         * window.c (mark_window_as_deleted): reset the subwindow_instance_
12054         cache to nil.
12055
12056         * glyphs.h (struct Lisp_Image_Instance): device->domain.
12057         (IMAGE_INSTANCE_DOMAIN): new accessor.
12058         (XIMAGE_INSTANCE_DOMAIN): ditto.
12059
12060         * glyphs-x.c (x_finalize_image_instance): device->domain.
12061
12062         * glyphs-msw.c (init_image_instance_geometry): device->domain.
12063         (mswindows_finalize_image_instance): ditto.
12064
12065         * glyphs-eimage.c (jpeg_instantiate): device->domain.
12066         (gif_instantiate): ditto.
12067         (png_instantiate): ditto.
12068         (tiff_instantiate): ditto.
12069
12070         * glyphs.c (instantiate_image_instantiator): use domain rather
12071         than device.
12072         (mark_image_instance): device -> domain.
12073         (print_image_instance): ditto.
12074         (finalize_image_instance): ditto.
12075         (image_instance_equal): ditto.
12076         (allocate_image_instance): ditto.
12077         (Fcolorize_image_instance): ditto.
12078         (query_string_geometry): ditto.
12079         (image_instantiate): ditto
12080         (query_string_font): ditto.
12081         (image_instantiate): ditto.
12082         (update_subwindow): ditto.
12083         (unmap_subwindow): ditto.
12084         (map_subwindow): ditto.
12085         (subwindow_instantiate): ditto.
12086
12087         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
12088         (DOMAIN_FRAME): ditto.
12089         (DOMAIN_WINDOW): ditto.
12090         (DOMAIN_LIVE_P): ditto.
12091         (XDOMAIN_DEVICE): ditto.
12092         (XDOMAIN_FRAME): ditto.
12093         (XDOMAIN_WINDOW): ditto.
12094
12095         * specifier.c (Fvalid_specifier_domain_p): add image instances as
12096         a valid specifier domain.
12097
12098 2000-04-19  Andy Piper  <andy@xemacs.org>
12099
12100         * glyphs-widget.c (syms_of_glyphs_widget): remove
12101         widget-callback-current-channel.
12102         (vars_of_glyphs_widget): ditto.
12103         * glyphs.h: ditto
12104
12105         * gui.c (get_gui_callback): revert to previous behaviour.
12106
12107 2000-04-18  Andy Piper  <andy@xemacs.org>
12108
12109         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
12110         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
12111         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
12112
12113         * glyphs.c (image_instance_equal): add margin_width.
12114         (image_instance_hash): ditto.
12115
12116         * glyphs-widget.c (widget_instantiate): deal with margin-width.
12117         (layout_query_geometry): ditto.
12118         (layout_layout): ditto.
12119         (syms_of_glyphs_widget): add margin-width.
12120         (image_instantiator_layout): allow margin-width.
12121
12122         * glyphs.c (update_widget_instances): make a normal function.
12123         (syms_of_glyphs): remove Qupdate_widget_instances.
12124         * glyphs.h: ditto.
12125
12126         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
12127         so that we don't corrupt ideas about the last event or
12128         command. Remove widget-callback-current-channel fiddling.
12129         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
12130
12131 2000-05-01  Martin Buchholz <martin@xemacs.org>
12132
12133         * XEmacs 21.2.33 is released.
12134
12135 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
12136
12137         * make-src-depend: Allow dots in header file name.
12138
12139 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
12140
12141         * mule-charset.h (struct charset_lookup): Add
12142         next_allocated_1_byte_leading_byte and
12143         next_allocated_2_byte_leading_byte.
12144         * mule-charset.c: Move above two variables so that those values
12145         will be dumped.
12146
12147 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
12148
12149         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
12150         when string length is zero.
12151         (find_charsets_in_emchar_string): Ditto.
12152
12153 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
12154
12155         * lisp.h: extern Qdialog and Qmenubar.
12156
12157         * gui-x.c: added events.h.
12158                 also fixed typo which made the file uncompilable.
12159
12160         * general.c: Added Qmenubar and Qdialog
12161
12162 2000-04-28  Ben Wing  <ben@xemacs.org>
12163
12164         * frame-msw.c (mswindows_init_frame_1):
12165         * frame-msw.c (mswindows_mark_frame):
12166         * event-msw.c (mswindows_enqueue_dispatch_event):
12167         * console-msw.h:
12168         * console-msw.h (struct mswindows_frame):
12169         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
12170         there are now three hash tables for callbacks.
12171         mswindows_enqueue_dispatch_event is no longer static.
12172
12173         * dialog-x.c (maybe_run_dbox_text_callback):
12174         * dialog-x.c (dbox_descriptor_to_widget_value):
12175         switch to new cons3 form for callbacks.
12176
12177         * glyphs-msw.c (mswindows_register_gui_item):
12178         * glyphs-msw.c (mswindows_widget_instantiate):
12179         * glyphs-msw.c (add_tree_item):
12180         * glyphs-msw.c (add_tab_item):
12181         new image instance parameter, so it can be passed to callback-ex.
12182         respect :callback-ex as well as :callback.
12183
12184         * glyphs-widget.c (VALID_GUI_KEYWORDS):
12185         add :callback-ex.
12186
12187         * glyphs.c (print_image_instance):
12188         prettify, e.g. now prints widget type.
12189
12190         * gui-x.h:
12191         certain funs have new image instance parameter.
12192
12193         * gui.c:
12194         * gui.c (get_gui_callback):
12195         * gui.c (gui_item_add_keyval_pair):
12196         * gui.c (gui_item_init):
12197         * gui.c (gui_add_item_keywords_to_plist):
12198         * gui.c (mark_gui_item):
12199         * gui.c (gui_item_hash):
12200         * gui.c (gui_item_equal):
12201         * gui.c (copy_gui_item):
12202         * gui.c (syms_of_gui):
12203         recognize callback-ex in a number of places.
12204         also, fix the annoying "can't get out of yes-no dialog" bug.
12205
12206         * gui.h:
12207         * gui.h (struct Lisp_Gui_Item):
12208         recognize callback-ex in a number of places.
12209
12210         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
12211         new parameter in button_item_to_widget_value.
12212
12213         * glyphs-x.c (x_update_widget):
12214         * glyphs-x.c (x_button_instantiate):
12215         * glyphs-x.c (x_button_update):
12216         * glyphs-x.c (x_progress_gauge_instantiate):
12217         * glyphs-x.c (x_edit_field_instantiate):
12218         * glyphs-x.c (x_combo_box_instantiate):
12219         * glyphs-x.c (x_tab_control_instantiate):
12220         * glyphs-x.c (x_label_instantiate):
12221         new image instance parameter in various places.
12222
12223         * event-Xt.c:
12224         * event-Xt.c (enqueue_Xt_dispatch_event):
12225         this fun gets exported.
12226
12227         * gui-msw.c:
12228         * gui-msw.c (mswindows_handle_gui_wm_command):
12229         handle both :callback and :callback-ex, and generate our own
12230         event because it's one of the callback-ex arguments.
12231
12232         * gui-x.c:
12233         * gui-x.c (popup_selection_callback):
12234         handle both :callback and :callback-ex, and generate our own
12235         event because it's one of the callback-ex arguments.
12236         * gui-x.c (button_item_to_widget_value):
12237         * gui-x.c (gui_items_to_widget_values_1):
12238         * gui-x.c (gui_item_children_to_widget_values):
12239         * gui-x.c (gui_items_to_widget_values):
12240         new image instance parameter in various places.
12241
12242         * fns.c (Freplace_list):
12243         fix small typo in doc string.
12244
12245         * lisp.h:
12246         declare enqueue_Xt_dispatch_event.
12247
12248 2000-04-28  Ben Wing  <ben@xemacs.org>
12249
12250         * buffer.c:
12251         * buffer.c (Frecord_buffer):
12252         * buffer.c (syms_of_buffer):
12253         delete record-buffer-hook.
12254
12255         * fns.c:
12256         * fns.c (Freplace_list):
12257         * fns.c (syms_of_fns):
12258         new primitive replace-list.
12259
12260         * frameslots.h:
12261         slot for old buffer-alist.
12262
12263         * lisp.h:
12264         exfun replace-list.
12265
12266         * redisplay.c:
12267         * redisplay.c (redisplay_frame):
12268         * redisplay.c (syms_of_redisplay):
12269         * redisplay.c (vars_of_redisplay):
12270         new hook buffer-list-changed-hook.
12271         call it.
12272
12273 2000-04-27  Ben Wing  <ben@xemacs.org>
12274
12275         * extents.h: extern in_modeline_generation.
12276
12277         * redisplay.c (generate_formatted_string_db): set
12278         in_modeline_generation.
12279
12280         * extents.c (extent_changed_for_redisplay): don't mark redisplay
12281         flags if in modeline generation.  otherwise frame-modified-tick
12282         is ticked far too often.
12283         Declare in_modeline_generation.
12284
12285 2000-04-26  Ben Wing  <ben@xemacs.org>
12286
12287         * emacs.c (vars_of_emacs): document quick-build "error-checking"
12288         option.
12289         (vars_of_emacs): add quick-build as an error-checking option.
12290         A bit kludgy, but there doesn't seem much point in creating
12291         a real var for this.
12292
12293         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
12294
12295 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
12296
12297         * redisplay.h (struct display_line): Add a new variable,
12298         line_continuation.
12299
12300         * redisplay.c (create_text_block): Set dl->line_continuation if
12301         the line continues.
12302         (create_string_text_block): Ditto.
12303         (regenerate_window_incrementally): Use line_continuation instead
12304         of searching continuation glyph.
12305         (add_margin_runes): Call add_glyph_rune.
12306         (add_glyph_rune): Handle margin glyph.
12307
12308 2000-04-20  Martin Buchholz  <martin@xemacs.org>
12309
12310         * filelock.c (fill_in_lock_file_name):
12311         ANSIfy.
12312         Check for IS_ANY_SEP instead of '/'.
12313         (lock_file_1):
12314         Avoid generating gratuitous garbage.  Call user_login_name() directly.
12315         Never check errno without first seeing that system call failed.
12316         (unlock_file): Add GCPRO.
12317         (Flock_buffer): Fix docstring.
12318         (Ffile_locked_p): Fix docstring.  Add GCPRO.
12319
12320 2000-04-19  Martin Buchholz  <martin@xemacs.org>
12321
12322         * sysdep.c (get_pty_max_bytes):
12323         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
12324         strings longer than 252 bytes.
12325
12326         * md5.c: Unconditionally include ANSI header <limits.h>
12327
12328         * glyphs-x.c (convert_EImage_to_XImage):
12329         * lisp-union.h (union Lisp_Object):
12330         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
12331
12332 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
12333
12334         * filelock.c (current_lock_owner): Remove unused variable o, p.
12335
12336 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
12337
12338         * callint.c: Remove multiply defined symbol Qlet
12339         (syms_of_callint): ditto.
12340
12341 2000-04-14  Andy Piper  <andy@xemacs.org>
12342
12343         * general.c (syms_of_general): add last-command, this-command, let
12344         and funcall.
12345
12346         * lisp.h: declare various symbols.
12347
12348         * glyphs.h: declare Qwidget_callback_current_channel;
12349
12350         * glyphs-widget.c (syms_of_glyphs_widget): add
12351         Qgui_callback_current_channel.
12352         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
12353
12354         * gui-msw.c (mswindows_handle_gui_wm_command): bind
12355         widget-callback-current-channel when invoking the interactive
12356         arg. Also bind last-command and next-command when invoking the
12357         widget updates.
12358         * gui-x.c (popup_selection_callback): ditto.
12359
12360         * gui.c (get_gui_callback): massage args so that we are always
12361         calling eval. This allows us to add our own variable bindings
12362         outside.
12363
12364         * glyphs-x.c (x_button_instantiate): use
12365         gui_items_to_widget_values since this is GC safe.
12366         (x_progress_gauge_instantiate): ditto.
12367         (x_edit_field_instantiate): ditto.
12368         (x_label_instantiate): ditto.
12369
12370         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
12371         (emacs_Xt_event_widget_focus_out): new function
12372         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
12373         focus.
12374         (emacs_Xt_event_add_widget_actions): new function. add focus
12375         functions as actions.
12376         (init_event_Xt_late): use it.
12377
12378 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
12379
12380         * event-stream.c (Fdispatch_event): Doc fix.
12381
12382 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
12383
12384         * postgresql.c: Remove all references to PQsetenv*.
12385
12386         * postgresql.h: Remove references to PGsetenvHandler object.
12387         * lrecord.h (lrecord_type): Ditto.
12388
12389 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12390
12391         * glyphs-msw.h (struct mswindows_image_instance_data): Added
12392         real_heigh and real_width members, and accessor macros for these.
12393
12394         * glyphs-msw.c (init_image_instance_geometry): New function.
12395         (init_image_instance_from_dibitmap): Use it.
12396         (mswindows_resource_instantiate): Use it.
12397         (init_image_instance_from_xbm_inline): Use it.
12398         (mswindows_initialize_image_instance_mask): Use real bitmap
12399         geometry.
12400         (mswindows_create_resized_bitmap): Ditto.
12401         (mswindows_create_resized_mask): Ditto.
12402
12403         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
12404         and bitmap to their surface size.
12405
12406 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
12407
12408         * process-unix.c (unix_send_process): Guard against process MIA
12409         after Faccept_process_output.
12410
12411 2000-04-11  Ben Wing  <ben@xemacs.org>
12412
12413         * eval.c (unbind_to_hairy): fix brokenness introduced by
12414         nanosecond speed improvements.
12415
12416 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
12417
12418         * sunplay.c (init_device): To play sounds correctly, the device
12419         apparently needs to be initialized at least once by XEmacs.  Make
12420         it so.
12421
12422 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
12423
12424         * redisplay.c (add_margin_runes): Add text image glyph
12425           handling.
12426
12427 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
12428
12429         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
12430         gcc is newer than 2.5.
12431
12432 2000-04-06  Colin Rafferty  <colin@xemacs.org>
12433
12434         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
12435
12436         * fns.c (size_bit_vector):
12437         * alloc.c (size_vector):
12438         (make_vector_internal):
12439         (make_bit_vector_internal):
12440         (sweep_bit_vectors_1):
12441         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
12442
12443 2000-04-06  Andy Piper  <andy@xemacs.org>
12444
12445         * gmalloc.c (malloc): undo previous change.
12446         (malloc): ditto.
12447         (free): ditto.
12448         (realloc): ditto.
12449
12450 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
12451
12452         * line-number.c (buffer_line_number): Revert to former version.
12453
12454 2000-04-06  Andy Piper  <andy@xemacs.org>
12455
12456         * gmalloc.c (malloc): add error checking.
12457         (malloc): ditto.
12458         (free): ditto.
12459         (realloc): ditto.
12460
12461         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
12462         button_item_to_widget_value arg.
12463
12464         * glyphs-x.c (x_button_instantiate): add extra
12465         button_item_to_widget_value arg.
12466         (x_progress_gauge_instantiate): ditto.
12467         (x_edit_field_instantiate): ditto.
12468         (x_label_instantiate): ditto.
12469
12470         * gui-x.c (gui_items_to_widget_values_1): add extra
12471         button_item_to_widget_value arg.
12472         (button_item_to_widget_value): add extra menu_item_p arg.
12473
12474         * gui-x.h: change signature of button_item_to_widget_value.
12475
12476         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
12477         button_item_to_widget_value arg.
12478
12479 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
12480
12481         * buffer.h (struct buffer): auto_save_modified should be long.
12482
12483 2000-04-05  Andy Piper  <andy@xemacs.org>
12484
12485         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
12486         type.
12487         (button_query_geometry): give a little more room so that athena
12488         buttons fit.
12489
12490 2000-04-05  Andy Piper  <andy@xemacs.org>
12491
12492         * faces.c (complex_vars_of_faces): The widget face should inherit
12493         the font of the gui-element face.
12494
12495 2000-04-04  Andy Piper  <andy@xemacs.org>
12496
12497         * glyphs-x.c (x_button_update): new function. unconditionally
12498         update a button's state when the instance is dirty.
12499         (image_instantiator_format_create_glyphs_x): add x_button_update.
12500         (x_widget_instantiate): remove old resize cruft.
12501
12502 2000-04-02  Andy Piper  <andy@xemacs.org>
12503
12504         * frame.c (change_frame_size_1): The introduction of gutters means
12505         that we need to allow 0 as a potential frame dimension.
12506
12507 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
12508
12509         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
12510         image glyph if allow_cursor.
12511         (add_hscroll_rune): Don't allow cursor to border glyph.
12512         (create_text_block): Ditto.
12513
12514         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
12515         text not in buffer.
12516         (redisplay_output_layout): Call ensure_face_cachel_complete for
12517         text image glyph.
12518
12519
12520 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
12521
12522         * redisplay.c (add_glyph_rune): Adding text image as text runes.
12523
12524         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
12525         not in buffer
12526
12527         * redisplay-tty.c (tty_output_display_block): Delete the routine
12528         for text image glyph
12529         * redisplay-x.c (x_output_display_block): ditto
12530         * redisplay-msw.c (mswindows_output_display_block): ditto
12531
12532 2000-02-02  Mike Alexander  <mta@arbortext.com>
12533
12534         Note: Some of these were committed by accident as part of other
12535         patches.
12536
12537         * regex.c (regex_compile): Avoid compiler warnings.
12538
12539         * ntproc.c (sys_spawnve): Avoid compiler warnings.
12540
12541         * nt.h: Declare term_ntproc correctly.
12542
12543         * nt.c: Remove incorrect declaration of get_home_directory which
12544         is declared correctly in lisp.h.
12545
12546         * keymap.c (get_keyelt): Avoid compiler warnings.
12547         (raw_lookup_key_mapper): Avoid compiler warnings.
12548
12549         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
12550
12551         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
12552
12553         * filemode.c (mode_string): Avoid compiler warnings.
12554
12555         * file-coding.c (Fcoding_system_aliasee): Add return statement to
12556         avoid warning.
12557
12558         * events-mod.h: Undef some things that winuser.h defines differently.
12559
12560         * data.c (Faset): Avoid compiler warnings.
12561
12562         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
12563
12564 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
12565
12566         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
12567         Fall through to simple beep on error.
12568         Replace "extern" by real header file.
12569
12570         * linuxplay.c: Use nativesound.h
12571         (play_sound_data): Return error code. Be less verbose on error.
12572
12573         * sunplay.c: Use nativesound.h
12574         (play_sound_data): Return error code. Be less verbose on error.
12575
12576         * ntplay.c: Use nativesound.h
12577         (play_sound_data): Return fake error code
12578
12579         * sgiplay.c: Use nativesound.h
12580         (play_sound_data): Return error code
12581
12582         * hpplay.c: Use nativesound.h, partially implement
12583         new error code. Break compilation until finished.
12584         (play_sound_data): error code.
12585
12586         * nativesound.h (play_sound_file):
12587           (play_sound_data): Prototype in new header.
12588
12589 2000-03-31  Andy Piper  <andy@xemacs.org>
12590
12591         * glyphs-widget.c: (button_query_geometry): new function. Adjust
12592         for toggle and radio buttons.
12593         (image_instantiator_buttons): use it.
12594
12595 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
12596
12597         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
12598         (x_update_horizontal_scrollbar_callback): Return if no mirror was
12599         found. Scrollbar event probably belonged to some old config.
12600
12601 2000-03-31  Andy Piper  <andy@xemacs.org>
12602
12603         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
12604         than 1.
12605         (initialize_widget_image_instance): default layout to
12606         LAYOUT_HORIZONTAL rather than 0.
12607         (widget_instantiate): reverse the item list at the end rather than
12608         every iteration.
12609         (layout_layout): re-code for the border text at the front of the
12610         item list rather than at the end.
12611         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
12612         provided by the user.
12613         (widget_query_geometry): comment.
12614
12615 2000-03-30  Andy Piper  <andy@xemacs.org>
12616
12617         * glyphs-widget.c (image_instantiator_layout): allow standard
12618         widget keywords in layouts.
12619
12620         * gutter.c (output_gutter): cope with nil gutter contents.
12621
12622         * frame.c (Fset_frame_properties): add gutter docs.
12623
12624 2000-03-29  Andy Piper  <andy@xemacs.org>
12625
12626         * toolbar-msw.c (TBSTYLE_FLAT): add.
12627         (mswindows_output_toolbar): minor fiddling.
12628
12629 2000-03-29  Andy Piper  <andy@xemacs.org>
12630
12631         * gutter.c (output_gutter): force gutter size recalculation if
12632         what we are trying to display won't fit.
12633         (update_gutter_geometry): new function. A per-gutter version of
12634         update_frame_gutter_geometry.
12635         (update_frame_gutter_geometry): use it.
12636         (redraw_exposed_gutter): add extra debugging output.
12637
12638 2000-03-28  Mike Alexander  <mta@arbortext.com>
12639
12640         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
12641         (pdump_file_unmap): Implement it on Windows
12642         (pdump_file_get): Save alocated handles for pdump_file_unmap
12643
12644 2000-03-28  Andy Piper  <andy@xemacs.org>
12645
12646         * gui.c (get_gui_callback): treat Quit specially.
12647
12648 2000-03-27  Andy Piper  <andy@xemacs.org>
12649
12650         * glyphs.c (image_instantiate): be careful to check in the same
12651         way we assigned.
12652
12653 2000-03-27  Didier Verna  <didier@xemacs.org>
12654
12655         * config.h.in: define the proper SMART_INCLUDE macro.
12656         handle renaming of `foo_h_path' to `foo_h_file'.
12657
12658         * database.c: ditto.
12659
12660         * emacs.c: ditto.
12661
12662         * linuxplay.c: ditto.
12663
12664         * terminfo.c: ditto.
12665
12666         * tooltalk.h: ditto.
12667
12668 2000-03-27  Andy Piper  <andy@xemacs.org>
12669
12670         * glyphs-msw.c (mswindows_update_widget): make sure the widget
12671         gets updated whenever the face might have changed.
12672
12673 2000-03-26  Mike Alexander  <mta@arbortext.com>
12674
12675         * dumper.c (pdump_resource_free): Fix the comment.
12676
12677 2000-03-21  Olivier Galibert  <galibert@pobox.com>
12678
12679         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
12680
12681 2000-03-22  Mike Alexander  <mta@arbortext.com>
12682
12683         * dumper.c: Include Windows headers on Windows
12684         (pdump_resource_free): Add a body to the function
12685         (pdump_load): exe_name -> exe_path and add some comments.
12686
12687 2000-03-25  Mike Alexander  <mta@arbortext.com>
12688
12689         * gui.c (copy_gui_item_tree): Return a value in all cases
12690
12691 2000-03-21  Didier Verna  <didier@xemacs.org>
12692
12693         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
12694         lwlib/config.h.in.
12695         (SMART_INCLUDE): new macro.
12696         (POSTGRES_INCLUDE): new macro to include postgresql headers from
12697         the proper location.
12698
12699         * postgresql.c: use it.
12700
12701         * inline.c: ditto.
12702
12703 2000-03-24  Andy Piper  <andy@xemacs.org>
12704
12705         * gutter.c (redraw_exposed_gutters): must be "in display" when we
12706         do this.
12707
12708 2000-03-24  Andy Piper  <andy@xemacs.org>
12709
12710         * redisplay-output.c (compare_runes): use image_instance_changed
12711         to detect changes. Do not depend on glyphs_changed, only depend on
12712         dirtiness.
12713          (redisplay_output_layout): add debug messages.
12714         (compare_runes): ditto.
12715
12716         * glyphs.h: declare new functions.
12717         (struct Lisp_Image_Instance): remove percent and associated
12718         accessors.
12719
12720         * gui.h: declare new copying functions.
12721
12722         * gui.c (copy_gui_item_tree): new function.
12723         (copy_gui_item): new function.
12724         (gui_item_id_hash): revert to standard hash.
12725         (gui_item_hash): ditto.
12726         (gui_item_hash_internal): deleted.
12727         (mark_gui_item): mark value.
12728         (gui_item_add_keyval_pair): add value.
12729         (gui_item_init): ditto.
12730         (gui_add_item_keywords_to_plist): ditto.
12731         (gui_item_equal): ditto.
12732         (syms_of_gui): add Q_value.
12733
12734         * glyphs-x.c (x_progress_gauge_update): use pending items and
12735         value for setting the state.
12736         (x_update_widget): don't set items from pending here.
12737
12738         * glyphs-widget.c (update_widget): update items here.
12739         (progress_gauge_set_property): use items for storing value. Put
12740         new value in pending items.
12741
12742         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
12743         items for new value. Convert percent -> value.
12744         (mswindows_tab_control_update): don't update items here.
12745
12746         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
12747         (update_subwindow): ditto.
12748         (image_instance_changed): new function. Compare hash values and
12749         past and present widget items.
12750         (image_instantiate): We more careful about where we instantiate
12751         things.
12752         (image_instantiate): add error checking.
12753
12754         * gutter.c (syms_of_gutter): use -hook.
12755
12756 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
12757
12758         * console-tty.c (Fset_console_tty_input_coding_system): Use
12759         Qkeyboard.
12760         (Fset_console_tty_output_coding_system): Use Qterminal.
12761         (tty_init_console): Use Qkeyboard and Qterminal.
12762
12763 2000-03-21  Ben Wing  <ben@xemacs.org>
12764
12765         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
12766         From Mike Alexander <mta@arbortext.com>.
12767
12768 2000-03-21  Ben Wing  <ben@xemacs.org>
12769
12770         * event-msw.c (mswindows_need_event): Horrible kludge to fix
12771         process brokenness.  Proper implementation to come.
12772         * callproc.c:
12773         Rename call-process-internal to old-call-process-internal.
12774         New impl. in process.el.
12775
12776 2000-03-21  Martin Buchholz  <martin@xemacs.org>
12777
12778         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
12779
12780 2000-03-20  Andy Piper  <andy@xemacs.org>
12781
12782         * glyphs.c (full_list_hash): make hashes of the same elements in
12783         different orders return different values.
12784
12785 2000-03-20  Martin Buchholz <martin@xemacs.org>
12786
12787         * XEmacs 21.2.32 is released.
12788
12789 2000-03-20  Martin Buchholz  <martin@xemacs.org>
12790
12791         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
12792         (DFC_MALLOC_USE_CONVERTED_DATA):
12793         Add aliasing-safe casts to allow use with char* or unsigned char*
12794         lvalues.
12795
12796         * eldap.c (Fldap_open):
12797         (Fldap_search_basic):
12798         (Fldap_add):
12799         (Fldap_modify):
12800         Make C++-compilable.
12801         Make sure GCPRO'ed variables are initialized.
12802         Use temp variables to avoid repeated calls to Flength.
12803
12804 2000-03-16  Martin Buchholz  <martin@xemacs.org>
12805
12806         * sysfile.h:
12807         Make sure PATH_MAX is always defined.
12808         Include limits.h for PATH_MAX.
12809         Deprecate use of MAXPATHLEN.
12810
12811 2000-03-10  Martin Buchholz  <martin@xemacs.org>
12812
12813         * emacs.c: Add reinit_vars_of_fileio.
12814         * symsinit.h: Add reinit_vars_of_fileio.
12815         * fileio.c (reinit_vars_of_fileio): New.
12816         * fileio.c (Fmake_temp_name):
12817         Initialize temp_name random number from microseconds to make
12818         collisions even less likely.  Initialize always at process startup
12819         time.  (make-temp-name) used to return the same file name twice in
12820         a row when PDUMP.
12821         Random stylistic fiddling.
12822         Comment fixes.
12823
12824 2000-03-20  Andy Piper  <andy@xemacs.org>
12825
12826         * glyphs.c (image_instantiate): allow text glyphs to be
12827         instantiated in the minibuffer window.
12828
12829 2000-03-19  Andy Piper  <andy@xemacs.org>
12830
12831         * glyphs.c (image_instance_hash): be careful about which items we
12832         hash on.
12833
12834         * glyphs-widget.c (tab_control_set_property): record into pending
12835         items rather than the actual items.
12836
12837         * glyphs-x.c (x_update_widget): use pending items to update with.
12838
12839         * glyphs-msw.c (mswindows_tab_control_update): use pending items
12840         to update with.
12841
12842         * glyphs.c (mark_image_instance): mark pending items.
12843
12844         * window.c (Fset_window_configuration): record the buffer.
12845         (Fselect_window): totally revert previous change which breaks many
12846         things.
12847
12848 2000-03-18  Andy Piper  <andy@xemacs.org>
12849
12850         * glyphs-msw.c (mswindows_tab_control_update): force selected
12851         item.
12852
12853         * glyphs.c (image_instantiate): don't allow the minibuffer as a
12854         window domain cache, otherwise we get inconsistencies at
12855         startup. There is something fishy at startup which can lead to the
12856         minibuffer being the selected window when the gutter content is
12857         instantiated.
12858
12859         * gui.c (parse_gui_item_tree_list): add probably unnecessary
12860         gcpros.
12861         (parse_gui_item_tree_children): ditto.
12862         (parse_gui_item_tree_item): ditto.
12863
12864         * glyphs.c (Fupdate_widget_instances): return something.
12865
12866 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
12867
12868         * window.c (Fselect_window): Undo 2000-03-17 change.
12869
12870 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
12871
12872         * postgresql.c (Fpq_setenv): Remove this turkey when linking
12873         against v7.0 libraries.  Insta-coredump city until the postgres
12874         folks fix it.
12875
12876 2000-03-17  Andy Piper  <andy@xemacs.org>
12877
12878         * faces.c (complex_vars_of_faces): don't give the widget face an
12879         inherited background pixmap.
12880
12881         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
12882         selected item.
12883
12884         * event-stream.c (Fdispatch_non_command_events): return something.
12885
12886         * gutter.c (output_gutter): use widget face.
12887         (clear_gutter): ditto.
12888
12889         * NEWS: adjust again.
12890
12891         * window.c (Fselect_window): make sure this runs to completion to
12892         avoid oddities with Fset_window_configuration.
12893         (Fcurrent_window_configuration): in general do not save the
12894         minibuffer as the selected window.
12895
12896         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
12897
12898 2000-03-16  Olivier Galibert  <galibert@pobox.com>
12899
12900         * emacs.c (Frunning_temacs_p): Revert previous patch.
12901         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
12902
12903 2000-03-16  Andy Piper  <andy@xemacs.org>
12904
12905         * glyphs-x.c (x_tab_control_update): if no widget values then
12906         return.
12907
12908         * NEWS: update for new features.
12909
12910         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
12911         synthetic event to the native system.
12912         (reinit_vars_of_event_Xt): set force_event_pending to
12913         emacs_Xt_force_event_pending.
12914
12915         * events.h (struct event_stream): add force_event_pending.
12916
12917         * specifier.c (recompute_one_cached_specifier_in_window): add
12918         comment.
12919
12920         * redisplay.c (redisplay_frame): don't call
12921         update_frame_subwindows. Reset subwindow cachels when
12922         subwindows_changed, removing this was an optimization too far.
12923
12924         * redisplay-output.c (compare_runes): reorganize so that we catch
12925         glyph changes when we want them. Set optimize_output when this
12926         would help layouts.
12927         (redisplay_output_layout): remove frame_really_changed, use
12928         optimize_output instead.
12929
12930         * redisplay-msw.c (mswindows_output_display_block): reset
12931         optimize_output after outputting a glyph.
12932         * redisplay-x.c (x_output_display_block): ditto.
12933         * redisplay-tty.c (tty_output_display_block): ditto.
12934
12935         * gutter.c: (specifier_vars_of_gutter): use new spec changed
12936         functions.
12937         (gutter_specs_changed): do specific gutter positions.
12938         (top_gutter_specs_changed): new function. Only update the
12939         specified gutter specs.
12940         (bottom_gutter_specs_changed): ditto.
12941         (left_gutter_specs_changed): ditto.
12942         (right_gutter_specs_changed): ditto.
12943
12944         * gui.c (gui_item_hash_internal): new function, does a real hash.
12945         (gui_item_id_hash): use it.
12946         (gui_item_hash): hash the eval'ed gui_item.
12947
12948         * gui-x.c (popup_selection_callback): send an eval event to call
12949         Fupdate_widget_instances.
12950
12951         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
12952         to call Fupdate_widget_instances.
12953
12954         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
12955         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
12956
12957         * glyphs.c: (update_frame_subwindows): deleted.
12958         (Fupdate_widget_instances): new function for updating the dirty
12959         state of widgets that might have changed.
12960         (syms_of_glyphs): add Qupdate_widget_instances.
12961         (full_list_hash): hash a list completely.
12962         (image_instance_hash): use it for items and properties.
12963
12964         * frame-msw.c (mswindows_size_frame_internal): remove unused
12965         variable.
12966
12967         * faces.h (struct face_cachel): fix comment.
12968
12969         * event-stream.c (Fdispatch_non_command_events): new
12970         function. Process non-command events, forcing an event cycle
12971         beforehand.
12972         (syms_of_event_stream): declare.
12973         (event_stream_force_event_pending): new function. Force an event
12974         on the native event queue so that an event cycle will occur next
12975         time we check.
12976
12977         * event-msw.c:
12978         (struct ntpipe_shove_stream):
12979         (mswindows_enqueue_dispatch_event):
12980         (mswindows_dequeue_dispatch_event):
12981         (mswindows_cancel_dispatch_event):
12982         (mswindows_pump_outstanding_events):
12983         (mswindows_drain_windows_queue):
12984         (mswindows_handle_paint):
12985         (mswindows_wnd_proc):
12986         (mswindows_key_to_emacs_keysym):
12987         (get_process_input_waitable):
12988         (emacs_mswindows_delete_stream_pair): re-indent file.
12989         (mswindows_need_event): do not process further fds if the windows
12990         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
12991         fixes the 100% cpu problem.
12992         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
12993
12994 2000-03-15  Olivier Galibert  <galibert@pobox.com>
12995
12996         * alloc.h: New.
12997         * dumper.h: New.
12998         * dumper.c: New.
12999
13000         * emacs.c: Moved dump file searching to dumper.c.
13001         (Frunning_temacs_p): Fixed.
13002
13003         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
13004         last_lrecord_type_index_assigned.
13005
13006 2000-02-20  Olivier Galibert  <galibert@pobox.com>
13007
13008         * symsinit.h: Added reinit parameter to init_console_stream
13009         declaration.
13010
13011         * lisp.h: Added file parameter to pdump_load declaration.
13012
13013         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
13014         support.  Added dump file searching.
13015
13016         * config.h.in: Added EMACS_PROGNAME.
13017
13018         * console-stream.c (init_console_stream): Fix reinitialisation
13019         when running from temacs.
13020
13021         * alloc.c (pdump): Add id support.
13022         (pdump_load): Add file parameter and signature/id support.
13023
13024         * Makefile.in.in: Add full pdump support.
13025
13026 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
13027
13028         * postgresql.c: Update documentation to reflect latest code
13029         status.
13030         (print_result): Show tuple counts in printed representation when
13031         appropriate.
13032         (Fpq_put_nbytes): MULE-ize.
13033         (Fpq_get_line_async): Ditto.
13034
13035 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
13036
13037         * postgresql.c (Fpq_lo_import): Fix return value.
13038         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
13039
13040 2000-03-13  Ben Wing  <ben@xemacs.org>
13041
13042         * alloc.c (pdump_load):
13043         Fix compile warning under mswin.
13044
13045 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
13046
13047         * postgresql.c: Mule-ization, bug fixes.
13048         Use PG_CODING to encapsulate coding system name changes.
13049         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
13050         (pg-coding-system): Create.
13051
13052         (Fpq_conn_defaults): Mule-ize.
13053         (Fpq_connectdb): Mule-ize & bug fix.
13054         (Fpq_connect_start): Mule-ize.
13055         (Fpq_set_client_encoding): Mule-ize.
13056         (Fpq_finish): Document `DEAD' connection status.
13057         (Fpq_clear): Ditto.
13058         (Fpq_pgconn): Mule-ize.
13059         (Fpq_exec): Mule-ize & bug fix.
13060         (Fpq_send_query): Ditto.
13061         (Fpq_get_result): Ditto.
13062         (Fpq_res_status): Mule-ize.
13063         (Fpq_result_error_message): Mule-ize.
13064         (Fpq_ntuples): fix comments.
13065         (Fpq_fname): Mule-ize.
13066         (Fpq_fnumber): Mule-ize.
13067         (Fpq_ftype): fix comments.
13068         (Fpq_get_value): Mule-ize.
13069         (Fpq_cmd_status): Ditto.
13070         (Fpq_cmd_tuples): Ditto.
13071         (Fpq_oid_value): Ditto.
13072         (Fpq_notifies): Ditto.
13073         (Fpq_lo_import): Ditto.
13074         (Fpq_lo_export): Ditto.
13075         (Fpq_get_line): Ditto.
13076         (Fpq_put_line): Mule-ize and bug fix.
13077         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
13078
13079 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
13080
13081         * postgresql.c (vars_of_postgresql): Mule-ize.
13082         (Fpq_conn_defaults): Ditto.
13083
13084 2000-03-12  Ben Wing  <ben@xemacs.org>
13085
13086         * alloc.c (Fmake_byte_code):
13087         * alloc.c (debug_string_purity_print):
13088         * alloc.c (pdump_backtrace):
13089         * alloc.c (pdump_get_indirect_count):
13090         * alloc.c (pdump_register_sub):
13091         * alloc.c (pdump_register_object):
13092         * alloc.c (pdump_register_struct):
13093         * alloc.c (pdump_dump_data):
13094         * alloc.c (pdump_reloc_one):
13095         Minor cleanups.
13096
13097         * console-msw.c:
13098         * console-msw.c (GetConsoleHwnd):
13099         * console-msw.c (msw_hide_console):
13100         * console-msw.c (msw_show_console):
13101         * console-msw.c (msw_ensure_console_buffered):
13102         * console-msw.c (msw_output_console_string):
13103         * console-msw.c (console_type_create_mswindows):
13104
13105         a) Added functions to manipulate the console window for use with
13106         shell support.
13107
13108         b) Added support for writing text to the console, which is now
13109         used under Windows when xemacs is not being run non-interactively,
13110         to write text that would otherwise be destined for stdout because
13111         under these circumstances, text written to stdout tends to
13112         disappear and not be seen.
13113
13114         * console-msw.h:
13115         * event-Xt.c:
13116         * event-Xt.c (x_event_to_emacs_event):
13117         * event-Xt.c (describe_event_window):
13118         * events-mod.h (XEMACS_MOD_CONTROL):
13119         * events.c:
13120         * events.c (Fmake_event):
13121         * events.c (character_to_event):
13122         * events.c (event_to_character):
13123         * events.c (format_event_object):
13124         * events.c (Fevent_modifiers):
13125         * events.h:
13126         * events.h (struct key_data):
13127         * events.h (struct button_data):
13128         * events.h (struct misc_user_data):
13129         * frame-x.c (Fcde_start_drag_internal):
13130         * frame-x.c (Foffix_start_drag_internal):
13131         * gpmevent.c (Freceive_gpm_event):
13132         * keymap.c:
13133         * keymap.c (bucky_sym_to_bucky_bit):
13134         * keymap.c (control_meta_superify):
13135         * keymap.c (make_key_description):
13136         * keymap.c (keymap_lookup_directly):
13137         * keymap.c (create_bucky_submap):
13138         * keymap.c (keymap_store):
13139         * keymap.c (define_key_check_and_coerce_keysym):
13140         * keymap.c (define_key_parser):
13141         * keymap.c (define_key_alternate_name):
13142         * keymap.c (Fdefine_key):
13143         * keymap.c (raw_lookup_key_mapper):
13144         * keymap.c (struct map_keymap_unsorted_closure):
13145         * keymap.c (map_keymap_unsorted_mapper):
13146         * keymap.c (map_keymap_sort_predicate):
13147         * keymap.c (map_keymap_sorted):
13148         * keymap.c (accessible_keymaps_mapper_1):
13149         * keymap.c (where_is_recursive_mapper):
13150         * keymap.c (describe_map_mapper):
13151         * keymap.c (describe_map_sort_predicate):
13152         * keymap.c (describe_map):
13153         * keymap.c (complex_vars_of_keymap):
13154         And a number of other files, the key modifier preprocessor
13155         constants that xemacs uses have names that conflict with constants
13156         defined under MS Windows for other purposes, so they were renamed
13157         to begin with the prefix XEMACS_. The variables that hold such
13158         modifiers were changed to consistently be of type int to fix
13159         various compile warnings.
13160
13161         * console.c (complex_vars_of_console):
13162         * device.c:
13163         * device-msw.c:
13164         * device-msw.c (mswindows_finish_init_device):
13165         * device-msw.c (msw_get_workspace_coords):
13166         * device-msw.c (mswindows_device_system_metrics):
13167         and various other files, added support for a new
13168         device property called offset-workspace which returns the position
13169         of the upper left corner of the workspace area and goes along with
13170         the existing size-workspace property.
13171
13172         * dialog-msw.c:
13173         * dialog-msw.c (push_bufbyte_string_as_unicode):
13174         * dialog-msw.c (mswindows_popup_dialog_box):
13175         Added support for XEmacs-style accelerator specifications in
13176         button text.  Note: I didn't add support for this under X Windows,
13177         and somebody needs to do this.
13178
13179         * dialog.c:
13180         * dialog.c (Fpopup_dialog_box):
13181         Documented the support for accelerators that was just mentioned.
13182
13183         editfns.c (get_home_directory): Changed behavior under Windows
13184         when HOME not defined; former behavior was irretrievably broken.
13185
13186         * emacs.c:
13187         * emacs.c (main_1):
13188         * emacs.c (main):
13189         * minibuf.c (clear_echo_area_internal):
13190         * minibuf.c (echo_area_append):
13191         * print.c:
13192         * print.c (std_handle_out_external):
13193         * print.c (std_handle_out_va):
13194         * print.c (fatal):
13195         * print.c (write_string_to_stdio_stream):
13196         * print.c (output_string):
13197         * print.c (debug_print):
13198         * print.c (debug_backtrace):
13199         * print.c (debug_short_backtrace):
13200         Cleaned up the code that prints text to stdout so that this can be
13201         changed to output into a console window instead under MS Windows,
13202         as described above.
13203
13204         * eval.c:
13205         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
13206         * eval.c (internal_catch):
13207         * eval.c (unwind_to_catch):
13208         * eval.c (throw_or_bomb_out):
13209         * eval.c (condition_case_1):
13210         * eval.c (signal_1):
13211         * eval.c (check_error_state_sanity):
13212         * eval.c (call_with_suspended_errors_1):
13213         * eval.c (call_with_suspended_errors):
13214         * eval.c (reinit_vars_of_eval):
13215         Added code to catch throw loops and check for a pesky bug that may
13216         be gone now.
13217
13218         * event-msw.c:
13219         * event-msw.c (key_needs_default_processing_p):
13220         * event-msw.c (mswindows_wnd_proc):
13221         * event-msw.c (mswindows_modifier_state):
13222         * event-msw.c (emacs_mswindows_quit_p):
13223         * event-msw.c (vars_of_event_mswindows):
13224         a) Added support for using the alt key to select menu items as is
13225         standard under MS Windows.  This is controlled using the variable
13226         menu-accelerator-enabled, just like under X Windows.  There is an
13227         option on the options menu to turn this support on.  I really
13228         think that it should be on by default under Windows, but I'm not
13229         going to make this change yet.
13230
13231         b)  Added support for dynamic display size changes under Windows.
13232
13233         * event-stream.c:
13234         * event-stream.c (maybe_echo_keys):
13235         * event-stream.c (Fnext_event):
13236         * event-stream.c (command_builder_find_leaf):
13237         * event-stream.c (lookup_command_event):
13238         * event-stream.c (execute_command_event):
13239         * event-stream.c (pre_command_hook):
13240         * event-stream.c (post_command_hook):
13241         * event-stream.c (syms_of_event_stream):
13242         * event-stream.c (vars_of_event_stream):
13243         * event-stream.c (complex_vars_of_event_stream):
13244         * events.h (struct command_builder):
13245
13246         a) Tried to clean up a little bit the horribly written x-specific
13247         accelerator code that crept into this file.  I moved this code
13248         into menubar-x.c where it belongs. I also needed to move the
13249         command builder structure into the file events.h because it is
13250         accessed directly by this accelerator code.  What I didn't do, but
13251         which should be done at some point, is to properly abstract this
13252         code using device methods instead of the kludgy way that it
13253         currently hooks into the event code.
13254
13255         b) Added the lisp variables this-command-properties and
13256         last-command- properties, which should be used to synchronize two
13257         adjacent commands in preference to playing games with the variable
13258         this-command, which is typically what happens.
13259
13260         c) Added some slightly nasty code to hook into the lisp support
13261         for shifted- motion-key selection.  This is actually necessary for
13262         somewhat complicated reasons, which are described in
13263         simple.el. (NB: I think the proper thing would be to have the code
13264         that calls the pre and post command hooks also call out to generic
13265         lisp functions in simple.el, where all built-in stuff could be
13266         added.  I will think about this more.)
13267
13268         * event-unixoid.c (poll_fds_for_input):
13269         * lread.c (readchar):
13270         * redisplay-tty.c (tty_clear_frame):
13271         * redisplay-x.c (x_get_gc):
13272         * signal.c (interrupt_signal):
13273         And a whole bunch of other files: fixed up places that printed
13274         directly to stderr to instead call the function stderr_out so that
13275         the changes I made under Windows work correctly.
13276
13277         * filemode.c (mode_string):
13278         Warning fixes.
13279
13280         * frame-msw.c:
13281         * frame-msw.c (mswindows_size_frame_internal):
13282         Fixed the computation of frame size and position to keep the frame
13283         within the workspace area, rather than within the physical
13284         dimensions of the screen, so that the frame doesn't overlap window
13285         manager decorations, such as the start menu and toolbar, typically
13286         at the bottom of the screen.
13287
13288         * frame.c (vars_of_frame):
13289         Changed the default frame title format under MS Windows to consist
13290         of buffername-XEmacs, which is standard under MS Windows.  I think
13291         it might be a good idea to change this everywhere because I think
13292         it is superior to the current frame title format, but this is the
13293         kind of change that is likely to cause some people to get annoyed,
13294         so I'm not making it.
13295
13296         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
13297
13298         * gui-msw.c (mswindows_handle_gui_wm_command):
13299         Fixed compile warnings.
13300
13301         * gui-x.c:
13302         * gui-x.c (strdup_and_add_accel):
13303         * gui-x.c (button_item_to_widget_value):
13304         * gui-x.h:
13305         Added code to automatically put an accelerator onto the beginning
13306         of menu items that don't have one as is now the standard, and is
13307         described more later.  Also fixed things so that the menu item
13308         name can be an evaluated expression, again a new standard.
13309
13310         * gui.c:
13311         * gui.c (gui_item_add_keyval_pair):
13312         * gui.c (make_gui_item_from_keywords_internal):
13313         * gui.c (gui_add_item_keywords_to_plist):
13314         * gui.c (gui_item_accelerator):
13315         * gui.c (gui_name_accelerator):
13316         * gui.c (gui_item_included_p):
13317         * gui.c (gui_item_display_flush_left):
13318         * gui.c (gui_item_display_flush_right):
13319         * gui.c (parse_gui_item_tree_item):
13320         * gui.c (parse_gui_item_tree_children):
13321         * gui.c (parse_gui_item_tree_list):
13322         Mule-ized.  Cleanup.  GCPRO addition.
13323
13324         * line-number.c (buffer_line_number):
13325         * lisp.h:
13326         * lisp.h (EMACS_INT_MAX):
13327         Added the manifest constant EMACS_INT_MIN corresponding to the
13328         existing constant EMACS_INT_MAX.  This is partially to fix compile
13329         warnings under Windows, and partly for cleanliness.
13330
13331         * menubar-msw.c:
13332         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
13333         * menubar-msw.c (msw_translate_menu_or_dialog_item):
13334         * menubar-msw.c (displayable_menu_item):
13335         * menubar-msw.c (populate_menu_add_item):
13336         * menubar-msw.c (populate_or_checksum_helper):
13337         * menubar-msw.c (populate_menu):
13338         * menubar-msw.c (update_frame_menubar_maybe):
13339         * menubar-msw.c (prune_menubar):
13340         * menubar-msw.c (msw_char_is_accelerator):
13341         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
13342         * menubar-msw.c (mswindows_handle_wm_command):
13343         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
13344         * menubar-msw.c (mswindows_handle_wm_initmenu):
13345         * menubar-msw.c (mswindows_update_frame_menubars):
13346         * menubar-msw.c (mswindows_free_frame_menubars):
13347         * menubar-msw.c (mswindows_popup_menu):
13348         Fixed a bug in handling accelerators where an extra character
13349         would be displayed in the menu item.  Also generalized the
13350         function displayable_menu_item because it is now used by the
13351         dialog box code as well.  And finally, added code in the functions
13352         that create the menubar to extract a list of accelerators for the
13353         top level menubar, which is used in the event code to determine
13354         whether a particular alt-key combination should be used to invoke
13355         a menu item, or should be passed through to access the standard
13356         XEmacs keymap binding for this key combination.
13357
13358         Much needed GCPROing.
13359
13360         * menubar-x.c:
13361         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
13362         * menubar-x.c (menu_item_descriptor_to_widget_value):
13363         * menubar-x.c (restore_in_menu_callback):
13364         * menubar-x.c (x_popup_menu):
13365         * menubar-x.c (menu_move_up):
13366         * menubar-x.c (menu_move_down):
13367         * menubar-x.c (menu_move_left):
13368         * menubar-x.c (menu_move_right):
13369         * menubar-x.c (menu_select_item):
13370         * menubar-x.c (command_builder_operate_menu_accelerator):
13371         * menubar-x.c (menu_accelerator_junk_on_error):
13372         * menubar-x.c (command_builder_find_menu_accelerator):
13373         * menubar-x.c (Faccelerate_menu):
13374         * menubar.h:
13375         Moved a whole bunch of code here that was previously in
13376         event-stream.c as described above.  There is also code connected
13377         to the new standard of adding an accelerator to the beginning of
13378         menu items that don't have one as described above and below.
13379
13380         * menubar.c:
13381         * menubar.c (menu_parse_submenu_keywords):
13382         * menubar.c (Fmenu_find_real_submenu):
13383         * menubar.c (Fnormalize_menu_item_name):
13384         * menubar.c (syms_of_menubar):
13385         * menubar.c (vars_of_menubar):
13386         * menubar.c (complex_vars_of_menubar):
13387
13388         a) Cleaned up a bunch of documentation and improved it.
13389
13390         b) XEmacs now automatically adds an accelerator onto the beginning
13391         of any menu items that don't have one.  I did this because there
13392         will inevitably be some menu items on the main menubar that don't
13393         have accelerators on them because the package that adds that
13394         particular menu item hasn't yet been fixed up to have accelerators
13395         in them and it looked rather strange to have some items with and
13396         some items without accelerators, especially since even in items
13397         without accelerators, you can, at least under windows, still
13398         access the item through an accelerator corresponding to the first
13399         character in the item's name.  If people don't like this behavior,
13400         I can add a variable to turn it off optionally, but I'm not sure
13401         this is a good idea because we really do need to have accelerators
13402         on all of the menu items, and if a package doesn't like the
13403         accelerators being put on the first character, then it should put
13404         the accelerators where they belong.
13405
13406         c) I made a behavior change, which is that the descriptor that
13407         specifies the text of the menu item, which formerly was just a
13408         string, can now also be an evaluated expression.  This makes this
13409         descriptor parallel with all of the others, which could also be
13410         evaluated expressions.  This also obviates the need for the
13411         keyword :label, which was previously listed in the documentation
13412         as unimplemented, and which was for the same purpose.
13413
13414         d) GCPROing.
13415
13416         * ntproc.c:
13417         * ntproc.c (new_child):
13418         * ntproc.c (sys_spawnve):
13419         * ntproc.c (find_child_console):
13420         * ntproc.c (sys_kill):
13421         Fixed compile warnings.  By the way, this file should really go
13422         away entirely, and this will happen as soon as Kirill makes his
13423         final round of process cleanups, which affect the function
13424         call-process.
13425
13426         * process-nt.c:
13427         * process-nt.c (struct nt_process_data):
13428         * process-nt.c (find_process_from_pid):
13429         * process-nt.c (send_signal_the_nt_way):
13430         * process-nt.c (enable_child_signals):
13431         * process-nt.c (find_child_console):
13432         * process-nt.c (send_signal_the_95_way):
13433         * process-nt.c (nt_finalize_process_data):
13434         * process-nt.c (ensure_console_window_exists):
13435         * process-nt.c (nt_create_process):
13436         * process-nt.c (nt_kill_child_process):
13437         * process-nt.c (nt_kill_process_by_pid):
13438         * process-nt.c (nt_open_network_stream):
13439         * process-nt.c (vars_of_process_nt):
13440         Copied over code from Emacs 20.5 to correctly send signals to sub-
13441         processes under Windows 95.  Also added code to automatically
13442         create and hide console window when a sub-process is created under
13443         Windows 95, which obviates the need for the separate runemacs.exe
13444         executable, and finally implemented some variables that were
13445         implemented in Emacs 20.5, but previously not in XEmacs.  These
13446         include mswindows- start-process-share-console and
13447         mswindows-start-process-inherit-error-mode. (Both of these only
13448         apply to Windows 95.)
13449
13450         * regex.c (regex_compile): Fixed a compile warning.
13451
13452         * select-msw.c:
13453         * select-msw.c (mswindows_own_selection):
13454         * select-msw.c (mswindows_get_foreign_selection):
13455         * select-msw.c (mswindows_disown_selection):
13456         * select-msw.c (console_type_create_select_mswindows):
13457         * select-msw.c (syms_of_select_mswindows):
13458         Cleaned up the file and implemented the device method
13459         selection_exists_p, which had accidentally been left out.  Also
13460         removed four lisp functions that were remnants from before the
13461         time when the selection code was properly device abstracted.
13462         These functions are no longer needed because there are generic
13463         equivalents, and because they were added recently and don't exist
13464         in FSF Emacs, I don't think there's any problem with just deleting
13465         them.
13466
13467         * sysdep.c:
13468         * sysdep.c (sys_subshell):
13469         Fixed a compile warning, although in this case there's probably
13470         something wrong with this code, and it ought to be looked into
13471         more thoroughly by somebody who understands it.
13472
13473         * window.c:
13474         * window.c (Fwindow_text_area_height):
13475         * window.c (Fwindow_width):
13476         * window.c (Fwindow_full_width):
13477         * window.c (Fwindow_pixel_width):
13478         * window.c (debug_print_window):
13479         * window.c (syms_of_window):
13480         Added functions window-text-area-height and window-full-width,
13481         which are functions for returning various width and height
13482         characteristics of a window. (One of these functions is necessary
13483         for making the file dialog box work correctly, and the other one
13484         was added for completeness.)  Also added a table to the
13485         documentation for window-height which describes the entire scheme
13486         for accessing width and height characteristics of a window.
13487
13488 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13489
13490         * nt.c (fstat): Added a comment for another problem with
13491         non-encapsulated [f]stat(), reported by Adrian Aichner
13492         <aichner@ecf.teradyne.com>.
13493
13494 2000-03-11  Andy Piper  <andy@xemacs.org>
13495
13496         * window.c (make_dummy_parent): initialize subwindow instance
13497         cache.
13498         (Fset_window_configuration): zero extent_modiff.
13499
13500 2000-03-10  Andy Piper  <andy@xemacs.org>
13501
13502         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
13503         more changes can be triggered.
13504         (Fredisplay_frame): ditto.
13505         (Fredraw_device): ditto.
13506         (Fredisplay_device): ditto.
13507         (redisplay_frame): make non-static.
13508         (redisplay_frame): call update_frame_gutter_geometry outside of
13509         display proper.
13510
13511         * gutter.h: declare update_frame_gutter_geometry.
13512
13513         * redisplay.h: declare redisplay_frame.
13514
13515         * gutter.c (update_frame_gutter_geometry): move geometry changes
13516         in update_frame_gutters here. Geometry changes can only occur
13517         outside of redisplay.
13518         (update_frame_gutters): remove geometry change code.
13519         (Fredisplay_gutter_area): make sure that we are in display when we
13520         update and that we have flushed any size changes.
13521
13522 2000-03-11  Andy Piper  <andy@xemacs.org>
13523
13524         * alloc.c (pdump_dump_data): remove i & count shadows.
13525
13526 2000-02-27  Mike Alexander  <mta@arbortext.com>
13527
13528         * sysdep.h: Declare pdump_read_file
13529
13530         * sysdep.c (pdump_read_file): New function
13531
13532         * alloc.c (pdump_load): Call pdump_read_file to get the portable
13533         dump data
13534
13535 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
13536
13537         * lrecord.h: add `lrecord_type_pgsetenv'.
13538
13539 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
13540
13541         * symsinit.h: declare (vars|syms)_of* functions.
13542         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
13543
13544 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
13545
13546         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
13547
13548         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
13549         GCCs.
13550
13551         * emacs.c (main_1): Call postgres initialization code.
13552
13553         * postgresql.h: New file.  PostgreSQL RDBMS support.
13554         * postgresql.c: New file.
13555
13556 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
13557
13558         * redisplay-output.c (redisplay_output_display_block): Disable
13559         redundant code.
13560
13561 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
13562
13563         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
13564         (Fcanna_henkan_next): Ditto.
13565         (Fcanna_bunsetu_henkou): Ditto.
13566         (Fcanna_henkan_kakutei): Ditto.
13567         (Fcanna_henkan_end): Ditto.
13568         (Fcanna_henkan_quit): Ditto.
13569         (Fcanna_henkan_next): Set retun value correctly.
13570         (c2mu): Use unsigned char instead of signed char.
13571
13572 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
13573
13574         * emacs.c (main_1): Always call syms_of_gui.
13575         * inline.c: include gui.h
13576
13577 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
13578
13579         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
13580         converted to Lisp_Object.
13581         (Qtop_bottom): New variable.
13582         (syms_of_redisplay): Initialize it.
13583         * redisplay.h (Vvisible_bell): Ditto.
13584         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
13585         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
13586         only flash top and bottom.
13587
13588 2000-03-08  Andy Piper  <andy@xemacs.org>
13589
13590         * buffer.c (Frename_buffer): record new buffer name the right way.
13591
13592 2000-03-08  Andy Piper  <andy@xemacs.org>
13593
13594         * glyphs.c (update_subwindow): increase hash depth so that widget
13595         items get picked up properly.
13596
13597         * redisplay-output.c (compare_runes): increase hash depth so that
13598         widget items get picked up properly.
13599
13600 2000-03-08  Andy Piper  <andy@xemacs.org>
13601
13602         * gutter.c (output_gutter): add some debug.
13603
13604         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
13605         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
13606         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
13607
13608         * redisplay-output.c (compare_runes): use display_hash to
13609         determine if glyphs really are not the same.
13610
13611         * glyphs.c (update_subwindow): check display_hash to see if
13612         anything really needs to be updated. If not then do
13613         nothing. Record the display_hash after updating.
13614         (image_instance_equal): compare the image_instance face also.
13615
13616 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
13617
13618         * redisplay.h: Fix comment style.
13619
13620 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
13621
13622         * consle-msw.h (struct mswindows_frame):
13623         Added new member paint_pending to indicate whether a WM_PAINT
13624         magic event has been queued for this frame.
13625
13626         * event-msw.c (mswindows_drain_windows_queue):
13627         Don't queue a WM_PAINT magic event if one is already queued.
13628         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
13629
13630         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
13631
13632 2000-03-07  Didier Verna  <didier@xemacs.org>
13633
13634         * dired.c: #include `regex.h' after `sysfile.h'.
13635
13636 2000-03-06  Martin Buchholz  <martin@xemacs.org>
13637
13638         * sound.c (init_nas_sound): Fix compiler warning.
13639
13640         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
13641         (FREE_STRUCT_P):
13642         (MARK_STRUCT_AS_FREE):
13643         (MARK_STRUCT_AS_NOT_FREE):
13644         Make `gcc -fstrict-aliasing' work properly.
13645
13646 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
13647
13648         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
13649         (mswindows_delete_device): Call CoUnnitialize().
13650
13651         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
13652
13653 2000-02-25    <CraigL@DyCon.com>
13654
13655         * process-nt.c: MinGW now has <shellapi.h>, but still needs
13656         <errno.h>.
13657
13658         * sysdep.c: This extern declaration for environ prevents MinGW
13659         from finding the variable in CRTDLL.DLL.
13660
13661         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
13662         windows headers.
13663         (SHGFI_EXETYPE): ..
13664         (WM_MOUSEWHEEL): ..
13665         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
13666         definitions.
13667         (MMRESULT): Removed, now defined in cygwin's windows headers.
13668         (TIMECAPS): ..
13669         (uid_t,gid_t,pid_t,ssize_t): ..
13670         (_timeb): Removed, MinGW defines both _timeb and timeb.
13671         (HAVE_H_ERRNO): Added.
13672         (HAVE_TZNAME): Added, configure is not detecting this.
13673
13674 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
13675
13676         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
13677         * syntax.c (syntax_match): Use it.
13678
13679         * cmds.c: Import auto-fill-chars from FSF Emacs.
13680         (Vauto_fill_chars): New variables.
13681         (internal_self_insert): Check Vauto_fill_chars.
13682         (vars_of_cmds):
13683         Declare auto-fill-chars as a Lisp variable and initialize it.
13684
13685 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
13686
13687         * fileio.c (Fmake_symbolic_link):
13688         (Ffile_symlink_p):
13689         Run handlers even if local machine doesn't have symlinks.
13690
13691 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
13692
13693         * event-msw.c (mswindows_drain_windows_queue):
13694         Don't generate paint magic events for non-XEmacs frames.
13695
13696 2000-03-05  Andy Piper  <andy@xemacs.org>
13697
13698         * redisplay.c (redisplay_frame): generate_displayable_area and
13699         friends assumes that we are not in GC, we therefore have to make
13700         sure that this doesn't happen.
13701
13702         * gutter.c (calculate_gutter_size): generate_displayable_area
13703         assumes that we are not in GC, we therefore have to make sure that
13704         this doesn't happen.
13705
13706 2000-03-05  Martin Buchholz  <martin@xemacs.org>
13707
13708         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
13709
13710 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
13711
13712         * redisplay.c (regenerate_window): Make sure we set a sane value
13713         for end_pos even if we jump out of the loop.
13714         (regenerate_window): Answer Ben's question :-).
13715         (start_end_of_last_line): Add may_error argument.
13716         (start_of_last_line):
13717         (end_of_last_line): Pass may_error = 0.
13718         (end_of_last_line_may_error): New function.
13719         (pixel_to_glyph_translation): Use it, so we don't crash in
13720         event_to_glyph.
13721
13722 2000-03-04  Andy Piper  <andy@xemacs.org>
13723
13724         * window.h (struct window): add gutter_extent_modiff.
13725
13726         * window.c (allocate_window): zero out gutter_extent_modiff.
13727
13728         * redisplay.h: declare sync_display_line_structs.
13729
13730         * redisplay.c (add_glyph_rune): add a better comment.
13731
13732         * redisplay-output.c (sync_display_line_structs): made non-static.
13733         (compare_runes): remove unneccesary glyph cachel access.
13734
13735         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
13736
13737         * gutter.c (output_gutter): don't output the gutter if extent
13738         changes only involve extents in buffers. use 4 sets of display
13739         lines.
13740         (gutter_extent_signal_changed_region_maybe): new function. Mark
13741         extents in gutters as changed.
13742         (update_frame_gutters): use 4 sets of display lines.
13743         (reset_gutter_display_lines): ditto.
13744         (free_frame_gutters): ditto.
13745         (redraw_exposed_gutter): force output of gutters.
13746
13747         * frame.h (struct frame): add 4 sets of gutter display lines.
13748
13749         * extents.c: (extent_changed_for_redisplay): signal changes to
13750         extents in strings in the gutter as well as extents in buffers.
13751
13752 2000-03-02  Andy Piper  <andy@xemacs.org>
13753
13754         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
13755
13756         * frame.c (Fmake_frame): make sure the gutters get initialized
13757         after the frame is visible.
13758         (set_frame_selected_window): re-arrange compilation macros a
13759         little.
13760         (change_frame_size_1): mark gutters changed.
13761
13762         * device.c (Fset_device_class): mark gutters changed.
13763
13764 2000-03-01  Andy Piper  <andy@xemacs.org>
13765
13766         * window.c (window_top_frame_gutter_height): deleted.
13767         (window_bottom_frame_gutter_height): ditto.
13768         (window_left_frame_gutter_height): ditto.
13769         (window_right_frame_gutter_height): ditto.
13770         (window_top_gutter_height): don't use them.
13771         (window_bottom_gutter_height): ditto.
13772         (window_left_gutter_width): ditto.
13773         (window_right_gutter_width): ditto.
13774         (Fsplit_window): ditto.
13775         (Fwindow_pixel_edges): don't use border dimensions here.
13776
13777         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
13778         (update_scrollbar_instance): ditto.
13779
13780         * redisplay.c (generate_modeline): don't take gutters into account.
13781         (generate_modeline): ditto.
13782         (redisplay_frame): small gutter display optimization.
13783
13784         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
13785
13786         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
13787         gutters into account.
13788
13789         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
13790         for window position and type.
13791
13792         * gutter.c (get_gutter_coords): fix for frame gutters.
13793         (update_frame_gutters): update frame geometry if the gutters have
13794         changed.
13795         (init_frame_gutters): record current gutter geometries.
13796
13797         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
13798         var.
13799         (mswindows_widget_instantiate): ditto.
13800
13801         * frame.h (struct frame): add current_gutter_bounds.
13802
13803         * frame.c (change_frame_size_1): position window and minibuffer
13804         appropriately taking into account the frame gutters.
13805
13806         * frame-x.c: (x_initialize_frame_size): take into account the
13807         frame gutters.
13808
13809 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
13810
13811         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
13812
13813 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
13814
13815         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
13816
13817 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
13818
13819         * file-coding.c (reset_decoding_stream): Clear previous
13820         detection state when autodetect.
13821
13822 2000-02-29  Didier Verna  <didier@xemacs.org>
13823
13824         * extents.c (set_extent_glyph_1): don't require extents to be
13825         attached.
13826
13827 2000-02-27  Andy Piper  <andy@xemacs.org>
13828
13829         * gutter.c (Fset_default_gutter_position): don't default left and
13830         right gutter visibility to t.
13831         (Fset_default_gutter_position): run
13832         default-gutter-position-changed-hook.
13833         (syms_of_gutter): add default-gutter-position-changed-hook.
13834
13835 2000-02-26  Andy Piper  <andy@xemacs.org>
13836
13837         * specifier.c (Fmake_specifier): add gutter references.
13838
13839         * gutter.h (RAW_WINDOW_GUTTER): new macro.
13840
13841         * lisp.h: declare Fvalid_plist_p.
13842
13843         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
13844         as changed.
13845         (default_gutter_visible_p_changed_in_window): invalidate gutter as
13846         well as its visibility so that it gets reconstructed.
13847         (construct_window_gutter_spec): new function. Construct a string
13848         to be displayed in the gutter from a plist of strings. Take care
13849         to only use elements that are declared as visible.
13850         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
13851         WINDOW_GUTTER.
13852         (gutter_validate): allow plists of strings in the specifier.
13853         (gutter_specs_changed): construct the real_gutter from the gutter
13854         specs using construct_window_gutter_spec.
13855         (gutter_visible_validate): gutter-visible is a new specifier type.
13856         (Fgutter_visible_specifier_p): new function for the new specifier.
13857         (syms_of_gutter): declare gutter-visible and
13858         Fgutter_visible_specifier_p.
13859         (specifier_type_create_gutter): intitalize new gutter-visible
13860         specifier.
13861         (reinit_specifier_type_create_gutter): ditto.
13862         (specifier_vars_of_gutter): use new specifier type for gutter
13863         visibility.
13864         (init_frame_gutters): construct real_gutter correctly.
13865         (Fgutter_specifier_p): beef up documentation.
13866         (Fgutter_size_specifier_p): ditto.
13867
13868         * winslots.h: add real_gutter slots.
13869
13870 2000-02-25  Andy Piper  <andy@xemacs.org>
13871
13872         * device-msw.c: Be kind to older cygwin versions. From Raymond
13873         Toy <toy@rtp.ericsson.se>.
13874
13875         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
13876         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
13877
13878 2000-02-25  Martin Buchholz  <martin@xemacs.org>
13879
13880         * elhash.c (MARK_OBJ): Practice macro hygiene.
13881
13882 2000-02-24  Martin Buchholz  <martin@xemacs.org>
13883
13884         * miscplay.c: s/__inline__/inline/g;
13885         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
13886         (get_device_compdc): INLINE ==> static inline
13887         * *.[ch]: Change INLINE to INLINE_HEADER globally.
13888         find -name '*.h' | \
13889         xargs global-replace \
13890         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
13891
13892 2000-02-25  Andy Piper  <andy@xemacs.org>
13893
13894         * window.c (window_top_frame_gutter_height): new function.
13895         (window_top_window_gutter_height): ditto.
13896         (window_top_gutter_height): use them.
13897         (window_bottom_frame_gutter_height): new function.
13898         (window_bottom_window_gutter_height): ditto.
13899         (window_bottom_gutter_height): use them.
13900         (window_left_window_gutter_width): new function.
13901         (window_left_frame_gutter_width): ditto.
13902         (window_left_gutter_width): use them.
13903         (window_right_window_gutter_width): new function.
13904         (window_right_frame_gutter_width): ditto.
13905         (window_right_gutter_width): use them.
13906         (window_pixel_height): new function. calulate window pixel height
13907         with frame gutter involvement.
13908         (Fsplit_window): calculate new sizes taking frame gutters into
13909         account.
13910         (window_char_height_to_pixel_height): don't include frame gutters.
13911         (window_char_height): use window_pixel_height.
13912         (window_pixheight): rename from window_pixel_height.
13913         (change_window_height): use it.
13914         (window_pixel_height_to_char_height): don't include frame gutters.
13915         (window_char_width_to_pixel_width): ditto.
13916
13917 2000-02-25  Andy Piper  <andy@xemacs.org>
13918
13919         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
13920         if it is.
13921
13922 2000-02-24  Martin Buchholz  <martin@xemacs.org>
13923
13924         * alloc.c (staticpro):
13925         (staticpro_nodump):
13926         (dumpstruct):
13927         (dumpopaque):
13928         (pdump_wire):
13929         (pdump_wire_list):
13930         (compact_string_chars):
13931         (pdump_dump_wired):
13932         Convert:  if (foo) abort();  ==>  assert (! foo);
13933
13934         * eldap.c (Fldap_search_basic):
13935         (Fldap_add):
13936         (Fldap_modify):
13937         (Fldap_delete):
13938         Fix compiler warnings, and possible crashes if (random) return
13939         value were to be used.
13940
13941 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13942
13943         * device-msw.c: Workaround ResetDC failure.
13944
13945         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
13946         applying a devmode.
13947
13948         * redisplay-msw.c (get_frame_dc): Added start_page_p.
13949         (mswindows_text_width): Do not start printer page.
13950
13951         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
13952
13953         * glyphs-msw.c: Added image methods to msprinter console and
13954         msprinter-specific image instantiation.
13955
13956 2000-02-20  Mike Alexander  <mta@arbortext.com>
13957
13958         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
13959         to avoid crashes when selection-sets-clipboard is on
13960         (mswindows_own_selection): ditto
13961
13962 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13963
13964         * glyphs-msw.c:
13965         * redisplay-msw.c (get_frame_dc):
13966         (get_frame_compdc):
13967         * console-msw.h:
13968         * device-msw.c (mswindows_init_device):
13969         (mswindows_delete_device):
13970         (msprinter_init_device):
13971         (msprinter_delete_device):
13972         * frame-msw.c (mswindows_init_frame_1):
13973         (mswindows_delete_frame):
13974         (msprinter_init_frame_3):
13975         (msprinter_delete_frame): Move compatible DC to device object from
13976         frame object, for both mswindows and msprinter. Only one at a time
13977         is needed, it is a real waste to have one per frame!
13978
13979 2000-02-23  Andy Piper  <andy@xemacs.org>
13980
13981         * glyphs.c: add dynamic width and height elements.
13982         (image_instance_equal): ditto.
13983
13984         * glyphs-widget.c (widget_query_geometry): calculate width and
13985         height dynamically if required.
13986         (initialize_widget_image_instance): initialize dynamic dimensions.
13987         (widget_instantiate): pick-up dynamic dimensions.
13988
13989         * glyphs.h (struct Lisp_Image_Instance): add width and height for
13990         dynamic determination. Add appropriate macros.
13991
13992         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
13993         dimensions safe.
13994         (WINDOW_GUTTER_SIZE): ditto.
13995         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
13996
13997         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
13998         inline.
13999         (get_frame_dc): ditto.
14000
14001         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
14002         here.
14003
14004 2000-02-23  Martin Buchholz <martin@xemacs.org>
14005
14006         * XEmacs 21.2.31 is released.
14007
14008 2000-02-22  Ben Wing <ben@xemacs.org>
14009
14010         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
14011
14012 2000-02-22  Andy Piper  <andy@xemacs.org>
14013
14014         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
14015
14016 2000-02-21  Mike Sperber <mike@xemacs.org>
14017
14018         * .dbxrc:
14019         * .gdbinit:
14020         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
14021         variables.
14022
14023 2000-02-21  Mike Sperber <mike@xemacs.org>
14024
14025         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
14026
14027 2000-02-21  Martin Buchholz <martin@xemacs.org>
14028
14029         * XEmacs 21.2.30 is released.
14030
14031 2000-02-20  Martin Buchholz  <martin@xemacs.org>
14032
14033         Performance hacking.
14034         * *.c (syms_of_*):
14035         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
14036         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
14037         * emacs.c (main_1):
14038         * lisp.h (DEFUN):
14039         * console.c (DEFVAR_CONSOLE_LOCAL_1):
14040         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
14041         * symeval.h (DEFVAR_SYMVAL_FWD):
14042         * symbols.c (guts_of_unbound_marker):
14043         Make all c_readonly objects also lisp_readonly and marked for life.
14044         * lrecord.h (struct lrecord_implementation):
14045         Document flags better.
14046         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
14047         * lrecord.h (DECLARE_LRECORD):
14048         * lrecord.h (XSETRECORD):
14049         * lrecord.h (RECORDP):
14050         * lrecord.h (RECORD_TYPEP):
14051         * lrecord.h (RECORD_MARKER): New.
14052         * lrecord.h (error_check_*):
14053         * lrecord.h (CONCHECK_NONRECORD):
14054         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
14055         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
14056         * lrecord.h (set_lheader_implementation):
14057         * lrecord.h (enum lrecord_type): New.
14058         * symeval.h (SYMBOL_VALUE_MAGIC_P):
14059         * alloc.c (disksave_object_finalization_1):
14060         * alloc.c (mark_object):
14061         * alloc.c (lrecord_type_index):
14062         * alloc.c (tick_lcrecord_stats):
14063         * alloc.c (Fgarbage_collect):
14064         * alloc.c (init_alloc_once_early):
14065         * alloc.c (pdump_load):
14066         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
14067         * alloc.c (lrecord_type_index): Delete.
14068         Make lisp object type indexes be constant.
14069           Makes (byte-compile) 5% faster.
14070         Put all marker functions into their own array.
14071           Makes (garbage-collect) 5% faster.
14072         Optimize SYMBOL_VALUE_MAGIC_P.
14073           Makes (byte-compile) 2-3% faster.
14074         * config.h.in (gc_checking_assert): New.
14075         * alloc.c: Use gc_checking_assert().
14076         * .dbxrc: Make compatible with new object type implementation.
14077         * .gdbinit: Make compatible with new object type implementation.
14078         * alloc.c: Delete all symbols defined only for debugging, such as
14079         Lisp_Type_Vector and lrecord_charset.
14080
14081 2000-02-21  Andy Piper  <andy@xemacs.org>
14082
14083         * gui-msw.c (Fmswindows_shell_execute): fix file location
14084         problems.
14085
14086         * buffer.c (Fkill_buffer): remove buffer from alist buffer
14087         unshowing so that set_window_buffer doesn't undo
14088         kill_buffer_hook's hard work.
14089
14090         * glyphs-widget.c (tab_control_query_geometry): don't count the
14091         first item when calculating geometry.
14092
14093         * glyphs.c (map_subwindow): remove redundant code.
14094         (update_frame_subwindows): be more circumspect about when to
14095         update subwindows.
14096
14097         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
14098         when items haven't changed. Update faces if faces have changed as
14099         well as just the widget face.
14100         (x_tab_control_update): Update faces if faces have changed as well
14101         as just the widget face.
14102
14103 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14104
14105         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
14106         registration.
14107         (build_syscolor_string): Use mswindows_color_to_string to try to
14108         get a named color.
14109         (mswindows_device_system_metrics): Reverse the foreground and
14110         background colors so that they match the documentation.
14111
14112         * objects-msw.c: (mswindows_X_color_map): tweak some values so
14113         they match the default Windows palette.
14114         (mswindows_color_to_string): New function.
14115
14116 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14117
14118         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
14119
14120 2000-02-18  Olivier Galibert  <galibert@pobox.com>
14121
14122         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
14123         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
14124
14125         * symbols.c (init_symbols_once_early): Removed obsolete
14126         DATA_SEG_BITS related kludge.
14127         (defvar_magic): Ditto.
14128
14129         * malloc.c: Removed obsolete DATA_SEG_BITS
14130         * ralloc.c: Ditto.
14131         * mem-limits.h: Ditto.
14132
14133         * Makefile.in.in: Removed obsolete HAVE_SHM
14134         * emacs.c: Ditto.
14135
14136 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14137
14138         *  device-msw.c (mswindows_delete_device): Free DDE string
14139         handles.
14140
14141 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14142
14143         * keymap.c (get_keyelt):
14144         * unexnt.c (unexec):
14145         * vm-limit.c (memory_warnings):
14146         * ntheap.c (recreate_heap):
14147         * ntheap.h (UNINIT_PTR):
14148         * select-msw.c (Fmswindows_get_clipboard):
14149         (Fmswindows_set_clipboard):
14150         * objects-msw.h (MSWINDOWS_BAD_HFONT):
14151         * objects-msw.c:
14152         * menubar-msw.c (displayable_menu_item):
14153         * glyphs-msw.c:
14154         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
14155         * sysdep.c (sys_subshell):
14156         * process-nt.c (nt_create_process):
14157         * nt.c (normalize_filename):
14158         (dostounix_filename):
14159         (unixtodos_filename):
14160         * ntproc.c (win32_executable_type):
14161         * ntplay.c (play_sound_data_1):
14162         (play_sound_file):
14163         * editfns.c (get_home_directory):
14164         * event-msw.c (struct winsock_stream):
14165         (mswindows_dde_callback):
14166         * device-msw.c (msprinter_init_device):
14167         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
14168
14169         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
14170         mswindows_clear_toolbar were swapped!
14171
14172         * objects-msw.c:(colormap_t):
14173         (fontmap_t):
14174         * emacs.c (struct standard_args): Fixed const jumble.
14175
14176         * glyphs-widget.c (update_widget): Fixed comparison notation.
14177
14178         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
14179
14180         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
14181         __declspec(noreturn) syntax.
14182
14183 2000-02-19  Martin Buchholz  <martin@xemacs.org>
14184
14185         * eldap.c (Fldap_open):
14186         (Fldap_search_basic):
14187         (Fldap_add):
14188         (Fldap_modify):
14189         Use new coding system conversion macros.
14190
14191 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
14192
14193         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
14194
14195 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
14196
14197         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
14198         (Fldap_add, Fldap_modify, Fldap_delete): New functions
14199
14200         * eldap.c (Qadd, Qreplace): New constant symbols
14201         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
14202         interruptions by XEmacs signals
14203         Remove unnecessary calls to slow_down_interrupts and
14204         speed_up_interrupts
14205         (Fldap_search_basic): Renamed from Fldap_search_internal
14206         Added new optional parameter VERBOSE that triggers the
14207         display of progress messages
14208         Remove unnecessary calls to slow_down_interrupts and
14209         speed_up_interrupts
14210         LDAP result code analysis rewritten
14211         (Fldap_add, Fldap_modify, Fldap_delete): New functions
14212         (syms_of_eldap): Define the new symbols and functions
14213
14214
14215 2000-02-17  Martin Buchholz  <martin@xemacs.org>
14216
14217         * realpath.c: Determine PATH_MAX maximally portably.
14218
14219         * insdel.c (bytecount_to_charcount): Optimize.
14220         The function used to be optimized for entirely ASCII sequences.
14221         Now it is optimized for successive characters from the same
14222         charset.  This also wins big for _mostly_ ASCII sequences.
14223
14224         * fileio.c (Ffile_truename): convert return from realpath() using
14225         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
14226         - Rewrite GCPROing slightly.
14227
14228         * sysdep.c (sys_open): Do filename conversion, like all other
14229         sys_* functions.  Fixes bug:
14230         (let ((file-name-coding-system 'iso-8859-2))
14231            (write-region x y latin2-name))
14232         ==> writes filename using internal encoding.
14233
14234 2000-02-18  Martin Buchholz  <martin@xemacs.org>
14235
14236         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
14237         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
14238         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
14239         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
14240         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
14241         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
14242         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
14243         (CONST_IF_NOT_DEBUG): Delete.
14244         * alloc.c (this_one_is_unmarkable): Delete.
14245         (mark_object): Don't check for this_one_is_unmarkable. Use the
14246         c_readonly flag instead.
14247         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
14248
14249 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14250
14251         * event-msw.c (mswindows_drain_windows_queue):
14252         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
14253         away redundant repaint events.
14254
14255 2000-02-17  Andy Piper  <andy@xemacs.org>
14256
14257         * redisplay.h: declare mark_redisplay_structs.
14258
14259         * redisplay.c (redisplay_window):
14260         (redisplay_frame): don't check subwindows_state_changed.
14261         (mark_redisplay): mark gutters here.
14262
14263         * glyphs.c: (instantiate_image_instantiator): always layout if we
14264         haven't done so already.
14265         (allocate_image_instance): don't mark as dirty.
14266         (update_subwindow): bind inhibit_quit.
14267
14268         * gutter.c (mark_gutters): new function.
14269
14270         * glyphs-x.c (x_update_widget): Always resize to get round a
14271         widget bug.
14272
14273         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
14274         breaking absolutely everything.
14275
14276         * gutter.h: declare mark_gutters.
14277
14278 2000-02-16  Martin Buchholz <martin@xemacs.org>
14279
14280         * XEmacs 21.2.29 is released.
14281
14282 2000-02-15  Olivier Galibert  <galibert@pobox.com>
14283
14284         * fns.c (size_bit_vector): Fix computation of the size.
14285
14286 2000-02-15  Martin Buchholz  <martin@xemacs.org>
14287
14288         * *.[ch]: Change CONST to const globally.
14289         find -name '*.[ch]' | \
14290         xargs global-replace \
14291         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
14292         - Remove vestigial references to CONST_IS_LOSING
14293
14294 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14295
14296         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
14297         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
14298         events instead of dispatching them directly.
14299         (mswindows_handle_paint): New function to do repainting.
14300         (mswindows_wnd_proc):
14301         (emacs_mswindows_handle_magic_event): Call above function.
14302
14303 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14304
14305         * objects-msw.c (mswindows_create_font_variant): Return the new
14306         font handle.
14307         (initialize_font_instance): Get font metrics from the underlined
14308         variant of the font to cope with the case where the underlined
14309         font has a bigger descent.
14310
14311 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
14312
14313         * gui.c (gui_item_accelerator): Return the first underlined
14314         character in item name.
14315
14316 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14317
14318         * lisp.h: Added Qprinter.
14319
14320         * general.c (syms_of_general): Initialized it.
14321
14322         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
14323         (get_frame_dc):
14324         (get_frame_compdc): Made inline.
14325
14326         * console.h (struct console_methods): Added eject_page method.
14327
14328         * frame.h: Added FRAME_DISPLAY_P and friends.
14329         Aligned backslahes in many macros in more readable fashion.
14330         Added page_number to struct frame, and an accessor macro
14331         for it.
14332
14333         * defice.h: Added DEVICE_DISPLAY_P and friends.
14334
14335         * device.c (Fdevice_printer_p): Used these.
14336
14337         * frame.c (allocate_frame_core): Initialize page number.
14338         (Fprint_job_page_number):
14339         (Fprint_job_eject_page): Implemented.
14340
14341         * frame-msw.c (msprinter_eject_page): Added method.
14342         (msprinter_start_page): Added.
14343
14344         * window.c (Fwindow_truncated_p): Fixed docstring.
14345         (Fwindow_last_line_visible_height): Implemented.
14346
14347 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
14348
14349         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
14350
14351 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
14352
14353         * syntax.c (scan_words): Always advance at least one character.
14354
14355 2000-02-13  Andy Piper  <andy@xemacs.org>
14356
14357         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
14358         to make sure the glyph is in the cachels.
14359
14360         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
14361         global image instance flag.
14362         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
14363         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
14364
14365         * glyphs.c (allocate_image_instance): set dirty bits correctly.
14366         (Fset_image_instance_property): mark layout as changed.
14367         (invalidate_glyph_geometry_maybe): mark layout as changed.
14368         (glyph_width): use new NEEDS_LAYOUT macro.
14369         (glyph_ascent): ditto.
14370         (glyph_descent): ditto.
14371         (glyph_height): ditto.
14372         (image_instance_layout): mark layout as clean after laying out.
14373         (update_subwindow): don't mark layout as clean here.
14374
14375         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
14376         should no longer be needed.
14377
14378         * glyphs-x.c (x_update_widget): sanitize asserts.
14379         (x_finalize_image_instance): sanitize assignment to widgets.
14380
14381         * glyphs-widget.c (widget_instantiate): don't need to clear the
14382         layout flag here.
14383
14384 2000-02-13  Martin Buchholz  <martin@xemacs.org>
14385
14386         * sysdep.c (getcwd): Use standard prototype.
14387         * sysdep.h (getcwd): Use standard prototype.
14388
14389         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
14390         (sequence, start, end).
14391         Remove redundant type checking.
14392         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
14393         view of `caller-protects') to avoid a crash where the real fix was
14394         found elsewhere.
14395
14396 2000-02-12  Martin Buchholz  <martin@xemacs.org>
14397
14398         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
14399
14400         * s/sol2.h: Remove feature macro initialization.
14401
14402         * alloc.c (alloc_lcrecord): Add more type checking assertions.
14403         (vector_hash): New.  Code from internal_hash.
14404         * lrecord.h:
14405         Fix up allocation subsystem comments.
14406
14407         * config.h.in: Add __EXTENSIONS__ for Solaris.
14408
14409         * systime.h (EMACS_GETTIMEOFDAY): New.
14410         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
14411         Remove Solaris-specific code.
14412         Use void* for the (ignored) second arg for gettimeofday().
14413
14414         * elhash.c (hash_table_hash): Implement it, finally.
14415         * elhash.c:  Use hashcode_t.
14416
14417         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
14418         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
14419
14420         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
14421         * fns.c (size_bit_vector):
14422         * alloc.c (size_vector):
14423         (make_vector_internal):
14424         (make_bit_vector_internal):
14425         (sweep_bit_vectors_1):
14426         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
14427
14428 2000-02-10  Martin Buchholz  <martin@xemacs.org>
14429
14430         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
14431         Include strings.h to avoid warnings for bzero and strcasecmp.
14432
14433 2000-02-10  Olivier Galibert  <galibert@pobox.com>
14434
14435         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
14436         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
14437
14438         * fns.c (size_bit_vector): New.  Declare bit vectors as a
14439         sequence.
14440
14441 2000-02-10  Olivier Galibert  <galibert@pobox.com>
14442
14443         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
14444         use a value field instead.
14445         (symbol_value_forward_forward): Use value field.
14446         (DEFVAR_SYMVAL_FWD): Use value field.
14447         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
14448         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
14449         (DEFVAR_CONST_INT): Ditto.
14450         (DEFVAR_BOOL): Ditto.
14451         (DEFVAR_CONST_BOOL): Ditto.
14452         (DEFVAR_INT_MAGIC): Ditto.
14453         (DEFVAR_BOOL_MAGIC): Ditto.
14454
14455         * symbols.c (guts_of_unbound_marker): Use value field.
14456         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
14457         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
14458
14459         * lisp.h: Declare dumpopaque and noninteractive1.
14460
14461         * alloc.c (dumpopaque): Added.
14462         (pdump_dump_opaquevec): Added.
14463         (pdump): Call pdump_dump_opaquevec to dump opaque data.
14464         (pdump_load): Reload opaque data.  Sync noninteractive1 with
14465         noninteractive.
14466
14467 2000-02-10  Andy Piper  <andy@xemacs.org>
14468
14469         * glyphs.c (image_instance_layout): if the size changes, mark it
14470         as such.
14471
14472         * redisplay-output.c (redisplay_output_layout): Update the
14473         subwindow here.
14474         (redisplay_output_subwindow): ditto.
14475
14476         * glyphs.c (update_subwindow): make sure we reset flags for
14477         layouts as well as everything else.
14478
14479         * glyphs-widget.c (layout_layout): don't need to set the instances
14480         dimensions here.
14481
14482 2000-02-09  Martin Buchholz  <martin@xemacs.org>
14483
14484         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
14485         not HAVE_DLOPEN, which is a lower-level thing.
14486
14487         * .cvsignore: Ignore gmon.out
14488
14489 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
14490
14491         * .cvsignore: Ignore portable dumper xemacs.dmp file
14492
14493 2000-02-09  Andy Piper  <andy@xemacs.org>
14494
14495         * redisplay-output.c (redisplay_output_layout): be more clever
14496         about when we output based on the changed flags.
14497
14498         * glyphs.h (struct image_instantiator_methods): add update_method.
14499         (struct Lisp_Image_Instance): add changed flags. Declare new
14500         macros for manipulating them.
14501
14502         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
14503         (image_instance_parent_glyph): find an image_instance's parent
14504         glyph or image_instance.
14505         (image_instance_layout): mark the size as changed.
14506         (set_image_instance_dirty_p): new function. mark an image
14507         instance, plus all of its parents, as dirty.
14508         (Fset_image_instance_property): use it.
14509         (Fglyph_animated_timeout_handler): use it.
14510         (update_subwindow): call update_widget and device methods for
14511         update_subwindow. Mark all changed flags as clean.
14512         (Fresize_subwindow): mark size as changed.
14513
14514         * glyphs-x.c (x_finalize_image_instance): try and detect gc
14515         failures.
14516         (x_update_subwindow): only resize subwindows here.
14517         (x_update_widget): new function. Update all changed properties of
14518         a widget.
14519         (x_resize_subwindow): deleted.
14520         (x_widget_set_property): deleted.
14521         (x_progress_gauge_set_property): deleted.
14522         (x_progress_gauge_update): new function. Implement recorded
14523         changes.
14524         (x_tab_control_update): ditto.
14525         (x_tab_control_set_property): deleted.
14526         (console_type_create_glyphs_x): declare new functions.
14527         (image_instantiator_format_create_glyphs_x): ditto.
14528
14529         * glyphs-widget.c (widget_set_property): mark text changed.
14530         (update_widget): new function. Update properties of a widget.
14531         (widget_instantiate): for layouts make sure we set their
14532         children's parent correctly.
14533         (tab_control_set_property): new function. Record changes that will
14534         take place under redisplay's control.
14535         (progress_gauge_set_property): ditto.
14536         (image_instantiator_progress_guage): declare new functions.
14537         (image_instantiator_tab_control): ditto.
14538
14539         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
14540         now.
14541         (mswindows_update_widget): new function. Update all properties on
14542         a widget that have changed.
14543         (mswindows_button_update): new function. Update a button's set
14544         state.
14545         (mswindows_tab_control_update): new function. Update the items in
14546         a tab.
14547         (mswindows_tab_control_set_property): deleted.
14548         (mswindows_progress_gauge_update): new function. Update the
14549         progress gauge's progress.
14550         (mswindows_widget_set_property): deleted. This is all done
14551         asynchronously now.
14552         (mswindows_progress_gauge_set_property): ditto.
14553         (console_type_create_glyphs_mswindows): declare new methods.
14554         (image_instantiator_format_create_glyphs_mswindows): ditto.
14555
14556         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
14557         (msprinter_set_frame_properties): ditto.
14558
14559         * console.h (struct console_methods): Add update_widget_method.
14560
14561 2000-02-09  Andy Piper  <andy@xemacs.org>
14562
14563         * gui-msw.c (Fmswindows_shell_execute): Make
14564         mswindows-shell-execute industrial strength.
14565
14566 2000-02-08  Martin Buchholz  <martin@xemacs.org>
14567
14568         * lrecord.h: Make macro argument `props' match member function `plist'.
14569         * fns.c (Fget):
14570         * fns.c (Fput):
14571         * fns.c (Fremprop):
14572         * fns.c (Fobject_plist):
14573         * alloc.c:
14574         * symbols.c:
14575         Object property list frobbing cleanup.
14576         - Allow any lisp object (compared with `eq'), not just symbols, as
14577           keys in object plists.
14578         - Move symbol plist frobbing into symbols.c, where it belongs.
14579         - Move string plist frobbing into alloc.c, where it belongs.
14580         - Everything's an lrecord now, so no need to test for symbolp, etc.
14581         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
14582
14583         * extents.c: Reorder code to remove declarations.
14584
14585         * frame.h (store_in_alist): Remove useless declaration.
14586
14587 2000-02-07  Martin Buchholz  <martin@xemacs.org>
14588
14589         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
14590         * config.h.in: Add HAVE_XCONVERTCASE.
14591
14592 2000-02-07  Andy Piper  <andy@xemacs.org>
14593
14594         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
14595         it breaks many things.
14596
14597 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
14598
14599         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
14600         actually can start a common comment type.
14601         * src/syntax.h (SYNTAX_END_P): ditto for end.
14602
14603 2000-02-07  Martin Buchholz <martin@xemacs.org>
14604
14605         * XEmacs 21.2.28 is released.
14606
14607 2000-02-06  Martin Buchholz  <martin@xemacs.org>
14608
14609         * event-Xt.c (x_keysym_to_character): New.
14610         (maybe_define_x_key_as_self_inserting_character): New.
14611         (x_has_keysym): New.
14612         Auto-define all keys on the keyboard as self-insert-key.
14613
14614 2000-02-02  Martin Buchholz  <martin@xemacs.org>
14615
14616         * menubar.c (vars_of_menubar): A small code simplification.
14617
14618         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
14619
14620         * ExternalShell.c:
14621         * ExternalClient.c:
14622         * EmacsShell-sub.c:
14623         * EmacsManager.c:
14624         * EmacsFrame.c:
14625         Use consistent style for specifying X resources.
14626
14627         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
14628         This makes (dontusethis-set-symbol-value-handler) actually usable.
14629
14630         * lrecord.h (lrecord_decription_type):
14631         * alloc.c (pdump_register_sub):
14632         (pdump_dump_data):
14633         (pdump_reloc_one):
14634         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
14635         Comply with XEmacs coding style.
14636         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
14637         args, and XD_LISP_OBJECT_ARRAY with 3 args.
14638
14639         * keymap.c (Faccessible_keymaps):
14640         Make (accessible-keymaps map "\C-h") do the Right Thing.
14641         Make (accessible-keymaps map []) do the Right Thing.
14642         Make (accessible-keymaps map "") do the Right Thing.
14643         (check_keymap_definition_loop): New function.
14644         (keymap_store_internal): Keep luser from shooting self in foot,
14645           via (define-key ctl-x-4-map "p" global-map).
14646         Remove fullness slot from struct Lisp_Keymap, since hash tables
14647         are now reliable.
14648         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
14649
14650 2000-01-30  Martin Buchholz  <martin@xemacs.org>
14651
14652         * redisplay.c (init_redisplay): Fix small memory leak.
14653         * elhash.h:
14654         * elhash.c (pdump_reorganize_hash_table):
14655         Rename from reorganize_hash_table. Change prototype.
14656         Reuse the original memory for hentries.  Save 100k.
14657         * alloc.c (PDUMP_READ): new macro.
14658         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
14659         * alloc.c: No need to #ifndef before #undef.
14660
14661         * print.c: Allow debug_print() to print readably by modifying
14662         debug_print_readably.  Use consistent variable names.
14663
14664         * .dbxrc: Try to get things to work even if stopped in a function
14665         without source available by explicitly specifying source files.
14666 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14667
14668         * unexnt.c (_start): Removed bogus code which caused loading heap
14669         from differrent executable file.
14670         Removed bogus assignment to _fmode, which caused inconsistencies.
14671
14672 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14673
14674         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
14675         Have spawnve encapsulation regard DONT_ENCAPSULATE.
14676         Do not preliminary `#define signal sigset'.
14677
14678         * systime.h: Do not prototype environ on windows nt and cygwin,
14679         this conflicts with system header.
14680
14681         * syssignal.h: Use correct define for WINDOWSNT
14682
14683         * sysdep.h: Do not prototype environ on windows nt, this conflicts
14684         with system header.
14685
14686         * sysdep.c (near start of file): Fixed commentary and rearranged
14687         ifdefs in readable order.
14688         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
14689         (start_of_text):
14690         (end_of_text):
14691         (end_of_data): Do not compile in if using PDUMP.
14692
14693         * symsinit.h: Prototyped vars_of_nt().
14694
14695         * ntproc.c (windows9x_p): Added, instead of os_subtype.
14696         (find_child_console): Use it.
14697         (sys_kill): Use it.
14698
14699         * ntheap.h: Do not extern os_subtype.
14700
14701         * ntheap.c (cache_system_info): Do not cache unneeded:
14702         nt_major_version, nt_minor_version and os_subtype.
14703         (recreate_heap): Do not compile in when PDUMPing.
14704
14705         * nt.c (geteuid and friends): Use the new varibale
14706         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
14707         (init_user_info): Removed the above mentioned hackery.
14708         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
14709         stat has been fixed in the C runtime.
14710         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
14711
14712         * file-coding.c (struct file_coding_dump): Do not define
14713         ucs_to_mule_table in the struct if not MULE.
14714         (struct struct lrecord_description fcd_description_1): Do not dump
14715         the above.
14716
14717         * emacs.c (main_1): Call vars_of_nt().
14718         (right before Fdump_emacs_data): Don't need lastfile if using both
14719         portabe dumper and system malloc.
14720
14721         * alloc.c (Fmemory_limit): Conditionalized out.
14722         (pdump): Use OPEN_BINARY for the portable dump file.
14723         (pdump_load): Ditto.
14724
14725 2000-02-02  Mike Alexander  <mta@arbortext.com>
14726
14727         * nt.c (convert_time): Set tm_isdst before calling mktime and
14728         avoid calling it at all if the compiler supports 64 bit integers.
14729         Also initialize utc_base_ft before using it.
14730
14731 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
14732
14733         * frame.c (change_frame_size_1): Take f->internal_border_width
14734         into consideration when calculating the width of the frame.
14735
14736 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14737
14738         * window.c (frame_min_height):
14739         (frame_size_valid_p):
14740         (frame_pixsize_valid_p): Added.
14741         (check_frame_size): Generalized.
14742
14743         * window.h: Prototyped the above.
14744
14745         * lisp.h:
14746         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
14747         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
14748         Deleted Vwin32_* and Vbinary_process_* unused variables.
14749
14750         * device-msw.c (msprinter_init_device): Do not get printer font
14751         list; Added DEVMODE functions.
14752
14753         * frame-msw.c: Added lots of printer code.
14754
14755         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
14756         general.c.
14757
14758         * console-msw.h: Added more msprinter device private slots.
14759
14760 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14761
14762         * event-msw.c (key_needs_default_processing_p): Added.
14763         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
14764
14765 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14766
14767         * glyphs.c (image_instance_layout): Mark image instance as clean
14768         after layout.
14769         (glyph_dirty_p): Removed redundant function.
14770         (invalidate_glyph_geometry_maybe): Added.
14771         (update_glyph_cachel_data): Call it.
14772
14773         * glyphs.h: Prototyped it.
14774
14775         * redisplay.c (add_glyph_rune): Call it.
14776         (redisplay_window): Reset glyphs cachels when frame faces have
14777         changed, thus forcing recomputation of built-in border glyphs.
14778
14779 2000-01-30  Martin Buchholz  <martin@xemacs.org>
14780
14781         * Makefile.in.in: Make portable dumper and purify play well together.
14782         Add imperfect, but better than nothing, support for pdump.
14783         Remove xemacs.dmp when temacs is re-generated.
14784         Don't ignore errors when dumping xemacs.
14785
14786         * symbols.c (maybe_call_magic_handler): Remove one magic number.
14787
14788 2000-01-28  Andy Piper  <andy@xemacs.org>
14789
14790         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
14791         (setup_normal_frame): ditto.
14792         (setup_frame_without_minibuffer): ditto.
14793         (setup_minibuffer_frame): ditto.
14794         (delete_frame_internal): ditto.
14795         (Fmake_frame_invisible): ditto.
14796         (Ficonify_frame): ditto.
14797
14798         * window.h: change Fset_window_buffer signature.
14799
14800         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
14801         (Fset_window_buffer): allow recording of buffer if the window is
14802         the selected window.
14803         (window_loop): Use new Fset_window signature.
14804
14805 2000-01-23  Daniel Pittman  <daniel@danann.net>
14806
14807         * config.h.in: Added template for `HAVE_ATHENA_3D'
14808
14809 2000-01-29  Andy Piper  <andy@xemacs.org>
14810
14811         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
14812
14813         * gutter.c (output_gutter): Don't output if the window isn't live.
14814
14815 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14816
14817         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
14818         of 01/12/00: Moved SetFocus back here where it belongs.
14819
14820 2000-01-23  Andy Piper  <andy@xemacs.org>
14821
14822         * s/cygwin32.h: declare printer things.
14823
14824 2000-01-26  Andy Piper  <andy@xemacs.org>
14825
14826         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
14827         Alexander.
14828
14829 2000-01-24  Andy Piper  <andy@xemacs.org>
14830
14831         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
14832         (mswindows_button_instantiate): Make sure glyph is a pixmap.
14833
14834         * glyphs-widget.c (widget_instantiate): Avoid shadows.
14835
14836         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
14837
14838         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
14839
14840         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
14841         (mswindows_output_display_block): Avoid local shadows.
14842
14843         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
14844         (mswindows_enqueue_mouse_button_event): ditto.
14845         (mswindows_handle_gui_wm_command): remove declaration.
14846
14847         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
14848         warnings.
14849
14850         * console-msw.h: Avoid shadows.
14851         (mswindows_get_toolbar_button_text):
14852         (emacs_mswindows_create_stream_pair):
14853         (emacs_mswindows_delete_stream_pair):
14854         (mswindows_handle_toolbar_wm_command): declare.
14855
14856         * device-msw.c (build_syscolor_string): Avoid shadows.
14857
14858 2000-01-23  Andy Piper  <andy@xemacs.org>
14859
14860         * glyphs-widget.c (widget_instantiate): reverse the items for
14861         layouts so that children are in the expected order.
14862
14863 2000-01-28  Martin Buchholz  <martin@xemacs.org>
14864
14865         * ralloc.c: safe_bcopy ==> memmove
14866         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
14867         * s/msdos.h: Remove BCOPY macros.
14868         * insdel.c (gap_right): Remove BCOPY conditional code.
14869         * insdel.c (gap_left): Remove BCOPY conditional code.
14870         XEmacs demands a working ANSI C compiler - hence memmove.
14871
14872         * regex.c (regex_compile): Remove accidental use of trigraphs.
14873
14874 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14875
14876         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
14877         event timestamp.
14878
14879 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14880
14881         * event-msw.c (mswindows_drain_windows_queue): Added the
14882         parameter.
14883         (mswindows_need_event): Commented the call to
14884         mswindows_drain_windows_queue().
14885         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
14886         only.
14887
14888         * console-msw.h: Moved a few function prototypes here from
14889         event-msw.c.
14890
14891         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
14892         parameter from unsigned short to unsigned long.
14893         (Fmswindows_shell_execute): Added return value.
14894
14895 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
14896
14897         * sysdep.c (init_system_name):
14898           process-unix.c (unix_canonicalized_host_name):
14899         Don't call freeaddrinfo() if getaddrinfo() fails.
14900
14901         * process-unix.c (unix_open_unix_network_stream):
14902         Moved the code to get a port # into address loop.
14903
14904 2000-01-27  Martin Buchholz  <martin@xemacs.org>
14905
14906         * buffer.c (reinit_vars_of_buffer):
14907         The right place to initialize conversion_in_dynarr and
14908         conversion_out_dynarr.
14909
14910         * alloc.c (pdump): Use the real open() till sys_open() is functional.
14911
14912         * process-unix.c (unix_canonicalize_host_name): Muleize.
14913         (unix_open_network_stream): Muleize.
14914
14915         * buffer.h: Fix up prototypes for ralloc.c functions.
14916
14917 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
14918         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
14919         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
14920                 instead of gethostbyname()
14921         * process-unix.c: In unix_canonicalize_host_name() and
14922                 unix_open_network_stream(), add code to use getaddrinfo()
14923                 instead of gethostbyname().
14924
14925 2000-01-27  Daniel Pittman <daniel@danann.net>
14926
14927         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
14928         libs when built with flat Athena.
14929
14930 2000-01-27  Martin Buchholz  <martin@xemacs.org>
14931
14932         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
14933         Use coding standards for function prototypes.
14934
14935 2000-01-25  Martin Buchholz  <martin@xemacs.org>
14936
14937         * dialog-msw.c (push_lisp_string_as_unicode):
14938         * doc.c (unparesseuxify_doc_string):
14939         * dired.c (Fuser_name_completion_1):
14940         * dired.c (Fuser_name_all_completions):
14941         * dired.c (free_user_cache):
14942         * dired.c (user_name_completion):
14943         * console-x.c (get_display_arg_connection):
14944         * minibuf.c (clear_echo_area_internal):
14945         * minibuf.c (echo_area_append):
14946         * eldap.c (Fldap_open):
14947         * eldap.c (Fldap_search_internal):
14948         * frame-x.c (x_set_frame_text_value):
14949         * frame-x.c (x_set_frame_properties):
14950         * frame-x.c (x_create_widgets):
14951         * redisplay-tty.c (term_get_fkeys_1):
14952         * objects-x.c (x_parse_nearest_color):
14953         * objects-x.c (x_valid_color_name_p):
14954         * objects-x.c (x_initialize_font_instance):
14955         * objects-x.c (x_list_fonts):
14956         * objects-x.c (x_find_charset_font):
14957         * tooltalk.c (Fadd_tooltalk_message_arg):
14958         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
14959         * tooltalk.c (Fadd_tooltalk_pattern_arg):
14960         * process-unix.c (unix_create_process):
14961         * ntproc.c (sys_spawnve):
14962         * sound.c (Fplay_sound_file):
14963         * sound.c (Fplay_sound):
14964         * buffer.c (init_initial_directory):
14965         * buffer.c (init_buffer):
14966         * editfns.c (init_editfns):
14967         * editfns.c (Ftemp_directory):
14968         * editfns.c (Fuser_full_name):
14969         * editfns.c (uncache_home_directory):
14970         * editfns.c (get_home_directory):
14971         * editfns.c (Fuser_home_directory):
14972         * editfns.c (Fformat_time_string):
14973         * editfns.c (Fcurrent_time_string):
14974         * gui-x.c (button_item_to_widget_value):
14975         * database.c (Fopen_database):
14976         * event-Xt.c (x_to_emacs_keysym):
14977         * event-Xt.c (x_event_to_emacs_event):
14978         * event-Xt.c (describe_event_window):
14979         * event-msw.c (mswindows_wnd_proc):
14980         * glyphs-eimage.c (jpeg_instantiate):
14981         * glyphs-eimage.c (gif_instantiate):
14982         * glyphs-eimage.c (png_instantiate):
14983         * glyphs-eimage.c (tiff_instantiate):
14984         * glyphs-x.c (xbm_instantiate_1):
14985         * glyphs-x.c (x_xbm_instantiate):
14986         * glyphs-x.c (x_xface_instantiate):
14987         * glyphs-x.c (autodetect_instantiate):
14988         * glyphs-x.c (cursor_font_instantiate):
14989         * glyphs-x.c (x_widget_instantiate):
14990         * glyphs-x.c (x_widget_set_property):
14991         * glyphs-x.c (x_widget_property):
14992         * glyphs-x.c (BUILD_GLYPH_INST):
14993         * print.c (write_string_to_stdio_stream):
14994         * print.c (output_string):
14995         * print.c (Falternate_debugging_output):
14996         * print.c (Fexternal_debugging_output):
14997         * glyphs-msw.c (extract_xpm_color_names):
14998         * glyphs-msw.c (mswindows_xpm_instantiate):
14999         * glyphs-msw.c (bmp_instantiate):
15000         * glyphs-msw.c (resource_name_to_resource):
15001         * glyphs-msw.c (mswindows_resource_instantiate):
15002         * glyphs-msw.c (xbm_instantiate_1):
15003         * glyphs-msw.c (mswindows_xbm_instantiate):
15004         * glyphs-msw.c (mswindows_xface_instantiate):
15005         * glyphs-msw.c (mswindows_widget_instantiate):
15006         * glyphs-msw.c (add_tree_item):
15007         * glyphs-msw.c (add_tab_item):
15008         * glyphs-msw.c (mswindows_combo_box_instantiate):
15009         * glyphs-msw.c (mswindows_widget_property):
15010         * glyphs-msw.c (mswindows_combo_box_property):
15011         * glyphs-msw.c (mswindows_widget_set_property):
15012         * console.c (stuff_buffered_input):
15013         * objects-msw.c (mswindows_initialize_color_instance):
15014         * objects-msw.c (mswindows_valid_color_name_p):
15015         * objects-msw.c (mswindows_list_fonts):
15016         * objects-msw.c (mswindows_font_instance_truename):
15017         * bytecode.c (optimize_compiled_function):
15018         * select-x.c (symbol_to_x_atom):
15019         * select-x.c (x_atom_to_symbol):
15020         * select-x.c (hack_motif_clipboard_selection):
15021         * select-x.c (selection_data_to_lisp_data):
15022         * select-x.c (lisp_data_to_selection_data):
15023         * select-x.c (Fx_get_cutbuffer_internal):
15024         * select-x.c (Fx_store_cutbuffer_internal):
15025         * buffer.h (TO_EXTERNAL_FORMAT): New function.
15026         * buffer.h (TO_INTERNAL_FORMAT): New function.
15027         * emacs.c (make_arg_list_1):
15028         * emacs.c (make_argc_argv):
15029         * emacs.c (main_1):
15030         * emacs.c (Fdump_emacs):
15031         * emacs.c (split_string_by_emchar_1):
15032         * file-coding.h:
15033         * lisp.h:
15034         * lstream.h:
15035         * symsinit.h:
15036         * device-x.c (x_init_device):
15037         * device-x.c (Fx_valid_keysym_name_p):
15038         * device-x.c (Fx_get_font_path):
15039         * device-x.c (Fx_set_font_path):
15040         * glyphs.c (bitmap_to_lisp_data):
15041         * glyphs.c (pixmap_to_lisp_data):
15042         * alloc.c (make_ext_string): Use coding system arguments.  Update
15043         all callers.
15044         * alloc.c (build_string):
15045         * callproc.c (child_setup):
15046         * callproc.c (init_callproc):
15047         * fileio.c (lisp_strerror):
15048         * fileio.c (directory_file_name):
15049         * fileio.c (Fexpand_file_name):
15050         * fileio.c (Ffile_truename):
15051         * fileio.c (Fsysnetunam):
15052         * fileio.c (Fdo_auto_save):
15053         * sysdep.c (sys_readdir):
15054         * tests.c: New file.  Allow adding C tests.
15055         Replace GET_* macros with a more comprehensible and flexible
15056         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
15057         Modify all calls.
15058         Any coding system can be used to do format conversion.
15059         Eliminate enum external_data_format.
15060         Eliminate convert_to_external_format.
15061         Eliminate convert_to_internal_format.
15062         Make sure file-name, keyboard, terminal, and ctext are always
15063         defined as coding systems or aliases.  Make
15064         file-name-coding-system, terminal-coding-system, and
15065         keyboard-coding-system magical variables that are equivalent to
15066         defining the corresponding coding system aliases.
15067
15068         * file-coding.c (Fcoding_system_canonical_name_p): New function.
15069         * file-coding.c (Fcoding_system_alias_p): New function.
15070         * file-coding.c (Fcoding_system_aliasee): New function.
15071         * file-coding.c (append_suffix_to_symbol): New function.
15072         * file-coding.c (dangling_coding_system_alias_p): New function.
15073         * file-coding.c (Ffind_coding_system):
15074         * file-coding.c (Fcopy_coding_system):
15075         * file-coding.c (encode_coding_no_conversion):
15076         * file-coding.c (syms_of_file_coding):
15077         * file-coding.c (vars_of_file_coding):
15078         Rewrite coding system alias code.
15079         Allow nested aliases, like symbolic links.
15080         Allow redefinition of coding system aliases.
15081         Prevent existence of dangling coding system aliases.
15082
15083         * dired.c (Fuser_name_completion_1):
15084         * dired.c (Fuser_name_all_completions):
15085         A crash would happen if user did QUIT in the middle of building
15086         user_name_cache.  Remove redundant code in mainline and unwind_protect.
15087
15088         * lisp.h:
15089         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
15090
15091         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
15092         an unsigned char *.  Update all callers.
15093
15094 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15095
15096         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
15097
15098 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15099
15100         * elhash.c (hentry_description): Use more portable definition.
15101         (resize_hash_table): Initialize new hentries using
15102         xnew_array_and_zero, thereby simplifying the code.
15103
15104         * mule-charset.c (make_charset): Make sure entire object is
15105         initialized, to avoid Purify warnings.
15106
15107         * alloc.c (resize_string): Fix unlikely crash with big strings.
15108
15109 2000-01-24  Martin Buchholz  <martin@xemacs.org>
15110
15111         * realpath.c (xrealpath):
15112         Don't call getwd().
15113
15114 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15115
15116         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
15117
15118 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
15119
15120         * unexelfsgi.c (unexec): Change the way we decide which segment
15121         should be extended.
15122
15123         Assumption that .bss section should be outside the PT_LOADable
15124         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
15125         it's present) is inside the 'data' segment. This would fail the
15126         test which was used to find a segment to grow and cover new
15127         heap. Instead of this assumption, I created another one - on IRIX
15128         the segment to grow should start below .bss and it's address
15129         should extent above the end of .bss. Once this segment is
15130         identified, it's grown to accommodate the new heap and new
15131         zero-length .bss section is added at the end of .data2.
15132
15133 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15134
15135         * eval.c (Feval): Wrong number of arguments should use original
15136         function, not the indirect_function version of it.
15137
15138 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
15139
15140         * glyphs-x.c (x_button_instantiate): Don't add image if
15141         it is not a pixmap.
15142         (x_locate_pixmap_file): Call Fexpand_file_name when file name
15143         is relative.
15144
15145 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
15146
15147         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
15148         declaration.
15149         (DEFVAR_INT_MAGIC): Ditto.
15150         (DEFVAR_BOOL_MAGIC): Ditto.
15151         * glyphs.h: Reindent backslash.
15152
15153 2000-01-24  Martin Buchholz  <martin@xemacs.org>
15154
15155         * glyphs-widget.c (layout_query_geometry):
15156         (layout_layout): Use correct types for gheight, gwidth.
15157
15158 2000-01-24  Martin Buchholz  <martin@xemacs.org>
15159
15160         * EmacsManager.c (QueryGeometry): Purified.
15161
15162 2000-01-23  Martin Buchholz  <martin@xemacs.org>
15163
15164         * alloc.c (make_float): Make sure entire object is initialized, to
15165         avoid Purify warnings.
15166         (pdump_register_sub): Remove useless assignment.
15167         (pdump): Use xmalloc, not malloc.
15168         (pdump_load): Use xmalloc, not malloc.
15169
15170 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15171
15172         * callproc.c:
15173         * dired-msw.c:
15174         * fileio.c:
15175         * process-nt.c:
15176         * redisplay-msw.c:
15177         * sysdep.c: Removed redundant #include <windows.h>
15178
15179 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15180
15181         * frame.c (delete_frame_internal): Do not delete device when its
15182         implementation so declares.
15183         (delete_frame_internal): Set device selected frame to nil when
15184         last frame goes away.
15185
15186         * device-msw.c (msprinter_device_system_metrics): Implemented.
15187         (mswindows_device_system_metrics): Added 'device-dpi property.
15188
15189         * device.c: (Fdevice_printer_p): Added.
15190         Added 'offset-workspace device metric.
15191
15192         * console.h (device_metrics): Declared DM_offset_workspace.
15193
15194 2000-01-23  Martin Buchholz  <martin@xemacs.org>
15195
15196         * fileio.c (Ffile_truename): Remove pointless and confusing
15197         initialization of elen.
15198
15199         * glyphs-widget.c: Compiler warning fixes.
15200
15201 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
15202
15203         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
15204         instead of a Lisp_Object as argument to make it consistent with
15205         the other LIVE_P macros.
15206         (CHECK_LIVE_PROCESS): New macro.
15207
15208         * process.c: Declare Qprocess_live_p.
15209         (Fprocess_live_p): New function.
15210         (create_process): Use PROCESS_LIVE_P.
15211         (read_process_output): Ditto.
15212         (set_process_filter): Ditto.
15213         (Fdelete_process): Ditto.
15214         (kill_buffer_processes): Ditto
15215         (process_send_signal): Use CHECK_LIVE_PROCESS.
15216         (Fprocess_input_coding_system): Check whether process is still
15217         alive (fix PR#1061).
15218         (Fprocess_output_coding_system): Ditto.
15219         (Fprocess_coding_system): Ditto.
15220         (Fset_process_input_coding_system): Ditto.
15221         (Fset_process_output_coding_system): Ditto.
15222
15223 2000-01-23  Andy Piper  <andy@xemacs.org>
15224
15225         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
15226         layout and widget.
15227
15228         * glyphs.c (mark_image_instance): take into account changed
15229         image_instance format.
15230         (image_instance_equal): ditto.
15231         (image_instance_hash): ditto.
15232
15233         * glyphs-widget.c (widget_instantiate): Incorporate layout
15234         instantiation here. Delay layout of the layout until later.
15235         (layout_instantiate): deleted.
15236         (layout_query_geometry): new function. get the geometry of a
15237         layout.
15238         (layout_layout): layout a layout dynamically.
15239         (image_instantiator_widget): New function - splitting up
15240         image_instantiator_format_create_glyphs_widget for netwinder
15241         compilation.
15242         (image_instantiator_buttons):
15243         (image_instantiator_edit_fields):
15244         (image_instantiator_combo_box):
15245         (image_instantiator_scrollbar):
15246         (image_instantiator_progress_guage):
15247         (image_instantiator_tree_view):
15248         (image_instantiator_tab_control):
15249         (image_instantiator_labels):
15250         (image_instantiator_layout): ditto.
15251         (image_instantiator_format_create_glyphs_widget): Call preceding
15252         functions.
15253
15254 2000-01-22  Martin Buchholz  <martin@xemacs.org>
15255
15256         * process.c (Fset_process_coding_system):
15257         * device-x.c (Fx_keysym_hash_table):
15258         Docstring fixes.
15259
15260         * lstream.c (Lstream_write): Return documented value, not 0.
15261
15262         * fileio.c (directory_file_name):
15263         (Fsubstitute_in_file_name):
15264         (Fsubstitute_insert_file_contents_internal):
15265         (Fwrite_region_internal):
15266         * emacs.c:
15267         * sysdep.c:
15268         * getloadavg.c:
15269         * systty.h:
15270         Remove vestigial APOLLO-conditional code.
15271
15272 2000-01-21  Martin Buchholz  <martin@xemacs.org>
15273
15274         * getpagesize.h: Add guard macros.
15275         * libsst.h: Add guard macros.
15276         * libst.h: Add guard macros.
15277         * line-number.h: Add guard macros.
15278         * ndir.h: Add guard macros.
15279         * sysfloat.h: Add guard macros.
15280         * sysfile.h: Add guard macros.
15281         * sysproc.h: Add guard macros.
15282         * syswait.h: Add guard macros.
15283         * xintrinsic.h: Add guard macros.
15284         * xintrinsicp.h: Add guard macros.
15285         * xmmanager.h: Add guard macros.
15286         * xmmanagerp.h: Add guard macros.
15287         * xmprimitive.h: Add guard macros.
15288         * xmu.h: Add guard macros.
15289         * gpmevent.h: Add copyright statement. Add guard macros.
15290         * miscplay.h: Add guard macros.
15291         * *.h: Use consistent C-standards-approved guard macro names.
15292
15293         * opaque.c (make_opaque): Switch parameter order.
15294         * opaque.h (make_opaque): Switch parameter order.
15295         Update all callers.
15296         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
15297
15298         * config.h.in (type_checking_assert): Added.
15299         (bufpos_checking_assert): Added.
15300
15301 2000-01-21  Martin Buchholz  <martin@xemacs.org>
15302
15303         * alloc.c: Harmless pdump changes.
15304         - Use countof().
15305         - spell alignment correctly.
15306         * sysdep.c: Use countof()
15307
15308 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15309
15310         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
15311         initially_selected_for_input() console method, default to 0.
15312         (semi_canonicalize_console_connection): Try to delegate to
15313         canonicalize_console_connection if no such console method.
15314         (canonicalize_console_connection): Vice versa.
15315         (print_console): Do not print nil connection.
15316
15317         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
15318         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
15319         (XDEVIMPF_FRAMELESS_OK): Added.
15320         (CONSOLE_INHERITS_METHOD): Added.
15321
15322         * console-msw.c (mswindows_canonicalize_console_connection):
15323         Added.
15324         (mswindows_canonicalize_device_connection): Added.
15325
15326         * console-msw.h (struct msprinter_device): Added this struct and
15327         accessor macros.
15328         (mswindows_device): Made fontlist a lisp object.
15329
15330         * device.c (semi_canonicalize_device_connection):  Try to delegate
15331         to canonicalize_device_connection if no such console method.
15332         (canonicalize_device_connection): Vice versa.
15333         (print_device): Do not print nil connection.
15334
15335         * device-msw.c (mswindows_init_device): Call InitCommonControls
15336         when have widgets.
15337         (mswindows_delete_device): Removed fontlist deallocation.
15338         (mswindows_mark_device): Added.
15339
15340         * events.c (event_equal): Added abort() at unreached code.
15341         (event_hash): Ditto.
15342
15343         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
15344         fallback tags of Windows devices.
15345
15346         * general.c (syms_of_general): Initialized Qmsprinter.
15347
15348         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
15349         of fallback tags of Windows devices.
15350
15351         * lisp.h: Declared Qmsprinter.
15352
15353         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
15354         of strings.
15355         (mswindows_list_fonts): Ditto.
15356         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
15357         that it can be used by both mswindows and msprinter devices.
15358         (initialize_font_instance): Added.
15359         (mswindows_initialize_font_instance): Use it.
15360         (msprinter_initialize_font_instance): Added.
15361
15362         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
15363         and implementation flags check.
15364         (redisplay_without_hooks): Changed the call to the above.
15365         (Fredraw_device): Ditto.
15366         (Fredisplay_device): Ditto.
15367
15368         * redisplay-msw.c (get_frame_dc): Implemented.
15369         (get_frame_compdc): Implemented.
15370         (many functions): Use the two functions above to get device
15371         contexts, ether for a window or a printer.
15372
15373 2000-01-21  Olivier Galibert  <galibert@pobox.com>
15374
15375         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
15376         initialization here.
15377         (init_symbols_once_early): Call it.
15378         * emacs.c (main_1): Call it.
15379         * symsinit.h: Declare it.
15380
15381 2000-01-19  Olivier Galibert  <galibert@pobox.com>
15382
15383         * alloc.c: Use a lrecord_header * in the backtrace instead of a
15384         Lisp_Object.
15385         (pdump_backtrace): Ditto.
15386         (pdump_register_object): Ditto.  Cleanup use of the pointers.
15387         (pdump_get_entry): Abort if trying to register a null pointer.
15388         (pdump_dump_data): Cleanup types when relocating.
15389         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
15390         (pdump_dump_rtables): Remove bad casts.
15391         (pdump_load): Cleanup relocation w.r.t union type.  Use a
15392         Lisp_Object instead of a EMACS_INT for the hashtable
15393         reorganization.
15394
15395 2000-01-20  Martin Buchholz  <martin@xemacs.org>
15396
15397         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
15398
15399         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
15400
15401         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
15402
15403         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
15404
15405 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15406
15407         * faces.h (FACE_STRIKETHRU_P): Added.
15408
15409         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
15410         of font variants.
15411
15412         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
15413         (mswindows_set_dc_font): New function, aware of font variants,
15414         separated from mswindows_update_dc.
15415
15416         * objects-msw.h (struct mswindows_font_instance_data): Added
15417         definition.
15418
15419         * objects-msw.c (mswindows_finalize_font_instance): Delete all
15420         cached fonts and the data structure.
15421         (mswindows_initialize_font_instance): Added creation of font data
15422         structure.
15423         (mswindows_print_font_instance): Print at least something.
15424         (mswindows_create_font_variant): Implemented.
15425         (mswindows_get_hfont): Implemented.
15426
15427 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
15428
15429         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
15430         prototyping problem with msvc.
15431
15432         * emacs.c (main_1): added syms_of_gui_mswindows() call
15433
15434         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
15435         syms_of_gui_mswindows() function
15436
15437         * symsinit.h: added the prototype for syms_of_gui_mswindows()
15438
15439 2000-01-18  Martin Buchholz <martin@xemacs.org>
15440
15441         * XEmacs 21.2.27 is released.
15442
15443 2000-01-18  Martin Buchholz  <martin@xemacs.org>
15444
15445         * glyphs-eimage.c (struct tiff_error_struct):
15446         (tiff_error_func):
15447         (tiff_warning_func):
15448         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
15449
15450         * unexmips.c:
15451         * unexhp9k3.c:
15452         * unexfreebsd.c:
15453         * unexec.c: Remove vestigial Lucid C code.
15454         * unexalpha.c:
15455         * unexaix.c:
15456         * termcap.c:
15457         * libsst.c: Ansify.
15458         Remove declarations of errno and strerror().
15459
15460         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
15461
15462         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
15463
15464 2000-01-16  Martin Buchholz  <martin@xemacs.org>
15465
15466         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
15467         Optimize.
15468
15469 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15470
15471         * md5.c:
15472         * file-coding.c:
15473         * file-coding.h:
15474         Change enum eol_type to eol_type_t.
15475
15476 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15477
15478         * gui.c (get_gui_callback): Check cons before accessing car.
15479
15480 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15481
15482         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
15483         (XSETSPECIFIER_TYPE): Ditto.
15484
15485 2000-01-17  Didier Verna  <didier@xemacs.org>
15486
15487         * redisplay.c (generate_fstring_runes): compute string size in
15488         characters, not bytes.
15489
15490 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
15491
15492         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
15493
15494 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
15495
15496         * print.c (print_error_message): Call print_prepare().
15497
15498 2000-01-14  Martin Buchholz  <martin@xemacs.org>
15499
15500         * .dbxrc: Renamed from dbxrc.
15501
15502         * events.c (event_to_character):
15503         Use `assert (foo)' instead of `if (!foo) abort()'
15504
15505         * .gdbinit (xtype): Add documentation.
15506         * .gdbinit (check-temacs): New function.
15507         * .gdbinit (check-xemacs): New function.
15508         * dbxrc (check-xemacs): New function.
15509         * dbxrc (check-xemacs): New function.
15510
15511 2000-01-14  Andy Piper  <andy@xemacs.org>
15512
15513         * glyphs-widget.c (widget_query_geometry): Make sure that we
15514         calculate default dimensions correctly.
15515
15516 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15517
15518         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
15519
15520         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
15521         pdump_wire'd variable.
15522
15523         * emacs.c: (main_1): Conditionalized calls to
15524         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
15525
15526 2000-01-13  Martin Buchholz  <martin@xemacs.org>
15527
15528         * window.c (Fset_window_configuration):
15529         * sysdep.c (_start):
15530         * input-method-motif.c (res):
15531         * event-Xt.c (Xt_process_to_emacs_event):
15532         Simple compiler warning fixes.
15533
15534         * bytecode.c (funcall_compiled_function): Use the original
15535         function symbol on the backtrace list in preference to the
15536         compiled_function object in error messages.
15537
15538 2000-01-13  Andy Piper  <andy@xemacs.org>
15539
15540         * glyphs-x.c (update_widget_face): Make sure we update the widget
15541         background as well as foreground.
15542
15543 2000-01-13  Andy Piper  <andy@xemacs.org>
15544
15545         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
15546         fields to subwindow.
15547         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
15548         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
15549         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
15550         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
15551
15552         * glyphs-widget.c (check_valid_tab_orientation): new function.
15553         (initialize_widget_image_instance): zero orientation and
15554         justification.
15555         (widget_instantiate): pick up orientation.
15556         (tab_control_query_geometry): return appropriate values for
15557         vertical tabs.
15558
15559         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
15560         appropriate creation flags for left, right and bottom tabs.
15561
15562         * s/cygwin32.h: add tab definitions.
15563
15564 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15565
15566         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
15567         frame upon hiding a subwindow.
15568         (mswindows_button_instantiate): Changed the push button style to
15569         BS_PUSHBUTTON.
15570         (mswindows_button_instantiate): Removed button BS_NOTIFY
15571         style.
15572         (mswindows_button_instantiate): Removed redundant check for
15573         a disabled gui item.
15574         (mswindows_button_instantiate): Made use of WS_TABSTOP
15575         consistent: "operable" controls (edit, button, tree, scroll) have
15576         this style, "display-only" ones (static, progress gauge) do
15577         not. This style is currently ignored by XEmacs though. Also,
15578         removed the WS_EX_CONTROLPARENT style - it is not for children,
15579         it is for their parents!
15580         (mswindows_edit_field_instantiate): Ditto.
15581         (mswindows_progress_gauge_instantiate): Ditto.
15582         (mswindows_tree_view_instantiate): Ditto.
15583         (mswindows_tab_control_instantiate): Ditto.
15584         (mswindows_scrollbar_instantiate): Ditto.
15585         (mswindows_combo_box_instantiate): Ditto.
15586         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
15587         style to the "clip" window.
15588         (mswindows_button_instantiate): Removed compilation warning by
15589         equally typing terms of the ?: operator.
15590
15591 2000-01-12  Didier Verna  <didier@xemacs.org>
15592
15593         * redisplay.c (generate_fstring_runes): new parameter holding the
15594         last modeline-format extent.
15595         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
15596         extent, fill the glyph block with it.
15597         (generate_fstring_runes): handle these parameters.
15598         (generate_formatted_string_db): ditto.
15599
15600         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
15601         glyphs'extents in the modeline.
15602
15603 1999-01-11  Mike Woolley  <mike@bulsara.com>
15604
15605         * ntheap.c: Reduced the reserved heap space from 1Gb down to
15606         256Mb, as a workaround for the non-starting problem many people
15607         have experienced.
15608
15609 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15610
15611         * console-tty.c (Fset_console_tty_output_coding_system):
15612         Force redrawing tty frame.
15613
15614 2000-01-10  Didier Verna  <didier@xemacs.org>
15615
15616         * redisplay.c (generate_fstring_runes): fix size computation bug.
15617
15618 2000-01-09  William M. Perry <wmperry@aventail.com>
15619
15620         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
15621
15622 2000-01-09  Andy Piper  <andy@xemacs.org>
15623
15624         * glyphs-msw.c: index -> i to avoid shadows.
15625         (xbm_create_bitmap_from_data): make static.
15626         (check_valid_string_or_int): deleted.
15627         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
15628
15629         * glyphs-x.c (x_update_subwindow): remove unused args.
15630
15631         * glyphs.c (glyph_image_instance): return the thing. Don't set the
15632         back pointer - this is done in allocate_image_instance.
15633         (query_string_font): return Qnil to make the compiler happy.
15634         (unmap_subwindow): set to ~0 to make the compiler happy.
15635         (glyph_query_geometry): comment out until used.
15636         (glyph_layout): ditto.
15637
15638 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
15639
15640         * insdel.c (signal_after_change): Remove extraneous unbind_to().