update.
[chise/xemacs-chise.git.1] / src / ChangeLog
1 2003-04-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2
3         * mule-charset.c (Qmap_cns11643_2): Renamed from
4         `Qchinese_cns11643_2'.
5         (syms_of_mule_charset): Add new symbol `=cns11643-2' instead of
6         `chinese-cns11643-2'.
7         (complex_vars_of_mule_charset): Rename `chinese-cns11643-2' to
8         `=cns11643-2'.
9
10 2003-04-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
11
12         * mule-charset.c (Qmap_cns11643_1): Renamed from
13         `Qchinese_cns11643_1'.
14         (syms_of_mule_charset): Add new symbol `=cns11643-1' instead of
15         `chinese-cns11643-1'.
16         (complex_vars_of_mule_charset): Rename `chinese-cns11643-1' to
17         `=cns11643-1'.
18
19 2003-04-24  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
20
21         * mule-charset.c (Qmap_gb12345): Renamed from `Qchinese_gb12345'.
22         (syms_of_mule_charset): Add new symbol `=gb12345' instead of
23         `chinese-gb12345'.
24         (complex_vars_of_mule_charset): Rename `chinese-gb12345' to
25         `=gb12345'.
26
27 2003-04-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
28
29         * mule-charset.c (Qmap_gb2312): Renamed from `Qchinese_gb2312'.
30         (syms_of_mule_charset): Add new symbol `=gb2312' instead of
31         `chinese-gb2312'.
32         (complex_vars_of_mule_charset): Rename `chinese-gb2312' to
33         `=gb2312'.
34
35 2003-04-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
36
37         * mule-charset.c (Qmap_big5): Renamed from `Qchinese_big5'.
38         (syms_of_mule_charset): Add new symbol `=big5' instead of
39         `chinese-big5'.
40         (complex_vars_of_mule_charset): Rename `chinese-big5' to `=big5'.
41
42 2003-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
43
44         * mule-charset.c (Qmap_ks_x1001): Renamed from `Qkorean_ksc5601'.
45         (syms_of_mule_charset): Add new symbol `=ks-x1001' instead of
46         `korean-ksc5601'.
47         (complex_vars_of_mule_charset): Rename `korean-ksc5601' to
48         `=ks-x1001'.
49
50 2003-04-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
51
52         * mule-charset.c (Qmap_jis_x0212): Renamed from
53         `Qjapanese_jisx0212'.
54         (syms_of_mule_charset): Add new symbol `=jis-x0212' instead of
55         `japanese-jisx0212'.
56         (complex_vars_of_mule_charset): Rename `japanese-jisx0212' to
57         `=jis-x0212'.
58
59 2003-04-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
60
61         * mule-charset.c (Qmap_jis_x0208_1983): Renamed from
62         `Qjapanese_jisx0208'.
63         (syms_of_mule_charset): Add new symbol `=jis-x0208-1983' instead
64         of `japanese-jisx0208'.
65         (complex_vars_of_mule_charset): Rename `japanese-jisx0208' to
66         `=jis-x0208-1983'.
67
68 2003-04-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
69
70         * mule-charset.c (Qmap_jis_x0208_1978): Renamed from
71         `Qjapanese_jisx0208_1978'.
72         (syms_of_mule_charset): Add new symbol `=jis-x0208-1978' instead
73         of `japanese-jisx0208-1978'.
74         (complex_vars_of_mule_charset): Rename `japanese-jisx0208-1978' to
75         `=jis-x0208-1978'.
76
77 2003-04-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
78
79         * chartab.c (decode_char_table_range): CHARTAB_RANGE_DEFAULT is
80         only for XEmacs CHISE.
81
82 2003-04-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
83
84         * char-ucs.h: Compact non-ISO-IR charset-ids.
85         (LEADING_BYTE_UCS): Changed to -177.
86         (LEADING_BYTE_CONTROL_1): Changed to -77.
87         (LEADING_BYTE_UCS_BMP): Changed to -176.
88         (LEADING_BYTE_JAPANESE_JISX0208_1990): Changed to -168.
89
90 2003-04-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
91
92         * mule-charset.c (Qiso_ir): New variable.
93         (Fmake_charset): Recognise new property `iso-ir'.
94         (syms_of_mule_charset): Add new symbol `iso-ir'.
95
96 2003-04-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
97
98         * char-ucs.h: Change charset-id of ISO-IR sets from ISO-IR-number
99         n to -n; charset-id of non ISO-IR sets are changed to positive
100         numbers.
101
102 2003-03-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
103
104         * text-coding.c (decode_add_er_char): Use XUINT instead of XINT
105         for &MCS-XXXXXXXX; values.
106
107 2003-03-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
108
109         * mule.c (Vxemacs_chise_version): Renamed from
110         `Vutf_2000_version'.
111         (vars_of_mule): Add new variable `xemacs-chise-version'; define
112         `utf-2000-version' as an alias for `xemacs-chise-version'.
113
114 2003-03-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
115
116         * mule-charset.c: Include <chise.h> when `CHISE' is defined.
117         (load_char_decoding_entry_maybe): Use libchise when `CHISE' is
118         defined.
119
120         * config.h.in (CHISE): New macro.
121
122 2003-03-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
123
124         * mule-charset.c (put_char_ccs_code_point): Refer `=ucs' instead
125         of `ucs'.
126         (Qmap_ucs): New variable.
127         (syms_of_mule_charset): Add new symbol `=ucs'.
128         (complex_vars_of_mule_charset): Rename `ucs' to `=ucs'.
129
130         * fns.c (ids_format_unit): Refer `=ucs' instead of `ucs'.
131         (simplify_char_spec): Likewise.
132
133         * chartab.c (Fdefine_char): Refer `=ucs' as same as `ucs'.
134
135         * char-ucs.h (Qmap_ucs): New extern variable.
136
137 2003-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
138
139         * mule-charset.c (Qmap_jis_x0208): Renamed from `Qjis_x0208'.
140         (Qmap_jis_x0208_1990): Renamed from `Qjapanese_jisx0208_1990';
141         don't define it when UTF2000 is not defined.
142         (syms_of_mule_charset): Modify for `Qmap_jis_x0208'; rename
143         `japanese-jisx0208-1990' to `=jis-x0208-1990'; don't define it
144         when UTF2000 is not defined.
145         (complex_vars_of_mule_charset): Modify for `Qmap_jis_x0208';
146         rename `japanese-jisx0208-1990' to `=jis-x0208-1990'.
147
148 2003-03-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
149
150         * char-ucs.h (LEADING_BYTE_UCS_GB): Deleted.
151
152         * mule-charset.c (Vcharset_ucs_gb): Deleted.
153         (Qucs_gb): Deleted.
154         (syms_of_mule_charset): Delete `ucs-gb'.
155         (complex_vars_of_mule_charset): Likewise.
156
157 2003-03-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
158
159         * char-ucs.h (LEADING_BYTE_UCS_CNS): Deleted.
160
161         * mule-charset.c (Vcharset_ucs_cns): Deleted.
162         (Qucs_cns): Deleted.
163         (syms_of_mule_charset): Delete `ucs-cns'.
164         (complex_vars_of_mule_charset): Likewise.
165
166 2003-03-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
167
168         * char-ucs.h (LEADING_BYTE_UCS_JIS): Deleted.
169
170         * mule-charset.c (Vcharset_ucs_jis): Deleted.
171         (Qucs_jis): Deleted.
172         (syms_of_mule_charset): Delete `ucs-jis'.
173         (complex_vars_of_mule_charset): Likewise.
174
175 2003-03-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
176
177         * char-ucs.h (LEADING_BYTE_UCS_KS): Deleted.
178
179         * mule-charset.c (Vcharset_ucs_ks): Deleted.
180         (Qucs_ks): Deleted.
181         (syms_of_mule_charset): Delete `ucs-ks'.
182         (complex_vars_of_mule_charset): Likewise.
183
184 2003-03-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
185
186         * mule-charset.c (Vcharset_ideograph_daikanwa_2): Deleted.
187         (Qideograph_daikanwa_2): Deleted.
188         (syms_of_mule_charset): Delete `ideograph-daikanwa-2'.
189         (complex_vars_of_mule_charset): Likewise.
190
191         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): Deleted.
192         (LEADING_BYTE_DAIKANWA_1): Deleted.
193         (LEADING_BYTE_DAIKANWA_2): Deleted.
194         (MIN_CHAR_DAIKANWA): Deleted.
195         (MAX_CHAR_DAIKANWA): Deleted.
196
197 2003-02-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
198
199         * char-ucs.h (LEADING_BYTE_DAIKANWA_3): Deleted.
200         (LEADING_BYTE_HANZIKU_{1..12}): Deleted.
201         ({MIN|MAX}_CHAR_HANZIKU_{1..12}): Deleted.
202
203         * mule-charset.c (Vcharset_ideograph_hanziku_{1..12}): Deleted.
204         (Vcharset_ideograph_daikanwa): Deleted.
205         (Qideograph_hanziku_{1..12}): Deleted.
206         (Qideograph_daikanwa): Deleted.
207         (encode_builtin_char_1): Don't use {MIN|MAX}_CHAR_DAIKANWA and
208         Vcharset_ideograph_daikanwa.
209         (syms_of_mule_charset): Delete `ideograph-daikanwa' and
210         `ideograph-hanziku-{1..12}'.
211         (complex_vars_of_mule_charset): Likewise.
212
213 2003-02-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
214
215         * char-ucs.h (LEADING_BYTE_GT_PJ_{1..11}): Deleted.
216
217         * mule-charset.c (Vcharset_ideograph_gt_pj_{1..11}): Deleted.
218         (Qideograph_gt_pj_{1..11}): Deleted.
219         (syms_of_mule_charset): Delete `ideograph-gt-pj-{1..11}'.
220         (complex_vars_of_mule_charset): Likewise.
221
222 2003-02-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
223
224         * mule-charset.c (Vcharset_ucs_big5): Deleted.
225         (Vcharset_ideograph_gt): Deleted.
226         (Qucs_big5): Deleted.
227         (Qideograph_gt): Deleted.
228         (syms_of_mule_charset): Delete symbol `ucs-big5' and
229         `ideograph-gt'.
230         (complex_vars_of_mule_charset): Delete coded-charset `ucs-big5'
231         and `ideograph-gt'.
232
233         * char-ucs.h (LEADING_BYTE_UCS_BIG5): Deleted.
234         (LEADING_BYTE_GT): Deleted.
235         (MIN_CHAR_GT): Deleted.
236         (MAX_CHAR_GT): Deleted.
237
238 2003-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
239
240         * chartab.c (Fput_char_attribute): Canonicalise charset-aliases.
241
242 2003-01-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
243
244         * chartab.c (save_uint8_byte_table): Add new argument `filter'.
245         (save_uint16_byte_table): Likewise.
246         (save_byte_table): Likewise; convert values by it.
247         (Fput_char_attribute): Don't use `char-refs-simplify-char-specs'
248         for `ideographic-structure'.
249         (Fsave_char_attribute_table): Use `char-refs-simplify-char-specs'
250         as the filter for `ideographic-structure'.
251
252 2003-01-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
253
254         * chartab.c (put_char_composition): New function.
255         (Fput_char_attribute): Use `put_char_composition'; use
256         `Fchar_refs_simplify_char_specs' for `ideographic-structure'.
257
258         * fns.c (simplify_char_spec): New function.
259         (char_ref_simplify_spec): New function.
260         (Fchar_refs_simplify_char_specs): New function.
261         (syms_of_fns): Add new builtin function
262         `char-refs-simplify-char-specs'.
263
264 2003-01-05  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
265
266         * mule-charset.c (Vcharset_ideograph_cbeta): Deleted.
267         (Qideograph_cbeta): Deleted.
268         (syms_of_mule_charset): Don't define `ideograph-cbeta'.
269         (complex_vars_of_mule_charset): Likewise.
270
271         * char-ucs.h (LEADING_BYTE_CBETA): Deleted.
272         (MIN_CHAR_CBETA): Comment out.
273         (MAX_CHAR_CBETA): Likewise.
274
275 2002-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
276
277         * mule-charset.c, chartab.h, casetab.c, char-ucs.h, chartab.c: Use
278         `HAVE_CHISE_CLIENT' instead of `HAVE_DATABASE' to indicate the
279         CHISE client feature.
280
281 2002-12-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
282
283         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.20.
284
285 2002-12-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
286
287         * mule-charset.c (charset_lookup_description_1): Use
288         `NUM_LEADING_BYTES' in UTF-2000.
289
290 2002-12-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
291
292         * char-ucs.h (GC_CHARSETP): Deleted.
293
294 2002-12-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
295
296         * char-ucs.h (MAX_CHAR_GT): Updated.
297
298 2002-12-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
299
300         * text-coding.c: Sync with XEmacs 21.4.10.
301
302 2002-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
303
304         * mule-charset.c (Vcharset_china3_jef): Deleted.
305         (Qchina3_jef): Deleted.
306         (syms_of_mule_charset): Don't define `china3-jef'.
307         (complex_vars_of_mule_charset): Likewise.
308
309         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Deleted.
310         (MIN_CHAR_CHINA3_JEF): Comment out.
311         (MAX_CHAR_CHINA3_JEF): Comment out.
312
313 2002-11-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
314
315         * mule-charset.c (Vcharset_ucs_gb): New variable.
316         (Qucs_gb): New variable.
317         (syms_of_mule_charset): Add new symbol `ucs-gb'.
318         (complex_vars_of_mule_charset): Add new coded-charset `ucs-gb'.
319
320         * char-ucs.h (LEADING_BYTE_UCS_GB): New macro.
321
322 2002-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
323
324         * mule-charset.c (charset_code_point): if a coded-charset has a
325         final-byte, don't inherit the builtin range of the mother CCS.
326
327 2002-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
328
329         * mule-charset.c (charset_code_point): Fix problem about
330         inheritance.
331
332 2002-11-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
333
334         * mule-charset.c (decode_builtin_char): Reorganized.
335
336 2002-10-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
337
338         * text-coding.c (char_encode_as_entity_reference): Modify for
339         `charset_code_point'.
340         (char_encode_shift_jis): Likewise.
341         (char_encode_big5): Likewise.
342         (char_encode_utf8): Likewise.
343         (char_encode_iso2022): Likewise.
344
345         * mule-charset.c (charset_code_point): Add new argument
346         `defined_only'.
347         (Fencode_char): Add new optional argument `defined_only'.
348
349         * chartab.c (put_char_table): Modify for `charset_code_point'.
350
351         * char-ucs.h (charset_code_point): Add new argument
352         `defined_only'.
353         (encode_char_1): Modify for `charset_code_point'.
354
355 2002-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
356
357         * mule-charset.c (complex_vars_of_mule_charset): Don't specify
358         `MIN_CHAR_THAI' and `MAX_CHAR_THAI' for `thai-tis620'.
359
360 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
361
362         * mule-charset.c (Vcharset_jis_x0208): New variable in UTF-2000.
363         (Qjis_x0208): Likewise.
364         (decode_builtin_char): Prefer XCHARSET_MAX_CODE(charset) than
365         XCHARSET_FINAL(charset).
366         (charset_code_point): Modify condition for final-byte based
367         builtin-chars.
368         (syms_of_mule_charset): Add new symbol `=jis-x0208' in UTF-2000.
369         (complex_vars_of_mule_charset): Add new coded-charset `=jis-x0208'
370         in UTF-2000; specify `=jis-x0208' as the mother of
371         `japanese-jisx0208-1978', `japanese-jisx0208' and
372         `japanese-jisx0208-1990' in UTF-2000.
373
374 2002-10-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
375
376         * char-ucs.h (LEADING_BYTE_JIS_X0208): New macro.
377
378 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
379
380         * text-coding.c (decode_coding_utf16): Support UTF-16.
381         (char_encode_utf16): Fixed.
382
383 2002-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
384
385         * text-coding.c (Qutf16): New variable in MULE.
386         (Fmake_coding_system): Accept `utf-16' as `type' in MULE.
387         (Fcoding_system_type): Add `utf-16' in MULE.
388         (struct detection_state): Add a structure for utf16 in MULE.
389         (detect_coding_type): Setup st->utf16.mask in MULE.
390         (mule_decode): Use `decode_coding_utf16' for `CODESYS_UTF16' in
391         MULE.
392         (reset_encoding_stream): Use `char_encode_utf16' and
393         `char_finish_utf16' for `CODESYS_UTF16' in MULE.
394         (detect_coding_utf16): New function [incomplete].
395         (decode_coding_utf16): New function [support only UCS-2].
396         (char_encode_utf16): New function.
397         (char_finish_utf16): New function.
398         (syms_of_file_coding): Add new symbol `utf-16'; setup
399         `coding_category_symbol[CODING_CATEGORY_UTF16]'.
400
401         * file-coding.h (enum coding_system_type): Add `CODESYS_UTF16' in
402         UTF-2000.
403         (enum coding_category_type): Add `CODING_CATEGORY_UTF16' in MULE.
404         (CODING_CATEGORY_UTF16_MASK): New macro in MULE.
405
406 2002-10-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
407
408         * chartab.c (put_char_table): When a charset is specified as a
409         range in UTF-2000, don't support builtin characters.
410
411 2002-09-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
412
413         * mule-charset.c (decode_defined_char): Don't refer external
414         database if Qunbound or Qnil are found.
415         (Fsave_charset_mapping_table): Don't define it if
416         HAVE_CHISE_CLIENT is not defined.
417         (Freset_charset_mapping_table): New function.
418         (load_char_decoding_entry_maybe): Store Qnil if a character is not
419         found in external database.
420         (syms_of_mule_charset): Don't define `save-charset-mapping-table'
421         if HAVE_CHISE_CLIENT is not defined; add new builtin function
422         `reset-charset-mapping-table' if HAVE_CHISE_CLIENT is defined.
423
424 2002-09-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
425
426         * text-coding.c (decode_coding_utf8): Check CCS is specified or
427         not.
428
429 2002-08-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
430
431         * chartab.h: Add extern declarations for Qdowncase, Qflippedcase,
432         Q_lowercase, Q_uppercase in UTF-2000.
433
434         * chartab.c (get_char_table): Add special code for the standard
435         case table to use character attribute `->downcase' and
436         `->uppercase' for case operations in UTF-2000.
437
438         * casetab.c (Qflippedcase): New variable in UTF-2000.
439         (Q_lowercase): Likewise.
440         (Q_uppercase): Likewise.
441         (syms_of_casetab): Add new symbols `flippedcase', `->lowercase'
442         and `->uppercase' in UTF-2000.
443         (complex_vars_of_casetab): Assign attribute name `downcase' to
444         downcase and CANON table of Vstandard_case_table in UTF-2000;
445         assign attribute name `flippedcase' to upcase and EQV table of
446         Vstandard_case_table in UTF-2000.
447
448 2002-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
449
450         * text-coding.c (decode_add_er_char): Support isolated-chars.
451         (char_encode_as_entity_reference): Likewise.
452
453 2002-08-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
454
455         * emacs.c (Vutf_2000_lisp_directory): New variable.
456         (Vconfigure_utf_2000_lisp_directory): Likewise.
457         (complex_vars_of_emacs): Add new variable
458         `utf-2000-lisp-directory' and `configure-utf-2000-lisp-directory'.
459
460 2002-08-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
461
462         * char-ucs.h (DECODE_CHAR): Delete special code for
463         `chinese-big5-1' and `chinese-big5-2'.
464
465         * mule-charset.c (Qbig5_1): New variable in UTF-2000.
466         (Qbig5_2): Likewise.
467         (decode_defined_char): Support CONVERSION_BIG5_1 and
468         CONVERSION_BIG5_2.
469         (decode_builtin_char): Likewise.
470         (charset_code_point): Likewise.
471         (Fmake_charset): Accept `big5-1' and `big5-2' as a value of
472         'conversion in UTF-2000.
473         (syms_of_mule_charset): Add new symbol `big5-1' and `big5-2'.
474         (complex_vars_of_mule_charset): Define `chinese-big5-1' and
475         `chinese-big5-2' as children of `chinese-big5'.
476
477         * char-ucs.h (CONVERSION_BIG5_1): New macro.
478         (CONVERSION_BIG5_2): New macro.
479
480 2002-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
481
482         * text-coding.c (char_encode_big5): Support entity-reference.
483
484 2002-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
485
486         * text-coding.c (char_encode_as_entity_reference): New function.
487         (char_encode_utf8): Use `char_encode_as_entity_reference'.
488
489 2002-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
490
491         * text-coding.c (decode_coding_big5): Support entity-reference
492         decoding feature.
493
494 2002-08-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
495
496         * text-coding.c (allocate_coding_system): Initialize initial
497         charsets for CODESYS_UTF8.
498         (Fmake_coding_system): Accept charset-g0, charset-g1 and
499         charset-g2 for CODESYS_UTF8.
500         (decode_coding_utf8): Use charset-g0.
501         (char_encode_utf8): Use charset-g0; use charset-g1 and charset-g2
502         to force variants to map to UCS.
503
504 2002-07-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
505
506         * text-coding.c (Qutf_8_mcs): New variable.
507         (syms_of_file_coding): Add new symbol `utf-8-mcs' in UTF-2000.
508         (complex_vars_of_file_coding): Define coding-system `utf-8-mcs'
509         instead of `utf-8' in UTF-2000.
510
511 2002-07-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
512
513         * mule-charset.c (charset_code_point): If CHARSET_CONVERSION is
514         CONVERSION_IDENTICAL, identical conversion is used even if a CCS
515         is ISO-2022 style; instead of it, CONVERSION_94, CONVERSION_96,
516         CONVERSION_94x94, CONVERSION_96x96, CONVERSION_94x94x94,
517         CONVERSION_96x96x96, CONVERSION_94x94x94x94 and
518         CONVERSION_96x96x96x96 are introduced.
519         (complex_vars_of_mule_charset): Specify CONVERSION_96 instead of
520         CONVERSION_IDENTICAL for thai-tis620; Specify CONVERSION_94x94
521         instead of CONVERSION_IDENTICAL for japanese-jisx0208-1990.
522
523         * char-ucs.h (CONVERSION_94): New macro.
524         (CONVERSION_96): New macro.
525         (CONVERSION_94x94): New macro.
526         (CONVERSION_96x96): New macro.
527         (CONVERSION_94x94x94): New macro.
528         (CONVERSION_96x96x96): New macro.
529         (CONVERSION_94x94x94x60): New macro.
530         (CONVERSION_94x94x94x94): New macro.
531         (CONVERSION_96x96x96x96): New macro.
532
533 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
534
535         * chartab.c (Vcharacter_variant_table): Deleted.
536         (Fchar_variants): Use character-attribute `->ucs-variants' instead
537         of `Vcharacter_variant_table'.
538         (Fput_char_attribute): Likewise.
539         (vars_of_chartab): Don't setup `Vcharacter_variant_table'.
540         (complex_vars_of_chartab): Likewise.
541
542 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
543
544         * lisp.h: Add an EXFUN for `Fchar_ref_p'.
545
546         * fns.c (Qideographic_structure): New variable.
547         (Qkeyword_char): New variable.
548         (ids_format_unit): New function.
549         (Fideographic_structure_to_ids): New function.
550         (syms_of_fns): Add new symbols `ideographic-structure' and
551         `:char'; add new builtin function `ideographic-structure-to-ids'.
552
553         * data.c (Fchar_ref_p): New function.
554         (syms_of_data): Add new builtin function `char-ref-p'.
555
556         * chartab.h: Add an EXFUN for `Ffind_char'.
557
558 2002-07-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
559
560         * text-coding.c (Vcharacter_composition_table): Deleted.
561         (COMPOSE_ADD_CHAR): Use the implementation for external-DB support
562         in every UTF-2000.
563
564         * chartab.c: Add EXFUN for `Fmap_char_attribute' in every
565         UTF-2000.
566         (Vcharacter_composition_table): Deleted.
567         (Fget_composite_char): Use the implementation for external-DB
568         support in every UTF-2000.
569         (Fput_char_attribute): Likewise.
570         (char_attribute_system_db_file): Don't define if external-DB
571         feature is not available.
572         (Fsave_char_attribute_table): Likewise.
573         (Fmount_char_attribute_table): Likewise.
574         (Fclose_char_attribute_table): Likewise.
575         (Freset_char_attribute_table): Likewise.
576         (Fload_char_attribute_table): Likewise.
577         (syms_of_chartab): Don't define `save-char-attribute-table',
578         `mount-char-attribute-table', `reset-char-attribute-table',
579         `close-char-attribute-table' and `load-char-attribute-table' if
580         external-DB feature is not available.
581         (vars_of_chartab): Don't setup `Vcharacter_composition_table'.
582
583 2002-07-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
584
585         * text-coding.c (Qcomposition): Add extern if external-DB feature
586         is supported.
587         (Vcharacter_composition_table): Don't add extern if external-DB
588         feature is supported.
589         (COMPOSE_ADD_CHAR): Modify for new data-representation of
590         character composition rule if external-DB feature is supported.
591
592         * chartab.c (Vcharacter_composition_table): Don't define if
593         external-DB feature is supported.
594         (Qcomposition): New variable.
595         (Fget_composite_char): New implementation for external-DB support.
596         (Fput_char_attribute): Use `composition' property of each
597         character instead of `Vcharacter_composition_table' to store
598         character-composition rules if external-DB feature is supported.
599         (syms_of_chartab): Add new symbol `composition'.
600         (vars_of_chartab): Don't setup `Vcharacter_composition_table' if
601         external-DB feature is supported.
602
603 2002-07-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
604
605         * chartab.c (Vchar_db_stingy_mode): New variable.
606         (load_char_attribute_maybe): Close database if
607         Vchar_db_stingy_mode is not NIL.
608         (Fload_char_attribute_table_map_function): Use
609         `get_char_id_table_0' instead of `get_char_id_table'.
610         (vars_of_chartab): Add new variable `char-db-stingy-mode'.
611
612         * chartab.h (get_char_id_table_0): New inline function.
613         (get_char_id_table): Use `get_char_id_table_0'.
614
615 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
616
617         * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
618         and `COMPOSE_ADD_CHAR'.
619         (decode_coding_iso2022): Use `decode_flush_er_chars'.
620
621 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
622
623         * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
624         instead of `DECODE_ADD_UCS_CHAR'.
625         (COMPOSE_ADD_CHAR): Likewise.
626
627 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
628
629         * text-coding.c (decode_flush_er_chars): New inline function.
630         (decode_add_er_char): New function.
631         (decode_coding_utf8): Use `decode_flush_er_chars' and
632         `decode_add_er_char'.
633
634 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
635
636         * text-coding.c (decode_coding_utf8): Flush for er_buf must be
637         done before `decode_output_utf8_partial_char'.
638
639         * mule-charset.c (complex_vars_of_mule_charset): Specify
640         `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
641         `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
642
643 2002-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
644
645         * mule-charset.c (decode_defined_char): New function; search
646         mother.
647         (decode_builtin_char): Don't search mother if
648         XCHARSET_MAX_CODE(charset) == 0.
649         (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
650         == 0 even if code >= XCHARSET_MAX_CODE(charset).
651         (Fdecode_char): Use `decode_defined_char' instead of
652         `DECODE_DEFINED_CHAR'.
653         (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
654         mother of `Vcharset_ucs_jis'.
655
656         * text-coding.c (decode_coding_big5): Use `decode_defined_char'
657         instead of `DECODE_DEFINED_CHAR'.
658
659         * char-ucs.h (decode_defined_char): Renamed from
660         `DECODE_DEFINED_CHAR'; changed to normal function.
661         (DECODE_CHAR): Use `decode_defined_char' instead of
662         `DECODE_DEFINED_CHAR'.
663
664         * lisp.h: Add `EXFUN' for `Fstring_to_number'.
665
666 2002-07-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
667
668         * char-ucs.h: Add `extern' for `Vcharset_ucs'.
669
670         * text-coding.c (Vcoded_charset_entity_reference_alist): New
671         variable.
672         (Quse_entity_reference): New variable.
673         (Qd): New variable.
674         (Qx): New variable.
675         (QX): New variable.
676         (coding_system_description): Add description for
677         `ccs_priority_list'.
678         (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
679         (allocate_coding_system): Initialize `ccs_priority_list' in
680         UTF-2000.
681         (Fmake_coding_system): Add description about
682         'use-entity-reference; setup CODING_SYSTEM_USE_ENTITY_REFERENCE
683         (codesys).
684         (Fcoding_system_property): Accept `disable-composition' and
685         `use-entity-reference' in UTF-2000.
686         (struct decoding_stream): Add new member `er_counter' and `er_buf'
687         in UTF-2000.
688         (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
689         (decode_coding_utf8): Decode entity-reference if
690         CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
691         (char_encode_utf8): Encode non-Unicode characters as
692         entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
693         (str->codesys).
694         (syms_of_file_coding): Add new symbols `use-entity-reference',
695         `d', `x', `X'.
696         (vars_of_file_coding): Add new variable
697         `coded-charset-entity-reference-alist'.
698         (complex_vars_of_file_coding): Declare `disable-composition' and
699         `use-entity-reference' to be coding-system-properties in UTF-2000.
700
701         * file-coding.h (struct Lisp_Coding_System): Add new member
702         `use_entity_reference' and `ccs_priority_list'.
703         (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
704         (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
705         (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
706
707 2002-07-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
708
709         * chartab.c (save_uint8_byte_table): Don't clear the table.
710         (save_uint16_byte_table): Likewise.
711         (save_byte_table): Likewise.
712         (Fmount_char_attribute_table): New function.
713         (syms_of_chartab): Add new builtin function
714         `mount-char-attribute-table'.
715
716 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
717
718         * mule-charset.c (Fsave_charset_mapping_table): Open database as
719         "w+" mode.
720         (load_char_decoding_entry_maybe): Open database as read-only mode.
721
722         * chartab.c (Fsave_char_attribute_table): Don't share `ct->db';
723         open database as "w+" mode.
724         (load_char_attribute_maybe): Open database as read-only mode.
725         (Fload_char_attribute_table): Likewise.
726
727 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
728
729         * chartab.c (mark_char_table): Don't refer `ct->db_file'.
730         (char_table_description): Delete member `db_file'.
731         (Fmake_char_table): Don't refer `ct->db_file'.
732         (Fcopy_char_table): Likewise.
733         (Fsave_char_attribute_table): Likewise.
734         (Fclose_char_attribute_table): Likewise.
735         (Freset_char_attribute_table): Likewise.
736         (load_char_attribute_maybe): Likewise.
737         (Fload_char_attribute_table): Likewise.
738
739         * chartab.h (struct Lisp_Char_Table): Delete member `db_file'.
740
741 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
742
743         * chartab.c: Add an EXFUN for `Fmap_char_attribute'.
744         (Fsave_char_attribute_table): Don't check `ct->db_file' if
745         `ct->db' is living.
746         (load_char_attribute_maybe): Likewise.
747         (Fload_char_attribute_table): Likewise.
748
749 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
750
751         * chartab.c (Fclose_char_attribute_table): Set Qnil on
752         `ct->db_file' unconditionally.
753
754 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
755
756         * chartab.c (mark_char_table): Mark `ct->db_file' and `ct->db' in
757         UTF-2000.
758         (char_table_description): Add description for `db_file' and `db'
759         in UTF-2000.
760         (Fmake_char_table): Initialize `ct->db_file' and `ct->db' in
761         UTF-2000.
762         (Fcopy_char_table): Copy `ct->db_file' and `ct->db' in UTF-2000.
763         (Fsave_char_attribute_table): Use `ct->db_file' and `ct->db'.
764         (Fclose_char_attribute_table): New function.
765         (Freset_char_attribute_table): Reset `ct->db_file' and `ct->db'.
766         (load_char_attribute_maybe): Change interface; use `cit->db_file'
767         and `cit->db'.
768         (Fload_char_attribute_table): Use `ct->db_file' and `ct->db'.
769         (syms_of_chartab): Add new builtin function
770         `Fclose_char_attribute_table'.
771
772 2002-06-28  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
773
774         * chartab.h (struct Lisp_Char_Table): Add new member `db_file' and
775         `db' in UTF-2000.
776         (load_char_attribute_maybe): Change interface.
777         (get_char_id_table): Modify for `load_char_attribute_maybe'.
778
779 2002-06-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
780
781         * database.h: Add an EXFUN for `Fdatabase_live_p'.
782
783 2002-04-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
784
785         * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
786         instead of `DECODE_CHAR' for mother; don't use special code for
787         chinese-big5 to use code space of chinese-big5-1 and
788         chinese-big5-2.
789         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
790         `MAX_CHAR_BIG5_CDP' for chinese-big5.
791
792         * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
793         (MAX_CHAR_BIG5_CDP): Revival.
794
795 2002-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
796
797         * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
798         the XLFD registry-encoding name of `chinese-big5'.
799
800 2002-04-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
801
802         * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
803         (Qchinese_big5_cdp): Deleted.
804         (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
805         (complex_vars_of_mule_charset): Delete coded-charset
806         `chinese-big5-cdp'.
807
808         * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
809         (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
810         `CHARSET_ID_OFFSET - n' for private CCS.
811         (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
812         (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
813         of `MIN_LEADING_BYTE'.
814         (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
815         `(CHARSET_ID_OFFSET - 97)'.
816         (MIN_CHAR_BIG5_CDP): Deleted.
817         (MAX_CHAR_BIG5_CDP): Deleted.
818
819 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
820
821         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.19.
822
823 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
824
825         * mule.c (Vutf_2000_version): New variable [moved from chartab.c].
826         (vars_of_mule): Add new variable `utf-2000-version' [moved from
827         chartab.c].
828
829         * chartab.c (Vutf_2000_version): Moved to mule.c.
830         (vars_of_chartab): Move code about `utf-2000-version' into mule.c.
831
832 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
833
834         * mule-charset.c (load_char_decoding_entry_maybe): Don't define it
835         when HAVE_CHISE_CLIENT is not defined.
836
837         * mule.c (vars_of_mule): Provide feature `chise' when
838         HAVE_CHISE_CLIENT is defined.
839
840 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
841
842         * config.h.in (UTF2000): Add comment.
843         (HAVE_CHISE_CLIENT): New macro.
844
845 2002-02-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
846
847         * chartab.c (Fchar_variants): Check Vcharacter_variant_table is
848         CONSP.
849         (Fput_char_attribute): Likewise.
850         (char_attribute_system_db_file): Encode file-name of attribute.
851         (vars_of_chartab): Set Qunbound into Vcharacter_variant_table as
852         the initial value.
853
854 2002-02-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
855
856         * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
857         (Fsave_charset_mapping_table): Use
858         `char_attribute_system_db_file'.
859         (load_char_decoding_entry_maybe): Likewise.
860
861         * chartab.h (Qsystem_char_id): New external variable.
862         (char_attribute_system_db_file): New prototype.
863
864         * chartab.c (Qsystem_char_id): New variable in UTF-2000.
865         (char_attribute_system_db_file): New function.
866         (Fsave_char_attribute_table): Use `char_attribute_system_db_file'.
867         (Freset_char_attribute_table): Likewise.
868         (load_char_attribute_maybe): Likewise.
869         (Fload_char_attribute_table): Likewise.
870         (syms_of_chartab): Add new symbol `system-char-id'.
871
872 2002-02-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
873
874         * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
875         `XCHARSET_GRAPHIC(ccs)'.
876
877 2002-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
878
879         * mule-charset.c (Fsave_charset_mapping_table): Fixed.
880
881 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
882
883         * chartab.c (Q_ucs_variants): New variable.
884         (syms_of_chartab): Add new symbol `->ucs-variants'.
885         (complex_vars_of_chartab): Set `Vcharacter_variant_table' on
886         `Vchar_attribute_hash_table' as the value of `->ucs-variants'; set
887         `->ucs-variants' on `XCHAR_TABLE_NAME (Vcharacter_variant_table)'.
888
889         * mule-charset.c (load_char_decoding_entry_maybe): New function.
890
891         * char-ucs.h (load_char_decoding_entry_maybe): New prototype when
892         `HAVE_DATABASE' is defined.
893         (DECODE_DEFINED_CHAR): Use `load_char_decoding_entry_maybe' when
894         `HAVE_DATABASE' is defined.
895
896 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
897
898         * chartab.c (Fsave_char_attribute_table): Don't clear internal
899         attribute-table.
900         (Freset_char_attribute_table): New function.
901         (syms_of_chartab): Add new builtin function
902         `reset-char-attribute-table'.
903
904 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
905
906         * chartab.c (load_char_attribute_maybe): Don't make directories.
907
908 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
909
910         * char-ucs.h: Add EXFUN for `Fmake_directory_internal'.
911
912         * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
913         for decoding-table.
914
915 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
916
917         * mule-charset.c (Fsave_charset_mapping_table): Use
918         `XCHARSET_BYTE_SIZE' instead of `XCHARSET_CHARS'.
919
920         * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
921         instead of `XCHARSET_CHARS'.
922
923 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
924
925         * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
926         (XCHARSET_BYTE_SIZE): Likewise.
927
928         * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
929         mule-charset.c].
930         (XCHARSET_BYTE_SIZE): Likewise.
931
932 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
933
934         * chartab.c (Fput_char_attribute): Use exec-directory instead of
935         data-directory to store database.
936         (Fsave_char_attribute_table): Likewise.
937         (load_char_attribute_maybe): Likewise.
938         (Fload_char_attribute_table): Likewise.
939
940 2002-02-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
941
942         * mule-charset.c (Fsave_charset_mapping_table): New function.
943         (syms_of_mule_charset): Add new builtin function
944         `save-charset-mapping-table'.
945
946 2002-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
947
948         * char-ucs.h (decoding_table_check_elements): Delete prototype.
949         (get_ccs_octet_table): New inline function.
950         (put_ccs_octet_table): Likewise.
951         (decoding_table_put_char): Use `get_ccs_octet_table' and
952         `put_ccs_octet_table'.
953         (decoding_table_remove_char): Use `decoding_table_put_char'.
954         (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
955
956         * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
957         into encoding_table.
958         (make_charset): Use Qunbound instead Qnil as initial value of
959         decoding_table.
960
961 2002-02-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
962
963         * chartab.c (map_over_uint8_byte_table): Set Qunbound if an
964         element is Qunloaded.
965         (map_over_uint16_byte_table): Likewise.
966         (map_over_byte_table): Likewise.
967         (map_char_table): Likewise for CHARTAB_RANGE_ALL in UTF-2000; when
968         CHARTAB_RANGE_CHARSET is specified in UTF-2000 with external
969         database support, load encoding-table of the specified
970         coded-charset if it is not loaded yet.
971         (save_uint8_byte_table): New function of UTF-2000 with external
972         database support.
973         (save_uint16_byte_table): Likewise.
974         (save_byte_table): Likewise.
975         (Fput_char_attribute): Don't store value into external database
976         even if the external database feature is supported in UTF-2000;
977         set `attribute' as name of char-table if the external database
978         feature is supported.
979         (Fsave_char_attribute_table): New function in UTF-2000.
980         (syms_of_chartab): Add new builtin function
981         `save-char-attribute-table' in UTF-2000.
982
983 2002-02-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
984
985         * chartab.c (char_attribute_table_to_put): New variable in
986         UTF-2000.
987         (Qput_char_table_map_function): Likewise.
988         (value_to_put): Likewise.
989         (Fput_char_table_map_function): New function in UTF-2000.
990         (put_char_table): Use `Fmap_char_attribute' for
991         CHARTAB_RANGE_CHARSET in UTF-2000.
992         (Fput_char_attribute): Store symbol instead of string in
993         `XCHAR_TABLE_NAME (table)'.
994         (load_char_attribute_maybe): Likewise.
995         (syms_of_chartab): Add new symbol/function
996         `put-char-table-map-function'.
997
998 2002-01-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
999
1000         * database.h: Add new EXFUN for `Fmap_database'.
1001
1002         * database.c (Fmap_database): Renamed from `Fmapdatabase'.
1003         (syms_of_database): Likewise.
1004
1005         * chartab.h (struct Lisp_Char_Table): Add new member `unloaded' in
1006         UTF-2000.
1007         (CHAR_TABLE_UNLOADED): New macro of UTF-2000.
1008         (XCHAR_TABLE_UNLOADED): Likewise.
1009
1010         * chartab.c (fill_char_table): Initialize `ct->unloaded'.
1011         (Fput_char_attribute): Set XCHAR_TABLE_UNLOADED(table) if
1012         HAVE_DATABASE is defined.
1013         (char_attribute_table_to_load): New variable of UTF-2000 with
1014         external database support.
1015         (Qload_char_attribute_table_map_function): Likewise.
1016         (Fload_char_attribute_table_map_function): New function of
1017         UTF-2000 with external database support.
1018         (Fload_char_attribute_table): New function of UTF-2000.
1019         (Fmap_char_attribute): Call Fload_char_attribute_table if
1020         CHAR_TABLE_UNLOADED(ct) is set when HAVE_DATABASE is defined.
1021         (syms_of_chartab): Add new symbol and function
1022         `load-char-attribute-table-map-function' in UTF-2000 with external
1023         database support; add new function `load-char-attribute-table' in
1024         UTF-2000.
1025
1026 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1027
1028         * chartab.h (load_char_attribute_maybe): New prototype for
1029         UTF-2000 with DATABASE support.
1030         (get_char_id_table): Use `load_char_attribute_maybe' if
1031         HAVE_DATABASE is defined.
1032
1033         * chartab.c (load_char_attribute_maybe): New function in UTF-2000
1034         with DATABASE support.
1035
1036 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1037
1038         * chartab.c (Fput_char_attribute): Use S-expression as key of
1039         external database.
1040
1041         * chartab.h (get_char_id_table): Use S-expression as key of
1042         external database.
1043
1044 2002-01-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1045
1046         * chartab.c (map_over_uint8_byte_table): Add new argument `root';
1047         if an element is not loaded, load the corresponding attributes
1048         from an external database.
1049         (map_over_uint16_byte_table): Likewise.
1050         (map_over_byte_table): Likewise.
1051         (map_char_table): Modify for `map_over_uint8_byte_table',
1052         `map_over_uint16_byte_table' and `map_over_byte_table'; if an
1053         element is not loaded, load the corresponding attributes from an
1054         external database.
1055         (Fput_char_attribute): Change initial values to Qunloaded.
1056
1057         * chartab.h (get_char_id_table): If a character attribute is not
1058         loaded and the attribute value is not found in an external
1059         database, store Qunbound as the attribute value.
1060
1061 2002-01-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1062
1063         * chartab.c (BT_UINT8_unloaded): New macro.
1064         (UINT8_VALUE_P): Accept Qunloaded.
1065         (UINT8_ENCODE): Likewise.
1066         (UINT8_DECODE): Likewise.
1067         (BT_UINT16_unloaded): New macro.
1068         (UINT16_VALUE_P): Accept Qunloaded.
1069         (UINT16_ENCODE): Likewise.
1070         (UINT16_DECODE): Likewise.
1071         (UINT8_TO_UINT16): Convert BT_UINT8_unloaded into
1072         BT_UINT16_unloaded.
1073         (mark_char_table): Mark `ct->name' in UTF-2000.
1074         (char_table_description): Add `name' in UTF-2000.
1075         (Fmake_char_table): Initialize `ct->name'.
1076         (Fcopy_char_table): Copy `ct->name'.
1077         (Fput_char_attribute): Store value into an external database if
1078         HAVE_DATABASE is defined.
1079
1080         * chartab.h (struct Lisp_Char_Table): Add new member `name' in
1081         UTF-2000.
1082         (CHAR_TABLE_NAME): New macro in UTF-2000.
1083         (XCHAR_TABLE_NAME): New macro in UTF-2000.
1084         (get_char_id_table): Try to read an external database if Qunloaded
1085         is stored in a table.
1086
1087         * symbols.c (init_symbols_once_early): Assign '#<unloaded> into
1088         Qunloaded.
1089
1090 2002-01-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1091
1092         * database.h: Add EXFUN definitions for Fopen_database,
1093         Fput_database, Fget_database and Fclose_database.
1094
1095         * data.c (Qunloaded): New variable in UTF-2000.
1096
1097         * lisp.h (Qunloaded): New variable in UTF-2000.
1098
1099 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1100
1101         * mule-charset.c (put_char_ccs_code_point): Modify for
1102         `decoding_table_remove_char' and `decoding_table_put_char'.
1103         (remove_char_ccs): Modify for `decoding_table_remove_char'.
1104
1105         * char-ucs.h (decoding_table_remove_char): Change arguments to
1106         hide decoding_table vector.
1107         (decoding_table_put_char): Likewise.
1108
1109 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1110
1111         * mule-charset.c (decoding_table_remove_char): Moved to
1112         char-ucs.h.
1113         (decoding_table_put_char): Likewise.
1114
1115         * char-ucs.h (decoding_table_check_elements): New prototype [moved
1116         from mule-charset.c].
1117         (decoding_table_remove_char): New inline function [moved from
1118         mule-charset.c].
1119         (decoding_table_put_char): Likewise.
1120
1121 2002-01-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1122
1123         * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
1124         extension.
1125
1126 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1127
1128         * mule-charset.c (decode_builtin_char): Support mother charsets.
1129
1130 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1131
1132         * mule-charset.c (Q94x94x60): New variable.
1133         (charset_code_point): Support conversion `94x94x60'.
1134         (Fmake_charset): Likewise.
1135         (syms_of_mule_charset): Add new symbol `94x94x60'.
1136
1137         * char-ucs.h (CONVERSION_94x94x60): New macro.
1138
1139 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1140
1141         * mule-charset.c (charset_code_point): Unify code about
1142         `code-offset'.
1143
1144 2001-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1145
1146         * mule-charset.c (charset_code_point): Merge code about builtin
1147         characters into code about mother charsets; don't use
1148         `range_charset_code_point'.
1149         (range_charset_code_point): Deleted.
1150
1151 2001-12-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1152
1153         * mule-charset.c (Qcode_offset): New variable.
1154         (Fmake_charset): Use `XUINT' to get value of `min-code' and
1155         `max-code'; accept new property `code-offset'.
1156         (syms_of_mule_charset): Add new symbol `code-offset'.
1157
1158 2001-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1159
1160         * mule-charset.c (range_charset_code_point): Fixed.
1161
1162 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1163
1164         * mule-charset.c (decode_builtin_char): Change semantics of
1165         code-offset of coded-charset.
1166         (charset_code_point): Likewise.
1167         (range_charset_code_point): Likewise.
1168         (complex_vars_of_mule_charset): Modify for the change.
1169
1170 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1171
1172         * mule-charset.c (Fencode_char): Reverse arguments.
1173
1174         * mule-charset.c (charset_code_point): Fixed.
1175
1176 2001-12-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1177
1178         * mule-charset.c (Vcharset_mojikyo): Deleted.
1179         (Vcharset_mojikyo_2022_1): Deleted.
1180         (Vcharset_mojikyo_pj_{1..21}): Deleted.
1181         (Qmin_code): New variable in UTF-2000.
1182         (Qmax_code): Likewise.
1183         (Qmother): Likewise.
1184         (Qconversion): Likewise.
1185         (Q94x60): Likewise.
1186         (Qmojikyo): Deleted.
1187         (Qmojikyo_2022_1): Deleted.
1188         (Qmojikyo_pj_{1..22}): Deleted.
1189         (mark_charset): Mark `cs->mother'.
1190         (charset_description): Add description for `mother'.
1191         (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
1192         new arguments `mother' and `conversion'; use
1193         `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
1194         (charset_code_point): Moved from char-ucs.h; support `mother'
1195         charset feature.
1196         (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
1197         of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
1198         (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
1199         UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
1200         allow 2 as the value of `graphic' in UTF-2000; add new properties
1201         `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
1202         require `final' in UTF-2000; modify for `make_charset'.
1203         (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
1204         instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
1205         (Fcharset_property): Support `mother', `min-code' and `max-code'.
1206         (Fencode_char): New function.
1207         (syms_of_mule_charset): Add new builtin function `encode-char' in
1208         UTF-2000; add new symbols `min-code', `max-code', `mother',
1209         `conversion' and `94x60'; delete symbols `mojikyo',
1210         `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
1211         (complex_vars_of_mule_charset): Modify for `make_charset' change;
1212         delete coded-charsets `mojikyo', `mojikyo-2022-1' and
1213         `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
1214
1215         * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
1216         `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
1217
1218         * char-ucs.h (Vcharset_mojikyo): Deleted.
1219         (Vcharset_mojikyo_2022_1): Deleted.
1220         (LEADING_BYTE_MOJIKYO): Deleted.
1221         (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
1222         (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
1223         (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
1224         (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
1225         add new member `mother'; add new member `conversion'.
1226         (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
1227         (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
1228         (CHARSET_MOTHER): New macro.
1229         (CHARSET_CONVERSION): New macro.
1230         (CONVERSION_IDENTICAL): New macro.
1231         (CONVERSION_94x60): New macro.
1232         (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
1233         (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
1234         (XCHARSET_MOTHER): New macro.
1235         (XCHARSET_CONVERSION): New macro.
1236         (MIN_CHAR_MOJIKYO): Deleted.
1237         (MAX_CHAR_MOJIKYO): Deleted.
1238         (DECODE_MOJIKYO_2022): Deleted.
1239         (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
1240         (charset_code_point): Changed to non-inline function.
1241         (encode_char_1): Use `charset_code_point'.
1242         (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
1243
1244 2001-12-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1245
1246         * lread.c (read_compiled_function): Fix prototype.
1247         (read_vector): Likewise.
1248
1249 2001-12-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1250
1251         * lrecord.h (struct lrecord_header): Delete `older'.
1252         (set_lheader_implementation): Delete code for `older'.
1253         (set_lheader_older_implementation): Deleted.
1254         (enum lrecord_type): Delete `lrecord_type_char_id_table'.
1255         (OLDER_RECORD_P): Deleted.
1256         (OLDER_RECORD_HEADER_P): Deleted.
1257         (alloc_older_lcrecord): Deleted.
1258         (alloc_older_lcrecord_type): Deleted.
1259
1260         * alloc.c (all_older_lcrecords): Deleted.
1261         (alloc_older_lcrecord): Deleted.
1262         (disksave_object_finalization_1): Delete code for older objects.
1263         (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
1264         (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
1265
1266 2001-12-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1267
1268         * mule-charset.c (decoding_table_put_char): Use `make_vector'
1269         instead of `make_older_vector'.
1270         (put_char_ccs_code_point): Likewise.
1271         (mark_charset): Mark `cs->decoding_table'.
1272         (Fset_charset_mapping_table): Don't use `make_vector_newer'.
1273
1274         * lisp.h (make_older_vector): Deleted.
1275         (make_vector_newer): Deleted.
1276
1277         * config.h.in (HAVE_GGC): Deleted.
1278
1279         * alloc.c (make_older_vector): Deleted.
1280         (make_vector_newer_1): Deleted.
1281         (make_vector_newer): Deleted.
1282
1283 2001-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1284
1285         * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
1286         (Qideograph_daikanwa_2): New variable.
1287         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
1288         (complex_vars_of_mule_charset): Add new coded-charset
1289         `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
1290         `LEADING_BYTE_DAIKANWA'.
1291
1292         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
1293         (LEADING_BYTE_DAIKANWA_1): New macro.
1294         (LEADING_BYTE_DAIKANWA_2): New macro.
1295         (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
1296
1297 2001-12-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1298
1299         * mule-charset.c (complex_vars_of_mule_charset): Change
1300         DOC-strings and registry of `ideograph-daikanwa'; now it indicates
1301         the second revised version.
1302
1303 2001-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1304
1305         * mule-charset.c (Vcharset_ucs_smp): New variable.
1306         (Vcharset_ucs_sip): New variable.
1307         (Qucs_smp): New variable.
1308         (Qucs_sip): New variable.
1309         (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
1310         MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
1311         (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
1312         (complex_vars_of_mule_charset): Modify middle-DOC and registry of
1313         `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
1314         charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
1315
1316         * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
1317         (LEADING_BYTE_UCS_SIP): New macro.
1318         (MIN_CHAR_SMP): New macro.
1319         (MAX_CHAR_SMP): New macro.
1320         (MIN_CHAR_SIP): New macro.
1321         (MAX_CHAR_SIP): New macro.
1322
1323 2001-11-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
1324
1325         * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
1326         utf-2000.
1327
1328 2001-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1329
1330         * mule-charset.c (put_char_ccs_code_point): Return canonicalized
1331         value; don't store value into `encoding_table' of `Lisp_Charset'.
1332         (mark_charset): `encoding_table' was deleted.
1333         (charset_description): Likewise.
1334         (make_charset): Likewise.
1335         (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
1336         `put_char_ccs_code_point'.
1337
1338         * chartab.h (Fput_char_attribute): New EXFUN.
1339
1340         * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
1341         is unified with normal symbol space.
1342         (Fget_char_attribute): Likewise.
1343         (Fput_char_attribute): Likewise; behavior of
1344         `put_char_ccs_code_point' is changed.
1345
1346         * char-ucs.h: Include "elhash.h".
1347         (Vchar_attribute_hash_table): New external variable.
1348         (struct Lisp_Charset): Delete `encoding_table'.
1349         (CHARSET_ENCODING_TABLE): New implementation; refer
1350         `Vchar_attribute_hash_table' instead of `encoding_table' of struct
1351         `Lisp_Charset'.
1352
1353 2001-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1354
1355         * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
1356         (cs) == 0.
1357
1358 2001-11-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1359
1360         * text-coding.c (char_encode_big5): Prefer charset-g1 than
1361         `chinese-big5'.
1362
1363 2001-11-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1364
1365         * chartab.c (uint8_byte_table_description): New constant.
1366         (uint8-byte-table): Use `uint8_byte_table_description'.
1367         (uint16_byte_table_description): New constant.
1368         (uint16-byte-table): Use `uint16_byte_table_description'.
1369
1370 2001-10-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1371
1372         * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
1373         range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
1374
1375 2001-10-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1376
1377         * mule-charset.c (Vcharset_ucs_ks): New variable.
1378         (Qucs_ks): New variable.
1379         (syms_of_mule_charset): Add new symbol `ucs-ks'.
1380         (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
1381
1382         * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
1383
1384 2001-10-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1385
1386         * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
1387         (Fdecode_char): Likewise.
1388
1389         * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
1390         chartab.h.
1391         (Fdefine_char): Modify for Fdecode_char.
1392         (Ffind_char): Likewise.
1393
1394         * mule-charset.c (Fdecode_char): Add new optional argument
1395         `defined-only'.
1396         (Fdecode_builtin_char): Modify for `Fdecode_char'.
1397
1398 2001-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1399
1400         * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
1401         -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
1402         (allocate_coding_system): Initialize initial-charsets of
1403         CODESYS_BIG5 in XEmacs UTF-2000.
1404         (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
1405         CODESYS_BIG5 in XEmacs UTF-2000.
1406         (decode_coding_big5): Use initial-charset-g0 and -g1 of
1407         CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
1408
1409         * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
1410         variables.
1411         (Qideograph_hanziku_{1 .. 12}): Likewise.
1412         (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
1413         .. 12}'.
1414         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
1415         `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
1416         `ideograph-hanziku-{1 .. 12}'.
1417
1418         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
1419         (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
1420         ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
1421         ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
1422         (DECODE_DEFINED_CHAR): New inline function.
1423         (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
1424
1425 2001-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1426
1427         * mule-charset.c (Vcharset_china3_jef): Renamed from
1428         `Vcharset_japanese_jef_china3'.
1429         (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
1430         (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
1431         `{MIN|MAX}_CHAR_JEF_CHINA3'..
1432         (syms_of_mule_charset): Rename `china3-jef' from
1433         `japanese-jef-china3'.
1434         (complex_vars_of_mule_charset): Likewise; rename
1435         `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
1436
1437         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
1438         `LEADING_BYTE_JEF_CHINA3'.
1439         (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
1440         (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
1441
1442 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1443
1444         * mule-charset.c (encode_builtin_char_1): Comment out special code
1445         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
1446
1447         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
1448         (MAX_CHAR_MOJIKYO_0): Comment out.
1449         (MIN_CHAR_CBETA): Changed to 0x00E20000.
1450         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
1451         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
1452         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
1453
1454 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1455
1456         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
1457         (Qideograph_cbeta): New variable.
1458         (encode_builtin_char_1): Comment out special code for
1459         coded-charset `mojikyo' and `japanese-jef-china3'.
1460         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
1461         (complex_vars_of_mule_charset): Add new coded-charset
1462         `ideograph-cbeta'.
1463
1464         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
1465         (MIN_CHAR_CBETA): New macro.
1466         (MAX_CHAR_CBETA): New macro.
1467
1468 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1469
1470         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
1471         (LEADING_BYTE_JEF_CHINA3): New macro.
1472         (MIN_CHAR_JEF_CHINA3): New macro.
1473         (MAX_CHAR_JEF_CHINA3): Likewise.
1474         (DECODE_CHAR): Fixed.
1475
1476 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1477
1478         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
1479         (Qjapanese_jef_china3): New variable.
1480         (encode_builtin_char_1): Support `japanese-jef-china3'.
1481         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
1482         (complex_vars_of_mule_charset): Add new coded-charset
1483         `japanese-jef-china3'.
1484
1485 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1486
1487         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
1488         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
1489         94^4, 96^3, 96^4, 128^n and 256^n set.
1490         (put_char_table): Use `XCHARSET_CELL_RANGE'.
1491         (map_char_table): Likewise.
1492
1493 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1494
1495         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
1496         UTF-2000.
1497
1498 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1499
1500         * chartab.h (get_char_id_table): New inline function.
1501
1502         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
1503         function.
1504
1505 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1506
1507         * chartab.h (decode_char_table_range): New prototype in XEmacs
1508         UTF-2000.
1509         (put_char_id_table): New inline function in XEmacs UTF-2000.
1510
1511         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
1512         function.
1513         (decode_char_table_range): Delete static declaration in XEmacs
1514         UTF-2000.
1515
1516 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1517
1518         * chartab.c (put_char_id_table): Use `put_char_table'.
1519
1520 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1521
1522         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
1523         (map_over_uint16_byte_table): Likewise.
1524         (map_over_byte_table): Likewise.
1525         (map_char_table): Modify for `map_over_uint8_byte_table',
1526         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
1527         UTF-2000.
1528
1529 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1530
1531         * chartab.c (struct map_char_table_for_charset_arg): New
1532         structure.
1533         (map_char_table_for_charset_fun): New function.
1534         (map_char_table): Use `map_char_table' for encoding_table of
1535         `range->charset'.
1536
1537 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1538
1539         * chartab.c (map_char_table): Check a character is found in
1540         range->charset instead of non default value is defined in
1541         char-table when range is CHARTAB_RANGE_ROW.
1542
1543 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1544
1545         * chartab.c (map_char_id_table): Deleted.
1546         (Fmap_char_attribute): Use `map_char_table' instead of
1547         `map_char_id_table'.
1548
1549 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1550
1551         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
1552         UTF-2000.
1553         (update_syntax_table): Deleted in XEmacs UTF-2000.
1554
1555         * syntax.c (find_defun_start): Use `syntax_table' instead of
1556         `mirror_syntax_table' in XEmacs UTF-2000.
1557         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
1558         UTF-2000.
1559         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
1560         XEmacs UTF-2000.
1561         (Fmatching_paren): Likewise.
1562         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
1563         in XEmacs UTF-2000.
1564         (find_start_of_comment): Likewise.
1565         (find_end_of_comment): Likewise.
1566         (Fforward_comment): Likewise.
1567         (scan_lists): Likewise.
1568         (char_quoted): Likewise.
1569         (Fbackward_prefix_chars): Likewise.
1570         (scan_sexps_forward): Likewise.
1571         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
1572         (update_syntax_table): Likewise.
1573
1574         * search.c (skip_chars): Use `syntax_table' instead of
1575         `mirror_syntax_table' in XEmacs UTF-2000.
1576         (wordify): Likewise.
1577         (Freplace_match): Likewise.
1578
1579         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
1580         `mirror_syntax_table' in XEmacs UTF-2000.
1581         (WORDCHAR_P_UNSAFE): Likewise.
1582         (re_match_2_internal): Likewise.
1583
1584         * font-lock.c (find_context): Use `buf->syntax_table' instead of
1585         `buf->mirror_syntax_table' in XEmacs UTF-2000.
1586
1587         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
1588         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
1589
1590         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
1591         XEmacs UTF-2000.
1592
1593         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
1594         UTF-2000.
1595         (print_char_table): Print `default_value' in XEmacs UTF-2000.
1596         (char_table_description): Delete `mirror_table' in XEmacs
1597         UTF-2000.
1598         (fill_char_table): Don't call `update_syntax_table' in XEmacs
1599         UTF-2000.
1600         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
1601         (Fcopy_char_table): Likewise.
1602         (put_char_table): Don't call `update_syntax_table' in XEmacs
1603         UTF-2000.
1604
1605         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
1606         `buf->mirror_syntax_table' in XEmacs UTF-2000.
1607         (casify_region_internal): Likewise.
1608
1609         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
1610
1611         * buffer.c (common_init_complex_vars_of_buffer): Don't use
1612         `mirror_syntax_table' in XEmacs UTF-2000.
1613
1614         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
1615         `buf->mirror_syntax_table' in XEmacs UTF-2000.
1616         (Fexpand_abbrev): Likewise.
1617
1618 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1619
1620         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
1621
1622 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1623
1624         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
1625         (map_over_uint16_byte_table): Likewise.
1626         (map_over_byte_table): Likewise.
1627         (get_char_id_table): Refer `cit->default_value'.
1628         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
1629         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
1630         of character-id ranges.
1631         (mark_char_table): Mark `ct->default_value'.
1632         (char_table_description): Add `default_value'.
1633         (fill_char_table): Use `default_value'.
1634         (decode_char_table_range): Decode `nil' as
1635         `CHARTAB_RANGE_DEFAULT'.
1636         (get_char_id_table): Refer `cit->default_value'.
1637         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
1638         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
1639         temporary hack; check value of char-table is bound or not.
1640         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
1641
1642         * chartab.h (struct Lisp_Char_Table): Add new member
1643         `default_value' in XEmacs UTF-2000.
1644         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
1645         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
1646         UTF-2000.
1647
1648 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1649
1650         * chartab.h (Lisp_Char_ID_Table): Deleted.
1651
1652         * chartab.c (char_table_description): Fix typo.
1653         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
1654         `Lisp_Char_ID_Table'.
1655
1656 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1657
1658         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
1659         `CHAR_ID_TABLE_P'.
1660
1661         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
1662         `CHAR_ID_TABLE_P'.
1663
1664         * chartab.h (XCHAR_ID_TABLE): Deleted.
1665         (XSETCHAR_ID_TABLE): Deleted.
1666         (CHAR_ID_TABLE_P): Deleted.
1667
1668         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
1669         `CHAR_ID_TABLE_P'.
1670         (Fget_composite_char): Likewise.
1671         (put_char_table): Likewise.
1672         (add_char_attribute_alist_mapper): Fixed.
1673         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
1674         `CHAR_ID_TABLE_P'.
1675         (Fget_char_attribute): Likewise.
1676         (Fget_char_attribute): Likewise.
1677         (Fmap_char_attribute): Likewise.
1678
1679         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
1680         `CHAR_ID_TABLE_P'.
1681         (encode_char_1): Likewise.
1682
1683 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1684
1685         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
1686         `XCHAR_ID_TABLE'.
1687
1688         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
1689         instead of `XCHAR_ID_TABLE'.
1690         (remove_char_ccs): Likewise.
1691
1692         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
1693         `XCHAR_ID_TABLE'.
1694         (Fget_composite_char): Likewise.
1695         (Fchar_variants): Likewise.
1696         (put_char_table): Likewise.
1697         (add_char_attribute_alist_mapper): Likewise.
1698         (Fchar_attribute_alist): Likewise.
1699         (Fget_char_attribute): Likewise.
1700         (Fput_char_attribute): Likewise.
1701         (Fmap_char_attribute): Likewise.
1702         (Fmap_char_attribute): Likewise.
1703
1704         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
1705         `XCHAR_ID_TABLE'.
1706         (encode_char_1): Likewise.
1707
1708 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1709
1710         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
1711         `Lisp_Char_ID_Table'.
1712         (mark_char_id_table): Deleted.
1713         (print_char_id_table): Likewise.
1714         (char_id_table_equal): Likewise.
1715         (char_id_table_hash): Likewise.
1716         (char_id_table_description): Likewise.
1717         (char_id_table): Likewise.
1718         (make_char_id_table): Use `Fmake_char_table' and
1719         `fill_char_table'.
1720         (get_char_id_table): Use `Lisp_Char_Table' instead of
1721         `Lisp_Char_ID_Table'.
1722         (put_char_id_table): Likewise.
1723         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
1724         `XCHAR_ID_TABLE'.
1725         (Fremove_char_attribute): Likewise.
1726         (syms_of_chartab): Don't define type `char-id-table'.
1727
1728         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
1729         (char_id_table): Likewise.
1730         (GC_CHAR_ID_TABLE_P): Likewise.
1731         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
1732         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
1733         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
1734         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
1735         (get_char_id_table): Use `Lisp_Char_Table' instead of
1736         `Lisp_Char_ID_Table'.
1737         (put_char_id_table_0): Likewise.
1738         (put_char_id_table): Likewise.
1739
1740 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1741
1742         * chartab.h: Lisp_Byte_Table related codes are moved from
1743         chartab.h.
1744
1745         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
1746
1747 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1748
1749         * chartab.h: Don't include "chartab.h".
1750         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
1751         (Lisp_Char_ID_Table): Likewise.
1752         (char_id_table): Likewise.
1753         (XCHAR_ID_TABLE): Likewise.
1754         (XSETCHAR_ID_TABLE): Likewise.
1755         (CHAR_ID_TABLE_P): Likewise.
1756         (GC_CHAR_ID_TABLE_P): Likewise.
1757         (get_char_id_table): Likewise.
1758
1759         * char-ucs.h: Include "chartab.h".
1760         (struct Lisp_Char_ID_Table): Moved to chartab.h.
1761         (Lisp_Char_ID_Table): Likewise.
1762         (char_id_table): Likewise.
1763         (XCHAR_ID_TABLE): Likewise.
1764         (XSETCHAR_ID_TABLE): Likewise.
1765         (CHAR_ID_TABLE_P): Likewise.
1766         (GC_CHAR_ID_TABLE_P): Likewise.
1767         (get_char_id_table): Likewise.
1768
1769 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1770
1771         * chartab.c (copy_uint8_byte_table): New function.
1772         (copy_uint16_byte_table): New function.
1773         (copy_byte_table): New function.
1774         (map_over_uint8_byte_table): Modify to avoid huge numbers of
1775         characters to call.
1776         (map_over_uint16_byte_table): Likewise.
1777         (map_over_byte_table): Likewise.
1778         (get_byte_table): Move prototype to chartab.h.
1779         (put_byte_table): Likewise.
1780         (put_char_id_table_0): Moved to chartab.h.
1781         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
1782         (char_table_entry_equal): Likewise.
1783         (char_table_entry_hash): Likewise.
1784         (char_table_entry_description): Likewise.
1785         (char_table_entry): Likewise.
1786         (make_char_table_entry): Likewise.
1787         (copy_char_table_entry): Likewise.
1788         (get_non_ascii_char_table_value): Likewise.
1789         (map_over_charset_ascii): Likewise.
1790         (map_over_charset_control_1): Likewise.
1791         (map_over_charset_row): Likewise.
1792         (map_over_other_charset): Likewise.
1793         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
1794         (print_char_table): Likewise.
1795         (char_table_equal): Likewise.
1796         (char_table_hash): Likewise.
1797         (char_table_description): Likewise.
1798         (fill_char_table): Likewise.
1799         (Fcopy_char_table): Likewise.
1800         (get_char_table): Likewise.
1801         (Fget_range_char_table): Likewise.
1802         (put_char_table): Likewise.
1803         (map_char_table): Likewise.
1804         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
1805         UTF-2000.
1806
1807 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1808
1809         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
1810         `Vauto_fill_chars' in XEmacs UTF-2000.
1811
1812         * chartab.h (get_byte_table): New prototype [moved from
1813         chartab.c].
1814         (put_byte_table): Likewise [moved from chartab.c].
1815         (put_char_id_table_0): New inline function [moved from chartab.c].
1816         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
1817         (Lisp_Char_Table_Entry): Likewise.
1818         (char_table_entry): Likewise.
1819         (XCHAR_TABLE_ENTRY): Likewise.
1820         (XSETCHAR_TABLE_ENTRY): Likewise.
1821         (CHAR_TABLE_ENTRYP): Likewise.
1822         (CHECK_CHAR_TABLE_ENTRY): Likewise.
1823         (NUM_ASCII_CHARS): Likewise.
1824         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
1825         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
1826
1827 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1828
1829         * chartab.c (get_char_id_table): Change interface.
1830         (put_char_id_table_0): New function.
1831         (put_char_id_table): Change interface; new implementation.
1832         (Fget_composite_char): Modify for interface change of
1833         `get_char_id_table'.
1834         (Fchar_variants): Likewise.
1835         (add_char_attribute_alist_mapper): Likewise.
1836         (Fchar_attribute_alist): Likewise.
1837         (Fget_char_attribute): Likewise.
1838         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
1839         as same as character as the first argument like `put-char-table';
1840         modify for interface change of `put_char_id_table'.
1841         (Fremove_char_attribute): Modify for interface change of
1842         `put_char_id_table'.
1843
1844 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1845
1846         * text-coding.c: Sync up with XEmacs 21.2.41.
1847         (COMPOSE_ADD_CHAR): Modify for interface change of
1848         `get_char_id_table'.
1849
1850         * mule-charset.c (put_char_ccs_code_point): Modify for interface
1851         change of `put_char_id_table'.
1852         (remove_char_ccs): Likewise.
1853
1854         * chartab.h (put_char_id_table): Change interface.
1855
1856         * char-ucs.h (get_char_id_table): Change interface.
1857         (charset_code_point): Modify for interface change of
1858         `get_char_id_table'.
1859         (encode_char_1): Likewise.
1860
1861 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1862
1863         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
1864         argument `ccs'.
1865         (map_over_uint16_byte_table): Likewise.
1866         (map_over_byte_table): Likewise.
1867         (map_char_id_table): Add new argument `range' like
1868         `map_char_table'.
1869         (Fmap_char_attribute): Add new argument `range' like
1870         `Fmap_char_table'.
1871
1872 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1873
1874         * chartab.c (map_over_uint8_byte_table): Change interface of
1875         mapping function to use struct chartab_range instead of Emchar.
1876         (map_over_uint16_byte_table): Likewise.
1877         (map_over_byte_table): Likewise.
1878         (map_char_id_table): Likewise.
1879         (struct slow_map_char_id_table_arg): Deleted.
1880         (slow_map_char_id_table_fun): Deleted.
1881         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
1882         function `slow_map_char_table_fun' instead of struct
1883         `slow_map_char_id_table_arg' and function
1884         `slow_map_char_id_table_fun'.
1885
1886 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1887
1888         * mule-charset.c: Move char-it-table related codes to chartab.c.
1889         (Vutf_2000_version): Moved to chartab.c.
1890         (Fdefine_char): Likewise.
1891         (Ffind_char): Likewise.
1892         (syms_of_mule_charset): Move types `uint8-byte-table',
1893         `uint16-byte-table', `byte-table' and `char-id-table' to
1894         chartab.c; move functions `char_attribute_list,
1895         `find_char_attribute_table, `char_attribute_alist,
1896         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
1897         `map_char_attribute, `define_char, `find_char, `char_variants and
1898         `get_composite_char to chartab.c; move symbols `=>ucs',
1899         `->decomposition', `compat', `isolated', `initial', `medial',
1900         `final', `vertical', `noBreak', `fraction', `super', `sub',
1901         `circle', `square', `wide', `narrow', `small' and `font' to
1902         chartab.c.
1903         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
1904         setting codes for `Vcharacter_composition_table' and
1905         `Vcharacter_variant_table' to chartab.c.
1906         (complex_vars_of_mule_charset): Move setting code for
1907         `Vchar_attribute_hash_table' to chartab.c.
1908
1909         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
1910         (make_char_id_table): New prototype.
1911         (put_char_id_table): Likewise.
1912         (Fget_char_attribute): Likewise.
1913
1914         * chartab.c: Move char-id-table related code from mule-charset.c.
1915         (Vutf_2000_version): Moved from mule-charset.c.
1916
1917         * char-ucs.h (Qucs): New external variable.
1918         (put_char_ccs_code_point): New prototype.
1919         (remove_char_ccs): Likewise.
1920
1921 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1922
1923         * mule-charset.c (Vcharset_ucs_jis): New variable.
1924         (Qucs_jis): Likewise.
1925         (syms_of_mule_charset): Add new symbol `ucs-jis'.
1926         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
1927
1928         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
1929
1930 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1931
1932         * mule-charset.c (map_over_uint8_byte_table): New function.
1933         (map_over_uint16_byte_table): Likewise.
1934         (map_over_byte_table): Likewise.
1935         (map_char_id_table): Likewise.
1936         (slow_map_char_id_table_fun): Likewise.
1937         (Fmap_char_attribute): Likewise.
1938         (syms_of_mule_charset): Add new function `map-char-attribute'.
1939
1940 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1941
1942         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
1943         (syms_of_mule_charset): Add new function `find-char'.
1944
1945 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1946
1947         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
1948         XEmacs UTF-2000.
1949         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
1950         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
1951         XEmacs UTF-2000.
1952         (complex_vars_of_mule_charset): Add new coded-charset
1953         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
1954         `ideograph-gt-pj-*'.
1955
1956         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
1957
1958 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1959
1960         * mule-charset.c (encode_builtin_char_1): Purge codes about
1961         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
1962         {MIN|MAX}_CHAR_HEBREW.
1963         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
1964         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
1965
1966         * char-ucs.h (MIN_CHAR_GREEK): Purged.
1967         (MAX_CHAR_GREEK): Purged.
1968         (MIN_CHAR_CYRILLIC): Purged.
1969         (MAX_CHAR_CYRILLIC): Purged.
1970         (MIN_CHAR_HEBREW): Commented out.
1971         (MAX_CHAR_HEBREW): Likewise.
1972
1973 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1974
1975         * mule-charset.c (Qto_ucs): New variable.
1976         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
1977         (Fdefine_char): Likewise.
1978         (syms_of_mule_charset): Add new symbol `=>ucs'.
1979
1980 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1981
1982         * mule-charset.c (Fdecode_char): Fixed.
1983
1984 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1985
1986         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
1987         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
1988         "tcvn5712-1".
1989
1990 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1991
1992         * mule-charset.c (Vcharset_ucs_big5): New variable.
1993         (Qucs_big5): Likewise.
1994         (syms_of_mule_charset): Add new symbol `ucs-big5'.
1995         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
1996
1997         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
1998
1999 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2000
2001         * mule-charset.c (decode_builtin_char): Check Big5 code range
2002         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
2003
2004 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2005
2006         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
2007         (Qchinese_gb12345): Likewise.
2008         (Fdecode_builtin_char): Fixed.
2009         (syms_of_mule_charset): Add `chinese-gb12345'.
2010         (complex_vars_of_mule_charset): Add coded-charset
2011         `chinese-gb12345'.
2012
2013         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
2014         (LEADING_BYTE_CHINESE_GB12345): New macro.
2015
2016 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2017
2018         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
2019         and `latin-viscii-upper' for `latin-viscii'.
2020
2021 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2022
2023         * mule-charset.c (Fdecode_builtin_char): Comment out
2024         regularization code for ISO-IR GR representation.
2025
2026 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2027
2028         * mule-charset.c (decode_builtin_char): New function; renamed from
2029         `make_builtin_char'; return -1 instead of signal.
2030         (Fdecode_builtin_char): Use `decode_builtin_char'.
2031
2032         * char-ucs.h (decode_builtin_char): New prototype; renamed from
2033         `make_builtin_char'.
2034         (DECODE_CHAR): Use `decode_builtin_char' instead of
2035         `make_builtin_char'; use mapping table of `chinese-big5' for
2036         `chinese-big5-{1,2}'.
2037
2038 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2039
2040         * text-coding.c (char_encode_big5): New function.
2041         (char_finish_big5): Likewise.
2042         (reset_encoding_stream): Use `char_encode_big5' and
2043         `char_finish_big5' for CODESYS_BIG5.
2044         (mule_encode): Don't use `encode_coding_big5'.
2045         (encode_coding_big5): Deleted.
2046
2047 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2048
2049         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
2050         0x81- in XEmacs UTF-2000.
2051         (detect_coding_big5): Likewise.
2052
2053 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2054
2055         * mule-charset.c (Fdefine_char): Don't use a CCS property to
2056         generate character-id if the CCS property does not have
2057         corresponding predefined character.
2058         (make_builtin_char): Return -1 if corresponding predefined
2059         character is not found.
2060         (Fdecode_char): Return nil if corresponding character is not
2061         found.
2062         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
2063         don't map to builtin ucs space.
2064
2065 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2066
2067         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
2068         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
2069
2070 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2071
2072         * mule-charset.c (Vcharset_ideograph_gt): New variable.
2073         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
2074         (Qideograph_gt): Likewise.
2075         (Qideograph_gt_pj_{1..11}): Likewise.
2076         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
2077         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
2078         `ideograph-gt-pj-11'.
2079         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
2080         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
2081         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
2082
2083         * char-ucs.h (LEADING_BYTE_GT): New macro.
2084         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
2085         (MIN_CHAR_GT): Likewise.
2086         (MAX_CHAR_GT): Likewise.
2087
2088 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2089
2090         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
2091         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
2092
2093         * doprnt.c (unsigned_int_converters): Add `c'.
2094         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
2095
2096         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
2097         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
2098         `MIN_CHAR_MOJIKYO'.
2099         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
2100         (MAX_CHAR_MOJIKYO_0): New macro.
2101         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
2102
2103 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2104
2105         * mule-charset.c (Fdefine_char): Delete cemented out code.
2106         (encode_builtin_char_1): Modify for new allocation of builtin
2107         Mojikyo characters.
2108
2109         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
2110
2111 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2112
2113         * mule-charset.c (Vcharset_ucs_cns): New variable.
2114         (Qucs_cns): New variable.
2115         (syms_of_mule_charset): Add new symbol `ucs-cns'.
2116         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
2117
2118 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2119
2120         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
2121
2122 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
2123
2124         * search.c (search_buffer): Make `charset_base_code' as
2125         character-id >> 6 to eliminate the corresponding last byte in
2126         UTF-8 representation [I'm not sure it is right thing].
2127         (boyer_moore): Likewise.
2128
2129 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
2130
2131         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
2132         representation in MULE.
2133
2134 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2135
2136         * text-coding.c (Fmake_coding_system): Use
2137         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
2138         `EXTERNAL_PROPERTY_LIST_LOOP'.
2139
2140 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2141
2142         * text-coding.c (decode_output_utf8_partial_char): New function.
2143         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
2144
2145 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2146
2147         * text-coding.c (decode_coding_utf8): Output original byte
2148         sequence if it is broken; change order of conditions.
2149
2150         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
2151         of conditions.
2152
2153         * mb-multibyte.h (BYTE_ASCII_P):
2154         Use bit ops for char-signedness safety.
2155         (BYTE_C0_P): Use bit ops for char-signedness safety.
2156         (BYTE_C1_P): Use bit ops for char-signedness safety.
2157
2158         * character.h: (XCHAR_OR_CHAR_INT):
2159         Always use inline function.
2160         Remove redundant type checking assert() - XINT will abort quite
2161         nicely.
2162
2163 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2164
2165         * text-coding.c: (Fencode_shift_jis_char):
2166         (Fencode_big5_char):
2167         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
2168         Replace 0 with '\0' when working with bytes.
2169         Replace initial "(" with "\(" in docstrings.
2170
2171         (Fmake_coding_system):
2172         When type is ccl and value is vector, register it with a proper
2173         symbol.  And checks whether the given ccl program is valid.
2174         (mule_decode): When calling ccl_driver, if src indicates
2175         NULL pointer, set an empty string instead.
2176         (mule_encode): Likewise.
2177
2178         (detect_eol_type):
2179         (detect_coding_sjis):
2180         (decode_coding_sjis):
2181         (detect_coding_big5):
2182         (decode_coding_big5):
2183         (detect_coding_ucs4):
2184         (decode_coding_ucs4):
2185         (detect_coding_utf8):
2186         (decode_coding_utf8):
2187         (detect_coding_iso2022):
2188         (decode_coding_iso2022):
2189         (decode_coding_no_conversion):
2190         (mule_decode):
2191         Make all detecting and decoding functions take an Extbyte * arg.
2192         (text_encode_generic):
2193         (encode_coding_big5):
2194         (encode_coding_no_conversion):
2195         (mule_encode):
2196         Make all encoding functions take a Bufbyte * arg.
2197         Use size_t instead of unsigned int for memory sizes.
2198         Only cast to unsigned char whenever dereferencing Extbyte *.
2199
2200         (struct lrecord_description fcd_description_1): Use countof.
2201         (complex_vars_of_file_coding):
2202         Use countof instead of sizeof.
2203         Use CHECK_NATNUM instead of CHECK_INT.
2204
2205 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2206
2207         * mule-charset.c (Fget_char_attribute): Add new optional argument
2208         `default-value'.
2209         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
2210         (remove_char_ccs): Likewise.
2211
2212 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2213
2214         * text-coding.c (char_encode_shift_jis): New implementation in
2215         UTF-2000.
2216         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
2217         ...)'.
2218
2219         * mule-charset.c (Vcharset_chinese_big5): New variable in
2220         UTF-2000.
2221         (Qchinese_big5): New variable in UTF-2000.
2222         (BIG5_SAME_ROW): New macro in UTF-2000.
2223         (make_builtin_char): Use builtin characters of
2224         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
2225         characters of `Vcharset_chinese_big5'.
2226         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
2227         (complex_vars_of_mule_charset): Add new coded-charset
2228         `chinese-big5' in UTF-2000.
2229
2230         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
2231         (Vcharset_chinese_big5): New external variable declaration.
2232         (Vcharset_japanese_jisx0208_1990): Likewise.
2233
2234 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2235
2236         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
2237         function.
2238         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
2239
2240 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2241
2242         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
2243         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
2244         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
2245         `mojikyo-pj-*'.
2246
2247 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2248
2249         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
2250
2251 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2252
2253         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2254         to 0.17.
2255
2256 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2257
2258         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
2259         for `CHARSET_BY_ATTRIBUTES'.
2260         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
2261         `CHARSET_BY_ATTRIBUTES'.
2262
2263         * text-coding.c (struct decoding_stream): Rename member `CH' to
2264         `CPOS'.
2265         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
2266         (decode_coding_sjis): Likewise.
2267         (decode_coding_big5): Likewise.
2268         (decode_coding_ucs4): Likewise.
2269         (decode_coding_utf8): Likewise.
2270         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
2271         `CHARSET_BY_ATTRIBUTES'.
2272         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
2273         `str->counter'; decode 3, 4 bytes sets.
2274         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
2275         sets.
2276         (decode_coding_no_conversion): Use `str->cpos' instead of
2277         `str->ch'.
2278
2279         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
2280         (Qmojikyo_2022_1): New variable.
2281         (make_charset): Don't use `CHARSET_TYPE_*'.
2282         (range_charset_code_point): Support coded-charset
2283         `mojikyo-2022-1'.
2284         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
2285         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
2286         `CHARSET_BY_ATTRIBUTES'.
2287         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
2288         `CHARSET_BY_ATTRIBUTES'.
2289         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
2290         (complex_vars_of_mule_charset): Add new coded-charset
2291         `mojikyo-2022-1'.
2292
2293         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
2294         interface; changed to inline function.
2295
2296         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
2297         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
2298         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
2299         (CHARSET_TYPE_94): Deleted.
2300         (CHARSET_TYPE_94X94): Deleted.
2301         (CHARSET_TYPE_96): Deleted.
2302         (CHARSET_TYPE_96X96): Deleted.
2303         (CHARSET_TYPE_128): Deleted.
2304         (CHARSET_TYPE_128X128): Deleted.
2305         (CHARSET_TYPE_256): Deleted.
2306         (CHARSET_TYPE_256X256): Deleted.
2307         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
2308         to inline function.
2309         (DECODE_MOJIKYO_2022): New inline function.
2310         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
2311         `Vcharset_mojikyo_2022_1'.
2312
2313 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2314
2315         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
2316         instead of `EQ'.
2317         (put_byte_table): Likewise.
2318         (char_id_table_equal): Use `get_byte_table' [new implementation].
2319
2320 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2321
2322         * mule-charset.c: Include <limits.h> in UTF-2000.
2323         (BT_UINT8_MIN): New macro in UTF-2000.
2324         (BT_UINT8_MAX): New macro in UTF-2000.
2325         (BT_UINT8_t): New macro in UTF-2000.
2326         (BT_UINT8_nil): New macro in UTF-2000.
2327         (BT_UINT8_unbound): New macro in UTF-2000.
2328         (INT_UINT8_P): New inline function in UTF-2000.
2329         (UINT8_VALUE_P): New inline function in UTF-2000.
2330         (UINT8_ENCODE): New inline function in UTF-2000.
2331         (UINT8_DECODE): New inline function in UTF-2000.
2332         (mark_uint8_byte_table): New function in UTF-2000.
2333         (print_uint8_byte_table): New function in UTF-2000.
2334         (uint8_byte_table_equal): New function in UTF-2000.
2335         (uint8_byte_table_hash): New function in UTF-2000.
2336         (make_uint8_byte_table): New function in UTF-2000.
2337         (uint8_byte_table_same_value_p): New function in UTF-2000.
2338         (BT_UINT16_MIN): New macro in UTF-2000.
2339         (BT_UINT16_MAX): New macro in UTF-2000.
2340         (BT_UINT16_t): New macro in UTF-2000.
2341         (BT_UINT16_nil): New macro in UTF-2000.
2342         (BT_UINT16_unbound): New macro in UTF-2000.
2343         (INT_UINT16_P): New inline function in UTF-2000.
2344         (UINT16_VALUE_P): New inline function in UTF-2000.
2345         (UINT16_ENCODE): New inline function in UTF-2000.
2346         (UINT16_DECODE): New inline function in UTF-2000.
2347         (UINT8_TO_UINT16): New inline function in UTF-2000.
2348         (mark_uint16_byte_table): New function in UTF-2000.
2349         (print_uint16_byte_table): New function in UTF-2000.
2350         (uint16_byte_table_equal): New function in UTF-2000.
2351         (uint16_byte_table_hash): New function in UTF-2000.
2352         (make_uint16_byte_table): New function in UTF-2000.
2353         (uint16_byte_table_same_value_p): New function in UTF-2000.
2354         (print_byte_table): New function in UTF-2000.
2355         (byte-table): Use `print_byte_table' as printer.
2356         (make_byte_table): Delete second argument `older'.
2357         (byte_table_same_value_p): New function in UTF-2000.
2358         (copy_byte_table): Deleted.
2359         (get_byte_table): New function in UTF-2000.
2360         (put_byte_table): New function in UTF-2000.
2361         (print_char_id_table): New function in UTF-2000.
2362         (char-id-table): Use `print_char_id_table' as printer.
2363         (make_char_id_table): Delete second argument `older'.
2364         (get_char_id_table): Use `get_byte_table [new implementation].
2365         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
2366         implementation].
2367         (Ffind_char_attribute_table): New function in UTF-2000.
2368         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
2369         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
2370         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
2371         (syms_of_mule_charset): Add new function
2372         `find-char-attribute-table' in UTF-2000.
2373
2374         * lrecord.h (enum lrecord_type): Add
2375         `lrecord_type_uint16_byte_table' and
2376         `lrecord_type_uint8_byte_table'.
2377
2378         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
2379         (Lisp_Uint8_Byte_Table): New type.
2380         (XUINT8_BYTE_TABLE): New macro.
2381         (XSETUINT8_BYTE_TABLE): New macro.
2382         (UINT8_BYTE_TABLE_P): New macro.
2383         (GC_UINT8_BYTE_TABLE_P): New macro.
2384         (struct Lisp_Uint16_Byte_Table): New structure.
2385         (Lisp_Uint16_Byte_Table): New type.
2386         (XUINT16_BYTE_TABLE): New macro.
2387         (XSETUINT16_BYTE_TABLE): New macro.
2388         (UINT16_BYTE_TABLE_P): New macro.
2389         (GC_UINT16_BYTE_TABLE_P): New macro.
2390
2391 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2392
2393         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
2394         (Vcharacter_ideographic_strokes_table): Deleted.
2395         (Vcharacter_total_strokes_table): Deleted.
2396         (Vcharacter_morohashi_daikanwa_table): Deleted.
2397         (Vcharacter_decomposition_table): Deleted.
2398         (Qname): Deleted because it is duplicated.
2399         (Qideographic_radical): Deleted.
2400         (Qideographic_strokes): Deleted.
2401         (Qtotal_strokes): Deleted.
2402         (Qmorohashi_daikanwa): Deleted.
2403         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
2404         `ideographic-radical', `ideographic-strokes', `total-strokes',
2405         `morohashi-daikanwa' and `->decomposition'.
2406         (Fget_char_attribute): Likewise.
2407         (Fput_char_attribute): Likewise; use `make-vector' instead of
2408         `make_older_vector' for `->decomposition' value.
2409         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
2410         `ideograph-daikanwa'.
2411         (syms_of_mule_charset): Delete builtin symbols `name',
2412         `ideographic-radical', `ideographic-strokes', `total-strokes' and
2413         `morohashi-daikanwa'.
2414         (vars_of_mule_charset): Don't setup
2415         `Vcharacter_ideographic_radical_table',
2416         `Vcharacter_ideographic_strokes_table',
2417         `Vcharacter_total_strokes_table',
2418         `Vcharacter_morohashi_daikanwa_table' and
2419         `Vcharacter_decomposition_table'.
2420
2421 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2422
2423         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
2424         `make_older_vector', `make_vector_newer_1' and
2425         `make_vector_newer'.
2426
2427         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
2428         `make_older_vector' and `make_vector_newer'.
2429
2430         * config.h.in (HAVE_GGC): New macro.
2431
2432 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2433
2434         * mule-charset.c (struct char_attribute_list_closure): New
2435         structure in UTF-2000.
2436         (add_char_attribute_to_list_mapper): New function in UTF-2000.
2437         (Fchar_attribute_list): Likewise.
2438         (Fset_charset_mapping_table): Use `make_vector_newer'.
2439         (Fdecode_builtin_char): New function in UTF-2000.
2440         (syms_of_mule_charset): Add new function `char-attribute-list' and
2441         `decode-builtin-char' in UTF-2000.
2442
2443         * lisp.h (make_vector_newer): New prototype.
2444
2445         * alloc.c (make_vector_newer_1): New function.
2446         (make_vector_newer): New function.
2447
2448 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2449
2450         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
2451         50100)'.
2452
2453 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2454
2455         * mule-charset.c (Vchar_attribute_hash_table): New variable.
2456         (Vcharacter_attribute_table): Deleted.
2457         (Vcharacter_name_table): Deleted.
2458         (put_char_attribute): Deleted.
2459         (remove_char_attribute): Deleted.
2460         (struct char_attribute_alist_closure): New structure.
2461         (add_char_attribute_alist_mapper): New function.
2462         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
2463         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
2464         (Fget_char_attribute): Likewise.
2465         (Fput_char_attribute): Likewise.
2466         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
2467         of `remove_char_attribute'.
2468         (Fdefine_char): Return character.
2469         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
2470         and `Vcharacter_name_table'.
2471         (complex_vars_of_mule_charset): Likewise
2472         `Vchar_attribute_hash_table'.
2473
2474 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2475
2476         * character.h (CHARC_CHARSET): New macro.
2477         (CHARC_CHARSET_ID): New macro.
2478         (CHARC_CODE_POINT): New macro.
2479         (CHARC_COLUMNS): New macro.
2480         (CHARC_TO_CHAR): New inline function.
2481         (CHARC_EQ): New inline function.
2482         (CHARC_ASCII_EQ): New inline function.
2483         (CHARC_IS_SPACE): New inline function.
2484         (ASCII_TO_CHARC): New inline function.
2485
2486         * char-ucs.h (encode_char_2): Deleted.
2487         (ENCODE_CHAR): Use `encode_char_1' again.
2488         (breakup_char_1): Likewise.
2489         (CHAR_TO_CHARC): New inline function.
2490
2491         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
2492
2493 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2494
2495         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
2496         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
2497         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
2498         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
2499         (create_string_text_block): Use `CHARC_ASCII_EQ' and
2500         `CHARC_IS_SPACE'.
2501         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
2502
2503         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
2504         `CHARC_CODE_POINT'.
2505         (x_output_display_block): Use `CHARC_CHARSET' and
2506         `CHARC_ASCII_EQ'.
2507
2508         * redisplay-tty.c (tty_output_display_block): Use
2509         `CHARC_ASCII_EQ'.
2510         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
2511
2512         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
2513
2514         * insdel.c (find_charsets_in_charc_string): Use
2515         `CHARC_CHARSET_ID'.
2516         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
2517         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
2518         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
2519         (convert_charc_string_into_malloced_string): Likewise.
2520
2521 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2522
2523         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
2524         instead of <Emchar_dynarr *> for buf; use
2525         `convert_bufbyte_string_into_charc_dynarr' instead of
2526         `convert_bufbyte_string_into_emchar_dynarr'; use
2527         `find_charsets_in_charc_string' instead of
2528         `find_charsets_in_emchar_string'.
2529
2530         * redisplay.h:
2531         - Include "character.h".
2532         (struct rune): New member `cglyph'; delete member `chr'.
2533
2534         * redisplay.c (redisplay_text_width_charc_string): New function;
2535         delete `redisplay_text_width_emchar_string'.
2536         (rtw_charc_dynarr): New variable; renamed from
2537         `rtw_emchar_dynarr'.
2538         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
2539         `rtw_emchar_dynarr'; use
2540         `convert_bufbyte_string_into_charc_dynarr' instead of
2541         `convert_bufbyte_string_into_emchar_dynarr'; use
2542         `redisplay_text_width_charc_string' instead of
2543         `redisplay_text_width_emchar_string'.
2544         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
2545         instead of `rtw_emchar_dynarr'; use
2546         `convert_bufbyte_string_into_charc_dynarr' instead of
2547         `convert_bufbyte_string_into_emchar_dynarr'.
2548         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
2549         `redisplay_text_width_charc_string' instead of
2550         `redisplay_text_width_emchar_string'.
2551         (create_text_block): Modify for <struct rune> change.
2552         (generate_formatted_string_db): Likewise.
2553         (create_string_text_block): Likewise.
2554         (pixel_to_glyph_translation): Likewise.
2555
2556         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
2557         instead of <const Emchar *>.
2558         (x_text_width): Likewise.
2559         (x_output_display_block): Use <Charc_dynarr *> instead
2560         <Emchar_dynarr *>; modify for <structure rune> change.
2561         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
2562         *>.
2563
2564         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
2565         <const Emchar *>; use `charc_string_displayed_columns' instead of
2566         `emchar_string_displayed_columns'.
2567         (tty_output_display_block): Use <Charc_dynarr *> instead of
2568         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
2569         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
2570         (tty_output_charc_dynarr_dynarr): New variable; renamed from
2571         `tty_output_emchar_dynarr_dynarr'.
2572         (tty_output_charc_dynarr): New function; delete
2573         `tty_output_charc_dynarr'.
2574
2575         * redisplay-output.c (compare_runes): Modify for `struct rune'.
2576         (redisplay_output_layout): Use <Charc_dynarr *> instead of
2577         <Emchar_dynarr *> for buf; use
2578         `convert_bufbyte_string_into_charc_dynarr' instead of
2579         `convert_bufbyte_string_into_emchar_dynarr'.
2580
2581         * frame.c (title_string_charc_dynarr): New variable; renamed from
2582         `title_string_emchar_dynarr'.
2583         (generate_title_string): Use `title_string_charc_dynarr' instead
2584         of `title_string_emchar_dynarr'; use
2585         `convert_charc_string_into_malloced_string' instead of
2586         `convert_emchar_string_into_malloced_string'.
2587         (init_frame): Use `title_string_charc_dynarr' instead of
2588         `title_string_emchar_dynarr'.
2589
2590         * console.h:
2591         - Include "character.h".
2592         (struct console_methods): Use <const Charc *> instead of <const
2593         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
2594         <Emchar_dynarr *> in output_string_method.
2595
2596         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
2597         <Emchar_dynarr *>.
2598
2599         * console-stream.c (stream_text_width): Use <const Charc *>
2600         instead of <const Emchar *>.
2601
2602         * character.h (Charc_dynarr): New type.
2603
2604         * char-ucs.h (structure Charc): New structure; define new type
2605         `Charc'.
2606
2607         * char-lb.h (DECODE_CHAR): New inline function.
2608         (encode_char_1): New inline function.
2609         (ENCODE_CHAR): New macro.
2610         (structure Charc): New structure; define new type `Charc'.
2611
2612         * char-1byte.h (Vcharset_control_1): New macro.
2613         (Vcharset_latin_iso8859_1): New macro.
2614         (DECODE_CHAR): New inline function.
2615         (encode_char_1): New inline function.
2616         (ENCODE_CHAR): New macro.
2617         (structure Charc): New structure; define new type `Charc'.
2618
2619         * insdel.c (find_charsets_in_charc_string): New function; delete
2620         `find_charsets_in_emchar_string'.
2621         (charc_string_displayed_columns): New function; delete
2622         `emchar_string_displayed_columns'.
2623         (convert_bufbyte_string_into_charc_dynarr): New function; delete
2624         `convert_bufbyte_string_into_emchar_dynarr'.
2625         (convert_charc_string_into_bufbyte_dynarr): New function; delete
2626         `convert_charc_string_into_bufbyte_dynarr'.
2627         (convert_charc_string_into_malloced_string): New function; delete
2628         `convert_charc_string_into_malloced_string'.
2629
2630         * buffer.h (find_charsets_in_charc_string): New prototype; delete
2631         `find_charsets_in_emchar_string'.
2632         (charc_string_displayed_columns): New prototype; delete
2633         `emchar_string_displayed_columns'.
2634         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
2635         `convert_charc_string_into_bufbyte_dynarr'.
2636         (convert_charc_string_into_malloced_string): New prototype; delete
2637         `convert_charc_string_into_malloced_string'.
2638
2639 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2640
2641         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
2642
2643 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2644
2645         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
2646
2647         * char-ucs.h: Use <short> for <Charset_ID>.
2648
2649         * mule-charset.h, char-1byte.h: Use <unsigned char> for
2650         <Charset_ID>.
2651
2652 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2653
2654         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2655         to 0.16.
2656
2657 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2658
2659         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
2660         variable.
2661         (Qmorohashi_daikanwa): New variable.
2662         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
2663         for `morohashi-daikanwa' attribute.
2664         (Fget_char_attribute): Likewise.
2665         (Fput_char_attribute): Likewise.
2666         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
2667         has the same value of `ideograph-daikanwa'.
2668         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
2669         (vars_of_mule_charset): Setup
2670         `Vcharacter_morohashi_daikanwa_table'.
2671
2672 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2673
2674         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
2675         attributes.
2676         (add_charset_to_list_mapper): Add `key' instead of
2677         `XCHARSET_NAME (value)' to return aliases.
2678
2679 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2680
2681         * mule-charset.c (Vcharacter_ideographic_radical_table): New
2682         variable.
2683         (Vcharacter_ideographic_strokes_table): New variable.
2684         (Qideographic_radical): New variable.
2685         (Qideographic_strokes): New variable.
2686         (Fchar_attribute_alist): Use
2687         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
2688         attribute; use `Vcharacter_ideographic_strokes_table' for
2689         `ideographic-strokes' attribute.
2690         (Fget_char_attribute): Likewise.
2691         (Fput_char_attribute): Likewise.
2692         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
2693         `ideographic-strokes'.
2694         (vars_of_mule_charset): Setup
2695         `Vcharacter_ideographic_radical_table' and
2696         `Vcharacter_ideographic_strokes_table'.
2697
2698 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2699
2700         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
2701         (Qtotal_strokes): New variable.
2702         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
2703         `total-strokes' attribute.
2704         (Fget_char_attribute): Likewise.
2705         (Fput_char_attribute): Likewise.
2706         (syms_of_mule_charset): Add new symbol `total-strokes'.
2707         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
2708
2709 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2710
2711         * mule-charset.c (Vcharacter_decomposition_table): New variable.
2712         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
2713         are found.
2714         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
2715         `->decomposition' attribute.
2716         (Fput_char_attribute): Likewise.
2717         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
2718
2719 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2720
2721         * mule-charset.c (decoding_table_check_elements): New function.
2722         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
2723
2724 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2725
2726         * mule-charset.c (Fset_charset_mapping_table): Use
2727         `put_char_ccs_code_point'.
2728
2729 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2730
2731         * mule-charset.c (decoding_table_put_char): New inline function.
2732         (put_char_ccs_code_point): Use `decoding_table_put_char'.
2733
2734 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2735
2736         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
2737         (XCHARSET_BYTE_SIZE): New macro.
2738         (decoding_table_remove_char): New inline function.
2739         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
2740         `decoding_table_remove_char'.
2741         (remove_char_ccs): Use `decoding_table_remove_char'.
2742         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
2743
2744 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2745
2746         * mule-charset.c (Vcharacter_name_table): New variable.
2747         (Qname): New variable.
2748         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
2749         attribute.
2750         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
2751         `Vcharacter_name_table' for `name' attribute.
2752         (Fremove_char_attribute): Use function `remove_char_ccs'.
2753         (put_char_ccs_code_point): New function.
2754         (remove_char_ccs): New function.
2755         (syms_of_mule_charset): Add new symbol `name'.
2756         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
2757
2758 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2759
2760         * mule-charset.c (make_byte_table): Add new argument `older'.
2761         (make_char_id_table): Likewise.
2762         (copy_char_id_table): Comment out because it is not used.
2763         (put_char_id_table): Modify for `make_byte_table'.
2764         (Fput_char_attribute): Make encoding_table as older object;
2765         inherit older bit of `Vcharacter_composition_table'.
2766         (mark_charset): Don't mark `cs->encoding_table'.
2767         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
2768         normal object; make `Vcharacter_composition_table' as an older
2769         object; delete staticpro for `Vcharacter_composition_table'; make
2770         `Vcharacter_variant_table' as a normal object.
2771
2772         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
2773         (mark_object): Don't check older object in UTF-2000.
2774
2775         * lrecord.h (struct lrecord_header): Add new member `older' in
2776         UTF-2000.
2777         (set_lheader_implementation): Setup `SLI_header->older' in
2778         UTF-2000.
2779         (set_lheader_older_implementation): New macro in UTF-2000.
2780         (OLDER_RECORD_P): New macro in UTF-2000.
2781         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
2782         (alloc_older_lcrecord): New prototype in UTF-2000.
2783         (alloc_older_lcrecord_type): New macro in UTF-2000.
2784
2785 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2786
2787         * mule-charset.c (byte_table_description): Use
2788         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
2789         (char_id_table_description): Delete bogus `, 1'.
2790         (Fget_char_attribute): Refer encoding_table of each coded-charset
2791         to get value of coded-charset attribute of a character.
2792         (Fput_char_attribute): Use `make_older_vector' instead of
2793         `make_vector'; use encoding_table of each coded-charset to store
2794         value of coded-charset attribute of a character.
2795         (Fremove_char_attribute): Use encoding_table of each coded-charset
2796         to store value of coded-charset attribute of a character.
2797         (mark_charset): Mark `cs->encoding_table'; don't mark
2798         `cs->decoding_table'.
2799         (charset_description): Add description of new member
2800         `encoding_table'.
2801         (make_charset): Initialize `encoding_table'.
2802
2803         * char-ucs.h (struct Lisp_Charset): Add new member
2804         `encoding_table'.
2805         (CHARSET_ENCODING_TABLE): New macro.
2806         (XCHARSET_ENCODING_TABLE): New macro.
2807         (charset_code_point): New implementation.
2808         (encode_char_1): Likewise.
2809
2810         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
2811         (disksave_object_finalization_1): Call finalizers of
2812         `all_older_lcrecords' in UTF-2000.
2813         (make_older_vector): New function in UTF-2000.
2814         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
2815         UTF-2000.
2816
2817         * lisp.h (make_older_vector): New prototype in UTF-2000.
2818
2819 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2820
2821         * lrecord.h (enum lrecord_type): Rename
2822         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
2823
2824         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
2825         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
2826         `get_char_code_table'.
2827
2828         * mule-charset.c (mark_char_id_table): Renamed from
2829         `mark_char_code_table'.
2830         (char_id_table_equal): Renamed from `char_code_table_equal'.
2831         (char_id_table_hash): Renamed from `char_code_table_hash'.
2832         (make_char_id_table): Renamed from `make_char_code_table'.
2833         (copy_char_id_table): Renamed from `copy_char_code_table'.
2834         (get_char_id_table): Renamed from `get_char_code_table'.
2835         (put_char_id_table): Renamed from `put_char_code_table'.
2836         (to_char_id): Renamed from `to_char_code'.
2837
2838         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
2839         `Lisp_Char_Code_Table'.
2840         (char_id_table): Renamed from `char_code_table'.
2841         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
2842         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
2843         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
2844         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
2845         (get_char_id_table): Renamed from `get_char_code_table'.
2846
2847 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2848
2849         * lrecord.h (enum lrecord_type): Rename
2850         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
2851
2852         * mule-charset.c (mark_byte_table): Renamed from
2853         `mark_char_byte_table'.
2854         (byte_table_equal): Renamed from `char_byte_table_equal'.
2855         (byte_table_hash): Renamed from `byte_table_hash'.
2856         (make_byte_table): Renamed from `make_byte_table'.
2857         (copy_byte_table): Renamed from `copy_char_byte_table'.
2858
2859         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
2860         `Lisp_Char_Byte_Table'.
2861         (byte_table): Renamed from `char_byte_table'.
2862         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
2863         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
2864         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
2865         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
2866
2867 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2868
2869         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
2870         (dfc_convert_to_internal_format): Likewise.
2871         
2872         * text-coding.c (Fcoding_system_canonical_name_p): New function.
2873         * text-coding.c (Fcoding_system_alias_p): New function.
2874         * text-coding.c (Fcoding_system_aliasee): New function.
2875         * text-coding.c (append_suffix_to_symbol): New function.
2876         * text-coding.c (dangling_coding_system_alias_p): New function.
2877         * text-coding.c (Ffind_coding_system):
2878         * text-coding.c (Fcopy_coding_system):
2879         * text-coding.c (encode_coding_no_conversion):
2880         * text-coding.c (syms_of_file_coding):
2881         * text-coding.c (vars_of_file_coding):
2882         Rewrite coding system alias code.
2883         Allow nested aliases, like symbolic links.
2884         Allow redefinition of coding system aliases.
2885         Prevent existence of dangling coding system aliases.
2886         Eliminate convert_to_external_format.
2887         Eliminate convert_to_internal_format.
2888         
2889         * text-coding.c: Change enum eol_type to eol_type_t.
2890
2891 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2892
2893         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
2894         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
2895
2896         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
2897         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
2898
2899 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2900
2901         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
2902         `ideograph-daikanwa'.
2903
2904         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
2905         (Vcharset_ucs_bmp): Likewise.
2906         (Vcharset_mojikyo): Add new extern variable definition.
2907         (Vcharset_latin_iso8859_2): Deleted because it is not used.
2908         (Vcharset_latin_iso8859_3): Likewise.
2909         (Vcharset_latin_iso8859_4): Likewise.
2910         (Vcharset_latin_iso8859_9): Likewise.
2911         (Vcharset_latin_viscii_lower): Likewise.
2912         (Vcharset_latin_viscii_upper): Likewise.
2913         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
2914         `mojikyo' code-point is used to decode.
2915         (encode_char_2): New function [to convert `mojikyo' code-point to
2916         Mojikyo font encoding].
2917         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
2918         (breakup_char_1): Likewise.
2919         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
2920
2921 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2922
2923         * text-coding.c (Fmake_coding_system): Add document about
2924         `disable-composition' property.
2925
2926 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2927
2928         * text-coding.c (Qdisable_composition): New variable; delete
2929         `Qcomposite'.
2930         (Fmake_coding_system): Add new property `disable-composite';
2931         delete property `composite'.
2932         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
2933         instead of `!CODING_SYSTEM_COMPOSITE'.
2934         (syms_of_file_coding): Add new symbol `disable-composition';
2935         delete symbol `composite'.
2936
2937         * file-coding.h (struct Lisp_Coding_System): Add
2938         `disable_composition'; delete `enable_composition'.
2939         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
2940         `CODING_SYSTEM_COMPOSITE'.
2941         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
2942         `XCODING_SYSTEM_COMPOSITE'.
2943
2944 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2945
2946         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2947         to 0.15.
2948
2949 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2950
2951         * text-coding.c (Qcomposite): New variable.
2952         (Fmake_coding_system): Add new property `composite'.
2953         (struct decoding_stream): Add `combined_char_count',
2954         `combined_chars' and `combining_table' in UTF-2000.
2955         (COMPOSE_FLUSH_CHARS): New macro.
2956         (COMPOSE_ADD_CHAR): New macro.
2957         (reset_decoding_stream): Reset `str->combined_char_count' and
2958         `str->combining_table' in UTF-2000.
2959         (decode_coding_iso2022): Modify for character-decomposition.
2960         (syms_of_file_coding): Add new symbol `composite'.
2961
2962 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2963
2964         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
2965         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
2966         of `Vcharacter_composition_table' if `->decomposition' property
2967         has only 1 element.
2968         (Qlatin_tcvn5712): New variable.
2969         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
2970         (complex_vars_of_mule_charset): Add new coded-charset
2971         `latin-tcvn5712'.
2972
2973         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
2974
2975 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2976
2977         * file-coding.h (struct Lisp_Coding_System): Add
2978         `enable_composition'.
2979         (CODING_SYSTEM_COMPOSITE): New macro.
2980         (XCODING_SYSTEM_COMPOSITE): New macro.
2981
2982 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
2983
2984         * mule-canna.c (c2mu): Fix problem with UTF-2000.
2985
2986 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
2987
2988         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
2989         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
2990
2991 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
2992
2993         * mule-charset.c (Vcharset_mojikyo): New variable.
2994         (Fdefine_char): Don't use coded-charset which does not have
2995         non-builtin character range to allocate character-id.
2996         (Qmojikyo): New variable.
2997         (syms_of_mule_charset): Add new symbol `mojikyo'.
2998         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
2999
3000         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
3001         (LEADING_BYTE_MOJIKYO): New macro.
3002         (MIN_CHAR_MOJIKYO): New macro.
3003         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
3004         (MAX_CHAR_MOJIKYO): New macro.
3005
3006 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
3007
3008         * mule-charset.c (remove_char_attribute): Fixed.
3009
3010 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
3011
3012         * mule-charset.c (remove_char_attribute): New function.
3013         (Fremove_char_attribute): New function.
3014         (encode_builtin_char_1): Comment out builtin-support for
3015         greek-iso8859-7 and cyrillic-iso8859-5.
3016         (Fdecode_char): Check `code' is an integer.
3017         (syms_of_mule_charset): Add `remove-char-attribute'.
3018         (MIN_CHAR_GREEK): Deleted.
3019         (MAX_CHAR_GREEK): Likewise.
3020         (MIN_CHAR_CYRILLIC): Likewise.
3021         (MAX_CHAR_CYRILLIC): Likewise.
3022         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
3023         MAX_CHAR_GREEK for `greek-iso8859-7'.
3024
3025         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
3026         (MAX_CHAR_GREEK): Likewise.
3027         (MIN_CHAR_CYRILLIC): Likewise.
3028         (MAX_CHAR_CYRILLIC): Likewise.
3029
3030 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
3031
3032         * mule-charset.c (Fdefine_char): Fix problem when new code-point
3033         format is used without `ucs' property.
3034         (Fdecode_char): Fix problem with GR representation.
3035         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
3036         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
3037
3038 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3039
3040         * mule-charset.c (make_builtin_char): New function.
3041         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
3042         (Fset_charset_mapping_table): Modify for new representation of
3043         code-point.
3044         (Fdecode_char): New function.
3045         (syms_of_mule_charset): Add new builtin function `decode-char' in
3046         UTF-2000.
3047
3048         * char-ucs.h (make_builtin_char): New prototype.
3049         (DECODE_CHAR): New inline function.
3050         (MAKE_CHAR): Use `DECODE_CHAR'.
3051
3052 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
3053
3054         * text-coding.c (parse_charset_conversion_specs): Use
3055         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
3056         `XCHARSET_TYPE'.
3057         (iso2022_designate): Likewise.
3058
3059         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
3060         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
3061
3062         * mule-charset.c (Vcharset_ucs): New variable.
3063         (print_charset): Change design; use `CHARSET_CHARS' and
3064         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
3065         (make_charset): Change signature to specify `chars' and
3066         `dimension' instead of `type'.
3067         (range_charset_code_point): Modify for 256^n-set.
3068         (encode_builtin_char_1): Encode as `ucs' in default.
3069         (Fmake_charset): Modify for `make_charset'.
3070         (Fmake_reverse_direction_charset): Likewise.
3071         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
3072         UTF-2000.
3073         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
3074         for `make_charset'.
3075
3076         * char-ucs.h (Vcharset_ucs): New variable.
3077         (LEADING_BYTE_UCS): New macro.
3078         (struct Lisp_Charset): Delete `type'; change type of `dimension'
3079         and `chars' to `unsigned short' from `unsigned int'.
3080         (CHARSET_TYPE): Deleted.
3081         (XCHARSET_TYPE): Deleted.
3082
3083 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
3084
3085         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
3086
3087         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
3088         (ENCODE_CHAR): New macro.
3089
3090 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3091
3092         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3093         to 0.14 (Kawachi-Katakami).
3094
3095 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3096
3097         * text-coding.c (char_encode_shift_jis): Modify for
3098         `charset_code_point'.
3099         (char_encode_iso2022): Likewise.
3100
3101         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
3102         (integer) instead of list of <Lisp_Object>s (integers) as the
3103         format of code-point of a coded-charset.
3104         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
3105         (encode_builtin_char_1): New function; delete
3106         `split_builtin_char'.
3107         (charset_code_point): Return <int> instead of <Lisp_Object>.
3108         (Fsplit_char): Don't use `SPLIT_CHAR'.
3109
3110         * char-ucs.h (encode_builtin_char_1): New prototype; delete
3111         prototype for `split_builtin_char'.
3112         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
3113         (charset_code_point): Likewise.
3114         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
3115         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
3116
3117 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
3118
3119         * mule-charset.c (complex_vars_of_mule_charset): Don't define
3120         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
3121
3122 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3123
3124         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
3125
3126         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
3127         (MAX_CHAR_OBS_94x94): Deleted.
3128
3129 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3130
3131         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
3132
3133         * char-ucs.h (MAX_CHAR_BMP): New macro.
3134
3135 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3136
3137         * text-coding.c: Sync with r21-2-24.
3138
3139 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
3140
3141         * file-coding.c: Modify for UTF-2000.
3142
3143 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3144
3145         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3146         to 0.13 (Takaida).
3147
3148 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3149
3150         * mule-charset.c (split_builtin_char): Delete builtin support for
3151         `katakana-jisx0201'.
3152         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
3153         BMP area in builtin representation.
3154
3155         * char-ucs.h (MAKE_CHAR): Delete builtin support for
3156         `Vcharset_katakana_jisx0201'.
3157
3158 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
3159
3160         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
3161         (Qisolated): New variable.
3162         (Qinitial): New variable.
3163         (Qmedial): New variable.
3164         (Qfinal): New variable.
3165         (Qvertical): New variable.
3166         (Qsmall): New variable.
3167         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
3168         `Qvertical' and `Qsmall'.
3169         (Qmojikyo_pj_[1 .. 21]): New variable.
3170         (syms_of_mule_charset): Add new symbols `isolated', `initial',
3171         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
3172         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
3173         .. 21]'.
3174
3175 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
3176
3177         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
3178         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
3179         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
3180
3181 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3182
3183         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
3184         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
3185         BMP.
3186         (Qjapanese_jisx0208_1990): New variable.
3187         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
3188         (complex_vars_of_mule_charset): Add new coded-charset
3189         `japanese-jisx0208-1990'.
3190
3191         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
3192         (MIN_CHAR_JIS_X0208_1990): New macro.
3193         (MAX_CHAR_JIS_X0208_1990): New macro.
3194
3195 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3196
3197         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
3198         coded-charset is not found.
3199
3200 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3201
3202         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
3203         (Fdefine_char): Use `Fmake_char'.
3204
3205 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3206
3207         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
3208         (Vcharset_hiragana_jisx0208): Deleted.
3209         (Vcharset_katakana_jisx0208): Deleted.
3210         (Qideograph_daikanwa): New variable.
3211         (Qhiragana_jisx0208): Deleted.
3212         (Qkatakana_jisx0208): Deleted.
3213         (split_builtin_char): Split `ideograph-daikanwa'.
3214         (Fsplit_char): New implementation for UTF-2000.
3215         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
3216         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
3217         (complex_vars_of_mule_charset): Add new coded-charset
3218         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
3219         `katakana-jisx0208'.
3220
3221         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
3222         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
3223         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
3224         (MIN_CHAR_DAIKANWA): New macro.
3225         (MAX_CHAR_DAIKANWA): New macro.
3226
3227 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3228
3229         * data.c (Fstring_to_number): Don't recognize floating point if
3230         base is not 10.
3231
3232 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3233
3234         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
3235
3236 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3237
3238         * mule-charset.c (Qsquare): New variable.
3239         (to_char_code): Add `Qsquare'.
3240         (syms_of_mule_charset): Add new symbol `square'.
3241
3242 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3243
3244         * mule-charset.c (Qcircle): New variable.
3245         (to_char_code): Add `Qcircle'.
3246         (syms_of_mule_charset): Add new symbol `circle'.
3247
3248 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3249
3250         * mule-charset.c (Qfont): New variable.
3251         (to_char_code): Add `Qfont'.
3252         (syms_of_mule_charset): Add new symbol `font'.
3253
3254 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3255
3256         * mule-charset.c (Qsub): New variable.
3257         (to_char_code): Add `Qsub'.
3258         (syms_of_mule_charset): Add new symbol `sub'.
3259
3260 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3261
3262         * mule-charset.c (Fput_char_attribute): Convert each element of
3263         VALUE to GL position if ATTRIBUTE is a GR-set,
3264
3265 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3266
3267         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
3268         coded-charset is a GR-set.
3269
3270 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3271
3272         * mule-charset.c (Fput_char_attribute): Check each element of
3273         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
3274
3275 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3276
3277         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
3278         UTF-2000.
3279         (Qethiopic_ucs): New variable in UTF-2000.
3280         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
3281         (complex_vars_of_mule_charset): Add new coded-charset
3282         `ethiopic-ucs' in UTF-2000.
3283
3284         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
3285         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
3286         9)'.
3287         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
3288         10)'.
3289         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
3290
3291 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
3292
3293         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
3294         `ascii'.
3295
3296 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3297
3298         * mule-charset.c (Vcharacter_variant_table): New variable.
3299         (Q_ucs): New variable.
3300         (Fchar_variants): New function.
3301         (Fput_char_attribute): Register `->ucs' value to
3302         `Vcharacter_variant_table'.
3303         (syms_of_mule_charset): Add new function `char-variants' and new
3304         symbol `->ucs'.
3305         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
3306
3307 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3308
3309         * mule-charset.c (get_char_code_table): Allow negative character
3310         code.
3311         (put_char_code_table): Likewise.
3312         (Vcharacter_composition_table): New variable.
3313         (Q_decomposition): New variable.
3314         (Qwide): New variable.
3315         (Qnarrow): New variable.
3316         (Qcompat): New variable.
3317         (QnoBreak): New variable.
3318         (Qsuper): New variable.
3319         (Qfraction): New variable.
3320         (to_char_code): New function.
3321         (Fget_composite_char): New function.
3322         (Fput_char_attribute): Register `->decomposition' value to
3323         `Vcharacter_composition_table'.
3324         (syms_of_mule_charset): Add new function `get-composite-char', new
3325         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
3326         `super' and `fraction'.
3327         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
3328
3329 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3330
3331         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
3332         character; copy the return value.
3333
3334 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3335
3336         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
3337
3338         * mule-charset.c (range_charset_code_point): Must use make_int.
3339         (split_builtin_char): New function.
3340
3341 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3342
3343         * mule-charset.c (char_byte_table): Change name from
3344         "char-code-table" to "char-byte-table".
3345         (mark_char_code_table): New function.
3346         (char_code_table_equal): New function.
3347         (char_code_table_hash): New function.
3348         (char_code_table_description): New constant.
3349         (char_code_table): New type.
3350         (make_char_code_table): New function.
3351         (copy_char_code_table): New function.
3352         (get_char_code_table): Modify for `char_code_table' type.
3353         (put_char_code_table): Likewise.
3354         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
3355         (Kashiwara).
3356
3357         * char-ucs.h (char_code_table): New type.
3358         (XCHAR_CODE_TABLE): New macro.
3359         (XSETCHAR_CODE_TABLE): New macro.
3360         (CHAR_CODE_TABLE_P): New macro.
3361         (GC_CHAR_CODE_TABLE_P): New macro.
3362         (struct Lisp_Char_Code_Table): New structure.
3363
3364 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3365
3366         * mule-charset.c (Fmake_charset): Setup byte_offset for
3367         {94|96}^n-set.
3368
3369 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3370
3371         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
3372         character.
3373
3374 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3375
3376         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
3377         is found.
3378
3379 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3380
3381         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
3382         charset, it is regarded as a charset.
3383         (put_char_attribute): New function in UTF-2000.
3384         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
3385         charset, mapping-table of the charset is modified.
3386         (Fdefine_char): New function in UTF-2000.
3387         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
3388         `Fput_char_attribute'.
3389         (syms_of_mule_charset): Add new function `define-char' and new
3390         symbol `ucs' in UTF-2000.
3391         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
3392
3393 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3394
3395         * mule-charset.c (Fcharset_name): Define `byte_offset' in
3396         non-UTF-2000 configuration.
3397
3398 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3399
3400         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
3401         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
3402
3403         * mule-charset.c (mark_charset): `cs->encoding_table' has been
3404         deleted.
3405         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
3406         (Fset_charset_mapping_table): Likewise.
3407
3408         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
3409         (CHARSET_ENCODING_TABLE): Delete.
3410         (XCHARSET_ENCODING_TABLE): Delete.
3411         (charset_code_point): New interface.
3412
3413 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3414
3415         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
3416         instead of `charset_get_byte1' and `charset_get_byte2'.
3417
3418         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
3419         (charset_get_byte2): Deleted.
3420
3421 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3422
3423         * char-ucs.h (SPLIT_CHAR): New inline function.
3424         (breakup_char_1): Use `SPLIT_CHAR'.
3425
3426         * mule-charset.c (range_charset_code_point): New function.
3427         (charset_code_point): New function.
3428
3429         * char-ucs.h (range_charset_code_point): New interface.
3430         (breakup_char_1): Use `range_charset_code_point'.
3431
3432 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3433
3434         * mule-charset.c (Fmake_charset): Delete unused local variable
3435         `code_offset'.
3436
3437         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
3438         (breakup_char_1): Find a charset and code-point in
3439         `Vcharacter_attribute_table'.
3440
3441 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3442
3443         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3444         to 0.10 (Yao).
3445
3446 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
3447
3448         * mule-charset.c (Vcharacter_attribute_table): New variable.
3449         (Fchar_attribute_alist): New function.
3450         (Fget_char_attribute): New function.
3451         (Fput_char_attribute): New function.
3452         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
3453         too.
3454         (syms_of_mule_charset): Add new function `char-attribute-alist',
3455         `get-char-attribute' and `put-char-attribute'.
3456         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
3457
3458 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
3459
3460         * mule-charset.c (Fmake_charset): Just use
3461         `get_unallocated_leading_byte'.
3462
3463         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
3464         sets; don't use final-byte based number for private sets.
3465
3466 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3467
3468         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
3469         integer.
3470
3471 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3472
3473         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3474         to 0.9.
3475
3476 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3477
3478         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
3479         of `CHAR_LEADING_BYTE' in UTF-2000.
3480
3481         * insdel.c (find_charsets_in_bufbyte_string): Use
3482         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
3483         (find_charsets_in_emchar_string): Likewise.
3484
3485         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
3486         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
3487
3488         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
3489         (CHAR_CHARSET_ID): New macro.
3490
3491 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3492
3493         * chartab.c (get_char_table): Don't use type `Charset_ID' for
3494         charset-id - MIN_LEADING_BYTE.
3495         (put_char_table): Likewise.
3496
3497 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3498
3499         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
3500         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
3501         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
3502         (CHARSET_ID_OFFSET): New macro.
3503         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
3504         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
3505         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
3506         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
3507         4).
3508         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
3509         5).
3510         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
3511         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
3512         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
3513         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
3514         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
3515
3516 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3517
3518         * mule-charset.c (next_allocated_leading_byte): New variable in
3519         UTF-2000.
3520         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
3521         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
3522         (get_unallocated_leading_byte): Simply use
3523         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
3524         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
3525         UTF-2000.
3526
3527         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
3528         (MAX_LEADING_BYTE_PRIVATE): New macro.
3529         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
3530         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
3531
3532 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3533
3534         * mule-charset.c (Fmake_charset): Allocate final-byte based
3535         charset-id for 94-set, 96-set and 94x94-set.
3536
3537 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3538
3539         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
3540         ambiguous `else'.
3541         (Fmake_charset): Likewise.
3542         (complex_vars_of_mule_charset): Modify the font registry of
3543         `ucs-bmp' not to match `Ethiopic-Unicode'.
3544
3545 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3546
3547         * mule-charset.c (complex_vars_of_mule_charset): Add font
3548         registory of `ucs-bmp'.
3549
3550 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3551
3552         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
3553         coded-charsets in `default-coded-charset-priority-list' when
3554         breaking up a character.
3555
3556         * mule-charset.c (Vcharset_latin_viscii): New variable.
3557         (Qlatin_viscii): New variable.
3558         (make_charset): Don't use `decoding_table'.
3559         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
3560         byte_offset.
3561         (Fset_charset_mapping_table): New implementation.
3562         (syms_of_mule_charset): Add new symbol `latin-viscii'.
3563         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
3564         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
3565         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
3566         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
3567         charset `latin_viscii'.
3568
3569         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
3570         (CHARSET_TYPE_94X94): Change to 1 from 2.
3571         (CHARSET_TYPE_96): Change to 2 from 1.
3572         (CHARSET_TYPE_128): New macro.
3573         (CHARSET_TYPE_128X128): Change to 5 from 4.
3574         (CHARSET_TYPE_256): New macro.
3575         (CHARSET_TYPE_256X256): Change to 7 from 5.
3576         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
3577
3578 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3579
3580         * text-coding.c (char_encode_shift_jis): Refer
3581         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
3582         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
3583
3584         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
3585         (char_byte_table_equal): New function in UTF-2000.
3586         (char_byte_table_hash): New function in UTF-2000.
3587         (char_byte_table_description): New constant in UTF-2000.
3588         (char_byte_table): New type in UTF-2000.
3589         (make_char_byte_table): New function in UTF-2000.
3590         (copy_char_byte_table): New function in UTF-2000.
3591         (make_char_code_table): New macro in UTF-2000.
3592         (get_char_code_table): New function in UTF-2000.
3593         (put_char_code_table): New function in UTF-2000.
3594         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
3595         (charset_description): Add setting in UTF-2000.
3596         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
3597         `CHARSET_TO_BYTE1_TABLE(cs)'.
3598         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
3599         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
3600         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
3601         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
3602         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
3603         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
3604         `CHARSET_TO_BYTE2_TABLE(cs)'.
3605
3606         * char-ucs.h (char_byte_table): New type.
3607         (XCHAR_BYTE_TABLE): New macro.
3608         (XSETCHAR_BYTE_TABLE): New macro.
3609         (CHAR_BYTE_TABLE_P): New macro.
3610         (GC_CHAR_BYTE_TABLE_P): New macro.
3611         (struct Lisp_Char_Byte_Table): New structure.
3612         (get_char_code_table): New interface.
3613         (Emchar_to_byte_table): Deleted.
3614         (get_byte_from_character_table): Deleted.
3615         (struct Lisp_Charset): Add `encoding_table'; delete
3616         `to_byte1_table' and `to_byte2_table'.
3617         (CHARSET_ENCODING_TABLE): New macro.
3618         (CHARSET_TO_BYTE1_TABLE): Deleted.
3619         (CHARSET_TO_BYTE2_TABLE): Deleted.
3620         (XCHARSET_ENCODING_TABLE): New macro.
3621         (XCHARSET_TO_BYTE1_TABLE): Deleted.
3622         (XCHARSET_TO_BYTE2_TABLE): Deleted.
3623
3624 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
3625
3626         * mule-charset.c (syms_of_mule_charset): Delete charset alias
3627         `vietnamese-viscii-*'.
3628
3629 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
3630
3631         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
3632         (Qvietnamese_viscii_upper): New variable.
3633         (Fdefine_charset_alias): New function.
3634         (syms_of_mule_charset): Add new function `define-charset-alias'.
3635         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
3636         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
3637         `latin-viscii-*'.
3638
3639 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
3640
3641         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
3642         (MAX_CHAR_OBS_94x94): New macro.
3643         (breakup_char_1): Support obsolete XEmacs-UCS private code space
3644         for 94x94 sets.
3645
3646         * mule-charset.c (put_byte_from_character_table): Change unit size
3647         from 128 to 256.
3648         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
3649         not defined.
3650         (Fmake_reverse_direction_charset): Modify dummy argument of
3651         `make_charset' for non-UTF-2000 environment.
3652
3653 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3654
3655         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
3656
3657         * mule-charset.c (destroy_byte_from_character_table): New macro.
3658         (latin_jisx0201_to_ucs): Deleted.
3659         (latin_iso8859_2_to_ucs): Deleted.
3660         (latin_iso8859_3_to_ucs): Deleted.
3661         (latin_iso8859_4_to_ucs): Deleted.
3662         (latin_iso8859_9_to_ucs): Deleted.
3663         (latin_viscii_lower_to_ucs): Deleted.
3664         (latin_viscii_upper_to_ucs): Deleted.
3665         (mark_charset): Mark `cs->decoding_table'.
3666         (Fcharset_mapping_table): Fix DOC-string.
3667         (Fset_charset_mapping_table): New function.
3668         (syms_of_mule_charset): Add nwe function
3669         `set-charset-mapping-table'.
3670         (complex_vars_of_mule_charset): Don't setup and use
3671         `latin_*_to_ucs'.
3672
3673 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3674
3675         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
3676         charset.
3677
3678 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3679
3680         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
3681         (Vcharset_katakana_jisx0208): New variable.
3682         (Qhiragana_jisx0208): New variable.
3683         (Qkatakana_jisx0208): New variable.
3684         (make_charset): Add new argument `byte_offset'.
3685         (charset_get_byte1): Modify for new coded-charset definition; use
3686         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
3687         `XCHARSET_BYTE_OFFSET'.
3688         (Fmake_charset): Modify for `make_charset'.
3689         (Fmake_reverse_direction_charset): Likewise.
3690         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
3691         `katakana-jisx0208'.
3692         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
3693         `.'  in font registry of charset `katakana-jisx0201',
3694         `latin-jisx0201', `vietnamese-viscii-lower' and
3695         `vietnamese-viscii-upper'; modify DOC-string of charset
3696         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
3697         registry of charset `japanese-jisx0208' not to use font for JIS
3698         X0208:1990; add new charset `hiragana-jisx0208' and
3699         `katakana-jisx0208'.
3700
3701         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
3702         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
3703         (struct Lisp_Charset): Add `byte_offset'.
3704         (CHARSET_BYTE_OFFSET): New macro.
3705         (XCHARSET_UCS_MIN): New macro.
3706         (XCHARSET_UCS_MAX): New macro.
3707         (XCHARSET_CODE_OFFSET): New macro.
3708         (XCHARSET_BYTE_OFFSET): New macro.
3709         (MIN_CHAR_HIRAGANA): New macro.
3710         (MAX_CHAR_HIRAGANA): New macro.
3711         (MIN_CHAR_KATAKANA): New macro.
3712         (MAX_CHAR_KATAKANA): New macro.
3713         (MAKE_CHAR): Modify for new coded-charset definition; use
3714         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
3715         `XCHARSET_BYTE_OFFSET'.
3716
3717 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3718
3719         * mule-charset.c (CHAR96): Deleted.
3720         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
3721         <Lisp_Object>.
3722         (latin_iso8859_2_to_ucs): Likewise.
3723         (latin_iso8859_3_to_ucs): Likewise.
3724         (latin_iso8859_4_to_ucs): Likewise.
3725         (latin_iso8859_9_to_ucs): Likewise.
3726         (latin_viscii_lower_to_ucs): Likewise.
3727         (latin_viscii_upper_to_ucs): Likewise.
3728         (latin_tcvn5712_to_ucs): Commented out.
3729         (make_charset): Change type of argument `decoding_table' from
3730         <Emchar*> to <Lisp_Object> [vector of characters].
3731         (Fmake_charset): Modify for `make_charset'.
3732         (Fmake_reverse_direction_charset): Likewise.
3733         (Fcharset_mapping_table): New function in UTF-2000.
3734         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
3735         UTF-2000.
3736         (complex_vars_of_mule_charset): Modify for type change of
3737         `*_to_ucs'; modify for `make_charset'.
3738
3739         * char-ucs.h (struct Lisp_Charset): Change type of
3740         `decoding_table' from <Emchar*> to <Lisp_Object>.
3741         (MAKE_CHAR): Modify for new specification of `decoding_table'.
3742
3743 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
3744
3745         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
3746         error with non-UTF-2000-Mule.
3747
3748 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
3749
3750         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
3751         in lisp again].
3752         (Vcharset_chinese_cns11643_4): Likewise.
3753         (Vcharset_chinese_cns11643_5): Likewise.
3754         (Vcharset_chinese_cns11643_6): Likewise.
3755         (Vcharset_chinese_cns11643_7): Likewise.
3756         (Qchinese_cns11643_3): Likewise.
3757         (Qchinese_cns11643_4): Likewise.
3758         (Qchinese_cns11643_5): Likewise.
3759         (Qchinese_cns11643_6): Likewise.
3760         (Qchinese_cns11643_7): Likewise.
3761         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
3762         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
3763         and `chinese-cns11643-7' to lisp/mule/chinese.el.
3764         (complex_vars_of_mule_charset): Likewise.
3765
3766 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3767
3768         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
3769         96-set.
3770         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
3771         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
3772
3773 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
3774
3775         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
3776         0xFF60.
3777         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
3778         (breakup_char_1): Likewise.
3779
3780         * text-coding.c (char_encode_iso2022): Keep designated charsets if
3781         one of them includes the specified character.
3782
3783 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3784
3785         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
3786
3787 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3788
3789         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
3790
3791 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3792
3793         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
3794         definition for non-UTF-2000 Mule.
3795         (latin_iso8859_3_to_ucs): Likewise.
3796         (latin_iso8859_4_to_ucs): Likewise.
3797         (latin_iso8859_9_to_ucs): Likewise.
3798         (latin_jisx0201_to_ucs): Likewise.
3799         (MIN_CHAR_THAI): Likewise.
3800         (MAX_CHAR_THAI): Likewise.
3801         (MIN_CHAR_GREEK): Likewise.
3802         (MAX_CHAR_GREEK): Likewise.
3803         (MIN_CHAR_HEBREW): Likewise.
3804         (MAX_CHAR_HEBREW): Likewise.
3805         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
3806         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
3807         (MIN_CHAR_CYRILLIC): Likewise.
3808         (MAX_CHAR_CYRILLIC): Likewise.
3809
3810 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3811
3812         * char-ucs.h (breakup_char_1): Use
3813         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
3814         thai-tis620 and katakana-jisx0201 area.
3815
3816 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3817
3818         * char-ucs.h (breakup_char_1): Use
3819         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
3820         area.
3821
3822         * text-coding.c (reset_encoding_stream): Fixed.
3823         (char_encode_ucs4): Delete `& 255'.
3824
3825         * char-ucs.h (breakup_char_1): Use
3826         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
3827
3828 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3829
3830         * file-coding.c (Fmake_coding_system): Don't set up
3831         `codesys->fixed.size'.
3832         (encode_coding_no_conversion): Don't refer
3833         `str->codesys->fixed.size'.
3834
3835 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3836
3837         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
3838         (latin_a_char_to_byte1): Deleted.
3839         (latin_a_char_to_byte2): Deleted.
3840
3841 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3842
3843         * mule-charset.c (make_charset): Add new argument `ucs_min',
3844         `ucs_max' and `code_offset'.
3845         (charset_get_byte1): New implementation [delete specific charset
3846         depended implementations].
3847         (Fmake_charset): Modify for `make_charset'.
3848         (Fmake_reverse_direction_charset): Likewise.
3849         (complex_vars_of_mule_charset): Likewise.
3850
3851         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
3852         `code_offset'.
3853         (CHARSET_UCS_MIN): New macro.
3854         (CHARSET_UCS_MAX): New macro.
3855         (CHARSET_CODE_OFFSET): New macro.
3856         (MAKE_CHAR): Delete charset depended definitions [except
3857         katakana-jisx0201].
3858
3859 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
3860
3861         * char-ucs.h (breakup_char_1): Use
3862         `Vdefault_coded_charset_priority_list' for C0-Controls,
3863         Basic-Latin, C1-Controls and Latin-1-Supplement area.
3864
3865 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3866
3867         * char-ucs.h (charset_get_byte1): New function.
3868         (XCHARSET_GET_BYTE1): Deleted.
3869         (charset_get_byte2): New function.
3870         (XCHARSET_GET_BYTE2): Deleted.
3871         (Vdefault_coded_charset_priority_list): New external variable.
3872         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
3873         `Vdefault_preferred_coded_charset_list'.
3874
3875         * mule-charset.c (charset_get_byte1): New function.
3876         (charset_get_byte2): New function.
3877         (Vdefault_coded_charset_priority_list): New variable.
3878         (vars_of_mule_charset): Add new variable
3879         `default-coded-charset-priority-list'.
3880
3881 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3882
3883         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
3884         (XCHARSET_GET_BYTE2): New inline function.
3885         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
3886         `XCHARSET_GET_BYTE2'.
3887
3888 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3889
3890         * mule-charset.c (make_charset): Initialize
3891         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
3892         NULL if table is not defined.
3893
3894 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3895
3896         * text-coding.c (char_encode_shift_jis): Use
3897         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
3898         `ucs_to_latin_jisx0201'.
3899
3900         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
3901         (ucs_to_latin_iso8859_2): Deleted.
3902         (ucs_to_latin_iso8859_3): Deleted.
3903         (ucs_to_latin_iso8859_4): Deleted.
3904         (ucs_to_latin_iso8859_9): Deleted.
3905         (ucs_to_latin_viscii_lower): Deleted.
3906         (ucs_to_latin_viscii_upper): Deleted.
3907         (ucs_to_latin_tcvn5712): Deleted.
3908         (make_charset): Add new argument `decoding_table'; set up
3909         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
3910         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
3911         `decoding_table' is defined in UTF-2000.
3912         (Fmake_charset): Modify for `make_charset'.
3913         (Fmake_reverse_direction_charset): Likewise.
3914         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
3915         and `GENERATE_96_SET'.
3916
3917         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
3918         (ucs_to_latin_jisx0201): Deleted.
3919         (latin_iso8859_2_to_ucs): Deleted.
3920         (ucs_to_latin_iso8859_2): Deleted.
3921         (latin_iso8859_3_to_ucs): Deleted.
3922         (ucs_to_latin_iso8859_3): Deleted.
3923         (latin_iso8859_4_to_ucs): Deleted.
3924         (ucs_to_latin_iso8859_4): Deleted.
3925         (latin_iso8859_9_to_ucs): Deleted.
3926         (ucs_to_latin_iso8859_9): Deleted.
3927         (latin_viscii_lower_to_ucs): Deleted.
3928         (ucs_to_latin_viscii_lower): Deleted.
3929         (latin_viscii_upper_to_ucs): Deleted.
3930         (ucs_to_latin_viscii_upper): Deleted.
3931         (struct Lisp_Charset): Renamed `encoding_table' to
3932         `to_byte1_table'; add `to_byte2_table'.
3933         (CHARSET_DECODING_TABLE): New macro.
3934         (CHARSET_TO_BYTE1_TABLE): New macro.
3935         (CHARSET_TO_BYTE2_TABLE): New macro.
3936         (XCHARSET_DECODING_TABLE): New macro.
3937         (XCHARSET_TO_BYTE1_TABLE): New macro.
3938         (XCHARSET_TO_BYTE2_TABLE): New macro.
3939         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
3940         tables.
3941         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
3942         don't use `ucs_to_*' tables.
3943
3944 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3945
3946         * text-coding.c (Fmake_coding_system): Don't set up
3947         `codesys->fixed.size'.
3948         (encode_coding_no_conversion): Use `if' instead of `switch'.
3949
3950         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
3951
3952 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3953
3954         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
3955         (Fmake_charset): Modify for `make_charset'.
3956         (Fmake_reverse_direction_charset): Likewise.
3957         (complex_vars_of_mule_charset): Likewise.
3958
3959 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3960
3961         * text-coding.c (char_encode_shift_jis): Use table
3962         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
3963
3964 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3965
3966         * text-coding.c (text_encode_generic): Use `if' instead of
3967         `switch'.
3968         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
3969         decode JIS-Latin.
3970
3971 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3972
3973         * text-coding.c (encode_coding_sjis): Deleted.
3974         (char_encode_shift_jis): New function.
3975         (char_finish_shift_jis): New function.
3976         (reset_encoding_stream): Set up `encode_char' and `finish' for
3977         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
3978         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
3979         (char_encode_utf8): Treat `eol_type'.
3980
3981 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3982
3983         * file-coding.c (decode_coding_iso2022): Use
3984         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
3985
3986 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3987
3988         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3989         to 0.7 (Hirano).
3990
3991 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3992
3993         * char-lb.h (CHAR_COLUMNS): New macro.
3994
3995 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3996
3997         * text-coding.c (char_encode_ucs4): New function.
3998         (char_finish_ucs4): New function.
3999         (encode_coding_ucs4): Deleted.
4000         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
4001         (text_encode_generic): Delete local variable `charset' and `half'.
4002         (ucs_to_mule_table): Deleted.
4003         (mule_to_ucs_table): Deleted.
4004         (Fset_ucs_char): Deleted.
4005         (ucs_to_char): Deleted.
4006         (Fucs_char): Deleted.
4007         (Fset_char_ucs): Deleted.
4008         (Fchar_ucs): Deleted.
4009         (decode_ucs4): Deleted.
4010         (mule_char_to_ucs4): Deleted.
4011         (encode_ucs4): Deleted.
4012         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
4013         (decode_coding_utf8): Likewise.
4014         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
4015         (char_encode_iso2022): Fixed.
4016         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
4017         `Fset_char_ucs' and `Fchar_ucs'.
4018         (complex_vars_of_file_coding): Don't initialize
4019         `ucs_to_mule_table'.
4020
4021         * objects-tty.c (tty_initialize_font_instance): Don't use
4022         `XCHARSET_COLUMNS'.
4023
4024         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
4025         UTF-2000.
4026
4027         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
4028         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4029
4030         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
4031         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4032         (emchar_string_displayed_columns): Likewise.
4033
4034         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
4035         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4036         (string_column_at_point): Likewise.
4037         (Fmove_to_column): Likewise.
4038
4039         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
4040         `encoding_table' and `decoding_table'.
4041         (CHARSET_REP_BYTES): Deleted.
4042         (XCHARSET_REP_BYTES): Deleted.
4043         (XCHARSET_COLUMNS): Deleted.
4044         (CHAR_COLUMNS): New macro.
4045         (lookup_composite_char): Deleted unconditionally.
4046         (composite_char_string): Likewise.
4047
4048 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4049
4050         * char-ucs.h (Emchar_to_byte_table): New type.
4051         (get_byte_from_character_table): New function interface.
4052         (Vcharset_latin_jisx0201): New variable.
4053         (latin_jisx0201_to_ucs): New variable.
4054         (ucs_to_latin_jisx0201): New variable.
4055         (Vcharset_latin_iso8859_2): New variable.
4056         (latin_iso8859_2_to_ucs): New variable.
4057         (ucs_to_latin_iso8859_2): New variable.
4058         (Vcharset_latin_iso8859_3): New variable.
4059         (latin_iso8859_3_to_ucs): New variable.
4060         (ucs_to_latin_iso8859_3): New variable.
4061         (Vcharset_latin_iso8859_4): New variable.
4062         (latin_iso8859_4_to_ucs): New variable.
4063         (ucs_to_latin_iso8859_4): New variable.
4064         (Vcharset_latin_iso8859_9): New variable.
4065         (latin_iso8859_9_to_ucs): New variable.
4066         (ucs_to_latin_iso8859_9): New variable.
4067         (Vcharset_latin_viscii_lower): New variable.
4068         (latin_viscii_lower_to_ucs): New variable.
4069         (ucs_to_latin_viscii_lower): New variable.
4070         (Vcharset_latin_viscii_upper): New variable.
4071         (latin_viscii_upper_to_ucs): New variable.
4072         (ucs_to_latin_viscii_upper): New variable.
4073         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
4074         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
4075         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
4076         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
4077         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
4078         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
4079         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
4080         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
4081         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
4082         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
4083
4084         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
4085         (Vcharset_latin_viscii_upper): New variable.
4086         (make_byte_from_character_table): New function.
4087         (put_byte_from_character_table): New function.
4088         (get_byte_from_character_table): New function.
4089         (CHAR96): New macro.
4090         (ucs_to_latin_jisx0201): New variable.
4091         (latin_jisx0201_to_ucs): New variable.
4092         (ucs_to_latin_iso8859_2): New variable.
4093         (latin_iso8859_2_to_ucs): New variable.
4094         (ucs_to_latin_iso8859_3): New variable.
4095         (latin_iso8859_3_to_ucs): New variable.
4096         (ucs_to_latin_iso8859_4): New variable.
4097         (latin_iso8859_4_to_ucs): New variable.
4098         (ucs_to_latin_iso8859_9): New variable.
4099         (latin_iso8859_9_to_ucs): New variable.
4100         (ucs_to_latin_viscii_lower): New variable.
4101         (latin_viscii_lower_to_ucs): New variable.
4102         (ucs_to_latin_viscii_upper): New variable.
4103         (latin_viscii_upper_to_ucs): New variable.
4104         (ucs_to_latin_tcvn5712): New variable.
4105         (latin_tcvn5712_to_ucs): New variable.
4106         (Qlatin_viscii_lower): New variable.
4107         (Qlatin_viscii_upper): New variable.
4108         (syms_of_mule_charset): Set up new symbol
4109         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
4110         (complex_vars_of_mule_charset): Set up new charset
4111         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
4112         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
4113         `ucs_to_<CHARSET>' tables.
4114
4115 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
4116
4117         * text-coding.c: New file.
4118
4119 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4120
4121         * mule-charset.c (Fmake_char): Fix problem of 256-set.
4122
4123         * char-ucs.h (Vcharset_ucs_bmp): New variable.
4124         (MAKE_CHAR): Modify for `ucs-bmp'.
4125         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
4126         non-MULE characters of BMP.
4127
4128 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
4129
4130         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4131         to 0.6.
4132
4133 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4134
4135         * lstream.h:
4136         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
4137         - Include character.h for `CHAR_ASCII_P'.
4138
4139         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
4140
4141         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
4142         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
4143
4144         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
4145         (BYTE_C0_P): Likewise.
4146         (BYTE_C1_P): Likewise.
4147         (Lstream_get_emchar_1): Likewise.
4148         (Lstream_fput_emchar): Likewise.
4149         (Lstream_funget_emchar): Likewise.
4150         (copy_internal_to_external): Likewise.
4151         (copy_external_to_internal): Likewise.
4152
4153         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
4154         (BYTE_C0_P): Likewise.
4155         (BYTE_C1_P): Likewise.
4156         (Lstream_get_emchar_1): Likewise.
4157         (Lstream_fput_emchar): Likewise.
4158         (Lstream_funget_emchar): Likewise.
4159         (copy_internal_to_external): Likewise.
4160         (copy_external_to_internal): Likewise.
4161
4162         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
4163         (REP_BYTES_BY_FIRST_BYTE): Likewise.
4164
4165         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
4166         (BYTE_ASCII_P): Moved to mb-1byte.h.
4167
4168 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4169
4170         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
4171
4172         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
4173         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
4174         (VALID_CHARPTR_P): Moved to mb-*byte.h.
4175         (VALIDATE_CHARPTR_BACKWARD): Likewise.
4176         (VALIDATE_CHARPTR_FORWARD): Likewise.
4177         (simple_charptr_emchar): Moved to mb-multibyte.h.
4178         (simple_set_charptr_emchar): Likewise.
4179         (simple_charptr_copy_char): Likewise.
4180         (non_ascii_charptr_emchar): Likewise.
4181         (non_ascii_set_charptr_emchar): Likewise.
4182         (non_ascii_charptr_copy_char): Likewise.
4183         (charptr_emchar): Moved to mb-*byte.h.
4184         (set_charptr_emchar): Likewise.
4185         (charptr_copy_char): Likewise.
4186
4187         * mb-1byte.h, mb-multibyte.h: New files.
4188
4189 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4190
4191         * mb-utf-8.h (MULTIBYTE): New macro.
4192         (MAX_EMCHAR_LEN): Moved from buffer.h.
4193         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
4194
4195         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
4196
4197         * mb-lb.h, multibyte.h: New files.
4198
4199         * char-1byte.h (Charset_ID): Moved from buffer.h.
4200         (MIN_LEADING_BYTE): Likewise.
4201         (LEADING_BYTE_ASCII): Likewise.
4202         (NUM_LEADING_BYTES): Likewise.
4203         (CHARSETP): Likewise.
4204         (CHARSET_BY_LEADING_BYTE): Likewise.
4205         (XCHARSET_LEADING_BYTE): Likewise.
4206         (XCHARSET_GRAPHIC): Likewise.
4207         (XCHARSET_COLUMNS): Likewise.
4208         (XCHARSET_DIMENSION): Likewise.
4209         (CHAR_CHARSET): Likewise.
4210         (CHAR_LEADING_BYTE): Likewise.
4211         (BREAKUP_CHAR): Likewise.
4212         (Vcharset_ascii): Likewise.
4213
4214         * buffer.h: Include multibyte.h unconditionally.
4215         (VALID_CHARPTR_P): Moved to multibyte.h.
4216         (ASSERT_VALID_CHARPTR): Likewise.
4217         (REAL_INC_CHARPTR): Likewise.
4218         (REAL_INC_CHARBYTIND): Likewise.
4219         (REAL_DEC_CHARPTR): Likewise.
4220         (INC_CHARPTR): Likewise.
4221         (INC_CHARBYTIND): Likewise.
4222         (DEC_CHARPTR): Likewise.
4223         (VALIDATE_CHARPTR_BACKWARD): Likewise.
4224         (VALIDATE_CHARPTR_FORWARD): Likewise.
4225         (charptr_n_addr): Likewise.
4226         (MAX_EMCHAR_LEN): Moved to mb-*.h.
4227         (simple_charptr_emchar): Moved to multibyte.h.
4228         (simple_set_charptr_emchar): Likewise.
4229         (simple_charptr_copy_char): Likewise.
4230         (non_ascii_charptr_emchar): Likewise.
4231         (non_ascii_set_charptr_emchar): Likewise.
4232         (non_ascii_charptr_copy_char): Likewise.
4233         (charptr_emchar): Likewise.
4234         (set_charptr_emchar): Likewise.
4235         (charptr_copy_char): Likewise.
4236         (charptr_emchar_n): Likewise.
4237         (Charset_ID): Moved to char-1byte.h.
4238         (Vcharset_ascii): Likewise.
4239         (CHAR_CHARSET): Likewise.
4240         (CHAR_LEADING_BYTE): Likewise.
4241         (LEADING_BYTE_ASCII): Likewise.
4242         (NUM_LEADING_BYTES): Likewise.
4243         (MIN_LEADING_BYTE): Likewise.
4244         (CHARSETP): Likewise.
4245         (CHARSET_BY_LEADING_BYTE): Likewise.
4246         (XCHARSET_LEADING_BYTE): Likewise.
4247         (XCHARSET_GRAPHIC): Likewise.
4248         (XCHARSET_COLUMNS): Likewise.
4249         (XCHARSET_DIMENSION): Likewise.
4250         (BREAKUP_CHAR): Likewise.
4251
4252 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4253
4254         * character.h: Add document about interface for characters.
4255
4256         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
4257         (MAKE_CHAR): Delete comment about
4258         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
4259         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
4260         (BREAKUP_CHAR): Modify name of arguments.
4261         (CHAR_CHARSET): Modify name of argument.
4262
4263         * buffer.h: Delete document about Emchar accessors.
4264
4265 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4266
4267         * character.h (CHAR_INTP): Moved from buffer.h
4268         (CHAR_OR_CHAR_INTP): Likewise.
4269         (XCHAR_OR_CHAR_INT): Likewise.
4270         (CHECK_CHAR_COERCE_INT): Likewise.
4271
4272         * buffer.h (CHAR_INTP): Moved to character.h
4273         (CHAR_OR_CHAR_INTP): Likewise.
4274         (XCHAR_OR_CHAR_INT): Likewise.
4275         (CHECK_CHAR_COERCE_INT): Likewise.
4276
4277 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4278
4279         * character.h:
4280         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
4281         - Include char-1byte.h, char-lb.h or char-ucs.h.
4282
4283         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
4284
4285         * buffer.h: Include character unconditionally.
4286         (valid_char_p): Moved to char-*.h.
4287         (non_ascii_valid_char_p): Moved to char-lb.h.
4288
4289         * char-1byte.h, char-lb.h, char-ucs.h: New files.
4290
4291 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4292
4293         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
4294         in UTF-2000 because it is not ported yet and not to use
4295         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
4296         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
4297         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
4298
4299         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
4300         (CHAR_ASCII_P): Moved from character.h.
4301
4302         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
4303         (CHAR_ASCII_P): Likewise.
4304         (CHAR_FIELD1_MASK): Deleted.
4305         (CHAR_FIELD2_MASK): Deleted.
4306         (CHAR_FIELD3_MASK): Deleted.
4307         (MAX_CHAR_BASIC_LATIN): New macro.
4308         (CHAR_FIELD1): Deleted.
4309         (CHAR_FIELD2_INTERNAL): Deleted.
4310         (CHAR_FIELD3_INTERNAL): Deleted.
4311         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
4312         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
4313         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
4314         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
4315         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
4316         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
4317         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
4318         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
4319         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
4320         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
4321         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
4322         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
4323         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
4324         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
4325         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
4326         (MIN_CHAR_COMPOSITION): Deleted.
4327         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
4328         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
4329
4330 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
4331
4332         * buffer.h: Include mb-utf-8.h in UTF-2000.
4333
4334         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
4335
4336         * mb-utf-8.h: New file.
4337
4338 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
4339
4340         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
4341         instead of `int'.
4342
4343         * mule-charset.h, buffer.h (Charset_ID): New type.
4344
4345 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
4346
4347         * mule-canna.c (c2mu): Use `MAKE_CHAR',
4348         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
4349         instead of `MULE_CHAR_PRIVATE_OFFSET',
4350         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
4351         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
4352         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
4353
4354         * character.h (Vcharset_japanese_jisx0212): New variable
4355         definition.
4356
4357 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
4358
4359         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
4360         (charset_by_attributes): Delete array about direction.
4361         (latin_a_char_to_charset): New variable in UTF-2000.
4362         (latin_a_char_to_byte1): New variable in UTF-2000.
4363         (latin_a_char_to_byte2): New variable in UTF-2000.
4364         (Qucs_bmp): New variable.
4365         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
4366         `Bufbyte'.
4367         (next_allocated_2_byte_leading_byte): Likewise.
4368         (non_ascii_set_charptr_emchar): Likewise.
4369         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
4370         `CHARSET_TYPE_256X256' in UTF-2000; modify for
4371         `charset_by_attributes'.
4372         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
4373         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
4374         and `CHARSET_BY_LEADING_BYTE'.
4375         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
4376         `utf-2000-version' to `vars_of_mule_charset'.
4377         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
4378         define `leading-code-private-11' in UTF-2000; move setting of
4379         `utf-2000-version' from `syms_of_mule_charset'.
4380         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
4381         UTF-2000.
4382
4383         * character.h (Charset_ID): New type.
4384         (LEADING_BYTE_UCS_BMP): New macro.
4385         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
4386         (CHARSET_ID_OFFSET_94): New macro.
4387         (MIN_CHARSET_ID_PRIVATE_94): New macro.
4388         (MAX_CHARSET_ID_PRIVATE_94): New macro.
4389         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
4390         final-byte.
4391         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
4392         (LEADING_BYTE_LATIN_JISX0201): Likewise.
4393         (CHARSET_ID_OFFSET_96): New macro.
4394         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
4395         CHARSET_ID_OFFSET_96 and final-byte.
4396         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
4397         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
4398         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
4399         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
4400         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
4401         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
4402         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
4403         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
4404         (LEADING_BYTE_THAI_TIS620): Likewise.
4405         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
4406         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
4407         (CHARSET_ID_OFFSET_94x94): New macro.
4408         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
4409         CHARSET_ID_OFFSET_94x94 and final-byte.
4410         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
4411         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
4412         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
4413         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
4414         (LEADING_BYTE_CHINESE_GB2312): Likewise.
4415         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
4416         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
4417         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
4418         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
4419         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
4420         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
4421         (CHARSET_TYPE_128X128): New macro.
4422         (CHARSET_TYPE_256X256): New macro.
4423         (XCHARSET_PRIVATE_P): Delete unconditionally.
4424         (charset_by_attributes): Delete array about direction.
4425         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
4426         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
4427         (MIN_CHAR_94): New macro.
4428         (MAX_CHAR_94): New macro.
4429         (MIN_CHAR_96): New macro.
4430         (MAX_CHAR_96): New macro.
4431         (MIN_CHAR_94x94): New macro.
4432         (MAX_CHAR_94x94): New macro.
4433         (MIN_CHAR_96x96): New macro.
4434         (MAX_CHAR_96x96): New macro.
4435         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
4436         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
4437         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
4438         - 32)'.
4439         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
4440         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
4441         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
4442         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
4443         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
4444         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
4445         `XCHARSET_LEADING_BYTE' to make code-point.
4446         (latin_a_char_to_charset): New variable.
4447         (latin_a_char_to_byte1): New variable.
4448         (latin_a_char_to_byte2): New variable.
4449         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
4450         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
4451         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
4452
4453         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
4454         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
4455         (find_charsets_in_emchar_string): Likewise.
4456         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
4457
4458         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
4459         `int'.
4460         (decode_coding_iso2022): Likewise.
4461
4462         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
4463         of `unsigned char'.
4464
4465         * redisplay.c (redisplay_text_width_emchar_string): Use
4466         `Charset_ID' instead of `unsigned char'.
4467         (redisplay_frame_text_width_string): Likewise.
4468
4469         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
4470         `unsigned char'.
4471
4472         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
4473         instead of `unsigned char'.
4474         (face_cachel_charset_font_metric_info): Likewise.
4475
4476         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
4477         (get_non_ascii_char_table_value): Likewise.
4478         (get_char_table): Likewise.
4479         (put_char_table): Likewise.
4480         (map_over_other_charset): Likewise.
4481         (map_char_table): Likewise.
4482
4483         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
4484         instead of `unsigned char'.
4485
4486 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
4487
4488         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
4489         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
4490
4491         * mule-charset.c (leading_code_private_11): Don't define in
4492         UTF-2000.
4493
4494         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
4495         in UTF-2000 because it is not ported yet and not to use
4496         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
4497
4498 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
4499
4500         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
4501
4502 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4503
4504         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
4505         in UTF-2000.
4506
4507         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
4508         of unsigned char to store leading-byte.
4509
4510         * chartab.c (get_non_ascii_char_table_value): Don't use
4511         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
4512
4513         * file-coding.c (encode_coding_big5): Delete bogus implementation
4514         in UTF2000.
4515
4516         * character.h (LEADING_BYTE_*): Delete definition for
4517         non-UTF-2000.
4518         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
4519         (LEADING_BYTE_PREFIX_P): Deleted.
4520         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
4521         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
4522         (BUFBYTE_LEADING_BYTE_P): Deleted.
4523         (CHARSET_PRIVATE_P): Deleted unconditionally.
4524         (rep_bytes_by_first_byte): Deleted unconditionally.
4525         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
4526         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
4527         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
4528         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
4529         (CHAR_FIELD2): Deleted.
4530         (CHAR_FIELD3): Deleted.
4531         (MAKE_CHAR): Delete definition for non-UTF-2000.
4532         (BREAKUP_CHAR_1_UNSAFE): Deleted.
4533         (breakup_char_1): New implementation.
4534         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
4535         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
4536
4537 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4538
4539         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
4540         condition.
4541
4542 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4543
4544         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
4545         (CHARSET_PRIVATE_P): Likewise.
4546         (XCHARSET_PRIVATE_P): Likewise.
4547         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
4548
4549         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
4550         UTF2000.
4551         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
4552
4553 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4554
4555         * character.h (LEADING_BYTE_*): Changed in UTF2000.
4556         (NUM_LEADING_BYTES): Changed from 128 to 256.
4557         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
4558         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
4559         UTF2000.
4560         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
4561
4562         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
4563         UTF2000.
4564         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
4565         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
4566         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
4567         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
4568         (Qchinese_cns11643_3): New variable in UTF2000.
4569         (Qchinese_cns11643_4): New variable in UTF2000.
4570         (Qchinese_cns11643_5): New variable in UTF2000.
4571         (Qchinese_cns11643_6): New variable in UTF2000.
4572         (Qchinese_cns11643_7): New variable in UTF2000.
4573         (syms_of_mule_charset): Define `chinese-cns11643-3',
4574         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
4575         and `chinese-cns11643-7' in UTF2000.
4576         (vars_of_mule_charset): Initialize
4577         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
4578         + 1 in UTF2000.
4579         (complex_vars_of_mule_charset): Setup charset
4580         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
4581         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
4582
4583 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4584
4585         * mule-charset.c: Move setting for `leading-code-private-11' from
4586         `syms_of_mule_charset' to `vars_of_mule_charset'.
4587
4588 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4589
4590         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
4591         and `NUM_LEADING_BYTES' in assert.
4592
4593 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4594
4595         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
4596         instead of 128.
4597         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
4598         `NUM_LEADING_BYTES' instead of 128.
4599
4600 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
4601
4602         * mule-charset.h (charset_by_leading_byte): Use
4603         `NUM_LEADING_BYTES' instead of 128.
4604         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
4605
4606         * mule-charset.c (charset_by_leading_byte): Use
4607         `NUM_LEADING_BYTES' instead of 128.
4608         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
4609
4610         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
4611         128.
4612
4613 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
4614
4615         * mule-charset.c (syms_of_mule_charset): Update to
4616         0.4 (Shin-Imamiya).
4617
4618 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
4619
4620         * file-coding.c (encode_coding_sjis): New implementation for
4621         UTF2000.  (decode_coding_sjis): Ditto.
4622
4623 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4624
4625         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
4626         Don't define in UTF2000.
4627
4628         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
4629         defined.
4630
4631         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
4632         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
4633         MULE.
4634
4635 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4636
4637         * config.h.in (CHAR_IS_UCS4): New macro.
4638
4639         * mule-charset.c (rep_bytes_by_first_byte): Modify for
4640         conventional MULE representation.
4641         (syms_of_mule_charset): Update to 0.3 (Imamiya).
4642
4643         * mule-charset.h: Reverted to original.
4644
4645         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
4646         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
4647         "mule-charset.h" if CHAR_IS_UCS4 is defined.
4648
4649         * character.h: New file.
4650
4651         * file-coding.c (Fmake_coding_system): Set 1 to
4652         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
4653         defined.
4654         (encode_coding_no_conversion): New implementation for UTF2000.
4655
4656         * file-coding.h (struct Lisp_Coding_System): Add new member
4657         `fixed.size'.
4658
4659 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
4660
4661         * file-coding.c (decode_coding_iso2022): Code-point arguments of
4662         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
4663         (encode_coding_iso2022): New implementation for UTF2000.
4664
4665 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4666
4667         * mule-canna.c (c2mu): New implementation for UTF2000.
4668         (m2c): Likewise.
4669
4670 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4671
4672         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
4673
4674 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4675
4676         * file-coding.c (reset_encoding_stream): Set 0 to
4677         `str->iso2022.current_char_boundary' in UTF2000.
4678         (encode_utf8): Don't define in UTF2000.
4679         (encode_coding_utf8): New implementation for UTF-8 representation
4680         of UTF2000.
4681         (complex_vars_of_file_coding): Define coding-system `utf-8'.
4682
4683 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4684
4685         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
4686
4687         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
4688         UTF2000.
4689         (REP_BYTES_BY_FIRST_BYTE): Likewise.
4690
4691         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
4692
4693         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
4694         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
4695         as UTF-8 in UTF2000.
4696         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
4697         (non_ascii_valid_char_p): Don't define in UTF2000.
4698         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
4699         (Lstream_get_emchar_1): Likewise.
4700         (utf-2000-version): New variable in UTF2000.
4701
4702         * lread.c (read_escape): Add new reader `u'.
4703
4704         * insdel.c (three_to_one_table): Don't define in UTF2000.
4705         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
4706         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
4707         UTF2000.
4708         (bytind_to_bufpos_func): Likewise.
4709         (buffer_mule_signal_inserted_region): Likewise.
4710         (vars_of_insdel): Don't initialize `three_to_one_table'.
4711         (init_buffer_text): Use `buf->text->mule_size' instead of
4712         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
4713         UTF2000.
4714
4715         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
4716         UTF-8 representation in UTF2000.
4717         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
4718         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
4719         (decode_coding_iso2022): Don't define local variable `lb' in
4720         UTF2000; don't use LEADING_BYTE in UTF2000; use
4721         `DECODE_ADD_UCS_CHAR' in UTF2000.
4722         (convert_to_external_format): Decode as UTF-8 in UTF2000.
4723
4724         * config.h.in (UTF2000): New macro.
4725
4726         * buffer.h (struct buffer_text): Add new member `mule_size' and
4727         don't add `mule_shifter' and `mule_three_p' in UTF2000.
4728         (valid_char_p): Return always 1 in UTF2000.
4729         (MAX_EMCHAR_LEN): 6 in UTF2000.
4730         (three_to_one_table): Don't define in UTF2000.
4731         (real_bufpos_to_bytind): Modify for UTF-8 representation in
4732         UTF2000.
4733         (real_bytind_to_bufpos): Likewise.
4734
4735         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
4736
4737 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4738
4739         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
4740         representation change.
4741         (Vutf_2000_version): New variable.
4742         (leading_code_private_11): New variable.
4743         (syms_of_mule_charset): Add new variables `utf-2000-version' and
4744         `leading-code-private-11'.
4745
4746         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
4747         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
4748         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
4749         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
4750         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
4751         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
4752         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
4753         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
4754         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
4755         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
4756         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
4757         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
4758         (MIN_CHAR_GREEK): New macro.
4759         (MAX_CHAR_GREEK): New macro.
4760         (MIN_CHAR_CYRILLIC): New macro.
4761         (MAX_CHAR_CYRILLIC): New macro.
4762         (MIN_CHAR_HEBREW): New macro.
4763         (MAX_CHAR_HEBREW): New macro.
4764         (MIN_CHAR_THAI): New macro.
4765         (MAX_CHAR_THAI): New macro.
4766         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
4767         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
4768         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
4769         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
4770         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
4771         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
4772         (CHAR_FIELD2): New inline function.
4773         (CHAR_FIELD3): New inline function.
4774         (MULE_CHAR_PRIVATE_OFFSET): New macro.
4775         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
4776         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
4777         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
4778         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
4779         (MIN_CHAR_COMPOSITION): Likewise.
4780         (CHAR_LEADING_BYTE): Modified for character representation change.
4781         (MAKE_CHAR): Likewise.
4782
4783         * lisp.h (Vcharset_latin_iso8859_1): New variable.
4784         (Vcharset_greek_iso8859_7): Likewise.
4785         (Vcharset_cyrillic_iso8859_5): Likewise.
4786         (Vcharset_hebrew_iso8859_8): Likewise.
4787         (Vcharset_thai_tis620): Likewise.
4788         (Vcharset_katakana_jisx0201): Likewise.
4789
4790 2003-01-03  Stephen J. Turnbull  <stephen@xemacs.org>
4791
4792         * XEmacs 21.4.11 "Native Windows TTY Support" is released.
4793
4794 2002-12-14  Ben Wing  <ben@xemacs.org>
4795
4796         * callint.c: Declaration error.
4797         * dumper.c (pdump):
4798         * dumper.c (pdump_load): Warning fix.
4799         * process.c: GCPRO error.
4800         * glyphs.c (unmap_subwindow):
4801         * glyphs.c (map_subwindow): Parenthesizing errors with ! and &&.
4802         * event-stream.c (maybe_kbd_translate): Wrong argument to
4803         character_to_event().
4804
4805         * alloc.c (garbage_collect_1):
4806         * emacs.c:
4807         * emacs.c (debug_can_access_memory):
4808         * emacs.c (fatal_error_signal):
4809         * emacs.c (mswindows_handle_hardware_exceptions):
4810         * emacs.c (main_1):
4811         * emacs.c (main):
4812         * emacs.c (assert_failed):
4813         * emacs.c (syms_of_emacs):
4814         * lisp.h:
4815         * print.c:
4816         * print.c (std_handle_out_va):
4817         * print.c (write_string_to_stdio_stream):
4818         * print.c (write_fmt_string):
4819         * print.c (printing_badness):
4820         * print.c (printing_major_badness):
4821         * print.c (print_internal):
4822         * print.c (debug_print_no_newline):
4823         * print.c (debug_backtrace):
4824         Be more defensive in handling bad values when printing.  Add code
4825         from trunk involving inhibit_non_essential_printing_operations.
4826         When going down or in debug_print(), don't do external conversion
4827         and such and try really, really hard when printing to avoid core
4828         dumping.  Add force-debugging-signal, debug_break().
4829
4830 2002-12-12  Stephen J. Turnbull  <stephen@xemacs.org>
4831
4832         * dumper.c (pdump_load): Include sysdep.h; retry with truename.
4833         Analysis and original patch by Vin Shelton <acs@xemacs.org>.
4834
4835 2002-12-02  Greg Allen  <greg_allen@westlb-systems.co.uk>
4836
4837         * database.c: Fix open_database. Berkeley DB API has changed in
4838         4.1. see: http://www.sleepycat.com/docs/ref/upgrade.4.1/fop.html
4839
4840 2002-11-26  Stephen J. Turnbull  <stephen@xemacs.org>
4841
4842         * specifier.c (Fvalid_specifier_type_p): Typo in comment.
4843
4844 2002-11-13  Stephen J. Turnbull  <stephen@xemacs.org>
4845
4846         * event-Xt.c (Xt_timeout):
4847         (Xt_timeout_callback):
4848         (emacs_Xt_add_timeout):
4849         (emacs_Xt_remove_timeout):
4850         (Xt_timeout_to_emacs_event):
4851         Turn completed_timeouts from a stack into a queue.  Fixes
4852         deadlocks <15829.21626.171573.994716@sinisa.nasamreza.org>.
4853
4854 2002-11-07  Wolfram Gloger  <wg@malloc.de>
4855
4856         * alloc.c (reinit_alloc_once_early): Disable mmap in Doug Lea malloc.
4857         * emacs.c (main): Assert that mmap'd allocation is disabled.
4858
4859 2002-10-14  Andy Piper  <andy@xemacs.org>
4860
4861         * glyphs-widget.c (layout_query_geometry): add in fiddle
4862         factor. Include border text in width layout calculation.
4863         (layout_layout): use BORDER_FIDDLE_FACTOR instead of 10.
4864
4865 2002-11-02  Stephen J. Turnbull  <stephen@xemacs.org>
4866
4867         * XEmacs 21.4.10 "Military Intelligence" is released.
4868
4869 2002-10-17  Raymond Toy  <toy@rtp.ericsson.se>
4870
4871         * nas.c: Update for NAS 1.6 and later, from Jon Trulson.  Was
4872         using the NAS private array SoundFileInfo that no longer exists in
4873         NAS 1.6 and later.  Preserve backward compatibility with NAS 1.5a
4874         and earlier.  This is broken for some versions between 1.5a and
4875         1.5f.
4876
4877 2002-10-10  Stephen J. Turnbull  <stephen@xemacs.org>
4878
4879         * realpath.c (win32_readlink): Try to fix truename of wildcard bug.
4880
4881         * emacs.c (shut_down_emacs): Improve crash message.
4882
4883 2002-10-09  Stephen J. Turnbull  <stephen@xemacs.org>
4884
4885         * file-coding.c (determine_real_coding_system): Check for coding
4886         cookie in first LINES_TO_CHECK lines (currently 2).  Cater to
4887         shebangs and Python PEP 263.
4888
4889 2002-10-08  Andy Piper  <andy@xemacs.org>
4890
4891         * glyphs-widget.c (layout_query_geometry): only resize dynamically
4892         if static sizes haven't been set.
4893
4894 2002-08-30  Mike Alexander  <mta@arbortext.com>
4895
4896         * event-msw.c (winsock_closer): Use closesocket, not CloseHandle
4897         to close a socket.
4898
4899 2002-10-03  Stephen J. Turnbull  <stephen@xemacs.org>
4900
4901         * callproc.c (child_setup): 21.4 doesn't have retry_close.
4902
4903 2002-09-20  Mike Sperber <mike@xemacs.org>
4904
4905         (This partially gets back my patch from 2002-07-20 without the
4906         bug.)
4907         * callproc.c (child_setup): Remove Ben's comment noting confusion
4908         over the file descriptors >= 3: close_process_descs() doesn't
4909         close those.  Fix fd range to go up to MAXDESC-1 instead of 64.
4910         * process-unix.c (unix_create_process): Call
4911         begin_dont_check_for_quit to inhibit unwanted interaction (and
4912         thus breaking of X event synchronicity) in the child.
4913
4914 2002-09-26  Golubev I. N.  <gin@mo.msk.ru>
4915
4916         * frame-x.c (x_delete_frame): do not call XtDisplay on a destroyed
4917         widget.
4918
4919 2002-08-20  Ben Sigelman  <bhsigelm@cs.brown.edu>
4920
4921         * event-Xt.c (drain_X_queue): loop over while(XEventsQueued())
4922         instead of while(XtAppPending()&XtIMXEvent).  Upon a gdm logout,
4923         the xemacs process did not exit, but looped infinitely here.  This
4924         fixes that problem.
4925
4926 2002-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
4927
4928         * font-lock.c (SYNTAX_START_STYLE, SYNTAX_END_STYLE): Quiet GCC.
4929         (find_context): Improve comments.
4930
4931         * regex.c (re_compile_fastmap):  Gratuitous #ifdef comment fixes.
4932         (re_match_2): An XCHAR_TABLE operation was missing.
4933
4934         Many of the following changes were inspired by Andy Piper's (now
4935         obsolete) patch to make syntax-table text property lookup optional.
4936
4937         [Documentation]
4938
4939         * syntax.h (top level): Document semantics of syntax flags.
4940         * syntax.c (comstr_start, Fforward_comment): Improve comments.
4941         * syntax.c, syntax.h (top level): Document syntax cache better in
4942         comments.
4943
4944         [Instrument syntax caching (temporary change)]
4945
4946         * syntax.h (enum syntax_cache_statistics_functions, struct
4947         syntax_cache_statistics, SCS_STATISTICS_SET_FUNCTION,
4948         SYNTAX_CACHE_STATISTICS_COUNT_INIT): New types and macros.
4949         * syntax.c (scan_words, Fforward_comment, scan_lists,
4950         Fbackward_prefix_characters):
4951         * font-lock.c (find_context):
4952         Use them to instrument syntax caching. 
4953         * syntax.c (struct syntax_cache_statistics, scs_statistics,
4954         syntax_cache_statistics_function_names): New type and variables.
4955         * syntax.c (update_syntax_cache): Update and report statistics.
4956
4957         [Major syntax cache optimizations]
4958
4959         syntax.c (lookup_syntax_properties): Default off.
4960
4961         * syntax.h (UPDATE_SYNTAX_INTERNAL): New, implements UPDATE_SYNTAX*.
4962         * syntax.c (update_syntax_cache):
4963         Move init test from update_syntax_cache to UPDATE_SYNTAX_INTERNAL.
4964
4965         [Minor syntax cache optimizations and code clarifications]
4966
4967         * syntax.h (SYNTAX_COMMENT_BITS, SYNTAX_START_P, SYNTAX_END_P,
4968         SYNTAX_STYLES_MATCH_START_P, SYNTAX_STYLES_MATCH_1CHAR_P,
4969         SYNTAX_STYLES_MATCH_END_P, STYLE_FOUND_1CHAR_P, STYLE_FOUND_P,
4970         SYNTAX_COMMENT_MASK_END, SYNTAX_COMMENT_MASK_START,
4971         SYNTAX_COMMENT_1CHAR_MASK): Remove redundant argument `table'.
4972         (Code clarification.)
4973
4974         * syntax.c (scan_words, find_end_of_comment, scan_sexps_forward,
4975         scan_lists): Compute code from syncode, use Boolean macros instead
4976         of redundant masking operations.  (Code clarification; any decent
4977         compiler can do this optimization.)
4978
4979         * syntax.c (scan_lists): Rearrange switches (case Sstring_fence)
4980         for clarity.
4981
4982         * syntax.h, syntax.c (NEXT_SINGLE_PROPERTY_CHANGE,
4983         PREVIOUS_SINGLE_PROPERTY_CHANGE, update_syntax_cache): Conditionally
4984         use F*_single_property_change instead of F*_extent_change.
4985         Currently F*_single_property_change is _much_ less efficient.
4986
4987         * dired.c (Fdirectory_files): Qt not valid in syntax_cache.object.
4988         * syntax.h (SETUP_SYNTAX_CACHE_FOR_OBJECT):  Initialize
4989         syntax_cache.object properly, don't leave Qt or Qnil.
4990         (SYNTAX_CACHE_BYTE_TO_CHAR): Use SETUP_SYNTAX_CACHE_FOR_OBJECT.
4991         * syntax.c (update_syntax_cache): Use BUFFERP and STRINGP, not
4992         tests for Qt or Qnil.
4993
4994 2002-09-21  Stephen J. Turnbull  <stephen@xemacs.org>
4995
4996         * redisplay.c (point_in_line_start_cache): 
4997         * extents.c (print_extent_1):
4998         Fix warnings.
4999
5000         * extents.c (Fset_extent_property): Document `syntax-table' property.
5001
5002         * extents.h (Fnext_single_property_change): EXFUN it.
5003
5004 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
5005
5006         * search.c (clear_unused_search_regs): New static function.
5007         (search_buffer): 
5008         (simple_search): 
5009         (boyer_moore):
5010         Use it.  Fixes "stale match data" bug reported by Martin Stjernholm.
5011         Minor clarifications in comments.
5012
5013         * regex.c (re_match_2_internal): Ensure no stale submatches.
5014
5015 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
5016
5017         * event-Xt.c (enqueue_focus_event): Add missing prototype.
5018
5019 2002-08-29  Jerry James  <james@xemacs.org>
5020
5021         * lisp.h: structrures -> structures.
5022
5023 2002-06-03  Andy Piper  <andy@xemacs.org>
5024
5025         * frame.c (frame_conversion_internal): add conversion appropriate
5026         for setting frame dimensions in pixels.
5027
5028         * console.h (struct console_methods): add device-specific widget
5029         layout functions.
5030
5031         * emacs.c (main_1): initialize glyph vars.
5032
5033         * event-Xt.c (handle_focus_event_1): call handle_focus_event_2
5034         (handle_focus_event_2): new function. Allow focus to
5035         be set to a particular window and widget.
5036         (enqueue_focus_event): new function. Create a
5037         synthetic focus event.
5038         (emacs_Xt_handle_magic_event): call
5039         handle_focus_event_2.
5040
5041         * frame.c (Fset_frame_pixel_height): new function. Allow
5042         pixel-based sizing. Does the right thing on character-oriented
5043         displays.
5044         (Fset_frame_pixel_width): ditto.
5045         (Fset_frame_pixel_size): ditto.
5046         (syms_of_frame): declare.
5047
5048         * general-slots.h: add :vertically-justify and
5049         :horizontally-justify.
5050
5051         * glyphs-msw.c (xbm_create_bitmap_from_data): warning fix.
5052         (mswindows_widget_border_width): new function.
5053         (mswindows_combo_box_instantiate): set border widths.
5054         (console_type_create_glyphs_mswindows): declare.
5055
5056         * glyphs-widget.c:
5057         (check_valid_justification): allow vertical and horizontal
5058         justification.
5059         (widget_border_width): new function. Call device methods.
5060         (widget_instance_border_width): ditto.
5061         (logical_unit_height): new function. Determine the height of a
5062         logical-unit. Logical units are intended to provide grid-like
5063         layout for subcontrols in a layout. If the layout is
5064         :vertically-justify top then subcontrols will be positioned on
5065         logical-unit boundaries, thus allowing adjacent subcontrols to
5066         line up.
5067         (widget_logical_unit_height): ditto for widgets.
5068         (redisplay_widget): misc cleanup.
5069         (widget_spacing): new function. Call device specific
5070         methods. Intended to be the default gap between adjacent widgets.
5071         (widget_query_geometry): use new spacing functions to determine
5072         appropriate geometry.
5073         (initialize_widget_image_instance): initialize horizontal and
5074         vertical justification.
5075         (widget_instantiate): use logica-units where appropriate for
5076         sizing large widgets.
5077         (button_query_geometry): use widget_instance_border_width.
5078         (tree_view_query_geometry): ditto.
5079         (tab_control_query_geometry): ditto.
5080         (edit_field_query_geometry): new function.
5081         (layout_update): pick up :justify, :horizontally-justify and
5082         :vertically-justify none of which worked previously. :justify is
5083         used as a fallback for both horizontal and vertical justification.
5084         (layout_query_geometry): use logical units to size appropriately.
5085         (layout_layout): ditto.
5086         (Fwidget_logical_to_character_width): new function. Allow users to
5087         convert from logical units to characters so that frame sizes can
5088         be set appropriately.
5089         (Fwidget_logical_to_character_height): ditto.
5090         (syms_of_glyphs_widget): declare.
5091         (image_instantiator_edit_fields): add edit_field_query_geometry.
5092         (VALID_LAYOUT_KEYWORDS): declare :vertically-justify and
5093         :horizontally-justify.
5094         (specifier_vars_of_glyphs_widget): new function. Declare
5095         Vwidget_border_width which is not yet used.
5096
5097         * glyphs-x.c (x_map_subwindow): enqueue appropriate focus events.
5098         (x_widget_border_width): new function.
5099         (x_widget_instantiate): create a sensible name for widgets.
5100         (console_type_create_glyphs_x): declare x_widget_border_width.
5101
5102         * glyphs.h (DEFAULT_WIDGET_BORDER_WIDTH): new macro.
5103         (struct Lisp_Image_Instance): add :vertically-justify and
5104         :horizontally-justify.
5105         (LAYOUT_JUSTIFY_TOP): new.
5106         (IMAGE_INSTANCE_SUBWINDOW_H_JUSTIFY): new.
5107         (ROUND_UP): new macro. Round argument up to next integral
5108         interval.
5109
5110         * redisplay-output.c (redisplay_output_layout): misc formatting.
5111
5112         * symsinit.h: declare specifier_vars_of_glyphs_widget.
5113
5114 2002-08-23  Stephen J. Turnbull  <stephen@xemacs.org>
5115
5116         * XEmacs 21.4.9 "Informed Management" is released.
5117
5118 2002-08-19  Andy Piper  <andy@xemacs.org>
5119
5120         * fileio.c (Ffile_truename): on cygwin using win32 normalize to
5121         win32 format.
5122
5123         * realpath.c (xrealpath): normalize drive spec also so that dir
5124         sep chars are not mixed on cygwin.
5125
5126 2002-08-06  Jerry James  <james@xemacs.org>
5127
5128         * window.c (Fsplit_window): Count only half of the divider width
5129         against the left window when splitting horizontally. 
5130
5131 2002-06-24  Andy Piper  <andy@xemacs.org>
5132
5133         * toolbar-gtk.c (GTK_OUTPUT_BUTTONS_LOOP): output button if whole
5134         toolbar was cleared.
5135
5136         * toolbar-msw.c (mswindows_clear_frame_toolbars): new
5137         function. Split out from mswindows_output_frame_toolbars.
5138         (mswindows_output_frame_toolbars): move clear pieces to
5139         mswindows_output_frame_toolbars.
5140
5141         * toolbar-gtk.c (gtk_clear_frame_toolbars): new function. Split
5142         out from gtk_output_frame_toolbars.
5143         (gtk_output_frame_toolbars): move clear pieces to
5144         gtk_clear_frame_toolbars.
5145
5146         * toolbar-x.c (X_OUTPUT_BUTTONS_LOOP): always output buttons when
5147         the frame is cleared. How this ever worked before is a mystery.
5148         (x_output_frame_toolbars): Only output toolbars.
5149         (x_clear_frame_toolbars): new. Clear previous toolbar locations.
5150
5151         * gutter.c (update_gutter_geometry):
5152         Mark frame layout changed.
5153         (update_frame_gutter_geometry, update_frame_gutters):
5154         Respect frame_layout_changed.
5155
5156         * console.h (struct console_methods): add
5157         clear_frame_toolbars_method.
5158
5159         * redisplay.c (redisplay_frame): call
5160         update_frame_toolbars_geometry and re-order update_frame_toolbars.
5161
5162         * toolbar.h: declare update_frame_toolbars_geometry.
5163
5164         * toolbar.c (update_frame_toolbars_geometry): new function. Split
5165         out from update_frame_toolbars.  Call clear_frame_toolbars.
5166         (update_frame_toolbars): only output, do not change geometry.
5167
5168         * redisplay.c: add frame_layout_changed.
5169
5170         * redisplay.h: add frame_layout_changed.
5171         (CLASS_RESET_CHANGED_FLAGS): set it.
5172         (GLOBAL_RESET_CHANGED_FLAGS): ditto.
5173         (CLASS_REDISPLAY_FLAGS_CHANGEDP): test it.
5174         (GLOBAL_REDISPLAY_FLAGS_CHANGEDP): ditto.
5175
5176         * device.h (struct device): add frame_layout_changed.
5177         (MARK_DEVICE_FRAME_LAYOUT_CHANGED): new.
5178
5179         * frame.h (struct frame): add frame_layout_changed.
5180         (MARK_FRAME_LAYOUT_CHANGED): new.
5181
5182 2002-06-30  Mike Alexander  <mta@arbortext.com>
5183
5184         * event-msw.c (mswindows_need_event): Don't wait for a new message
5185         if the queue is not empty.  Suggested by Paul Moore.
5186
5187 2002-06-12  Andy Piper  <andy@xemacs.org>
5188
5189         * frame-msw.c (msprinter_init_frame_3): calculate the frame size
5190         for printing on accurately.
5191
5192 2002-06-09  Rick Rankin <rick_rankin@yahoo.com>
5193
5194         * event-msw.c (mswindows_wnd_proc): Add a handler for the
5195         WM_ACTIVATE message. Make sure that the frame is visible if the
5196         window is visible. This seemss to fix the problem where XEmacs
5197         appears to freeze after switching desktops with certain virtual
5198         window managers.
5199         (debug_output_mswin_message): Added code to output message
5200         parameters for WM_WINDOWPOSCHANGED, 
5201         WM_WINDOWPOSCHANGING, WM_MOVE, and WM_SIZE messages.
5202
5203 2002-05-25  Andy Piper  <andy@xemacs.org>
5204
5205         * select-x.c (vars_of_select_x): Fix docstring of
5206         x-selection-strict-motif-ownership
5207
5208 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
5209
5210         * keymap.c (get_keymap):
5211         Add comment about do_autoload GCPROs own args.
5212
5213 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
5214
5215         * bytecode.c (execute_optimized_program): check_opcode ifdef
5216         ERROR_CHECK_BYTE_CODE.
5217
5218 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
5219
5220         Thanks to Ben Wing and Michael Sperber.
5221
5222         * eval.c (Fcommand_execute):
5223         (Feval):
5224         (Ffuncall):
5225         (Fmacroexpand_internal):
5226         (function_argcount):
5227         callint.c (Fcall_interactively):
5228         Add comment about do_autoload GCPROs own args.
5229
5230         * (do_autoload): GCPRO both args as well as local Lisp_Object.
5231
5232         * eval.c (Ffuncall): Extra braces to placate GCC.
5233
5234 2002-08-10  Stephen J. Turnbull  <stephen@xemacs.org>
5235
5236         * backtrace.h (grow_specpdl):
5237         (SPECPDL_RESERVE):
5238         * EmacsFrame.c (EmacsFrameSetValues):
5239         * eval.c (grow_specpdl):
5240         * ExternalShell.c (hack_event_masks_1):
5241         * glyphs-x.c (convert_EImage_to_XImage): 
5242         (x_finalize_image_instance):
5243         * ralloc.c (page_size):
5244         (r_alloc_sbrk):
5245         * xgccache.c (gc_cache_hash):
5246         Fix unsigned comparison warnings.
5247
5248 2002-07-29  Jerry James  <james@xemacs.org>
5249
5250         * lread.c (locate_file): Any nonnegative return value indicates
5251         success if MODE is nonnegative.
5252
5253 2002-08-03  Brian A Palmer  <bpalmer@rescomp.Stanford.EDU>
5254
5255         * emacs.c (Fsplit_string_by_char): Make 2nd arg SEPCHAR a required
5256         argument. 
5257
5258 2002-07-17  Stephen J. Turnbull  <stephen@xemacs.org>
5259
5260         * process-unix.c (unix_send_process): #ifdef the coding_stream member.
5261
5262         * dumper.c (pdump_get_indirect_count):
5263         (pdump_scan_by_alignment):
5264         (pdump_dump_root_struct_ptrs):
5265         (pdump_dump_rtables):
5266         (pdump_dump_root_objects):
5267         (pdump):
5268         * nas.c (WaveOpenDataForReading):
5269         * fns.c (print_bit_vector):
5270         * font-lock.c (SINGLE_SYNTAX_STYLE):
5271         * glyphs.c (check_for_ignored_expose):
5272         (find_matching_subwindow):
5273         * glyphs-eimage.c:
5274         * imgproc.c (get_histogram):
5275         * redisplay.c (point_in_line_start_cache):
5276         * redisplay-output.c (redisplay_unmap_subwindows):
5277         * symbols.c (defsymbol_massage_name_1):
5278         (defkeyword_massage_name):
5279         (deferror_massage_name_and_message):
5280         * redisplay-x.c (x_output_string): 
5281         * emacs.c (run_temacs_argv_size, run_temacs_args_size):
5282         * frame.h (struct frame):
5283         * filelock.c (current_lock_owner):
5284         * doprnt.c (emacs_doprnt_1):
5285         * lisp.h (struct Lisp_Bit_Vector):
5286         (DO_REALLOC):
5287         Fix warnings.
5288
5289 2002-02-13  Ben Wing  <ben@xemacs.org>
5290
5291         * event-stream.c (reset_key_echo):
5292         * event-stream.c (reset_this_command_keys):
5293         * event-stream.c (execute_command_event):
5294         If console is dead as a result of C-x 5 0, then post-command stuff
5295         needs to be careful and do only non-console-specific stuff.
5296
5297 2002-07-01  Mike Sperber <mike@xemacs.org>
5298
5299         * process-unix.c (unix_send_process): Mark coding_outstream as
5300         non-open upon SIGPIPE.
5301
5302         * event-stream.c (Fnext_event): Reorder switch cases to something
5303         that makes sense.
5304
5305 2001-08-13  Dmitry Astapov  <adept@umc.com.ua>
5306
5307         * event-Xt.c (maybe_define_x_key_as_self_inserting_character):
5308         Don't bogusly reinitialize ascii_character property.
5309
5310 2002-07-08  Mike Sperber <mike@xemacs.org>
5311
5312         * process.c (Fstart_process_internal): Do error checking before we
5313         fork off the child, so the child can't muck with the state of the
5314         parent.
5315
5316 2002-07-08  Mike Sperber <mike@xemacs.org>
5317
5318         * ralloc.c (init_ralloc): Allocate properly for pdump.
5319
5320 2002-06-12  Andy Piper  <andy@xemacs.org>
5321
5322         * glyphs.c (query_string_geometry): check the string.
5323
5324         * glyphs-widget.c (widget_logical_unit_height): cope with nil
5325         widget names.
5326
5327 2002-06-17  Jerry James  <james@xemacs.org>
5328
5329         * sysdll.c: Remove RTLD_GLOBAL initialization.
5330         * sysdll.c (dll_open): Do not use RTLD_GLOBAL.
5331
5332 2002-06-25  Stephen J. Turnbull  <stephen@xemacs.org>
5333
5334         * search.c (skip_chars): Port Ben's crash fix and efficiency patch.
5335
5336 2002-05-16  Mathias Grimmberger  <mgri@zaphod.sax.de>
5337
5338         * sysdep.c (sys_rename): Make sys_rename work for the case where
5339         Windows rename sets errno to EACCES if target file exists.
5340
5341 2002-05-21  Jonathan Harris  <jonathan@xemacs.org>
5342
5343         * device-msw.c (mswindows_handle_page_setup_dialog_box):
5344         Fix detection of metric units to work on Win95
5345
5346 2002-05-21  Stephen J. Turnbull  <stephen@xemacs.org>
5347
5348         * syswindows.h: #define LOCALE_RETURN_NUMBER.  Why, I don't know.
5349
5350 2002-04-25  Andy Piper  <andy@xemacs.org>
5351
5352         * redisplay.c (create_text_block): Remove extra comment trailer.
5353
5354 2002-04-24  Andy Piper  <andy@xemacs.org>
5355
5356         * redisplay.c (create_text_block): Don't actually add propagation
5357         data if the line ends after we have added a glyph.
5358
5359 2002-04-22  Andy Piper  <andy@xemacs.org>
5360
5361         * extents.c (extent_fragment_update): check for glyphs we have
5362         previously displayed.
5363         * extents.c (print_extent_1): warning removal.
5364         * extents.h: change prototype.
5365         * redisplay-output.c (redisplay_normalize_glyph_area): calculate
5366         widths correctly for wide glyphs.
5367         * redisplay.c (position_redisplay_data_type): add end_glyph_width.
5368         * redisplay.c (prop_type): add PROP_GLYPH.
5369         * redisplay.c (struct prop_block): add glyph type
5370         * redisplay.c (add_glyph_rune): when adding part of a glyph add it
5371         to the propagation data.
5372         * redisplay.c (create_text_block): if there is a glyph in the
5373         propagation data use it to salt extent_fragment_update.
5374         * redisplay.c (create_string_text_block): ditto.
5375
5376 2002-04-13  Nix  <nix@esperi.demon.co.uk>
5377
5378         * redisplay.h (struct rune): Add ascent, descent, and yoffset fields.
5379         * redisplay-output.c (compare_runes): Compare them.
5380         * redisplay.c: Update copyright date.
5381         * redisplay.c (pos_data): Add need_baseline_computation field.
5382         * redisplay.c (add_glyph_rune): Update ascent, descent, and
5383         need_baseline_computation; zero yoffset. Set max_pixmap_height
5384         for all pixmaps, not just automatically positioned ones.
5385         * redisplay.c (calculate_yoffset): New, compute yoffset values.
5386         * redisplay.c (calculate_baseline): New, compute textual baseline.
5387         * redisplay.c (add_glyph_rune): Call them.
5388         * redisplay.c (create_text_block): Likewise.
5389         * redisplay.c (create_overlay_glyph_block): Likewise.
5390         * redisplay.c (add_margin_runes): Likewise.
5391         * redisplay.c (create_string_text_block): Likewise. Fix tabdamage.
5392
5393         * redisplay.h: (redisplay_calculate_display_boxes): Change prototype.
5394         * redisplay-output.c (redisplay_calculate_display_boxes): Use yoffset.
5395         * redisplay-msw.c (mswindows_output_blank): Pass 0 as yoffset.
5396         * redisplay-msw.c (mswindows_output_string): Likewise.
5397         * redisplay-msw.c (mswindows_output_display_block): Pass yoffset.
5398         * redisplay-gtk.c (gtk_output_display_block): Likewise.
5399         * redisplay-x.c (x_output_display_block): Likewise.
5400
5401 2002-03-28  Ben Wing  <ben@xemacs.org>
5402
5403         * redisplay.c: Fixed bug in redisplay
5404         w.r.t. hscroll/truncation/continuation glyphs causing jumping up
5405         and down of the lines, since they're bigger than the line
5406         size. (It was seen most obviously when there's a horizontal scroll
5407         bar, e.g. do C-h a glyph or something like that.) The problem was
5408         that the glyph-contrib-p setting on glyphs was ignored even if it
5409         was set properly, which it wasn't until now.
5410
5411 2002-04-24  Andy Piper  <andy@xemacs.org>
5412
5413         * lisp.h (Dynarr_end): Fix definition.
5414
5415 2002-02-06  Adrian Aichner  <adrian@xemacs.org>
5416
5417         * redisplay.c (mark_redisplay): Remove call to
5418         update_frame_window_mirror.
5419
5420 2001-11-15  Andy Piper  <andy@xemacs.org>
5421
5422         * win32.c (Fmswindows_shell_execute): fix handling of URL's under
5423         cygwin (again).
5424
5425 2002-02-13  Andy Piper  <andy@xemacs.org>
5426
5427         * event-msw.c (mswindows_wnd_proc): only mark the frame visible if
5428         we did in fact enqueue the XM_MAPFRAME event.
5429
5430 2002-01-15  Adrian Aichner  <adrian@xemacs.org>
5431
5432         * event-msw.c (mswindows_wnd_proc): Add handling of WM_SHOWWINDOW
5433         to fix problem switching between virtual desktops under virtuawin
5434         virtual window manager.
5435
5436 2001-07-30  Adrian Aichner  <adrian@xemacs.org>
5437
5438         * event-msw.c: Typo fix.
5439         * event-msw.c (mswindows_wnd_proc): Set FRAME_VISIBLE_P after
5440         magic XM_MAPFRAME event has been sent.
5441
5442 2001-11-23  Andy Piper  <andy@xemacs.org>
5443
5444         * event-msw.c (mswindows_wnd_proc): Don't pump mousewheel events.
5445
5446 2001-11-21  Andy Piper  <andy@xemacs.org>
5447
5448         * scrollbar-msw.c (mswindows_handle_mousewheel_event): cope with
5449         mouse events outside the frame.
5450
5451 2002-03-20  Andy Piper  <andy@xemacs.org>
5452
5453         * menubar-msw.c (mswindows_popup_menu): warning removal.
5454         * dialog-msw.c (dialog_popped_down): ditto.
5455
5456 2001-12-11  Andy Piper  <andy@xemacs.org>
5457
5458         * dialog-msw.c (dialog_popped_down): new function. unset popup_up_p.
5459         * dialog-msw.c (mswindows_make_dialog_box_internal): set
5460         popup_up_p.
5461         * menubar-msw.c (unsafe_handle_wm_initmenupopup_1): ditto.
5462         * menubar-msw.c (mswindows_handle_wm_command): ditto.
5463         * menubar-msw.c (mswindows_popup_menu): ditto.
5464
5465 2001-10-29  Andy Piper  <andy@xemacs.org>
5466
5467         * dialog-msw.c (handle_directory_dialog_box): quit if the user
5468         cancels.
5469
5470 2002-01-03  Andy Piper  <andy@xemacs.org>
5471
5472         * realpath.c (ABS_LENGTH): dtrt for cygwin systems using drive
5473         letters.
5474         (xrealpath): ditto.
5475
5476 2002-03-29  Jonathan Harris  <jonathan@xemacs.org>
5477
5478         * device-msw.c (plist_get_margin): Add arg specifying mm or inches
5479         * device-msw.c (plist_set_margin): Fix multiplicand used for mm
5480         * device-msw.c (mswindows_handle_page_setup_dialog_box):
5481         Detect and handle case where machine is set up for metric units
5482
5483 2002-04-02  Andy Piper  <andy@xemacs.org>
5484
5485         * dired-msw.c (mswindows_get_files): 
5486         * nt.c (mswindows_stat): SetErrorMode() so that file errors are
5487         completely handled by XEmacs. Suggested by Thomas Vogler
5488         <mail@thomas-vogler.de>.
5489
5490 2001-11-14  Andy Piper  <andy@xemacs.org>
5491
5492         * nt.c (REG_ROOT): change registry key to XEmacs.
5493
5494 2002-04-27  Andy Piper  <andy@xemacs.org>
5495
5496         * glyphs-msw.c (mswindows_widget_instantiate): remove dead-code.
5497
5498 2002-04-26  Andy Piper  <andy@xemacs.org>
5499
5500         * glyphs-msw.c (mswindows_map_subwindow): observe :initial-focus
5501         behavior.
5502
5503 2002-03-14  Mike Alexander  <mta@arbortext.com>
5504
5505         * event-msw.c (mswindows_unwait_process): New, remove process from
5506         wait list
5507         * process-nt.c (nt_finalize_process_data): Call
5508         mswindows_unwait_process
5509         * console-msw.h: Declare mswindows_unwait_process
5510
5511 2002-05-14  Stephen J. Turnbull  <stephen@xemacs.org>
5512
5513         * editfns.c (Fdecode_time):
5514         (Fformat_time_string):
5515         Check for invalid time.  Thanks to Nick Pakoulin <npak@ispras.ru>.
5516         (make_time): Warning elimination (change arg name).
5517
5518 2001-11-24  Andy Piper  <andy@xemacs.org>
5519
5520         * window.c (Fsplit_window): Doc return type.
5521
5522 2002-04-01  Andy Piper  <andy@xemacs.org>
5523
5524         * emacs.c (Fkill_emacs): Only output message box in interactive
5525         mode.
5526
5527 2002-04-26  Andy Piper  <andy@xemacs.org>
5528  
5529         * config.h.in: pull in 21.5.x change to stop alloca warnings under
5530         cygwin.
5531
5532 2002-03-18  Gregory Steuck  <greg-xemacs-patch@nest.cx>
5533
5534         * unexelf.c:  Use ELFSIZE or define from _LP64 to indicate a 64
5535         bit platform.
5536
5537 2002-05-09  Stephen J. Turnbull  <stephen@xemacs.org>
5538
5539         * XEmacs 21.4.8 "Honest Recruiter" is released.
5540
5541 2002-05-07  Nix  <nix@esperi.demon.co.uk>
5542
5543         Supersedes 2002-04-17 patch.
5544
5545         * process.h (PROCESS_LIVE_P): Use the process status as
5546         evidence of health, not the state of the input stream.
5547         (PROCESS_READABLE_P): Say if the process is readable
5548         from. (It may be dead nonetheless.)
5549         (CHECK_READABLE_PROCESS): Test for that condition.
5550
5551         * process.c (create_process): Use PROCESS_READABLE_P.
5552         (read_process_output, set_process_filter): Likewise.
5553
5554         * process.c (Fprocess_input_coding_system): Use CHECK_READABLE_PROCESS.
5555         (Fset_process_input_coding_system, Fprocess_coding_system): Likewise.
5556
5557         This code is #if 0'd, this is not the time to add new functions:
5558
5559         * process.c (Fprocess_readable_p): Report readability status.
5560         * process.c (Qprocess_readable_p): New, associated symbol...
5561         * process.c (syms_of_process): ... initialize it.
5562
5563 2002-05-04  Stephen J. Turnbull  <stephen@xemacs.org>
5564
5565         * XEmacs 21.4.7 "Economic Science" is released.
5566
5567 2002-04-17  Nix  <nix@esperi.demon.co.uk>
5568
5569         * process.h (PROCESS_LIVE_P): Use the process status as
5570         evidence of health, not the state of the input stream.
5571
5572 2002-04-30  Charles G. Waldman <cgw@xemacs.org>
5573
5574         * sysdep.c (sys_siglist): change "signum" to "signal"
5575
5576 2001-04-21  Martin Buchholz  <martin@xemacs.org>
5577
5578         * s/darwin.h: New file.
5579         Thanks to Greg Parker <gparker@cs.stanford.edu>.
5580         
5581 2002-04-23  Andreas Jaeger  <aj@suse.de>
5582
5583         * s/linux.h (LIB_STANDARD): Define correctly for x86-64 and s390x
5584         which use lib64 for 64-bit libs.
5585         (START_FILES): Likewise.
5586
5587 2002-02-11  Mike Sperber  <mike@xemacs.org>
5588
5589         * device-x.c: 
5590         (x_IO_error_handler):
5591         (x_init_device): Temporarily keep device in static variable
5592         `device_being_initialized' so we can recover gracefully from
5593         internal XOpenDevice failure.  (XOpenDevice is documented to
5594         return NULL on failure, but sometimes calls the IO error handler
5595         instead.)
5596
5597 2002-01-31  John H. Palmieri  <palmieri@math.washington.edu>
5598
5599         * dired.c (Ffile_name_all_completions): Change documentation --
5600         remove reference to completion-ignored-extensions.
5601         * dired.c (vars_of_dired): Change documentation for
5602         completion-ignored-extensions -- remove reference to
5603         file-name-all-completions.
5604
5605 2002-03-06  Jerry James  <james@xemacs.org>
5606
5607         * emodules.c (emodules_load): Fix multiple loading of same module.
5608
5609 2002-01-25  Andrew Begel <abegel@cs.berkeley.edu>
5610         * sysdll.c (dll_open): Changed to use RTLD_NOW instead of
5611         RTLD_LAZY to avoid incorrect symbol binding when using nested
5612         shared libraries on Solaris.
5613
5614 2002-02-12  Stephen J. Turnbull  <stephen@xemacs.org>
5615
5616         * fileio.c (Ffind_file_name_handler): Improve docstring.
5617
5618 2002-01-20  Stephen J. Turnbull  <stephen@xemacs.org>
5619
5620         * fns.c (Fmapconcat): Improve docstring.
5621
5622 2002-01-03  Eric Gillespie, Jr.  <epg@pretzelnet.org>
5623
5624         * device-gtk.c: Add prototype for
5625         emacs_gtk_selection_clear_event_handle.
5626         (gtk_init_device): Call gtk_selection_add_target for CLIPBOARD
5627         selection.  Setup signal handler for "selection_clear_event"
5628         (emacs_gtk_selection_clear_event_handle).
5629
5630         * select-gtk.c (emacs_gtk_selection_clear_event_handle): Handle
5631         other applications owning the clipboard (based on
5632         x_handle_selection_clear).
5633
5634 2001-12-23  William M. Perry  <wmperry@gnu.org>
5635
5636         * menubar-gtk.c (gtk_popup_menu)  Add sanity checks, fix crash.
5637         
5638 2002-01-04  Martin Buchholz  <martin@xemacs.org>
5639
5640         * keymap.c (define_key_alternate_name): Parenthesize EQ.
5641
5642 2001-12-17  Stephen J. Turnbull  <stephen@xemacs.org>
5643
5644         * XEmacs 21.4.6 "Common Lisp" is released.
5645
5646 2001-12-16  Torsten Duwe  <duwe@caldera.de>
5647
5648         * search.c (Freplace_match): Add missing sub-expression functionality.
5649
5650         * buffer.c (decode_buffer): Add a check for pointer type to
5651         decode_buffer, before gcc's CSE optimization reorders a
5652         dereference in front of the allow_string test.
5653
5654 2001-11-16  Darryl Okahata  <darrylo@xemacs.org>
5655
5656         * window.c (window_loop): Fix bug that sometimes prevented
5657         window_loop() from iterating across multiple devices.  Also, at
5658         Ben's request, changed infloop-detecting code to abort() instead
5659         of silently terminating window_loop().
5660
5661 2001-11-21  Stephen J. Turnbull  <stephen@xemacs.org>
5662
5663         Based on analysis and patch by Simon Josefson <jas@extundo.com>.
5664         * editfns.c (make_time): New function.
5665         (Fencode_time): Use it instead of wasteful_word_to_lisp.
5666         * lisp.h (make_time): Prototype and comment it.
5667         * dired.c (wasteful_word_to_lisp): Deprecate.
5668         (Ffile_attributes): Use make_time() instead of wasteful_word_to_lisp().
5669
5670 2001-10-31  Kyle Jones  <kyle_jones@wonderworks.com>
5671
5672         * fileio.c (auto_save_1): Use current coding system, not
5673         escape-quoted.
5674
5675 2001-11-13  Ben Wing  <ben@xemacs.org>
5676
5677         * window.c:
5678         * window.c (window_truncation_on):
5679         * window.c (syms_of_window):
5680         truncate-partial-width-windows should respect the buffer being
5681         displayed, like other redisplay vars.
5682
5683 2001-11-13  Hirokazu FUKUI  <hfukui@sannet.ne.jp>
5684
5685         * event-stream.c (Fread_key_sequence): save current buffer.
5686
5687 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
5688
5689         * ntheap.c (_heap_init): Don't redefine in VS.NET (MSC >= 1300).
5690
5691 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
5692
5693         * alloc.c (lcrecord_stats): Add space for types defined in modules.
5694
5695 2001-10-26  Mike Alexander  <mta@arbortext.com>
5696
5697         * event-msw.c (slurper_free_shared_data_maybe): Free the pipe handle.
5698
5699 2001-10-25  Andy Piper  <andy@xemacs.org>
5700
5701         * ChangeLog:
5702         * dialog-msw.c (handle_directory_proc): new function.
5703          (handle_directory_dialog_box): new fucntion.
5704          (handle_file_dialog_box): use new directory dialog support.
5705          (mswindows_make_dialog_box_internal): ditto.
5706         * event-msw.c (mswindows_wnd_proc): minor fix to scrollbar event
5707         handling.
5708         (mswindows_find_frame): make global.
5709         * fileio.c (Fexpand_file_name): build fix.
5710         * general-slots.h: add Qdirectory.
5711         * scrollbar-msw.c (mswindows_handle_scrollbar_event): fix focus
5712         handling.
5713         * syswindows.h (LOCAL_TO_WIN32_FILE_FORMAT): fix problem with
5714         cygwin not leaving win32 paths unchanged.
5715         * win32.c (Fmswindows_cygwin_to_win32_path): new function. Use the
5716         cygwin runtime to do path conversion.
5717         (Fmswindows_shell_execute): fix cygwin handling of URLs.
5718         (syms_of_win32): add new function.
5719         * window.c (window_loop): build fix.
5720
5721 2001-10-15  Andy Piper  <andy@xemacs.org>
5722
5723         (Fmswindows_shell_execute): fix handling of URL's under cygwin.
5724
5725 2001-10-23  Stephen J. Turnbull  <stephen@xemacs.org>
5726
5727         * XEmacs 21.4.5 "Civil Service" is released.
5728
5729 2001-04-08  Danny Colascione  <qtmstr@optonline.net>
5730
5731         * glyphs-x.c: Force buffer-tab highlight update when moving the
5732         buffer, avoiding an ugly black border, used for keyboard focus
5733         indication, on a widget that can never have keyboard focus, the
5734         buffer tab.
5735
5736 2001-08-30  Daiki Ueno  <ueno@unixuser.org>
5737
5738         * process-unix.c (unix_open_multicast_group): Remove too much
5739         conversion between host and network byte order.
5740
5741 2001-09-10  Nix  <nix@esperi.demon.co.uk>
5742
5743         * src/buffer.c (kill_buffer): Undedicate windows showing BUF
5744         before replacing them.
5745
5746         * src/window.c (window_loop): Implement new UNDEDICATE_BUFFER
5747         operation.
5748
5749         * src/window.c (undedicate_windows): Use it.
5750         * src/window.h: Add prototype.
5751
5752 2001-09-17  Ben Wing  <ben@xemacs.org>
5753
5754         * fileio.c (normalize_filename):
5755         * fileio.c (Fexpand_file_name):
5756         Fix various C++ compile errors in Andy's recent code.
5757         
5758         * callint.c (Fcall_interactively):
5759         * editfns.c (Ftemp_directory):
5760         * editfns.c (Fuser_full_name):
5761         * emacs.c (argmatch):
5762         * lread.c (locate_file_map_suffixes):
5763         * redisplay-x.c (x_ring_bell):
5764         Fix sign-compare warnings.
5765         
5766 2001-09-08  Andy Piper  <andy@xemacs.org>
5767
5768         * fileio.c (normalize_filename): copied from nt.c
5769         * (Ffile_name_directory): enable win32 paths under cygwin.
5770         * (Ffile_name_nondirectory): ditto.
5771         * (directory_file_name): ditto.
5772         * (Fexpand_file_name): ditto.
5773         * (Ffile_truename): ditto.
5774         * (Fsubstitute_in_file_name): ditto.
5775         * (Ffile_name_absolute_p): ditto.
5776         * (Ffile_readable_p): ditto.
5777
5778 2001-09-08  Andy Piper  <andy@xemacs.org>
5779
5780         * device-msw.c (mswindows_finish_init_device): remove dde
5781         initialization.
5782         * device-msw.c (mswindows_init_dde): factor out from
5783         mswindows_finish_init_device()
5784         * device-msw.c (init_mswindows_very_early): new function
5785         initialize but don't enable dde.
5786         * emacs.c (main_1): call init_mswindows_very_early.
5787         * event-msw.c:
5788         * event-msw.c (mswindows_dde_callback): only execute when we are
5789         ready.
5790         * symsinit.h: declare init_mswindows_very_early.
5791
5792 2001-05-02  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
5793
5794         [sjt: This has been in 21.5 for months with no complaints.]
5795
5796         * console.h (struct console_methods): Added flags member.
5797         (CONSOLE_IMPLEMENTATION_FLAGS): Defined.
5798         (CONMETH_IMPL_FLAG):
5799         (CONSOLE_IMPL_FLAG): Macro to check implememntation flags.
5800         Defined XDEVIMPF_DONT_PREEMPT_REDISPLAY.
5801
5802         * device.c (window_system_pixelated_geometry): Use the above macros.
5803
5804         * device.h (DEVICE_IMPL_FLAG): Macro to check a device
5805         implememntation flag.
5806         * device.h (DEVICE_DISPLAY_P): Use it.
5807
5808         * frame.c (delete_frame_internal): Use the above macro.
5809
5810         * redisplay.c (redisplay_device): Use it.
5811         (redisplay_device): Obey XDEVIMPF_DONT_PREEMPT_REDISPLAY.
5812         (redisplay_frame): Ditto.
5813
5814         * device-msw.c (mswindows_device_implementation_flags): Removed.
5815         (msprinter_device_implementation_flags): Removed.
5816         (console_type_create_device_mswindows): Removed references to
5817         implementation_flags methods, set implementation flags here.
5818         (console_type_create_device_mswindows): Added XDEVIMPF_DONT_PREEMPT.
5819
5820         * device-gtk.c (gtk_device_implementation_flags): Removed method.
5821         (console_type_create_device_gtk): Removed method declaration.
5822         Added commented out statement which semantically matches the
5823         commented out statement in the above removed method.
5824
5825 2001-04-14  Gordon Sadler  <gbsadler1@lcisp.com>
5826
5827         The attached patch fixes a few warnings. 
5828
5829         * src/emacs.c: prototype console_type_create_select_gtk for GTK only
5830         * src/frame-gtk.c: guard against GNOME calls in GTK only
5831         * src/redisplay-gtk.c: include <sys/poll.h> #ifdef HAVE_POLL
5832         * src/select-gtk.c: prototype lisp_to_time
5833
5834 2001-06-08  Ben Wing  <ben@xemacs.org>
5835
5836         ------ gc-in-window-procedure fixes ------
5837         
5838         * alloc.c:
5839         * alloc.c (struct post_gc_action):
5840         * alloc.c (register_post_gc_action):
5841         * alloc.c (run_post_gc_actions):
5842         * alloc.c (garbage_collect_1):
5843         Create "post-gc actions", to avoid those dreaded "GC during window
5844         procedure" problems.
5845
5846         * event-msw.c:
5847         Abort, clean and simple, when GC in window procedure.  We want
5848         to flush these puppies out.
5849
5850         * glyphs-msw.c:
5851         * glyphs-msw.c (finalize_destroy_window):
5852         * glyphs-msw.c (mswindows_finalize_image_instance):
5853         Use a post-gc action when destroying subwindows.
5854
5855         * lisp.h:
5856         Declare register_post_gc_action().
5857
5858         * scrollbar-msw.c:
5859         * scrollbar-msw.c (unshow_that_mofo):
5860         Use a post-gc action when unshowing scrollbar windows, if in gc.
5861
5862         * redisplay.c (mark_redisplay):
5863         Add comment about the utter evilness of what's going down here.
5864
5865         ------ cygwin setitimer fixes ------
5866         
5867         * Makefile.in.in (sheap_objs):
5868         * Makefile.in.in (profile_objs):
5869         * Makefile.in.in (objs):
5870         Compile profile.c only when HAVE_SETITIMER.
5871         
5872         * nt.c (mswindows_sigset):
5873         * nt.c (mswindows_sighold):
5874         * nt.c (mswindows_sigrelse):
5875         * nt.c (mswindows_sigpause):
5876         * nt.c (mswindows_raise):
5877         * nt.c (close_file_data):
5878         Style fixes.
5879         
5880         * nt.c:
5881         Move setitimer() emulation to win32.c, because Cygwin needs it too.
5882         
5883         * profile.c:
5884         * profile.c (Fstart_profiling):
5885         * profile.c (Fstop_profiling):
5886         Make sure we don't compile if no setitimer().  Use qxe_setitimer()
5887         instead of just plain setitimer().
5888         
5889         * signal.c:
5890         * signal.c (set_one_shot_timer):
5891         * signal.c (alarm):
5892         Define qxe_setitimer() as an encapsulation around setitimer() --
5893         call setitimer() directly unless Cygwin or MS Win, in which case
5894         we use our simulated version in win32.c.
5895         
5896         * systime.h:
5897         * systime.h (struct itimerval):
5898         * systime.h (ITIMER_REAL):
5899         Prototype mswindows_setitimer() and qxe_setitimer().  Long
5900         comment about "qxe" and the policy regarding encapsulation.
5901
5902         * win32.c:
5903         * win32.c (setitimer_helper_proc):
5904         * win32.c (setitimer_helper_period):
5905         * win32.c (setitimer_helper):
5906         * win32.c (mswindows_setitimer):
5907         Move setitimer() emulation here, so Cygwin can use it.
5908         Rename a couple of functions and variables to be longer and more
5909         descriptive.  In setitimer_helper_proc(), send the signal
5910         using either mswindows_raise() or (on Cygwin) kill().  If for
5911         some reason we are still getting lockups, we'll change the kill()
5912         to directly invoke the signal handlers.
5913
5914         ------ windows shell fixes ------
5915         
5916         * callproc.c:
5917         * ntproc.c:
5918         Comments about how these two files must die.
5919
5920         * callproc.c (init_callproc):
5921         On MS Windows, init shell-file-name from SHELL, then COMSPEC,
5922         not just COMSPEC. (more correct and closer to FSF.) Don't
5923         force a value for SHELL into the environment. (Comments added
5924         to explain why not.)
5925         
5926         * nt.c (init_user_info):
5927         Don't shove a fabricated SHELL into the environment.  See above.
5928
5929 2001-06-01  Ben Wing  <ben@xemacs.org>
5930
5931         * Makefile.in.in (ldflags):
5932         eliminate that pesky "defaulting to 00401000" warning.
5933         * nt.h:
5934         eliminate warnings.
5935
5936 2001-06-15  Golubev I. N.  <gin@mo.msk.ru>
5937
5938         * s/sco5.h (FORCE_ALLOCATE_PTY_THE_OLD_FASHIONED_WAY): #define.
5939         * process-unix.c (allocate_pty): #ifndef "modern" pty allocation.
5940
5941 2001-04-24  Jerry James <james@xemacs.org>
5942
5943         * faces.h: pass parameters to Fadd_spec_to_specifier in the
5944         correct order.
5945
5946 2001-06-01  Ben Wing  <ben@xemacs.org>
5947
5948         * event-msw.c (debug_mswin_messages):
5949         conditionalize the messages that were causing compile errors.
5950         (if only macros could generate #ifdef statements ...)
5951
5952 2001-07-28  Stephen J. Turnbull  <stephen@xemacs.org>
5953
5954         * XEmacs 21.4.4 "Artificial Intelligence" is released.
5955
5956 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
5957
5958         * event-msw.c (mswindows_wnd_proc): Add GC debugging assert.
5959
5960 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
5961
5962         * config.h.in (IPV6_CANONICALIZE): New #define for --with-ipv6-lookup.
5963         * process-unix.c (unix_canonicalize_host_name):
5964         sysdep.c (init_system_name):
5965         Use it to conditionally support IPv6 canonicalization.
5966
5967 2001-05-31  Paul Stodghill  <stodghil@cs.cornell.edu>
5968
5969         * event-msw.c:
5970         Cygwin does not define WM_IME_xxx. Modify the #if's accordingly.
5971
5972 2001-05-19  Paul Krause  <paulkrause1@mediaone.net>
5973
5974         * scrollbar-msw.c: Fixes a crash that occurs on Windows when an
5975         attempt is made to scroll when no scroll bar is available.
5976
5977 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
5978
5979         * input-method-motif.c (XIM_delete_frame): New callback.
5980         (XIM_init_frame): Register it.  (Reapplied by SJT, it somehow
5981         got deleted from 21.4.3.)
5982
5983 2001-06-01  Ben Wing  <ben@xemacs.org>
5984
5985         * nt.c (mswindows_utime):
5986         * nt.c (close_file_data):
5987         fix off-by-one-indirection error.
5988
5989 2001-05-29  Adrian Aichner  <adrian@xemacs.org>
5990
5991         * fileio.c: Include nt.h.  Remove lisp_string_set_file_times()
5992         because set_file_times() now takes Lisp_Object path, instead of
5993         char*.
5994         * nt.c: Include buffer.h.
5995         * nt.c (convert_from_time_t): New.
5996         * nt.c (mswindows_utime): New.  Use utime, since SetFileTime does
5997         not set mtime correctly.
5998         * nt.h: Declare mswindows_utime().
5999         * sysdep.c (set_file_times): set_file_times() now takes Lisp_Object
6000         path, instead of char*.
6001         * systime.h: Include <sys/utime.h> on WIN32_NATIVE.
6002
6003 2001-05-30  Ben Wing  <ben@xemacs.org>
6004
6005         For 21.4:
6006
6007         (Stephen, just take all event-msw.c patches.  This includes
6008         the "iconify" fix below.)
6009
6010         * event-msw.c:
6011         * event-msw.c (mswindows_dequeue_dispatch_event):
6012         * event-msw.c (assert):
6013         * event-msw.c (emacs_mswindows_quit_p):
6014         * event-msw.c (debug_mswin_messages):
6015         * event-msw.c (debug_output_mswin_message):
6016         * event-msw.c (vars_of_event_mswindows):
6017         Fix yet more problems with C-g handling.
6018         Implement debug-mswindows-events.
6019         
6020 2001-05-24  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
6021
6022         * event-msw.c (WM_DROPFILES): Use correct type for OLE characters.
6023         
6024 2001-05-23  Ben Wing  <ben@xemacs.org>
6025
6026         * event-msw.c (winsock_writer):
6027         * event-msw.c (winsock_closer):
6028         prior kludgy code was clobbering the buffer, thinking it was
6029         "unused" space to store an unneeded return value; instead, use
6030         the variable we've already got staring us in the face.
6031
6032 2001-05-17  Andy Piper  <andy@xemacs.org>
6033
6034         * sysfile.h: don't assume that file attributes are boolean
6035
6036 2001-05-23  Ben Wing  <ben@xemacs.org>
6037
6038         * device-msw.c (msprinter_init_device):
6039         signal an error rather than crash with an unavailable network
6040         printer (from Mike Alexander).
6041         
6042         * event-msw.c:
6043         * event-msw.c (struct winsock_stream):
6044         * event-msw.c (winsock_writer):
6045         * event-msw.c (winsock_closer):
6046         * event-msw.c (make_winsock_stream_1):
6047         cleanup headers.  fix (hopefully) an error with data corruption
6048         when sending to a network connection.
6049
6050         * fileio.c (Fexpand_file_name): Fix evil code that attempts
6051         to handle the ~user prefix by (a) always assuming we're referencing
6052         ourselves and not even verifying the user -- hence any file with
6053         a tilde as its first char is invalid! (b) if there wasn't a slash
6054         following the filename, the pointer was set *past* the end of
6055         file and we started reading from uninitialized memory.  Now we
6056         simply treat these as files, always.
6057
6058         * buffer.c (common_init_complex_vars_of_buffer): comment change.
6059         
6060 2001-05-19  Ben Wing  <ben@xemacs.org>
6061
6062         * eval.c: doc comment about gcpro'ing in record_unwind_protect.
6063
6064         * process-nt.c:
6065         * process-nt.c (vars_of_process_nt):
6066         remove unused mswindows-quote-process-args.  rec for 21.4.
6067         
6068 2001-05-12  Ben Wing  <ben@xemacs.org>
6069
6070         * event-msw.c (mswindows_dde_callback):
6071         * event-msw.c (mswindows_wnd_proc):
6072         eliminate cygwin warnings.
6073
6074 2001-05-06  Ben Wing  <ben@xemacs.org>
6075
6076         * console-msw.h:
6077         * device-msw.c:
6078         * device-msw.c (print_dialog_worker):
6079         * device-msw.c (mswindows_handle_print_dialog_box):
6080         * device-msw.c (syms_of_device_mswindows):
6081         * dialog-msw.c (mswindows_make_dialog_box_internal):
6082         * general-slots.h:
6083         implement printing the selection when it's selected.
6084
6085 2001-05-20  Drazen Kacar  <dave@arsdigita.com>
6086
6087         * glyphs-gtk.c (gtk_resource_instantiate): C++ comment -> #if 0
6088
6089 2001-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
6090
6091         * lisp.h (EMACS_INT_MAX): This should be one bit less since
6092         EMACS_INT is signed.
6093
6094 2001-04-15  Michael Lausch  <mla@1012surf.net>
6095
6096         * scrollbar-gtk.c (gtk_create_scrollbar_instance): Call
6097         gtk_widget_request_size() to give scrollbar >0 width for
6098         GTK >1.2.8.
6099
6100 2001-05-30  William M. Perry  <wmperry@gnu.org>
6101
6102         * event-gtk.c: Check for buttons as modifier keys.
6103
6104 2001-05-25  Craig Lanning  <CraigL@Knology.net>
6105
6106         * s\mingw32.h:
6107         Properly find MinGW's <process.h> inside Cygwin's restructured
6108         include directories.  Don't try to include <cygwin/version.h>
6109         since we are dropping support for MinGW in versions of Cygwin
6110         earlier than b21.
6111         * nt.c:
6112         Drop support for MinGW in versions of Cygwin before b21.
6113         * sysdep.c:
6114         Properly find MinGW's <process.h> inside Cygwin's restructured
6115         include directories.
6116         * syswindows.h:
6117         Drop support for MinGW in versions of Cygwin before b21.
6118         * unexcw.c:
6119         Even though a.out.h is no longer detected by configure, allow
6120         MinGW to use it until we figure out how to do the job with Win32.
6121
6122 2001-07-11  Matt Tucker  <tuck@whistlingfish.net>
6123
6124         * syntax.c (find_start_of_comment):
6125         Fix `unbalanced parentheses' bug when dealing with mixed comment
6126         styles in c++/java/etc. mode
6127
6128 2001-05-29  Mike Alexander  <mta@arbortext.com>
6129
6130         * console-msw.h (FRAME_MSPRINTER_CHARHEIGHT): Unswap
6131         FRAME_MSPRINTER_CHARWIDTH and FRAME_MSPRINTER_CHARHEIGHT
6132
6133 2001-05-17  Andrew Begel  <abegel@eecs.berkeley.edu>
6134
6135         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Add needed cast.
6136
6137 2001-03-31  Mike Sperber <mike@xemacs.org>
6138
6139         * search.c (Freplace_match): Support FSF-style specification of
6140         match subexpression when applied to a buffer.
6141
6142 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
6143
6144         * event-stream.c (is_scrollbar_event): add missing semicolon
6145
6146 2001-05-22  Isaac Hollander  <ysh@mindspring.com>
6147
6148         * Makefile.in.in: Use TAR macro instead of hardcoding
6149           tar.  Allows use of GNU tar instead of system tar
6150
6151 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
6152
6153         * event-stream.c (is_scrollbar_event): add missing semicolon
6154
6155 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
6156
6157         * XEmacs 21.4.3 "Academic Rigor" is released.
6158
6159 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
6160
6161         * regex.c: Define DECLARE_NOTHING when "lisp.h" is not included.
6162
6163 2001-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
6164
6165         * buffer.c (Vcase_fold_search): Remove obsolete
6166           comment about non ASCII case-fold-search.  This
6167           bug has been fixed by case-table changes.
6168
6169 2001-05-11  Stephen J. Turnbull  <stephen@xemacs.org>
6170
6171         * event-msw.c: Restore include of events-mod.h.
6172
6173 2001-04-22   zhaoway  <zw@debian.org>
6174
6175         * event-stream.c (is_scrollbar_event): Noop returning 0 if
6176         !HAVE_SCROLLBARS.
6177
6178 2001-05-10  Stephen J. Turnbull  <stephen@xemacs.org>
6179
6180         * XEmacs 21.4.2 "Developer-Friendly Unix APIs" is released.
6181
6182 2001-05-08  Yoshiaki Kasahara  <kasahara@nc.kyushu-u.ac.jp>
6183
6184         * mule-charset.c (Fmake_charset): Add missing else.
6185
6186 2001-04-23  Ben Wing  <ben@xemacs.org>
6187
6188         * event-msw.c (FAKE_MOD_QUIT):
6189         * event-msw.c (mswindows_dequeue_dispatch_event):
6190         * event-msw.c (mswindows_wnd_proc):
6191         * event-msw.c (emacs_mswindows_quit_p):
6192         Get critical quit working.
6193
6194 2001-05-05  Ben Wing  <ben@xemacs.org>
6195
6196         * console-msw.h:
6197         * device-msw.c:
6198         * device-msw.c (mswindows_get_default_margin):
6199         * frame-msw.c (mswindows_size_frame_internal):
6200         * frame-msw.c (msprinter_init_frame_1):
6201         * frame-msw.c (vars_of_frame_mswindows):
6202         Change top/bottom margin defaults to 0.5 inches.
6203
6204 2001-05-01  Martin Buchholz  <martin@xemacs.org>
6205
6206         Fix link error with gcc 3.0 on Linux.
6207         * terminfo.c (UP): Remove.
6208         * terminfo.c (BC): Remove.
6209         * terminfo.c (PC): Remove.
6210         They weren't used, and in any case, these symbols should be
6211         defined in the *library*.
6212
6213 2001-05-03  Martin Buchholz  <martin@xemacs.org>
6214
6215         * s/aix4.h: Fix crash with xlc -O3.
6216         Improve comment explaining how -O3 works.
6217
6218 2001-04-15  Ben Wing  <ben@xemacs.org>
6219
6220         * event-stream.c:
6221         * event-stream.c (Fnext_event):
6222         * event-stream.c (is_scrollbar_event):
6223         * event-stream.c (execute_command_event):
6224         Better fix for Yoshiki's `C-x @ h <scrollbar-drag> x causes a
6225         crash' problem.  His fix introduces other problems.  We filter
6226         out scrollbar events specifically, making them somewhat invisible
6227         to command-building, and not appearing in `this-command-keys'.
6228         More work is still needed (see comments in event-stream.c), but
6229         this fixes all the major problems.
6230
6231 2001-04-20  Ben Wing  <ben@xemacs.org>
6232
6233         * .cvsignore: Added stuff for Windows.
6234
6235 2001-04-28  Ben Wing  <ben@xemacs.org>
6236
6237         * buffer.c (Ferase_buffer):
6238         * editfns.c (buffer_insert1):
6239         * editfns.c (Finsert_before_markers):
6240         * editfns.c (Finsert_string):
6241         * editfns.c (Finsert_char):
6242         * editfns.c (Fdelete_region):
6243         * editfns.c (Fwiden):
6244         * editfns.c (Fnarrow_to_region):
6245         remove bogus lines setting zmacs_region_stays to 0.
6246         
6247 2001-04-15  Gunnar Evermann  <ge204@eng.cam.ac.uk>
6248
6249         * process-unix.c (unix_open_network_stream): If connect() fails
6250         invalidate file descriptor after closing it.
6251
6252 2001-03-08  Mike Alexander  <mta@arbortext.com>
6253
6254         * event-msw.c (mswindows_need_event_in_modal_loop):
6255         Don't dispatch a message if we didn't get one.
6256         (mswindows_need_event):
6257         Terminate the correct process when one exits instead of the first
6258         one on Vprocess_list and look for process termination when in
6259         mswindows_protect_modal_loop.
6260
6261 2001-04-19  Stephen J. Turnbull  <stephen@xemacs.org>
6262
6263         * XEmacs 21.4.1 "Copyleft" is released.
6264
6265 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
6266
6267         * input-method-motif.c (XIM_delete_frame): New callback.
6268         (XIM_init_frame): Register it.
6269
6270 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
6271
6272         * XEmacs 21.4.0 "Solid Vapor" is released.
6273
6274 2001-04-15  Ben Wing  <ben@xemacs.org>
6275
6276         * cmdloop.c (call_command_loop):
6277         Fix braino in bit-rotting code.
6278         
6279 2001-04-07  Hrvoje Niksic  <hniksic@arsdigita.com>
6280
6281         * extents.c (Fset_extent_endpoints): Force creation of extent info
6282         in buffer_or_string.
6283
6284         * extents.c (process_extents_for_insertion_mapper): Correctly
6285         check for open-open zero-length extents.
6286
6287 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
6288
6289         * lisp.h: New typedefs Memory_count, Element_count.
6290         * regex.c:
6291         * regex.h:
6292         Sign-compare warning elimination: several unsigned -> signed.
6293         Based on work by Ben Wing <ben@xemacs.org>.
6294
6295 2001-04-14  Stephen J. Turnbull  <stephen@xemacs.org>
6296
6297         * XEmacs 21.2.47 "Zephir" is released.
6298
6299 2001-04-02  Jan Vroonhof  <jan@xemacs.org>
6300
6301         * redisplay.c (add_bufbyte_string_runes): Update data->bytepos
6302
6303 2001-04-03  Mike Sperber <mike@xemacs.org>
6304
6305         * search.c: Revert previous patch due because of release.
6306
6307 2001-03-30  Ben Wing  <ben@xemacs.org>
6308
6309         * s\cygwin32.h:
6310         Add missing killpg prototype.
6311
6312         * elhash.c:
6313         Add a comment about fixing problems when a new entry is added
6314         while mapping.
6315
6316         * frame-msw.c (mswindows_init_frame_1):
6317         Fix compile warnings.
6318
6319         * menubar.c (vars_of_menubar):
6320         Provide `menu-accelerator-support' to indicate that we properly
6321         support %_ in menu specifications, so that package code can
6322         conditionalize on this (and remove %_ from menu specifications
6323         on older versions).
6324
6325         * event-msw.c:
6326         * scrollbar-msw.c:
6327         * scrollbar-msw.c (can_scroll):
6328         * scrollbar-msw.h:
6329         Fix handling of mouse wheel under Windows to follow standards --
6330         now scrolls window under pointer, not selected window.
6331
6332 2001-03-31  Mike Sperber <mike@xemacs.org>
6333
6334         * search.c (Freplace_match): Support FSF-style specification of
6335         match subexpression when applied to a buffer.
6336
6337 2001-03-15  Martin Buchholz  <martin@xemacs.org>
6338
6339         * keymap.c (Fmap_keymap): map-keymap explicitly allows a mapping
6340         function to modify KEYMAP, so map over a copy of the hash table.
6341
6342 2001-03-21  Martin Buchholz <martin@xemacs.org>
6343
6344         * XEmacs 21.2.46 "Urania" is released.
6345
6346 2001-03-20  Dan Holmsand  <dan@eyebee.com>
6347
6348         * realpath.c (xrealpath): Make file-truename work with symlinks to
6349         /cygdrive paths on cygwin. Always lowercase drive-letters on
6350         native windows.
6351         (cygwin_readlink): Don't try to find canonical filename unless
6352         file exists.
6353
6354 2001-03-15  Stephen J. Turnbull  <stephen@xemacs.org>
6355
6356         * ChangeLog: Log GTK merge.
6357
6358         * dumper.c:
6359         * select-x.c:
6360         * specifier.c:
6361         * symeval.h:
6362         Revert gratuitous whitespace changes from GTK merge.
6363
6364         * emacs.c: Document end of complex #ifdef @ l. 1495.
6365
6366
6367 2001-03-12  Andy Piper  <andy@xemacs.org>
6368
6369         * mingw32.h: unfortunately cygnus changed mingw32 -> mingw so we
6370         have to do likewise.
6371
6372 2001-03-12  Andy Piper  <andy@xemacs.org>
6373
6374         * sysdep.c: we only support mingw now.
6375
6376 2001-03-09  Andy Piper  <andy@xemacs.org>
6377
6378         * unexcw.c (copy_executable_and_dump_data_section): making approx
6379         overrun a warning only.
6380
6381 2001-03-10  William M. Perry  <wmperry@aventail.com>
6382
6383         * faces.c (complex_vars_of_faces): Rewrote the font mucking to
6384         satisfy Stephen's identical-after-cpp plea.
6385
6386 2001-03-02  Ben Wing  <ben@xemacs.org>
6387
6388         * cmds.c:
6389         * cmds.c (Fforward_char):
6390         * syntax.c:
6391         * window.c:
6392
6393         Augment documentation of the most common motion commands to make
6394         note of the shifted-motion support.
6395         
6396 2001-03-02  Ben Wing  <ben@xemacs.org>
6397
6398         * nt.c (mswindows_fstat):
6399         * nt.c (mswindows_stat):
6400         * search.c (boyer_moore):
6401         Fix compile warnings under Windows.
6402         
6403         * sysdep.c (sys_readdir):
6404         Fix buggy filename-conversion code under Mule.
6405
6406 2001-03-09  William M. Perry  <wmperry@aventail.com>
6407
6408         * Makefile.in.in:
6409         * config.h.in:
6410         * console.c:
6411         * console.h:
6412         * device.c:
6413         * device.h:
6414         * dragdrop.c:
6415         * emacs.c:
6416         * event-stream.c:
6417         * events.c:
6418         * events.h:
6419         * faces.c:
6420         * frame.h:
6421         * general-slots.h:
6422         * glyphs.c:
6423         * gutter.c:
6424         * inline.c:
6425         * lisp.h:
6426         * lrecord.h:
6427         * make-src-depend:
6428         * redisplay-output.c:
6429         * redisplay.c:
6430         * symsinit.h:
6431         * sysfile.h:
6432         * toolbar.c:
6433         * window.c:
6434         The Great GTK Merge.
6435
6436         * ChangeLog.GTK:
6437         * console-gtk.c:
6438         * console-gtk.h:
6439         * device-gtk.c:
6440         * emacs-marshals.c:
6441         * emacs-widget-accessors.c:
6442         * event-gtk.c:
6443         * frame-gtk.c:
6444         * gccache-gtk.c:
6445         * gccache-gtk.h:
6446         * glade.c:
6447         * glyphs-gtk.c:
6448         * glyphs-gtk.h:
6449         * gtk-glue.c:
6450         * gtk-xemacs.c:
6451         * gtk-xemacs.h:
6452         * gui-gtk.c:
6453         * gui-gtk.h:
6454         * menubar-gtk.c:
6455         * native-gtk-toolbar.c:
6456         * objects-gtk.c:
6457         * objects-gtk.h:
6458         * redisplay-gtk.c:
6459         * scrollbar-gtk.c:
6460         * scrollbar-gtk.h:
6461         * select-gtk.c:
6462         * toolbar-gtk.c:
6463         * ui-byhand.c:
6464         * ui-gtk.c:
6465         * ui-gtk.h:
6466         The Great GTK Merge: new files.
6467
6468 2001-02-26  Ben Wing  <ben@xemacs.org>
6469
6470         Reapplied Lstream change.
6471
6472 2001-02-26  Ben Wing  <ben@xemacs.org>
6473
6474         Undid the last change, since it is more controversial than I
6475         thought.  It should be back in at some point soon.
6476         
6477 2001-02-25  Ben Wing  <ben@xemacs.org>
6478
6479         * buffer.c:
6480         * callproc.c (Fold_call_process_internal):
6481         * event-msw.c (ntpipe_slurp_reader):
6482         * event-msw.c (ntpipe_shove_writer):
6483         * event-msw.c (winsock_reader):
6484         * event-msw.c (winsock_writer):
6485         * file-coding.c:
6486         * file-coding.c (detect_eol_type):
6487         * file-coding.c (detect_coding_type):
6488         * file-coding.c (determine_real_coding_system):
6489         * file-coding.c (Fdetect_coding_region):
6490         * file-coding.c (decoding_reader):
6491         * file-coding.c (decoding_writer):
6492         * file-coding.c (mule_decode):
6493         * file-coding.c (Fdecode_coding_region):
6494         * file-coding.c (encoding_reader):
6495         * file-coding.c (encoding_writer):
6496         * file-coding.c (mule_encode):
6497         * file-coding.c (Fencode_coding_region):
6498         * file-coding.c (detect_coding_sjis):
6499         * file-coding.c (decode_coding_sjis):
6500         * file-coding.c (encode_coding_sjis):
6501         * file-coding.c (detect_coding_big5):
6502         * file-coding.c (decode_coding_big5):
6503         * file-coding.c (encode_coding_big5):
6504         * file-coding.c (detect_coding_ucs4):
6505         * file-coding.c (decode_coding_ucs4):
6506         * file-coding.c (encode_coding_ucs4):
6507         * file-coding.c (detect_coding_utf8):
6508         * file-coding.c (decode_coding_utf8):
6509         * file-coding.c (encode_coding_utf8):
6510         * file-coding.c (detect_coding_iso2022):
6511         * file-coding.c (decode_coding_iso2022):
6512         * file-coding.c (encode_coding_iso2022):
6513         * file-coding.c (decode_coding_no_conversion):
6514         * file-coding.c (encode_coding_no_conversion):
6515         * glyphs-x.c (write_lisp_string_to_temp_file):
6516         * gpmevent.c (tty_get_foreign_selection):
6517         * lisp.h:
6518         * lstream.c:
6519         * lstream.c (Lstream_flush_out):
6520         * lstream.c (Lstream_adding):
6521         * lstream.c (Lstream_write_1):
6522         * lstream.c (Lstream_write):
6523         * lstream.c (Lstream_raw_read):
6524         * lstream.c (Lstream_read_more):
6525         * lstream.c (Lstream_read):
6526         * lstream.c (Lstream_unread):
6527         * lstream.c (Lstream_fputc):
6528         * lstream.c (stdio_reader):
6529         * lstream.c (stdio_writer):
6530         * lstream.c (filedesc_reader):
6531         * lstream.c (filedesc_writer):
6532         * lstream.c (lisp_string_reader):
6533         * lstream.c (struct fixed_buffer_stream):
6534         * lstream.c (make_fixed_buffer_input_stream):
6535         * lstream.c (make_fixed_buffer_output_stream):
6536         * lstream.c (fixed_buffer_reader):
6537         * lstream.c (fixed_buffer_writer):
6538         * lstream.c (struct resizing_buffer_stream):
6539         * lstream.c (resizing_buffer_writer):
6540         * lstream.c (dynarr_writer):
6541         * lstream.c (lisp_buffer_reader):
6542         * lstream.c (lisp_buffer_writer):
6543         * lstream.h:
6544         * lstream.h (lstream_implementation):
6545         * lstream.h (struct lstream):
6546         * md5.c (Fmd5):
6547         * process-nt.c (nt_send_process):
6548         * process-unix.c (unix_send_process):
6549         
6550         Correct Lstream lossage due to mixing of signed and unsigned
6551         quantities.  All Lstream uses of size_t and ssize_t are now a
6552         single signed data type Lstream_data_count.  This fixes problems
6553         under Windows with sending large quantities of data to a process,
6554         and may well fix other subtle bugs.
6555
6556 2001-02-23  Martin Buchholz <martin@xemacs.org>
6557
6558         * XEmacs 21.2.45 "Thelxepeia" is released.
6559
6560 2001-02-21  Martin Buchholz  <martin@xemacs.org>
6561
6562         * lisp-union.h (XSETINT): 
6563         (XSETCHAR):
6564         (XSETOBJ): 
6565         Reverse previous change of 2001-02-06.
6566
6567 2001-02-20  Matt Tucker  <tuck@whistlingfish.net>
6568
6569         Fix `VALID_BYTIND_P' crashes in regex.c when using narrowed
6570         buffers.
6571         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
6572         * syntax.h (SYNTAX_CACHE_OBJECT_BYTE_TO_CHAR):
6573         Add `BI_BUF_BEGV' to bytepos before calculating bufpos.
6574         * regex.c (POS_AS_IN_BUFFER): removed
6575         * regex.c (re_search_2):
6576         * regex.c (re_match_2):
6577         Don't use an offset of 1 when calculating buffer positions, since
6578         `BI_BUF_BEGV' does it already.
6579
6580 2001-02-18  Wim Dumon  <wim@easics.be>
6581
6582         * insdel.c (prepare_to_modify_buffer): Also check for
6583         supersession when clash-detection is enabled. 
6584
6585 2001-02-17  Matt Tucker  <tuck@whistlingfish.net>
6586
6587         * regex.c (re_match_2_internal):
6588         Convert temp characters from 'const unsigned char' to 're_char'.
6589         Fix crashing bug with extended characters under mule.
6590         * syntax.c (Qsyntax_table): Moved from vars_of_syntax to
6591         syms_of_syntax. Use defsymbol to define. Fixes hanging bug with
6592         font-lock, pdump, and new syntax-table code.
6593         * syntax.c (find_start_of_comment):
6594         (find_end_of_comment):
6595         (forward-comment):
6596         Fix crashing bugs involving moving beyond end of buffer.
6597         * syntax.c (find_start_of_comment):
6598         Fixed logic to allow proper detection of cases where the same
6599         character is used to end both a two-char comment start and a
6600         two-char comment end sequence. Fixes `(forward-comment -1)'.
6601         * syntax.c (find_start_of_comment):
6602         Return position just past last comment-end character for all cases
6603         (previously was only done for two-char comment-end sequences).
6604         * syntax.c (forward-comment):
6605         Take value returned from `find_end_of_comment', rather than
6606         incrementing it.
6607         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
6608         Properly deal with BUFFERP (syntax_cache.object)
6609
6610 2001-02-17  Martin Buchholz  <martin@xemacs.org>
6611
6612         * alloc.c (Fgarbage_collect): 
6613         * alloc.c (make_bit_vector_from_byte_vector):
6614         -Wsign-compare-correctness.
6615
6616 2001-02-16  Martin Buchholz  <martin@xemacs.org>
6617
6618         * lisp-union.h (XSETINT): Eliminate unnecessary temp var.
6619         (XSETCHAR): Likewise.
6620         (XSETOBJ): Likewise.
6621
6622 2001-02-15  Martin Buchholz  <martin@xemacs.org>
6623
6624         * mule-canna.c (canna-func-delete_previous): 
6625         Rename to canna-func-delete-previous.
6626
6627 2001-02-14  Martin Buchholz  <martin@xemacs.org>
6628
6629         * mule-ccl.c (ccl_driver): Warning suppression.  Use countof.
6630
6631 2001-02-13  Matt Tucker  <tuck@whistlingfish.net>
6632
6633         * font-lock.c (find_context): Fix C++ compile errors introduced by
6634         recent patch
6635
6636 2001-02-13  Martin Buchholz  <martin@xemacs.org>
6637
6638         * s/aix4.h: Later versions of IBM C compiler need a bug workaround
6639         pragma, but earlier ones barf on the same pragma.
6640
6641 2001-02-06  Mike Sperber <mike@xemacs.org>
6642
6643         * emacs.c (complex_vars_of_emacs): Add `mule-lisp-directory' and
6644         `configure-mule-lisp-directory'.
6645
6646 2001-02-12  Martin Buchholz  <martin@xemacs.org>
6647
6648         Make sure dump-id.c is compiled in the same way as other .c's.
6649         Fixes pdump compilation failure with HP's cc, which defaults to K&R.
6650         * dump-id.h: Remove.
6651         * emacs.c: Move dump-id.h into dumper.h.
6652         * dumper.h: Move dump-id.h into dumper.h.
6653         * Makefile.in.in:
6654         Use standard .c.o rule for building dump-id.o.
6655         Remove preprocessor flags from link command.
6656         Add dump-id.o to ${otherobjs} if PDUMP.
6657
6658 2001-02-07  Matt Tucker  <tuck@whistlingfish.net>
6659
6660         Port FSF 20.7 syntax table improvements.
6661         * syntax.c.
6662         * syntax.h.
6663
6664         Fixups for new syntax table stuff.
6665         * dired.c: Include syntax.c.
6666         (Fdirectory_files): Initialize regex_match_object and
6667         regex_emacs_buffer.
6668         * extents.h: EXFUN Fnext_extent_change, Fprevious_extent_change,
6669         and Fget_char_property.
6670
6671         Use ported FSF 20.7 syntax table improvements.
6672         * font-lock.c.
6673         * regex.c.
6674         * search.c.
6675         
6676 2001-02-09  Martin Buchholz  <martin@xemacs.org>
6677
6678         * regex.c (Boolean): Renamed to `re_bool', to avoid conflict with
6679         Unixware's enum boolean from sys/types.h.
6680
6681 2001-02-10  Martin Buchholz  <martin@xemacs.org>
6682
6683         Fix support for building with latest Purify.
6684         * Makefile.in.in (PURIFY_LIBS): Remove thread flags.
6685         (PURIFY_FLAGS): Likewise.
6686
6687 2001-02-09  Martin Buchholz  <martin@xemacs.org>
6688
6689         * fileio.c (lisp_string_set_file_times): New.
6690         * fileio.c (Fcopy_file): Use it.
6691         Fixes bug:
6692         (copy-file filename non-ascii-filename t t)
6693         ==> No such file or directory, non-ascii-filename
6694
6695 2001-02-10  Martin Buchholz  <martin@xemacs.org>
6696
6697         * glyphs-x.c (generate_cursor_fg_bg): Avoid a warning.
6698         USHRT_MAX seems clearer than ~0 anyways.
6699
6700 2001-02-09  Martin Buchholz  <martin@xemacs.org>
6701
6702         dumper improvements.  Inspired by Olivier.
6703         * dumper.c (pdump_max_align): New.
6704         * dumper.c (pdump_add_entry): Use pdump_max_align.
6705         * dumper.c (pdump_get_entry_list): Likewise.
6706         * dumper.c (pdump_scan_by_alignment): Likewise.
6707         Don't iterate through unnecessary alignments.
6708         * dumper.c (pdump_file_get): No need to align result of malloc().
6709         * dumper.c (pdump_mallocadr): Remove.  
6710         The result of malloc() is guaranteed to be maximally aligned.
6711         * dumper.c: s/elmt/elt/g;
6712         * dumper.c (pdump_object_table): Allocate dynamically, not statically.
6713         * dumper.c (pdump_alert_undump_object): Likewise.
6714         * dumper.c (pdump_align_table): 
6715         Don't support alignments > 64.
6716         Store ALIGNOF's, not shift counts, in table.
6717
6718 2001-02-09  Martin Buchholz  <martin@xemacs.org>
6719
6720         * s/mingw32.h (HAVE_STRUCT_UTIMBUF): Remove.
6721         * s/windowsnt.h (HAVE_STRUCT_UTIMBUF): Remove.
6722         * systime.h: Use HAVE_UTIME.
6723         * sysdep.c (struct utimbuf): Remove.
6724         * sysdep.c (set_file_times): Prefer utime() to utimes().
6725         * config.h.in (HAVE_UTIME): New.
6726         * config.h.in (HAVE_UTIME_H): Remove.
6727         * config.h.in (HAVE_STRUCT_UTIMBUF): Remove.
6728
6729 2001-02-09  Martin Buchholz  <martin@xemacs.org>
6730
6731         * s/aix4.h: Hide #pragmas inside #ifndef NOT_C_CODE.
6732
6733 2001-02-08  Martin Buchholz  <martin@xemacs.org>
6734
6735         * s/irix6-0.h: Use the standard system memmove, not bcopy.
6736
6737 2001-02-08  Martin Buchholz <martin@xemacs.org>
6738
6739         * XEmacs 21.2.44 "Thalia" is released.
6740
6741 2001-02-06  Martin Buchholz  <martin@xemacs.org>
6742
6743         Fixes crashes in kill-emacs on some systems.
6744         * process-unix.c (unix_kill_child_process):
6745         It's OK for kill() to fail with ESRCH.
6746
6747 2001-02-07  Martin Buchholz  <martin@xemacs.org>
6748
6749         Contortions to make .gdbinit tricks work on most systems.
6750         * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
6751         * alloc.c (dbg_valmask): Make non-const.
6752         * alloc.c (dbg_typemask): Make non-const.
6753         * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
6754         * alloc.c (dbg_valbits): Make non-const.
6755         * alloc.c (dbg_gctypebits): Make non-const.
6756         * .gdbinit (decode_object): Make it work with AIX cc.
6757
6758 2001-02-06  Martin Buchholz  <martin@xemacs.org>
6759
6760         * elhash.c (make_general_lisp_hash_table):
6761         Use simpler and more efficient calloc to clear entries.
6762
6763 2001-02-07  Martin Buchholz  <martin@xemacs.org>
6764
6765         * window.c (window_scroll): Work around an AIX C compiler bug.
6766         Fixes 'scroll-up' does nothing problem with xlC.
6767
6768 2001-02-05  Martin Buchholz  <martin@xemacs.org>
6769
6770         * .gdbinit: Remove obsolete comment.
6771
6772 2001-01-31  Mike Alexander  <mta@arbortext.com>
6773
6774         * select.c (Fown_selection_internal): Set owned_p for device
6775         method correctly.
6776
6777 2001-02-01  Martin Buchholz  <martin@xemacs.org>
6778
6779         Port to g++ 2.97.
6780         "not" cannot be used as a macro name as it is an operator in C++
6781         * config.h.in: Stop #defining `not'.
6782         * chartab.c (check_category_char): not ==> not_p
6783         * chartab.h: Likewise.
6784         * regex.c (re_match_2_internal): Likewise.
6785
6786 2001-02-02  Martin Buchholz  <martin@xemacs.org>
6787
6788         * lisp-disunion.h: Fix up comments.
6789
6790 2001-01-31  Martin Buchholz  <martin@xemacs.org>
6791
6792         * keymap.c (define_key_check_and_coerce_keysym):
6793         (syms_of_keymap):
6794         Support mouse-6 and mouse-7 bindings in the obvious way.
6795
6796 2001-02-01  Martin Buchholz  <martin@xemacs.org>
6797
6798         * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
6799
6800 2001-01-30  Martin Buchholz  <martin@xemacs.org>
6801
6802         Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
6803         Previous patch missed DEFVAR_INT_MAGIC.
6804         Make sure future DEFVAR_foo use correct types.
6805         * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
6806         * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
6807         * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
6808         * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
6809         * (DEFVAR_INT): Likewise.
6810         * redisplay.c (vertical_clip): Should be of type Fixnum.
6811         * redisplay.c (horizontal_clip): Likewise.
6812         * lisp.h (dump_add_opaque_int): New.
6813         (dump_add_opaque_fixnum): New.
6814
6815 2001-01-29  Andy Piper  <andy@xemacs.org>
6816
6817         * glyphs-widget.c (check_valid_int_or_function): allow symbols
6818         since they can be eval'ed
6819
6820 2001-01-29  Martin Buchholz  <martin@xemacs.org>
6821
6822         * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
6823         Oops, XEmacs redefines `class'.  Use `typename' instead.
6824
6825 2001-01-28  Martin Buchholz  <martin@xemacs.org>
6826
6827         * dumper.c: Fix C++ compile errors.
6828
6829 2001-01-29  Martin Buchholz  <martin@xemacs.org>
6830
6831         * tparam.c: Use correct prototypes.
6832
6833 2001-01-28  Martin Buchholz  <martin@xemacs.org>
6834
6835         * sysproc.h: #include util.h for NetBSD's openpty.
6836
6837 2001-01-27  Martin Buchholz  <martin@xemacs.org>
6838
6839         More 64-bit correctness.
6840         The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
6841         Use a typedef `fixnum' for the type used for DEFVAR_INT.
6842         Fix up comments.
6843         This finally finishes the 64-bit SGI port.
6844         Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
6845         * symbols.c: Fix up comments and type casts.
6846         * symbols.c (do_symval_forwarding): s/int/Fixnum/g
6847         * symbols.c (store_symval_forwarding): s/int/Fixnum/g
6848         * symeval.h (Fixnum): New type.
6849         * symeval.h (symbol_value_type): Fix up comment.
6850
6851         * commands.h:
6852         * nt.c:
6853         * emacs.c:
6854         * data.c:
6855         * redisplay.c:
6856         * abbrev.c:
6857         * dired-msw.c:
6858         * event-Xt.c:
6859         * eldap.c:
6860         * window.c:
6861         * sound.c:
6862         * event-stream.c:
6863         * eval.c:
6864         * buffer.c:
6865         * mule-canna.c: A million DEFVAR_INTs here...
6866         * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
6867         * extents.c:
6868         * cmdloop.c:
6869         * lisp.h:
6870         * select-x.c:
6871         * console-x.h:
6872         * event-msw.c:
6873         * mule-wnnfns.c:
6874         * hpplay.c:
6875         * ralloc.c:
6876         * alloc.c:
6877         * keymap.c:
6878         * profile.c:
6879         s/int/Fixnum/g in DEFVAR_INT declarations.
6880
6881 2001-01-26  Martin Buchholz  <martin@xemacs.org>
6882
6883         Port pdump to SGI alignment-sensitive environment.
6884         Lisp Object sizeof methods now return aligned sizes.  Rely on that.
6885         Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
6886         properly aligned.
6887         Define and use aligned reading and writing macros.
6888         Use buffered stdio instead of posix i/o for faster dumping.
6889         Eliminate kludgy 256 byte space for header.
6890         Read and write from dump file using structs for alignment safety.
6891         * dumper.c (pdump_align_stream): New.
6892         * dumper.c (PDUMP_ALIGN_OUTPUT): New.
6893         * dumper.c (PDUMP_READ_ALIGNED): New.
6894         * dumper.c (PDUMP_WRITE_ALIGNED): New.
6895         * dumper.c (pdump_static_Lisp_Object): New struct.
6896         * dumper.c (pdump_static_pointer): New struct.
6897         * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
6898         * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
6899         * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
6900         * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
6901
6902         * dumper.c (pdump_backtrace):
6903         * dumper.c (pdump_get_indirect_count):
6904         * dumper.c (pdump_register_object):
6905         * dumper.c (pdump_register_struct):
6906         * dumper.c (pdump_reloc_one):
6907         * dumper.c (pdump_scan_by_alignment):
6908         * dumper.c (pdump_dump_from_root_struct_ptrs):
6909         * dumper.c (pdump_dump_opaques):
6910         * dumper.c (pdump_dump_rtables):
6911         * dumper.c (pdump_dump_from_root_objects):
6912         * dumper.c (pdump):
6913         * dumper.c (pdump_load_finish):
6914         Use aligned reading and writing.
6915
6916         * dumper.c (pdump_free): Make static.
6917         * dumper.c (pdump_hFile): Likewise.
6918         * dumper.c (pdump_hMap): Likewise.
6919
6920 2001-01-26  Martin Buchholz <martin@xemacs.org>
6921
6922         * XEmacs 21.2.43 "Terspichore" is released.
6923
6924 2001-01-25  Martin Buchholz  <martin@xemacs.org>
6925
6926         Type fiddling for window_config.saved_windows_count
6927         * window.c (struct window_config): 
6928         Make saved_windows_count member unsigned.
6929         * window.c (sizeof_window_config_for_n_windows): 
6930         Make parameter unsigned.
6931         * window.c (mark_window_config):
6932         * window.c (window_config_equal):
6933         * window.c (free_window_configuration):
6934         * window.c (Fset_window_configuration):
6935         * window.c (count_windows):
6936         * window.c (Fcurrent_window_configuration):
6937         * window.c (reinit_vars_of_window):
6938         Update all callers and users.
6939
6940 2001-01-25  Martin Buchholz  <martin@xemacs.org>
6941
6942         Alignment correctness for flexible arrays.
6943         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
6944         Make alignment-correct. Add interesting comments.
6945         * alloc.c (size_vector):
6946         * alloc.c (make_vector_internal):
6947         * alloc.c (make_bit_vector_internal):
6948         * alloc.c (sweep_bit_vectors_1):
6949         * fns.c (size_bit_vector):
6950         Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
6951         * window.c (sizeof_window_config_for_n_windows): 
6952         Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
6953
6954 2001-01-24  Martin Buchholz  <martin@xemacs.org>
6955
6956         * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
6957
6958 2001-01-23  Andy Piper  <andy@xemacs.org>
6959
6960         * select.c (Fown_selection_internal): pass owned_p
6961
6962         * select-msw.c (mswindows_own_selection): New Signature.
6963
6964         * console.h (struct console_methods): add owned_p to
6965         _own_selection.
6966
6967         * select-x.c (x_own_selection): pass owned_p
6968         (hack_motif_clipboard_selection): use owned_p
6969         (vars_of_select_x): new variable -
6970         x_selection_strict_motif_ownership.
6971
6972 2001-01-23  Martin Buchholz  <martin@xemacs.org>
6973
6974         * specifier.h (specifier_data_offset): Remove pointless parens.
6975         * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
6976
6977 2001-01-24  Martin Buchholz  <martin@xemacs.org>
6978
6979         Make Lisp_Object sizeof methods be alignment-correct.
6980         pdump must restore objects to the same alignment as the C compiler
6981         assumes.  It really matters on SGIs.
6982         * lstream.c (aligned_sizeof_lstream): New.
6983         (sizeof_lstream): Use aligned_sizeof_lstream.
6984         (Lstream_new): Likewise.
6985         * opaque.c (aligned_sizeof_opaque): New.
6986         (sizeof_opaque): Use aligned_sizeof_opaque.
6987         (make_opaque): Likewise.
6988         * specifier.c (aligned_sizeof_specifier): New.
6989         (sizeof_specifier): Use aligned_sizeof_specifier.
6990         (make_specifier_internal): Likewise.
6991
6992 2001-01-23  Martin Buchholz  <martin@xemacs.org>
6993
6994         * lstream.h (struct lstream): Use max_align_t for trailing data.
6995         * specifier.h (struct Lisp_Specifier): Likewise.
6996
6997 2001-01-22  Martin Buchholz  <martin@xemacs.org>
6998
6999         * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
7000         (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
7001         (CCL_SUSPEND): Likewise.
7002         (CCL_INVALID_CMD): Likewise.
7003         (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
7004         (ccl_driver): Likewise.
7005         (CCL_WRITE_CHAR): Macro hygiene.
7006         (CCL_WRITE_STRING): Macro hygiene.
7007
7008 2001-01-22  Martin Buchholz  <martin@xemacs.org>
7009
7010         Port "portable" dumper to SunOS 4 and HP-UX.
7011         * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
7012         * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
7013         * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
7014
7015 2001-01-22  Martin Buchholz  <martin@xemacs.org>
7016
7017         * lisp.h (ALIGNOF): A better definition for C++.
7018
7019 2001-01-20  Martin Buchholz  <martin@xemacs.org>
7020
7021         Macro hygiene.
7022         Fix printf warnings: int format, long int arg.
7023         * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
7024         (PUSH_FAILURE_POINT): Use correct printf formats.
7025         (POP_FAILURE_POINT): Use correct printf formats.  
7026         Use do {...} while (0)
7027
7028 2001-01-20  Martin Buchholz <martin@xemacs.org>
7029
7030         * XEmacs 21.2.42 "Poseidon" is released.
7031
7032 2001-01-20  Martin Buchholz  <martin@xemacs.org>
7033
7034         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
7035
7036 2001-01-19  Martin Buchholz  <martin@xemacs.org>
7037
7038         De-kludgify FIXED_TYPE free list frobbing.
7039         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
7040         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
7041         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
7042         * alloc.c (Lisp_Free): New pseudo lisp object definition.
7043         * alloc.c (LRECORD_FREE_P): New.
7044         * alloc.c (MARK_LRECORD_AS_FREE): New.
7045         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
7046         * alloc.c (STRUCT_FREE_P): Deleted.
7047         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
7048         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
7049         * alloc.c (STRING_CHARS_FREE_P): New.
7050         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
7051         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
7052         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
7053         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
7054         * alloc.c (resize_string): Use new definitions.
7055         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
7056         * alloc.c (verify_string_chars_integrity): Use new definitions.
7057         * alloc.c (compact_string_chars): Use new definitions.
7058         * alloc.c: Update monster comments.
7059         * lrecord.h (lrecord_type): Add some new lrecord types for
7060         alloc.c's use.
7061
7062 2001-01-18  Martin Buchholz  <martin@xemacs.org>
7063
7064         Improve alignment hackery.
7065         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
7066         (max_align_t): Moved from opaque.h - general purpose.
7067         (ALIGN_PTR): Use size_t, not long.
7068         * opaque.h (max_align_t): Move to lisp.h.
7069
7070 2001-01-18  Norbert Koch  <nk@LF.net>
7071
7072         * gui.h: Fix and add prototypes to fix build problems.
7073
7074 2001-01-18  Martin Buchholz  <martin@xemacs.org>
7075
7076         temacs is going away, so `dump-temacs' is now a bad name.
7077         * .dbxrc (dump-temacs): Rename to `dmp'.
7078         * .gdbinit (dump-temacs): Rename to `dmp'.
7079
7080 2001-01-17  Andy Piper  <andy@xemacs.org>
7081
7082         * glyphs.c (print_image_instance): comment to make martin happy.
7083
7084         * glyphs-x.c (x_redisplay_widget): update faces after a frame
7085         change.
7086
7087         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
7088         activation.
7089         (mswindows_tab_control_redisplay): warning suppression.
7090
7091         * glyphs-widget.c (widget_update): re-write to cope with updated
7092         items.
7093         (widget_instantiate): use new gui_item functions.
7094         (tab_control_update): deleted.
7095         (progress_gauge_update): deleted.
7096         (image_instantiator_progress_guage): take out update reference.
7097         (image_instantiator_tree_view): ditto.
7098         (image_instantiator_tab_control): ditto.
7099
7100         * gui.c (widget_gui_parse_item_keywords): new function. Do things
7101         Right the new way.
7102         (gui_item_add_keyval_pair): re-write to cope with descriptors and
7103         return whether anything was changed.
7104         (update_gui_item_keywords): as it sounds.
7105
7106         * gui.h: declare widget_gui_parse_item_keywords.
7107
7108         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
7109         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
7110
7111 2001-01-17  Martin Buchholz <martin@xemacs.org>
7112
7113         * XEmacs 21.2.41 "Polyhymnia" is released.
7114
7115 2001-01-16  Didier Verna  <didier@xemacs.org>
7116
7117         * glyphs.c (image_instantiate): don't use fallbacks when
7118         instantiating a face's background pixmap by inheritance.
7119
7120 2001-01-14  Mike Sperber <mike@xemacs.org>
7121
7122         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
7123         Conditionalize accordingly.
7124
7125 2001-01-16  Martin Buchholz  <martin@xemacs.org>
7126
7127         * dumper.c (pdump_file_get): Fix a compiler warning.
7128
7129 2001-01-15  Martin Buchholz  <martin@xemacs.org>
7130
7131         Make Purify happy when pdumping.
7132         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
7133         iniitalizing all bits of new lisp object memory.
7134         * symbols.c (Fmake_local_variable): Likewise.
7135         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
7136         * symbols.c (Fdefvaralias): Likewise.
7137         * mule-charset.c (vars_of_mule_charset): Likewise.
7138
7139 2001-01-15  Martin Buchholz  <martin@xemacs.org>
7140         Add the `-nd' flag when running pre-dump operations under the debugger.
7141         * .dbxrc (run-temacs): Add `-nd'.
7142         * .dbxrc (update-elc): Likewise.
7143         * .dbxrc (dump-temacs): Likewise.
7144         * .gdbinit (run-temacs): Likewise.
7145         * .gdbinit (check-temacs): Likewise.
7146         * .gdbinit (update-elc): Likewise.
7147         * .gdbinit (dump-temacs): Likewise.
7148
7149 2001-01-14  Martin Buchholz  <martin@xemacs.org>
7150
7151         Allow building 64-bit executables on AIX with GNU malloc, e.g.
7152         export OBJECT_MODE=64
7153         configure --pdump --use-union-type=no
7154         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
7155         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
7156
7157         * miscplay.c (sndcnv8U_2mono):
7158         Avoid two uses of `++' in the same expression.
7159         Suppresses a GCC warning.
7160
7161 2001-01-13  Martin Buchholz  <martin@xemacs.org>
7162
7163         Make sure future compilers don't miscompile alloc.c.
7164         * alloc.c:
7165         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
7166         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
7167
7168 2001-01-12  Martin Buchholz  <martin@xemacs.org>
7169
7170         * dumper.c: A little post-pdump-rename comment fixup.
7171
7172 2001-01-09  Jerry James  <james@eecs.ku.edu>
7173
7174         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
7175
7176 2001-01-13  Martin Buchholz  <martin@xemacs.org>
7177
7178         * *.[ch]: Globally rename symbols using the following `pdump-rename'
7179         script:
7180         #!/bin/sh
7181         replace_symbol () {
7182           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
7183         }
7184
7185         replace_symbol pdump_wire_lists pdump_weak_object_chains
7186         replace_symbol pdump_wire_list dump_add_weak_object_chain
7187
7188         replace_symbol pdump_wires pdump_root_objects
7189         replace_symbol pdump_wire dump_add_root_object
7190
7191         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
7192         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
7193
7194         replace_symbol dumpstructinfos pdump_root_struct_ptrs
7195         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
7196         replace_symbol dumpstructinfo pdump_root_struct_ptr
7197         replace_symbol dumpstruct dump_add_root_struct_ptr
7198
7199         replace_symbol dumpopaque dump_add_opaque
7200         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
7201         replace_symbol dumpopaqueinfos pdump_opaques
7202         replace_symbol dumpopaqueinfo pdump_opaque
7203
7204         replace_symbol nb_structdump nb_root_struct_ptrs
7205         replace_symbol nb_opaquedump nb_opaques
7206
7207         replace_symbol align_table pdump_align_table
7208         replace_symbol dump_header pdump_header
7209
7210         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
7211         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
7212
7213
7214 2001-01-12  Martin Buchholz  <martin@xemacs.org>
7215
7216         * s/aix4.h: Keep the C for AIX compiler from overaggressively
7217         optimizing bytecount_to_charcount().
7218
7219 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
7220
7221         * config.h.in:
7222         (HAVE_DLFCN_H): Removed.
7223         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
7224
7225 2001-01-06  Martin Buchholz  <martin@xemacs.org>
7226
7227         Portable dumper maintainability improvements.
7228         * alloc.c (staticpro):
7229         * alloc.c (staticpro_nodump):
7230         * alloc.c (garbage_collect_1):
7231         * alloc.c (reinit_alloc_once_early):
7232         * alloc.c (init_alloc_once_early):
7233         * alloc.c: Move dumper functions to alloc.c.
7234         * dumper.c (pdump_backtrace):
7235         * dumper.c (pdump_dump_structs):
7236         * dumper.c (pdump_dump_opaques):
7237         * dumper.c (pdump_dump_rtables):
7238         * dumper.c (pdump_dump_wired):
7239         * dumper.c (pdump):
7240         * dumper.c (pdump_load_check):
7241         * dumper.c (pdump_load_finish):
7242         * dumper.c (pdump_file_unmap):
7243         * dumper.c (pdump_file_get):
7244         * dumper.c (pdump_resource_free):
7245         * dumper.c (pdump_resource_get):
7246         * dumper.c (pdump_file_free):
7247         * dumper.c (pdump_file_try):
7248         * dumper.c (pdump_load):
7249         Remove fixed size limits on staticpro(), staticpro_nodump(),
7250         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
7251         Remove custom code for dumping lrecord_implementations_table - use
7252         dumpopaque instead.
7253         Remove (most of the) custom code for dumping staticpros - dump it
7254         like any other dynarr.
7255
7256         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
7257         * dumper.c: Moved functions from alloc.c.
7258         * alloc.c (dumpstruct): Moved to dumper.c.
7259         * alloc.c (dumpopaque): Likewise.
7260         * alloc.c (pdump_wire): Likewise.
7261         * alloc.c (pdump_wire_list): Likewise.
7262
7263         * lisp.h (Dynarr_sizeof): New.
7264         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
7265         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
7266         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
7267
7268         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
7269         * lisp.h (dumpopaque): ditto.
7270         * lisp.h (pdump_wire): ditto.
7271         * lisp.h (pdump_wire_list): ditto.
7272
7273 2001-01-09  Martin Buchholz  <martin@xemacs.org>
7274
7275         * make-src-depend (PrintPatternDeps):
7276         Use `sort' to make output independent of perl version.
7277
7278 2001-01-08  Martin Buchholz  <martin@xemacs.org>
7279
7280         Port to Netbsd 1.5.
7281         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
7282         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
7283
7284 2001-01-03  Didier Verna  <didier@xemacs.org>
7285
7286         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
7287         that `focus_frame' is alive before thinking of calling
7288         `redisplay_redraw_cursor' on it.
7289
7290 2001-01-08  Martin Buchholz <martin@xemacs.org>
7291
7292         * XEmacs 21.2.40 is released.
7293
7294 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
7295
7296         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
7297
7298 2001-01-06  Martin Buchholz  <martin@xemacs.org>
7299
7300         * alloc.c (dbg_valmask): Make const.
7301         * alloc.c (dbg_typemask): Make const.
7302         * alloc.c (dbg_USE_UNION_TYPE): Make const.
7303         * alloc.c (dbg_valbits): Make const.
7304         * alloc.c (dbg_gctypebits): Make const.
7305
7306 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
7307
7308         * redisplay-x.c (x_bevel_area):
7309         redisplay.h (struct rune):
7310         Typo fixes in comments.
7311
7312 2001-01-05  Andy Piper  <andy@xemacs.org>
7313
7314         * glyphs-x.c (x_redisplay_widget): use size changed for offset
7315         adjustment.
7316
7317         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
7318
7319 2001-01-05  Martin Buchholz  <martin@xemacs.org>
7320
7321         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
7322
7323         * mule-ccl.c (stack_idx_of_map_multiple):
7324         Non const global data must not be initialized!
7325         Found by MIYASHITA Hisashi.
7326
7327 2001-01-02  Andy Piper  <andy@xemacs.org>
7328
7329         * frame.c (change_frame_size): make sure frame size is always
7330         marked as changed.
7331
7332         * glyphs.c (image_instance_layout): minor code reuse.
7333
7334         * window.c (Fcurrent_window_configuration): revert previous
7335         change.
7336
7337 2001-01-02  Martin Buchholz  <martin@xemacs.org>
7338
7339         * glyphs.h:
7340         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
7341
7342 2000-12-31  Andy Piper  <andy@xemacs.org>
7343
7344         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
7345         when widget gets unmapped.
7346
7347         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
7348         function. Make sure widgets losing focus don't just drop it.
7349         (handle_focus_event_1): record the widget with focus.
7350
7351 2000-12-31  Andy Piper  <andy@xemacs.org>
7352
7353         * window.c (allocate_window): use
7354         make_image_instance_cache_hash_table.
7355         (make_dummy_parent): ditto.
7356         (Fset_window_configuration): ditto.
7357
7358         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
7359
7360         * glyphs.c (process_image_string_instantiator): use
7361         INSTANTIATOR_TYPE.
7362         (get_image_instantiator_governing_domain): ditto.
7363         (normalize_image_instantiator): ditto.
7364         (instantiate_image_instantiator): ditto.
7365         (make_image_instance_1): ditto.
7366         (image_instantiate): ditto. Key on glyph *and* instantiator type.
7367         (instantiator_eq_equal): new function for use with instance hash
7368         tables.
7369         (instantiator_eq_hash): ditto.
7370         (make_image_instance_cache_hash_table): create a suitable hash
7371         table for storing image instances.
7372
7373         * elhash.h (hash_table_weakness): new internal weakness type
7374         HASH_TABLE_KEY_CAR_VALUE_WEAK.
7375         declare new functions.
7376
7377         * elhash.c (finish_marking_weak_hash_tables): introduce yet
7378         another weakness type for glyphs.
7379         (make_standard_lisp_hash_table): new function split out from
7380         make_general_lisp_hash_table.
7381         (make_lisp_hash_table): call make_standard_lisp_hash_table.
7382         (hash_table_instantiate): ditto.
7383         (Fmake_hash_table): ditto.
7384
7385 2000-12-31  Martin Buchholz <martin@xemacs.org>
7386
7387         * XEmacs 21.2.39 is released.
7388
7389 2000-12-29  Andy Piper  <andy@xemacs.org>
7390
7391         * menubar.c (menubar_visible_p_changed): signal the frame changed.
7392
7393         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
7394         the frame has changed so that we pick up geometry changes such as
7395         menubar visibility.
7396
7397 2000-12-28  Andy Piper  <andy@xemacs.org>
7398
7399         * lastfile.c (my_ebss): make a char array so we can pad the
7400         bss. Fixes cygwin unexec.
7401
7402         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
7403
7404 2000-12-26  Andy Piper  <andy@xemacs.org>
7405
7406         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
7407         comments and try and be more precise about a non-/SIGIO world.
7408         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
7409         SIGIO.
7410
7411         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
7412         we don't normalize to zero width or height.
7413
7414 2000-12-24  Andy Piper  <andy@xemacs.org>
7415
7416         * Makefile.in.in (ldflags): add -mwindows when appropriate.
7417
7418 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
7419
7420         * s/sco5.h: SCO 5 has pty support.
7421
7422 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
7423
7424         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
7425         input-method-xlib.c contains whole contents of input-method-xfs.c,
7426         so we can use input-method-xlib.c's code for USE_XFONTSET
7427         using #ifdefs.
7428         * input-method-xfs.c: removed.
7429
7430 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
7431
7432         * file-coding.h (enum coding_category_type): reorder enumerators to
7433         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
7434         (now one greater than largest real coding_category_type enumerator).
7435         * file-coding.c (coding_category_symbol, coding_category_by_priority,
7436         coding_category_system, fcd_descriptihon_1, decode_coding_category,
7437         Fcoding_category_list, Fset_coding_priority_list,
7438         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
7439         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
7440
7441 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
7442
7443         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
7444         * redisplay-output.c (redisplay_output_window): Clear top of window
7445         when face is changed.
7446         * redisplay-x.c (x_redraw_exposed_window): Call
7447         redisplay_clear_top_of_window.
7448         * redisplay.h: Publish redisplay_clear_top_of_window.
7449
7450 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
7451
7452         * buffer.c (Fkill_buffer): Map over all devices.
7453         * window.c (window_loop): Remove UNSHOW_BUFFER code.
7454         (list_windows): New function.
7455         (list_all_windows): Ditto.
7456         (Freplace_buffer_in_windows): Use them.
7457
7458 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
7459
7460         * database.c (berkdb_subtype): Recognize new subtype `queue'.
7461         (Fopen_database): Use `db_create' instead of `db_open'.
7462         (syms_of_database): Initialize Qqueue.
7463
7464 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
7465
7466         * buffer.c (common_init_complex_vars_of_buffer): Initialize
7467         buffer_local_face_property.
7468         * buffer.h (struct buffer): New member buffer_local_face_property.
7469         * window.c (Fset_window_buffer):  Mark window's face as changed
7470         when buffer has buffer local face.
7471         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
7472         * objects.c (color_after_change): Set buffer_local_face_property
7473         when locale of face specifier is buffer.
7474         * objects.c (font_after_change): Ditto.
7475         * objects.c (face_boolean_after_change): Ditto.
7476         * glyphs.c (image_after_change): Ditto.
7477
7478 2000-12-09  Dan Holmsand  <dan@eyebee.com>
7479
7480         * nt.c (mswindows_fstat): Report file permissions, volume serial
7481         number, etc. Code adapted from FSF Emacs 20.7.
7482
7483 2000-12-09  Dan Holmsand  <dan@eyebee.com>
7484
7485         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
7486         of stat when we don't have symbolic links, to make sure
7487         mswindows_stat is called on mswindows.
7488
7489 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
7490
7491         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
7492
7493 2000-12-12  Martin Buchholz  <martin@xemacs.org>
7494
7495         * doprnt.c (emacs_doprnt_1): More printing fixes.
7496         Make printing of numbers compatible with libc and FSF Emacs.
7497         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
7498         Use the system printf to do most of the hard work of formatting,
7499         instead of doprnt_1().
7500         Calculate memory to allocate for format string.
7501         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
7502         (doprnt_1): Cleaner code and documentation.
7503
7504 2000-12-01  Jerry James  <james@eecs.ukans.edu>
7505
7506         * Makefile.in.in: Use the loop variable to install headers.
7507
7508 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
7509
7510         * window.c (Fsplit_window): Don't invalidate face cache.
7511
7512 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
7513
7514         * minibuf.c (Fall_completions): Undo the previous change
7515         which removed checking elements start with space.
7516
7517 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
7518
7519         * mule-canna.c: Didier suppression.
7520
7521 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
7522
7523         * mule-canna.c: rename static unsigned char buf[] to key_buffer
7524         (warning suppression).  Add English comment translations.
7525
7526 2000-12-05  Martin Buchholz  <martin@xemacs.org>
7527
7528         * unexelfsgi.c (unexec): Better test for mmap failure.
7529
7530 2000-12-05  Martin Buchholz <martin@xemacs.org>
7531
7532         * XEmacs 21.2.38 is released.
7533
7534 2000-12-05  Martin Buchholz  <martin@xemacs.org>
7535
7536         * redisplay.c (bar-cursor): Make a user variable.
7537
7538         * symsinit.h: Add init_postgresql_from_environment.
7539
7540 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
7541
7542         * regex.c: Convert to clean C.
7543
7544 2000-12-05  Dan Holmsand  <dan@eyebee.com>
7545
7546         * realpath.c:
7547         Don't #include sysfile.h. Revert to duplicating PATH_MAX
7548         initialization.
7549         (sys_readlink): renamed to system_readlink to avoid conflict with
7550         the other sys_readlink.
7551
7552 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
7553
7554         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
7555
7556 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
7557
7558         * postgresql.c (init_postgresql_from_environment): new function.
7559         (vars_of_postgresql): Move code initializing Lisp variables out and
7560         into init_postgresql_from_environment.
7561         emacs.c (main_1): Call init_postgresql_from_environment if and only
7562         if running a dumped XEmacs.
7563
7564 2000-08-31  Dan Holmsand  <dan@eyebee.com>
7565
7566         * buffer.c: Make find-file-compare-truenames default to true on
7567         windows.
7568
7569         * realpath.c (win32_abs_start):
7570         (cygwin_readlink):
7571         (win32_readlink): New functions.
7572         (xrealpath): Return really real filenames on windows.
7573
7574         * fileio.c (Ffile_truename): Make file-truename work on windows.
7575
7576 2000-11-29  Didier Verna  <didier@xemacs.org>
7577
7578         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
7579         * faces.c (update_face_cachel_data): use it.
7580         * faces.c (add_face_cachel): use it. Complete background pixmap
7581         frobbing in face cache if `update_face_cachel_data' has not done so.
7582
7583 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
7584
7585         * search.c (string_match_1): Don't set last_thing_searched
7586         when search failed.
7587
7588 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
7589
7590         * buffer.c: Include casetab.h
7591         (common_init_complex_vars_of_buffer): Use new case-table object.
7592         * buffer.h: Include casetab.h
7593         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
7594         (DOWNCASE_TABLE_OF): Ditto.
7595         * bufslots.h: Remove char-tables and add case-table.
7596         * casetab.c: Include casetab.h
7597         (CASE_TABLE_P): Removed.
7598         (mark_case_table): New function.
7599         (allocate_case_table): New function.
7600         (Fcase_table_p): Use new case-table.
7601         (case_table_char): New function.
7602         (Fget_case_table): Ditto.
7603         (Fput_case_table): Ditto.
7604         (Fput_case_table_pair): Ditto.
7605         (Fcopy_case_table): Ditto.
7606         (Fcurrent_case_table): Return case-table.
7607         (Fstandard_case_table): Return case-table.
7608         (Fset_case_table): Fix doc-string.
7609         (set_case_table): Use case-table
7610         (syms_of_casetab): DEFSUBR new functions.
7611         (complex_vars_of_casetab): Set up standard case-table.
7612         * casetab.h: New file.
7613         * editfns.c: Include casetab.h
7614         (Fcompare_buffer_substrings): Use case-table.
7615         * inline.c: Include casetab.h
7616         * lisp.h: Remove bogus extern.
7617         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
7618         * search.c: Include casetab.h
7619         (TRANSLATE_ASCII): Removed.
7620         (TRANSLATE): Unconditionally translate character.
7621         (looking_at_1): Use case-table.
7622         (string_match_1): Ditto.
7623         (fast_string_match): Ditto.
7624         (search_command): Ditto.
7625         (search_buffer): Separate boyer_moore.  Check whether
7626         boyer_moore is possible.
7627         (simple_search): New function.
7628         (boyer_moore): Separated from search_buffer. Translate char.
7629
7630 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
7631
7632         * regex.c (RE_TR_ASCII): Removed.
7633         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
7634         (PATFETCH): Call PATFETCH_RAW.
7635         (PATFETCH_RAW): Fetch Emchar.
7636         (PATUNFETCH): Decrement charptr.
7637         (GET_BUFFER_SPACE): Rename b to buf_end.
7638         (BUF_PUSH): Ditto.
7639         (BUF_PUSH_2): Ditto.
7640         (BUF_PUSH_3): Ditto.
7641         (EXTEND_BUFFER): Ditto.
7642         (SET_LIST_BIT): Ditto.
7643         (regex_compile): Ditto.  Translate non ASCII char.
7644         (compile_range): Ditto.
7645         (re_search_2): Ditto.
7646         (re_match_2_internal): Compare Emchar.
7647         (bcmp_translate): Ditto.
7648
7649 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
7650
7651         * lisp.h (basic char/int typedefs):  comment improvement.
7652
7653 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
7654
7655         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
7656         unstomp inhibit_site_lisp.  Improve comments.
7657
7658 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
7659
7660         * mule-charset.c (Fcharset_property):  improve type checking, comments.
7661
7662 2000-11-28  Andy Piper  <andy@xemacs.org>
7663
7664         * redisplay-output.c (redisplay_output_subwindow): make sure we do
7665         clipped display for windows in the gutter also.
7666         (redisplay_display_boxes_in_window_p): change semantics of return
7667         codes to be more intuitive.
7668
7669         * gutter.h: declare display_boxes_in_gutter_p.
7670
7671         * gutter.c (display_boxes_in_gutter_p): new function for
7672         redisplay.
7673
7674 2000-11-22  Andy Piper  <andy@xemacs.org>
7675
7676         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
7677         autodetect domain.
7678
7679 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
7680
7681         * callproc.c (Fold_call_process_internal):
7682         * gpm.c (Freceive_gpm_event):
7683         (tty_get_foreign_selection): Might be just warning supression.
7684         * fileio.c (Fwrite_region_internal):
7685         (Fset_visited_file_modtime):
7686         * keymap.c (event_matches_key_specifier_p):
7687         Initialize GCPROed variable.
7688
7689         * menubar-x.c (command_builder_find_menu_accelerator):
7690         Initialize before use.
7691
7692 2000-11-23  Andy Piper  <andy@xemacs.org>
7693
7694         * unexcw.c (unexec): make the resulting executable executable.
7695
7696 2000-11-21  Martin Buchholz  <martin@xemacs.org>
7697
7698         * doc.c (get_doc_string):
7699         Use size_t, not int, for result of XSTRING_LENGTH.
7700
7701         * cmds.c (Fdelete_char):
7702         * cmds.c (Fpoint_at_eol):
7703         * cmds.c (Fself_insert_command):
7704         Use EMACS_INT, not int, for result of XINT.
7705         Someday, someone will want to insert more than 2**31 identical characters.
7706
7707         * cmds.c (Fdelete_char):
7708         * cmds.c (Fdelete_backward_char):
7709         * syntax.c (Fforward_word):
7710         * syntax.c (Fforward_comment):
7711         Make COUNT argument optional, for consistency with forward-char et al.
7712
7713 2000-11-22  Martin Buchholz  <martin@xemacs.org>
7714
7715         * lisp.h:
7716         * print.c (long_to_string):
7717         Return a useful value: the pointer at end of data written.
7718
7719         * doprnt.c:
7720         Use `static const char * const' for constant strings.
7721         (union printf_arg): Delete `i', `ui' members.
7722         (get_doprnt_args):
7723         (emacs_doprnt_1):
7724         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
7725         Do all printf-ing via the `l' specifier.
7726         Use EMACS_INT instead of int.
7727         Optimize.
7728
7729 2000-11-20  Didier Verna  <didier@xemacs.org>
7730
7731         * faces.c (update_face_cachel_data): don't frob the background
7732         pixmap when the window is being created. The face is needed but
7733         does not exist yet.
7734
7735 2000-11-20  Andy Piper  <andy@xemacs.org>
7736
7737         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
7738         messing with a debug environment.
7739
7740 2000-11-20  Martin Buchholz  <martin@xemacs.org>
7741
7742         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
7743
7744 2000-11-20  Martin Buchholz  <martin@xemacs.org>
7745
7746         * casetab.c (Fcase_table_p): Fix compile error and crash.
7747
7748 2000-11-18  Philip Aston  <philipa@mail.com>
7749
7750         * s/cygwin32.h: Cygwin has SVR4-like pty support.
7751
7752 2000-11-18  Martin Buchholz  <martin@xemacs.org>
7753
7754         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
7755         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
7756
7757 2000-11-17  Martin Buchholz  <martin@xemacs.org>
7758
7759         * config.h.in: Define HAVE_ELF_H if elf.h exists.
7760         * unexelf.c: Use HAVE_ELF_H.
7761         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
7762         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
7763         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
7764         Greg Harrington <greg_harrington@hotmail.com> provided a machine
7765         for testing.
7766         So this is an unexelfsgi.c from a different line of development.
7767
7768 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
7769
7770         * regex.c (RE_TR_ASCII): New function.
7771         (RE_TRANSLATE): Call it.
7772
7773 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
7774
7775         * buffer.h (TRT_TABLE_OF): Remove assert.
7776         (IN_TRT_TABLE_DOMAIN): Removed.
7777
7778 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
7779
7780         * free-hook.c (log_gcpro):
7781         (show_gcprohist): Add support for GCPRO5.
7782
7783 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
7784
7785         * emacs.c (main_1): Improve -sd error message when --pdump=no.
7786
7787 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
7788
7789         * symeval.h: Declare flush_all_buffer_local_cache.
7790
7791         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
7792         (flush_buffer_local_cache): Added.
7793         (flush_all_buffer_local_cache): Added.
7794
7795         * lrecord.h: Remove unused XD_LO_RESET_NIL.
7796
7797         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
7798         (pdump_dump_data): Ditto.
7799         (pdump_reloc_one): Ditto.
7800         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
7801         before dumping.
7802
7803
7804 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
7805
7806         * buffer.c: Remove if 0'ed entry.
7807         * buffer.h: Rewrite TRT to use char-table.
7808         * bufslots.h: Remove mirror tables.
7809         * casetab.c: Remove mirror tables.
7810         (CASE_TABLE_P): New macro.
7811         (Fcase_table_p): Element of a case table is string or char-table.
7812         (make_mirror_trt_table): Removed.
7813         (set_case_table): Setup char-table from strings for backward
7814         compatibility.
7815         * dired.c (Fdirectory_files):
7816         * dired-msw.c: (mswindows_get_files):
7817         * lisp.h: Change prototype of re_pattern_buffer.
7818         * regex.c: (RE_TRANSLATE): New macro.
7819         (TRANSLATE_P): Ditto.
7820         Change translate to type RE_TRANSLATE_TYPE.
7821         * regex.h: Define RE_TRANSLATE_TYPE
7822         * search.c (TRANSLATE): New macro.
7823         (TRANSLATE_ASCII): New macro.
7824         Translate table is changed to Lisp_Object.
7825         (signal_failure): Inhibit return.
7826
7827 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
7828
7829         * device-msw.c:
7830         * eldap.c:
7831         * event-Xt.c:
7832         * event-stream.c:
7833         * print.c:
7834         Do UNGCPRO before return.
7835
7836 2000-11-14  Martin Buchholz <martin@xemacs.org>
7837
7838         * XEmacs 21.2.37 is released.
7839
7840 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
7841
7842         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
7843         Add comments about discarded return value.
7844
7845 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
7846
7847         * callint.c:
7848         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
7849
7850 2000-10-27  Andy Piper  <andy@xemacs.org>
7851
7852         * gutter.c (Fset_default_gutter_position): default left and right
7853         gutters to visible.
7854         (calculate_gutter_size): calculate resonable heuristic for left
7855         and right gutter sizes.
7856         (specifier_vars_of_gutter): change left and right gutter sizes to
7857         autodetect.
7858         (calculate_gutter_size_from_display_lines): new function.
7859         (output_gutter): check for resizing on left and right gutters.
7860         (clear_gutter): don't special case top and left gutters.
7861         (specifier_vars_of_gutter): use new signature for
7862         set_specifier_caching.
7863
7864         * glyphs-x.c (x_redisplay_widget): spelling fix.
7865         * glyphs.c (specifier_vars_of_glyphs):
7866         * menubar.c (specifier_vars_of_menubar):
7867         * redisplay.c (specifier_vars_of_redisplay):
7868         * toolbar.c (specifier_vars_of_toolbar):
7869         * window.c (specifier_vars_of_window):
7870         * scrollbar.c (specifier_vars_of_scrollbar):
7871         (complex_vars_of_scrollbar): use new signature for
7872         set_specifier_caching.
7873
7874         * specifier.c (set_specifier_caching): include recompute flag.
7875         (recompute_one_cached_specifier_in_window): always recompute if
7876         flag set.
7877         (recompute_one_cached_specifier_in_frame): ditto.
7878
7879         * specifier.h (struct specifier_caching): add recompute flag.
7880
7881 2000-10-24  Andy Piper  <andy@xemacs.org>
7882
7883         * unexcw.c (copy_executable_and_dump_data_section): add new
7884         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
7885         5.0 happy.
7886
7887 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
7888
7889         * console-x.h (x_device): New member modifier_release_time.
7890         * event-Xt.c (x_handle_sticky_modifiers):
7891         Bound interval modifier keys are sticky.
7892         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
7893         * events.h: extern it.
7894
7895 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
7896
7897         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
7898
7899 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
7900
7901         * event-stream.c (execute_command_event): Preserve current_events
7902         and the like when event is misc-user-event.
7903         Inhibit quit during the call to maybe_echo_keys.
7904
7905 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
7906
7907         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
7908         symlink when buffer is killed.
7909         (inhibit_clash_detection): New variable.
7910
7911 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
7912
7913         * console.c (Fset_input_method): Trigger redisplay on tty.
7914
7915 2000-11-07  Martin Buchholz  <martin@xemacs.org>
7916
7917         * process.c (Fprocess_status): Revert to previous behavior:
7918         (process-status "nosuchprocess") ==> nil
7919
7920 2000-11-06  Martin Buchholz  <martin@xemacs.org>
7921
7922         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
7923         Work around another GCC 2.95.2 optimizer bug.
7924
7925 2000-11-02  Martin Buchholz  <martin@xemacs.org>
7926
7927         * process.c (Fget_process): Use LIST_LOOP_2.
7928         (kill_buffer_processes): Use LIST_LOOP_2.
7929
7930         * minibuf.c (Fall_completions):
7931         Delete old non-functional code for FSF fourth argument.
7932
7933         * frame.c (frame_matches_frame_spec):
7934         Renamed from `frame_matches_frametype'.  Update all callers.
7935         (device_matches_device_spec):
7936         Renamed from 'device_matches_console_spec'.  Update all callers.
7937
7938         * doc.c (Fsubstitute_command_keys):
7939         Remove buffer overflow crash.  Small code cleanups.
7940
7941         * casetab.c (check_case_table): Simpler code.
7942
7943         * window.c (Freplace_buffer_in_windows):
7944         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
7945         (and similar implementation) as Fdelete_windows_on.
7946         Update all callers.
7947
7948         * alloc.c (Fmake_list):
7949         * alloc.c (make_vector):
7950         * alloc.c (Fmake_vector):
7951         * alloc.c (make_bit_vector):
7952         * alloc.c (Fmake_bit_vector):
7953         * alloc.c (Fbit_vector):
7954         * alloc.c (Fmake_string):
7955         * alloc.c (Fpurecopy):
7956         * alloc.c (Fmemory_limit):
7957         * buffer.c:
7958         * buffer.c (Fget_buffer):
7959         * buffer.c (Fkill_buffer):
7960         * buffer.c (complex_vars_of_buffer):
7961         * bytecode.c (Fcompiled_function_stack_depth):
7962         * callint.c (Fprefix_numeric_value):
7963         * event-stream.c:
7964         * event-stream.c (Fread_key_sequence):
7965         * casetab.c:
7966         * casetab.c (Fcase_table_p):
7967         * casetab.c (check_case_table):
7968         * casetab.c (Fset_case_table):
7969         * casetab.c (Fset_standard_case_table):
7970         * chartab.c:
7971         * chartab.c (Fchar_table_type):
7972         * chartab.c (Freset_char_table):
7973         * chartab.c (Fget_char_table):
7974         * chartab.c (Fget_range_char_table):
7975         * chartab.c (Fput_char_table):
7976         * chartab.c (Fmap_char_table):
7977         * chartab.c (Fcategory_table_p):
7978         * chartab.c (Fcheck_category_at):
7979         * chartab.c (Fchar_in_category_p):
7980         * chartab.c (Fcategory_table):
7981         * chartab.c (Fcopy_category_table):
7982         * chartab.c (Fset_category_table):
7983         * chartab.c (Fcategory_designator_p):
7984         * chartab.c (Fcategory_table_value_p):
7985         * cmds.c (Fdelete_char):
7986         * cmds.c (Fdelete_backward_char):
7987         * cmds.c (Fself_insert_command):
7988         * cmds.c (Fself_insert_internal):
7989         * console.c (Fvalid_console_type_p):
7990         * console.c (Fcdfw_console):
7991         * console.c (Fconsole_type):
7992         * console.c (Fconsole_name):
7993         * console.c (Fconsole_device_list):
7994         * console.c (Fconsole_on_window_system_p):
7995         * data.c:
7996         * data.c (Feq):
7997         * data.c (Fold_eq):
7998         * data.c (Fsubr_interactive):
7999         * data.c (Fchar_to_int):
8000         * data.c (Fint_to_char):
8001         * data.c (Fsetcar):
8002         * data.c (Fsetcdr):
8003         * data.c (Fnumber_to_string):
8004         * data.c (Fstring_to_number):
8005         * data.c (Frem):
8006         * database.c (mark_database):
8007         * database.c (finalize_database):
8008         * database.c (Fdatabase_live_p):
8009         * database.c (Fdatabasep):
8010         * device-x.c (Fx_get_resource):
8011         * device.c (Fdfw_device):
8012         * dired.c:
8013         * dired.c (Ffile_name_completion):
8014         * dired.c (Ffile_name_all_completions):
8015         * dired.c (Fuser_name_completion):
8016         * dired.c (Fuser_name_completion_1):
8017         * dired.c (Fuser_name_all_completions):
8018         * doc.c (Fdocumentation):
8019         * doc.c (Fdocumentation_property):
8020         * doc.c (Fsubstitute_command_keys):
8021         * editfns.c:
8022         * editfns.c (Fchar_to_string):
8023         * editfns.c (Fstring_to_char):
8024         * editfns.c (Ftemp_directory):
8025         * editfns.c (Finsert_char):
8026         * editfns.c (Fbuffer_substring_no_properties):
8027         * editfns.c (Fnarrow_to_region):
8028         * editfns.c (Fchar_equal):
8029         * editfns.c (Fchar_Equal):
8030         * editfns.c (Ftranspose_regions):
8031         * emacs.c (Fdump_emacs):
8032         * eval.c (Fthrow):
8033         * eval.c (Fcommand_execute):
8034         * eval.c (Fautoload):
8035         * eval.c (Fbacktrace):
8036         * eval.c (Fbacktrace_frame):
8037         * events.c:
8038         * events.c (Fcopy_event):
8039         * events.c (Fcharacter_to_event):
8040         * events.c (Fevent_button):
8041         * events.c (Fevent_process):
8042         * extents.c:
8043         * extents.c (Fnext_extent_change):
8044         * extents.c (Fextent_property):
8045         * faces.c (Ffacep):
8046         * faces.c (Fmake_face):
8047         * file-coding.c:
8048         * file-coding.c (Fencode_shift_jis_char):
8049         * file-coding.c (Fencode_big5_char):
8050         * fileio.c (Ffile_name_directory):
8051         * fileio.c (Ffile_name_nondirectory):
8052         * fileio.c (Ffile_name_as_directory):
8053         * fileio.c (Fdirectory_file_name):
8054         * fileio.c (Ffile_truename):
8055         * fileio.c (Fsubstitute_in_file_name):
8056         * fileio.c (Ffile_modes):
8057         * fileio.c (Fset_file_modes):
8058         * fileio.c (Fset_default_file_modes):
8059         * fileio.c (Fverify_visited_file_modtime):
8060         * floatfns.c (Facos):
8061         * floatfns.c (Fasin):
8062         * floatfns.c (Fatan):
8063         * floatfns.c (Fcos):
8064         * floatfns.c (Fsin):
8065         * floatfns.c (Ftan):
8066         * floatfns.c (Fbessel_j0):
8067         * floatfns.c (Fbessel_j1):
8068         * floatfns.c (Fbessel_jn):
8069         * floatfns.c (Fbessel_y0):
8070         * floatfns.c (Fbessel_y1):
8071         * floatfns.c (Fbessel_yn):
8072         * floatfns.c (Ferf):
8073         * floatfns.c (Ferfc):
8074         * floatfns.c (Flog_gamma):
8075         * floatfns.c (Fexp):
8076         * floatfns.c (Fexpt):
8077         * floatfns.c (Flog):
8078         * floatfns.c (Flog10):
8079         * floatfns.c (Fsqrt):
8080         * floatfns.c (Fcube_root):
8081         * floatfns.c (Facosh):
8082         * floatfns.c (Fasinh):
8083         * floatfns.c (Fatanh):
8084         * floatfns.c (Fcosh):
8085         * floatfns.c (Fsinh):
8086         * floatfns.c (Ftanh):
8087         * floatfns.c (Fabs):
8088         * floatfns.c (Ffloat):
8089         * floatfns.c (Flogb):
8090         * floatfns.c (Fceiling):
8091         * floatfns.c (Ffloor):
8092         * floatfns.c (Fround):
8093         * floatfns.c (Ftruncate):
8094         * floatfns.c (Ffceiling):
8095         * floatfns.c (Fffloor):
8096         * floatfns.c (Ffround):
8097         * floatfns.c (Fftruncate):
8098         * fns.c (Fstring_equal):
8099         * fns.c (Fstring_lessp):
8100         * fns.c (concat2):
8101         * fns.c (concat3):
8102         * fns.c (vconcat2):
8103         * fns.c (vconcat3):
8104         * fns.c (Fsubstring):
8105         * fns.c (Fassoc):
8106         * fns.c (Fold_assoc):
8107         * fns.c (assoc_no_quit):
8108         * fns.c (Fassq):
8109         * fns.c (Fold_assq):
8110         * fns.c (assq_no_quit):
8111         * fns.c (Frassoc):
8112         * fns.c (Fold_rassoc):
8113         * fns.c (Frassq):
8114         * fns.c (Fold_rassq):
8115         * fns.c (rassq_no_quit):
8116         * fns.c (Fremassoc):
8117         * fns.c (remassoc_no_quit):
8118         * fns.c (Fremassq):
8119         * fns.c (remassq_no_quit):
8120         * fns.c (Fremrassoc):
8121         * fns.c (Fremrassq):
8122         * fns.c (remrassq_no_quit):
8123         * fns.c (Fsort):
8124         * fns.c (Fplist_get):
8125         * fns.c (Fplist_put):
8126         * fns.c (Fplist_remprop):
8127         * fns.c (Fplist_member):
8128         * fns.c (Flax_plist_get):
8129         * fns.c (Flax_plist_put):
8130         * fns.c (Flax_plist_remprop):
8131         * fns.c (Flax_plist_member):
8132         * fns.c (Fequal):
8133         * fns.c (Fold_equal):
8134         * fns.c (Frequire):
8135         * fns.c (Fbase64_encode_region):
8136         * fns.c (Fbase64_encode_string):
8137         * fns.c (Fbase64_decode_region):
8138         * frame.c:
8139         * frame.c (frame_matches_frame_spec):
8140         * frame.c (device_matches_device_spec):
8141         * frame.c (next_frame):
8142         * frame.c (previous_frame):
8143         * frame.c (Fnext_frame):
8144         * frame.c (Fprevious_frame):
8145         * frame.c (Fframe_property):
8146         * frame.c (Fset_frame_height):
8147         * frame.c (Fset_frame_size):
8148         * frame.h:
8149         * glyphs.c:
8150         * glyphs.c (if):
8151         * glyphs.c (decode_error_behavior_flag):
8152         * glyphs.c (Fmake_image_instance):
8153         * indent.c (Findent_to):
8154         * intl.c (Fignore_defer_gettext):
8155         * keymap.c (Fkeymapp):
8156         * keymap.c (Flookup_key):
8157         * lread.c:
8158         * lread.c (Fload_internal):
8159         * lread.c (Feval_buffer):
8160         * lread.c (Feval_region):
8161         * macros.c (Fexecute_kbd_macro):
8162         * marker.c (set_marker_internal):
8163         * marker.c (Fset_marker):
8164         * marker.c (set_marker_restricted):
8165         * marker.c (Fcopy_marker):
8166         * marker.c (noseeum_copy_marker):
8167         * menubar.c:
8168         * menubar.c (Fpopup_menu):
8169         * minibuf.c:
8170         * mule-charset.c (Fcharset_name):
8171         * mule-charset.c (Fchar_charset):
8172         * mule-charset.c (Fchar_octet):
8173         * mule-charset.c (Fsplit_char):
8174         * mule-wnnfns.c (Fwnn_open):
8175         * mule-wnnfns.c (Fwnn_dict_comment):
8176         * mule-wnnfns.c (Fwnn_quit_henkan):
8177         * mule-wnnfns.c (Fwnn_word_toroku):
8178         * mule-wnnfns.c (Fwnn_word_sakujo):
8179         * mule-wnnfns.c (Fwnn_word_use):
8180         * mule-wnnfns.c (Fwnn_hindo_set):
8181         * objects.c:
8182         * objects.c (Fmake_color_instance):
8183         * objects.c (Fmake_font_instance):
8184         * print.c (Fwrite_char):
8185         * process.c:
8186         * process.c (mark_process):
8187         * process.c (print_process):
8188         * process.c (get_process_from_usid):
8189         * process.c (Fprocessp):
8190         * process.c (Fprocess_live_p):
8191         * process.c (Fget_process):
8192         * process.c (Fget_buffer_process):
8193         * process.c (get_process):
8194         * process.c (Fprocess_id):
8195         * process.c (Fprocess_name):
8196         * process.c (Fprocess_command):
8197         * process.c (init_process_io_handles):
8198         * process.c (start_process_unwind):
8199         * process.c (Fstart_process_internal):
8200         * process.c (Fopen_multicast_group_internal):
8201         * process.c (Fset_process_window_size):
8202         * process.c (read_process_output):
8203         * process.c (send_process):
8204         * process.c (Fprocess_tty_name):
8205         * process.c (Fset_process_buffer):
8206         * process.c (Fprocess_buffer):
8207         * process.c (Fprocess_mark):
8208         * process.c (set_process_filter):
8209         * process.c (Fset_process_filter):
8210         * process.c (Fprocess_filter):
8211         * process.c (Fprocess_send_region):
8212         * process.c (Fprocess_send_string):
8213         * process.c (exec_sentinel):
8214         * process.c (Fset_process_sentinel):
8215         * process.c (Fprocess_sentinel):
8216         * process.c (status_notify):
8217         * process.c (Fprocess_status):
8218         * process.c (Fprocess_exit_status):
8219         * process.c (process_send_signal):
8220         * process.c (Fprocess_send_eof):
8221         * process.c (deactivate_process):
8222         * process.c (remove_process):
8223         * process.c (Fdelete_process):
8224         * process.c (kill_buffer_processes):
8225         * process.c (Fprocess_kill_without_query):
8226         * process.c (Fprocess_kill_without_query_p):
8227         * rangetab.c:
8228         * rangetab.c (Fget_range_table):
8229         * rangetab.c (Fput_range_table):
8230         * rangetab.c (Fremove_range_table):
8231         * rangetab.c (Fclear_range_table):
8232         * search.c:
8233         * search.c (Fskip_chars_forward):
8234         * search.c (Fskip_chars_backward):
8235         * search.c (Fskip_syntax_forward):
8236         * search.c (Fskip_syntax_backward):
8237         * search.c (search_command):
8238         * search.c (Freplace_match):
8239         * search.c (Fregexp_quote):
8240         * select.c (Fown_selection_internal):
8241         * select.c (Fselection_owner_p):
8242         * select.c (Fselection_exists_p):
8243         * select.c (Fget_selection_internal):
8244         * specifier.c:
8245         * symbols.c:
8246         * symbols.c (Fintern):
8247         * symbols.c (Fintern_soft):
8248         * symbols.c (Funintern):
8249         * symbols.c (Fapropos_internal):
8250         * symbols.c (Fset_default):
8251         * syntax.c:
8252         * syntax.c (Fsyntax_table_p):
8253         * syntax.c (Fcopy_syntax_table):
8254         * syntax.c (Fset_syntax_table):
8255         * syntax.c (Fchar_syntax):
8256         * syntax.c (syntax_match):
8257         * syntax.c (Fmatching_paren):
8258         * syntax.c (Fforward_word):
8259         * syntax.c (scan_lists):
8260         * syntax.c (Fscan_lists):
8261         * syntax.c (Fscan_sexps):
8262         * syntax.c (Fparse_partial_sexp):
8263         * toolbar.c (Fcheck_toolbar_button_syntax):
8264         * tooltalk.doc:
8265         * window.c:
8266         * window.c (Fwindowp):
8267         * window.c (Fwindow_live_p):
8268         * window.c (Fwindow_point):
8269         * window.c (Fdelete_window):
8270         * window.c (Fnext_window):
8271         * window.c (Fprevious_window):
8272         * window.c (Fother_window):
8273         * window.c (window_loop):
8274         * window.c (Fget_lru_window):
8275         * window.c (Fsplit_window):
8276         * window.c (Fenlarge_window):
8277         * window.c (Fenlarge_window_pixels):
8278         * window.c (Fshrink_window):
8279         * window.c (Fshrink_window_pixels):
8280         * window.c (change_window_height):
8281         * window.c (Fwindow_configuration_p):
8282         * window.c (Fcurrent_window_configuration):
8283         * window.h:
8284         * casefiddle.c (casify_object):
8285         * casefiddle.c (Fupcase):
8286         * casefiddle.c (Fdowncase):
8287         * casefiddle.c (Fcapitalize):
8288         * casefiddle.c (Fupcase_initials):
8289         * casefiddle.c (casify_region_internal):
8290         * casefiddle.c (casify_region):
8291         * casefiddle.c (Fupcase_region):
8292         * casefiddle.c (Fdowncase_region):
8293         * casefiddle.c (Fcapitalize_region):
8294         * casefiddle.c (Fupcase_initials_region):
8295         * casefiddle.c (Fupcase_word):
8296         * casefiddle.c (Fdowncase_word):
8297         * casefiddle.c (Fcapitalize_word):
8298         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
8299         Replace 0 with '\0' when working with bytes.
8300         Replace initial "(" with "\(" in docstrings.
8301
8302 2000-11-01  Martin Buchholz  <martin@xemacs.org>
8303
8304         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
8305
8306         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
8307
8308 2000-10-31  Martin Buchholz  <martin@xemacs.org>
8309
8310         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
8311
8312 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
8313
8314         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
8315         correctly.
8316
8317 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
8318
8319         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
8320         (inhibit_auto_save_session): New variable.
8321         (vars_of_fileio): Declare and initialize them.
8322         * fileio.c (Fdo_auto_save): Don't create session file if
8323         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
8324
8325 2000-10-31  Martin Buchholz  <martin@xemacs.org>
8326
8327         * sgiplay.c (play_internal): C++ compilability.
8328         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
8329         * callproc.c (Fold_call_process_internal):
8330         Remove unused vars `env', `first'.
8331         * scrollbar.c (update_scrollbar_instance):
8332         #### unused var `current_window'.
8333         * redisplay-tty.c: Put currently unused vars insert_mode_on,
8334         etc. within #ifdef NOT_YET.
8335         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
8336         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
8337         * specifier.c (specifier_instance):
8338         #### unused var `tag'.
8339         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
8340
8341 2000-10-27  Martin Buchholz  <martin@xemacs.org>
8342
8343         * fns.c (Fbutlast):
8344         * fns.c (list_sort):
8345         * fns.c (Ffillarray):
8346         * fns.c (bytecode_nconc2):
8347         * fns.c (Fnconc):
8348         * fns.c (mapcar1):
8349         * fns.c (Fmapconcat):
8350         Be pedantically 64-bit correct.  For the time when someone will
8351         want to have a list with length > 2**32.
8352
8353         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
8354         Work around MIPSpro compiler bug.
8355
8356         * process-unix.c (unix_kill_child_process): Add snarky comment.
8357         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
8358
8359         * config.h.in: Oops, _getpt ==> _getpty
8360
8361 2000-10-26  Martin Buchholz  <martin@xemacs.org>
8362
8363         * config.h.in:
8364         * regex.c:
8365         Use void*, not char*, as return type of alloca().
8366
8367         * alloc.c (free_marker): Side effect inside assert expression!
8368
8369 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
8370
8371         * mule-charset.c (Fset_charset_ccl_program): To check
8372         if the given ccl program is valid, use setup_ccl_program()
8373         instead of CHECK_VECTOR().
8374         (Fmake_charset): Likewise.
8375
8376 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
8377
8378         * faces.c (get_extent_fragment_face_cache_index):
8379         Fix cachel.merged_faces memory leak.
8380
8381 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
8382
8383         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
8384         Reset MSB of octets obtained by DECODE_SJIS
8385         because of the incompatibility with Emacs.
8386         (ccl_driver)<CCL_ENCODE_SJIS>:
8387         Set MSB of octets before passing them to
8388         ENCODE_SJIS because of the incompatibility
8389         with Emacs.
8390
8391 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
8392
8393         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
8394         (DECLARE_LRECORD): Undo the last change.
8395         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
8396
8397 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
8398
8399         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
8400         the implementation to lrecord_implementations_table.
8401
8402 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
8403
8404         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
8405         initial value of `lrecord_type_##c_name' and
8406         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
8407         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
8408         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
8409         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
8410         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
8411
8412 2000-10-17  Martin Buchholz  <martin@xemacs.org>
8413
8414         * miscplay.c (sndcnv8S_2mono):
8415         (sndcnv2monounsigned):
8416         (sndcnvULaw_2linear):
8417         (sndcnv16swap):
8418         Remove implementation-defined behavior.
8419
8420 2000-10-12  Martin Buchholz  <martin@xemacs.org>
8421
8422         * input-method-xlib.c: Warning suppression.
8423
8424 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
8425
8426         * mule-ccl.c: Sync up with Emacs 21.0.90.
8427         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
8428         Do nothing.
8429         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
8430         Likewise.
8431         (ccl_driver[WriteMultibyteChar2]): Bug fix.
8432         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
8433         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
8434         leading char belongs to official 2-dimensional charset.
8435         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
8436         write the given character as is.  Otherwise,
8437         if it is a multibyte char, convert it by
8438         non_ascii_set_charptr_emchar, then write it.
8439         (CCL_WRITE_STRING): Likewise.
8440         (ccl_get_compiled_code): New function.
8441         (setup_ccl_program): When ccl_prog is invalid,
8442         return -1.
8443         (Fregister_code_conversion_map): New function.
8444         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
8445
8446         * mule-ccl.h: Sync up with Emacs 21.0.90.
8447         (Fregister_ccl_program): export it.
8448
8449         * redisplay-msw.c (separate_textual_runs):
8450         If ccl program is not valid, don't do ccl conversion.
8451
8452         * redisplay-x.c (separate_textual_runs): Ditto.
8453
8454         * file-coding.c (Fmake_coding_system):
8455         When type is ccl and value is vector, register it
8456         with a proper symbol.  And checks whether the
8457         given ccl program is valid.
8458         (mule_decode): When calling ccl_driver, if src indicates
8459         NULL pointer, set an empty string instead.
8460         (mule_encode): Likewise.
8461
8462 2000-10-11  Martin Buchholz  <martin@xemacs.org>
8463
8464         The following large batch of changes gets us back to a state of
8465         C++ compilability.  Extbyte is now a char, which means that
8466         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
8467
8468         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
8469
8470         * sound.c (Fplay_sound): Type correctness.
8471
8472         * select-x.c (hack_motif_clipboard_selection): Type correctness.
8473         (x_get_window_property): Type correctness.
8474         (receive_incremental_selection): unsigned char ==> Extbyte
8475         (selection_data_to_lisp_data): unsigned char ==> Extbyte
8476         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
8477         (Fx_store_cutbuffer_internal): Type correctness.
8478
8479         * process-unix.c (try_to_initialize_subtty): Type correctness.
8480
8481         * objects-x.c (x_print_color_instance): Type correctness.
8482         (x_print_font_instance): Type correctness.
8483         (x_list_fonts): SExtbyte ==> Extbyte.
8484         (valid_x_font_name_p): SExtbyte ==> Extbyte.
8485         (x_find_charset_font): SExtbyte ==> Extbyte.
8486         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
8487         (truename_via_XListFonts): SExtbyte ==> Extbyte.
8488         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
8489         Use bufbyte_strcmp.
8490
8491         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
8492         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
8493         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
8494         (BYTE_C0_P): Use bit ops for char-signedness safety.
8495         (BYTE_C1_P): Use bit ops for char-signedness safety.
8496         (CHARSET_BY_LEADING_BYTE):
8497         (CHARSET_BY_ATTRIBUTES):
8498         Always use inline function.
8499         Use type_checking_assert.
8500         Hide chlook.
8501
8502         * mule-charset.c (non_ascii_charptr_copy_char):
8503         Modify to work with both ASCII and non-ASCII characters.
8504         Improve docs and variable names.
8505         Replace over-clever fall-through switch with a simple loop.
8506         (Lstream_get_emchar_1):
8507         Replace over-clever fall-through switch with a simple loop.
8508
8509         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
8510         Warning suppression.
8511
8512         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
8513         the return value of Lstream_getc, which could be EOF as well.
8514
8515         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
8516
8517         * lisp.h: Make Extbyte a char, not unsigned char, so that external
8518         APIs can be used on Extbytes without casts.  Risky!
8519         (SExtbyte): Remove.
8520         (UExtbyte): Remove.
8521
8522         * input-method-xlib.c (XIM_init_device):
8523         Use Xlib.h instead of IntrinsicP.h.
8524         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
8525         which will break in X11R7.
8526         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
8527         to call XRegisterIMInstantiateCallback with correct types.
8528
8529         * gui-x.c (button_item_to_widget_value): Type correctness.
8530
8531         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
8532
8533         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
8534         (xbm_instantiate_1): Type correctness.
8535         (BUILD_GLYPH_INST):  Type correctness.
8536
8537         * fileio.c (Fsubstitute_in_file_name): Type correctness.
8538
8539         * file-coding.c:
8540         (decode_coding_sjis):
8541         (decode_coding_big5):
8542         (decode_coding_ucs4):
8543         (decode_coding_utf8):
8544         (decode_coding_iso2022):
8545         (decode_coding_no_conversion):
8546         Make all decoding functions take an Extbyte * arg.
8547         (encode_coding_sjis):
8548         (encode_coding_big5):
8549         (encode_coding_ucs4):
8550         (encode_coding_utf8):
8551         (encode_coding_iso2022):
8552         (encode_coding_no_conversion):
8553         Make all encoding functions take a Bufbyte * arg.
8554         Use size_t instead of unsigned int for memory sizes.
8555         Only cast to unsigned char whenever dereferencing Extbyte *.
8556
8557         * doc.c (unparesseuxify_doc_string): Type correctness.
8558
8559         * console-x.c (split_up_display_spec):
8560         Rewrite without using details of internal string representation.
8561         (x_semi_canonicalize_device_connection): Type correctness.
8562
8563         * config.h.in:
8564         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
8565         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
8566         (HAVE_XFREE386): Removed.
8567
8568         * buffer.h (DEC_CHARPTR): `const' correctness.
8569         (bufbyte_strcmp): New.
8570         (bufbyte_memcmp): New.
8571
8572         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
8573
8574         * buffer.h (XCHAR_OR_CHAR_INT):
8575         Always use inline function.
8576         Remove redundant type checking assert() - XINT will abort quite nicely.
8577
8578 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
8579
8580         * search.c (Freplace_match): Set newtext to an empty string.
8581
8582 2000-10-10  Martin Buchholz  <martin@xemacs.org>
8583
8584         * s/decosf1-3.h: Remove #include of stropts.h
8585         * s/ptx.h: Remove #include of stropts.h
8586         * s/usg5-4.h: Remove #include of stropts.h
8587         * sysproc.h:
8588         * config.h.in:
8589         Use stropts.h, not sys/stropts.h.
8590         Use strtio.h, not sys/strtio.h.
8591
8592 2000-10-04  Martin Buchholz <martin@xemacs.org>
8593
8594         * XEmacs 21.2.36 is released.
8595
8596 2000-09-21  Andy Piper  <andy@xemacs.org>
8597
8598         * glyphs-x.c (x_redisplay_widget): make sure non-structural
8599         changes still involve copying the widget tree.
8600         (update_widget_face): make sure a change is register in the widget
8601         tree. Call update_tab_widget_face appropriately.
8602         (update_tab_widget_face): ditto.
8603         (x_tab_control_redisplay): make sure non-structural changes still
8604         involve copying the widget tree.
8605
8606 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
8607
8608         * lread.c (locate_file): Check the path element is non-nil.
8609
8610 2000-10-02  Martin Buchholz  <martin@xemacs.org>
8611
8612         * lisp.h: Warning suppression for SCO compilers.
8613
8614         * redisplay-tty.c (reset_tty_modes): Fix crash.
8615         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
8616
8617 2000-09-27  Martin Buchholz  <martin@xemacs.org>
8618
8619         Big signal/process handling overhaul.  Bugs fixed:
8620         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
8621         M-x comint-kill-subjob should work for both values nil and t of
8622         process-connection-type. It was broken on most platforms.
8623         Testing on Irix and Cygwin still needed.  Other plaforms tested.
8624         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
8625         * process-unix.c: Signal/Process handling overhaul.
8626         (pty_name): make 64 bytes, as `expect' does, for paranoia.
8627         (allocate_pty): Use all available modern methods of allocating
8628         ptys, falling back to old style BSD allocation as a last resort.
8629         Use allegedly more secure Unix98 pty allocation by default.
8630         (allocate_pty_the_old_fashioned_way): New. the last resort.
8631         (unix_create_process): Push ptem, ldterm, ttcompat where
8632         available.  Autoconfiscate.
8633         (try_to_initialize_subtty): New.
8634         (unix_kill_child_process): Proper signal handling for ptys on most
8635         platforms, using special knowledge of AIX, BSD, etc...
8636         (unix_create_process): Always disconnect_controlling_terminal() for
8637         subprocesses, whether using ptys or not.
8638         * process.h: Remove old getpt-dependent PTY code.
8639         * process.c (Fprocess_send_signal): New, obvious generic function.
8640         (decode_signal): New.
8641         (Finterrupt_process):
8642         (Fkill_process):
8643         (Fquit_process):
8644         (Fstop_process):
8645         (Fcontinue_process):
8646         (Fsignal_process): Use decode_signal.
8647         (process_send_signal):
8648         Many docstring corrections.
8649         Allow any signal to be sent to a process object.
8650         * config.h.in: Add symbols for big signal/process overhaul.
8651         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
8652         * sysproc.h: Include process-related headers, where available:
8653         sys/stropts.h sys/strtio.h pty.h libutil.h
8654         * s/irix4-0.h:
8655         * s/irix5-0.h:
8656         * s/cygwin32.h:
8657         * s/gnu.h:
8658         * s/linux.h:
8659         * s/hpux.h:
8660         * s/aix3-1.h:
8661         Remove old S&M pty stuff.
8662         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
8663         * systty.h: Simplify cpp hackery, improve comments.
8664         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
8665
8666         * editfns.c (Fformat_time_string):
8667         Be a little more paranoid with the return value of ctime.
8668
8669         * fileio.c (check_executable):
8670         (check_writable):
8671         Use symbolic constants X_OK, W_OK.
8672
8673         * console-x.c (split_up_display_spec): Fix a warning.
8674
8675 2000-10-02  Martin Buchholz  <martin@xemacs.org>
8676
8677         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
8678         * ntproc.c (sys_spawnve): make_string ==> build_string
8679         Small clarity improvements.
8680
8681 2000-09-30  Martin Buchholz  <martin@xemacs.org>
8682
8683         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
8684
8685         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
8686
8687         * config.h.in (HAVE_STRCASECMP): Remove.
8688
8689 2000-09-29  Martin Buchholz  <martin@xemacs.org>
8690
8691         * redisplay-output.c (redisplay_output_pixmap):
8692         Cleaner and possibly more 64-bit correct code.
8693
8694 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
8695
8696         * dumper.c (pdump_load_finish): move restoration of
8697         `noninteractive1' to emacs.c (main_1).
8698         * emacs.c (main_1): protect LISP-visible command-line flags
8699         from pdump_load().
8700
8701 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
8702
8703         * Makefile.in.in (versionclean):  Use EXE_TARGET and
8704         DUMP_TARGET instead of literal program names.
8705
8706 2000-09-20  Martin Buchholz  <martin@xemacs.org>
8707
8708         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
8709
8710 2000-09-19  Martin Buchholz  <martin@xemacs.org>
8711
8712         * *: Spelling mega-patch
8713
8714 2000-09-19  Martin Buchholz  <martin@xemacs.org>
8715
8716         * fns.c (bad_bad_turtle):
8717         Delete "Eek!" comment, since we fixed the bug to which it refers.
8718
8719 2000-09-16  Martin Buchholz  <martin@xemacs.org>
8720
8721         * alloca.c: Replace REGISTER with register.
8722
8723 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
8724
8725         * file-coding.c (ucs_to_char): Use countof.
8726
8727 2000-09-16  Martin Buchholz  <martin@xemacs.org>
8728
8729         * file-coding.c: (ucs_to_char):
8730         (complex_vars_of_file_coding):
8731         Use countof instead of sizeof.
8732         Use CHECK_NATNUM instead of CHECK_INT.
8733
8734         * sysdep.c (strcasecmp): Remove.
8735         * device-x.c (ascii_strcasecmp): New.
8736         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
8737         Avoid using non-standard non-portable strcasecmp.
8738
8739 2000-09-16  Martin Buchholz  <martin@xemacs.org>
8740
8741         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
8742         * font-lock.c: remove reference to emacsfns.h.
8743         * search.c: small doc improvement.
8744         * event-Xt.c: correct file names in comments.
8745         * console-x.h Correct file names in comments.
8746         * frame.c: Correct file names in comments.
8747         * event-stream.c: remove Energize from comments.
8748
8749 2000-09-15  Martin Buchholz  <martin@xemacs.org>
8750
8751         * symeval.h (DEFERROR_STANDARD):
8752         (DEFERROR):
8753         (DEFSYMBOL):
8754         (DEFSYMBOL_NO_DUMP):
8755         (DEFSYMBOL_MULTIWORD_PREDICATE):
8756         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
8757         (DEFKEYWORD):
8758         The construct &##name is not sensible C.
8759         Fixes compilation errors with Unixware native compiler.
8760
8761 2000-09-14  Martin Buchholz  <martin@xemacs.org>
8762
8763         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
8764         (next_frame_internal): Removed.  We now just have next_frame.
8765         (next_frame):
8766         Write a simpler and cleaner one-pass algorithm.
8767         Remove called_from_delete_device arg and #ifdefed-out code.
8768         (previous_frame):
8769         Renamed from prev_frame.  Update callers.
8770         Cleaned up to have an analogous implementation to next_frame.
8771         (other_visible_frames_internal): Remove the
8772         called_from_delete_device bogus arg, and hence, remove this
8773         function.  Just use other_visible_frames().
8774
8775         * window.c (Fnext_window):
8776         Prettify docstring.
8777         Since next_frame() is guaranteed to return a frame, remove check
8778         for nil inserted in previous patch.
8779         (Fprevious_window):
8780         Prettify docstring.
8781         Make code look more like Fnext_window.
8782         (window_loop):
8783         Respect the `console' arg when iterating through windows.
8784         Fixes bug: (get-buffer-window buffer t device) not respecting
8785         the `device' arg.
8786         This function needs more work, as others have pointed out.
8787
8788         * frame.h: Rename prev_frame to previous_frame.
8789         device_matches_console_spec no longer takes a `frame' arg.
8790
8791         * s/gnu.h:
8792         * s/linux.h:
8793         * s/hpux.h:
8794         Use EMACS_BLOCK_SIGNAL instead of sigblock.
8795         From "Golubev I. N." <gin@mo.msk.ru>.
8796
8797         * make-src-depend: Fix typo.
8798
8799 2000-09-13  Martin Buchholz  <martin@xemacs.org>
8800
8801         * window.c (Fnext_window):
8802         next_frame() might return nil, not a frame.
8803         Fixes this crash:
8804         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
8805
8806         * frame.c (next_frame_internal):
8807         We've passed a frame if we've passed its device.
8808         Fixes this crash:
8809         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
8810 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
8811
8812 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
8813
8814         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
8815         Allow option to suppress accelerators in menu/dialog items.
8816         (populate_or_checksum_helper): Pass dialog title through above.
8817
8818 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
8819
8820         * event-msw.c (mswindows_key_to_emacs_keysym):
8821         Add "pause" key, fix "menu" key.
8822
8823 2000-09-09  Martin Buchholz  <martin@xemacs.org>
8824
8825         * eval.c (reinit_vars_of_eval):
8826         Increase max_lisp_eval_depth to 1000,
8827         required for thai-xtis.el to byte-compile under some circumstances.
8828
8829 2000-09-04  Martin Buchholz  <martin@xemacs.org>
8830
8831         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
8832         From Kenichi Handa.
8833
8834 2000-09-01  Martin Buchholz  <martin@xemacs.org>
8835
8836         * make-src-depend: Make the generated Makefiles smaller.
8837
8838         * s/hpux.h (SETUP_SLAVE_PTY):
8839         Provide a %d in the format string for the errno argument.
8840
8841         * editfns.c (Ftemp_directory):
8842         Warning fix.
8843         Avoid buffer overrun on very long file name.
8844
8845         * input-method-xlib.c (XIM_init_device):
8846         6th parameter of XRegisterIMInstantiateCallback has different
8847         pointer types on different OSes, so simply cast to (void *).
8848
8849         * unexhp9k800.c: Warning fixes.  Fiddly changes.
8850
8851         * sysdll.c (dll_open):
8852         shl_load will hang hard if passed a NULL filename.
8853         Simply return NULL for compatibility with dlopen.
8854         * sysdll.c: Conform to XEmacs coding standards.
8855
8856         * sysdep.c (get_pty_max_bytes):
8857         Support pty input lines longer than 512 bytes on HP-UX 10.20.
8858
8859 2000-08-31  Martin Buchholz  <martin@xemacs.org>
8860
8861         * tooltalk.c: Add #include <syssignal.h>
8862
8863 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
8864
8865         * s/hpux.h: Don't use undefined function sigunblock().
8866
8867 2000-08-31  Martin Buchholz  <martin@xemacs.org>
8868
8869         * config.h.in: Add HAVE_BALLOON_HELP.
8870         * emacs.c: Use HAVE_BALLOON_HELP.
8871         * Makefile.in.in (x_objs):
8872         Make Balloon Help conditional on finding shape.h.
8873
8874 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
8875
8876         * syntax.c (regex_emacs_buffer_p): New variable.
8877         * syntax.h (regex_emacs_buffer_p): extern.
8878         * search.c (looking_at_1):
8879         (string_match_1):
8880         (fast_string_match):
8881         (search_buffer): Set regex_emacs_buffer_p.
8882         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
8883         when before_dot, at_dot, after_dot.
8884
8885 2000-08-23  Andy Piper  <andy@xemacs.org>
8886
8887         * gui-x.c (popup_selection_callback): Only set action_occurred
8888         when we really have an image instance.
8889         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
8890
8891 2000-08-23  Andy Piper  <andy@xemacs.org>
8892
8893         * gui-msw.c (mswindows_handle_gui_wm_command): set
8894         action_occurred.
8895         * gui-x.c (popup_selection_callback): ditto.
8896
8897         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
8898         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
8899         (struct Lisp_Image_Instance): add action_occurred flag.
8900
8901         * glyphs.c (redisplay_subwindow): use action_occurred flag.
8902         (image_instance_changed): ditto.
8903         (reset_frame_subwindow_instance_cache): only unmap windows - do
8904         not remove them from the cache also.
8905
8906         * glyphs-widget.c (tab_control_update): better debug.
8907         (progress_gauge_update): ditto.
8908         (layout_update): ditto.
8909         (layout_instantiate): ditto.
8910         (tab_control_order_only_changed): cope with null pending items.
8911
8912         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
8913         debug. Force selection of an item when an action occurred. Cope
8914         with null pending_items.
8915         (mswindows_progress_gauge_redisplay): better debug.
8916         * glyphs-x.c (x_tab_control_redisplay): ditto.
8917
8918         * redisplay.c (redisplay_frame): reset the frame cache if the
8919         frame is garbaged.
8920
8921         * window.c (Fset_window_configuration): potentially re-enable
8922         frame cache reset.
8923         (window_unmap_subwindows): need to finalize instances here since
8924         it is only used in mark_window_as_deleted.
8925
8926 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
8927
8928         * nas.c (SndOpenDataForReading):
8929         nas.c (WaveOpenDataForReading):
8930         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
8931         Somehow escaped from the 2000-08-14 patch.
8932
8933 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
8934
8935         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
8936         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
8937
8938 2000-08-21  Andy Piper  <andy@xemacs.org>
8939
8940         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
8941         window if it is not already displayed.
8942
8943         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
8944         it is not already displayed.
8945
8946         * window.c (Fset_window_configuration): don't reset the frame
8947         cache.
8948
8949         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
8950         instances from the frame cache if we are actually finalizing them.
8951         (reset_frame_subwindow_instance_cache): reset frame cache only
8952         after unmapping everything.
8953         (map_subwindow): set displayed flag after mapping.
8954
8955 2000-08-21  Martin Buchholz  <martin@xemacs.org>
8956
8957         * data.c (indirect_function):
8958         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
8959
8960         * eval.c (function_argcount):
8961         Use original function when signaling errors.
8962
8963 2000-08-18  Andy Piper  <andy@xemacs.org>
8964
8965         * frame.c (delete_frame_internal): use new
8966         free_frame_subwindow_instances name.
8967
8968         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
8969         (add_tab_item): make return type correct.
8970         (mswindows_tab_control_instantiate): assert index of tab.
8971         (mswindows_tab_control_redisplay): Re-code to use
8972         gui_item_equal_sans_selected and gui_item_list_find_selected.
8973
8974         * glyphs-widget.c (tab_control_update): Correct comment.
8975
8976         * window.c (window_unmap_subwindows): use new
8977         unmap_subwindow_instance_cache_mapper.
8978         (window_unmap_subwindows_cache_mapper): deleted.
8979         (Fset_window_configuration): comparisons should now be with
8980         EQ. Preserve the subwindow instance cache across configuration
8981         changes.
8982         (allocate_window): ditto.
8983         (make_dummy_parent): ditto.
8984
8985         * glyphs.c (free_frame_subwindow_instances): rename from
8986         free_frame_subwindow_instance_cache. finalize all instances rather
8987         than just those in the display cache.
8988         (finalize_all_subwindow_instances): walk windows unmapping and
8989         finalizing subwindows.
8990         (unmap_subwindow_instance_cache_mapper): moved from
8991         window.c. Allow finalization as well as unmapping.
8992
8993         * gui.c (gui_item_list_find_selected): new function.
8994
8995         * gui.h (gui_item_list_find_selected): declare.
8996
8997         * glyphs-x.c (x_tab_control_redisplay): pick tab
8998         explicitly. Re-code to use gui_item_equal_sans_selected and
8999         gui_item_list_find_selected.
9000
9001         * glyphs-x.h: add lwlib-utils.h
9002
9003         * buffer.c (Frecord_buffer): undo previous change.
9004
9005 2000-08-09  Vin Shelton  <acs@xemacs.org>
9006
9007         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
9008         possible.  Create temporary files more securely.  The patch was
9009         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
9010         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
9011         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
9012         for details.
9013
9014 2000-08-07  Ben Wing  <ben@xemacs.org>
9015
9016         * getloadavg.c: remove duplicate (and windows-breaking)
9017         includes of fcntl.h and sys/file.h.
9018
9019         * nt.c: remove duplicate getloadavg() definition.
9020
9021         * sysdll.h (Qdll_filename_encoding): add missing stand-in
9022         encodings.
9023
9024 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
9025
9026         * eval.c (function_argcount): If function needs to be autoloaded
9027         actually use the loaded definition.
9028         GCPRO function.
9029
9030 2000-08-05  Ben Wing  <ben@xemacs.org>
9031
9032         * getloadavg.c: add prototype for getloadavg().  remove
9033         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
9034         of the code).  remove duplicate header includes.
9035
9036         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
9037
9038         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
9039         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
9040         useful load average.
9041
9042         * alloc.c (reinit_alloc_once_early): removed references to
9043         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
9044         the lisp vars are the only things referencing the malloc_sbrk_*
9045         vars, and they were already if 0'd out.  these vars only exist
9046         in the older malloc.c, which is basically unused, and they're
9047         only for informational purposes.
9048
9049         * m\*.h: removed useless VIRT_ADDR_VARIES.
9050
9051         * m\powerpc.h: removed stray NO_ARG_ARRAY.
9052
9053 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9054
9055         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
9056         color if the image is a mono pixmap.
9057
9058 2000-07-30  Ben Wing  <ben@xemacs.org>
9059
9060         * Makefile.in.in (release):
9061         Remove stray @.
9062
9063         * buffer.c (directory_is_current_directory):
9064         * dired-msw.c (mswindows_get_files):
9065         * dired.c:
9066         * dired.c (Fdirectory_files):
9067         * dired.c (file_name_completion_stat):
9068         * dired.c (Ffile_attributes):
9069         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
9070         preprocessor tricks, to avoid problems on some machines
9071         (e.g. SCO).
9072
9073         * callproc.c (egetenv): GC docs.
9074
9075         * console-msw.h:
9076         * console-msw.h (struct mswindows_dialog_id):
9077         * lrecord.h (lrecord_type):
9078         New object for use with MSW dialogs.
9079
9080         * console.h (struct console_methods):
9081         New enable/disable frame methods, for proper modal dialogs.
9082
9083         * device-msw.c (msprinter_default_printer): Fix to follow
9084         proper Mule conventions.
9085
9086         * device-msw.c:
9087         * device-msw.c (signal_open_printer_error):
9088         * device-msw.c (msprinter_init_device):
9089         * device-msw.c (ensure_not_printing):
9090         * device-msw.c (plist_get_margin):
9091         * device-msw.c (Fmsprinter_select_settings):
9092         * device-msw.c (finalize_devmode):
9093         * device-msw.c (Fmsprinter_settings_despecialize):
9094         * device-msw.c (signal_enum_priner_error):
9095         * extents.c (decode_extent):
9096         * extents.c (decode_map_extents_flags):
9097         * extents.c (decode_extent_at_flag):
9098         * extents.c (Fextent_at):
9099         * extents.c (Fextents_at):
9100         * extents.c (symbol_to_glyph_layout):
9101         [[[[2]]]] Use structured errors.
9102
9103         * dialog-msw.c:
9104         * dialog-msw.c (mswindows_is_dialog_msg):
9105         * dialog-msw.c (mark_mswindows_dialog_id):
9106         * dialog-msw.c (dialog_proc):
9107         * dialog-msw.c (handle_question_dialog_box):
9108         * dialog-msw.c (syms_of_dialog_mswindows):
9109         Define new object to clean up marking; use it as a dialog identifier.
9110         Call new delete-dialog-box-hook.
9111
9112         * dialog-x.c (dbox_selection_callback):
9113         * dialog-x.c (dbox_descriptor_to_widget_value):
9114         * dialog-x.c (x_make_dialog_box_internal):
9115         Call new delete-dialog-box-hook.
9116         Return an id.
9117
9118         * dialog.c:
9119         * dialog.c (syms_of_dialog):
9120         * dialog.c (vars_of_dialog):
9121         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
9122
9123         * eval.c:
9124         * eval.c (signal_call_debugger):
9125         when noninteractive, output stack traces on the console instead
9126         of in a (never-seen) buffer.
9127
9128         * eval.c (signal_type_error):
9129         * eval.c (invalid_argument_2):
9130         * lisp.h:
9131         new funs for use w/structured errors.
9132
9133         * event-Xt.c:
9134         * event-Xt.c (x_to_emacs_keysym):
9135         * event-Xt.c (describe_event):
9136         * event-Xt.c (emacs_Xt_event_handler):
9137         * event-Xt.c (vars_of_event_Xt):
9138         * event-msw.c:
9139         * event-msw.c (mswindows_wnd_proc):
9140         * event-msw.c (vars_of_event_mswindows):
9141         rename {x,mswindows}-debug-events to debug-{}-events for
9142         consistency with other debug-foo variables.
9143
9144         * event-stream.c:
9145         document next-event more clearly.
9146
9147         * fileio.c (Ffile_name_directory):
9148         * fileio.c (Ffile_name_nondirectory):
9149         * fileio.c (Funhandled_file_name_directory):
9150         * fileio.c (file_name_as_directory):
9151         * fileio.c (Ffile_name_as_directory):
9152         * fileio.c (directory_file_name):
9153         * fileio.c (Fdirectory_file_name):
9154         * fileio.c (Fmake_temp_name):
9155         * fileio.c (Ffile_truename):
9156         * fileio.c (Fsubstitute_in_file_name):
9157         * fileio.c (expand_and_dir_to_file):
9158         * fileio.c (barf_or_query_if_file_exists):
9159         * fileio.c (check_executable):
9160         * fileio.c (Ffile_exists_p):
9161         * fileio.c (Ffile_writable_p):
9162         * fileio.c (Ffile_directory_p):
9163         * fileio.c (Ffile_regular_p):
9164         * fileio.c (Ffile_modes):
9165         * fileio.c (Ffile_newer_than_file_p):
9166         * fileio.c (Fverify_visited_file_modtime):
9167         * fileio.c (Fset_visited_file_modtime):
9168         * fileio.c (auto_save_1):
9169         (1). (2).
9170         fix up gcpro's.
9171
9172         * frame-msw.c:
9173         * frame-msw.c (mswindows_init_frame_1):
9174         * frame-msw.c (mswindows_enable_frame):
9175         * frame-msw.c (error_frame_unsizable):
9176         * frame-msw.c (msprinter_init_frame_1):
9177         * frame-msw.c (msprinter_init_frame_3):
9178         * frame-msw.c (console_type_create_frame_mswindows):
9179         (2).
9180         implement new enable/disable frame methods.
9181
9182         * frame-x.c:
9183         * frame-x.c (x_enable_frame):
9184         * frame-x.c (console_type_create_frame_x):
9185         implement new enable/disable frame methods.
9186
9187         * frame.c:
9188         * frame.c (Fdisable_frame):
9189         * frame.c (syms_of_frame):
9190         * frame.h (struct frame):
9191         implement new enable/disable frame methods/functions.
9192
9193         * general-slots.h:
9194         add initial-focus.
9195
9196         * glyphs-msw.c (mswindows_widget_instantiate):
9197         comment that initial-focus should be implemented.
9198
9199         * glyphs-widget.c:
9200         * glyphs-widget.c (check_valid_instantiator):
9201         * glyphs-widget.c (check_valid_orientation):
9202         * glyphs-widget.c (check_valid_tab_orientation):
9203         * glyphs-widget.c (check_valid_justification):
9204         * glyphs-widget.c (check_valid_border):
9205         * glyphs-widget.c (check_valid_callback):
9206         * glyphs-widget.c (check_valid_int_or_function):
9207         * glyphs-widget.c (check_valid_string_or_vector):
9208         * glyphs-widget.c (check_valid_item_list_1):
9209         * glyphs-widget.c (widget_validate):
9210         * glyphs-widget.c (combo_box_validate):
9211         * glyphs-widget.c (widget_instantiate):
9212         * glyphs-widget.c (syms_of_glyphs_widget):
9213         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
9214         * glyphs-widget.c (image_instantiator_combo_box):
9215         * glyphs-widget.c (image_instantiator_scrollbar):
9216         * glyphs-widget.c (image_instantiator_tab_control):
9217         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
9218         (2).
9219         support (unimplemented) keyword initial-focus.
9220         reindent long macros.
9221
9222         * glyphs-x.c (x_redisplay_widget):
9223         * glyphs-x.c (x_button_instantiate):
9224         * glyphs-x.c (x_button_redisplay):
9225         * glyphs-x.c (x_progress_gauge_instantiate):
9226         * glyphs-x.c (x_edit_field_instantiate):
9227         * glyphs-x.c (x_combo_box_instantiate):
9228         * glyphs-x.c (x_tab_control_instantiate):
9229         * glyphs-x.c (x_label_instantiate):
9230         * gui-x.c:
9231         * gui-x.c (button_item_to_widget_value):
9232         * gui-x.c (gui_items_to_widget_values_1):
9233         * gui-x.c (gui_item_children_to_widget_values):
9234         * gui-x.c (gui_items_to_widget_values):
9235         * gui-x.h:
9236         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9237         add new flag to gui-parsing routines to indicate whether
9238         accelerator specs should be supported.
9239
9240         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
9241
9242         * glyphs.h (struct Lisp_Image_Instance):
9243         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
9244         add initial-focus flag.
9245
9246         * gui.c:
9247         * gui.c (syms_of_gui):
9248         * gui.c (vars_of_gui):
9249         clean up menu-no-selection-hook.
9250
9251         * gui.h:
9252         support delete-dialog-box-hook.
9253
9254         * lread.c (Fload_internal):
9255         * lread.c (locate_file_in_directory_mapper):
9256         (1).
9257
9258         * lrecord.h:
9259         * lrecord.h (struct toolbar_button):
9260         * lrecord.h (syms_of_toolbar):
9261         document how to create a new object.
9262
9263         * menubar-msw.c (mswindows_char_is_accelerator):
9264         may be called on frames w/o menus.
9265
9266         * menubar.c (vars_of_menubar):
9267         clean up :filter docs.
9268
9269         * nt.c (readdir):
9270         * ntproc.c:
9271         (1).
9272
9273         * process-nt.c:
9274         * process-nt.c (validate_signal_number):
9275         * process-nt.c (signal_cannot_launch):
9276         * process-nt.c (nt_create_process):
9277         * process-nt.c (nt_send_process):
9278         * process-nt.c (nt_kill_child_process):
9279         * process-nt.c (nt_open_network_stream):
9280         * process-nt.c (syms_of_process_nt):
9281         (2).
9282         delete quote-handling.  call new lisp code that does it better.
9283
9284         * process-unix.c (connect_to_file_descriptor):
9285         * process-unix.c (allocate_pty):
9286         * process-unix.c (unix_send_process):
9287         * process-unix.c (unix_kill_child_process):
9288         * process-unix.c (unix_open_network_stream):
9289         * process-unix.c (unix_open_multicast_group):
9290         (1). (2).
9291
9292         * process.c:
9293         * process.c (Fstart_process_internal):
9294         (2).  need to canonicalize process path even if absolute.
9295
9296         * select-msw.c (symbol_to_ms_cf):
9297         * select-msw.c (ms_cf_to_symbol):
9298         * select-msw.c (cf_is_autofreed):
9299         * select-msw.c (mswindows_destroy_selection):
9300         * select.c:
9301         * select.c (syms_of_select):
9302         * select.h:
9303         support dibv5, fix bugs. (from Mike Alexander)
9304
9305         * select.c (Fget_selection_internal):
9306         * select.c (select_convert_out):
9307
9308         * sysdep.c:
9309         * sysdep.c (xemacs_stat):
9310         renamed.
9311
9312         * sysdep.c (mkdir):
9313         * sysdep.c (rmdir):
9314         but keep original stat() here because we provide encapsulation
9315         around these funs.
9316
9317         * sysfile.h:
9318         * sysfile.h (fstat):
9319         remove stat garbage.
9320
9321         * syswindows.h:
9322         fix X/MSW conflict.
9323         don't include tchar.h.  it's inappropriate because it makes
9324         compile-time distinctions when we want runtime distinctions.
9325         (we provide our own tchar replacements)
9326
9327         * toolbar.c:
9328         use default object printer for toolbar-button.
9329
9330         * unexcw.c:
9331         make sure we don't encapsulate.
9332
9333         * window.c (vars_of_window):
9334         emphasize that temp-buffer-show-hook is obsolete.
9335
9336 2000-08-05  Martin Buchholz  <martin@xemacs.org>
9337
9338         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
9339         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
9340
9341         * events.c (Fevent_timestamp_lessp):
9342         Not 64-bit clean.  Use EMACS_INT, not int.
9343
9344 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
9345
9346         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
9347         unsigned int and changed the last enum to
9348         lrecord_type_last_built_in_type.
9349         (lrecord_implementations_table): changed prototype to know how
9350         long the array is supposed to be.
9351         (lrecord_type_count): new unsigned int to keep track of the
9352         current number of lisp lrecord types.
9353         (DEFINE_EXTERNAL_LRECORD):
9354         (DECLARE_EXTERNAL_LRECORD): Added these two for external
9355         dynamic-modules to declare new lisp types. They are the same
9356         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
9357         int for each new type, and increment lrecord_type_count by 1.
9358
9359         * alloc.c (lrecord_implementations_table): Changed to reference
9360         lrecord_type_last_built_in_type for the size of the array.
9361         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
9362
9363 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
9364
9365         * glyphs.h (check_valid_item_list): Renamed from
9366         check_valid_item_list_1.
9367
9368 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
9369
9370         * select.c (Qselect_coerce): New.
9371         * select.c (Vselection_coercion_alist): New.
9372         * select.c (syms_of_select): Declare.
9373         * select.c (get-selection-internal): Use it.
9374         Use the new select-coerce functionality.
9375
9376         * select.c (select_coerce): New.
9377         * select.h (select_coerce): Declare.
9378         New function to coerce one type of data into another.
9379
9380 2000-08-03  Martin Buchholz  <martin@xemacs.org>
9381
9382         * callproc.c (Fcall_process_internal):
9383         (Fcall_process_internal):
9384         * process-unix.c (unix_create_process):
9385         Save and restore the value of errno, so that error messages are accurate.
9386
9387 2000-08-01  Martin Buchholz  <martin@xemacs.org>
9388
9389         * elhash.c (print_hash_table):
9390         Fix printing of hash tables to also use `key-and-value' instead of `t'.
9391         Prettify docstrings and indentation.
9392
9393 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
9394
9395         * window.c (Fwindow_pixel_edges): Subtract frame border and
9396         gutter size.
9397
9398 2000-07-31  Andy Piper  <andy@xemacs.org>
9399
9400         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
9401         will acknowledge the change.
9402
9403         * glyphs.h: declare tab_control_order_only_changed.
9404
9405         * glyphs-x.c (x_tab_control_redisplay): use
9406         tab_control_order_only_changed.
9407
9408         * glyphs-widget.c (tab_control_order_only_changed): new function.
9409
9410         * glyphs-msw.c (mswindows_tab_control_redisplay): use
9411         tab_control_order_only_changed.
9412
9413         * gui.c (gui_item_equal_sans_selected): new function.
9414         (gui_item_equal): use it.
9415
9416         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
9417         :properties in favor of :items..
9418
9419         * glyphs-widget.c (check_valid_item_list): rename from
9420         check_valid_item_list_1.
9421         (check_valid_item_list_1): renamed.
9422         (combo_box_validate): deprecate :properties in favor of :items.
9423         (widget_instantiate): ditto.
9424         (tab_control_update): ditto.
9425         (image_instantiator_combo_box): ditto.
9426         (image_instantiator_tree_view): ditto.
9427         (image_instantiator_tab_control): ditto.
9428         (layout_post_instantiate): remove dead code.
9429
9430         * print.c (debug_print_no_newline): only write to debugger if in
9431         WIN32_NATIVE.
9432
9433         * elhash.c (Fmake_hash_table): update doc string.
9434
9435         * event-msw.c (mswindows_wnd_proc): don't allow processing of
9436         messages whilst in GC. This at least stops XEmacs crashing but has
9437         the potential for wierd behaviour.
9438
9439 2000-07-31  Martin Buchholz  <martin@xemacs.org>
9440
9441         * config.h.in:
9442         Make existence of s&m files optional.
9443
9444         * s/bsd386.h: Remove HAVE_GETLOADAVG.
9445         * s/freebsd.h: Remove HAVE_GETLOADAVG.
9446         * s/gnu.h: Remove HAVE_GETLOADAVG.
9447         * s/netbsd.h: Remove HAVE_GETLOADAVG.
9448         * s/sol2.h: Remove HAVE_GETLOADAVG.
9449         * lisp.h: Remove getloadavg() declaration.
9450         * fns.c:
9451         Include <sys/loadavg.h> if available.
9452         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
9453         * config.h.in:  Group together getloadavg()-related macros.
9454         Use only configure-time tests to detect getloadavg().
9455
9456 2000-07-30  Martin Buchholz  <martin@xemacs.org>
9457
9458         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
9459
9460 2000-07-25  Andy Piper  <andy@xemacs.org>
9461
9462         * syswindows.h: add tchar.h for native builds.
9463
9464         * frame.c (syms_of_frame): remove set-glyph-image.
9465
9466         * general-slots.h: add Qset_glyph_image.
9467
9468         * glyphs-widget.c (layout_update): add domain arg to
9469         set-glyph-image.
9470         (syms_of_glyphs_widget): remove set-glyph-image.
9471
9472 2000-07-23  Ben Wing  <ben@xemacs.org>
9473
9474         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
9475         Vpopup_frame_list.
9476
9477 2000-07-22  Andy Piper  <andy@xemacs.org>
9478
9479         * symsinit.h: add syms_of_win32().
9480
9481         * gui-msw.c (syms_of_gui_mswindows): remove
9482         Fmswindows_shell_execute.
9483         (Fmswindows_shell_execute): moved to win32.c.
9484
9485         * emacs.c (main_1): add syms_of_win32 ().
9486
9487         * win32.c (init_potentially_nonexistent_functions): rewrite in
9488         compiler-friendly terms.
9489         (Fmswindows_shell_execute): move here from gui-msw.c.
9490         (syms_of_win32): new.
9491
9492         * device-msw.c (Fmswindows_printer_list): clean up args to
9493         EnumPrinters.
9494         Don't include tchar under cygwin or mingw.
9495         (msprinter_default_printer): make cygwin-friendly.
9496
9497 2000-07-21  Andy Piper  <andy@xemacs.org>
9498
9499         * glyphs-widget.c (image_instantiator_tree_view): use tab
9500         control's update function.
9501         (layout_property): new function. Retrieve items.
9502
9503         * glyphs-msw.c (mswindows_tree_view_redisplay): new
9504         function. Re-populate the tree view from the pending items.
9505
9506         * glyphs.c (instantiate_image_instantiator): Make sure the domain
9507         is designated the parent if the domain is an image instance. This
9508         is needed so that dirtiness can be cascade up the hierarchy and
9509         thus for layout children to be redisplayed correctly.
9510         (allocate_image_instance): rename glyph -> parent.
9511
9512         * redisplay.h: change redisplay_output_layout signature.
9513
9514         * redisplay-msw.c (mswindows_output_display_block): use domain
9515         arg.
9516
9517         * redisplay-x.c (x_output_display_block): use domain arg.
9518
9519 2000-07-10  Andy Piper  <andy@xemacs.org>
9520
9521         * window.c (Fset_window_configuration): add comment.
9522
9523         * redisplay-output.c (compare_runes):
9524         (redisplay_output_subwindow): redisplay rather than update subwindow.
9525         (redisplay_output_layout): ditto.
9526
9527         * redisplay-msw.c (mswindows_frame_output_end):
9528         (mswindows_frame_output_end): make defer window pos optional.
9529
9530         * lisp.h: add Flast.
9531
9532         * glyphs.h (struct image_instantiator_methods): add dest_mask top
9533         normalize method. Change update method to be for changed
9534         instantiators. Add redisplay method. Change signature of layout
9535         method.
9536         (struct Lisp_Image_Instance): add instantiator.
9537         (IMAGE_INSTANCE_INSTANTIATOR): new.
9538         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
9539         (XIMAGE_INSTANCE_INSTANTIATOR): new.
9540         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
9541
9542         * glyphs.c:
9543         (find_instantiator_differences): new function.
9544         (Fset_instantiator_property): new convenience function.
9545         (check_image_instance_structure): strictly check for vector
9546         instantiators.
9547         (normalize_image_instantiator): make non-static.
9548         (instantiate_image_instantiator): pass on dest_mask and use new
9549         signatures for image_instance_layout and friends.
9550         (mark_image_instance): mark the instantiator. Mark the subwindow
9551         face not the widget face.
9552         (image_instance_equal): add instantiator.
9553         (image_instance_hash): ditto.
9554         (allocate_image_instance): ditto.
9555         (Fset_image_instance_property): removed.
9556         (Fimage_instance_file_name): ditto.
9557         (Fcolorize_image_instance): ditto.
9558         (image_instance_layout): add offsets to be set.
9559         (update_image_instance): new function. update an image instance
9560         from its changed instantiator.
9561         (inherit_normalize): add dest_mask.
9562         (xbm_normalize): ditto.
9563         (xface_normalize): ditto.
9564         (xpm_normalize): ditto.
9565         (text_update): set_property -> update.
9566         (image_instantiate): use the glyph identity as a hash key, not the
9567         instantiator.
9568         (glyph_width): use new image_instance_layout signature.
9569         (glyph_ascent): ditto.
9570         (glyph_descent): ditto.
9571         (glyph_height): ditto.
9572         (glyph_query_geometry): ressurrect.
9573         (glyph_layout): ditto.
9574         (redisplay_subwindow): update -> redisplay.
9575         (syms_of_glyphs): add Fset_instantiator_property.
9576         (image_instantiator_format_create): set_property -> update.
9577
9578         * glyphs-x.c:
9579         (autodetect_normalize): add dest_maks to signature.
9580         (x_redisplay_subwindow): update -> redisplay.
9581         (x_redisplay_widget): ditto.
9582         (x_button_redisplay): ditto.
9583         (x_progress_gauge_redisplay): ditto.
9584         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
9585         stacking order.
9586         (console_type_create_glyphs_x): update -> redisplay.
9587         (image_instantiator_format_create_glyphs_x): ditto.
9588
9589         * glyphs-widget.c:
9590         (check_valid_instantiator): disallow glyphs in the instantiator,
9591         they must now be vectors.
9592         (check_valid_instantiator_list): ditto.
9593         (glyph_instantiator_to_glyph): use internal symbol rather than
9594         intern.
9595         (widget_update): renamed from widget_set_property. Call cascaded
9596         update methods.
9597         (redisplay_widget): renamed from update_widget.
9598         (widget_layout): image_instance_layout now takes position as well
9599         as size.
9600         (widget_normalize): ditto.
9601         (widget_instantiate): ditto.
9602         (tab_control_query_geometry) ditto.:
9603         (tab_control_update): renamed from tab_control_set_property.
9604         (progress_gauge_update): set_property -> update.
9605         (layout_normalize): rewrite so that child instantiators are
9606         normalized also.
9607         (layout_update): new function. Create glyphs from the normalized
9608         children and cope with any other layout keywords. We do not
9609         instantiate children here that will be take care of by
9610         redisplay_output_layout.
9611         (layout_instantiate): call layout_update and not much else.
9612         (layout_post_instantiate): not sure whether this is needed
9613         anymore.
9614         (layout_query_geometry): query glyph geometry rather than
9615         image_instance geometry.
9616         (layout_layout): set offsets from pass in parameters. Use glyph
9617         geometry and layout functions rather than image instance ones.
9618         (native_layout_layout): ditto.
9619         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
9620         (image_instantiator_widget): set_property -> update.
9621         (image_instantiator_buttons): ditto.
9622         (image_instantiator_progress_guage): ditto.
9623         (image_instantiator_tab_control): ditto.
9624         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
9625         (image_instantiator_layout): add update method.
9626
9627         * glyphs-msw.c (bmp_normalize):
9628         (mswindows_resource_normalize): add dest_mask so that it can be
9629         proprogated by layout_normalize.
9630         (begin_defer_window_pos): make optional because it may not be the
9631         right thing to do and it introduces differences with X.
9632         (mswindows_unmap_subwindow): ditto.
9633         (mswindows_map_subwindow): ditto.
9634         (mswindows_redisplay_subwindow): renamed from
9635         mswindows_update_subwindow.
9636         (mswindows_redisplay_widget): ditto.
9637         (mswindows_button_redisplay): renamed from
9638         mswindows_button_update. Update is now what the instantiation
9639         function does for a changed instantiator.
9640         (mswindows_progress_gauge_instantiate): set the progress value
9641         here if appropriate.
9642         (mswindows_tab_control_redisplay): cope with re-ordering of the
9643         members of the tab widget by simply selecting the new top
9644         widget. This makes things appear ok if you click on a tab.
9645         (mswindows_combo_box_instantiate): image_instance_layout now takes
9646         position as well as size.
9647         (mswindows_progress_gauge_redisplay): renamed from
9648         mswindows_progress_gauge_update.
9649         (console_type_create_glyphs_mswindows): fix update -> redisplay.
9650         (image_instantiator_format_create_glyphs_mswindows): ditto.
9651
9652         * glyphs-eimage.c (jpeg_normalize):
9653         (gif_normalize):
9654         (png_normalize):
9655         (tiff_normalize): add dest_mask so that it can be proprogated by
9656         layout_normalize.
9657
9658         * elhash.c:
9659         (print_hash_table):
9660         (hash_table_weakness_validate):
9661         (decode_hash_table_weakness):
9662         (Fhash_table_weakness):
9663         (Fhash_table_type):
9664         (syms_of_elhash): use Ben's naming scheme for hashtable types..
9665
9666         * console.h (struct console_methods): move update_* to
9667         redisplay_*.
9668
9669 2000-07-20  Ben Wing  <ben@xemacs.org>
9670
9671         * *.[ch] (XSETOBJ): remove unused middle argument.
9672         lisp-disunion.h: correct wrap_object() to one argument.
9673
9674 2000-07-15  Ben Wing  <ben@xemacs.org>
9675
9676         * s/cygwin32.h:
9677         * s/cygwin32.h (CYGWIN_CONV_PATH):
9678         Add missing logb prototype for v1.1.
9679         Use post-b20 names and alias to pre-b20 names when pre-b20.
9680
9681         * s/windowsnt.h: [5].
9682
9683 2000-07-15  Ben Wing  <ben@xemacs.org>
9684
9685         * Makefile.in.in (x_objs):
9686         * Makefile.in.in (sheap_objs):
9687         * Makefile.in.in (objs):
9688         added win32.o, cosmetic cleanups.
9689
9690         * alloc.c (Fmake_byte_code):
9691         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
9692         etc. macros which declare their own args now.
9693
9694         * alloc.c (syms_of_alloc):
9695         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
9696
9697         * buffer.c:
9698         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
9699
9700         * buffer.c (Fget_file_buffer):
9701         Fixed GCPRO problem.
9702
9703         * buffer.c (get_truename_buffer):
9704         Fixed comment about GC checking.
9705
9706         * buffer.c (syms_of_buffer):
9707         Undeclared those dedicated frame funs.
9708         [2].
9709
9710         * buffer.h:
9711         Define convenience macros for internal/external conversions.
9712         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
9713         and Qenvironment_variable_encoding for cleaner code.
9714
9715         * bufslots.h:
9716         Remove dedicated-frame; in lisp.
9717
9718         * bytecode.c (funcall_compiled_function):
9719         [1].
9720
9721         * bytecode.c (syms_of_bytecode):
9722         [2].
9723
9724         * console-msw.c:
9725         * console-msw.c (mswindows_show_console): Rewrote.
9726
9727         * console-msw.c (Fmswindows_debugging_output): New.
9728         Sends to OutputDebugString (special MSWin debugger interface).
9729
9730         * console-msw.c (Fmswindows_message_box):
9731         Fixed stupid bugs so it works when called from kill-emacs.
9732
9733         * console-msw.c (syms_of_console_mswindows):
9734         Declare Fmswindows_debugging_output.
9735
9736         * console-msw.h:
9737         New MSWin prototypes.
9738
9739         * console-msw.h (struct mswindows_frame):
9740         New entry last-click-mods for improved button-modifier support.
9741
9742         * console-msw.h (FRAME_MSWINDOWS_POPUP):
9743         New struct entry `popup' with corresponding accessor.
9744
9745         * console-x.c:
9746         * console-x.c (split_up_display_spec):
9747         * console-x.c (get_display_arg_connection):
9748         * console-x.c (x_semi_canonicalize_console_connection):
9749         * console-x.c (x_canonicalize_device_connection):
9750         [[[6]]]: Change char to more specific type.
9751         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
9752
9753         * console-x.c (x_semi_canonicalize_console_connection):
9754         * console-x.c (x_canonicalize_device_connection):
9755         [[[9]]]: Fix up error signalling to use new structured error system.
9756
9757         * console-x.h:
9758         [[[4]]]: Define codesys aliases:
9759         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
9760         Qx_color_name_encoding, Qx_display_name_encoding.
9761
9762         * console.h (struct console_methods):
9763         New method make_dialog_box_internal supersedes older
9764         popup_dialog_box method.
9765
9766         * data.c:
9767         Define many new errors, part of new structured errors.
9768
9769         * data.c (init_errors_once_early):
9770         * data.c (syms_of_data):
9771         [2].
9772
9773         * device-msw.c (mswindows_init_device):
9774         [[[5]]]: Cleanup to support NT 3.51.
9775
9776         * device-msw.c (decode_devmode): Cleanup.
9777
9778         * device-msw.c (mswindows_handle_print_setup_dialog_box):
9779         * device-msw.c (mswindows_handle_print_dialog_box):
9780         * device-msw.c (mswindows_handle_page_setup_dialog_box):
9781         * device-msw.c (syms_of_device_mswindows):
9782         Delete the dialog box primitives recently introduced by Kirill and
9783         instead interface to general dialog box interface.
9784
9785         * device-x.c:
9786         * device-x.c (compute_x_app_name):
9787         * device-x.c (x_init_device):
9788         * device-x.c (Fx_valid_keysym_name_p):
9789         * device-x.c (Fx_set_font_path):
9790         [6].
9791         [7].
9792
9793         * device.h (wrap_device): New.
9794         First of its kind; meant to replace XSETDEVICE.
9795
9796         * dialog-msw.c: Many file-dialog symbols.
9797
9798         * dialog-msw.c (mswindows_register_popup_frame): New.
9799         * dialog-msw.c (mswindows_is_dialog_msg): New.
9800         For supporting kbd traversal in dialog boxes.
9801
9802         * dialog-msw.c (dialog_proc):
9803         Support hitting ESC in dialogs.
9804
9805         * dialog-msw.c (struct):
9806         Common dialog box errors.
9807
9808         * dialog-msw.c (handle_file_dialog_box): New.
9809         Add file dialog code.
9810
9811         * dialog-msw.c (handle_question_dialog_box):
9812         Redo existing code to support new question dialog syntax.
9813
9814         * dialog-msw.c (console_type_create_dialog_mswindows):
9815         We support new dialog console method.
9816
9817         * dialog-msw.c (syms_of_dialog_mswindows):
9818         * dialog-msw.c (vars_of_dialog_mswindows):
9819         New file dialog symbols, vars.
9820
9821         * dialog-x.c:
9822         * dialog-x.c (maybe_run_dbox_text_callback):
9823         * dialog-x.c (dbox_descriptor_to_widget_value):
9824         * dialog-x.c (x_make_dialog_box_internal):
9825         * dialog-x.c (console_type_create_dialog_x):
9826         Mule-ize entire file.
9827         Redo to support question dialog syntax.
9828         [6].
9829
9830         * dialog.c:
9831         * dialog.c (Fmake_dialog_box_internal):
9832         * dialog.c (syms_of_dialog):
9833         Kill old popup-dialog-box, replace with new primitive.
9834         Just call device method or signal error.
9835
9836         * eldap.c (Fldap_open):
9837         * eldap.c (Fldap_search_basic):
9838         * eldap.c (Fldap_add):
9839         * eldap.c (Fldap_modify):
9840         [1].
9841         [7].
9842
9843         * emacs.c:
9844         * emacs.c (make_arg_list_1):
9845         * emacs.c (make_arg_list):
9846         Mule-ize call to dll_init().
9847         [6].
9848         [8].
9849
9850         * emacs.c (make_argc_argv):
9851         * emacs.c (free_argc_argv):
9852         * emacs.c (init_cmdargs):
9853         * emacs.c (main_1):
9854         * emacs.c (Fkill_emacs):
9855         * emacs.c (Fdump_emacs):
9856         Update comments about what can be used in syms_* etc.
9857         Call init_win32() when necessary.
9858         Fix up MS Win dialog box in kill-buffer to actually work right.
9859         [7].
9860
9861         * eval.c:
9862         * eval.c (For):
9863         * eval.c (Fand):
9864         * eval.c (Fprogn):
9865         * eval.c (Fprog1):
9866         * eval.c (Fprog2):
9867         * eval.c (FletX):
9868         * eval.c (Flet):
9869         * eval.c (condition_case_3):
9870         * eval.c (Feval):
9871         * eval.c (function_argcount):
9872         * eval.c (funcall_lambda):
9873         [1].
9874
9875         * eval.c (type_error): New.
9876         * eval.c (maybe_type_error): New.
9877         * eval.c (continuable_type_error): New.
9878         * eval.c (maybe_continuable_type_error): New.
9879         * eval.c (type_error_with_frob): New.
9880         * eval.c (maybe_type_error_with_frob): New.
9881         * eval.c (continuable_type_error_with_frob): New.
9882         * eval.c (maybe_continuable_type_error_with_frob): New.
9883         New functions for use with structured errors.
9884
9885         * event-Xt.c:
9886         * event-Xt.c (x_event_to_emacs_event):
9887         Buttons are now modifiers too.
9888
9889         * event-Xt.c (emacs_Xt_current_event_timestamp):
9890         Implement new event method.
9891         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
9892
9893         * event-msw.c:
9894         * event-msw.c (ntpipe_shove_writer): [5].
9895         * event-msw.c (mswindows_enqueue_mouse_button_event):
9896         * event-msw.c (mswindows_drain_windows_queue):
9897         * event-msw.c (mswindows_wnd_proc): [7].
9898         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
9899         * event-msw.c (mswindows_modifier_state):
9900         Throughout: support new button modifiers.
9901
9902         * event-msw.c (emacs_mswindows_current_event_timestamp):
9903         Implement new event method.
9904         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
9905
9906         * event-stream.c:
9907         * event-stream.c (event_stream_current_event_timestamp): New.
9908         * event-stream.c (maybe_kbd_translate): New functionality.
9909         * event-stream.c (vars_of_event_stream):
9910         Document new kbd-translate-table functionality.
9911
9912         * event-stream.c (Fcurrent_event_timestamp): New.
9913         New primitive for use in fabricated events.
9914         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
9915
9916         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
9917
9918         * events.c:
9919         * events.c (Fmake_event):
9920         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
9921         [1].
9922         [9].
9923
9924         * events.c (format_event_object): fix gcc warnings.
9925
9926         * events.c (Fevent_timestamp): Document new primitives.
9927
9928         * events.c (TIMESTAMP_HALFSPACE): New.
9929
9930         * events.c (Fevent_timestamp_lessp): New.  New primitive for
9931         comparing timestamps correctly (half-space algorithm).
9932
9933         * events.c (Fevent_modifier_bits): Doc fix.
9934
9935         * events.c (Fevent_modifiers): Major doc addition.
9936         * events.c (event_x_y_pixel_internal): Typo fix.
9937         * events.c (syms_of_events): Declare new primitives.
9938
9939         * events.h:
9940         Update long comment for button modifiers, timestamps.
9941
9942         * events.h (struct event_stream):
9943         New current_event_timestamp method.
9944
9945         * extents.c:
9946         * extents.c (extent_in_region_p):
9947         * extents.c (decode_extent):
9948         * extents.c (Fset_extent_parent):
9949         * extents.c (decode_map_extents_flags):
9950         Fix gcc warnings.
9951         [9].
9952
9953         * extents.c (struct extent_at_arg):
9954         * extents.c (decode_extent_at_flag):
9955         * extents.c (extent_at_mapper):
9956         * extents.c (extent_at_bytind):
9957         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
9958         * extents.c (Fextents_at): New primitive. [9].
9959         * extents.c (symbol_to_glyph_layout): [9].
9960         Support new primitive `extents-at'.
9961
9962
9963         * extents.c (get_text_property_bytind):
9964         extent_at_bytind has another arg.
9965         [9].
9966
9967         * extents.c (syms_of_extents): New primitive.
9968
9969         * file-coding.c (Fmake_coding_system): [1].
9970         * file-coding.c (subsidiary_coding_system): fix gcc warning
9971         * file-coding.c (syms_of_file_coding): [2].
9972
9973         * fileio.c (Fexpand_file_name):
9974         * fileio.c (Fsysnetunam):
9975         * fileio.c (Ffile_exists_p):
9976         * fileio.c (Ffile_executable_p):
9977         * fileio.c (Fverify_visited_file_modtime):
9978         Clean up GCPROing.
9979
9980         * fileio.c (syms_of_fileio): [2].
9981
9982         * filelock.c (lock_file_1):
9983         * filelock.c (current_lock_owner):
9984         * filelock.c (lock_if_free):
9985         * filelock.c (lock_file):
9986         * filelock.c (unlock_file):
9987         Clean up GCPROing.
9988
9989         * fns.c (concat): Fix gcc warning.
9990
9991         * fns.c (Fmember):
9992         * fns.c (Fold_member):
9993         * fns.c (Fmemq):
9994         * fns.c (Fold_memq):
9995         * fns.c (memq_no_quit):
9996         * fns.c (Fassoc):
9997         * fns.c (Fold_assoc):
9998         * fns.c (Fassq):
9999         * fns.c (Fold_assq):
10000         * fns.c (assq_no_quit):
10001         * fns.c (Frassoc):
10002         * fns.c (Fold_rassoc):
10003         * fns.c (Frassq):
10004         * fns.c (Fold_rassq):
10005         * fns.c (rassq_no_quit):
10006         * fns.c (Fdelete):
10007         * fns.c (Fold_delete):
10008         * fns.c (Fdelq):
10009         * fns.c (Fold_delq):
10010         * fns.c (delq_no_quit):
10011         * fns.c (Fremassoc):
10012         * fns.c (Fremassq):
10013         * fns.c (remassq_no_quit):
10014         * fns.c (Fremrassoc):
10015         * fns.c (Fremrassq):
10016         * fns.c (remrassq_no_quit):
10017         * fns.c (Freverse):
10018         * fns.c (mapcar1):
10019         [1].
10020
10021         * frame-msw.c (mswindows_init_frame_1):
10022         * frame-msw.c (mswindows_delete_frame):
10023         Register popups with dialog code so keyboard traversing works.
10024
10025         * frame-tty.c (tty_raise_frame_no_select): [1].
10026
10027         * frame-x.c:
10028         * frame-x.c (x_set_frame_text_value):
10029         * frame-x.c (x_set_frame_properties):
10030         * frame-x.c (x_create_widgets):
10031         [7].
10032
10033         * frame.c:
10034         * frame.c (Fmouse_pixel_position): Minor doc fixes.
10035
10036         * frame.h (wrap_frame): New.
10037         Macro like wrap_device.
10038
10039         * general.c:
10040         * general.c (SYMBOL):
10041         * general.c (syms_of_general):
10042         Major reorg.  This is now just a wrapper and symbols themselves
10043         are listed in general-slots.h.
10044
10045         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
10046         * glyphs-msw.c (mswindows_resource_instantiate): [5].
10047
10048         * glyphs-msw.c (mswindows_native_layout_instantiate):
10049         Add DS_CONTROL so keyboard traversal will work.
10050
10051         * glyphs-widget.c:
10052         * glyphs-widget.c (syms_of_glyphs_widget):
10053         Move some symbols to general-slots.h.
10054
10055         * glyphs-x.c:
10056         * glyphs-x.c (xbm_instantiate_1):
10057         * glyphs-x.c (x_xbm_instantiate):
10058         * glyphs-x.c (x_xface_instantiate):
10059         * glyphs-x.c (autodetect_instantiate):
10060         * glyphs-x.c (cursor_font_instantiate):
10061         * glyphs-x.c (x_update_widget):
10062         * glyphs-x.c (x_widget_instantiate):
10063         * glyphs.c (bitmap_to_lisp_data):
10064         * glyphs.c (pixmap_to_lisp_data):
10065         [7].
10066
10067         * glyphs.c (syms_of_glyphs):
10068         [2].
10069
10070         * gui-x.c:
10071         * gui-x.c (print_widget_value):
10072         * gui-x.c (menu_separator_style_and_to_external):
10073         * gui-x.c (add_accel_and_to_external):
10074         * gui-x.c (button_item_to_widget_value):
10075         * gui-x.c (gui_items_to_widget_values_1):
10076         * gui-x.c (gui_items_to_widget_values):
10077         * gui-x.c (syms_of_gui_x):
10078         * gui-x.c (vars_of_gui_x):
10079         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
10080         [9].
10081
10082         * gui-x.h:
10083         Muleize, prototype changes matching gui-x.c.
10084
10085         * gui.c:
10086         * gui.c (separator_string_p):
10087         * gui.c (gui_item_add_keyval_pair):
10088         * gui.c (make_gui_item_from_keywords_internal):
10089         * gui.c (signal_too_long_error):
10090         * gui.c (parse_gui_item_tree_item):
10091         * gui.c (syms_of_gui):
10092         * gui.c (vars_of_gui):
10093         * gui.h:
10094         menu-no-selection-hook moved here (used by MSWin).
10095         Move some symbols to general-slots.h.
10096         [6].
10097         [9].
10098
10099         * insdel.c (get_buffer_pos_char):
10100         * insdel.c (get_buffer_range_char):
10101         Add GC comments.
10102
10103         * keymap.c (keymap_lookup_directly):
10104         * keymap.c (keymap_store):
10105         * keymap.c (ensure_meta_prefix_char_keymapp):
10106         * keymap.c (describe_map):
10107         * keymap.h:
10108         Support new button modifiers.
10109
10110         * lisp-disunion.h (wrap_object):
10111         * lisp-disunion.h (XSETOBJ):
10112         Rename make_obj to wrap_object.
10113
10114         * lisp-union.h:
10115         * lisp-union.h (make_int):
10116         * lisp-union.h (make_char):
10117         Support wrap_object.
10118
10119         * lisp.h:
10120         * lisp.h (LIST_LOOP):
10121         * lisp.h (EXTERNAL_LIST_LOOP):
10122         * lisp.h (LIST_LOOP_2):
10123         * lisp.h (EXTERNAL_LIST_LOOP_1):
10124         * lisp.h (EXTERNAL_LIST_LOOP_2):
10125         * lisp.h (EXTERNAL_LIST_LOOP_3):
10126         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
10127         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
10128         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
10129         * lisp.h (EXTERNAL_ALIST_LOOP_5):
10130         * lisp.h (EXTERNAL_ALIST_LOOP_6):
10131         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
10132         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
10133         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
10134         * lisp.h (struct Lisp_Symbol):
10135         * lisp.h (maybe_continuable_error_with_frob):
10136         Fix up section comments.
10137         Add new types for char to indicate usage.
10138         Delete symbols auto-generated from general-slots.h.
10139         Add prototypes for structured error functions.
10140         Add long comments describing looping macros and change interface
10141         so that lvalues are automatically declared.
10142         Add NO_DECLARE macro in case callers want to declare lvalues
10143         themselves.
10144
10145         * lread.c (read_syntax_error):
10146         * lread.c (continuable_read_syntax_error):
10147         * lread.c (read_structure):
10148         * lread.c (sequence_reader):
10149         * lread.c (read_list_conser):
10150         * lread.c (read_compiled_function):
10151         Rename syntax_error and continuable_syntax_error to avoid clash
10152         with same-named structured error functions.
10153
10154         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
10155         * menubar-msw.c (populate_menu_add_item):
10156         * menubar-msw.c (populate_or_checksum_helper):
10157         [5].
10158         [9].
10159
10160         * menubar-x.c:
10161         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10162         Mule-ize whole file.
10163
10164         * menubar.c (Fnormalize_menu_item_name): Add optimization.
10165
10166         * mule-charset.c (Fmake_charset):
10167         * mule-wnnfns.c (Fwnn_set_param):
10168         [1].
10169
10170         * ntproc.c (create_child):
10171         * ntproc.c (Fwin32_set_current_locale):
10172         Add comments portending doom.
10173
10174         * objects-msw.c:
10175         * objects-msw.c (old_font_enum_callback_2):
10176         * objects-msw.c (font_enum_callback_1):
10177         * objects-msw.c (mswindows_enumerate_fonts):
10178         [5].
10179
10180         * objects-x.c:
10181         * objects-x.c (allocate_nearest_color):
10182         * objects-x.c (x_parse_nearest_color):
10183         * objects-x.c (x_initialize_color_instance):
10184         * objects-x.c (x_print_color_instance):
10185         * objects-x.c (x_finalize_color_instance):
10186         * objects-x.c (x_valid_color_name_p):
10187         * objects-x.c (x_initialize_font_instance):
10188         * objects-x.c (x_print_font_instance):
10189         * objects-x.c (valid_x_font_name_p):
10190         * objects-x.c (truename_via_FONT_prop):
10191         * objects-x.c (truename_via_random_props):
10192         * objects-x.c (truename_via_XListFonts):
10193         * objects-x.c (x_font_truename):
10194         * objects-x.c (x_font_instance_truename):
10195         * objects-x.c (x_font_instance_properties):
10196         * objects-x.c (x_list_fonts):
10197         * objects-x.c (x_find_charset_font):
10198         Mule-ize entire file.
10199         [7].
10200
10201         * objects-x.h:
10202         Mule-verify.
10203
10204         * print.c:
10205         * print.c (std_handle_out_external):
10206         * print.c (debug_print_no_newline):
10207         * print.c (syms_of_print):
10208         Output to all debugger kinds in debug-print.
10209         Fix console-output code under MSWin to actually work.
10210
10211         * process-nt.c (send_signal):
10212         * process-nt.c (nt_create_process):
10213         Use newer Unicode macros.
10214
10215         * process-unix.c (unix_create_process):
10216         * process-unix.c (unix_canonicalize_host_name):
10217         * process-unix.c (unix_open_network_stream):
10218         [7].
10219
10220         * scrollbar-x.c:
10221         Mule-verify.
10222
10223         * search.c (syms_of_search):
10224         [2].
10225
10226         * select-msw.c (mswindows_destroy_selection):
10227         Use LIST_LOOP_2.
10228
10229         * select-x.c (symbol_to_x_atom):
10230         [7].
10231
10232         * select.c (syms_of_select):
10233         [2].
10234
10235         * sound.c (Fplay_sound_file):
10236         [7].
10237
10238         * specifier.c:
10239         * specifier.c (decode_specifier_type):
10240         * specifier.c (Fvalid_specifier_locale_type_p):
10241         * specifier.c (check_valid_locale_or_locale_type):
10242         * specifier.c (decode_locale):
10243         * specifier.c (decode_locale_type):
10244         * specifier.c (decode_locale_list):
10245         * specifier.c (check_valid_domain):
10246         * specifier.c (decode_specifier_tag_set):
10247         * specifier.c (Fcanonicalize_tag_set):
10248         * specifier.c (Fdefine_specifier_tag):
10249         * specifier.c (Fspecifier_tag_predicate):
10250         * specifier.c (check_valid_inst_list):
10251         * specifier.c (check_valid_spec_list):
10252         * specifier.c (decode_how_to_add_specification):
10253         * specifier.c (check_modifiable_specifier):
10254         * specifier.c (specifier_add_spec):
10255         * specifier.c (boolean_validate):
10256         * specifier.c (display_table_validate):
10257         [9].
10258
10259         * specifier.c (syms_of_specifier):
10260         Move some symbols to general-slots.h.
10261         [2].
10262
10263         * symbols.c:
10264         * symbols.c (Fmapatoms):
10265         * symbols.c (Fapropos_internal):
10266         Add GCPROs.
10267
10268         * symbols.c (set_default_buffer_slot_variable):
10269         * symbols.c (set_default_console_slot_variable):
10270         [1].
10271
10272         * symbols.c (defsymbol_massage_name_1):
10273         * symbols.c (defkeyword_massage_name):
10274         * symbols.c (deferror_1):
10275         * symbols.c (deferror):
10276         * symbols.c (deferror_massage_name_and_message):
10277         * symeval.h:
10278         * symeval.h (DEFSYMBOL):
10279         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
10280
10281         * symbols.c (syms_of_symbols):
10282         [2].
10283
10284         * symsinit.h:
10285         * symsinit.h (init_win32): New.
10286         Also new is syms_of_dialog_mswindows.
10287
10288         * syswindows.h:
10289         Add new Unicode macros, missing Cygwin wide-char functions,
10290         convenience conversion macros for Qmswindows_tstr, macros for
10291         encapsulating required MSWin <-> Cygwin filename conversions,
10292         prototype for dynamically-extracted (not in NT 3.51) functions.
10293
10294         * toolbar-x.c:
10295         Mule-verify.
10296
10297         * tooltalk.c (Fadd_tooltalk_message_arg):
10298         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
10299         * tooltalk.c (Fadd_tooltalk_pattern_arg):
10300         [7].
10301
10302         * tooltalk.c (syms_of_tooltalk):
10303         [2].
10304
10305         * unexnt.c:
10306         * unexnt.c (unexec):
10307         Fix up headers, declaration of unexec() to be more standard.
10308
10309 2000-07-20  Martin Buchholz  <martin@xemacs.org>
10310
10311         * offix.h: Revert change to guard macros - they're used in offix.c!
10312
10313 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10314
10315         * lisp.h: Defsubred Fdelete.
10316
10317         * console-msw.h:  (msprinter_default_printer): Added.
10318
10319         * console-msw.c (msprinter_canonicalize_console_connection):
10320         (msprinter_canonicalize_device_connection): Added.
10321
10322         * device-msw.c (msprinter_default_printer):
10323         (Fmswingows_get_default_printer):
10324         (signal_enum_priner_error):
10325         (Fmswingows_printer_list): Added.
10326
10327 2000-07-19  Martin Buchholz <martin@xemacs.org>
10328
10329         * XEmacs 21.2.35 is released.
10330
10331 2000-07-19  Martin Buchholz  <martin@xemacs.org>
10332
10333         * select-x.c (x_handle_selection_request):
10334         Text selected in xemacs and pasted into xterm failed to appear.
10335         Spelling fixes and cosmetic changes.
10336
10337 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10338
10339         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
10340         XEmacs frame (fix for doubling chars in dialog boxes).
10341
10342 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
10343
10344         * select.c (select_convert_in, select_convert_out):
10345         Don't call intern() every time.
10346
10347         * select.c (Qselect_convert_in, Qselect_convert_out): New.
10348         * select.c (vars_of_select): Initialise them.
10349
10350 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
10351
10352         * select.c (selection-coercible-types): New.
10353
10354         * select.c (own-selection-internal):
10355         * select.c (get-selection-internal):
10356         MULE bug fix - these should default to COMPOUND_TEXT and not
10357         STRING for MULE. I think.
10358
10359         * select.c (select_convert_out): Use selection-coercible-types
10360         to find types that we can attempt to perform coercions on.
10361
10362 2000-07-18  Martin Buchholz  <martin@xemacs.org>
10363
10364         * mule-wnnfns.c:
10365         * mule-canna.c:
10366         Add coding: cookie to identify encoding.
10367
10368         * mule-canna.c (CANNA_mode_keys): make static.
10369         Use proper prototypes, even for functions of no arguments.
10370         Remove external prototype for Fding().
10371
10372         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
10373
10374         * select.c (syms_of_select): Add missing DEFSUBR.
10375
10376 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
10377
10378         * select.c (get_selection_internal, own_selection_internal):
10379         Make the type default to STRING, rather than placing a nil type
10380         into Vselection_alist.
10381
10382 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
10383
10384         * gpmevent.c (tty_selection_exists_p):
10385         * gpmevent.c (tty_own_selection):
10386         Updated parameter lists.
10387
10388 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
10389
10390         * select.h (selection-alist): Removed declaration.
10391
10392         * select.h (get_local_selection):
10393         * select.c (get_local_selection):
10394         Made static.
10395
10396         * select.h (convert_selection): Removed declaration.
10397         * select.c (convert_selection): Removed.
10398         This function belongs in Lisp.
10399
10400         * select.h (select_convert_in): Declare.
10401         * select.h (select_convert_out): Declare.
10402         * select.c (select_convert_in): New.
10403         * select.c (select_convert_out): New.
10404         New conversion functions for other files to call.
10405
10406         * select.h (select_notify_buffer_kill): Declare.
10407         * select.c (select_notify_buffer_kill): New.
10408         New functions that get called from kill-buffer.
10409
10410         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
10411         X-specific lisp code.
10412
10413         * select.h: Declare some of the lisp-visible functions for
10414         external use.
10415
10416         * select.c (clean_local_selection_data): Removed. This was
10417         a disgusting function, and previously should have been in
10418         select-x.c in any case. The functionality is now provided
10419         in select-convert-from-integer (select.el).
10420
10421         * select.c (available-selection-types): Fixed stupidity where
10422         INTEGER and ATOM got added twice. Also add STRING when we see an
10423         extent.
10424
10425         * select.c (get-selection-internal): Removed symbol stripping. No
10426         longer causes conversion when data comes from the internal cache.
10427
10428         * select.c (syms_of_select): Added new functions.
10429
10430         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
10431         error checking - previously this called abort!
10432
10433         * select-x.c (x_own_selection): Changed comment.
10434
10435         * select-x.c (x_handle_selection_request): Use select_convert_out.
10436         Don't mess with selection-alist; it's an internal variable of select.c.
10437
10438         * select-x.c (x_get_foreign_selection): Use select_convert_in.
10439
10440         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
10441         rather than messing with selection-alist.
10442
10443         * select-msw.c (mswindows_get_foreign_selection):
10444         Use TO_INTERNAL_FORMAT rather than hacking.
10445
10446 2000-07-14  Martin Buchholz  <martin@xemacs.org>
10447
10448         * process-unix.c (unix_open_multicast_group):
10449         (unix_open_multicast_group): Remove useless casts.
10450
10451 2000-07-13  Martin Buchholz  <martin@xemacs.org>
10452
10453         * sound.c (Fplay_sound): Fix `unused variable' warning.
10454
10455         * emacs.c (main): Use correct type for _environ on SCO5.
10456
10457 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
10458
10459         * console.h (own_selection_method):
10460         * console.h (selection_exists_p_method):
10461         * console.h (available_selection_types_method): New.
10462         * console.h (register_selection_data_type_method): New.
10463         * console.h (selection_data_type_name): New.
10464
10465         * console-msw.h (mswindows_destroy_selection): Declare it.  New
10466         function & alist to track GlobalAlloc()'d handles that need
10467         releasing when the clipboard data gets replaced or emptied.
10468
10469         * event-msw.c (mswindows_wnd_proc): Call it.
10470
10471         * lisp.h, general.c (Qappend): New symbol representing a
10472         `how-to-add' mode.
10473
10474         * select.c (own-selection-internal):
10475         * select.c (selection-exists-p):
10476         * select.c (available-selection-types): New.
10477         * select.c (register-selection-data-type): New.
10478         * select.c (selection-data-type-name): New.  New functions to deal
10479         with device-specific selection data formats.
10480         * select.c (selection-converter-out-alist): Renamed.
10481         * select.c (selection-converter-in-alist): New.
10482         * select.c (selection-appender-alist): New.  Added new alists.
10483         * select.c (syms_of_select, vars_of_select): Added new symbols &
10484         variables.
10485         * select.c (get_local_selection): Split.
10486         * select.c: Removed spurious type checking - selections may now be
10487         of any type, not just strings.
10488         * select.c (own-selection-internal):
10489
10490         * select.h, select.c (convert_selection): New. Created
10491         convert_selection() function based on get_local_selection().
10492         * select.h, select.c (QCF_*): New symbols representing mswindows
10493         clipboard formats.
10494         * select.h, select.c (Qreplace_all, Qreplace_existing): New
10495         symbols representing `how-to-add' modes.
10496
10497         * select-msw.c (x_sym_p): New.
10498         * select-msw.c (symbol_to_ms_cf): New.
10499         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
10500         symbols & clipboard formats. Can also handle string names.
10501         * select-msw.c (mswindows_own_selection):
10502         * select-msw.c (mswindows_selection_exists_p):
10503         Added `data-type' parameter. Use it.
10504         * select-msw.c (mswindows_available_selection_types): New.
10505         * select-msw.c (mswindows_register_selection_data_type): New.
10506         * select-msw.c (mswindows_selection_data_type_name): New.
10507         * select-msw.c (mswindows_own_selection):
10508         * select-msw.c (mswindows_get_foreign_selection):
10509         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
10510         * select-msw.c (console_create_select_mswindows): Added new methods.
10511         * select-msw.c (mswindows_destroy_selection): New.
10512         * select-msw.c (Vhandle_alist): New list.
10513         * select-msw.c (mswindows_own_selection):
10514
10515         * select-x.c (x_own_selection):
10516         * select-x.c (x_selection_exists_p):
10517         * select-x.c: Added some comments about maybe using new
10518         functionality.
10519         * select-x.c (x_own_selection):
10520
10521         * specifier.c: Remove definition of Qappend (now in general.c)
10522         * specifier.c (syms_of_specifier): Remove Qappend.
10523
10524 2000-07-12  Martin Buchholz  <martin@xemacs.org>
10525
10526         * config.h.in: Add socklen_t.
10527
10528         * s/decosf4-0.h: No special compiler flags needed or desired.
10529         In particular, undefine _BSD for DEC OSF 4.0.
10530
10531 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10532
10533         * redisplay-msw.c (msprinter_frame_output_end): Added.
10534         (console_type_create_redisplay_mswindows): Referred the above.
10535
10536         * frame.c (setup_frame_without_minibuffer): Do not create a
10537         default minibuffer frame on a printer device.
10538
10539         * frame-msw.c (apply_dc_geometry): Added.
10540         (msprinter_start_page):
10541         (msprinter_init_frame_3):
10542         (msprinter_eject_page): Use it.
10543
10544         * console-msw.h (struct msprinter_frame): Added pix_left and top,
10545         and removed residual duplex and orientation properties.
10546
10547 2000-07-11  Martin Buchholz  <martin@xemacs.org>
10548
10549         * eval.c (function_argcount): Work around a DEC CC compiler bug.
10550
10551         * unexalpha.c: Remove system prototypes from C sources!
10552
10553 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
10554
10555         * eval.c: Remove references to M-x edit-options in DEFUNs for
10556         `defvar' and `defconst'.
10557
10558 2000-07-09  Martin Buchholz  <martin@xemacs.org>
10559
10560         * config.h.in: Remove SMART_INCLUDE hackery.
10561
10562         PostgreSQL hacking:
10563         * config.h.in: Don't use SMART_INCLUDE.
10564
10565         * postgresql.h: Include libpq-fe.h here.  Fix typo.
10566         * inline.c: Simply #include "postgresql.h"
10567         * postgresql.c:
10568         - Don't use SMART_INCLUDE
10569         - Use simply "const".
10570         - Use standard doc string conventions.
10571         - Use correct type for result of PQstatus.
10572
10573 2000-07-09  Martin Buchholz  <martin@xemacs.org>
10574
10575         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
10576
10577         C++ compilation changes.
10578         * config.h.in (EXTERN_C): Define.
10579         * config.h.in (not): This is also a C++ keyword.
10580         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
10581         * cm.c: Use EXTERN_C.
10582         * redisplay-tty.c: Use EXTERN_C.
10583         * sysdep.c: Use EXTERN_C.  Remove Gould support.
10584
10585 2000-07-09  Martin Buchholz  <martin@xemacs.org>
10586
10587         * general.c: Remove duplicate definition for Qfunction.
10588
10589 2000-07-08  Ben Wing  <ben@xemacs.org>
10590
10591         * device-msw.c (msprinter_init_device):
10592         * device-msw.c (sync_printer_with_devmode):
10593         * device-msw.c (handle_devmode_changes):
10594         * device-msw.c (print_dialog_worker):
10595         * device-msw.c (Fmsprinter_apply_settings):
10596         * device-msw.c (hash_devmode):
10597         * device-msw.c (Fmsprinter_settings_despecialize):
10598         use Qmswindows_tstr, not Qctext.
10599
10600         * vm-limit.c (check_memory_limits):
10601         avoid infinite loop printing warning messages.
10602
10603 2000-07-05  Craig Lanning  <lanning@scra.org>
10604
10605         * Makefile.in.in: Add support for including the Windows resources
10606         when building with the cygwin and mingw targets.
10607
10608         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
10609         not set or not correct.
10610         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
10611         (init_initial_directory): Don't try to use $PWD on the
10612         WIN32_NATIVE target.
10613
10614         * s\cygwin32.h:
10615         [[Add -mwindows to eliminate console window.]] not required --ben
10616         (HAVE_NATIVE_SOUND): removed; now handled by configure.
10617         (MAIL_USE_POP): removed; now handled by configure.
10618
10619         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
10620         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
10621         (HAVE_NATIVE_SOUND): removed; now handled by configure.
10622         (MAIL_USE_POP): removed; now handled by configure.
10623         (ENCAPSULATE_STAT): from Dan Holmsand, added.
10624         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
10625         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
10626         constant string.
10627         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
10628         up from <winsock.h> via systime.h.
10629         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
10630         (getpagesize): from Dan Holmsand, added.
10631         Added #endif which was left dangling by Ben's mega patch; added
10632         comment to help prevent this in the future.
10633
10634         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
10635
10636 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10637
10638         * console-msw.h (struct mswindows_device): Removed unnecessary
10639         cached device geometry values.
10640         Added update_tick and an accessor macro.
10641         (Lisp_Devmode): Added lrecord declaration.
10642         (struct msprinter_device): Contain devmode as a Lisp object.
10643         Added mswindows_get_selected_frame_hwnd();
10644
10645         * console.h (struct console_methods): Indentation nitpicking.
10646
10647         * device-msw.c (mswindows_init_device): Do not initialize geometry
10648         cache. Initialize update tick.
10649         (mswindows_device_system_metrics): Ask the device for its geometry.
10650         (global_free_2_maybe):
10651         (devmode_to_hglobal):
10652         (handle_printer_changes):
10653         (ensure_not_printing):
10654         (print_dialog_worker):
10655         (Fmsprinter_print_setup_dialog):
10656         (Fmsprinter_print_dialog):
10657         (plist_get_margin):
10658         (plist_set_margin):
10659         (Fmsprinter_page_setup_dialog): Added functions.
10660         (sync_printer_with_devmode):
10661         (handle_devmode_changes):
10662         (Fmsprinter_get_settings):
10663         (Fmsprinter_select_settings):
10664         (Fmsprinter_apply_settings):
10665         (allocate_devmode):
10666         (Fmsprinter_settings_copy):
10667         (Fmsprinter_settings_despecialize):
10668         (print_devmode):
10669         (finalize_devmode):
10670         (equal_devmode):
10671         (hash_devmode): Added functions
10672         (syms_of_device_mswindows): Init devmode lrecord class.
10673
10674         * device.h: Added an exfun for find-device.
10675
10676         * event-msw.c (mswindows_wnd_proc): Do not update the cached
10677         geometry; although, recreate the device compatible DC.
10678
10679         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
10680         (msprinter_init_frame_3):
10681         (msprinter_frame_property):
10682         (msprinter_internal_frame_property_p):
10683         (msprinter_frame_properties):
10684         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
10685         print job properties (will move to device settings).
10686
10687         * lisp.h: Added symbols.
10688
10689         * general.c (syms_of_general): Declared them.
10690
10691         * hash.c (string_hash): Added.
10692
10693         * lrecord.h (lrecord_type): Added devmode lrecord type.
10694
10695 2000-07-02  Mike Sperber <mike@xemacs.org>
10696
10697         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
10698         FreeBSD 4.0.
10699
10700 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
10701
10702         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
10703         integer.
10704
10705 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
10706
10707         * data.c (Fstring_to_number): Don't recognize floating point if
10708         base is not 10.
10709
10710 2000-06-22  Martin Buchholz  <martin@xemacs.org>
10711
10712         * glyphs-widget.c (tab_control_query_geometry):
10713         (widget_query_geometry):
10714         (button_query_geometry):
10715         * glyphs.c (text_query_geometry):
10716         Enforce type correctness.
10717
10718 2000-06-18  Martin Buchholz  <martin@xemacs.org>
10719
10720         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
10721         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
10722
10723 2000-06-17  Martin Buchholz  <martin@xemacs.org>
10724
10725         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
10726         conflicts with gcc's fixincluded version of FOO.h.
10727
10728         * glyphs.h (image_instance_geometry): Remove trailing `,'
10729
10730 2000-06-08  Mike Alexander  <mta@arbortext.com>
10731
10732         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
10733         (shove_thread): Don't write the same output twice
10734         (make_ntpipe_output_stream): Increase priority of shove thread
10735         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
10736         chance to run
10737         (ntpipe_shove_closer): Don't delete the pipe until we're done with
10738         it.
10739
10740 2000-06-12  Ben Wing  <ben@xemacs.org>
10741
10742         * s\mingw32.h (sigset):
10743         * s\windowsnt.h (sigset):
10744         rename msw_ to mswindows_ for consistency with general convention.
10745
10746 2000-06-12  Ben Wing  <ben@xemacs.org>
10747
10748         * console-msw.c:
10749         * console-msw.c (mswindows_get_console_hwnd):
10750         * console-msw.c (mswindows_ensure_console_allocated):
10751         * console-msw.c (mswindows_hide_console):
10752         * console-msw.c (mswindows_show_console):
10753         * console-msw.c (mswindows_ensure_console_buffered):
10754         * console-msw.c (mswindows_output_console_string):
10755         * console-msw.c (mswindows_windows9x_p):
10756         * console-msw.h:
10757         * device-msw.c (mswindows_get_workspace_coords):
10758         * device-msw.c (mswindows_device_system_metrics):
10759         * dialog-msw.c (mswindows_popup_dialog_box):
10760         * event-msw.c (mswindows_wnd_proc):
10761         * frame-msw.c (mswindows_size_frame_internal):
10762         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
10763         * menubar-msw.c (displayable_menu_item):
10764         * menubar-msw.c (mswindows_char_is_accelerator):
10765         * nt.c:
10766         * nt.c (mswindows_sigset):
10767         * nt.c (mswindows_sigrelse):
10768         * nt.c (mswindows_sigpause):
10769         * nt.c (mswindows_raise):
10770         * nt.c (timer_proc):
10771         * ntproc.c:
10772         * ntproc.c (find_child_console):
10773         * ntproc.c (sys_kill):
10774         * print.c:
10775         * print.c (std_handle_out_external):
10776         * process-nt.c (find_child_console):
10777         * process-nt.c (send_signal_the_95_way):
10778         * process-nt.c (ensure_console_window_exists):
10779         * process-nt.c (nt_create_process):
10780         * syssignal.h:
10781         rename msw_ to mswindows_ for consistency with general convention.
10782
10783         * emacs.c:
10784         * dumper.c:
10785         include nt.h, not syswindows.h.
10786
10787         * nt.c (mswindows_fstat):
10788         * nt.c (mswindows_stat):
10789         prefix mswindows_ instead of attempting to directly override the
10790         library functions.  fix declarations.
10791
10792         * nt.h:
10793         include syswindows.h.  move some sysdep.h stuff here.
10794
10795         * ntheap.h:
10796         include syswindows.h, not <windows.h>.
10797
10798         * ntplay.c:
10799         clean up headers.
10800
10801         * sysdep.c:
10802         clean up headers.
10803
10804         * sysdep.c (sys_fstat):
10805         * sysdep.c (sys_stat):
10806         call mswindows versions when appropriate.
10807
10808         * sysdep.h:
10809         move mswin decls to nt.h.
10810
10811         * syswindows.h:
10812         add long comment describing appropriate use of the various windows
10813         headers.
10814
10815 2000-06-11  Ben Wing  <ben@xemacs.org>
10816
10817         * device-x.c: Correct doc string for sixth arg of x-get-resource.
10818
10819 2000-06-10  Ben Wing  <ben@xemacs.org>
10820
10821         * Makefile.in.in (release):
10822         Correction to make sure xemacs.exe always dumped when correct.
10823
10824         * alloca.c:
10825         * balloon_help.c:
10826         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
10827
10828         * buffer.c (set_buffer_internal):
10829         [[[[2]]]]: Remove HAVE_FEP code.
10830
10831         * buffer.c (init_initial_directory):
10832         [3].
10833
10834         * bytecode.c:
10835         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
10836         individual files.
10837
10838         * callproc.c:
10839         * callproc.c (call_process_cleanup):
10840         * callproc.c (Fold_call_process_internal):
10841         * callproc.c (child_setup):
10842         * callproc.c (getenv_internal):
10843         * callproc.c (init_callproc):
10844         * callproc.c (vars_of_callproc):
10845         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
10846         __CYGWIN32__ -> CYGWIN.
10847         DOS_NT -> WIN32_NATIVE.
10848         Remove MSDOS support/references, converting to WIN32_NATIVE
10849           where correct.
10850         __MINGW32__ -> MINGW.
10851         Fix windows.h includes.
10852         Remove bogus HAVE_NTGUI.
10853
10854         * config.h.in:
10855         [2].
10856
10857         * console-msw.c:
10858         mswindows_message_outputted added for use in allowing startup
10859         errors on the console to be seen.
10860
10861         * console-msw.c (msw_ensure_console_allocated):
10862         * console-msw.c (msw_output_console_string):
10863         * console-msw.c (DHEADER):
10864         * console-msw.c (DOPAQUE_DATA):
10865         * console-msw.c (DEVENT):
10866         * console-msw.c (DCONS):
10867         * console-msw.c (DCONSCDR):
10868         * console-msw.c (DSTRING):
10869         * console-msw.c (DVECTOR):
10870         * console-msw.c (DSYMBOL):
10871         * console-msw.c (DSYMNAME):
10872         Fix warnings.
10873
10874         * console-stream.c (stream_init_console):
10875         Fix text/binary problems.
10876
10877         * device-msw.c:
10878         * device-msw.c (mswindows_finish_init_device):
10879         * device-msw.c (mswindows_delete_device):
10880         [1].
10881
10882         * device.c (handle_asynch_device_change):
10883         [3].
10884
10885         * dgif_lib.c:
10886         * dgif_lib.c (DGifOpenFileName):
10887         * dgif_lib.c (DGifOpenFileHandle):
10888         * dgif_lib.c (DGifGetLine):
10889         * dgif_lib.c (DGifGetPixel):
10890         Added config.h/lisp.h, fix up includes.
10891         [1].
10892
10893         * dired-msw.c:
10894         [4].
10895
10896         * dired.c:
10897         * dired.c (file_name_completion):
10898         * dired.c (Ffile_attributes):
10899         * dired.c (syms_of_dired):
10900         [1].
10901
10902         * dumper.c:
10903         * dumper.c (pdump_file_unmap):
10904         * dumper.c (pdump_load):
10905         [1].
10906
10907         * editfns.c:
10908         * editfns.c (Ftemp_directory):
10909         * editfns.c (user_login_name):
10910         * editfns.c (Fuser_real_login_name):
10911         * editfns.c (get_home_directory):
10912         [1].
10913
10914         * elhash.c (finish_marking_weak_hash_tables):
10915         [[[[5]]]]: Fix GCC warnings.
10916
10917         * emacs.c:
10918         * emacs.c (mswindows_handle_hardware_exceptions):
10919         * emacs.c (make_arg_list_1):
10920         * emacs.c (main_1):
10921         * emacs.c (Fkill_emacs):
10922         * emacs.c (Fdump_emacs):
10923         [1].
10924         Fix problems with nested crashes, add long comment.
10925
10926         * event-Xt.c (init_event_Xt_late):
10927         [1].
10928
10929         * event-msw.c:
10930         * event-msw.c (mswindows_dde_callback):
10931         * event-msw.c (mswindows_handle_sticky_modifiers):
10932         * event-msw.c (mswindows_wnd_proc):
10933         [1].
10934         [5].
10935
10936         * events.c (character_to_event):
10937         [1].
10938
10939         * fileio.c:
10940         * fileio.c (Ffile_name_directory):
10941         * fileio.c (Ffile_name_nondirectory):
10942         * fileio.c (directory_file_name):
10943         * fileio.c (Fexpand_file_name):
10944         * fileio.c (Fsubstitute_in_file_name):
10945         * fileio.c (Ffile_name_absolute_p):
10946         * fileio.c (check_executable):
10947         * fileio.c (Ffile_readable_p):
10948         * fileio.c (Ffile_accessible_directory_p):
10949         * fileio.c (Ffile_modes):
10950         * fileio.c (Funix_sync):
10951         * fileio.c (vars_of_fileio):
10952         [1]. [4].
10953
10954         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
10955
10956         Expand getdefdir defn.
10957         Fix bogus rename() comment.
10958
10959         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
10960         to use standard XEmacs include files, e.g. sysfile.h, rather
10961         than system-specific includes.
10962
10963         * fns.c:
10964         * fns.c (Fsubseq):
10965         [5]. [6].
10966
10967         * frame.c (vars_of_frame):
10968         [1].
10969
10970         * getloadavg.c:
10971         * getloadavg.c (getloadavg):
10972         [1]. [6].
10973         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
10974         (We don't use it elsewhere in the code; just add a comment.)
10975
10976         * gif_io.c:
10977         [6].
10978         Add config.h.
10979
10980         * glyphs-msw.c:
10981         * glyphs-msw.c (mswindows_resource_instantiate):
10982         [1].
10983
10984         * glyphs-x.c (x_native_layout_instantiate):
10985         [5].
10986
10987         * gui-msw.c (Fmswindows_shell_execute):
10988         [1].
10989
10990         * insdel.c:
10991         [4].
10992
10993         * lisp.h:
10994         [4]. [5].
10995
10996         * lread.c (locate_file_in_directory_mapper):
10997         [1].
10998
10999         * lstream.c:
11000         [4].
11001
11002         * mem-limits.h:
11003         * mem-limits.h (get_lim_data):
11004         [1].
11005
11006         * menubar-msw.c:
11007         [4].
11008
11009         * ndir.h:
11010         [1].
11011
11012         * nt.c:
11013         * nt.c (getwd):
11014         * nt.c (closedir):
11015         * nt.c (rva_to_section):
11016         * nt.c (mswindows_executable_type):
11017         [1]. [6].
11018         Fix closedir() defn.
11019
11020         * nt.h:
11021         [[[[8]]]]: *_OK defs moved to sysfile.h.
11022
11023         * ntproc.c:
11024         [6]. [7].
11025
11026         * objects-x.c:
11027         [4].
11028
11029         * print.c:
11030         * print.c (std_handle_out_external):
11031         [1]. [4].
11032
11033         * process-nt.c:
11034         * process-nt.c (nt_create_process):
11035         [6].
11036         try to fix process quoting somewhat.
11037
11038         * process-unix.c (unix_create_process):
11039         [1].
11040
11041         * process.c:
11042         * process.c (vars_of_process):
11043         Add Vnull_device.
11044
11045         * process.h:
11046         [1].
11047
11048         * realpath.c:
11049         * realpath.c (xrealpath):
11050         [1].
11051
11052         * redisplay-tty.c (init_tty_for_redisplay):
11053         [3].
11054
11055         * redisplay.c:
11056         [4]. [6].
11057
11058         * scrollbar-msw.c:
11059         [4].
11060
11061         * sheap.c:
11062         * sheap.c (more_static_core):
11063         * sheap.c (report_sheap_usage):
11064         [5]. [6].
11065
11066         * signal.c:
11067         * signal.c (alarm_signal):
11068         [1]. [6].
11069
11070         * sound.c:
11071         [6].
11072
11073         * strftime.c:
11074         * strftime.c (zone_name):
11075         [1]. [5].
11076
11077         * symsinit.h (init_sunpro):
11078         [1].
11079
11080         * syscommctrl.h:
11081         commctrl.h not in Cygwin b20.1.
11082
11083         * sysdep.c:
11084         * sysdep.c (endif):
11085         * sysdep.c (sys_subshell):
11086         * sysdep.c (init_baud_rate):
11087         * sysdep.c (emacs_get_tty):
11088         * sysdep.c (emacs_set_tty):
11089         * sysdep.c (tty_init_sys_modes_on_device):
11090         * sysdep.c (init_system_name):
11091         * sysdep.c (sys_open):
11092         * sysdep.c (interruptible_open):
11093         * sysdep.c (sys_fopen):
11094         * sysdep.c (sys_mkdir):
11095         * sysdep.c (sys_rename):
11096         * sysdep.c (get_process_times_1):
11097         [1]. [6].
11098
11099         * sysdep.h:
11100         [1].
11101
11102         * sysdir.h:
11103         * sysdir.h (DIRENTRY_NONEMPTY):
11104         [1]. [6].
11105
11106         * sysdll.c (dll_init):
11107         * sysdll.h:
11108         [1].
11109
11110         * sysfile.h:
11111         [1]. [6]. [8].
11112         added text/binary defs.
11113
11114         * sysfloat.h:
11115         [1].
11116
11117         * sysproc.h:
11118         * sysproc.h (EDESTADDRREQ):
11119         * sysproc.h (poll_fds_for_input):
11120         [1]. [6].
11121
11122         * syspwd.h:
11123         [6].
11124
11125         * syssignal.h:
11126         [1].
11127
11128         * systime.h:
11129         [1]. [6].
11130
11131         * systty.h:
11132         [1].
11133
11134         * syswindows.h:
11135         [1].
11136         Always define WIN32_LEAN_AND_MEAN.
11137
11138         * unexcw.c (unexec):
11139         [5].
11140
11141         * unexec.c:
11142         * unexec.c (copy_text_and_data):
11143         * unexec.c (adjust_lnnoptrs):
11144         [1].
11145
11146         * unexnt.c:
11147         * unexnt.c (_start):
11148         [1].
11149
11150 2000-06-07  Ben Wing  <ben@xemacs.org>
11151
11152         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
11153         was used only as a model.  We've long since extracted any useful
11154         logic or code out of this. (I just did an exhaustive search.)
11155
11156         * s\msdos.h: Removed.
11157
11158         * s\windows95.h: Removed.
11159
11160 2000-06-10  Ben Wing  <ben@xemacs.org>
11161
11162         * s\cygwin32.h:
11163         [1]. [5].
11164         Don't use extern with fun defs.
11165
11166         * s\mingw32.h:
11167         [1]. [7].
11168         Remove nt\inc include.
11169         Remove getdisk, getdefdir. (The former is unused, the latter
11170         expanded in fileio.h.)
11171
11172         * s\windowsnt.h:
11173         * s\windowsnt.h (WIN32_NATIVE):
11174         * s\windowsnt.h (HAVE_STRCASECMP):
11175         [1]. [7].
11176         Add long comment about preprocessor changes.
11177         Remove getdisk, getdefdir. (The former is unused, the latter
11178         expanded in fileio.h.)
11179
11180 2000-06-10  Ben Wing  <ben@xemacs.org>
11181
11182         * m\arm.h:
11183         * m\delta.h:
11184         * m\intel386.h:
11185         * m\sequent.h:
11186         * m\template.h:
11187         * m\windowsnt.h:
11188         [1].
11189         Remove bogus/unused NO_SOCK_SIGIO.
11190
11191 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
11192
11193         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
11194         not an Emchar.
11195
11196 2000-06-04  Mike Sperber <mike@xemacs.org>
11197
11198         * casetab.c (set_case_table): For `set-standard-case-table',
11199         actually deposit the new case tables where the rest of XEmacs can
11200         see them.
11201
11202 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
11203
11204         * data.c (Faset): Don't cast XCHAR() to unsigned char.
11205
11206 2000-06-05  Ben Wing  <ben@xemacs.org>
11207
11208         * callproc.c (child_setup): Don't do close_load_descs() under
11209         MS Windows.  Put in a comment explaining why.
11210
11211 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
11212
11213         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
11214         Toolkit shell" which breaks `kill-compilation' on Windows NT
11215         native, retaining STDERR handling improvements.
11216
11217 2000-06-01  Andreas Jaeger  <aj@suse.de>
11218
11219         * s/s390.h: Support for S390, based on a patch by Martin
11220         Schwidefsky <schwidefsky@de.ibm.com>.
11221
11222 2000-05-30  Andy Piper  <andy@xemacs.org>
11223
11224         * window.c (allocate_window):
11225         (make_dummy_parent):
11226         (Fset_window_configuration): use new hashtable type.
11227
11228         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
11229         (struct image_instantiator_methods):
11230         (struct Lisp_Image_Instance): make instance geometry signed.
11231
11232         * glyphs.c (instantiate_image_instantiator):
11233         (image_instance_query_geometry):
11234         (image_instance_layout):
11235         (image_instance_layout):
11236         (query_string_geometry):
11237         (text_query_geometry):
11238         (image_instantiate):
11239         (image_instantiate):
11240         (cache_subwindow_instance_in_frame_maybe):
11241         (subwindow_query_geometry): make instance geometry signed.
11242
11243         * glyphs-widget.c (widget_query_geometry):
11244         (widget_layout):
11245         (button_query_geometry):
11246         (tree_view_query_geometry):
11247         (tab_control_query_geometry):
11248         (layout_query_geometry):
11249         (layout_layout):
11250         (native_layout_layout): make instance geometry signed.
11251
11252 2000-05-29  Olivier Galibert  <galibert@pobox.com>
11253
11254         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
11255         constant.
11256
11257         * general.c (syms_of_general): Add Qfull_assoc symbol.
11258
11259         * data.c (finish_marking_weak_lists): Mark full-assoc lists
11260         correctly.
11261         (decode_weak_list_type): Decode full-assoc type.
11262         (encode_weak_list_type): Encode full-assoc type.
11263         (Fmake_weak_list): Update doc string.
11264
11265 2000-05-30  Andy Piper  <andy@xemacs.org>
11266
11267         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
11268
11269         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
11270         (decode_hash_table_weakness): ditto.
11271         (Fhash_table_weakness): ditto.
11272         (Fhash_table_type): ditto.
11273         (finish_marking_weak_hash_tables): ditto.
11274         (hash_table_weakness_validate): ditto.
11275         (syms_of_elhash): ditto.
11276
11277 2000-05-28  Martin Buchholz <martin@xemacs.org>
11278
11279         * XEmacs 21.2.34 is released.
11280
11281 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
11282
11283         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
11284         start cache.
11285         (updating_line_start_cache): Gone.
11286         (regenerate_window): Replace resetting of VERTICAL_CLIP by
11287         generic code to force a minimum of 1 line laid out in the
11288         CMOTION_DISP case.
11289
11290 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
11291
11292         * glyphs.c (instantiate_image_instantiator): Check for initialized
11293         height & width no longer special cases IMAGE_NOTHING.
11294         (nothing_instantiate): Set height and width of instance.
11295
11296 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
11297
11298         * unexelf.c (unexec): Search for ".data" section.
11299         Initialize new_data2_offset from old_data_index.
11300         Remove redundant check for ElfW.
11301
11302 2000-05-23  Andy Piper  <andy@xemacs.org>
11303
11304         * glyphs.c (get_image_instantiator_governing_domain): allow more
11305         specific domains as the governing domain rather than expecting an
11306         exact match. This fixes problems with layouts.
11307
11308 2000-05-22  Andy Piper  <andy@xemacs.org>
11309
11310         * redisplay-output.c (compare_runes): check for non-images
11311
11312         * glyphs.c (set_glyph_dirty_p): ditto.
11313         (update_glyph_cachel_data): ditto.
11314
11315         * glyphs-widget.c (layout_post_instantiate): ditto.
11316         (layout_post_instantiate): ditto.
11317
11318         * event-msw.c (mswindows_wnd_proc): warning removal.
11319
11320 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
11321
11322         * s\mingw32.h: Added #undef for CLASH_DETECTION.
11323
11324         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
11325
11326         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
11327
11328         * nt.c (rva_to_section): mingw32 needs rva_to_section.
11329         (mswindows_executable_type): mingw32 now has enough headers for
11330         this to work.
11331
11332 2000-05-20  Andy Piper  <andy@xemacs.org>
11333
11334         * console-msw.c (mswindows_output_last_error): ; -> ,
11335
11336 2000-05-12  Andy Piper  <andy@xemacs.org>
11337
11338         * console-msw.c (FROB): compare ints with ints.
11339
11340 2000-05-11  Andy Piper  <andy@xemacs.org>
11341
11342         * glyphs-x.c (x_finalize_image_instance): make minimal build
11343         happy.
11344
11345 2000-05-20  Ben Wing  <ben@xemacs.org>
11346
11347         * event-Xt.c:
11348         * event-Xt.c (vars_of_event_Xt):
11349         move modifier-keys-are-sticky to event-stream.c.
11350
11351         * event-msw.c:
11352         * event-msw.c (mswindows_enqueue_mouse_button_event):
11353         * event-msw.c (key_needs_default_processing_p):
11354         * event-msw.c (XEMSW_LCONTROL):
11355         * event-msw.c (mswindows_handle_sticky_modifiers):
11356         * event-msw.c (FROB):
11357         * event-msw.c (clear_sticky_modifiers):
11358         * event-msw.c (output_modifier_keyboard_state):
11359         * event-msw.c (output_alt_keyboard_state):
11360         * event-msw.c (mswindows_wnd_proc):
11361         * event-msw.c (mswindows_modifier_state):
11362         * event-msw.c (emacs_mswindows_handle_magic_event):
11363         implement sticky modifiers.
11364
11365         * event-stream.c:
11366         * event-stream.c (vars_of_event_stream):
11367         move modifier-keys-are-sticky here.
11368
11369         * lisp.h:
11370         add CHECK_FUNCTION.
11371
11372         * rangetab.c:
11373         implement map-range-table.
11374
11375
11376 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
11377
11378         * redisplay-tty.c (reset_tty_modes):
11379         (tty_redisplay_shutdown): Adjust argument type to
11380         tty_frame_output_end.
11381
11382 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
11383
11384         * eval.c (Fbacktrace): Don't output a line with only right
11385         parenthesis.
11386
11387 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
11388
11389         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
11390         (Fpq_reset_poll): Ditto.
11391
11392 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
11393
11394         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
11395
11396 2000-05-16  Ben Wing  <ben@xemacs.org>
11397
11398         * buffer.c:
11399         * buffer.c (dfc_convert_to/from_internal_format):
11400         * buffer.c (reinit_vars_of_buffer):
11401         Fix conversion functions to allow reentrancy.
11402
11403         * console-msw.c:
11404         * console-msw.c (mswindows_output_last_error):
11405         New fun, generally useful -- output a human-readable
11406         version of GetLastError() on the console.
11407
11408         * console-msw.h:
11409         * console-msw.h (struct mswindows_frame):
11410         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
11411
11412         * console-stream.c (stream_output_begin):
11413         * console-stream.c (stream_output_end):
11414         * console-stream.c (stream_output_vertical_divider):
11415         * console-stream.c (stream_clear_region):
11416         * console-stream.c (stream_flash):
11417         * console-stream.c (console_type_create_stream):
11418         Delete blank stream methods, not needed.
11419
11420         * console.h (struct console_methods):
11421         Split begin/end methods into window and frame.
11422
11423         * event-msw.c:
11424         * event-msw.c (mswindows_handle_paint):
11425         * event-msw.c (output_alt_keyboard_state):
11426         * event-msw.c (mswindows_wnd_proc):
11427         * event-msw.c (vars_of_event_mswindows):
11428         Comment about problems with ignored-expose.
11429         Define mswindows-debug-events; not really implemented.
11430
11431         * frame-msw.c (mswindows_init_frame_1):
11432         random cleanups.
11433
11434         * glyphs-msw.c:
11435         * glyphs-msw.c (begin_defer_window_pos):
11436         * glyphs-msw.c (mswindows_unmap_subwindow):
11437         * glyphs-msw.c (mswindows_map_subwindow):
11438         * glyphs-msw.c (mswindows_resize_subwindow):
11439         Use DeferWindowPos to reduce flashing when mapping/unmapping.
11440
11441         * glyphs.c (make_image_instance_1):
11442         Fix crash.
11443
11444         * gutter.c (Fredisplay_gutter_area):
11445         Use new begin/end methods.
11446
11447         * lisp.h (Dynarr_new2):
11448         New creation fun.
11449
11450         * redisplay-msw.c:
11451         * redisplay-msw.c (mswindows_frame_output_begin):
11452         * redisplay-msw.c (mswindows_frame_output_end):
11453         * redisplay-msw.c (console_type_create_redisplay_mswindows):
11454         New begin/end methods -- handle DeferWindowPos.
11455
11456         * redisplay-output.c (redisplay_move_cursor):
11457         * redisplay-output.c (redraw_cursor_in_window):
11458         * redisplay-output.c (redisplay_update_line):
11459         * redisplay-output.c (redisplay_output_window):
11460         New begin/end methods.
11461
11462         * redisplay-tty.c:
11463         * redisplay-tty.c (tty_frame_output_begin):
11464         * redisplay-tty.c (tty_frame_output_end):
11465         * redisplay-tty.c (console_type_create_redisplay_tty):
11466         New begin/end methods.
11467
11468         * redisplay-x.c:
11469         * redisplay-x.c (x_window_output_begin):
11470         * redisplay-x.c (x_window_output_end):
11471         * redisplay-x.c (console_type_create_redisplay_x):
11472         New begin/end methods.
11473
11474         * redisplay.c (redisplay_frame):
11475         * redisplay.c (Fredisplay_echo_area):
11476         New begin/end methods.
11477         use MAYBE_DEVMETH for clear_frame; it may not exist.
11478
11479         * window.h (WINDOW_XFRAME):
11480         WINDOW_XFOO macros -- get locale and decode struct pointer.
11481
11482
11483 2000-05-12  Ben Wing  <ben@xemacs.org>
11484
11485         * emacs.c:
11486         * emacs.c (ensure_no_quitting_from_now_on):
11487         * emacs.c (fatal_error_signal):
11488         * emacs.c (mswindows_handle_hardware_exceptions):
11489         * emacs.c (main):
11490         * emacs.c (Fkill_emacs):
11491         * emacs.c (shut_down_emacs):
11492         * emacs.c (assert_failed):
11493         various improvements in fatal error handling.
11494
11495         * eval.c:
11496         move preparing_for_armageddon to emacs.c.
11497
11498         * lisp.h:
11499         declare fatal_error_in_progress.
11500
11501         * print.c:
11502         * print.c (std_handle_out_external):
11503         * print.c (std_handle_out_va):
11504         * print.c (stderr_out):
11505         * print.c (stdout_out):
11506         use console under mswin when no standard output.
11507         don't do code conversion during fatal error.
11508
11509         * scrollbar.c (Fscrollbar_page_up):
11510         * scrollbar.c (Fscrollbar_page_down):
11511         fix missing else.  reindent.
11512
11513 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
11514
11515         Emergency fix.
11516
11517         * glyphs.h (GLYPH_CACHEL_DESCENT):
11518         (GLYPH_CACHEL_DESCENT):
11519         (GLYPH_CACHEL_DESCENT):
11520         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
11521         used in case these are inline functions.
11522         Use more absurd values to error check.
11523
11524         include window.h for error check functions.
11525
11526 2000-05-11  Ben Wing  <ben@xemacs.org>
11527
11528         * cmdloop.c (Freally_early_error_handler):
11529         Display message box under windows; otherwise, message will disappear
11530         before it can be viewed.
11531
11532         * console-msw.c:
11533         * console-msw.c (Fmswindows_message_box):
11534         * console-msw.c (FROB):
11535         * console-msw.c (syms_of_console_mswindows):
11536         Define new fun `mswindows-message-box'.
11537         #### I will merge this into `popup-dialog-box'; just give me
11538         a bit of time.
11539
11540         * general.c:
11541         * general.c (syms_of_general):
11542         Some new symbols used in `mswindows-message-box'.
11543
11544         * glyphs.c:
11545         * glyphs.c (Fset_image_instance_property):
11546         put warning in this fun.
11547
11548         * glyphs.h:
11549         * glyphs.h (GLYPH_CACHEL_WIDTH):
11550         * glyphs.h (GLYPH_CACHEL_ASCENT):
11551         * glyphs.h (GLYPH_CACHEL):
11552         * glyphs.h (GLYPH_CACHEL_GLYPH):
11553         define error-checking versions to try to catch a bug i've seen --
11554         redisplay gets in an infinite loop because the glyph width of the
11555         continuation glyph is 65535.
11556
11557         * lisp.h:
11558         Extern message-box stuff.
11559
11560         * window.c (allocate_window):
11561         * window.c (make_dummy_parent):
11562         * window.c (Fset_window_configuration):
11563         Use EQUAL not EQ for subwindow caches to make them work a bit
11564         better. (Something is still very broken.)
11565
11566
11567 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
11568
11569         * glyphs.c (image_instantiate): Suppress gcc warnings.
11570         (Fmake_image_instance): Fix doc string.
11571         * specifier.c (Fmake_specifier): Ditto.
11572
11573 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
11574
11575         * paths.h.in (PATH_LOCK): Removed.
11576         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
11577         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
11578
11579 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
11580
11581         * fns.c (Ffeaturep): Update e-mail address in doc-string.
11582         Document (featurep '(and xemacs 21.02)).
11583
11584 2000-05-09  Ben Wing  <ben@xemacs.org>
11585
11586         * buffer.c (complex_vars_of_buffer):
11587         update modeline-format doc.
11588
11589         * device.h:
11590         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
11591
11592         * emacs.c:
11593         timeline of all released versions of Emacs, for use in creating
11594         authorship comments and in synching up.
11595
11596         * glyphs-widget.c (image_instantiator_buttons):
11597         * glyphs-widget.c (image_instantiator_edit_fields):
11598         * glyphs-widget.c (image_instantiator_combo_box):
11599         * glyphs-widget.c (image_instantiator_scrollbar):
11600         * glyphs-widget.c (image_instantiator_progress_guage):
11601         * glyphs-widget.c (image_instantiator_tree_view):
11602         * glyphs-widget.c (image_instantiator_tab_control):
11603         * glyphs-widget.c (image_instantiator_labels):
11604         * glyphs-widget.c (image_instantiator_layout):
11605         * glyphs-widget.c (image_instantiator_native_layout):
11606         rename decode_domain method to governing_domain.
11607
11608         * glyphs.c:
11609         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
11610         * glyphs.c (add_entry_to_device_ii_format_list):
11611         make sure we don't put an entry more than once into the list.
11612         * glyphs.c (check_instance_cache_mapper):
11613         *************************************************************
11614         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
11615         HAVE BEEN GETTING.
11616         *************************************************************
11617         * glyphs.c (get_image_instantiator_governing_domain):
11618         clean up, expand on new concept of governing domain.
11619         * glyphs.c (instantiate_image_instantiator):
11620         * glyphs.c (allocate_image_instance):
11621         use governing_domain instead of cache_domain in naming.
11622         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
11623         * glyphs.c (make_image_instance_1):
11624         * glyphs.c (Fmake_image_instance):
11625         allow for any domain (not just device), and process the
11626         governing domain correctly.  very big doc fix.
11627         * glyphs.c (Fimage_instance_domain):
11628         new primitive, to retrieve the governing domain of an image instance.
11629         * glyphs.c (image_instantiate):
11630         use new governing_domain stuff.  this fixes a crash you could get
11631         by instantiating certain widget glyphs in frame locales. (should
11632         signal an error instead of crashing.)
11633         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
11634         * glyphs.c (Fglyphp): clean up doc.
11635         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
11636         * glyphs.c (syms_of_glyphs):
11637         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
11638         * glyphs.c (image_instantiator_format_create): add some comments about
11639         bogus code.
11640         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
11641         for current-display-table. (Apparently Hrjove implemented in 1998 a
11642         design I wrote up in 1996, but didn't update the doc string.)
11643
11644         * glyphs.h: clean up a doc string.
11645         * glyphs.h (governing_domain):
11646         * glyphs.h (struct image_instantiator_methods):
11647         changes for governing_domain stuff.
11648
11649         * gutter.c:
11650         * gutter.c (Fgutter_specifier_p):
11651         * gutter.c (Fgutter_size_specifier_p):
11652         * gutter.c (Fgutter_visible_specifier_p):
11653         * objects.c:
11654         * objects.c (Fcolor_specifier_p):
11655         * objects.c (Ffont_specifier_p):
11656         * objects.c (Fface_boolean_specifier_p):
11657         doc strings moved to make-*-specifier.
11658
11659         * redisplay.c (add_disp_table_entry_runes_1):
11660         * redisplay.c (generate_fstring_runes):
11661         * redisplay.c (screen):
11662         add random comments and doc strings.
11663
11664         * specifier.c:
11665         * specifier.c (Fmake_specifier):
11666         major overhaul of this doc string.
11667
11668         * specifier.c (Fvalid_specifier_domain_p):
11669         comment about the bogosity of image instances being domains.
11670         * specifier.c (decode_domain):
11671         now non-static, used in glyphs.c.
11672         * specifier.c (specifier_instance):
11673         comment about the bogosity of image instances being domains.
11674         * specifier.c (Fgeneric_specifier_p):
11675         move doc string to make-generic-specifier.
11676         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
11677         rebackslashify.
11678
11679         * specifier.h:
11680         * specifier.h (DOMAIN_FRAME):
11681         * specifier.h (DOMAIN_LIVE_P):
11682         * specifier.h (DOMAIN_XDEVICE):
11683         rebackslashify.
11684         add comments about problems with these macros.
11685         prototype for decode_domain.
11686
11687         * toolbar.c:
11688         * toolbar.c (Ftoolbar_specifier_p):
11689         move doc string to `make-toolbar-specifier'.
11690
11691         * window.c (window_unmap_subwindows_cache_mapper):
11692         *************************************************************
11693         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
11694         HAVE BEEN GETTING.
11695         *************************************************************
11696
11697 2000-05-09  Andy Piper  <andy@xemacs.org>
11698
11699         * glyphs.h: declare reset_frame_subwindow_instance_cache.
11700
11701         * window.c (Fset_window_configuration): reset the frame subwindow
11702         cache and re-initialize the window subwindow caches.
11703
11704         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
11705
11706 2000-05-09  Ben Wing  <ben@xemacs.org>
11707
11708         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
11709         DWORD.
11710
11711 2000-04-26  Mike Woolley  <mike@bulsara.com>
11712
11713         * ntheap.c: Changed recreate_heap to limit the amount reserved
11714         for the heap to that which is actually available. Also now
11715         displays a message box (with some dignostics) in the event that
11716         it still can't start.
11717
11718 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
11719
11720         * callproc.c (Fold_call_process_internal): GCPRO path
11721
11722 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
11723
11724         Patch by Bill Perry.
11725
11726         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
11727         back data instead of #ifdef.
11728         (Fscrollbar_page_down): ditto.
11729
11730 2000-05-07  Ben Wing  <ben@xemacs.org>
11731
11732         * buffer.h:
11733         Kludge for defining Qmswindows_tstr.
11734
11735         * nt.c:
11736         * nt.c (open_input_file):
11737         * nt.c (open_output_file):
11738         * nt.c (rva_to_section):
11739         * nt.c (mswindows_executable_type):
11740         Move all memory-mapped-file routines here (some were in unexnt.c,
11741         which is bad because they are used by process-nt.c, and unexnt
11742         won't be around when portable dumping).  Synched the above routines
11743         with FSF 20.6.
11744
11745         * nt.h:
11746         Removed ifdef'd out bogus code.
11747         Fixed some prototypes.
11748
11749         * nt.h (file_data):
11750         * nt.h (OFFSET_TO_RVA):
11751         * nt.h (RVA_TO_OFFSET):
11752         * nt.h (RVA_TO_PTR):
11753         Moved the memory-mapped-file structures, macros and prototypes
11754         here, to parallel nt.c.  ntheap.h should really be removed
11755         entirely, and it's a non-portable-dumper specific file.
11756
11757         * ntheap.h (round_to_next):
11758         Moved the memory-mapped-file structures, macros and prototypes
11759         to nt.h.
11760
11761         * ntproc.c (compare_env):
11762         Moved rva_to_section and mswindows_executable_type to nt.c.
11763         Moved compare_env to process-nt.c.
11764         ntproc.c will die, one day.
11765
11766         * ntproc.c (sys_spawnve):
11767         Account for win32_ -> mswindows_.
11768
11769         * process-nt.c:
11770         * process-nt.c (struct nt_process_data):
11771         * process-nt.c (ensure_console_window_exists):
11772         * process-nt.c (compare_env):
11773         * process-nt.c (nt_create_process):
11774         * process-nt.c (nt_kill_process_by_pid):
11775         * process-nt.c (syms_of_process_nt):
11776         * process-nt.c (vars_of_process_nt):
11777         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
11778         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
11779         changes).  Eliminate our old `nt-quote-process-args' mechanism.
11780         Synch up nt_create_process with FSF 20.6 sys_spawnve.
11781         Move compare_env here from ntproc.c.
11782
11783         * process.c (Fprocess_send_region):
11784         Takes an optional fourth argument, BUFFER, which should fix some
11785         problems with call-process.
11786
11787         * syscommctrl.h:
11788         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
11789
11790         * syswindows.h:
11791         Move ICC_BAR_CLASSES to syscommctrl.h.
11792         Add preliminary macros for MSWindows/Mule.  More to come.
11793
11794         * unexnt.c:
11795         * unexnt.c (unexec):
11796         open_output_file moved to nt.c.
11797
11798
11799 2000-05-05  Andy Piper  <andy@xemacs.org>
11800
11801         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
11802         instance from the frame cache also since GC may catch up too late
11803         to make frame deletion sane.
11804
11805 2000-05-04  Andy Piper  <andy@xemacs.org>
11806
11807         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
11808         (x_finalize_image_instance): ungcpro on deletion.
11809
11810         * glyphs.c (image_instantiator_format_create): give pointers a
11811         query geometry method so that the geometry is at least set.
11812
11813         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
11814         initialize layouts if using widgets.
11815
11816 2000-05-03  Andy Piper  <andy@xemacs.org>
11817
11818         * nt.c: remove bogus reference to sysmmsystem.h
11819
11820         * gui-x.c (popup_selection_callback): fix no selection abort.
11821
11822 2000-05-02  Andy Piper  <andy@xemacs.org>
11823
11824         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
11825         (mswindows_widget_instantiate): ditto.
11826
11827         * glyphs-widget.c (initialize_widget_image_instance): initialize
11828         children correctly.
11829         (widget_instantiate): cope with children and items in the same
11830         instance.
11831
11832         * glyphs.c (mark_image_instance): cope with children as a first
11833         class member.
11834         (image_instance_equal): ditto.
11835         (image_instance_hash): ditto.
11836         (image_instance_changed): ditto.
11837
11838 2000-04-30  Andy Piper  <andy@xemacs.org>
11839
11840         * glyphs.c (subwindow_query_geometry): new function. Return some
11841         defaults.
11842         (subwindow_instantiate): don't assign dimensions if none have been
11843         given.
11844         (image_instantiator_format_create): add subwindow_query_geometry.
11845         (print_image_instance): cope with layouts as widgets.
11846
11847 2000-04-29  Andy Piper  <andy@xemacs.org>
11848
11849         * frame.c (delete_frame_internal): call
11850         free_frame_subwindow_instance_cache so that all subwindows are
11851         finalized before their parent.
11852         (mark_frame): remove subwindow_cachels.
11853         (Fmake_frame): remove subwindow_cachel manipulation.
11854         (allocate_frame_core): subwindow_instance_cache is a weak list.
11855         (delete_frame_internal): set subwindow_instance_cache to nil.
11856
11857         * glyphs-msw.c (mswindows_finalize_image_instance): make double
11858         finalization safe.
11859         (mswindows_finalize_image_instance): use the device
11860         not the domain as the domain may have died already.
11861
11862         * glyphs-x.c (x_finalize_image_instance): ditto.
11863         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
11864         HEIGHT.
11865
11866         * redisplay-output.c (redisplay_unmap_subwindows): update for
11867         subwindow instance cache as a weak list.
11868         (redisplay_unmap_subwindows_maybe): ditto.
11869         (redisplay_unmap_subwindows_except_us): ditto.
11870
11871         * glyphs.c (unmap_subwindow): error checking will check the domain
11872         so don't deal with it here. Don't use cachels anymore.
11873         (map_subwindow): ditto.
11874         (update_subwindow_cachel_data): remove old accessor names.
11875         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
11876         (Fresize_subwindow): don't update cachel.
11877         (mark_subwindow_cachels):
11878         (update_subwindow_cachel_data):
11879         (add_subwindow_cachel):
11880         (get_subwindow_cachel_index):
11881         (update_subwindow_cachel):
11882         (reset_subwindow_cachels):
11883         (mark_subwindow_cachels_as_not_updated): deleted.
11884         (cache_subwindow_instance_in_frame_maybe): new function. Add a
11885         subwindow instance to the frame cache.
11886         (find_matching_subwindow): update for subwindow instance cache as
11887         a weak list.
11888         (update_widget_instances): ditto.
11889         (image_instance_type_to_mask):inlined.
11890         (free_frame_subwindow_instance_cache): new function. finalize all
11891         subwindows that are instantiated.
11892
11893         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
11894         of cachel information.
11895         (IMAGE_INSTANCE_DISPLAY_X):
11896         (IMAGE_INSTANCE_DISPLAY_Y):
11897         (IMAGE_INSTANCE_DISPLAY_WIDTH):
11898         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
11899         (XIMAGE_INSTANCE_DISPLAY_X):
11900         (XIMAGE_INSTANCE_DISPLAY_Y):
11901         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
11902         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
11903         remove subwindow_cachel structure and function references.
11904         (image_instance_type_to_mask): inline from glyphs.c
11905
11906         * redisplay.c (redisplay_frame): remove subwindow_cachel
11907         references.
11908
11909         * frame.h (struct frame): remove subwindow_cachels.
11910         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
11911
11912         * frameslots.h: add subwindow_instance_cache.
11913
11914         * window.c (replace_window): check subwindow cache of replacement.
11915         (window_unmap_subwindows_cache_mapper):
11916         (window_unmap_subwindows): new functions. Unmap all subwindows
11917         cached on this window.
11918         (mark_window_as_deleted): unmap all subwindows.
11919
11920 2000-04-27  Andy Piper  <andy@xemacs.org>
11921
11922         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
11923
11924         * glyphs-widget.c (widget_layout): return something.
11925         (layout_layout): return something. Fail if not initialized.
11926         (layout_query_geometry): ditto.
11927         (image_instantiator_native_layout): new function. Initialized the
11928         native layout type.
11929         (widget_instantiate): don't do layout stuff here.
11930
11931         * glyphs.c (instantiate_image_instantiator): reorded calling or
11932         instantiate and post_instantiate with layout in between.
11933         (image_instance_layout): be more selective about deciding whether
11934         the layout has been done or not.
11935
11936         * glyphs.h (struct image_instantiator_methods): return a value
11937         from layout_method.
11938
11939 2000-04-26  Andy Piper  <andy@xemacs.org>
11940
11941         * glyphs.c (allocate_image_instance): make initial width and
11942         height unspecified. Set initialized to 0.
11943
11944         * syscommctrl.h new file. Encapsulates commctrl.h.
11945
11946         * syswindows.h new file. Encapsulates windows.h.
11947
11948         * ntplay.c: use new syswindows.h and syscommctrl.h header.
11949         * nt.c: ditto.
11950         * console-msw.h: ditto.
11951
11952         * redisplay-tty.c (tty_output_display_block): remove layout references.
11953
11954         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
11955         window handle rather than just the frame.
11956
11957         * glyphs.c (mark_image_instance): remove layout references.
11958         (print_image_instance): ditto.
11959         (image_instance_equal): ditto.
11960         (image_instance_hash): ditto.
11961         (decode_image_instance_type): ditto.
11962         (encode_image_instance_type): ditto.
11963         (image_instantiate): ditto.
11964         (allocate_glyph): ditto.
11965         (Fimage_instance_height): ditto.
11966         (Fimage_instance_width): ditto.
11967         (update_subwindow): ditto.
11968
11969         * redisplay-x.c (x_output_display_block): recode for layouts as
11970         widgets.
11971
11972         * redisplay-output.c (redisplay_output_layout): recode for layouts
11973         as widgets.
11974         (compare_runes): remove layout references.
11975
11976         * redisplay-msw.c (mswindows_output_display_block): recode for
11977         layouts as widgets.
11978
11979         * glyphs-widget.c (image_instantiator_layout): remove
11980         layout_possible_dest_types.
11981         (layout_possible_dest_types): deleted.
11982
11983         * glyphs.h (image_instance_type): remove layout references.
11984         (struct Lisp_Image_Instance): ditto. Add initialized flag.
11985         (IMAGE_INSTANCE_INITIALIZED): new accessor.
11986         (XIMAGE_INSTANCE_INITIALIZED): ditto.
11987
11988 2000-04-25  Andy Piper  <andy@xemacs.org>
11989
11990         * glyphs-widget.c (image_instantiator_buttons):
11991         (image_instantiator_edit_fields):
11992         (image_instantiator_combo_box):
11993         (image_instantiator_scrollbar):
11994         (image_instantiator_progress_guage):
11995         (image_instantiator_tree_view):
11996         (image_instantiator_tab_control):
11997         (image_instantiator_labels):
11998         (image_instantiator_layout): call default post_instantiate method.
11999         (widget_post_instantiate): new function. Simply lays out the
12000         widgets.
12001
12002         * glyphs.h (struct image_instantiator_methods): add
12003         post_instantiate method.
12004
12005         * glyphs.c (instantiate_image_instantiator): add post_instantiate
12006         method calls.
12007
12008 2000-04-23  Andy Piper  <andy@xemacs.org>
12009
12010         * glyphs.h (struct image_instantiator_methods): add
12011         decode_domain_method.
12012         (struct Lisp_Image_Instance): remove subwindow frame - it can be
12013         derived from the domain.
12014         (IMAGE_INSTANCE_FRAME): new accessor.
12015         (XIMAGE_INSTANCE_FRAME): ditto.
12016
12017         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
12018         instead of _SUBWINDOW_FRAME.
12019         (finalize_image_instance): ditto.
12020         (Fimage_instance_foreground): ditto.
12021         (Fimage_instance_background): ditto.
12022         (image_instantiate): ditto.
12023         (update_subwindow_cachel): ditto.
12024         (update_subwindow): ditto.
12025         (unmap_subwindow): ditto.
12026         (map_subwindow): ditto
12027         (subwindow_instantiate): ditto.
12028         * glyphs-msw.c (mswindows_update_widget): ditto.
12029         (mswindows_progress_gauge_instantiate): ditto.
12030         (mswindows_tab_control_update): ditto.
12031         * glyphs-x.c (x_update_widget): ditto.
12032         (x_widget_instantiate): ditto.
12033         (x_tab_control_instantiate): ditto.
12034         (x_tab_control_update): ditto.
12035         * event-msw.c (mswindows_wnd_proc): ditto
12036
12037         * glyphs-widget.c (image_instantiator_layout): use
12038         subwindow_decode_domain.
12039         (image_instantiator_buttons): ditto.
12040         (image_instantiator_edit_fields): ditto.
12041         (image_instantiator_combo_box): ditto.
12042         (image_instantiator_scrollbar): ditto.
12043         (image_instantiator_progress_guage): ditto.
12044         (image_instantiator_tree_view): ditto.
12045         (image_instantiator_tab_control): ditto.
12046         (image_instantiator_labels): ditto.
12047         (image_instantiator_layout): ditto.
12048
12049         * glyphs.c: add instance error checking to many functions.
12050         (instantiate_image_instantiator): decode device from cache_domain.
12051         (image_instantiate): partially rewrite by using
12052         decode_image_instantiator_domain to determine what domain the
12053         instance needs to be cached in.
12054         (decode_image_instantiator_domain): new function. Determine what
12055         domain the image needs to be cached in.
12056         (check_window_subwindow_cache): new error checking function.
12057         (check_instance_cache_mapper): ditto.
12058         (check_image_instance_structure): ditto.
12059         (subwindow_decode_domain): new function. Encodes a window as a
12060         subwindow's cache domain.
12061         (image_instantiator_format_create): use it for text and
12062         subwindows.
12063
12064 2000-04-21  Andy Piper  <andy@xemacs.org>
12065
12066         * glyphs.c (image_instance_device): new function.
12067         (image_instance_frame): new function.
12068         (image_instance_window): new function.
12069         (image_instance_live_p): new function.
12070
12071         * window.c (mark_window_as_deleted): reset the subwindow_instance_
12072         cache to nil.
12073
12074         * glyphs.h (struct Lisp_Image_Instance): device->domain.
12075         (IMAGE_INSTANCE_DOMAIN): new accessor.
12076         (XIMAGE_INSTANCE_DOMAIN): ditto.
12077
12078         * glyphs-x.c (x_finalize_image_instance): device->domain.
12079
12080         * glyphs-msw.c (init_image_instance_geometry): device->domain.
12081         (mswindows_finalize_image_instance): ditto.
12082
12083         * glyphs-eimage.c (jpeg_instantiate): device->domain.
12084         (gif_instantiate): ditto.
12085         (png_instantiate): ditto.
12086         (tiff_instantiate): ditto.
12087
12088         * glyphs.c (instantiate_image_instantiator): use domain rather
12089         than device.
12090         (mark_image_instance): device -> domain.
12091         (print_image_instance): ditto.
12092         (finalize_image_instance): ditto.
12093         (image_instance_equal): ditto.
12094         (allocate_image_instance): ditto.
12095         (Fcolorize_image_instance): ditto.
12096         (query_string_geometry): ditto.
12097         (image_instantiate): ditto
12098         (query_string_font): ditto.
12099         (image_instantiate): ditto.
12100         (update_subwindow): ditto.
12101         (unmap_subwindow): ditto.
12102         (map_subwindow): ditto.
12103         (subwindow_instantiate): ditto.
12104
12105         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
12106         (DOMAIN_FRAME): ditto.
12107         (DOMAIN_WINDOW): ditto.
12108         (DOMAIN_LIVE_P): ditto.
12109         (XDOMAIN_DEVICE): ditto.
12110         (XDOMAIN_FRAME): ditto.
12111         (XDOMAIN_WINDOW): ditto.
12112
12113         * specifier.c (Fvalid_specifier_domain_p): add image instances as
12114         a valid specifier domain.
12115
12116 2000-04-19  Andy Piper  <andy@xemacs.org>
12117
12118         * glyphs-widget.c (syms_of_glyphs_widget): remove
12119         widget-callback-current-channel.
12120         (vars_of_glyphs_widget): ditto.
12121         * glyphs.h: ditto
12122
12123         * gui.c (get_gui_callback): revert to previous behaviour.
12124
12125 2000-04-18  Andy Piper  <andy@xemacs.org>
12126
12127         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
12128         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
12129         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
12130
12131         * glyphs.c (image_instance_equal): add margin_width.
12132         (image_instance_hash): ditto.
12133
12134         * glyphs-widget.c (widget_instantiate): deal with margin-width.
12135         (layout_query_geometry): ditto.
12136         (layout_layout): ditto.
12137         (syms_of_glyphs_widget): add margin-width.
12138         (image_instantiator_layout): allow margin-width.
12139
12140         * glyphs.c (update_widget_instances): make a normal function.
12141         (syms_of_glyphs): remove Qupdate_widget_instances.
12142         * glyphs.h: ditto.
12143
12144         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
12145         so that we don't corrupt ideas about the last event or
12146         command. Remove widget-callback-current-channel fiddling.
12147         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
12148
12149 2000-05-01  Martin Buchholz <martin@xemacs.org>
12150
12151         * XEmacs 21.2.33 is released.
12152
12153 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
12154
12155         * make-src-depend: Allow dots in header file name.
12156
12157 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
12158
12159         * mule-charset.h (struct charset_lookup): Add
12160         next_allocated_1_byte_leading_byte and
12161         next_allocated_2_byte_leading_byte.
12162         * mule-charset.c: Move above two variables so that those values
12163         will be dumped.
12164
12165 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
12166
12167         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
12168         when string length is zero.
12169         (find_charsets_in_emchar_string): Ditto.
12170
12171 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
12172
12173         * lisp.h: extern Qdialog and Qmenubar.
12174
12175         * gui-x.c: added events.h.
12176                 also fixed typo which made the file uncompilable.
12177
12178         * general.c: Added Qmenubar and Qdialog
12179
12180 2000-04-28  Ben Wing  <ben@xemacs.org>
12181
12182         * frame-msw.c (mswindows_init_frame_1):
12183         * frame-msw.c (mswindows_mark_frame):
12184         * event-msw.c (mswindows_enqueue_dispatch_event):
12185         * console-msw.h:
12186         * console-msw.h (struct mswindows_frame):
12187         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
12188         there are now three hash tables for callbacks.
12189         mswindows_enqueue_dispatch_event is no longer static.
12190
12191         * dialog-x.c (maybe_run_dbox_text_callback):
12192         * dialog-x.c (dbox_descriptor_to_widget_value):
12193         switch to new cons3 form for callbacks.
12194
12195         * glyphs-msw.c (mswindows_register_gui_item):
12196         * glyphs-msw.c (mswindows_widget_instantiate):
12197         * glyphs-msw.c (add_tree_item):
12198         * glyphs-msw.c (add_tab_item):
12199         new image instance parameter, so it can be passed to callback-ex.
12200         respect :callback-ex as well as :callback.
12201
12202         * glyphs-widget.c (VALID_GUI_KEYWORDS):
12203         add :callback-ex.
12204
12205         * glyphs.c (print_image_instance):
12206         prettify, e.g. now prints widget type.
12207
12208         * gui-x.h:
12209         certain funs have new image instance parameter.
12210
12211         * gui.c:
12212         * gui.c (get_gui_callback):
12213         * gui.c (gui_item_add_keyval_pair):
12214         * gui.c (gui_item_init):
12215         * gui.c (gui_add_item_keywords_to_plist):
12216         * gui.c (mark_gui_item):
12217         * gui.c (gui_item_hash):
12218         * gui.c (gui_item_equal):
12219         * gui.c (copy_gui_item):
12220         * gui.c (syms_of_gui):
12221         recognize callback-ex in a number of places.
12222         also, fix the annoying "can't get out of yes-no dialog" bug.
12223
12224         * gui.h:
12225         * gui.h (struct Lisp_Gui_Item):
12226         recognize callback-ex in a number of places.
12227
12228         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
12229         new parameter in button_item_to_widget_value.
12230
12231         * glyphs-x.c (x_update_widget):
12232         * glyphs-x.c (x_button_instantiate):
12233         * glyphs-x.c (x_button_update):
12234         * glyphs-x.c (x_progress_gauge_instantiate):
12235         * glyphs-x.c (x_edit_field_instantiate):
12236         * glyphs-x.c (x_combo_box_instantiate):
12237         * glyphs-x.c (x_tab_control_instantiate):
12238         * glyphs-x.c (x_label_instantiate):
12239         new image instance parameter in various places.
12240
12241         * event-Xt.c:
12242         * event-Xt.c (enqueue_Xt_dispatch_event):
12243         this fun gets exported.
12244
12245         * gui-msw.c:
12246         * gui-msw.c (mswindows_handle_gui_wm_command):
12247         handle both :callback and :callback-ex, and generate our own
12248         event because it's one of the callback-ex arguments.
12249
12250         * gui-x.c:
12251         * gui-x.c (popup_selection_callback):
12252         handle both :callback and :callback-ex, and generate our own
12253         event because it's one of the callback-ex arguments.
12254         * gui-x.c (button_item_to_widget_value):
12255         * gui-x.c (gui_items_to_widget_values_1):
12256         * gui-x.c (gui_item_children_to_widget_values):
12257         * gui-x.c (gui_items_to_widget_values):
12258         new image instance parameter in various places.
12259
12260         * fns.c (Freplace_list):
12261         fix small typo in doc string.
12262
12263         * lisp.h:
12264         declare enqueue_Xt_dispatch_event.
12265
12266 2000-04-28  Ben Wing  <ben@xemacs.org>
12267
12268         * buffer.c:
12269         * buffer.c (Frecord_buffer):
12270         * buffer.c (syms_of_buffer):
12271         delete record-buffer-hook.
12272
12273         * fns.c:
12274         * fns.c (Freplace_list):
12275         * fns.c (syms_of_fns):
12276         new primitive replace-list.
12277
12278         * frameslots.h:
12279         slot for old buffer-alist.
12280
12281         * lisp.h:
12282         exfun replace-list.
12283
12284         * redisplay.c:
12285         * redisplay.c (redisplay_frame):
12286         * redisplay.c (syms_of_redisplay):
12287         * redisplay.c (vars_of_redisplay):
12288         new hook buffer-list-changed-hook.
12289         call it.
12290
12291 2000-04-27  Ben Wing  <ben@xemacs.org>
12292
12293         * extents.h: extern in_modeline_generation.
12294
12295         * redisplay.c (generate_formatted_string_db): set
12296         in_modeline_generation.
12297
12298         * extents.c (extent_changed_for_redisplay): don't mark redisplay
12299         flags if in modeline generation.  otherwise frame-modified-tick
12300         is ticked far too often.
12301         Declare in_modeline_generation.
12302
12303 2000-04-26  Ben Wing  <ben@xemacs.org>
12304
12305         * emacs.c (vars_of_emacs): document quick-build "error-checking"
12306         option.
12307         (vars_of_emacs): add quick-build as an error-checking option.
12308         A bit kludgy, but there doesn't seem much point in creating
12309         a real var for this.
12310
12311         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
12312
12313 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
12314
12315         * redisplay.h (struct display_line): Add a new variable,
12316         line_continuation.
12317
12318         * redisplay.c (create_text_block): Set dl->line_continuation if
12319         the line continues.
12320         (create_string_text_block): Ditto.
12321         (regenerate_window_incrementally): Use line_continuation instead
12322         of searching continuation glyph.
12323         (add_margin_runes): Call add_glyph_rune.
12324         (add_glyph_rune): Handle margin glyph.
12325
12326 2000-04-20  Martin Buchholz  <martin@xemacs.org>
12327
12328         * filelock.c (fill_in_lock_file_name):
12329         ANSIfy.
12330         Check for IS_ANY_SEP instead of '/'.
12331         (lock_file_1):
12332         Avoid generating gratuitous garbage.  Call user_login_name() directly.
12333         Never check errno without first seeing that system call failed.
12334         (unlock_file): Add GCPRO.
12335         (Flock_buffer): Fix docstring.
12336         (Ffile_locked_p): Fix docstring.  Add GCPRO.
12337
12338 2000-04-19  Martin Buchholz  <martin@xemacs.org>
12339
12340         * sysdep.c (get_pty_max_bytes):
12341         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
12342         strings longer than 252 bytes.
12343
12344         * md5.c: Unconditionally include ANSI header <limits.h>
12345
12346         * glyphs-x.c (convert_EImage_to_XImage):
12347         * lisp-union.h (union Lisp_Object):
12348         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
12349
12350 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
12351
12352         * filelock.c (current_lock_owner): Remove unused variable o, p.
12353
12354 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
12355
12356         * callint.c: Remove multiply defined symbol Qlet
12357         (syms_of_callint): ditto.
12358
12359 2000-04-14  Andy Piper  <andy@xemacs.org>
12360
12361         * general.c (syms_of_general): add last-command, this-command, let
12362         and funcall.
12363
12364         * lisp.h: declare various symbols.
12365
12366         * glyphs.h: declare Qwidget_callback_current_channel;
12367
12368         * glyphs-widget.c (syms_of_glyphs_widget): add
12369         Qgui_callback_current_channel.
12370         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
12371
12372         * gui-msw.c (mswindows_handle_gui_wm_command): bind
12373         widget-callback-current-channel when invoking the interactive
12374         arg. Also bind last-command and next-command when invoking the
12375         widget updates.
12376         * gui-x.c (popup_selection_callback): ditto.
12377
12378         * gui.c (get_gui_callback): massage args so that we are always
12379         calling eval. This allows us to add our own variable bindings
12380         outside.
12381
12382         * glyphs-x.c (x_button_instantiate): use
12383         gui_items_to_widget_values since this is GC safe.
12384         (x_progress_gauge_instantiate): ditto.
12385         (x_edit_field_instantiate): ditto.
12386         (x_label_instantiate): ditto.
12387
12388         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
12389         (emacs_Xt_event_widget_focus_out): new function
12390         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
12391         focus.
12392         (emacs_Xt_event_add_widget_actions): new function. add focus
12393         functions as actions.
12394         (init_event_Xt_late): use it.
12395
12396 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
12397
12398         * event-stream.c (Fdispatch_event): Doc fix.
12399
12400 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
12401
12402         * postgresql.c: Remove all references to PQsetenv*.
12403
12404         * postgresql.h: Remove references to PGsetenvHandler object.
12405         * lrecord.h (lrecord_type): Ditto.
12406
12407 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12408
12409         * glyphs-msw.h (struct mswindows_image_instance_data): Added
12410         real_heigh and real_width members, and accessor macros for these.
12411
12412         * glyphs-msw.c (init_image_instance_geometry): New function.
12413         (init_image_instance_from_dibitmap): Use it.
12414         (mswindows_resource_instantiate): Use it.
12415         (init_image_instance_from_xbm_inline): Use it.
12416         (mswindows_initialize_image_instance_mask): Use real bitmap
12417         geometry.
12418         (mswindows_create_resized_bitmap): Ditto.
12419         (mswindows_create_resized_mask): Ditto.
12420
12421         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
12422         and bitmap to their surface size.
12423
12424 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
12425
12426         * process-unix.c (unix_send_process): Guard against process MIA
12427         after Faccept_process_output.
12428
12429 2000-04-11  Ben Wing  <ben@xemacs.org>
12430
12431         * eval.c (unbind_to_hairy): fix brokenness introduced by
12432         nanosecond speed improvements.
12433
12434 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
12435
12436         * sunplay.c (init_device): To play sounds correctly, the device
12437         apparently needs to be initialized at least once by XEmacs.  Make
12438         it so.
12439
12440 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
12441
12442         * redisplay.c (add_margin_runes): Add text image glyph
12443           handling.
12444
12445 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
12446
12447         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
12448         gcc is newer than 2.5.
12449
12450 2000-04-06  Colin Rafferty  <colin@xemacs.org>
12451
12452         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
12453
12454         * fns.c (size_bit_vector):
12455         * alloc.c (size_vector):
12456         (make_vector_internal):
12457         (make_bit_vector_internal):
12458         (sweep_bit_vectors_1):
12459         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
12460
12461 2000-04-06  Andy Piper  <andy@xemacs.org>
12462
12463         * gmalloc.c (malloc): undo previous change.
12464         (malloc): ditto.
12465         (free): ditto.
12466         (realloc): ditto.
12467
12468 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
12469
12470         * line-number.c (buffer_line_number): Revert to former version.
12471
12472 2000-04-06  Andy Piper  <andy@xemacs.org>
12473
12474         * gmalloc.c (malloc): add error checking.
12475         (malloc): ditto.
12476         (free): ditto.
12477         (realloc): ditto.
12478
12479         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
12480         button_item_to_widget_value arg.
12481
12482         * glyphs-x.c (x_button_instantiate): add extra
12483         button_item_to_widget_value arg.
12484         (x_progress_gauge_instantiate): ditto.
12485         (x_edit_field_instantiate): ditto.
12486         (x_label_instantiate): ditto.
12487
12488         * gui-x.c (gui_items_to_widget_values_1): add extra
12489         button_item_to_widget_value arg.
12490         (button_item_to_widget_value): add extra menu_item_p arg.
12491
12492         * gui-x.h: change signature of button_item_to_widget_value.
12493
12494         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
12495         button_item_to_widget_value arg.
12496
12497 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
12498
12499         * buffer.h (struct buffer): auto_save_modified should be long.
12500
12501 2000-04-05  Andy Piper  <andy@xemacs.org>
12502
12503         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
12504         type.
12505         (button_query_geometry): give a little more room so that athena
12506         buttons fit.
12507
12508 2000-04-05  Andy Piper  <andy@xemacs.org>
12509
12510         * faces.c (complex_vars_of_faces): The widget face should inherit
12511         the font of the gui-element face.
12512
12513 2000-04-04  Andy Piper  <andy@xemacs.org>
12514
12515         * glyphs-x.c (x_button_update): new function. unconditionally
12516         update a button's state when the instance is dirty.
12517         (image_instantiator_format_create_glyphs_x): add x_button_update.
12518         (x_widget_instantiate): remove old resize cruft.
12519
12520 2000-04-02  Andy Piper  <andy@xemacs.org>
12521
12522         * frame.c (change_frame_size_1): The introduction of gutters means
12523         that we need to allow 0 as a potential frame dimension.
12524
12525 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
12526
12527         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
12528         image glyph if allow_cursor.
12529         (add_hscroll_rune): Don't allow cursor to border glyph.
12530         (create_text_block): Ditto.
12531
12532         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
12533         text not in buffer.
12534         (redisplay_output_layout): Call ensure_face_cachel_complete for
12535         text image glyph.
12536
12537
12538 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
12539
12540         * redisplay.c (add_glyph_rune): Adding text image as text runes.
12541
12542         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
12543         not in buffer
12544
12545         * redisplay-tty.c (tty_output_display_block): Delete the routine
12546         for text image glyph
12547         * redisplay-x.c (x_output_display_block): ditto
12548         * redisplay-msw.c (mswindows_output_display_block): ditto
12549
12550 2000-02-02  Mike Alexander  <mta@arbortext.com>
12551
12552         Note: Some of these were committed by accident as part of other
12553         patches.
12554
12555         * regex.c (regex_compile): Avoid compiler warnings.
12556
12557         * ntproc.c (sys_spawnve): Avoid compiler warnings.
12558
12559         * nt.h: Declare term_ntproc correctly.
12560
12561         * nt.c: Remove incorrect declaration of get_home_directory which
12562         is declared correctly in lisp.h.
12563
12564         * keymap.c (get_keyelt): Avoid compiler warnings.
12565         (raw_lookup_key_mapper): Avoid compiler warnings.
12566
12567         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
12568
12569         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
12570
12571         * filemode.c (mode_string): Avoid compiler warnings.
12572
12573         * file-coding.c (Fcoding_system_aliasee): Add return statement to
12574         avoid warning.
12575
12576         * events-mod.h: Undef some things that winuser.h defines differently.
12577
12578         * data.c (Faset): Avoid compiler warnings.
12579
12580         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
12581
12582 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
12583
12584         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
12585         Fall through to simple beep on error.
12586         Replace "extern" by real header file.
12587
12588         * linuxplay.c: Use nativesound.h
12589         (play_sound_data): Return error code. Be less verbose on error.
12590
12591         * sunplay.c: Use nativesound.h
12592         (play_sound_data): Return error code. Be less verbose on error.
12593
12594         * ntplay.c: Use nativesound.h
12595         (play_sound_data): Return fake error code
12596
12597         * sgiplay.c: Use nativesound.h
12598         (play_sound_data): Return error code
12599
12600         * hpplay.c: Use nativesound.h, partially implement
12601         new error code. Break compilation until finished.
12602         (play_sound_data): error code.
12603
12604         * nativesound.h (play_sound_file):
12605           (play_sound_data): Prototype in new header.
12606
12607 2000-03-31  Andy Piper  <andy@xemacs.org>
12608
12609         * glyphs-widget.c: (button_query_geometry): new function. Adjust
12610         for toggle and radio buttons.
12611         (image_instantiator_buttons): use it.
12612
12613 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
12614
12615         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
12616         (x_update_horizontal_scrollbar_callback): Return if no mirror was
12617         found. Scrollbar event probably belonged to some old config.
12618
12619 2000-03-31  Andy Piper  <andy@xemacs.org>
12620
12621         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
12622         than 1.
12623         (initialize_widget_image_instance): default layout to
12624         LAYOUT_HORIZONTAL rather than 0.
12625         (widget_instantiate): reverse the item list at the end rather than
12626         every iteration.
12627         (layout_layout): re-code for the border text at the front of the
12628         item list rather than at the end.
12629         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
12630         provided by the user.
12631         (widget_query_geometry): comment.
12632
12633 2000-03-30  Andy Piper  <andy@xemacs.org>
12634
12635         * glyphs-widget.c (image_instantiator_layout): allow standard
12636         widget keywords in layouts.
12637
12638         * gutter.c (output_gutter): cope with nil gutter contents.
12639
12640         * frame.c (Fset_frame_properties): add gutter docs.
12641
12642 2000-03-29  Andy Piper  <andy@xemacs.org>
12643
12644         * toolbar-msw.c (TBSTYLE_FLAT): add.
12645         (mswindows_output_toolbar): minor fiddling.
12646
12647 2000-03-29  Andy Piper  <andy@xemacs.org>
12648
12649         * gutter.c (output_gutter): force gutter size recalculation if
12650         what we are trying to display won't fit.
12651         (update_gutter_geometry): new function. A per-gutter version of
12652         update_frame_gutter_geometry.
12653         (update_frame_gutter_geometry): use it.
12654         (redraw_exposed_gutter): add extra debugging output.
12655
12656 2000-03-28  Mike Alexander  <mta@arbortext.com>
12657
12658         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
12659         (pdump_file_unmap): Implement it on Windows
12660         (pdump_file_get): Save alocated handles for pdump_file_unmap
12661
12662 2000-03-28  Andy Piper  <andy@xemacs.org>
12663
12664         * gui.c (get_gui_callback): treat Quit specially.
12665
12666 2000-03-27  Andy Piper  <andy@xemacs.org>
12667
12668         * glyphs.c (image_instantiate): be careful to check in the same
12669         way we assigned.
12670
12671 2000-03-27  Didier Verna  <didier@xemacs.org>
12672
12673         * config.h.in: define the proper SMART_INCLUDE macro.
12674         handle renaming of `foo_h_path' to `foo_h_file'.
12675
12676         * database.c: ditto.
12677
12678         * emacs.c: ditto.
12679
12680         * linuxplay.c: ditto.
12681
12682         * terminfo.c: ditto.
12683
12684         * tooltalk.h: ditto.
12685
12686 2000-03-27  Andy Piper  <andy@xemacs.org>
12687
12688         * glyphs-msw.c (mswindows_update_widget): make sure the widget
12689         gets updated whenever the face might have changed.
12690
12691 2000-03-26  Mike Alexander  <mta@arbortext.com>
12692
12693         * dumper.c (pdump_resource_free): Fix the comment.
12694
12695 2000-03-21  Olivier Galibert  <galibert@pobox.com>
12696
12697         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
12698
12699 2000-03-22  Mike Alexander  <mta@arbortext.com>
12700
12701         * dumper.c: Include Windows headers on Windows
12702         (pdump_resource_free): Add a body to the function
12703         (pdump_load): exe_name -> exe_path and add some comments.
12704
12705 2000-03-25  Mike Alexander  <mta@arbortext.com>
12706
12707         * gui.c (copy_gui_item_tree): Return a value in all cases
12708
12709 2000-03-21  Didier Verna  <didier@xemacs.org>
12710
12711         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
12712         lwlib/config.h.in.
12713         (SMART_INCLUDE): new macro.
12714         (POSTGRES_INCLUDE): new macro to include postgresql headers from
12715         the proper location.
12716
12717         * postgresql.c: use it.
12718
12719         * inline.c: ditto.
12720
12721 2000-03-24  Andy Piper  <andy@xemacs.org>
12722
12723         * gutter.c (redraw_exposed_gutters): must be "in display" when we
12724         do this.
12725
12726 2000-03-24  Andy Piper  <andy@xemacs.org>
12727
12728         * redisplay-output.c (compare_runes): use image_instance_changed
12729         to detect changes. Do not depend on glyphs_changed, only depend on
12730         dirtiness.
12731          (redisplay_output_layout): add debug messages.
12732         (compare_runes): ditto.
12733
12734         * glyphs.h: declare new functions.
12735         (struct Lisp_Image_Instance): remove percent and associated
12736         accessors.
12737
12738         * gui.h: declare new copying functions.
12739
12740         * gui.c (copy_gui_item_tree): new function.
12741         (copy_gui_item): new function.
12742         (gui_item_id_hash): revert to standard hash.
12743         (gui_item_hash): ditto.
12744         (gui_item_hash_internal): deleted.
12745         (mark_gui_item): mark value.
12746         (gui_item_add_keyval_pair): add value.
12747         (gui_item_init): ditto.
12748         (gui_add_item_keywords_to_plist): ditto.
12749         (gui_item_equal): ditto.
12750         (syms_of_gui): add Q_value.
12751
12752         * glyphs-x.c (x_progress_gauge_update): use pending items and
12753         value for setting the state.
12754         (x_update_widget): don't set items from pending here.
12755
12756         * glyphs-widget.c (update_widget): update items here.
12757         (progress_gauge_set_property): use items for storing value. Put
12758         new value in pending items.
12759
12760         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
12761         items for new value. Convert percent -> value.
12762         (mswindows_tab_control_update): don't update items here.
12763
12764         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
12765         (update_subwindow): ditto.
12766         (image_instance_changed): new function. Compare hash values and
12767         past and present widget items.
12768         (image_instantiate): We more careful about where we instantiate
12769         things.
12770         (image_instantiate): add error checking.
12771
12772         * gutter.c (syms_of_gutter): use -hook.
12773
12774 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
12775
12776         * console-tty.c (Fset_console_tty_input_coding_system): Use
12777         Qkeyboard.
12778         (Fset_console_tty_output_coding_system): Use Qterminal.
12779         (tty_init_console): Use Qkeyboard and Qterminal.
12780
12781 2000-03-21  Ben Wing  <ben@xemacs.org>
12782
12783         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
12784         From Mike Alexander <mta@arbortext.com>.
12785
12786 2000-03-21  Ben Wing  <ben@xemacs.org>
12787
12788         * event-msw.c (mswindows_need_event): Horrible kludge to fix
12789         process brokenness.  Proper implementation to come.
12790         * callproc.c:
12791         Rename call-process-internal to old-call-process-internal.
12792         New impl. in process.el.
12793
12794 2000-03-21  Martin Buchholz  <martin@xemacs.org>
12795
12796         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
12797
12798 2000-03-20  Andy Piper  <andy@xemacs.org>
12799
12800         * glyphs.c (full_list_hash): make hashes of the same elements in
12801         different orders return different values.
12802
12803 2000-03-20  Martin Buchholz <martin@xemacs.org>
12804
12805         * XEmacs 21.2.32 is released.
12806
12807 2000-03-20  Martin Buchholz  <martin@xemacs.org>
12808
12809         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
12810         (DFC_MALLOC_USE_CONVERTED_DATA):
12811         Add aliasing-safe casts to allow use with char* or unsigned char*
12812         lvalues.
12813
12814         * eldap.c (Fldap_open):
12815         (Fldap_search_basic):
12816         (Fldap_add):
12817         (Fldap_modify):
12818         Make C++-compilable.
12819         Make sure GCPRO'ed variables are initialized.
12820         Use temp variables to avoid repeated calls to Flength.
12821
12822 2000-03-16  Martin Buchholz  <martin@xemacs.org>
12823
12824         * sysfile.h:
12825         Make sure PATH_MAX is always defined.
12826         Include limits.h for PATH_MAX.
12827         Deprecate use of MAXPATHLEN.
12828
12829 2000-03-10  Martin Buchholz  <martin@xemacs.org>
12830
12831         * emacs.c: Add reinit_vars_of_fileio.
12832         * symsinit.h: Add reinit_vars_of_fileio.
12833         * fileio.c (reinit_vars_of_fileio): New.
12834         * fileio.c (Fmake_temp_name):
12835         Initialize temp_name random number from microseconds to make
12836         collisions even less likely.  Initialize always at process startup
12837         time.  (make-temp-name) used to return the same file name twice in
12838         a row when PDUMP.
12839         Random stylistic fiddling.
12840         Comment fixes.
12841
12842 2000-03-20  Andy Piper  <andy@xemacs.org>
12843
12844         * glyphs.c (image_instantiate): allow text glyphs to be
12845         instantiated in the minibuffer window.
12846
12847 2000-03-19  Andy Piper  <andy@xemacs.org>
12848
12849         * glyphs.c (image_instance_hash): be careful about which items we
12850         hash on.
12851
12852         * glyphs-widget.c (tab_control_set_property): record into pending
12853         items rather than the actual items.
12854
12855         * glyphs-x.c (x_update_widget): use pending items to update with.
12856
12857         * glyphs-msw.c (mswindows_tab_control_update): use pending items
12858         to update with.
12859
12860         * glyphs.c (mark_image_instance): mark pending items.
12861
12862         * window.c (Fset_window_configuration): record the buffer.
12863         (Fselect_window): totally revert previous change which breaks many
12864         things.
12865
12866 2000-03-18  Andy Piper  <andy@xemacs.org>
12867
12868         * glyphs-msw.c (mswindows_tab_control_update): force selected
12869         item.
12870
12871         * glyphs.c (image_instantiate): don't allow the minibuffer as a
12872         window domain cache, otherwise we get inconsistencies at
12873         startup. There is something fishy at startup which can lead to the
12874         minibuffer being the selected window when the gutter content is
12875         instantiated.
12876
12877         * gui.c (parse_gui_item_tree_list): add probably unnecessary
12878         gcpros.
12879         (parse_gui_item_tree_children): ditto.
12880         (parse_gui_item_tree_item): ditto.
12881
12882         * glyphs.c (Fupdate_widget_instances): return something.
12883
12884 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
12885
12886         * window.c (Fselect_window): Undo 2000-03-17 change.
12887
12888 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
12889
12890         * postgresql.c (Fpq_setenv): Remove this turkey when linking
12891         against v7.0 libraries.  Insta-coredump city until the postgres
12892         folks fix it.
12893
12894 2000-03-17  Andy Piper  <andy@xemacs.org>
12895
12896         * faces.c (complex_vars_of_faces): don't give the widget face an
12897         inherited background pixmap.
12898
12899         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
12900         selected item.
12901
12902         * event-stream.c (Fdispatch_non_command_events): return something.
12903
12904         * gutter.c (output_gutter): use widget face.
12905         (clear_gutter): ditto.
12906
12907         * NEWS: adjust again.
12908
12909         * window.c (Fselect_window): make sure this runs to completion to
12910         avoid oddities with Fset_window_configuration.
12911         (Fcurrent_window_configuration): in general do not save the
12912         minibuffer as the selected window.
12913
12914         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
12915
12916 2000-03-16  Olivier Galibert  <galibert@pobox.com>
12917
12918         * emacs.c (Frunning_temacs_p): Revert previous patch.
12919         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
12920
12921 2000-03-16  Andy Piper  <andy@xemacs.org>
12922
12923         * glyphs-x.c (x_tab_control_update): if no widget values then
12924         return.
12925
12926         * NEWS: update for new features.
12927
12928         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
12929         synthetic event to the native system.
12930         (reinit_vars_of_event_Xt): set force_event_pending to
12931         emacs_Xt_force_event_pending.
12932
12933         * events.h (struct event_stream): add force_event_pending.
12934
12935         * specifier.c (recompute_one_cached_specifier_in_window): add
12936         comment.
12937
12938         * redisplay.c (redisplay_frame): don't call
12939         update_frame_subwindows. Reset subwindow cachels when
12940         subwindows_changed, removing this was an optimization too far.
12941
12942         * redisplay-output.c (compare_runes): reorganize so that we catch
12943         glyph changes when we want them. Set optimize_output when this
12944         would help layouts.
12945         (redisplay_output_layout): remove frame_really_changed, use
12946         optimize_output instead.
12947
12948         * redisplay-msw.c (mswindows_output_display_block): reset
12949         optimize_output after outputting a glyph.
12950         * redisplay-x.c (x_output_display_block): ditto.
12951         * redisplay-tty.c (tty_output_display_block): ditto.
12952
12953         * gutter.c: (specifier_vars_of_gutter): use new spec changed
12954         functions.
12955         (gutter_specs_changed): do specific gutter positions.
12956         (top_gutter_specs_changed): new function. Only update the
12957         specified gutter specs.
12958         (bottom_gutter_specs_changed): ditto.
12959         (left_gutter_specs_changed): ditto.
12960         (right_gutter_specs_changed): ditto.
12961
12962         * gui.c (gui_item_hash_internal): new function, does a real hash.
12963         (gui_item_id_hash): use it.
12964         (gui_item_hash): hash the eval'ed gui_item.
12965
12966         * gui-x.c (popup_selection_callback): send an eval event to call
12967         Fupdate_widget_instances.
12968
12969         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
12970         to call Fupdate_widget_instances.
12971
12972         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
12973         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
12974
12975         * glyphs.c: (update_frame_subwindows): deleted.
12976         (Fupdate_widget_instances): new function for updating the dirty
12977         state of widgets that might have changed.
12978         (syms_of_glyphs): add Qupdate_widget_instances.
12979         (full_list_hash): hash a list completely.
12980         (image_instance_hash): use it for items and properties.
12981
12982         * frame-msw.c (mswindows_size_frame_internal): remove unused
12983         variable.
12984
12985         * faces.h (struct face_cachel): fix comment.
12986
12987         * event-stream.c (Fdispatch_non_command_events): new
12988         function. Process non-command events, forcing an event cycle
12989         beforehand.
12990         (syms_of_event_stream): declare.
12991         (event_stream_force_event_pending): new function. Force an event
12992         on the native event queue so that an event cycle will occur next
12993         time we check.
12994
12995         * event-msw.c:
12996         (struct ntpipe_shove_stream):
12997         (mswindows_enqueue_dispatch_event):
12998         (mswindows_dequeue_dispatch_event):
12999         (mswindows_cancel_dispatch_event):
13000         (mswindows_pump_outstanding_events):
13001         (mswindows_drain_windows_queue):
13002         (mswindows_handle_paint):
13003         (mswindows_wnd_proc):
13004         (mswindows_key_to_emacs_keysym):
13005         (get_process_input_waitable):
13006         (emacs_mswindows_delete_stream_pair): re-indent file.
13007         (mswindows_need_event): do not process further fds if the windows
13008         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
13009         fixes the 100% cpu problem.
13010         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
13011
13012 2000-03-15  Olivier Galibert  <galibert@pobox.com>
13013
13014         * alloc.h: New.
13015         * dumper.h: New.
13016         * dumper.c: New.
13017
13018         * emacs.c: Moved dump file searching to dumper.c.
13019         (Frunning_temacs_p): Fixed.
13020
13021         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
13022         last_lrecord_type_index_assigned.
13023
13024 2000-02-20  Olivier Galibert  <galibert@pobox.com>
13025
13026         * symsinit.h: Added reinit parameter to init_console_stream
13027         declaration.
13028
13029         * lisp.h: Added file parameter to pdump_load declaration.
13030
13031         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
13032         support.  Added dump file searching.
13033
13034         * config.h.in: Added EMACS_PROGNAME.
13035
13036         * console-stream.c (init_console_stream): Fix reinitialisation
13037         when running from temacs.
13038
13039         * alloc.c (pdump): Add id support.
13040         (pdump_load): Add file parameter and signature/id support.
13041
13042         * Makefile.in.in: Add full pdump support.
13043
13044 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
13045
13046         * postgresql.c: Update documentation to reflect latest code
13047         status.
13048         (print_result): Show tuple counts in printed representation when
13049         appropriate.
13050         (Fpq_put_nbytes): MULE-ize.
13051         (Fpq_get_line_async): Ditto.
13052
13053 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
13054
13055         * postgresql.c (Fpq_lo_import): Fix return value.
13056         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
13057
13058 2000-03-13  Ben Wing  <ben@xemacs.org>
13059
13060         * alloc.c (pdump_load):
13061         Fix compile warning under mswin.
13062
13063 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
13064
13065         * postgresql.c: Mule-ization, bug fixes.
13066         Use PG_CODING to encapsulate coding system name changes.
13067         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
13068         (pg-coding-system): Create.
13069
13070         (Fpq_conn_defaults): Mule-ize.
13071         (Fpq_connectdb): Mule-ize & bug fix.
13072         (Fpq_connect_start): Mule-ize.
13073         (Fpq_set_client_encoding): Mule-ize.
13074         (Fpq_finish): Document `DEAD' connection status.
13075         (Fpq_clear): Ditto.
13076         (Fpq_pgconn): Mule-ize.
13077         (Fpq_exec): Mule-ize & bug fix.
13078         (Fpq_send_query): Ditto.
13079         (Fpq_get_result): Ditto.
13080         (Fpq_res_status): Mule-ize.
13081         (Fpq_result_error_message): Mule-ize.
13082         (Fpq_ntuples): fix comments.
13083         (Fpq_fname): Mule-ize.
13084         (Fpq_fnumber): Mule-ize.
13085         (Fpq_ftype): fix comments.
13086         (Fpq_get_value): Mule-ize.
13087         (Fpq_cmd_status): Ditto.
13088         (Fpq_cmd_tuples): Ditto.
13089         (Fpq_oid_value): Ditto.
13090         (Fpq_notifies): Ditto.
13091         (Fpq_lo_import): Ditto.
13092         (Fpq_lo_export): Ditto.
13093         (Fpq_get_line): Ditto.
13094         (Fpq_put_line): Mule-ize and bug fix.
13095         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
13096
13097 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
13098
13099         * postgresql.c (vars_of_postgresql): Mule-ize.
13100         (Fpq_conn_defaults): Ditto.
13101
13102 2000-03-12  Ben Wing  <ben@xemacs.org>
13103
13104         * alloc.c (Fmake_byte_code):
13105         * alloc.c (debug_string_purity_print):
13106         * alloc.c (pdump_backtrace):
13107         * alloc.c (pdump_get_indirect_count):
13108         * alloc.c (pdump_register_sub):
13109         * alloc.c (pdump_register_object):
13110         * alloc.c (pdump_register_struct):
13111         * alloc.c (pdump_dump_data):
13112         * alloc.c (pdump_reloc_one):
13113         Minor cleanups.
13114
13115         * console-msw.c:
13116         * console-msw.c (GetConsoleHwnd):
13117         * console-msw.c (msw_hide_console):
13118         * console-msw.c (msw_show_console):
13119         * console-msw.c (msw_ensure_console_buffered):
13120         * console-msw.c (msw_output_console_string):
13121         * console-msw.c (console_type_create_mswindows):
13122
13123         a) Added functions to manipulate the console window for use with
13124         shell support.
13125
13126         b) Added support for writing text to the console, which is now
13127         used under Windows when xemacs is not being run non-interactively,
13128         to write text that would otherwise be destined for stdout because
13129         under these circumstances, text written to stdout tends to
13130         disappear and not be seen.
13131
13132         * console-msw.h:
13133         * event-Xt.c:
13134         * event-Xt.c (x_event_to_emacs_event):
13135         * event-Xt.c (describe_event_window):
13136         * events-mod.h (XEMACS_MOD_CONTROL):
13137         * events.c:
13138         * events.c (Fmake_event):
13139         * events.c (character_to_event):
13140         * events.c (event_to_character):
13141         * events.c (format_event_object):
13142         * events.c (Fevent_modifiers):
13143         * events.h:
13144         * events.h (struct key_data):
13145         * events.h (struct button_data):
13146         * events.h (struct misc_user_data):
13147         * frame-x.c (Fcde_start_drag_internal):
13148         * frame-x.c (Foffix_start_drag_internal):
13149         * gpmevent.c (Freceive_gpm_event):
13150         * keymap.c:
13151         * keymap.c (bucky_sym_to_bucky_bit):
13152         * keymap.c (control_meta_superify):
13153         * keymap.c (make_key_description):
13154         * keymap.c (keymap_lookup_directly):
13155         * keymap.c (create_bucky_submap):
13156         * keymap.c (keymap_store):
13157         * keymap.c (define_key_check_and_coerce_keysym):
13158         * keymap.c (define_key_parser):
13159         * keymap.c (define_key_alternate_name):
13160         * keymap.c (Fdefine_key):
13161         * keymap.c (raw_lookup_key_mapper):
13162         * keymap.c (struct map_keymap_unsorted_closure):
13163         * keymap.c (map_keymap_unsorted_mapper):
13164         * keymap.c (map_keymap_sort_predicate):
13165         * keymap.c (map_keymap_sorted):
13166         * keymap.c (accessible_keymaps_mapper_1):
13167         * keymap.c (where_is_recursive_mapper):
13168         * keymap.c (describe_map_mapper):
13169         * keymap.c (describe_map_sort_predicate):
13170         * keymap.c (describe_map):
13171         * keymap.c (complex_vars_of_keymap):
13172         And a number of other files, the key modifier preprocessor
13173         constants that xemacs uses have names that conflict with constants
13174         defined under MS Windows for other purposes, so they were renamed
13175         to begin with the prefix XEMACS_. The variables that hold such
13176         modifiers were changed to consistently be of type int to fix
13177         various compile warnings.
13178
13179         * console.c (complex_vars_of_console):
13180         * device.c:
13181         * device-msw.c:
13182         * device-msw.c (mswindows_finish_init_device):
13183         * device-msw.c (msw_get_workspace_coords):
13184         * device-msw.c (mswindows_device_system_metrics):
13185         and various other files, added support for a new
13186         device property called offset-workspace which returns the position
13187         of the upper left corner of the workspace area and goes along with
13188         the existing size-workspace property.
13189
13190         * dialog-msw.c:
13191         * dialog-msw.c (push_bufbyte_string_as_unicode):
13192         * dialog-msw.c (mswindows_popup_dialog_box):
13193         Added support for XEmacs-style accelerator specifications in
13194         button text.  Note: I didn't add support for this under X Windows,
13195         and somebody needs to do this.
13196
13197         * dialog.c:
13198         * dialog.c (Fpopup_dialog_box):
13199         Documented the support for accelerators that was just mentioned.
13200
13201         editfns.c (get_home_directory): Changed behavior under Windows
13202         when HOME not defined; former behavior was irretrievably broken.
13203
13204         * emacs.c:
13205         * emacs.c (main_1):
13206         * emacs.c (main):
13207         * minibuf.c (clear_echo_area_internal):
13208         * minibuf.c (echo_area_append):
13209         * print.c:
13210         * print.c (std_handle_out_external):
13211         * print.c (std_handle_out_va):
13212         * print.c (fatal):
13213         * print.c (write_string_to_stdio_stream):
13214         * print.c (output_string):
13215         * print.c (debug_print):
13216         * print.c (debug_backtrace):
13217         * print.c (debug_short_backtrace):
13218         Cleaned up the code that prints text to stdout so that this can be
13219         changed to output into a console window instead under MS Windows,
13220         as described above.
13221
13222         * eval.c:
13223         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
13224         * eval.c (internal_catch):
13225         * eval.c (unwind_to_catch):
13226         * eval.c (throw_or_bomb_out):
13227         * eval.c (condition_case_1):
13228         * eval.c (signal_1):
13229         * eval.c (check_error_state_sanity):
13230         * eval.c (call_with_suspended_errors_1):
13231         * eval.c (call_with_suspended_errors):
13232         * eval.c (reinit_vars_of_eval):
13233         Added code to catch throw loops and check for a pesky bug that may
13234         be gone now.
13235
13236         * event-msw.c:
13237         * event-msw.c (key_needs_default_processing_p):
13238         * event-msw.c (mswindows_wnd_proc):
13239         * event-msw.c (mswindows_modifier_state):
13240         * event-msw.c (emacs_mswindows_quit_p):
13241         * event-msw.c (vars_of_event_mswindows):
13242         a) Added support for using the alt key to select menu items as is
13243         standard under MS Windows.  This is controlled using the variable
13244         menu-accelerator-enabled, just like under X Windows.  There is an
13245         option on the options menu to turn this support on.  I really
13246         think that it should be on by default under Windows, but I'm not
13247         going to make this change yet.
13248
13249         b)  Added support for dynamic display size changes under Windows.
13250
13251         * event-stream.c:
13252         * event-stream.c (maybe_echo_keys):
13253         * event-stream.c (Fnext_event):
13254         * event-stream.c (command_builder_find_leaf):
13255         * event-stream.c (lookup_command_event):
13256         * event-stream.c (execute_command_event):
13257         * event-stream.c (pre_command_hook):
13258         * event-stream.c (post_command_hook):
13259         * event-stream.c (syms_of_event_stream):
13260         * event-stream.c (vars_of_event_stream):
13261         * event-stream.c (complex_vars_of_event_stream):
13262         * events.h (struct command_builder):
13263
13264         a) Tried to clean up a little bit the horribly written x-specific
13265         accelerator code that crept into this file.  I moved this code
13266         into menubar-x.c where it belongs. I also needed to move the
13267         command builder structure into the file events.h because it is
13268         accessed directly by this accelerator code.  What I didn't do, but
13269         which should be done at some point, is to properly abstract this
13270         code using device methods instead of the kludgy way that it
13271         currently hooks into the event code.
13272
13273         b) Added the lisp variables this-command-properties and
13274         last-command- properties, which should be used to synchronize two
13275         adjacent commands in preference to playing games with the variable
13276         this-command, which is typically what happens.
13277
13278         c) Added some slightly nasty code to hook into the lisp support
13279         for shifted- motion-key selection.  This is actually necessary for
13280         somewhat complicated reasons, which are described in
13281         simple.el. (NB: I think the proper thing would be to have the code
13282         that calls the pre and post command hooks also call out to generic
13283         lisp functions in simple.el, where all built-in stuff could be
13284         added.  I will think about this more.)
13285
13286         * event-unixoid.c (poll_fds_for_input):
13287         * lread.c (readchar):
13288         * redisplay-tty.c (tty_clear_frame):
13289         * redisplay-x.c (x_get_gc):
13290         * signal.c (interrupt_signal):
13291         And a whole bunch of other files: fixed up places that printed
13292         directly to stderr to instead call the function stderr_out so that
13293         the changes I made under Windows work correctly.
13294
13295         * filemode.c (mode_string):
13296         Warning fixes.
13297
13298         * frame-msw.c:
13299         * frame-msw.c (mswindows_size_frame_internal):
13300         Fixed the computation of frame size and position to keep the frame
13301         within the workspace area, rather than within the physical
13302         dimensions of the screen, so that the frame doesn't overlap window
13303         manager decorations, such as the start menu and toolbar, typically
13304         at the bottom of the screen.
13305
13306         * frame.c (vars_of_frame):
13307         Changed the default frame title format under MS Windows to consist
13308         of buffername-XEmacs, which is standard under MS Windows.  I think
13309         it might be a good idea to change this everywhere because I think
13310         it is superior to the current frame title format, but this is the
13311         kind of change that is likely to cause some people to get annoyed,
13312         so I'm not making it.
13313
13314         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
13315
13316         * gui-msw.c (mswindows_handle_gui_wm_command):
13317         Fixed compile warnings.
13318
13319         * gui-x.c:
13320         * gui-x.c (strdup_and_add_accel):
13321         * gui-x.c (button_item_to_widget_value):
13322         * gui-x.h:
13323         Added code to automatically put an accelerator onto the beginning
13324         of menu items that don't have one as is now the standard, and is
13325         described more later.  Also fixed things so that the menu item
13326         name can be an evaluated expression, again a new standard.
13327
13328         * gui.c:
13329         * gui.c (gui_item_add_keyval_pair):
13330         * gui.c (make_gui_item_from_keywords_internal):
13331         * gui.c (gui_add_item_keywords_to_plist):
13332         * gui.c (gui_item_accelerator):
13333         * gui.c (gui_name_accelerator):
13334         * gui.c (gui_item_included_p):
13335         * gui.c (gui_item_display_flush_left):
13336         * gui.c (gui_item_display_flush_right):
13337         * gui.c (parse_gui_item_tree_item):
13338         * gui.c (parse_gui_item_tree_children):
13339         * gui.c (parse_gui_item_tree_list):
13340         Mule-ized.  Cleanup.  GCPRO addition.
13341
13342         * line-number.c (buffer_line_number):
13343         * lisp.h:
13344         * lisp.h (EMACS_INT_MAX):
13345         Added the manifest constant EMACS_INT_MIN corresponding to the
13346         existing constant EMACS_INT_MAX.  This is partially to fix compile
13347         warnings under Windows, and partly for cleanliness.
13348
13349         * menubar-msw.c:
13350         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
13351         * menubar-msw.c (msw_translate_menu_or_dialog_item):
13352         * menubar-msw.c (displayable_menu_item):
13353         * menubar-msw.c (populate_menu_add_item):
13354         * menubar-msw.c (populate_or_checksum_helper):
13355         * menubar-msw.c (populate_menu):
13356         * menubar-msw.c (update_frame_menubar_maybe):
13357         * menubar-msw.c (prune_menubar):
13358         * menubar-msw.c (msw_char_is_accelerator):
13359         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
13360         * menubar-msw.c (mswindows_handle_wm_command):
13361         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
13362         * menubar-msw.c (mswindows_handle_wm_initmenu):
13363         * menubar-msw.c (mswindows_update_frame_menubars):
13364         * menubar-msw.c (mswindows_free_frame_menubars):
13365         * menubar-msw.c (mswindows_popup_menu):
13366         Fixed a bug in handling accelerators where an extra character
13367         would be displayed in the menu item.  Also generalized the
13368         function displayable_menu_item because it is now used by the
13369         dialog box code as well.  And finally, added code in the functions
13370         that create the menubar to extract a list of accelerators for the
13371         top level menubar, which is used in the event code to determine
13372         whether a particular alt-key combination should be used to invoke
13373         a menu item, or should be passed through to access the standard
13374         XEmacs keymap binding for this key combination.
13375
13376         Much needed GCPROing.
13377
13378         * menubar-x.c:
13379         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
13380         * menubar-x.c (menu_item_descriptor_to_widget_value):
13381         * menubar-x.c (restore_in_menu_callback):
13382         * menubar-x.c (x_popup_menu):
13383         * menubar-x.c (menu_move_up):
13384         * menubar-x.c (menu_move_down):
13385         * menubar-x.c (menu_move_left):
13386         * menubar-x.c (menu_move_right):
13387         * menubar-x.c (menu_select_item):
13388         * menubar-x.c (command_builder_operate_menu_accelerator):
13389         * menubar-x.c (menu_accelerator_junk_on_error):
13390         * menubar-x.c (command_builder_find_menu_accelerator):
13391         * menubar-x.c (Faccelerate_menu):
13392         * menubar.h:
13393         Moved a whole bunch of code here that was previously in
13394         event-stream.c as described above.  There is also code connected
13395         to the new standard of adding an accelerator to the beginning of
13396         menu items that don't have one as described above and below.
13397
13398         * menubar.c:
13399         * menubar.c (menu_parse_submenu_keywords):
13400         * menubar.c (Fmenu_find_real_submenu):
13401         * menubar.c (Fnormalize_menu_item_name):
13402         * menubar.c (syms_of_menubar):
13403         * menubar.c (vars_of_menubar):
13404         * menubar.c (complex_vars_of_menubar):
13405
13406         a) Cleaned up a bunch of documentation and improved it.
13407
13408         b) XEmacs now automatically adds an accelerator onto the beginning
13409         of any menu items that don't have one.  I did this because there
13410         will inevitably be some menu items on the main menubar that don't
13411         have accelerators on them because the package that adds that
13412         particular menu item hasn't yet been fixed up to have accelerators
13413         in them and it looked rather strange to have some items with and
13414         some items without accelerators, especially since even in items
13415         without accelerators, you can, at least under windows, still
13416         access the item through an accelerator corresponding to the first
13417         character in the item's name.  If people don't like this behavior,
13418         I can add a variable to turn it off optionally, but I'm not sure
13419         this is a good idea because we really do need to have accelerators
13420         on all of the menu items, and if a package doesn't like the
13421         accelerators being put on the first character, then it should put
13422         the accelerators where they belong.
13423
13424         c) I made a behavior change, which is that the descriptor that
13425         specifies the text of the menu item, which formerly was just a
13426         string, can now also be an evaluated expression.  This makes this
13427         descriptor parallel with all of the others, which could also be
13428         evaluated expressions.  This also obviates the need for the
13429         keyword :label, which was previously listed in the documentation
13430         as unimplemented, and which was for the same purpose.
13431
13432         d) GCPROing.
13433
13434         * ntproc.c:
13435         * ntproc.c (new_child):
13436         * ntproc.c (sys_spawnve):
13437         * ntproc.c (find_child_console):
13438         * ntproc.c (sys_kill):
13439         Fixed compile warnings.  By the way, this file should really go
13440         away entirely, and this will happen as soon as Kirill makes his
13441         final round of process cleanups, which affect the function
13442         call-process.
13443
13444         * process-nt.c:
13445         * process-nt.c (struct nt_process_data):
13446         * process-nt.c (find_process_from_pid):
13447         * process-nt.c (send_signal_the_nt_way):
13448         * process-nt.c (enable_child_signals):
13449         * process-nt.c (find_child_console):
13450         * process-nt.c (send_signal_the_95_way):
13451         * process-nt.c (nt_finalize_process_data):
13452         * process-nt.c (ensure_console_window_exists):
13453         * process-nt.c (nt_create_process):
13454         * process-nt.c (nt_kill_child_process):
13455         * process-nt.c (nt_kill_process_by_pid):
13456         * process-nt.c (nt_open_network_stream):
13457         * process-nt.c (vars_of_process_nt):
13458         Copied over code from Emacs 20.5 to correctly send signals to sub-
13459         processes under Windows 95.  Also added code to automatically
13460         create and hide console window when a sub-process is created under
13461         Windows 95, which obviates the need for the separate runemacs.exe
13462         executable, and finally implemented some variables that were
13463         implemented in Emacs 20.5, but previously not in XEmacs.  These
13464         include mswindows- start-process-share-console and
13465         mswindows-start-process-inherit-error-mode. (Both of these only
13466         apply to Windows 95.)
13467
13468         * regex.c (regex_compile): Fixed a compile warning.
13469
13470         * select-msw.c:
13471         * select-msw.c (mswindows_own_selection):
13472         * select-msw.c (mswindows_get_foreign_selection):
13473         * select-msw.c (mswindows_disown_selection):
13474         * select-msw.c (console_type_create_select_mswindows):
13475         * select-msw.c (syms_of_select_mswindows):
13476         Cleaned up the file and implemented the device method
13477         selection_exists_p, which had accidentally been left out.  Also
13478         removed four lisp functions that were remnants from before the
13479         time when the selection code was properly device abstracted.
13480         These functions are no longer needed because there are generic
13481         equivalents, and because they were added recently and don't exist
13482         in FSF Emacs, I don't think there's any problem with just deleting
13483         them.
13484
13485         * sysdep.c:
13486         * sysdep.c (sys_subshell):
13487         Fixed a compile warning, although in this case there's probably
13488         something wrong with this code, and it ought to be looked into
13489         more thoroughly by somebody who understands it.
13490
13491         * window.c:
13492         * window.c (Fwindow_text_area_height):
13493         * window.c (Fwindow_width):
13494         * window.c (Fwindow_full_width):
13495         * window.c (Fwindow_pixel_width):
13496         * window.c (debug_print_window):
13497         * window.c (syms_of_window):
13498         Added functions window-text-area-height and window-full-width,
13499         which are functions for returning various width and height
13500         characteristics of a window. (One of these functions is necessary
13501         for making the file dialog box work correctly, and the other one
13502         was added for completeness.)  Also added a table to the
13503         documentation for window-height which describes the entire scheme
13504         for accessing width and height characteristics of a window.
13505
13506 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13507
13508         * nt.c (fstat): Added a comment for another problem with
13509         non-encapsulated [f]stat(), reported by Adrian Aichner
13510         <aichner@ecf.teradyne.com>.
13511
13512 2000-03-11  Andy Piper  <andy@xemacs.org>
13513
13514         * window.c (make_dummy_parent): initialize subwindow instance
13515         cache.
13516         (Fset_window_configuration): zero extent_modiff.
13517
13518 2000-03-10  Andy Piper  <andy@xemacs.org>
13519
13520         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
13521         more changes can be triggered.
13522         (Fredisplay_frame): ditto.
13523         (Fredraw_device): ditto.
13524         (Fredisplay_device): ditto.
13525         (redisplay_frame): make non-static.
13526         (redisplay_frame): call update_frame_gutter_geometry outside of
13527         display proper.
13528
13529         * gutter.h: declare update_frame_gutter_geometry.
13530
13531         * redisplay.h: declare redisplay_frame.
13532
13533         * gutter.c (update_frame_gutter_geometry): move geometry changes
13534         in update_frame_gutters here. Geometry changes can only occur
13535         outside of redisplay.
13536         (update_frame_gutters): remove geometry change code.
13537         (Fredisplay_gutter_area): make sure that we are in display when we
13538         update and that we have flushed any size changes.
13539
13540 2000-03-11  Andy Piper  <andy@xemacs.org>
13541
13542         * alloc.c (pdump_dump_data): remove i & count shadows.
13543
13544 2000-02-27  Mike Alexander  <mta@arbortext.com>
13545
13546         * sysdep.h: Declare pdump_read_file
13547
13548         * sysdep.c (pdump_read_file): New function
13549
13550         * alloc.c (pdump_load): Call pdump_read_file to get the portable
13551         dump data
13552
13553 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
13554
13555         * lrecord.h: add `lrecord_type_pgsetenv'.
13556
13557 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
13558
13559         * symsinit.h: declare (vars|syms)_of* functions.
13560         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
13561
13562 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
13563
13564         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
13565
13566         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
13567         GCCs.
13568
13569         * emacs.c (main_1): Call postgres initialization code.
13570
13571         * postgresql.h: New file.  PostgreSQL RDBMS support.
13572         * postgresql.c: New file.
13573
13574 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
13575
13576         * redisplay-output.c (redisplay_output_display_block): Disable
13577         redundant code.
13578
13579 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
13580
13581         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
13582         (Fcanna_henkan_next): Ditto.
13583         (Fcanna_bunsetu_henkou): Ditto.
13584         (Fcanna_henkan_kakutei): Ditto.
13585         (Fcanna_henkan_end): Ditto.
13586         (Fcanna_henkan_quit): Ditto.
13587         (Fcanna_henkan_next): Set retun value correctly.
13588         (c2mu): Use unsigned char instead of signed char.
13589
13590 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
13591
13592         * emacs.c (main_1): Always call syms_of_gui.
13593         * inline.c: include gui.h
13594
13595 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
13596
13597         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
13598         converted to Lisp_Object.
13599         (Qtop_bottom): New variable.
13600         (syms_of_redisplay): Initialize it.
13601         * redisplay.h (Vvisible_bell): Ditto.
13602         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
13603         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
13604         only flash top and bottom.
13605
13606 2000-03-08  Andy Piper  <andy@xemacs.org>
13607
13608         * buffer.c (Frename_buffer): record new buffer name the right way.
13609
13610 2000-03-08  Andy Piper  <andy@xemacs.org>
13611
13612         * glyphs.c (update_subwindow): increase hash depth so that widget
13613         items get picked up properly.
13614
13615         * redisplay-output.c (compare_runes): increase hash depth so that
13616         widget items get picked up properly.
13617
13618 2000-03-08  Andy Piper  <andy@xemacs.org>
13619
13620         * gutter.c (output_gutter): add some debug.
13621
13622         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
13623         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
13624         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
13625
13626         * redisplay-output.c (compare_runes): use display_hash to
13627         determine if glyphs really are not the same.
13628
13629         * glyphs.c (update_subwindow): check display_hash to see if
13630         anything really needs to be updated. If not then do
13631         nothing. Record the display_hash after updating.
13632         (image_instance_equal): compare the image_instance face also.
13633
13634 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
13635
13636         * redisplay.h: Fix comment style.
13637
13638 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
13639
13640         * consle-msw.h (struct mswindows_frame):
13641         Added new member paint_pending to indicate whether a WM_PAINT
13642         magic event has been queued for this frame.
13643
13644         * event-msw.c (mswindows_drain_windows_queue):
13645         Don't queue a WM_PAINT magic event if one is already queued.
13646         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
13647
13648         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
13649
13650 2000-03-07  Didier Verna  <didier@xemacs.org>
13651
13652         * dired.c: #include `regex.h' after `sysfile.h'.
13653
13654 2000-03-06  Martin Buchholz  <martin@xemacs.org>
13655
13656         * sound.c (init_nas_sound): Fix compiler warning.
13657
13658         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
13659         (FREE_STRUCT_P):
13660         (MARK_STRUCT_AS_FREE):
13661         (MARK_STRUCT_AS_NOT_FREE):
13662         Make `gcc -fstrict-aliasing' work properly.
13663
13664 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
13665
13666         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
13667         (mswindows_delete_device): Call CoUnnitialize().
13668
13669         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
13670
13671 2000-02-25    <CraigL@DyCon.com>
13672
13673         * process-nt.c: MinGW now has <shellapi.h>, but still needs
13674         <errno.h>.
13675
13676         * sysdep.c: This extern declaration for environ prevents MinGW
13677         from finding the variable in CRTDLL.DLL.
13678
13679         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
13680         windows headers.
13681         (SHGFI_EXETYPE): ..
13682         (WM_MOUSEWHEEL): ..
13683         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
13684         definitions.
13685         (MMRESULT): Removed, now defined in cygwin's windows headers.
13686         (TIMECAPS): ..
13687         (uid_t,gid_t,pid_t,ssize_t): ..
13688         (_timeb): Removed, MinGW defines both _timeb and timeb.
13689         (HAVE_H_ERRNO): Added.
13690         (HAVE_TZNAME): Added, configure is not detecting this.
13691
13692 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
13693
13694         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
13695         * syntax.c (syntax_match): Use it.
13696
13697         * cmds.c: Import auto-fill-chars from FSF Emacs.
13698         (Vauto_fill_chars): New variables.
13699         (internal_self_insert): Check Vauto_fill_chars.
13700         (vars_of_cmds):
13701         Declare auto-fill-chars as a Lisp variable and initialize it.
13702
13703 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
13704
13705         * fileio.c (Fmake_symbolic_link):
13706         (Ffile_symlink_p):
13707         Run handlers even if local machine doesn't have symlinks.
13708
13709 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
13710
13711         * event-msw.c (mswindows_drain_windows_queue):
13712         Don't generate paint magic events for non-XEmacs frames.
13713
13714 2000-03-05  Andy Piper  <andy@xemacs.org>
13715
13716         * redisplay.c (redisplay_frame): generate_displayable_area and
13717         friends assumes that we are not in GC, we therefore have to make
13718         sure that this doesn't happen.
13719
13720         * gutter.c (calculate_gutter_size): generate_displayable_area
13721         assumes that we are not in GC, we therefore have to make sure that
13722         this doesn't happen.
13723
13724 2000-03-05  Martin Buchholz  <martin@xemacs.org>
13725
13726         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
13727
13728 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
13729
13730         * redisplay.c (regenerate_window): Make sure we set a sane value
13731         for end_pos even if we jump out of the loop.
13732         (regenerate_window): Answer Ben's question :-).
13733         (start_end_of_last_line): Add may_error argument.
13734         (start_of_last_line):
13735         (end_of_last_line): Pass may_error = 0.
13736         (end_of_last_line_may_error): New function.
13737         (pixel_to_glyph_translation): Use it, so we don't crash in
13738         event_to_glyph.
13739
13740 2000-03-04  Andy Piper  <andy@xemacs.org>
13741
13742         * window.h (struct window): add gutter_extent_modiff.
13743
13744         * window.c (allocate_window): zero out gutter_extent_modiff.
13745
13746         * redisplay.h: declare sync_display_line_structs.
13747
13748         * redisplay.c (add_glyph_rune): add a better comment.
13749
13750         * redisplay-output.c (sync_display_line_structs): made non-static.
13751         (compare_runes): remove unneccesary glyph cachel access.
13752
13753         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
13754
13755         * gutter.c (output_gutter): don't output the gutter if extent
13756         changes only involve extents in buffers. use 4 sets of display
13757         lines.
13758         (gutter_extent_signal_changed_region_maybe): new function. Mark
13759         extents in gutters as changed.
13760         (update_frame_gutters): use 4 sets of display lines.
13761         (reset_gutter_display_lines): ditto.
13762         (free_frame_gutters): ditto.
13763         (redraw_exposed_gutter): force output of gutters.
13764
13765         * frame.h (struct frame): add 4 sets of gutter display lines.
13766
13767         * extents.c: (extent_changed_for_redisplay): signal changes to
13768         extents in strings in the gutter as well as extents in buffers.
13769
13770 2000-03-02  Andy Piper  <andy@xemacs.org>
13771
13772         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
13773
13774         * frame.c (Fmake_frame): make sure the gutters get initialized
13775         after the frame is visible.
13776         (set_frame_selected_window): re-arrange compilation macros a
13777         little.
13778         (change_frame_size_1): mark gutters changed.
13779
13780         * device.c (Fset_device_class): mark gutters changed.
13781
13782 2000-03-01  Andy Piper  <andy@xemacs.org>
13783
13784         * window.c (window_top_frame_gutter_height): deleted.
13785         (window_bottom_frame_gutter_height): ditto.
13786         (window_left_frame_gutter_height): ditto.
13787         (window_right_frame_gutter_height): ditto.
13788         (window_top_gutter_height): don't use them.
13789         (window_bottom_gutter_height): ditto.
13790         (window_left_gutter_width): ditto.
13791         (window_right_gutter_width): ditto.
13792         (Fsplit_window): ditto.
13793         (Fwindow_pixel_edges): don't use border dimensions here.
13794
13795         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
13796         (update_scrollbar_instance): ditto.
13797
13798         * redisplay.c (generate_modeline): don't take gutters into account.
13799         (generate_modeline): ditto.
13800         (redisplay_frame): small gutter display optimization.
13801
13802         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
13803
13804         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
13805         gutters into account.
13806
13807         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
13808         for window position and type.
13809
13810         * gutter.c (get_gutter_coords): fix for frame gutters.
13811         (update_frame_gutters): update frame geometry if the gutters have
13812         changed.
13813         (init_frame_gutters): record current gutter geometries.
13814
13815         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
13816         var.
13817         (mswindows_widget_instantiate): ditto.
13818
13819         * frame.h (struct frame): add current_gutter_bounds.
13820
13821         * frame.c (change_frame_size_1): position window and minibuffer
13822         appropriately taking into account the frame gutters.
13823
13824         * frame-x.c: (x_initialize_frame_size): take into account the
13825         frame gutters.
13826
13827 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
13828
13829         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
13830
13831 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
13832
13833         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
13834
13835 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
13836
13837         * file-coding.c (reset_decoding_stream): Clear previous
13838         detection state when autodetect.
13839
13840 2000-02-29  Didier Verna  <didier@xemacs.org>
13841
13842         * extents.c (set_extent_glyph_1): don't require extents to be
13843         attached.
13844
13845 2000-02-27  Andy Piper  <andy@xemacs.org>
13846
13847         * gutter.c (Fset_default_gutter_position): don't default left and
13848         right gutter visibility to t.
13849         (Fset_default_gutter_position): run
13850         default-gutter-position-changed-hook.
13851         (syms_of_gutter): add default-gutter-position-changed-hook.
13852
13853 2000-02-26  Andy Piper  <andy@xemacs.org>
13854
13855         * specifier.c (Fmake_specifier): add gutter references.
13856
13857         * gutter.h (RAW_WINDOW_GUTTER): new macro.
13858
13859         * lisp.h: declare Fvalid_plist_p.
13860
13861         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
13862         as changed.
13863         (default_gutter_visible_p_changed_in_window): invalidate gutter as
13864         well as its visibility so that it gets reconstructed.
13865         (construct_window_gutter_spec): new function. Construct a string
13866         to be displayed in the gutter from a plist of strings. Take care
13867         to only use elements that are declared as visible.
13868         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
13869         WINDOW_GUTTER.
13870         (gutter_validate): allow plists of strings in the specifier.
13871         (gutter_specs_changed): construct the real_gutter from the gutter
13872         specs using construct_window_gutter_spec.
13873         (gutter_visible_validate): gutter-visible is a new specifier type.
13874         (Fgutter_visible_specifier_p): new function for the new specifier.
13875         (syms_of_gutter): declare gutter-visible and
13876         Fgutter_visible_specifier_p.
13877         (specifier_type_create_gutter): intitalize new gutter-visible
13878         specifier.
13879         (reinit_specifier_type_create_gutter): ditto.
13880         (specifier_vars_of_gutter): use new specifier type for gutter
13881         visibility.
13882         (init_frame_gutters): construct real_gutter correctly.
13883         (Fgutter_specifier_p): beef up documentation.
13884         (Fgutter_size_specifier_p): ditto.
13885
13886         * winslots.h: add real_gutter slots.
13887
13888 2000-02-25  Andy Piper  <andy@xemacs.org>
13889
13890         * device-msw.c: Be kind to older cygwin versions. From Raymond
13891         Toy <toy@rtp.ericsson.se>.
13892
13893         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
13894         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
13895
13896 2000-02-25  Martin Buchholz  <martin@xemacs.org>
13897
13898         * elhash.c (MARK_OBJ): Practice macro hygiene.
13899
13900 2000-02-24  Martin Buchholz  <martin@xemacs.org>
13901
13902         * miscplay.c: s/__inline__/inline/g;
13903         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
13904         (get_device_compdc): INLINE ==> static inline
13905         * *.[ch]: Change INLINE to INLINE_HEADER globally.
13906         find -name '*.h' | \
13907         xargs global-replace \
13908         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
13909
13910 2000-02-25  Andy Piper  <andy@xemacs.org>
13911
13912         * window.c (window_top_frame_gutter_height): new function.
13913         (window_top_window_gutter_height): ditto.
13914         (window_top_gutter_height): use them.
13915         (window_bottom_frame_gutter_height): new function.
13916         (window_bottom_window_gutter_height): ditto.
13917         (window_bottom_gutter_height): use them.
13918         (window_left_window_gutter_width): new function.
13919         (window_left_frame_gutter_width): ditto.
13920         (window_left_gutter_width): use them.
13921         (window_right_window_gutter_width): new function.
13922         (window_right_frame_gutter_width): ditto.
13923         (window_right_gutter_width): use them.
13924         (window_pixel_height): new function. calulate window pixel height
13925         with frame gutter involvement.
13926         (Fsplit_window): calculate new sizes taking frame gutters into
13927         account.
13928         (window_char_height_to_pixel_height): don't include frame gutters.
13929         (window_char_height): use window_pixel_height.
13930         (window_pixheight): rename from window_pixel_height.
13931         (change_window_height): use it.
13932         (window_pixel_height_to_char_height): don't include frame gutters.
13933         (window_char_width_to_pixel_width): ditto.
13934
13935 2000-02-25  Andy Piper  <andy@xemacs.org>
13936
13937         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
13938         if it is.
13939
13940 2000-02-24  Martin Buchholz  <martin@xemacs.org>
13941
13942         * alloc.c (staticpro):
13943         (staticpro_nodump):
13944         (dumpstruct):
13945         (dumpopaque):
13946         (pdump_wire):
13947         (pdump_wire_list):
13948         (compact_string_chars):
13949         (pdump_dump_wired):
13950         Convert:  if (foo) abort();  ==>  assert (! foo);
13951
13952         * eldap.c (Fldap_search_basic):
13953         (Fldap_add):
13954         (Fldap_modify):
13955         (Fldap_delete):
13956         Fix compiler warnings, and possible crashes if (random) return
13957         value were to be used.
13958
13959 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13960
13961         * device-msw.c: Workaround ResetDC failure.
13962
13963         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
13964         applying a devmode.
13965
13966         * redisplay-msw.c (get_frame_dc): Added start_page_p.
13967         (mswindows_text_width): Do not start printer page.
13968
13969         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
13970
13971         * glyphs-msw.c: Added image methods to msprinter console and
13972         msprinter-specific image instantiation.
13973
13974 2000-02-20  Mike Alexander  <mta@arbortext.com>
13975
13976         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
13977         to avoid crashes when selection-sets-clipboard is on
13978         (mswindows_own_selection): ditto
13979
13980 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13981
13982         * glyphs-msw.c:
13983         * redisplay-msw.c (get_frame_dc):
13984         (get_frame_compdc):
13985         * console-msw.h:
13986         * device-msw.c (mswindows_init_device):
13987         (mswindows_delete_device):
13988         (msprinter_init_device):
13989         (msprinter_delete_device):
13990         * frame-msw.c (mswindows_init_frame_1):
13991         (mswindows_delete_frame):
13992         (msprinter_init_frame_3):
13993         (msprinter_delete_frame): Move compatible DC to device object from
13994         frame object, for both mswindows and msprinter. Only one at a time
13995         is needed, it is a real waste to have one per frame!
13996
13997 2000-02-23  Andy Piper  <andy@xemacs.org>
13998
13999         * glyphs.c: add dynamic width and height elements.
14000         (image_instance_equal): ditto.
14001
14002         * glyphs-widget.c (widget_query_geometry): calculate width and
14003         height dynamically if required.
14004         (initialize_widget_image_instance): initialize dynamic dimensions.
14005         (widget_instantiate): pick-up dynamic dimensions.
14006
14007         * glyphs.h (struct Lisp_Image_Instance): add width and height for
14008         dynamic determination. Add appropriate macros.
14009
14010         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
14011         dimensions safe.
14012         (WINDOW_GUTTER_SIZE): ditto.
14013         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
14014
14015         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
14016         inline.
14017         (get_frame_dc): ditto.
14018
14019         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
14020         here.
14021
14022 2000-02-23  Martin Buchholz <martin@xemacs.org>
14023
14024         * XEmacs 21.2.31 is released.
14025
14026 2000-02-22  Ben Wing <ben@xemacs.org>
14027
14028         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
14029
14030 2000-02-22  Andy Piper  <andy@xemacs.org>
14031
14032         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
14033
14034 2000-02-21  Mike Sperber <mike@xemacs.org>
14035
14036         * .dbxrc:
14037         * .gdbinit:
14038         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
14039         variables.
14040
14041 2000-02-21  Mike Sperber <mike@xemacs.org>
14042
14043         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
14044
14045 2000-02-21  Martin Buchholz <martin@xemacs.org>
14046
14047         * XEmacs 21.2.30 is released.
14048
14049 2000-02-20  Martin Buchholz  <martin@xemacs.org>
14050
14051         Performance hacking.
14052         * *.c (syms_of_*):
14053         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
14054         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
14055         * emacs.c (main_1):
14056         * lisp.h (DEFUN):
14057         * console.c (DEFVAR_CONSOLE_LOCAL_1):
14058         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
14059         * symeval.h (DEFVAR_SYMVAL_FWD):
14060         * symbols.c (guts_of_unbound_marker):
14061         Make all c_readonly objects also lisp_readonly and marked for life.
14062         * lrecord.h (struct lrecord_implementation):
14063         Document flags better.
14064         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
14065         * lrecord.h (DECLARE_LRECORD):
14066         * lrecord.h (XSETRECORD):
14067         * lrecord.h (RECORDP):
14068         * lrecord.h (RECORD_TYPEP):
14069         * lrecord.h (RECORD_MARKER): New.
14070         * lrecord.h (error_check_*):
14071         * lrecord.h (CONCHECK_NONRECORD):
14072         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
14073         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
14074         * lrecord.h (set_lheader_implementation):
14075         * lrecord.h (enum lrecord_type): New.
14076         * symeval.h (SYMBOL_VALUE_MAGIC_P):
14077         * alloc.c (disksave_object_finalization_1):
14078         * alloc.c (mark_object):
14079         * alloc.c (lrecord_type_index):
14080         * alloc.c (tick_lcrecord_stats):
14081         * alloc.c (Fgarbage_collect):
14082         * alloc.c (init_alloc_once_early):
14083         * alloc.c (pdump_load):
14084         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
14085         * alloc.c (lrecord_type_index): Delete.
14086         Make lisp object type indexes be constant.
14087           Makes (byte-compile) 5% faster.
14088         Put all marker functions into their own array.
14089           Makes (garbage-collect) 5% faster.
14090         Optimize SYMBOL_VALUE_MAGIC_P.
14091           Makes (byte-compile) 2-3% faster.
14092         * config.h.in (gc_checking_assert): New.
14093         * alloc.c: Use gc_checking_assert().
14094         * .dbxrc: Make compatible with new object type implementation.
14095         * .gdbinit: Make compatible with new object type implementation.
14096         * alloc.c: Delete all symbols defined only for debugging, such as
14097         Lisp_Type_Vector and lrecord_charset.
14098
14099 2000-02-21  Andy Piper  <andy@xemacs.org>
14100
14101         * gui-msw.c (Fmswindows_shell_execute): fix file location
14102         problems.
14103
14104         * buffer.c (Fkill_buffer): remove buffer from alist buffer
14105         unshowing so that set_window_buffer doesn't undo
14106         kill_buffer_hook's hard work.
14107
14108         * glyphs-widget.c (tab_control_query_geometry): don't count the
14109         first item when calculating geometry.
14110
14111         * glyphs.c (map_subwindow): remove redundant code.
14112         (update_frame_subwindows): be more circumspect about when to
14113         update subwindows.
14114
14115         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
14116         when items haven't changed. Update faces if faces have changed as
14117         well as just the widget face.
14118         (x_tab_control_update): Update faces if faces have changed as well
14119         as just the widget face.
14120
14121 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14122
14123         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
14124         registration.
14125         (build_syscolor_string): Use mswindows_color_to_string to try to
14126         get a named color.
14127         (mswindows_device_system_metrics): Reverse the foreground and
14128         background colors so that they match the documentation.
14129
14130         * objects-msw.c: (mswindows_X_color_map): tweak some values so
14131         they match the default Windows palette.
14132         (mswindows_color_to_string): New function.
14133
14134 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14135
14136         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
14137
14138 2000-02-18  Olivier Galibert  <galibert@pobox.com>
14139
14140         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
14141         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
14142
14143         * symbols.c (init_symbols_once_early): Removed obsolete
14144         DATA_SEG_BITS related kludge.
14145         (defvar_magic): Ditto.
14146
14147         * malloc.c: Removed obsolete DATA_SEG_BITS
14148         * ralloc.c: Ditto.
14149         * mem-limits.h: Ditto.
14150
14151         * Makefile.in.in: Removed obsolete HAVE_SHM
14152         * emacs.c: Ditto.
14153
14154 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14155
14156         *  device-msw.c (mswindows_delete_device): Free DDE string
14157         handles.
14158
14159 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14160
14161         * keymap.c (get_keyelt):
14162         * unexnt.c (unexec):
14163         * vm-limit.c (memory_warnings):
14164         * ntheap.c (recreate_heap):
14165         * ntheap.h (UNINIT_PTR):
14166         * select-msw.c (Fmswindows_get_clipboard):
14167         (Fmswindows_set_clipboard):
14168         * objects-msw.h (MSWINDOWS_BAD_HFONT):
14169         * objects-msw.c:
14170         * menubar-msw.c (displayable_menu_item):
14171         * glyphs-msw.c:
14172         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
14173         * sysdep.c (sys_subshell):
14174         * process-nt.c (nt_create_process):
14175         * nt.c (normalize_filename):
14176         (dostounix_filename):
14177         (unixtodos_filename):
14178         * ntproc.c (win32_executable_type):
14179         * ntplay.c (play_sound_data_1):
14180         (play_sound_file):
14181         * editfns.c (get_home_directory):
14182         * event-msw.c (struct winsock_stream):
14183         (mswindows_dde_callback):
14184         * device-msw.c (msprinter_init_device):
14185         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
14186
14187         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
14188         mswindows_clear_toolbar were swapped!
14189
14190         * objects-msw.c:(colormap_t):
14191         (fontmap_t):
14192         * emacs.c (struct standard_args): Fixed const jumble.
14193
14194         * glyphs-widget.c (update_widget): Fixed comparison notation.
14195
14196         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
14197
14198         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
14199         __declspec(noreturn) syntax.
14200
14201 2000-02-19  Martin Buchholz  <martin@xemacs.org>
14202
14203         * eldap.c (Fldap_open):
14204         (Fldap_search_basic):
14205         (Fldap_add):
14206         (Fldap_modify):
14207         Use new coding system conversion macros.
14208
14209 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
14210
14211         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
14212
14213 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
14214
14215         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
14216         (Fldap_add, Fldap_modify, Fldap_delete): New functions
14217
14218         * eldap.c (Qadd, Qreplace): New constant symbols
14219         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
14220         interruptions by XEmacs signals
14221         Remove unnecessary calls to slow_down_interrupts and
14222         speed_up_interrupts
14223         (Fldap_search_basic): Renamed from Fldap_search_internal
14224         Added new optional parameter VERBOSE that triggers the
14225         display of progress messages
14226         Remove unnecessary calls to slow_down_interrupts and
14227         speed_up_interrupts
14228         LDAP result code analysis rewritten
14229         (Fldap_add, Fldap_modify, Fldap_delete): New functions
14230         (syms_of_eldap): Define the new symbols and functions
14231
14232
14233 2000-02-17  Martin Buchholz  <martin@xemacs.org>
14234
14235         * realpath.c: Determine PATH_MAX maximally portably.
14236
14237         * insdel.c (bytecount_to_charcount): Optimize.
14238         The function used to be optimized for entirely ASCII sequences.
14239         Now it is optimized for successive characters from the same
14240         charset.  This also wins big for _mostly_ ASCII sequences.
14241
14242         * fileio.c (Ffile_truename): convert return from realpath() using
14243         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
14244         - Rewrite GCPROing slightly.
14245
14246         * sysdep.c (sys_open): Do filename conversion, like all other
14247         sys_* functions.  Fixes bug:
14248         (let ((file-name-coding-system 'iso-8859-2))
14249            (write-region x y latin2-name))
14250         ==> writes filename using internal encoding.
14251
14252 2000-02-18  Martin Buchholz  <martin@xemacs.org>
14253
14254         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
14255         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
14256         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
14257         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
14258         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
14259         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
14260         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
14261         (CONST_IF_NOT_DEBUG): Delete.
14262         * alloc.c (this_one_is_unmarkable): Delete.
14263         (mark_object): Don't check for this_one_is_unmarkable. Use the
14264         c_readonly flag instead.
14265         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
14266
14267 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14268
14269         * event-msw.c (mswindows_drain_windows_queue):
14270         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
14271         away redundant repaint events.
14272
14273 2000-02-17  Andy Piper  <andy@xemacs.org>
14274
14275         * redisplay.h: declare mark_redisplay_structs.
14276
14277         * redisplay.c (redisplay_window):
14278         (redisplay_frame): don't check subwindows_state_changed.
14279         (mark_redisplay): mark gutters here.
14280
14281         * glyphs.c: (instantiate_image_instantiator): always layout if we
14282         haven't done so already.
14283         (allocate_image_instance): don't mark as dirty.
14284         (update_subwindow): bind inhibit_quit.
14285
14286         * gutter.c (mark_gutters): new function.
14287
14288         * glyphs-x.c (x_update_widget): Always resize to get round a
14289         widget bug.
14290
14291         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
14292         breaking absolutely everything.
14293
14294         * gutter.h: declare mark_gutters.
14295
14296 2000-02-16  Martin Buchholz <martin@xemacs.org>
14297
14298         * XEmacs 21.2.29 is released.
14299
14300 2000-02-15  Olivier Galibert  <galibert@pobox.com>
14301
14302         * fns.c (size_bit_vector): Fix computation of the size.
14303
14304 2000-02-15  Martin Buchholz  <martin@xemacs.org>
14305
14306         * *.[ch]: Change CONST to const globally.
14307         find -name '*.[ch]' | \
14308         xargs global-replace \
14309         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
14310         - Remove vestigial references to CONST_IS_LOSING
14311
14312 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14313
14314         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
14315         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
14316         events instead of dispatching them directly.
14317         (mswindows_handle_paint): New function to do repainting.
14318         (mswindows_wnd_proc):
14319         (emacs_mswindows_handle_magic_event): Call above function.
14320
14321 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14322
14323         * objects-msw.c (mswindows_create_font_variant): Return the new
14324         font handle.
14325         (initialize_font_instance): Get font metrics from the underlined
14326         variant of the font to cope with the case where the underlined
14327         font has a bigger descent.
14328
14329 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
14330
14331         * gui.c (gui_item_accelerator): Return the first underlined
14332         character in item name.
14333
14334 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14335
14336         * lisp.h: Added Qprinter.
14337
14338         * general.c (syms_of_general): Initialized it.
14339
14340         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
14341         (get_frame_dc):
14342         (get_frame_compdc): Made inline.
14343
14344         * console.h (struct console_methods): Added eject_page method.
14345
14346         * frame.h: Added FRAME_DISPLAY_P and friends.
14347         Aligned backslahes in many macros in more readable fashion.
14348         Added page_number to struct frame, and an accessor macro
14349         for it.
14350
14351         * defice.h: Added DEVICE_DISPLAY_P and friends.
14352
14353         * device.c (Fdevice_printer_p): Used these.
14354
14355         * frame.c (allocate_frame_core): Initialize page number.
14356         (Fprint_job_page_number):
14357         (Fprint_job_eject_page): Implemented.
14358
14359         * frame-msw.c (msprinter_eject_page): Added method.
14360         (msprinter_start_page): Added.
14361
14362         * window.c (Fwindow_truncated_p): Fixed docstring.
14363         (Fwindow_last_line_visible_height): Implemented.
14364
14365 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
14366
14367         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
14368
14369 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
14370
14371         * syntax.c (scan_words): Always advance at least one character.
14372
14373 2000-02-13  Andy Piper  <andy@xemacs.org>
14374
14375         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
14376         to make sure the glyph is in the cachels.
14377
14378         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
14379         global image instance flag.
14380         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
14381         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
14382
14383         * glyphs.c (allocate_image_instance): set dirty bits correctly.
14384         (Fset_image_instance_property): mark layout as changed.
14385         (invalidate_glyph_geometry_maybe): mark layout as changed.
14386         (glyph_width): use new NEEDS_LAYOUT macro.
14387         (glyph_ascent): ditto.
14388         (glyph_descent): ditto.
14389         (glyph_height): ditto.
14390         (image_instance_layout): mark layout as clean after laying out.
14391         (update_subwindow): don't mark layout as clean here.
14392
14393         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
14394         should no longer be needed.
14395
14396         * glyphs-x.c (x_update_widget): sanitize asserts.
14397         (x_finalize_image_instance): sanitize assignment to widgets.
14398
14399         * glyphs-widget.c (widget_instantiate): don't need to clear the
14400         layout flag here.
14401
14402 2000-02-13  Martin Buchholz  <martin@xemacs.org>
14403
14404         * sysdep.c (getcwd): Use standard prototype.
14405         * sysdep.h (getcwd): Use standard prototype.
14406
14407         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
14408         (sequence, start, end).
14409         Remove redundant type checking.
14410         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
14411         view of `caller-protects') to avoid a crash where the real fix was
14412         found elsewhere.
14413
14414 2000-02-12  Martin Buchholz  <martin@xemacs.org>
14415
14416         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
14417
14418         * s/sol2.h: Remove feature macro initialization.
14419
14420         * alloc.c (alloc_lcrecord): Add more type checking assertions.
14421         (vector_hash): New.  Code from internal_hash.
14422         * lrecord.h:
14423         Fix up allocation subsystem comments.
14424
14425         * config.h.in: Add __EXTENSIONS__ for Solaris.
14426
14427         * systime.h (EMACS_GETTIMEOFDAY): New.
14428         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
14429         Remove Solaris-specific code.
14430         Use void* for the (ignored) second arg for gettimeofday().
14431
14432         * elhash.c (hash_table_hash): Implement it, finally.
14433         * elhash.c:  Use hashcode_t.
14434
14435         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
14436         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
14437
14438         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
14439         * fns.c (size_bit_vector):
14440         * alloc.c (size_vector):
14441         (make_vector_internal):
14442         (make_bit_vector_internal):
14443         (sweep_bit_vectors_1):
14444         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
14445
14446 2000-02-10  Martin Buchholz  <martin@xemacs.org>
14447
14448         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
14449         Include strings.h to avoid warnings for bzero and strcasecmp.
14450
14451 2000-02-10  Olivier Galibert  <galibert@pobox.com>
14452
14453         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
14454         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
14455
14456         * fns.c (size_bit_vector): New.  Declare bit vectors as a
14457         sequence.
14458
14459 2000-02-10  Olivier Galibert  <galibert@pobox.com>
14460
14461         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
14462         use a value field instead.
14463         (symbol_value_forward_forward): Use value field.
14464         (DEFVAR_SYMVAL_FWD): Use value field.
14465         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
14466         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
14467         (DEFVAR_CONST_INT): Ditto.
14468         (DEFVAR_BOOL): Ditto.
14469         (DEFVAR_CONST_BOOL): Ditto.
14470         (DEFVAR_INT_MAGIC): Ditto.
14471         (DEFVAR_BOOL_MAGIC): Ditto.
14472
14473         * symbols.c (guts_of_unbound_marker): Use value field.
14474         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
14475         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
14476
14477         * lisp.h: Declare dumpopaque and noninteractive1.
14478
14479         * alloc.c (dumpopaque): Added.
14480         (pdump_dump_opaquevec): Added.
14481         (pdump): Call pdump_dump_opaquevec to dump opaque data.
14482         (pdump_load): Reload opaque data.  Sync noninteractive1 with
14483         noninteractive.
14484
14485 2000-02-10  Andy Piper  <andy@xemacs.org>
14486
14487         * glyphs.c (image_instance_layout): if the size changes, mark it
14488         as such.
14489
14490         * redisplay-output.c (redisplay_output_layout): Update the
14491         subwindow here.
14492         (redisplay_output_subwindow): ditto.
14493
14494         * glyphs.c (update_subwindow): make sure we reset flags for
14495         layouts as well as everything else.
14496
14497         * glyphs-widget.c (layout_layout): don't need to set the instances
14498         dimensions here.
14499
14500 2000-02-09  Martin Buchholz  <martin@xemacs.org>
14501
14502         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
14503         not HAVE_DLOPEN, which is a lower-level thing.
14504
14505         * .cvsignore: Ignore gmon.out
14506
14507 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
14508
14509         * .cvsignore: Ignore portable dumper xemacs.dmp file
14510
14511 2000-02-09  Andy Piper  <andy@xemacs.org>
14512
14513         * redisplay-output.c (redisplay_output_layout): be more clever
14514         about when we output based on the changed flags.
14515
14516         * glyphs.h (struct image_instantiator_methods): add update_method.
14517         (struct Lisp_Image_Instance): add changed flags. Declare new
14518         macros for manipulating them.
14519
14520         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
14521         (image_instance_parent_glyph): find an image_instance's parent
14522         glyph or image_instance.
14523         (image_instance_layout): mark the size as changed.
14524         (set_image_instance_dirty_p): new function. mark an image
14525         instance, plus all of its parents, as dirty.
14526         (Fset_image_instance_property): use it.
14527         (Fglyph_animated_timeout_handler): use it.
14528         (update_subwindow): call update_widget and device methods for
14529         update_subwindow. Mark all changed flags as clean.
14530         (Fresize_subwindow): mark size as changed.
14531
14532         * glyphs-x.c (x_finalize_image_instance): try and detect gc
14533         failures.
14534         (x_update_subwindow): only resize subwindows here.
14535         (x_update_widget): new function. Update all changed properties of
14536         a widget.
14537         (x_resize_subwindow): deleted.
14538         (x_widget_set_property): deleted.
14539         (x_progress_gauge_set_property): deleted.
14540         (x_progress_gauge_update): new function. Implement recorded
14541         changes.
14542         (x_tab_control_update): ditto.
14543         (x_tab_control_set_property): deleted.
14544         (console_type_create_glyphs_x): declare new functions.
14545         (image_instantiator_format_create_glyphs_x): ditto.
14546
14547         * glyphs-widget.c (widget_set_property): mark text changed.
14548         (update_widget): new function. Update properties of a widget.
14549         (widget_instantiate): for layouts make sure we set their
14550         children's parent correctly.
14551         (tab_control_set_property): new function. Record changes that will
14552         take place under redisplay's control.
14553         (progress_gauge_set_property): ditto.
14554         (image_instantiator_progress_guage): declare new functions.
14555         (image_instantiator_tab_control): ditto.
14556
14557         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
14558         now.
14559         (mswindows_update_widget): new function. Update all properties on
14560         a widget that have changed.
14561         (mswindows_button_update): new function. Update a button's set
14562         state.
14563         (mswindows_tab_control_update): new function. Update the items in
14564         a tab.
14565         (mswindows_tab_control_set_property): deleted.
14566         (mswindows_progress_gauge_update): new function. Update the
14567         progress gauge's progress.
14568         (mswindows_widget_set_property): deleted. This is all done
14569         asynchronously now.
14570         (mswindows_progress_gauge_set_property): ditto.
14571         (console_type_create_glyphs_mswindows): declare new methods.
14572         (image_instantiator_format_create_glyphs_mswindows): ditto.
14573
14574         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
14575         (msprinter_set_frame_properties): ditto.
14576
14577         * console.h (struct console_methods): Add update_widget_method.
14578
14579 2000-02-09  Andy Piper  <andy@xemacs.org>
14580
14581         * gui-msw.c (Fmswindows_shell_execute): Make
14582         mswindows-shell-execute industrial strength.
14583
14584 2000-02-08  Martin Buchholz  <martin@xemacs.org>
14585
14586         * lrecord.h: Make macro argument `props' match member function `plist'.
14587         * fns.c (Fget):
14588         * fns.c (Fput):
14589         * fns.c (Fremprop):
14590         * fns.c (Fobject_plist):
14591         * alloc.c:
14592         * symbols.c:
14593         Object property list frobbing cleanup.
14594         - Allow any lisp object (compared with `eq'), not just symbols, as
14595           keys in object plists.
14596         - Move symbol plist frobbing into symbols.c, where it belongs.
14597         - Move string plist frobbing into alloc.c, where it belongs.
14598         - Everything's an lrecord now, so no need to test for symbolp, etc.
14599         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
14600
14601         * extents.c: Reorder code to remove declarations.
14602
14603         * frame.h (store_in_alist): Remove useless declaration.
14604
14605 2000-02-07  Martin Buchholz  <martin@xemacs.org>
14606
14607         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
14608         * config.h.in: Add HAVE_XCONVERTCASE.
14609
14610 2000-02-07  Andy Piper  <andy@xemacs.org>
14611
14612         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
14613         it breaks many things.
14614
14615 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
14616
14617         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
14618         actually can start a common comment type.
14619         * src/syntax.h (SYNTAX_END_P): ditto for end.
14620
14621 2000-02-07  Martin Buchholz <martin@xemacs.org>
14622
14623         * XEmacs 21.2.28 is released.
14624
14625 2000-02-06  Martin Buchholz  <martin@xemacs.org>
14626
14627         * event-Xt.c (x_keysym_to_character): New.
14628         (maybe_define_x_key_as_self_inserting_character): New.
14629         (x_has_keysym): New.
14630         Auto-define all keys on the keyboard as self-insert-key.
14631
14632 2000-02-02  Martin Buchholz  <martin@xemacs.org>
14633
14634         * menubar.c (vars_of_menubar): A small code simplification.
14635
14636         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
14637
14638         * ExternalShell.c:
14639         * ExternalClient.c:
14640         * EmacsShell-sub.c:
14641         * EmacsManager.c:
14642         * EmacsFrame.c:
14643         Use consistent style for specifying X resources.
14644
14645         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
14646         This makes (dontusethis-set-symbol-value-handler) actually usable.
14647
14648         * lrecord.h (lrecord_decription_type):
14649         * alloc.c (pdump_register_sub):
14650         (pdump_dump_data):
14651         (pdump_reloc_one):
14652         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
14653         Comply with XEmacs coding style.
14654         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
14655         args, and XD_LISP_OBJECT_ARRAY with 3 args.
14656
14657         * keymap.c (Faccessible_keymaps):
14658         Make (accessible-keymaps map "\C-h") do the Right Thing.
14659         Make (accessible-keymaps map []) do the Right Thing.
14660         Make (accessible-keymaps map "") do the Right Thing.
14661         (check_keymap_definition_loop): New function.
14662         (keymap_store_internal): Keep luser from shooting self in foot,
14663           via (define-key ctl-x-4-map "p" global-map).
14664         Remove fullness slot from struct Lisp_Keymap, since hash tables
14665         are now reliable.
14666         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
14667
14668 2000-01-30  Martin Buchholz  <martin@xemacs.org>
14669
14670         * redisplay.c (init_redisplay): Fix small memory leak.
14671         * elhash.h:
14672         * elhash.c (pdump_reorganize_hash_table):
14673         Rename from reorganize_hash_table. Change prototype.
14674         Reuse the original memory for hentries.  Save 100k.
14675         * alloc.c (PDUMP_READ): new macro.
14676         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
14677         * alloc.c: No need to #ifndef before #undef.
14678
14679         * print.c: Allow debug_print() to print readably by modifying
14680         debug_print_readably.  Use consistent variable names.
14681
14682         * .dbxrc: Try to get things to work even if stopped in a function
14683         without source available by explicitly specifying source files.
14684 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14685
14686         * unexnt.c (_start): Removed bogus code which caused loading heap
14687         from differrent executable file.
14688         Removed bogus assignment to _fmode, which caused inconsistencies.
14689
14690 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14691
14692         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
14693         Have spawnve encapsulation regard DONT_ENCAPSULATE.
14694         Do not preliminary `#define signal sigset'.
14695
14696         * systime.h: Do not prototype environ on windows nt and cygwin,
14697         this conflicts with system header.
14698
14699         * syssignal.h: Use correct define for WINDOWSNT
14700
14701         * sysdep.h: Do not prototype environ on windows nt, this conflicts
14702         with system header.
14703
14704         * sysdep.c (near start of file): Fixed commentary and rearranged
14705         ifdefs in readable order.
14706         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
14707         (start_of_text):
14708         (end_of_text):
14709         (end_of_data): Do not compile in if using PDUMP.
14710
14711         * symsinit.h: Prototyped vars_of_nt().
14712
14713         * ntproc.c (windows9x_p): Added, instead of os_subtype.
14714         (find_child_console): Use it.
14715         (sys_kill): Use it.
14716
14717         * ntheap.h: Do not extern os_subtype.
14718
14719         * ntheap.c (cache_system_info): Do not cache unneeded:
14720         nt_major_version, nt_minor_version and os_subtype.
14721         (recreate_heap): Do not compile in when PDUMPing.
14722
14723         * nt.c (geteuid and friends): Use the new varibale
14724         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
14725         (init_user_info): Removed the above mentioned hackery.
14726         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
14727         stat has been fixed in the C runtime.
14728         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
14729
14730         * file-coding.c (struct file_coding_dump): Do not define
14731         ucs_to_mule_table in the struct if not MULE.
14732         (struct struct lrecord_description fcd_description_1): Do not dump
14733         the above.
14734
14735         * emacs.c (main_1): Call vars_of_nt().
14736         (right before Fdump_emacs_data): Don't need lastfile if using both
14737         portabe dumper and system malloc.
14738
14739         * alloc.c (Fmemory_limit): Conditionalized out.
14740         (pdump): Use OPEN_BINARY for the portable dump file.
14741         (pdump_load): Ditto.
14742
14743 2000-02-02  Mike Alexander  <mta@arbortext.com>
14744
14745         * nt.c (convert_time): Set tm_isdst before calling mktime and
14746         avoid calling it at all if the compiler supports 64 bit integers.
14747         Also initialize utc_base_ft before using it.
14748
14749 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
14750
14751         * frame.c (change_frame_size_1): Take f->internal_border_width
14752         into consideration when calculating the width of the frame.
14753
14754 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14755
14756         * window.c (frame_min_height):
14757         (frame_size_valid_p):
14758         (frame_pixsize_valid_p): Added.
14759         (check_frame_size): Generalized.
14760
14761         * window.h: Prototyped the above.
14762
14763         * lisp.h:
14764         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
14765         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
14766         Deleted Vwin32_* and Vbinary_process_* unused variables.
14767
14768         * device-msw.c (msprinter_init_device): Do not get printer font
14769         list; Added DEVMODE functions.
14770
14771         * frame-msw.c: Added lots of printer code.
14772
14773         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
14774         general.c.
14775
14776         * console-msw.h: Added more msprinter device private slots.
14777
14778 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14779
14780         * event-msw.c (key_needs_default_processing_p): Added.
14781         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
14782
14783 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14784
14785         * glyphs.c (image_instance_layout): Mark image instance as clean
14786         after layout.
14787         (glyph_dirty_p): Removed redundant function.
14788         (invalidate_glyph_geometry_maybe): Added.
14789         (update_glyph_cachel_data): Call it.
14790
14791         * glyphs.h: Prototyped it.
14792
14793         * redisplay.c (add_glyph_rune): Call it.
14794         (redisplay_window): Reset glyphs cachels when frame faces have
14795         changed, thus forcing recomputation of built-in border glyphs.
14796
14797 2000-01-30  Martin Buchholz  <martin@xemacs.org>
14798
14799         * Makefile.in.in: Make portable dumper and purify play well together.
14800         Add imperfect, but better than nothing, support for pdump.
14801         Remove xemacs.dmp when temacs is re-generated.
14802         Don't ignore errors when dumping xemacs.
14803
14804         * symbols.c (maybe_call_magic_handler): Remove one magic number.
14805
14806 2000-01-28  Andy Piper  <andy@xemacs.org>
14807
14808         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
14809         (setup_normal_frame): ditto.
14810         (setup_frame_without_minibuffer): ditto.
14811         (setup_minibuffer_frame): ditto.
14812         (delete_frame_internal): ditto.
14813         (Fmake_frame_invisible): ditto.
14814         (Ficonify_frame): ditto.
14815
14816         * window.h: change Fset_window_buffer signature.
14817
14818         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
14819         (Fset_window_buffer): allow recording of buffer if the window is
14820         the selected window.
14821         (window_loop): Use new Fset_window signature.
14822
14823 2000-01-23  Daniel Pittman  <daniel@danann.net>
14824
14825         * config.h.in: Added template for `HAVE_ATHENA_3D'
14826
14827 2000-01-29  Andy Piper  <andy@xemacs.org>
14828
14829         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
14830
14831         * gutter.c (output_gutter): Don't output if the window isn't live.
14832
14833 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14834
14835         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
14836         of 01/12/00: Moved SetFocus back here where it belongs.
14837
14838 2000-01-23  Andy Piper  <andy@xemacs.org>
14839
14840         * s/cygwin32.h: declare printer things.
14841
14842 2000-01-26  Andy Piper  <andy@xemacs.org>
14843
14844         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
14845         Alexander.
14846
14847 2000-01-24  Andy Piper  <andy@xemacs.org>
14848
14849         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
14850         (mswindows_button_instantiate): Make sure glyph is a pixmap.
14851
14852         * glyphs-widget.c (widget_instantiate): Avoid shadows.
14853
14854         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
14855
14856         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
14857
14858         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
14859         (mswindows_output_display_block): Avoid local shadows.
14860
14861         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
14862         (mswindows_enqueue_mouse_button_event): ditto.
14863         (mswindows_handle_gui_wm_command): remove declaration.
14864
14865         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
14866         warnings.
14867
14868         * console-msw.h: Avoid shadows.
14869         (mswindows_get_toolbar_button_text):
14870         (emacs_mswindows_create_stream_pair):
14871         (emacs_mswindows_delete_stream_pair):
14872         (mswindows_handle_toolbar_wm_command): declare.
14873
14874         * device-msw.c (build_syscolor_string): Avoid shadows.
14875
14876 2000-01-23  Andy Piper  <andy@xemacs.org>
14877
14878         * glyphs-widget.c (widget_instantiate): reverse the items for
14879         layouts so that children are in the expected order.
14880
14881 2000-01-28  Martin Buchholz  <martin@xemacs.org>
14882
14883         * ralloc.c: safe_bcopy ==> memmove
14884         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
14885         * s/msdos.h: Remove BCOPY macros.
14886         * insdel.c (gap_right): Remove BCOPY conditional code.
14887         * insdel.c (gap_left): Remove BCOPY conditional code.
14888         XEmacs demands a working ANSI C compiler - hence memmove.
14889
14890         * regex.c (regex_compile): Remove accidental use of trigraphs.
14891
14892 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14893
14894         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
14895         event timestamp.
14896
14897 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14898
14899         * event-msw.c (mswindows_drain_windows_queue): Added the
14900         parameter.
14901         (mswindows_need_event): Commented the call to
14902         mswindows_drain_windows_queue().
14903         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
14904         only.
14905
14906         * console-msw.h: Moved a few function prototypes here from
14907         event-msw.c.
14908
14909         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
14910         parameter from unsigned short to unsigned long.
14911         (Fmswindows_shell_execute): Added return value.
14912
14913 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
14914
14915         * sysdep.c (init_system_name):
14916           process-unix.c (unix_canonicalized_host_name):
14917         Don't call freeaddrinfo() if getaddrinfo() fails.
14918
14919         * process-unix.c (unix_open_unix_network_stream):
14920         Moved the code to get a port # into address loop.
14921
14922 2000-01-27  Martin Buchholz  <martin@xemacs.org>
14923
14924         * buffer.c (reinit_vars_of_buffer):
14925         The right place to initialize conversion_in_dynarr and
14926         conversion_out_dynarr.
14927
14928         * alloc.c (pdump): Use the real open() till sys_open() is functional.
14929
14930         * process-unix.c (unix_canonicalize_host_name): Muleize.
14931         (unix_open_network_stream): Muleize.
14932
14933         * buffer.h: Fix up prototypes for ralloc.c functions.
14934
14935 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
14936         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
14937         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
14938                 instead of gethostbyname()
14939         * process-unix.c: In unix_canonicalize_host_name() and
14940                 unix_open_network_stream(), add code to use getaddrinfo()
14941                 instead of gethostbyname().
14942
14943 2000-01-27  Daniel Pittman <daniel@danann.net>
14944
14945         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
14946         libs when built with flat Athena.
14947
14948 2000-01-27  Martin Buchholz  <martin@xemacs.org>
14949
14950         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
14951         Use coding standards for function prototypes.
14952
14953 2000-01-25  Martin Buchholz  <martin@xemacs.org>
14954
14955         * dialog-msw.c (push_lisp_string_as_unicode):
14956         * doc.c (unparesseuxify_doc_string):
14957         * dired.c (Fuser_name_completion_1):
14958         * dired.c (Fuser_name_all_completions):
14959         * dired.c (free_user_cache):
14960         * dired.c (user_name_completion):
14961         * console-x.c (get_display_arg_connection):
14962         * minibuf.c (clear_echo_area_internal):
14963         * minibuf.c (echo_area_append):
14964         * eldap.c (Fldap_open):
14965         * eldap.c (Fldap_search_internal):
14966         * frame-x.c (x_set_frame_text_value):
14967         * frame-x.c (x_set_frame_properties):
14968         * frame-x.c (x_create_widgets):
14969         * redisplay-tty.c (term_get_fkeys_1):
14970         * objects-x.c (x_parse_nearest_color):
14971         * objects-x.c (x_valid_color_name_p):
14972         * objects-x.c (x_initialize_font_instance):
14973         * objects-x.c (x_list_fonts):
14974         * objects-x.c (x_find_charset_font):
14975         * tooltalk.c (Fadd_tooltalk_message_arg):
14976         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
14977         * tooltalk.c (Fadd_tooltalk_pattern_arg):
14978         * process-unix.c (unix_create_process):
14979         * ntproc.c (sys_spawnve):
14980         * sound.c (Fplay_sound_file):
14981         * sound.c (Fplay_sound):
14982         * buffer.c (init_initial_directory):
14983         * buffer.c (init_buffer):
14984         * editfns.c (init_editfns):
14985         * editfns.c (Ftemp_directory):
14986         * editfns.c (Fuser_full_name):
14987         * editfns.c (uncache_home_directory):
14988         * editfns.c (get_home_directory):
14989         * editfns.c (Fuser_home_directory):
14990         * editfns.c (Fformat_time_string):
14991         * editfns.c (Fcurrent_time_string):
14992         * gui-x.c (button_item_to_widget_value):
14993         * database.c (Fopen_database):
14994         * event-Xt.c (x_to_emacs_keysym):
14995         * event-Xt.c (x_event_to_emacs_event):
14996         * event-Xt.c (describe_event_window):
14997         * event-msw.c (mswindows_wnd_proc):
14998         * glyphs-eimage.c (jpeg_instantiate):
14999         * glyphs-eimage.c (gif_instantiate):
15000         * glyphs-eimage.c (png_instantiate):
15001         * glyphs-eimage.c (tiff_instantiate):
15002         * glyphs-x.c (xbm_instantiate_1):
15003         * glyphs-x.c (x_xbm_instantiate):
15004         * glyphs-x.c (x_xface_instantiate):
15005         * glyphs-x.c (autodetect_instantiate):
15006         * glyphs-x.c (cursor_font_instantiate):
15007         * glyphs-x.c (x_widget_instantiate):
15008         * glyphs-x.c (x_widget_set_property):
15009         * glyphs-x.c (x_widget_property):
15010         * glyphs-x.c (BUILD_GLYPH_INST):
15011         * print.c (write_string_to_stdio_stream):
15012         * print.c (output_string):
15013         * print.c (Falternate_debugging_output):
15014         * print.c (Fexternal_debugging_output):
15015         * glyphs-msw.c (extract_xpm_color_names):
15016         * glyphs-msw.c (mswindows_xpm_instantiate):
15017         * glyphs-msw.c (bmp_instantiate):
15018         * glyphs-msw.c (resource_name_to_resource):
15019         * glyphs-msw.c (mswindows_resource_instantiate):
15020         * glyphs-msw.c (xbm_instantiate_1):
15021         * glyphs-msw.c (mswindows_xbm_instantiate):
15022         * glyphs-msw.c (mswindows_xface_instantiate):
15023         * glyphs-msw.c (mswindows_widget_instantiate):
15024         * glyphs-msw.c (add_tree_item):
15025         * glyphs-msw.c (add_tab_item):
15026         * glyphs-msw.c (mswindows_combo_box_instantiate):
15027         * glyphs-msw.c (mswindows_widget_property):
15028         * glyphs-msw.c (mswindows_combo_box_property):
15029         * glyphs-msw.c (mswindows_widget_set_property):
15030         * console.c (stuff_buffered_input):
15031         * objects-msw.c (mswindows_initialize_color_instance):
15032         * objects-msw.c (mswindows_valid_color_name_p):
15033         * objects-msw.c (mswindows_list_fonts):
15034         * objects-msw.c (mswindows_font_instance_truename):
15035         * bytecode.c (optimize_compiled_function):
15036         * select-x.c (symbol_to_x_atom):
15037         * select-x.c (x_atom_to_symbol):
15038         * select-x.c (hack_motif_clipboard_selection):
15039         * select-x.c (selection_data_to_lisp_data):
15040         * select-x.c (lisp_data_to_selection_data):
15041         * select-x.c (Fx_get_cutbuffer_internal):
15042         * select-x.c (Fx_store_cutbuffer_internal):
15043         * buffer.h (TO_EXTERNAL_FORMAT): New function.
15044         * buffer.h (TO_INTERNAL_FORMAT): New function.
15045         * emacs.c (make_arg_list_1):
15046         * emacs.c (make_argc_argv):
15047         * emacs.c (main_1):
15048         * emacs.c (Fdump_emacs):
15049         * emacs.c (split_string_by_emchar_1):
15050         * file-coding.h:
15051         * lisp.h:
15052         * lstream.h:
15053         * symsinit.h:
15054         * device-x.c (x_init_device):
15055         * device-x.c (Fx_valid_keysym_name_p):
15056         * device-x.c (Fx_get_font_path):
15057         * device-x.c (Fx_set_font_path):
15058         * glyphs.c (bitmap_to_lisp_data):
15059         * glyphs.c (pixmap_to_lisp_data):
15060         * alloc.c (make_ext_string): Use coding system arguments.  Update
15061         all callers.
15062         * alloc.c (build_string):
15063         * callproc.c (child_setup):
15064         * callproc.c (init_callproc):
15065         * fileio.c (lisp_strerror):
15066         * fileio.c (directory_file_name):
15067         * fileio.c (Fexpand_file_name):
15068         * fileio.c (Ffile_truename):
15069         * fileio.c (Fsysnetunam):
15070         * fileio.c (Fdo_auto_save):
15071         * sysdep.c (sys_readdir):
15072         * tests.c: New file.  Allow adding C tests.
15073         Replace GET_* macros with a more comprehensible and flexible
15074         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
15075         Modify all calls.
15076         Any coding system can be used to do format conversion.
15077         Eliminate enum external_data_format.
15078         Eliminate convert_to_external_format.
15079         Eliminate convert_to_internal_format.
15080         Make sure file-name, keyboard, terminal, and ctext are always
15081         defined as coding systems or aliases.  Make
15082         file-name-coding-system, terminal-coding-system, and
15083         keyboard-coding-system magical variables that are equivalent to
15084         defining the corresponding coding system aliases.
15085
15086         * file-coding.c (Fcoding_system_canonical_name_p): New function.
15087         * file-coding.c (Fcoding_system_alias_p): New function.
15088         * file-coding.c (Fcoding_system_aliasee): New function.
15089         * file-coding.c (append_suffix_to_symbol): New function.
15090         * file-coding.c (dangling_coding_system_alias_p): New function.
15091         * file-coding.c (Ffind_coding_system):
15092         * file-coding.c (Fcopy_coding_system):
15093         * file-coding.c (encode_coding_no_conversion):
15094         * file-coding.c (syms_of_file_coding):
15095         * file-coding.c (vars_of_file_coding):
15096         Rewrite coding system alias code.
15097         Allow nested aliases, like symbolic links.
15098         Allow redefinition of coding system aliases.
15099         Prevent existence of dangling coding system aliases.
15100
15101         * dired.c (Fuser_name_completion_1):
15102         * dired.c (Fuser_name_all_completions):
15103         A crash would happen if user did QUIT in the middle of building
15104         user_name_cache.  Remove redundant code in mainline and unwind_protect.
15105
15106         * lisp.h:
15107         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
15108
15109         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
15110         an unsigned char *.  Update all callers.
15111
15112 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15113
15114         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
15115
15116 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15117
15118         * elhash.c (hentry_description): Use more portable definition.
15119         (resize_hash_table): Initialize new hentries using
15120         xnew_array_and_zero, thereby simplifying the code.
15121
15122         * mule-charset.c (make_charset): Make sure entire object is
15123         initialized, to avoid Purify warnings.
15124
15125         * alloc.c (resize_string): Fix unlikely crash with big strings.
15126
15127 2000-01-24  Martin Buchholz  <martin@xemacs.org>
15128
15129         * realpath.c (xrealpath):
15130         Don't call getwd().
15131
15132 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15133
15134         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
15135
15136 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
15137
15138         * unexelfsgi.c (unexec): Change the way we decide which segment
15139         should be extended.
15140
15141         Assumption that .bss section should be outside the PT_LOADable
15142         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
15143         it's present) is inside the 'data' segment. This would fail the
15144         test which was used to find a segment to grow and cover new
15145         heap. Instead of this assumption, I created another one - on IRIX
15146         the segment to grow should start below .bss and it's address
15147         should extent above the end of .bss. Once this segment is
15148         identified, it's grown to accommodate the new heap and new
15149         zero-length .bss section is added at the end of .data2.
15150
15151 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15152
15153         * eval.c (Feval): Wrong number of arguments should use original
15154         function, not the indirect_function version of it.
15155
15156 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
15157
15158         * glyphs-x.c (x_button_instantiate): Don't add image if
15159         it is not a pixmap.
15160         (x_locate_pixmap_file): Call Fexpand_file_name when file name
15161         is relative.
15162
15163 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
15164
15165         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
15166         declaration.
15167         (DEFVAR_INT_MAGIC): Ditto.
15168         (DEFVAR_BOOL_MAGIC): Ditto.
15169         * glyphs.h: Reindent backslash.
15170
15171 2000-01-24  Martin Buchholz  <martin@xemacs.org>
15172
15173         * glyphs-widget.c (layout_query_geometry):
15174         (layout_layout): Use correct types for gheight, gwidth.
15175
15176 2000-01-24  Martin Buchholz  <martin@xemacs.org>
15177
15178         * EmacsManager.c (QueryGeometry): Purified.
15179
15180 2000-01-23  Martin Buchholz  <martin@xemacs.org>
15181
15182         * alloc.c (make_float): Make sure entire object is initialized, to
15183         avoid Purify warnings.
15184         (pdump_register_sub): Remove useless assignment.
15185         (pdump): Use xmalloc, not malloc.
15186         (pdump_load): Use xmalloc, not malloc.
15187
15188 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15189
15190         * callproc.c:
15191         * dired-msw.c:
15192         * fileio.c:
15193         * process-nt.c:
15194         * redisplay-msw.c:
15195         * sysdep.c: Removed redundant #include <windows.h>
15196
15197 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15198
15199         * frame.c (delete_frame_internal): Do not delete device when its
15200         implementation so declares.
15201         (delete_frame_internal): Set device selected frame to nil when
15202         last frame goes away.
15203
15204         * device-msw.c (msprinter_device_system_metrics): Implemented.
15205         (mswindows_device_system_metrics): Added 'device-dpi property.
15206
15207         * device.c: (Fdevice_printer_p): Added.
15208         Added 'offset-workspace device metric.
15209
15210         * console.h (device_metrics): Declared DM_offset_workspace.
15211
15212 2000-01-23  Martin Buchholz  <martin@xemacs.org>
15213
15214         * fileio.c (Ffile_truename): Remove pointless and confusing
15215         initialization of elen.
15216
15217         * glyphs-widget.c: Compiler warning fixes.
15218
15219 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
15220
15221         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
15222         instead of a Lisp_Object as argument to make it consistent with
15223         the other LIVE_P macros.
15224         (CHECK_LIVE_PROCESS): New macro.
15225
15226         * process.c: Declare Qprocess_live_p.
15227         (Fprocess_live_p): New function.
15228         (create_process): Use PROCESS_LIVE_P.
15229         (read_process_output): Ditto.
15230         (set_process_filter): Ditto.
15231         (Fdelete_process): Ditto.
15232         (kill_buffer_processes): Ditto
15233         (process_send_signal): Use CHECK_LIVE_PROCESS.
15234         (Fprocess_input_coding_system): Check whether process is still
15235         alive (fix PR#1061).
15236         (Fprocess_output_coding_system): Ditto.
15237         (Fprocess_coding_system): Ditto.
15238         (Fset_process_input_coding_system): Ditto.
15239         (Fset_process_output_coding_system): Ditto.
15240
15241 2000-01-23  Andy Piper  <andy@xemacs.org>
15242
15243         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
15244         layout and widget.
15245
15246         * glyphs.c (mark_image_instance): take into account changed
15247         image_instance format.
15248         (image_instance_equal): ditto.
15249         (image_instance_hash): ditto.
15250
15251         * glyphs-widget.c (widget_instantiate): Incorporate layout
15252         instantiation here. Delay layout of the layout until later.
15253         (layout_instantiate): deleted.
15254         (layout_query_geometry): new function. get the geometry of a
15255         layout.
15256         (layout_layout): layout a layout dynamically.
15257         (image_instantiator_widget): New function - splitting up
15258         image_instantiator_format_create_glyphs_widget for netwinder
15259         compilation.
15260         (image_instantiator_buttons):
15261         (image_instantiator_edit_fields):
15262         (image_instantiator_combo_box):
15263         (image_instantiator_scrollbar):
15264         (image_instantiator_progress_guage):
15265         (image_instantiator_tree_view):
15266         (image_instantiator_tab_control):
15267         (image_instantiator_labels):
15268         (image_instantiator_layout): ditto.
15269         (image_instantiator_format_create_glyphs_widget): Call preceding
15270         functions.
15271
15272 2000-01-22  Martin Buchholz  <martin@xemacs.org>
15273
15274         * process.c (Fset_process_coding_system):
15275         * device-x.c (Fx_keysym_hash_table):
15276         Docstring fixes.
15277
15278         * lstream.c (Lstream_write): Return documented value, not 0.
15279
15280         * fileio.c (directory_file_name):
15281         (Fsubstitute_in_file_name):
15282         (Fsubstitute_insert_file_contents_internal):
15283         (Fwrite_region_internal):
15284         * emacs.c:
15285         * sysdep.c:
15286         * getloadavg.c:
15287         * systty.h:
15288         Remove vestigial APOLLO-conditional code.
15289
15290 2000-01-21  Martin Buchholz  <martin@xemacs.org>
15291
15292         * getpagesize.h: Add guard macros.
15293         * libsst.h: Add guard macros.
15294         * libst.h: Add guard macros.
15295         * line-number.h: Add guard macros.
15296         * ndir.h: Add guard macros.
15297         * sysfloat.h: Add guard macros.
15298         * sysfile.h: Add guard macros.
15299         * sysproc.h: Add guard macros.
15300         * syswait.h: Add guard macros.
15301         * xintrinsic.h: Add guard macros.
15302         * xintrinsicp.h: Add guard macros.
15303         * xmmanager.h: Add guard macros.
15304         * xmmanagerp.h: Add guard macros.
15305         * xmprimitive.h: Add guard macros.
15306         * xmu.h: Add guard macros.
15307         * gpmevent.h: Add copyright statement. Add guard macros.
15308         * miscplay.h: Add guard macros.
15309         * *.h: Use consistent C-standards-approved guard macro names.
15310
15311         * opaque.c (make_opaque): Switch parameter order.
15312         * opaque.h (make_opaque): Switch parameter order.
15313         Update all callers.
15314         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
15315
15316         * config.h.in (type_checking_assert): Added.
15317         (bufpos_checking_assert): Added.
15318
15319 2000-01-21  Martin Buchholz  <martin@xemacs.org>
15320
15321         * alloc.c: Harmless pdump changes.
15322         - Use countof().
15323         - spell alignment correctly.
15324         * sysdep.c: Use countof()
15325
15326 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15327
15328         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
15329         initially_selected_for_input() console method, default to 0.
15330         (semi_canonicalize_console_connection): Try to delegate to
15331         canonicalize_console_connection if no such console method.
15332         (canonicalize_console_connection): Vice versa.
15333         (print_console): Do not print nil connection.
15334
15335         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
15336         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
15337         (XDEVIMPF_FRAMELESS_OK): Added.
15338         (CONSOLE_INHERITS_METHOD): Added.
15339
15340         * console-msw.c (mswindows_canonicalize_console_connection):
15341         Added.
15342         (mswindows_canonicalize_device_connection): Added.
15343
15344         * console-msw.h (struct msprinter_device): Added this struct and
15345         accessor macros.
15346         (mswindows_device): Made fontlist a lisp object.
15347
15348         * device.c (semi_canonicalize_device_connection):  Try to delegate
15349         to canonicalize_device_connection if no such console method.
15350         (canonicalize_device_connection): Vice versa.
15351         (print_device): Do not print nil connection.
15352
15353         * device-msw.c (mswindows_init_device): Call InitCommonControls
15354         when have widgets.
15355         (mswindows_delete_device): Removed fontlist deallocation.
15356         (mswindows_mark_device): Added.
15357
15358         * events.c (event_equal): Added abort() at unreached code.
15359         (event_hash): Ditto.
15360
15361         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
15362         fallback tags of Windows devices.
15363
15364         * general.c (syms_of_general): Initialized Qmsprinter.
15365
15366         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
15367         of fallback tags of Windows devices.
15368
15369         * lisp.h: Declared Qmsprinter.
15370
15371         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
15372         of strings.
15373         (mswindows_list_fonts): Ditto.
15374         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
15375         that it can be used by both mswindows and msprinter devices.
15376         (initialize_font_instance): Added.
15377         (mswindows_initialize_font_instance): Use it.
15378         (msprinter_initialize_font_instance): Added.
15379
15380         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
15381         and implementation flags check.
15382         (redisplay_without_hooks): Changed the call to the above.
15383         (Fredraw_device): Ditto.
15384         (Fredisplay_device): Ditto.
15385
15386         * redisplay-msw.c (get_frame_dc): Implemented.
15387         (get_frame_compdc): Implemented.
15388         (many functions): Use the two functions above to get device
15389         contexts, ether for a window or a printer.
15390
15391 2000-01-21  Olivier Galibert  <galibert@pobox.com>
15392
15393         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
15394         initialization here.
15395         (init_symbols_once_early): Call it.
15396         * emacs.c (main_1): Call it.
15397         * symsinit.h: Declare it.
15398
15399 2000-01-19  Olivier Galibert  <galibert@pobox.com>
15400
15401         * alloc.c: Use a lrecord_header * in the backtrace instead of a
15402         Lisp_Object.
15403         (pdump_backtrace): Ditto.
15404         (pdump_register_object): Ditto.  Cleanup use of the pointers.
15405         (pdump_get_entry): Abort if trying to register a null pointer.
15406         (pdump_dump_data): Cleanup types when relocating.
15407         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
15408         (pdump_dump_rtables): Remove bad casts.
15409         (pdump_load): Cleanup relocation w.r.t union type.  Use a
15410         Lisp_Object instead of a EMACS_INT for the hashtable
15411         reorganization.
15412
15413 2000-01-20  Martin Buchholz  <martin@xemacs.org>
15414
15415         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
15416
15417         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
15418
15419         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
15420
15421         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
15422
15423 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15424
15425         * faces.h (FACE_STRIKETHRU_P): Added.
15426
15427         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
15428         of font variants.
15429
15430         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
15431         (mswindows_set_dc_font): New function, aware of font variants,
15432         separated from mswindows_update_dc.
15433
15434         * objects-msw.h (struct mswindows_font_instance_data): Added
15435         definition.
15436
15437         * objects-msw.c (mswindows_finalize_font_instance): Delete all
15438         cached fonts and the data structure.
15439         (mswindows_initialize_font_instance): Added creation of font data
15440         structure.
15441         (mswindows_print_font_instance): Print at least something.
15442         (mswindows_create_font_variant): Implemented.
15443         (mswindows_get_hfont): Implemented.
15444
15445 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
15446
15447         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
15448         prototyping problem with msvc.
15449
15450         * emacs.c (main_1): added syms_of_gui_mswindows() call
15451
15452         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
15453         syms_of_gui_mswindows() function
15454
15455         * symsinit.h: added the prototype for syms_of_gui_mswindows()
15456
15457 2000-01-18  Martin Buchholz <martin@xemacs.org>
15458
15459         * XEmacs 21.2.27 is released.
15460
15461 2000-01-18  Martin Buchholz  <martin@xemacs.org>
15462
15463         * glyphs-eimage.c (struct tiff_error_struct):
15464         (tiff_error_func):
15465         (tiff_warning_func):
15466         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
15467
15468         * unexmips.c:
15469         * unexhp9k3.c:
15470         * unexfreebsd.c:
15471         * unexec.c: Remove vestigial Lucid C code.
15472         * unexalpha.c:
15473         * unexaix.c:
15474         * termcap.c:
15475         * libsst.c: Ansify.
15476         Remove declarations of errno and strerror().
15477
15478         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
15479
15480         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
15481
15482 2000-01-16  Martin Buchholz  <martin@xemacs.org>
15483
15484         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
15485         Optimize.
15486
15487 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15488
15489         * md5.c:
15490         * file-coding.c:
15491         * file-coding.h:
15492         Change enum eol_type to eol_type_t.
15493
15494 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15495
15496         * gui.c (get_gui_callback): Check cons before accessing car.
15497
15498 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15499
15500         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
15501         (XSETSPECIFIER_TYPE): Ditto.
15502
15503 2000-01-17  Didier Verna  <didier@xemacs.org>
15504
15505         * redisplay.c (generate_fstring_runes): compute string size in
15506         characters, not bytes.
15507
15508 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
15509
15510         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
15511
15512 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
15513
15514         * print.c (print_error_message): Call print_prepare().
15515
15516 2000-01-14  Martin Buchholz  <martin@xemacs.org>
15517
15518         * .dbxrc: Renamed from dbxrc.
15519
15520         * events.c (event_to_character):
15521         Use `assert (foo)' instead of `if (!foo) abort()'
15522
15523         * .gdbinit (xtype): Add documentation.
15524         * .gdbinit (check-temacs): New function.
15525         * .gdbinit (check-xemacs): New function.
15526         * dbxrc (check-xemacs): New function.
15527         * dbxrc (check-xemacs): New function.
15528
15529 2000-01-14  Andy Piper  <andy@xemacs.org>
15530
15531         * glyphs-widget.c (widget_query_geometry): Make sure that we
15532         calculate default dimensions correctly.
15533
15534 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15535
15536         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
15537
15538         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
15539         pdump_wire'd variable.
15540
15541         * emacs.c: (main_1): Conditionalized calls to
15542         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
15543
15544 2000-01-13  Martin Buchholz  <martin@xemacs.org>
15545
15546         * window.c (Fset_window_configuration):
15547         * sysdep.c (_start):
15548         * input-method-motif.c (res):
15549         * event-Xt.c (Xt_process_to_emacs_event):
15550         Simple compiler warning fixes.
15551
15552         * bytecode.c (funcall_compiled_function): Use the original
15553         function symbol on the backtrace list in preference to the
15554         compiled_function object in error messages.
15555
15556 2000-01-13  Andy Piper  <andy@xemacs.org>
15557
15558         * glyphs-x.c (update_widget_face): Make sure we update the widget
15559         background as well as foreground.
15560
15561 2000-01-13  Andy Piper  <andy@xemacs.org>
15562
15563         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
15564         fields to subwindow.
15565         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
15566         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
15567         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
15568         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
15569
15570         * glyphs-widget.c (check_valid_tab_orientation): new function.
15571         (initialize_widget_image_instance): zero orientation and
15572         justification.
15573         (widget_instantiate): pick up orientation.
15574         (tab_control_query_geometry): return appropriate values for
15575         vertical tabs.
15576
15577         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
15578         appropriate creation flags for left, right and bottom tabs.
15579
15580         * s/cygwin32.h: add tab definitions.
15581
15582 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15583
15584         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
15585         frame upon hiding a subwindow.
15586         (mswindows_button_instantiate): Changed the push button style to
15587         BS_PUSHBUTTON.
15588         (mswindows_button_instantiate): Removed button BS_NOTIFY
15589         style.
15590         (mswindows_button_instantiate): Removed redundant check for
15591         a disabled gui item.
15592         (mswindows_button_instantiate): Made use of WS_TABSTOP
15593         consistent: "operable" controls (edit, button, tree, scroll) have
15594         this style, "display-only" ones (static, progress gauge) do
15595         not. This style is currently ignored by XEmacs though. Also,
15596         removed the WS_EX_CONTROLPARENT style - it is not for children,
15597         it is for their parents!
15598         (mswindows_edit_field_instantiate): Ditto.
15599         (mswindows_progress_gauge_instantiate): Ditto.
15600         (mswindows_tree_view_instantiate): Ditto.
15601         (mswindows_tab_control_instantiate): Ditto.
15602         (mswindows_scrollbar_instantiate): Ditto.
15603         (mswindows_combo_box_instantiate): Ditto.
15604         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
15605         style to the "clip" window.
15606         (mswindows_button_instantiate): Removed compilation warning by
15607         equally typing terms of the ?: operator.
15608
15609 2000-01-12  Didier Verna  <didier@xemacs.org>
15610
15611         * redisplay.c (generate_fstring_runes): new parameter holding the
15612         last modeline-format extent.
15613         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
15614         extent, fill the glyph block with it.
15615         (generate_fstring_runes): handle these parameters.
15616         (generate_formatted_string_db): ditto.
15617
15618         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
15619         glyphs'extents in the modeline.
15620
15621 1999-01-11  Mike Woolley  <mike@bulsara.com>
15622
15623         * ntheap.c: Reduced the reserved heap space from 1Gb down to
15624         256Mb, as a workaround for the non-starting problem many people
15625         have experienced.
15626
15627 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15628
15629         * console-tty.c (Fset_console_tty_output_coding_system):
15630         Force redrawing tty frame.
15631
15632 2000-01-10  Didier Verna  <didier@xemacs.org>
15633
15634         * redisplay.c (generate_fstring_runes): fix size computation bug.
15635
15636 2000-01-09  William M. Perry <wmperry@aventail.com>
15637
15638         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
15639
15640 2000-01-09  Andy Piper  <andy@xemacs.org>
15641
15642         * glyphs-msw.c: index -> i to avoid shadows.
15643         (xbm_create_bitmap_from_data): make static.
15644         (check_valid_string_or_int): deleted.
15645         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
15646
15647         * glyphs-x.c (x_update_subwindow): remove unused args.
15648
15649         * glyphs.c (glyph_image_instance): return the thing. Don't set the
15650         back pointer - this is done in allocate_image_instance.
15651         (query_string_font): return Qnil to make the compiler happy.
15652         (unmap_subwindow): set to ~0 to make the compiler happy.
15653         (glyph_query_geometry): comment out until used.
15654         (glyph_layout): ditto.
15655
15656 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
15657
15658         * insdel.c (signal_after_change): Remove extraneous unbind_to().