Sync up with r21-4-11-chise-0_20-5.
[chise/xemacs-chise.git] / src / ChangeLog
1 2003-04-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2
3         * chartab.c (decode_char_table_range): CHARTAB_RANGE_DEFAULT is
4         only for XEmacs CHISE.
5
6 2003-04-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
7
8         * char-ucs.h: Compact non-ISO-IR charset-ids.
9         (LEADING_BYTE_UCS): Changed to -177.
10         (LEADING_BYTE_CONTROL_1): Changed to -77.
11         (LEADING_BYTE_UCS_BMP): Changed to -176.
12         (LEADING_BYTE_JAPANESE_JISX0208_1990): Changed to -168.
13
14 2003-04-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
15
16         * mule-charset.c (Qiso_ir): New variable.
17         (Fmake_charset): Recognise new property `iso-ir'.
18         (syms_of_mule_charset): Add new symbol `iso-ir'.
19
20 2003-04-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
21
22         * char-ucs.h: Change charset-id of ISO-IR sets from ISO-IR-number
23         n to -n; charset-id of non ISO-IR sets are changed to positive
24         numbers.
25
26 2003-03-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
27
28         * mule-charset.c (put_char_ccs_code_point): Refer `=ucs' instead
29         of `ucs'.
30         (Qmap_ucs): New variable.
31         (syms_of_mule_charset): Add new symbol `=ucs'.
32         (complex_vars_of_mule_charset): Rename `ucs' to `=ucs'.
33
34         * fns.c (ids_format_unit): Refer `=ucs' instead of `ucs'.
35
36         * chartab.c (Fdefine_char): Refer `=ucs' as same as `ucs'.
37
38         * char-ucs.h (Qmap_ucs): New extern variable.
39
40 2003-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
41
42         * mule-charset.c (Qmap_jis_x0208): Renamed from `Qjis_x0208'.
43         (Qmap_jis_x0208_1990): Renamed from `Qjapanese_jisx0208_1990';
44         don't define it when UTF2000 is not defined.
45         (syms_of_mule_charset): Modify for `Qmap_jis_x0208'; rename
46         `japanese-jisx0208-1990' to `=jis-x0208-1990'; don't define it
47         when UTF2000 is not defined.
48         (complex_vars_of_mule_charset): Modify for `Qmap_jis_x0208';
49         rename `japanese-jisx0208-1990' to `=jis-x0208-1990'.
50
51 2003-03-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
52
53         * char-ucs.h (LEADING_BYTE_UCS_GB): Deleted.
54
55         * mule-charset.c (Vcharset_ucs_gb): Deleted.
56         (Qucs_gb): Deleted.
57         (syms_of_mule_charset): Delete `ucs-gb'.
58         (complex_vars_of_mule_charset): Likewise.
59
60 2003-03-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
61
62         * char-ucs.h (LEADING_BYTE_UCS_CNS): Deleted.
63
64         * mule-charset.c (Vcharset_ucs_cns): Deleted.
65         (Qucs_cns): Deleted.
66         (syms_of_mule_charset): Delete `ucs-cns'.
67         (complex_vars_of_mule_charset): Likewise.
68
69 2003-03-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
70
71         * char-ucs.h (LEADING_BYTE_UCS_JIS): Deleted.
72
73         * mule-charset.c (Vcharset_ucs_jis): Deleted.
74         (Qucs_jis): Deleted.
75         (syms_of_mule_charset): Delete `ucs-jis'.
76         (complex_vars_of_mule_charset): Likewise.
77
78 2003-03-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
79
80         * char-ucs.h (LEADING_BYTE_UCS_KS): Deleted.
81
82         * mule-charset.c (Vcharset_ucs_ks): Deleted.
83         (Qucs_ks): Deleted.
84         (syms_of_mule_charset): Delete `ucs-ks'.
85         (complex_vars_of_mule_charset): Likewise.
86
87 2003-03-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
88
89         * mule-charset.c (Vcharset_ideograph_daikanwa_2): Deleted.
90         (Qideograph_daikanwa_2): Deleted.
91         (syms_of_mule_charset): Delete `ideograph-daikanwa-2'.
92         (complex_vars_of_mule_charset): Likewise.
93
94         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): Deleted.
95         (LEADING_BYTE_DAIKANWA_1): Deleted.
96         (LEADING_BYTE_DAIKANWA_2): Deleted.
97         (MIN_CHAR_DAIKANWA): Deleted.
98         (MAX_CHAR_DAIKANWA): Deleted.
99
100 2003-02-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
101
102         * char-ucs.h (LEADING_BYTE_DAIKANWA_3): Deleted.
103         (LEADING_BYTE_HANZIKU_{1..12}): Deleted.
104         ({MIN|MAX}_CHAR_HANZIKU_{1..12}): Deleted.
105
106         * mule-charset.c (Vcharset_ideograph_hanziku_{1..12}): Deleted.
107         (Vcharset_ideograph_daikanwa): Deleted.
108         (Qideograph_hanziku_{1..12}): Deleted.
109         (Qideograph_daikanwa): Deleted.
110         (encode_builtin_char_1): Don't use {MIN|MAX}_CHAR_DAIKANWA and
111         Vcharset_ideograph_daikanwa.
112         (syms_of_mule_charset): Delete `ideograph-daikanwa' and
113         `ideograph-hanziku-{1..12}'.
114         (complex_vars_of_mule_charset): Likewise.
115
116 2003-02-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
117
118         * char-ucs.h (LEADING_BYTE_GT_PJ_{1..11}): Deleted.
119
120         * mule-charset.c (Vcharset_ideograph_gt_pj_{1..11}): Deleted.
121         (Qideograph_gt_pj_{1..11}): Deleted.
122         (syms_of_mule_charset): Delete `ideograph-gt-pj-{1..11}'.
123         (complex_vars_of_mule_charset): Likewise.
124
125 2003-02-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
126
127         * mule-charset.c (Vcharset_ucs_big5): Deleted.
128         (Vcharset_ideograph_gt): Deleted.
129         (Qucs_big5): Deleted.
130         (Qideograph_gt): Deleted.
131         (syms_of_mule_charset): Delete symbol `ucs-big5' and
132         `ideograph-gt'.
133         (complex_vars_of_mule_charset): Delete coded-charset `ucs-big5'
134         and `ideograph-gt'.
135
136         * char-ucs.h (LEADING_BYTE_UCS_BIG5): Deleted.
137         (LEADING_BYTE_GT): Deleted.
138         (GC_CHARSETP): Deleted.
139         (MIN_CHAR_GT): Deleted.
140         (MAX_CHAR_GT): Deleted.
141
142 2003-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
143
144         * chartab.c (Fput_char_attribute): Canonicalise charset-aliases.
145
146 2003-01-05  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
147
148         * mule-charset.c (Vcharset_ideograph_cbeta): Deleted.
149         (Qideograph_cbeta): Deleted.
150         (syms_of_mule_charset): Don't define `ideograph-cbeta'.
151         (complex_vars_of_mule_charset): Likewise.
152
153         * char-ucs.h (LEADING_BYTE_CBETA): Deleted.
154         (MIN_CHAR_CBETA): Comment out.
155         (MAX_CHAR_CBETA): Likewise.
156
157 2002-12-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
158
159         * mule-charset.c (charset_lookup_description_1): Use
160         `NUM_LEADING_BYTES' in UTF-2000.
161
162 2002-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
163
164         * mule-charset.c (Vcharset_china3_jef): Deleted.
165         (Qchina3_jef): Deleted.
166         (syms_of_mule_charset): Don't define `china3-jef'.
167         (complex_vars_of_mule_charset): Likewise.
168
169         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Deleted.
170         (MIN_CHAR_CHINA3_JEF): Comment out.
171         (MAX_CHAR_CHINA3_JEF): Comment out.
172
173 2002-11-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
174
175         * mule-charset.c (Vcharset_ucs_gb): New variable.
176         (Qucs_gb): New variable.
177         (syms_of_mule_charset): Add new symbol `ucs-gb'.
178         (complex_vars_of_mule_charset): Add new coded-charset `ucs-gb'.
179
180         * char-ucs.h (LEADING_BYTE_UCS_GB): New macro.
181
182 2002-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
183
184         * mule-charset.c (charset_code_point): if a coded-charset has a
185         final-byte, don't inherit the builtin range of the mother CCS.
186
187 2002-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
188
189         * mule-charset.c (charset_code_point): Fix problem about
190         inheritance.
191
192 2002-11-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
193
194         * mule-charset.c (decode_builtin_char): Reorganized.
195
196 2002-10-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
197
198         * text-coding.c (char_encode_shift_jis): Modify for
199         `charset_code_point'.
200         (char_encode_big5): Likewise.
201         (char_encode_utf8): Likewise.
202         (char_encode_iso2022): Likewise.
203
204         * mule-charset.c (charset_code_point): Add new argument
205         `defined_only'.
206         (Fencode_char): Add new optional argument `defined_only'.
207
208         * chartab.c (put_char_table): Modify for `charset_code_point'.
209         (map_char_table): Likewise.
210
211         * char-ucs.h (charset_code_point): Add new argument
212         `defined_only'.
213         (encode_char_1): Modify for `charset_code_point'.
214
215 2002-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
216
217         * mule-charset.c (complex_vars_of_mule_charset): Don't specify
218         `MIN_CHAR_THAI' and `MAX_CHAR_THAI' for `thai-tis620'.
219
220 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
221
222         * mule-charset.c (Vcharset_jis_x0208): New variable in UTF-2000.
223         (Qjis_x0208): Likewise.
224         (decode_builtin_char): Prefer XCHARSET_MAX_CODE(charset) than
225         XCHARSET_FINAL(charset).
226         (charset_code_point): Modify condition for final-byte based
227         builtin-chars.
228         (syms_of_mule_charset): Add new symbol `=jis-x0208' in UTF-2000.
229         (complex_vars_of_mule_charset): Add new coded-charset `=jis-x0208'
230         in UTF-2000; specify `=jis-x0208' as the mother of
231         `japanese-jisx0208-1978', `japanese-jisx0208' and
232         `japanese-jisx0208-1990' in UTF-2000.
233
234 2002-10-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
235
236         * char-ucs.h (LEADING_BYTE_JIS_X0208): New macro.
237
238 2002-07-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
239
240         * mule-charset.c (charset_code_point): If CHARSET_CONVERSION is
241         CONVERSION_IDENTICAL, identical conversion is used even if a CCS
242         is ISO-2022 style; instead of it, CONVERSION_94, CONVERSION_96,
243         CONVERSION_94x94, CONVERSION_96x96, CONVERSION_94x94x94,
244         CONVERSION_96x96x96, CONVERSION_94x94x94x94 and
245         CONVERSION_96x96x96x96 are introduced.
246         (complex_vars_of_mule_charset): Specify CONVERSION_96 instead of
247         CONVERSION_IDENTICAL for thai-tis620; Specify CONVERSION_94x94
248         instead of CONVERSION_IDENTICAL for japanese-jisx0208-1990.
249
250         * char-ucs.h (CONVERSION_94): New macro.
251         (CONVERSION_96): New macro.
252         (CONVERSION_94x94): New macro.
253         (CONVERSION_96x96): New macro.
254         (CONVERSION_94x94x94): New macro.
255         (CONVERSION_96x96x96): New macro.
256         (CONVERSION_94x94x94x60): New macro.
257         (CONVERSION_94x94x94x94): New macro.
258         (CONVERSION_96x96x96x96): New macro.
259
260 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
261
262         * lisp.h: Add an EXFUN for `Fchar_ref_p'.
263
264         * fns.c (Qideographic_structure): New variable.
265         (Qkeyword_char): New variable.
266         (ids_format_unit): New function.
267         (Fideographic_structure_to_ids): New function.
268         (syms_of_fns): Add new symbols `ideographic-structure' and
269         `:char'; add new builtin function `ideographic-structure-to-ids'.
270
271         * data.c (Fchar_ref_p): New function.
272         (syms_of_data): Add new builtin function `char-ref-p'.
273
274         * chartab.h: Add an EXFUN for `Ffind_char'.
275
276 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
277
278         * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
279         and `COMPOSE_ADD_CHAR'.
280         (decode_coding_iso2022): Use `decode_flush_er_chars'.
281
282 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
283
284         * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
285         instead of `DECODE_ADD_UCS_CHAR'.
286         (COMPOSE_ADD_CHAR): Likewise.
287
288 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
289
290         * text-coding.c (decode_flush_er_chars): New inline function.
291         (decode_add_er_char): New function.
292         (decode_coding_utf8): Use `decode_flush_er_chars' and
293         `decode_add_er_char'.
294
295 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
296
297         * text-coding.c (decode_coding_utf8): Flush for er_buf must be
298         done before `decode_output_utf8_partial_char'.
299
300         * mule-charset.c (complex_vars_of_mule_charset): Specify
301         `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
302         `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
303
304 2002-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
305
306         * mule-charset.c (decode_defined_char): New function; search
307         mother.
308         (decode_builtin_char): Don't search mother if
309         XCHARSET_MAX_CODE(charset) == 0.
310         (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
311         == 0 even if code >= XCHARSET_MAX_CODE(charset).
312         (Fdecode_char): Use `decode_defined_char' instead of
313         `DECODE_DEFINED_CHAR'.
314         (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
315         mother of `Vcharset_ucs_jis'.
316
317         * text-coding.c (decode_coding_big5): Use `decode_defined_char'
318         instead of `DECODE_DEFINED_CHAR'.
319
320         * char-ucs.h (decode_defined_char): Renamed from
321         `DECODE_DEFINED_CHAR'; changed to normal function.
322         (DECODE_CHAR): Use `decode_defined_char' instead of
323         `DECODE_DEFINED_CHAR'.
324
325         * lisp.h: Add `EXFUN' for `Fstring_to_number'.
326
327 2002-07-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
328
329         * char-ucs.h: Add `extern' for `Vcharset_ucs'.
330
331         * text-coding.c (Vcoded_charset_entity_reference_alist): New
332         variable.
333         (Quse_entity_reference): New variable.
334         (Qd): New variable.
335         (Qx): New variable.
336         (QX): New variable.
337         (coding_system_description): Add description for
338         `ccs_priority_list'.
339         (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
340         (allocate_coding_system): Initialize `ccs_priority_list' in
341         UTF-2000.
342         (Fmake_coding_system): Add description about
343         'use-entity-reference; setup
344         CODING_SYSTEM_USE_ENTITY_REFERENCE(codesys).
345         (Fcoding_system_property): Accept `disable-composition' and
346         `use-entity-reference' in UTF-2000.
347         (struct decoding_stream): Add new member `er_counter' and `er_buf'
348         in UTF-2000.
349         (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
350         (decode_coding_utf8): Decode entity-reference if
351         CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
352         (char_encode_utf8): Encode non-Unicode characters as
353         entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
354         (str->codesys).
355         (syms_of_file_coding): Add new symbols `use-entity-reference',
356         `d', `x', `X'.
357         (vars_of_file_coding): Add new variable
358         `coded-charset-entity-reference-alist'.
359         (complex_vars_of_file_coding): Declare `disable-composition' and
360         `use-entity-reference' to be coding-system-properties in UTF-2000.
361
362         * file-coding.h (struct Lisp_Coding_System): Add new member
363         `use_entity_reference' and `ccs_priority_list'.
364         (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
365         (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
366         (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
367
368 2002-02-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
369
370         * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
371
372 2002-02-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
373
374         * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
375         `XCHARSET_GRAPHIC(ccs)'.
376
377 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
378
379         * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
380         for decoding-table.
381
382 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
383
384         * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
385         instead of `XCHARSET_CHARS'.
386
387 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
388
389         * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
390         (XCHARSET_BYTE_SIZE): Likewise.
391
392         * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
393         mule-charset.c].
394         (XCHARSET_BYTE_SIZE): Likewise.
395
396 2002-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
397
398         * char-ucs.h (decoding_table_check_elements): Delete prototype.
399         (get_ccs_octet_table): New inline function.
400         (put_ccs_octet_table): Likewise.
401         (decoding_table_put_char): Use `get_ccs_octet_table' and
402         `put_ccs_octet_table'.
403         (decoding_table_remove_char): Use `decoding_table_put_char'.
404         (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
405
406         * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
407         into encoding_table.
408         (make_charset): Use Qunbound instead Qnil as initial value of
409         decoding_table.
410
411 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
412
413         * mule-charset.c (put_char_ccs_code_point): Modify for
414         `decoding_table_remove_char' and `decoding_table_put_char'.
415         (remove_char_ccs): Modify for `decoding_table_remove_char'.
416
417         * char-ucs.h (decoding_table_remove_char): Change arguments to
418         hide decoding_table vector.
419         (decoding_table_put_char): Likewise.
420
421 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
422
423         * mule-charset.c (decoding_table_remove_char): Moved to
424         char-ucs.h.
425         (decoding_table_put_char): Likewise.
426
427         * char-ucs.h (decoding_table_check_elements): New prototype [moved
428         from mule-charset.c].
429         (decoding_table_remove_char): New inline function [moved from
430         mule-charset.c].
431         (decoding_table_put_char): Likewise.
432
433 2002-04-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
434
435         * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
436         instead of `DECODE_CHAR' for mother; don't use special code for
437         chinese-big5 to use code space of chinese-big5-1 and
438         chinese-big5-2.
439         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
440         `MAX_CHAR_BIG5_CDP' for chinese-big5.
441
442         * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
443         (MAX_CHAR_BIG5_CDP): Revival.
444
445 2002-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
446
447         * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
448         the XLFD registry-encoding name of `chinese-big5'.
449
450 2002-04-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
451
452         * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
453         (Qchinese_big5_cdp): Deleted.
454         (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
455         (complex_vars_of_mule_charset): Delete coded-charset
456         `chinese-big5-cdp'.
457
458         * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
459         (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
460         `CHARSET_ID_OFFSET - n' for private CCS.
461         (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
462         (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
463         of `MIN_LEADING_BYTE'.
464         (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
465         `(CHARSET_ID_OFFSET - 97)'.
466         (MIN_CHAR_BIG5_CDP): Deleted.
467         (MAX_CHAR_BIG5_CDP): Deleted.
468
469 2002-01-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
470
471         * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
472         extension.
473
474 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
475
476         * mule-charset.c (decode_builtin_char): Support mother charsets.
477
478 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
479
480         * mule-charset.c (Q94x94x60): New variable.
481         (charset_code_point): Support conversion `94x94x60'.
482         (Fmake_charset): Likewise.
483         (syms_of_mule_charset): Add new symbol `94x94x60'.
484
485         * char-ucs.h (CONVERSION_94x94x60): New macro.
486
487 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
488
489         * mule-charset.c (charset_code_point): Unify code about
490         `code-offset'.
491
492 2001-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
493
494         * mule-charset.c (charset_code_point): Merge code about builtin
495         characters into code about mother charsets; don't use
496         `range_charset_code_point'.
497         (range_charset_code_point): Deleted.
498
499 2001-12-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
500
501         * mule-charset.c (Qcode_offset): New variable.
502         (Fmake_charset): Use `XUINT' to get value of `min-code' and
503         `max-code'; accept new property `code-offset'.
504         (syms_of_mule_charset): Add new symbol `code-offset'.
505
506 2001-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
507
508         * mule-charset.c (range_charset_code_point): Fixed.
509
510 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
511
512         * mule-charset.c (decode_builtin_char): Change semantics of
513         code-offset of coded-charset.
514         (charset_code_point): Likewise.
515         (range_charset_code_point): Likewise.
516         (complex_vars_of_mule_charset): Modify for the change.
517
518 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
519
520         * mule-charset.c (Fencode_char): Reverse arguments.
521
522         * mule-charset.c (charset_code_point): Fixed.
523
524 2001-12-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
525
526         * mule-charset.c (Vcharset_mojikyo): Deleted.
527         (Vcharset_mojikyo_2022_1): Deleted.
528         (Vcharset_mojikyo_pj_{1..21}): Deleted.
529         (Qmin_code): New variable in UTF-2000.
530         (Qmax_code): Likewise.
531         (Qmother): Likewise.
532         (Qconversion): Likewise.
533         (Q94x60): Likewise.
534         (Qmojikyo): Deleted.
535         (Qmojikyo_2022_1): Deleted.
536         (Qmojikyo_pj_{1..22}): Deleted.
537         (mark_charset): Mark `cs->mother'.
538         (charset_description): Add description for `mother'.
539         (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
540         new arguments `mother' and `conversion'; use
541         `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
542         (charset_code_point): Moved from char-ucs.h; support `mother'
543         charset feature.
544         (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
545         of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
546         (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
547         UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
548         allow 2 as the value of `graphic' in UTF-2000; add new properties
549         `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
550         require `final' in UTF-2000; modify for `make_charset'.
551         (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
552         instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
553         (Fcharset_property): Support `mother', `min-code' and `max-code'.
554         (Fencode_char): New function.
555         (syms_of_mule_charset): Add new builtin function `encode-char' in
556         UTF-2000; add new symbols `min-code', `max-code', `mother',
557         `conversion' and `94x60'; delete symbols `mojikyo',
558         `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
559         (complex_vars_of_mule_charset): Modify for `make_charset' change;
560         delete coded-charsets `mojikyo', `mojikyo-2022-1' and
561         `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
562
563         * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
564         `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
565
566         * char-ucs.h (Vcharset_mojikyo): Deleted.
567         (Vcharset_mojikyo_2022_1): Deleted.
568         (LEADING_BYTE_MOJIKYO): Deleted.
569         (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
570         (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
571         (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
572         (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
573         add new member `mother'; add new member `conversion'.
574         (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
575         (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
576         (CHARSET_MOTHER): New macro.
577         (CHARSET_CONVERSION): New macro.
578         (CONVERSION_IDENTICAL): New macro.
579         (CONVERSION_94x60): New macro.
580         (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
581         (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
582         (XCHARSET_MOTHER): New macro.
583         (XCHARSET_CONVERSION): New macro.
584         (MIN_CHAR_MOJIKYO): Deleted.
585         (MAX_CHAR_MOJIKYO): Deleted.
586         (DECODE_MOJIKYO_2022): Deleted.
587         (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
588         (charset_code_point): Changed to non-inline function.
589         (encode_char_1): Use `charset_code_point'.
590         (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
591
592 2001-12-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
593
594         * lread.c (read_compiled_function): Fix prototype.
595         (read_vector): Likewise.
596
597 2001-12-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
598
599         * lrecord.h (struct lrecord_header): Delete `older'.
600         (set_lheader_implementation): Delete code for `older'.
601         (set_lheader_older_implementation): Deleted.
602         (enum lrecord_type): Delete `lrecord_type_char_id_table'.
603         (OLDER_RECORD_P): Deleted.
604         (OLDER_RECORD_HEADER_P): Deleted.
605         (alloc_older_lcrecord): Deleted.
606         (alloc_older_lcrecord_type): Deleted.
607
608         * alloc.c (all_older_lcrecords): Deleted.
609         (alloc_older_lcrecord): Deleted.
610         (disksave_object_finalization_1): Delete code for older objects.
611         (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
612         (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
613
614 2001-12-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
615
616         * mule-charset.c (decoding_table_put_char): Use `make_vector'
617         instead of `make_older_vector'.
618         (put_char_ccs_code_point): Likewise.
619         (mark_charset): Mark `cs->decoding_table'.
620         (Fset_charset_mapping_table): Don't use `make_vector_newer'.
621
622         * lisp.h (make_older_vector): Deleted.
623         (make_vector_newer): Deleted.
624
625         * config.h.in (HAVE_GGC): Deleted.
626
627         * alloc.c (make_older_vector): Deleted.
628         (make_vector_newer_1): Deleted.
629         (make_vector_newer): Deleted.
630
631 2001-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
632
633         * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
634         (Qideograph_daikanwa_2): New variable.
635         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
636         (complex_vars_of_mule_charset): Add new coded-charset
637         `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
638         `LEADING_BYTE_DAIKANWA'.
639
640         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
641         (LEADING_BYTE_DAIKANWA_1): New macro.
642         (LEADING_BYTE_DAIKANWA_2): New macro.
643         (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
644
645 2001-12-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
646
647         * mule-charset.c (complex_vars_of_mule_charset): Change
648         DOC-strings and registry of `ideograph-daikanwa'; now it indicates
649         the second revised version.
650
651 2001-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
652
653         * mule-charset.c (Vcharset_ucs_smp): New variable.
654         (Vcharset_ucs_sip): New variable.
655         (Qucs_smp): New variable.
656         (Qucs_sip): New variable.
657         (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
658         MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
659         (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
660         (complex_vars_of_mule_charset): Modify middle-DOC and registry of
661         `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
662         charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
663
664         * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
665         (LEADING_BYTE_UCS_SIP): New macro.
666         (MIN_CHAR_SMP): New macro.
667         (MAX_CHAR_SMP): New macro.
668         (MIN_CHAR_SIP): New macro.
669         (MAX_CHAR_SIP): New macro.
670
671 2001-11-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
672
673         * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
674         utf-2000.
675
676 2001-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
677
678         * mule-charset.c (put_char_ccs_code_point): Return canonicalized
679         value; don't store value into `encoding_table' of `Lisp_Charset'.
680         (mark_charset): `encoding_table' was deleted.
681         (charset_description): Likewise.
682         (make_charset): Likewise.
683         (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
684         `put_char_ccs_code_point'.
685
686         * chartab.h (Fput_char_attribute): New EXFUN.
687
688         * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
689         is unified with normal symbol space.
690         (Fget_char_attribute): Likewise.
691         (Fput_char_attribute): Likewise; behavior of
692         `put_char_ccs_code_point' is changed.
693
694         * char-ucs.h: Include "elhash.h".
695         (Vchar_attribute_hash_table): New external variable.
696         (struct Lisp_Charset): Delete `encoding_table'.
697         (CHARSET_ENCODING_TABLE): New implementation; refer
698         `Vchar_attribute_hash_table' instead of `encoding_table' of struct
699         `Lisp_Charset'.
700
701 2001-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
702
703         * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
704         (cs) == 0.
705
706 2001-11-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
707
708         * text-coding.c (char_encode_big5): Prefer charset-g1 than
709         `chinese-big5'.
710
711 2001-11-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
712
713         * chartab.c (uint8_byte_table_description): New constant.
714         (uint8-byte-table): Use `uint8_byte_table_description'.
715         (uint16_byte_table_description): New constant.
716         (uint16-byte-table): Use `uint16_byte_table_description'.
717
718 2001-10-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
719
720         * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
721         range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
722
723 2001-10-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
724
725         * mule-charset.c (Vcharset_ucs_ks): New variable.
726         (Qucs_ks): New variable.
727         (syms_of_mule_charset): Add new symbol `ucs-ks'.
728         (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
729
730         * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
731
732 2001-10-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
733
734         * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
735         (Fdecode_char): Likewise.
736
737         * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
738         chartab.h.
739         (Fdefine_char): Modify for Fdecode_char.
740         (Ffind_char): Likewise.
741
742         * mule-charset.c (Fdecode_char): Add new optional argument
743         `defined-only'.
744         (Fdecode_builtin_char): Modify for `Fdecode_char'.
745
746 2001-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
747
748         * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
749         -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
750         (allocate_coding_system): Initialize initial-charsets of
751         CODESYS_BIG5 in XEmacs UTF-2000.
752         (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
753         CODESYS_BIG5 in XEmacs UTF-2000.
754         (decode_coding_big5): Use initial-charset-g0 and -g1 of
755         CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
756
757         * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
758         variables.
759         (Qideograph_hanziku_{1 .. 12}): Likewise.
760         (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
761         .. 12}'.
762         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
763         `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
764         `ideograph-hanziku-{1 .. 12}'.
765
766         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
767         (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
768         ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
769         ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
770         (DECODE_DEFINED_CHAR): New inline function.
771         (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
772
773 2001-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
774
775         * mule-charset.c (Vcharset_china3_jef): Renamed from
776         `Vcharset_japanese_jef_china3'.
777         (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
778         (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
779         `{MIN|MAX}_CHAR_JEF_CHINA3'..
780         (syms_of_mule_charset): Rename `china3-jef' from
781         `japanese-jef-china3'.
782         (complex_vars_of_mule_charset): Likewise; rename
783         `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
784
785         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
786         `LEADING_BYTE_JEF_CHINA3'.
787         (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
788         (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
789
790 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
791
792         * mule-charset.c (encode_builtin_char_1): Comment out special code
793         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
794
795         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
796         (MAX_CHAR_MOJIKYO_0): Comment out.
797         (MIN_CHAR_CBETA): Changed to 0x00E20000.
798         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
799         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
800         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
801
802 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
803
804         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
805         (Qideograph_cbeta): New variable.
806         (encode_builtin_char_1): Comment out special code for
807         coded-charset `mojikyo' and `japanese-jef-china3'.
808         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
809         (complex_vars_of_mule_charset): Add new coded-charset
810         `ideograph-cbeta'.
811
812         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
813         (MIN_CHAR_CBETA): New macro.
814         (MAX_CHAR_CBETA): New macro.
815
816 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
817
818         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
819         (LEADING_BYTE_JEF_CHINA3): New macro.
820         (MIN_CHAR_JEF_CHINA3): New macro.
821         (MAX_CHAR_JEF_CHINA3): Likewise.
822         (DECODE_CHAR): Fixed.
823
824 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
825
826         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
827         (Qjapanese_jef_china3): New variable.
828         (encode_builtin_char_1): Support `japanese-jef-china3'.
829         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
830         (complex_vars_of_mule_charset): Add new coded-charset
831         `japanese-jef-china3'.
832
833 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
834
835         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
836         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
837         94^4, 96^3, 96^4, 128^n and 256^n set.
838         (put_char_table): Use `XCHARSET_CELL_RANGE'.
839         (map_char_table): Likewise.
840
841 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
842
843         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
844         UTF-2000.
845
846 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
847
848         * chartab.h (get_char_id_table): New inline function.
849
850         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
851         function.
852
853 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
854
855         * chartab.h (decode_char_table_range): New prototype in XEmacs
856         UTF-2000.
857         (put_char_id_table): New inline function in XEmacs UTF-2000.
858
859         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
860         function.
861         (decode_char_table_range): Delete static declaration in XEmacs
862         UTF-2000.
863
864 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
865
866         * chartab.c (put_char_id_table): Use `put_char_table'.
867
868 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
869
870         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
871         (map_over_uint16_byte_table): Likewise.
872         (map_over_byte_table): Likewise.
873         (map_char_table): Modify for `map_over_uint8_byte_table',
874         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
875         UTF-2000.
876
877 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
878
879         * chartab.c (struct map_char_table_for_charset_arg): New
880         structure.
881         (map_char_table_for_charset_fun): New function.
882         (map_char_table): Use `map_char_table' for encoding_table of
883         `range->charset'.
884
885 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
886
887         * chartab.c (map_char_table): Check a character is found in
888         range->charset instead of non default value is defined in
889         char-table when range is CHARTAB_RANGE_ROW.
890
891 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
892
893         * chartab.c (map_char_id_table): Deleted.
894         (Fmap_char_attribute): Use `map_char_table' instead of
895         `map_char_id_table'.
896
897 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
898
899         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
900         UTF-2000.
901         (update_syntax_table): Deleted in XEmacs UTF-2000.
902
903         * syntax.c (find_defun_start): Use `syntax_table' instead of
904         `mirror_syntax_table' in XEmacs UTF-2000.
905         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
906         UTF-2000.
907         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
908         XEmacs UTF-2000.
909         (Fmatching_paren): Likewise.
910         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
911         in XEmacs UTF-2000.
912         (find_start_of_comment): Likewise.
913         (find_end_of_comment): Likewise.
914         (Fforward_comment): Likewise.
915         (scan_lists): Likewise.
916         (char_quoted): Likewise.
917         (Fbackward_prefix_chars): Likewise.
918         (scan_sexps_forward): Likewise.
919         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
920         (update_syntax_table): Likewise.
921
922         * search.c (skip_chars): Use `syntax_table' instead of
923         `mirror_syntax_table' in XEmacs UTF-2000.
924         (wordify): Likewise.
925         (Freplace_match): Likewise.
926
927         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
928         `mirror_syntax_table' in XEmacs UTF-2000.
929         (WORDCHAR_P_UNSAFE): Likewise.
930         (re_match_2_internal): Likewise.
931
932         * font-lock.c (find_context): Use `buf->syntax_table' instead of
933         `buf->mirror_syntax_table' in XEmacs UTF-2000.
934
935         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
936         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
937
938         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
939         XEmacs UTF-2000.
940
941         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
942         UTF-2000.
943         (print_char_table): Print `default_value' in XEmacs UTF-2000.
944         (char_table_description): Delete `mirror_table' in XEmacs
945         UTF-2000.
946         (fill_char_table): Don't call `update_syntax_table' in XEmacs
947         UTF-2000.
948         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
949         (Fcopy_char_table): Likewise.
950         (put_char_table): Don't call `update_syntax_table' in XEmacs
951         UTF-2000.
952
953         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
954         `buf->mirror_syntax_table' in XEmacs UTF-2000.
955         (casify_region_internal): Likewise.
956
957         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
958
959         * buffer.c (common_init_complex_vars_of_buffer): Don't use
960         `mirror_syntax_table' in XEmacs UTF-2000.
961
962         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
963         `buf->mirror_syntax_table' in XEmacs UTF-2000.
964         (Fexpand_abbrev): Likewise.
965
966 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
967
968         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
969
970 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
971
972         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
973         (map_over_uint16_byte_table): Likewise.
974         (map_over_byte_table): Likewise.
975         (get_char_id_table): Refer `cit->default_value'.
976         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
977         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
978         of character-id ranges.
979         (mark_char_table): Mark `ct->default_value'.
980         (char_table_description): Add `default_value'.
981         (fill_char_table): Use `default_value'.
982         (decode_char_table_range): Decode `nil' as
983         `CHARTAB_RANGE_DEFAULT'.
984         (get_char_id_table): Refer `cit->default_value'.
985         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
986         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
987         temporary hack; check value of char-table is bound or not.
988         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
989
990         * chartab.h (struct Lisp_Char_Table): Add new member
991         `default_value' in XEmacs UTF-2000.
992         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
993         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
994         UTF-2000.
995
996 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
997
998         * chartab.h (Lisp_Char_ID_Table): Deleted.
999
1000         * chartab.c (char_table_description): Fix typo.
1001         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
1002         `Lisp_Char_ID_Table'.
1003
1004 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1005
1006         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
1007         `CHAR_ID_TABLE_P'.
1008
1009         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
1010         `CHAR_ID_TABLE_P'.
1011
1012         * chartab.h (XCHAR_ID_TABLE): Deleted.
1013         (XSETCHAR_ID_TABLE): Deleted.
1014         (CHAR_ID_TABLE_P): Deleted.
1015
1016         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
1017         `CHAR_ID_TABLE_P'.
1018         (Fget_composite_char): Likewise.
1019         (put_char_table): Likewise.
1020         (add_char_attribute_alist_mapper): Fixed.
1021         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
1022         `CHAR_ID_TABLE_P'.
1023         (Fget_char_attribute): Likewise.
1024         (Fget_char_attribute): Likewise.
1025         (Fmap_char_attribute): Likewise.
1026
1027         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
1028         `CHAR_ID_TABLE_P'.
1029         (encode_char_1): Likewise.
1030
1031 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1032
1033         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
1034         `XCHAR_ID_TABLE'.
1035
1036         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
1037         instead of `XCHAR_ID_TABLE'.
1038         (remove_char_ccs): Likewise.
1039
1040         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
1041         `XCHAR_ID_TABLE'.
1042         (Fget_composite_char): Likewise.
1043         (Fchar_variants): Likewise.
1044         (put_char_table): Likewise.
1045         (add_char_attribute_alist_mapper): Likewise.
1046         (Fchar_attribute_alist): Likewise.
1047         (Fget_char_attribute): Likewise.
1048         (Fput_char_attribute): Likewise.
1049         (Fmap_char_attribute): Likewise.
1050         (Fmap_char_attribute): Likewise.
1051
1052         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
1053         `XCHAR_ID_TABLE'.
1054         (encode_char_1): Likewise.
1055
1056 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1057
1058         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
1059         `Lisp_Char_ID_Table'.
1060         (mark_char_id_table): Deleted.
1061         (print_char_id_table): Likewise.
1062         (char_id_table_equal): Likewise.
1063         (char_id_table_hash): Likewise.
1064         (char_id_table_description): Likewise.
1065         (char_id_table): Likewise.
1066         (make_char_id_table): Use `Fmake_char_table' and
1067         `fill_char_table'.
1068         (get_char_id_table): Use `Lisp_Char_Table' instead of
1069         `Lisp_Char_ID_Table'.
1070         (put_char_id_table): Likewise.
1071         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
1072         `XCHAR_ID_TABLE'.
1073         (Fremove_char_attribute): Likewise.
1074         (syms_of_chartab): Don't define type `char-id-table'.
1075
1076         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
1077         (char_id_table): Likewise.
1078         (GC_CHAR_ID_TABLE_P): Likewise.
1079         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
1080         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
1081         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
1082         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
1083         (get_char_id_table): Use `Lisp_Char_Table' instead of
1084         `Lisp_Char_ID_Table'.
1085         (put_char_id_table_0): Likewise.
1086         (put_char_id_table): Likewise.
1087
1088 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1089
1090         * chartab.h: Lisp_Byte_Table related codes are moved from
1091         chartab.h.
1092
1093         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
1094
1095 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1096
1097         * chartab.h: Don't include "chartab.h".
1098         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
1099         (Lisp_Char_ID_Table): Likewise.
1100         (char_id_table): Likewise.
1101         (XCHAR_ID_TABLE): Likewise.
1102         (XSETCHAR_ID_TABLE): Likewise.
1103         (CHAR_ID_TABLE_P): Likewise.
1104         (GC_CHAR_ID_TABLE_P): Likewise.
1105         (get_char_id_table): Likewise.
1106
1107         * char-ucs.h: Include "chartab.h".
1108         (struct Lisp_Char_ID_Table): Moved to chartab.h.
1109         (Lisp_Char_ID_Table): Likewise.
1110         (char_id_table): Likewise.
1111         (XCHAR_ID_TABLE): Likewise.
1112         (XSETCHAR_ID_TABLE): Likewise.
1113         (CHAR_ID_TABLE_P): Likewise.
1114         (GC_CHAR_ID_TABLE_P): Likewise.
1115         (get_char_id_table): Likewise.
1116
1117 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1118
1119         * chartab.c (copy_uint8_byte_table): New function.
1120         (copy_uint16_byte_table): New function.
1121         (copy_byte_table): New function.
1122         (map_over_uint8_byte_table): Modify to avoid huge numbers of
1123         characters to call.
1124         (map_over_uint16_byte_table): Likewise.
1125         (map_over_byte_table): Likewise.
1126         (get_byte_table): Move prototype to chartab.h.
1127         (put_byte_table): Likewise.
1128         (put_char_id_table_0): Moved to chartab.h.
1129         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
1130         (char_table_entry_equal): Likewise.
1131         (char_table_entry_hash): Likewise.
1132         (char_table_entry_description): Likewise.
1133         (char_table_entry): Likewise.
1134         (make_char_table_entry): Likewise.
1135         (copy_char_table_entry): Likewise.
1136         (get_non_ascii_char_table_value): Likewise.
1137         (map_over_charset_ascii): Likewise.
1138         (map_over_charset_control_1): Likewise.
1139         (map_over_charset_row): Likewise.
1140         (map_over_other_charset): Likewise.
1141         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
1142         (print_char_table): Likewise.
1143         (char_table_equal): Likewise.
1144         (char_table_hash): Likewise.
1145         (char_table_description): Likewise.
1146         (fill_char_table): Likewise.
1147         (Fcopy_char_table): Likewise.
1148         (get_char_table): Likewise.
1149         (Fget_range_char_table): Likewise.
1150         (put_char_table): Likewise.
1151         (map_char_table): Likewise.
1152         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
1153         UTF-2000.
1154
1155 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1156
1157         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
1158         `Vauto_fill_chars' in XEmacs UTF-2000.
1159
1160         * chartab.h (get_byte_table): New prototype [moved from
1161         chartab.c].
1162         (put_byte_table): Likewise [moved from chartab.c].
1163         (put_char_id_table_0): New inline function [moved from chartab.c].
1164         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
1165         (Lisp_Char_Table_Entry): Likewise.
1166         (char_table_entry): Likewise.
1167         (XCHAR_TABLE_ENTRY): Likewise.
1168         (XSETCHAR_TABLE_ENTRY): Likewise.
1169         (CHAR_TABLE_ENTRYP): Likewise.
1170         (CHECK_CHAR_TABLE_ENTRY): Likewise.
1171         (NUM_ASCII_CHARS): Likewise.
1172         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
1173         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
1174
1175 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1176
1177         * chartab.c (get_char_id_table): Change interface.
1178         (put_char_id_table_0): New function.
1179         (put_char_id_table): Change interface; new implementation.
1180         (Fget_composite_char): Modify for interface change of
1181         `get_char_id_table'.
1182         (Fchar_variants): Likewise.
1183         (add_char_attribute_alist_mapper): Likewise.
1184         (Fchar_attribute_alist): Likewise.
1185         (Fget_char_attribute): Likewise.
1186         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
1187         as same as character as the first argument like `put-char-table';
1188         modify for interface change of `put_char_id_table'.
1189         (Fremove_char_attribute): Modify for interface change of
1190         `put_char_id_table'.
1191
1192 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1193
1194         * text-coding.c: Sync up with XEmacs 21.2.41.
1195         (COMPOSE_ADD_CHAR): Modify for interface change of
1196         `get_char_id_table'.
1197
1198         * mule-charset.c (put_char_ccs_code_point): Modify for interface
1199         change of `put_char_id_table'.
1200         (remove_char_ccs): Likewise.
1201
1202         * chartab.h (put_char_id_table): Change interface.
1203
1204         * char-ucs.h (get_char_id_table): Change interface.
1205         (charset_code_point): Modify for interface change of
1206         `get_char_id_table'.
1207         (encode_char_1): Likewise.
1208
1209 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1210
1211         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
1212         argument `ccs'.
1213         (map_over_uint16_byte_table): Likewise.
1214         (map_over_byte_table): Likewise.
1215         (map_char_id_table): Add new argument `range' like
1216         `map_char_table'.
1217         (Fmap_char_attribute): Add new argument `range' like
1218         `Fmap_char_table'.
1219
1220 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1221
1222         * chartab.c (map_over_uint8_byte_table): Change interface of
1223         mapping function to use struct chartab_range instead of Emchar.
1224         (map_over_uint16_byte_table): Likewise.
1225         (map_over_byte_table): Likewise.
1226         (map_char_id_table): Likewise.
1227         (struct slow_map_char_id_table_arg): Deleted.
1228         (slow_map_char_id_table_fun): Deleted.
1229         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
1230         function `slow_map_char_table_fun' instead of struct
1231         `slow_map_char_id_table_arg' and function
1232         `slow_map_char_id_table_fun'.
1233
1234 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1235
1236         * mule-charset.c: Move char-it-table related codes to chartab.c.
1237         (Vutf_2000_version): Moved to chartab.c.
1238         (Fdefine_char): Likewise.
1239         (Ffind_char): Likewise.
1240         (syms_of_mule_charset): Move types `uint8-byte-table',
1241         `uint16-byte-table', `byte-table' and `char-id-table' to
1242         chartab.c; move functions `char_attribute_list,
1243         `find_char_attribute_table, `char_attribute_alist,
1244         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
1245         `map_char_attribute, `define_char, `find_char, `char_variants and
1246         `get_composite_char to chartab.c; move symbols `=>ucs',
1247         `->decomposition', `compat', `isolated', `initial', `medial',
1248         `final', `vertical', `noBreak', `fraction', `super', `sub',
1249         `circle', `square', `wide', `narrow', `small' and `font' to
1250         chartab.c.
1251         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
1252         setting codes for `Vcharacter_composition_table' and
1253         `Vcharacter_variant_table' to chartab.c.
1254         (complex_vars_of_mule_charset): Move setting code for
1255         `Vchar_attribute_hash_table' to chartab.c.
1256
1257         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
1258         (make_char_id_table): New prototype.
1259         (put_char_id_table): Likewise.
1260         (Fget_char_attribute): Likewise.
1261
1262         * chartab.c: Move char-id-table related code from mule-charset.c.
1263         (Vutf_2000_version): Moved from mule-charset.c.
1264
1265         * char-ucs.h (Qucs): New external variable.
1266         (put_char_ccs_code_point): New prototype.
1267         (remove_char_ccs): Likewise.
1268
1269 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1270
1271         * mule-charset.c (Vcharset_ucs_jis): New variable.
1272         (Qucs_jis): Likewise.
1273         (syms_of_mule_charset): Add new symbol `ucs-jis'.
1274         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
1275
1276         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
1277
1278 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1279
1280         * mule-charset.c (map_over_uint8_byte_table): New function.
1281         (map_over_uint16_byte_table): Likewise.
1282         (map_over_byte_table): Likewise.
1283         (map_char_id_table): Likewise.
1284         (slow_map_char_id_table_fun): Likewise.
1285         (Fmap_char_attribute): Likewise.
1286         (syms_of_mule_charset): Add new function `map-char-attribute'.
1287
1288 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1289
1290         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
1291         (syms_of_mule_charset): Add new function `find-char'.
1292
1293 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1294
1295         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
1296         XEmacs UTF-2000.
1297         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
1298         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
1299         XEmacs UTF-2000.
1300         (complex_vars_of_mule_charset): Add new coded-charset
1301         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
1302         `ideograph-gt-pj-*'.
1303
1304         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
1305
1306 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1307
1308         * mule-charset.c (encode_builtin_char_1): Purge codes about
1309         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
1310         {MIN|MAX}_CHAR_HEBREW.
1311         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
1312         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
1313
1314         * char-ucs.h (MIN_CHAR_GREEK): Purged.
1315         (MAX_CHAR_GREEK): Purged.
1316         (MIN_CHAR_CYRILLIC): Purged.
1317         (MAX_CHAR_CYRILLIC): Purged.
1318         (MIN_CHAR_HEBREW): Commented out.
1319         (MAX_CHAR_HEBREW): Likewise.
1320
1321 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1322
1323         * mule-charset.c (Qto_ucs): New variable.
1324         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
1325         (Fdefine_char): Likewise.
1326         (syms_of_mule_charset): Add new symbol `=>ucs'.
1327
1328 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1329
1330         * mule-charset.c (Fdecode_char): Fixed.
1331
1332 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1333
1334         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
1335         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
1336         "tcvn5712-1".
1337
1338 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1339
1340         * mule-charset.c (Vcharset_ucs_big5): New variable.
1341         (Qucs_big5): Likewise.
1342         (syms_of_mule_charset): Add new symbol `ucs-big5'.
1343         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
1344
1345         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
1346
1347 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1348
1349         * mule-charset.c (decode_builtin_char): Check Big5 code range
1350         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
1351
1352 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1353
1354         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
1355         (Qchinese_gb12345): Likewise.
1356         (Fdecode_builtin_char): Fixed.
1357         (syms_of_mule_charset): Add `chinese-gb12345'.
1358         (complex_vars_of_mule_charset): Add coded-charset
1359         `chinese-gb12345'.
1360
1361         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
1362         (LEADING_BYTE_CHINESE_GB12345): New macro.
1363
1364 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1365
1366         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
1367         and `latin-viscii-upper' for `latin-viscii'.
1368
1369 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1370
1371         * mule-charset.c (Fdecode_builtin_char): Comment out
1372         regularization code for ISO-IR GR representation.
1373
1374 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1375
1376         * mule-charset.c (decode_builtin_char): New function; renamed from
1377         `make_builtin_char'; return -1 instead of signal.
1378         (Fdecode_builtin_char): Use `decode_builtin_char'.
1379
1380         * char-ucs.h (decode_builtin_char): New prototype; renamed from
1381         `make_builtin_char'.
1382         (DECODE_CHAR): Use `decode_builtin_char' instead of
1383         `make_builtin_char'; use mapping table of `chinese-big5' for
1384         `chinese-big5-{1,2}'.
1385
1386 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1387
1388         * text-coding.c (char_encode_big5): New function.
1389         (char_finish_big5): Likewise.
1390         (reset_encoding_stream): Use `char_encode_big5' and
1391         `char_finish_big5' for CODESYS_BIG5.
1392         (mule_encode): Don't use `encode_coding_big5'.
1393         (encode_coding_big5): Deleted.
1394
1395 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1396
1397         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
1398         0x81- in XEmacs UTF-2000.
1399         (detect_coding_big5): Likewise.
1400
1401 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1402
1403         * mule-charset.c (Fdefine_char): Don't use a CCS property to
1404         generate character-id if the CCS property does not have
1405         corresponding predefined character.
1406         (make_builtin_char): Return -1 if corresponding predefined
1407         character is not found.
1408         (Fdecode_char): Return nil if corresponding character is not
1409         found.
1410         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
1411         don't map to builtin ucs space.
1412
1413 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1414
1415         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
1416         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
1417
1418 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1419
1420         * mule-charset.c (Vcharset_ideograph_gt): New variable.
1421         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
1422         (Qideograph_gt): Likewise.
1423         (Qideograph_gt_pj_{1..11}): Likewise.
1424         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
1425         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
1426         `ideograph-gt-pj-11'.
1427         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
1428         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
1429         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
1430
1431         * char-ucs.h (LEADING_BYTE_GT): New macro.
1432         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
1433         (MIN_CHAR_GT): Likewise.
1434         (MAX_CHAR_GT): Likewise.
1435
1436 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1437
1438         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
1439         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
1440
1441         * doprnt.c (unsigned_int_converters): Add `c'.
1442         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
1443
1444         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
1445         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
1446         `MIN_CHAR_MOJIKYO'.
1447         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
1448         (MAX_CHAR_MOJIKYO_0): New macro.
1449         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
1450
1451 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1452
1453         * mule-charset.c (Fdefine_char): Delete cemented out code.
1454         (encode_builtin_char_1): Modify for new allocation of builtin
1455         Mojikyo characters.
1456
1457         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
1458
1459 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1460
1461         * mule-charset.c (Vcharset_ucs_cns): New variable.
1462         (Qucs_cns): New variable.
1463         (syms_of_mule_charset): Add new symbol `ucs-cns'.
1464         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
1465
1466 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1467
1468         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
1469
1470 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
1471
1472         * search.c (search_buffer): Make `charset_base_code' as
1473         character-id >> 6 to eliminate the corresponding last byte in
1474         UTF-8 representation [I'm not sure it is right thing].
1475         (boyer_moore): Likewise.
1476
1477 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
1478
1479         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
1480         representation in MULE.
1481
1482 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1483
1484         * text-coding.c (Fmake_coding_system): Use
1485         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
1486         `EXTERNAL_PROPERTY_LIST_LOOP'.
1487
1488 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1489
1490         * text-coding.c (decode_output_utf8_partial_char): New function.
1491         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
1492
1493 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1494
1495         * text-coding.c (decode_coding_utf8): Output original byte
1496         sequence if it is broken; change order of conditions.
1497
1498         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
1499         of conditions.
1500
1501         * mb-multibyte.h (BYTE_ASCII_P):
1502         Use bit ops for char-signedness safety.
1503         (BYTE_C0_P): Use bit ops for char-signedness safety.
1504         (BYTE_C1_P): Use bit ops for char-signedness safety.
1505
1506         * character.h: (XCHAR_OR_CHAR_INT):
1507         Always use inline function.
1508         Remove redundant type checking assert() - XINT will abort quite
1509         nicely.
1510
1511 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1512
1513         * text-coding.c: (Fencode_shift_jis_char):
1514         (Fencode_big5_char):
1515         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
1516         Replace 0 with '\0' when working with bytes.
1517         Replace initial "(" with "\(" in docstrings.
1518
1519         (Fmake_coding_system):
1520         When type is ccl and value is vector, register it with a proper
1521         symbol.  And checks whether the given ccl program is valid.
1522         (mule_decode): When calling ccl_driver, if src indicates
1523         NULL pointer, set an empty string instead.
1524         (mule_encode): Likewise.
1525
1526         (detect_eol_type):
1527         (detect_coding_sjis):
1528         (decode_coding_sjis):
1529         (detect_coding_big5):
1530         (decode_coding_big5):
1531         (detect_coding_ucs4):
1532         (decode_coding_ucs4):
1533         (detect_coding_utf8):
1534         (decode_coding_utf8):
1535         (detect_coding_iso2022):
1536         (decode_coding_iso2022):
1537         (decode_coding_no_conversion):
1538         (mule_decode):
1539         Make all detecting and decoding functions take an Extbyte * arg.
1540         (text_encode_generic):
1541         (encode_coding_big5):
1542         (encode_coding_no_conversion):
1543         (mule_encode):
1544         Make all encoding functions take a Bufbyte * arg.
1545         Use size_t instead of unsigned int for memory sizes.
1546         Only cast to unsigned char whenever dereferencing Extbyte *.
1547
1548         (struct lrecord_description fcd_description_1): Use countof.
1549         (complex_vars_of_file_coding):
1550         Use countof instead of sizeof.
1551         Use CHECK_NATNUM instead of CHECK_INT.
1552
1553 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1554
1555         * mule-charset.c (Fget_char_attribute): Add new optional argument
1556         `default-value'.
1557         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
1558         (remove_char_ccs): Likewise.
1559
1560 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1561
1562         * text-coding.c (char_encode_shift_jis): New implementation in
1563         UTF-2000.
1564         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
1565         ...)'.
1566
1567         * mule-charset.c (Vcharset_chinese_big5): New variable in
1568         UTF-2000.
1569         (Qchinese_big5): New variable in UTF-2000.
1570         (BIG5_SAME_ROW): New macro in UTF-2000.
1571         (make_builtin_char): Use builtin characters of
1572         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
1573         characters of `Vcharset_chinese_big5'.
1574         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
1575         (complex_vars_of_mule_charset): Add new coded-charset
1576         `chinese-big5' in UTF-2000.
1577
1578         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
1579         (Vcharset_chinese_big5): New external variable declaration.
1580         (Vcharset_japanese_jisx0208_1990): Likewise.
1581
1582 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1583
1584         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
1585         function.
1586         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
1587
1588 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1589
1590         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
1591         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
1592         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
1593         `mojikyo-pj-*'.
1594
1595 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1596
1597         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
1598
1599 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1600
1601         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1602         to 0.17.
1603
1604 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1605
1606         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
1607         for `CHARSET_BY_ATTRIBUTES'.
1608         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
1609         `CHARSET_BY_ATTRIBUTES'.
1610
1611         * text-coding.c (struct decoding_stream): Rename member `CH' to
1612         `CPOS'.
1613         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
1614         (decode_coding_sjis): Likewise.
1615         (decode_coding_big5): Likewise.
1616         (decode_coding_ucs4): Likewise.
1617         (decode_coding_utf8): Likewise.
1618         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
1619         `CHARSET_BY_ATTRIBUTES'.
1620         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
1621         `str->counter'; decode 3, 4 bytes sets.
1622         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
1623         sets.
1624         (decode_coding_no_conversion): Use `str->cpos' instead of
1625         `str->ch'.
1626
1627         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
1628         (Qmojikyo_2022_1): New variable.
1629         (make_charset): Don't use `CHARSET_TYPE_*'.
1630         (range_charset_code_point): Support coded-charset
1631         `mojikyo-2022-1'.
1632         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
1633         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
1634         `CHARSET_BY_ATTRIBUTES'.
1635         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
1636         `CHARSET_BY_ATTRIBUTES'.
1637         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
1638         (complex_vars_of_mule_charset): Add new coded-charset
1639         `mojikyo-2022-1'.
1640
1641         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
1642         interface; changed to inline function.
1643
1644         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
1645         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
1646         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
1647         (CHARSET_TYPE_94): Deleted.
1648         (CHARSET_TYPE_94X94): Deleted.
1649         (CHARSET_TYPE_96): Deleted.
1650         (CHARSET_TYPE_96X96): Deleted.
1651         (CHARSET_TYPE_128): Deleted.
1652         (CHARSET_TYPE_128X128): Deleted.
1653         (CHARSET_TYPE_256): Deleted.
1654         (CHARSET_TYPE_256X256): Deleted.
1655         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
1656         to inline function.
1657         (DECODE_MOJIKYO_2022): New inline function.
1658         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
1659         `Vcharset_mojikyo_2022_1'.
1660
1661 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1662
1663         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
1664         instead of `EQ'.
1665         (put_byte_table): Likewise.
1666         (char_id_table_equal): Use `get_byte_table' [new implementation].
1667
1668 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1669
1670         * mule-charset.c: Include <limits.h> in UTF-2000.
1671         (BT_UINT8_MIN): New macro in UTF-2000.
1672         (BT_UINT8_MAX): New macro in UTF-2000.
1673         (BT_UINT8_t): New macro in UTF-2000.
1674         (BT_UINT8_nil): New macro in UTF-2000.
1675         (BT_UINT8_unbound): New macro in UTF-2000.
1676         (INT_UINT8_P): New inline function in UTF-2000.
1677         (UINT8_VALUE_P): New inline function in UTF-2000.
1678         (UINT8_ENCODE): New inline function in UTF-2000.
1679         (UINT8_DECODE): New inline function in UTF-2000.
1680         (mark_uint8_byte_table): New function in UTF-2000.
1681         (print_uint8_byte_table): New function in UTF-2000.
1682         (uint8_byte_table_equal): New function in UTF-2000.
1683         (uint8_byte_table_hash): New function in UTF-2000.
1684         (make_uint8_byte_table): New function in UTF-2000.
1685         (uint8_byte_table_same_value_p): New function in UTF-2000.
1686         (BT_UINT16_MIN): New macro in UTF-2000.
1687         (BT_UINT16_MAX): New macro in UTF-2000.
1688         (BT_UINT16_t): New macro in UTF-2000.
1689         (BT_UINT16_nil): New macro in UTF-2000.
1690         (BT_UINT16_unbound): New macro in UTF-2000.
1691         (INT_UINT16_P): New inline function in UTF-2000.
1692         (UINT16_VALUE_P): New inline function in UTF-2000.
1693         (UINT16_ENCODE): New inline function in UTF-2000.
1694         (UINT16_DECODE): New inline function in UTF-2000.
1695         (UINT8_TO_UINT16): New inline function in UTF-2000.
1696         (mark_uint16_byte_table): New function in UTF-2000.
1697         (print_uint16_byte_table): New function in UTF-2000.
1698         (uint16_byte_table_equal): New function in UTF-2000.
1699         (uint16_byte_table_hash): New function in UTF-2000.
1700         (make_uint16_byte_table): New function in UTF-2000.
1701         (uint16_byte_table_same_value_p): New function in UTF-2000.
1702         (print_byte_table): New function in UTF-2000.
1703         (byte-table): Use `print_byte_table' as printer.
1704         (make_byte_table): Delete second argument `older'.
1705         (byte_table_same_value_p): New function in UTF-2000.
1706         (copy_byte_table): Deleted.
1707         (get_byte_table): New function in UTF-2000.
1708         (put_byte_table): New function in UTF-2000.
1709         (print_char_id_table): New function in UTF-2000.
1710         (char-id-table): Use `print_char_id_table' as printer.
1711         (make_char_id_table): Delete second argument `older'.
1712         (get_char_id_table): Use `get_byte_table [new implementation].
1713         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
1714         implementation].
1715         (Ffind_char_attribute_table): New function in UTF-2000.
1716         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
1717         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
1718         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
1719         (syms_of_mule_charset): Add new function
1720         `find-char-attribute-table' in UTF-2000.
1721
1722         * lrecord.h (enum lrecord_type): Add
1723         `lrecord_type_uint16_byte_table' and
1724         `lrecord_type_uint8_byte_table'.
1725
1726         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
1727         (Lisp_Uint8_Byte_Table): New type.
1728         (XUINT8_BYTE_TABLE): New macro.
1729         (XSETUINT8_BYTE_TABLE): New macro.
1730         (UINT8_BYTE_TABLE_P): New macro.
1731         (GC_UINT8_BYTE_TABLE_P): New macro.
1732         (struct Lisp_Uint16_Byte_Table): New structure.
1733         (Lisp_Uint16_Byte_Table): New type.
1734         (XUINT16_BYTE_TABLE): New macro.
1735         (XSETUINT16_BYTE_TABLE): New macro.
1736         (UINT16_BYTE_TABLE_P): New macro.
1737         (GC_UINT16_BYTE_TABLE_P): New macro.
1738
1739 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1740
1741         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
1742         (Vcharacter_ideographic_strokes_table): Deleted.
1743         (Vcharacter_total_strokes_table): Deleted.
1744         (Vcharacter_morohashi_daikanwa_table): Deleted.
1745         (Vcharacter_decomposition_table): Deleted.
1746         (Qname): Deleted because it is duplicated.
1747         (Qideographic_radical): Deleted.
1748         (Qideographic_strokes): Deleted.
1749         (Qtotal_strokes): Deleted.
1750         (Qmorohashi_daikanwa): Deleted.
1751         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
1752         `ideographic-radical', `ideographic-strokes', `total-strokes',
1753         `morohashi-daikanwa' and `->decomposition'.
1754         (Fget_char_attribute): Likewise.
1755         (Fput_char_attribute): Likewise; use `make-vector' instead of
1756         `make_older_vector' for `->decomposition' value.
1757         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
1758         `ideograph-daikanwa'.
1759         (syms_of_mule_charset): Delete builtin symbols `name',
1760         `ideographic-radical', `ideographic-strokes', `total-strokes' and
1761         `morohashi-daikanwa'.
1762         (vars_of_mule_charset): Don't setup
1763         `Vcharacter_ideographic_radical_table',
1764         `Vcharacter_ideographic_strokes_table',
1765         `Vcharacter_total_strokes_table',
1766         `Vcharacter_morohashi_daikanwa_table' and
1767         `Vcharacter_decomposition_table'.
1768
1769 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1770
1771         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
1772         `make_older_vector', `make_vector_newer_1' and
1773         `make_vector_newer'.
1774
1775         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
1776         `make_older_vector' and `make_vector_newer'.
1777
1778         * config.h.in (HAVE_GGC): New macro.
1779
1780 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1781
1782         * mule-charset.c (struct char_attribute_list_closure): New
1783         structure in UTF-2000.
1784         (add_char_attribute_to_list_mapper): New function in UTF-2000.
1785         (Fchar_attribute_list): Likewise.
1786         (Fset_charset_mapping_table): Use `make_vector_newer'.
1787         (Fdecode_builtin_char): New function in UTF-2000.
1788         (syms_of_mule_charset): Add new function `char-attribute-list' and
1789         `decode-builtin-char' in UTF-2000.
1790
1791         * lisp.h (make_vector_newer): New prototype.
1792
1793         * alloc.c (make_vector_newer_1): New function.
1794         (make_vector_newer): New function.
1795
1796 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1797
1798         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
1799         50100)'.
1800
1801 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1802
1803         * mule-charset.c (Vchar_attribute_hash_table): New variable.
1804         (Vcharacter_attribute_table): Deleted.
1805         (Vcharacter_name_table): Deleted.
1806         (put_char_attribute): Deleted.
1807         (remove_char_attribute): Deleted.
1808         (struct char_attribute_alist_closure): New structure.
1809         (add_char_attribute_alist_mapper): New function.
1810         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
1811         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
1812         (Fget_char_attribute): Likewise.
1813         (Fput_char_attribute): Likewise.
1814         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
1815         of `remove_char_attribute'.
1816         (Fdefine_char): Return character.
1817         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
1818         and `Vcharacter_name_table'.
1819         (complex_vars_of_mule_charset): Likewise
1820         `Vchar_attribute_hash_table'.
1821
1822 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1823
1824         * character.h (CHARC_CHARSET): New macro.
1825         (CHARC_CHARSET_ID): New macro.
1826         (CHARC_CODE_POINT): New macro.
1827         (CHARC_COLUMNS): New macro.
1828         (CHARC_TO_CHAR): New inline function.
1829         (CHARC_EQ): New inline function.
1830         (CHARC_ASCII_EQ): New inline function.
1831         (CHARC_IS_SPACE): New inline function.
1832         (ASCII_TO_CHARC): New inline function.
1833
1834         * char-ucs.h (encode_char_2): Deleted.
1835         (ENCODE_CHAR): Use `encode_char_1' again.
1836         (breakup_char_1): Likewise.
1837         (CHAR_TO_CHARC): New inline function.
1838
1839         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
1840
1841 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1842
1843         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
1844         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
1845         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
1846         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
1847         (create_string_text_block): Use `CHARC_ASCII_EQ' and
1848         `CHARC_IS_SPACE'.
1849         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
1850
1851         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
1852         `CHARC_CODE_POINT'.
1853         (x_output_display_block): Use `CHARC_CHARSET' and
1854         `CHARC_ASCII_EQ'.
1855
1856         * redisplay-tty.c (tty_output_display_block): Use
1857         `CHARC_ASCII_EQ'.
1858         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
1859
1860         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
1861
1862         * insdel.c (find_charsets_in_charc_string): Use
1863         `CHARC_CHARSET_ID'.
1864         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
1865         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
1866         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
1867         (convert_charc_string_into_malloced_string): Likewise.
1868
1869 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1870
1871         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
1872         instead of <Emchar_dynarr *> for buf; use
1873         `convert_bufbyte_string_into_charc_dynarr' instead of
1874         `convert_bufbyte_string_into_emchar_dynarr'; use
1875         `find_charsets_in_charc_string' instead of
1876         `find_charsets_in_emchar_string'.
1877
1878         * redisplay.h:
1879         - Include "character.h".
1880         (struct rune): New member `cglyph'; delete member `chr'.
1881
1882         * redisplay.c (redisplay_text_width_charc_string): New function;
1883         delete `redisplay_text_width_emchar_string'.
1884         (rtw_charc_dynarr): New variable; renamed from
1885         `rtw_emchar_dynarr'.
1886         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
1887         `rtw_emchar_dynarr'; use
1888         `convert_bufbyte_string_into_charc_dynarr' instead of
1889         `convert_bufbyte_string_into_emchar_dynarr'; use
1890         `redisplay_text_width_charc_string' instead of
1891         `redisplay_text_width_emchar_string'.
1892         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
1893         instead of `rtw_emchar_dynarr'; use
1894         `convert_bufbyte_string_into_charc_dynarr' instead of
1895         `convert_bufbyte_string_into_emchar_dynarr'.
1896         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
1897         `redisplay_text_width_charc_string' instead of
1898         `redisplay_text_width_emchar_string'.
1899         (create_text_block): Modify for <struct rune> change.
1900         (generate_formatted_string_db): Likewise.
1901         (create_string_text_block): Likewise.
1902         (pixel_to_glyph_translation): Likewise.
1903
1904         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
1905         instead of <const Emchar *>.
1906         (x_text_width): Likewise.
1907         (x_output_display_block): Use <Charc_dynarr *> instead
1908         <Emchar_dynarr *>; modify for <structure rune> change.
1909         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
1910         *>.
1911
1912         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
1913         <const Emchar *>; use `charc_string_displayed_columns' instead of
1914         `emchar_string_displayed_columns'.
1915         (tty_output_display_block): Use <Charc_dynarr *> instead of
1916         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
1917         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
1918         (tty_output_charc_dynarr_dynarr): New variable; renamed from
1919         `tty_output_emchar_dynarr_dynarr'.
1920         (tty_output_charc_dynarr): New function; delete
1921         `tty_output_charc_dynarr'.
1922
1923         * redisplay-output.c (compare_runes): Modify for `struct rune'.
1924         (redisplay_output_layout): Use <Charc_dynarr *> instead of
1925         <Emchar_dynarr *> for buf; use
1926         `convert_bufbyte_string_into_charc_dynarr' instead of
1927         `convert_bufbyte_string_into_emchar_dynarr'.
1928
1929         * frame.c (title_string_charc_dynarr): New variable; renamed from
1930         `title_string_emchar_dynarr'.
1931         (generate_title_string): Use `title_string_charc_dynarr' instead
1932         of `title_string_emchar_dynarr'; use
1933         `convert_charc_string_into_malloced_string' instead of
1934         `convert_emchar_string_into_malloced_string'.
1935         (init_frame): Use `title_string_charc_dynarr' instead of
1936         `title_string_emchar_dynarr'.
1937
1938         * console.h:
1939         - Include "character.h".
1940         (struct console_methods): Use <const Charc *> instead of <const
1941         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
1942         <Emchar_dynarr *> in output_string_method.
1943
1944         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
1945         <Emchar_dynarr *>.
1946
1947         * console-stream.c (stream_text_width): Use <const Charc *>
1948         instead of <const Emchar *>.
1949
1950         * character.h (Charc_dynarr): New type.
1951
1952         * char-ucs.h (structure Charc): New structure; define new type
1953         `Charc'.
1954
1955         * char-lb.h (DECODE_CHAR): New inline function.
1956         (encode_char_1): New inline function.
1957         (ENCODE_CHAR): New macro.
1958         (structure Charc): New structure; define new type `Charc'.
1959
1960         * char-1byte.h (Vcharset_control_1): New macro.
1961         (Vcharset_latin_iso8859_1): New macro.
1962         (DECODE_CHAR): New inline function.
1963         (encode_char_1): New inline function.
1964         (ENCODE_CHAR): New macro.
1965         (structure Charc): New structure; define new type `Charc'.
1966
1967         * insdel.c (find_charsets_in_charc_string): New function; delete
1968         `find_charsets_in_emchar_string'.
1969         (charc_string_displayed_columns): New function; delete
1970         `emchar_string_displayed_columns'.
1971         (convert_bufbyte_string_into_charc_dynarr): New function; delete
1972         `convert_bufbyte_string_into_emchar_dynarr'.
1973         (convert_charc_string_into_bufbyte_dynarr): New function; delete
1974         `convert_charc_string_into_bufbyte_dynarr'.
1975         (convert_charc_string_into_malloced_string): New function; delete
1976         `convert_charc_string_into_malloced_string'.
1977
1978         * buffer.h (find_charsets_in_charc_string): New prototype; delete
1979         `find_charsets_in_emchar_string'.
1980         (charc_string_displayed_columns): New prototype; delete
1981         `emchar_string_displayed_columns'.
1982         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
1983         `convert_charc_string_into_bufbyte_dynarr'.
1984         (convert_charc_string_into_malloced_string): New prototype; delete
1985         `convert_charc_string_into_malloced_string'.
1986
1987 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1988
1989         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
1990
1991 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1992
1993         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
1994
1995         * char-ucs.h: Use <short> for <Charset_ID>.
1996
1997         * mule-charset.h, char-1byte.h: Use <unsigned char> for
1998         <Charset_ID>.
1999
2000 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2001
2002         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2003         to 0.16.
2004
2005 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2006
2007         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
2008         variable.
2009         (Qmorohashi_daikanwa): New variable.
2010         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
2011         for `morohashi-daikanwa' attribute.
2012         (Fget_char_attribute): Likewise.
2013         (Fput_char_attribute): Likewise.
2014         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
2015         has the same value of `ideograph-daikanwa'.
2016         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
2017         (vars_of_mule_charset): Setup
2018         `Vcharacter_morohashi_daikanwa_table'.
2019
2020 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2021
2022         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
2023         attributes.
2024         (add_charset_to_list_mapper): Add `key' instead of
2025         `XCHARSET_NAME (value)' to return aliases.
2026
2027 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2028
2029         * mule-charset.c (Vcharacter_ideographic_radical_table): New
2030         variable.
2031         (Vcharacter_ideographic_strokes_table): New variable.
2032         (Qideographic_radical): New variable.
2033         (Qideographic_strokes): New variable.
2034         (Fchar_attribute_alist): Use
2035         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
2036         attribute; use `Vcharacter_ideographic_strokes_table' for
2037         `ideographic-strokes' attribute.
2038         (Fget_char_attribute): Likewise.
2039         (Fput_char_attribute): Likewise.
2040         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
2041         `ideographic-strokes'.
2042         (vars_of_mule_charset): Setup
2043         `Vcharacter_ideographic_radical_table' and
2044         `Vcharacter_ideographic_strokes_table'.
2045
2046 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2047
2048         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
2049         (Qtotal_strokes): New variable.
2050         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
2051         `total-strokes' attribute.
2052         (Fget_char_attribute): Likewise.
2053         (Fput_char_attribute): Likewise.
2054         (syms_of_mule_charset): Add new symbol `total-strokes'.
2055         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
2056
2057 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2058
2059         * mule-charset.c (Vcharacter_decomposition_table): New variable.
2060         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
2061         are found.
2062         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
2063         `->decomposition' attribute.
2064         (Fput_char_attribute): Likewise.
2065         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
2066
2067 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2068
2069         * mule-charset.c (decoding_table_check_elements): New function.
2070         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
2071
2072 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2073
2074         * mule-charset.c (Fset_charset_mapping_table): Use
2075         `put_char_ccs_code_point'.
2076
2077 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2078
2079         * mule-charset.c (decoding_table_put_char): New inline function.
2080         (put_char_ccs_code_point): Use `decoding_table_put_char'.
2081
2082 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2083
2084         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
2085         (XCHARSET_BYTE_SIZE): New macro.
2086         (decoding_table_remove_char): New inline function.
2087         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
2088         `decoding_table_remove_char'.
2089         (remove_char_ccs): Use `decoding_table_remove_char'.
2090         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
2091
2092 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2093
2094         * mule-charset.c (Vcharacter_name_table): New variable.
2095         (Qname): New variable.
2096         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
2097         attribute.
2098         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
2099         `Vcharacter_name_table' for `name' attribute.
2100         (Fremove_char_attribute): Use function `remove_char_ccs'.
2101         (put_char_ccs_code_point): New function.
2102         (remove_char_ccs): New function.
2103         (syms_of_mule_charset): Add new symbol `name'.
2104         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
2105
2106 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2107
2108         * mule-charset.c (make_byte_table): Add new argument `older'.
2109         (make_char_id_table): Likewise.
2110         (copy_char_id_table): Comment out because it is not used.
2111         (put_char_id_table): Modify for `make_byte_table'.
2112         (Fput_char_attribute): Make encoding_table as older object;
2113         inherit older bit of `Vcharacter_composition_table'.
2114         (mark_charset): Don't mark `cs->encoding_table'.
2115         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
2116         normal object; make `Vcharacter_composition_table' as an older
2117         object; delete staticpro for `Vcharacter_composition_table'; make
2118         `Vcharacter_variant_table' as a normal object.
2119
2120         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
2121         (mark_object): Don't check older object in UTF-2000.
2122
2123         * lrecord.h (struct lrecord_header): Add new member `older' in
2124         UTF-2000.
2125         (set_lheader_implementation): Setup `SLI_header->older' in
2126         UTF-2000.
2127         (set_lheader_older_implementation): New macro in UTF-2000.
2128         (OLDER_RECORD_P): New macro in UTF-2000.
2129         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
2130         (alloc_older_lcrecord): New prototype in UTF-2000.
2131         (alloc_older_lcrecord_type): New macro in UTF-2000.
2132
2133 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2134
2135         * mule-charset.c (byte_table_description): Use
2136         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
2137         (char_id_table_description): Delete bogus `, 1'.
2138         (Fget_char_attribute): Refer encoding_table of each coded-charset
2139         to get value of coded-charset attribute of a character.
2140         (Fput_char_attribute): Use `make_older_vector' instead of
2141         `make_vector'; use encoding_table of each coded-charset to store
2142         value of coded-charset attribute of a character.
2143         (Fremove_char_attribute): Use encoding_table of each coded-charset
2144         to store value of coded-charset attribute of a character.
2145         (mark_charset): Mark `cs->encoding_table'; don't mark
2146         `cs->decoding_table'.
2147         (charset_description): Add description of new member
2148         `encoding_table'.
2149         (make_charset): Initialize `encoding_table'.
2150
2151         * char-ucs.h (struct Lisp_Charset): Add new member
2152         `encoding_table'.
2153         (CHARSET_ENCODING_TABLE): New macro.
2154         (XCHARSET_ENCODING_TABLE): New macro.
2155         (charset_code_point): New implementation.
2156         (encode_char_1): Likewise.
2157
2158         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
2159         (disksave_object_finalization_1): Call finalizers of
2160         `all_older_lcrecords' in UTF-2000.
2161         (make_older_vector): New function in UTF-2000.
2162         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
2163         UTF-2000.
2164
2165         * lisp.h (make_older_vector): New prototype in UTF-2000.
2166
2167 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2168
2169         * lrecord.h (enum lrecord_type): Rename
2170         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
2171
2172         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
2173         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
2174         `get_char_code_table'.
2175
2176         * mule-charset.c (mark_char_id_table): Renamed from
2177         `mark_char_code_table'.
2178         (char_id_table_equal): Renamed from `char_code_table_equal'.
2179         (char_id_table_hash): Renamed from `char_code_table_hash'.
2180         (make_char_id_table): Renamed from `make_char_code_table'.
2181         (copy_char_id_table): Renamed from `copy_char_code_table'.
2182         (get_char_id_table): Renamed from `get_char_code_table'.
2183         (put_char_id_table): Renamed from `put_char_code_table'.
2184         (to_char_id): Renamed from `to_char_code'.
2185
2186         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
2187         `Lisp_Char_Code_Table'.
2188         (char_id_table): Renamed from `char_code_table'.
2189         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
2190         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
2191         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
2192         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
2193         (get_char_id_table): Renamed from `get_char_code_table'.
2194
2195 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2196
2197         * lrecord.h (enum lrecord_type): Rename
2198         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
2199
2200         * mule-charset.c (mark_byte_table): Renamed from
2201         `mark_char_byte_table'.
2202         (byte_table_equal): Renamed from `char_byte_table_equal'.
2203         (byte_table_hash): Renamed from `byte_table_hash'.
2204         (make_byte_table): Renamed from `make_byte_table'.
2205         (copy_byte_table): Renamed from `copy_char_byte_table'.
2206
2207         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
2208         `Lisp_Char_Byte_Table'.
2209         (byte_table): Renamed from `char_byte_table'.
2210         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
2211         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
2212         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
2213         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
2214
2215 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2216
2217         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
2218         (dfc_convert_to_internal_format): Likewise.
2219         
2220         * text-coding.c (Fcoding_system_canonical_name_p): New function.
2221         * text-coding.c (Fcoding_system_alias_p): New function.
2222         * text-coding.c (Fcoding_system_aliasee): New function.
2223         * text-coding.c (append_suffix_to_symbol): New function.
2224         * text-coding.c (dangling_coding_system_alias_p): New function.
2225         * text-coding.c (Ffind_coding_system):
2226         * text-coding.c (Fcopy_coding_system):
2227         * text-coding.c (encode_coding_no_conversion):
2228         * text-coding.c (syms_of_file_coding):
2229         * text-coding.c (vars_of_file_coding):
2230         Rewrite coding system alias code.
2231         Allow nested aliases, like symbolic links.
2232         Allow redefinition of coding system aliases.
2233         Prevent existence of dangling coding system aliases.
2234         Eliminate convert_to_external_format.
2235         Eliminate convert_to_internal_format.
2236         
2237         * text-coding.c: Change enum eol_type to eol_type_t.
2238
2239 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2240
2241         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
2242         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
2243
2244         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
2245         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
2246
2247 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2248
2249         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
2250         `ideograph-daikanwa'.
2251
2252         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
2253         (Vcharset_ucs_bmp): Likewise.
2254         (Vcharset_mojikyo): Add new extern variable definition.
2255         (Vcharset_latin_iso8859_2): Deleted because it is not used.
2256         (Vcharset_latin_iso8859_3): Likewise.
2257         (Vcharset_latin_iso8859_4): Likewise.
2258         (Vcharset_latin_iso8859_9): Likewise.
2259         (Vcharset_latin_viscii_lower): Likewise.
2260         (Vcharset_latin_viscii_upper): Likewise.
2261         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
2262         `mojikyo' code-point is used to decode.
2263         (encode_char_2): New function [to convert `mojikyo' code-point to
2264         Mojikyo font encoding].
2265         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
2266         (breakup_char_1): Likewise.
2267         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
2268
2269 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2270
2271         * text-coding.c (Fmake_coding_system): Add document about
2272         `disable-composition' property.
2273
2274 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2275
2276         * text-coding.c (Qdisable_composition): New variable; delete
2277         `Qcomposite'.
2278         (Fmake_coding_system): Add new property `disable-composite';
2279         delete property `composite'.
2280         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
2281         instead of `!CODING_SYSTEM_COMPOSITE'.
2282         (syms_of_file_coding): Add new symbol `disable-composition';
2283         delete symbol `composite'.
2284
2285         * file-coding.h (struct Lisp_Coding_System): Add
2286         `disable_composition'; delete `enable_composition'.
2287         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
2288         `CODING_SYSTEM_COMPOSITE'.
2289         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
2290         `XCODING_SYSTEM_COMPOSITE'.
2291
2292 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2293
2294         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2295         to 0.15.
2296
2297 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2298
2299         * text-coding.c (Qcomposite): New variable.
2300         (Fmake_coding_system): Add new property `composite'.
2301         (struct decoding_stream): Add `combined_char_count',
2302         `combined_chars' and `combining_table' in UTF-2000.
2303         (COMPOSE_FLUSH_CHARS): New macro.
2304         (COMPOSE_ADD_CHAR): New macro.
2305         (reset_decoding_stream): Reset `str->combined_char_count' and
2306         `str->combining_table' in UTF-2000.
2307         (decode_coding_iso2022): Modify for character-decomposition.
2308         (syms_of_file_coding): Add new symbol `composite'.
2309
2310 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2311
2312         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
2313         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
2314         of `Vcharacter_composition_table' if `->decomposition' property
2315         has only 1 element.
2316         (Qlatin_tcvn5712): New variable.
2317         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
2318         (complex_vars_of_mule_charset): Add new coded-charset
2319         `latin-tcvn5712'.
2320
2321         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
2322
2323 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2324
2325         * file-coding.h (struct Lisp_Coding_System): Add
2326         `enable_composition'.
2327         (CODING_SYSTEM_COMPOSITE): New macro.
2328         (XCODING_SYSTEM_COMPOSITE): New macro.
2329
2330 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
2331
2332         * mule-canna.c (c2mu): Fix problem with UTF-2000.
2333
2334 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
2335
2336         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
2337         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
2338
2339 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
2340
2341         * mule-charset.c (Vcharset_mojikyo): New variable.
2342         (Fdefine_char): Don't use coded-charset which does not have
2343         non-builtin character range to allocate character-id.
2344         (Qmojikyo): New variable.
2345         (syms_of_mule_charset): Add new symbol `mojikyo'.
2346         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
2347
2348         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
2349         (LEADING_BYTE_MOJIKYO): New macro.
2350         (MIN_CHAR_MOJIKYO): New macro.
2351         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
2352         (MAX_CHAR_MOJIKYO): New macro.
2353
2354 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
2355
2356         * mule-charset.c (remove_char_attribute): Fixed.
2357
2358 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
2359
2360         * mule-charset.c (remove_char_attribute): New function.
2361         (Fremove_char_attribute): New function.
2362         (encode_builtin_char_1): Comment out builtin-support for
2363         greek-iso8859-7 and cyrillic-iso8859-5.
2364         (Fdecode_char): Check `code' is an integer.
2365         (syms_of_mule_charset): Add `remove-char-attribute'.
2366         (MIN_CHAR_GREEK): Deleted.
2367         (MAX_CHAR_GREEK): Likewise.
2368         (MIN_CHAR_CYRILLIC): Likewise.
2369         (MAX_CHAR_CYRILLIC): Likewise.
2370         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
2371         MAX_CHAR_GREEK for `greek-iso8859-7'.
2372
2373         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
2374         (MAX_CHAR_GREEK): Likewise.
2375         (MIN_CHAR_CYRILLIC): Likewise.
2376         (MAX_CHAR_CYRILLIC): Likewise.
2377
2378 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
2379
2380         * mule-charset.c (Fdefine_char): Fix problem when new code-point
2381         format is used without `ucs' property.
2382         (Fdecode_char): Fix problem with GR representation.
2383         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
2384         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
2385
2386 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
2387
2388         * mule-charset.c (make_builtin_char): New function.
2389         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
2390         (Fset_charset_mapping_table): Modify for new representation of
2391         code-point.
2392         (Fdecode_char): New function.
2393         (syms_of_mule_charset): Add new builtin function `decode-char' in
2394         UTF-2000.
2395
2396         * char-ucs.h (make_builtin_char): New prototype.
2397         (DECODE_CHAR): New inline function.
2398         (MAKE_CHAR): Use `DECODE_CHAR'.
2399
2400 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
2401
2402         * text-coding.c (parse_charset_conversion_specs): Use
2403         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
2404         `XCHARSET_TYPE'.
2405         (iso2022_designate): Likewise.
2406
2407         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
2408         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
2409
2410         * mule-charset.c (Vcharset_ucs): New variable.
2411         (print_charset): Change design; use `CHARSET_CHARS' and
2412         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
2413         (make_charset): Change signature to specify `chars' and
2414         `dimension' instead of `type'.
2415         (range_charset_code_point): Modify for 256^n-set.
2416         (encode_builtin_char_1): Encode as `ucs' in default.
2417         (Fmake_charset): Modify for `make_charset'.
2418         (Fmake_reverse_direction_charset): Likewise.
2419         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
2420         UTF-2000.
2421         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
2422         for `make_charset'.
2423
2424         * char-ucs.h (Vcharset_ucs): New variable.
2425         (LEADING_BYTE_UCS): New macro.
2426         (struct Lisp_Charset): Delete `type'; change type of `dimension'
2427         and `chars' to `unsigned short' from `unsigned int'.
2428         (CHARSET_TYPE): Deleted.
2429         (XCHARSET_TYPE): Deleted.
2430
2431 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
2432
2433         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
2434
2435         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
2436         (ENCODE_CHAR): New macro.
2437
2438 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
2439
2440         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2441         to 0.14 (Kawachi-Katakami).
2442
2443 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
2444
2445         * text-coding.c (char_encode_shift_jis): Modify for
2446         `charset_code_point'.
2447         (char_encode_iso2022): Likewise.
2448
2449         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
2450         (integer) instead of list of <Lisp_Object>s (integers) as the
2451         format of code-point of a coded-charset.
2452         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
2453         (encode_builtin_char_1): New function; delete
2454         `split_builtin_char'.
2455         (charset_code_point): Return <int> instead of <Lisp_Object>.
2456         (Fsplit_char): Don't use `SPLIT_CHAR'.
2457
2458         * char-ucs.h (encode_builtin_char_1): New prototype; delete
2459         prototype for `split_builtin_char'.
2460         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
2461         (charset_code_point): Likewise.
2462         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
2463         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
2464
2465 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
2466
2467         * mule-charset.c (complex_vars_of_mule_charset): Don't define
2468         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
2469
2470 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2471
2472         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
2473
2474         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
2475         (MAX_CHAR_OBS_94x94): Deleted.
2476
2477 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2478
2479         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
2480
2481         * char-ucs.h (MAX_CHAR_BMP): New macro.
2482
2483 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
2484
2485         * text-coding.c: Sync with r21-2-24.
2486
2487 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
2488
2489         * file-coding.c: Modify for UTF-2000.
2490
2491 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
2492
2493         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2494         to 0.13 (Takaida).
2495
2496 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
2497
2498         * mule-charset.c (split_builtin_char): Delete builtin support for
2499         `katakana-jisx0201'.
2500         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
2501         BMP area in builtin representation.
2502
2503         * char-ucs.h (MAKE_CHAR): Delete builtin support for
2504         `Vcharset_katakana_jisx0201'.
2505
2506 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
2507
2508         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
2509         (Qisolated): New variable.
2510         (Qinitial): New variable.
2511         (Qmedial): New variable.
2512         (Qfinal): New variable.
2513         (Qvertical): New variable.
2514         (Qsmall): New variable.
2515         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
2516         `Qvertical' and `Qsmall'.
2517         (Qmojikyo_pj_[1 .. 21]): New variable.
2518         (syms_of_mule_charset): Add new symbols `isolated', `initial',
2519         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
2520         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
2521         .. 21]'.
2522
2523 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
2524
2525         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
2526         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
2527         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
2528
2529 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
2530
2531         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
2532         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
2533         BMP.
2534         (Qjapanese_jisx0208_1990): New variable.
2535         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
2536         (complex_vars_of_mule_charset): Add new coded-charset
2537         `japanese-jisx0208-1990'.
2538
2539         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
2540         (MIN_CHAR_JIS_X0208_1990): New macro.
2541         (MAX_CHAR_JIS_X0208_1990): New macro.
2542
2543 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2544
2545         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
2546         coded-charset is not found.
2547
2548 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2549
2550         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
2551         (Fdefine_char): Use `Fmake_char'.
2552
2553 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2554
2555         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
2556         (Vcharset_hiragana_jisx0208): Deleted.
2557         (Vcharset_katakana_jisx0208): Deleted.
2558         (Qideograph_daikanwa): New variable.
2559         (Qhiragana_jisx0208): Deleted.
2560         (Qkatakana_jisx0208): Deleted.
2561         (split_builtin_char): Split `ideograph-daikanwa'.
2562         (Fsplit_char): New implementation for UTF-2000.
2563         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
2564         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
2565         (complex_vars_of_mule_charset): Add new coded-charset
2566         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
2567         `katakana-jisx0208'.
2568
2569         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
2570         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
2571         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
2572         (MIN_CHAR_DAIKANWA): New macro.
2573         (MAX_CHAR_DAIKANWA): New macro.
2574
2575 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2576
2577         * data.c (Fstring_to_number): Don't recognize floating point if
2578         base is not 10.
2579
2580 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2581
2582         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
2583
2584 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2585
2586         * mule-charset.c (Qsquare): New variable.
2587         (to_char_code): Add `Qsquare'.
2588         (syms_of_mule_charset): Add new symbol `square'.
2589
2590 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2591
2592         * mule-charset.c (Qcircle): New variable.
2593         (to_char_code): Add `Qcircle'.
2594         (syms_of_mule_charset): Add new symbol `circle'.
2595
2596 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2597
2598         * mule-charset.c (Qfont): New variable.
2599         (to_char_code): Add `Qfont'.
2600         (syms_of_mule_charset): Add new symbol `font'.
2601
2602 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2603
2604         * mule-charset.c (Qsub): New variable.
2605         (to_char_code): Add `Qsub'.
2606         (syms_of_mule_charset): Add new symbol `sub'.
2607
2608 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2609
2610         * mule-charset.c (Fput_char_attribute): Convert each element of
2611         VALUE to GL position if ATTRIBUTE is a GR-set,
2612
2613 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2614
2615         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
2616         coded-charset is a GR-set.
2617
2618 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2619
2620         * mule-charset.c (Fput_char_attribute): Check each element of
2621         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
2622
2623 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2624
2625         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
2626         UTF-2000.
2627         (Qethiopic_ucs): New variable in UTF-2000.
2628         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
2629         (complex_vars_of_mule_charset): Add new coded-charset
2630         `ethiopic-ucs' in UTF-2000.
2631
2632         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
2633         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
2634         9)'.
2635         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
2636         10)'.
2637         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
2638
2639 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
2640
2641         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
2642         `ascii'.
2643
2644 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2645
2646         * mule-charset.c (Vcharacter_variant_table): New variable.
2647         (Q_ucs): New variable.
2648         (Fchar_variants): New function.
2649         (Fput_char_attribute): Register `->ucs' value to
2650         `Vcharacter_variant_table'.
2651         (syms_of_mule_charset): Add new function `char-variants' and new
2652         symbol `->ucs'.
2653         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
2654
2655 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2656
2657         * mule-charset.c (get_char_code_table): Allow negative character
2658         code.
2659         (put_char_code_table): Likewise.
2660         (Vcharacter_composition_table): New variable.
2661         (Q_decomposition): New variable.
2662         (Qwide): New variable.
2663         (Qnarrow): New variable.
2664         (Qcompat): New variable.
2665         (QnoBreak): New variable.
2666         (Qsuper): New variable.
2667         (Qfraction): New variable.
2668         (to_char_code): New function.
2669         (Fget_composite_char): New function.
2670         (Fput_char_attribute): Register `->decomposition' value to
2671         `Vcharacter_composition_table'.
2672         (syms_of_mule_charset): Add new function `get-composite-char', new
2673         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
2674         `super' and `fraction'.
2675         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
2676
2677 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2678
2679         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
2680         character; copy the return value.
2681
2682 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2683
2684         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
2685
2686         * mule-charset.c (range_charset_code_point): Must use make_int.
2687         (split_builtin_char): New function.
2688
2689 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2690
2691         * mule-charset.c (char_byte_table): Change name from
2692         "char-code-table" to "char-byte-table".
2693         (mark_char_code_table): New function.
2694         (char_code_table_equal): New function.
2695         (char_code_table_hash): New function.
2696         (char_code_table_description): New constant.
2697         (char_code_table): New type.
2698         (make_char_code_table): New function.
2699         (copy_char_code_table): New function.
2700         (get_char_code_table): Modify for `char_code_table' type.
2701         (put_char_code_table): Likewise.
2702         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
2703         (Kashiwara).
2704
2705         * char-ucs.h (char_code_table): New type.
2706         (XCHAR_CODE_TABLE): New macro.
2707         (XSETCHAR_CODE_TABLE): New macro.
2708         (CHAR_CODE_TABLE_P): New macro.
2709         (GC_CHAR_CODE_TABLE_P): New macro.
2710         (struct Lisp_Char_Code_Table): New structure.
2711
2712 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2713
2714         * mule-charset.c (Fmake_charset): Setup byte_offset for
2715         {94|96}^n-set.
2716
2717 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2718
2719         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
2720         character.
2721
2722 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2723
2724         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
2725         is found.
2726
2727 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2728
2729         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
2730         charset, it is regarded as a charset.
2731         (put_char_attribute): New function in UTF-2000.
2732         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
2733         charset, mapping-table of the charset is modified.
2734         (Fdefine_char): New function in UTF-2000.
2735         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
2736         `Fput_char_attribute'.
2737         (syms_of_mule_charset): Add new function `define-char' and new
2738         symbol `ucs' in UTF-2000.
2739         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
2740
2741 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
2742
2743         * mule-charset.c (Fcharset_name): Define `byte_offset' in
2744         non-UTF-2000 configuration.
2745
2746 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
2747
2748         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
2749         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
2750
2751         * mule-charset.c (mark_charset): `cs->encoding_table' has been
2752         deleted.
2753         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
2754         (Fset_charset_mapping_table): Likewise.
2755
2756         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
2757         (CHARSET_ENCODING_TABLE): Delete.
2758         (XCHARSET_ENCODING_TABLE): Delete.
2759         (charset_code_point): New interface.
2760
2761 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
2762
2763         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
2764         instead of `charset_get_byte1' and `charset_get_byte2'.
2765
2766         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
2767         (charset_get_byte2): Deleted.
2768
2769 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
2770
2771         * char-ucs.h (SPLIT_CHAR): New inline function.
2772         (breakup_char_1): Use `SPLIT_CHAR'.
2773
2774         * mule-charset.c (range_charset_code_point): New function.
2775         (charset_code_point): New function.
2776
2777         * char-ucs.h (range_charset_code_point): New interface.
2778         (breakup_char_1): Use `range_charset_code_point'.
2779
2780 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
2781
2782         * mule-charset.c (Fmake_charset): Delete unused local variable
2783         `code_offset'.
2784
2785         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
2786         (breakup_char_1): Find a charset and code-point in
2787         `Vcharacter_attribute_table'.
2788
2789 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
2790
2791         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2792         to 0.10 (Yao).
2793
2794 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
2795
2796         * mule-charset.c (Vcharacter_attribute_table): New variable.
2797         (Fchar_attribute_alist): New function.
2798         (Fget_char_attribute): New function.
2799         (Fput_char_attribute): New function.
2800         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
2801         too.
2802         (syms_of_mule_charset): Add new function `char-attribute-alist',
2803         `get-char-attribute' and `put-char-attribute'.
2804         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
2805
2806 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
2807
2808         * mule-charset.c (Fmake_charset): Just use
2809         `get_unallocated_leading_byte'.
2810
2811         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
2812         sets; don't use final-byte based number for private sets.
2813
2814 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2815
2816         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
2817         integer.
2818
2819 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2820
2821         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2822         to 0.9.
2823
2824 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2825
2826         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
2827         of `CHAR_LEADING_BYTE' in UTF-2000.
2828
2829         * insdel.c (find_charsets_in_bufbyte_string): Use
2830         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
2831         (find_charsets_in_emchar_string): Likewise.
2832
2833         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
2834         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
2835
2836         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
2837         (CHAR_CHARSET_ID): New macro.
2838
2839 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2840
2841         * chartab.c (get_char_table): Don't use type `Charset_ID' for
2842         charset-id - MIN_LEADING_BYTE.
2843         (put_char_table): Likewise.
2844
2845 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2846
2847         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
2848         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
2849         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
2850         (CHARSET_ID_OFFSET): New macro.
2851         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
2852         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
2853         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
2854         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
2855         4).
2856         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
2857         5).
2858         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
2859         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
2860         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
2861         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
2862         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
2863
2864 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2865
2866         * mule-charset.c (next_allocated_leading_byte): New variable in
2867         UTF-2000.
2868         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
2869         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
2870         (get_unallocated_leading_byte): Simply use
2871         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
2872         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
2873         UTF-2000.
2874
2875         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
2876         (MAX_LEADING_BYTE_PRIVATE): New macro.
2877         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
2878         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
2879
2880 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2881
2882         * mule-charset.c (Fmake_charset): Allocate final-byte based
2883         charset-id for 94-set, 96-set and 94x94-set.
2884
2885 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2886
2887         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
2888         ambiguous `else'.
2889         (Fmake_charset): Likewise.
2890         (complex_vars_of_mule_charset): Modify the font registry of
2891         `ucs-bmp' not to match `Ethiopic-Unicode'.
2892
2893 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2894
2895         * mule-charset.c (complex_vars_of_mule_charset): Add font
2896         registory of `ucs-bmp'.
2897
2898 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2899
2900         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
2901         coded-charsets in `default-coded-charset-priority-list' when
2902         breaking up a character.
2903
2904         * mule-charset.c (Vcharset_latin_viscii): New variable.
2905         (Qlatin_viscii): New variable.
2906         (make_charset): Don't use `decoding_table'.
2907         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
2908         byte_offset.
2909         (Fset_charset_mapping_table): New implementation.
2910         (syms_of_mule_charset): Add new symbol `latin-viscii'.
2911         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
2912         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
2913         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
2914         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
2915         charset `latin_viscii'.
2916
2917         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
2918         (CHARSET_TYPE_94X94): Change to 1 from 2.
2919         (CHARSET_TYPE_96): Change to 2 from 1.
2920         (CHARSET_TYPE_128): New macro.
2921         (CHARSET_TYPE_128X128): Change to 5 from 4.
2922         (CHARSET_TYPE_256): New macro.
2923         (CHARSET_TYPE_256X256): Change to 7 from 5.
2924         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
2925
2926 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2927
2928         * text-coding.c (char_encode_shift_jis): Refer
2929         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
2930         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
2931
2932         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
2933         (char_byte_table_equal): New function in UTF-2000.
2934         (char_byte_table_hash): New function in UTF-2000.
2935         (char_byte_table_description): New constant in UTF-2000.
2936         (char_byte_table): New type in UTF-2000.
2937         (make_char_byte_table): New function in UTF-2000.
2938         (copy_char_byte_table): New function in UTF-2000.
2939         (make_char_code_table): New macro in UTF-2000.
2940         (get_char_code_table): New function in UTF-2000.
2941         (put_char_code_table): New function in UTF-2000.
2942         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
2943         (charset_description): Add setting in UTF-2000.
2944         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
2945         `CHARSET_TO_BYTE1_TABLE(cs)'.
2946         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
2947         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
2948         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
2949         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
2950         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
2951         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
2952         `CHARSET_TO_BYTE2_TABLE(cs)'.
2953
2954         * char-ucs.h (char_byte_table): New type.
2955         (XCHAR_BYTE_TABLE): New macro.
2956         (XSETCHAR_BYTE_TABLE): New macro.
2957         (CHAR_BYTE_TABLE_P): New macro.
2958         (GC_CHAR_BYTE_TABLE_P): New macro.
2959         (struct Lisp_Char_Byte_Table): New structure.
2960         (get_char_code_table): New interface.
2961         (Emchar_to_byte_table): Deleted.
2962         (get_byte_from_character_table): Deleted.
2963         (struct Lisp_Charset): Add `encoding_table'; delete
2964         `to_byte1_table' and `to_byte2_table'.
2965         (CHARSET_ENCODING_TABLE): New macro.
2966         (CHARSET_TO_BYTE1_TABLE): Deleted.
2967         (CHARSET_TO_BYTE2_TABLE): Deleted.
2968         (XCHARSET_ENCODING_TABLE): New macro.
2969         (XCHARSET_TO_BYTE1_TABLE): Deleted.
2970         (XCHARSET_TO_BYTE2_TABLE): Deleted.
2971
2972 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
2973
2974         * mule-charset.c (syms_of_mule_charset): Delete charset alias
2975         `vietnamese-viscii-*'.
2976
2977 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
2978
2979         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
2980         (Qvietnamese_viscii_upper): New variable.
2981         (Fdefine_charset_alias): New function.
2982         (syms_of_mule_charset): Add new function `define-charset-alias'.
2983         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
2984         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
2985         `latin-viscii-*'.
2986
2987 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
2988
2989         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
2990         (MAX_CHAR_OBS_94x94): New macro.
2991         (breakup_char_1): Support obsolete XEmacs-UCS private code space
2992         for 94x94 sets.
2993
2994         * mule-charset.c (put_byte_from_character_table): Change unit size
2995         from 128 to 256.
2996         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
2997         not defined.
2998         (Fmake_reverse_direction_charset): Modify dummy argument of
2999         `make_charset' for non-UTF-2000 environment.
3000
3001 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3002
3003         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
3004
3005         * mule-charset.c (destroy_byte_from_character_table): New macro.
3006         (latin_jisx0201_to_ucs): Deleted.
3007         (latin_iso8859_2_to_ucs): Deleted.
3008         (latin_iso8859_3_to_ucs): Deleted.
3009         (latin_iso8859_4_to_ucs): Deleted.
3010         (latin_iso8859_9_to_ucs): Deleted.
3011         (latin_viscii_lower_to_ucs): Deleted.
3012         (latin_viscii_upper_to_ucs): Deleted.
3013         (mark_charset): Mark `cs->decoding_table'.
3014         (Fcharset_mapping_table): Fix DOC-string.
3015         (Fset_charset_mapping_table): New function.
3016         (syms_of_mule_charset): Add nwe function
3017         `set-charset-mapping-table'.
3018         (complex_vars_of_mule_charset): Don't setup and use
3019         `latin_*_to_ucs'.
3020
3021 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3022
3023         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
3024         charset.
3025
3026 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3027
3028         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
3029         (Vcharset_katakana_jisx0208): New variable.
3030         (Qhiragana_jisx0208): New variable.
3031         (Qkatakana_jisx0208): New variable.
3032         (make_charset): Add new argument `byte_offset'.
3033         (charset_get_byte1): Modify for new coded-charset definition; use
3034         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
3035         `XCHARSET_BYTE_OFFSET'.
3036         (Fmake_charset): Modify for `make_charset'.
3037         (Fmake_reverse_direction_charset): Likewise.
3038         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
3039         `katakana-jisx0208'.
3040         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
3041         `.'  in font registry of charset `katakana-jisx0201',
3042         `latin-jisx0201', `vietnamese-viscii-lower' and
3043         `vietnamese-viscii-upper'; modify DOC-string of charset
3044         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
3045         registry of charset `japanese-jisx0208' not to use font for JIS
3046         X0208:1990; add new charset `hiragana-jisx0208' and
3047         `katakana-jisx0208'.
3048
3049         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
3050         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
3051         (struct Lisp_Charset): Add `byte_offset'.
3052         (CHARSET_BYTE_OFFSET): New macro.
3053         (XCHARSET_UCS_MIN): New macro.
3054         (XCHARSET_UCS_MAX): New macro.
3055         (XCHARSET_CODE_OFFSET): New macro.
3056         (XCHARSET_BYTE_OFFSET): New macro.
3057         (MIN_CHAR_HIRAGANA): New macro.
3058         (MAX_CHAR_HIRAGANA): New macro.
3059         (MIN_CHAR_KATAKANA): New macro.
3060         (MAX_CHAR_KATAKANA): New macro.
3061         (MAKE_CHAR): Modify for new coded-charset definition; use
3062         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
3063         `XCHARSET_BYTE_OFFSET'.
3064
3065 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3066
3067         * mule-charset.c (CHAR96): Deleted.
3068         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
3069         <Lisp_Object>.
3070         (latin_iso8859_2_to_ucs): Likewise.
3071         (latin_iso8859_3_to_ucs): Likewise.
3072         (latin_iso8859_4_to_ucs): Likewise.
3073         (latin_iso8859_9_to_ucs): Likewise.
3074         (latin_viscii_lower_to_ucs): Likewise.
3075         (latin_viscii_upper_to_ucs): Likewise.
3076         (latin_tcvn5712_to_ucs): Commented out.
3077         (make_charset): Change type of argument `decoding_table' from
3078         <Emchar*> to <Lisp_Object> [vector of characters].
3079         (Fmake_charset): Modify for `make_charset'.
3080         (Fmake_reverse_direction_charset): Likewise.
3081         (Fcharset_mapping_table): New function in UTF-2000.
3082         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
3083         UTF-2000.
3084         (complex_vars_of_mule_charset): Modify for type change of
3085         `*_to_ucs'; modify for `make_charset'.
3086
3087         * char-ucs.h (struct Lisp_Charset): Change type of
3088         `decoding_table' from <Emchar*> to <Lisp_Object>.
3089         (MAKE_CHAR): Modify for new specification of `decoding_table'.
3090
3091 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
3092
3093         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
3094         error with non-UTF-2000-Mule.
3095
3096 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
3097
3098         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
3099         in lisp again].
3100         (Vcharset_chinese_cns11643_4): Likewise.
3101         (Vcharset_chinese_cns11643_5): Likewise.
3102         (Vcharset_chinese_cns11643_6): Likewise.
3103         (Vcharset_chinese_cns11643_7): Likewise.
3104         (Qchinese_cns11643_3): Likewise.
3105         (Qchinese_cns11643_4): Likewise.
3106         (Qchinese_cns11643_5): Likewise.
3107         (Qchinese_cns11643_6): Likewise.
3108         (Qchinese_cns11643_7): Likewise.
3109         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
3110         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
3111         and `chinese-cns11643-7' to lisp/mule/chinese.el.
3112         (complex_vars_of_mule_charset): Likewise.
3113
3114 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3115
3116         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
3117         96-set.
3118         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
3119         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
3120
3121 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
3122
3123         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
3124         0xFF60.
3125         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
3126         (breakup_char_1): Likewise.
3127
3128         * text-coding.c (char_encode_iso2022): Keep designated charsets if
3129         one of them includes the specified character.
3130
3131 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3132
3133         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
3134
3135 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3136
3137         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
3138
3139 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3140
3141         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
3142         definition for non-UTF-2000 Mule.
3143         (latin_iso8859_3_to_ucs): Likewise.
3144         (latin_iso8859_4_to_ucs): Likewise.
3145         (latin_iso8859_9_to_ucs): Likewise.
3146         (latin_jisx0201_to_ucs): Likewise.
3147         (MIN_CHAR_THAI): Likewise.
3148         (MAX_CHAR_THAI): Likewise.
3149         (MIN_CHAR_GREEK): Likewise.
3150         (MAX_CHAR_GREEK): Likewise.
3151         (MIN_CHAR_HEBREW): Likewise.
3152         (MAX_CHAR_HEBREW): Likewise.
3153         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
3154         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
3155         (MIN_CHAR_CYRILLIC): Likewise.
3156         (MAX_CHAR_CYRILLIC): Likewise.
3157
3158 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3159
3160         * char-ucs.h (breakup_char_1): Use
3161         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
3162         thai-tis620 and katakana-jisx0201 area.
3163
3164 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3165
3166         * char-ucs.h (breakup_char_1): Use
3167         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
3168         area.
3169
3170         * text-coding.c (reset_encoding_stream): Fixed.
3171         (char_encode_ucs4): Delete `& 255'.
3172
3173         * char-ucs.h (breakup_char_1): Use
3174         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
3175
3176 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3177
3178         * file-coding.c (Fmake_coding_system): Don't set up
3179         `codesys->fixed.size'.
3180         (encode_coding_no_conversion): Don't refer
3181         `str->codesys->fixed.size'.
3182
3183 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3184
3185         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
3186         (latin_a_char_to_byte1): Deleted.
3187         (latin_a_char_to_byte2): Deleted.
3188
3189 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3190
3191         * mule-charset.c (make_charset): Add new argument `ucs_min',
3192         `ucs_max' and `code_offset'.
3193         (charset_get_byte1): New implementation [delete specific charset
3194         depended implementations].
3195         (Fmake_charset): Modify for `make_charset'.
3196         (Fmake_reverse_direction_charset): Likewise.
3197         (complex_vars_of_mule_charset): Likewise.
3198
3199         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
3200         `code_offset'.
3201         (CHARSET_UCS_MIN): New macro.
3202         (CHARSET_UCS_MAX): New macro.
3203         (CHARSET_CODE_OFFSET): New macro.
3204         (MAKE_CHAR): Delete charset depended definitions [except
3205         katakana-jisx0201].
3206
3207 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
3208
3209         * char-ucs.h (breakup_char_1): Use
3210         `Vdefault_coded_charset_priority_list' for C0-Controls,
3211         Basic-Latin, C1-Controls and Latin-1-Supplement area.
3212
3213 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3214
3215         * char-ucs.h (charset_get_byte1): New function.
3216         (XCHARSET_GET_BYTE1): Deleted.
3217         (charset_get_byte2): New function.
3218         (XCHARSET_GET_BYTE2): Deleted.
3219         (Vdefault_coded_charset_priority_list): New external variable.
3220         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
3221         `Vdefault_preferred_coded_charset_list'.
3222
3223         * mule-charset.c (charset_get_byte1): New function.
3224         (charset_get_byte2): New function.
3225         (Vdefault_coded_charset_priority_list): New variable.
3226         (vars_of_mule_charset): Add new variable
3227         `default-coded-charset-priority-list'.
3228
3229 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3230
3231         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
3232         (XCHARSET_GET_BYTE2): New inline function.
3233         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
3234         `XCHARSET_GET_BYTE2'.
3235
3236 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3237
3238         * mule-charset.c (make_charset): Initialize
3239         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
3240         NULL if table is not defined.
3241
3242 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3243
3244         * text-coding.c (char_encode_shift_jis): Use
3245         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
3246         `ucs_to_latin_jisx0201'.
3247
3248         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
3249         (ucs_to_latin_iso8859_2): Deleted.
3250         (ucs_to_latin_iso8859_3): Deleted.
3251         (ucs_to_latin_iso8859_4): Deleted.
3252         (ucs_to_latin_iso8859_9): Deleted.
3253         (ucs_to_latin_viscii_lower): Deleted.
3254         (ucs_to_latin_viscii_upper): Deleted.
3255         (ucs_to_latin_tcvn5712): Deleted.
3256         (make_charset): Add new argument `decoding_table'; set up
3257         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
3258         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
3259         `decoding_table' is defined in UTF-2000.
3260         (Fmake_charset): Modify for `make_charset'.
3261         (Fmake_reverse_direction_charset): Likewise.
3262         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
3263         and `GENERATE_96_SET'.
3264
3265         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
3266         (ucs_to_latin_jisx0201): Deleted.
3267         (latin_iso8859_2_to_ucs): Deleted.
3268         (ucs_to_latin_iso8859_2): Deleted.
3269         (latin_iso8859_3_to_ucs): Deleted.
3270         (ucs_to_latin_iso8859_3): Deleted.
3271         (latin_iso8859_4_to_ucs): Deleted.
3272         (ucs_to_latin_iso8859_4): Deleted.
3273         (latin_iso8859_9_to_ucs): Deleted.
3274         (ucs_to_latin_iso8859_9): Deleted.
3275         (latin_viscii_lower_to_ucs): Deleted.
3276         (ucs_to_latin_viscii_lower): Deleted.
3277         (latin_viscii_upper_to_ucs): Deleted.
3278         (ucs_to_latin_viscii_upper): Deleted.
3279         (struct Lisp_Charset): Renamed `encoding_table' to
3280         `to_byte1_table'; add `to_byte2_table'.
3281         (CHARSET_DECODING_TABLE): New macro.
3282         (CHARSET_TO_BYTE1_TABLE): New macro.
3283         (CHARSET_TO_BYTE2_TABLE): New macro.
3284         (XCHARSET_DECODING_TABLE): New macro.
3285         (XCHARSET_TO_BYTE1_TABLE): New macro.
3286         (XCHARSET_TO_BYTE2_TABLE): New macro.
3287         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
3288         tables.
3289         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
3290         don't use `ucs_to_*' tables.
3291
3292 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3293
3294         * text-coding.c (Fmake_coding_system): Don't set up
3295         `codesys->fixed.size'.
3296         (encode_coding_no_conversion): Use `if' instead of `switch'.
3297
3298         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
3299
3300 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3301
3302         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
3303         (Fmake_charset): Modify for `make_charset'.
3304         (Fmake_reverse_direction_charset): Likewise.
3305         (complex_vars_of_mule_charset): Likewise.
3306
3307 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3308
3309         * text-coding.c (char_encode_shift_jis): Use table
3310         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
3311
3312 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3313
3314         * text-coding.c (text_encode_generic): Use `if' instead of
3315         `switch'.
3316         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
3317         decode JIS-Latin.
3318
3319 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3320
3321         * text-coding.c (encode_coding_sjis): Deleted.
3322         (char_encode_shift_jis): New function.
3323         (char_finish_shift_jis): New function.
3324         (reset_encoding_stream): Set up `encode_char' and `finish' for
3325         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
3326         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
3327         (char_encode_utf8): Treat `eol_type'.
3328
3329 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3330
3331         * file-coding.c (decode_coding_iso2022): Use
3332         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
3333
3334 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3335
3336         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3337         to 0.7 (Hirano).
3338
3339 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3340
3341         * char-lb.h (CHAR_COLUMNS): New macro.
3342
3343 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3344
3345         * text-coding.c (char_encode_ucs4): New function.
3346         (char_finish_ucs4): New function.
3347         (encode_coding_ucs4): Deleted.
3348         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
3349         (text_encode_generic): Delete local variable `charset' and `half'.
3350         (ucs_to_mule_table): Deleted.
3351         (mule_to_ucs_table): Deleted.
3352         (Fset_ucs_char): Deleted.
3353         (ucs_to_char): Deleted.
3354         (Fucs_char): Deleted.
3355         (Fset_char_ucs): Deleted.
3356         (Fchar_ucs): Deleted.
3357         (decode_ucs4): Deleted.
3358         (mule_char_to_ucs4): Deleted.
3359         (encode_ucs4): Deleted.
3360         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
3361         (decode_coding_utf8): Likewise.
3362         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
3363         (char_encode_iso2022): Fixed.
3364         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
3365         `Fset_char_ucs' and `Fchar_ucs'.
3366         (complex_vars_of_file_coding): Don't initialize
3367         `ucs_to_mule_table'.
3368
3369         * objects-tty.c (tty_initialize_font_instance): Don't use
3370         `XCHARSET_COLUMNS'.
3371
3372         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
3373         UTF-2000.
3374
3375         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
3376         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3377
3378         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
3379         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3380         (emchar_string_displayed_columns): Likewise.
3381
3382         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
3383         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3384         (string_column_at_point): Likewise.
3385         (Fmove_to_column): Likewise.
3386
3387         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
3388         `encoding_table' and `decoding_table'.
3389         (CHARSET_REP_BYTES): Deleted.
3390         (XCHARSET_REP_BYTES): Deleted.
3391         (XCHARSET_COLUMNS): Deleted.
3392         (CHAR_COLUMNS): New macro.
3393         (lookup_composite_char): Deleted unconditionally.
3394         (composite_char_string): Likewise.
3395
3396 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3397
3398         * char-ucs.h (Emchar_to_byte_table): New type.
3399         (get_byte_from_character_table): New function interface.
3400         (Vcharset_latin_jisx0201): New variable.
3401         (latin_jisx0201_to_ucs): New variable.
3402         (ucs_to_latin_jisx0201): New variable.
3403         (Vcharset_latin_iso8859_2): New variable.
3404         (latin_iso8859_2_to_ucs): New variable.
3405         (ucs_to_latin_iso8859_2): New variable.
3406         (Vcharset_latin_iso8859_3): New variable.
3407         (latin_iso8859_3_to_ucs): New variable.
3408         (ucs_to_latin_iso8859_3): New variable.
3409         (Vcharset_latin_iso8859_4): New variable.
3410         (latin_iso8859_4_to_ucs): New variable.
3411         (ucs_to_latin_iso8859_4): New variable.
3412         (Vcharset_latin_iso8859_9): New variable.
3413         (latin_iso8859_9_to_ucs): New variable.
3414         (ucs_to_latin_iso8859_9): New variable.
3415         (Vcharset_latin_viscii_lower): New variable.
3416         (latin_viscii_lower_to_ucs): New variable.
3417         (ucs_to_latin_viscii_lower): New variable.
3418         (Vcharset_latin_viscii_upper): New variable.
3419         (latin_viscii_upper_to_ucs): New variable.
3420         (ucs_to_latin_viscii_upper): New variable.
3421         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
3422         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
3423         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
3424         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
3425         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
3426         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
3427         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
3428         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
3429         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
3430         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
3431
3432         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
3433         (Vcharset_latin_viscii_upper): New variable.
3434         (make_byte_from_character_table): New function.
3435         (put_byte_from_character_table): New function.
3436         (get_byte_from_character_table): New function.
3437         (CHAR96): New macro.
3438         (ucs_to_latin_jisx0201): New variable.
3439         (latin_jisx0201_to_ucs): New variable.
3440         (ucs_to_latin_iso8859_2): New variable.
3441         (latin_iso8859_2_to_ucs): New variable.
3442         (ucs_to_latin_iso8859_3): New variable.
3443         (latin_iso8859_3_to_ucs): New variable.
3444         (ucs_to_latin_iso8859_4): New variable.
3445         (latin_iso8859_4_to_ucs): New variable.
3446         (ucs_to_latin_iso8859_9): New variable.
3447         (latin_iso8859_9_to_ucs): New variable.
3448         (ucs_to_latin_viscii_lower): New variable.
3449         (latin_viscii_lower_to_ucs): New variable.
3450         (ucs_to_latin_viscii_upper): New variable.
3451         (latin_viscii_upper_to_ucs): New variable.
3452         (ucs_to_latin_tcvn5712): New variable.
3453         (latin_tcvn5712_to_ucs): New variable.
3454         (Qlatin_viscii_lower): New variable.
3455         (Qlatin_viscii_upper): New variable.
3456         (syms_of_mule_charset): Set up new symbol
3457         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
3458         (complex_vars_of_mule_charset): Set up new charset
3459         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
3460         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
3461         `ucs_to_<CHARSET>' tables.
3462
3463 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
3464
3465         * text-coding.c: New file.
3466
3467 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
3468
3469         * mule-charset.c (Fmake_char): Fix problem of 256-set.
3470
3471         * char-ucs.h (Vcharset_ucs_bmp): New variable.
3472         (MAKE_CHAR): Modify for `ucs-bmp'.
3473         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
3474         non-MULE characters of BMP.
3475
3476 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
3477
3478         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3479         to 0.6.
3480
3481 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3482
3483         * lstream.h:
3484         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
3485         - Include character.h for `CHAR_ASCII_P'.
3486
3487         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
3488
3489         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
3490         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
3491
3492         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
3493         (BYTE_C0_P): Likewise.
3494         (BYTE_C1_P): Likewise.
3495         (Lstream_get_emchar_1): Likewise.
3496         (Lstream_fput_emchar): Likewise.
3497         (Lstream_funget_emchar): Likewise.
3498         (copy_internal_to_external): Likewise.
3499         (copy_external_to_internal): Likewise.
3500
3501         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
3502         (BYTE_C0_P): Likewise.
3503         (BYTE_C1_P): Likewise.
3504         (Lstream_get_emchar_1): Likewise.
3505         (Lstream_fput_emchar): Likewise.
3506         (Lstream_funget_emchar): Likewise.
3507         (copy_internal_to_external): Likewise.
3508         (copy_external_to_internal): Likewise.
3509
3510         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
3511         (REP_BYTES_BY_FIRST_BYTE): Likewise.
3512
3513         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
3514         (BYTE_ASCII_P): Moved to mb-1byte.h.
3515
3516 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3517
3518         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
3519
3520         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
3521         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
3522         (VALID_CHARPTR_P): Moved to mb-*byte.h.
3523         (VALIDATE_CHARPTR_BACKWARD): Likewise.
3524         (VALIDATE_CHARPTR_FORWARD): Likewise.
3525         (simple_charptr_emchar): Moved to mb-multibyte.h.
3526         (simple_set_charptr_emchar): Likewise.
3527         (simple_charptr_copy_char): Likewise.
3528         (non_ascii_charptr_emchar): Likewise.
3529         (non_ascii_set_charptr_emchar): Likewise.
3530         (non_ascii_charptr_copy_char): Likewise.
3531         (charptr_emchar): Moved to mb-*byte.h.
3532         (set_charptr_emchar): Likewise.
3533         (charptr_copy_char): Likewise.
3534
3535         * mb-1byte.h, mb-multibyte.h: New files.
3536
3537 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3538
3539         * mb-utf-8.h (MULTIBYTE): New macro.
3540         (MAX_EMCHAR_LEN): Moved from buffer.h.
3541         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
3542
3543         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
3544
3545         * mb-lb.h, multibyte.h: New files.
3546
3547         * char-1byte.h (Charset_ID): Moved from buffer.h.
3548         (MIN_LEADING_BYTE): Likewise.
3549         (LEADING_BYTE_ASCII): Likewise.
3550         (NUM_LEADING_BYTES): Likewise.
3551         (CHARSETP): Likewise.
3552         (CHARSET_BY_LEADING_BYTE): Likewise.
3553         (XCHARSET_LEADING_BYTE): Likewise.
3554         (XCHARSET_GRAPHIC): Likewise.
3555         (XCHARSET_COLUMNS): Likewise.
3556         (XCHARSET_DIMENSION): Likewise.
3557         (CHAR_CHARSET): Likewise.
3558         (CHAR_LEADING_BYTE): Likewise.
3559         (BREAKUP_CHAR): Likewise.
3560         (Vcharset_ascii): Likewise.
3561
3562         * buffer.h: Include multibyte.h unconditionally.
3563         (VALID_CHARPTR_P): Moved to multibyte.h.
3564         (ASSERT_VALID_CHARPTR): Likewise.
3565         (REAL_INC_CHARPTR): Likewise.
3566         (REAL_INC_CHARBYTIND): Likewise.
3567         (REAL_DEC_CHARPTR): Likewise.
3568         (INC_CHARPTR): Likewise.
3569         (INC_CHARBYTIND): Likewise.
3570         (DEC_CHARPTR): Likewise.
3571         (VALIDATE_CHARPTR_BACKWARD): Likewise.
3572         (VALIDATE_CHARPTR_FORWARD): Likewise.
3573         (charptr_n_addr): Likewise.
3574         (MAX_EMCHAR_LEN): Moved to mb-*.h.
3575         (simple_charptr_emchar): Moved to multibyte.h.
3576         (simple_set_charptr_emchar): Likewise.
3577         (simple_charptr_copy_char): Likewise.
3578         (non_ascii_charptr_emchar): Likewise.
3579         (non_ascii_set_charptr_emchar): Likewise.
3580         (non_ascii_charptr_copy_char): Likewise.
3581         (charptr_emchar): Likewise.
3582         (set_charptr_emchar): Likewise.
3583         (charptr_copy_char): Likewise.
3584         (charptr_emchar_n): Likewise.
3585         (Charset_ID): Moved to char-1byte.h.
3586         (Vcharset_ascii): Likewise.
3587         (CHAR_CHARSET): Likewise.
3588         (CHAR_LEADING_BYTE): Likewise.
3589         (LEADING_BYTE_ASCII): Likewise.
3590         (NUM_LEADING_BYTES): Likewise.
3591         (MIN_LEADING_BYTE): Likewise.
3592         (CHARSETP): Likewise.
3593         (CHARSET_BY_LEADING_BYTE): Likewise.
3594         (XCHARSET_LEADING_BYTE): Likewise.
3595         (XCHARSET_GRAPHIC): Likewise.
3596         (XCHARSET_COLUMNS): Likewise.
3597         (XCHARSET_DIMENSION): Likewise.
3598         (BREAKUP_CHAR): Likewise.
3599
3600 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3601
3602         * character.h: Add document about interface for characters.
3603
3604         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
3605         (MAKE_CHAR): Delete comment about
3606         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
3607         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
3608         (BREAKUP_CHAR): Modify name of arguments.
3609         (CHAR_CHARSET): Modify name of argument.
3610
3611         * buffer.h: Delete document about Emchar accessors.
3612
3613 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3614
3615         * character.h (CHAR_INTP): Moved from buffer.h
3616         (CHAR_OR_CHAR_INTP): Likewise.
3617         (XCHAR_OR_CHAR_INT): Likewise.
3618         (CHECK_CHAR_COERCE_INT): Likewise.
3619
3620         * buffer.h (CHAR_INTP): Moved to character.h
3621         (CHAR_OR_CHAR_INTP): Likewise.
3622         (XCHAR_OR_CHAR_INT): Likewise.
3623         (CHECK_CHAR_COERCE_INT): Likewise.
3624
3625 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3626
3627         * character.h:
3628         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
3629         - Include char-1byte.h, char-lb.h or char-ucs.h.
3630
3631         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
3632
3633         * buffer.h: Include character unconditionally.
3634         (valid_char_p): Moved to char-*.h.
3635         (non_ascii_valid_char_p): Moved to char-lb.h.
3636
3637         * char-1byte.h, char-lb.h, char-ucs.h: New files.
3638
3639 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3640
3641         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
3642         in UTF-2000 because it is not ported yet and not to use
3643         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
3644         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
3645         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
3646
3647         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
3648         (CHAR_ASCII_P): Moved from character.h.
3649
3650         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
3651         (CHAR_ASCII_P): Likewise.
3652         (CHAR_FIELD1_MASK): Deleted.
3653         (CHAR_FIELD2_MASK): Deleted.
3654         (CHAR_FIELD3_MASK): Deleted.
3655         (MAX_CHAR_BASIC_LATIN): New macro.
3656         (CHAR_FIELD1): Deleted.
3657         (CHAR_FIELD2_INTERNAL): Deleted.
3658         (CHAR_FIELD3_INTERNAL): Deleted.
3659         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
3660         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
3661         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
3662         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
3663         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
3664         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
3665         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
3666         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
3667         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
3668         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
3669         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
3670         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
3671         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
3672         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
3673         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
3674         (MIN_CHAR_COMPOSITION): Deleted.
3675         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
3676         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
3677
3678 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
3679
3680         * buffer.h: Include mb-utf-8.h in UTF-2000.
3681
3682         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
3683
3684         * mb-utf-8.h: New file.
3685
3686 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
3687
3688         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
3689         instead of `int'.
3690
3691         * mule-charset.h, buffer.h (Charset_ID): New type.
3692
3693 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
3694
3695         * mule-canna.c (c2mu): Use `MAKE_CHAR',
3696         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
3697         instead of `MULE_CHAR_PRIVATE_OFFSET',
3698         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
3699         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
3700         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
3701
3702         * character.h (Vcharset_japanese_jisx0212): New variable
3703         definition.
3704
3705 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
3706
3707         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
3708         (charset_by_attributes): Delete array about direction.
3709         (latin_a_char_to_charset): New variable in UTF-2000.
3710         (latin_a_char_to_byte1): New variable in UTF-2000.
3711         (latin_a_char_to_byte2): New variable in UTF-2000.
3712         (Qucs_bmp): New variable.
3713         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
3714         `Bufbyte'.
3715         (next_allocated_2_byte_leading_byte): Likewise.
3716         (non_ascii_set_charptr_emchar): Likewise.
3717         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
3718         `CHARSET_TYPE_256X256' in UTF-2000; modify for
3719         `charset_by_attributes'.
3720         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
3721         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
3722         and `CHARSET_BY_LEADING_BYTE'.
3723         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
3724         `utf-2000-version' to `vars_of_mule_charset'.
3725         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
3726         define `leading-code-private-11' in UTF-2000; move setting of
3727         `utf-2000-version' from `syms_of_mule_charset'.
3728         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
3729         UTF-2000.
3730
3731         * character.h (Charset_ID): New type.
3732         (LEADING_BYTE_UCS_BMP): New macro.
3733         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
3734         (CHARSET_ID_OFFSET_94): New macro.
3735         (MIN_CHARSET_ID_PRIVATE_94): New macro.
3736         (MAX_CHARSET_ID_PRIVATE_94): New macro.
3737         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
3738         final-byte.
3739         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
3740         (LEADING_BYTE_LATIN_JISX0201): Likewise.
3741         (CHARSET_ID_OFFSET_96): New macro.
3742         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
3743         CHARSET_ID_OFFSET_96 and final-byte.
3744         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
3745         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
3746         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
3747         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
3748         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
3749         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
3750         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
3751         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
3752         (LEADING_BYTE_THAI_TIS620): Likewise.
3753         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
3754         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
3755         (CHARSET_ID_OFFSET_94x94): New macro.
3756         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
3757         CHARSET_ID_OFFSET_94x94 and final-byte.
3758         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
3759         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
3760         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
3761         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
3762         (LEADING_BYTE_CHINESE_GB2312): Likewise.
3763         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
3764         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
3765         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
3766         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
3767         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
3768         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
3769         (CHARSET_TYPE_128X128): New macro.
3770         (CHARSET_TYPE_256X256): New macro.
3771         (XCHARSET_PRIVATE_P): Delete unconditionally.
3772         (charset_by_attributes): Delete array about direction.
3773         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
3774         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
3775         (MIN_CHAR_94): New macro.
3776         (MAX_CHAR_94): New macro.
3777         (MIN_CHAR_96): New macro.
3778         (MAX_CHAR_96): New macro.
3779         (MIN_CHAR_94x94): New macro.
3780         (MAX_CHAR_94x94): New macro.
3781         (MIN_CHAR_96x96): New macro.
3782         (MAX_CHAR_96x96): New macro.
3783         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
3784         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
3785         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
3786         - 32)'.
3787         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
3788         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
3789         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
3790         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
3791         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
3792         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
3793         `XCHARSET_LEADING_BYTE' to make code-point.
3794         (latin_a_char_to_charset): New variable.
3795         (latin_a_char_to_byte1): New variable.
3796         (latin_a_char_to_byte2): New variable.
3797         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
3798         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
3799         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
3800
3801         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
3802         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
3803         (find_charsets_in_emchar_string): Likewise.
3804         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
3805
3806         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
3807         `int'.
3808         (decode_coding_iso2022): Likewise.
3809
3810         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
3811         of `unsigned char'.
3812
3813         * redisplay.c (redisplay_text_width_emchar_string): Use
3814         `Charset_ID' instead of `unsigned char'.
3815         (redisplay_frame_text_width_string): Likewise.
3816
3817         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
3818         `unsigned char'.
3819
3820         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
3821         instead of `unsigned char'.
3822         (face_cachel_charset_font_metric_info): Likewise.
3823
3824         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
3825         (get_non_ascii_char_table_value): Likewise.
3826         (get_char_table): Likewise.
3827         (put_char_table): Likewise.
3828         (map_over_other_charset): Likewise.
3829         (map_char_table): Likewise.
3830
3831         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
3832         instead of `unsigned char'.
3833
3834 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
3835
3836         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
3837         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
3838
3839         * mule-charset.c (leading_code_private_11): Don't define in
3840         UTF-2000.
3841
3842         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
3843         in UTF-2000 because it is not ported yet and not to use
3844         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
3845
3846 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
3847
3848         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
3849
3850 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3851
3852         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
3853         in UTF-2000.
3854
3855         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
3856         of unsigned char to store leading-byte.
3857
3858         * chartab.c (get_non_ascii_char_table_value): Don't use
3859         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
3860
3861         * file-coding.c (encode_coding_big5): Delete bogus implementation
3862         in UTF2000.
3863
3864         * character.h (LEADING_BYTE_*): Delete definition for
3865         non-UTF-2000.
3866         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
3867         (LEADING_BYTE_PREFIX_P): Deleted.
3868         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
3869         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
3870         (BUFBYTE_LEADING_BYTE_P): Deleted.
3871         (CHARSET_PRIVATE_P): Deleted unconditionally.
3872         (rep_bytes_by_first_byte): Deleted unconditionally.
3873         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
3874         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
3875         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
3876         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
3877         (CHAR_FIELD2): Deleted.
3878         (CHAR_FIELD3): Deleted.
3879         (MAKE_CHAR): Delete definition for non-UTF-2000.
3880         (BREAKUP_CHAR_1_UNSAFE): Deleted.
3881         (breakup_char_1): New implementation.
3882         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
3883         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
3884
3885 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3886
3887         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
3888         condition.
3889
3890 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3891
3892         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
3893         (CHARSET_PRIVATE_P): Likewise.
3894         (XCHARSET_PRIVATE_P): Likewise.
3895         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
3896
3897         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
3898         UTF2000.
3899         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
3900
3901 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3902
3903         * character.h (LEADING_BYTE_*): Changed in UTF2000.
3904         (NUM_LEADING_BYTES): Changed from 128 to 256.
3905         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
3906         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
3907         UTF2000.
3908         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
3909
3910         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
3911         UTF2000.
3912         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
3913         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
3914         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
3915         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
3916         (Qchinese_cns11643_3): New variable in UTF2000.
3917         (Qchinese_cns11643_4): New variable in UTF2000.
3918         (Qchinese_cns11643_5): New variable in UTF2000.
3919         (Qchinese_cns11643_6): New variable in UTF2000.
3920         (Qchinese_cns11643_7): New variable in UTF2000.
3921         (syms_of_mule_charset): Define `chinese-cns11643-3',
3922         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
3923         and `chinese-cns11643-7' in UTF2000.
3924         (vars_of_mule_charset): Initialize
3925         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
3926         + 1 in UTF2000.
3927         (complex_vars_of_mule_charset): Setup charset
3928         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
3929         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
3930
3931 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3932
3933         * mule-charset.c: Move setting for `leading-code-private-11' from
3934         `syms_of_mule_charset' to `vars_of_mule_charset'.
3935
3936 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3937
3938         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
3939         and `NUM_LEADING_BYTES' in assert.
3940
3941 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3942
3943         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
3944         instead of 128.
3945         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
3946         `NUM_LEADING_BYTES' instead of 128.
3947
3948 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3949
3950         * mule-charset.h (charset_by_leading_byte): Use
3951         `NUM_LEADING_BYTES' instead of 128.
3952         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
3953
3954         * mule-charset.c (charset_by_leading_byte): Use
3955         `NUM_LEADING_BYTES' instead of 128.
3956         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
3957
3958         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
3959         128.
3960
3961 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
3962
3963         * mule-charset.c (syms_of_mule_charset): Update to
3964         0.4 (Shin-Imamiya).
3965
3966 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
3967
3968         * file-coding.c (encode_coding_sjis): New implementation for
3969         UTF2000.  (decode_coding_sjis): Ditto.
3970
3971 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
3972
3973         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
3974         Don't define in UTF2000.
3975
3976         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
3977         defined.
3978
3979         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
3980         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
3981         MULE.
3982
3983 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
3984
3985         * config.h.in (CHAR_IS_UCS4): New macro.
3986
3987         * mule-charset.c (rep_bytes_by_first_byte): Modify for
3988         conventional MULE representation.
3989         (syms_of_mule_charset): Update to 0.3 (Imamiya).
3990
3991         * mule-charset.h: Reverted to original.
3992
3993         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
3994         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
3995         "mule-charset.h" if CHAR_IS_UCS4 is defined.
3996
3997         * character.h: New file.
3998
3999         * file-coding.c (Fmake_coding_system): Set 1 to
4000         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
4001         defined.
4002         (encode_coding_no_conversion): New implementation for UTF2000.
4003
4004         * file-coding.h (struct Lisp_Coding_System): Add new member
4005         `fixed.size'.
4006
4007 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
4008
4009         * file-coding.c (decode_coding_iso2022): Code-point arguments of
4010         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
4011         (encode_coding_iso2022): New implementation for UTF2000.
4012
4013 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4014
4015         * mule-canna.c (c2mu): New implementation for UTF2000.
4016         (m2c): Likewise.
4017
4018 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4019
4020         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
4021
4022 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4023
4024         * file-coding.c (reset_encoding_stream): Set 0 to
4025         `str->iso2022.current_char_boundary' in UTF2000.
4026         (encode_utf8): Don't define in UTF2000.
4027         (encode_coding_utf8): New implementation for UTF-8 representation
4028         of UTF2000.
4029         (complex_vars_of_file_coding): Define coding-system `utf-8'.
4030
4031 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4032
4033         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
4034
4035         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
4036         UTF2000.
4037         (REP_BYTES_BY_FIRST_BYTE): Likewise.
4038
4039         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
4040
4041         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
4042         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
4043         as UTF-8 in UTF2000.
4044         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
4045         (non_ascii_valid_char_p): Don't define in UTF2000.
4046         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
4047         (Lstream_get_emchar_1): Likewise.
4048         (utf-2000-version): New variable in UTF2000.
4049
4050         * lread.c (read_escape): Add new reader `u'.
4051
4052         * insdel.c (three_to_one_table): Don't define in UTF2000.
4053         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
4054         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
4055         UTF2000.
4056         (bytind_to_bufpos_func): Likewise.
4057         (buffer_mule_signal_inserted_region): Likewise.
4058         (vars_of_insdel): Don't initialize `three_to_one_table'.
4059         (init_buffer_text): Use `buf->text->mule_size' instead of
4060         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
4061         UTF2000.
4062
4063         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
4064         UTF-8 representation in UTF2000.
4065         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
4066         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
4067         (decode_coding_iso2022): Don't define local variable `lb' in
4068         UTF2000; don't use LEADING_BYTE in UTF2000; use
4069         `DECODE_ADD_UCS_CHAR' in UTF2000.
4070         (convert_to_external_format): Decode as UTF-8 in UTF2000.
4071
4072         * config.h.in (UTF2000): New macro.
4073
4074         * buffer.h (struct buffer_text): Add new member `mule_size' and
4075         don't add `mule_shifter' and `mule_three_p' in UTF2000.
4076         (valid_char_p): Return always 1 in UTF2000.
4077         (MAX_EMCHAR_LEN): 6 in UTF2000.
4078         (three_to_one_table): Don't define in UTF2000.
4079         (real_bufpos_to_bytind): Modify for UTF-8 representation in
4080         UTF2000.
4081         (real_bytind_to_bufpos): Likewise.
4082
4083         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
4084
4085 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4086
4087         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
4088         representation change.
4089         (Vutf_2000_version): New variable.
4090         (leading_code_private_11): New variable.
4091         (syms_of_mule_charset): Add new variables `utf-2000-version' and
4092         `leading-code-private-11'.
4093
4094         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
4095         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
4096         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
4097         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
4098         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
4099         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
4100         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
4101         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
4102         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
4103         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
4104         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
4105         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
4106         (MIN_CHAR_GREEK): New macro.
4107         (MAX_CHAR_GREEK): New macro.
4108         (MIN_CHAR_CYRILLIC): New macro.
4109         (MAX_CHAR_CYRILLIC): New macro.
4110         (MIN_CHAR_HEBREW): New macro.
4111         (MAX_CHAR_HEBREW): New macro.
4112         (MIN_CHAR_THAI): New macro.
4113         (MAX_CHAR_THAI): New macro.
4114         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
4115         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
4116         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
4117         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
4118         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
4119         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
4120         (CHAR_FIELD2): New inline function.
4121         (CHAR_FIELD3): New inline function.
4122         (MULE_CHAR_PRIVATE_OFFSET): New macro.
4123         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
4124         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
4125         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
4126         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
4127         (MIN_CHAR_COMPOSITION): Likewise.
4128         (CHAR_LEADING_BYTE): Modified for character representation change.
4129         (MAKE_CHAR): Likewise.
4130
4131         * lisp.h (Vcharset_latin_iso8859_1): New variable.
4132         (Vcharset_greek_iso8859_7): Likewise.
4133         (Vcharset_cyrillic_iso8859_5): Likewise.
4134         (Vcharset_hebrew_iso8859_8): Likewise.
4135         (Vcharset_thai_tis620): Likewise.
4136         (Vcharset_katakana_jisx0201): Likewise.
4137
4138 2001-02-08  Martin Buchholz <martin@xemacs.org>
4139
4140         * XEmacs 21.2.44 "Thalia" is released.
4141
4142 2001-02-06  Martin Buchholz  <martin@xemacs.org>
4143
4144         Fixes crashes in kill-emacs on some systems.
4145         * process-unix.c (unix_kill_child_process):
4146         It's OK for kill() to fail with ESRCH.
4147
4148 2001-02-07  Martin Buchholz  <martin@xemacs.org>
4149
4150         Contortions to make .gdbinit tricks work on most systems.
4151         * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
4152         * alloc.c (dbg_valmask): Make non-const.
4153         * alloc.c (dbg_typemask): Make non-const.
4154         * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
4155         * alloc.c (dbg_valbits): Make non-const.
4156         * alloc.c (dbg_gctypebits): Make non-const.
4157         * .gdbinit (decode_object): Make it work with AIX cc.
4158
4159 2001-02-06  Martin Buchholz  <martin@xemacs.org>
4160
4161         * elhash.c (make_general_lisp_hash_table):
4162         Use simpler and more efficient calloc to clear entries.
4163
4164 2001-02-07  Martin Buchholz  <martin@xemacs.org>
4165
4166         * window.c (window_scroll): Work around an AIX C compiler bug.
4167         Fixes 'scroll-up' does nothing problem with xlC.
4168
4169 2001-02-05  Martin Buchholz  <martin@xemacs.org>
4170
4171         * .gdbinit: Remove obsolete comment.
4172
4173 2001-01-31  Mike Alexander  <mta@arbortext.com>
4174
4175         * select.c (Fown_selection_internal): Set owned_p for device
4176         method correctly.
4177
4178 2001-02-01  Martin Buchholz  <martin@xemacs.org>
4179
4180         Port to g++ 2.97.
4181         "not" cannot be used as a macro name as it is an operator in C++
4182         * config.h.in: Stop #defining `not'.
4183         * chartab.c (check_category_char): not ==> not_p
4184         * chartab.h: Likewise.
4185         * regex.c (re_match_2_internal): Likewise.
4186
4187 2001-02-02  Martin Buchholz  <martin@xemacs.org>
4188
4189         * lisp-disunion.h: Fix up comments.
4190
4191 2001-01-31  Martin Buchholz  <martin@xemacs.org>
4192
4193         * keymap.c (define_key_check_and_coerce_keysym):
4194         (syms_of_keymap):
4195         Support mouse-6 and mouse-7 bindings in the obvious way.
4196
4197 2001-02-01  Martin Buchholz  <martin@xemacs.org>
4198
4199         * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
4200
4201 2001-01-30  Martin Buchholz  <martin@xemacs.org>
4202
4203         Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
4204         Previous patch missed DEFVAR_INT_MAGIC.
4205         Make sure future DEFVAR_foo use correct types.
4206         * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
4207         * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
4208         * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
4209         * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
4210         * (DEFVAR_INT): Likewise.
4211         * redisplay.c (vertical_clip): Should be of type Fixnum.
4212         * redisplay.c (horizontal_clip): Likewise.
4213         * lisp.h (dump_add_opaque_int): New.
4214         (dump_add_opaque_fixnum): New.
4215
4216 2001-01-29  Andy Piper  <andy@xemacs.org>
4217
4218         * glyphs-widget.c (check_valid_int_or_function): allow symbols
4219         since they can be eval'ed
4220
4221 2001-01-29  Martin Buchholz  <martin@xemacs.org>
4222
4223         * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
4224         Oops, XEmacs redefines `class'.  Use `typename' instead.
4225
4226 2001-01-28  Martin Buchholz  <martin@xemacs.org>
4227
4228         * dumper.c: Fix C++ compile errors.
4229
4230 2001-01-29  Martin Buchholz  <martin@xemacs.org>
4231
4232         * tparam.c: Use correct prototypes.
4233
4234 2001-01-28  Martin Buchholz  <martin@xemacs.org>
4235
4236         * sysproc.h: #include util.h for NetBSD's openpty.
4237
4238 2001-01-27  Martin Buchholz  <martin@xemacs.org>
4239
4240         More 64-bit correctness.
4241         The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
4242         Use a typedef `fixnum' for the type used for DEFVAR_INT.
4243         Fix up comments.
4244         This finally finishes the 64-bit SGI port.
4245         Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
4246         * symbols.c: Fix up comments and type casts.
4247         * symbols.c (do_symval_forwarding): s/int/Fixnum/g
4248         * symbols.c (store_symval_forwarding): s/int/Fixnum/g
4249         * symeval.h (Fixnum): New type.
4250         * symeval.h (symbol_value_type): Fix up comment.
4251
4252         * commands.h:
4253         * nt.c:
4254         * emacs.c:
4255         * data.c:
4256         * redisplay.c:
4257         * abbrev.c:
4258         * dired-msw.c:
4259         * event-Xt.c:
4260         * eldap.c:
4261         * window.c:
4262         * sound.c:
4263         * event-stream.c:
4264         * eval.c:
4265         * buffer.c:
4266         * mule-canna.c: A million DEFVAR_INTs here...
4267         * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
4268         * extents.c:
4269         * cmdloop.c:
4270         * lisp.h:
4271         * select-x.c:
4272         * console-x.h:
4273         * event-msw.c:
4274         * mule-wnnfns.c:
4275         * hpplay.c:
4276         * ralloc.c:
4277         * alloc.c:
4278         * keymap.c:
4279         * profile.c:
4280         s/int/Fixnum/g in DEFVAR_INT declarations.
4281
4282 2001-01-26  Martin Buchholz  <martin@xemacs.org>
4283
4284         Port pdump to SGI alignment-sensitive environment.
4285         Lisp Object sizeof methods now return aligned sizes.  Rely on that.
4286         Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
4287         properly aligned.
4288         Define and use aligned reading and writing macros.
4289         Use buffered stdio instead of posix i/o for faster dumping.
4290         Eliminate kludgy 256 byte space for header.
4291         Read and write from dump file using structs for alignment safety.
4292         * dumper.c (pdump_align_stream): New.
4293         * dumper.c (PDUMP_ALIGN_OUTPUT): New.
4294         * dumper.c (PDUMP_READ_ALIGNED): New.
4295         * dumper.c (PDUMP_WRITE_ALIGNED): New.
4296         * dumper.c (pdump_static_Lisp_Object): New struct.
4297         * dumper.c (pdump_static_pointer): New struct.
4298         * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
4299         * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
4300         * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
4301         * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
4302
4303         * dumper.c (pdump_backtrace):
4304         * dumper.c (pdump_get_indirect_count):
4305         * dumper.c (pdump_register_object):
4306         * dumper.c (pdump_register_struct):
4307         * dumper.c (pdump_reloc_one):
4308         * dumper.c (pdump_scan_by_alignment):
4309         * dumper.c (pdump_dump_from_root_struct_ptrs):
4310         * dumper.c (pdump_dump_opaques):
4311         * dumper.c (pdump_dump_rtables):
4312         * dumper.c (pdump_dump_from_root_objects):
4313         * dumper.c (pdump):
4314         * dumper.c (pdump_load_finish):
4315         Use aligned reading and writing.
4316
4317         * dumper.c (pdump_free): Make static.
4318         * dumper.c (pdump_hFile): Likewise.
4319         * dumper.c (pdump_hMap): Likewise.
4320
4321 2001-01-26  Martin Buchholz <martin@xemacs.org>
4322
4323         * XEmacs 21.2.43 "Terspichore" is released.
4324
4325 2001-01-25  Martin Buchholz  <martin@xemacs.org>
4326
4327         Type fiddling for window_config.saved_windows_count
4328         * window.c (struct window_config): 
4329         Make saved_windows_count member unsigned.
4330         * window.c (sizeof_window_config_for_n_windows): 
4331         Make parameter unsigned.
4332         * window.c (mark_window_config):
4333         * window.c (window_config_equal):
4334         * window.c (free_window_configuration):
4335         * window.c (Fset_window_configuration):
4336         * window.c (count_windows):
4337         * window.c (Fcurrent_window_configuration):
4338         * window.c (reinit_vars_of_window):
4339         Update all callers and users.
4340
4341 2001-01-25  Martin Buchholz  <martin@xemacs.org>
4342
4343         Alignment correctness for flexible arrays.
4344         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
4345         Make alignment-correct. Add interesting comments.
4346         * alloc.c (size_vector):
4347         * alloc.c (make_vector_internal):
4348         * alloc.c (make_bit_vector_internal):
4349         * alloc.c (sweep_bit_vectors_1):
4350         * fns.c (size_bit_vector):
4351         Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
4352         * window.c (sizeof_window_config_for_n_windows): 
4353         Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
4354
4355 2001-01-24  Martin Buchholz  <martin@xemacs.org>
4356
4357         * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
4358
4359 2001-01-23  Andy Piper  <andy@xemacs.org>
4360
4361         * select.c (Fown_selection_internal): pass owned_p
4362
4363         * select-msw.c (mswindows_own_selection): New Signature.
4364
4365         * console.h (struct console_methods): add owned_p to
4366         _own_selection.
4367
4368         * select-x.c (x_own_selection): pass owned_p
4369         (hack_motif_clipboard_selection): use owned_p
4370         (vars_of_select_x): new variable -
4371         x_selection_strict_motif_ownership.
4372
4373 2001-01-23  Martin Buchholz  <martin@xemacs.org>
4374
4375         * specifier.h (specifier_data_offset): Remove pointless parens.
4376         * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
4377
4378 2001-01-24  Martin Buchholz  <martin@xemacs.org>
4379
4380         Make Lisp_Object sizeof methods be alignment-correct.
4381         pdump must restore objects to the same alignment as the C compiler
4382         assumes.  It really matters on SGIs.
4383         * lstream.c (aligned_sizeof_lstream): New.
4384         (sizeof_lstream): Use aligned_sizeof_lstream.
4385         (Lstream_new): Likewise.
4386         * opaque.c (aligned_sizeof_opaque): New.
4387         (sizeof_opaque): Use aligned_sizeof_opaque.
4388         (make_opaque): Likewise.
4389         * specifier.c (aligned_sizeof_specifier): New.
4390         (sizeof_specifier): Use aligned_sizeof_specifier.
4391         (make_specifier_internal): Likewise.
4392
4393 2001-01-23  Martin Buchholz  <martin@xemacs.org>
4394
4395         * lstream.h (struct lstream): Use max_align_t for trailing data.
4396         * specifier.h (struct Lisp_Specifier): Likewise.
4397
4398 2001-01-22  Martin Buchholz  <martin@xemacs.org>
4399
4400         * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
4401         (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
4402         (CCL_SUSPEND): Likewise.
4403         (CCL_INVALID_CMD): Likewise.
4404         (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
4405         (ccl_driver): Likewise.
4406         (CCL_WRITE_CHAR): Macro hygiene.
4407         (CCL_WRITE_STRING): Macro hygiene.
4408
4409 2001-01-22  Martin Buchholz  <martin@xemacs.org>
4410
4411         Port "portable" dumper to SunOS 4 and HP-UX.
4412         * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
4413         * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
4414         * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
4415
4416 2001-01-22  Martin Buchholz  <martin@xemacs.org>
4417
4418         * lisp.h (ALIGNOF): A better definition for C++.
4419
4420 2001-01-20  Martin Buchholz  <martin@xemacs.org>
4421
4422         Macro hygiene.
4423         Fix printf warnings: int format, long int arg.
4424         * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
4425         (PUSH_FAILURE_POINT): Use correct printf formats.
4426         (POP_FAILURE_POINT): Use correct printf formats.  
4427         Use do {...} while (0)
4428
4429 2001-01-20  Martin Buchholz <martin@xemacs.org>
4430
4431         * XEmacs 21.2.42 "Poseidon" is released.
4432
4433 2001-01-20  Martin Buchholz  <martin@xemacs.org>
4434
4435         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
4436
4437 2001-01-19  Martin Buchholz  <martin@xemacs.org>
4438
4439         De-kludgify FIXED_TYPE free list frobbing.
4440         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
4441         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
4442         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
4443         * alloc.c (Lisp_Free): New pseudo lisp object definition.
4444         * alloc.c (LRECORD_FREE_P): New.
4445         * alloc.c (MARK_LRECORD_AS_FREE): New.
4446         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
4447         * alloc.c (STRUCT_FREE_P): Deleted.
4448         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
4449         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
4450         * alloc.c (STRING_CHARS_FREE_P): New.
4451         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
4452         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
4453         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
4454         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
4455         * alloc.c (resize_string): Use new definitions.
4456         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
4457         * alloc.c (verify_string_chars_integrity): Use new definitions.
4458         * alloc.c (compact_string_chars): Use new definitions.
4459         * alloc.c: Update monster comments.
4460         * lrecord.h (lrecord_type): Add some new lrecord types for
4461         alloc.c's use.
4462
4463 2001-01-18  Martin Buchholz  <martin@xemacs.org>
4464
4465         Improve alignment hackery.
4466         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
4467         (max_align_t): Moved from opaque.h - general purpose.
4468         (ALIGN_PTR): Use size_t, not long.
4469         * opaque.h (max_align_t): Move to lisp.h.
4470
4471 2001-01-18  Norbert Koch  <nk@LF.net>
4472
4473         * gui.h: Fix and add prototypes to fix build problems.
4474
4475 2001-01-18  Martin Buchholz  <martin@xemacs.org>
4476
4477         temacs is going away, so `dump-temacs' is now a bad name.
4478         * .dbxrc (dump-temacs): Rename to `dmp'.
4479         * .gdbinit (dump-temacs): Rename to `dmp'.
4480
4481 2001-01-17  Andy Piper  <andy@xemacs.org>
4482
4483         * glyphs.c (print_image_instance): comment to make martin happy.
4484
4485         * glyphs-x.c (x_redisplay_widget): update faces after a frame
4486         change.
4487
4488         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
4489         activation.
4490         (mswindows_tab_control_redisplay): warning suppression.
4491
4492         * glyphs-widget.c (widget_update): re-write to cope with updated
4493         items.
4494         (widget_instantiate): use new gui_item functions.
4495         (tab_control_update): deleted.
4496         (progress_gauge_update): deleted.
4497         (image_instantiator_progress_guage): take out update reference.
4498         (image_instantiator_tree_view): ditto.
4499         (image_instantiator_tab_control): ditto.
4500
4501         * gui.c (widget_gui_parse_item_keywords): new function. Do things
4502         Right the new way.
4503         (gui_item_add_keyval_pair): re-write to cope with descriptors and
4504         return whether anything was changed.
4505         (update_gui_item_keywords): as it sounds.
4506
4507         * gui.h: declare widget_gui_parse_item_keywords.
4508
4509         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
4510         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
4511
4512 2001-01-17  Martin Buchholz <martin@xemacs.org>
4513
4514         * XEmacs 21.2.41 "Polyhymnia" is released.
4515
4516 2001-01-16  Didier Verna  <didier@xemacs.org>
4517
4518         * glyphs.c (image_instantiate): don't use fallbacks when
4519         instantiating a face's background pixmap by inheritance.
4520
4521 2001-01-14  Mike Sperber <mike@xemacs.org>
4522
4523         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
4524         Conditionalize accordingly.
4525
4526 2001-01-16  Martin Buchholz  <martin@xemacs.org>
4527
4528         * dumper.c (pdump_file_get): Fix a compiler warning.
4529
4530 2001-01-15  Martin Buchholz  <martin@xemacs.org>
4531
4532         Make Purify happy when pdumping.
4533         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
4534         iniitalizing all bits of new lisp object memory.
4535         * symbols.c (Fmake_local_variable): Likewise.
4536         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
4537         * symbols.c (Fdefvaralias): Likewise.
4538         * mule-charset.c (vars_of_mule_charset): Likewise.
4539
4540 2001-01-15  Martin Buchholz  <martin@xemacs.org>
4541         Add the `-nd' flag when running pre-dump operations under the debugger.
4542         * .dbxrc (run-temacs): Add `-nd'.
4543         * .dbxrc (update-elc): Likewise.
4544         * .dbxrc (dump-temacs): Likewise.
4545         * .gdbinit (run-temacs): Likewise.
4546         * .gdbinit (check-temacs): Likewise.
4547         * .gdbinit (update-elc): Likewise.
4548         * .gdbinit (dump-temacs): Likewise.
4549
4550 2001-01-14  Martin Buchholz  <martin@xemacs.org>
4551
4552         Allow building 64-bit executables on AIX with GNU malloc, e.g.
4553         export OBJECT_MODE=64
4554         configure --pdump --use-union-type=no
4555         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
4556         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
4557
4558         * miscplay.c (sndcnv8U_2mono):
4559         Avoid two uses of `++' in the same expression.
4560         Suppresses a GCC warning.
4561
4562 2001-01-13  Martin Buchholz  <martin@xemacs.org>
4563
4564         Make sure future compilers don't miscompile alloc.c.
4565         * alloc.c:
4566         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
4567         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
4568
4569 2001-01-12  Martin Buchholz  <martin@xemacs.org>
4570
4571         * dumper.c: A little post-pdump-rename comment fixup.
4572
4573 2001-01-09  Jerry James  <james@eecs.ku.edu>
4574
4575         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
4576
4577 2001-01-13  Martin Buchholz  <martin@xemacs.org>
4578
4579         * *.[ch]: Globally rename symbols using the following `pdump-rename'
4580         script:
4581         #!/bin/sh
4582         replace_symbol () {
4583           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
4584         }
4585
4586         replace_symbol pdump_wire_lists pdump_weak_object_chains
4587         replace_symbol pdump_wire_list dump_add_weak_object_chain
4588
4589         replace_symbol pdump_wires pdump_root_objects
4590         replace_symbol pdump_wire dump_add_root_object
4591
4592         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
4593         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
4594
4595         replace_symbol dumpstructinfos pdump_root_struct_ptrs
4596         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
4597         replace_symbol dumpstructinfo pdump_root_struct_ptr
4598         replace_symbol dumpstruct dump_add_root_struct_ptr
4599
4600         replace_symbol dumpopaque dump_add_opaque
4601         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
4602         replace_symbol dumpopaqueinfos pdump_opaques
4603         replace_symbol dumpopaqueinfo pdump_opaque
4604
4605         replace_symbol nb_structdump nb_root_struct_ptrs
4606         replace_symbol nb_opaquedump nb_opaques
4607
4608         replace_symbol align_table pdump_align_table
4609         replace_symbol dump_header pdump_header
4610
4611         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
4612         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
4613
4614
4615 2001-01-12  Martin Buchholz  <martin@xemacs.org>
4616
4617         * s/aix4.h: Keep the C for AIX compiler from overaggressively
4618         optimizing bytecount_to_charcount().
4619
4620 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
4621
4622         * config.h.in:
4623         (HAVE_DLFCN_H): Removed.
4624         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
4625
4626 2001-01-06  Martin Buchholz  <martin@xemacs.org>
4627
4628         Portable dumper maintainability improvements.
4629         * alloc.c (staticpro):
4630         * alloc.c (staticpro_nodump):
4631         * alloc.c (garbage_collect_1):
4632         * alloc.c (reinit_alloc_once_early):
4633         * alloc.c (init_alloc_once_early):
4634         * alloc.c: Move dumper functions to alloc.c.
4635         * dumper.c (pdump_backtrace):
4636         * dumper.c (pdump_dump_structs):
4637         * dumper.c (pdump_dump_opaques):
4638         * dumper.c (pdump_dump_rtables):
4639         * dumper.c (pdump_dump_wired):
4640         * dumper.c (pdump):
4641         * dumper.c (pdump_load_check):
4642         * dumper.c (pdump_load_finish):
4643         * dumper.c (pdump_file_unmap):
4644         * dumper.c (pdump_file_get):
4645         * dumper.c (pdump_resource_free):
4646         * dumper.c (pdump_resource_get):
4647         * dumper.c (pdump_file_free):
4648         * dumper.c (pdump_file_try):
4649         * dumper.c (pdump_load):
4650         Remove fixed size limits on staticpro(), staticpro_nodump(),
4651         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
4652         Remove custom code for dumping lrecord_implementations_table - use
4653         dumpopaque instead.
4654         Remove (most of the) custom code for dumping staticpros - dump it
4655         like any other dynarr.
4656
4657         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
4658         * dumper.c: Moved functions from alloc.c.
4659         * alloc.c (dumpstruct): Moved to dumper.c.
4660         * alloc.c (dumpopaque): Likewise.
4661         * alloc.c (pdump_wire): Likewise.
4662         * alloc.c (pdump_wire_list): Likewise.
4663
4664         * lisp.h (Dynarr_sizeof): New.
4665         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
4666         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
4667         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
4668
4669         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
4670         * lisp.h (dumpopaque): ditto.
4671         * lisp.h (pdump_wire): ditto.
4672         * lisp.h (pdump_wire_list): ditto.
4673
4674 2001-01-09  Martin Buchholz  <martin@xemacs.org>
4675
4676         * make-src-depend (PrintPatternDeps):
4677         Use `sort' to make output independent of perl version.
4678
4679 2001-01-08  Martin Buchholz  <martin@xemacs.org>
4680
4681         Port to Netbsd 1.5.
4682         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
4683         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
4684
4685 2001-01-03  Didier Verna  <didier@xemacs.org>
4686
4687         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
4688         that `focus_frame' is alive before thinking of calling
4689         `redisplay_redraw_cursor' on it.
4690
4691 2001-01-08  Martin Buchholz <martin@xemacs.org>
4692
4693         * XEmacs 21.2.40 is released.
4694
4695 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
4696
4697         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
4698
4699 2001-01-06  Martin Buchholz  <martin@xemacs.org>
4700
4701         * alloc.c (dbg_valmask): Make const.
4702         * alloc.c (dbg_typemask): Make const.
4703         * alloc.c (dbg_USE_UNION_TYPE): Make const.
4704         * alloc.c (dbg_valbits): Make const.
4705         * alloc.c (dbg_gctypebits): Make const.
4706
4707 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
4708
4709         * redisplay-x.c (x_bevel_area):
4710         redisplay.h (struct rune):
4711         Typo fixes in comments.
4712
4713 2001-01-05  Andy Piper  <andy@xemacs.org>
4714
4715         * glyphs-x.c (x_redisplay_widget): use size changed for offset
4716         adjustment.
4717
4718         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
4719
4720 2001-01-05  Martin Buchholz  <martin@xemacs.org>
4721
4722         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
4723
4724         * mule-ccl.c (stack_idx_of_map_multiple):
4725         Non const global data must not be initialized!
4726         Found by MIYASHITA Hisashi.
4727
4728 2001-01-02  Andy Piper  <andy@xemacs.org>
4729
4730         * frame.c (change_frame_size): make sure frame size is always
4731         marked as changed.
4732
4733         * glyphs.c (image_instance_layout): minor code reuse.
4734
4735         * window.c (Fcurrent_window_configuration): revert previous
4736         change.
4737
4738 2001-01-02  Martin Buchholz  <martin@xemacs.org>
4739
4740         * glyphs.h:
4741         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
4742
4743 2000-12-31  Andy Piper  <andy@xemacs.org>
4744
4745         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
4746         when widget gets unmapped.
4747
4748         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
4749         function. Make sure widgets losing focus don't just drop it.
4750         (handle_focus_event_1): record the widget with focus.
4751
4752 2000-12-31  Andy Piper  <andy@xemacs.org>
4753
4754         * window.c (allocate_window): use
4755         make_image_instance_cache_hash_table.
4756         (make_dummy_parent): ditto.
4757         (Fset_window_configuration): ditto.
4758
4759         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
4760
4761         * glyphs.c (process_image_string_instantiator): use
4762         INSTANTIATOR_TYPE.
4763         (get_image_instantiator_governing_domain): ditto.
4764         (normalize_image_instantiator): ditto.
4765         (instantiate_image_instantiator): ditto.
4766         (make_image_instance_1): ditto.
4767         (image_instantiate): ditto. Key on glyph *and* instantiator type.
4768         (instantiator_eq_equal): new function for use with instance hash
4769         tables.
4770         (instantiator_eq_hash): ditto.
4771         (make_image_instance_cache_hash_table): create a suitable hash
4772         table for storing image instances.
4773
4774         * elhash.h (hash_table_weakness): new internal weakness type
4775         HASH_TABLE_KEY_CAR_VALUE_WEAK.
4776         declare new functions.
4777
4778         * elhash.c (finish_marking_weak_hash_tables): introduce yet
4779         another weakness type for glyphs.
4780         (make_standard_lisp_hash_table): new function split out from
4781         make_general_lisp_hash_table.
4782         (make_lisp_hash_table): call make_standard_lisp_hash_table.
4783         (hash_table_instantiate): ditto.
4784         (Fmake_hash_table): ditto.
4785
4786 2000-12-31  Martin Buchholz <martin@xemacs.org>
4787
4788         * XEmacs 21.2.39 is released.
4789
4790 2000-12-29  Andy Piper  <andy@xemacs.org>
4791
4792         * menubar.c (menubar_visible_p_changed): signal the frame changed.
4793
4794         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
4795         the frame has changed so that we pick up geometry changes such as
4796         menubar visibility.
4797
4798 2000-12-28  Andy Piper  <andy@xemacs.org>
4799
4800         * lastfile.c (my_ebss): make a char array so we can pad the
4801         bss. Fixes cygwin unexec.
4802
4803         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
4804
4805 2000-12-26  Andy Piper  <andy@xemacs.org>
4806
4807         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
4808         comments and try and be more precise about a non-/SIGIO world.
4809         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
4810         SIGIO.
4811
4812         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
4813         we don't normalize to zero width or height.
4814
4815 2000-12-24  Andy Piper  <andy@xemacs.org>
4816
4817         * Makefile.in.in (ldflags): add -mwindows when appropriate.
4818
4819 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
4820
4821         * s/sco5.h: SCO 5 has pty support.
4822
4823 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
4824
4825         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
4826         input-method-xlib.c contains whole contents of input-method-xfs.c,
4827         so we can use input-method-xlib.c's code for USE_XFONTSET
4828         using #ifdefs.
4829         * input-method-xfs.c: removed.
4830
4831 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
4832
4833         * file-coding.h (enum coding_category_type): reorder enumerators to
4834         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
4835         (now one greater than largest real coding_category_type enumerator).
4836         * file-coding.c (coding_category_symbol, coding_category_by_priority,
4837         coding_category_system, fcd_descriptihon_1, decode_coding_category,
4838         Fcoding_category_list, Fset_coding_priority_list,
4839         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
4840         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
4841
4842 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
4843
4844         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
4845         * redisplay-output.c (redisplay_output_window): Clear top of window
4846         when face is changed.
4847         * redisplay-x.c (x_redraw_exposed_window): Call
4848         redisplay_clear_top_of_window.
4849         * redisplay.h: Publish redisplay_clear_top_of_window.
4850
4851 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
4852
4853         * buffer.c (Fkill_buffer): Map over all devices.
4854         * window.c (window_loop): Remove UNSHOW_BUFFER code.
4855         (list_windows): New function.
4856         (list_all_windows): Ditto.
4857         (Freplace_buffer_in_windows): Use them.
4858
4859 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
4860
4861         * database.c (berkdb_subtype): Recognize new subtype `queue'.
4862         (Fopen_database): Use `db_create' instead of `db_open'.
4863         (syms_of_database): Initialize Qqueue.
4864
4865 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
4866
4867         * buffer.c (common_init_complex_vars_of_buffer): Initialize
4868         buffer_local_face_property.
4869         * buffer.h (struct buffer): New member buffer_local_face_property.
4870         * window.c (Fset_window_buffer):  Mark window's face as changed
4871         when buffer has buffer local face.
4872         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
4873         * objects.c (color_after_change): Set buffer_local_face_property
4874         when locale of face specifier is buffer.
4875         * objects.c (font_after_change): Ditto.
4876         * objects.c (face_boolean_after_change): Ditto.
4877         * glyphs.c (image_after_change): Ditto.
4878
4879 2000-12-09  Dan Holmsand  <dan@eyebee.com>
4880
4881         * nt.c (mswindows_fstat): Report file permissions, volume serial
4882         number, etc. Code adapted from FSF Emacs 20.7.
4883
4884 2000-12-09  Dan Holmsand  <dan@eyebee.com>
4885
4886         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
4887         of stat when we don't have symbolic links, to make sure
4888         mswindows_stat is called on mswindows.
4889
4890 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
4891
4892         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
4893
4894 2000-12-12  Martin Buchholz  <martin@xemacs.org>
4895
4896         * doprnt.c (emacs_doprnt_1): More printing fixes.
4897         Make printing of numbers compatible with libc and FSF Emacs.
4898         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
4899         Use the system printf to do most of the hard work of formatting,
4900         instead of doprnt_1().
4901         Calculate memory to allocate for format string.
4902         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
4903         (doprnt_1): Cleaner code and documentation.
4904
4905 2000-12-01  Jerry James  <james@eecs.ukans.edu>
4906
4907         * Makefile.in.in: Use the loop variable to install headers.
4908
4909 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
4910
4911         * window.c (Fsplit_window): Don't invalidate face cache.
4912
4913 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
4914
4915         * minibuf.c (Fall_completions): Undo the previous change
4916         which removed checking elements start with space.
4917
4918 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
4919
4920         * mule-canna.c: Didier suppression.
4921
4922 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
4923
4924         * mule-canna.c: rename static unsigned char buf[] to key_buffer
4925         (warning suppression).  Add English comment translations.
4926
4927 2000-12-05  Martin Buchholz  <martin@xemacs.org>
4928
4929         * unexelfsgi.c (unexec): Better test for mmap failure.
4930
4931 2000-12-05  Martin Buchholz <martin@xemacs.org>
4932
4933         * XEmacs 21.2.38 is released.
4934
4935 2000-12-05  Martin Buchholz  <martin@xemacs.org>
4936
4937         * redisplay.c (bar-cursor): Make a user variable.
4938
4939         * symsinit.h: Add init_postgresql_from_environment.
4940
4941 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
4942
4943         * regex.c: Convert to clean C.
4944
4945 2000-12-05  Dan Holmsand  <dan@eyebee.com>
4946
4947         * realpath.c:
4948         Don't #include sysfile.h. Revert to duplicating PATH_MAX
4949         initialization.
4950         (sys_readlink): renamed to system_readlink to avoid conflict with
4951         the other sys_readlink.
4952
4953 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
4954
4955         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
4956
4957 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
4958
4959         * postgresql.c (init_postgresql_from_environment): new function.
4960         (vars_of_postgresql): Move code initializing Lisp variables out and
4961         into init_postgresql_from_environment.
4962         emacs.c (main_1): Call init_postgresql_from_environment if and only
4963         if running a dumped XEmacs.
4964
4965 2000-08-31  Dan Holmsand  <dan@eyebee.com>
4966
4967         * buffer.c: Make find-file-compare-truenames default to true on
4968         windows.
4969
4970         * realpath.c (win32_abs_start):
4971         (cygwin_readlink):
4972         (win32_readlink): New functions.
4973         (xrealpath): Return really real filenames on windows.
4974
4975         * fileio.c (Ffile_truename): Make file-truename work on windows.
4976
4977 2000-11-29  Didier Verna  <didier@xemacs.org>
4978
4979         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
4980         * faces.c (update_face_cachel_data): use it.
4981         * faces.c (add_face_cachel): use it. Complete background pixmap
4982         frobbing in face cache if `update_face_cachel_data' has not done so.
4983
4984 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
4985
4986         * search.c (string_match_1): Don't set last_thing_searched
4987         when search failed.
4988
4989 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
4990
4991         * buffer.c: Include casetab.h
4992         (common_init_complex_vars_of_buffer): Use new case-table object.
4993         * buffer.h: Include casetab.h
4994         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
4995         (DOWNCASE_TABLE_OF): Ditto.
4996         * bufslots.h: Remove char-tables and add case-table.
4997         * casetab.c: Include casetab.h
4998         (CASE_TABLE_P): Removed.
4999         (mark_case_table): New function.
5000         (allocate_case_table): New function.
5001         (Fcase_table_p): Use new case-table.
5002         (case_table_char): New function.
5003         (Fget_case_table): Ditto.
5004         (Fput_case_table): Ditto.
5005         (Fput_case_table_pair): Ditto.
5006         (Fcopy_case_table): Ditto.
5007         (Fcurrent_case_table): Return case-table.
5008         (Fstandard_case_table): Return case-table.
5009         (Fset_case_table): Fix doc-string.
5010         (set_case_table): Use case-table
5011         (syms_of_casetab): DEFSUBR new functions.
5012         (complex_vars_of_casetab): Set up standard case-table.
5013         * casetab.h: New file.
5014         * editfns.c: Include casetab.h
5015         (Fcompare_buffer_substrings): Use case-table.
5016         * inline.c: Include casetab.h
5017         * lisp.h: Remove bogus extern.
5018         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
5019         * search.c: Include casetab.h
5020         (TRANSLATE_ASCII): Removed.
5021         (TRANSLATE): Unconditionally translate character.
5022         (looking_at_1): Use case-table.
5023         (string_match_1): Ditto.
5024         (fast_string_match): Ditto.
5025         (search_command): Ditto.
5026         (search_buffer): Separate boyer_moore.  Check whether
5027         boyer_moore is possible.
5028         (simple_search): New function.
5029         (boyer_moore): Separated from search_buffer. Translate char.
5030
5031 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
5032
5033         * regex.c (RE_TR_ASCII): Removed.
5034         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
5035         (PATFETCH): Call PATFETCH_RAW.
5036         (PATFETCH_RAW): Fetch Emchar.
5037         (PATUNFETCH): Decrement charptr.
5038         (GET_BUFFER_SPACE): Rename b to buf_end.
5039         (BUF_PUSH): Ditto.
5040         (BUF_PUSH_2): Ditto.
5041         (BUF_PUSH_3): Ditto.
5042         (EXTEND_BUFFER): Ditto.
5043         (SET_LIST_BIT): Ditto.
5044         (regex_compile): Ditto.  Translate non ASCII char.
5045         (compile_range): Ditto.
5046         (re_search_2): Ditto.
5047         (re_match_2_internal): Compare Emchar.
5048         (bcmp_translate): Ditto.
5049
5050 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
5051
5052         * lisp.h (basic char/int typedefs):  comment improvement.
5053
5054 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
5055
5056         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
5057         unstomp inhibit_site_lisp.  Improve comments.
5058
5059 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
5060
5061         * mule-charset.c (Fcharset_property):  improve type checking, comments.
5062
5063 2000-11-28  Andy Piper  <andy@xemacs.org>
5064
5065         * redisplay-output.c (redisplay_output_subwindow): make sure we do
5066         clipped display for windows in the gutter also.
5067         (redisplay_display_boxes_in_window_p): change semantics of return
5068         codes to be more intuitive.
5069
5070         * gutter.h: declare display_boxes_in_gutter_p.
5071
5072         * gutter.c (display_boxes_in_gutter_p): new function for
5073         redisplay.
5074
5075 2000-11-22  Andy Piper  <andy@xemacs.org>
5076
5077         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
5078         autodetect domain.
5079
5080 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
5081
5082         * callproc.c (Fold_call_process_internal):
5083         * gpm.c (Freceive_gpm_event):
5084         (tty_get_foreign_selection): Might be just warning supression.
5085         * fileio.c (Fwrite_region_internal):
5086         (Fset_visited_file_modtime):
5087         * keymap.c (event_matches_key_specifier_p):
5088         Initialize GCPROed variable.
5089
5090         * menubar-x.c (command_builder_find_menu_accelerator):
5091         Initialize before use.
5092
5093 2000-11-23  Andy Piper  <andy@xemacs.org>
5094
5095         * unexcw.c (unexec): make the resulting executable executable.
5096
5097 2000-11-21  Martin Buchholz  <martin@xemacs.org>
5098
5099         * doc.c (get_doc_string):
5100         Use size_t, not int, for result of XSTRING_LENGTH.
5101
5102         * cmds.c (Fdelete_char):
5103         * cmds.c (Fpoint_at_eol):
5104         * cmds.c (Fself_insert_command):
5105         Use EMACS_INT, not int, for result of XINT.
5106         Someday, someone will want to insert more than 2**31 identical characters.
5107
5108         * cmds.c (Fdelete_char):
5109         * cmds.c (Fdelete_backward_char):
5110         * syntax.c (Fforward_word):
5111         * syntax.c (Fforward_comment):
5112         Make COUNT argument optional, for consistency with forward-char et al.
5113
5114 2000-11-22  Martin Buchholz  <martin@xemacs.org>
5115
5116         * lisp.h:
5117         * print.c (long_to_string):
5118         Return a useful value: the pointer at end of data written.
5119
5120         * doprnt.c:
5121         Use `static const char * const' for constant strings.
5122         (union printf_arg): Delete `i', `ui' members.
5123         (get_doprnt_args):
5124         (emacs_doprnt_1):
5125         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
5126         Do all printf-ing via the `l' specifier.
5127         Use EMACS_INT instead of int.
5128         Optimize.
5129
5130 2000-11-20  Didier Verna  <didier@xemacs.org>
5131
5132         * faces.c (update_face_cachel_data): don't frob the background
5133         pixmap when the window is being created. The face is needed but
5134         does not exist yet.
5135
5136 2000-11-20  Andy Piper  <andy@xemacs.org>
5137
5138         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
5139         messing with a debug environment.
5140
5141 2000-11-20  Martin Buchholz  <martin@xemacs.org>
5142
5143         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
5144
5145 2000-11-20  Martin Buchholz  <martin@xemacs.org>
5146
5147         * casetab.c (Fcase_table_p): Fix compile error and crash.
5148
5149 2000-11-18  Philip Aston  <philipa@mail.com>
5150
5151         * s/cygwin32.h: Cygwin has SVR4-like pty support.
5152
5153 2000-11-18  Martin Buchholz  <martin@xemacs.org>
5154
5155         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
5156         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
5157
5158 2000-11-17  Martin Buchholz  <martin@xemacs.org>
5159
5160         * config.h.in: Define HAVE_ELF_H if elf.h exists.
5161         * unexelf.c: Use HAVE_ELF_H.
5162         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
5163         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
5164         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
5165         Greg Harrington <greg_harrington@hotmail.com> provided a machine
5166         for testing.
5167         So this is an unexelfsgi.c from a different line of development.
5168
5169 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
5170
5171         * regex.c (RE_TR_ASCII): New function.
5172         (RE_TRANSLATE): Call it.
5173
5174 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
5175
5176         * buffer.h (TRT_TABLE_OF): Remove assert.
5177         (IN_TRT_TABLE_DOMAIN): Removed.
5178
5179 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
5180
5181         * free-hook.c (log_gcpro):
5182         (show_gcprohist): Add support for GCPRO5.
5183
5184 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
5185
5186         * emacs.c (main_1): Improve -sd error message when --pdump=no.
5187
5188 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
5189
5190         * symeval.h: Declare flush_all_buffer_local_cache.
5191
5192         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
5193         (flush_buffer_local_cache): Added.
5194         (flush_all_buffer_local_cache): Added.
5195
5196         * lrecord.h: Remove unused XD_LO_RESET_NIL.
5197
5198         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
5199         (pdump_dump_data): Ditto.
5200         (pdump_reloc_one): Ditto.
5201         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
5202         before dumping.
5203
5204
5205 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
5206
5207         * buffer.c: Remove if 0'ed entry.
5208         * buffer.h: Rewrite TRT to use char-table.
5209         * bufslots.h: Remove mirror tables.
5210         * casetab.c: Remove mirror tables.
5211         (CASE_TABLE_P): New macro.
5212         (Fcase_table_p): Element of a case table is string or char-table.
5213         (make_mirror_trt_table): Removed.
5214         (set_case_table): Setup char-table from strings for backward
5215         compatibility.
5216         * dired.c (Fdirectory_files):
5217         * dired-msw.c: (mswindows_get_files):
5218         * lisp.h: Change prototype of re_pattern_buffer.
5219         * regex.c: (RE_TRANSLATE): New macro.
5220         (TRANSLATE_P): Ditto.
5221         Change translate to type RE_TRANSLATE_TYPE.
5222         * regex.h: Define RE_TRANSLATE_TYPE
5223         * search.c (TRANSLATE): New macro.
5224         (TRANSLATE_ASCII): New macro.
5225         Translate table is changed to Lisp_Object.
5226         (signal_failure): Inhibit return.
5227
5228 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
5229
5230         * device-msw.c:
5231         * eldap.c:
5232         * event-Xt.c:
5233         * event-stream.c:
5234         * print.c:
5235         Do UNGCPRO before return.
5236
5237 2000-11-14  Martin Buchholz <martin@xemacs.org>
5238
5239         * XEmacs 21.2.37 is released.
5240
5241 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
5242
5243         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
5244         Add comments about discarded return value.
5245
5246 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
5247
5248         * callint.c:
5249         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
5250
5251 2000-10-27  Andy Piper  <andy@xemacs.org>
5252
5253         * gutter.c (Fset_default_gutter_position): default left and right
5254         gutters to visible.
5255         (calculate_gutter_size): calculate resonable heuristic for left
5256         and right gutter sizes.
5257         (specifier_vars_of_gutter): change left and right gutter sizes to
5258         autodetect.
5259         (calculate_gutter_size_from_display_lines): new function.
5260         (output_gutter): check for resizing on left and right gutters.
5261         (clear_gutter): don't special case top and left gutters.
5262         (specifier_vars_of_gutter): use new signature for
5263         set_specifier_caching.
5264
5265         * glyphs-x.c (x_redisplay_widget): spelling fix.
5266         * glyphs.c (specifier_vars_of_glyphs):
5267         * menubar.c (specifier_vars_of_menubar):
5268         * redisplay.c (specifier_vars_of_redisplay):
5269         * toolbar.c (specifier_vars_of_toolbar):
5270         * window.c (specifier_vars_of_window):
5271         * scrollbar.c (specifier_vars_of_scrollbar):
5272         (complex_vars_of_scrollbar): use new signature for
5273         set_specifier_caching.
5274
5275         * specifier.c (set_specifier_caching): include recompute flag.
5276         (recompute_one_cached_specifier_in_window): always recompute if
5277         flag set.
5278         (recompute_one_cached_specifier_in_frame): ditto.
5279
5280         * specifier.h (struct specifier_caching): add recompute flag.
5281
5282 2000-10-24  Andy Piper  <andy@xemacs.org>
5283
5284         * unexcw.c (copy_executable_and_dump_data_section): add new
5285         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
5286         5.0 happy.
5287
5288 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
5289
5290         * console-x.h (x_device): New member modifier_release_time.
5291         * event-Xt.c (x_handle_sticky_modifiers):
5292         Bound interval modifier keys are sticky.
5293         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
5294         * events.h: extern it.
5295
5296 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
5297
5298         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
5299
5300 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
5301
5302         * event-stream.c (execute_command_event): Preserve current_events
5303         and the like when event is misc-user-event.
5304         Inhibit quit during the call to maybe_echo_keys.
5305
5306 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
5307
5308         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
5309         symlink when buffer is killed.
5310         (inhibit_clash_detection): New variable.
5311
5312 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
5313
5314         * console.c (Fset_input_method): Trigger redisplay on tty.
5315
5316 2000-11-07  Martin Buchholz  <martin@xemacs.org>
5317
5318         * process.c (Fprocess_status): Revert to previous behavior:
5319         (process-status "nosuchprocess") ==> nil
5320
5321 2000-11-06  Martin Buchholz  <martin@xemacs.org>
5322
5323         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
5324         Work around another GCC 2.95.2 optimizer bug.
5325
5326 2000-11-02  Martin Buchholz  <martin@xemacs.org>
5327
5328         * process.c (Fget_process): Use LIST_LOOP_2.
5329         (kill_buffer_processes): Use LIST_LOOP_2.
5330
5331         * minibuf.c (Fall_completions):
5332         Delete old non-functional code for FSF fourth argument.
5333
5334         * frame.c (frame_matches_frame_spec):
5335         Renamed from `frame_matches_frametype'.  Update all callers.
5336         (device_matches_device_spec):
5337         Renamed from 'device_matches_console_spec'.  Update all callers.
5338
5339         * doc.c (Fsubstitute_command_keys):
5340         Remove buffer overflow crash.  Small code cleanups.
5341
5342         * casetab.c (check_case_table): Simpler code.
5343
5344         * window.c (Freplace_buffer_in_windows):
5345         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
5346         (and similar implementation) as Fdelete_windows_on.
5347         Update all callers.
5348
5349         * alloc.c (Fmake_list):
5350         * alloc.c (make_vector):
5351         * alloc.c (Fmake_vector):
5352         * alloc.c (make_bit_vector):
5353         * alloc.c (Fmake_bit_vector):
5354         * alloc.c (Fbit_vector):
5355         * alloc.c (Fmake_string):
5356         * alloc.c (Fpurecopy):
5357         * alloc.c (Fmemory_limit):
5358         * buffer.c:
5359         * buffer.c (Fget_buffer):
5360         * buffer.c (Fkill_buffer):
5361         * buffer.c (complex_vars_of_buffer):
5362         * bytecode.c (Fcompiled_function_stack_depth):
5363         * callint.c (Fprefix_numeric_value):
5364         * event-stream.c:
5365         * event-stream.c (Fread_key_sequence):
5366         * casetab.c:
5367         * casetab.c (Fcase_table_p):
5368         * casetab.c (check_case_table):
5369         * casetab.c (Fset_case_table):
5370         * casetab.c (Fset_standard_case_table):
5371         * chartab.c:
5372         * chartab.c (Fchar_table_type):
5373         * chartab.c (Freset_char_table):
5374         * chartab.c (Fget_char_table):
5375         * chartab.c (Fget_range_char_table):
5376         * chartab.c (Fput_char_table):
5377         * chartab.c (Fmap_char_table):
5378         * chartab.c (Fcategory_table_p):
5379         * chartab.c (Fcheck_category_at):
5380         * chartab.c (Fchar_in_category_p):
5381         * chartab.c (Fcategory_table):
5382         * chartab.c (Fcopy_category_table):
5383         * chartab.c (Fset_category_table):
5384         * chartab.c (Fcategory_designator_p):
5385         * chartab.c (Fcategory_table_value_p):
5386         * cmds.c (Fdelete_char):
5387         * cmds.c (Fdelete_backward_char):
5388         * cmds.c (Fself_insert_command):
5389         * cmds.c (Fself_insert_internal):
5390         * console.c (Fvalid_console_type_p):
5391         * console.c (Fcdfw_console):
5392         * console.c (Fconsole_type):
5393         * console.c (Fconsole_name):
5394         * console.c (Fconsole_device_list):
5395         * console.c (Fconsole_on_window_system_p):
5396         * data.c:
5397         * data.c (Feq):
5398         * data.c (Fold_eq):
5399         * data.c (Fsubr_interactive):
5400         * data.c (Fchar_to_int):
5401         * data.c (Fint_to_char):
5402         * data.c (Fsetcar):
5403         * data.c (Fsetcdr):
5404         * data.c (Fnumber_to_string):
5405         * data.c (Fstring_to_number):
5406         * data.c (Frem):
5407         * database.c (mark_database):
5408         * database.c (finalize_database):
5409         * database.c (Fdatabase_live_p):
5410         * database.c (Fdatabasep):
5411         * device-x.c (Fx_get_resource):
5412         * device.c (Fdfw_device):
5413         * dired.c:
5414         * dired.c (Ffile_name_completion):
5415         * dired.c (Ffile_name_all_completions):
5416         * dired.c (Fuser_name_completion):
5417         * dired.c (Fuser_name_completion_1):
5418         * dired.c (Fuser_name_all_completions):
5419         * doc.c (Fdocumentation):
5420         * doc.c (Fdocumentation_property):
5421         * doc.c (Fsubstitute_command_keys):
5422         * editfns.c:
5423         * editfns.c (Fchar_to_string):
5424         * editfns.c (Fstring_to_char):
5425         * editfns.c (Ftemp_directory):
5426         * editfns.c (Finsert_char):
5427         * editfns.c (Fbuffer_substring_no_properties):
5428         * editfns.c (Fnarrow_to_region):
5429         * editfns.c (Fchar_equal):
5430         * editfns.c (Fchar_Equal):
5431         * editfns.c (Ftranspose_regions):
5432         * emacs.c (Fdump_emacs):
5433         * eval.c (Fthrow):
5434         * eval.c (Fcommand_execute):
5435         * eval.c (Fautoload):
5436         * eval.c (Fbacktrace):
5437         * eval.c (Fbacktrace_frame):
5438         * events.c:
5439         * events.c (Fcopy_event):
5440         * events.c (Fcharacter_to_event):
5441         * events.c (Fevent_button):
5442         * events.c (Fevent_process):
5443         * extents.c:
5444         * extents.c (Fnext_extent_change):
5445         * extents.c (Fextent_property):
5446         * faces.c (Ffacep):
5447         * faces.c (Fmake_face):
5448         * file-coding.c:
5449         * file-coding.c (Fencode_shift_jis_char):
5450         * file-coding.c (Fencode_big5_char):
5451         * fileio.c (Ffile_name_directory):
5452         * fileio.c (Ffile_name_nondirectory):
5453         * fileio.c (Ffile_name_as_directory):
5454         * fileio.c (Fdirectory_file_name):
5455         * fileio.c (Ffile_truename):
5456         * fileio.c (Fsubstitute_in_file_name):
5457         * fileio.c (Ffile_modes):
5458         * fileio.c (Fset_file_modes):
5459         * fileio.c (Fset_default_file_modes):
5460         * fileio.c (Fverify_visited_file_modtime):
5461         * floatfns.c (Facos):
5462         * floatfns.c (Fasin):
5463         * floatfns.c (Fatan):
5464         * floatfns.c (Fcos):
5465         * floatfns.c (Fsin):
5466         * floatfns.c (Ftan):
5467         * floatfns.c (Fbessel_j0):
5468         * floatfns.c (Fbessel_j1):
5469         * floatfns.c (Fbessel_jn):
5470         * floatfns.c (Fbessel_y0):
5471         * floatfns.c (Fbessel_y1):
5472         * floatfns.c (Fbessel_yn):
5473         * floatfns.c (Ferf):
5474         * floatfns.c (Ferfc):
5475         * floatfns.c (Flog_gamma):
5476         * floatfns.c (Fexp):
5477         * floatfns.c (Fexpt):
5478         * floatfns.c (Flog):
5479         * floatfns.c (Flog10):
5480         * floatfns.c (Fsqrt):
5481         * floatfns.c (Fcube_root):
5482         * floatfns.c (Facosh):
5483         * floatfns.c (Fasinh):
5484         * floatfns.c (Fatanh):
5485         * floatfns.c (Fcosh):
5486         * floatfns.c (Fsinh):
5487         * floatfns.c (Ftanh):
5488         * floatfns.c (Fabs):
5489         * floatfns.c (Ffloat):
5490         * floatfns.c (Flogb):
5491         * floatfns.c (Fceiling):
5492         * floatfns.c (Ffloor):
5493         * floatfns.c (Fround):
5494         * floatfns.c (Ftruncate):
5495         * floatfns.c (Ffceiling):
5496         * floatfns.c (Fffloor):
5497         * floatfns.c (Ffround):
5498         * floatfns.c (Fftruncate):
5499         * fns.c (Fstring_equal):
5500         * fns.c (Fstring_lessp):
5501         * fns.c (concat2):
5502         * fns.c (concat3):
5503         * fns.c (vconcat2):
5504         * fns.c (vconcat3):
5505         * fns.c (Fsubstring):
5506         * fns.c (Fassoc):
5507         * fns.c (Fold_assoc):
5508         * fns.c (assoc_no_quit):
5509         * fns.c (Fassq):
5510         * fns.c (Fold_assq):
5511         * fns.c (assq_no_quit):
5512         * fns.c (Frassoc):
5513         * fns.c (Fold_rassoc):
5514         * fns.c (Frassq):
5515         * fns.c (Fold_rassq):
5516         * fns.c (rassq_no_quit):
5517         * fns.c (Fremassoc):
5518         * fns.c (remassoc_no_quit):
5519         * fns.c (Fremassq):
5520         * fns.c (remassq_no_quit):
5521         * fns.c (Fremrassoc):
5522         * fns.c (Fremrassq):
5523         * fns.c (remrassq_no_quit):
5524         * fns.c (Fsort):
5525         * fns.c (Fplist_get):
5526         * fns.c (Fplist_put):
5527         * fns.c (Fplist_remprop):
5528         * fns.c (Fplist_member):
5529         * fns.c (Flax_plist_get):
5530         * fns.c (Flax_plist_put):
5531         * fns.c (Flax_plist_remprop):
5532         * fns.c (Flax_plist_member):
5533         * fns.c (Fequal):
5534         * fns.c (Fold_equal):
5535         * fns.c (Frequire):
5536         * fns.c (Fbase64_encode_region):
5537         * fns.c (Fbase64_encode_string):
5538         * fns.c (Fbase64_decode_region):
5539         * frame.c:
5540         * frame.c (frame_matches_frame_spec):
5541         * frame.c (device_matches_device_spec):
5542         * frame.c (next_frame):
5543         * frame.c (previous_frame):
5544         * frame.c (Fnext_frame):
5545         * frame.c (Fprevious_frame):
5546         * frame.c (Fframe_property):
5547         * frame.c (Fset_frame_height):
5548         * frame.c (Fset_frame_size):
5549         * frame.h:
5550         * glyphs.c:
5551         * glyphs.c (if):
5552         * glyphs.c (decode_error_behavior_flag):
5553         * glyphs.c (Fmake_image_instance):
5554         * indent.c (Findent_to):
5555         * intl.c (Fignore_defer_gettext):
5556         * keymap.c (Fkeymapp):
5557         * keymap.c (Flookup_key):
5558         * lread.c:
5559         * lread.c (Fload_internal):
5560         * lread.c (Feval_buffer):
5561         * lread.c (Feval_region):
5562         * macros.c (Fexecute_kbd_macro):
5563         * marker.c (set_marker_internal):
5564         * marker.c (Fset_marker):
5565         * marker.c (set_marker_restricted):
5566         * marker.c (Fcopy_marker):
5567         * marker.c (noseeum_copy_marker):
5568         * menubar.c:
5569         * menubar.c (Fpopup_menu):
5570         * minibuf.c:
5571         * mule-charset.c (Fcharset_name):
5572         * mule-charset.c (Fchar_charset):
5573         * mule-charset.c (Fchar_octet):
5574         * mule-charset.c (Fsplit_char):
5575         * mule-wnnfns.c (Fwnn_open):
5576         * mule-wnnfns.c (Fwnn_dict_comment):
5577         * mule-wnnfns.c (Fwnn_quit_henkan):
5578         * mule-wnnfns.c (Fwnn_word_toroku):
5579         * mule-wnnfns.c (Fwnn_word_sakujo):
5580         * mule-wnnfns.c (Fwnn_word_use):
5581         * mule-wnnfns.c (Fwnn_hindo_set):
5582         * objects.c:
5583         * objects.c (Fmake_color_instance):
5584         * objects.c (Fmake_font_instance):
5585         * print.c (Fwrite_char):
5586         * process.c:
5587         * process.c (mark_process):
5588         * process.c (print_process):
5589         * process.c (get_process_from_usid):
5590         * process.c (Fprocessp):
5591         * process.c (Fprocess_live_p):
5592         * process.c (Fget_process):
5593         * process.c (Fget_buffer_process):
5594         * process.c (get_process):
5595         * process.c (Fprocess_id):
5596         * process.c (Fprocess_name):
5597         * process.c (Fprocess_command):
5598         * process.c (init_process_io_handles):
5599         * process.c (start_process_unwind):
5600         * process.c (Fstart_process_internal):
5601         * process.c (Fopen_multicast_group_internal):
5602         * process.c (Fset_process_window_size):
5603         * process.c (read_process_output):
5604         * process.c (send_process):
5605         * process.c (Fprocess_tty_name):
5606         * process.c (Fset_process_buffer):
5607         * process.c (Fprocess_buffer):
5608         * process.c (Fprocess_mark):
5609         * process.c (set_process_filter):
5610         * process.c (Fset_process_filter):
5611         * process.c (Fprocess_filter):
5612         * process.c (Fprocess_send_region):
5613         * process.c (Fprocess_send_string):
5614         * process.c (exec_sentinel):
5615         * process.c (Fset_process_sentinel):
5616         * process.c (Fprocess_sentinel):
5617         * process.c (status_notify):
5618         * process.c (Fprocess_status):
5619         * process.c (Fprocess_exit_status):
5620         * process.c (process_send_signal):
5621         * process.c (Fprocess_send_eof):
5622         * process.c (deactivate_process):
5623         * process.c (remove_process):
5624         * process.c (Fdelete_process):
5625         * process.c (kill_buffer_processes):
5626         * process.c (Fprocess_kill_without_query):
5627         * process.c (Fprocess_kill_without_query_p):
5628         * rangetab.c:
5629         * rangetab.c (Fget_range_table):
5630         * rangetab.c (Fput_range_table):
5631         * rangetab.c (Fremove_range_table):
5632         * rangetab.c (Fclear_range_table):
5633         * search.c:
5634         * search.c (Fskip_chars_forward):
5635         * search.c (Fskip_chars_backward):
5636         * search.c (Fskip_syntax_forward):
5637         * search.c (Fskip_syntax_backward):
5638         * search.c (search_command):
5639         * search.c (Freplace_match):
5640         * search.c (Fregexp_quote):
5641         * select.c (Fown_selection_internal):
5642         * select.c (Fselection_owner_p):
5643         * select.c (Fselection_exists_p):
5644         * select.c (Fget_selection_internal):
5645         * specifier.c:
5646         * symbols.c:
5647         * symbols.c (Fintern):
5648         * symbols.c (Fintern_soft):
5649         * symbols.c (Funintern):
5650         * symbols.c (Fapropos_internal):
5651         * symbols.c (Fset_default):
5652         * syntax.c:
5653         * syntax.c (Fsyntax_table_p):
5654         * syntax.c (Fcopy_syntax_table):
5655         * syntax.c (Fset_syntax_table):
5656         * syntax.c (Fchar_syntax):
5657         * syntax.c (syntax_match):
5658         * syntax.c (Fmatching_paren):
5659         * syntax.c (Fforward_word):
5660         * syntax.c (scan_lists):
5661         * syntax.c (Fscan_lists):
5662         * syntax.c (Fscan_sexps):
5663         * syntax.c (Fparse_partial_sexp):
5664         * toolbar.c (Fcheck_toolbar_button_syntax):
5665         * tooltalk.doc:
5666         * window.c:
5667         * window.c (Fwindowp):
5668         * window.c (Fwindow_live_p):
5669         * window.c (Fwindow_point):
5670         * window.c (Fdelete_window):
5671         * window.c (Fnext_window):
5672         * window.c (Fprevious_window):
5673         * window.c (Fother_window):
5674         * window.c (window_loop):
5675         * window.c (Fget_lru_window):
5676         * window.c (Fsplit_window):
5677         * window.c (Fenlarge_window):
5678         * window.c (Fenlarge_window_pixels):
5679         * window.c (Fshrink_window):
5680         * window.c (Fshrink_window_pixels):
5681         * window.c (change_window_height):
5682         * window.c (Fwindow_configuration_p):
5683         * window.c (Fcurrent_window_configuration):
5684         * window.h:
5685         * casefiddle.c (casify_object):
5686         * casefiddle.c (Fupcase):
5687         * casefiddle.c (Fdowncase):
5688         * casefiddle.c (Fcapitalize):
5689         * casefiddle.c (Fupcase_initials):
5690         * casefiddle.c (casify_region_internal):
5691         * casefiddle.c (casify_region):
5692         * casefiddle.c (Fupcase_region):
5693         * casefiddle.c (Fdowncase_region):
5694         * casefiddle.c (Fcapitalize_region):
5695         * casefiddle.c (Fupcase_initials_region):
5696         * casefiddle.c (Fupcase_word):
5697         * casefiddle.c (Fdowncase_word):
5698         * casefiddle.c (Fcapitalize_word):
5699         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
5700         Replace 0 with '\0' when working with bytes.
5701         Replace initial "(" with "\(" in docstrings.
5702
5703 2000-11-01  Martin Buchholz  <martin@xemacs.org>
5704
5705         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
5706
5707         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
5708
5709 2000-10-31  Martin Buchholz  <martin@xemacs.org>
5710
5711         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
5712
5713 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
5714
5715         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
5716         correctly.
5717
5718 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
5719
5720         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
5721         (inhibit_auto_save_session): New variable.
5722         (vars_of_fileio): Declare and initialize them.
5723         * fileio.c (Fdo_auto_save): Don't create session file if
5724         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
5725
5726 2000-10-31  Martin Buchholz  <martin@xemacs.org>
5727
5728         * sgiplay.c (play_internal): C++ compilability.
5729         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
5730         * callproc.c (Fold_call_process_internal):
5731         Remove unused vars `env', `first'.
5732         * scrollbar.c (update_scrollbar_instance):
5733         #### unused var `current_window'.
5734         * redisplay-tty.c: Put currently unused vars insert_mode_on,
5735         etc. within #ifdef NOT_YET.
5736         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
5737         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
5738         * specifier.c (specifier_instance):
5739         #### unused var `tag'.
5740         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
5741
5742 2000-10-27  Martin Buchholz  <martin@xemacs.org>
5743
5744         * fns.c (Fbutlast):
5745         * fns.c (list_sort):
5746         * fns.c (Ffillarray):
5747         * fns.c (bytecode_nconc2):
5748         * fns.c (Fnconc):
5749         * fns.c (mapcar1):
5750         * fns.c (Fmapconcat):
5751         Be pedantically 64-bit correct.  For the time when someone will
5752         want to have a list with length > 2**32.
5753
5754         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
5755         Work around MIPSpro compiler bug.
5756
5757         * process-unix.c (unix_kill_child_process): Add snarky comment.
5758         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
5759
5760         * config.h.in: Oops, _getpt ==> _getpty
5761
5762 2000-10-26  Martin Buchholz  <martin@xemacs.org>
5763
5764         * config.h.in:
5765         * regex.c:
5766         Use void*, not char*, as return type of alloca().
5767
5768         * alloc.c (free_marker): Side effect inside assert expression!
5769
5770 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
5771
5772         * mule-charset.c (Fset_charset_ccl_program): To check
5773         if the given ccl program is valid, use setup_ccl_program()
5774         instead of CHECK_VECTOR().
5775         (Fmake_charset): Likewise.
5776
5777 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
5778
5779         * faces.c (get_extent_fragment_face_cache_index):
5780         Fix cachel.merged_faces memory leak.
5781
5782 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
5783
5784         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
5785         Reset MSB of octets obtained by DECODE_SJIS
5786         because of the incompatibility with Emacs.
5787         (ccl_driver)<CCL_ENCODE_SJIS>:
5788         Set MSB of octets before passing them to
5789         ENCODE_SJIS because of the incompatibility
5790         with Emacs.
5791
5792 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
5793
5794         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
5795         (DECLARE_LRECORD): Undo the last change.
5796         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
5797
5798 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
5799
5800         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
5801         the implementation to lrecord_implementations_table.
5802
5803 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
5804
5805         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
5806         initial value of `lrecord_type_##c_name' and
5807         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
5808         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
5809         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
5810         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
5811         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
5812
5813 2000-10-17  Martin Buchholz  <martin@xemacs.org>
5814
5815         * miscplay.c (sndcnv8S_2mono):
5816         (sndcnv2monounsigned):
5817         (sndcnvULaw_2linear):
5818         (sndcnv16swap):
5819         Remove implementation-defined behavior.
5820
5821 2000-10-12  Martin Buchholz  <martin@xemacs.org>
5822
5823         * input-method-xlib.c: Warning suppression.
5824
5825 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
5826
5827         * mule-ccl.c: Sync up with Emacs 21.0.90.
5828         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
5829         Do nothing.
5830         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
5831         Likewise.
5832         (ccl_driver[WriteMultibyteChar2]): Bug fix.
5833         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
5834         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
5835         leading char belongs to official 2-dimensional charset.
5836         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
5837         write the given character as is.  Otherwise,
5838         if it is a multibyte char, convert it by
5839         non_ascii_set_charptr_emchar, then write it.
5840         (CCL_WRITE_STRING): Likewise.
5841         (ccl_get_compiled_code): New function.
5842         (setup_ccl_program): When ccl_prog is invalid,
5843         return -1.
5844         (Fregister_code_conversion_map): New function.
5845         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
5846
5847         * mule-ccl.h: Sync up with Emacs 21.0.90.
5848         (Fregister_ccl_program): export it.
5849
5850         * redisplay-msw.c (separate_textual_runs):
5851         If ccl program is not valid, don't do ccl conversion.
5852
5853         * redisplay-x.c (separate_textual_runs): Ditto.
5854
5855         * file-coding.c (Fmake_coding_system):
5856         When type is ccl and value is vector, register it
5857         with a proper symbol.  And checks whether the
5858         given ccl program is valid.
5859         (mule_decode): When calling ccl_driver, if src indicates
5860         NULL pointer, set an empty string instead.
5861         (mule_encode): Likewise.
5862
5863 2000-10-11  Martin Buchholz  <martin@xemacs.org>
5864
5865         The following large batch of changes gets us back to a state of
5866         C++ compilability.  Extbyte is now a char, which means that
5867         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
5868
5869         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
5870
5871         * sound.c (Fplay_sound): Type correctness.
5872
5873         * select-x.c (hack_motif_clipboard_selection): Type correctness.
5874         (x_get_window_property): Type correctness.
5875         (receive_incremental_selection): unsigned char ==> Extbyte
5876         (selection_data_to_lisp_data): unsigned char ==> Extbyte
5877         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
5878         (Fx_store_cutbuffer_internal): Type correctness.
5879
5880         * process-unix.c (try_to_initialize_subtty): Type correctness.
5881
5882         * objects-x.c (x_print_color_instance): Type correctness.
5883         (x_print_font_instance): Type correctness.
5884         (x_list_fonts): SExtbyte ==> Extbyte.
5885         (valid_x_font_name_p): SExtbyte ==> Extbyte.
5886         (x_find_charset_font): SExtbyte ==> Extbyte.
5887         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
5888         (truename_via_XListFonts): SExtbyte ==> Extbyte.
5889         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
5890         Use bufbyte_strcmp.
5891
5892         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
5893         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
5894         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
5895         (BYTE_C0_P): Use bit ops for char-signedness safety.
5896         (BYTE_C1_P): Use bit ops for char-signedness safety.
5897         (CHARSET_BY_LEADING_BYTE):
5898         (CHARSET_BY_ATTRIBUTES):
5899         Always use inline function.
5900         Use type_checking_assert.
5901         Hide chlook.
5902
5903         * mule-charset.c (non_ascii_charptr_copy_char):
5904         Modify to work with both ASCII and non-ASCII characters.
5905         Improve docs and variable names.
5906         Replace over-clever fall-through switch with a simple loop.
5907         (Lstream_get_emchar_1):
5908         Replace over-clever fall-through switch with a simple loop.
5909
5910         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
5911         Warning suppression.
5912
5913         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
5914         the return value of Lstream_getc, which could be EOF as well.
5915
5916         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
5917
5918         * lisp.h: Make Extbyte a char, not unsigned char, so that external
5919         APIs can be used on Extbytes without casts.  Risky!
5920         (SExtbyte): Remove.
5921         (UExtbyte): Remove.
5922
5923         * input-method-xlib.c (XIM_init_device):
5924         Use Xlib.h instead of IntrinsicP.h.
5925         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
5926         which will break in X11R7.
5927         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
5928         to call XRegisterIMInstantiateCallback with correct types.
5929
5930         * gui-x.c (button_item_to_widget_value): Type correctness.
5931
5932         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
5933
5934         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
5935         (xbm_instantiate_1): Type correctness.
5936         (BUILD_GLYPH_INST):  Type correctness.
5937
5938         * fileio.c (Fsubstitute_in_file_name): Type correctness.
5939
5940         * file-coding.c:
5941         (decode_coding_sjis):
5942         (decode_coding_big5):
5943         (decode_coding_ucs4):
5944         (decode_coding_utf8):
5945         (decode_coding_iso2022):
5946         (decode_coding_no_conversion):
5947         Make all decoding functions take an Extbyte * arg.
5948         (encode_coding_sjis):
5949         (encode_coding_big5):
5950         (encode_coding_ucs4):
5951         (encode_coding_utf8):
5952         (encode_coding_iso2022):
5953         (encode_coding_no_conversion):
5954         Make all encoding functions take a Bufbyte * arg.
5955         Use size_t instead of unsigned int for memory sizes.
5956         Only cast to unsigned char whenever dereferencing Extbyte *.
5957
5958         * doc.c (unparesseuxify_doc_string): Type correctness.
5959
5960         * console-x.c (split_up_display_spec):
5961         Rewrite without using details of internal string representation.
5962         (x_semi_canonicalize_device_connection): Type correctness.
5963
5964         * config.h.in:
5965         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
5966         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
5967         (HAVE_XFREE386): Removed.
5968
5969         * buffer.h (DEC_CHARPTR): `const' correctness.
5970         (bufbyte_strcmp): New.
5971         (bufbyte_memcmp): New.
5972
5973         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
5974
5975         * buffer.h (XCHAR_OR_CHAR_INT):
5976         Always use inline function.
5977         Remove redundant type checking assert() - XINT will abort quite nicely.
5978
5979 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
5980
5981         * search.c (Freplace_match): Set newtext to an empty string.
5982
5983 2000-10-10  Martin Buchholz  <martin@xemacs.org>
5984
5985         * s/decosf1-3.h: Remove #include of stropts.h
5986         * s/ptx.h: Remove #include of stropts.h
5987         * s/usg5-4.h: Remove #include of stropts.h
5988         * sysproc.h:
5989         * config.h.in:
5990         Use stropts.h, not sys/stropts.h.
5991         Use strtio.h, not sys/strtio.h.
5992
5993 2000-10-04  Martin Buchholz <martin@xemacs.org>
5994
5995         * XEmacs 21.2.36 is released.
5996
5997 2000-09-21  Andy Piper  <andy@xemacs.org>
5998
5999         * glyphs-x.c (x_redisplay_widget): make sure non-structural
6000         changes still involve copying the widget tree.
6001         (update_widget_face): make sure a change is register in the widget
6002         tree. Call update_tab_widget_face appropriately.
6003         (update_tab_widget_face): ditto.
6004         (x_tab_control_redisplay): make sure non-structural changes still
6005         involve copying the widget tree.
6006
6007 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
6008
6009         * lread.c (locate_file): Check the path element is non-nil.
6010
6011 2000-10-02  Martin Buchholz  <martin@xemacs.org>
6012
6013         * lisp.h: Warning suppression for SCO compilers.
6014
6015         * redisplay-tty.c (reset_tty_modes): Fix crash.
6016         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
6017
6018 2000-09-27  Martin Buchholz  <martin@xemacs.org>
6019
6020         Big signal/process handling overhaul.  Bugs fixed:
6021         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
6022         M-x comint-kill-subjob should work for both values nil and t of
6023         process-connection-type. It was broken on most platforms.
6024         Testing on Irix and Cygwin still needed.  Other plaforms tested.
6025         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
6026         * process-unix.c: Signal/Process handling overhaul.
6027         (pty_name): make 64 bytes, as `expect' does, for paranoia.
6028         (allocate_pty): Use all available modern methods of allocating
6029         ptys, falling back to old style BSD allocation as a last resort.
6030         Use allegedly more secure Unix98 pty allocation by default.
6031         (allocate_pty_the_old_fashioned_way): New. the last resort.
6032         (unix_create_process): Push ptem, ldterm, ttcompat where
6033         available.  Autoconfiscate.
6034         (try_to_initialize_subtty): New.
6035         (unix_kill_child_process): Proper signal handling for ptys on most
6036         platforms, using special knowledge of AIX, BSD, etc...
6037         (unix_create_process): Always disconnect_controlling_terminal() for
6038         subprocesses, whether using ptys or not.
6039         * process.h: Remove old getpt-dependent PTY code.
6040         * process.c (Fprocess_send_signal): New, obvious generic function.
6041         (decode_signal): New.
6042         (Finterrupt_process):
6043         (Fkill_process):
6044         (Fquit_process):
6045         (Fstop_process):
6046         (Fcontinue_process):
6047         (Fsignal_process): Use decode_signal.
6048         (process_send_signal):
6049         Many docstring corrections.
6050         Allow any signal to be sent to a process object.
6051         * config.h.in: Add symbols for big signal/process overhaul.
6052         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
6053         * sysproc.h: Include process-related headers, where available:
6054         sys/stropts.h sys/strtio.h pty.h libutil.h
6055         * s/irix4-0.h:
6056         * s/irix5-0.h:
6057         * s/cygwin32.h:
6058         * s/gnu.h:
6059         * s/linux.h:
6060         * s/hpux.h:
6061         * s/aix3-1.h:
6062         Remove old S&M pty stuff.
6063         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
6064         * systty.h: Simplify cpp hackery, improve comments.
6065         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
6066
6067         * editfns.c (Fformat_time_string):
6068         Be a little more paranoid with the return value of ctime.
6069
6070         * fileio.c (check_executable):
6071         (check_writable):
6072         Use symbolic constants X_OK, W_OK.
6073
6074         * console-x.c (split_up_display_spec): Fix a warning.
6075
6076 2000-10-02  Martin Buchholz  <martin@xemacs.org>
6077
6078         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
6079         * ntproc.c (sys_spawnve): make_string ==> build_string
6080         Small clarity improvements.
6081
6082 2000-09-30  Martin Buchholz  <martin@xemacs.org>
6083
6084         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
6085
6086         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
6087
6088         * config.h.in (HAVE_STRCASECMP): Remove.
6089
6090 2000-09-29  Martin Buchholz  <martin@xemacs.org>
6091
6092         * redisplay-output.c (redisplay_output_pixmap):
6093         Cleaner and possibly more 64-bit correct code.
6094
6095 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
6096
6097         * dumper.c (pdump_load_finish): move restoration of
6098         `noninteractive1' to emacs.c (main_1).
6099         * emacs.c (main_1): protect LISP-visible command-line flags
6100         from pdump_load().
6101
6102 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
6103
6104         * Makefile.in.in (versionclean):  Use EXE_TARGET and
6105         DUMP_TARGET instead of literal program names.
6106
6107 2000-09-20  Martin Buchholz  <martin@xemacs.org>
6108
6109         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
6110
6111 2000-09-19  Martin Buchholz  <martin@xemacs.org>
6112
6113         * *: Spelling mega-patch
6114
6115 2000-09-19  Martin Buchholz  <martin@xemacs.org>
6116
6117         * fns.c (bad_bad_turtle):
6118         Delete "Eek!" comment, since we fixed the bug to which it refers.
6119
6120 2000-09-16  Martin Buchholz  <martin@xemacs.org>
6121
6122         * alloca.c: Replace REGISTER with register.
6123
6124 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
6125
6126         * file-coding.c (ucs_to_char): Use countof.
6127
6128 2000-09-16  Martin Buchholz  <martin@xemacs.org>
6129
6130         * file-coding.c: (ucs_to_char):
6131         (complex_vars_of_file_coding):
6132         Use countof instead of sizeof.
6133         Use CHECK_NATNUM instead of CHECK_INT.
6134
6135         * sysdep.c (strcasecmp): Remove.
6136         * device-x.c (ascii_strcasecmp): New.
6137         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
6138         Avoid using non-standard non-portable strcasecmp.
6139
6140 2000-09-16  Martin Buchholz  <martin@xemacs.org>
6141
6142         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
6143         * font-lock.c: remove reference to emacsfns.h.
6144         * search.c: small doc improvement.
6145         * event-Xt.c: correct file names in comments.
6146         * console-x.h Correct file names in comments.
6147         * frame.c: Correct file names in comments.
6148         * event-stream.c: remove Energize from comments.
6149
6150 2000-09-15  Martin Buchholz  <martin@xemacs.org>
6151
6152         * symeval.h (DEFERROR_STANDARD):
6153         (DEFERROR):
6154         (DEFSYMBOL):
6155         (DEFSYMBOL_NO_DUMP):
6156         (DEFSYMBOL_MULTIWORD_PREDICATE):
6157         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
6158         (DEFKEYWORD):
6159         The construct &##name is not sensible C.
6160         Fixes compilation errors with Unixware native compiler.
6161
6162 2000-09-14  Martin Buchholz  <martin@xemacs.org>
6163
6164         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
6165         (next_frame_internal): Removed.  We now just have next_frame.
6166         (next_frame):
6167         Write a simpler and cleaner one-pass algorithm.
6168         Remove called_from_delete_device arg and #ifdefed-out code.
6169         (previous_frame):
6170         Renamed from prev_frame.  Update callers.
6171         Cleaned up to have an analogous implementation to next_frame.
6172         (other_visible_frames_internal): Remove the
6173         called_from_delete_device bogus arg, and hence, remove this
6174         function.  Just use other_visible_frames().
6175
6176         * window.c (Fnext_window):
6177         Prettify docstring.
6178         Since next_frame() is guaranteed to return a frame, remove check
6179         for nil inserted in previous patch.
6180         (Fprevious_window):
6181         Prettify docstring.
6182         Make code look more like Fnext_window.
6183         (window_loop):
6184         Respect the `console' arg when iterating through windows.
6185         Fixes bug: (get-buffer-window buffer t device) not respecting
6186         the `device' arg.
6187         This function needs more work, as others have pointed out.
6188
6189         * frame.h: Rename prev_frame to previous_frame.
6190         device_matches_console_spec no longer takes a `frame' arg.
6191
6192         * s/gnu.h:
6193         * s/linux.h:
6194         * s/hpux.h:
6195         Use EMACS_BLOCK_SIGNAL instead of sigblock.
6196         From "Golubev I. N." <gin@mo.msk.ru>.
6197
6198         * make-src-depend: Fix typo.
6199
6200 2000-09-13  Martin Buchholz  <martin@xemacs.org>
6201
6202         * window.c (Fnext_window):
6203         next_frame() might return nil, not a frame.
6204         Fixes this crash:
6205         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
6206
6207         * frame.c (next_frame_internal):
6208         We've passed a frame if we've passed its device.
6209         Fixes this crash:
6210         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
6211 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
6212
6213 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
6214
6215         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
6216         Allow option to suppress accelerators in menu/dialog items.
6217         (populate_or_checksum_helper): Pass dialog title through above.
6218
6219 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
6220
6221         * event-msw.c (mswindows_key_to_emacs_keysym):
6222         Add "pause" key, fix "menu" key.
6223
6224 2000-09-09  Martin Buchholz  <martin@xemacs.org>
6225
6226         * eval.c (reinit_vars_of_eval):
6227         Increase max_lisp_eval_depth to 1000,
6228         required for thai-xtis.el to byte-compile under some circumstances.
6229
6230 2000-09-04  Martin Buchholz  <martin@xemacs.org>
6231
6232         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
6233         From Kenichi Handa.
6234
6235 2000-09-01  Martin Buchholz  <martin@xemacs.org>
6236
6237         * make-src-depend: Make the generated Makefiles smaller.
6238
6239         * s/hpux.h (SETUP_SLAVE_PTY):
6240         Provide a %d in the format string for the errno argument.
6241
6242         * editfns.c (Ftemp_directory):
6243         Warning fix.
6244         Avoid buffer overrun on very long file name.
6245
6246         * input-method-xlib.c (XIM_init_device):
6247         6th parameter of XRegisterIMInstantiateCallback has different
6248         pointer types on different OSes, so simply cast to (void *).
6249
6250         * unexhp9k800.c: Warning fixes.  Fiddly changes.
6251
6252         * sysdll.c (dll_open):
6253         shl_load will hang hard if passed a NULL filename.
6254         Simply return NULL for compatibility with dlopen.
6255         * sysdll.c: Conform to XEmacs coding standards.
6256
6257         * sysdep.c (get_pty_max_bytes):
6258         Support pty input lines longer than 512 bytes on HP-UX 10.20.
6259
6260 2000-08-31  Martin Buchholz  <martin@xemacs.org>
6261
6262         * tooltalk.c: Add #include <syssignal.h>
6263
6264 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
6265
6266         * s/hpux.h: Don't use undefined function sigunblock().
6267
6268 2000-08-31  Martin Buchholz  <martin@xemacs.org>
6269
6270         * config.h.in: Add HAVE_BALLOON_HELP.
6271         * emacs.c: Use HAVE_BALLOON_HELP.
6272         * Makefile.in.in (x_objs):
6273         Make Balloon Help conditional on finding shape.h.
6274
6275 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
6276
6277         * syntax.c (regex_emacs_buffer_p): New variable.
6278         * syntax.h (regex_emacs_buffer_p): extern.
6279         * search.c (looking_at_1):
6280         (string_match_1):
6281         (fast_string_match):
6282         (search_buffer): Set regex_emacs_buffer_p.
6283         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
6284         when before_dot, at_dot, after_dot.
6285
6286 2000-08-23  Andy Piper  <andy@xemacs.org>
6287
6288         * gui-x.c (popup_selection_callback): Only set action_occurred
6289         when we really have an image instance.
6290         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
6291
6292 2000-08-23  Andy Piper  <andy@xemacs.org>
6293
6294         * gui-msw.c (mswindows_handle_gui_wm_command): set
6295         action_occurred.
6296         * gui-x.c (popup_selection_callback): ditto.
6297
6298         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
6299         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
6300         (struct Lisp_Image_Instance): add action_occurred flag.
6301
6302         * glyphs.c (redisplay_subwindow): use action_occurred flag.
6303         (image_instance_changed): ditto.
6304         (reset_frame_subwindow_instance_cache): only unmap windows - do
6305         not remove them from the cache also.
6306
6307         * glyphs-widget.c (tab_control_update): better debug.
6308         (progress_gauge_update): ditto.
6309         (layout_update): ditto.
6310         (layout_instantiate): ditto.
6311         (tab_control_order_only_changed): cope with null pending items.
6312
6313         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
6314         debug. Force selection of an item when an action occurred. Cope
6315         with null pending_items.
6316         (mswindows_progress_gauge_redisplay): better debug.
6317         * glyphs-x.c (x_tab_control_redisplay): ditto.
6318
6319         * redisplay.c (redisplay_frame): reset the frame cache if the
6320         frame is garbaged.
6321
6322         * window.c (Fset_window_configuration): potentially re-enable
6323         frame cache reset.
6324         (window_unmap_subwindows): need to finalize instances here since
6325         it is only used in mark_window_as_deleted.
6326
6327 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
6328
6329         * nas.c (SndOpenDataForReading):
6330         nas.c (WaveOpenDataForReading):
6331         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
6332         Somehow escaped from the 2000-08-14 patch.
6333
6334 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
6335
6336         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
6337         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
6338
6339 2000-08-21  Andy Piper  <andy@xemacs.org>
6340
6341         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
6342         window if it is not already displayed.
6343
6344         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
6345         it is not already displayed.
6346
6347         * window.c (Fset_window_configuration): don't reset the frame
6348         cache.
6349
6350         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
6351         instances from the frame cache if we are actually finalizing them.
6352         (reset_frame_subwindow_instance_cache): reset frame cache only
6353         after unmapping everything.
6354         (map_subwindow): set displayed flag after mapping.
6355
6356 2000-08-21  Martin Buchholz  <martin@xemacs.org>
6357
6358         * data.c (indirect_function):
6359         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
6360
6361         * eval.c (function_argcount):
6362         Use original function when signaling errors.
6363
6364 2000-08-18  Andy Piper  <andy@xemacs.org>
6365
6366         * frame.c (delete_frame_internal): use new
6367         free_frame_subwindow_instances name.
6368
6369         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
6370         (add_tab_item): make return type correct.
6371         (mswindows_tab_control_instantiate): assert index of tab.
6372         (mswindows_tab_control_redisplay): Re-code to use
6373         gui_item_equal_sans_selected and gui_item_list_find_selected.
6374
6375         * glyphs-widget.c (tab_control_update): Correct comment.
6376
6377         * window.c (window_unmap_subwindows): use new
6378         unmap_subwindow_instance_cache_mapper.
6379         (window_unmap_subwindows_cache_mapper): deleted.
6380         (Fset_window_configuration): comparisons should now be with
6381         EQ. Preserve the subwindow instance cache across configuration
6382         changes.
6383         (allocate_window): ditto.
6384         (make_dummy_parent): ditto.
6385
6386         * glyphs.c (free_frame_subwindow_instances): rename from
6387         free_frame_subwindow_instance_cache. finalize all instances rather
6388         than just those in the display cache.
6389         (finalize_all_subwindow_instances): walk windows unmapping and
6390         finalizing subwindows.
6391         (unmap_subwindow_instance_cache_mapper): moved from
6392         window.c. Allow finalization as well as unmapping.
6393
6394         * gui.c (gui_item_list_find_selected): new function.
6395
6396         * gui.h (gui_item_list_find_selected): declare.
6397
6398         * glyphs-x.c (x_tab_control_redisplay): pick tab
6399         explicitly. Re-code to use gui_item_equal_sans_selected and
6400         gui_item_list_find_selected.
6401
6402         * glyphs-x.h: add lwlib-utils.h
6403
6404         * buffer.c (Frecord_buffer): undo previous change.
6405
6406 2000-08-09  Vin Shelton  <acs@xemacs.org>
6407
6408         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
6409         possible.  Create temporary files more securely.  The patch was
6410         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
6411         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
6412         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
6413         for details.
6414
6415 2000-08-07  Ben Wing  <ben@xemacs.org>
6416
6417         * getloadavg.c: remove duplicate (and windows-breaking)
6418         includes of fcntl.h and sys/file.h.
6419
6420         * nt.c: remove duplicate getloadavg() definition.
6421
6422         * sysdll.h (Qdll_filename_encoding): add missing stand-in
6423         encodings.
6424
6425 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
6426
6427         * eval.c (function_argcount): If function needs to be autoloaded
6428         actually use the loaded definition.
6429         GCPRO function.
6430
6431 2000-08-05  Ben Wing  <ben@xemacs.org>
6432
6433         * getloadavg.c: add prototype for getloadavg().  remove
6434         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
6435         of the code).  remove duplicate header includes.
6436
6437         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
6438
6439         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
6440         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
6441         useful load average.
6442
6443         * alloc.c (reinit_alloc_once_early): removed references to
6444         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
6445         the lisp vars are the only things referencing the malloc_sbrk_*
6446         vars, and they were already if 0'd out.  these vars only exist
6447         in the older malloc.c, which is basically unused, and they're
6448         only for informational purposes.
6449
6450         * m\*.h: removed useless VIRT_ADDR_VARIES.
6451
6452         * m\powerpc.h: removed stray NO_ARG_ARRAY.
6453
6454 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
6455
6456         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
6457         color if the image is a mono pixmap.
6458
6459 2000-07-30  Ben Wing  <ben@xemacs.org>
6460
6461         * Makefile.in.in (release):
6462         Remove stray @.
6463
6464         * buffer.c (directory_is_current_directory):
6465         * dired-msw.c (mswindows_get_files):
6466         * dired.c:
6467         * dired.c (Fdirectory_files):
6468         * dired.c (file_name_completion_stat):
6469         * dired.c (Ffile_attributes):
6470         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
6471         preprocessor tricks, to avoid problems on some machines
6472         (e.g. SCO).
6473
6474         * callproc.c (egetenv): GC docs.
6475
6476         * console-msw.h:
6477         * console-msw.h (struct mswindows_dialog_id):
6478         * lrecord.h (lrecord_type):
6479         New object for use with MSW dialogs.
6480
6481         * console.h (struct console_methods):
6482         New enable/disable frame methods, for proper modal dialogs.
6483
6484         * device-msw.c (msprinter_default_printer): Fix to follow
6485         proper Mule conventions.
6486
6487         * device-msw.c:
6488         * device-msw.c (signal_open_printer_error):
6489         * device-msw.c (msprinter_init_device):
6490         * device-msw.c (ensure_not_printing):
6491         * device-msw.c (plist_get_margin):
6492         * device-msw.c (Fmsprinter_select_settings):
6493         * device-msw.c (finalize_devmode):
6494         * device-msw.c (Fmsprinter_settings_despecialize):
6495         * device-msw.c (signal_enum_priner_error):
6496         * extents.c (decode_extent):
6497         * extents.c (decode_map_extents_flags):
6498         * extents.c (decode_extent_at_flag):
6499         * extents.c (Fextent_at):
6500         * extents.c (Fextents_at):
6501         * extents.c (symbol_to_glyph_layout):
6502         [[[[2]]]] Use structured errors.
6503
6504         * dialog-msw.c:
6505         * dialog-msw.c (mswindows_is_dialog_msg):
6506         * dialog-msw.c (mark_mswindows_dialog_id):
6507         * dialog-msw.c (dialog_proc):
6508         * dialog-msw.c (handle_question_dialog_box):
6509         * dialog-msw.c (syms_of_dialog_mswindows):
6510         Define new object to clean up marking; use it as a dialog identifier.
6511         Call new delete-dialog-box-hook.
6512
6513         * dialog-x.c (dbox_selection_callback):
6514         * dialog-x.c (dbox_descriptor_to_widget_value):
6515         * dialog-x.c (x_make_dialog_box_internal):
6516         Call new delete-dialog-box-hook.
6517         Return an id.
6518
6519         * dialog.c:
6520         * dialog.c (syms_of_dialog):
6521         * dialog.c (vars_of_dialog):
6522         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
6523
6524         * eval.c:
6525         * eval.c (signal_call_debugger):
6526         when noninteractive, output stack traces on the console instead
6527         of in a (never-seen) buffer.
6528
6529         * eval.c (signal_type_error):
6530         * eval.c (invalid_argument_2):
6531         * lisp.h:
6532         new funs for use w/structured errors.
6533
6534         * event-Xt.c:
6535         * event-Xt.c (x_to_emacs_keysym):
6536         * event-Xt.c (describe_event):
6537         * event-Xt.c (emacs_Xt_event_handler):
6538         * event-Xt.c (vars_of_event_Xt):
6539         * event-msw.c:
6540         * event-msw.c (mswindows_wnd_proc):
6541         * event-msw.c (vars_of_event_mswindows):
6542         rename {x,mswindows}-debug-events to debug-{}-events for
6543         consistency with other debug-foo variables.
6544
6545         * event-stream.c:
6546         document next-event more clearly.
6547
6548         * fileio.c (Ffile_name_directory):
6549         * fileio.c (Ffile_name_nondirectory):
6550         * fileio.c (Funhandled_file_name_directory):
6551         * fileio.c (file_name_as_directory):
6552         * fileio.c (Ffile_name_as_directory):
6553         * fileio.c (directory_file_name):
6554         * fileio.c (Fdirectory_file_name):
6555         * fileio.c (Fmake_temp_name):
6556         * fileio.c (Ffile_truename):
6557         * fileio.c (Fsubstitute_in_file_name):
6558         * fileio.c (expand_and_dir_to_file):
6559         * fileio.c (barf_or_query_if_file_exists):
6560         * fileio.c (check_executable):
6561         * fileio.c (Ffile_exists_p):
6562         * fileio.c (Ffile_writable_p):
6563         * fileio.c (Ffile_directory_p):
6564         * fileio.c (Ffile_regular_p):
6565         * fileio.c (Ffile_modes):
6566         * fileio.c (Ffile_newer_than_file_p):
6567         * fileio.c (Fverify_visited_file_modtime):
6568         * fileio.c (Fset_visited_file_modtime):
6569         * fileio.c (auto_save_1):
6570         (1). (2).
6571         fix up gcpro's.
6572
6573         * frame-msw.c:
6574         * frame-msw.c (mswindows_init_frame_1):
6575         * frame-msw.c (mswindows_enable_frame):
6576         * frame-msw.c (error_frame_unsizable):
6577         * frame-msw.c (msprinter_init_frame_1):
6578         * frame-msw.c (msprinter_init_frame_3):
6579         * frame-msw.c (console_type_create_frame_mswindows):
6580         (2).
6581         implement new enable/disable frame methods.
6582
6583         * frame-x.c:
6584         * frame-x.c (x_enable_frame):
6585         * frame-x.c (console_type_create_frame_x):
6586         implement new enable/disable frame methods.
6587
6588         * frame.c:
6589         * frame.c (Fdisable_frame):
6590         * frame.c (syms_of_frame):
6591         * frame.h (struct frame):
6592         implement new enable/disable frame methods/functions.
6593
6594         * general-slots.h:
6595         add initial-focus.
6596
6597         * glyphs-msw.c (mswindows_widget_instantiate):
6598         comment that initial-focus should be implemented.
6599
6600         * glyphs-widget.c:
6601         * glyphs-widget.c (check_valid_instantiator):
6602         * glyphs-widget.c (check_valid_orientation):
6603         * glyphs-widget.c (check_valid_tab_orientation):
6604         * glyphs-widget.c (check_valid_justification):
6605         * glyphs-widget.c (check_valid_border):
6606         * glyphs-widget.c (check_valid_callback):
6607         * glyphs-widget.c (check_valid_int_or_function):
6608         * glyphs-widget.c (check_valid_string_or_vector):
6609         * glyphs-widget.c (check_valid_item_list_1):
6610         * glyphs-widget.c (widget_validate):
6611         * glyphs-widget.c (combo_box_validate):
6612         * glyphs-widget.c (widget_instantiate):
6613         * glyphs-widget.c (syms_of_glyphs_widget):
6614         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
6615         * glyphs-widget.c (image_instantiator_combo_box):
6616         * glyphs-widget.c (image_instantiator_scrollbar):
6617         * glyphs-widget.c (image_instantiator_tab_control):
6618         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
6619         (2).
6620         support (unimplemented) keyword initial-focus.
6621         reindent long macros.
6622
6623         * glyphs-x.c (x_redisplay_widget):
6624         * glyphs-x.c (x_button_instantiate):
6625         * glyphs-x.c (x_button_redisplay):
6626         * glyphs-x.c (x_progress_gauge_instantiate):
6627         * glyphs-x.c (x_edit_field_instantiate):
6628         * glyphs-x.c (x_combo_box_instantiate):
6629         * glyphs-x.c (x_tab_control_instantiate):
6630         * glyphs-x.c (x_label_instantiate):
6631         * gui-x.c:
6632         * gui-x.c (button_item_to_widget_value):
6633         * gui-x.c (gui_items_to_widget_values_1):
6634         * gui-x.c (gui_item_children_to_widget_values):
6635         * gui-x.c (gui_items_to_widget_values):
6636         * gui-x.h:
6637         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
6638         add new flag to gui-parsing routines to indicate whether
6639         accelerator specs should be supported.
6640
6641         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
6642
6643         * glyphs.h (struct Lisp_Image_Instance):
6644         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
6645         add initial-focus flag.
6646
6647         * gui.c:
6648         * gui.c (syms_of_gui):
6649         * gui.c (vars_of_gui):
6650         clean up menu-no-selection-hook.
6651
6652         * gui.h:
6653         support delete-dialog-box-hook.
6654
6655         * lread.c (Fload_internal):
6656         * lread.c (locate_file_in_directory_mapper):
6657         (1).
6658
6659         * lrecord.h:
6660         * lrecord.h (struct toolbar_button):
6661         * lrecord.h (syms_of_toolbar):
6662         document how to create a new object.
6663
6664         * menubar-msw.c (mswindows_char_is_accelerator):
6665         may be called on frames w/o menus.
6666
6667         * menubar.c (vars_of_menubar):
6668         clean up :filter docs.
6669
6670         * nt.c (readdir):
6671         * ntproc.c:
6672         (1).
6673
6674         * process-nt.c:
6675         * process-nt.c (validate_signal_number):
6676         * process-nt.c (signal_cannot_launch):
6677         * process-nt.c (nt_create_process):
6678         * process-nt.c (nt_send_process):
6679         * process-nt.c (nt_kill_child_process):
6680         * process-nt.c (nt_open_network_stream):
6681         * process-nt.c (syms_of_process_nt):
6682         (2).
6683         delete quote-handling.  call new lisp code that does it better.
6684
6685         * process-unix.c (connect_to_file_descriptor):
6686         * process-unix.c (allocate_pty):
6687         * process-unix.c (unix_send_process):
6688         * process-unix.c (unix_kill_child_process):
6689         * process-unix.c (unix_open_network_stream):
6690         * process-unix.c (unix_open_multicast_group):
6691         (1). (2).
6692
6693         * process.c:
6694         * process.c (Fstart_process_internal):
6695         (2).  need to canonicalize process path even if absolute.
6696
6697         * select-msw.c (symbol_to_ms_cf):
6698         * select-msw.c (ms_cf_to_symbol):
6699         * select-msw.c (cf_is_autofreed):
6700         * select-msw.c (mswindows_destroy_selection):
6701         * select.c:
6702         * select.c (syms_of_select):
6703         * select.h:
6704         support dibv5, fix bugs. (from Mike Alexander)
6705
6706         * select.c (Fget_selection_internal):
6707         * select.c (select_convert_out):
6708
6709         * sysdep.c:
6710         * sysdep.c (xemacs_stat):
6711         renamed.
6712
6713         * sysdep.c (mkdir):
6714         * sysdep.c (rmdir):
6715         but keep original stat() here because we provide encapsulation
6716         around these funs.
6717
6718         * sysfile.h:
6719         * sysfile.h (fstat):
6720         remove stat garbage.
6721
6722         * syswindows.h:
6723         fix X/MSW conflict.
6724         don't include tchar.h.  it's inappropriate because it makes
6725         compile-time distinctions when we want runtime distinctions.
6726         (we provide our own tchar replacements)
6727
6728         * toolbar.c:
6729         use default object printer for toolbar-button.
6730
6731         * unexcw.c:
6732         make sure we don't encapsulate.
6733
6734         * window.c (vars_of_window):
6735         emphasize that temp-buffer-show-hook is obsolete.
6736
6737 2000-08-05  Martin Buchholz  <martin@xemacs.org>
6738
6739         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
6740         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
6741
6742         * events.c (Fevent_timestamp_lessp):
6743         Not 64-bit clean.  Use EMACS_INT, not int.
6744
6745 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
6746
6747         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
6748         unsigned int and changed the last enum to
6749         lrecord_type_last_built_in_type.
6750         (lrecord_implementations_table): changed prototype to know how
6751         long the array is supposed to be.
6752         (lrecord_type_count): new unsigned int to keep track of the
6753         current number of lisp lrecord types.
6754         (DEFINE_EXTERNAL_LRECORD):
6755         (DECLARE_EXTERNAL_LRECORD): Added these two for external
6756         dynamic-modules to declare new lisp types. They are the same
6757         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
6758         int for each new type, and increment lrecord_type_count by 1.
6759
6760         * alloc.c (lrecord_implementations_table): Changed to reference
6761         lrecord_type_last_built_in_type for the size of the array.
6762         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
6763
6764 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
6765
6766         * glyphs.h (check_valid_item_list): Renamed from
6767         check_valid_item_list_1.
6768
6769 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
6770
6771         * select.c (Qselect_coerce): New.
6772         * select.c (Vselection_coercion_alist): New.
6773         * select.c (syms_of_select): Declare.
6774         * select.c (get-selection-internal): Use it.
6775         Use the new select-coerce functionality.
6776
6777         * select.c (select_coerce): New.
6778         * select.h (select_coerce): Declare.
6779         New function to coerce one type of data into another.
6780
6781 2000-08-03  Martin Buchholz  <martin@xemacs.org>
6782
6783         * callproc.c (Fcall_process_internal):
6784         (Fcall_process_internal):
6785         * process-unix.c (unix_create_process):
6786         Save and restore the value of errno, so that error messages are accurate.
6787
6788 2000-08-01  Martin Buchholz  <martin@xemacs.org>
6789
6790         * elhash.c (print_hash_table):
6791         Fix printing of hash tables to also use `key-and-value' instead of `t'.
6792         Prettify docstrings and indentation.
6793
6794 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
6795
6796         * window.c (Fwindow_pixel_edges): Subtract frame border and
6797         gutter size.
6798
6799 2000-07-31  Andy Piper  <andy@xemacs.org>
6800
6801         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
6802         will acknowledge the change.
6803
6804         * glyphs.h: declare tab_control_order_only_changed.
6805
6806         * glyphs-x.c (x_tab_control_redisplay): use
6807         tab_control_order_only_changed.
6808
6809         * glyphs-widget.c (tab_control_order_only_changed): new function.
6810
6811         * glyphs-msw.c (mswindows_tab_control_redisplay): use
6812         tab_control_order_only_changed.
6813
6814         * gui.c (gui_item_equal_sans_selected): new function.
6815         (gui_item_equal): use it.
6816
6817         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
6818         :properties in favor of :items..
6819
6820         * glyphs-widget.c (check_valid_item_list): rename from
6821         check_valid_item_list_1.
6822         (check_valid_item_list_1): renamed.
6823         (combo_box_validate): deprecate :properties in favor of :items.
6824         (widget_instantiate): ditto.
6825         (tab_control_update): ditto.
6826         (image_instantiator_combo_box): ditto.
6827         (image_instantiator_tree_view): ditto.
6828         (image_instantiator_tab_control): ditto.
6829         (layout_post_instantiate): remove dead code.
6830
6831         * print.c (debug_print_no_newline): only write to debugger if in
6832         WIN32_NATIVE.
6833
6834         * elhash.c (Fmake_hash_table): update doc string.
6835
6836         * event-msw.c (mswindows_wnd_proc): don't allow processing of
6837         messages whilst in GC. This at least stops XEmacs crashing but has
6838         the potential for wierd behaviour.
6839
6840 2000-07-31  Martin Buchholz  <martin@xemacs.org>
6841
6842         * config.h.in:
6843         Make existence of s&m files optional.
6844
6845         * s/bsd386.h: Remove HAVE_GETLOADAVG.
6846         * s/freebsd.h: Remove HAVE_GETLOADAVG.
6847         * s/gnu.h: Remove HAVE_GETLOADAVG.
6848         * s/netbsd.h: Remove HAVE_GETLOADAVG.
6849         * s/sol2.h: Remove HAVE_GETLOADAVG.
6850         * lisp.h: Remove getloadavg() declaration.
6851         * fns.c:
6852         Include <sys/loadavg.h> if available.
6853         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
6854         * config.h.in:  Group together getloadavg()-related macros.
6855         Use only configure-time tests to detect getloadavg().
6856
6857 2000-07-30  Martin Buchholz  <martin@xemacs.org>
6858
6859         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
6860
6861 2000-07-25  Andy Piper  <andy@xemacs.org>
6862
6863         * syswindows.h: add tchar.h for native builds.
6864
6865         * frame.c (syms_of_frame): remove set-glyph-image.
6866
6867         * general-slots.h: add Qset_glyph_image.
6868
6869         * glyphs-widget.c (layout_update): add domain arg to
6870         set-glyph-image.
6871         (syms_of_glyphs_widget): remove set-glyph-image.
6872
6873 2000-07-23  Ben Wing  <ben@xemacs.org>
6874
6875         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
6876         Vpopup_frame_list.
6877
6878 2000-07-22  Andy Piper  <andy@xemacs.org>
6879
6880         * symsinit.h: add syms_of_win32().
6881
6882         * gui-msw.c (syms_of_gui_mswindows): remove
6883         Fmswindows_shell_execute.
6884         (Fmswindows_shell_execute): moved to win32.c.
6885
6886         * emacs.c (main_1): add syms_of_win32 ().
6887
6888         * win32.c (init_potentially_nonexistent_functions): rewrite in
6889         compiler-friendly terms.
6890         (Fmswindows_shell_execute): move here from gui-msw.c.
6891         (syms_of_win32): new.
6892
6893         * device-msw.c (Fmswindows_printer_list): clean up args to
6894         EnumPrinters.
6895         Don't include tchar under cygwin or mingw.
6896         (msprinter_default_printer): make cygwin-friendly.
6897
6898 2000-07-21  Andy Piper  <andy@xemacs.org>
6899
6900         * glyphs-widget.c (image_instantiator_tree_view): use tab
6901         control's update function.
6902         (layout_property): new function. Retrieve items.
6903
6904         * glyphs-msw.c (mswindows_tree_view_redisplay): new
6905         function. Re-populate the tree view from the pending items.
6906
6907         * glyphs.c (instantiate_image_instantiator): Make sure the domain
6908         is designated the parent if the domain is an image instance. This
6909         is needed so that dirtiness can be cascade up the hierarchy and
6910         thus for layout children to be redisplayed correctly.
6911         (allocate_image_instance): rename glyph -> parent.
6912
6913         * redisplay.h: change redisplay_output_layout signature.
6914
6915         * redisplay-msw.c (mswindows_output_display_block): use domain
6916         arg.
6917
6918         * redisplay-x.c (x_output_display_block): use domain arg.
6919
6920 2000-07-10  Andy Piper  <andy@xemacs.org>
6921
6922         * window.c (Fset_window_configuration): add comment.
6923
6924         * redisplay-output.c (compare_runes):
6925         (redisplay_output_subwindow): redisplay rather than update subwindow.
6926         (redisplay_output_layout): ditto.
6927
6928         * redisplay-msw.c (mswindows_frame_output_end):
6929         (mswindows_frame_output_end): make defer window pos optional.
6930
6931         * lisp.h: add Flast.
6932
6933         * glyphs.h (struct image_instantiator_methods): add dest_mask top
6934         normalize method. Change update method to be for changed
6935         instantiators. Add redisplay method. Change signature of layout
6936         method.
6937         (struct Lisp_Image_Instance): add instantiator.
6938         (IMAGE_INSTANCE_INSTANTIATOR): new.
6939         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
6940         (XIMAGE_INSTANCE_INSTANTIATOR): new.
6941         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
6942
6943         * glyphs.c:
6944         (find_instantiator_differences): new function.
6945         (Fset_instantiator_property): new convenience function.
6946         (check_image_instance_structure): strictly check for vector
6947         instantiators.
6948         (normalize_image_instantiator): make non-static.
6949         (instantiate_image_instantiator): pass on dest_mask and use new
6950         signatures for image_instance_layout and friends.
6951         (mark_image_instance): mark the instantiator. Mark the subwindow
6952         face not the widget face.
6953         (image_instance_equal): add instantiator.
6954         (image_instance_hash): ditto.
6955         (allocate_image_instance): ditto.
6956         (Fset_image_instance_property): removed.
6957         (Fimage_instance_file_name): ditto.
6958         (Fcolorize_image_instance): ditto.
6959         (image_instance_layout): add offsets to be set.
6960         (update_image_instance): new function. update an image instance
6961         from its changed instantiator.
6962         (inherit_normalize): add dest_mask.
6963         (xbm_normalize): ditto.
6964         (xface_normalize): ditto.
6965         (xpm_normalize): ditto.
6966         (text_update): set_property -> update.
6967         (image_instantiate): use the glyph identity as a hash key, not the
6968         instantiator.
6969         (glyph_width): use new image_instance_layout signature.
6970         (glyph_ascent): ditto.
6971         (glyph_descent): ditto.
6972         (glyph_height): ditto.
6973         (glyph_query_geometry): ressurrect.
6974         (glyph_layout): ditto.
6975         (redisplay_subwindow): update -> redisplay.
6976         (syms_of_glyphs): add Fset_instantiator_property.
6977         (image_instantiator_format_create): set_property -> update.
6978
6979         * glyphs-x.c:
6980         (autodetect_normalize): add dest_maks to signature.
6981         (x_redisplay_subwindow): update -> redisplay.
6982         (x_redisplay_widget): ditto.
6983         (x_button_redisplay): ditto.
6984         (x_progress_gauge_redisplay): ditto.
6985         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
6986         stacking order.
6987         (console_type_create_glyphs_x): update -> redisplay.
6988         (image_instantiator_format_create_glyphs_x): ditto.
6989
6990         * glyphs-widget.c:
6991         (check_valid_instantiator): disallow glyphs in the instantiator,
6992         they must now be vectors.
6993         (check_valid_instantiator_list): ditto.
6994         (glyph_instantiator_to_glyph): use internal symbol rather than
6995         intern.
6996         (widget_update): renamed from widget_set_property. Call cascaded
6997         update methods.
6998         (redisplay_widget): renamed from update_widget.
6999         (widget_layout): image_instance_layout now takes position as well
7000         as size.
7001         (widget_normalize): ditto.
7002         (widget_instantiate): ditto.
7003         (tab_control_query_geometry) ditto.:
7004         (tab_control_update): renamed from tab_control_set_property.
7005         (progress_gauge_update): set_property -> update.
7006         (layout_normalize): rewrite so that child instantiators are
7007         normalized also.
7008         (layout_update): new function. Create glyphs from the normalized
7009         children and cope with any other layout keywords. We do not
7010         instantiate children here that will be take care of by
7011         redisplay_output_layout.
7012         (layout_instantiate): call layout_update and not much else.
7013         (layout_post_instantiate): not sure whether this is needed
7014         anymore.
7015         (layout_query_geometry): query glyph geometry rather than
7016         image_instance geometry.
7017         (layout_layout): set offsets from pass in parameters. Use glyph
7018         geometry and layout functions rather than image instance ones.
7019         (native_layout_layout): ditto.
7020         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
7021         (image_instantiator_widget): set_property -> update.
7022         (image_instantiator_buttons): ditto.
7023         (image_instantiator_progress_guage): ditto.
7024         (image_instantiator_tab_control): ditto.
7025         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
7026         (image_instantiator_layout): add update method.
7027
7028         * glyphs-msw.c (bmp_normalize):
7029         (mswindows_resource_normalize): add dest_mask so that it can be
7030         proprogated by layout_normalize.
7031         (begin_defer_window_pos): make optional because it may not be the
7032         right thing to do and it introduces differences with X.
7033         (mswindows_unmap_subwindow): ditto.
7034         (mswindows_map_subwindow): ditto.
7035         (mswindows_redisplay_subwindow): renamed from
7036         mswindows_update_subwindow.
7037         (mswindows_redisplay_widget): ditto.
7038         (mswindows_button_redisplay): renamed from
7039         mswindows_button_update. Update is now what the instantiation
7040         function does for a changed instantiator.
7041         (mswindows_progress_gauge_instantiate): set the progress value
7042         here if appropriate.
7043         (mswindows_tab_control_redisplay): cope with re-ordering of the
7044         members of the tab widget by simply selecting the new top
7045         widget. This makes things appear ok if you click on a tab.
7046         (mswindows_combo_box_instantiate): image_instance_layout now takes
7047         position as well as size.
7048         (mswindows_progress_gauge_redisplay): renamed from
7049         mswindows_progress_gauge_update.
7050         (console_type_create_glyphs_mswindows): fix update -> redisplay.
7051         (image_instantiator_format_create_glyphs_mswindows): ditto.
7052
7053         * glyphs-eimage.c (jpeg_normalize):
7054         (gif_normalize):
7055         (png_normalize):
7056         (tiff_normalize): add dest_mask so that it can be proprogated by
7057         layout_normalize.
7058
7059         * elhash.c:
7060         (print_hash_table):
7061         (hash_table_weakness_validate):
7062         (decode_hash_table_weakness):
7063         (Fhash_table_weakness):
7064         (Fhash_table_type):
7065         (syms_of_elhash): use Ben's naming scheme for hashtable types..
7066
7067         * console.h (struct console_methods): move update_* to
7068         redisplay_*.
7069
7070 2000-07-20  Ben Wing  <ben@xemacs.org>
7071
7072         * *.[ch] (XSETOBJ): remove unused middle argument.
7073         lisp-disunion.h: correct wrap_object() to one argument.
7074
7075 2000-07-15  Ben Wing  <ben@xemacs.org>
7076
7077         * s/cygwin32.h:
7078         * s/cygwin32.h (CYGWIN_CONV_PATH):
7079         Add missing logb prototype for v1.1.
7080         Use post-b20 names and alias to pre-b20 names when pre-b20.
7081
7082         * s/windowsnt.h: [5].
7083
7084 2000-07-15  Ben Wing  <ben@xemacs.org>
7085
7086         * Makefile.in.in (x_objs):
7087         * Makefile.in.in (sheap_objs):
7088         * Makefile.in.in (objs):
7089         added win32.o, cosmetic cleanups.
7090
7091         * alloc.c (Fmake_byte_code):
7092         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
7093         etc. macros which declare their own args now.
7094
7095         * alloc.c (syms_of_alloc):
7096         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
7097
7098         * buffer.c:
7099         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
7100
7101         * buffer.c (Fget_file_buffer):
7102         Fixed GCPRO problem.
7103
7104         * buffer.c (get_truename_buffer):
7105         Fixed comment about GC checking.
7106
7107         * buffer.c (syms_of_buffer):
7108         Undeclared those dedicated frame funs.
7109         [2].
7110
7111         * buffer.h:
7112         Define convenience macros for internal/external conversions.
7113         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
7114         and Qenvironment_variable_encoding for cleaner code.
7115
7116         * bufslots.h:
7117         Remove dedicated-frame; in lisp.
7118
7119         * bytecode.c (funcall_compiled_function):
7120         [1].
7121
7122         * bytecode.c (syms_of_bytecode):
7123         [2].
7124
7125         * console-msw.c:
7126         * console-msw.c (mswindows_show_console): Rewrote.
7127
7128         * console-msw.c (Fmswindows_debugging_output): New.
7129         Sends to OutputDebugString (special MSWin debugger interface).
7130
7131         * console-msw.c (Fmswindows_message_box):
7132         Fixed stupid bugs so it works when called from kill-emacs.
7133
7134         * console-msw.c (syms_of_console_mswindows):
7135         Declare Fmswindows_debugging_output.
7136
7137         * console-msw.h:
7138         New MSWin prototypes.
7139
7140         * console-msw.h (struct mswindows_frame):
7141         New entry last-click-mods for improved button-modifier support.
7142
7143         * console-msw.h (FRAME_MSWINDOWS_POPUP):
7144         New struct entry `popup' with corresponding accessor.
7145
7146         * console-x.c:
7147         * console-x.c (split_up_display_spec):
7148         * console-x.c (get_display_arg_connection):
7149         * console-x.c (x_semi_canonicalize_console_connection):
7150         * console-x.c (x_canonicalize_device_connection):
7151         [[[6]]]: Change char to more specific type.
7152         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
7153
7154         * console-x.c (x_semi_canonicalize_console_connection):
7155         * console-x.c (x_canonicalize_device_connection):
7156         [[[9]]]: Fix up error signalling to use new structured error system.
7157
7158         * console-x.h:
7159         [[[4]]]: Define codesys aliases:
7160         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
7161         Qx_color_name_encoding, Qx_display_name_encoding.
7162
7163         * console.h (struct console_methods):
7164         New method make_dialog_box_internal supersedes older
7165         popup_dialog_box method.
7166
7167         * data.c:
7168         Define many new errors, part of new structured errors.
7169
7170         * data.c (init_errors_once_early):
7171         * data.c (syms_of_data):
7172         [2].
7173
7174         * device-msw.c (mswindows_init_device):
7175         [[[5]]]: Cleanup to support NT 3.51.
7176
7177         * device-msw.c (decode_devmode): Cleanup.
7178
7179         * device-msw.c (mswindows_handle_print_setup_dialog_box):
7180         * device-msw.c (mswindows_handle_print_dialog_box):
7181         * device-msw.c (mswindows_handle_page_setup_dialog_box):
7182         * device-msw.c (syms_of_device_mswindows):
7183         Delete the dialog box primitives recently introduced by Kirill and
7184         instead interface to general dialog box interface.
7185
7186         * device-x.c:
7187         * device-x.c (compute_x_app_name):
7188         * device-x.c (x_init_device):
7189         * device-x.c (Fx_valid_keysym_name_p):
7190         * device-x.c (Fx_set_font_path):
7191         [6].
7192         [7].
7193
7194         * device.h (wrap_device): New.
7195         First of its kind; meant to replace XSETDEVICE.
7196
7197         * dialog-msw.c: Many file-dialog symbols.
7198
7199         * dialog-msw.c (mswindows_register_popup_frame): New.
7200         * dialog-msw.c (mswindows_is_dialog_msg): New.
7201         For supporting kbd traversal in dialog boxes.
7202
7203         * dialog-msw.c (dialog_proc):
7204         Support hitting ESC in dialogs.
7205
7206         * dialog-msw.c (struct):
7207         Common dialog box errors.
7208
7209         * dialog-msw.c (handle_file_dialog_box): New.
7210         Add file dialog code.
7211
7212         * dialog-msw.c (handle_question_dialog_box):
7213         Redo existing code to support new question dialog syntax.
7214
7215         * dialog-msw.c (console_type_create_dialog_mswindows):
7216         We support new dialog console method.
7217
7218         * dialog-msw.c (syms_of_dialog_mswindows):
7219         * dialog-msw.c (vars_of_dialog_mswindows):
7220         New file dialog symbols, vars.
7221
7222         * dialog-x.c:
7223         * dialog-x.c (maybe_run_dbox_text_callback):
7224         * dialog-x.c (dbox_descriptor_to_widget_value):
7225         * dialog-x.c (x_make_dialog_box_internal):
7226         * dialog-x.c (console_type_create_dialog_x):
7227         Mule-ize entire file.
7228         Redo to support question dialog syntax.
7229         [6].
7230
7231         * dialog.c:
7232         * dialog.c (Fmake_dialog_box_internal):
7233         * dialog.c (syms_of_dialog):
7234         Kill old popup-dialog-box, replace with new primitive.
7235         Just call device method or signal error.
7236
7237         * eldap.c (Fldap_open):
7238         * eldap.c (Fldap_search_basic):
7239         * eldap.c (Fldap_add):
7240         * eldap.c (Fldap_modify):
7241         [1].
7242         [7].
7243
7244         * emacs.c:
7245         * emacs.c (make_arg_list_1):
7246         * emacs.c (make_arg_list):
7247         Mule-ize call to dll_init().
7248         [6].
7249         [8].
7250
7251         * emacs.c (make_argc_argv):
7252         * emacs.c (free_argc_argv):
7253         * emacs.c (init_cmdargs):
7254         * emacs.c (main_1):
7255         * emacs.c (Fkill_emacs):
7256         * emacs.c (Fdump_emacs):
7257         Update comments about what can be used in syms_* etc.
7258         Call init_win32() when necessary.
7259         Fix up MS Win dialog box in kill-buffer to actually work right.
7260         [7].
7261
7262         * eval.c:
7263         * eval.c (For):
7264         * eval.c (Fand):
7265         * eval.c (Fprogn):
7266         * eval.c (Fprog1):
7267         * eval.c (Fprog2):
7268         * eval.c (FletX):
7269         * eval.c (Flet):
7270         * eval.c (condition_case_3):
7271         * eval.c (Feval):
7272         * eval.c (function_argcount):
7273         * eval.c (funcall_lambda):
7274         [1].
7275
7276         * eval.c (type_error): New.
7277         * eval.c (maybe_type_error): New.
7278         * eval.c (continuable_type_error): New.
7279         * eval.c (maybe_continuable_type_error): New.
7280         * eval.c (type_error_with_frob): New.
7281         * eval.c (maybe_type_error_with_frob): New.
7282         * eval.c (continuable_type_error_with_frob): New.
7283         * eval.c (maybe_continuable_type_error_with_frob): New.
7284         New functions for use with structured errors.
7285
7286         * event-Xt.c:
7287         * event-Xt.c (x_event_to_emacs_event):
7288         Buttons are now modifiers too.
7289
7290         * event-Xt.c (emacs_Xt_current_event_timestamp):
7291         Implement new event method.
7292         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
7293
7294         * event-msw.c:
7295         * event-msw.c (ntpipe_shove_writer): [5].
7296         * event-msw.c (mswindows_enqueue_mouse_button_event):
7297         * event-msw.c (mswindows_drain_windows_queue):
7298         * event-msw.c (mswindows_wnd_proc): [7].
7299         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
7300         * event-msw.c (mswindows_modifier_state):
7301         Throughout: support new button modifiers.
7302
7303         * event-msw.c (emacs_mswindows_current_event_timestamp):
7304         Implement new event method.
7305         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
7306
7307         * event-stream.c:
7308         * event-stream.c (event_stream_current_event_timestamp): New.
7309         * event-stream.c (maybe_kbd_translate): New functionality.
7310         * event-stream.c (vars_of_event_stream):
7311         Document new kbd-translate-table functionality.
7312
7313         * event-stream.c (Fcurrent_event_timestamp): New.
7314         New primitive for use in fabricated events.
7315         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
7316
7317         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
7318
7319         * events.c:
7320         * events.c (Fmake_event):
7321         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
7322         [1].
7323         [9].
7324
7325         * events.c (format_event_object): fix gcc warnings.
7326
7327         * events.c (Fevent_timestamp): Document new primitives.
7328
7329         * events.c (TIMESTAMP_HALFSPACE): New.
7330
7331         * events.c (Fevent_timestamp_lessp): New.  New primitive for
7332         comparing timestamps correctly (half-space algorithm).
7333
7334         * events.c (Fevent_modifier_bits): Doc fix.
7335
7336         * events.c (Fevent_modifiers): Major doc addition.
7337         * events.c (event_x_y_pixel_internal): Typo fix.
7338         * events.c (syms_of_events): Declare new primitives.
7339
7340         * events.h:
7341         Update long comment for button modifiers, timestamps.
7342
7343         * events.h (struct event_stream):
7344         New current_event_timestamp method.
7345
7346         * extents.c:
7347         * extents.c (extent_in_region_p):
7348         * extents.c (decode_extent):
7349         * extents.c (Fset_extent_parent):
7350         * extents.c (decode_map_extents_flags):
7351         Fix gcc warnings.
7352         [9].
7353
7354         * extents.c (struct extent_at_arg):
7355         * extents.c (decode_extent_at_flag):
7356         * extents.c (extent_at_mapper):
7357         * extents.c (extent_at_bytind):
7358         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
7359         * extents.c (Fextents_at): New primitive. [9].
7360         * extents.c (symbol_to_glyph_layout): [9].
7361         Support new primitive `extents-at'.
7362
7363
7364         * extents.c (get_text_property_bytind):
7365         extent_at_bytind has another arg.
7366         [9].
7367
7368         * extents.c (syms_of_extents): New primitive.
7369
7370         * file-coding.c (Fmake_coding_system): [1].
7371         * file-coding.c (subsidiary_coding_system): fix gcc warning
7372         * file-coding.c (syms_of_file_coding): [2].
7373
7374         * fileio.c (Fexpand_file_name):
7375         * fileio.c (Fsysnetunam):
7376         * fileio.c (Ffile_exists_p):
7377         * fileio.c (Ffile_executable_p):
7378         * fileio.c (Fverify_visited_file_modtime):
7379         Clean up GCPROing.
7380
7381         * fileio.c (syms_of_fileio): [2].
7382
7383         * filelock.c (lock_file_1):
7384         * filelock.c (current_lock_owner):
7385         * filelock.c (lock_if_free):
7386         * filelock.c (lock_file):
7387         * filelock.c (unlock_file):
7388         Clean up GCPROing.
7389
7390         * fns.c (concat): Fix gcc warning.
7391
7392         * fns.c (Fmember):
7393         * fns.c (Fold_member):
7394         * fns.c (Fmemq):
7395         * fns.c (Fold_memq):
7396         * fns.c (memq_no_quit):
7397         * fns.c (Fassoc):
7398         * fns.c (Fold_assoc):
7399         * fns.c (Fassq):
7400         * fns.c (Fold_assq):
7401         * fns.c (assq_no_quit):
7402         * fns.c (Frassoc):
7403         * fns.c (Fold_rassoc):
7404         * fns.c (Frassq):
7405         * fns.c (Fold_rassq):
7406         * fns.c (rassq_no_quit):
7407         * fns.c (Fdelete):
7408         * fns.c (Fold_delete):
7409         * fns.c (Fdelq):
7410         * fns.c (Fold_delq):
7411         * fns.c (delq_no_quit):
7412         * fns.c (Fremassoc):
7413         * fns.c (Fremassq):
7414         * fns.c (remassq_no_quit):
7415         * fns.c (Fremrassoc):
7416         * fns.c (Fremrassq):
7417         * fns.c (remrassq_no_quit):
7418         * fns.c (Freverse):
7419         * fns.c (mapcar1):
7420         [1].
7421
7422         * frame-msw.c (mswindows_init_frame_1):
7423         * frame-msw.c (mswindows_delete_frame):
7424         Register popups with dialog code so keyboard traversing works.
7425
7426         * frame-tty.c (tty_raise_frame_no_select): [1].
7427
7428         * frame-x.c:
7429         * frame-x.c (x_set_frame_text_value):
7430         * frame-x.c (x_set_frame_properties):
7431         * frame-x.c (x_create_widgets):
7432         [7].
7433
7434         * frame.c:
7435         * frame.c (Fmouse_pixel_position): Minor doc fixes.
7436
7437         * frame.h (wrap_frame): New.
7438         Macro like wrap_device.
7439
7440         * general.c:
7441         * general.c (SYMBOL):
7442         * general.c (syms_of_general):
7443         Major reorg.  This is now just a wrapper and symbols themselves
7444         are listed in general-slots.h.
7445
7446         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
7447         * glyphs-msw.c (mswindows_resource_instantiate): [5].
7448
7449         * glyphs-msw.c (mswindows_native_layout_instantiate):
7450         Add DS_CONTROL so keyboard traversal will work.
7451
7452         * glyphs-widget.c:
7453         * glyphs-widget.c (syms_of_glyphs_widget):
7454         Move some symbols to general-slots.h.
7455
7456         * glyphs-x.c:
7457         * glyphs-x.c (xbm_instantiate_1):
7458         * glyphs-x.c (x_xbm_instantiate):
7459         * glyphs-x.c (x_xface_instantiate):
7460         * glyphs-x.c (autodetect_instantiate):
7461         * glyphs-x.c (cursor_font_instantiate):
7462         * glyphs-x.c (x_update_widget):
7463         * glyphs-x.c (x_widget_instantiate):
7464         * glyphs.c (bitmap_to_lisp_data):
7465         * glyphs.c (pixmap_to_lisp_data):
7466         [7].
7467
7468         * glyphs.c (syms_of_glyphs):
7469         [2].
7470
7471         * gui-x.c:
7472         * gui-x.c (print_widget_value):
7473         * gui-x.c (menu_separator_style_and_to_external):
7474         * gui-x.c (add_accel_and_to_external):
7475         * gui-x.c (button_item_to_widget_value):
7476         * gui-x.c (gui_items_to_widget_values_1):
7477         * gui-x.c (gui_items_to_widget_values):
7478         * gui-x.c (syms_of_gui_x):
7479         * gui-x.c (vars_of_gui_x):
7480         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
7481         [9].
7482
7483         * gui-x.h:
7484         Muleize, prototype changes matching gui-x.c.
7485
7486         * gui.c:
7487         * gui.c (separator_string_p):
7488         * gui.c (gui_item_add_keyval_pair):
7489         * gui.c (make_gui_item_from_keywords_internal):
7490         * gui.c (signal_too_long_error):
7491         * gui.c (parse_gui_item_tree_item):
7492         * gui.c (syms_of_gui):
7493         * gui.c (vars_of_gui):
7494         * gui.h:
7495         menu-no-selection-hook moved here (used by MSWin).
7496         Move some symbols to general-slots.h.
7497         [6].
7498         [9].
7499
7500         * insdel.c (get_buffer_pos_char):
7501         * insdel.c (get_buffer_range_char):
7502         Add GC comments.
7503
7504         * keymap.c (keymap_lookup_directly):
7505         * keymap.c (keymap_store):
7506         * keymap.c (ensure_meta_prefix_char_keymapp):
7507         * keymap.c (describe_map):
7508         * keymap.h:
7509         Support new button modifiers.
7510
7511         * lisp-disunion.h (wrap_object):
7512         * lisp-disunion.h (XSETOBJ):
7513         Rename make_obj to wrap_object.
7514
7515         * lisp-union.h:
7516         * lisp-union.h (make_int):
7517         * lisp-union.h (make_char):
7518         Support wrap_object.
7519
7520         * lisp.h:
7521         * lisp.h (LIST_LOOP):
7522         * lisp.h (EXTERNAL_LIST_LOOP):
7523         * lisp.h (LIST_LOOP_2):
7524         * lisp.h (EXTERNAL_LIST_LOOP_1):
7525         * lisp.h (EXTERNAL_LIST_LOOP_2):
7526         * lisp.h (EXTERNAL_LIST_LOOP_3):
7527         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
7528         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
7529         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
7530         * lisp.h (EXTERNAL_ALIST_LOOP_5):
7531         * lisp.h (EXTERNAL_ALIST_LOOP_6):
7532         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
7533         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
7534         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
7535         * lisp.h (struct Lisp_Symbol):
7536         * lisp.h (maybe_continuable_error_with_frob):
7537         Fix up section comments.
7538         Add new types for char to indicate usage.
7539         Delete symbols auto-generated from general-slots.h.
7540         Add prototypes for structured error functions.
7541         Add long comments describing looping macros and change interface
7542         so that lvalues are automatically declared.
7543         Add NO_DECLARE macro in case callers want to declare lvalues
7544         themselves.
7545
7546         * lread.c (read_syntax_error):
7547         * lread.c (continuable_read_syntax_error):
7548         * lread.c (read_structure):
7549         * lread.c (sequence_reader):
7550         * lread.c (read_list_conser):
7551         * lread.c (read_compiled_function):
7552         Rename syntax_error and continuable_syntax_error to avoid clash
7553         with same-named structured error functions.
7554
7555         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
7556         * menubar-msw.c (populate_menu_add_item):
7557         * menubar-msw.c (populate_or_checksum_helper):
7558         [5].
7559         [9].
7560
7561         * menubar-x.c:
7562         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
7563         Mule-ize whole file.
7564
7565         * menubar.c (Fnormalize_menu_item_name): Add optimization.
7566
7567         * mule-charset.c (Fmake_charset):
7568         * mule-wnnfns.c (Fwnn_set_param):
7569         [1].
7570
7571         * ntproc.c (create_child):
7572         * ntproc.c (Fwin32_set_current_locale):
7573         Add comments portending doom.
7574
7575         * objects-msw.c:
7576         * objects-msw.c (old_font_enum_callback_2):
7577         * objects-msw.c (font_enum_callback_1):
7578         * objects-msw.c (mswindows_enumerate_fonts):
7579         [5].
7580
7581         * objects-x.c:
7582         * objects-x.c (allocate_nearest_color):
7583         * objects-x.c (x_parse_nearest_color):
7584         * objects-x.c (x_initialize_color_instance):
7585         * objects-x.c (x_print_color_instance):
7586         * objects-x.c (x_finalize_color_instance):
7587         * objects-x.c (x_valid_color_name_p):
7588         * objects-x.c (x_initialize_font_instance):
7589         * objects-x.c (x_print_font_instance):
7590         * objects-x.c (valid_x_font_name_p):
7591         * objects-x.c (truename_via_FONT_prop):
7592         * objects-x.c (truename_via_random_props):
7593         * objects-x.c (truename_via_XListFonts):
7594         * objects-x.c (x_font_truename):
7595         * objects-x.c (x_font_instance_truename):
7596         * objects-x.c (x_font_instance_properties):
7597         * objects-x.c (x_list_fonts):
7598         * objects-x.c (x_find_charset_font):
7599         Mule-ize entire file.
7600         [7].
7601
7602         * objects-x.h:
7603         Mule-verify.
7604
7605         * print.c:
7606         * print.c (std_handle_out_external):
7607         * print.c (debug_print_no_newline):
7608         * print.c (syms_of_print):
7609         Output to all debugger kinds in debug-print.
7610         Fix console-output code under MSWin to actually work.
7611
7612         * process-nt.c (send_signal):
7613         * process-nt.c (nt_create_process):
7614         Use newer Unicode macros.
7615
7616         * process-unix.c (unix_create_process):
7617         * process-unix.c (unix_canonicalize_host_name):
7618         * process-unix.c (unix_open_network_stream):
7619         [7].
7620
7621         * scrollbar-x.c:
7622         Mule-verify.
7623
7624         * search.c (syms_of_search):
7625         [2].
7626
7627         * select-msw.c (mswindows_destroy_selection):
7628         Use LIST_LOOP_2.
7629
7630         * select-x.c (symbol_to_x_atom):
7631         [7].
7632
7633         * select.c (syms_of_select):
7634         [2].
7635
7636         * sound.c (Fplay_sound_file):
7637         [7].
7638
7639         * specifier.c:
7640         * specifier.c (decode_specifier_type):
7641         * specifier.c (Fvalid_specifier_locale_type_p):
7642         * specifier.c (check_valid_locale_or_locale_type):
7643         * specifier.c (decode_locale):
7644         * specifier.c (decode_locale_type):
7645         * specifier.c (decode_locale_list):
7646         * specifier.c (check_valid_domain):
7647         * specifier.c (decode_specifier_tag_set):
7648         * specifier.c (Fcanonicalize_tag_set):
7649         * specifier.c (Fdefine_specifier_tag):
7650         * specifier.c (Fspecifier_tag_predicate):
7651         * specifier.c (check_valid_inst_list):
7652         * specifier.c (check_valid_spec_list):
7653         * specifier.c (decode_how_to_add_specification):
7654         * specifier.c (check_modifiable_specifier):
7655         * specifier.c (specifier_add_spec):
7656         * specifier.c (boolean_validate):
7657         * specifier.c (display_table_validate):
7658         [9].
7659
7660         * specifier.c (syms_of_specifier):
7661         Move some symbols to general-slots.h.
7662         [2].
7663
7664         * symbols.c:
7665         * symbols.c (Fmapatoms):
7666         * symbols.c (Fapropos_internal):
7667         Add GCPROs.
7668
7669         * symbols.c (set_default_buffer_slot_variable):
7670         * symbols.c (set_default_console_slot_variable):
7671         [1].
7672
7673         * symbols.c (defsymbol_massage_name_1):
7674         * symbols.c (defkeyword_massage_name):
7675         * symbols.c (deferror_1):
7676         * symbols.c (deferror):
7677         * symbols.c (deferror_massage_name_and_message):
7678         * symeval.h:
7679         * symeval.h (DEFSYMBOL):
7680         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
7681
7682         * symbols.c (syms_of_symbols):
7683         [2].
7684
7685         * symsinit.h:
7686         * symsinit.h (init_win32): New.
7687         Also new is syms_of_dialog_mswindows.
7688
7689         * syswindows.h:
7690         Add new Unicode macros, missing Cygwin wide-char functions,
7691         convenience conversion macros for Qmswindows_tstr, macros for
7692         encapsulating required MSWin <-> Cygwin filename conversions,
7693         prototype for dynamically-extracted (not in NT 3.51) functions.
7694
7695         * toolbar-x.c:
7696         Mule-verify.
7697
7698         * tooltalk.c (Fadd_tooltalk_message_arg):
7699         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
7700         * tooltalk.c (Fadd_tooltalk_pattern_arg):
7701         [7].
7702
7703         * tooltalk.c (syms_of_tooltalk):
7704         [2].
7705
7706         * unexnt.c:
7707         * unexnt.c (unexec):
7708         Fix up headers, declaration of unexec() to be more standard.
7709
7710 2000-07-20  Martin Buchholz  <martin@xemacs.org>
7711
7712         * offix.h: Revert change to guard macros - they're used in offix.c!
7713
7714 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7715
7716         * lisp.h: Defsubred Fdelete.
7717
7718         * console-msw.h:  (msprinter_default_printer): Added.
7719
7720         * console-msw.c (msprinter_canonicalize_console_connection):
7721         (msprinter_canonicalize_device_connection): Added.
7722
7723         * device-msw.c (msprinter_default_printer):
7724         (Fmswingows_get_default_printer):
7725         (signal_enum_priner_error):
7726         (Fmswingows_printer_list): Added.
7727
7728 2000-07-19  Martin Buchholz <martin@xemacs.org>
7729
7730         * XEmacs 21.2.35 is released.
7731
7732 2000-07-19  Martin Buchholz  <martin@xemacs.org>
7733
7734         * select-x.c (x_handle_selection_request):
7735         Text selected in xemacs and pasted into xterm failed to appear.
7736         Spelling fixes and cosmetic changes.
7737
7738 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7739
7740         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
7741         XEmacs frame (fix for doubling chars in dialog boxes).
7742
7743 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
7744
7745         * select.c (select_convert_in, select_convert_out):
7746         Don't call intern() every time.
7747
7748         * select.c (Qselect_convert_in, Qselect_convert_out): New.
7749         * select.c (vars_of_select): Initialise them.
7750
7751 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
7752
7753         * select.c (selection-coercible-types): New.
7754
7755         * select.c (own-selection-internal):
7756         * select.c (get-selection-internal):
7757         MULE bug fix - these should default to COMPOUND_TEXT and not
7758         STRING for MULE. I think.
7759
7760         * select.c (select_convert_out): Use selection-coercible-types
7761         to find types that we can attempt to perform coercions on.
7762
7763 2000-07-18  Martin Buchholz  <martin@xemacs.org>
7764
7765         * mule-wnnfns.c:
7766         * mule-canna.c:
7767         Add coding: cookie to identify encoding.
7768
7769         * mule-canna.c (CANNA_mode_keys): make static.
7770         Use proper prototypes, even for functions of no arguments.
7771         Remove external prototype for Fding().
7772
7773         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
7774
7775         * select.c (syms_of_select): Add missing DEFSUBR.
7776
7777 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
7778
7779         * select.c (get_selection_internal, own_selection_internal):
7780         Make the type default to STRING, rather than placing a nil type
7781         into Vselection_alist.
7782
7783 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
7784
7785         * gpmevent.c (tty_selection_exists_p):
7786         * gpmevent.c (tty_own_selection):
7787         Updated parameter lists.
7788
7789 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
7790
7791         * select.h (selection-alist): Removed declaration.
7792
7793         * select.h (get_local_selection):
7794         * select.c (get_local_selection):
7795         Made static.
7796
7797         * select.h (convert_selection): Removed declaration.
7798         * select.c (convert_selection): Removed.
7799         This function belongs in Lisp.
7800
7801         * select.h (select_convert_in): Declare.
7802         * select.h (select_convert_out): Declare.
7803         * select.c (select_convert_in): New.
7804         * select.c (select_convert_out): New.
7805         New conversion functions for other files to call.
7806
7807         * select.h (select_notify_buffer_kill): Declare.
7808         * select.c (select_notify_buffer_kill): New.
7809         New functions that get called from kill-buffer.
7810
7811         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
7812         X-specific lisp code.
7813
7814         * select.h: Declare some of the lisp-visible functions for
7815         external use.
7816
7817         * select.c (clean_local_selection_data): Removed. This was
7818         a disgusting function, and previously should have been in
7819         select-x.c in any case. The functionality is now provided
7820         in select-convert-from-integer (select.el).
7821
7822         * select.c (available-selection-types): Fixed stupidity where
7823         INTEGER and ATOM got added twice. Also add STRING when we see an
7824         extent.
7825
7826         * select.c (get-selection-internal): Removed symbol stripping. No
7827         longer causes conversion when data comes from the internal cache.
7828
7829         * select.c (syms_of_select): Added new functions.
7830
7831         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
7832         error checking - previously this called abort!
7833
7834         * select-x.c (x_own_selection): Changed comment.
7835
7836         * select-x.c (x_handle_selection_request): Use select_convert_out.
7837         Don't mess with selection-alist; it's an internal variable of select.c.
7838
7839         * select-x.c (x_get_foreign_selection): Use select_convert_in.
7840
7841         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
7842         rather than messing with selection-alist.
7843
7844         * select-msw.c (mswindows_get_foreign_selection):
7845         Use TO_INTERNAL_FORMAT rather than hacking.
7846
7847 2000-07-14  Martin Buchholz  <martin@xemacs.org>
7848
7849         * process-unix.c (unix_open_multicast_group):
7850         (unix_open_multicast_group): Remove useless casts.
7851
7852 2000-07-13  Martin Buchholz  <martin@xemacs.org>
7853
7854         * sound.c (Fplay_sound): Fix `unused variable' warning.
7855
7856         * emacs.c (main): Use correct type for _environ on SCO5.
7857
7858 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
7859
7860         * console.h (own_selection_method):
7861         * console.h (selection_exists_p_method):
7862         * console.h (available_selection_types_method): New.
7863         * console.h (register_selection_data_type_method): New.
7864         * console.h (selection_data_type_name): New.
7865
7866         * console-msw.h (mswindows_destroy_selection): Declare it.  New
7867         function & alist to track GlobalAlloc()'d handles that need
7868         releasing when the clipboard data gets replaced or emptied.
7869
7870         * event-msw.c (mswindows_wnd_proc): Call it.
7871
7872         * lisp.h, general.c (Qappend): New symbol representing a
7873         `how-to-add' mode.
7874
7875         * select.c (own-selection-internal):
7876         * select.c (selection-exists-p):
7877         * select.c (available-selection-types): New.
7878         * select.c (register-selection-data-type): New.
7879         * select.c (selection-data-type-name): New.  New functions to deal
7880         with device-specific selection data formats.
7881         * select.c (selection-converter-out-alist): Renamed.
7882         * select.c (selection-converter-in-alist): New.
7883         * select.c (selection-appender-alist): New.  Added new alists.
7884         * select.c (syms_of_select, vars_of_select): Added new symbols &
7885         variables.
7886         * select.c (get_local_selection): Split.
7887         * select.c: Removed spurious type checking - selections may now be
7888         of any type, not just strings.
7889         * select.c (own-selection-internal):
7890
7891         * select.h, select.c (convert_selection): New. Created
7892         convert_selection() function based on get_local_selection().
7893         * select.h, select.c (QCF_*): New symbols representing mswindows
7894         clipboard formats.
7895         * select.h, select.c (Qreplace_all, Qreplace_existing): New
7896         symbols representing `how-to-add' modes.
7897
7898         * select-msw.c (x_sym_p): New.
7899         * select-msw.c (symbol_to_ms_cf): New.
7900         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
7901         symbols & clipboard formats. Can also handle string names.
7902         * select-msw.c (mswindows_own_selection):
7903         * select-msw.c (mswindows_selection_exists_p):
7904         Added `data-type' parameter. Use it.
7905         * select-msw.c (mswindows_available_selection_types): New.
7906         * select-msw.c (mswindows_register_selection_data_type): New.
7907         * select-msw.c (mswindows_selection_data_type_name): New.
7908         * select-msw.c (mswindows_own_selection):
7909         * select-msw.c (mswindows_get_foreign_selection):
7910         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
7911         * select-msw.c (console_create_select_mswindows): Added new methods.
7912         * select-msw.c (mswindows_destroy_selection): New.
7913         * select-msw.c (Vhandle_alist): New list.
7914         * select-msw.c (mswindows_own_selection):
7915
7916         * select-x.c (x_own_selection):
7917         * select-x.c (x_selection_exists_p):
7918         * select-x.c: Added some comments about maybe using new
7919         functionality.
7920         * select-x.c (x_own_selection):
7921
7922         * specifier.c: Remove definition of Qappend (now in general.c)
7923         * specifier.c (syms_of_specifier): Remove Qappend.
7924
7925 2000-07-12  Martin Buchholz  <martin@xemacs.org>
7926
7927         * config.h.in: Add socklen_t.
7928
7929         * s/decosf4-0.h: No special compiler flags needed or desired.
7930         In particular, undefine _BSD for DEC OSF 4.0.
7931
7932 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7933
7934         * redisplay-msw.c (msprinter_frame_output_end): Added.
7935         (console_type_create_redisplay_mswindows): Referred the above.
7936
7937         * frame.c (setup_frame_without_minibuffer): Do not create a
7938         default minibuffer frame on a printer device.
7939
7940         * frame-msw.c (apply_dc_geometry): Added.
7941         (msprinter_start_page):
7942         (msprinter_init_frame_3):
7943         (msprinter_eject_page): Use it.
7944
7945         * console-msw.h (struct msprinter_frame): Added pix_left and top,
7946         and removed residual duplex and orientation properties.
7947
7948 2000-07-11  Martin Buchholz  <martin@xemacs.org>
7949
7950         * eval.c (function_argcount): Work around a DEC CC compiler bug.
7951
7952         * unexalpha.c: Remove system prototypes from C sources!
7953
7954 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
7955
7956         * eval.c: Remove references to M-x edit-options in DEFUNs for
7957         `defvar' and `defconst'.
7958
7959 2000-07-09  Martin Buchholz  <martin@xemacs.org>
7960
7961         * config.h.in: Remove SMART_INCLUDE hackery.
7962
7963         PostgreSQL hacking:
7964         * config.h.in: Don't use SMART_INCLUDE.
7965
7966         * postgresql.h: Include libpq-fe.h here.  Fix typo.
7967         * inline.c: Simply #include "postgresql.h"
7968         * postgresql.c:
7969         - Don't use SMART_INCLUDE
7970         - Use simply "const".
7971         - Use standard doc string conventions.
7972         - Use correct type for result of PQstatus.
7973
7974 2000-07-09  Martin Buchholz  <martin@xemacs.org>
7975
7976         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
7977
7978         C++ compilation changes.
7979         * config.h.in (EXTERN_C): Define.
7980         * config.h.in (not): This is also a C++ keyword.
7981         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
7982         * cm.c: Use EXTERN_C.
7983         * redisplay-tty.c: Use EXTERN_C.
7984         * sysdep.c: Use EXTERN_C.  Remove Gould support.
7985
7986 2000-07-09  Martin Buchholz  <martin@xemacs.org>
7987
7988         * general.c: Remove duplicate definition for Qfunction.
7989
7990 2000-07-08  Ben Wing  <ben@xemacs.org>
7991
7992         * device-msw.c (msprinter_init_device):
7993         * device-msw.c (sync_printer_with_devmode):
7994         * device-msw.c (handle_devmode_changes):
7995         * device-msw.c (print_dialog_worker):
7996         * device-msw.c (Fmsprinter_apply_settings):
7997         * device-msw.c (hash_devmode):
7998         * device-msw.c (Fmsprinter_settings_despecialize):
7999         use Qmswindows_tstr, not Qctext.
8000
8001         * vm-limit.c (check_memory_limits):
8002         avoid infinite loop printing warning messages.
8003
8004 2000-07-05  Craig Lanning  <lanning@scra.org>
8005
8006         * Makefile.in.in: Add support for including the Windows resources
8007         when building with the cygwin and mingw targets.
8008
8009         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
8010         not set or not correct.
8011         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
8012         (init_initial_directory): Don't try to use $PWD on the
8013         WIN32_NATIVE target.
8014
8015         * s\cygwin32.h:
8016         [[Add -mwindows to eliminate console window.]] not required --ben
8017         (HAVE_NATIVE_SOUND): removed; now handled by configure.
8018         (MAIL_USE_POP): removed; now handled by configure.
8019
8020         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
8021         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
8022         (HAVE_NATIVE_SOUND): removed; now handled by configure.
8023         (MAIL_USE_POP): removed; now handled by configure.
8024         (ENCAPSULATE_STAT): from Dan Holmsand, added.
8025         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
8026         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
8027         constant string.
8028         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
8029         up from <winsock.h> via systime.h.
8030         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
8031         (getpagesize): from Dan Holmsand, added.
8032         Added #endif which was left dangling by Ben's mega patch; added
8033         comment to help prevent this in the future.
8034
8035         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
8036
8037 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
8038
8039         * console-msw.h (struct mswindows_device): Removed unnecessary
8040         cached device geometry values.
8041         Added update_tick and an accessor macro.
8042         (Lisp_Devmode): Added lrecord declaration.
8043         (struct msprinter_device): Contain devmode as a Lisp object.
8044         Added mswindows_get_selected_frame_hwnd();
8045
8046         * console.h (struct console_methods): Indentation nitpicking.
8047
8048         * device-msw.c (mswindows_init_device): Do not initialize geometry
8049         cache. Initialize update tick.
8050         (mswindows_device_system_metrics): Ask the device for its geometry.
8051         (global_free_2_maybe):
8052         (devmode_to_hglobal):
8053         (handle_printer_changes):
8054         (ensure_not_printing):
8055         (print_dialog_worker):
8056         (Fmsprinter_print_setup_dialog):
8057         (Fmsprinter_print_dialog):
8058         (plist_get_margin):
8059         (plist_set_margin):
8060         (Fmsprinter_page_setup_dialog): Added functions.
8061         (sync_printer_with_devmode):
8062         (handle_devmode_changes):
8063         (Fmsprinter_get_settings):
8064         (Fmsprinter_select_settings):
8065         (Fmsprinter_apply_settings):
8066         (allocate_devmode):
8067         (Fmsprinter_settings_copy):
8068         (Fmsprinter_settings_despecialize):
8069         (print_devmode):
8070         (finalize_devmode):
8071         (equal_devmode):
8072         (hash_devmode): Added functions
8073         (syms_of_device_mswindows): Init devmode lrecord class.
8074
8075         * device.h: Added an exfun for find-device.
8076
8077         * event-msw.c (mswindows_wnd_proc): Do not update the cached
8078         geometry; although, recreate the device compatible DC.
8079
8080         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
8081         (msprinter_init_frame_3):
8082         (msprinter_frame_property):
8083         (msprinter_internal_frame_property_p):
8084         (msprinter_frame_properties):
8085         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
8086         print job properties (will move to device settings).
8087
8088         * lisp.h: Added symbols.
8089
8090         * general.c (syms_of_general): Declared them.
8091
8092         * hash.c (string_hash): Added.
8093
8094         * lrecord.h (lrecord_type): Added devmode lrecord type.
8095
8096 2000-07-02  Mike Sperber <mike@xemacs.org>
8097
8098         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
8099         FreeBSD 4.0.
8100
8101 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
8102
8103         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
8104         integer.
8105
8106 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
8107
8108         * data.c (Fstring_to_number): Don't recognize floating point if
8109         base is not 10.
8110
8111 2000-06-22  Martin Buchholz  <martin@xemacs.org>
8112
8113         * glyphs-widget.c (tab_control_query_geometry):
8114         (widget_query_geometry):
8115         (button_query_geometry):
8116         * glyphs.c (text_query_geometry):
8117         Enforce type correctness.
8118
8119 2000-06-18  Martin Buchholz  <martin@xemacs.org>
8120
8121         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
8122         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
8123
8124 2000-06-17  Martin Buchholz  <martin@xemacs.org>
8125
8126         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
8127         conflicts with gcc's fixincluded version of FOO.h.
8128
8129         * glyphs.h (image_instance_geometry): Remove trailing `,'
8130
8131 2000-06-08  Mike Alexander  <mta@arbortext.com>
8132
8133         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
8134         (shove_thread): Don't write the same output twice
8135         (make_ntpipe_output_stream): Increase priority of shove thread
8136         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
8137         chance to run
8138         (ntpipe_shove_closer): Don't delete the pipe until we're done with
8139         it.
8140
8141 2000-06-12  Ben Wing  <ben@xemacs.org>
8142
8143         * s\mingw32.h (sigset):
8144         * s\windowsnt.h (sigset):
8145         rename msw_ to mswindows_ for consistency with general convention.
8146
8147 2000-06-12  Ben Wing  <ben@xemacs.org>
8148
8149         * console-msw.c:
8150         * console-msw.c (mswindows_get_console_hwnd):
8151         * console-msw.c (mswindows_ensure_console_allocated):
8152         * console-msw.c (mswindows_hide_console):
8153         * console-msw.c (mswindows_show_console):
8154         * console-msw.c (mswindows_ensure_console_buffered):
8155         * console-msw.c (mswindows_output_console_string):
8156         * console-msw.c (mswindows_windows9x_p):
8157         * console-msw.h:
8158         * device-msw.c (mswindows_get_workspace_coords):
8159         * device-msw.c (mswindows_device_system_metrics):
8160         * dialog-msw.c (mswindows_popup_dialog_box):
8161         * event-msw.c (mswindows_wnd_proc):
8162         * frame-msw.c (mswindows_size_frame_internal):
8163         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
8164         * menubar-msw.c (displayable_menu_item):
8165         * menubar-msw.c (mswindows_char_is_accelerator):
8166         * nt.c:
8167         * nt.c (mswindows_sigset):
8168         * nt.c (mswindows_sigrelse):
8169         * nt.c (mswindows_sigpause):
8170         * nt.c (mswindows_raise):
8171         * nt.c (timer_proc):
8172         * ntproc.c:
8173         * ntproc.c (find_child_console):
8174         * ntproc.c (sys_kill):
8175         * print.c:
8176         * print.c (std_handle_out_external):
8177         * process-nt.c (find_child_console):
8178         * process-nt.c (send_signal_the_95_way):
8179         * process-nt.c (ensure_console_window_exists):
8180         * process-nt.c (nt_create_process):
8181         * syssignal.h:
8182         rename msw_ to mswindows_ for consistency with general convention.
8183
8184         * emacs.c:
8185         * dumper.c:
8186         include nt.h, not syswindows.h.
8187
8188         * nt.c (mswindows_fstat):
8189         * nt.c (mswindows_stat):
8190         prefix mswindows_ instead of attempting to directly override the
8191         library functions.  fix declarations.
8192
8193         * nt.h:
8194         include syswindows.h.  move some sysdep.h stuff here.
8195
8196         * ntheap.h:
8197         include syswindows.h, not <windows.h>.
8198
8199         * ntplay.c:
8200         clean up headers.
8201
8202         * sysdep.c:
8203         clean up headers.
8204
8205         * sysdep.c (sys_fstat):
8206         * sysdep.c (sys_stat):
8207         call mswindows versions when appropriate.
8208
8209         * sysdep.h:
8210         move mswin decls to nt.h.
8211
8212         * syswindows.h:
8213         add long comment describing appropriate use of the various windows
8214         headers.
8215
8216 2000-06-11  Ben Wing  <ben@xemacs.org>
8217
8218         * device-x.c: Correct doc string for sixth arg of x-get-resource.
8219
8220 2000-06-10  Ben Wing  <ben@xemacs.org>
8221
8222         * Makefile.in.in (release):
8223         Correction to make sure xemacs.exe always dumped when correct.
8224
8225         * alloca.c:
8226         * balloon_help.c:
8227         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
8228
8229         * buffer.c (set_buffer_internal):
8230         [[[[2]]]]: Remove HAVE_FEP code.
8231
8232         * buffer.c (init_initial_directory):
8233         [3].
8234
8235         * bytecode.c:
8236         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
8237         individual files.
8238
8239         * callproc.c:
8240         * callproc.c (call_process_cleanup):
8241         * callproc.c (Fold_call_process_internal):
8242         * callproc.c (child_setup):
8243         * callproc.c (getenv_internal):
8244         * callproc.c (init_callproc):
8245         * callproc.c (vars_of_callproc):
8246         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
8247         __CYGWIN32__ -> CYGWIN.
8248         DOS_NT -> WIN32_NATIVE.
8249         Remove MSDOS support/references, converting to WIN32_NATIVE
8250           where correct.
8251         __MINGW32__ -> MINGW.
8252         Fix windows.h includes.
8253         Remove bogus HAVE_NTGUI.
8254
8255         * config.h.in:
8256         [2].
8257
8258         * console-msw.c:
8259         mswindows_message_outputted added for use in allowing startup
8260         errors on the console to be seen.
8261
8262         * console-msw.c (msw_ensure_console_allocated):
8263         * console-msw.c (msw_output_console_string):
8264         * console-msw.c (DHEADER):
8265         * console-msw.c (DOPAQUE_DATA):
8266         * console-msw.c (DEVENT):
8267         * console-msw.c (DCONS):
8268         * console-msw.c (DCONSCDR):
8269         * console-msw.c (DSTRING):
8270         * console-msw.c (DVECTOR):
8271         * console-msw.c (DSYMBOL):
8272         * console-msw.c (DSYMNAME):
8273         Fix warnings.
8274
8275         * console-stream.c (stream_init_console):
8276         Fix text/binary problems.
8277
8278         * device-msw.c:
8279         * device-msw.c (mswindows_finish_init_device):
8280         * device-msw.c (mswindows_delete_device):
8281         [1].
8282
8283         * device.c (handle_asynch_device_change):
8284         [3].
8285
8286         * dgif_lib.c:
8287         * dgif_lib.c (DGifOpenFileName):
8288         * dgif_lib.c (DGifOpenFileHandle):
8289         * dgif_lib.c (DGifGetLine):
8290         * dgif_lib.c (DGifGetPixel):
8291         Added config.h/lisp.h, fix up includes.
8292         [1].
8293
8294         * dired-msw.c:
8295         [4].
8296
8297         * dired.c:
8298         * dired.c (file_name_completion):
8299         * dired.c (Ffile_attributes):
8300         * dired.c (syms_of_dired):
8301         [1].
8302
8303         * dumper.c:
8304         * dumper.c (pdump_file_unmap):
8305         * dumper.c (pdump_load):
8306         [1].
8307
8308         * editfns.c:
8309         * editfns.c (Ftemp_directory):
8310         * editfns.c (user_login_name):
8311         * editfns.c (Fuser_real_login_name):
8312         * editfns.c (get_home_directory):
8313         [1].
8314
8315         * elhash.c (finish_marking_weak_hash_tables):
8316         [[[[5]]]]: Fix GCC warnings.
8317
8318         * emacs.c:
8319         * emacs.c (mswindows_handle_hardware_exceptions):
8320         * emacs.c (make_arg_list_1):
8321         * emacs.c (main_1):
8322         * emacs.c (Fkill_emacs):
8323         * emacs.c (Fdump_emacs):
8324         [1].
8325         Fix problems with nested crashes, add long comment.
8326
8327         * event-Xt.c (init_event_Xt_late):
8328         [1].
8329
8330         * event-msw.c:
8331         * event-msw.c (mswindows_dde_callback):
8332         * event-msw.c (mswindows_handle_sticky_modifiers):
8333         * event-msw.c (mswindows_wnd_proc):
8334         [1].
8335         [5].
8336
8337         * events.c (character_to_event):
8338         [1].
8339
8340         * fileio.c:
8341         * fileio.c (Ffile_name_directory):
8342         * fileio.c (Ffile_name_nondirectory):
8343         * fileio.c (directory_file_name):
8344         * fileio.c (Fexpand_file_name):
8345         * fileio.c (Fsubstitute_in_file_name):
8346         * fileio.c (Ffile_name_absolute_p):
8347         * fileio.c (check_executable):
8348         * fileio.c (Ffile_readable_p):
8349         * fileio.c (Ffile_accessible_directory_p):
8350         * fileio.c (Ffile_modes):
8351         * fileio.c (Funix_sync):
8352         * fileio.c (vars_of_fileio):
8353         [1]. [4].
8354
8355         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
8356
8357         Expand getdefdir defn.
8358         Fix bogus rename() comment.
8359
8360         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
8361         to use standard XEmacs include files, e.g. sysfile.h, rather
8362         than system-specific includes.
8363
8364         * fns.c:
8365         * fns.c (Fsubseq):
8366         [5]. [6].
8367
8368         * frame.c (vars_of_frame):
8369         [1].
8370
8371         * getloadavg.c:
8372         * getloadavg.c (getloadavg):
8373         [1]. [6].
8374         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
8375         (We don't use it elsewhere in the code; just add a comment.)
8376
8377         * gif_io.c:
8378         [6].
8379         Add config.h.
8380
8381         * glyphs-msw.c:
8382         * glyphs-msw.c (mswindows_resource_instantiate):
8383         [1].
8384
8385         * glyphs-x.c (x_native_layout_instantiate):
8386         [5].
8387
8388         * gui-msw.c (Fmswindows_shell_execute):
8389         [1].
8390
8391         * insdel.c:
8392         [4].
8393
8394         * lisp.h:
8395         [4]. [5].
8396
8397         * lread.c (locate_file_in_directory_mapper):
8398         [1].
8399
8400         * lstream.c:
8401         [4].
8402
8403         * mem-limits.h:
8404         * mem-limits.h (get_lim_data):
8405         [1].
8406
8407         * menubar-msw.c:
8408         [4].
8409
8410         * ndir.h:
8411         [1].
8412
8413         * nt.c:
8414         * nt.c (getwd):
8415         * nt.c (closedir):
8416         * nt.c (rva_to_section):
8417         * nt.c (mswindows_executable_type):
8418         [1]. [6].
8419         Fix closedir() defn.
8420
8421         * nt.h:
8422         [[[[8]]]]: *_OK defs moved to sysfile.h.
8423
8424         * ntproc.c:
8425         [6]. [7].
8426
8427         * objects-x.c:
8428         [4].
8429
8430         * print.c:
8431         * print.c (std_handle_out_external):
8432         [1]. [4].
8433
8434         * process-nt.c:
8435         * process-nt.c (nt_create_process):
8436         [6].
8437         try to fix process quoting somewhat.
8438
8439         * process-unix.c (unix_create_process):
8440         [1].
8441
8442         * process.c:
8443         * process.c (vars_of_process):
8444         Add Vnull_device.
8445
8446         * process.h:
8447         [1].
8448
8449         * realpath.c:
8450         * realpath.c (xrealpath):
8451         [1].
8452
8453         * redisplay-tty.c (init_tty_for_redisplay):
8454         [3].
8455
8456         * redisplay.c:
8457         [4]. [6].
8458
8459         * scrollbar-msw.c:
8460         [4].
8461
8462         * sheap.c:
8463         * sheap.c (more_static_core):
8464         * sheap.c (report_sheap_usage):
8465         [5]. [6].
8466
8467         * signal.c:
8468         * signal.c (alarm_signal):
8469         [1]. [6].
8470
8471         * sound.c:
8472         [6].
8473
8474         * strftime.c:
8475         * strftime.c (zone_name):
8476         [1]. [5].
8477
8478         * symsinit.h (init_sunpro):
8479         [1].
8480
8481         * syscommctrl.h:
8482         commctrl.h not in Cygwin b20.1.
8483
8484         * sysdep.c:
8485         * sysdep.c (endif):
8486         * sysdep.c (sys_subshell):
8487         * sysdep.c (init_baud_rate):
8488         * sysdep.c (emacs_get_tty):
8489         * sysdep.c (emacs_set_tty):
8490         * sysdep.c (tty_init_sys_modes_on_device):
8491         * sysdep.c (init_system_name):
8492         * sysdep.c (sys_open):
8493         * sysdep.c (interruptible_open):
8494         * sysdep.c (sys_fopen):
8495         * sysdep.c (sys_mkdir):
8496         * sysdep.c (sys_rename):
8497         * sysdep.c (get_process_times_1):
8498         [1]. [6].
8499
8500         * sysdep.h:
8501         [1].
8502
8503         * sysdir.h:
8504         * sysdir.h (DIRENTRY_NONEMPTY):
8505         [1]. [6].
8506
8507         * sysdll.c (dll_init):
8508         * sysdll.h:
8509         [1].
8510
8511         * sysfile.h:
8512         [1]. [6]. [8].
8513         added text/binary defs.
8514
8515         * sysfloat.h:
8516         [1].
8517
8518         * sysproc.h:
8519         * sysproc.h (EDESTADDRREQ):
8520         * sysproc.h (poll_fds_for_input):
8521         [1]. [6].
8522
8523         * syspwd.h:
8524         [6].
8525
8526         * syssignal.h:
8527         [1].
8528
8529         * systime.h:
8530         [1]. [6].
8531
8532         * systty.h:
8533         [1].
8534
8535         * syswindows.h:
8536         [1].
8537         Always define WIN32_LEAN_AND_MEAN.
8538
8539         * unexcw.c (unexec):
8540         [5].
8541
8542         * unexec.c:
8543         * unexec.c (copy_text_and_data):
8544         * unexec.c (adjust_lnnoptrs):
8545         [1].
8546
8547         * unexnt.c:
8548         * unexnt.c (_start):
8549         [1].
8550
8551 2000-06-07  Ben Wing  <ben@xemacs.org>
8552
8553         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
8554         was used only as a model.  We've long since extracted any useful
8555         logic or code out of this. (I just did an exhaustive search.)
8556
8557         * s\msdos.h: Removed.
8558
8559         * s\windows95.h: Removed.
8560
8561 2000-06-10  Ben Wing  <ben@xemacs.org>
8562
8563         * s\cygwin32.h:
8564         [1]. [5].
8565         Don't use extern with fun defs.
8566
8567         * s\mingw32.h:
8568         [1]. [7].
8569         Remove nt\inc include.
8570         Remove getdisk, getdefdir. (The former is unused, the latter
8571         expanded in fileio.h.)
8572
8573         * s\windowsnt.h:
8574         * s\windowsnt.h (WIN32_NATIVE):
8575         * s\windowsnt.h (HAVE_STRCASECMP):
8576         [1]. [7].
8577         Add long comment about preprocessor changes.
8578         Remove getdisk, getdefdir. (The former is unused, the latter
8579         expanded in fileio.h.)
8580
8581 2000-06-10  Ben Wing  <ben@xemacs.org>
8582
8583         * m\arm.h:
8584         * m\delta.h:
8585         * m\intel386.h:
8586         * m\sequent.h:
8587         * m\template.h:
8588         * m\windowsnt.h:
8589         [1].
8590         Remove bogus/unused NO_SOCK_SIGIO.
8591
8592 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
8593
8594         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
8595         not an Emchar.
8596
8597 2000-06-04  Mike Sperber <mike@xemacs.org>
8598
8599         * casetab.c (set_case_table): For `set-standard-case-table',
8600         actually deposit the new case tables where the rest of XEmacs can
8601         see them.
8602
8603 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
8604
8605         * data.c (Faset): Don't cast XCHAR() to unsigned char.
8606
8607 2000-06-05  Ben Wing  <ben@xemacs.org>
8608
8609         * callproc.c (child_setup): Don't do close_load_descs() under
8610         MS Windows.  Put in a comment explaining why.
8611
8612 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
8613
8614         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
8615         Toolkit shell" which breaks `kill-compilation' on Windows NT
8616         native, retaining STDERR handling improvements.
8617
8618 2000-06-01  Andreas Jaeger  <aj@suse.de>
8619
8620         * s/s390.h: Support for S390, based on a patch by Martin
8621         Schwidefsky <schwidefsky@de.ibm.com>.
8622
8623 2000-05-30  Andy Piper  <andy@xemacs.org>
8624
8625         * window.c (allocate_window):
8626         (make_dummy_parent):
8627         (Fset_window_configuration): use new hashtable type.
8628
8629         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
8630         (struct image_instantiator_methods):
8631         (struct Lisp_Image_Instance): make instance geometry signed.
8632
8633         * glyphs.c (instantiate_image_instantiator):
8634         (image_instance_query_geometry):
8635         (image_instance_layout):
8636         (image_instance_layout):
8637         (query_string_geometry):
8638         (text_query_geometry):
8639         (image_instantiate):
8640         (image_instantiate):
8641         (cache_subwindow_instance_in_frame_maybe):
8642         (subwindow_query_geometry): make instance geometry signed.
8643
8644         * glyphs-widget.c (widget_query_geometry):
8645         (widget_layout):
8646         (button_query_geometry):
8647         (tree_view_query_geometry):
8648         (tab_control_query_geometry):
8649         (layout_query_geometry):
8650         (layout_layout):
8651         (native_layout_layout): make instance geometry signed.
8652
8653 2000-05-29  Olivier Galibert  <galibert@pobox.com>
8654
8655         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
8656         constant.
8657
8658         * general.c (syms_of_general): Add Qfull_assoc symbol.
8659
8660         * data.c (finish_marking_weak_lists): Mark full-assoc lists
8661         correctly.
8662         (decode_weak_list_type): Decode full-assoc type.
8663         (encode_weak_list_type): Encode full-assoc type.
8664         (Fmake_weak_list): Update doc string.
8665
8666 2000-05-30  Andy Piper  <andy@xemacs.org>
8667
8668         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
8669
8670         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
8671         (decode_hash_table_weakness): ditto.
8672         (Fhash_table_weakness): ditto.
8673         (Fhash_table_type): ditto.
8674         (finish_marking_weak_hash_tables): ditto.
8675         (hash_table_weakness_validate): ditto.
8676         (syms_of_elhash): ditto.
8677
8678 2000-05-28  Martin Buchholz <martin@xemacs.org>
8679
8680         * XEmacs 21.2.34 is released.
8681
8682 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
8683
8684         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
8685         start cache.
8686         (updating_line_start_cache): Gone.
8687         (regenerate_window): Replace resetting of VERTICAL_CLIP by
8688         generic code to force a minimum of 1 line laid out in the
8689         CMOTION_DISP case.
8690
8691 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
8692
8693         * glyphs.c (instantiate_image_instantiator): Check for initialized
8694         height & width no longer special cases IMAGE_NOTHING.
8695         (nothing_instantiate): Set height and width of instance.
8696
8697 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
8698
8699         * unexelf.c (unexec): Search for ".data" section.
8700         Initialize new_data2_offset from old_data_index.
8701         Remove redundant check for ElfW.
8702
8703 2000-05-23  Andy Piper  <andy@xemacs.org>
8704
8705         * glyphs.c (get_image_instantiator_governing_domain): allow more
8706         specific domains as the governing domain rather than expecting an
8707         exact match. This fixes problems with layouts.
8708
8709 2000-05-22  Andy Piper  <andy@xemacs.org>
8710
8711         * redisplay-output.c (compare_runes): check for non-images
8712
8713         * glyphs.c (set_glyph_dirty_p): ditto.
8714         (update_glyph_cachel_data): ditto.
8715
8716         * glyphs-widget.c (layout_post_instantiate): ditto.
8717         (layout_post_instantiate): ditto.
8718
8719         * event-msw.c (mswindows_wnd_proc): warning removal.
8720
8721 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
8722
8723         * s\mingw32.h: Added #undef for CLASH_DETECTION.
8724
8725         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
8726
8727         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
8728
8729         * nt.c (rva_to_section): mingw32 needs rva_to_section.
8730         (mswindows_executable_type): mingw32 now has enough headers for
8731         this to work.
8732
8733 2000-05-20  Andy Piper  <andy@xemacs.org>
8734
8735         * console-msw.c (mswindows_output_last_error): ; -> ,
8736
8737 2000-05-12  Andy Piper  <andy@xemacs.org>
8738
8739         * console-msw.c (FROB): compare ints with ints.
8740
8741 2000-05-11  Andy Piper  <andy@xemacs.org>
8742
8743         * glyphs-x.c (x_finalize_image_instance): make minimal build
8744         happy.
8745
8746 2000-05-20  Ben Wing  <ben@xemacs.org>
8747
8748         * event-Xt.c:
8749         * event-Xt.c (vars_of_event_Xt):
8750         move modifier-keys-are-sticky to event-stream.c.
8751
8752         * event-msw.c:
8753         * event-msw.c (mswindows_enqueue_mouse_button_event):
8754         * event-msw.c (key_needs_default_processing_p):
8755         * event-msw.c (XEMSW_LCONTROL):
8756         * event-msw.c (mswindows_handle_sticky_modifiers):
8757         * event-msw.c (FROB):
8758         * event-msw.c (clear_sticky_modifiers):
8759         * event-msw.c (output_modifier_keyboard_state):
8760         * event-msw.c (output_alt_keyboard_state):
8761         * event-msw.c (mswindows_wnd_proc):
8762         * event-msw.c (mswindows_modifier_state):
8763         * event-msw.c (emacs_mswindows_handle_magic_event):
8764         implement sticky modifiers.
8765
8766         * event-stream.c:
8767         * event-stream.c (vars_of_event_stream):
8768         move modifier-keys-are-sticky here.
8769
8770         * lisp.h:
8771         add CHECK_FUNCTION.
8772
8773         * rangetab.c:
8774         implement map-range-table.
8775
8776
8777 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
8778
8779         * redisplay-tty.c (reset_tty_modes):
8780         (tty_redisplay_shutdown): Adjust argument type to
8781         tty_frame_output_end.
8782
8783 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
8784
8785         * eval.c (Fbacktrace): Don't output a line with only right
8786         parenthesis.
8787
8788 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
8789
8790         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
8791         (Fpq_reset_poll): Ditto.
8792
8793 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
8794
8795         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
8796
8797 2000-05-16  Ben Wing  <ben@xemacs.org>
8798
8799         * buffer.c:
8800         * buffer.c (dfc_convert_to/from_internal_format):
8801         * buffer.c (reinit_vars_of_buffer):
8802         Fix conversion functions to allow reentrancy.
8803
8804         * console-msw.c:
8805         * console-msw.c (mswindows_output_last_error):
8806         New fun, generally useful -- output a human-readable
8807         version of GetLastError() on the console.
8808
8809         * console-msw.h:
8810         * console-msw.h (struct mswindows_frame):
8811         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
8812
8813         * console-stream.c (stream_output_begin):
8814         * console-stream.c (stream_output_end):
8815         * console-stream.c (stream_output_vertical_divider):
8816         * console-stream.c (stream_clear_region):
8817         * console-stream.c (stream_flash):
8818         * console-stream.c (console_type_create_stream):
8819         Delete blank stream methods, not needed.
8820
8821         * console.h (struct console_methods):
8822         Split begin/end methods into window and frame.
8823
8824         * event-msw.c:
8825         * event-msw.c (mswindows_handle_paint):
8826         * event-msw.c (output_alt_keyboard_state):
8827         * event-msw.c (mswindows_wnd_proc):
8828         * event-msw.c (vars_of_event_mswindows):
8829         Comment about problems with ignored-expose.
8830         Define mswindows-debug-events; not really implemented.
8831
8832         * frame-msw.c (mswindows_init_frame_1):
8833         random cleanups.
8834
8835         * glyphs-msw.c:
8836         * glyphs-msw.c (begin_defer_window_pos):
8837         * glyphs-msw.c (mswindows_unmap_subwindow):
8838         * glyphs-msw.c (mswindows_map_subwindow):
8839         * glyphs-msw.c (mswindows_resize_subwindow):
8840         Use DeferWindowPos to reduce flashing when mapping/unmapping.
8841
8842         * glyphs.c (make_image_instance_1):
8843         Fix crash.
8844
8845         * gutter.c (Fredisplay_gutter_area):
8846         Use new begin/end methods.
8847
8848         * lisp.h (Dynarr_new2):
8849         New creation fun.
8850
8851         * redisplay-msw.c:
8852         * redisplay-msw.c (mswindows_frame_output_begin):
8853         * redisplay-msw.c (mswindows_frame_output_end):
8854         * redisplay-msw.c (console_type_create_redisplay_mswindows):
8855         New begin/end methods -- handle DeferWindowPos.
8856
8857         * redisplay-output.c (redisplay_move_cursor):
8858         * redisplay-output.c (redraw_cursor_in_window):
8859         * redisplay-output.c (redisplay_update_line):
8860         * redisplay-output.c (redisplay_output_window):
8861         New begin/end methods.
8862
8863         * redisplay-tty.c:
8864         * redisplay-tty.c (tty_frame_output_begin):
8865         * redisplay-tty.c (tty_frame_output_end):
8866         * redisplay-tty.c (console_type_create_redisplay_tty):
8867         New begin/end methods.
8868
8869         * redisplay-x.c:
8870         * redisplay-x.c (x_window_output_begin):
8871         * redisplay-x.c (x_window_output_end):
8872         * redisplay-x.c (console_type_create_redisplay_x):
8873         New begin/end methods.
8874
8875         * redisplay.c (redisplay_frame):
8876         * redisplay.c (Fredisplay_echo_area):
8877         New begin/end methods.
8878         use MAYBE_DEVMETH for clear_frame; it may not exist.
8879
8880         * window.h (WINDOW_XFRAME):
8881         WINDOW_XFOO macros -- get locale and decode struct pointer.
8882
8883
8884 2000-05-12  Ben Wing  <ben@xemacs.org>
8885
8886         * emacs.c:
8887         * emacs.c (ensure_no_quitting_from_now_on):
8888         * emacs.c (fatal_error_signal):
8889         * emacs.c (mswindows_handle_hardware_exceptions):
8890         * emacs.c (main):
8891         * emacs.c (Fkill_emacs):
8892         * emacs.c (shut_down_emacs):
8893         * emacs.c (assert_failed):
8894         various improvements in fatal error handling.
8895
8896         * eval.c:
8897         move preparing_for_armageddon to emacs.c.
8898
8899         * lisp.h:
8900         declare fatal_error_in_progress.
8901
8902         * print.c:
8903         * print.c (std_handle_out_external):
8904         * print.c (std_handle_out_va):
8905         * print.c (stderr_out):
8906         * print.c (stdout_out):
8907         use console under mswin when no standard output.
8908         don't do code conversion during fatal error.
8909
8910         * scrollbar.c (Fscrollbar_page_up):
8911         * scrollbar.c (Fscrollbar_page_down):
8912         fix missing else.  reindent.
8913
8914 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
8915
8916         Emergency fix.
8917
8918         * glyphs.h (GLYPH_CACHEL_DESCENT):
8919         (GLYPH_CACHEL_DESCENT):
8920         (GLYPH_CACHEL_DESCENT):
8921         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
8922         used in case these are inline functions.
8923         Use more absurd values to error check.
8924
8925         include window.h for error check functions.
8926
8927 2000-05-11  Ben Wing  <ben@xemacs.org>
8928
8929         * cmdloop.c (Freally_early_error_handler):
8930         Display message box under windows; otherwise, message will disappear
8931         before it can be viewed.
8932
8933         * console-msw.c:
8934         * console-msw.c (Fmswindows_message_box):
8935         * console-msw.c (FROB):
8936         * console-msw.c (syms_of_console_mswindows):
8937         Define new fun `mswindows-message-box'.
8938         #### I will merge this into `popup-dialog-box'; just give me
8939         a bit of time.
8940
8941         * general.c:
8942         * general.c (syms_of_general):
8943         Some new symbols used in `mswindows-message-box'.
8944
8945         * glyphs.c:
8946         * glyphs.c (Fset_image_instance_property):
8947         put warning in this fun.
8948
8949         * glyphs.h:
8950         * glyphs.h (GLYPH_CACHEL_WIDTH):
8951         * glyphs.h (GLYPH_CACHEL_ASCENT):
8952         * glyphs.h (GLYPH_CACHEL):
8953         * glyphs.h (GLYPH_CACHEL_GLYPH):
8954         define error-checking versions to try to catch a bug i've seen --
8955         redisplay gets in an infinite loop because the glyph width of the
8956         continuation glyph is 65535.
8957
8958         * lisp.h:
8959         Extern message-box stuff.
8960
8961         * window.c (allocate_window):
8962         * window.c (make_dummy_parent):
8963         * window.c (Fset_window_configuration):
8964         Use EQUAL not EQ for subwindow caches to make them work a bit
8965         better. (Something is still very broken.)
8966
8967
8968 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
8969
8970         * glyphs.c (image_instantiate): Suppress gcc warnings.
8971         (Fmake_image_instance): Fix doc string.
8972         * specifier.c (Fmake_specifier): Ditto.
8973
8974 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
8975
8976         * paths.h.in (PATH_LOCK): Removed.
8977         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
8978         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
8979
8980 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
8981
8982         * fns.c (Ffeaturep): Update e-mail address in doc-string.
8983         Document (featurep '(and xemacs 21.02)).
8984
8985 2000-05-09  Ben Wing  <ben@xemacs.org>
8986
8987         * buffer.c (complex_vars_of_buffer):
8988         update modeline-format doc.
8989
8990         * device.h:
8991         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
8992
8993         * emacs.c:
8994         timeline of all released versions of Emacs, for use in creating
8995         authorship comments and in synching up.
8996
8997         * glyphs-widget.c (image_instantiator_buttons):
8998         * glyphs-widget.c (image_instantiator_edit_fields):
8999         * glyphs-widget.c (image_instantiator_combo_box):
9000         * glyphs-widget.c (image_instantiator_scrollbar):
9001         * glyphs-widget.c (image_instantiator_progress_guage):
9002         * glyphs-widget.c (image_instantiator_tree_view):
9003         * glyphs-widget.c (image_instantiator_tab_control):
9004         * glyphs-widget.c (image_instantiator_labels):
9005         * glyphs-widget.c (image_instantiator_layout):
9006         * glyphs-widget.c (image_instantiator_native_layout):
9007         rename decode_domain method to governing_domain.
9008
9009         * glyphs.c:
9010         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
9011         * glyphs.c (add_entry_to_device_ii_format_list):
9012         make sure we don't put an entry more than once into the list.
9013         * glyphs.c (check_instance_cache_mapper):
9014         *************************************************************
9015         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
9016         HAVE BEEN GETTING.
9017         *************************************************************
9018         * glyphs.c (get_image_instantiator_governing_domain):
9019         clean up, expand on new concept of governing domain.
9020         * glyphs.c (instantiate_image_instantiator):
9021         * glyphs.c (allocate_image_instance):
9022         use governing_domain instead of cache_domain in naming.
9023         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
9024         * glyphs.c (make_image_instance_1):
9025         * glyphs.c (Fmake_image_instance):
9026         allow for any domain (not just device), and process the
9027         governing domain correctly.  very big doc fix.
9028         * glyphs.c (Fimage_instance_domain):
9029         new primitive, to retrieve the governing domain of an image instance.
9030         * glyphs.c (image_instantiate):
9031         use new governing_domain stuff.  this fixes a crash you could get
9032         by instantiating certain widget glyphs in frame locales. (should
9033         signal an error instead of crashing.)
9034         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
9035         * glyphs.c (Fglyphp): clean up doc.
9036         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
9037         * glyphs.c (syms_of_glyphs):
9038         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
9039         * glyphs.c (image_instantiator_format_create): add some comments about
9040         bogus code.
9041         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
9042         for current-display-table. (Apparently Hrjove implemented in 1998 a
9043         design I wrote up in 1996, but didn't update the doc string.)
9044
9045         * glyphs.h: clean up a doc string.
9046         * glyphs.h (governing_domain):
9047         * glyphs.h (struct image_instantiator_methods):
9048         changes for governing_domain stuff.
9049
9050         * gutter.c:
9051         * gutter.c (Fgutter_specifier_p):
9052         * gutter.c (Fgutter_size_specifier_p):
9053         * gutter.c (Fgutter_visible_specifier_p):
9054         * objects.c:
9055         * objects.c (Fcolor_specifier_p):
9056         * objects.c (Ffont_specifier_p):
9057         * objects.c (Fface_boolean_specifier_p):
9058         doc strings moved to make-*-specifier.
9059
9060         * redisplay.c (add_disp_table_entry_runes_1):
9061         * redisplay.c (generate_fstring_runes):
9062         * redisplay.c (screen):
9063         add random comments and doc strings.
9064
9065         * specifier.c:
9066         * specifier.c (Fmake_specifier):
9067         major overhaul of this doc string.
9068
9069         * specifier.c (Fvalid_specifier_domain_p):
9070         comment about the bogosity of image instances being domains.
9071         * specifier.c (decode_domain):
9072         now non-static, used in glyphs.c.
9073         * specifier.c (specifier_instance):
9074         comment about the bogosity of image instances being domains.
9075         * specifier.c (Fgeneric_specifier_p):
9076         move doc string to make-generic-specifier.
9077         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
9078         rebackslashify.
9079
9080         * specifier.h:
9081         * specifier.h (DOMAIN_FRAME):
9082         * specifier.h (DOMAIN_LIVE_P):
9083         * specifier.h (DOMAIN_XDEVICE):
9084         rebackslashify.
9085         add comments about problems with these macros.
9086         prototype for decode_domain.
9087
9088         * toolbar.c:
9089         * toolbar.c (Ftoolbar_specifier_p):
9090         move doc string to `make-toolbar-specifier'.
9091
9092         * window.c (window_unmap_subwindows_cache_mapper):
9093         *************************************************************
9094         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
9095         HAVE BEEN GETTING.
9096         *************************************************************
9097
9098 2000-05-09  Andy Piper  <andy@xemacs.org>
9099
9100         * glyphs.h: declare reset_frame_subwindow_instance_cache.
9101
9102         * window.c (Fset_window_configuration): reset the frame subwindow
9103         cache and re-initialize the window subwindow caches.
9104
9105         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
9106
9107 2000-05-09  Ben Wing  <ben@xemacs.org>
9108
9109         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
9110         DWORD.
9111
9112 2000-04-26  Mike Woolley  <mike@bulsara.com>
9113
9114         * ntheap.c: Changed recreate_heap to limit the amount reserved
9115         for the heap to that which is actually available. Also now
9116         displays a message box (with some dignostics) in the event that
9117         it still can't start.
9118
9119 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
9120
9121         * callproc.c (Fold_call_process_internal): GCPRO path
9122
9123 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
9124
9125         Patch by Bill Perry.
9126
9127         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
9128         back data instead of #ifdef.
9129         (Fscrollbar_page_down): ditto.
9130
9131 2000-05-07  Ben Wing  <ben@xemacs.org>
9132
9133         * buffer.h:
9134         Kludge for defining Qmswindows_tstr.
9135
9136         * nt.c:
9137         * nt.c (open_input_file):
9138         * nt.c (open_output_file):
9139         * nt.c (rva_to_section):
9140         * nt.c (mswindows_executable_type):
9141         Move all memory-mapped-file routines here (some were in unexnt.c,
9142         which is bad because they are used by process-nt.c, and unexnt
9143         won't be around when portable dumping).  Synched the above routines
9144         with FSF 20.6.
9145
9146         * nt.h:
9147         Removed ifdef'd out bogus code.
9148         Fixed some prototypes.
9149
9150         * nt.h (file_data):
9151         * nt.h (OFFSET_TO_RVA):
9152         * nt.h (RVA_TO_OFFSET):
9153         * nt.h (RVA_TO_PTR):
9154         Moved the memory-mapped-file structures, macros and prototypes
9155         here, to parallel nt.c.  ntheap.h should really be removed
9156         entirely, and it's a non-portable-dumper specific file.
9157
9158         * ntheap.h (round_to_next):
9159         Moved the memory-mapped-file structures, macros and prototypes
9160         to nt.h.
9161
9162         * ntproc.c (compare_env):
9163         Moved rva_to_section and mswindows_executable_type to nt.c.
9164         Moved compare_env to process-nt.c.
9165         ntproc.c will die, one day.
9166
9167         * ntproc.c (sys_spawnve):
9168         Account for win32_ -> mswindows_.
9169
9170         * process-nt.c:
9171         * process-nt.c (struct nt_process_data):
9172         * process-nt.c (ensure_console_window_exists):
9173         * process-nt.c (compare_env):
9174         * process-nt.c (nt_create_process):
9175         * process-nt.c (nt_kill_process_by_pid):
9176         * process-nt.c (syms_of_process_nt):
9177         * process-nt.c (vars_of_process_nt):
9178         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
9179         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
9180         changes).  Eliminate our old `nt-quote-process-args' mechanism.
9181         Synch up nt_create_process with FSF 20.6 sys_spawnve.
9182         Move compare_env here from ntproc.c.
9183
9184         * process.c (Fprocess_send_region):
9185         Takes an optional fourth argument, BUFFER, which should fix some
9186         problems with call-process.
9187
9188         * syscommctrl.h:
9189         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
9190
9191         * syswindows.h:
9192         Move ICC_BAR_CLASSES to syscommctrl.h.
9193         Add preliminary macros for MSWindows/Mule.  More to come.
9194
9195         * unexnt.c:
9196         * unexnt.c (unexec):
9197         open_output_file moved to nt.c.
9198
9199
9200 2000-05-05  Andy Piper  <andy@xemacs.org>
9201
9202         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
9203         instance from the frame cache also since GC may catch up too late
9204         to make frame deletion sane.
9205
9206 2000-05-04  Andy Piper  <andy@xemacs.org>
9207
9208         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
9209         (x_finalize_image_instance): ungcpro on deletion.
9210
9211         * glyphs.c (image_instantiator_format_create): give pointers a
9212         query geometry method so that the geometry is at least set.
9213
9214         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
9215         initialize layouts if using widgets.
9216
9217 2000-05-03  Andy Piper  <andy@xemacs.org>
9218
9219         * nt.c: remove bogus reference to sysmmsystem.h
9220
9221         * gui-x.c (popup_selection_callback): fix no selection abort.
9222
9223 2000-05-02  Andy Piper  <andy@xemacs.org>
9224
9225         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
9226         (mswindows_widget_instantiate): ditto.
9227
9228         * glyphs-widget.c (initialize_widget_image_instance): initialize
9229         children correctly.
9230         (widget_instantiate): cope with children and items in the same
9231         instance.
9232
9233         * glyphs.c (mark_image_instance): cope with children as a first
9234         class member.
9235         (image_instance_equal): ditto.
9236         (image_instance_hash): ditto.
9237         (image_instance_changed): ditto.
9238
9239 2000-04-30  Andy Piper  <andy@xemacs.org>
9240
9241         * glyphs.c (subwindow_query_geometry): new function. Return some
9242         defaults.
9243         (subwindow_instantiate): don't assign dimensions if none have been
9244         given.
9245         (image_instantiator_format_create): add subwindow_query_geometry.
9246         (print_image_instance): cope with layouts as widgets.
9247
9248 2000-04-29  Andy Piper  <andy@xemacs.org>
9249
9250         * frame.c (delete_frame_internal): call
9251         free_frame_subwindow_instance_cache so that all subwindows are
9252         finalized before their parent.
9253         (mark_frame): remove subwindow_cachels.
9254         (Fmake_frame): remove subwindow_cachel manipulation.
9255         (allocate_frame_core): subwindow_instance_cache is a weak list.
9256         (delete_frame_internal): set subwindow_instance_cache to nil.
9257
9258         * glyphs-msw.c (mswindows_finalize_image_instance): make double
9259         finalization safe.
9260         (mswindows_finalize_image_instance): use the device
9261         not the domain as the domain may have died already.
9262
9263         * glyphs-x.c (x_finalize_image_instance): ditto.
9264         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
9265         HEIGHT.
9266
9267         * redisplay-output.c (redisplay_unmap_subwindows): update for
9268         subwindow instance cache as a weak list.
9269         (redisplay_unmap_subwindows_maybe): ditto.
9270         (redisplay_unmap_subwindows_except_us): ditto.
9271
9272         * glyphs.c (unmap_subwindow): error checking will check the domain
9273         so don't deal with it here. Don't use cachels anymore.
9274         (map_subwindow): ditto.
9275         (update_subwindow_cachel_data): remove old accessor names.
9276         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
9277         (Fresize_subwindow): don't update cachel.
9278         (mark_subwindow_cachels):
9279         (update_subwindow_cachel_data):
9280         (add_subwindow_cachel):
9281         (get_subwindow_cachel_index):
9282         (update_subwindow_cachel):
9283         (reset_subwindow_cachels):
9284         (mark_subwindow_cachels_as_not_updated): deleted.
9285         (cache_subwindow_instance_in_frame_maybe): new function. Add a
9286         subwindow instance to the frame cache.
9287         (find_matching_subwindow): update for subwindow instance cache as
9288         a weak list.
9289         (update_widget_instances): ditto.
9290         (image_instance_type_to_mask):inlined.
9291         (free_frame_subwindow_instance_cache): new function. finalize all
9292         subwindows that are instantiated.
9293
9294         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
9295         of cachel information.
9296         (IMAGE_INSTANCE_DISPLAY_X):
9297         (IMAGE_INSTANCE_DISPLAY_Y):
9298         (IMAGE_INSTANCE_DISPLAY_WIDTH):
9299         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
9300         (XIMAGE_INSTANCE_DISPLAY_X):
9301         (XIMAGE_INSTANCE_DISPLAY_Y):
9302         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
9303         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
9304         remove subwindow_cachel structure and function references.
9305         (image_instance_type_to_mask): inline from glyphs.c
9306
9307         * redisplay.c (redisplay_frame): remove subwindow_cachel
9308         references.
9309
9310         * frame.h (struct frame): remove subwindow_cachels.
9311         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
9312
9313         * frameslots.h: add subwindow_instance_cache.
9314
9315         * window.c (replace_window): check subwindow cache of replacement.
9316         (window_unmap_subwindows_cache_mapper):
9317         (window_unmap_subwindows): new functions. Unmap all subwindows
9318         cached on this window.
9319         (mark_window_as_deleted): unmap all subwindows.
9320
9321 2000-04-27  Andy Piper  <andy@xemacs.org>
9322
9323         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
9324
9325         * glyphs-widget.c (widget_layout): return something.
9326         (layout_layout): return something. Fail if not initialized.
9327         (layout_query_geometry): ditto.
9328         (image_instantiator_native_layout): new function. Initialized the
9329         native layout type.
9330         (widget_instantiate): don't do layout stuff here.
9331
9332         * glyphs.c (instantiate_image_instantiator): reorded calling or
9333         instantiate and post_instantiate with layout in between.
9334         (image_instance_layout): be more selective about deciding whether
9335         the layout has been done or not.
9336
9337         * glyphs.h (struct image_instantiator_methods): return a value
9338         from layout_method.
9339
9340 2000-04-26  Andy Piper  <andy@xemacs.org>
9341
9342         * glyphs.c (allocate_image_instance): make initial width and
9343         height unspecified. Set initialized to 0.
9344
9345         * syscommctrl.h new file. Encapsulates commctrl.h.
9346
9347         * syswindows.h new file. Encapsulates windows.h.
9348
9349         * ntplay.c: use new syswindows.h and syscommctrl.h header.
9350         * nt.c: ditto.
9351         * console-msw.h: ditto.
9352
9353         * redisplay-tty.c (tty_output_display_block): remove layout references.
9354
9355         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
9356         window handle rather than just the frame.
9357
9358         * glyphs.c (mark_image_instance): remove layout references.
9359         (print_image_instance): ditto.
9360         (image_instance_equal): ditto.
9361         (image_instance_hash): ditto.
9362         (decode_image_instance_type): ditto.
9363         (encode_image_instance_type): ditto.
9364         (image_instantiate): ditto.
9365         (allocate_glyph): ditto.
9366         (Fimage_instance_height): ditto.
9367         (Fimage_instance_width): ditto.
9368         (update_subwindow): ditto.
9369
9370         * redisplay-x.c (x_output_display_block): recode for layouts as
9371         widgets.
9372
9373         * redisplay-output.c (redisplay_output_layout): recode for layouts
9374         as widgets.
9375         (compare_runes): remove layout references.
9376
9377         * redisplay-msw.c (mswindows_output_display_block): recode for
9378         layouts as widgets.
9379
9380         * glyphs-widget.c (image_instantiator_layout): remove
9381         layout_possible_dest_types.
9382         (layout_possible_dest_types): deleted.
9383
9384         * glyphs.h (image_instance_type): remove layout references.
9385         (struct Lisp_Image_Instance): ditto. Add initialized flag.
9386         (IMAGE_INSTANCE_INITIALIZED): new accessor.
9387         (XIMAGE_INSTANCE_INITIALIZED): ditto.
9388
9389 2000-04-25  Andy Piper  <andy@xemacs.org>
9390
9391         * glyphs-widget.c (image_instantiator_buttons):
9392         (image_instantiator_edit_fields):
9393         (image_instantiator_combo_box):
9394         (image_instantiator_scrollbar):
9395         (image_instantiator_progress_guage):
9396         (image_instantiator_tree_view):
9397         (image_instantiator_tab_control):
9398         (image_instantiator_labels):
9399         (image_instantiator_layout): call default post_instantiate method.
9400         (widget_post_instantiate): new function. Simply lays out the
9401         widgets.
9402
9403         * glyphs.h (struct image_instantiator_methods): add
9404         post_instantiate method.
9405
9406         * glyphs.c (instantiate_image_instantiator): add post_instantiate
9407         method calls.
9408
9409 2000-04-23  Andy Piper  <andy@xemacs.org>
9410
9411         * glyphs.h (struct image_instantiator_methods): add
9412         decode_domain_method.
9413         (struct Lisp_Image_Instance): remove subwindow frame - it can be
9414         derived from the domain.
9415         (IMAGE_INSTANCE_FRAME): new accessor.
9416         (XIMAGE_INSTANCE_FRAME): ditto.
9417
9418         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
9419         instead of _SUBWINDOW_FRAME.
9420         (finalize_image_instance): ditto.
9421         (Fimage_instance_foreground): ditto.
9422         (Fimage_instance_background): ditto.
9423         (image_instantiate): ditto.
9424         (update_subwindow_cachel): ditto.
9425         (update_subwindow): ditto.
9426         (unmap_subwindow): ditto.
9427         (map_subwindow): ditto
9428         (subwindow_instantiate): ditto.
9429         * glyphs-msw.c (mswindows_update_widget): ditto.
9430         (mswindows_progress_gauge_instantiate): ditto.
9431         (mswindows_tab_control_update): ditto.
9432         * glyphs-x.c (x_update_widget): ditto.
9433         (x_widget_instantiate): ditto.
9434         (x_tab_control_instantiate): ditto.
9435         (x_tab_control_update): ditto.
9436         * event-msw.c (mswindows_wnd_proc): ditto
9437
9438         * glyphs-widget.c (image_instantiator_layout): use
9439         subwindow_decode_domain.
9440         (image_instantiator_buttons): ditto.
9441         (image_instantiator_edit_fields): ditto.
9442         (image_instantiator_combo_box): ditto.
9443         (image_instantiator_scrollbar): ditto.
9444         (image_instantiator_progress_guage): ditto.
9445         (image_instantiator_tree_view): ditto.
9446         (image_instantiator_tab_control): ditto.
9447         (image_instantiator_labels): ditto.
9448         (image_instantiator_layout): ditto.
9449
9450         * glyphs.c: add instance error checking to many functions.
9451         (instantiate_image_instantiator): decode device from cache_domain.
9452         (image_instantiate): partially rewrite by using
9453         decode_image_instantiator_domain to determine what domain the
9454         instance needs to be cached in.
9455         (decode_image_instantiator_domain): new function. Determine what
9456         domain the image needs to be cached in.
9457         (check_window_subwindow_cache): new error checking function.
9458         (check_instance_cache_mapper): ditto.
9459         (check_image_instance_structure): ditto.
9460         (subwindow_decode_domain): new function. Encodes a window as a
9461         subwindow's cache domain.
9462         (image_instantiator_format_create): use it for text and
9463         subwindows.
9464
9465 2000-04-21  Andy Piper  <andy@xemacs.org>
9466
9467         * glyphs.c (image_instance_device): new function.
9468         (image_instance_frame): new function.
9469         (image_instance_window): new function.
9470         (image_instance_live_p): new function.
9471
9472         * window.c (mark_window_as_deleted): reset the subwindow_instance_
9473         cache to nil.
9474
9475         * glyphs.h (struct Lisp_Image_Instance): device->domain.
9476         (IMAGE_INSTANCE_DOMAIN): new accessor.
9477         (XIMAGE_INSTANCE_DOMAIN): ditto.
9478
9479         * glyphs-x.c (x_finalize_image_instance): device->domain.
9480
9481         * glyphs-msw.c (init_image_instance_geometry): device->domain.
9482         (mswindows_finalize_image_instance): ditto.
9483
9484         * glyphs-eimage.c (jpeg_instantiate): device->domain.
9485         (gif_instantiate): ditto.
9486         (png_instantiate): ditto.
9487         (tiff_instantiate): ditto.
9488
9489         * glyphs.c (instantiate_image_instantiator): use domain rather
9490         than device.
9491         (mark_image_instance): device -> domain.
9492         (print_image_instance): ditto.
9493         (finalize_image_instance): ditto.
9494         (image_instance_equal): ditto.
9495         (allocate_image_instance): ditto.
9496         (Fcolorize_image_instance): ditto.
9497         (query_string_geometry): ditto.
9498         (image_instantiate): ditto
9499         (query_string_font): ditto.
9500         (image_instantiate): ditto.
9501         (update_subwindow): ditto.
9502         (unmap_subwindow): ditto.
9503         (map_subwindow): ditto.
9504         (subwindow_instantiate): ditto.
9505
9506         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
9507         (DOMAIN_FRAME): ditto.
9508         (DOMAIN_WINDOW): ditto.
9509         (DOMAIN_LIVE_P): ditto.
9510         (XDOMAIN_DEVICE): ditto.
9511         (XDOMAIN_FRAME): ditto.
9512         (XDOMAIN_WINDOW): ditto.
9513
9514         * specifier.c (Fvalid_specifier_domain_p): add image instances as
9515         a valid specifier domain.
9516
9517 2000-04-19  Andy Piper  <andy@xemacs.org>
9518
9519         * glyphs-widget.c (syms_of_glyphs_widget): remove
9520         widget-callback-current-channel.
9521         (vars_of_glyphs_widget): ditto.
9522         * glyphs.h: ditto
9523
9524         * gui.c (get_gui_callback): revert to previous behaviour.
9525
9526 2000-04-18  Andy Piper  <andy@xemacs.org>
9527
9528         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
9529         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
9530         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
9531
9532         * glyphs.c (image_instance_equal): add margin_width.
9533         (image_instance_hash): ditto.
9534
9535         * glyphs-widget.c (widget_instantiate): deal with margin-width.
9536         (layout_query_geometry): ditto.
9537         (layout_layout): ditto.
9538         (syms_of_glyphs_widget): add margin-width.
9539         (image_instantiator_layout): allow margin-width.
9540
9541         * glyphs.c (update_widget_instances): make a normal function.
9542         (syms_of_glyphs): remove Qupdate_widget_instances.
9543         * glyphs.h: ditto.
9544
9545         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
9546         so that we don't corrupt ideas about the last event or
9547         command. Remove widget-callback-current-channel fiddling.
9548         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
9549
9550 2000-05-01  Martin Buchholz <martin@xemacs.org>
9551
9552         * XEmacs 21.2.33 is released.
9553
9554 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
9555
9556         * make-src-depend: Allow dots in header file name.
9557
9558 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
9559
9560         * mule-charset.h (struct charset_lookup): Add
9561         next_allocated_1_byte_leading_byte and
9562         next_allocated_2_byte_leading_byte.
9563         * mule-charset.c: Move above two variables so that those values
9564         will be dumped.
9565
9566 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
9567
9568         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
9569         when string length is zero.
9570         (find_charsets_in_emchar_string): Ditto.
9571
9572 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
9573
9574         * lisp.h: extern Qdialog and Qmenubar.
9575
9576         * gui-x.c: added events.h.
9577                 also fixed typo which made the file uncompilable.
9578
9579         * general.c: Added Qmenubar and Qdialog
9580
9581 2000-04-28  Ben Wing  <ben@xemacs.org>
9582
9583         * frame-msw.c (mswindows_init_frame_1):
9584         * frame-msw.c (mswindows_mark_frame):
9585         * event-msw.c (mswindows_enqueue_dispatch_event):
9586         * console-msw.h:
9587         * console-msw.h (struct mswindows_frame):
9588         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
9589         there are now three hash tables for callbacks.
9590         mswindows_enqueue_dispatch_event is no longer static.
9591
9592         * dialog-x.c (maybe_run_dbox_text_callback):
9593         * dialog-x.c (dbox_descriptor_to_widget_value):
9594         switch to new cons3 form for callbacks.
9595
9596         * glyphs-msw.c (mswindows_register_gui_item):
9597         * glyphs-msw.c (mswindows_widget_instantiate):
9598         * glyphs-msw.c (add_tree_item):
9599         * glyphs-msw.c (add_tab_item):
9600         new image instance parameter, so it can be passed to callback-ex.
9601         respect :callback-ex as well as :callback.
9602
9603         * glyphs-widget.c (VALID_GUI_KEYWORDS):
9604         add :callback-ex.
9605
9606         * glyphs.c (print_image_instance):
9607         prettify, e.g. now prints widget type.
9608
9609         * gui-x.h:
9610         certain funs have new image instance parameter.
9611
9612         * gui.c:
9613         * gui.c (get_gui_callback):
9614         * gui.c (gui_item_add_keyval_pair):
9615         * gui.c (gui_item_init):
9616         * gui.c (gui_add_item_keywords_to_plist):
9617         * gui.c (mark_gui_item):
9618         * gui.c (gui_item_hash):
9619         * gui.c (gui_item_equal):
9620         * gui.c (copy_gui_item):
9621         * gui.c (syms_of_gui):
9622         recognize callback-ex in a number of places.
9623         also, fix the annoying "can't get out of yes-no dialog" bug.
9624
9625         * gui.h:
9626         * gui.h (struct Lisp_Gui_Item):
9627         recognize callback-ex in a number of places.
9628
9629         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9630         new parameter in button_item_to_widget_value.
9631
9632         * glyphs-x.c (x_update_widget):
9633         * glyphs-x.c (x_button_instantiate):
9634         * glyphs-x.c (x_button_update):
9635         * glyphs-x.c (x_progress_gauge_instantiate):
9636         * glyphs-x.c (x_edit_field_instantiate):
9637         * glyphs-x.c (x_combo_box_instantiate):
9638         * glyphs-x.c (x_tab_control_instantiate):
9639         * glyphs-x.c (x_label_instantiate):
9640         new image instance parameter in various places.
9641
9642         * event-Xt.c:
9643         * event-Xt.c (enqueue_Xt_dispatch_event):
9644         this fun gets exported.
9645
9646         * gui-msw.c:
9647         * gui-msw.c (mswindows_handle_gui_wm_command):
9648         handle both :callback and :callback-ex, and generate our own
9649         event because it's one of the callback-ex arguments.
9650
9651         * gui-x.c:
9652         * gui-x.c (popup_selection_callback):
9653         handle both :callback and :callback-ex, and generate our own
9654         event because it's one of the callback-ex arguments.
9655         * gui-x.c (button_item_to_widget_value):
9656         * gui-x.c (gui_items_to_widget_values_1):
9657         * gui-x.c (gui_item_children_to_widget_values):
9658         * gui-x.c (gui_items_to_widget_values):
9659         new image instance parameter in various places.
9660
9661         * fns.c (Freplace_list):
9662         fix small typo in doc string.
9663
9664         * lisp.h:
9665         declare enqueue_Xt_dispatch_event.
9666
9667 2000-04-28  Ben Wing  <ben@xemacs.org>
9668
9669         * buffer.c:
9670         * buffer.c (Frecord_buffer):
9671         * buffer.c (syms_of_buffer):
9672         delete record-buffer-hook.
9673
9674         * fns.c:
9675         * fns.c (Freplace_list):
9676         * fns.c (syms_of_fns):
9677         new primitive replace-list.
9678
9679         * frameslots.h:
9680         slot for old buffer-alist.
9681
9682         * lisp.h:
9683         exfun replace-list.
9684
9685         * redisplay.c:
9686         * redisplay.c (redisplay_frame):
9687         * redisplay.c (syms_of_redisplay):
9688         * redisplay.c (vars_of_redisplay):
9689         new hook buffer-list-changed-hook.
9690         call it.
9691
9692 2000-04-27  Ben Wing  <ben@xemacs.org>
9693
9694         * extents.h: extern in_modeline_generation.
9695
9696         * redisplay.c (generate_formatted_string_db): set
9697         in_modeline_generation.
9698
9699         * extents.c (extent_changed_for_redisplay): don't mark redisplay
9700         flags if in modeline generation.  otherwise frame-modified-tick
9701         is ticked far too often.
9702         Declare in_modeline_generation.
9703
9704 2000-04-26  Ben Wing  <ben@xemacs.org>
9705
9706         * emacs.c (vars_of_emacs): document quick-build "error-checking"
9707         option.
9708         (vars_of_emacs): add quick-build as an error-checking option.
9709         A bit kludgy, but there doesn't seem much point in creating
9710         a real var for this.
9711
9712         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
9713
9714 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9715
9716         * redisplay.h (struct display_line): Add a new variable,
9717         line_continuation.
9718
9719         * redisplay.c (create_text_block): Set dl->line_continuation if
9720         the line continues.
9721         (create_string_text_block): Ditto.
9722         (regenerate_window_incrementally): Use line_continuation instead
9723         of searching continuation glyph.
9724         (add_margin_runes): Call add_glyph_rune.
9725         (add_glyph_rune): Handle margin glyph.
9726
9727 2000-04-20  Martin Buchholz  <martin@xemacs.org>
9728
9729         * filelock.c (fill_in_lock_file_name):
9730         ANSIfy.
9731         Check for IS_ANY_SEP instead of '/'.
9732         (lock_file_1):
9733         Avoid generating gratuitous garbage.  Call user_login_name() directly.
9734         Never check errno without first seeing that system call failed.
9735         (unlock_file): Add GCPRO.
9736         (Flock_buffer): Fix docstring.
9737         (Ffile_locked_p): Fix docstring.  Add GCPRO.
9738
9739 2000-04-19  Martin Buchholz  <martin@xemacs.org>
9740
9741         * sysdep.c (get_pty_max_bytes):
9742         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
9743         strings longer than 252 bytes.
9744
9745         * md5.c: Unconditionally include ANSI header <limits.h>
9746
9747         * glyphs-x.c (convert_EImage_to_XImage):
9748         * lisp-union.h (union Lisp_Object):
9749         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
9750
9751 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
9752
9753         * filelock.c (current_lock_owner): Remove unused variable o, p.
9754
9755 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
9756
9757         * callint.c: Remove multiply defined symbol Qlet
9758         (syms_of_callint): ditto.
9759
9760 2000-04-14  Andy Piper  <andy@xemacs.org>
9761
9762         * general.c (syms_of_general): add last-command, this-command, let
9763         and funcall.
9764
9765         * lisp.h: declare various symbols.
9766
9767         * glyphs.h: declare Qwidget_callback_current_channel;
9768
9769         * glyphs-widget.c (syms_of_glyphs_widget): add
9770         Qgui_callback_current_channel.
9771         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
9772
9773         * gui-msw.c (mswindows_handle_gui_wm_command): bind
9774         widget-callback-current-channel when invoking the interactive
9775         arg. Also bind last-command and next-command when invoking the
9776         widget updates.
9777         * gui-x.c (popup_selection_callback): ditto.
9778
9779         * gui.c (get_gui_callback): massage args so that we are always
9780         calling eval. This allows us to add our own variable bindings
9781         outside.
9782
9783         * glyphs-x.c (x_button_instantiate): use
9784         gui_items_to_widget_values since this is GC safe.
9785         (x_progress_gauge_instantiate): ditto.
9786         (x_edit_field_instantiate): ditto.
9787         (x_label_instantiate): ditto.
9788
9789         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
9790         (emacs_Xt_event_widget_focus_out): new function
9791         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
9792         focus.
9793         (emacs_Xt_event_add_widget_actions): new function. add focus
9794         functions as actions.
9795         (init_event_Xt_late): use it.
9796
9797 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
9798
9799         * event-stream.c (Fdispatch_event): Doc fix.
9800
9801 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
9802
9803         * postgresql.c: Remove all references to PQsetenv*.
9804
9805         * postgresql.h: Remove references to PGsetenvHandler object.
9806         * lrecord.h (lrecord_type): Ditto.
9807
9808 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
9809
9810         * glyphs-msw.h (struct mswindows_image_instance_data): Added
9811         real_heigh and real_width members, and accessor macros for these.
9812
9813         * glyphs-msw.c (init_image_instance_geometry): New function.
9814         (init_image_instance_from_dibitmap): Use it.
9815         (mswindows_resource_instantiate): Use it.
9816         (init_image_instance_from_xbm_inline): Use it.
9817         (mswindows_initialize_image_instance_mask): Use real bitmap
9818         geometry.
9819         (mswindows_create_resized_bitmap): Ditto.
9820         (mswindows_create_resized_mask): Ditto.
9821
9822         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
9823         and bitmap to their surface size.
9824
9825 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
9826
9827         * process-unix.c (unix_send_process): Guard against process MIA
9828         after Faccept_process_output.
9829
9830 2000-04-11  Ben Wing  <ben@xemacs.org>
9831
9832         * eval.c (unbind_to_hairy): fix brokenness introduced by
9833         nanosecond speed improvements.
9834
9835 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
9836
9837         * sunplay.c (init_device): To play sounds correctly, the device
9838         apparently needs to be initialized at least once by XEmacs.  Make
9839         it so.
9840
9841 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9842
9843         * redisplay.c (add_margin_runes): Add text image glyph
9844           handling.
9845
9846 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
9847
9848         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
9849         gcc is newer than 2.5.
9850
9851 2000-04-06  Colin Rafferty  <colin@xemacs.org>
9852
9853         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
9854
9855         * fns.c (size_bit_vector):
9856         * alloc.c (size_vector):
9857         (make_vector_internal):
9858         (make_bit_vector_internal):
9859         (sweep_bit_vectors_1):
9860         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
9861
9862 2000-04-06  Andy Piper  <andy@xemacs.org>
9863
9864         * gmalloc.c (malloc): undo previous change.
9865         (malloc): ditto.
9866         (free): ditto.
9867         (realloc): ditto.
9868
9869 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
9870
9871         * line-number.c (buffer_line_number): Revert to former version.
9872
9873 2000-04-06  Andy Piper  <andy@xemacs.org>
9874
9875         * gmalloc.c (malloc): add error checking.
9876         (malloc): ditto.
9877         (free): ditto.
9878         (realloc): ditto.
9879
9880         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
9881         button_item_to_widget_value arg.
9882
9883         * glyphs-x.c (x_button_instantiate): add extra
9884         button_item_to_widget_value arg.
9885         (x_progress_gauge_instantiate): ditto.
9886         (x_edit_field_instantiate): ditto.
9887         (x_label_instantiate): ditto.
9888
9889         * gui-x.c (gui_items_to_widget_values_1): add extra
9890         button_item_to_widget_value arg.
9891         (button_item_to_widget_value): add extra menu_item_p arg.
9892
9893         * gui-x.h: change signature of button_item_to_widget_value.
9894
9895         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
9896         button_item_to_widget_value arg.
9897
9898 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
9899
9900         * buffer.h (struct buffer): auto_save_modified should be long.
9901
9902 2000-04-05  Andy Piper  <andy@xemacs.org>
9903
9904         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
9905         type.
9906         (button_query_geometry): give a little more room so that athena
9907         buttons fit.
9908
9909 2000-04-05  Andy Piper  <andy@xemacs.org>
9910
9911         * faces.c (complex_vars_of_faces): The widget face should inherit
9912         the font of the gui-element face.
9913
9914 2000-04-04  Andy Piper  <andy@xemacs.org>
9915
9916         * glyphs-x.c (x_button_update): new function. unconditionally
9917         update a button's state when the instance is dirty.
9918         (image_instantiator_format_create_glyphs_x): add x_button_update.
9919         (x_widget_instantiate): remove old resize cruft.
9920
9921 2000-04-02  Andy Piper  <andy@xemacs.org>
9922
9923         * frame.c (change_frame_size_1): The introduction of gutters means
9924         that we need to allow 0 as a potential frame dimension.
9925
9926 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9927
9928         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
9929         image glyph if allow_cursor.
9930         (add_hscroll_rune): Don't allow cursor to border glyph.
9931         (create_text_block): Ditto.
9932
9933         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
9934         text not in buffer.
9935         (redisplay_output_layout): Call ensure_face_cachel_complete for
9936         text image glyph.
9937
9938
9939 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9940
9941         * redisplay.c (add_glyph_rune): Adding text image as text runes.
9942
9943         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
9944         not in buffer
9945
9946         * redisplay-tty.c (tty_output_display_block): Delete the routine
9947         for text image glyph
9948         * redisplay-x.c (x_output_display_block): ditto
9949         * redisplay-msw.c (mswindows_output_display_block): ditto
9950
9951 2000-02-02  Mike Alexander  <mta@arbortext.com>
9952
9953         Note: Some of these were committed by accident as part of other
9954         patches.
9955
9956         * regex.c (regex_compile): Avoid compiler warnings.
9957
9958         * ntproc.c (sys_spawnve): Avoid compiler warnings.
9959
9960         * nt.h: Declare term_ntproc correctly.
9961
9962         * nt.c: Remove incorrect declaration of get_home_directory which
9963         is declared correctly in lisp.h.
9964
9965         * keymap.c (get_keyelt): Avoid compiler warnings.
9966         (raw_lookup_key_mapper): Avoid compiler warnings.
9967
9968         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
9969
9970         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
9971
9972         * filemode.c (mode_string): Avoid compiler warnings.
9973
9974         * file-coding.c (Fcoding_system_aliasee): Add return statement to
9975         avoid warning.
9976
9977         * events-mod.h: Undef some things that winuser.h defines differently.
9978
9979         * data.c (Faset): Avoid compiler warnings.
9980
9981         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
9982
9983 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
9984
9985         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
9986         Fall through to simple beep on error.
9987         Replace "extern" by real header file.
9988
9989         * linuxplay.c: Use nativesound.h
9990         (play_sound_data): Return error code. Be less verbose on error.
9991
9992         * sunplay.c: Use nativesound.h
9993         (play_sound_data): Return error code. Be less verbose on error.
9994
9995         * ntplay.c: Use nativesound.h
9996         (play_sound_data): Return fake error code
9997
9998         * sgiplay.c: Use nativesound.h
9999         (play_sound_data): Return error code
10000
10001         * hpplay.c: Use nativesound.h, partially implement
10002         new error code. Break compilation until finished.
10003         (play_sound_data): error code.
10004
10005         * nativesound.h (play_sound_file):
10006           (play_sound_data): Prototype in new header.
10007
10008 2000-03-31  Andy Piper  <andy@xemacs.org>
10009
10010         * glyphs-widget.c: (button_query_geometry): new function. Adjust
10011         for toggle and radio buttons.
10012         (image_instantiator_buttons): use it.
10013
10014 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
10015
10016         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
10017         (x_update_horizontal_scrollbar_callback): Return if no mirror was
10018         found. Scrollbar event probably belonged to some old config.
10019
10020 2000-03-31  Andy Piper  <andy@xemacs.org>
10021
10022         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
10023         than 1.
10024         (initialize_widget_image_instance): default layout to
10025         LAYOUT_HORIZONTAL rather than 0.
10026         (widget_instantiate): reverse the item list at the end rather than
10027         every iteration.
10028         (layout_layout): re-code for the border text at the front of the
10029         item list rather than at the end.
10030         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
10031         provided by the user.
10032         (widget_query_geometry): comment.
10033
10034 2000-03-30  Andy Piper  <andy@xemacs.org>
10035
10036         * glyphs-widget.c (image_instantiator_layout): allow standard
10037         widget keywords in layouts.
10038
10039         * gutter.c (output_gutter): cope with nil gutter contents.
10040
10041         * frame.c (Fset_frame_properties): add gutter docs.
10042
10043 2000-03-29  Andy Piper  <andy@xemacs.org>
10044
10045         * toolbar-msw.c (TBSTYLE_FLAT): add.
10046         (mswindows_output_toolbar): minor fiddling.
10047
10048 2000-03-29  Andy Piper  <andy@xemacs.org>
10049
10050         * gutter.c (output_gutter): force gutter size recalculation if
10051         what we are trying to display won't fit.
10052         (update_gutter_geometry): new function. A per-gutter version of
10053         update_frame_gutter_geometry.
10054         (update_frame_gutter_geometry): use it.
10055         (redraw_exposed_gutter): add extra debugging output.
10056
10057 2000-03-28  Mike Alexander  <mta@arbortext.com>
10058
10059         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
10060         (pdump_file_unmap): Implement it on Windows
10061         (pdump_file_get): Save alocated handles for pdump_file_unmap
10062
10063 2000-03-28  Andy Piper  <andy@xemacs.org>
10064
10065         * gui.c (get_gui_callback): treat Quit specially.
10066
10067 2000-03-27  Andy Piper  <andy@xemacs.org>
10068
10069         * glyphs.c (image_instantiate): be careful to check in the same
10070         way we assigned.
10071
10072 2000-03-27  Didier Verna  <didier@xemacs.org>
10073
10074         * config.h.in: define the proper SMART_INCLUDE macro.
10075         handle renaming of `foo_h_path' to `foo_h_file'.
10076
10077         * database.c: ditto.
10078
10079         * emacs.c: ditto.
10080
10081         * linuxplay.c: ditto.
10082
10083         * terminfo.c: ditto.
10084
10085         * tooltalk.h: ditto.
10086
10087 2000-03-27  Andy Piper  <andy@xemacs.org>
10088
10089         * glyphs-msw.c (mswindows_update_widget): make sure the widget
10090         gets updated whenever the face might have changed.
10091
10092 2000-03-26  Mike Alexander  <mta@arbortext.com>
10093
10094         * dumper.c (pdump_resource_free): Fix the comment.
10095
10096 2000-03-21  Olivier Galibert  <galibert@pobox.com>
10097
10098         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
10099
10100 2000-03-22  Mike Alexander  <mta@arbortext.com>
10101
10102         * dumper.c: Include Windows headers on Windows
10103         (pdump_resource_free): Add a body to the function
10104         (pdump_load): exe_name -> exe_path and add some comments.
10105
10106 2000-03-25  Mike Alexander  <mta@arbortext.com>
10107
10108         * gui.c (copy_gui_item_tree): Return a value in all cases
10109
10110 2000-03-21  Didier Verna  <didier@xemacs.org>
10111
10112         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
10113         lwlib/config.h.in.
10114         (SMART_INCLUDE): new macro.
10115         (POSTGRES_INCLUDE): new macro to include postgresql headers from
10116         the proper location.
10117
10118         * postgresql.c: use it.
10119
10120         * inline.c: ditto.
10121
10122 2000-03-24  Andy Piper  <andy@xemacs.org>
10123
10124         * gutter.c (redraw_exposed_gutters): must be "in display" when we
10125         do this.
10126
10127 2000-03-24  Andy Piper  <andy@xemacs.org>
10128
10129         * redisplay-output.c (compare_runes): use image_instance_changed
10130         to detect changes. Do not depend on glyphs_changed, only depend on
10131         dirtiness.
10132          (redisplay_output_layout): add debug messages.
10133         (compare_runes): ditto.
10134
10135         * glyphs.h: declare new functions.
10136         (struct Lisp_Image_Instance): remove percent and associated
10137         accessors.
10138
10139         * gui.h: declare new copying functions.
10140
10141         * gui.c (copy_gui_item_tree): new function.
10142         (copy_gui_item): new function.
10143         (gui_item_id_hash): revert to standard hash.
10144         (gui_item_hash): ditto.
10145         (gui_item_hash_internal): deleted.
10146         (mark_gui_item): mark value.
10147         (gui_item_add_keyval_pair): add value.
10148         (gui_item_init): ditto.
10149         (gui_add_item_keywords_to_plist): ditto.
10150         (gui_item_equal): ditto.
10151         (syms_of_gui): add Q_value.
10152
10153         * glyphs-x.c (x_progress_gauge_update): use pending items and
10154         value for setting the state.
10155         (x_update_widget): don't set items from pending here.
10156
10157         * glyphs-widget.c (update_widget): update items here.
10158         (progress_gauge_set_property): use items for storing value. Put
10159         new value in pending items.
10160
10161         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
10162         items for new value. Convert percent -> value.
10163         (mswindows_tab_control_update): don't update items here.
10164
10165         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
10166         (update_subwindow): ditto.
10167         (image_instance_changed): new function. Compare hash values and
10168         past and present widget items.
10169         (image_instantiate): We more careful about where we instantiate
10170         things.
10171         (image_instantiate): add error checking.
10172
10173         * gutter.c (syms_of_gutter): use -hook.
10174
10175 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
10176
10177         * console-tty.c (Fset_console_tty_input_coding_system): Use
10178         Qkeyboard.
10179         (Fset_console_tty_output_coding_system): Use Qterminal.
10180         (tty_init_console): Use Qkeyboard and Qterminal.
10181
10182 2000-03-21  Ben Wing  <ben@xemacs.org>
10183
10184         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
10185         From Mike Alexander <mta@arbortext.com>.
10186
10187 2000-03-21  Ben Wing  <ben@xemacs.org>
10188
10189         * event-msw.c (mswindows_need_event): Horrible kludge to fix
10190         process brokenness.  Proper implementation to come.
10191         * callproc.c:
10192         Rename call-process-internal to old-call-process-internal.
10193         New impl. in process.el.
10194
10195 2000-03-21  Martin Buchholz  <martin@xemacs.org>
10196
10197         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
10198
10199 2000-03-20  Andy Piper  <andy@xemacs.org>
10200
10201         * glyphs.c (full_list_hash): make hashes of the same elements in
10202         different orders return different values.
10203
10204 2000-03-20  Martin Buchholz <martin@xemacs.org>
10205
10206         * XEmacs 21.2.32 is released.
10207
10208 2000-03-20  Martin Buchholz  <martin@xemacs.org>
10209
10210         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
10211         (DFC_MALLOC_USE_CONVERTED_DATA):
10212         Add aliasing-safe casts to allow use with char* or unsigned char*
10213         lvalues.
10214
10215         * eldap.c (Fldap_open):
10216         (Fldap_search_basic):
10217         (Fldap_add):
10218         (Fldap_modify):
10219         Make C++-compilable.
10220         Make sure GCPRO'ed variables are initialized.
10221         Use temp variables to avoid repeated calls to Flength.
10222
10223 2000-03-16  Martin Buchholz  <martin@xemacs.org>
10224
10225         * sysfile.h:
10226         Make sure PATH_MAX is always defined.
10227         Include limits.h for PATH_MAX.
10228         Deprecate use of MAXPATHLEN.
10229
10230 2000-03-10  Martin Buchholz  <martin@xemacs.org>
10231
10232         * emacs.c: Add reinit_vars_of_fileio.
10233         * symsinit.h: Add reinit_vars_of_fileio.
10234         * fileio.c (reinit_vars_of_fileio): New.
10235         * fileio.c (Fmake_temp_name):
10236         Initialize temp_name random number from microseconds to make
10237         collisions even less likely.  Initialize always at process startup
10238         time.  (make-temp-name) used to return the same file name twice in
10239         a row when PDUMP.
10240         Random stylistic fiddling.
10241         Comment fixes.
10242
10243 2000-03-20  Andy Piper  <andy@xemacs.org>
10244
10245         * glyphs.c (image_instantiate): allow text glyphs to be
10246         instantiated in the minibuffer window.
10247
10248 2000-03-19  Andy Piper  <andy@xemacs.org>
10249
10250         * glyphs.c (image_instance_hash): be careful about which items we
10251         hash on.
10252
10253         * glyphs-widget.c (tab_control_set_property): record into pending
10254         items rather than the actual items.
10255
10256         * glyphs-x.c (x_update_widget): use pending items to update with.
10257
10258         * glyphs-msw.c (mswindows_tab_control_update): use pending items
10259         to update with.
10260
10261         * glyphs.c (mark_image_instance): mark pending items.
10262
10263         * window.c (Fset_window_configuration): record the buffer.
10264         (Fselect_window): totally revert previous change which breaks many
10265         things.
10266
10267 2000-03-18  Andy Piper  <andy@xemacs.org>
10268
10269         * glyphs-msw.c (mswindows_tab_control_update): force selected
10270         item.
10271
10272         * glyphs.c (image_instantiate): don't allow the minibuffer as a
10273         window domain cache, otherwise we get inconsistencies at
10274         startup. There is something fishy at startup which can lead to the
10275         minibuffer being the selected window when the gutter content is
10276         instantiated.
10277
10278         * gui.c (parse_gui_item_tree_list): add probably unnecessary
10279         gcpros.
10280         (parse_gui_item_tree_children): ditto.
10281         (parse_gui_item_tree_item): ditto.
10282
10283         * glyphs.c (Fupdate_widget_instances): return something.
10284
10285 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
10286
10287         * window.c (Fselect_window): Undo 2000-03-17 change.
10288
10289 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
10290
10291         * postgresql.c (Fpq_setenv): Remove this turkey when linking
10292         against v7.0 libraries.  Insta-coredump city until the postgres
10293         folks fix it.
10294
10295 2000-03-17  Andy Piper  <andy@xemacs.org>
10296
10297         * faces.c (complex_vars_of_faces): don't give the widget face an
10298         inherited background pixmap.
10299
10300         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
10301         selected item.
10302
10303         * event-stream.c (Fdispatch_non_command_events): return something.
10304
10305         * gutter.c (output_gutter): use widget face.
10306         (clear_gutter): ditto.
10307
10308         * NEWS: adjust again.
10309
10310         * window.c (Fselect_window): make sure this runs to completion to
10311         avoid oddities with Fset_window_configuration.
10312         (Fcurrent_window_configuration): in general do not save the
10313         minibuffer as the selected window.
10314
10315         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
10316
10317 2000-03-16  Olivier Galibert  <galibert@pobox.com>
10318
10319         * emacs.c (Frunning_temacs_p): Revert previous patch.
10320         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
10321
10322 2000-03-16  Andy Piper  <andy@xemacs.org>
10323
10324         * glyphs-x.c (x_tab_control_update): if no widget values then
10325         return.
10326
10327         * NEWS: update for new features.
10328
10329         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
10330         synthetic event to the native system.
10331         (reinit_vars_of_event_Xt): set force_event_pending to
10332         emacs_Xt_force_event_pending.
10333
10334         * events.h (struct event_stream): add force_event_pending.
10335
10336         * specifier.c (recompute_one_cached_specifier_in_window): add
10337         comment.
10338
10339         * redisplay.c (redisplay_frame): don't call
10340         update_frame_subwindows. Reset subwindow cachels when
10341         subwindows_changed, removing this was an optimization too far.
10342
10343         * redisplay-output.c (compare_runes): reorganize so that we catch
10344         glyph changes when we want them. Set optimize_output when this
10345         would help layouts.
10346         (redisplay_output_layout): remove frame_really_changed, use
10347         optimize_output instead.
10348
10349         * redisplay-msw.c (mswindows_output_display_block): reset
10350         optimize_output after outputting a glyph.
10351         * redisplay-x.c (x_output_display_block): ditto.
10352         * redisplay-tty.c (tty_output_display_block): ditto.
10353
10354         * gutter.c: (specifier_vars_of_gutter): use new spec changed
10355         functions.
10356         (gutter_specs_changed): do specific gutter positions.
10357         (top_gutter_specs_changed): new function. Only update the
10358         specified gutter specs.
10359         (bottom_gutter_specs_changed): ditto.
10360         (left_gutter_specs_changed): ditto.
10361         (right_gutter_specs_changed): ditto.
10362
10363         * gui.c (gui_item_hash_internal): new function, does a real hash.
10364         (gui_item_id_hash): use it.
10365         (gui_item_hash): hash the eval'ed gui_item.
10366
10367         * gui-x.c (popup_selection_callback): send an eval event to call
10368         Fupdate_widget_instances.
10369
10370         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
10371         to call Fupdate_widget_instances.
10372
10373         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
10374         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
10375
10376         * glyphs.c: (update_frame_subwindows): deleted.
10377         (Fupdate_widget_instances): new function for updating the dirty
10378         state of widgets that might have changed.
10379         (syms_of_glyphs): add Qupdate_widget_instances.
10380         (full_list_hash): hash a list completely.
10381         (image_instance_hash): use it for items and properties.
10382
10383         * frame-msw.c (mswindows_size_frame_internal): remove unused
10384         variable.
10385
10386         * faces.h (struct face_cachel): fix comment.
10387
10388         * event-stream.c (Fdispatch_non_command_events): new
10389         function. Process non-command events, forcing an event cycle
10390         beforehand.
10391         (syms_of_event_stream): declare.
10392         (event_stream_force_event_pending): new function. Force an event
10393         on the native event queue so that an event cycle will occur next
10394         time we check.
10395
10396         * event-msw.c:
10397         (struct ntpipe_shove_stream):
10398         (mswindows_enqueue_dispatch_event):
10399         (mswindows_dequeue_dispatch_event):
10400         (mswindows_cancel_dispatch_event):
10401         (mswindows_pump_outstanding_events):
10402         (mswindows_drain_windows_queue):
10403         (mswindows_handle_paint):
10404         (mswindows_wnd_proc):
10405         (mswindows_key_to_emacs_keysym):
10406         (get_process_input_waitable):
10407         (emacs_mswindows_delete_stream_pair): re-indent file.
10408         (mswindows_need_event): do not process further fds if the windows
10409         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
10410         fixes the 100% cpu problem.
10411         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
10412
10413 2000-03-15  Olivier Galibert  <galibert@pobox.com>
10414
10415         * alloc.h: New.
10416         * dumper.h: New.
10417         * dumper.c: New.
10418
10419         * emacs.c: Moved dump file searching to dumper.c.
10420         (Frunning_temacs_p): Fixed.
10421
10422         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
10423         last_lrecord_type_index_assigned.
10424
10425 2000-02-20  Olivier Galibert  <galibert@pobox.com>
10426
10427         * symsinit.h: Added reinit parameter to init_console_stream
10428         declaration.
10429
10430         * lisp.h: Added file parameter to pdump_load declaration.
10431
10432         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
10433         support.  Added dump file searching.
10434
10435         * config.h.in: Added EMACS_PROGNAME.
10436
10437         * console-stream.c (init_console_stream): Fix reinitialisation
10438         when running from temacs.
10439
10440         * alloc.c (pdump): Add id support.
10441         (pdump_load): Add file parameter and signature/id support.
10442
10443         * Makefile.in.in: Add full pdump support.
10444
10445 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
10446
10447         * postgresql.c: Update documentation to reflect latest code
10448         status.
10449         (print_result): Show tuple counts in printed representation when
10450         appropriate.
10451         (Fpq_put_nbytes): MULE-ize.
10452         (Fpq_get_line_async): Ditto.
10453
10454 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
10455
10456         * postgresql.c (Fpq_lo_import): Fix return value.
10457         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
10458
10459 2000-03-13  Ben Wing  <ben@xemacs.org>
10460
10461         * alloc.c (pdump_load):
10462         Fix compile warning under mswin.
10463
10464 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
10465
10466         * postgresql.c: Mule-ization, bug fixes.
10467         Use PG_CODING to encapsulate coding system name changes.
10468         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
10469         (pg-coding-system): Create.
10470
10471         (Fpq_conn_defaults): Mule-ize.
10472         (Fpq_connectdb): Mule-ize & bug fix.
10473         (Fpq_connect_start): Mule-ize.
10474         (Fpq_set_client_encoding): Mule-ize.
10475         (Fpq_finish): Document `DEAD' connection status.
10476         (Fpq_clear): Ditto.
10477         (Fpq_pgconn): Mule-ize.
10478         (Fpq_exec): Mule-ize & bug fix.
10479         (Fpq_send_query): Ditto.
10480         (Fpq_get_result): Ditto.
10481         (Fpq_res_status): Mule-ize.
10482         (Fpq_result_error_message): Mule-ize.
10483         (Fpq_ntuples): fix comments.
10484         (Fpq_fname): Mule-ize.
10485         (Fpq_fnumber): Mule-ize.
10486         (Fpq_ftype): fix comments.
10487         (Fpq_get_value): Mule-ize.
10488         (Fpq_cmd_status): Ditto.
10489         (Fpq_cmd_tuples): Ditto.
10490         (Fpq_oid_value): Ditto.
10491         (Fpq_notifies): Ditto.
10492         (Fpq_lo_import): Ditto.
10493         (Fpq_lo_export): Ditto.
10494         (Fpq_get_line): Ditto.
10495         (Fpq_put_line): Mule-ize and bug fix.
10496         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
10497
10498 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
10499
10500         * postgresql.c (vars_of_postgresql): Mule-ize.
10501         (Fpq_conn_defaults): Ditto.
10502
10503 2000-03-12  Ben Wing  <ben@xemacs.org>
10504
10505         * alloc.c (Fmake_byte_code):
10506         * alloc.c (debug_string_purity_print):
10507         * alloc.c (pdump_backtrace):
10508         * alloc.c (pdump_get_indirect_count):
10509         * alloc.c (pdump_register_sub):
10510         * alloc.c (pdump_register_object):
10511         * alloc.c (pdump_register_struct):
10512         * alloc.c (pdump_dump_data):
10513         * alloc.c (pdump_reloc_one):
10514         Minor cleanups.
10515
10516         * console-msw.c:
10517         * console-msw.c (GetConsoleHwnd):
10518         * console-msw.c (msw_hide_console):
10519         * console-msw.c (msw_show_console):
10520         * console-msw.c (msw_ensure_console_buffered):
10521         * console-msw.c (msw_output_console_string):
10522         * console-msw.c (console_type_create_mswindows):
10523
10524         a) Added functions to manipulate the console window for use with
10525         shell support.
10526
10527         b) Added support for writing text to the console, which is now
10528         used under Windows when xemacs is not being run non-interactively,
10529         to write text that would otherwise be destined for stdout because
10530         under these circumstances, text written to stdout tends to
10531         disappear and not be seen.
10532
10533         * console-msw.h:
10534         * event-Xt.c:
10535         * event-Xt.c (x_event_to_emacs_event):
10536         * event-Xt.c (describe_event_window):
10537         * events-mod.h (XEMACS_MOD_CONTROL):
10538         * events.c:
10539         * events.c (Fmake_event):
10540         * events.c (character_to_event):
10541         * events.c (event_to_character):
10542         * events.c (format_event_object):
10543         * events.c (Fevent_modifiers):
10544         * events.h:
10545         * events.h (struct key_data):
10546         * events.h (struct button_data):
10547         * events.h (struct misc_user_data):
10548         * frame-x.c (Fcde_start_drag_internal):
10549         * frame-x.c (Foffix_start_drag_internal):
10550         * gpmevent.c (Freceive_gpm_event):
10551         * keymap.c:
10552         * keymap.c (bucky_sym_to_bucky_bit):
10553         * keymap.c (control_meta_superify):
10554         * keymap.c (make_key_description):
10555         * keymap.c (keymap_lookup_directly):
10556         * keymap.c (create_bucky_submap):
10557         * keymap.c (keymap_store):
10558         * keymap.c (define_key_check_and_coerce_keysym):
10559         * keymap.c (define_key_parser):
10560         * keymap.c (define_key_alternate_name):
10561         * keymap.c (Fdefine_key):
10562         * keymap.c (raw_lookup_key_mapper):
10563         * keymap.c (struct map_keymap_unsorted_closure):
10564         * keymap.c (map_keymap_unsorted_mapper):
10565         * keymap.c (map_keymap_sort_predicate):
10566         * keymap.c (map_keymap_sorted):
10567         * keymap.c (accessible_keymaps_mapper_1):
10568         * keymap.c (where_is_recursive_mapper):
10569         * keymap.c (describe_map_mapper):
10570         * keymap.c (describe_map_sort_predicate):
10571         * keymap.c (describe_map):
10572         * keymap.c (complex_vars_of_keymap):
10573         And a number of other files, the key modifier preprocessor
10574         constants that xemacs uses have names that conflict with constants
10575         defined under MS Windows for other purposes, so they were renamed
10576         to begin with the prefix XEMACS_. The variables that hold such
10577         modifiers were changed to consistently be of type int to fix
10578         various compile warnings.
10579
10580         * console.c (complex_vars_of_console):
10581         * device.c:
10582         * device-msw.c:
10583         * device-msw.c (mswindows_finish_init_device):
10584         * device-msw.c (msw_get_workspace_coords):
10585         * device-msw.c (mswindows_device_system_metrics):
10586         and various other files, added support for a new
10587         device property called offset-workspace which returns the position
10588         of the upper left corner of the workspace area and goes along with
10589         the existing size-workspace property.
10590
10591         * dialog-msw.c:
10592         * dialog-msw.c (push_bufbyte_string_as_unicode):
10593         * dialog-msw.c (mswindows_popup_dialog_box):
10594         Added support for XEmacs-style accelerator specifications in
10595         button text.  Note: I didn't add support for this under X Windows,
10596         and somebody needs to do this.
10597
10598         * dialog.c:
10599         * dialog.c (Fpopup_dialog_box):
10600         Documented the support for accelerators that was just mentioned.
10601
10602         editfns.c (get_home_directory): Changed behavior under Windows
10603         when HOME not defined; former behavior was irretrievably broken.
10604
10605         * emacs.c:
10606         * emacs.c (main_1):
10607         * emacs.c (main):
10608         * minibuf.c (clear_echo_area_internal):
10609         * minibuf.c (echo_area_append):
10610         * print.c:
10611         * print.c (std_handle_out_external):
10612         * print.c (std_handle_out_va):
10613         * print.c (fatal):
10614         * print.c (write_string_to_stdio_stream):
10615         * print.c (output_string):
10616         * print.c (debug_print):
10617         * print.c (debug_backtrace):
10618         * print.c (debug_short_backtrace):
10619         Cleaned up the code that prints text to stdout so that this can be
10620         changed to output into a console window instead under MS Windows,
10621         as described above.
10622
10623         * eval.c:
10624         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
10625         * eval.c (internal_catch):
10626         * eval.c (unwind_to_catch):
10627         * eval.c (throw_or_bomb_out):
10628         * eval.c (condition_case_1):
10629         * eval.c (signal_1):
10630         * eval.c (check_error_state_sanity):
10631         * eval.c (call_with_suspended_errors_1):
10632         * eval.c (call_with_suspended_errors):
10633         * eval.c (reinit_vars_of_eval):
10634         Added code to catch throw loops and check for a pesky bug that may
10635         be gone now.
10636
10637         * event-msw.c:
10638         * event-msw.c (key_needs_default_processing_p):
10639         * event-msw.c (mswindows_wnd_proc):
10640         * event-msw.c (mswindows_modifier_state):
10641         * event-msw.c (emacs_mswindows_quit_p):
10642         * event-msw.c (vars_of_event_mswindows):
10643         a) Added support for using the alt key to select menu items as is
10644         standard under MS Windows.  This is controlled using the variable
10645         menu-accelerator-enabled, just like under X Windows.  There is an
10646         option on the options menu to turn this support on.  I really
10647         think that it should be on by default under Windows, but I'm not
10648         going to make this change yet.
10649
10650         b)  Added support for dynamic display size changes under Windows.
10651
10652         * event-stream.c:
10653         * event-stream.c (maybe_echo_keys):
10654         * event-stream.c (Fnext_event):
10655         * event-stream.c (command_builder_find_leaf):
10656         * event-stream.c (lookup_command_event):
10657         * event-stream.c (execute_command_event):
10658         * event-stream.c (pre_command_hook):
10659         * event-stream.c (post_command_hook):
10660         * event-stream.c (syms_of_event_stream):
10661         * event-stream.c (vars_of_event_stream):
10662         * event-stream.c (complex_vars_of_event_stream):
10663         * events.h (struct command_builder):
10664
10665         a) Tried to clean up a little bit the horribly written x-specific
10666         accelerator code that crept into this file.  I moved this code
10667         into menubar-x.c where it belongs. I also needed to move the
10668         command builder structure into the file events.h because it is
10669         accessed directly by this accelerator code.  What I didn't do, but
10670         which should be done at some point, is to properly abstract this
10671         code using device methods instead of the kludgy way that it
10672         currently hooks into the event code.
10673
10674         b) Added the lisp variables this-command-properties and
10675         last-command- properties, which should be used to synchronize two
10676         adjacent commands in preference to playing games with the variable
10677         this-command, which is typically what happens.
10678
10679         c) Added some slightly nasty code to hook into the lisp support
10680         for shifted- motion-key selection.  This is actually necessary for
10681         somewhat complicated reasons, which are described in
10682         simple.el. (NB: I think the proper thing would be to have the code
10683         that calls the pre and post command hooks also call out to generic
10684         lisp functions in simple.el, where all built-in stuff could be
10685         added.  I will think about this more.)
10686
10687         * event-unixoid.c (poll_fds_for_input):
10688         * lread.c (readchar):
10689         * redisplay-tty.c (tty_clear_frame):
10690         * redisplay-x.c (x_get_gc):
10691         * signal.c (interrupt_signal):
10692         And a whole bunch of other files: fixed up places that printed
10693         directly to stderr to instead call the function stderr_out so that
10694         the changes I made under Windows work correctly.
10695
10696         * filemode.c (mode_string):
10697         Warning fixes.
10698
10699         * frame-msw.c:
10700         * frame-msw.c (mswindows_size_frame_internal):
10701         Fixed the computation of frame size and position to keep the frame
10702         within the workspace area, rather than within the physical
10703         dimensions of the screen, so that the frame doesn't overlap window
10704         manager decorations, such as the start menu and toolbar, typically
10705         at the bottom of the screen.
10706
10707         * frame.c (vars_of_frame):
10708         Changed the default frame title format under MS Windows to consist
10709         of buffername-XEmacs, which is standard under MS Windows.  I think
10710         it might be a good idea to change this everywhere because I think
10711         it is superior to the current frame title format, but this is the
10712         kind of change that is likely to cause some people to get annoyed,
10713         so I'm not making it.
10714
10715         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
10716
10717         * gui-msw.c (mswindows_handle_gui_wm_command):
10718         Fixed compile warnings.
10719
10720         * gui-x.c:
10721         * gui-x.c (strdup_and_add_accel):
10722         * gui-x.c (button_item_to_widget_value):
10723         * gui-x.h:
10724         Added code to automatically put an accelerator onto the beginning
10725         of menu items that don't have one as is now the standard, and is
10726         described more later.  Also fixed things so that the menu item
10727         name can be an evaluated expression, again a new standard.
10728
10729         * gui.c:
10730         * gui.c (gui_item_add_keyval_pair):
10731         * gui.c (make_gui_item_from_keywords_internal):
10732         * gui.c (gui_add_item_keywords_to_plist):
10733         * gui.c (gui_item_accelerator):
10734         * gui.c (gui_name_accelerator):
10735         * gui.c (gui_item_included_p):
10736         * gui.c (gui_item_display_flush_left):
10737         * gui.c (gui_item_display_flush_right):
10738         * gui.c (parse_gui_item_tree_item):
10739         * gui.c (parse_gui_item_tree_children):
10740         * gui.c (parse_gui_item_tree_list):
10741         Mule-ized.  Cleanup.  GCPRO addition.
10742
10743         * line-number.c (buffer_line_number):
10744         * lisp.h:
10745         * lisp.h (EMACS_INT_MAX):
10746         Added the manifest constant EMACS_INT_MIN corresponding to the
10747         existing constant EMACS_INT_MAX.  This is partially to fix compile
10748         warnings under Windows, and partly for cleanliness.
10749
10750         * menubar-msw.c:
10751         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
10752         * menubar-msw.c (msw_translate_menu_or_dialog_item):
10753         * menubar-msw.c (displayable_menu_item):
10754         * menubar-msw.c (populate_menu_add_item):
10755         * menubar-msw.c (populate_or_checksum_helper):
10756         * menubar-msw.c (populate_menu):
10757         * menubar-msw.c (update_frame_menubar_maybe):
10758         * menubar-msw.c (prune_menubar):
10759         * menubar-msw.c (msw_char_is_accelerator):
10760         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
10761         * menubar-msw.c (mswindows_handle_wm_command):
10762         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
10763         * menubar-msw.c (mswindows_handle_wm_initmenu):
10764         * menubar-msw.c (mswindows_update_frame_menubars):
10765         * menubar-msw.c (mswindows_free_frame_menubars):
10766         * menubar-msw.c (mswindows_popup_menu):
10767         Fixed a bug in handling accelerators where an extra character
10768         would be displayed in the menu item.  Also generalized the
10769         function displayable_menu_item because it is now used by the
10770         dialog box code as well.  And finally, added code in the functions
10771         that create the menubar to extract a list of accelerators for the
10772         top level menubar, which is used in the event code to determine
10773         whether a particular alt-key combination should be used to invoke
10774         a menu item, or should be passed through to access the standard
10775         XEmacs keymap binding for this key combination.
10776
10777         Much needed GCPROing.
10778
10779         * menubar-x.c:
10780         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10781         * menubar-x.c (menu_item_descriptor_to_widget_value):
10782         * menubar-x.c (restore_in_menu_callback):
10783         * menubar-x.c (x_popup_menu):
10784         * menubar-x.c (menu_move_up):
10785         * menubar-x.c (menu_move_down):
10786         * menubar-x.c (menu_move_left):
10787         * menubar-x.c (menu_move_right):
10788         * menubar-x.c (menu_select_item):
10789         * menubar-x.c (command_builder_operate_menu_accelerator):
10790         * menubar-x.c (menu_accelerator_junk_on_error):
10791         * menubar-x.c (command_builder_find_menu_accelerator):
10792         * menubar-x.c (Faccelerate_menu):
10793         * menubar.h:
10794         Moved a whole bunch of code here that was previously in
10795         event-stream.c as described above.  There is also code connected
10796         to the new standard of adding an accelerator to the beginning of
10797         menu items that don't have one as described above and below.
10798
10799         * menubar.c:
10800         * menubar.c (menu_parse_submenu_keywords):
10801         * menubar.c (Fmenu_find_real_submenu):
10802         * menubar.c (Fnormalize_menu_item_name):
10803         * menubar.c (syms_of_menubar):
10804         * menubar.c (vars_of_menubar):
10805         * menubar.c (complex_vars_of_menubar):
10806
10807         a) Cleaned up a bunch of documentation and improved it.
10808
10809         b) XEmacs now automatically adds an accelerator onto the beginning
10810         of any menu items that don't have one.  I did this because there
10811         will inevitably be some menu items on the main menubar that don't
10812         have accelerators on them because the package that adds that
10813         particular menu item hasn't yet been fixed up to have accelerators
10814         in them and it looked rather strange to have some items with and
10815         some items without accelerators, especially since even in items
10816         without accelerators, you can, at least under windows, still
10817         access the item through an accelerator corresponding to the first
10818         character in the item's name.  If people don't like this behavior,
10819         I can add a variable to turn it off optionally, but I'm not sure
10820         this is a good idea because we really do need to have accelerators
10821         on all of the menu items, and if a package doesn't like the
10822         accelerators being put on the first character, then it should put
10823         the accelerators where they belong.
10824
10825         c) I made a behavior change, which is that the descriptor that
10826         specifies the text of the menu item, which formerly was just a
10827         string, can now also be an evaluated expression.  This makes this
10828         descriptor parallel with all of the others, which could also be
10829         evaluated expressions.  This also obviates the need for the
10830         keyword :label, which was previously listed in the documentation
10831         as unimplemented, and which was for the same purpose.
10832
10833         d) GCPROing.
10834
10835         * ntproc.c:
10836         * ntproc.c (new_child):
10837         * ntproc.c (sys_spawnve):
10838         * ntproc.c (find_child_console):
10839         * ntproc.c (sys_kill):
10840         Fixed compile warnings.  By the way, this file should really go
10841         away entirely, and this will happen as soon as Kirill makes his
10842         final round of process cleanups, which affect the function
10843         call-process.
10844
10845         * process-nt.c:
10846         * process-nt.c (struct nt_process_data):
10847         * process-nt.c (find_process_from_pid):
10848         * process-nt.c (send_signal_the_nt_way):
10849         * process-nt.c (enable_child_signals):
10850         * process-nt.c (find_child_console):
10851         * process-nt.c (send_signal_the_95_way):
10852         * process-nt.c (nt_finalize_process_data):
10853         * process-nt.c (ensure_console_window_exists):
10854         * process-nt.c (nt_create_process):
10855         * process-nt.c (nt_kill_child_process):
10856         * process-nt.c (nt_kill_process_by_pid):
10857         * process-nt.c (nt_open_network_stream):
10858         * process-nt.c (vars_of_process_nt):
10859         Copied over code from Emacs 20.5 to correctly send signals to sub-
10860         processes under Windows 95.  Also added code to automatically
10861         create and hide console window when a sub-process is created under
10862         Windows 95, which obviates the need for the separate runemacs.exe
10863         executable, and finally implemented some variables that were
10864         implemented in Emacs 20.5, but previously not in XEmacs.  These
10865         include mswindows- start-process-share-console and
10866         mswindows-start-process-inherit-error-mode. (Both of these only
10867         apply to Windows 95.)
10868
10869         * regex.c (regex_compile): Fixed a compile warning.
10870
10871         * select-msw.c:
10872         * select-msw.c (mswindows_own_selection):
10873         * select-msw.c (mswindows_get_foreign_selection):
10874         * select-msw.c (mswindows_disown_selection):
10875         * select-msw.c (console_type_create_select_mswindows):
10876         * select-msw.c (syms_of_select_mswindows):
10877         Cleaned up the file and implemented the device method
10878         selection_exists_p, which had accidentally been left out.  Also
10879         removed four lisp functions that were remnants from before the
10880         time when the selection code was properly device abstracted.
10881         These functions are no longer needed because there are generic
10882         equivalents, and because they were added recently and don't exist
10883         in FSF Emacs, I don't think there's any problem with just deleting
10884         them.
10885
10886         * sysdep.c:
10887         * sysdep.c (sys_subshell):
10888         Fixed a compile warning, although in this case there's probably
10889         something wrong with this code, and it ought to be looked into
10890         more thoroughly by somebody who understands it.
10891
10892         * window.c:
10893         * window.c (Fwindow_text_area_height):
10894         * window.c (Fwindow_width):
10895         * window.c (Fwindow_full_width):
10896         * window.c (Fwindow_pixel_width):
10897         * window.c (debug_print_window):
10898         * window.c (syms_of_window):
10899         Added functions window-text-area-height and window-full-width,
10900         which are functions for returning various width and height
10901         characteristics of a window. (One of these functions is necessary
10902         for making the file dialog box work correctly, and the other one
10903         was added for completeness.)  Also added a table to the
10904         documentation for window-height which describes the entire scheme
10905         for accessing width and height characteristics of a window.
10906
10907 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10908
10909         * nt.c (fstat): Added a comment for another problem with
10910         non-encapsulated [f]stat(), reported by Adrian Aichner
10911         <aichner@ecf.teradyne.com>.
10912
10913 2000-03-11  Andy Piper  <andy@xemacs.org>
10914
10915         * window.c (make_dummy_parent): initialize subwindow instance
10916         cache.
10917         (Fset_window_configuration): zero extent_modiff.
10918
10919 2000-03-10  Andy Piper  <andy@xemacs.org>
10920
10921         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
10922         more changes can be triggered.
10923         (Fredisplay_frame): ditto.
10924         (Fredraw_device): ditto.
10925         (Fredisplay_device): ditto.
10926         (redisplay_frame): make non-static.
10927         (redisplay_frame): call update_frame_gutter_geometry outside of
10928         display proper.
10929
10930         * gutter.h: declare update_frame_gutter_geometry.
10931
10932         * redisplay.h: declare redisplay_frame.
10933
10934         * gutter.c (update_frame_gutter_geometry): move geometry changes
10935         in update_frame_gutters here. Geometry changes can only occur
10936         outside of redisplay.
10937         (update_frame_gutters): remove geometry change code.
10938         (Fredisplay_gutter_area): make sure that we are in display when we
10939         update and that we have flushed any size changes.
10940
10941 2000-03-11  Andy Piper  <andy@xemacs.org>
10942
10943         * alloc.c (pdump_dump_data): remove i & count shadows.
10944
10945 2000-02-27  Mike Alexander  <mta@arbortext.com>
10946
10947         * sysdep.h: Declare pdump_read_file
10948
10949         * sysdep.c (pdump_read_file): New function
10950
10951         * alloc.c (pdump_load): Call pdump_read_file to get the portable
10952         dump data
10953
10954 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
10955
10956         * lrecord.h: add `lrecord_type_pgsetenv'.
10957
10958 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
10959
10960         * symsinit.h: declare (vars|syms)_of* functions.
10961         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
10962
10963 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
10964
10965         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
10966
10967         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
10968         GCCs.
10969
10970         * emacs.c (main_1): Call postgres initialization code.
10971
10972         * postgresql.h: New file.  PostgreSQL RDBMS support.
10973         * postgresql.c: New file.
10974
10975 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
10976
10977         * redisplay-output.c (redisplay_output_display_block): Disable
10978         redundant code.
10979
10980 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
10981
10982         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
10983         (Fcanna_henkan_next): Ditto.
10984         (Fcanna_bunsetu_henkou): Ditto.
10985         (Fcanna_henkan_kakutei): Ditto.
10986         (Fcanna_henkan_end): Ditto.
10987         (Fcanna_henkan_quit): Ditto.
10988         (Fcanna_henkan_next): Set retun value correctly.
10989         (c2mu): Use unsigned char instead of signed char.
10990
10991 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
10992
10993         * emacs.c (main_1): Always call syms_of_gui.
10994         * inline.c: include gui.h
10995
10996 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
10997
10998         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
10999         converted to Lisp_Object.
11000         (Qtop_bottom): New variable.
11001         (syms_of_redisplay): Initialize it.
11002         * redisplay.h (Vvisible_bell): Ditto.
11003         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
11004         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
11005         only flash top and bottom.
11006
11007 2000-03-08  Andy Piper  <andy@xemacs.org>
11008
11009         * buffer.c (Frename_buffer): record new buffer name the right way.
11010
11011 2000-03-08  Andy Piper  <andy@xemacs.org>
11012
11013         * glyphs.c (update_subwindow): increase hash depth so that widget
11014         items get picked up properly.
11015
11016         * redisplay-output.c (compare_runes): increase hash depth so that
11017         widget items get picked up properly.
11018
11019 2000-03-08  Andy Piper  <andy@xemacs.org>
11020
11021         * gutter.c (output_gutter): add some debug.
11022
11023         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
11024         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
11025         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
11026
11027         * redisplay-output.c (compare_runes): use display_hash to
11028         determine if glyphs really are not the same.
11029
11030         * glyphs.c (update_subwindow): check display_hash to see if
11031         anything really needs to be updated. If not then do
11032         nothing. Record the display_hash after updating.
11033         (image_instance_equal): compare the image_instance face also.
11034
11035 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
11036
11037         * redisplay.h: Fix comment style.
11038
11039 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11040
11041         * consle-msw.h (struct mswindows_frame):
11042         Added new member paint_pending to indicate whether a WM_PAINT
11043         magic event has been queued for this frame.
11044
11045         * event-msw.c (mswindows_drain_windows_queue):
11046         Don't queue a WM_PAINT magic event if one is already queued.
11047         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
11048
11049         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
11050
11051 2000-03-07  Didier Verna  <didier@xemacs.org>
11052
11053         * dired.c: #include `regex.h' after `sysfile.h'.
11054
11055 2000-03-06  Martin Buchholz  <martin@xemacs.org>
11056
11057         * sound.c (init_nas_sound): Fix compiler warning.
11058
11059         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
11060         (FREE_STRUCT_P):
11061         (MARK_STRUCT_AS_FREE):
11062         (MARK_STRUCT_AS_NOT_FREE):
11063         Make `gcc -fstrict-aliasing' work properly.
11064
11065 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11066
11067         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
11068         (mswindows_delete_device): Call CoUnnitialize().
11069
11070         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
11071
11072 2000-02-25    <CraigL@DyCon.com>
11073
11074         * process-nt.c: MinGW now has <shellapi.h>, but still needs
11075         <errno.h>.
11076
11077         * sysdep.c: This extern declaration for environ prevents MinGW
11078         from finding the variable in CRTDLL.DLL.
11079
11080         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
11081         windows headers.
11082         (SHGFI_EXETYPE): ..
11083         (WM_MOUSEWHEEL): ..
11084         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
11085         definitions.
11086         (MMRESULT): Removed, now defined in cygwin's windows headers.
11087         (TIMECAPS): ..
11088         (uid_t,gid_t,pid_t,ssize_t): ..
11089         (_timeb): Removed, MinGW defines both _timeb and timeb.
11090         (HAVE_H_ERRNO): Added.
11091         (HAVE_TZNAME): Added, configure is not detecting this.
11092
11093 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
11094
11095         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
11096         * syntax.c (syntax_match): Use it.
11097
11098         * cmds.c: Import auto-fill-chars from FSF Emacs.
11099         (Vauto_fill_chars): New variables.
11100         (internal_self_insert): Check Vauto_fill_chars.
11101         (vars_of_cmds):
11102         Declare auto-fill-chars as a Lisp variable and initialize it.
11103
11104 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11105
11106         * fileio.c (Fmake_symbolic_link):
11107         (Ffile_symlink_p):
11108         Run handlers even if local machine doesn't have symlinks.
11109
11110 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11111
11112         * event-msw.c (mswindows_drain_windows_queue):
11113         Don't generate paint magic events for non-XEmacs frames.
11114
11115 2000-03-05  Andy Piper  <andy@xemacs.org>
11116
11117         * redisplay.c (redisplay_frame): generate_displayable_area and
11118         friends assumes that we are not in GC, we therefore have to make
11119         sure that this doesn't happen.
11120
11121         * gutter.c (calculate_gutter_size): generate_displayable_area
11122         assumes that we are not in GC, we therefore have to make sure that
11123         this doesn't happen.
11124
11125 2000-03-05  Martin Buchholz  <martin@xemacs.org>
11126
11127         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
11128
11129 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
11130
11131         * redisplay.c (regenerate_window): Make sure we set a sane value
11132         for end_pos even if we jump out of the loop.
11133         (regenerate_window): Answer Ben's question :-).
11134         (start_end_of_last_line): Add may_error argument.
11135         (start_of_last_line):
11136         (end_of_last_line): Pass may_error = 0.
11137         (end_of_last_line_may_error): New function.
11138         (pixel_to_glyph_translation): Use it, so we don't crash in
11139         event_to_glyph.
11140
11141 2000-03-04  Andy Piper  <andy@xemacs.org>
11142
11143         * window.h (struct window): add gutter_extent_modiff.
11144
11145         * window.c (allocate_window): zero out gutter_extent_modiff.
11146
11147         * redisplay.h: declare sync_display_line_structs.
11148
11149         * redisplay.c (add_glyph_rune): add a better comment.
11150
11151         * redisplay-output.c (sync_display_line_structs): made non-static.
11152         (compare_runes): remove unneccesary glyph cachel access.
11153
11154         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
11155
11156         * gutter.c (output_gutter): don't output the gutter if extent
11157         changes only involve extents in buffers. use 4 sets of display
11158         lines.
11159         (gutter_extent_signal_changed_region_maybe): new function. Mark
11160         extents in gutters as changed.
11161         (update_frame_gutters): use 4 sets of display lines.
11162         (reset_gutter_display_lines): ditto.
11163         (free_frame_gutters): ditto.
11164         (redraw_exposed_gutter): force output of gutters.
11165
11166         * frame.h (struct frame): add 4 sets of gutter display lines.
11167
11168         * extents.c: (extent_changed_for_redisplay): signal changes to
11169         extents in strings in the gutter as well as extents in buffers.
11170
11171 2000-03-02  Andy Piper  <andy@xemacs.org>
11172
11173         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
11174
11175         * frame.c (Fmake_frame): make sure the gutters get initialized
11176         after the frame is visible.
11177         (set_frame_selected_window): re-arrange compilation macros a
11178         little.
11179         (change_frame_size_1): mark gutters changed.
11180
11181         * device.c (Fset_device_class): mark gutters changed.
11182
11183 2000-03-01  Andy Piper  <andy@xemacs.org>
11184
11185         * window.c (window_top_frame_gutter_height): deleted.
11186         (window_bottom_frame_gutter_height): ditto.
11187         (window_left_frame_gutter_height): ditto.
11188         (window_right_frame_gutter_height): ditto.
11189         (window_top_gutter_height): don't use them.
11190         (window_bottom_gutter_height): ditto.
11191         (window_left_gutter_width): ditto.
11192         (window_right_gutter_width): ditto.
11193         (Fsplit_window): ditto.
11194         (Fwindow_pixel_edges): don't use border dimensions here.
11195
11196         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
11197         (update_scrollbar_instance): ditto.
11198
11199         * redisplay.c (generate_modeline): don't take gutters into account.
11200         (generate_modeline): ditto.
11201         (redisplay_frame): small gutter display optimization.
11202
11203         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
11204
11205         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
11206         gutters into account.
11207
11208         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
11209         for window position and type.
11210
11211         * gutter.c (get_gutter_coords): fix for frame gutters.
11212         (update_frame_gutters): update frame geometry if the gutters have
11213         changed.
11214         (init_frame_gutters): record current gutter geometries.
11215
11216         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
11217         var.
11218         (mswindows_widget_instantiate): ditto.
11219
11220         * frame.h (struct frame): add current_gutter_bounds.
11221
11222         * frame.c (change_frame_size_1): position window and minibuffer
11223         appropriately taking into account the frame gutters.
11224
11225         * frame-x.c: (x_initialize_frame_size): take into account the
11226         frame gutters.
11227
11228 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
11229
11230         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
11231
11232 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
11233
11234         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
11235
11236 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
11237
11238         * file-coding.c (reset_decoding_stream): Clear previous
11239         detection state when autodetect.
11240
11241 2000-02-29  Didier Verna  <didier@xemacs.org>
11242
11243         * extents.c (set_extent_glyph_1): don't require extents to be
11244         attached.
11245
11246 2000-02-27  Andy Piper  <andy@xemacs.org>
11247
11248         * gutter.c (Fset_default_gutter_position): don't default left and
11249         right gutter visibility to t.
11250         (Fset_default_gutter_position): run
11251         default-gutter-position-changed-hook.
11252         (syms_of_gutter): add default-gutter-position-changed-hook.
11253
11254 2000-02-26  Andy Piper  <andy@xemacs.org>
11255
11256         * specifier.c (Fmake_specifier): add gutter references.
11257
11258         * gutter.h (RAW_WINDOW_GUTTER): new macro.
11259
11260         * lisp.h: declare Fvalid_plist_p.
11261
11262         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
11263         as changed.
11264         (default_gutter_visible_p_changed_in_window): invalidate gutter as
11265         well as its visibility so that it gets reconstructed.
11266         (construct_window_gutter_spec): new function. Construct a string
11267         to be displayed in the gutter from a plist of strings. Take care
11268         to only use elements that are declared as visible.
11269         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
11270         WINDOW_GUTTER.
11271         (gutter_validate): allow plists of strings in the specifier.
11272         (gutter_specs_changed): construct the real_gutter from the gutter
11273         specs using construct_window_gutter_spec.
11274         (gutter_visible_validate): gutter-visible is a new specifier type.
11275         (Fgutter_visible_specifier_p): new function for the new specifier.
11276         (syms_of_gutter): declare gutter-visible and
11277         Fgutter_visible_specifier_p.
11278         (specifier_type_create_gutter): intitalize new gutter-visible
11279         specifier.
11280         (reinit_specifier_type_create_gutter): ditto.
11281         (specifier_vars_of_gutter): use new specifier type for gutter
11282         visibility.
11283         (init_frame_gutters): construct real_gutter correctly.
11284         (Fgutter_specifier_p): beef up documentation.
11285         (Fgutter_size_specifier_p): ditto.
11286
11287         * winslots.h: add real_gutter slots.
11288
11289 2000-02-25  Andy Piper  <andy@xemacs.org>
11290
11291         * device-msw.c: Be kind to older cygwin versions. From Raymond
11292         Toy <toy@rtp.ericsson.se>.
11293
11294         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
11295         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
11296
11297 2000-02-25  Martin Buchholz  <martin@xemacs.org>
11298
11299         * elhash.c (MARK_OBJ): Practice macro hygiene.
11300
11301 2000-02-24  Martin Buchholz  <martin@xemacs.org>
11302
11303         * miscplay.c: s/__inline__/inline/g;
11304         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
11305         (get_device_compdc): INLINE ==> static inline
11306         * *.[ch]: Change INLINE to INLINE_HEADER globally.
11307         find -name '*.h' | \
11308         xargs global-replace \
11309         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
11310
11311 2000-02-25  Andy Piper  <andy@xemacs.org>
11312
11313         * window.c (window_top_frame_gutter_height): new function.
11314         (window_top_window_gutter_height): ditto.
11315         (window_top_gutter_height): use them.
11316         (window_bottom_frame_gutter_height): new function.
11317         (window_bottom_window_gutter_height): ditto.
11318         (window_bottom_gutter_height): use them.
11319         (window_left_window_gutter_width): new function.
11320         (window_left_frame_gutter_width): ditto.
11321         (window_left_gutter_width): use them.
11322         (window_right_window_gutter_width): new function.
11323         (window_right_frame_gutter_width): ditto.
11324         (window_right_gutter_width): use them.
11325         (window_pixel_height): new function. calulate window pixel height
11326         with frame gutter involvement.
11327         (Fsplit_window): calculate new sizes taking frame gutters into
11328         account.
11329         (window_char_height_to_pixel_height): don't include frame gutters.
11330         (window_char_height): use window_pixel_height.
11331         (window_pixheight): rename from window_pixel_height.
11332         (change_window_height): use it.
11333         (window_pixel_height_to_char_height): don't include frame gutters.
11334         (window_char_width_to_pixel_width): ditto.
11335
11336 2000-02-25  Andy Piper  <andy@xemacs.org>
11337
11338         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
11339         if it is.
11340
11341 2000-02-24  Martin Buchholz  <martin@xemacs.org>
11342
11343         * alloc.c (staticpro):
11344         (staticpro_nodump):
11345         (dumpstruct):
11346         (dumpopaque):
11347         (pdump_wire):
11348         (pdump_wire_list):
11349         (compact_string_chars):
11350         (pdump_dump_wired):
11351         Convert:  if (foo) abort();  ==>  assert (! foo);
11352
11353         * eldap.c (Fldap_search_basic):
11354         (Fldap_add):
11355         (Fldap_modify):
11356         (Fldap_delete):
11357         Fix compiler warnings, and possible crashes if (random) return
11358         value were to be used.
11359
11360 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11361
11362         * device-msw.c: Workaround ResetDC failure.
11363
11364         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
11365         applying a devmode.
11366
11367         * redisplay-msw.c (get_frame_dc): Added start_page_p.
11368         (mswindows_text_width): Do not start printer page.
11369
11370         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
11371
11372         * glyphs-msw.c: Added image methods to msprinter console and
11373         msprinter-specific image instantiation.
11374
11375 2000-02-20  Mike Alexander  <mta@arbortext.com>
11376
11377         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
11378         to avoid crashes when selection-sets-clipboard is on
11379         (mswindows_own_selection): ditto
11380
11381 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11382
11383         * glyphs-msw.c:
11384         * redisplay-msw.c (get_frame_dc):
11385         (get_frame_compdc):
11386         * console-msw.h:
11387         * device-msw.c (mswindows_init_device):
11388         (mswindows_delete_device):
11389         (msprinter_init_device):
11390         (msprinter_delete_device):
11391         * frame-msw.c (mswindows_init_frame_1):
11392         (mswindows_delete_frame):
11393         (msprinter_init_frame_3):
11394         (msprinter_delete_frame): Move compatible DC to device object from
11395         frame object, for both mswindows and msprinter. Only one at a time
11396         is needed, it is a real waste to have one per frame!
11397
11398 2000-02-23  Andy Piper  <andy@xemacs.org>
11399
11400         * glyphs.c: add dynamic width and height elements.
11401         (image_instance_equal): ditto.
11402
11403         * glyphs-widget.c (widget_query_geometry): calculate width and
11404         height dynamically if required.
11405         (initialize_widget_image_instance): initialize dynamic dimensions.
11406         (widget_instantiate): pick-up dynamic dimensions.
11407
11408         * glyphs.h (struct Lisp_Image_Instance): add width and height for
11409         dynamic determination. Add appropriate macros.
11410
11411         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
11412         dimensions safe.
11413         (WINDOW_GUTTER_SIZE): ditto.
11414         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
11415
11416         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
11417         inline.
11418         (get_frame_dc): ditto.
11419
11420         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
11421         here.
11422
11423 2000-02-23  Martin Buchholz <martin@xemacs.org>
11424
11425         * XEmacs 21.2.31 is released.
11426
11427 2000-02-22  Ben Wing <ben@xemacs.org>
11428
11429         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
11430
11431 2000-02-22  Andy Piper  <andy@xemacs.org>
11432
11433         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
11434
11435 2000-02-21  Mike Sperber <mike@xemacs.org>
11436
11437         * .dbxrc:
11438         * .gdbinit:
11439         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
11440         variables.
11441
11442 2000-02-21  Mike Sperber <mike@xemacs.org>
11443
11444         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
11445
11446 2000-02-21  Martin Buchholz <martin@xemacs.org>
11447
11448         * XEmacs 21.2.30 is released.
11449
11450 2000-02-20  Martin Buchholz  <martin@xemacs.org>
11451
11452         Performance hacking.
11453         * *.c (syms_of_*):
11454         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
11455         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
11456         * emacs.c (main_1):
11457         * lisp.h (DEFUN):
11458         * console.c (DEFVAR_CONSOLE_LOCAL_1):
11459         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
11460         * symeval.h (DEFVAR_SYMVAL_FWD):
11461         * symbols.c (guts_of_unbound_marker):
11462         Make all c_readonly objects also lisp_readonly and marked for life.
11463         * lrecord.h (struct lrecord_implementation):
11464         Document flags better.
11465         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
11466         * lrecord.h (DECLARE_LRECORD):
11467         * lrecord.h (XSETRECORD):
11468         * lrecord.h (RECORDP):
11469         * lrecord.h (RECORD_TYPEP):
11470         * lrecord.h (RECORD_MARKER): New.
11471         * lrecord.h (error_check_*):
11472         * lrecord.h (CONCHECK_NONRECORD):
11473         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
11474         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
11475         * lrecord.h (set_lheader_implementation):
11476         * lrecord.h (enum lrecord_type): New.
11477         * symeval.h (SYMBOL_VALUE_MAGIC_P):
11478         * alloc.c (disksave_object_finalization_1):
11479         * alloc.c (mark_object):
11480         * alloc.c (lrecord_type_index):
11481         * alloc.c (tick_lcrecord_stats):
11482         * alloc.c (Fgarbage_collect):
11483         * alloc.c (init_alloc_once_early):
11484         * alloc.c (pdump_load):
11485         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
11486         * alloc.c (lrecord_type_index): Delete.
11487         Make lisp object type indexes be constant.
11488           Makes (byte-compile) 5% faster.
11489         Put all marker functions into their own array.
11490           Makes (garbage-collect) 5% faster.
11491         Optimize SYMBOL_VALUE_MAGIC_P.
11492           Makes (byte-compile) 2-3% faster.
11493         * config.h.in (gc_checking_assert): New.
11494         * alloc.c: Use gc_checking_assert().
11495         * .dbxrc: Make compatible with new object type implementation.
11496         * .gdbinit: Make compatible with new object type implementation.
11497         * alloc.c: Delete all symbols defined only for debugging, such as
11498         Lisp_Type_Vector and lrecord_charset.
11499
11500 2000-02-21  Andy Piper  <andy@xemacs.org>
11501
11502         * gui-msw.c (Fmswindows_shell_execute): fix file location
11503         problems.
11504
11505         * buffer.c (Fkill_buffer): remove buffer from alist buffer
11506         unshowing so that set_window_buffer doesn't undo
11507         kill_buffer_hook's hard work.
11508
11509         * glyphs-widget.c (tab_control_query_geometry): don't count the
11510         first item when calculating geometry.
11511
11512         * glyphs.c (map_subwindow): remove redundant code.
11513         (update_frame_subwindows): be more circumspect about when to
11514         update subwindows.
11515
11516         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
11517         when items haven't changed. Update faces if faces have changed as
11518         well as just the widget face.
11519         (x_tab_control_update): Update faces if faces have changed as well
11520         as just the widget face.
11521
11522 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11523
11524         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
11525         registration.
11526         (build_syscolor_string): Use mswindows_color_to_string to try to
11527         get a named color.
11528         (mswindows_device_system_metrics): Reverse the foreground and
11529         background colors so that they match the documentation.
11530
11531         * objects-msw.c: (mswindows_X_color_map): tweak some values so
11532         they match the default Windows palette.
11533         (mswindows_color_to_string): New function.
11534
11535 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11536
11537         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
11538
11539 2000-02-18  Olivier Galibert  <galibert@pobox.com>
11540
11541         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
11542         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
11543
11544         * symbols.c (init_symbols_once_early): Removed obsolete
11545         DATA_SEG_BITS related kludge.
11546         (defvar_magic): Ditto.
11547
11548         * malloc.c: Removed obsolete DATA_SEG_BITS
11549         * ralloc.c: Ditto.
11550         * mem-limits.h: Ditto.
11551
11552         * Makefile.in.in: Removed obsolete HAVE_SHM
11553         * emacs.c: Ditto.
11554
11555 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11556
11557         *  device-msw.c (mswindows_delete_device): Free DDE string
11558         handles.
11559
11560 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11561
11562         * keymap.c (get_keyelt):
11563         * unexnt.c (unexec):
11564         * vm-limit.c (memory_warnings):
11565         * ntheap.c (recreate_heap):
11566         * ntheap.h (UNINIT_PTR):
11567         * select-msw.c (Fmswindows_get_clipboard):
11568         (Fmswindows_set_clipboard):
11569         * objects-msw.h (MSWINDOWS_BAD_HFONT):
11570         * objects-msw.c:
11571         * menubar-msw.c (displayable_menu_item):
11572         * glyphs-msw.c:
11573         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
11574         * sysdep.c (sys_subshell):
11575         * process-nt.c (nt_create_process):
11576         * nt.c (normalize_filename):
11577         (dostounix_filename):
11578         (unixtodos_filename):
11579         * ntproc.c (win32_executable_type):
11580         * ntplay.c (play_sound_data_1):
11581         (play_sound_file):
11582         * editfns.c (get_home_directory):
11583         * event-msw.c (struct winsock_stream):
11584         (mswindows_dde_callback):
11585         * device-msw.c (msprinter_init_device):
11586         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
11587
11588         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
11589         mswindows_clear_toolbar were swapped!
11590
11591         * objects-msw.c:(colormap_t):
11592         (fontmap_t):
11593         * emacs.c (struct standard_args): Fixed const jumble.
11594
11595         * glyphs-widget.c (update_widget): Fixed comparison notation.
11596
11597         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
11598
11599         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
11600         __declspec(noreturn) syntax.
11601
11602 2000-02-19  Martin Buchholz  <martin@xemacs.org>
11603
11604         * eldap.c (Fldap_open):
11605         (Fldap_search_basic):
11606         (Fldap_add):
11607         (Fldap_modify):
11608         Use new coding system conversion macros.
11609
11610 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
11611
11612         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
11613
11614 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
11615
11616         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
11617         (Fldap_add, Fldap_modify, Fldap_delete): New functions
11618
11619         * eldap.c (Qadd, Qreplace): New constant symbols
11620         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
11621         interruptions by XEmacs signals
11622         Remove unnecessary calls to slow_down_interrupts and
11623         speed_up_interrupts
11624         (Fldap_search_basic): Renamed from Fldap_search_internal
11625         Added new optional parameter VERBOSE that triggers the
11626         display of progress messages
11627         Remove unnecessary calls to slow_down_interrupts and
11628         speed_up_interrupts
11629         LDAP result code analysis rewritten
11630         (Fldap_add, Fldap_modify, Fldap_delete): New functions
11631         (syms_of_eldap): Define the new symbols and functions
11632
11633
11634 2000-02-17  Martin Buchholz  <martin@xemacs.org>
11635
11636         * realpath.c: Determine PATH_MAX maximally portably.
11637
11638         * insdel.c (bytecount_to_charcount): Optimize.
11639         The function used to be optimized for entirely ASCII sequences.
11640         Now it is optimized for successive characters from the same
11641         charset.  This also wins big for _mostly_ ASCII sequences.
11642
11643         * fileio.c (Ffile_truename): convert return from realpath() using
11644         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
11645         - Rewrite GCPROing slightly.
11646
11647         * sysdep.c (sys_open): Do filename conversion, like all other
11648         sys_* functions.  Fixes bug:
11649         (let ((file-name-coding-system 'iso-8859-2))
11650            (write-region x y latin2-name))
11651         ==> writes filename using internal encoding.
11652
11653 2000-02-18  Martin Buchholz  <martin@xemacs.org>
11654
11655         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
11656         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
11657         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
11658         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
11659         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
11660         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
11661         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
11662         (CONST_IF_NOT_DEBUG): Delete.
11663         * alloc.c (this_one_is_unmarkable): Delete.
11664         (mark_object): Don't check for this_one_is_unmarkable. Use the
11665         c_readonly flag instead.
11666         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
11667
11668 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11669
11670         * event-msw.c (mswindows_drain_windows_queue):
11671         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
11672         away redundant repaint events.
11673
11674 2000-02-17  Andy Piper  <andy@xemacs.org>
11675
11676         * redisplay.h: declare mark_redisplay_structs.
11677
11678         * redisplay.c (redisplay_window):
11679         (redisplay_frame): don't check subwindows_state_changed.
11680         (mark_redisplay): mark gutters here.
11681
11682         * glyphs.c: (instantiate_image_instantiator): always layout if we
11683         haven't done so already.
11684         (allocate_image_instance): don't mark as dirty.
11685         (update_subwindow): bind inhibit_quit.
11686
11687         * gutter.c (mark_gutters): new function.
11688
11689         * glyphs-x.c (x_update_widget): Always resize to get round a
11690         widget bug.
11691
11692         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
11693         breaking absolutely everything.
11694
11695         * gutter.h: declare mark_gutters.
11696
11697 2000-02-16  Martin Buchholz <martin@xemacs.org>
11698
11699         * XEmacs 21.2.29 is released.
11700
11701 2000-02-15  Olivier Galibert  <galibert@pobox.com>
11702
11703         * fns.c (size_bit_vector): Fix computation of the size.
11704
11705 2000-02-15  Martin Buchholz  <martin@xemacs.org>
11706
11707         * *.[ch]: Change CONST to const globally.
11708         find -name '*.[ch]' | \
11709         xargs global-replace \
11710         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
11711         - Remove vestigial references to CONST_IS_LOSING
11712
11713 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11714
11715         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
11716         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
11717         events instead of dispatching them directly.
11718         (mswindows_handle_paint): New function to do repainting.
11719         (mswindows_wnd_proc):
11720         (emacs_mswindows_handle_magic_event): Call above function.
11721
11722 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11723
11724         * objects-msw.c (mswindows_create_font_variant): Return the new
11725         font handle.
11726         (initialize_font_instance): Get font metrics from the underlined
11727         variant of the font to cope with the case where the underlined
11728         font has a bigger descent.
11729
11730 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
11731
11732         * gui.c (gui_item_accelerator): Return the first underlined
11733         character in item name.
11734
11735 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11736
11737         * lisp.h: Added Qprinter.
11738
11739         * general.c (syms_of_general): Initialized it.
11740
11741         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
11742         (get_frame_dc):
11743         (get_frame_compdc): Made inline.
11744
11745         * console.h (struct console_methods): Added eject_page method.
11746
11747         * frame.h: Added FRAME_DISPLAY_P and friends.
11748         Aligned backslahes in many macros in more readable fashion.
11749         Added page_number to struct frame, and an accessor macro
11750         for it.
11751
11752         * defice.h: Added DEVICE_DISPLAY_P and friends.
11753
11754         * device.c (Fdevice_printer_p): Used these.
11755
11756         * frame.c (allocate_frame_core): Initialize page number.
11757         (Fprint_job_page_number):
11758         (Fprint_job_eject_page): Implemented.
11759
11760         * frame-msw.c (msprinter_eject_page): Added method.
11761         (msprinter_start_page): Added.
11762
11763         * window.c (Fwindow_truncated_p): Fixed docstring.
11764         (Fwindow_last_line_visible_height): Implemented.
11765
11766 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
11767
11768         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
11769
11770 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
11771
11772         * syntax.c (scan_words): Always advance at least one character.
11773
11774 2000-02-13  Andy Piper  <andy@xemacs.org>
11775
11776         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
11777         to make sure the glyph is in the cachels.
11778
11779         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
11780         global image instance flag.
11781         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
11782         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
11783
11784         * glyphs.c (allocate_image_instance): set dirty bits correctly.
11785         (Fset_image_instance_property): mark layout as changed.
11786         (invalidate_glyph_geometry_maybe): mark layout as changed.
11787         (glyph_width): use new NEEDS_LAYOUT macro.
11788         (glyph_ascent): ditto.
11789         (glyph_descent): ditto.
11790         (glyph_height): ditto.
11791         (image_instance_layout): mark layout as clean after laying out.
11792         (update_subwindow): don't mark layout as clean here.
11793
11794         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
11795         should no longer be needed.
11796
11797         * glyphs-x.c (x_update_widget): sanitize asserts.
11798         (x_finalize_image_instance): sanitize assignment to widgets.
11799
11800         * glyphs-widget.c (widget_instantiate): don't need to clear the
11801         layout flag here.
11802
11803 2000-02-13  Martin Buchholz  <martin@xemacs.org>
11804
11805         * sysdep.c (getcwd): Use standard prototype.
11806         * sysdep.h (getcwd): Use standard prototype.
11807
11808         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
11809         (sequence, start, end).
11810         Remove redundant type checking.
11811         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
11812         view of `caller-protects') to avoid a crash where the real fix was
11813         found elsewhere.
11814
11815 2000-02-12  Martin Buchholz  <martin@xemacs.org>
11816
11817         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
11818
11819         * s/sol2.h: Remove feature macro initialization.
11820
11821         * alloc.c (alloc_lcrecord): Add more type checking assertions.
11822         (vector_hash): New.  Code from internal_hash.
11823         * lrecord.h:
11824         Fix up allocation subsystem comments.
11825
11826         * config.h.in: Add __EXTENSIONS__ for Solaris.
11827
11828         * systime.h (EMACS_GETTIMEOFDAY): New.
11829         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
11830         Remove Solaris-specific code.
11831         Use void* for the (ignored) second arg for gettimeofday().
11832
11833         * elhash.c (hash_table_hash): Implement it, finally.
11834         * elhash.c:  Use hashcode_t.
11835
11836         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
11837         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
11838
11839         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
11840         * fns.c (size_bit_vector):
11841         * alloc.c (size_vector):
11842         (make_vector_internal):
11843         (make_bit_vector_internal):
11844         (sweep_bit_vectors_1):
11845         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
11846
11847 2000-02-10  Martin Buchholz  <martin@xemacs.org>
11848
11849         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
11850         Include strings.h to avoid warnings for bzero and strcasecmp.
11851
11852 2000-02-10  Olivier Galibert  <galibert@pobox.com>
11853
11854         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
11855         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
11856
11857         * fns.c (size_bit_vector): New.  Declare bit vectors as a
11858         sequence.
11859
11860 2000-02-10  Olivier Galibert  <galibert@pobox.com>
11861
11862         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
11863         use a value field instead.
11864         (symbol_value_forward_forward): Use value field.
11865         (DEFVAR_SYMVAL_FWD): Use value field.
11866         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
11867         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
11868         (DEFVAR_CONST_INT): Ditto.
11869         (DEFVAR_BOOL): Ditto.
11870         (DEFVAR_CONST_BOOL): Ditto.
11871         (DEFVAR_INT_MAGIC): Ditto.
11872         (DEFVAR_BOOL_MAGIC): Ditto.
11873
11874         * symbols.c (guts_of_unbound_marker): Use value field.
11875         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
11876         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
11877
11878         * lisp.h: Declare dumpopaque and noninteractive1.
11879
11880         * alloc.c (dumpopaque): Added.
11881         (pdump_dump_opaquevec): Added.
11882         (pdump): Call pdump_dump_opaquevec to dump opaque data.
11883         (pdump_load): Reload opaque data.  Sync noninteractive1 with
11884         noninteractive.
11885
11886 2000-02-10  Andy Piper  <andy@xemacs.org>
11887
11888         * glyphs.c (image_instance_layout): if the size changes, mark it
11889         as such.
11890
11891         * redisplay-output.c (redisplay_output_layout): Update the
11892         subwindow here.
11893         (redisplay_output_subwindow): ditto.
11894
11895         * glyphs.c (update_subwindow): make sure we reset flags for
11896         layouts as well as everything else.
11897
11898         * glyphs-widget.c (layout_layout): don't need to set the instances
11899         dimensions here.
11900
11901 2000-02-09  Martin Buchholz  <martin@xemacs.org>
11902
11903         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
11904         not HAVE_DLOPEN, which is a lower-level thing.
11905
11906         * .cvsignore: Ignore gmon.out
11907
11908 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
11909
11910         * .cvsignore: Ignore portable dumper xemacs.dmp file
11911
11912 2000-02-09  Andy Piper  <andy@xemacs.org>
11913
11914         * redisplay-output.c (redisplay_output_layout): be more clever
11915         about when we output based on the changed flags.
11916
11917         * glyphs.h (struct image_instantiator_methods): add update_method.
11918         (struct Lisp_Image_Instance): add changed flags. Declare new
11919         macros for manipulating them.
11920
11921         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
11922         (image_instance_parent_glyph): find an image_instance's parent
11923         glyph or image_instance.
11924         (image_instance_layout): mark the size as changed.
11925         (set_image_instance_dirty_p): new function. mark an image
11926         instance, plus all of its parents, as dirty.
11927         (Fset_image_instance_property): use it.
11928         (Fglyph_animated_timeout_handler): use it.
11929         (update_subwindow): call update_widget and device methods for
11930         update_subwindow. Mark all changed flags as clean.
11931         (Fresize_subwindow): mark size as changed.
11932
11933         * glyphs-x.c (x_finalize_image_instance): try and detect gc
11934         failures.
11935         (x_update_subwindow): only resize subwindows here.
11936         (x_update_widget): new function. Update all changed properties of
11937         a widget.
11938         (x_resize_subwindow): deleted.
11939         (x_widget_set_property): deleted.
11940         (x_progress_gauge_set_property): deleted.
11941         (x_progress_gauge_update): new function. Implement recorded
11942         changes.
11943         (x_tab_control_update): ditto.
11944         (x_tab_control_set_property): deleted.
11945         (console_type_create_glyphs_x): declare new functions.
11946         (image_instantiator_format_create_glyphs_x): ditto.
11947
11948         * glyphs-widget.c (widget_set_property): mark text changed.
11949         (update_widget): new function. Update properties of a widget.
11950         (widget_instantiate): for layouts make sure we set their
11951         children's parent correctly.
11952         (tab_control_set_property): new function. Record changes that will
11953         take place under redisplay's control.
11954         (progress_gauge_set_property): ditto.
11955         (image_instantiator_progress_guage): declare new functions.
11956         (image_instantiator_tab_control): ditto.
11957
11958         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
11959         now.
11960         (mswindows_update_widget): new function. Update all properties on
11961         a widget that have changed.
11962         (mswindows_button_update): new function. Update a button's set
11963         state.
11964         (mswindows_tab_control_update): new function. Update the items in
11965         a tab.
11966         (mswindows_tab_control_set_property): deleted.
11967         (mswindows_progress_gauge_update): new function. Update the
11968         progress gauge's progress.
11969         (mswindows_widget_set_property): deleted. This is all done
11970         asynchronously now.
11971         (mswindows_progress_gauge_set_property): ditto.
11972         (console_type_create_glyphs_mswindows): declare new methods.
11973         (image_instantiator_format_create_glyphs_mswindows): ditto.
11974
11975         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
11976         (msprinter_set_frame_properties): ditto.
11977
11978         * console.h (struct console_methods): Add update_widget_method.
11979
11980 2000-02-09  Andy Piper  <andy@xemacs.org>
11981
11982         * gui-msw.c (Fmswindows_shell_execute): Make
11983         mswindows-shell-execute industrial strength.
11984
11985 2000-02-08  Martin Buchholz  <martin@xemacs.org>
11986
11987         * lrecord.h: Make macro argument `props' match member function `plist'.
11988         * fns.c (Fget):
11989         * fns.c (Fput):
11990         * fns.c (Fremprop):
11991         * fns.c (Fobject_plist):
11992         * alloc.c:
11993         * symbols.c:
11994         Object property list frobbing cleanup.
11995         - Allow any lisp object (compared with `eq'), not just symbols, as
11996           keys in object plists.
11997         - Move symbol plist frobbing into symbols.c, where it belongs.
11998         - Move string plist frobbing into alloc.c, where it belongs.
11999         - Everything's an lrecord now, so no need to test for symbolp, etc.
12000         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
12001
12002         * extents.c: Reorder code to remove declarations.
12003
12004         * frame.h (store_in_alist): Remove useless declaration.
12005
12006 2000-02-07  Martin Buchholz  <martin@xemacs.org>
12007
12008         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
12009         * config.h.in: Add HAVE_XCONVERTCASE.
12010
12011 2000-02-07  Andy Piper  <andy@xemacs.org>
12012
12013         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
12014         it breaks many things.
12015
12016 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
12017
12018         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
12019         actually can start a common comment type.
12020         * src/syntax.h (SYNTAX_END_P): ditto for end.
12021
12022 2000-02-07  Martin Buchholz <martin@xemacs.org>
12023
12024         * XEmacs 21.2.28 is released.
12025
12026 2000-02-06  Martin Buchholz  <martin@xemacs.org>
12027
12028         * event-Xt.c (x_keysym_to_character): New.
12029         (maybe_define_x_key_as_self_inserting_character): New.
12030         (x_has_keysym): New.
12031         Auto-define all keys on the keyboard as self-insert-key.
12032
12033 2000-02-02  Martin Buchholz  <martin@xemacs.org>
12034
12035         * menubar.c (vars_of_menubar): A small code simplification.
12036
12037         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
12038
12039         * ExternalShell.c:
12040         * ExternalClient.c:
12041         * EmacsShell-sub.c:
12042         * EmacsManager.c:
12043         * EmacsFrame.c:
12044         Use consistent style for specifying X resources.
12045
12046         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
12047         This makes (dontusethis-set-symbol-value-handler) actually usable.
12048
12049         * lrecord.h (lrecord_decription_type):
12050         * alloc.c (pdump_register_sub):
12051         (pdump_dump_data):
12052         (pdump_reloc_one):
12053         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
12054         Comply with XEmacs coding style.
12055         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
12056         args, and XD_LISP_OBJECT_ARRAY with 3 args.
12057
12058         * keymap.c (Faccessible_keymaps):
12059         Make (accessible-keymaps map "\C-h") do the Right Thing.
12060         Make (accessible-keymaps map []) do the Right Thing.
12061         Make (accessible-keymaps map "") do the Right Thing.
12062         (check_keymap_definition_loop): New function.
12063         (keymap_store_internal): Keep luser from shooting self in foot,
12064           via (define-key ctl-x-4-map "p" global-map).
12065         Remove fullness slot from struct Lisp_Keymap, since hash tables
12066         are now reliable.
12067         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
12068
12069 2000-01-30  Martin Buchholz  <martin@xemacs.org>
12070
12071         * redisplay.c (init_redisplay): Fix small memory leak.
12072         * elhash.h:
12073         * elhash.c (pdump_reorganize_hash_table):
12074         Rename from reorganize_hash_table. Change prototype.
12075         Reuse the original memory for hentries.  Save 100k.
12076         * alloc.c (PDUMP_READ): new macro.
12077         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
12078         * alloc.c: No need to #ifndef before #undef.
12079
12080         * print.c: Allow debug_print() to print readably by modifying
12081         debug_print_readably.  Use consistent variable names.
12082
12083         * .dbxrc: Try to get things to work even if stopped in a function
12084         without source available by explicitly specifying source files.
12085 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12086
12087         * unexnt.c (_start): Removed bogus code which caused loading heap
12088         from differrent executable file.
12089         Removed bogus assignment to _fmode, which caused inconsistencies.
12090
12091 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12092
12093         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
12094         Have spawnve encapsulation regard DONT_ENCAPSULATE.
12095         Do not preliminary `#define signal sigset'.
12096
12097         * systime.h: Do not prototype environ on windows nt and cygwin,
12098         this conflicts with system header.
12099
12100         * syssignal.h: Use correct define for WINDOWSNT
12101
12102         * sysdep.h: Do not prototype environ on windows nt, this conflicts
12103         with system header.
12104
12105         * sysdep.c (near start of file): Fixed commentary and rearranged
12106         ifdefs in readable order.
12107         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
12108         (start_of_text):
12109         (end_of_text):
12110         (end_of_data): Do not compile in if using PDUMP.
12111
12112         * symsinit.h: Prototyped vars_of_nt().
12113
12114         * ntproc.c (windows9x_p): Added, instead of os_subtype.
12115         (find_child_console): Use it.
12116         (sys_kill): Use it.
12117
12118         * ntheap.h: Do not extern os_subtype.
12119
12120         * ntheap.c (cache_system_info): Do not cache unneeded:
12121         nt_major_version, nt_minor_version and os_subtype.
12122         (recreate_heap): Do not compile in when PDUMPing.
12123
12124         * nt.c (geteuid and friends): Use the new varibale
12125         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
12126         (init_user_info): Removed the above mentioned hackery.
12127         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
12128         stat has been fixed in the C runtime.
12129         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
12130
12131         * file-coding.c (struct file_coding_dump): Do not define
12132         ucs_to_mule_table in the struct if not MULE.
12133         (struct struct lrecord_description fcd_description_1): Do not dump
12134         the above.
12135
12136         * emacs.c (main_1): Call vars_of_nt().
12137         (right before Fdump_emacs_data): Don't need lastfile if using both
12138         portabe dumper and system malloc.
12139
12140         * alloc.c (Fmemory_limit): Conditionalized out.
12141         (pdump): Use OPEN_BINARY for the portable dump file.
12142         (pdump_load): Ditto.
12143
12144 2000-02-02  Mike Alexander  <mta@arbortext.com>
12145
12146         * nt.c (convert_time): Set tm_isdst before calling mktime and
12147         avoid calling it at all if the compiler supports 64 bit integers.
12148         Also initialize utc_base_ft before using it.
12149
12150 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
12151
12152         * frame.c (change_frame_size_1): Take f->internal_border_width
12153         into consideration when calculating the width of the frame.
12154
12155 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12156
12157         * window.c (frame_min_height):
12158         (frame_size_valid_p):
12159         (frame_pixsize_valid_p): Added.
12160         (check_frame_size): Generalized.
12161
12162         * window.h: Prototyped the above.
12163
12164         * lisp.h:
12165         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
12166         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
12167         Deleted Vwin32_* and Vbinary_process_* unused variables.
12168
12169         * device-msw.c (msprinter_init_device): Do not get printer font
12170         list; Added DEVMODE functions.
12171
12172         * frame-msw.c: Added lots of printer code.
12173
12174         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
12175         general.c.
12176
12177         * console-msw.h: Added more msprinter device private slots.
12178
12179 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12180
12181         * event-msw.c (key_needs_default_processing_p): Added.
12182         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
12183
12184 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12185
12186         * glyphs.c (image_instance_layout): Mark image instance as clean
12187         after layout.
12188         (glyph_dirty_p): Removed redundant function.
12189         (invalidate_glyph_geometry_maybe): Added.
12190         (update_glyph_cachel_data): Call it.
12191
12192         * glyphs.h: Prototyped it.
12193
12194         * redisplay.c (add_glyph_rune): Call it.
12195         (redisplay_window): Reset glyphs cachels when frame faces have
12196         changed, thus forcing recomputation of built-in border glyphs.
12197
12198 2000-01-30  Martin Buchholz  <martin@xemacs.org>
12199
12200         * Makefile.in.in: Make portable dumper and purify play well together.
12201         Add imperfect, but better than nothing, support for pdump.
12202         Remove xemacs.dmp when temacs is re-generated.
12203         Don't ignore errors when dumping xemacs.
12204
12205         * symbols.c (maybe_call_magic_handler): Remove one magic number.
12206
12207 2000-01-28  Andy Piper  <andy@xemacs.org>
12208
12209         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
12210         (setup_normal_frame): ditto.
12211         (setup_frame_without_minibuffer): ditto.
12212         (setup_minibuffer_frame): ditto.
12213         (delete_frame_internal): ditto.
12214         (Fmake_frame_invisible): ditto.
12215         (Ficonify_frame): ditto.
12216
12217         * window.h: change Fset_window_buffer signature.
12218
12219         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
12220         (Fset_window_buffer): allow recording of buffer if the window is
12221         the selected window.
12222         (window_loop): Use new Fset_window signature.
12223
12224 2000-01-23  Daniel Pittman  <daniel@danann.net>
12225
12226         * config.h.in: Added template for `HAVE_ATHENA_3D'
12227
12228 2000-01-29  Andy Piper  <andy@xemacs.org>
12229
12230         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
12231
12232         * gutter.c (output_gutter): Don't output if the window isn't live.
12233
12234 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12235
12236         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
12237         of 01/12/00: Moved SetFocus back here where it belongs.
12238
12239 2000-01-23  Andy Piper  <andy@xemacs.org>
12240
12241         * s/cygwin32.h: declare printer things.
12242
12243 2000-01-26  Andy Piper  <andy@xemacs.org>
12244
12245         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
12246         Alexander.
12247
12248 2000-01-24  Andy Piper  <andy@xemacs.org>
12249
12250         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
12251         (mswindows_button_instantiate): Make sure glyph is a pixmap.
12252
12253         * glyphs-widget.c (widget_instantiate): Avoid shadows.
12254
12255         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
12256
12257         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
12258
12259         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
12260         (mswindows_output_display_block): Avoid local shadows.
12261
12262         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
12263         (mswindows_enqueue_mouse_button_event): ditto.
12264         (mswindows_handle_gui_wm_command): remove declaration.
12265
12266         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
12267         warnings.
12268
12269         * console-msw.h: Avoid shadows.
12270         (mswindows_get_toolbar_button_text):
12271         (emacs_mswindows_create_stream_pair):
12272         (emacs_mswindows_delete_stream_pair):
12273         (mswindows_handle_toolbar_wm_command): declare.
12274
12275         * device-msw.c (build_syscolor_string): Avoid shadows.
12276
12277 2000-01-23  Andy Piper  <andy@xemacs.org>
12278
12279         * glyphs-widget.c (widget_instantiate): reverse the items for
12280         layouts so that children are in the expected order.
12281
12282 2000-01-28  Martin Buchholz  <martin@xemacs.org>
12283
12284         * ralloc.c: safe_bcopy ==> memmove
12285         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
12286         * s/msdos.h: Remove BCOPY macros.
12287         * insdel.c (gap_right): Remove BCOPY conditional code.
12288         * insdel.c (gap_left): Remove BCOPY conditional code.
12289         XEmacs demands a working ANSI C compiler - hence memmove.
12290
12291         * regex.c (regex_compile): Remove accidental use of trigraphs.
12292
12293 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12294
12295         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
12296         event timestamp.
12297
12298 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12299
12300         * event-msw.c (mswindows_drain_windows_queue): Added the
12301         parameter.
12302         (mswindows_need_event): Commented the call to
12303         mswindows_drain_windows_queue().
12304         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
12305         only.
12306
12307         * console-msw.h: Moved a few function prototypes here from
12308         event-msw.c.
12309
12310         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
12311         parameter from unsigned short to unsigned long.
12312         (Fmswindows_shell_execute): Added return value.
12313
12314 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
12315
12316         * sysdep.c (init_system_name):
12317           process-unix.c (unix_canonicalized_host_name):
12318         Don't call freeaddrinfo() if getaddrinfo() fails.
12319
12320         * process-unix.c (unix_open_unix_network_stream):
12321         Moved the code to get a port # into address loop.
12322
12323 2000-01-27  Martin Buchholz  <martin@xemacs.org>
12324
12325         * buffer.c (reinit_vars_of_buffer):
12326         The right place to initialize conversion_in_dynarr and
12327         conversion_out_dynarr.
12328
12329         * alloc.c (pdump): Use the real open() till sys_open() is functional.
12330
12331         * process-unix.c (unix_canonicalize_host_name): Muleize.
12332         (unix_open_network_stream): Muleize.
12333
12334         * buffer.h: Fix up prototypes for ralloc.c functions.
12335
12336 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
12337         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
12338         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
12339                 instead of gethostbyname()
12340         * process-unix.c: In unix_canonicalize_host_name() and
12341                 unix_open_network_stream(), add code to use getaddrinfo()
12342                 instead of gethostbyname().
12343
12344 2000-01-27  Daniel Pittman <daniel@danann.net>
12345
12346         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
12347         libs when built with flat Athena.
12348
12349 2000-01-27  Martin Buchholz  <martin@xemacs.org>
12350
12351         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
12352         Use coding standards for function prototypes.
12353
12354 2000-01-25  Martin Buchholz  <martin@xemacs.org>
12355
12356         * dialog-msw.c (push_lisp_string_as_unicode):
12357         * doc.c (unparesseuxify_doc_string):
12358         * dired.c (Fuser_name_completion_1):
12359         * dired.c (Fuser_name_all_completions):
12360         * dired.c (free_user_cache):
12361         * dired.c (user_name_completion):
12362         * console-x.c (get_display_arg_connection):
12363         * minibuf.c (clear_echo_area_internal):
12364         * minibuf.c (echo_area_append):
12365         * eldap.c (Fldap_open):
12366         * eldap.c (Fldap_search_internal):
12367         * frame-x.c (x_set_frame_text_value):
12368         * frame-x.c (x_set_frame_properties):
12369         * frame-x.c (x_create_widgets):
12370         * redisplay-tty.c (term_get_fkeys_1):
12371         * objects-x.c (x_parse_nearest_color):
12372         * objects-x.c (x_valid_color_name_p):
12373         * objects-x.c (x_initialize_font_instance):
12374         * objects-x.c (x_list_fonts):
12375         * objects-x.c (x_find_charset_font):
12376         * tooltalk.c (Fadd_tooltalk_message_arg):
12377         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
12378         * tooltalk.c (Fadd_tooltalk_pattern_arg):
12379         * process-unix.c (unix_create_process):
12380         * ntproc.c (sys_spawnve):
12381         * sound.c (Fplay_sound_file):
12382         * sound.c (Fplay_sound):
12383         * buffer.c (init_initial_directory):
12384         * buffer.c (init_buffer):
12385         * editfns.c (init_editfns):
12386         * editfns.c (Ftemp_directory):
12387         * editfns.c (Fuser_full_name):
12388         * editfns.c (uncache_home_directory):
12389         * editfns.c (get_home_directory):
12390         * editfns.c (Fuser_home_directory):
12391         * editfns.c (Fformat_time_string):
12392         * editfns.c (Fcurrent_time_string):
12393         * gui-x.c (button_item_to_widget_value):
12394         * database.c (Fopen_database):
12395         * event-Xt.c (x_to_emacs_keysym):
12396         * event-Xt.c (x_event_to_emacs_event):
12397         * event-Xt.c (describe_event_window):
12398         * event-msw.c (mswindows_wnd_proc):
12399         * glyphs-eimage.c (jpeg_instantiate):
12400         * glyphs-eimage.c (gif_instantiate):
12401         * glyphs-eimage.c (png_instantiate):
12402         * glyphs-eimage.c (tiff_instantiate):
12403         * glyphs-x.c (xbm_instantiate_1):
12404         * glyphs-x.c (x_xbm_instantiate):
12405         * glyphs-x.c (x_xface_instantiate):
12406         * glyphs-x.c (autodetect_instantiate):
12407         * glyphs-x.c (cursor_font_instantiate):
12408         * glyphs-x.c (x_widget_instantiate):
12409         * glyphs-x.c (x_widget_set_property):
12410         * glyphs-x.c (x_widget_property):
12411         * glyphs-x.c (BUILD_GLYPH_INST):
12412         * print.c (write_string_to_stdio_stream):
12413         * print.c (output_string):
12414         * print.c (Falternate_debugging_output):
12415         * print.c (Fexternal_debugging_output):
12416         * glyphs-msw.c (extract_xpm_color_names):
12417         * glyphs-msw.c (mswindows_xpm_instantiate):
12418         * glyphs-msw.c (bmp_instantiate):
12419         * glyphs-msw.c (resource_name_to_resource):
12420         * glyphs-msw.c (mswindows_resource_instantiate):
12421         * glyphs-msw.c (xbm_instantiate_1):
12422         * glyphs-msw.c (mswindows_xbm_instantiate):
12423         * glyphs-msw.c (mswindows_xface_instantiate):
12424         * glyphs-msw.c (mswindows_widget_instantiate):
12425         * glyphs-msw.c (add_tree_item):
12426         * glyphs-msw.c (add_tab_item):
12427         * glyphs-msw.c (mswindows_combo_box_instantiate):
12428         * glyphs-msw.c (mswindows_widget_property):
12429         * glyphs-msw.c (mswindows_combo_box_property):
12430         * glyphs-msw.c (mswindows_widget_set_property):
12431         * console.c (stuff_buffered_input):
12432         * objects-msw.c (mswindows_initialize_color_instance):
12433         * objects-msw.c (mswindows_valid_color_name_p):
12434         * objects-msw.c (mswindows_list_fonts):
12435         * objects-msw.c (mswindows_font_instance_truename):
12436         * bytecode.c (optimize_compiled_function):
12437         * select-x.c (symbol_to_x_atom):
12438         * select-x.c (x_atom_to_symbol):
12439         * select-x.c (hack_motif_clipboard_selection):
12440         * select-x.c (selection_data_to_lisp_data):
12441         * select-x.c (lisp_data_to_selection_data):
12442         * select-x.c (Fx_get_cutbuffer_internal):
12443         * select-x.c (Fx_store_cutbuffer_internal):
12444         * buffer.h (TO_EXTERNAL_FORMAT): New function.
12445         * buffer.h (TO_INTERNAL_FORMAT): New function.
12446         * emacs.c (make_arg_list_1):
12447         * emacs.c (make_argc_argv):
12448         * emacs.c (main_1):
12449         * emacs.c (Fdump_emacs):
12450         * emacs.c (split_string_by_emchar_1):
12451         * file-coding.h:
12452         * lisp.h:
12453         * lstream.h:
12454         * symsinit.h:
12455         * device-x.c (x_init_device):
12456         * device-x.c (Fx_valid_keysym_name_p):
12457         * device-x.c (Fx_get_font_path):
12458         * device-x.c (Fx_set_font_path):
12459         * glyphs.c (bitmap_to_lisp_data):
12460         * glyphs.c (pixmap_to_lisp_data):
12461         * alloc.c (make_ext_string): Use coding system arguments.  Update
12462         all callers.
12463         * alloc.c (build_string):
12464         * callproc.c (child_setup):
12465         * callproc.c (init_callproc):
12466         * fileio.c (lisp_strerror):
12467         * fileio.c (directory_file_name):
12468         * fileio.c (Fexpand_file_name):
12469         * fileio.c (Ffile_truename):
12470         * fileio.c (Fsysnetunam):
12471         * fileio.c (Fdo_auto_save):
12472         * sysdep.c (sys_readdir):
12473         * tests.c: New file.  Allow adding C tests.
12474         Replace GET_* macros with a more comprehensible and flexible
12475         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
12476         Modify all calls.
12477         Any coding system can be used to do format conversion.
12478         Eliminate enum external_data_format.
12479         Eliminate convert_to_external_format.
12480         Eliminate convert_to_internal_format.
12481         Make sure file-name, keyboard, terminal, and ctext are always
12482         defined as coding systems or aliases.  Make
12483         file-name-coding-system, terminal-coding-system, and
12484         keyboard-coding-system magical variables that are equivalent to
12485         defining the corresponding coding system aliases.
12486
12487         * file-coding.c (Fcoding_system_canonical_name_p): New function.
12488         * file-coding.c (Fcoding_system_alias_p): New function.
12489         * file-coding.c (Fcoding_system_aliasee): New function.
12490         * file-coding.c (append_suffix_to_symbol): New function.
12491         * file-coding.c (dangling_coding_system_alias_p): New function.
12492         * file-coding.c (Ffind_coding_system):
12493         * file-coding.c (Fcopy_coding_system):
12494         * file-coding.c (encode_coding_no_conversion):
12495         * file-coding.c (syms_of_file_coding):
12496         * file-coding.c (vars_of_file_coding):
12497         Rewrite coding system alias code.
12498         Allow nested aliases, like symbolic links.
12499         Allow redefinition of coding system aliases.
12500         Prevent existence of dangling coding system aliases.
12501
12502         * dired.c (Fuser_name_completion_1):
12503         * dired.c (Fuser_name_all_completions):
12504         A crash would happen if user did QUIT in the middle of building
12505         user_name_cache.  Remove redundant code in mainline and unwind_protect.
12506
12507         * lisp.h:
12508         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
12509
12510         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
12511         an unsigned char *.  Update all callers.
12512
12513 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12514
12515         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
12516
12517 2000-01-25  Martin Buchholz  <martin@xemacs.org>
12518
12519         * elhash.c (hentry_description): Use more portable definition.
12520         (resize_hash_table): Initialize new hentries using
12521         xnew_array_and_zero, thereby simplifying the code.
12522
12523         * mule-charset.c (make_charset): Make sure entire object is
12524         initialized, to avoid Purify warnings.
12525
12526         * alloc.c (resize_string): Fix unlikely crash with big strings.
12527
12528 2000-01-24  Martin Buchholz  <martin@xemacs.org>
12529
12530         * realpath.c (xrealpath):
12531         Don't call getwd().
12532
12533 2000-01-25  Martin Buchholz  <martin@xemacs.org>
12534
12535         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
12536
12537 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
12538
12539         * unexelfsgi.c (unexec): Change the way we decide which segment
12540         should be extended.
12541
12542         Assumption that .bss section should be outside the PT_LOADable
12543         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
12544         it's present) is inside the 'data' segment. This would fail the
12545         test which was used to find a segment to grow and cover new
12546         heap. Instead of this assumption, I created another one - on IRIX
12547         the segment to grow should start below .bss and it's address
12548         should extent above the end of .bss. Once this segment is
12549         identified, it's grown to accommodate the new heap and new
12550         zero-length .bss section is added at the end of .data2.
12551
12552 2000-01-25  Martin Buchholz  <martin@xemacs.org>
12553
12554         * eval.c (Feval): Wrong number of arguments should use original
12555         function, not the indirect_function version of it.
12556
12557 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
12558
12559         * glyphs-x.c (x_button_instantiate): Don't add image if
12560         it is not a pixmap.
12561         (x_locate_pixmap_file): Call Fexpand_file_name when file name
12562         is relative.
12563
12564 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
12565
12566         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
12567         declaration.
12568         (DEFVAR_INT_MAGIC): Ditto.
12569         (DEFVAR_BOOL_MAGIC): Ditto.
12570         * glyphs.h: Reindent backslash.
12571
12572 2000-01-24  Martin Buchholz  <martin@xemacs.org>
12573
12574         * glyphs-widget.c (layout_query_geometry):
12575         (layout_layout): Use correct types for gheight, gwidth.
12576
12577 2000-01-24  Martin Buchholz  <martin@xemacs.org>
12578
12579         * EmacsManager.c (QueryGeometry): Purified.
12580
12581 2000-01-23  Martin Buchholz  <martin@xemacs.org>
12582
12583         * alloc.c (make_float): Make sure entire object is initialized, to
12584         avoid Purify warnings.
12585         (pdump_register_sub): Remove useless assignment.
12586         (pdump): Use xmalloc, not malloc.
12587         (pdump_load): Use xmalloc, not malloc.
12588
12589 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12590
12591         * callproc.c:
12592         * dired-msw.c:
12593         * fileio.c:
12594         * process-nt.c:
12595         * redisplay-msw.c:
12596         * sysdep.c: Removed redundant #include <windows.h>
12597
12598 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12599
12600         * frame.c (delete_frame_internal): Do not delete device when its
12601         implementation so declares.
12602         (delete_frame_internal): Set device selected frame to nil when
12603         last frame goes away.
12604
12605         * device-msw.c (msprinter_device_system_metrics): Implemented.
12606         (mswindows_device_system_metrics): Added 'device-dpi property.
12607
12608         * device.c: (Fdevice_printer_p): Added.
12609         Added 'offset-workspace device metric.
12610
12611         * console.h (device_metrics): Declared DM_offset_workspace.
12612
12613 2000-01-23  Martin Buchholz  <martin@xemacs.org>
12614
12615         * fileio.c (Ffile_truename): Remove pointless and confusing
12616         initialization of elen.
12617
12618         * glyphs-widget.c: Compiler warning fixes.
12619
12620 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
12621
12622         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
12623         instead of a Lisp_Object as argument to make it consistent with
12624         the other LIVE_P macros.
12625         (CHECK_LIVE_PROCESS): New macro.
12626
12627         * process.c: Declare Qprocess_live_p.
12628         (Fprocess_live_p): New function.
12629         (create_process): Use PROCESS_LIVE_P.
12630         (read_process_output): Ditto.
12631         (set_process_filter): Ditto.
12632         (Fdelete_process): Ditto.
12633         (kill_buffer_processes): Ditto
12634         (process_send_signal): Use CHECK_LIVE_PROCESS.
12635         (Fprocess_input_coding_system): Check whether process is still
12636         alive (fix PR#1061).
12637         (Fprocess_output_coding_system): Ditto.
12638         (Fprocess_coding_system): Ditto.
12639         (Fset_process_input_coding_system): Ditto.
12640         (Fset_process_output_coding_system): Ditto.
12641
12642 2000-01-23  Andy Piper  <andy@xemacs.org>
12643
12644         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
12645         layout and widget.
12646
12647         * glyphs.c (mark_image_instance): take into account changed
12648         image_instance format.
12649         (image_instance_equal): ditto.
12650         (image_instance_hash): ditto.
12651
12652         * glyphs-widget.c (widget_instantiate): Incorporate layout
12653         instantiation here. Delay layout of the layout until later.
12654         (layout_instantiate): deleted.
12655         (layout_query_geometry): new function. get the geometry of a
12656         layout.
12657         (layout_layout): layout a layout dynamically.
12658         (image_instantiator_widget): New function - splitting up
12659         image_instantiator_format_create_glyphs_widget for netwinder
12660         compilation.
12661         (image_instantiator_buttons):
12662         (image_instantiator_edit_fields):
12663         (image_instantiator_combo_box):
12664         (image_instantiator_scrollbar):
12665         (image_instantiator_progress_guage):
12666         (image_instantiator_tree_view):
12667         (image_instantiator_tab_control):
12668         (image_instantiator_labels):
12669         (image_instantiator_layout): ditto.
12670         (image_instantiator_format_create_glyphs_widget): Call preceding
12671         functions.
12672
12673 2000-01-22  Martin Buchholz  <martin@xemacs.org>
12674
12675         * process.c (Fset_process_coding_system):
12676         * device-x.c (Fx_keysym_hash_table):
12677         Docstring fixes.
12678
12679         * lstream.c (Lstream_write): Return documented value, not 0.
12680
12681         * fileio.c (directory_file_name):
12682         (Fsubstitute_in_file_name):
12683         (Fsubstitute_insert_file_contents_internal):
12684         (Fwrite_region_internal):
12685         * emacs.c:
12686         * sysdep.c:
12687         * getloadavg.c:
12688         * systty.h:
12689         Remove vestigial APOLLO-conditional code.
12690
12691 2000-01-21  Martin Buchholz  <martin@xemacs.org>
12692
12693         * getpagesize.h: Add guard macros.
12694         * libsst.h: Add guard macros.
12695         * libst.h: Add guard macros.
12696         * line-number.h: Add guard macros.
12697         * ndir.h: Add guard macros.
12698         * sysfloat.h: Add guard macros.
12699         * sysfile.h: Add guard macros.
12700         * sysproc.h: Add guard macros.
12701         * syswait.h: Add guard macros.
12702         * xintrinsic.h: Add guard macros.
12703         * xintrinsicp.h: Add guard macros.
12704         * xmmanager.h: Add guard macros.
12705         * xmmanagerp.h: Add guard macros.
12706         * xmprimitive.h: Add guard macros.
12707         * xmu.h: Add guard macros.
12708         * gpmevent.h: Add copyright statement. Add guard macros.
12709         * miscplay.h: Add guard macros.
12710         * *.h: Use consistent C-standards-approved guard macro names.
12711
12712         * opaque.c (make_opaque): Switch parameter order.
12713         * opaque.h (make_opaque): Switch parameter order.
12714         Update all callers.
12715         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
12716
12717         * config.h.in (type_checking_assert): Added.
12718         (bufpos_checking_assert): Added.
12719
12720 2000-01-21  Martin Buchholz  <martin@xemacs.org>
12721
12722         * alloc.c: Harmless pdump changes.
12723         - Use countof().
12724         - spell alignment correctly.
12725         * sysdep.c: Use countof()
12726
12727 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12728
12729         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
12730         initially_selected_for_input() console method, default to 0.
12731         (semi_canonicalize_console_connection): Try to delegate to
12732         canonicalize_console_connection if no such console method.
12733         (canonicalize_console_connection): Vice versa.
12734         (print_console): Do not print nil connection.
12735
12736         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
12737         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
12738         (XDEVIMPF_FRAMELESS_OK): Added.
12739         (CONSOLE_INHERITS_METHOD): Added.
12740
12741         * console-msw.c (mswindows_canonicalize_console_connection):
12742         Added.
12743         (mswindows_canonicalize_device_connection): Added.
12744
12745         * console-msw.h (struct msprinter_device): Added this struct and
12746         accessor macros.
12747         (mswindows_device): Made fontlist a lisp object.
12748
12749         * device.c (semi_canonicalize_device_connection):  Try to delegate
12750         to canonicalize_device_connection if no such console method.
12751         (canonicalize_device_connection): Vice versa.
12752         (print_device): Do not print nil connection.
12753
12754         * device-msw.c (mswindows_init_device): Call InitCommonControls
12755         when have widgets.
12756         (mswindows_delete_device): Removed fontlist deallocation.
12757         (mswindows_mark_device): Added.
12758
12759         * events.c (event_equal): Added abort() at unreached code.
12760         (event_hash): Ditto.
12761
12762         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
12763         fallback tags of Windows devices.
12764
12765         * general.c (syms_of_general): Initialized Qmsprinter.
12766
12767         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
12768         of fallback tags of Windows devices.
12769
12770         * lisp.h: Declared Qmsprinter.
12771
12772         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
12773         of strings.
12774         (mswindows_list_fonts): Ditto.
12775         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
12776         that it can be used by both mswindows and msprinter devices.
12777         (initialize_font_instance): Added.
12778         (mswindows_initialize_font_instance): Use it.
12779         (msprinter_initialize_font_instance): Added.
12780
12781         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
12782         and implementation flags check.
12783         (redisplay_without_hooks): Changed the call to the above.
12784         (Fredraw_device): Ditto.
12785         (Fredisplay_device): Ditto.
12786
12787         * redisplay-msw.c (get_frame_dc): Implemented.
12788         (get_frame_compdc): Implemented.
12789         (many functions): Use the two functions above to get device
12790         contexts, ether for a window or a printer.
12791
12792 2000-01-21  Olivier Galibert  <galibert@pobox.com>
12793
12794         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
12795         initialization here.
12796         (init_symbols_once_early): Call it.
12797         * emacs.c (main_1): Call it.
12798         * symsinit.h: Declare it.
12799
12800 2000-01-19  Olivier Galibert  <galibert@pobox.com>
12801
12802         * alloc.c: Use a lrecord_header * in the backtrace instead of a
12803         Lisp_Object.
12804         (pdump_backtrace): Ditto.
12805         (pdump_register_object): Ditto.  Cleanup use of the pointers.
12806         (pdump_get_entry): Abort if trying to register a null pointer.
12807         (pdump_dump_data): Cleanup types when relocating.
12808         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
12809         (pdump_dump_rtables): Remove bad casts.
12810         (pdump_load): Cleanup relocation w.r.t union type.  Use a
12811         Lisp_Object instead of a EMACS_INT for the hashtable
12812         reorganization.
12813
12814 2000-01-20  Martin Buchholz  <martin@xemacs.org>
12815
12816         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
12817
12818         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
12819
12820         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
12821
12822         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
12823
12824 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12825
12826         * faces.h (FACE_STRIKETHRU_P): Added.
12827
12828         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
12829         of font variants.
12830
12831         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
12832         (mswindows_set_dc_font): New function, aware of font variants,
12833         separated from mswindows_update_dc.
12834
12835         * objects-msw.h (struct mswindows_font_instance_data): Added
12836         definition.
12837
12838         * objects-msw.c (mswindows_finalize_font_instance): Delete all
12839         cached fonts and the data structure.
12840         (mswindows_initialize_font_instance): Added creation of font data
12841         structure.
12842         (mswindows_print_font_instance): Print at least something.
12843         (mswindows_create_font_variant): Implemented.
12844         (mswindows_get_hfont): Implemented.
12845
12846 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
12847
12848         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
12849         prototyping problem with msvc.
12850
12851         * emacs.c (main_1): added syms_of_gui_mswindows() call
12852
12853         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
12854         syms_of_gui_mswindows() function
12855
12856         * symsinit.h: added the prototype for syms_of_gui_mswindows()
12857
12858 2000-01-18  Martin Buchholz <martin@xemacs.org>
12859
12860         * XEmacs 21.2.27 is released.
12861
12862 2000-01-18  Martin Buchholz  <martin@xemacs.org>
12863
12864         * glyphs-eimage.c (struct tiff_error_struct):
12865         (tiff_error_func):
12866         (tiff_warning_func):
12867         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
12868
12869         * unexmips.c:
12870         * unexhp9k3.c:
12871         * unexfreebsd.c:
12872         * unexec.c: Remove vestigial Lucid C code.
12873         * unexalpha.c:
12874         * unexaix.c:
12875         * termcap.c:
12876         * libsst.c: Ansify.
12877         Remove declarations of errno and strerror().
12878
12879         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
12880
12881         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
12882
12883 2000-01-16  Martin Buchholz  <martin@xemacs.org>
12884
12885         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
12886         Optimize.
12887
12888 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
12889
12890         * md5.c:
12891         * file-coding.c:
12892         * file-coding.h:
12893         Change enum eol_type to eol_type_t.
12894
12895 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
12896
12897         * gui.c (get_gui_callback): Check cons before accessing car.
12898
12899 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
12900
12901         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
12902         (XSETSPECIFIER_TYPE): Ditto.
12903
12904 2000-01-17  Didier Verna  <didier@xemacs.org>
12905
12906         * redisplay.c (generate_fstring_runes): compute string size in
12907         characters, not bytes.
12908
12909 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
12910
12911         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
12912
12913 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
12914
12915         * print.c (print_error_message): Call print_prepare().
12916
12917 2000-01-14  Martin Buchholz  <martin@xemacs.org>
12918
12919         * .dbxrc: Renamed from dbxrc.
12920
12921         * events.c (event_to_character):
12922         Use `assert (foo)' instead of `if (!foo) abort()'
12923
12924         * .gdbinit (xtype): Add documentation.
12925         * .gdbinit (check-temacs): New function.
12926         * .gdbinit (check-xemacs): New function.
12927         * dbxrc (check-xemacs): New function.
12928         * dbxrc (check-xemacs): New function.
12929
12930 2000-01-14  Andy Piper  <andy@xemacs.org>
12931
12932         * glyphs-widget.c (widget_query_geometry): Make sure that we
12933         calculate default dimensions correctly.
12934
12935 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12936
12937         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
12938
12939         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
12940         pdump_wire'd variable.
12941
12942         * emacs.c: (main_1): Conditionalized calls to
12943         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
12944
12945 2000-01-13  Martin Buchholz  <martin@xemacs.org>
12946
12947         * window.c (Fset_window_configuration):
12948         * sysdep.c (_start):
12949         * input-method-motif.c (res):
12950         * event-Xt.c (Xt_process_to_emacs_event):
12951         Simple compiler warning fixes.
12952
12953         * bytecode.c (funcall_compiled_function): Use the original
12954         function symbol on the backtrace list in preference to the
12955         compiled_function object in error messages.
12956
12957 2000-01-13  Andy Piper  <andy@xemacs.org>
12958
12959         * glyphs-x.c (update_widget_face): Make sure we update the widget
12960         background as well as foreground.
12961
12962 2000-01-13  Andy Piper  <andy@xemacs.org>
12963
12964         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
12965         fields to subwindow.
12966         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
12967         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
12968         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
12969         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
12970
12971         * glyphs-widget.c (check_valid_tab_orientation): new function.
12972         (initialize_widget_image_instance): zero orientation and
12973         justification.
12974         (widget_instantiate): pick up orientation.
12975         (tab_control_query_geometry): return appropriate values for
12976         vertical tabs.
12977
12978         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
12979         appropriate creation flags for left, right and bottom tabs.
12980
12981         * s/cygwin32.h: add tab definitions.
12982
12983 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12984
12985         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
12986         frame upon hiding a subwindow.
12987         (mswindows_button_instantiate): Changed the push button style to
12988         BS_PUSHBUTTON.
12989         (mswindows_button_instantiate): Removed button BS_NOTIFY
12990         style.
12991         (mswindows_button_instantiate): Removed redundant check for
12992         a disabled gui item.
12993         (mswindows_button_instantiate): Made use of WS_TABSTOP
12994         consistent: "operable" controls (edit, button, tree, scroll) have
12995         this style, "display-only" ones (static, progress gauge) do
12996         not. This style is currently ignored by XEmacs though. Also,
12997         removed the WS_EX_CONTROLPARENT style - it is not for children,
12998         it is for their parents!
12999         (mswindows_edit_field_instantiate): Ditto.
13000         (mswindows_progress_gauge_instantiate): Ditto.
13001         (mswindows_tree_view_instantiate): Ditto.
13002         (mswindows_tab_control_instantiate): Ditto.
13003         (mswindows_scrollbar_instantiate): Ditto.
13004         (mswindows_combo_box_instantiate): Ditto.
13005         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
13006         style to the "clip" window.
13007         (mswindows_button_instantiate): Removed compilation warning by
13008         equally typing terms of the ?: operator.
13009
13010 2000-01-12  Didier Verna  <didier@xemacs.org>
13011
13012         * redisplay.c (generate_fstring_runes): new parameter holding the
13013         last modeline-format extent.
13014         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
13015         extent, fill the glyph block with it.
13016         (generate_fstring_runes): handle these parameters.
13017         (generate_formatted_string_db): ditto.
13018
13019         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
13020         glyphs'extents in the modeline.
13021
13022 1999-01-11  Mike Woolley  <mike@bulsara.com>
13023
13024         * ntheap.c: Reduced the reserved heap space from 1Gb down to
13025         256Mb, as a workaround for the non-starting problem many people
13026         have experienced.
13027
13028 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
13029
13030         * console-tty.c (Fset_console_tty_output_coding_system):
13031         Force redrawing tty frame.
13032
13033 2000-01-10  Didier Verna  <didier@xemacs.org>
13034
13035         * redisplay.c (generate_fstring_runes): fix size computation bug.
13036
13037 2000-01-09  William M. Perry <wmperry@aventail.com>
13038
13039         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
13040
13041 2000-01-09  Andy Piper  <andy@xemacs.org>
13042
13043         * glyphs-msw.c: index -> i to avoid shadows.
13044         (xbm_create_bitmap_from_data): make static.
13045         (check_valid_string_or_int): deleted.
13046         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
13047
13048         * glyphs-x.c (x_update_subwindow): remove unused args.
13049
13050         * glyphs.c (glyph_image_instance): return the thing. Don't set the
13051         back pointer - this is done in allocate_image_instance.
13052         (query_string_font): return Qnil to make the compiler happy.
13053         (unmap_subwindow): set to ~0 to make the compiler happy.
13054         (glyph_query_geometry): comment out until used.
13055         (glyph_layout): ditto.
13056
13057 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
13058
13059         * insdel.c (signal_after_change): Remove extraneous unbind_to().