Sync up with r21-4-10-utf-2000-0_20-ucs-jis-l.
[chise/xemacs-chise.git] / src / ChangeLog
1 2003-03-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2
3         * char-ucs.h (LEADING_BYTE_UCS_JIS): Deleted.
4
5         * mule-charset.c (Vcharset_ucs_jis): Deleted.
6         (Qucs_jis): Deleted.
7         (syms_of_mule_charset): Delete `ucs-jis'.
8         (complex_vars_of_mule_charset): Likewise.
9
10 2003-03-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
11
12         * char-ucs.h (LEADING_BYTE_UCS_KS): Deleted.
13
14         * mule-charset.c (Vcharset_ucs_ks): Deleted.
15         (Qucs_ks): Deleted.
16         (syms_of_mule_charset): Delete `ucs-ks'.
17         (complex_vars_of_mule_charset): Likewise.
18
19 2003-03-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
20
21         * mule-charset.c (Vcharset_ideograph_daikanwa_2): Deleted.
22         (Qideograph_daikanwa_2): Deleted.
23         (syms_of_mule_charset): Delete `ideograph-daikanwa-2'.
24         (complex_vars_of_mule_charset): Likewise.
25
26         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): Deleted.
27         (LEADING_BYTE_DAIKANWA_1): Deleted.
28         (LEADING_BYTE_DAIKANWA_2): Deleted.
29         (MIN_CHAR_DAIKANWA): Deleted.
30         (MAX_CHAR_DAIKANWA): Deleted.
31
32 2003-02-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
33
34         * char-ucs.h (LEADING_BYTE_DAIKANWA_3): Deleted.
35         (LEADING_BYTE_HANZIKU_{1..12}): Deleted.
36         ({MIN|MAX}_CHAR_HANZIKU_{1..12}): Deleted.
37
38         * mule-charset.c (Vcharset_ideograph_hanziku_{1..12}): Deleted.
39         (Vcharset_ideograph_daikanwa): Deleted.
40         (Qideograph_hanziku_{1..12}): Deleted.
41         (Qideograph_daikanwa): Deleted.
42         (encode_builtin_char_1): Don't use {MIN|MAX}_CHAR_DAIKANWA and
43         Vcharset_ideograph_daikanwa.
44         (syms_of_mule_charset): Delete `ideograph-daikanwa' and
45         `ideograph-hanziku-{1..12}'.
46         (complex_vars_of_mule_charset): Likewise.
47
48 2003-02-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
49
50         * char-ucs.h (LEADING_BYTE_GT_PJ_{1..11}): Deleted.
51
52         * mule-charset.c (Vcharset_ideograph_gt_pj_{1..11}): Deleted.
53         (Qideograph_gt_pj_{1..11}): Deleted.
54         (syms_of_mule_charset): Delete `ideograph-gt-pj-{1..11}'.
55         (complex_vars_of_mule_charset): Likewise.
56
57 2003-02-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
58
59         * mule-charset.c (Vcharset_ucs_big5): Deleted.
60         (Vcharset_ideograph_gt): Deleted.
61         (Qucs_big5): Deleted.
62         (Qideograph_gt): Deleted.
63         (syms_of_mule_charset): Delete symbol `ucs-big5' and
64         `ideograph-gt'.
65         (complex_vars_of_mule_charset): Delete coded-charset `ucs-big5'
66         and `ideograph-gt'.
67
68         * char-ucs.h (LEADING_BYTE_UCS_BIG5): Deleted.
69         (LEADING_BYTE_GT): Deleted.
70         (GC_CHARSETP): Deleted.
71         (MIN_CHAR_GT): Deleted.
72         (MAX_CHAR_GT): Deleted.
73
74 2003-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
75
76         * chartab.c (Fput_char_attribute): Canonicalise charset-aliases.
77
78 2003-01-05  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
79
80         * mule-charset.c (Vcharset_ideograph_cbeta): Deleted.
81         (Qideograph_cbeta): Deleted.
82         (syms_of_mule_charset): Don't define `ideograph-cbeta'.
83         (complex_vars_of_mule_charset): Likewise.
84
85         * char-ucs.h (LEADING_BYTE_CBETA): Deleted.
86         (MIN_CHAR_CBETA): Comment out.
87         (MAX_CHAR_CBETA): Likewise.
88
89 2002-12-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
90
91         * mule-charset.c (charset_lookup_description_1): Use
92         `NUM_LEADING_BYTES' in UTF-2000.
93
94 2002-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
95
96         * mule-charset.c (Vcharset_china3_jef): Deleted.
97         (Qchina3_jef): Deleted.
98         (syms_of_mule_charset): Don't define `china3-jef'.
99         (complex_vars_of_mule_charset): Likewise.
100
101         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Deleted.
102         (MIN_CHAR_CHINA3_JEF): Comment out.
103         (MAX_CHAR_CHINA3_JEF): Comment out.
104
105 2002-11-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
106
107         * mule-charset.c (Vcharset_ucs_gb): New variable.
108         (Qucs_gb): New variable.
109         (syms_of_mule_charset): Add new symbol `ucs-gb'.
110         (complex_vars_of_mule_charset): Add new coded-charset `ucs-gb'.
111
112         * char-ucs.h (LEADING_BYTE_UCS_GB): New macro.
113
114 2002-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
115
116         * mule-charset.c (charset_code_point): if a coded-charset has a
117         final-byte, don't inherit the builtin range of the mother CCS.
118
119 2002-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
120
121         * mule-charset.c (charset_code_point): Fix problem about
122         inheritance.
123
124 2002-11-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
125
126         * mule-charset.c (decode_builtin_char): Reorganized.
127
128 2002-10-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
129
130         * text-coding.c (char_encode_shift_jis): Modify for
131         `charset_code_point'.
132         (char_encode_big5): Likewise.
133         (char_encode_utf8): Likewise.
134         (char_encode_iso2022): Likewise.
135
136         * mule-charset.c (charset_code_point): Add new argument
137         `defined_only'.
138         (Fencode_char): Add new optional argument `defined_only'.
139
140         * chartab.c (put_char_table): Modify for `charset_code_point'.
141         (map_char_table): Likewise.
142
143         * char-ucs.h (charset_code_point): Add new argument
144         `defined_only'.
145         (encode_char_1): Modify for `charset_code_point'.
146
147 2002-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
148
149         * mule-charset.c (complex_vars_of_mule_charset): Don't specify
150         `MIN_CHAR_THAI' and `MAX_CHAR_THAI' for `thai-tis620'.
151
152 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
153
154         * mule-charset.c (Vcharset_jis_x0208): New variable in UTF-2000.
155         (Qjis_x0208): Likewise.
156         (decode_builtin_char): Prefer XCHARSET_MAX_CODE(charset) than
157         XCHARSET_FINAL(charset).
158         (charset_code_point): Modify condition for final-byte based
159         builtin-chars.
160         (syms_of_mule_charset): Add new symbol `=jis-x0208' in UTF-2000.
161         (complex_vars_of_mule_charset): Add new coded-charset `=jis-x0208'
162         in UTF-2000; specify `=jis-x0208' as the mother of
163         `japanese-jisx0208-1978', `japanese-jisx0208' and
164         `japanese-jisx0208-1990' in UTF-2000.
165
166 2002-10-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
167
168         * char-ucs.h (LEADING_BYTE_JIS_X0208): New macro.
169
170 2002-07-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
171
172         * mule-charset.c (charset_code_point): If CHARSET_CONVERSION is
173         CONVERSION_IDENTICAL, identical conversion is used even if a CCS
174         is ISO-2022 style; instead of it, CONVERSION_94, CONVERSION_96,
175         CONVERSION_94x94, CONVERSION_96x96, CONVERSION_94x94x94,
176         CONVERSION_96x96x96, CONVERSION_94x94x94x94 and
177         CONVERSION_96x96x96x96 are introduced.
178         (complex_vars_of_mule_charset): Specify CONVERSION_96 instead of
179         CONVERSION_IDENTICAL for thai-tis620; Specify CONVERSION_94x94
180         instead of CONVERSION_IDENTICAL for japanese-jisx0208-1990.
181
182         * char-ucs.h (CONVERSION_94): New macro.
183         (CONVERSION_96): New macro.
184         (CONVERSION_94x94): New macro.
185         (CONVERSION_96x96): New macro.
186         (CONVERSION_94x94x94): New macro.
187         (CONVERSION_96x96x96): New macro.
188         (CONVERSION_94x94x94x60): New macro.
189         (CONVERSION_94x94x94x94): New macro.
190         (CONVERSION_96x96x96x96): New macro.
191
192 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
193
194         * lisp.h: Add an EXFUN for `Fchar_ref_p'.
195
196         * fns.c (Qideographic_structure): New variable.
197         (Qkeyword_char): New variable.
198         (ids_format_unit): New function.
199         (Fideographic_structure_to_ids): New function.
200         (syms_of_fns): Add new symbols `ideographic-structure' and
201         `:char'; add new builtin function `ideographic-structure-to-ids'.
202
203         * data.c (Fchar_ref_p): New function.
204         (syms_of_data): Add new builtin function `char-ref-p'.
205
206         * chartab.h: Add an EXFUN for `Ffind_char'.
207
208 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
209
210         * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
211         and `COMPOSE_ADD_CHAR'.
212         (decode_coding_iso2022): Use `decode_flush_er_chars'.
213
214 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
215
216         * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
217         instead of `DECODE_ADD_UCS_CHAR'.
218         (COMPOSE_ADD_CHAR): Likewise.
219
220 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
221
222         * text-coding.c (decode_flush_er_chars): New inline function.
223         (decode_add_er_char): New function.
224         (decode_coding_utf8): Use `decode_flush_er_chars' and
225         `decode_add_er_char'.
226
227 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
228
229         * text-coding.c (decode_coding_utf8): Flush for er_buf must be
230         done before `decode_output_utf8_partial_char'.
231
232         * mule-charset.c (complex_vars_of_mule_charset): Specify
233         `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
234         `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
235
236 2002-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
237
238         * mule-charset.c (decode_defined_char): New function; search
239         mother.
240         (decode_builtin_char): Don't search mother if
241         XCHARSET_MAX_CODE(charset) == 0.
242         (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
243         == 0 even if code >= XCHARSET_MAX_CODE(charset).
244         (Fdecode_char): Use `decode_defined_char' instead of
245         `DECODE_DEFINED_CHAR'.
246         (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
247         mother of `Vcharset_ucs_jis'.
248
249         * text-coding.c (decode_coding_big5): Use `decode_defined_char'
250         instead of `DECODE_DEFINED_CHAR'.
251
252         * char-ucs.h (decode_defined_char): Renamed from
253         `DECODE_DEFINED_CHAR'; changed to normal function.
254         (DECODE_CHAR): Use `decode_defined_char' instead of
255         `DECODE_DEFINED_CHAR'.
256
257         * lisp.h: Add `EXFUN' for `Fstring_to_number'.
258
259 2002-07-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
260
261         * char-ucs.h: Add `extern' for `Vcharset_ucs'.
262
263         * text-coding.c (Vcoded_charset_entity_reference_alist): New
264         variable.
265         (Quse_entity_reference): New variable.
266         (Qd): New variable.
267         (Qx): New variable.
268         (QX): New variable.
269         (coding_system_description): Add description for
270         `ccs_priority_list'.
271         (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
272         (allocate_coding_system): Initialize `ccs_priority_list' in
273         UTF-2000.
274         (Fmake_coding_system): Add description about
275         'use-entity-reference; setup
276         CODING_SYSTEM_USE_ENTITY_REFERENCE(codesys).
277         (Fcoding_system_property): Accept `disable-composition' and
278         `use-entity-reference' in UTF-2000.
279         (struct decoding_stream): Add new member `er_counter' and `er_buf'
280         in UTF-2000.
281         (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
282         (decode_coding_utf8): Decode entity-reference if
283         CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
284         (char_encode_utf8): Encode non-Unicode characters as
285         entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
286         (str->codesys).
287         (syms_of_file_coding): Add new symbols `use-entity-reference',
288         `d', `x', `X'.
289         (vars_of_file_coding): Add new variable
290         `coded-charset-entity-reference-alist'.
291         (complex_vars_of_file_coding): Declare `disable-composition' and
292         `use-entity-reference' to be coding-system-properties in UTF-2000.
293
294         * file-coding.h (struct Lisp_Coding_System): Add new member
295         `use_entity_reference' and `ccs_priority_list'.
296         (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
297         (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
298         (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
299
300 2002-02-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
301
302         * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
303
304 2002-02-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
305
306         * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
307         `XCHARSET_GRAPHIC(ccs)'.
308
309 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
310
311         * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
312         for decoding-table.
313
314 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
315
316         * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
317         instead of `XCHARSET_CHARS'.
318
319 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
320
321         * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
322         (XCHARSET_BYTE_SIZE): Likewise.
323
324         * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
325         mule-charset.c].
326         (XCHARSET_BYTE_SIZE): Likewise.
327
328 2002-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
329
330         * char-ucs.h (decoding_table_check_elements): Delete prototype.
331         (get_ccs_octet_table): New inline function.
332         (put_ccs_octet_table): Likewise.
333         (decoding_table_put_char): Use `get_ccs_octet_table' and
334         `put_ccs_octet_table'.
335         (decoding_table_remove_char): Use `decoding_table_put_char'.
336         (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
337
338         * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
339         into encoding_table.
340         (make_charset): Use Qunbound instead Qnil as initial value of
341         decoding_table.
342
343 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
344
345         * mule-charset.c (put_char_ccs_code_point): Modify for
346         `decoding_table_remove_char' and `decoding_table_put_char'.
347         (remove_char_ccs): Modify for `decoding_table_remove_char'.
348
349         * char-ucs.h (decoding_table_remove_char): Change arguments to
350         hide decoding_table vector.
351         (decoding_table_put_char): Likewise.
352
353 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
354
355         * mule-charset.c (decoding_table_remove_char): Moved to
356         char-ucs.h.
357         (decoding_table_put_char): Likewise.
358
359         * char-ucs.h (decoding_table_check_elements): New prototype [moved
360         from mule-charset.c].
361         (decoding_table_remove_char): New inline function [moved from
362         mule-charset.c].
363         (decoding_table_put_char): Likewise.
364
365 2002-04-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
366
367         * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
368         instead of `DECODE_CHAR' for mother; don't use special code for
369         chinese-big5 to use code space of chinese-big5-1 and
370         chinese-big5-2.
371         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
372         `MAX_CHAR_BIG5_CDP' for chinese-big5.
373
374         * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
375         (MAX_CHAR_BIG5_CDP): Revival.
376
377 2002-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
378
379         * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
380         the XLFD registry-encoding name of `chinese-big5'.
381
382 2002-04-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
383
384         * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
385         (Qchinese_big5_cdp): Deleted.
386         (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
387         (complex_vars_of_mule_charset): Delete coded-charset
388         `chinese-big5-cdp'.
389
390         * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
391         (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
392         `CHARSET_ID_OFFSET - n' for private CCS.
393         (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
394         (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
395         of `MIN_LEADING_BYTE'.
396         (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
397         `(CHARSET_ID_OFFSET - 97)'.
398         (MIN_CHAR_BIG5_CDP): Deleted.
399         (MAX_CHAR_BIG5_CDP): Deleted.
400
401 2002-01-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
402
403         * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
404         extension.
405
406 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
407
408         * mule-charset.c (decode_builtin_char): Support mother charsets.
409
410 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
411
412         * mule-charset.c (Q94x94x60): New variable.
413         (charset_code_point): Support conversion `94x94x60'.
414         (Fmake_charset): Likewise.
415         (syms_of_mule_charset): Add new symbol `94x94x60'.
416
417         * char-ucs.h (CONVERSION_94x94x60): New macro.
418
419 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
420
421         * mule-charset.c (charset_code_point): Unify code about
422         `code-offset'.
423
424 2001-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
425
426         * mule-charset.c (charset_code_point): Merge code about builtin
427         characters into code about mother charsets; don't use
428         `range_charset_code_point'.
429         (range_charset_code_point): Deleted.
430
431 2001-12-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
432
433         * mule-charset.c (Qcode_offset): New variable.
434         (Fmake_charset): Use `XUINT' to get value of `min-code' and
435         `max-code'; accept new property `code-offset'.
436         (syms_of_mule_charset): Add new symbol `code-offset'.
437
438 2001-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
439
440         * mule-charset.c (range_charset_code_point): Fixed.
441
442 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
443
444         * mule-charset.c (decode_builtin_char): Change semantics of
445         code-offset of coded-charset.
446         (charset_code_point): Likewise.
447         (range_charset_code_point): Likewise.
448         (complex_vars_of_mule_charset): Modify for the change.
449
450 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
451
452         * mule-charset.c (Fencode_char): Reverse arguments.
453
454         * mule-charset.c (charset_code_point): Fixed.
455
456 2001-12-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
457
458         * mule-charset.c (Vcharset_mojikyo): Deleted.
459         (Vcharset_mojikyo_2022_1): Deleted.
460         (Vcharset_mojikyo_pj_{1..21}): Deleted.
461         (Qmin_code): New variable in UTF-2000.
462         (Qmax_code): Likewise.
463         (Qmother): Likewise.
464         (Qconversion): Likewise.
465         (Q94x60): Likewise.
466         (Qmojikyo): Deleted.
467         (Qmojikyo_2022_1): Deleted.
468         (Qmojikyo_pj_{1..22}): Deleted.
469         (mark_charset): Mark `cs->mother'.
470         (charset_description): Add description for `mother'.
471         (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
472         new arguments `mother' and `conversion'; use
473         `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
474         (charset_code_point): Moved from char-ucs.h; support `mother'
475         charset feature.
476         (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
477         of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
478         (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
479         UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
480         allow 2 as the value of `graphic' in UTF-2000; add new properties
481         `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
482         require `final' in UTF-2000; modify for `make_charset'.
483         (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
484         instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
485         (Fcharset_property): Support `mother', `min-code' and `max-code'.
486         (Fencode_char): New function.
487         (syms_of_mule_charset): Add new builtin function `encode-char' in
488         UTF-2000; add new symbols `min-code', `max-code', `mother',
489         `conversion' and `94x60'; delete symbols `mojikyo',
490         `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
491         (complex_vars_of_mule_charset): Modify for `make_charset' change;
492         delete coded-charsets `mojikyo', `mojikyo-2022-1' and
493         `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
494
495         * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
496         `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
497
498         * char-ucs.h (Vcharset_mojikyo): Deleted.
499         (Vcharset_mojikyo_2022_1): Deleted.
500         (LEADING_BYTE_MOJIKYO): Deleted.
501         (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
502         (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
503         (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
504         (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
505         add new member `mother'; add new member `conversion'.
506         (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
507         (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
508         (CHARSET_MOTHER): New macro.
509         (CHARSET_CONVERSION): New macro.
510         (CONVERSION_IDENTICAL): New macro.
511         (CONVERSION_94x60): New macro.
512         (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
513         (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
514         (XCHARSET_MOTHER): New macro.
515         (XCHARSET_CONVERSION): New macro.
516         (MIN_CHAR_MOJIKYO): Deleted.
517         (MAX_CHAR_MOJIKYO): Deleted.
518         (DECODE_MOJIKYO_2022): Deleted.
519         (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
520         (charset_code_point): Changed to non-inline function.
521         (encode_char_1): Use `charset_code_point'.
522         (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
523
524 2001-12-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
525
526         * lread.c (read_compiled_function): Fix prototype.
527         (read_vector): Likewise.
528
529 2001-12-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
530
531         * lrecord.h (struct lrecord_header): Delete `older'.
532         (set_lheader_implementation): Delete code for `older'.
533         (set_lheader_older_implementation): Deleted.
534         (enum lrecord_type): Delete `lrecord_type_char_id_table'.
535         (OLDER_RECORD_P): Deleted.
536         (OLDER_RECORD_HEADER_P): Deleted.
537         (alloc_older_lcrecord): Deleted.
538         (alloc_older_lcrecord_type): Deleted.
539
540         * alloc.c (all_older_lcrecords): Deleted.
541         (alloc_older_lcrecord): Deleted.
542         (disksave_object_finalization_1): Delete code for older objects.
543         (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
544         (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
545
546 2001-12-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
547
548         * mule-charset.c (decoding_table_put_char): Use `make_vector'
549         instead of `make_older_vector'.
550         (put_char_ccs_code_point): Likewise.
551         (mark_charset): Mark `cs->decoding_table'.
552         (Fset_charset_mapping_table): Don't use `make_vector_newer'.
553
554         * lisp.h (make_older_vector): Deleted.
555         (make_vector_newer): Deleted.
556
557         * config.h.in (HAVE_GGC): Deleted.
558
559         * alloc.c (make_older_vector): Deleted.
560         (make_vector_newer_1): Deleted.
561         (make_vector_newer): Deleted.
562
563 2001-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
564
565         * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
566         (Qideograph_daikanwa_2): New variable.
567         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
568         (complex_vars_of_mule_charset): Add new coded-charset
569         `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
570         `LEADING_BYTE_DAIKANWA'.
571
572         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
573         (LEADING_BYTE_DAIKANWA_1): New macro.
574         (LEADING_BYTE_DAIKANWA_2): New macro.
575         (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
576
577 2001-12-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
578
579         * mule-charset.c (complex_vars_of_mule_charset): Change
580         DOC-strings and registry of `ideograph-daikanwa'; now it indicates
581         the second revised version.
582
583 2001-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
584
585         * mule-charset.c (Vcharset_ucs_smp): New variable.
586         (Vcharset_ucs_sip): New variable.
587         (Qucs_smp): New variable.
588         (Qucs_sip): New variable.
589         (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
590         MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
591         (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
592         (complex_vars_of_mule_charset): Modify middle-DOC and registry of
593         `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
594         charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
595
596         * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
597         (LEADING_BYTE_UCS_SIP): New macro.
598         (MIN_CHAR_SMP): New macro.
599         (MAX_CHAR_SMP): New macro.
600         (MIN_CHAR_SIP): New macro.
601         (MAX_CHAR_SIP): New macro.
602
603 2001-11-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
604
605         * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
606         utf-2000.
607
608 2001-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
609
610         * mule-charset.c (put_char_ccs_code_point): Return canonicalized
611         value; don't store value into `encoding_table' of `Lisp_Charset'.
612         (mark_charset): `encoding_table' was deleted.
613         (charset_description): Likewise.
614         (make_charset): Likewise.
615         (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
616         `put_char_ccs_code_point'.
617
618         * chartab.h (Fput_char_attribute): New EXFUN.
619
620         * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
621         is unified with normal symbol space.
622         (Fget_char_attribute): Likewise.
623         (Fput_char_attribute): Likewise; behavior of
624         `put_char_ccs_code_point' is changed.
625
626         * char-ucs.h: Include "elhash.h".
627         (Vchar_attribute_hash_table): New external variable.
628         (struct Lisp_Charset): Delete `encoding_table'.
629         (CHARSET_ENCODING_TABLE): New implementation; refer
630         `Vchar_attribute_hash_table' instead of `encoding_table' of struct
631         `Lisp_Charset'.
632
633 2001-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
634
635         * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
636         (cs) == 0.
637
638 2001-11-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
639
640         * text-coding.c (char_encode_big5): Prefer charset-g1 than
641         `chinese-big5'.
642
643 2001-11-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
644
645         * chartab.c (uint8_byte_table_description): New constant.
646         (uint8-byte-table): Use `uint8_byte_table_description'.
647         (uint16_byte_table_description): New constant.
648         (uint16-byte-table): Use `uint16_byte_table_description'.
649
650 2001-10-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
651
652         * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
653         range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
654
655 2001-10-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
656
657         * mule-charset.c (Vcharset_ucs_ks): New variable.
658         (Qucs_ks): New variable.
659         (syms_of_mule_charset): Add new symbol `ucs-ks'.
660         (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
661
662         * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
663
664 2001-10-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
665
666         * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
667         (Fdecode_char): Likewise.
668
669         * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
670         chartab.h.
671         (Fdefine_char): Modify for Fdecode_char.
672         (Ffind_char): Likewise.
673
674         * mule-charset.c (Fdecode_char): Add new optional argument
675         `defined-only'.
676         (Fdecode_builtin_char): Modify for `Fdecode_char'.
677
678 2001-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
679
680         * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
681         -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
682         (allocate_coding_system): Initialize initial-charsets of
683         CODESYS_BIG5 in XEmacs UTF-2000.
684         (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
685         CODESYS_BIG5 in XEmacs UTF-2000.
686         (decode_coding_big5): Use initial-charset-g0 and -g1 of
687         CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
688
689         * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
690         variables.
691         (Qideograph_hanziku_{1 .. 12}): Likewise.
692         (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
693         .. 12}'.
694         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
695         `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
696         `ideograph-hanziku-{1 .. 12}'.
697
698         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
699         (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
700         ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
701         ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
702         (DECODE_DEFINED_CHAR): New inline function.
703         (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
704
705 2001-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
706
707         * mule-charset.c (Vcharset_china3_jef): Renamed from
708         `Vcharset_japanese_jef_china3'.
709         (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
710         (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
711         `{MIN|MAX}_CHAR_JEF_CHINA3'..
712         (syms_of_mule_charset): Rename `china3-jef' from
713         `japanese-jef-china3'.
714         (complex_vars_of_mule_charset): Likewise; rename
715         `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
716
717         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
718         `LEADING_BYTE_JEF_CHINA3'.
719         (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
720         (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
721
722 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
723
724         * mule-charset.c (encode_builtin_char_1): Comment out special code
725         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
726
727         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
728         (MAX_CHAR_MOJIKYO_0): Comment out.
729         (MIN_CHAR_CBETA): Changed to 0x00E20000.
730         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
731         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
732         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
733
734 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
735
736         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
737         (Qideograph_cbeta): New variable.
738         (encode_builtin_char_1): Comment out special code for
739         coded-charset `mojikyo' and `japanese-jef-china3'.
740         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
741         (complex_vars_of_mule_charset): Add new coded-charset
742         `ideograph-cbeta'.
743
744         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
745         (MIN_CHAR_CBETA): New macro.
746         (MAX_CHAR_CBETA): New macro.
747
748 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
749
750         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
751         (LEADING_BYTE_JEF_CHINA3): New macro.
752         (MIN_CHAR_JEF_CHINA3): New macro.
753         (MAX_CHAR_JEF_CHINA3): Likewise.
754         (DECODE_CHAR): Fixed.
755
756 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
757
758         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
759         (Qjapanese_jef_china3): New variable.
760         (encode_builtin_char_1): Support `japanese-jef-china3'.
761         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
762         (complex_vars_of_mule_charset): Add new coded-charset
763         `japanese-jef-china3'.
764
765 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
766
767         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
768         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
769         94^4, 96^3, 96^4, 128^n and 256^n set.
770         (put_char_table): Use `XCHARSET_CELL_RANGE'.
771         (map_char_table): Likewise.
772
773 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
774
775         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
776         UTF-2000.
777
778 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
779
780         * chartab.h (get_char_id_table): New inline function.
781
782         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
783         function.
784
785 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
786
787         * chartab.h (decode_char_table_range): New prototype in XEmacs
788         UTF-2000.
789         (put_char_id_table): New inline function in XEmacs UTF-2000.
790
791         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
792         function.
793         (decode_char_table_range): Delete static declaration in XEmacs
794         UTF-2000.
795
796 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
797
798         * chartab.c (put_char_id_table): Use `put_char_table'.
799
800 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
801
802         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
803         (map_over_uint16_byte_table): Likewise.
804         (map_over_byte_table): Likewise.
805         (map_char_table): Modify for `map_over_uint8_byte_table',
806         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
807         UTF-2000.
808
809 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
810
811         * chartab.c (struct map_char_table_for_charset_arg): New
812         structure.
813         (map_char_table_for_charset_fun): New function.
814         (map_char_table): Use `map_char_table' for encoding_table of
815         `range->charset'.
816
817 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
818
819         * chartab.c (map_char_table): Check a character is found in
820         range->charset instead of non default value is defined in
821         char-table when range is CHARTAB_RANGE_ROW.
822
823 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
824
825         * chartab.c (map_char_id_table): Deleted.
826         (Fmap_char_attribute): Use `map_char_table' instead of
827         `map_char_id_table'.
828
829 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
830
831         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
832         UTF-2000.
833         (update_syntax_table): Deleted in XEmacs UTF-2000.
834
835         * syntax.c (find_defun_start): Use `syntax_table' instead of
836         `mirror_syntax_table' in XEmacs UTF-2000.
837         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
838         UTF-2000.
839         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
840         XEmacs UTF-2000.
841         (Fmatching_paren): Likewise.
842         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
843         in XEmacs UTF-2000.
844         (find_start_of_comment): Likewise.
845         (find_end_of_comment): Likewise.
846         (Fforward_comment): Likewise.
847         (scan_lists): Likewise.
848         (char_quoted): Likewise.
849         (Fbackward_prefix_chars): Likewise.
850         (scan_sexps_forward): Likewise.
851         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
852         (update_syntax_table): Likewise.
853
854         * search.c (skip_chars): Use `syntax_table' instead of
855         `mirror_syntax_table' in XEmacs UTF-2000.
856         (wordify): Likewise.
857         (Freplace_match): Likewise.
858
859         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
860         `mirror_syntax_table' in XEmacs UTF-2000.
861         (WORDCHAR_P_UNSAFE): Likewise.
862         (re_match_2_internal): Likewise.
863
864         * font-lock.c (find_context): Use `buf->syntax_table' instead of
865         `buf->mirror_syntax_table' in XEmacs UTF-2000.
866
867         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
868         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
869
870         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
871         XEmacs UTF-2000.
872
873         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
874         UTF-2000.
875         (print_char_table): Print `default_value' in XEmacs UTF-2000.
876         (char_table_description): Delete `mirror_table' in XEmacs
877         UTF-2000.
878         (fill_char_table): Don't call `update_syntax_table' in XEmacs
879         UTF-2000.
880         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
881         (Fcopy_char_table): Likewise.
882         (put_char_table): Don't call `update_syntax_table' in XEmacs
883         UTF-2000.
884
885         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
886         `buf->mirror_syntax_table' in XEmacs UTF-2000.
887         (casify_region_internal): Likewise.
888
889         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
890
891         * buffer.c (common_init_complex_vars_of_buffer): Don't use
892         `mirror_syntax_table' in XEmacs UTF-2000.
893
894         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
895         `buf->mirror_syntax_table' in XEmacs UTF-2000.
896         (Fexpand_abbrev): Likewise.
897
898 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
899
900         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
901
902 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
903
904         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
905         (map_over_uint16_byte_table): Likewise.
906         (map_over_byte_table): Likewise.
907         (get_char_id_table): Refer `cit->default_value'.
908         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
909         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
910         of character-id ranges.
911         (mark_char_table): Mark `ct->default_value'.
912         (char_table_description): Add `default_value'.
913         (fill_char_table): Use `default_value'.
914         (decode_char_table_range): Decode `nil' as
915         `CHARTAB_RANGE_DEFAULT'.
916         (get_char_id_table): Refer `cit->default_value'.
917         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
918         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
919         temporary hack; check value of char-table is bound or not.
920         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
921
922         * chartab.h (struct Lisp_Char_Table): Add new member
923         `default_value' in XEmacs UTF-2000.
924         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
925         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
926         UTF-2000.
927
928 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
929
930         * chartab.h (Lisp_Char_ID_Table): Deleted.
931
932         * chartab.c (char_table_description): Fix typo.
933         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
934         `Lisp_Char_ID_Table'.
935
936 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
937
938         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
939         `CHAR_ID_TABLE_P'.
940
941         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
942         `CHAR_ID_TABLE_P'.
943
944         * chartab.h (XCHAR_ID_TABLE): Deleted.
945         (XSETCHAR_ID_TABLE): Deleted.
946         (CHAR_ID_TABLE_P): Deleted.
947
948         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
949         `CHAR_ID_TABLE_P'.
950         (Fget_composite_char): Likewise.
951         (put_char_table): Likewise.
952         (add_char_attribute_alist_mapper): Fixed.
953         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
954         `CHAR_ID_TABLE_P'.
955         (Fget_char_attribute): Likewise.
956         (Fget_char_attribute): Likewise.
957         (Fmap_char_attribute): Likewise.
958
959         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
960         `CHAR_ID_TABLE_P'.
961         (encode_char_1): Likewise.
962
963 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
964
965         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
966         `XCHAR_ID_TABLE'.
967
968         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
969         instead of `XCHAR_ID_TABLE'.
970         (remove_char_ccs): Likewise.
971
972         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
973         `XCHAR_ID_TABLE'.
974         (Fget_composite_char): Likewise.
975         (Fchar_variants): Likewise.
976         (put_char_table): Likewise.
977         (add_char_attribute_alist_mapper): Likewise.
978         (Fchar_attribute_alist): Likewise.
979         (Fget_char_attribute): Likewise.
980         (Fput_char_attribute): Likewise.
981         (Fmap_char_attribute): Likewise.
982         (Fmap_char_attribute): Likewise.
983
984         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
985         `XCHAR_ID_TABLE'.
986         (encode_char_1): Likewise.
987
988 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
989
990         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
991         `Lisp_Char_ID_Table'.
992         (mark_char_id_table): Deleted.
993         (print_char_id_table): Likewise.
994         (char_id_table_equal): Likewise.
995         (char_id_table_hash): Likewise.
996         (char_id_table_description): Likewise.
997         (char_id_table): Likewise.
998         (make_char_id_table): Use `Fmake_char_table' and
999         `fill_char_table'.
1000         (get_char_id_table): Use `Lisp_Char_Table' instead of
1001         `Lisp_Char_ID_Table'.
1002         (put_char_id_table): Likewise.
1003         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
1004         `XCHAR_ID_TABLE'.
1005         (Fremove_char_attribute): Likewise.
1006         (syms_of_chartab): Don't define type `char-id-table'.
1007
1008         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
1009         (char_id_table): Likewise.
1010         (GC_CHAR_ID_TABLE_P): Likewise.
1011         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
1012         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
1013         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
1014         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
1015         (get_char_id_table): Use `Lisp_Char_Table' instead of
1016         `Lisp_Char_ID_Table'.
1017         (put_char_id_table_0): Likewise.
1018         (put_char_id_table): Likewise.
1019
1020 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1021
1022         * chartab.h: Lisp_Byte_Table related codes are moved from
1023         chartab.h.
1024
1025         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
1026
1027 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1028
1029         * chartab.h: Don't include "chartab.h".
1030         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
1031         (Lisp_Char_ID_Table): Likewise.
1032         (char_id_table): Likewise.
1033         (XCHAR_ID_TABLE): Likewise.
1034         (XSETCHAR_ID_TABLE): Likewise.
1035         (CHAR_ID_TABLE_P): Likewise.
1036         (GC_CHAR_ID_TABLE_P): Likewise.
1037         (get_char_id_table): Likewise.
1038
1039         * char-ucs.h: Include "chartab.h".
1040         (struct Lisp_Char_ID_Table): Moved to chartab.h.
1041         (Lisp_Char_ID_Table): Likewise.
1042         (char_id_table): Likewise.
1043         (XCHAR_ID_TABLE): Likewise.
1044         (XSETCHAR_ID_TABLE): Likewise.
1045         (CHAR_ID_TABLE_P): Likewise.
1046         (GC_CHAR_ID_TABLE_P): Likewise.
1047         (get_char_id_table): Likewise.
1048
1049 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1050
1051         * chartab.c (copy_uint8_byte_table): New function.
1052         (copy_uint16_byte_table): New function.
1053         (copy_byte_table): New function.
1054         (map_over_uint8_byte_table): Modify to avoid huge numbers of
1055         characters to call.
1056         (map_over_uint16_byte_table): Likewise.
1057         (map_over_byte_table): Likewise.
1058         (get_byte_table): Move prototype to chartab.h.
1059         (put_byte_table): Likewise.
1060         (put_char_id_table_0): Moved to chartab.h.
1061         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
1062         (char_table_entry_equal): Likewise.
1063         (char_table_entry_hash): Likewise.
1064         (char_table_entry_description): Likewise.
1065         (char_table_entry): Likewise.
1066         (make_char_table_entry): Likewise.
1067         (copy_char_table_entry): Likewise.
1068         (get_non_ascii_char_table_value): Likewise.
1069         (map_over_charset_ascii): Likewise.
1070         (map_over_charset_control_1): Likewise.
1071         (map_over_charset_row): Likewise.
1072         (map_over_other_charset): Likewise.
1073         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
1074         (print_char_table): Likewise.
1075         (char_table_equal): Likewise.
1076         (char_table_hash): Likewise.
1077         (char_table_description): Likewise.
1078         (fill_char_table): Likewise.
1079         (Fcopy_char_table): Likewise.
1080         (get_char_table): Likewise.
1081         (Fget_range_char_table): Likewise.
1082         (put_char_table): Likewise.
1083         (map_char_table): Likewise.
1084         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
1085         UTF-2000.
1086
1087 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1088
1089         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
1090         `Vauto_fill_chars' in XEmacs UTF-2000.
1091
1092         * chartab.h (get_byte_table): New prototype [moved from
1093         chartab.c].
1094         (put_byte_table): Likewise [moved from chartab.c].
1095         (put_char_id_table_0): New inline function [moved from chartab.c].
1096         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
1097         (Lisp_Char_Table_Entry): Likewise.
1098         (char_table_entry): Likewise.
1099         (XCHAR_TABLE_ENTRY): Likewise.
1100         (XSETCHAR_TABLE_ENTRY): Likewise.
1101         (CHAR_TABLE_ENTRYP): Likewise.
1102         (CHECK_CHAR_TABLE_ENTRY): Likewise.
1103         (NUM_ASCII_CHARS): Likewise.
1104         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
1105         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
1106
1107 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1108
1109         * chartab.c (get_char_id_table): Change interface.
1110         (put_char_id_table_0): New function.
1111         (put_char_id_table): Change interface; new implementation.
1112         (Fget_composite_char): Modify for interface change of
1113         `get_char_id_table'.
1114         (Fchar_variants): Likewise.
1115         (add_char_attribute_alist_mapper): Likewise.
1116         (Fchar_attribute_alist): Likewise.
1117         (Fget_char_attribute): Likewise.
1118         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
1119         as same as character as the first argument like `put-char-table';
1120         modify for interface change of `put_char_id_table'.
1121         (Fremove_char_attribute): Modify for interface change of
1122         `put_char_id_table'.
1123
1124 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1125
1126         * text-coding.c: Sync up with XEmacs 21.2.41.
1127         (COMPOSE_ADD_CHAR): Modify for interface change of
1128         `get_char_id_table'.
1129
1130         * mule-charset.c (put_char_ccs_code_point): Modify for interface
1131         change of `put_char_id_table'.
1132         (remove_char_ccs): Likewise.
1133
1134         * chartab.h (put_char_id_table): Change interface.
1135
1136         * char-ucs.h (get_char_id_table): Change interface.
1137         (charset_code_point): Modify for interface change of
1138         `get_char_id_table'.
1139         (encode_char_1): Likewise.
1140
1141 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1142
1143         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
1144         argument `ccs'.
1145         (map_over_uint16_byte_table): Likewise.
1146         (map_over_byte_table): Likewise.
1147         (map_char_id_table): Add new argument `range' like
1148         `map_char_table'.
1149         (Fmap_char_attribute): Add new argument `range' like
1150         `Fmap_char_table'.
1151
1152 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1153
1154         * chartab.c (map_over_uint8_byte_table): Change interface of
1155         mapping function to use struct chartab_range instead of Emchar.
1156         (map_over_uint16_byte_table): Likewise.
1157         (map_over_byte_table): Likewise.
1158         (map_char_id_table): Likewise.
1159         (struct slow_map_char_id_table_arg): Deleted.
1160         (slow_map_char_id_table_fun): Deleted.
1161         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
1162         function `slow_map_char_table_fun' instead of struct
1163         `slow_map_char_id_table_arg' and function
1164         `slow_map_char_id_table_fun'.
1165
1166 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1167
1168         * mule-charset.c: Move char-it-table related codes to chartab.c.
1169         (Vutf_2000_version): Moved to chartab.c.
1170         (Fdefine_char): Likewise.
1171         (Ffind_char): Likewise.
1172         (syms_of_mule_charset): Move types `uint8-byte-table',
1173         `uint16-byte-table', `byte-table' and `char-id-table' to
1174         chartab.c; move functions `char_attribute_list,
1175         `find_char_attribute_table, `char_attribute_alist,
1176         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
1177         `map_char_attribute, `define_char, `find_char, `char_variants and
1178         `get_composite_char to chartab.c; move symbols `=>ucs',
1179         `->decomposition', `compat', `isolated', `initial', `medial',
1180         `final', `vertical', `noBreak', `fraction', `super', `sub',
1181         `circle', `square', `wide', `narrow', `small' and `font' to
1182         chartab.c.
1183         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
1184         setting codes for `Vcharacter_composition_table' and
1185         `Vcharacter_variant_table' to chartab.c.
1186         (complex_vars_of_mule_charset): Move setting code for
1187         `Vchar_attribute_hash_table' to chartab.c.
1188
1189         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
1190         (make_char_id_table): New prototype.
1191         (put_char_id_table): Likewise.
1192         (Fget_char_attribute): Likewise.
1193
1194         * chartab.c: Move char-id-table related code from mule-charset.c.
1195         (Vutf_2000_version): Moved from mule-charset.c.
1196
1197         * char-ucs.h (Qucs): New external variable.
1198         (put_char_ccs_code_point): New prototype.
1199         (remove_char_ccs): Likewise.
1200
1201 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1202
1203         * mule-charset.c (Vcharset_ucs_jis): New variable.
1204         (Qucs_jis): Likewise.
1205         (syms_of_mule_charset): Add new symbol `ucs-jis'.
1206         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
1207
1208         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
1209
1210 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1211
1212         * mule-charset.c (map_over_uint8_byte_table): New function.
1213         (map_over_uint16_byte_table): Likewise.
1214         (map_over_byte_table): Likewise.
1215         (map_char_id_table): Likewise.
1216         (slow_map_char_id_table_fun): Likewise.
1217         (Fmap_char_attribute): Likewise.
1218         (syms_of_mule_charset): Add new function `map-char-attribute'.
1219
1220 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1221
1222         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
1223         (syms_of_mule_charset): Add new function `find-char'.
1224
1225 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1226
1227         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
1228         XEmacs UTF-2000.
1229         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
1230         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
1231         XEmacs UTF-2000.
1232         (complex_vars_of_mule_charset): Add new coded-charset
1233         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
1234         `ideograph-gt-pj-*'.
1235
1236         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
1237
1238 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1239
1240         * mule-charset.c (encode_builtin_char_1): Purge codes about
1241         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
1242         {MIN|MAX}_CHAR_HEBREW.
1243         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
1244         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
1245
1246         * char-ucs.h (MIN_CHAR_GREEK): Purged.
1247         (MAX_CHAR_GREEK): Purged.
1248         (MIN_CHAR_CYRILLIC): Purged.
1249         (MAX_CHAR_CYRILLIC): Purged.
1250         (MIN_CHAR_HEBREW): Commented out.
1251         (MAX_CHAR_HEBREW): Likewise.
1252
1253 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1254
1255         * mule-charset.c (Qto_ucs): New variable.
1256         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
1257         (Fdefine_char): Likewise.
1258         (syms_of_mule_charset): Add new symbol `=>ucs'.
1259
1260 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1261
1262         * mule-charset.c (Fdecode_char): Fixed.
1263
1264 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1265
1266         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
1267         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
1268         "tcvn5712-1".
1269
1270 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1271
1272         * mule-charset.c (Vcharset_ucs_big5): New variable.
1273         (Qucs_big5): Likewise.
1274         (syms_of_mule_charset): Add new symbol `ucs-big5'.
1275         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
1276
1277         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
1278
1279 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1280
1281         * mule-charset.c (decode_builtin_char): Check Big5 code range
1282         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
1283
1284 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1285
1286         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
1287         (Qchinese_gb12345): Likewise.
1288         (Fdecode_builtin_char): Fixed.
1289         (syms_of_mule_charset): Add `chinese-gb12345'.
1290         (complex_vars_of_mule_charset): Add coded-charset
1291         `chinese-gb12345'.
1292
1293         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
1294         (LEADING_BYTE_CHINESE_GB12345): New macro.
1295
1296 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1297
1298         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
1299         and `latin-viscii-upper' for `latin-viscii'.
1300
1301 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1302
1303         * mule-charset.c (Fdecode_builtin_char): Comment out
1304         regularization code for ISO-IR GR representation.
1305
1306 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1307
1308         * mule-charset.c (decode_builtin_char): New function; renamed from
1309         `make_builtin_char'; return -1 instead of signal.
1310         (Fdecode_builtin_char): Use `decode_builtin_char'.
1311
1312         * char-ucs.h (decode_builtin_char): New prototype; renamed from
1313         `make_builtin_char'.
1314         (DECODE_CHAR): Use `decode_builtin_char' instead of
1315         `make_builtin_char'; use mapping table of `chinese-big5' for
1316         `chinese-big5-{1,2}'.
1317
1318 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1319
1320         * text-coding.c (char_encode_big5): New function.
1321         (char_finish_big5): Likewise.
1322         (reset_encoding_stream): Use `char_encode_big5' and
1323         `char_finish_big5' for CODESYS_BIG5.
1324         (mule_encode): Don't use `encode_coding_big5'.
1325         (encode_coding_big5): Deleted.
1326
1327 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1328
1329         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
1330         0x81- in XEmacs UTF-2000.
1331         (detect_coding_big5): Likewise.
1332
1333 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1334
1335         * mule-charset.c (Fdefine_char): Don't use a CCS property to
1336         generate character-id if the CCS property does not have
1337         corresponding predefined character.
1338         (make_builtin_char): Return -1 if corresponding predefined
1339         character is not found.
1340         (Fdecode_char): Return nil if corresponding character is not
1341         found.
1342         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
1343         don't map to builtin ucs space.
1344
1345 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1346
1347         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
1348         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
1349
1350 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1351
1352         * mule-charset.c (Vcharset_ideograph_gt): New variable.
1353         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
1354         (Qideograph_gt): Likewise.
1355         (Qideograph_gt_pj_{1..11}): Likewise.
1356         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
1357         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
1358         `ideograph-gt-pj-11'.
1359         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
1360         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
1361         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
1362
1363         * char-ucs.h (LEADING_BYTE_GT): New macro.
1364         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
1365         (MIN_CHAR_GT): Likewise.
1366         (MAX_CHAR_GT): Likewise.
1367
1368 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1369
1370         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
1371         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
1372
1373         * doprnt.c (unsigned_int_converters): Add `c'.
1374         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
1375
1376         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
1377         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
1378         `MIN_CHAR_MOJIKYO'.
1379         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
1380         (MAX_CHAR_MOJIKYO_0): New macro.
1381         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
1382
1383 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1384
1385         * mule-charset.c (Fdefine_char): Delete cemented out code.
1386         (encode_builtin_char_1): Modify for new allocation of builtin
1387         Mojikyo characters.
1388
1389         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
1390
1391 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1392
1393         * mule-charset.c (Vcharset_ucs_cns): New variable.
1394         (Qucs_cns): New variable.
1395         (syms_of_mule_charset): Add new symbol `ucs-cns'.
1396         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
1397
1398 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1399
1400         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
1401
1402 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
1403
1404         * search.c (search_buffer): Make `charset_base_code' as
1405         character-id >> 6 to eliminate the corresponding last byte in
1406         UTF-8 representation [I'm not sure it is right thing].
1407         (boyer_moore): Likewise.
1408
1409 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
1410
1411         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
1412         representation in MULE.
1413
1414 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1415
1416         * text-coding.c (Fmake_coding_system): Use
1417         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
1418         `EXTERNAL_PROPERTY_LIST_LOOP'.
1419
1420 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1421
1422         * text-coding.c (decode_output_utf8_partial_char): New function.
1423         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
1424
1425 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1426
1427         * text-coding.c (decode_coding_utf8): Output original byte
1428         sequence if it is broken; change order of conditions.
1429
1430         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
1431         of conditions.
1432
1433         * mb-multibyte.h (BYTE_ASCII_P):
1434         Use bit ops for char-signedness safety.
1435         (BYTE_C0_P): Use bit ops for char-signedness safety.
1436         (BYTE_C1_P): Use bit ops for char-signedness safety.
1437
1438         * character.h: (XCHAR_OR_CHAR_INT):
1439         Always use inline function.
1440         Remove redundant type checking assert() - XINT will abort quite
1441         nicely.
1442
1443 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1444
1445         * text-coding.c: (Fencode_shift_jis_char):
1446         (Fencode_big5_char):
1447         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
1448         Replace 0 with '\0' when working with bytes.
1449         Replace initial "(" with "\(" in docstrings.
1450
1451         (Fmake_coding_system):
1452         When type is ccl and value is vector, register it with a proper
1453         symbol.  And checks whether the given ccl program is valid.
1454         (mule_decode): When calling ccl_driver, if src indicates
1455         NULL pointer, set an empty string instead.
1456         (mule_encode): Likewise.
1457
1458         (detect_eol_type):
1459         (detect_coding_sjis):
1460         (decode_coding_sjis):
1461         (detect_coding_big5):
1462         (decode_coding_big5):
1463         (detect_coding_ucs4):
1464         (decode_coding_ucs4):
1465         (detect_coding_utf8):
1466         (decode_coding_utf8):
1467         (detect_coding_iso2022):
1468         (decode_coding_iso2022):
1469         (decode_coding_no_conversion):
1470         (mule_decode):
1471         Make all detecting and decoding functions take an Extbyte * arg.
1472         (text_encode_generic):
1473         (encode_coding_big5):
1474         (encode_coding_no_conversion):
1475         (mule_encode):
1476         Make all encoding functions take a Bufbyte * arg.
1477         Use size_t instead of unsigned int for memory sizes.
1478         Only cast to unsigned char whenever dereferencing Extbyte *.
1479
1480         (struct lrecord_description fcd_description_1): Use countof.
1481         (complex_vars_of_file_coding):
1482         Use countof instead of sizeof.
1483         Use CHECK_NATNUM instead of CHECK_INT.
1484
1485 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1486
1487         * mule-charset.c (Fget_char_attribute): Add new optional argument
1488         `default-value'.
1489         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
1490         (remove_char_ccs): Likewise.
1491
1492 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1493
1494         * text-coding.c (char_encode_shift_jis): New implementation in
1495         UTF-2000.
1496         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
1497         ...)'.
1498
1499         * mule-charset.c (Vcharset_chinese_big5): New variable in
1500         UTF-2000.
1501         (Qchinese_big5): New variable in UTF-2000.
1502         (BIG5_SAME_ROW): New macro in UTF-2000.
1503         (make_builtin_char): Use builtin characters of
1504         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
1505         characters of `Vcharset_chinese_big5'.
1506         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
1507         (complex_vars_of_mule_charset): Add new coded-charset
1508         `chinese-big5' in UTF-2000.
1509
1510         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
1511         (Vcharset_chinese_big5): New external variable declaration.
1512         (Vcharset_japanese_jisx0208_1990): Likewise.
1513
1514 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1515
1516         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
1517         function.
1518         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
1519
1520 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1521
1522         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
1523         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
1524         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
1525         `mojikyo-pj-*'.
1526
1527 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1528
1529         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
1530
1531 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1532
1533         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1534         to 0.17.
1535
1536 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1537
1538         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
1539         for `CHARSET_BY_ATTRIBUTES'.
1540         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
1541         `CHARSET_BY_ATTRIBUTES'.
1542
1543         * text-coding.c (struct decoding_stream): Rename member `CH' to
1544         `CPOS'.
1545         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
1546         (decode_coding_sjis): Likewise.
1547         (decode_coding_big5): Likewise.
1548         (decode_coding_ucs4): Likewise.
1549         (decode_coding_utf8): Likewise.
1550         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
1551         `CHARSET_BY_ATTRIBUTES'.
1552         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
1553         `str->counter'; decode 3, 4 bytes sets.
1554         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
1555         sets.
1556         (decode_coding_no_conversion): Use `str->cpos' instead of
1557         `str->ch'.
1558
1559         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
1560         (Qmojikyo_2022_1): New variable.
1561         (make_charset): Don't use `CHARSET_TYPE_*'.
1562         (range_charset_code_point): Support coded-charset
1563         `mojikyo-2022-1'.
1564         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
1565         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
1566         `CHARSET_BY_ATTRIBUTES'.
1567         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
1568         `CHARSET_BY_ATTRIBUTES'.
1569         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
1570         (complex_vars_of_mule_charset): Add new coded-charset
1571         `mojikyo-2022-1'.
1572
1573         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
1574         interface; changed to inline function.
1575
1576         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
1577         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
1578         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
1579         (CHARSET_TYPE_94): Deleted.
1580         (CHARSET_TYPE_94X94): Deleted.
1581         (CHARSET_TYPE_96): Deleted.
1582         (CHARSET_TYPE_96X96): Deleted.
1583         (CHARSET_TYPE_128): Deleted.
1584         (CHARSET_TYPE_128X128): Deleted.
1585         (CHARSET_TYPE_256): Deleted.
1586         (CHARSET_TYPE_256X256): Deleted.
1587         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
1588         to inline function.
1589         (DECODE_MOJIKYO_2022): New inline function.
1590         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
1591         `Vcharset_mojikyo_2022_1'.
1592
1593 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1594
1595         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
1596         instead of `EQ'.
1597         (put_byte_table): Likewise.
1598         (char_id_table_equal): Use `get_byte_table' [new implementation].
1599
1600 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1601
1602         * mule-charset.c: Include <limits.h> in UTF-2000.
1603         (BT_UINT8_MIN): New macro in UTF-2000.
1604         (BT_UINT8_MAX): New macro in UTF-2000.
1605         (BT_UINT8_t): New macro in UTF-2000.
1606         (BT_UINT8_nil): New macro in UTF-2000.
1607         (BT_UINT8_unbound): New macro in UTF-2000.
1608         (INT_UINT8_P): New inline function in UTF-2000.
1609         (UINT8_VALUE_P): New inline function in UTF-2000.
1610         (UINT8_ENCODE): New inline function in UTF-2000.
1611         (UINT8_DECODE): New inline function in UTF-2000.
1612         (mark_uint8_byte_table): New function in UTF-2000.
1613         (print_uint8_byte_table): New function in UTF-2000.
1614         (uint8_byte_table_equal): New function in UTF-2000.
1615         (uint8_byte_table_hash): New function in UTF-2000.
1616         (make_uint8_byte_table): New function in UTF-2000.
1617         (uint8_byte_table_same_value_p): New function in UTF-2000.
1618         (BT_UINT16_MIN): New macro in UTF-2000.
1619         (BT_UINT16_MAX): New macro in UTF-2000.
1620         (BT_UINT16_t): New macro in UTF-2000.
1621         (BT_UINT16_nil): New macro in UTF-2000.
1622         (BT_UINT16_unbound): New macro in UTF-2000.
1623         (INT_UINT16_P): New inline function in UTF-2000.
1624         (UINT16_VALUE_P): New inline function in UTF-2000.
1625         (UINT16_ENCODE): New inline function in UTF-2000.
1626         (UINT16_DECODE): New inline function in UTF-2000.
1627         (UINT8_TO_UINT16): New inline function in UTF-2000.
1628         (mark_uint16_byte_table): New function in UTF-2000.
1629         (print_uint16_byte_table): New function in UTF-2000.
1630         (uint16_byte_table_equal): New function in UTF-2000.
1631         (uint16_byte_table_hash): New function in UTF-2000.
1632         (make_uint16_byte_table): New function in UTF-2000.
1633         (uint16_byte_table_same_value_p): New function in UTF-2000.
1634         (print_byte_table): New function in UTF-2000.
1635         (byte-table): Use `print_byte_table' as printer.
1636         (make_byte_table): Delete second argument `older'.
1637         (byte_table_same_value_p): New function in UTF-2000.
1638         (copy_byte_table): Deleted.
1639         (get_byte_table): New function in UTF-2000.
1640         (put_byte_table): New function in UTF-2000.
1641         (print_char_id_table): New function in UTF-2000.
1642         (char-id-table): Use `print_char_id_table' as printer.
1643         (make_char_id_table): Delete second argument `older'.
1644         (get_char_id_table): Use `get_byte_table [new implementation].
1645         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
1646         implementation].
1647         (Ffind_char_attribute_table): New function in UTF-2000.
1648         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
1649         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
1650         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
1651         (syms_of_mule_charset): Add new function
1652         `find-char-attribute-table' in UTF-2000.
1653
1654         * lrecord.h (enum lrecord_type): Add
1655         `lrecord_type_uint16_byte_table' and
1656         `lrecord_type_uint8_byte_table'.
1657
1658         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
1659         (Lisp_Uint8_Byte_Table): New type.
1660         (XUINT8_BYTE_TABLE): New macro.
1661         (XSETUINT8_BYTE_TABLE): New macro.
1662         (UINT8_BYTE_TABLE_P): New macro.
1663         (GC_UINT8_BYTE_TABLE_P): New macro.
1664         (struct Lisp_Uint16_Byte_Table): New structure.
1665         (Lisp_Uint16_Byte_Table): New type.
1666         (XUINT16_BYTE_TABLE): New macro.
1667         (XSETUINT16_BYTE_TABLE): New macro.
1668         (UINT16_BYTE_TABLE_P): New macro.
1669         (GC_UINT16_BYTE_TABLE_P): New macro.
1670
1671 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1672
1673         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
1674         (Vcharacter_ideographic_strokes_table): Deleted.
1675         (Vcharacter_total_strokes_table): Deleted.
1676         (Vcharacter_morohashi_daikanwa_table): Deleted.
1677         (Vcharacter_decomposition_table): Deleted.
1678         (Qname): Deleted because it is duplicated.
1679         (Qideographic_radical): Deleted.
1680         (Qideographic_strokes): Deleted.
1681         (Qtotal_strokes): Deleted.
1682         (Qmorohashi_daikanwa): Deleted.
1683         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
1684         `ideographic-radical', `ideographic-strokes', `total-strokes',
1685         `morohashi-daikanwa' and `->decomposition'.
1686         (Fget_char_attribute): Likewise.
1687         (Fput_char_attribute): Likewise; use `make-vector' instead of
1688         `make_older_vector' for `->decomposition' value.
1689         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
1690         `ideograph-daikanwa'.
1691         (syms_of_mule_charset): Delete builtin symbols `name',
1692         `ideographic-radical', `ideographic-strokes', `total-strokes' and
1693         `morohashi-daikanwa'.
1694         (vars_of_mule_charset): Don't setup
1695         `Vcharacter_ideographic_radical_table',
1696         `Vcharacter_ideographic_strokes_table',
1697         `Vcharacter_total_strokes_table',
1698         `Vcharacter_morohashi_daikanwa_table' and
1699         `Vcharacter_decomposition_table'.
1700
1701 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1702
1703         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
1704         `make_older_vector', `make_vector_newer_1' and
1705         `make_vector_newer'.
1706
1707         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
1708         `make_older_vector' and `make_vector_newer'.
1709
1710         * config.h.in (HAVE_GGC): New macro.
1711
1712 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1713
1714         * mule-charset.c (struct char_attribute_list_closure): New
1715         structure in UTF-2000.
1716         (add_char_attribute_to_list_mapper): New function in UTF-2000.
1717         (Fchar_attribute_list): Likewise.
1718         (Fset_charset_mapping_table): Use `make_vector_newer'.
1719         (Fdecode_builtin_char): New function in UTF-2000.
1720         (syms_of_mule_charset): Add new function `char-attribute-list' and
1721         `decode-builtin-char' in UTF-2000.
1722
1723         * lisp.h (make_vector_newer): New prototype.
1724
1725         * alloc.c (make_vector_newer_1): New function.
1726         (make_vector_newer): New function.
1727
1728 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1729
1730         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
1731         50100)'.
1732
1733 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1734
1735         * mule-charset.c (Vchar_attribute_hash_table): New variable.
1736         (Vcharacter_attribute_table): Deleted.
1737         (Vcharacter_name_table): Deleted.
1738         (put_char_attribute): Deleted.
1739         (remove_char_attribute): Deleted.
1740         (struct char_attribute_alist_closure): New structure.
1741         (add_char_attribute_alist_mapper): New function.
1742         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
1743         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
1744         (Fget_char_attribute): Likewise.
1745         (Fput_char_attribute): Likewise.
1746         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
1747         of `remove_char_attribute'.
1748         (Fdefine_char): Return character.
1749         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
1750         and `Vcharacter_name_table'.
1751         (complex_vars_of_mule_charset): Likewise
1752         `Vchar_attribute_hash_table'.
1753
1754 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1755
1756         * character.h (CHARC_CHARSET): New macro.
1757         (CHARC_CHARSET_ID): New macro.
1758         (CHARC_CODE_POINT): New macro.
1759         (CHARC_COLUMNS): New macro.
1760         (CHARC_TO_CHAR): New inline function.
1761         (CHARC_EQ): New inline function.
1762         (CHARC_ASCII_EQ): New inline function.
1763         (CHARC_IS_SPACE): New inline function.
1764         (ASCII_TO_CHARC): New inline function.
1765
1766         * char-ucs.h (encode_char_2): Deleted.
1767         (ENCODE_CHAR): Use `encode_char_1' again.
1768         (breakup_char_1): Likewise.
1769         (CHAR_TO_CHARC): New inline function.
1770
1771         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
1772
1773 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1774
1775         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
1776         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
1777         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
1778         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
1779         (create_string_text_block): Use `CHARC_ASCII_EQ' and
1780         `CHARC_IS_SPACE'.
1781         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
1782
1783         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
1784         `CHARC_CODE_POINT'.
1785         (x_output_display_block): Use `CHARC_CHARSET' and
1786         `CHARC_ASCII_EQ'.
1787
1788         * redisplay-tty.c (tty_output_display_block): Use
1789         `CHARC_ASCII_EQ'.
1790         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
1791
1792         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
1793
1794         * insdel.c (find_charsets_in_charc_string): Use
1795         `CHARC_CHARSET_ID'.
1796         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
1797         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
1798         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
1799         (convert_charc_string_into_malloced_string): Likewise.
1800
1801 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1802
1803         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
1804         instead of <Emchar_dynarr *> for buf; use
1805         `convert_bufbyte_string_into_charc_dynarr' instead of
1806         `convert_bufbyte_string_into_emchar_dynarr'; use
1807         `find_charsets_in_charc_string' instead of
1808         `find_charsets_in_emchar_string'.
1809
1810         * redisplay.h:
1811         - Include "character.h".
1812         (struct rune): New member `cglyph'; delete member `chr'.
1813
1814         * redisplay.c (redisplay_text_width_charc_string): New function;
1815         delete `redisplay_text_width_emchar_string'.
1816         (rtw_charc_dynarr): New variable; renamed from
1817         `rtw_emchar_dynarr'.
1818         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
1819         `rtw_emchar_dynarr'; use
1820         `convert_bufbyte_string_into_charc_dynarr' instead of
1821         `convert_bufbyte_string_into_emchar_dynarr'; use
1822         `redisplay_text_width_charc_string' instead of
1823         `redisplay_text_width_emchar_string'.
1824         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
1825         instead of `rtw_emchar_dynarr'; use
1826         `convert_bufbyte_string_into_charc_dynarr' instead of
1827         `convert_bufbyte_string_into_emchar_dynarr'.
1828         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
1829         `redisplay_text_width_charc_string' instead of
1830         `redisplay_text_width_emchar_string'.
1831         (create_text_block): Modify for <struct rune> change.
1832         (generate_formatted_string_db): Likewise.
1833         (create_string_text_block): Likewise.
1834         (pixel_to_glyph_translation): Likewise.
1835
1836         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
1837         instead of <const Emchar *>.
1838         (x_text_width): Likewise.
1839         (x_output_display_block): Use <Charc_dynarr *> instead
1840         <Emchar_dynarr *>; modify for <structure rune> change.
1841         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
1842         *>.
1843
1844         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
1845         <const Emchar *>; use `charc_string_displayed_columns' instead of
1846         `emchar_string_displayed_columns'.
1847         (tty_output_display_block): Use <Charc_dynarr *> instead of
1848         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
1849         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
1850         (tty_output_charc_dynarr_dynarr): New variable; renamed from
1851         `tty_output_emchar_dynarr_dynarr'.
1852         (tty_output_charc_dynarr): New function; delete
1853         `tty_output_charc_dynarr'.
1854
1855         * redisplay-output.c (compare_runes): Modify for `struct rune'.
1856         (redisplay_output_layout): Use <Charc_dynarr *> instead of
1857         <Emchar_dynarr *> for buf; use
1858         `convert_bufbyte_string_into_charc_dynarr' instead of
1859         `convert_bufbyte_string_into_emchar_dynarr'.
1860
1861         * frame.c (title_string_charc_dynarr): New variable; renamed from
1862         `title_string_emchar_dynarr'.
1863         (generate_title_string): Use `title_string_charc_dynarr' instead
1864         of `title_string_emchar_dynarr'; use
1865         `convert_charc_string_into_malloced_string' instead of
1866         `convert_emchar_string_into_malloced_string'.
1867         (init_frame): Use `title_string_charc_dynarr' instead of
1868         `title_string_emchar_dynarr'.
1869
1870         * console.h:
1871         - Include "character.h".
1872         (struct console_methods): Use <const Charc *> instead of <const
1873         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
1874         <Emchar_dynarr *> in output_string_method.
1875
1876         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
1877         <Emchar_dynarr *>.
1878
1879         * console-stream.c (stream_text_width): Use <const Charc *>
1880         instead of <const Emchar *>.
1881
1882         * character.h (Charc_dynarr): New type.
1883
1884         * char-ucs.h (structure Charc): New structure; define new type
1885         `Charc'.
1886
1887         * char-lb.h (DECODE_CHAR): New inline function.
1888         (encode_char_1): New inline function.
1889         (ENCODE_CHAR): New macro.
1890         (structure Charc): New structure; define new type `Charc'.
1891
1892         * char-1byte.h (Vcharset_control_1): New macro.
1893         (Vcharset_latin_iso8859_1): New macro.
1894         (DECODE_CHAR): New inline function.
1895         (encode_char_1): New inline function.
1896         (ENCODE_CHAR): New macro.
1897         (structure Charc): New structure; define new type `Charc'.
1898
1899         * insdel.c (find_charsets_in_charc_string): New function; delete
1900         `find_charsets_in_emchar_string'.
1901         (charc_string_displayed_columns): New function; delete
1902         `emchar_string_displayed_columns'.
1903         (convert_bufbyte_string_into_charc_dynarr): New function; delete
1904         `convert_bufbyte_string_into_emchar_dynarr'.
1905         (convert_charc_string_into_bufbyte_dynarr): New function; delete
1906         `convert_charc_string_into_bufbyte_dynarr'.
1907         (convert_charc_string_into_malloced_string): New function; delete
1908         `convert_charc_string_into_malloced_string'.
1909
1910         * buffer.h (find_charsets_in_charc_string): New prototype; delete
1911         `find_charsets_in_emchar_string'.
1912         (charc_string_displayed_columns): New prototype; delete
1913         `emchar_string_displayed_columns'.
1914         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
1915         `convert_charc_string_into_bufbyte_dynarr'.
1916         (convert_charc_string_into_malloced_string): New prototype; delete
1917         `convert_charc_string_into_malloced_string'.
1918
1919 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1920
1921         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
1922
1923 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1924
1925         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
1926
1927         * char-ucs.h: Use <short> for <Charset_ID>.
1928
1929         * mule-charset.h, char-1byte.h: Use <unsigned char> for
1930         <Charset_ID>.
1931
1932 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1933
1934         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1935         to 0.16.
1936
1937 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1938
1939         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
1940         variable.
1941         (Qmorohashi_daikanwa): New variable.
1942         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
1943         for `morohashi-daikanwa' attribute.
1944         (Fget_char_attribute): Likewise.
1945         (Fput_char_attribute): Likewise.
1946         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
1947         has the same value of `ideograph-daikanwa'.
1948         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
1949         (vars_of_mule_charset): Setup
1950         `Vcharacter_morohashi_daikanwa_table'.
1951
1952 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1953
1954         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
1955         attributes.
1956         (add_charset_to_list_mapper): Add `key' instead of
1957         `XCHARSET_NAME (value)' to return aliases.
1958
1959 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1960
1961         * mule-charset.c (Vcharacter_ideographic_radical_table): New
1962         variable.
1963         (Vcharacter_ideographic_strokes_table): New variable.
1964         (Qideographic_radical): New variable.
1965         (Qideographic_strokes): New variable.
1966         (Fchar_attribute_alist): Use
1967         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
1968         attribute; use `Vcharacter_ideographic_strokes_table' for
1969         `ideographic-strokes' attribute.
1970         (Fget_char_attribute): Likewise.
1971         (Fput_char_attribute): Likewise.
1972         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
1973         `ideographic-strokes'.
1974         (vars_of_mule_charset): Setup
1975         `Vcharacter_ideographic_radical_table' and
1976         `Vcharacter_ideographic_strokes_table'.
1977
1978 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1979
1980         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
1981         (Qtotal_strokes): New variable.
1982         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
1983         `total-strokes' attribute.
1984         (Fget_char_attribute): Likewise.
1985         (Fput_char_attribute): Likewise.
1986         (syms_of_mule_charset): Add new symbol `total-strokes'.
1987         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
1988
1989 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1990
1991         * mule-charset.c (Vcharacter_decomposition_table): New variable.
1992         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
1993         are found.
1994         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
1995         `->decomposition' attribute.
1996         (Fput_char_attribute): Likewise.
1997         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
1998
1999 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2000
2001         * mule-charset.c (decoding_table_check_elements): New function.
2002         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
2003
2004 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2005
2006         * mule-charset.c (Fset_charset_mapping_table): Use
2007         `put_char_ccs_code_point'.
2008
2009 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2010
2011         * mule-charset.c (decoding_table_put_char): New inline function.
2012         (put_char_ccs_code_point): Use `decoding_table_put_char'.
2013
2014 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2015
2016         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
2017         (XCHARSET_BYTE_SIZE): New macro.
2018         (decoding_table_remove_char): New inline function.
2019         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
2020         `decoding_table_remove_char'.
2021         (remove_char_ccs): Use `decoding_table_remove_char'.
2022         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
2023
2024 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2025
2026         * mule-charset.c (Vcharacter_name_table): New variable.
2027         (Qname): New variable.
2028         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
2029         attribute.
2030         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
2031         `Vcharacter_name_table' for `name' attribute.
2032         (Fremove_char_attribute): Use function `remove_char_ccs'.
2033         (put_char_ccs_code_point): New function.
2034         (remove_char_ccs): New function.
2035         (syms_of_mule_charset): Add new symbol `name'.
2036         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
2037
2038 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2039
2040         * mule-charset.c (make_byte_table): Add new argument `older'.
2041         (make_char_id_table): Likewise.
2042         (copy_char_id_table): Comment out because it is not used.
2043         (put_char_id_table): Modify for `make_byte_table'.
2044         (Fput_char_attribute): Make encoding_table as older object;
2045         inherit older bit of `Vcharacter_composition_table'.
2046         (mark_charset): Don't mark `cs->encoding_table'.
2047         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
2048         normal object; make `Vcharacter_composition_table' as an older
2049         object; delete staticpro for `Vcharacter_composition_table'; make
2050         `Vcharacter_variant_table' as a normal object.
2051
2052         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
2053         (mark_object): Don't check older object in UTF-2000.
2054
2055         * lrecord.h (struct lrecord_header): Add new member `older' in
2056         UTF-2000.
2057         (set_lheader_implementation): Setup `SLI_header->older' in
2058         UTF-2000.
2059         (set_lheader_older_implementation): New macro in UTF-2000.
2060         (OLDER_RECORD_P): New macro in UTF-2000.
2061         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
2062         (alloc_older_lcrecord): New prototype in UTF-2000.
2063         (alloc_older_lcrecord_type): New macro in UTF-2000.
2064
2065 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2066
2067         * mule-charset.c (byte_table_description): Use
2068         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
2069         (char_id_table_description): Delete bogus `, 1'.
2070         (Fget_char_attribute): Refer encoding_table of each coded-charset
2071         to get value of coded-charset attribute of a character.
2072         (Fput_char_attribute): Use `make_older_vector' instead of
2073         `make_vector'; use encoding_table of each coded-charset to store
2074         value of coded-charset attribute of a character.
2075         (Fremove_char_attribute): Use encoding_table of each coded-charset
2076         to store value of coded-charset attribute of a character.
2077         (mark_charset): Mark `cs->encoding_table'; don't mark
2078         `cs->decoding_table'.
2079         (charset_description): Add description of new member
2080         `encoding_table'.
2081         (make_charset): Initialize `encoding_table'.
2082
2083         * char-ucs.h (struct Lisp_Charset): Add new member
2084         `encoding_table'.
2085         (CHARSET_ENCODING_TABLE): New macro.
2086         (XCHARSET_ENCODING_TABLE): New macro.
2087         (charset_code_point): New implementation.
2088         (encode_char_1): Likewise.
2089
2090         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
2091         (disksave_object_finalization_1): Call finalizers of
2092         `all_older_lcrecords' in UTF-2000.
2093         (make_older_vector): New function in UTF-2000.
2094         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
2095         UTF-2000.
2096
2097         * lisp.h (make_older_vector): New prototype in UTF-2000.
2098
2099 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2100
2101         * lrecord.h (enum lrecord_type): Rename
2102         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
2103
2104         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
2105         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
2106         `get_char_code_table'.
2107
2108         * mule-charset.c (mark_char_id_table): Renamed from
2109         `mark_char_code_table'.
2110         (char_id_table_equal): Renamed from `char_code_table_equal'.
2111         (char_id_table_hash): Renamed from `char_code_table_hash'.
2112         (make_char_id_table): Renamed from `make_char_code_table'.
2113         (copy_char_id_table): Renamed from `copy_char_code_table'.
2114         (get_char_id_table): Renamed from `get_char_code_table'.
2115         (put_char_id_table): Renamed from `put_char_code_table'.
2116         (to_char_id): Renamed from `to_char_code'.
2117
2118         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
2119         `Lisp_Char_Code_Table'.
2120         (char_id_table): Renamed from `char_code_table'.
2121         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
2122         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
2123         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
2124         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
2125         (get_char_id_table): Renamed from `get_char_code_table'.
2126
2127 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2128
2129         * lrecord.h (enum lrecord_type): Rename
2130         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
2131
2132         * mule-charset.c (mark_byte_table): Renamed from
2133         `mark_char_byte_table'.
2134         (byte_table_equal): Renamed from `char_byte_table_equal'.
2135         (byte_table_hash): Renamed from `byte_table_hash'.
2136         (make_byte_table): Renamed from `make_byte_table'.
2137         (copy_byte_table): Renamed from `copy_char_byte_table'.
2138
2139         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
2140         `Lisp_Char_Byte_Table'.
2141         (byte_table): Renamed from `char_byte_table'.
2142         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
2143         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
2144         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
2145         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
2146
2147 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2148
2149         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
2150         (dfc_convert_to_internal_format): Likewise.
2151         
2152         * text-coding.c (Fcoding_system_canonical_name_p): New function.
2153         * text-coding.c (Fcoding_system_alias_p): New function.
2154         * text-coding.c (Fcoding_system_aliasee): New function.
2155         * text-coding.c (append_suffix_to_symbol): New function.
2156         * text-coding.c (dangling_coding_system_alias_p): New function.
2157         * text-coding.c (Ffind_coding_system):
2158         * text-coding.c (Fcopy_coding_system):
2159         * text-coding.c (encode_coding_no_conversion):
2160         * text-coding.c (syms_of_file_coding):
2161         * text-coding.c (vars_of_file_coding):
2162         Rewrite coding system alias code.
2163         Allow nested aliases, like symbolic links.
2164         Allow redefinition of coding system aliases.
2165         Prevent existence of dangling coding system aliases.
2166         Eliminate convert_to_external_format.
2167         Eliminate convert_to_internal_format.
2168         
2169         * text-coding.c: Change enum eol_type to eol_type_t.
2170
2171 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2172
2173         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
2174         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
2175
2176         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
2177         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
2178
2179 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2180
2181         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
2182         `ideograph-daikanwa'.
2183
2184         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
2185         (Vcharset_ucs_bmp): Likewise.
2186         (Vcharset_mojikyo): Add new extern variable definition.
2187         (Vcharset_latin_iso8859_2): Deleted because it is not used.
2188         (Vcharset_latin_iso8859_3): Likewise.
2189         (Vcharset_latin_iso8859_4): Likewise.
2190         (Vcharset_latin_iso8859_9): Likewise.
2191         (Vcharset_latin_viscii_lower): Likewise.
2192         (Vcharset_latin_viscii_upper): Likewise.
2193         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
2194         `mojikyo' code-point is used to decode.
2195         (encode_char_2): New function [to convert `mojikyo' code-point to
2196         Mojikyo font encoding].
2197         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
2198         (breakup_char_1): Likewise.
2199         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
2200
2201 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2202
2203         * text-coding.c (Fmake_coding_system): Add document about
2204         `disable-composition' property.
2205
2206 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2207
2208         * text-coding.c (Qdisable_composition): New variable; delete
2209         `Qcomposite'.
2210         (Fmake_coding_system): Add new property `disable-composite';
2211         delete property `composite'.
2212         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
2213         instead of `!CODING_SYSTEM_COMPOSITE'.
2214         (syms_of_file_coding): Add new symbol `disable-composition';
2215         delete symbol `composite'.
2216
2217         * file-coding.h (struct Lisp_Coding_System): Add
2218         `disable_composition'; delete `enable_composition'.
2219         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
2220         `CODING_SYSTEM_COMPOSITE'.
2221         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
2222         `XCODING_SYSTEM_COMPOSITE'.
2223
2224 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2225
2226         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2227         to 0.15.
2228
2229 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2230
2231         * text-coding.c (Qcomposite): New variable.
2232         (Fmake_coding_system): Add new property `composite'.
2233         (struct decoding_stream): Add `combined_char_count',
2234         `combined_chars' and `combining_table' in UTF-2000.
2235         (COMPOSE_FLUSH_CHARS): New macro.
2236         (COMPOSE_ADD_CHAR): New macro.
2237         (reset_decoding_stream): Reset `str->combined_char_count' and
2238         `str->combining_table' in UTF-2000.
2239         (decode_coding_iso2022): Modify for character-decomposition.
2240         (syms_of_file_coding): Add new symbol `composite'.
2241
2242 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2243
2244         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
2245         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
2246         of `Vcharacter_composition_table' if `->decomposition' property
2247         has only 1 element.
2248         (Qlatin_tcvn5712): New variable.
2249         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
2250         (complex_vars_of_mule_charset): Add new coded-charset
2251         `latin-tcvn5712'.
2252
2253         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
2254
2255 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2256
2257         * file-coding.h (struct Lisp_Coding_System): Add
2258         `enable_composition'.
2259         (CODING_SYSTEM_COMPOSITE): New macro.
2260         (XCODING_SYSTEM_COMPOSITE): New macro.
2261
2262 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
2263
2264         * mule-canna.c (c2mu): Fix problem with UTF-2000.
2265
2266 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
2267
2268         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
2269         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
2270
2271 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
2272
2273         * mule-charset.c (Vcharset_mojikyo): New variable.
2274         (Fdefine_char): Don't use coded-charset which does not have
2275         non-builtin character range to allocate character-id.
2276         (Qmojikyo): New variable.
2277         (syms_of_mule_charset): Add new symbol `mojikyo'.
2278         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
2279
2280         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
2281         (LEADING_BYTE_MOJIKYO): New macro.
2282         (MIN_CHAR_MOJIKYO): New macro.
2283         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
2284         (MAX_CHAR_MOJIKYO): New macro.
2285
2286 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
2287
2288         * mule-charset.c (remove_char_attribute): Fixed.
2289
2290 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
2291
2292         * mule-charset.c (remove_char_attribute): New function.
2293         (Fremove_char_attribute): New function.
2294         (encode_builtin_char_1): Comment out builtin-support for
2295         greek-iso8859-7 and cyrillic-iso8859-5.
2296         (Fdecode_char): Check `code' is an integer.
2297         (syms_of_mule_charset): Add `remove-char-attribute'.
2298         (MIN_CHAR_GREEK): Deleted.
2299         (MAX_CHAR_GREEK): Likewise.
2300         (MIN_CHAR_CYRILLIC): Likewise.
2301         (MAX_CHAR_CYRILLIC): Likewise.
2302         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
2303         MAX_CHAR_GREEK for `greek-iso8859-7'.
2304
2305         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
2306         (MAX_CHAR_GREEK): Likewise.
2307         (MIN_CHAR_CYRILLIC): Likewise.
2308         (MAX_CHAR_CYRILLIC): Likewise.
2309
2310 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
2311
2312         * mule-charset.c (Fdefine_char): Fix problem when new code-point
2313         format is used without `ucs' property.
2314         (Fdecode_char): Fix problem with GR representation.
2315         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
2316         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
2317
2318 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
2319
2320         * mule-charset.c (make_builtin_char): New function.
2321         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
2322         (Fset_charset_mapping_table): Modify for new representation of
2323         code-point.
2324         (Fdecode_char): New function.
2325         (syms_of_mule_charset): Add new builtin function `decode-char' in
2326         UTF-2000.
2327
2328         * char-ucs.h (make_builtin_char): New prototype.
2329         (DECODE_CHAR): New inline function.
2330         (MAKE_CHAR): Use `DECODE_CHAR'.
2331
2332 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
2333
2334         * text-coding.c (parse_charset_conversion_specs): Use
2335         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
2336         `XCHARSET_TYPE'.
2337         (iso2022_designate): Likewise.
2338
2339         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
2340         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
2341
2342         * mule-charset.c (Vcharset_ucs): New variable.
2343         (print_charset): Change design; use `CHARSET_CHARS' and
2344         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
2345         (make_charset): Change signature to specify `chars' and
2346         `dimension' instead of `type'.
2347         (range_charset_code_point): Modify for 256^n-set.
2348         (encode_builtin_char_1): Encode as `ucs' in default.
2349         (Fmake_charset): Modify for `make_charset'.
2350         (Fmake_reverse_direction_charset): Likewise.
2351         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
2352         UTF-2000.
2353         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
2354         for `make_charset'.
2355
2356         * char-ucs.h (Vcharset_ucs): New variable.
2357         (LEADING_BYTE_UCS): New macro.
2358         (struct Lisp_Charset): Delete `type'; change type of `dimension'
2359         and `chars' to `unsigned short' from `unsigned int'.
2360         (CHARSET_TYPE): Deleted.
2361         (XCHARSET_TYPE): Deleted.
2362
2363 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
2364
2365         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
2366
2367         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
2368         (ENCODE_CHAR): New macro.
2369
2370 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
2371
2372         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2373         to 0.14 (Kawachi-Katakami).
2374
2375 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
2376
2377         * text-coding.c (char_encode_shift_jis): Modify for
2378         `charset_code_point'.
2379         (char_encode_iso2022): Likewise.
2380
2381         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
2382         (integer) instead of list of <Lisp_Object>s (integers) as the
2383         format of code-point of a coded-charset.
2384         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
2385         (encode_builtin_char_1): New function; delete
2386         `split_builtin_char'.
2387         (charset_code_point): Return <int> instead of <Lisp_Object>.
2388         (Fsplit_char): Don't use `SPLIT_CHAR'.
2389
2390         * char-ucs.h (encode_builtin_char_1): New prototype; delete
2391         prototype for `split_builtin_char'.
2392         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
2393         (charset_code_point): Likewise.
2394         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
2395         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
2396
2397 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
2398
2399         * mule-charset.c (complex_vars_of_mule_charset): Don't define
2400         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
2401
2402 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2403
2404         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
2405
2406         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
2407         (MAX_CHAR_OBS_94x94): Deleted.
2408
2409 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2410
2411         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
2412
2413         * char-ucs.h (MAX_CHAR_BMP): New macro.
2414
2415 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
2416
2417         * text-coding.c: Sync with r21-2-24.
2418
2419 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
2420
2421         * file-coding.c: Modify for UTF-2000.
2422
2423 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
2424
2425         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2426         to 0.13 (Takaida).
2427
2428 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
2429
2430         * mule-charset.c (split_builtin_char): Delete builtin support for
2431         `katakana-jisx0201'.
2432         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
2433         BMP area in builtin representation.
2434
2435         * char-ucs.h (MAKE_CHAR): Delete builtin support for
2436         `Vcharset_katakana_jisx0201'.
2437
2438 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
2439
2440         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
2441         (Qisolated): New variable.
2442         (Qinitial): New variable.
2443         (Qmedial): New variable.
2444         (Qfinal): New variable.
2445         (Qvertical): New variable.
2446         (Qsmall): New variable.
2447         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
2448         `Qvertical' and `Qsmall'.
2449         (Qmojikyo_pj_[1 .. 21]): New variable.
2450         (syms_of_mule_charset): Add new symbols `isolated', `initial',
2451         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
2452         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
2453         .. 21]'.
2454
2455 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
2456
2457         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
2458         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
2459         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
2460
2461 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
2462
2463         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
2464         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
2465         BMP.
2466         (Qjapanese_jisx0208_1990): New variable.
2467         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
2468         (complex_vars_of_mule_charset): Add new coded-charset
2469         `japanese-jisx0208-1990'.
2470
2471         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
2472         (MIN_CHAR_JIS_X0208_1990): New macro.
2473         (MAX_CHAR_JIS_X0208_1990): New macro.
2474
2475 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2476
2477         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
2478         coded-charset is not found.
2479
2480 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2481
2482         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
2483         (Fdefine_char): Use `Fmake_char'.
2484
2485 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2486
2487         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
2488         (Vcharset_hiragana_jisx0208): Deleted.
2489         (Vcharset_katakana_jisx0208): Deleted.
2490         (Qideograph_daikanwa): New variable.
2491         (Qhiragana_jisx0208): Deleted.
2492         (Qkatakana_jisx0208): Deleted.
2493         (split_builtin_char): Split `ideograph-daikanwa'.
2494         (Fsplit_char): New implementation for UTF-2000.
2495         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
2496         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
2497         (complex_vars_of_mule_charset): Add new coded-charset
2498         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
2499         `katakana-jisx0208'.
2500
2501         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
2502         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
2503         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
2504         (MIN_CHAR_DAIKANWA): New macro.
2505         (MAX_CHAR_DAIKANWA): New macro.
2506
2507 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2508
2509         * data.c (Fstring_to_number): Don't recognize floating point if
2510         base is not 10.
2511
2512 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2513
2514         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
2515
2516 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2517
2518         * mule-charset.c (Qsquare): New variable.
2519         (to_char_code): Add `Qsquare'.
2520         (syms_of_mule_charset): Add new symbol `square'.
2521
2522 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2523
2524         * mule-charset.c (Qcircle): New variable.
2525         (to_char_code): Add `Qcircle'.
2526         (syms_of_mule_charset): Add new symbol `circle'.
2527
2528 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2529
2530         * mule-charset.c (Qfont): New variable.
2531         (to_char_code): Add `Qfont'.
2532         (syms_of_mule_charset): Add new symbol `font'.
2533
2534 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2535
2536         * mule-charset.c (Qsub): New variable.
2537         (to_char_code): Add `Qsub'.
2538         (syms_of_mule_charset): Add new symbol `sub'.
2539
2540 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2541
2542         * mule-charset.c (Fput_char_attribute): Convert each element of
2543         VALUE to GL position if ATTRIBUTE is a GR-set,
2544
2545 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2546
2547         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
2548         coded-charset is a GR-set.
2549
2550 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2551
2552         * mule-charset.c (Fput_char_attribute): Check each element of
2553         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
2554
2555 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2556
2557         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
2558         UTF-2000.
2559         (Qethiopic_ucs): New variable in UTF-2000.
2560         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
2561         (complex_vars_of_mule_charset): Add new coded-charset
2562         `ethiopic-ucs' in UTF-2000.
2563
2564         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
2565         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
2566         9)'.
2567         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
2568         10)'.
2569         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
2570
2571 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
2572
2573         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
2574         `ascii'.
2575
2576 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2577
2578         * mule-charset.c (Vcharacter_variant_table): New variable.
2579         (Q_ucs): New variable.
2580         (Fchar_variants): New function.
2581         (Fput_char_attribute): Register `->ucs' value to
2582         `Vcharacter_variant_table'.
2583         (syms_of_mule_charset): Add new function `char-variants' and new
2584         symbol `->ucs'.
2585         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
2586
2587 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2588
2589         * mule-charset.c (get_char_code_table): Allow negative character
2590         code.
2591         (put_char_code_table): Likewise.
2592         (Vcharacter_composition_table): New variable.
2593         (Q_decomposition): New variable.
2594         (Qwide): New variable.
2595         (Qnarrow): New variable.
2596         (Qcompat): New variable.
2597         (QnoBreak): New variable.
2598         (Qsuper): New variable.
2599         (Qfraction): New variable.
2600         (to_char_code): New function.
2601         (Fget_composite_char): New function.
2602         (Fput_char_attribute): Register `->decomposition' value to
2603         `Vcharacter_composition_table'.
2604         (syms_of_mule_charset): Add new function `get-composite-char', new
2605         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
2606         `super' and `fraction'.
2607         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
2608
2609 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2610
2611         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
2612         character; copy the return value.
2613
2614 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2615
2616         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
2617
2618         * mule-charset.c (range_charset_code_point): Must use make_int.
2619         (split_builtin_char): New function.
2620
2621 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2622
2623         * mule-charset.c (char_byte_table): Change name from
2624         "char-code-table" to "char-byte-table".
2625         (mark_char_code_table): New function.
2626         (char_code_table_equal): New function.
2627         (char_code_table_hash): New function.
2628         (char_code_table_description): New constant.
2629         (char_code_table): New type.
2630         (make_char_code_table): New function.
2631         (copy_char_code_table): New function.
2632         (get_char_code_table): Modify for `char_code_table' type.
2633         (put_char_code_table): Likewise.
2634         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
2635         (Kashiwara).
2636
2637         * char-ucs.h (char_code_table): New type.
2638         (XCHAR_CODE_TABLE): New macro.
2639         (XSETCHAR_CODE_TABLE): New macro.
2640         (CHAR_CODE_TABLE_P): New macro.
2641         (GC_CHAR_CODE_TABLE_P): New macro.
2642         (struct Lisp_Char_Code_Table): New structure.
2643
2644 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2645
2646         * mule-charset.c (Fmake_charset): Setup byte_offset for
2647         {94|96}^n-set.
2648
2649 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2650
2651         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
2652         character.
2653
2654 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2655
2656         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
2657         is found.
2658
2659 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2660
2661         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
2662         charset, it is regarded as a charset.
2663         (put_char_attribute): New function in UTF-2000.
2664         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
2665         charset, mapping-table of the charset is modified.
2666         (Fdefine_char): New function in UTF-2000.
2667         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
2668         `Fput_char_attribute'.
2669         (syms_of_mule_charset): Add new function `define-char' and new
2670         symbol `ucs' in UTF-2000.
2671         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
2672
2673 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
2674
2675         * mule-charset.c (Fcharset_name): Define `byte_offset' in
2676         non-UTF-2000 configuration.
2677
2678 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
2679
2680         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
2681         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
2682
2683         * mule-charset.c (mark_charset): `cs->encoding_table' has been
2684         deleted.
2685         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
2686         (Fset_charset_mapping_table): Likewise.
2687
2688         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
2689         (CHARSET_ENCODING_TABLE): Delete.
2690         (XCHARSET_ENCODING_TABLE): Delete.
2691         (charset_code_point): New interface.
2692
2693 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
2694
2695         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
2696         instead of `charset_get_byte1' and `charset_get_byte2'.
2697
2698         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
2699         (charset_get_byte2): Deleted.
2700
2701 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
2702
2703         * char-ucs.h (SPLIT_CHAR): New inline function.
2704         (breakup_char_1): Use `SPLIT_CHAR'.
2705
2706         * mule-charset.c (range_charset_code_point): New function.
2707         (charset_code_point): New function.
2708
2709         * char-ucs.h (range_charset_code_point): New interface.
2710         (breakup_char_1): Use `range_charset_code_point'.
2711
2712 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
2713
2714         * mule-charset.c (Fmake_charset): Delete unused local variable
2715         `code_offset'.
2716
2717         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
2718         (breakup_char_1): Find a charset and code-point in
2719         `Vcharacter_attribute_table'.
2720
2721 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
2722
2723         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2724         to 0.10 (Yao).
2725
2726 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
2727
2728         * mule-charset.c (Vcharacter_attribute_table): New variable.
2729         (Fchar_attribute_alist): New function.
2730         (Fget_char_attribute): New function.
2731         (Fput_char_attribute): New function.
2732         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
2733         too.
2734         (syms_of_mule_charset): Add new function `char-attribute-alist',
2735         `get-char-attribute' and `put-char-attribute'.
2736         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
2737
2738 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
2739
2740         * mule-charset.c (Fmake_charset): Just use
2741         `get_unallocated_leading_byte'.
2742
2743         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
2744         sets; don't use final-byte based number for private sets.
2745
2746 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2747
2748         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
2749         integer.
2750
2751 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2752
2753         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2754         to 0.9.
2755
2756 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2757
2758         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
2759         of `CHAR_LEADING_BYTE' in UTF-2000.
2760
2761         * insdel.c (find_charsets_in_bufbyte_string): Use
2762         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
2763         (find_charsets_in_emchar_string): Likewise.
2764
2765         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
2766         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
2767
2768         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
2769         (CHAR_CHARSET_ID): New macro.
2770
2771 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2772
2773         * chartab.c (get_char_table): Don't use type `Charset_ID' for
2774         charset-id - MIN_LEADING_BYTE.
2775         (put_char_table): Likewise.
2776
2777 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2778
2779         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
2780         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
2781         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
2782         (CHARSET_ID_OFFSET): New macro.
2783         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
2784         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
2785         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
2786         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
2787         4).
2788         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
2789         5).
2790         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
2791         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
2792         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
2793         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
2794         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
2795
2796 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2797
2798         * mule-charset.c (next_allocated_leading_byte): New variable in
2799         UTF-2000.
2800         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
2801         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
2802         (get_unallocated_leading_byte): Simply use
2803         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
2804         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
2805         UTF-2000.
2806
2807         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
2808         (MAX_LEADING_BYTE_PRIVATE): New macro.
2809         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
2810         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
2811
2812 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2813
2814         * mule-charset.c (Fmake_charset): Allocate final-byte based
2815         charset-id for 94-set, 96-set and 94x94-set.
2816
2817 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2818
2819         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
2820         ambiguous `else'.
2821         (Fmake_charset): Likewise.
2822         (complex_vars_of_mule_charset): Modify the font registry of
2823         `ucs-bmp' not to match `Ethiopic-Unicode'.
2824
2825 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2826
2827         * mule-charset.c (complex_vars_of_mule_charset): Add font
2828         registory of `ucs-bmp'.
2829
2830 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2831
2832         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
2833         coded-charsets in `default-coded-charset-priority-list' when
2834         breaking up a character.
2835
2836         * mule-charset.c (Vcharset_latin_viscii): New variable.
2837         (Qlatin_viscii): New variable.
2838         (make_charset): Don't use `decoding_table'.
2839         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
2840         byte_offset.
2841         (Fset_charset_mapping_table): New implementation.
2842         (syms_of_mule_charset): Add new symbol `latin-viscii'.
2843         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
2844         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
2845         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
2846         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
2847         charset `latin_viscii'.
2848
2849         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
2850         (CHARSET_TYPE_94X94): Change to 1 from 2.
2851         (CHARSET_TYPE_96): Change to 2 from 1.
2852         (CHARSET_TYPE_128): New macro.
2853         (CHARSET_TYPE_128X128): Change to 5 from 4.
2854         (CHARSET_TYPE_256): New macro.
2855         (CHARSET_TYPE_256X256): Change to 7 from 5.
2856         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
2857
2858 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2859
2860         * text-coding.c (char_encode_shift_jis): Refer
2861         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
2862         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
2863
2864         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
2865         (char_byte_table_equal): New function in UTF-2000.
2866         (char_byte_table_hash): New function in UTF-2000.
2867         (char_byte_table_description): New constant in UTF-2000.
2868         (char_byte_table): New type in UTF-2000.
2869         (make_char_byte_table): New function in UTF-2000.
2870         (copy_char_byte_table): New function in UTF-2000.
2871         (make_char_code_table): New macro in UTF-2000.
2872         (get_char_code_table): New function in UTF-2000.
2873         (put_char_code_table): New function in UTF-2000.
2874         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
2875         (charset_description): Add setting in UTF-2000.
2876         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
2877         `CHARSET_TO_BYTE1_TABLE(cs)'.
2878         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
2879         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
2880         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
2881         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
2882         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
2883         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
2884         `CHARSET_TO_BYTE2_TABLE(cs)'.
2885
2886         * char-ucs.h (char_byte_table): New type.
2887         (XCHAR_BYTE_TABLE): New macro.
2888         (XSETCHAR_BYTE_TABLE): New macro.
2889         (CHAR_BYTE_TABLE_P): New macro.
2890         (GC_CHAR_BYTE_TABLE_P): New macro.
2891         (struct Lisp_Char_Byte_Table): New structure.
2892         (get_char_code_table): New interface.
2893         (Emchar_to_byte_table): Deleted.
2894         (get_byte_from_character_table): Deleted.
2895         (struct Lisp_Charset): Add `encoding_table'; delete
2896         `to_byte1_table' and `to_byte2_table'.
2897         (CHARSET_ENCODING_TABLE): New macro.
2898         (CHARSET_TO_BYTE1_TABLE): Deleted.
2899         (CHARSET_TO_BYTE2_TABLE): Deleted.
2900         (XCHARSET_ENCODING_TABLE): New macro.
2901         (XCHARSET_TO_BYTE1_TABLE): Deleted.
2902         (XCHARSET_TO_BYTE2_TABLE): Deleted.
2903
2904 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
2905
2906         * mule-charset.c (syms_of_mule_charset): Delete charset alias
2907         `vietnamese-viscii-*'.
2908
2909 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
2910
2911         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
2912         (Qvietnamese_viscii_upper): New variable.
2913         (Fdefine_charset_alias): New function.
2914         (syms_of_mule_charset): Add new function `define-charset-alias'.
2915         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
2916         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
2917         `latin-viscii-*'.
2918
2919 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
2920
2921         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
2922         (MAX_CHAR_OBS_94x94): New macro.
2923         (breakup_char_1): Support obsolete XEmacs-UCS private code space
2924         for 94x94 sets.
2925
2926         * mule-charset.c (put_byte_from_character_table): Change unit size
2927         from 128 to 256.
2928         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
2929         not defined.
2930         (Fmake_reverse_direction_charset): Modify dummy argument of
2931         `make_charset' for non-UTF-2000 environment.
2932
2933 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2934
2935         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
2936
2937         * mule-charset.c (destroy_byte_from_character_table): New macro.
2938         (latin_jisx0201_to_ucs): Deleted.
2939         (latin_iso8859_2_to_ucs): Deleted.
2940         (latin_iso8859_3_to_ucs): Deleted.
2941         (latin_iso8859_4_to_ucs): Deleted.
2942         (latin_iso8859_9_to_ucs): Deleted.
2943         (latin_viscii_lower_to_ucs): Deleted.
2944         (latin_viscii_upper_to_ucs): Deleted.
2945         (mark_charset): Mark `cs->decoding_table'.
2946         (Fcharset_mapping_table): Fix DOC-string.
2947         (Fset_charset_mapping_table): New function.
2948         (syms_of_mule_charset): Add nwe function
2949         `set-charset-mapping-table'.
2950         (complex_vars_of_mule_charset): Don't setup and use
2951         `latin_*_to_ucs'.
2952
2953 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2954
2955         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
2956         charset.
2957
2958 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2959
2960         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
2961         (Vcharset_katakana_jisx0208): New variable.
2962         (Qhiragana_jisx0208): New variable.
2963         (Qkatakana_jisx0208): New variable.
2964         (make_charset): Add new argument `byte_offset'.
2965         (charset_get_byte1): Modify for new coded-charset definition; use
2966         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
2967         `XCHARSET_BYTE_OFFSET'.
2968         (Fmake_charset): Modify for `make_charset'.
2969         (Fmake_reverse_direction_charset): Likewise.
2970         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
2971         `katakana-jisx0208'.
2972         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
2973         `.'  in font registry of charset `katakana-jisx0201',
2974         `latin-jisx0201', `vietnamese-viscii-lower' and
2975         `vietnamese-viscii-upper'; modify DOC-string of charset
2976         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
2977         registry of charset `japanese-jisx0208' not to use font for JIS
2978         X0208:1990; add new charset `hiragana-jisx0208' and
2979         `katakana-jisx0208'.
2980
2981         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
2982         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
2983         (struct Lisp_Charset): Add `byte_offset'.
2984         (CHARSET_BYTE_OFFSET): New macro.
2985         (XCHARSET_UCS_MIN): New macro.
2986         (XCHARSET_UCS_MAX): New macro.
2987         (XCHARSET_CODE_OFFSET): New macro.
2988         (XCHARSET_BYTE_OFFSET): New macro.
2989         (MIN_CHAR_HIRAGANA): New macro.
2990         (MAX_CHAR_HIRAGANA): New macro.
2991         (MIN_CHAR_KATAKANA): New macro.
2992         (MAX_CHAR_KATAKANA): New macro.
2993         (MAKE_CHAR): Modify for new coded-charset definition; use
2994         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
2995         `XCHARSET_BYTE_OFFSET'.
2996
2997 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
2998
2999         * mule-charset.c (CHAR96): Deleted.
3000         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
3001         <Lisp_Object>.
3002         (latin_iso8859_2_to_ucs): Likewise.
3003         (latin_iso8859_3_to_ucs): Likewise.
3004         (latin_iso8859_4_to_ucs): Likewise.
3005         (latin_iso8859_9_to_ucs): Likewise.
3006         (latin_viscii_lower_to_ucs): Likewise.
3007         (latin_viscii_upper_to_ucs): Likewise.
3008         (latin_tcvn5712_to_ucs): Commented out.
3009         (make_charset): Change type of argument `decoding_table' from
3010         <Emchar*> to <Lisp_Object> [vector of characters].
3011         (Fmake_charset): Modify for `make_charset'.
3012         (Fmake_reverse_direction_charset): Likewise.
3013         (Fcharset_mapping_table): New function in UTF-2000.
3014         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
3015         UTF-2000.
3016         (complex_vars_of_mule_charset): Modify for type change of
3017         `*_to_ucs'; modify for `make_charset'.
3018
3019         * char-ucs.h (struct Lisp_Charset): Change type of
3020         `decoding_table' from <Emchar*> to <Lisp_Object>.
3021         (MAKE_CHAR): Modify for new specification of `decoding_table'.
3022
3023 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
3024
3025         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
3026         error with non-UTF-2000-Mule.
3027
3028 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
3029
3030         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
3031         in lisp again].
3032         (Vcharset_chinese_cns11643_4): Likewise.
3033         (Vcharset_chinese_cns11643_5): Likewise.
3034         (Vcharset_chinese_cns11643_6): Likewise.
3035         (Vcharset_chinese_cns11643_7): Likewise.
3036         (Qchinese_cns11643_3): Likewise.
3037         (Qchinese_cns11643_4): Likewise.
3038         (Qchinese_cns11643_5): Likewise.
3039         (Qchinese_cns11643_6): Likewise.
3040         (Qchinese_cns11643_7): Likewise.
3041         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
3042         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
3043         and `chinese-cns11643-7' to lisp/mule/chinese.el.
3044         (complex_vars_of_mule_charset): Likewise.
3045
3046 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3047
3048         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
3049         96-set.
3050         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
3051         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
3052
3053 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
3054
3055         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
3056         0xFF60.
3057         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
3058         (breakup_char_1): Likewise.
3059
3060         * text-coding.c (char_encode_iso2022): Keep designated charsets if
3061         one of them includes the specified character.
3062
3063 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3064
3065         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
3066
3067 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3068
3069         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
3070
3071 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3072
3073         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
3074         definition for non-UTF-2000 Mule.
3075         (latin_iso8859_3_to_ucs): Likewise.
3076         (latin_iso8859_4_to_ucs): Likewise.
3077         (latin_iso8859_9_to_ucs): Likewise.
3078         (latin_jisx0201_to_ucs): Likewise.
3079         (MIN_CHAR_THAI): Likewise.
3080         (MAX_CHAR_THAI): Likewise.
3081         (MIN_CHAR_GREEK): Likewise.
3082         (MAX_CHAR_GREEK): Likewise.
3083         (MIN_CHAR_HEBREW): Likewise.
3084         (MAX_CHAR_HEBREW): Likewise.
3085         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
3086         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
3087         (MIN_CHAR_CYRILLIC): Likewise.
3088         (MAX_CHAR_CYRILLIC): Likewise.
3089
3090 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3091
3092         * char-ucs.h (breakup_char_1): Use
3093         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
3094         thai-tis620 and katakana-jisx0201 area.
3095
3096 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3097
3098         * char-ucs.h (breakup_char_1): Use
3099         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
3100         area.
3101
3102         * text-coding.c (reset_encoding_stream): Fixed.
3103         (char_encode_ucs4): Delete `& 255'.
3104
3105         * char-ucs.h (breakup_char_1): Use
3106         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
3107
3108 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3109
3110         * file-coding.c (Fmake_coding_system): Don't set up
3111         `codesys->fixed.size'.
3112         (encode_coding_no_conversion): Don't refer
3113         `str->codesys->fixed.size'.
3114
3115 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3116
3117         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
3118         (latin_a_char_to_byte1): Deleted.
3119         (latin_a_char_to_byte2): Deleted.
3120
3121 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3122
3123         * mule-charset.c (make_charset): Add new argument `ucs_min',
3124         `ucs_max' and `code_offset'.
3125         (charset_get_byte1): New implementation [delete specific charset
3126         depended implementations].
3127         (Fmake_charset): Modify for `make_charset'.
3128         (Fmake_reverse_direction_charset): Likewise.
3129         (complex_vars_of_mule_charset): Likewise.
3130
3131         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
3132         `code_offset'.
3133         (CHARSET_UCS_MIN): New macro.
3134         (CHARSET_UCS_MAX): New macro.
3135         (CHARSET_CODE_OFFSET): New macro.
3136         (MAKE_CHAR): Delete charset depended definitions [except
3137         katakana-jisx0201].
3138
3139 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
3140
3141         * char-ucs.h (breakup_char_1): Use
3142         `Vdefault_coded_charset_priority_list' for C0-Controls,
3143         Basic-Latin, C1-Controls and Latin-1-Supplement area.
3144
3145 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3146
3147         * char-ucs.h (charset_get_byte1): New function.
3148         (XCHARSET_GET_BYTE1): Deleted.
3149         (charset_get_byte2): New function.
3150         (XCHARSET_GET_BYTE2): Deleted.
3151         (Vdefault_coded_charset_priority_list): New external variable.
3152         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
3153         `Vdefault_preferred_coded_charset_list'.
3154
3155         * mule-charset.c (charset_get_byte1): New function.
3156         (charset_get_byte2): New function.
3157         (Vdefault_coded_charset_priority_list): New variable.
3158         (vars_of_mule_charset): Add new variable
3159         `default-coded-charset-priority-list'.
3160
3161 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3162
3163         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
3164         (XCHARSET_GET_BYTE2): New inline function.
3165         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
3166         `XCHARSET_GET_BYTE2'.
3167
3168 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3169
3170         * mule-charset.c (make_charset): Initialize
3171         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
3172         NULL if table is not defined.
3173
3174 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3175
3176         * text-coding.c (char_encode_shift_jis): Use
3177         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
3178         `ucs_to_latin_jisx0201'.
3179
3180         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
3181         (ucs_to_latin_iso8859_2): Deleted.
3182         (ucs_to_latin_iso8859_3): Deleted.
3183         (ucs_to_latin_iso8859_4): Deleted.
3184         (ucs_to_latin_iso8859_9): Deleted.
3185         (ucs_to_latin_viscii_lower): Deleted.
3186         (ucs_to_latin_viscii_upper): Deleted.
3187         (ucs_to_latin_tcvn5712): Deleted.
3188         (make_charset): Add new argument `decoding_table'; set up
3189         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
3190         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
3191         `decoding_table' is defined in UTF-2000.
3192         (Fmake_charset): Modify for `make_charset'.
3193         (Fmake_reverse_direction_charset): Likewise.
3194         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
3195         and `GENERATE_96_SET'.
3196
3197         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
3198         (ucs_to_latin_jisx0201): Deleted.
3199         (latin_iso8859_2_to_ucs): Deleted.
3200         (ucs_to_latin_iso8859_2): Deleted.
3201         (latin_iso8859_3_to_ucs): Deleted.
3202         (ucs_to_latin_iso8859_3): Deleted.
3203         (latin_iso8859_4_to_ucs): Deleted.
3204         (ucs_to_latin_iso8859_4): Deleted.
3205         (latin_iso8859_9_to_ucs): Deleted.
3206         (ucs_to_latin_iso8859_9): Deleted.
3207         (latin_viscii_lower_to_ucs): Deleted.
3208         (ucs_to_latin_viscii_lower): Deleted.
3209         (latin_viscii_upper_to_ucs): Deleted.
3210         (ucs_to_latin_viscii_upper): Deleted.
3211         (struct Lisp_Charset): Renamed `encoding_table' to
3212         `to_byte1_table'; add `to_byte2_table'.
3213         (CHARSET_DECODING_TABLE): New macro.
3214         (CHARSET_TO_BYTE1_TABLE): New macro.
3215         (CHARSET_TO_BYTE2_TABLE): New macro.
3216         (XCHARSET_DECODING_TABLE): New macro.
3217         (XCHARSET_TO_BYTE1_TABLE): New macro.
3218         (XCHARSET_TO_BYTE2_TABLE): New macro.
3219         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
3220         tables.
3221         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
3222         don't use `ucs_to_*' tables.
3223
3224 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3225
3226         * text-coding.c (Fmake_coding_system): Don't set up
3227         `codesys->fixed.size'.
3228         (encode_coding_no_conversion): Use `if' instead of `switch'.
3229
3230         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
3231
3232 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3233
3234         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
3235         (Fmake_charset): Modify for `make_charset'.
3236         (Fmake_reverse_direction_charset): Likewise.
3237         (complex_vars_of_mule_charset): Likewise.
3238
3239 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3240
3241         * text-coding.c (char_encode_shift_jis): Use table
3242         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
3243
3244 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3245
3246         * text-coding.c (text_encode_generic): Use `if' instead of
3247         `switch'.
3248         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
3249         decode JIS-Latin.
3250
3251 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3252
3253         * text-coding.c (encode_coding_sjis): Deleted.
3254         (char_encode_shift_jis): New function.
3255         (char_finish_shift_jis): New function.
3256         (reset_encoding_stream): Set up `encode_char' and `finish' for
3257         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
3258         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
3259         (char_encode_utf8): Treat `eol_type'.
3260
3261 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3262
3263         * file-coding.c (decode_coding_iso2022): Use
3264         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
3265
3266 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3267
3268         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3269         to 0.7 (Hirano).
3270
3271 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3272
3273         * char-lb.h (CHAR_COLUMNS): New macro.
3274
3275 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3276
3277         * text-coding.c (char_encode_ucs4): New function.
3278         (char_finish_ucs4): New function.
3279         (encode_coding_ucs4): Deleted.
3280         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
3281         (text_encode_generic): Delete local variable `charset' and `half'.
3282         (ucs_to_mule_table): Deleted.
3283         (mule_to_ucs_table): Deleted.
3284         (Fset_ucs_char): Deleted.
3285         (ucs_to_char): Deleted.
3286         (Fucs_char): Deleted.
3287         (Fset_char_ucs): Deleted.
3288         (Fchar_ucs): Deleted.
3289         (decode_ucs4): Deleted.
3290         (mule_char_to_ucs4): Deleted.
3291         (encode_ucs4): Deleted.
3292         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
3293         (decode_coding_utf8): Likewise.
3294         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
3295         (char_encode_iso2022): Fixed.
3296         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
3297         `Fset_char_ucs' and `Fchar_ucs'.
3298         (complex_vars_of_file_coding): Don't initialize
3299         `ucs_to_mule_table'.
3300
3301         * objects-tty.c (tty_initialize_font_instance): Don't use
3302         `XCHARSET_COLUMNS'.
3303
3304         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
3305         UTF-2000.
3306
3307         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
3308         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3309
3310         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
3311         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3312         (emchar_string_displayed_columns): Likewise.
3313
3314         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
3315         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3316         (string_column_at_point): Likewise.
3317         (Fmove_to_column): Likewise.
3318
3319         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
3320         `encoding_table' and `decoding_table'.
3321         (CHARSET_REP_BYTES): Deleted.
3322         (XCHARSET_REP_BYTES): Deleted.
3323         (XCHARSET_COLUMNS): Deleted.
3324         (CHAR_COLUMNS): New macro.
3325         (lookup_composite_char): Deleted unconditionally.
3326         (composite_char_string): Likewise.
3327
3328 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3329
3330         * char-ucs.h (Emchar_to_byte_table): New type.
3331         (get_byte_from_character_table): New function interface.
3332         (Vcharset_latin_jisx0201): New variable.
3333         (latin_jisx0201_to_ucs): New variable.
3334         (ucs_to_latin_jisx0201): New variable.
3335         (Vcharset_latin_iso8859_2): New variable.
3336         (latin_iso8859_2_to_ucs): New variable.
3337         (ucs_to_latin_iso8859_2): New variable.
3338         (Vcharset_latin_iso8859_3): New variable.
3339         (latin_iso8859_3_to_ucs): New variable.
3340         (ucs_to_latin_iso8859_3): New variable.
3341         (Vcharset_latin_iso8859_4): New variable.
3342         (latin_iso8859_4_to_ucs): New variable.
3343         (ucs_to_latin_iso8859_4): New variable.
3344         (Vcharset_latin_iso8859_9): New variable.
3345         (latin_iso8859_9_to_ucs): New variable.
3346         (ucs_to_latin_iso8859_9): New variable.
3347         (Vcharset_latin_viscii_lower): New variable.
3348         (latin_viscii_lower_to_ucs): New variable.
3349         (ucs_to_latin_viscii_lower): New variable.
3350         (Vcharset_latin_viscii_upper): New variable.
3351         (latin_viscii_upper_to_ucs): New variable.
3352         (ucs_to_latin_viscii_upper): New variable.
3353         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
3354         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
3355         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
3356         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
3357         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
3358         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
3359         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
3360         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
3361         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
3362         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
3363
3364         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
3365         (Vcharset_latin_viscii_upper): New variable.
3366         (make_byte_from_character_table): New function.
3367         (put_byte_from_character_table): New function.
3368         (get_byte_from_character_table): New function.
3369         (CHAR96): New macro.
3370         (ucs_to_latin_jisx0201): New variable.
3371         (latin_jisx0201_to_ucs): New variable.
3372         (ucs_to_latin_iso8859_2): New variable.
3373         (latin_iso8859_2_to_ucs): New variable.
3374         (ucs_to_latin_iso8859_3): New variable.
3375         (latin_iso8859_3_to_ucs): New variable.
3376         (ucs_to_latin_iso8859_4): New variable.
3377         (latin_iso8859_4_to_ucs): New variable.
3378         (ucs_to_latin_iso8859_9): New variable.
3379         (latin_iso8859_9_to_ucs): New variable.
3380         (ucs_to_latin_viscii_lower): New variable.
3381         (latin_viscii_lower_to_ucs): New variable.
3382         (ucs_to_latin_viscii_upper): New variable.
3383         (latin_viscii_upper_to_ucs): New variable.
3384         (ucs_to_latin_tcvn5712): New variable.
3385         (latin_tcvn5712_to_ucs): New variable.
3386         (Qlatin_viscii_lower): New variable.
3387         (Qlatin_viscii_upper): New variable.
3388         (syms_of_mule_charset): Set up new symbol
3389         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
3390         (complex_vars_of_mule_charset): Set up new charset
3391         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
3392         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
3393         `ucs_to_<CHARSET>' tables.
3394
3395 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
3396
3397         * text-coding.c: New file.
3398
3399 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
3400
3401         * mule-charset.c (Fmake_char): Fix problem of 256-set.
3402
3403         * char-ucs.h (Vcharset_ucs_bmp): New variable.
3404         (MAKE_CHAR): Modify for `ucs-bmp'.
3405         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
3406         non-MULE characters of BMP.
3407
3408 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
3409
3410         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3411         to 0.6.
3412
3413 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3414
3415         * lstream.h:
3416         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
3417         - Include character.h for `CHAR_ASCII_P'.
3418
3419         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
3420
3421         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
3422         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
3423
3424         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
3425         (BYTE_C0_P): Likewise.
3426         (BYTE_C1_P): Likewise.
3427         (Lstream_get_emchar_1): Likewise.
3428         (Lstream_fput_emchar): Likewise.
3429         (Lstream_funget_emchar): Likewise.
3430         (copy_internal_to_external): Likewise.
3431         (copy_external_to_internal): Likewise.
3432
3433         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
3434         (BYTE_C0_P): Likewise.
3435         (BYTE_C1_P): Likewise.
3436         (Lstream_get_emchar_1): Likewise.
3437         (Lstream_fput_emchar): Likewise.
3438         (Lstream_funget_emchar): Likewise.
3439         (copy_internal_to_external): Likewise.
3440         (copy_external_to_internal): Likewise.
3441
3442         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
3443         (REP_BYTES_BY_FIRST_BYTE): Likewise.
3444
3445         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
3446         (BYTE_ASCII_P): Moved to mb-1byte.h.
3447
3448 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3449
3450         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
3451
3452         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
3453         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
3454         (VALID_CHARPTR_P): Moved to mb-*byte.h.
3455         (VALIDATE_CHARPTR_BACKWARD): Likewise.
3456         (VALIDATE_CHARPTR_FORWARD): Likewise.
3457         (simple_charptr_emchar): Moved to mb-multibyte.h.
3458         (simple_set_charptr_emchar): Likewise.
3459         (simple_charptr_copy_char): Likewise.
3460         (non_ascii_charptr_emchar): Likewise.
3461         (non_ascii_set_charptr_emchar): Likewise.
3462         (non_ascii_charptr_copy_char): Likewise.
3463         (charptr_emchar): Moved to mb-*byte.h.
3464         (set_charptr_emchar): Likewise.
3465         (charptr_copy_char): Likewise.
3466
3467         * mb-1byte.h, mb-multibyte.h: New files.
3468
3469 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3470
3471         * mb-utf-8.h (MULTIBYTE): New macro.
3472         (MAX_EMCHAR_LEN): Moved from buffer.h.
3473         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
3474
3475         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
3476
3477         * mb-lb.h, multibyte.h: New files.
3478
3479         * char-1byte.h (Charset_ID): Moved from buffer.h.
3480         (MIN_LEADING_BYTE): Likewise.
3481         (LEADING_BYTE_ASCII): Likewise.
3482         (NUM_LEADING_BYTES): Likewise.
3483         (CHARSETP): Likewise.
3484         (CHARSET_BY_LEADING_BYTE): Likewise.
3485         (XCHARSET_LEADING_BYTE): Likewise.
3486         (XCHARSET_GRAPHIC): Likewise.
3487         (XCHARSET_COLUMNS): Likewise.
3488         (XCHARSET_DIMENSION): Likewise.
3489         (CHAR_CHARSET): Likewise.
3490         (CHAR_LEADING_BYTE): Likewise.
3491         (BREAKUP_CHAR): Likewise.
3492         (Vcharset_ascii): Likewise.
3493
3494         * buffer.h: Include multibyte.h unconditionally.
3495         (VALID_CHARPTR_P): Moved to multibyte.h.
3496         (ASSERT_VALID_CHARPTR): Likewise.
3497         (REAL_INC_CHARPTR): Likewise.
3498         (REAL_INC_CHARBYTIND): Likewise.
3499         (REAL_DEC_CHARPTR): Likewise.
3500         (INC_CHARPTR): Likewise.
3501         (INC_CHARBYTIND): Likewise.
3502         (DEC_CHARPTR): Likewise.
3503         (VALIDATE_CHARPTR_BACKWARD): Likewise.
3504         (VALIDATE_CHARPTR_FORWARD): Likewise.
3505         (charptr_n_addr): Likewise.
3506         (MAX_EMCHAR_LEN): Moved to mb-*.h.
3507         (simple_charptr_emchar): Moved to multibyte.h.
3508         (simple_set_charptr_emchar): Likewise.
3509         (simple_charptr_copy_char): Likewise.
3510         (non_ascii_charptr_emchar): Likewise.
3511         (non_ascii_set_charptr_emchar): Likewise.
3512         (non_ascii_charptr_copy_char): Likewise.
3513         (charptr_emchar): Likewise.
3514         (set_charptr_emchar): Likewise.
3515         (charptr_copy_char): Likewise.
3516         (charptr_emchar_n): Likewise.
3517         (Charset_ID): Moved to char-1byte.h.
3518         (Vcharset_ascii): Likewise.
3519         (CHAR_CHARSET): Likewise.
3520         (CHAR_LEADING_BYTE): Likewise.
3521         (LEADING_BYTE_ASCII): Likewise.
3522         (NUM_LEADING_BYTES): Likewise.
3523         (MIN_LEADING_BYTE): Likewise.
3524         (CHARSETP): Likewise.
3525         (CHARSET_BY_LEADING_BYTE): Likewise.
3526         (XCHARSET_LEADING_BYTE): Likewise.
3527         (XCHARSET_GRAPHIC): Likewise.
3528         (XCHARSET_COLUMNS): Likewise.
3529         (XCHARSET_DIMENSION): Likewise.
3530         (BREAKUP_CHAR): Likewise.
3531
3532 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3533
3534         * character.h: Add document about interface for characters.
3535
3536         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
3537         (MAKE_CHAR): Delete comment about
3538         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
3539         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
3540         (BREAKUP_CHAR): Modify name of arguments.
3541         (CHAR_CHARSET): Modify name of argument.
3542
3543         * buffer.h: Delete document about Emchar accessors.
3544
3545 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3546
3547         * character.h (CHAR_INTP): Moved from buffer.h
3548         (CHAR_OR_CHAR_INTP): Likewise.
3549         (XCHAR_OR_CHAR_INT): Likewise.
3550         (CHECK_CHAR_COERCE_INT): Likewise.
3551
3552         * buffer.h (CHAR_INTP): Moved to character.h
3553         (CHAR_OR_CHAR_INTP): Likewise.
3554         (XCHAR_OR_CHAR_INT): Likewise.
3555         (CHECK_CHAR_COERCE_INT): Likewise.
3556
3557 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3558
3559         * character.h:
3560         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
3561         - Include char-1byte.h, char-lb.h or char-ucs.h.
3562
3563         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
3564
3565         * buffer.h: Include character unconditionally.
3566         (valid_char_p): Moved to char-*.h.
3567         (non_ascii_valid_char_p): Moved to char-lb.h.
3568
3569         * char-1byte.h, char-lb.h, char-ucs.h: New files.
3570
3571 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3572
3573         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
3574         in UTF-2000 because it is not ported yet and not to use
3575         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
3576         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
3577         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
3578
3579         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
3580         (CHAR_ASCII_P): Moved from character.h.
3581
3582         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
3583         (CHAR_ASCII_P): Likewise.
3584         (CHAR_FIELD1_MASK): Deleted.
3585         (CHAR_FIELD2_MASK): Deleted.
3586         (CHAR_FIELD3_MASK): Deleted.
3587         (MAX_CHAR_BASIC_LATIN): New macro.
3588         (CHAR_FIELD1): Deleted.
3589         (CHAR_FIELD2_INTERNAL): Deleted.
3590         (CHAR_FIELD3_INTERNAL): Deleted.
3591         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
3592         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
3593         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
3594         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
3595         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
3596         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
3597         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
3598         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
3599         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
3600         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
3601         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
3602         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
3603         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
3604         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
3605         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
3606         (MIN_CHAR_COMPOSITION): Deleted.
3607         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
3608         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
3609
3610 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
3611
3612         * buffer.h: Include mb-utf-8.h in UTF-2000.
3613
3614         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
3615
3616         * mb-utf-8.h: New file.
3617
3618 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
3619
3620         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
3621         instead of `int'.
3622
3623         * mule-charset.h, buffer.h (Charset_ID): New type.
3624
3625 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
3626
3627         * mule-canna.c (c2mu): Use `MAKE_CHAR',
3628         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
3629         instead of `MULE_CHAR_PRIVATE_OFFSET',
3630         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
3631         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
3632         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
3633
3634         * character.h (Vcharset_japanese_jisx0212): New variable
3635         definition.
3636
3637 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
3638
3639         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
3640         (charset_by_attributes): Delete array about direction.
3641         (latin_a_char_to_charset): New variable in UTF-2000.
3642         (latin_a_char_to_byte1): New variable in UTF-2000.
3643         (latin_a_char_to_byte2): New variable in UTF-2000.
3644         (Qucs_bmp): New variable.
3645         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
3646         `Bufbyte'.
3647         (next_allocated_2_byte_leading_byte): Likewise.
3648         (non_ascii_set_charptr_emchar): Likewise.
3649         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
3650         `CHARSET_TYPE_256X256' in UTF-2000; modify for
3651         `charset_by_attributes'.
3652         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
3653         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
3654         and `CHARSET_BY_LEADING_BYTE'.
3655         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
3656         `utf-2000-version' to `vars_of_mule_charset'.
3657         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
3658         define `leading-code-private-11' in UTF-2000; move setting of
3659         `utf-2000-version' from `syms_of_mule_charset'.
3660         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
3661         UTF-2000.
3662
3663         * character.h (Charset_ID): New type.
3664         (LEADING_BYTE_UCS_BMP): New macro.
3665         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
3666         (CHARSET_ID_OFFSET_94): New macro.
3667         (MIN_CHARSET_ID_PRIVATE_94): New macro.
3668         (MAX_CHARSET_ID_PRIVATE_94): New macro.
3669         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
3670         final-byte.
3671         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
3672         (LEADING_BYTE_LATIN_JISX0201): Likewise.
3673         (CHARSET_ID_OFFSET_96): New macro.
3674         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
3675         CHARSET_ID_OFFSET_96 and final-byte.
3676         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
3677         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
3678         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
3679         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
3680         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
3681         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
3682         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
3683         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
3684         (LEADING_BYTE_THAI_TIS620): Likewise.
3685         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
3686         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
3687         (CHARSET_ID_OFFSET_94x94): New macro.
3688         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
3689         CHARSET_ID_OFFSET_94x94 and final-byte.
3690         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
3691         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
3692         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
3693         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
3694         (LEADING_BYTE_CHINESE_GB2312): Likewise.
3695         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
3696         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
3697         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
3698         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
3699         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
3700         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
3701         (CHARSET_TYPE_128X128): New macro.
3702         (CHARSET_TYPE_256X256): New macro.
3703         (XCHARSET_PRIVATE_P): Delete unconditionally.
3704         (charset_by_attributes): Delete array about direction.
3705         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
3706         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
3707         (MIN_CHAR_94): New macro.
3708         (MAX_CHAR_94): New macro.
3709         (MIN_CHAR_96): New macro.
3710         (MAX_CHAR_96): New macro.
3711         (MIN_CHAR_94x94): New macro.
3712         (MAX_CHAR_94x94): New macro.
3713         (MIN_CHAR_96x96): New macro.
3714         (MAX_CHAR_96x96): New macro.
3715         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
3716         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
3717         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
3718         - 32)'.
3719         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
3720         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
3721         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
3722         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
3723         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
3724         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
3725         `XCHARSET_LEADING_BYTE' to make code-point.
3726         (latin_a_char_to_charset): New variable.
3727         (latin_a_char_to_byte1): New variable.
3728         (latin_a_char_to_byte2): New variable.
3729         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
3730         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
3731         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
3732
3733         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
3734         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
3735         (find_charsets_in_emchar_string): Likewise.
3736         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
3737
3738         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
3739         `int'.
3740         (decode_coding_iso2022): Likewise.
3741
3742         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
3743         of `unsigned char'.
3744
3745         * redisplay.c (redisplay_text_width_emchar_string): Use
3746         `Charset_ID' instead of `unsigned char'.
3747         (redisplay_frame_text_width_string): Likewise.
3748
3749         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
3750         `unsigned char'.
3751
3752         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
3753         instead of `unsigned char'.
3754         (face_cachel_charset_font_metric_info): Likewise.
3755
3756         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
3757         (get_non_ascii_char_table_value): Likewise.
3758         (get_char_table): Likewise.
3759         (put_char_table): Likewise.
3760         (map_over_other_charset): Likewise.
3761         (map_char_table): Likewise.
3762
3763         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
3764         instead of `unsigned char'.
3765
3766 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
3767
3768         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
3769         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
3770
3771         * mule-charset.c (leading_code_private_11): Don't define in
3772         UTF-2000.
3773
3774         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
3775         in UTF-2000 because it is not ported yet and not to use
3776         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
3777
3778 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
3779
3780         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
3781
3782 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3783
3784         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
3785         in UTF-2000.
3786
3787         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
3788         of unsigned char to store leading-byte.
3789
3790         * chartab.c (get_non_ascii_char_table_value): Don't use
3791         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
3792
3793         * file-coding.c (encode_coding_big5): Delete bogus implementation
3794         in UTF2000.
3795
3796         * character.h (LEADING_BYTE_*): Delete definition for
3797         non-UTF-2000.
3798         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
3799         (LEADING_BYTE_PREFIX_P): Deleted.
3800         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
3801         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
3802         (BUFBYTE_LEADING_BYTE_P): Deleted.
3803         (CHARSET_PRIVATE_P): Deleted unconditionally.
3804         (rep_bytes_by_first_byte): Deleted unconditionally.
3805         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
3806         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
3807         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
3808         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
3809         (CHAR_FIELD2): Deleted.
3810         (CHAR_FIELD3): Deleted.
3811         (MAKE_CHAR): Delete definition for non-UTF-2000.
3812         (BREAKUP_CHAR_1_UNSAFE): Deleted.
3813         (breakup_char_1): New implementation.
3814         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
3815         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
3816
3817 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3818
3819         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
3820         condition.
3821
3822 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3823
3824         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
3825         (CHARSET_PRIVATE_P): Likewise.
3826         (XCHARSET_PRIVATE_P): Likewise.
3827         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
3828
3829         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
3830         UTF2000.
3831         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
3832
3833 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3834
3835         * character.h (LEADING_BYTE_*): Changed in UTF2000.
3836         (NUM_LEADING_BYTES): Changed from 128 to 256.
3837         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
3838         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
3839         UTF2000.
3840         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
3841
3842         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
3843         UTF2000.
3844         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
3845         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
3846         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
3847         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
3848         (Qchinese_cns11643_3): New variable in UTF2000.
3849         (Qchinese_cns11643_4): New variable in UTF2000.
3850         (Qchinese_cns11643_5): New variable in UTF2000.
3851         (Qchinese_cns11643_6): New variable in UTF2000.
3852         (Qchinese_cns11643_7): New variable in UTF2000.
3853         (syms_of_mule_charset): Define `chinese-cns11643-3',
3854         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
3855         and `chinese-cns11643-7' in UTF2000.
3856         (vars_of_mule_charset): Initialize
3857         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
3858         + 1 in UTF2000.
3859         (complex_vars_of_mule_charset): Setup charset
3860         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
3861         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
3862
3863 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3864
3865         * mule-charset.c: Move setting for `leading-code-private-11' from
3866         `syms_of_mule_charset' to `vars_of_mule_charset'.
3867
3868 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3869
3870         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
3871         and `NUM_LEADING_BYTES' in assert.
3872
3873 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3874
3875         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
3876         instead of 128.
3877         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
3878         `NUM_LEADING_BYTES' instead of 128.
3879
3880 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3881
3882         * mule-charset.h (charset_by_leading_byte): Use
3883         `NUM_LEADING_BYTES' instead of 128.
3884         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
3885
3886         * mule-charset.c (charset_by_leading_byte): Use
3887         `NUM_LEADING_BYTES' instead of 128.
3888         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
3889
3890         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
3891         128.
3892
3893 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
3894
3895         * mule-charset.c (syms_of_mule_charset): Update to
3896         0.4 (Shin-Imamiya).
3897
3898 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
3899
3900         * file-coding.c (encode_coding_sjis): New implementation for
3901         UTF2000.  (decode_coding_sjis): Ditto.
3902
3903 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
3904
3905         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
3906         Don't define in UTF2000.
3907
3908         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
3909         defined.
3910
3911         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
3912         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
3913         MULE.
3914
3915 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
3916
3917         * config.h.in (CHAR_IS_UCS4): New macro.
3918
3919         * mule-charset.c (rep_bytes_by_first_byte): Modify for
3920         conventional MULE representation.
3921         (syms_of_mule_charset): Update to 0.3 (Imamiya).
3922
3923         * mule-charset.h: Reverted to original.
3924
3925         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
3926         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
3927         "mule-charset.h" if CHAR_IS_UCS4 is defined.
3928
3929         * character.h: New file.
3930
3931         * file-coding.c (Fmake_coding_system): Set 1 to
3932         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
3933         defined.
3934         (encode_coding_no_conversion): New implementation for UTF2000.
3935
3936         * file-coding.h (struct Lisp_Coding_System): Add new member
3937         `fixed.size'.
3938
3939 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
3940
3941         * file-coding.c (decode_coding_iso2022): Code-point arguments of
3942         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
3943         (encode_coding_iso2022): New implementation for UTF2000.
3944
3945 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3946
3947         * mule-canna.c (c2mu): New implementation for UTF2000.
3948         (m2c): Likewise.
3949
3950 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3951
3952         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
3953
3954 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3955
3956         * file-coding.c (reset_encoding_stream): Set 0 to
3957         `str->iso2022.current_char_boundary' in UTF2000.
3958         (encode_utf8): Don't define in UTF2000.
3959         (encode_coding_utf8): New implementation for UTF-8 representation
3960         of UTF2000.
3961         (complex_vars_of_file_coding): Define coding-system `utf-8'.
3962
3963 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3964
3965         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
3966
3967         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
3968         UTF2000.
3969         (REP_BYTES_BY_FIRST_BYTE): Likewise.
3970
3971         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
3972
3973         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
3974         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
3975         as UTF-8 in UTF2000.
3976         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
3977         (non_ascii_valid_char_p): Don't define in UTF2000.
3978         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
3979         (Lstream_get_emchar_1): Likewise.
3980         (utf-2000-version): New variable in UTF2000.
3981
3982         * lread.c (read_escape): Add new reader `u'.
3983
3984         * insdel.c (three_to_one_table): Don't define in UTF2000.
3985         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
3986         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
3987         UTF2000.
3988         (bytind_to_bufpos_func): Likewise.
3989         (buffer_mule_signal_inserted_region): Likewise.
3990         (vars_of_insdel): Don't initialize `three_to_one_table'.
3991         (init_buffer_text): Use `buf->text->mule_size' instead of
3992         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
3993         UTF2000.
3994
3995         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
3996         UTF-8 representation in UTF2000.
3997         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
3998         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
3999         (decode_coding_iso2022): Don't define local variable `lb' in
4000         UTF2000; don't use LEADING_BYTE in UTF2000; use
4001         `DECODE_ADD_UCS_CHAR' in UTF2000.
4002         (convert_to_external_format): Decode as UTF-8 in UTF2000.
4003
4004         * config.h.in (UTF2000): New macro.
4005
4006         * buffer.h (struct buffer_text): Add new member `mule_size' and
4007         don't add `mule_shifter' and `mule_three_p' in UTF2000.
4008         (valid_char_p): Return always 1 in UTF2000.
4009         (MAX_EMCHAR_LEN): 6 in UTF2000.
4010         (three_to_one_table): Don't define in UTF2000.
4011         (real_bufpos_to_bytind): Modify for UTF-8 representation in
4012         UTF2000.
4013         (real_bytind_to_bufpos): Likewise.
4014
4015         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
4016
4017 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4018
4019         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
4020         representation change.
4021         (Vutf_2000_version): New variable.
4022         (leading_code_private_11): New variable.
4023         (syms_of_mule_charset): Add new variables `utf-2000-version' and
4024         `leading-code-private-11'.
4025
4026         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
4027         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
4028         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
4029         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
4030         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
4031         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
4032         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
4033         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
4034         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
4035         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
4036         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
4037         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
4038         (MIN_CHAR_GREEK): New macro.
4039         (MAX_CHAR_GREEK): New macro.
4040         (MIN_CHAR_CYRILLIC): New macro.
4041         (MAX_CHAR_CYRILLIC): New macro.
4042         (MIN_CHAR_HEBREW): New macro.
4043         (MAX_CHAR_HEBREW): New macro.
4044         (MIN_CHAR_THAI): New macro.
4045         (MAX_CHAR_THAI): New macro.
4046         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
4047         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
4048         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
4049         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
4050         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
4051         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
4052         (CHAR_FIELD2): New inline function.
4053         (CHAR_FIELD3): New inline function.
4054         (MULE_CHAR_PRIVATE_OFFSET): New macro.
4055         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
4056         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
4057         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
4058         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
4059         (MIN_CHAR_COMPOSITION): Likewise.
4060         (CHAR_LEADING_BYTE): Modified for character representation change.
4061         (MAKE_CHAR): Likewise.
4062
4063         * lisp.h (Vcharset_latin_iso8859_1): New variable.
4064         (Vcharset_greek_iso8859_7): Likewise.
4065         (Vcharset_cyrillic_iso8859_5): Likewise.
4066         (Vcharset_hebrew_iso8859_8): Likewise.
4067         (Vcharset_thai_tis620): Likewise.
4068         (Vcharset_katakana_jisx0201): Likewise.
4069
4070 2001-02-08  Martin Buchholz <martin@xemacs.org>
4071
4072         * XEmacs 21.2.44 "Thalia" is released.
4073
4074 2001-02-06  Martin Buchholz  <martin@xemacs.org>
4075
4076         Fixes crashes in kill-emacs on some systems.
4077         * process-unix.c (unix_kill_child_process):
4078         It's OK for kill() to fail with ESRCH.
4079
4080 2001-02-07  Martin Buchholz  <martin@xemacs.org>
4081
4082         Contortions to make .gdbinit tricks work on most systems.
4083         * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
4084         * alloc.c (dbg_valmask): Make non-const.
4085         * alloc.c (dbg_typemask): Make non-const.
4086         * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
4087         * alloc.c (dbg_valbits): Make non-const.
4088         * alloc.c (dbg_gctypebits): Make non-const.
4089         * .gdbinit (decode_object): Make it work with AIX cc.
4090
4091 2001-02-06  Martin Buchholz  <martin@xemacs.org>
4092
4093         * elhash.c (make_general_lisp_hash_table):
4094         Use simpler and more efficient calloc to clear entries.
4095
4096 2001-02-07  Martin Buchholz  <martin@xemacs.org>
4097
4098         * window.c (window_scroll): Work around an AIX C compiler bug.
4099         Fixes 'scroll-up' does nothing problem with xlC.
4100
4101 2001-02-05  Martin Buchholz  <martin@xemacs.org>
4102
4103         * .gdbinit: Remove obsolete comment.
4104
4105 2001-01-31  Mike Alexander  <mta@arbortext.com>
4106
4107         * select.c (Fown_selection_internal): Set owned_p for device
4108         method correctly.
4109
4110 2001-02-01  Martin Buchholz  <martin@xemacs.org>
4111
4112         Port to g++ 2.97.
4113         "not" cannot be used as a macro name as it is an operator in C++
4114         * config.h.in: Stop #defining `not'.
4115         * chartab.c (check_category_char): not ==> not_p
4116         * chartab.h: Likewise.
4117         * regex.c (re_match_2_internal): Likewise.
4118
4119 2001-02-02  Martin Buchholz  <martin@xemacs.org>
4120
4121         * lisp-disunion.h: Fix up comments.
4122
4123 2001-01-31  Martin Buchholz  <martin@xemacs.org>
4124
4125         * keymap.c (define_key_check_and_coerce_keysym):
4126         (syms_of_keymap):
4127         Support mouse-6 and mouse-7 bindings in the obvious way.
4128
4129 2001-02-01  Martin Buchholz  <martin@xemacs.org>
4130
4131         * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
4132
4133 2001-01-30  Martin Buchholz  <martin@xemacs.org>
4134
4135         Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
4136         Previous patch missed DEFVAR_INT_MAGIC.
4137         Make sure future DEFVAR_foo use correct types.
4138         * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
4139         * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
4140         * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
4141         * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
4142         * (DEFVAR_INT): Likewise.
4143         * redisplay.c (vertical_clip): Should be of type Fixnum.
4144         * redisplay.c (horizontal_clip): Likewise.
4145         * lisp.h (dump_add_opaque_int): New.
4146         (dump_add_opaque_fixnum): New.
4147
4148 2001-01-29  Andy Piper  <andy@xemacs.org>
4149
4150         * glyphs-widget.c (check_valid_int_or_function): allow symbols
4151         since they can be eval'ed
4152
4153 2001-01-29  Martin Buchholz  <martin@xemacs.org>
4154
4155         * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
4156         Oops, XEmacs redefines `class'.  Use `typename' instead.
4157
4158 2001-01-28  Martin Buchholz  <martin@xemacs.org>
4159
4160         * dumper.c: Fix C++ compile errors.
4161
4162 2001-01-29  Martin Buchholz  <martin@xemacs.org>
4163
4164         * tparam.c: Use correct prototypes.
4165
4166 2001-01-28  Martin Buchholz  <martin@xemacs.org>
4167
4168         * sysproc.h: #include util.h for NetBSD's openpty.
4169
4170 2001-01-27  Martin Buchholz  <martin@xemacs.org>
4171
4172         More 64-bit correctness.
4173         The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
4174         Use a typedef `fixnum' for the type used for DEFVAR_INT.
4175         Fix up comments.
4176         This finally finishes the 64-bit SGI port.
4177         Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
4178         * symbols.c: Fix up comments and type casts.
4179         * symbols.c (do_symval_forwarding): s/int/Fixnum/g
4180         * symbols.c (store_symval_forwarding): s/int/Fixnum/g
4181         * symeval.h (Fixnum): New type.
4182         * symeval.h (symbol_value_type): Fix up comment.
4183
4184         * commands.h:
4185         * nt.c:
4186         * emacs.c:
4187         * data.c:
4188         * redisplay.c:
4189         * abbrev.c:
4190         * dired-msw.c:
4191         * event-Xt.c:
4192         * eldap.c:
4193         * window.c:
4194         * sound.c:
4195         * event-stream.c:
4196         * eval.c:
4197         * buffer.c:
4198         * mule-canna.c: A million DEFVAR_INTs here...
4199         * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
4200         * extents.c:
4201         * cmdloop.c:
4202         * lisp.h:
4203         * select-x.c:
4204         * console-x.h:
4205         * event-msw.c:
4206         * mule-wnnfns.c:
4207         * hpplay.c:
4208         * ralloc.c:
4209         * alloc.c:
4210         * keymap.c:
4211         * profile.c:
4212         s/int/Fixnum/g in DEFVAR_INT declarations.
4213
4214 2001-01-26  Martin Buchholz  <martin@xemacs.org>
4215
4216         Port pdump to SGI alignment-sensitive environment.
4217         Lisp Object sizeof methods now return aligned sizes.  Rely on that.
4218         Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
4219         properly aligned.
4220         Define and use aligned reading and writing macros.
4221         Use buffered stdio instead of posix i/o for faster dumping.
4222         Eliminate kludgy 256 byte space for header.
4223         Read and write from dump file using structs for alignment safety.
4224         * dumper.c (pdump_align_stream): New.
4225         * dumper.c (PDUMP_ALIGN_OUTPUT): New.
4226         * dumper.c (PDUMP_READ_ALIGNED): New.
4227         * dumper.c (PDUMP_WRITE_ALIGNED): New.
4228         * dumper.c (pdump_static_Lisp_Object): New struct.
4229         * dumper.c (pdump_static_pointer): New struct.
4230         * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
4231         * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
4232         * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
4233         * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
4234
4235         * dumper.c (pdump_backtrace):
4236         * dumper.c (pdump_get_indirect_count):
4237         * dumper.c (pdump_register_object):
4238         * dumper.c (pdump_register_struct):
4239         * dumper.c (pdump_reloc_one):
4240         * dumper.c (pdump_scan_by_alignment):
4241         * dumper.c (pdump_dump_from_root_struct_ptrs):
4242         * dumper.c (pdump_dump_opaques):
4243         * dumper.c (pdump_dump_rtables):
4244         * dumper.c (pdump_dump_from_root_objects):
4245         * dumper.c (pdump):
4246         * dumper.c (pdump_load_finish):
4247         Use aligned reading and writing.
4248
4249         * dumper.c (pdump_free): Make static.
4250         * dumper.c (pdump_hFile): Likewise.
4251         * dumper.c (pdump_hMap): Likewise.
4252
4253 2001-01-26  Martin Buchholz <martin@xemacs.org>
4254
4255         * XEmacs 21.2.43 "Terspichore" is released.
4256
4257 2001-01-25  Martin Buchholz  <martin@xemacs.org>
4258
4259         Type fiddling for window_config.saved_windows_count
4260         * window.c (struct window_config): 
4261         Make saved_windows_count member unsigned.
4262         * window.c (sizeof_window_config_for_n_windows): 
4263         Make parameter unsigned.
4264         * window.c (mark_window_config):
4265         * window.c (window_config_equal):
4266         * window.c (free_window_configuration):
4267         * window.c (Fset_window_configuration):
4268         * window.c (count_windows):
4269         * window.c (Fcurrent_window_configuration):
4270         * window.c (reinit_vars_of_window):
4271         Update all callers and users.
4272
4273 2001-01-25  Martin Buchholz  <martin@xemacs.org>
4274
4275         Alignment correctness for flexible arrays.
4276         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
4277         Make alignment-correct. Add interesting comments.
4278         * alloc.c (size_vector):
4279         * alloc.c (make_vector_internal):
4280         * alloc.c (make_bit_vector_internal):
4281         * alloc.c (sweep_bit_vectors_1):
4282         * fns.c (size_bit_vector):
4283         Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
4284         * window.c (sizeof_window_config_for_n_windows): 
4285         Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
4286
4287 2001-01-24  Martin Buchholz  <martin@xemacs.org>
4288
4289         * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
4290
4291 2001-01-23  Andy Piper  <andy@xemacs.org>
4292
4293         * select.c (Fown_selection_internal): pass owned_p
4294
4295         * select-msw.c (mswindows_own_selection): New Signature.
4296
4297         * console.h (struct console_methods): add owned_p to
4298         _own_selection.
4299
4300         * select-x.c (x_own_selection): pass owned_p
4301         (hack_motif_clipboard_selection): use owned_p
4302         (vars_of_select_x): new variable -
4303         x_selection_strict_motif_ownership.
4304
4305 2001-01-23  Martin Buchholz  <martin@xemacs.org>
4306
4307         * specifier.h (specifier_data_offset): Remove pointless parens.
4308         * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
4309
4310 2001-01-24  Martin Buchholz  <martin@xemacs.org>
4311
4312         Make Lisp_Object sizeof methods be alignment-correct.
4313         pdump must restore objects to the same alignment as the C compiler
4314         assumes.  It really matters on SGIs.
4315         * lstream.c (aligned_sizeof_lstream): New.
4316         (sizeof_lstream): Use aligned_sizeof_lstream.
4317         (Lstream_new): Likewise.
4318         * opaque.c (aligned_sizeof_opaque): New.
4319         (sizeof_opaque): Use aligned_sizeof_opaque.
4320         (make_opaque): Likewise.
4321         * specifier.c (aligned_sizeof_specifier): New.
4322         (sizeof_specifier): Use aligned_sizeof_specifier.
4323         (make_specifier_internal): Likewise.
4324
4325 2001-01-23  Martin Buchholz  <martin@xemacs.org>
4326
4327         * lstream.h (struct lstream): Use max_align_t for trailing data.
4328         * specifier.h (struct Lisp_Specifier): Likewise.
4329
4330 2001-01-22  Martin Buchholz  <martin@xemacs.org>
4331
4332         * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
4333         (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
4334         (CCL_SUSPEND): Likewise.
4335         (CCL_INVALID_CMD): Likewise.
4336         (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
4337         (ccl_driver): Likewise.
4338         (CCL_WRITE_CHAR): Macro hygiene.
4339         (CCL_WRITE_STRING): Macro hygiene.
4340
4341 2001-01-22  Martin Buchholz  <martin@xemacs.org>
4342
4343         Port "portable" dumper to SunOS 4 and HP-UX.
4344         * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
4345         * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
4346         * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
4347
4348 2001-01-22  Martin Buchholz  <martin@xemacs.org>
4349
4350         * lisp.h (ALIGNOF): A better definition for C++.
4351
4352 2001-01-20  Martin Buchholz  <martin@xemacs.org>
4353
4354         Macro hygiene.
4355         Fix printf warnings: int format, long int arg.
4356         * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
4357         (PUSH_FAILURE_POINT): Use correct printf formats.
4358         (POP_FAILURE_POINT): Use correct printf formats.  
4359         Use do {...} while (0)
4360
4361 2001-01-20  Martin Buchholz <martin@xemacs.org>
4362
4363         * XEmacs 21.2.42 "Poseidon" is released.
4364
4365 2001-01-20  Martin Buchholz  <martin@xemacs.org>
4366
4367         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
4368
4369 2001-01-19  Martin Buchholz  <martin@xemacs.org>
4370
4371         De-kludgify FIXED_TYPE free list frobbing.
4372         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
4373         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
4374         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
4375         * alloc.c (Lisp_Free): New pseudo lisp object definition.
4376         * alloc.c (LRECORD_FREE_P): New.
4377         * alloc.c (MARK_LRECORD_AS_FREE): New.
4378         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
4379         * alloc.c (STRUCT_FREE_P): Deleted.
4380         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
4381         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
4382         * alloc.c (STRING_CHARS_FREE_P): New.
4383         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
4384         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
4385         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
4386         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
4387         * alloc.c (resize_string): Use new definitions.
4388         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
4389         * alloc.c (verify_string_chars_integrity): Use new definitions.
4390         * alloc.c (compact_string_chars): Use new definitions.
4391         * alloc.c: Update monster comments.
4392         * lrecord.h (lrecord_type): Add some new lrecord types for
4393         alloc.c's use.
4394
4395 2001-01-18  Martin Buchholz  <martin@xemacs.org>
4396
4397         Improve alignment hackery.
4398         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
4399         (max_align_t): Moved from opaque.h - general purpose.
4400         (ALIGN_PTR): Use size_t, not long.
4401         * opaque.h (max_align_t): Move to lisp.h.
4402
4403 2001-01-18  Norbert Koch  <nk@LF.net>
4404
4405         * gui.h: Fix and add prototypes to fix build problems.
4406
4407 2001-01-18  Martin Buchholz  <martin@xemacs.org>
4408
4409         temacs is going away, so `dump-temacs' is now a bad name.
4410         * .dbxrc (dump-temacs): Rename to `dmp'.
4411         * .gdbinit (dump-temacs): Rename to `dmp'.
4412
4413 2001-01-17  Andy Piper  <andy@xemacs.org>
4414
4415         * glyphs.c (print_image_instance): comment to make martin happy.
4416
4417         * glyphs-x.c (x_redisplay_widget): update faces after a frame
4418         change.
4419
4420         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
4421         activation.
4422         (mswindows_tab_control_redisplay): warning suppression.
4423
4424         * glyphs-widget.c (widget_update): re-write to cope with updated
4425         items.
4426         (widget_instantiate): use new gui_item functions.
4427         (tab_control_update): deleted.
4428         (progress_gauge_update): deleted.
4429         (image_instantiator_progress_guage): take out update reference.
4430         (image_instantiator_tree_view): ditto.
4431         (image_instantiator_tab_control): ditto.
4432
4433         * gui.c (widget_gui_parse_item_keywords): new function. Do things
4434         Right the new way.
4435         (gui_item_add_keyval_pair): re-write to cope with descriptors and
4436         return whether anything was changed.
4437         (update_gui_item_keywords): as it sounds.
4438
4439         * gui.h: declare widget_gui_parse_item_keywords.
4440
4441         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
4442         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
4443
4444 2001-01-17  Martin Buchholz <martin@xemacs.org>
4445
4446         * XEmacs 21.2.41 "Polyhymnia" is released.
4447
4448 2001-01-16  Didier Verna  <didier@xemacs.org>
4449
4450         * glyphs.c (image_instantiate): don't use fallbacks when
4451         instantiating a face's background pixmap by inheritance.
4452
4453 2001-01-14  Mike Sperber <mike@xemacs.org>
4454
4455         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
4456         Conditionalize accordingly.
4457
4458 2001-01-16  Martin Buchholz  <martin@xemacs.org>
4459
4460         * dumper.c (pdump_file_get): Fix a compiler warning.
4461
4462 2001-01-15  Martin Buchholz  <martin@xemacs.org>
4463
4464         Make Purify happy when pdumping.
4465         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
4466         iniitalizing all bits of new lisp object memory.
4467         * symbols.c (Fmake_local_variable): Likewise.
4468         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
4469         * symbols.c (Fdefvaralias): Likewise.
4470         * mule-charset.c (vars_of_mule_charset): Likewise.
4471
4472 2001-01-15  Martin Buchholz  <martin@xemacs.org>
4473         Add the `-nd' flag when running pre-dump operations under the debugger.
4474         * .dbxrc (run-temacs): Add `-nd'.
4475         * .dbxrc (update-elc): Likewise.
4476         * .dbxrc (dump-temacs): Likewise.
4477         * .gdbinit (run-temacs): Likewise.
4478         * .gdbinit (check-temacs): Likewise.
4479         * .gdbinit (update-elc): Likewise.
4480         * .gdbinit (dump-temacs): Likewise.
4481
4482 2001-01-14  Martin Buchholz  <martin@xemacs.org>
4483
4484         Allow building 64-bit executables on AIX with GNU malloc, e.g.
4485         export OBJECT_MODE=64
4486         configure --pdump --use-union-type=no
4487         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
4488         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
4489
4490         * miscplay.c (sndcnv8U_2mono):
4491         Avoid two uses of `++' in the same expression.
4492         Suppresses a GCC warning.
4493
4494 2001-01-13  Martin Buchholz  <martin@xemacs.org>
4495
4496         Make sure future compilers don't miscompile alloc.c.
4497         * alloc.c:
4498         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
4499         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
4500
4501 2001-01-12  Martin Buchholz  <martin@xemacs.org>
4502
4503         * dumper.c: A little post-pdump-rename comment fixup.
4504
4505 2001-01-09  Jerry James  <james@eecs.ku.edu>
4506
4507         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
4508
4509 2001-01-13  Martin Buchholz  <martin@xemacs.org>
4510
4511         * *.[ch]: Globally rename symbols using the following `pdump-rename'
4512         script:
4513         #!/bin/sh
4514         replace_symbol () {
4515           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
4516         }
4517
4518         replace_symbol pdump_wire_lists pdump_weak_object_chains
4519         replace_symbol pdump_wire_list dump_add_weak_object_chain
4520
4521         replace_symbol pdump_wires pdump_root_objects
4522         replace_symbol pdump_wire dump_add_root_object
4523
4524         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
4525         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
4526
4527         replace_symbol dumpstructinfos pdump_root_struct_ptrs
4528         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
4529         replace_symbol dumpstructinfo pdump_root_struct_ptr
4530         replace_symbol dumpstruct dump_add_root_struct_ptr
4531
4532         replace_symbol dumpopaque dump_add_opaque
4533         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
4534         replace_symbol dumpopaqueinfos pdump_opaques
4535         replace_symbol dumpopaqueinfo pdump_opaque
4536
4537         replace_symbol nb_structdump nb_root_struct_ptrs
4538         replace_symbol nb_opaquedump nb_opaques
4539
4540         replace_symbol align_table pdump_align_table
4541         replace_symbol dump_header pdump_header
4542
4543         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
4544         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
4545
4546
4547 2001-01-12  Martin Buchholz  <martin@xemacs.org>
4548
4549         * s/aix4.h: Keep the C for AIX compiler from overaggressively
4550         optimizing bytecount_to_charcount().
4551
4552 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
4553
4554         * config.h.in:
4555         (HAVE_DLFCN_H): Removed.
4556         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
4557
4558 2001-01-06  Martin Buchholz  <martin@xemacs.org>
4559
4560         Portable dumper maintainability improvements.
4561         * alloc.c (staticpro):
4562         * alloc.c (staticpro_nodump):
4563         * alloc.c (garbage_collect_1):
4564         * alloc.c (reinit_alloc_once_early):
4565         * alloc.c (init_alloc_once_early):
4566         * alloc.c: Move dumper functions to alloc.c.
4567         * dumper.c (pdump_backtrace):
4568         * dumper.c (pdump_dump_structs):
4569         * dumper.c (pdump_dump_opaques):
4570         * dumper.c (pdump_dump_rtables):
4571         * dumper.c (pdump_dump_wired):
4572         * dumper.c (pdump):
4573         * dumper.c (pdump_load_check):
4574         * dumper.c (pdump_load_finish):
4575         * dumper.c (pdump_file_unmap):
4576         * dumper.c (pdump_file_get):
4577         * dumper.c (pdump_resource_free):
4578         * dumper.c (pdump_resource_get):
4579         * dumper.c (pdump_file_free):
4580         * dumper.c (pdump_file_try):
4581         * dumper.c (pdump_load):
4582         Remove fixed size limits on staticpro(), staticpro_nodump(),
4583         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
4584         Remove custom code for dumping lrecord_implementations_table - use
4585         dumpopaque instead.
4586         Remove (most of the) custom code for dumping staticpros - dump it
4587         like any other dynarr.
4588
4589         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
4590         * dumper.c: Moved functions from alloc.c.
4591         * alloc.c (dumpstruct): Moved to dumper.c.
4592         * alloc.c (dumpopaque): Likewise.
4593         * alloc.c (pdump_wire): Likewise.
4594         * alloc.c (pdump_wire_list): Likewise.
4595
4596         * lisp.h (Dynarr_sizeof): New.
4597         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
4598         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
4599         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
4600
4601         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
4602         * lisp.h (dumpopaque): ditto.
4603         * lisp.h (pdump_wire): ditto.
4604         * lisp.h (pdump_wire_list): ditto.
4605
4606 2001-01-09  Martin Buchholz  <martin@xemacs.org>
4607
4608         * make-src-depend (PrintPatternDeps):
4609         Use `sort' to make output independent of perl version.
4610
4611 2001-01-08  Martin Buchholz  <martin@xemacs.org>
4612
4613         Port to Netbsd 1.5.
4614         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
4615         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
4616
4617 2001-01-03  Didier Verna  <didier@xemacs.org>
4618
4619         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
4620         that `focus_frame' is alive before thinking of calling
4621         `redisplay_redraw_cursor' on it.
4622
4623 2001-01-08  Martin Buchholz <martin@xemacs.org>
4624
4625         * XEmacs 21.2.40 is released.
4626
4627 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
4628
4629         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
4630
4631 2001-01-06  Martin Buchholz  <martin@xemacs.org>
4632
4633         * alloc.c (dbg_valmask): Make const.
4634         * alloc.c (dbg_typemask): Make const.
4635         * alloc.c (dbg_USE_UNION_TYPE): Make const.
4636         * alloc.c (dbg_valbits): Make const.
4637         * alloc.c (dbg_gctypebits): Make const.
4638
4639 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
4640
4641         * redisplay-x.c (x_bevel_area):
4642         redisplay.h (struct rune):
4643         Typo fixes in comments.
4644
4645 2001-01-05  Andy Piper  <andy@xemacs.org>
4646
4647         * glyphs-x.c (x_redisplay_widget): use size changed for offset
4648         adjustment.
4649
4650         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
4651
4652 2001-01-05  Martin Buchholz  <martin@xemacs.org>
4653
4654         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
4655
4656         * mule-ccl.c (stack_idx_of_map_multiple):
4657         Non const global data must not be initialized!
4658         Found by MIYASHITA Hisashi.
4659
4660 2001-01-02  Andy Piper  <andy@xemacs.org>
4661
4662         * frame.c (change_frame_size): make sure frame size is always
4663         marked as changed.
4664
4665         * glyphs.c (image_instance_layout): minor code reuse.
4666
4667         * window.c (Fcurrent_window_configuration): revert previous
4668         change.
4669
4670 2001-01-02  Martin Buchholz  <martin@xemacs.org>
4671
4672         * glyphs.h:
4673         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
4674
4675 2000-12-31  Andy Piper  <andy@xemacs.org>
4676
4677         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
4678         when widget gets unmapped.
4679
4680         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
4681         function. Make sure widgets losing focus don't just drop it.
4682         (handle_focus_event_1): record the widget with focus.
4683
4684 2000-12-31  Andy Piper  <andy@xemacs.org>
4685
4686         * window.c (allocate_window): use
4687         make_image_instance_cache_hash_table.
4688         (make_dummy_parent): ditto.
4689         (Fset_window_configuration): ditto.
4690
4691         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
4692
4693         * glyphs.c (process_image_string_instantiator): use
4694         INSTANTIATOR_TYPE.
4695         (get_image_instantiator_governing_domain): ditto.
4696         (normalize_image_instantiator): ditto.
4697         (instantiate_image_instantiator): ditto.
4698         (make_image_instance_1): ditto.
4699         (image_instantiate): ditto. Key on glyph *and* instantiator type.
4700         (instantiator_eq_equal): new function for use with instance hash
4701         tables.
4702         (instantiator_eq_hash): ditto.
4703         (make_image_instance_cache_hash_table): create a suitable hash
4704         table for storing image instances.
4705
4706         * elhash.h (hash_table_weakness): new internal weakness type
4707         HASH_TABLE_KEY_CAR_VALUE_WEAK.
4708         declare new functions.
4709
4710         * elhash.c (finish_marking_weak_hash_tables): introduce yet
4711         another weakness type for glyphs.
4712         (make_standard_lisp_hash_table): new function split out from
4713         make_general_lisp_hash_table.
4714         (make_lisp_hash_table): call make_standard_lisp_hash_table.
4715         (hash_table_instantiate): ditto.
4716         (Fmake_hash_table): ditto.
4717
4718 2000-12-31  Martin Buchholz <martin@xemacs.org>
4719
4720         * XEmacs 21.2.39 is released.
4721
4722 2000-12-29  Andy Piper  <andy@xemacs.org>
4723
4724         * menubar.c (menubar_visible_p_changed): signal the frame changed.
4725
4726         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
4727         the frame has changed so that we pick up geometry changes such as
4728         menubar visibility.
4729
4730 2000-12-28  Andy Piper  <andy@xemacs.org>
4731
4732         * lastfile.c (my_ebss): make a char array so we can pad the
4733         bss. Fixes cygwin unexec.
4734
4735         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
4736
4737 2000-12-26  Andy Piper  <andy@xemacs.org>
4738
4739         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
4740         comments and try and be more precise about a non-/SIGIO world.
4741         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
4742         SIGIO.
4743
4744         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
4745         we don't normalize to zero width or height.
4746
4747 2000-12-24  Andy Piper  <andy@xemacs.org>
4748
4749         * Makefile.in.in (ldflags): add -mwindows when appropriate.
4750
4751 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
4752
4753         * s/sco5.h: SCO 5 has pty support.
4754
4755 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
4756
4757         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
4758         input-method-xlib.c contains whole contents of input-method-xfs.c,
4759         so we can use input-method-xlib.c's code for USE_XFONTSET
4760         using #ifdefs.
4761         * input-method-xfs.c: removed.
4762
4763 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
4764
4765         * file-coding.h (enum coding_category_type): reorder enumerators to
4766         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
4767         (now one greater than largest real coding_category_type enumerator).
4768         * file-coding.c (coding_category_symbol, coding_category_by_priority,
4769         coding_category_system, fcd_descriptihon_1, decode_coding_category,
4770         Fcoding_category_list, Fset_coding_priority_list,
4771         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
4772         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
4773
4774 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
4775
4776         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
4777         * redisplay-output.c (redisplay_output_window): Clear top of window
4778         when face is changed.
4779         * redisplay-x.c (x_redraw_exposed_window): Call
4780         redisplay_clear_top_of_window.
4781         * redisplay.h: Publish redisplay_clear_top_of_window.
4782
4783 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
4784
4785         * buffer.c (Fkill_buffer): Map over all devices.
4786         * window.c (window_loop): Remove UNSHOW_BUFFER code.
4787         (list_windows): New function.
4788         (list_all_windows): Ditto.
4789         (Freplace_buffer_in_windows): Use them.
4790
4791 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
4792
4793         * database.c (berkdb_subtype): Recognize new subtype `queue'.
4794         (Fopen_database): Use `db_create' instead of `db_open'.
4795         (syms_of_database): Initialize Qqueue.
4796
4797 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
4798
4799         * buffer.c (common_init_complex_vars_of_buffer): Initialize
4800         buffer_local_face_property.
4801         * buffer.h (struct buffer): New member buffer_local_face_property.
4802         * window.c (Fset_window_buffer):  Mark window's face as changed
4803         when buffer has buffer local face.
4804         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
4805         * objects.c (color_after_change): Set buffer_local_face_property
4806         when locale of face specifier is buffer.
4807         * objects.c (font_after_change): Ditto.
4808         * objects.c (face_boolean_after_change): Ditto.
4809         * glyphs.c (image_after_change): Ditto.
4810
4811 2000-12-09  Dan Holmsand  <dan@eyebee.com>
4812
4813         * nt.c (mswindows_fstat): Report file permissions, volume serial
4814         number, etc. Code adapted from FSF Emacs 20.7.
4815
4816 2000-12-09  Dan Holmsand  <dan@eyebee.com>
4817
4818         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
4819         of stat when we don't have symbolic links, to make sure
4820         mswindows_stat is called on mswindows.
4821
4822 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
4823
4824         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
4825
4826 2000-12-12  Martin Buchholz  <martin@xemacs.org>
4827
4828         * doprnt.c (emacs_doprnt_1): More printing fixes.
4829         Make printing of numbers compatible with libc and FSF Emacs.
4830         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
4831         Use the system printf to do most of the hard work of formatting,
4832         instead of doprnt_1().
4833         Calculate memory to allocate for format string.
4834         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
4835         (doprnt_1): Cleaner code and documentation.
4836
4837 2000-12-01  Jerry James  <james@eecs.ukans.edu>
4838
4839         * Makefile.in.in: Use the loop variable to install headers.
4840
4841 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
4842
4843         * window.c (Fsplit_window): Don't invalidate face cache.
4844
4845 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
4846
4847         * minibuf.c (Fall_completions): Undo the previous change
4848         which removed checking elements start with space.
4849
4850 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
4851
4852         * mule-canna.c: Didier suppression.
4853
4854 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
4855
4856         * mule-canna.c: rename static unsigned char buf[] to key_buffer
4857         (warning suppression).  Add English comment translations.
4858
4859 2000-12-05  Martin Buchholz  <martin@xemacs.org>
4860
4861         * unexelfsgi.c (unexec): Better test for mmap failure.
4862
4863 2000-12-05  Martin Buchholz <martin@xemacs.org>
4864
4865         * XEmacs 21.2.38 is released.
4866
4867 2000-12-05  Martin Buchholz  <martin@xemacs.org>
4868
4869         * redisplay.c (bar-cursor): Make a user variable.
4870
4871         * symsinit.h: Add init_postgresql_from_environment.
4872
4873 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
4874
4875         * regex.c: Convert to clean C.
4876
4877 2000-12-05  Dan Holmsand  <dan@eyebee.com>
4878
4879         * realpath.c:
4880         Don't #include sysfile.h. Revert to duplicating PATH_MAX
4881         initialization.
4882         (sys_readlink): renamed to system_readlink to avoid conflict with
4883         the other sys_readlink.
4884
4885 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
4886
4887         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
4888
4889 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
4890
4891         * postgresql.c (init_postgresql_from_environment): new function.
4892         (vars_of_postgresql): Move code initializing Lisp variables out and
4893         into init_postgresql_from_environment.
4894         emacs.c (main_1): Call init_postgresql_from_environment if and only
4895         if running a dumped XEmacs.
4896
4897 2000-08-31  Dan Holmsand  <dan@eyebee.com>
4898
4899         * buffer.c: Make find-file-compare-truenames default to true on
4900         windows.
4901
4902         * realpath.c (win32_abs_start):
4903         (cygwin_readlink):
4904         (win32_readlink): New functions.
4905         (xrealpath): Return really real filenames on windows.
4906
4907         * fileio.c (Ffile_truename): Make file-truename work on windows.
4908
4909 2000-11-29  Didier Verna  <didier@xemacs.org>
4910
4911         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
4912         * faces.c (update_face_cachel_data): use it.
4913         * faces.c (add_face_cachel): use it. Complete background pixmap
4914         frobbing in face cache if `update_face_cachel_data' has not done so.
4915
4916 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
4917
4918         * search.c (string_match_1): Don't set last_thing_searched
4919         when search failed.
4920
4921 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
4922
4923         * buffer.c: Include casetab.h
4924         (common_init_complex_vars_of_buffer): Use new case-table object.
4925         * buffer.h: Include casetab.h
4926         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
4927         (DOWNCASE_TABLE_OF): Ditto.
4928         * bufslots.h: Remove char-tables and add case-table.
4929         * casetab.c: Include casetab.h
4930         (CASE_TABLE_P): Removed.
4931         (mark_case_table): New function.
4932         (allocate_case_table): New function.
4933         (Fcase_table_p): Use new case-table.
4934         (case_table_char): New function.
4935         (Fget_case_table): Ditto.
4936         (Fput_case_table): Ditto.
4937         (Fput_case_table_pair): Ditto.
4938         (Fcopy_case_table): Ditto.
4939         (Fcurrent_case_table): Return case-table.
4940         (Fstandard_case_table): Return case-table.
4941         (Fset_case_table): Fix doc-string.
4942         (set_case_table): Use case-table
4943         (syms_of_casetab): DEFSUBR new functions.
4944         (complex_vars_of_casetab): Set up standard case-table.
4945         * casetab.h: New file.
4946         * editfns.c: Include casetab.h
4947         (Fcompare_buffer_substrings): Use case-table.
4948         * inline.c: Include casetab.h
4949         * lisp.h: Remove bogus extern.
4950         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
4951         * search.c: Include casetab.h
4952         (TRANSLATE_ASCII): Removed.
4953         (TRANSLATE): Unconditionally translate character.
4954         (looking_at_1): Use case-table.
4955         (string_match_1): Ditto.
4956         (fast_string_match): Ditto.
4957         (search_command): Ditto.
4958         (search_buffer): Separate boyer_moore.  Check whether
4959         boyer_moore is possible.
4960         (simple_search): New function.
4961         (boyer_moore): Separated from search_buffer. Translate char.
4962
4963 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
4964
4965         * regex.c (RE_TR_ASCII): Removed.
4966         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
4967         (PATFETCH): Call PATFETCH_RAW.
4968         (PATFETCH_RAW): Fetch Emchar.
4969         (PATUNFETCH): Decrement charptr.
4970         (GET_BUFFER_SPACE): Rename b to buf_end.
4971         (BUF_PUSH): Ditto.
4972         (BUF_PUSH_2): Ditto.
4973         (BUF_PUSH_3): Ditto.
4974         (EXTEND_BUFFER): Ditto.
4975         (SET_LIST_BIT): Ditto.
4976         (regex_compile): Ditto.  Translate non ASCII char.
4977         (compile_range): Ditto.
4978         (re_search_2): Ditto.
4979         (re_match_2_internal): Compare Emchar.
4980         (bcmp_translate): Ditto.
4981
4982 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
4983
4984         * lisp.h (basic char/int typedefs):  comment improvement.
4985
4986 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
4987
4988         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
4989         unstomp inhibit_site_lisp.  Improve comments.
4990
4991 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
4992
4993         * mule-charset.c (Fcharset_property):  improve type checking, comments.
4994
4995 2000-11-28  Andy Piper  <andy@xemacs.org>
4996
4997         * redisplay-output.c (redisplay_output_subwindow): make sure we do
4998         clipped display for windows in the gutter also.
4999         (redisplay_display_boxes_in_window_p): change semantics of return
5000         codes to be more intuitive.
5001
5002         * gutter.h: declare display_boxes_in_gutter_p.
5003
5004         * gutter.c (display_boxes_in_gutter_p): new function for
5005         redisplay.
5006
5007 2000-11-22  Andy Piper  <andy@xemacs.org>
5008
5009         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
5010         autodetect domain.
5011
5012 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
5013
5014         * callproc.c (Fold_call_process_internal):
5015         * gpm.c (Freceive_gpm_event):
5016         (tty_get_foreign_selection): Might be just warning supression.
5017         * fileio.c (Fwrite_region_internal):
5018         (Fset_visited_file_modtime):
5019         * keymap.c (event_matches_key_specifier_p):
5020         Initialize GCPROed variable.
5021
5022         * menubar-x.c (command_builder_find_menu_accelerator):
5023         Initialize before use.
5024
5025 2000-11-23  Andy Piper  <andy@xemacs.org>
5026
5027         * unexcw.c (unexec): make the resulting executable executable.
5028
5029 2000-11-21  Martin Buchholz  <martin@xemacs.org>
5030
5031         * doc.c (get_doc_string):
5032         Use size_t, not int, for result of XSTRING_LENGTH.
5033
5034         * cmds.c (Fdelete_char):
5035         * cmds.c (Fpoint_at_eol):
5036         * cmds.c (Fself_insert_command):
5037         Use EMACS_INT, not int, for result of XINT.
5038         Someday, someone will want to insert more than 2**31 identical characters.
5039
5040         * cmds.c (Fdelete_char):
5041         * cmds.c (Fdelete_backward_char):
5042         * syntax.c (Fforward_word):
5043         * syntax.c (Fforward_comment):
5044         Make COUNT argument optional, for consistency with forward-char et al.
5045
5046 2000-11-22  Martin Buchholz  <martin@xemacs.org>
5047
5048         * lisp.h:
5049         * print.c (long_to_string):
5050         Return a useful value: the pointer at end of data written.
5051
5052         * doprnt.c:
5053         Use `static const char * const' for constant strings.
5054         (union printf_arg): Delete `i', `ui' members.
5055         (get_doprnt_args):
5056         (emacs_doprnt_1):
5057         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
5058         Do all printf-ing via the `l' specifier.
5059         Use EMACS_INT instead of int.
5060         Optimize.
5061
5062 2000-11-20  Didier Verna  <didier@xemacs.org>
5063
5064         * faces.c (update_face_cachel_data): don't frob the background
5065         pixmap when the window is being created. The face is needed but
5066         does not exist yet.
5067
5068 2000-11-20  Andy Piper  <andy@xemacs.org>
5069
5070         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
5071         messing with a debug environment.
5072
5073 2000-11-20  Martin Buchholz  <martin@xemacs.org>
5074
5075         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
5076
5077 2000-11-20  Martin Buchholz  <martin@xemacs.org>
5078
5079         * casetab.c (Fcase_table_p): Fix compile error and crash.
5080
5081 2000-11-18  Philip Aston  <philipa@mail.com>
5082
5083         * s/cygwin32.h: Cygwin has SVR4-like pty support.
5084
5085 2000-11-18  Martin Buchholz  <martin@xemacs.org>
5086
5087         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
5088         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
5089
5090 2000-11-17  Martin Buchholz  <martin@xemacs.org>
5091
5092         * config.h.in: Define HAVE_ELF_H if elf.h exists.
5093         * unexelf.c: Use HAVE_ELF_H.
5094         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
5095         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
5096         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
5097         Greg Harrington <greg_harrington@hotmail.com> provided a machine
5098         for testing.
5099         So this is an unexelfsgi.c from a different line of development.
5100
5101 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
5102
5103         * regex.c (RE_TR_ASCII): New function.
5104         (RE_TRANSLATE): Call it.
5105
5106 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
5107
5108         * buffer.h (TRT_TABLE_OF): Remove assert.
5109         (IN_TRT_TABLE_DOMAIN): Removed.
5110
5111 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
5112
5113         * free-hook.c (log_gcpro):
5114         (show_gcprohist): Add support for GCPRO5.
5115
5116 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
5117
5118         * emacs.c (main_1): Improve -sd error message when --pdump=no.
5119
5120 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
5121
5122         * symeval.h: Declare flush_all_buffer_local_cache.
5123
5124         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
5125         (flush_buffer_local_cache): Added.
5126         (flush_all_buffer_local_cache): Added.
5127
5128         * lrecord.h: Remove unused XD_LO_RESET_NIL.
5129
5130         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
5131         (pdump_dump_data): Ditto.
5132         (pdump_reloc_one): Ditto.
5133         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
5134         before dumping.
5135
5136
5137 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
5138
5139         * buffer.c: Remove if 0'ed entry.
5140         * buffer.h: Rewrite TRT to use char-table.
5141         * bufslots.h: Remove mirror tables.
5142         * casetab.c: Remove mirror tables.
5143         (CASE_TABLE_P): New macro.
5144         (Fcase_table_p): Element of a case table is string or char-table.
5145         (make_mirror_trt_table): Removed.
5146         (set_case_table): Setup char-table from strings for backward
5147         compatibility.
5148         * dired.c (Fdirectory_files):
5149         * dired-msw.c: (mswindows_get_files):
5150         * lisp.h: Change prototype of re_pattern_buffer.
5151         * regex.c: (RE_TRANSLATE): New macro.
5152         (TRANSLATE_P): Ditto.
5153         Change translate to type RE_TRANSLATE_TYPE.
5154         * regex.h: Define RE_TRANSLATE_TYPE
5155         * search.c (TRANSLATE): New macro.
5156         (TRANSLATE_ASCII): New macro.
5157         Translate table is changed to Lisp_Object.
5158         (signal_failure): Inhibit return.
5159
5160 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
5161
5162         * device-msw.c:
5163         * eldap.c:
5164         * event-Xt.c:
5165         * event-stream.c:
5166         * print.c:
5167         Do UNGCPRO before return.
5168
5169 2000-11-14  Martin Buchholz <martin@xemacs.org>
5170
5171         * XEmacs 21.2.37 is released.
5172
5173 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
5174
5175         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
5176         Add comments about discarded return value.
5177
5178 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
5179
5180         * callint.c:
5181         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
5182
5183 2000-10-27  Andy Piper  <andy@xemacs.org>
5184
5185         * gutter.c (Fset_default_gutter_position): default left and right
5186         gutters to visible.
5187         (calculate_gutter_size): calculate resonable heuristic for left
5188         and right gutter sizes.
5189         (specifier_vars_of_gutter): change left and right gutter sizes to
5190         autodetect.
5191         (calculate_gutter_size_from_display_lines): new function.
5192         (output_gutter): check for resizing on left and right gutters.
5193         (clear_gutter): don't special case top and left gutters.
5194         (specifier_vars_of_gutter): use new signature for
5195         set_specifier_caching.
5196
5197         * glyphs-x.c (x_redisplay_widget): spelling fix.
5198         * glyphs.c (specifier_vars_of_glyphs):
5199         * menubar.c (specifier_vars_of_menubar):
5200         * redisplay.c (specifier_vars_of_redisplay):
5201         * toolbar.c (specifier_vars_of_toolbar):
5202         * window.c (specifier_vars_of_window):
5203         * scrollbar.c (specifier_vars_of_scrollbar):
5204         (complex_vars_of_scrollbar): use new signature for
5205         set_specifier_caching.
5206
5207         * specifier.c (set_specifier_caching): include recompute flag.
5208         (recompute_one_cached_specifier_in_window): always recompute if
5209         flag set.
5210         (recompute_one_cached_specifier_in_frame): ditto.
5211
5212         * specifier.h (struct specifier_caching): add recompute flag.
5213
5214 2000-10-24  Andy Piper  <andy@xemacs.org>
5215
5216         * unexcw.c (copy_executable_and_dump_data_section): add new
5217         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
5218         5.0 happy.
5219
5220 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
5221
5222         * console-x.h (x_device): New member modifier_release_time.
5223         * event-Xt.c (x_handle_sticky_modifiers):
5224         Bound interval modifier keys are sticky.
5225         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
5226         * events.h: extern it.
5227
5228 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
5229
5230         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
5231
5232 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
5233
5234         * event-stream.c (execute_command_event): Preserve current_events
5235         and the like when event is misc-user-event.
5236         Inhibit quit during the call to maybe_echo_keys.
5237
5238 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
5239
5240         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
5241         symlink when buffer is killed.
5242         (inhibit_clash_detection): New variable.
5243
5244 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
5245
5246         * console.c (Fset_input_method): Trigger redisplay on tty.
5247
5248 2000-11-07  Martin Buchholz  <martin@xemacs.org>
5249
5250         * process.c (Fprocess_status): Revert to previous behavior:
5251         (process-status "nosuchprocess") ==> nil
5252
5253 2000-11-06  Martin Buchholz  <martin@xemacs.org>
5254
5255         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
5256         Work around another GCC 2.95.2 optimizer bug.
5257
5258 2000-11-02  Martin Buchholz  <martin@xemacs.org>
5259
5260         * process.c (Fget_process): Use LIST_LOOP_2.
5261         (kill_buffer_processes): Use LIST_LOOP_2.
5262
5263         * minibuf.c (Fall_completions):
5264         Delete old non-functional code for FSF fourth argument.
5265
5266         * frame.c (frame_matches_frame_spec):
5267         Renamed from `frame_matches_frametype'.  Update all callers.
5268         (device_matches_device_spec):
5269         Renamed from 'device_matches_console_spec'.  Update all callers.
5270
5271         * doc.c (Fsubstitute_command_keys):
5272         Remove buffer overflow crash.  Small code cleanups.
5273
5274         * casetab.c (check_case_table): Simpler code.
5275
5276         * window.c (Freplace_buffer_in_windows):
5277         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
5278         (and similar implementation) as Fdelete_windows_on.
5279         Update all callers.
5280
5281         * alloc.c (Fmake_list):
5282         * alloc.c (make_vector):
5283         * alloc.c (Fmake_vector):
5284         * alloc.c (make_bit_vector):
5285         * alloc.c (Fmake_bit_vector):
5286         * alloc.c (Fbit_vector):
5287         * alloc.c (Fmake_string):
5288         * alloc.c (Fpurecopy):
5289         * alloc.c (Fmemory_limit):
5290         * buffer.c:
5291         * buffer.c (Fget_buffer):
5292         * buffer.c (Fkill_buffer):
5293         * buffer.c (complex_vars_of_buffer):
5294         * bytecode.c (Fcompiled_function_stack_depth):
5295         * callint.c (Fprefix_numeric_value):
5296         * event-stream.c:
5297         * event-stream.c (Fread_key_sequence):
5298         * casetab.c:
5299         * casetab.c (Fcase_table_p):
5300         * casetab.c (check_case_table):
5301         * casetab.c (Fset_case_table):
5302         * casetab.c (Fset_standard_case_table):
5303         * chartab.c:
5304         * chartab.c (Fchar_table_type):
5305         * chartab.c (Freset_char_table):
5306         * chartab.c (Fget_char_table):
5307         * chartab.c (Fget_range_char_table):
5308         * chartab.c (Fput_char_table):
5309         * chartab.c (Fmap_char_table):
5310         * chartab.c (Fcategory_table_p):
5311         * chartab.c (Fcheck_category_at):
5312         * chartab.c (Fchar_in_category_p):
5313         * chartab.c (Fcategory_table):
5314         * chartab.c (Fcopy_category_table):
5315         * chartab.c (Fset_category_table):
5316         * chartab.c (Fcategory_designator_p):
5317         * chartab.c (Fcategory_table_value_p):
5318         * cmds.c (Fdelete_char):
5319         * cmds.c (Fdelete_backward_char):
5320         * cmds.c (Fself_insert_command):
5321         * cmds.c (Fself_insert_internal):
5322         * console.c (Fvalid_console_type_p):
5323         * console.c (Fcdfw_console):
5324         * console.c (Fconsole_type):
5325         * console.c (Fconsole_name):
5326         * console.c (Fconsole_device_list):
5327         * console.c (Fconsole_on_window_system_p):
5328         * data.c:
5329         * data.c (Feq):
5330         * data.c (Fold_eq):
5331         * data.c (Fsubr_interactive):
5332         * data.c (Fchar_to_int):
5333         * data.c (Fint_to_char):
5334         * data.c (Fsetcar):
5335         * data.c (Fsetcdr):
5336         * data.c (Fnumber_to_string):
5337         * data.c (Fstring_to_number):
5338         * data.c (Frem):
5339         * database.c (mark_database):
5340         * database.c (finalize_database):
5341         * database.c (Fdatabase_live_p):
5342         * database.c (Fdatabasep):
5343         * device-x.c (Fx_get_resource):
5344         * device.c (Fdfw_device):
5345         * dired.c:
5346         * dired.c (Ffile_name_completion):
5347         * dired.c (Ffile_name_all_completions):
5348         * dired.c (Fuser_name_completion):
5349         * dired.c (Fuser_name_completion_1):
5350         * dired.c (Fuser_name_all_completions):
5351         * doc.c (Fdocumentation):
5352         * doc.c (Fdocumentation_property):
5353         * doc.c (Fsubstitute_command_keys):
5354         * editfns.c:
5355         * editfns.c (Fchar_to_string):
5356         * editfns.c (Fstring_to_char):
5357         * editfns.c (Ftemp_directory):
5358         * editfns.c (Finsert_char):
5359         * editfns.c (Fbuffer_substring_no_properties):
5360         * editfns.c (Fnarrow_to_region):
5361         * editfns.c (Fchar_equal):
5362         * editfns.c (Fchar_Equal):
5363         * editfns.c (Ftranspose_regions):
5364         * emacs.c (Fdump_emacs):
5365         * eval.c (Fthrow):
5366         * eval.c (Fcommand_execute):
5367         * eval.c (Fautoload):
5368         * eval.c (Fbacktrace):
5369         * eval.c (Fbacktrace_frame):
5370         * events.c:
5371         * events.c (Fcopy_event):
5372         * events.c (Fcharacter_to_event):
5373         * events.c (Fevent_button):
5374         * events.c (Fevent_process):
5375         * extents.c:
5376         * extents.c (Fnext_extent_change):
5377         * extents.c (Fextent_property):
5378         * faces.c (Ffacep):
5379         * faces.c (Fmake_face):
5380         * file-coding.c:
5381         * file-coding.c (Fencode_shift_jis_char):
5382         * file-coding.c (Fencode_big5_char):
5383         * fileio.c (Ffile_name_directory):
5384         * fileio.c (Ffile_name_nondirectory):
5385         * fileio.c (Ffile_name_as_directory):
5386         * fileio.c (Fdirectory_file_name):
5387         * fileio.c (Ffile_truename):
5388         * fileio.c (Fsubstitute_in_file_name):
5389         * fileio.c (Ffile_modes):
5390         * fileio.c (Fset_file_modes):
5391         * fileio.c (Fset_default_file_modes):
5392         * fileio.c (Fverify_visited_file_modtime):
5393         * floatfns.c (Facos):
5394         * floatfns.c (Fasin):
5395         * floatfns.c (Fatan):
5396         * floatfns.c (Fcos):
5397         * floatfns.c (Fsin):
5398         * floatfns.c (Ftan):
5399         * floatfns.c (Fbessel_j0):
5400         * floatfns.c (Fbessel_j1):
5401         * floatfns.c (Fbessel_jn):
5402         * floatfns.c (Fbessel_y0):
5403         * floatfns.c (Fbessel_y1):
5404         * floatfns.c (Fbessel_yn):
5405         * floatfns.c (Ferf):
5406         * floatfns.c (Ferfc):
5407         * floatfns.c (Flog_gamma):
5408         * floatfns.c (Fexp):
5409         * floatfns.c (Fexpt):
5410         * floatfns.c (Flog):
5411         * floatfns.c (Flog10):
5412         * floatfns.c (Fsqrt):
5413         * floatfns.c (Fcube_root):
5414         * floatfns.c (Facosh):
5415         * floatfns.c (Fasinh):
5416         * floatfns.c (Fatanh):
5417         * floatfns.c (Fcosh):
5418         * floatfns.c (Fsinh):
5419         * floatfns.c (Ftanh):
5420         * floatfns.c (Fabs):
5421         * floatfns.c (Ffloat):
5422         * floatfns.c (Flogb):
5423         * floatfns.c (Fceiling):
5424         * floatfns.c (Ffloor):
5425         * floatfns.c (Fround):
5426         * floatfns.c (Ftruncate):
5427         * floatfns.c (Ffceiling):
5428         * floatfns.c (Fffloor):
5429         * floatfns.c (Ffround):
5430         * floatfns.c (Fftruncate):
5431         * fns.c (Fstring_equal):
5432         * fns.c (Fstring_lessp):
5433         * fns.c (concat2):
5434         * fns.c (concat3):
5435         * fns.c (vconcat2):
5436         * fns.c (vconcat3):
5437         * fns.c (Fsubstring):
5438         * fns.c (Fassoc):
5439         * fns.c (Fold_assoc):
5440         * fns.c (assoc_no_quit):
5441         * fns.c (Fassq):
5442         * fns.c (Fold_assq):
5443         * fns.c (assq_no_quit):
5444         * fns.c (Frassoc):
5445         * fns.c (Fold_rassoc):
5446         * fns.c (Frassq):
5447         * fns.c (Fold_rassq):
5448         * fns.c (rassq_no_quit):
5449         * fns.c (Fremassoc):
5450         * fns.c (remassoc_no_quit):
5451         * fns.c (Fremassq):
5452         * fns.c (remassq_no_quit):
5453         * fns.c (Fremrassoc):
5454         * fns.c (Fremrassq):
5455         * fns.c (remrassq_no_quit):
5456         * fns.c (Fsort):
5457         * fns.c (Fplist_get):
5458         * fns.c (Fplist_put):
5459         * fns.c (Fplist_remprop):
5460         * fns.c (Fplist_member):
5461         * fns.c (Flax_plist_get):
5462         * fns.c (Flax_plist_put):
5463         * fns.c (Flax_plist_remprop):
5464         * fns.c (Flax_plist_member):
5465         * fns.c (Fequal):
5466         * fns.c (Fold_equal):
5467         * fns.c (Frequire):
5468         * fns.c (Fbase64_encode_region):
5469         * fns.c (Fbase64_encode_string):
5470         * fns.c (Fbase64_decode_region):
5471         * frame.c:
5472         * frame.c (frame_matches_frame_spec):
5473         * frame.c (device_matches_device_spec):
5474         * frame.c (next_frame):
5475         * frame.c (previous_frame):
5476         * frame.c (Fnext_frame):
5477         * frame.c (Fprevious_frame):
5478         * frame.c (Fframe_property):
5479         * frame.c (Fset_frame_height):
5480         * frame.c (Fset_frame_size):
5481         * frame.h:
5482         * glyphs.c:
5483         * glyphs.c (if):
5484         * glyphs.c (decode_error_behavior_flag):
5485         * glyphs.c (Fmake_image_instance):
5486         * indent.c (Findent_to):
5487         * intl.c (Fignore_defer_gettext):
5488         * keymap.c (Fkeymapp):
5489         * keymap.c (Flookup_key):
5490         * lread.c:
5491         * lread.c (Fload_internal):
5492         * lread.c (Feval_buffer):
5493         * lread.c (Feval_region):
5494         * macros.c (Fexecute_kbd_macro):
5495         * marker.c (set_marker_internal):
5496         * marker.c (Fset_marker):
5497         * marker.c (set_marker_restricted):
5498         * marker.c (Fcopy_marker):
5499         * marker.c (noseeum_copy_marker):
5500         * menubar.c:
5501         * menubar.c (Fpopup_menu):
5502         * minibuf.c:
5503         * mule-charset.c (Fcharset_name):
5504         * mule-charset.c (Fchar_charset):
5505         * mule-charset.c (Fchar_octet):
5506         * mule-charset.c (Fsplit_char):
5507         * mule-wnnfns.c (Fwnn_open):
5508         * mule-wnnfns.c (Fwnn_dict_comment):
5509         * mule-wnnfns.c (Fwnn_quit_henkan):
5510         * mule-wnnfns.c (Fwnn_word_toroku):
5511         * mule-wnnfns.c (Fwnn_word_sakujo):
5512         * mule-wnnfns.c (Fwnn_word_use):
5513         * mule-wnnfns.c (Fwnn_hindo_set):
5514         * objects.c:
5515         * objects.c (Fmake_color_instance):
5516         * objects.c (Fmake_font_instance):
5517         * print.c (Fwrite_char):
5518         * process.c:
5519         * process.c (mark_process):
5520         * process.c (print_process):
5521         * process.c (get_process_from_usid):
5522         * process.c (Fprocessp):
5523         * process.c (Fprocess_live_p):
5524         * process.c (Fget_process):
5525         * process.c (Fget_buffer_process):
5526         * process.c (get_process):
5527         * process.c (Fprocess_id):
5528         * process.c (Fprocess_name):
5529         * process.c (Fprocess_command):
5530         * process.c (init_process_io_handles):
5531         * process.c (start_process_unwind):
5532         * process.c (Fstart_process_internal):
5533         * process.c (Fopen_multicast_group_internal):
5534         * process.c (Fset_process_window_size):
5535         * process.c (read_process_output):
5536         * process.c (send_process):
5537         * process.c (Fprocess_tty_name):
5538         * process.c (Fset_process_buffer):
5539         * process.c (Fprocess_buffer):
5540         * process.c (Fprocess_mark):
5541         * process.c (set_process_filter):
5542         * process.c (Fset_process_filter):
5543         * process.c (Fprocess_filter):
5544         * process.c (Fprocess_send_region):
5545         * process.c (Fprocess_send_string):
5546         * process.c (exec_sentinel):
5547         * process.c (Fset_process_sentinel):
5548         * process.c (Fprocess_sentinel):
5549         * process.c (status_notify):
5550         * process.c (Fprocess_status):
5551         * process.c (Fprocess_exit_status):
5552         * process.c (process_send_signal):
5553         * process.c (Fprocess_send_eof):
5554         * process.c (deactivate_process):
5555         * process.c (remove_process):
5556         * process.c (Fdelete_process):
5557         * process.c (kill_buffer_processes):
5558         * process.c (Fprocess_kill_without_query):
5559         * process.c (Fprocess_kill_without_query_p):
5560         * rangetab.c:
5561         * rangetab.c (Fget_range_table):
5562         * rangetab.c (Fput_range_table):
5563         * rangetab.c (Fremove_range_table):
5564         * rangetab.c (Fclear_range_table):
5565         * search.c:
5566         * search.c (Fskip_chars_forward):
5567         * search.c (Fskip_chars_backward):
5568         * search.c (Fskip_syntax_forward):
5569         * search.c (Fskip_syntax_backward):
5570         * search.c (search_command):
5571         * search.c (Freplace_match):
5572         * search.c (Fregexp_quote):
5573         * select.c (Fown_selection_internal):
5574         * select.c (Fselection_owner_p):
5575         * select.c (Fselection_exists_p):
5576         * select.c (Fget_selection_internal):
5577         * specifier.c:
5578         * symbols.c:
5579         * symbols.c (Fintern):
5580         * symbols.c (Fintern_soft):
5581         * symbols.c (Funintern):
5582         * symbols.c (Fapropos_internal):
5583         * symbols.c (Fset_default):
5584         * syntax.c:
5585         * syntax.c (Fsyntax_table_p):
5586         * syntax.c (Fcopy_syntax_table):
5587         * syntax.c (Fset_syntax_table):
5588         * syntax.c (Fchar_syntax):
5589         * syntax.c (syntax_match):
5590         * syntax.c (Fmatching_paren):
5591         * syntax.c (Fforward_word):
5592         * syntax.c (scan_lists):
5593         * syntax.c (Fscan_lists):
5594         * syntax.c (Fscan_sexps):
5595         * syntax.c (Fparse_partial_sexp):
5596         * toolbar.c (Fcheck_toolbar_button_syntax):
5597         * tooltalk.doc:
5598         * window.c:
5599         * window.c (Fwindowp):
5600         * window.c (Fwindow_live_p):
5601         * window.c (Fwindow_point):
5602         * window.c (Fdelete_window):
5603         * window.c (Fnext_window):
5604         * window.c (Fprevious_window):
5605         * window.c (Fother_window):
5606         * window.c (window_loop):
5607         * window.c (Fget_lru_window):
5608         * window.c (Fsplit_window):
5609         * window.c (Fenlarge_window):
5610         * window.c (Fenlarge_window_pixels):
5611         * window.c (Fshrink_window):
5612         * window.c (Fshrink_window_pixels):
5613         * window.c (change_window_height):
5614         * window.c (Fwindow_configuration_p):
5615         * window.c (Fcurrent_window_configuration):
5616         * window.h:
5617         * casefiddle.c (casify_object):
5618         * casefiddle.c (Fupcase):
5619         * casefiddle.c (Fdowncase):
5620         * casefiddle.c (Fcapitalize):
5621         * casefiddle.c (Fupcase_initials):
5622         * casefiddle.c (casify_region_internal):
5623         * casefiddle.c (casify_region):
5624         * casefiddle.c (Fupcase_region):
5625         * casefiddle.c (Fdowncase_region):
5626         * casefiddle.c (Fcapitalize_region):
5627         * casefiddle.c (Fupcase_initials_region):
5628         * casefiddle.c (Fupcase_word):
5629         * casefiddle.c (Fdowncase_word):
5630         * casefiddle.c (Fcapitalize_word):
5631         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
5632         Replace 0 with '\0' when working with bytes.
5633         Replace initial "(" with "\(" in docstrings.
5634
5635 2000-11-01  Martin Buchholz  <martin@xemacs.org>
5636
5637         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
5638
5639         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
5640
5641 2000-10-31  Martin Buchholz  <martin@xemacs.org>
5642
5643         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
5644
5645 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
5646
5647         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
5648         correctly.
5649
5650 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
5651
5652         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
5653         (inhibit_auto_save_session): New variable.
5654         (vars_of_fileio): Declare and initialize them.
5655         * fileio.c (Fdo_auto_save): Don't create session file if
5656         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
5657
5658 2000-10-31  Martin Buchholz  <martin@xemacs.org>
5659
5660         * sgiplay.c (play_internal): C++ compilability.
5661         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
5662         * callproc.c (Fold_call_process_internal):
5663         Remove unused vars `env', `first'.
5664         * scrollbar.c (update_scrollbar_instance):
5665         #### unused var `current_window'.
5666         * redisplay-tty.c: Put currently unused vars insert_mode_on,
5667         etc. within #ifdef NOT_YET.
5668         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
5669         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
5670         * specifier.c (specifier_instance):
5671         #### unused var `tag'.
5672         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
5673
5674 2000-10-27  Martin Buchholz  <martin@xemacs.org>
5675
5676         * fns.c (Fbutlast):
5677         * fns.c (list_sort):
5678         * fns.c (Ffillarray):
5679         * fns.c (bytecode_nconc2):
5680         * fns.c (Fnconc):
5681         * fns.c (mapcar1):
5682         * fns.c (Fmapconcat):
5683         Be pedantically 64-bit correct.  For the time when someone will
5684         want to have a list with length > 2**32.
5685
5686         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
5687         Work around MIPSpro compiler bug.
5688
5689         * process-unix.c (unix_kill_child_process): Add snarky comment.
5690         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
5691
5692         * config.h.in: Oops, _getpt ==> _getpty
5693
5694 2000-10-26  Martin Buchholz  <martin@xemacs.org>
5695
5696         * config.h.in:
5697         * regex.c:
5698         Use void*, not char*, as return type of alloca().
5699
5700         * alloc.c (free_marker): Side effect inside assert expression!
5701
5702 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
5703
5704         * mule-charset.c (Fset_charset_ccl_program): To check
5705         if the given ccl program is valid, use setup_ccl_program()
5706         instead of CHECK_VECTOR().
5707         (Fmake_charset): Likewise.
5708
5709 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
5710
5711         * faces.c (get_extent_fragment_face_cache_index):
5712         Fix cachel.merged_faces memory leak.
5713
5714 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
5715
5716         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
5717         Reset MSB of octets obtained by DECODE_SJIS
5718         because of the incompatibility with Emacs.
5719         (ccl_driver)<CCL_ENCODE_SJIS>:
5720         Set MSB of octets before passing them to
5721         ENCODE_SJIS because of the incompatibility
5722         with Emacs.
5723
5724 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
5725
5726         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
5727         (DECLARE_LRECORD): Undo the last change.
5728         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
5729
5730 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
5731
5732         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
5733         the implementation to lrecord_implementations_table.
5734
5735 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
5736
5737         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
5738         initial value of `lrecord_type_##c_name' and
5739         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
5740         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
5741         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
5742         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
5743         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
5744
5745 2000-10-17  Martin Buchholz  <martin@xemacs.org>
5746
5747         * miscplay.c (sndcnv8S_2mono):
5748         (sndcnv2monounsigned):
5749         (sndcnvULaw_2linear):
5750         (sndcnv16swap):
5751         Remove implementation-defined behavior.
5752
5753 2000-10-12  Martin Buchholz  <martin@xemacs.org>
5754
5755         * input-method-xlib.c: Warning suppression.
5756
5757 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
5758
5759         * mule-ccl.c: Sync up with Emacs 21.0.90.
5760         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
5761         Do nothing.
5762         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
5763         Likewise.
5764         (ccl_driver[WriteMultibyteChar2]): Bug fix.
5765         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
5766         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
5767         leading char belongs to official 2-dimensional charset.
5768         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
5769         write the given character as is.  Otherwise,
5770         if it is a multibyte char, convert it by
5771         non_ascii_set_charptr_emchar, then write it.
5772         (CCL_WRITE_STRING): Likewise.
5773         (ccl_get_compiled_code): New function.
5774         (setup_ccl_program): When ccl_prog is invalid,
5775         return -1.
5776         (Fregister_code_conversion_map): New function.
5777         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
5778
5779         * mule-ccl.h: Sync up with Emacs 21.0.90.
5780         (Fregister_ccl_program): export it.
5781
5782         * redisplay-msw.c (separate_textual_runs):
5783         If ccl program is not valid, don't do ccl conversion.
5784
5785         * redisplay-x.c (separate_textual_runs): Ditto.
5786
5787         * file-coding.c (Fmake_coding_system):
5788         When type is ccl and value is vector, register it
5789         with a proper symbol.  And checks whether the
5790         given ccl program is valid.
5791         (mule_decode): When calling ccl_driver, if src indicates
5792         NULL pointer, set an empty string instead.
5793         (mule_encode): Likewise.
5794
5795 2000-10-11  Martin Buchholz  <martin@xemacs.org>
5796
5797         The following large batch of changes gets us back to a state of
5798         C++ compilability.  Extbyte is now a char, which means that
5799         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
5800
5801         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
5802
5803         * sound.c (Fplay_sound): Type correctness.
5804
5805         * select-x.c (hack_motif_clipboard_selection): Type correctness.
5806         (x_get_window_property): Type correctness.
5807         (receive_incremental_selection): unsigned char ==> Extbyte
5808         (selection_data_to_lisp_data): unsigned char ==> Extbyte
5809         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
5810         (Fx_store_cutbuffer_internal): Type correctness.
5811
5812         * process-unix.c (try_to_initialize_subtty): Type correctness.
5813
5814         * objects-x.c (x_print_color_instance): Type correctness.
5815         (x_print_font_instance): Type correctness.
5816         (x_list_fonts): SExtbyte ==> Extbyte.
5817         (valid_x_font_name_p): SExtbyte ==> Extbyte.
5818         (x_find_charset_font): SExtbyte ==> Extbyte.
5819         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
5820         (truename_via_XListFonts): SExtbyte ==> Extbyte.
5821         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
5822         Use bufbyte_strcmp.
5823
5824         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
5825         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
5826         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
5827         (BYTE_C0_P): Use bit ops for char-signedness safety.
5828         (BYTE_C1_P): Use bit ops for char-signedness safety.
5829         (CHARSET_BY_LEADING_BYTE):
5830         (CHARSET_BY_ATTRIBUTES):
5831         Always use inline function.
5832         Use type_checking_assert.
5833         Hide chlook.
5834
5835         * mule-charset.c (non_ascii_charptr_copy_char):
5836         Modify to work with both ASCII and non-ASCII characters.
5837         Improve docs and variable names.
5838         Replace over-clever fall-through switch with a simple loop.
5839         (Lstream_get_emchar_1):
5840         Replace over-clever fall-through switch with a simple loop.
5841
5842         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
5843         Warning suppression.
5844
5845         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
5846         the return value of Lstream_getc, which could be EOF as well.
5847
5848         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
5849
5850         * lisp.h: Make Extbyte a char, not unsigned char, so that external
5851         APIs can be used on Extbytes without casts.  Risky!
5852         (SExtbyte): Remove.
5853         (UExtbyte): Remove.
5854
5855         * input-method-xlib.c (XIM_init_device):
5856         Use Xlib.h instead of IntrinsicP.h.
5857         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
5858         which will break in X11R7.
5859         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
5860         to call XRegisterIMInstantiateCallback with correct types.
5861
5862         * gui-x.c (button_item_to_widget_value): Type correctness.
5863
5864         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
5865
5866         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
5867         (xbm_instantiate_1): Type correctness.
5868         (BUILD_GLYPH_INST):  Type correctness.
5869
5870         * fileio.c (Fsubstitute_in_file_name): Type correctness.
5871
5872         * file-coding.c:
5873         (decode_coding_sjis):
5874         (decode_coding_big5):
5875         (decode_coding_ucs4):
5876         (decode_coding_utf8):
5877         (decode_coding_iso2022):
5878         (decode_coding_no_conversion):
5879         Make all decoding functions take an Extbyte * arg.
5880         (encode_coding_sjis):
5881         (encode_coding_big5):
5882         (encode_coding_ucs4):
5883         (encode_coding_utf8):
5884         (encode_coding_iso2022):
5885         (encode_coding_no_conversion):
5886         Make all encoding functions take a Bufbyte * arg.
5887         Use size_t instead of unsigned int for memory sizes.
5888         Only cast to unsigned char whenever dereferencing Extbyte *.
5889
5890         * doc.c (unparesseuxify_doc_string): Type correctness.
5891
5892         * console-x.c (split_up_display_spec):
5893         Rewrite without using details of internal string representation.
5894         (x_semi_canonicalize_device_connection): Type correctness.
5895
5896         * config.h.in:
5897         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
5898         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
5899         (HAVE_XFREE386): Removed.
5900
5901         * buffer.h (DEC_CHARPTR): `const' correctness.
5902         (bufbyte_strcmp): New.
5903         (bufbyte_memcmp): New.
5904
5905         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
5906
5907         * buffer.h (XCHAR_OR_CHAR_INT):
5908         Always use inline function.
5909         Remove redundant type checking assert() - XINT will abort quite nicely.
5910
5911 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
5912
5913         * search.c (Freplace_match): Set newtext to an empty string.
5914
5915 2000-10-10  Martin Buchholz  <martin@xemacs.org>
5916
5917         * s/decosf1-3.h: Remove #include of stropts.h
5918         * s/ptx.h: Remove #include of stropts.h
5919         * s/usg5-4.h: Remove #include of stropts.h
5920         * sysproc.h:
5921         * config.h.in:
5922         Use stropts.h, not sys/stropts.h.
5923         Use strtio.h, not sys/strtio.h.
5924
5925 2000-10-04  Martin Buchholz <martin@xemacs.org>
5926
5927         * XEmacs 21.2.36 is released.
5928
5929 2000-09-21  Andy Piper  <andy@xemacs.org>
5930
5931         * glyphs-x.c (x_redisplay_widget): make sure non-structural
5932         changes still involve copying the widget tree.
5933         (update_widget_face): make sure a change is register in the widget
5934         tree. Call update_tab_widget_face appropriately.
5935         (update_tab_widget_face): ditto.
5936         (x_tab_control_redisplay): make sure non-structural changes still
5937         involve copying the widget tree.
5938
5939 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
5940
5941         * lread.c (locate_file): Check the path element is non-nil.
5942
5943 2000-10-02  Martin Buchholz  <martin@xemacs.org>
5944
5945         * lisp.h: Warning suppression for SCO compilers.
5946
5947         * redisplay-tty.c (reset_tty_modes): Fix crash.
5948         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
5949
5950 2000-09-27  Martin Buchholz  <martin@xemacs.org>
5951
5952         Big signal/process handling overhaul.  Bugs fixed:
5953         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
5954         M-x comint-kill-subjob should work for both values nil and t of
5955         process-connection-type. It was broken on most platforms.
5956         Testing on Irix and Cygwin still needed.  Other plaforms tested.
5957         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
5958         * process-unix.c: Signal/Process handling overhaul.
5959         (pty_name): make 64 bytes, as `expect' does, for paranoia.
5960         (allocate_pty): Use all available modern methods of allocating
5961         ptys, falling back to old style BSD allocation as a last resort.
5962         Use allegedly more secure Unix98 pty allocation by default.
5963         (allocate_pty_the_old_fashioned_way): New. the last resort.
5964         (unix_create_process): Push ptem, ldterm, ttcompat where
5965         available.  Autoconfiscate.
5966         (try_to_initialize_subtty): New.
5967         (unix_kill_child_process): Proper signal handling for ptys on most
5968         platforms, using special knowledge of AIX, BSD, etc...
5969         (unix_create_process): Always disconnect_controlling_terminal() for
5970         subprocesses, whether using ptys or not.
5971         * process.h: Remove old getpt-dependent PTY code.
5972         * process.c (Fprocess_send_signal): New, obvious generic function.
5973         (decode_signal): New.
5974         (Finterrupt_process):
5975         (Fkill_process):
5976         (Fquit_process):
5977         (Fstop_process):
5978         (Fcontinue_process):
5979         (Fsignal_process): Use decode_signal.
5980         (process_send_signal):
5981         Many docstring corrections.
5982         Allow any signal to be sent to a process object.
5983         * config.h.in: Add symbols for big signal/process overhaul.
5984         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
5985         * sysproc.h: Include process-related headers, where available:
5986         sys/stropts.h sys/strtio.h pty.h libutil.h
5987         * s/irix4-0.h:
5988         * s/irix5-0.h:
5989         * s/cygwin32.h:
5990         * s/gnu.h:
5991         * s/linux.h:
5992         * s/hpux.h:
5993         * s/aix3-1.h:
5994         Remove old S&M pty stuff.
5995         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
5996         * systty.h: Simplify cpp hackery, improve comments.
5997         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
5998
5999         * editfns.c (Fformat_time_string):
6000         Be a little more paranoid with the return value of ctime.
6001
6002         * fileio.c (check_executable):
6003         (check_writable):
6004         Use symbolic constants X_OK, W_OK.
6005
6006         * console-x.c (split_up_display_spec): Fix a warning.
6007
6008 2000-10-02  Martin Buchholz  <martin@xemacs.org>
6009
6010         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
6011         * ntproc.c (sys_spawnve): make_string ==> build_string
6012         Small clarity improvements.
6013
6014 2000-09-30  Martin Buchholz  <martin@xemacs.org>
6015
6016         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
6017
6018         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
6019
6020         * config.h.in (HAVE_STRCASECMP): Remove.
6021
6022 2000-09-29  Martin Buchholz  <martin@xemacs.org>
6023
6024         * redisplay-output.c (redisplay_output_pixmap):
6025         Cleaner and possibly more 64-bit correct code.
6026
6027 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
6028
6029         * dumper.c (pdump_load_finish): move restoration of
6030         `noninteractive1' to emacs.c (main_1).
6031         * emacs.c (main_1): protect LISP-visible command-line flags
6032         from pdump_load().
6033
6034 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
6035
6036         * Makefile.in.in (versionclean):  Use EXE_TARGET and
6037         DUMP_TARGET instead of literal program names.
6038
6039 2000-09-20  Martin Buchholz  <martin@xemacs.org>
6040
6041         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
6042
6043 2000-09-19  Martin Buchholz  <martin@xemacs.org>
6044
6045         * *: Spelling mega-patch
6046
6047 2000-09-19  Martin Buchholz  <martin@xemacs.org>
6048
6049         * fns.c (bad_bad_turtle):
6050         Delete "Eek!" comment, since we fixed the bug to which it refers.
6051
6052 2000-09-16  Martin Buchholz  <martin@xemacs.org>
6053
6054         * alloca.c: Replace REGISTER with register.
6055
6056 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
6057
6058         * file-coding.c (ucs_to_char): Use countof.
6059
6060 2000-09-16  Martin Buchholz  <martin@xemacs.org>
6061
6062         * file-coding.c: (ucs_to_char):
6063         (complex_vars_of_file_coding):
6064         Use countof instead of sizeof.
6065         Use CHECK_NATNUM instead of CHECK_INT.
6066
6067         * sysdep.c (strcasecmp): Remove.
6068         * device-x.c (ascii_strcasecmp): New.
6069         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
6070         Avoid using non-standard non-portable strcasecmp.
6071
6072 2000-09-16  Martin Buchholz  <martin@xemacs.org>
6073
6074         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
6075         * font-lock.c: remove reference to emacsfns.h.
6076         * search.c: small doc improvement.
6077         * event-Xt.c: correct file names in comments.
6078         * console-x.h Correct file names in comments.
6079         * frame.c: Correct file names in comments.
6080         * event-stream.c: remove Energize from comments.
6081
6082 2000-09-15  Martin Buchholz  <martin@xemacs.org>
6083
6084         * symeval.h (DEFERROR_STANDARD):
6085         (DEFERROR):
6086         (DEFSYMBOL):
6087         (DEFSYMBOL_NO_DUMP):
6088         (DEFSYMBOL_MULTIWORD_PREDICATE):
6089         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
6090         (DEFKEYWORD):
6091         The construct &##name is not sensible C.
6092         Fixes compilation errors with Unixware native compiler.
6093
6094 2000-09-14  Martin Buchholz  <martin@xemacs.org>
6095
6096         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
6097         (next_frame_internal): Removed.  We now just have next_frame.
6098         (next_frame):
6099         Write a simpler and cleaner one-pass algorithm.
6100         Remove called_from_delete_device arg and #ifdefed-out code.
6101         (previous_frame):
6102         Renamed from prev_frame.  Update callers.
6103         Cleaned up to have an analogous implementation to next_frame.
6104         (other_visible_frames_internal): Remove the
6105         called_from_delete_device bogus arg, and hence, remove this
6106         function.  Just use other_visible_frames().
6107
6108         * window.c (Fnext_window):
6109         Prettify docstring.
6110         Since next_frame() is guaranteed to return a frame, remove check
6111         for nil inserted in previous patch.
6112         (Fprevious_window):
6113         Prettify docstring.
6114         Make code look more like Fnext_window.
6115         (window_loop):
6116         Respect the `console' arg when iterating through windows.
6117         Fixes bug: (get-buffer-window buffer t device) not respecting
6118         the `device' arg.
6119         This function needs more work, as others have pointed out.
6120
6121         * frame.h: Rename prev_frame to previous_frame.
6122         device_matches_console_spec no longer takes a `frame' arg.
6123
6124         * s/gnu.h:
6125         * s/linux.h:
6126         * s/hpux.h:
6127         Use EMACS_BLOCK_SIGNAL instead of sigblock.
6128         From "Golubev I. N." <gin@mo.msk.ru>.
6129
6130         * make-src-depend: Fix typo.
6131
6132 2000-09-13  Martin Buchholz  <martin@xemacs.org>
6133
6134         * window.c (Fnext_window):
6135         next_frame() might return nil, not a frame.
6136         Fixes this crash:
6137         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
6138
6139         * frame.c (next_frame_internal):
6140         We've passed a frame if we've passed its device.
6141         Fixes this crash:
6142         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
6143 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
6144
6145 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
6146
6147         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
6148         Allow option to suppress accelerators in menu/dialog items.
6149         (populate_or_checksum_helper): Pass dialog title through above.
6150
6151 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
6152
6153         * event-msw.c (mswindows_key_to_emacs_keysym):
6154         Add "pause" key, fix "menu" key.
6155
6156 2000-09-09  Martin Buchholz  <martin@xemacs.org>
6157
6158         * eval.c (reinit_vars_of_eval):
6159         Increase max_lisp_eval_depth to 1000,
6160         required for thai-xtis.el to byte-compile under some circumstances.
6161
6162 2000-09-04  Martin Buchholz  <martin@xemacs.org>
6163
6164         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
6165         From Kenichi Handa.
6166
6167 2000-09-01  Martin Buchholz  <martin@xemacs.org>
6168
6169         * make-src-depend: Make the generated Makefiles smaller.
6170
6171         * s/hpux.h (SETUP_SLAVE_PTY):
6172         Provide a %d in the format string for the errno argument.
6173
6174         * editfns.c (Ftemp_directory):
6175         Warning fix.
6176         Avoid buffer overrun on very long file name.
6177
6178         * input-method-xlib.c (XIM_init_device):
6179         6th parameter of XRegisterIMInstantiateCallback has different
6180         pointer types on different OSes, so simply cast to (void *).
6181
6182         * unexhp9k800.c: Warning fixes.  Fiddly changes.
6183
6184         * sysdll.c (dll_open):
6185         shl_load will hang hard if passed a NULL filename.
6186         Simply return NULL for compatibility with dlopen.
6187         * sysdll.c: Conform to XEmacs coding standards.
6188
6189         * sysdep.c (get_pty_max_bytes):
6190         Support pty input lines longer than 512 bytes on HP-UX 10.20.
6191
6192 2000-08-31  Martin Buchholz  <martin@xemacs.org>
6193
6194         * tooltalk.c: Add #include <syssignal.h>
6195
6196 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
6197
6198         * s/hpux.h: Don't use undefined function sigunblock().
6199
6200 2000-08-31  Martin Buchholz  <martin@xemacs.org>
6201
6202         * config.h.in: Add HAVE_BALLOON_HELP.
6203         * emacs.c: Use HAVE_BALLOON_HELP.
6204         * Makefile.in.in (x_objs):
6205         Make Balloon Help conditional on finding shape.h.
6206
6207 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
6208
6209         * syntax.c (regex_emacs_buffer_p): New variable.
6210         * syntax.h (regex_emacs_buffer_p): extern.
6211         * search.c (looking_at_1):
6212         (string_match_1):
6213         (fast_string_match):
6214         (search_buffer): Set regex_emacs_buffer_p.
6215         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
6216         when before_dot, at_dot, after_dot.
6217
6218 2000-08-23  Andy Piper  <andy@xemacs.org>
6219
6220         * gui-x.c (popup_selection_callback): Only set action_occurred
6221         when we really have an image instance.
6222         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
6223
6224 2000-08-23  Andy Piper  <andy@xemacs.org>
6225
6226         * gui-msw.c (mswindows_handle_gui_wm_command): set
6227         action_occurred.
6228         * gui-x.c (popup_selection_callback): ditto.
6229
6230         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
6231         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
6232         (struct Lisp_Image_Instance): add action_occurred flag.
6233
6234         * glyphs.c (redisplay_subwindow): use action_occurred flag.
6235         (image_instance_changed): ditto.
6236         (reset_frame_subwindow_instance_cache): only unmap windows - do
6237         not remove them from the cache also.
6238
6239         * glyphs-widget.c (tab_control_update): better debug.
6240         (progress_gauge_update): ditto.
6241         (layout_update): ditto.
6242         (layout_instantiate): ditto.
6243         (tab_control_order_only_changed): cope with null pending items.
6244
6245         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
6246         debug. Force selection of an item when an action occurred. Cope
6247         with null pending_items.
6248         (mswindows_progress_gauge_redisplay): better debug.
6249         * glyphs-x.c (x_tab_control_redisplay): ditto.
6250
6251         * redisplay.c (redisplay_frame): reset the frame cache if the
6252         frame is garbaged.
6253
6254         * window.c (Fset_window_configuration): potentially re-enable
6255         frame cache reset.
6256         (window_unmap_subwindows): need to finalize instances here since
6257         it is only used in mark_window_as_deleted.
6258
6259 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
6260
6261         * nas.c (SndOpenDataForReading):
6262         nas.c (WaveOpenDataForReading):
6263         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
6264         Somehow escaped from the 2000-08-14 patch.
6265
6266 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
6267
6268         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
6269         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
6270
6271 2000-08-21  Andy Piper  <andy@xemacs.org>
6272
6273         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
6274         window if it is not already displayed.
6275
6276         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
6277         it is not already displayed.
6278
6279         * window.c (Fset_window_configuration): don't reset the frame
6280         cache.
6281
6282         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
6283         instances from the frame cache if we are actually finalizing them.
6284         (reset_frame_subwindow_instance_cache): reset frame cache only
6285         after unmapping everything.
6286         (map_subwindow): set displayed flag after mapping.
6287
6288 2000-08-21  Martin Buchholz  <martin@xemacs.org>
6289
6290         * data.c (indirect_function):
6291         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
6292
6293         * eval.c (function_argcount):
6294         Use original function when signaling errors.
6295
6296 2000-08-18  Andy Piper  <andy@xemacs.org>
6297
6298         * frame.c (delete_frame_internal): use new
6299         free_frame_subwindow_instances name.
6300
6301         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
6302         (add_tab_item): make return type correct.
6303         (mswindows_tab_control_instantiate): assert index of tab.
6304         (mswindows_tab_control_redisplay): Re-code to use
6305         gui_item_equal_sans_selected and gui_item_list_find_selected.
6306
6307         * glyphs-widget.c (tab_control_update): Correct comment.
6308
6309         * window.c (window_unmap_subwindows): use new
6310         unmap_subwindow_instance_cache_mapper.
6311         (window_unmap_subwindows_cache_mapper): deleted.
6312         (Fset_window_configuration): comparisons should now be with
6313         EQ. Preserve the subwindow instance cache across configuration
6314         changes.
6315         (allocate_window): ditto.
6316         (make_dummy_parent): ditto.
6317
6318         * glyphs.c (free_frame_subwindow_instances): rename from
6319         free_frame_subwindow_instance_cache. finalize all instances rather
6320         than just those in the display cache.
6321         (finalize_all_subwindow_instances): walk windows unmapping and
6322         finalizing subwindows.
6323         (unmap_subwindow_instance_cache_mapper): moved from
6324         window.c. Allow finalization as well as unmapping.
6325
6326         * gui.c (gui_item_list_find_selected): new function.
6327
6328         * gui.h (gui_item_list_find_selected): declare.
6329
6330         * glyphs-x.c (x_tab_control_redisplay): pick tab
6331         explicitly. Re-code to use gui_item_equal_sans_selected and
6332         gui_item_list_find_selected.
6333
6334         * glyphs-x.h: add lwlib-utils.h
6335
6336         * buffer.c (Frecord_buffer): undo previous change.
6337
6338 2000-08-09  Vin Shelton  <acs@xemacs.org>
6339
6340         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
6341         possible.  Create temporary files more securely.  The patch was
6342         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
6343         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
6344         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
6345         for details.
6346
6347 2000-08-07  Ben Wing  <ben@xemacs.org>
6348
6349         * getloadavg.c: remove duplicate (and windows-breaking)
6350         includes of fcntl.h and sys/file.h.
6351
6352         * nt.c: remove duplicate getloadavg() definition.
6353
6354         * sysdll.h (Qdll_filename_encoding): add missing stand-in
6355         encodings.
6356
6357 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
6358
6359         * eval.c (function_argcount): If function needs to be autoloaded
6360         actually use the loaded definition.
6361         GCPRO function.
6362
6363 2000-08-05  Ben Wing  <ben@xemacs.org>
6364
6365         * getloadavg.c: add prototype for getloadavg().  remove
6366         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
6367         of the code).  remove duplicate header includes.
6368
6369         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
6370
6371         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
6372         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
6373         useful load average.
6374
6375         * alloc.c (reinit_alloc_once_early): removed references to
6376         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
6377         the lisp vars are the only things referencing the malloc_sbrk_*
6378         vars, and they were already if 0'd out.  these vars only exist
6379         in the older malloc.c, which is basically unused, and they're
6380         only for informational purposes.
6381
6382         * m\*.h: removed useless VIRT_ADDR_VARIES.
6383
6384         * m\powerpc.h: removed stray NO_ARG_ARRAY.
6385
6386 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
6387
6388         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
6389         color if the image is a mono pixmap.
6390
6391 2000-07-30  Ben Wing  <ben@xemacs.org>
6392
6393         * Makefile.in.in (release):
6394         Remove stray @.
6395
6396         * buffer.c (directory_is_current_directory):
6397         * dired-msw.c (mswindows_get_files):
6398         * dired.c:
6399         * dired.c (Fdirectory_files):
6400         * dired.c (file_name_completion_stat):
6401         * dired.c (Ffile_attributes):
6402         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
6403         preprocessor tricks, to avoid problems on some machines
6404         (e.g. SCO).
6405
6406         * callproc.c (egetenv): GC docs.
6407
6408         * console-msw.h:
6409         * console-msw.h (struct mswindows_dialog_id):
6410         * lrecord.h (lrecord_type):
6411         New object for use with MSW dialogs.
6412
6413         * console.h (struct console_methods):
6414         New enable/disable frame methods, for proper modal dialogs.
6415
6416         * device-msw.c (msprinter_default_printer): Fix to follow
6417         proper Mule conventions.
6418
6419         * device-msw.c:
6420         * device-msw.c (signal_open_printer_error):
6421         * device-msw.c (msprinter_init_device):
6422         * device-msw.c (ensure_not_printing):
6423         * device-msw.c (plist_get_margin):
6424         * device-msw.c (Fmsprinter_select_settings):
6425         * device-msw.c (finalize_devmode):
6426         * device-msw.c (Fmsprinter_settings_despecialize):
6427         * device-msw.c (signal_enum_priner_error):
6428         * extents.c (decode_extent):
6429         * extents.c (decode_map_extents_flags):
6430         * extents.c (decode_extent_at_flag):
6431         * extents.c (Fextent_at):
6432         * extents.c (Fextents_at):
6433         * extents.c (symbol_to_glyph_layout):
6434         [[[[2]]]] Use structured errors.
6435
6436         * dialog-msw.c:
6437         * dialog-msw.c (mswindows_is_dialog_msg):
6438         * dialog-msw.c (mark_mswindows_dialog_id):
6439         * dialog-msw.c (dialog_proc):
6440         * dialog-msw.c (handle_question_dialog_box):
6441         * dialog-msw.c (syms_of_dialog_mswindows):
6442         Define new object to clean up marking; use it as a dialog identifier.
6443         Call new delete-dialog-box-hook.
6444
6445         * dialog-x.c (dbox_selection_callback):
6446         * dialog-x.c (dbox_descriptor_to_widget_value):
6447         * dialog-x.c (x_make_dialog_box_internal):
6448         Call new delete-dialog-box-hook.
6449         Return an id.
6450
6451         * dialog.c:
6452         * dialog.c (syms_of_dialog):
6453         * dialog.c (vars_of_dialog):
6454         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
6455
6456         * eval.c:
6457         * eval.c (signal_call_debugger):
6458         when noninteractive, output stack traces on the console instead
6459         of in a (never-seen) buffer.
6460
6461         * eval.c (signal_type_error):
6462         * eval.c (invalid_argument_2):
6463         * lisp.h:
6464         new funs for use w/structured errors.
6465
6466         * event-Xt.c:
6467         * event-Xt.c (x_to_emacs_keysym):
6468         * event-Xt.c (describe_event):
6469         * event-Xt.c (emacs_Xt_event_handler):
6470         * event-Xt.c (vars_of_event_Xt):
6471         * event-msw.c:
6472         * event-msw.c (mswindows_wnd_proc):
6473         * event-msw.c (vars_of_event_mswindows):
6474         rename {x,mswindows}-debug-events to debug-{}-events for
6475         consistency with other debug-foo variables.
6476
6477         * event-stream.c:
6478         document next-event more clearly.
6479
6480         * fileio.c (Ffile_name_directory):
6481         * fileio.c (Ffile_name_nondirectory):
6482         * fileio.c (Funhandled_file_name_directory):
6483         * fileio.c (file_name_as_directory):
6484         * fileio.c (Ffile_name_as_directory):
6485         * fileio.c (directory_file_name):
6486         * fileio.c (Fdirectory_file_name):
6487         * fileio.c (Fmake_temp_name):
6488         * fileio.c (Ffile_truename):
6489         * fileio.c (Fsubstitute_in_file_name):
6490         * fileio.c (expand_and_dir_to_file):
6491         * fileio.c (barf_or_query_if_file_exists):
6492         * fileio.c (check_executable):
6493         * fileio.c (Ffile_exists_p):
6494         * fileio.c (Ffile_writable_p):
6495         * fileio.c (Ffile_directory_p):
6496         * fileio.c (Ffile_regular_p):
6497         * fileio.c (Ffile_modes):
6498         * fileio.c (Ffile_newer_than_file_p):
6499         * fileio.c (Fverify_visited_file_modtime):
6500         * fileio.c (Fset_visited_file_modtime):
6501         * fileio.c (auto_save_1):
6502         (1). (2).
6503         fix up gcpro's.
6504
6505         * frame-msw.c:
6506         * frame-msw.c (mswindows_init_frame_1):
6507         * frame-msw.c (mswindows_enable_frame):
6508         * frame-msw.c (error_frame_unsizable):
6509         * frame-msw.c (msprinter_init_frame_1):
6510         * frame-msw.c (msprinter_init_frame_3):
6511         * frame-msw.c (console_type_create_frame_mswindows):
6512         (2).
6513         implement new enable/disable frame methods.
6514
6515         * frame-x.c:
6516         * frame-x.c (x_enable_frame):
6517         * frame-x.c (console_type_create_frame_x):
6518         implement new enable/disable frame methods.
6519
6520         * frame.c:
6521         * frame.c (Fdisable_frame):
6522         * frame.c (syms_of_frame):
6523         * frame.h (struct frame):
6524         implement new enable/disable frame methods/functions.
6525
6526         * general-slots.h:
6527         add initial-focus.
6528
6529         * glyphs-msw.c (mswindows_widget_instantiate):
6530         comment that initial-focus should be implemented.
6531
6532         * glyphs-widget.c:
6533         * glyphs-widget.c (check_valid_instantiator):
6534         * glyphs-widget.c (check_valid_orientation):
6535         * glyphs-widget.c (check_valid_tab_orientation):
6536         * glyphs-widget.c (check_valid_justification):
6537         * glyphs-widget.c (check_valid_border):
6538         * glyphs-widget.c (check_valid_callback):
6539         * glyphs-widget.c (check_valid_int_or_function):
6540         * glyphs-widget.c (check_valid_string_or_vector):
6541         * glyphs-widget.c (check_valid_item_list_1):
6542         * glyphs-widget.c (widget_validate):
6543         * glyphs-widget.c (combo_box_validate):
6544         * glyphs-widget.c (widget_instantiate):
6545         * glyphs-widget.c (syms_of_glyphs_widget):
6546         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
6547         * glyphs-widget.c (image_instantiator_combo_box):
6548         * glyphs-widget.c (image_instantiator_scrollbar):
6549         * glyphs-widget.c (image_instantiator_tab_control):
6550         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
6551         (2).
6552         support (unimplemented) keyword initial-focus.
6553         reindent long macros.
6554
6555         * glyphs-x.c (x_redisplay_widget):
6556         * glyphs-x.c (x_button_instantiate):
6557         * glyphs-x.c (x_button_redisplay):
6558         * glyphs-x.c (x_progress_gauge_instantiate):
6559         * glyphs-x.c (x_edit_field_instantiate):
6560         * glyphs-x.c (x_combo_box_instantiate):
6561         * glyphs-x.c (x_tab_control_instantiate):
6562         * glyphs-x.c (x_label_instantiate):
6563         * gui-x.c:
6564         * gui-x.c (button_item_to_widget_value):
6565         * gui-x.c (gui_items_to_widget_values_1):
6566         * gui-x.c (gui_item_children_to_widget_values):
6567         * gui-x.c (gui_items_to_widget_values):
6568         * gui-x.h:
6569         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
6570         add new flag to gui-parsing routines to indicate whether
6571         accelerator specs should be supported.
6572
6573         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
6574
6575         * glyphs.h (struct Lisp_Image_Instance):
6576         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
6577         add initial-focus flag.
6578
6579         * gui.c:
6580         * gui.c (syms_of_gui):
6581         * gui.c (vars_of_gui):
6582         clean up menu-no-selection-hook.
6583
6584         * gui.h:
6585         support delete-dialog-box-hook.
6586
6587         * lread.c (Fload_internal):
6588         * lread.c (locate_file_in_directory_mapper):
6589         (1).
6590
6591         * lrecord.h:
6592         * lrecord.h (struct toolbar_button):
6593         * lrecord.h (syms_of_toolbar):
6594         document how to create a new object.
6595
6596         * menubar-msw.c (mswindows_char_is_accelerator):
6597         may be called on frames w/o menus.
6598
6599         * menubar.c (vars_of_menubar):
6600         clean up :filter docs.
6601
6602         * nt.c (readdir):
6603         * ntproc.c:
6604         (1).
6605
6606         * process-nt.c:
6607         * process-nt.c (validate_signal_number):
6608         * process-nt.c (signal_cannot_launch):
6609         * process-nt.c (nt_create_process):
6610         * process-nt.c (nt_send_process):
6611         * process-nt.c (nt_kill_child_process):
6612         * process-nt.c (nt_open_network_stream):
6613         * process-nt.c (syms_of_process_nt):
6614         (2).
6615         delete quote-handling.  call new lisp code that does it better.
6616
6617         * process-unix.c (connect_to_file_descriptor):
6618         * process-unix.c (allocate_pty):
6619         * process-unix.c (unix_send_process):
6620         * process-unix.c (unix_kill_child_process):
6621         * process-unix.c (unix_open_network_stream):
6622         * process-unix.c (unix_open_multicast_group):
6623         (1). (2).
6624
6625         * process.c:
6626         * process.c (Fstart_process_internal):
6627         (2).  need to canonicalize process path even if absolute.
6628
6629         * select-msw.c (symbol_to_ms_cf):
6630         * select-msw.c (ms_cf_to_symbol):
6631         * select-msw.c (cf_is_autofreed):
6632         * select-msw.c (mswindows_destroy_selection):
6633         * select.c:
6634         * select.c (syms_of_select):
6635         * select.h:
6636         support dibv5, fix bugs. (from Mike Alexander)
6637
6638         * select.c (Fget_selection_internal):
6639         * select.c (select_convert_out):
6640
6641         * sysdep.c:
6642         * sysdep.c (xemacs_stat):
6643         renamed.
6644
6645         * sysdep.c (mkdir):
6646         * sysdep.c (rmdir):
6647         but keep original stat() here because we provide encapsulation
6648         around these funs.
6649
6650         * sysfile.h:
6651         * sysfile.h (fstat):
6652         remove stat garbage.
6653
6654         * syswindows.h:
6655         fix X/MSW conflict.
6656         don't include tchar.h.  it's inappropriate because it makes
6657         compile-time distinctions when we want runtime distinctions.
6658         (we provide our own tchar replacements)
6659
6660         * toolbar.c:
6661         use default object printer for toolbar-button.
6662
6663         * unexcw.c:
6664         make sure we don't encapsulate.
6665
6666         * window.c (vars_of_window):
6667         emphasize that temp-buffer-show-hook is obsolete.
6668
6669 2000-08-05  Martin Buchholz  <martin@xemacs.org>
6670
6671         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
6672         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
6673
6674         * events.c (Fevent_timestamp_lessp):
6675         Not 64-bit clean.  Use EMACS_INT, not int.
6676
6677 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
6678
6679         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
6680         unsigned int and changed the last enum to
6681         lrecord_type_last_built_in_type.
6682         (lrecord_implementations_table): changed prototype to know how
6683         long the array is supposed to be.
6684         (lrecord_type_count): new unsigned int to keep track of the
6685         current number of lisp lrecord types.
6686         (DEFINE_EXTERNAL_LRECORD):
6687         (DECLARE_EXTERNAL_LRECORD): Added these two for external
6688         dynamic-modules to declare new lisp types. They are the same
6689         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
6690         int for each new type, and increment lrecord_type_count by 1.
6691
6692         * alloc.c (lrecord_implementations_table): Changed to reference
6693         lrecord_type_last_built_in_type for the size of the array.
6694         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
6695
6696 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
6697
6698         * glyphs.h (check_valid_item_list): Renamed from
6699         check_valid_item_list_1.
6700
6701 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
6702
6703         * select.c (Qselect_coerce): New.
6704         * select.c (Vselection_coercion_alist): New.
6705         * select.c (syms_of_select): Declare.
6706         * select.c (get-selection-internal): Use it.
6707         Use the new select-coerce functionality.
6708
6709         * select.c (select_coerce): New.
6710         * select.h (select_coerce): Declare.
6711         New function to coerce one type of data into another.
6712
6713 2000-08-03  Martin Buchholz  <martin@xemacs.org>
6714
6715         * callproc.c (Fcall_process_internal):
6716         (Fcall_process_internal):
6717         * process-unix.c (unix_create_process):
6718         Save and restore the value of errno, so that error messages are accurate.
6719
6720 2000-08-01  Martin Buchholz  <martin@xemacs.org>
6721
6722         * elhash.c (print_hash_table):
6723         Fix printing of hash tables to also use `key-and-value' instead of `t'.
6724         Prettify docstrings and indentation.
6725
6726 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
6727
6728         * window.c (Fwindow_pixel_edges): Subtract frame border and
6729         gutter size.
6730
6731 2000-07-31  Andy Piper  <andy@xemacs.org>
6732
6733         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
6734         will acknowledge the change.
6735
6736         * glyphs.h: declare tab_control_order_only_changed.
6737
6738         * glyphs-x.c (x_tab_control_redisplay): use
6739         tab_control_order_only_changed.
6740
6741         * glyphs-widget.c (tab_control_order_only_changed): new function.
6742
6743         * glyphs-msw.c (mswindows_tab_control_redisplay): use
6744         tab_control_order_only_changed.
6745
6746         * gui.c (gui_item_equal_sans_selected): new function.
6747         (gui_item_equal): use it.
6748
6749         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
6750         :properties in favor of :items..
6751
6752         * glyphs-widget.c (check_valid_item_list): rename from
6753         check_valid_item_list_1.
6754         (check_valid_item_list_1): renamed.
6755         (combo_box_validate): deprecate :properties in favor of :items.
6756         (widget_instantiate): ditto.
6757         (tab_control_update): ditto.
6758         (image_instantiator_combo_box): ditto.
6759         (image_instantiator_tree_view): ditto.
6760         (image_instantiator_tab_control): ditto.
6761         (layout_post_instantiate): remove dead code.
6762
6763         * print.c (debug_print_no_newline): only write to debugger if in
6764         WIN32_NATIVE.
6765
6766         * elhash.c (Fmake_hash_table): update doc string.
6767
6768         * event-msw.c (mswindows_wnd_proc): don't allow processing of
6769         messages whilst in GC. This at least stops XEmacs crashing but has
6770         the potential for wierd behaviour.
6771
6772 2000-07-31  Martin Buchholz  <martin@xemacs.org>
6773
6774         * config.h.in:
6775         Make existence of s&m files optional.
6776
6777         * s/bsd386.h: Remove HAVE_GETLOADAVG.
6778         * s/freebsd.h: Remove HAVE_GETLOADAVG.
6779         * s/gnu.h: Remove HAVE_GETLOADAVG.
6780         * s/netbsd.h: Remove HAVE_GETLOADAVG.
6781         * s/sol2.h: Remove HAVE_GETLOADAVG.
6782         * lisp.h: Remove getloadavg() declaration.
6783         * fns.c:
6784         Include <sys/loadavg.h> if available.
6785         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
6786         * config.h.in:  Group together getloadavg()-related macros.
6787         Use only configure-time tests to detect getloadavg().
6788
6789 2000-07-30  Martin Buchholz  <martin@xemacs.org>
6790
6791         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
6792
6793 2000-07-25  Andy Piper  <andy@xemacs.org>
6794
6795         * syswindows.h: add tchar.h for native builds.
6796
6797         * frame.c (syms_of_frame): remove set-glyph-image.
6798
6799         * general-slots.h: add Qset_glyph_image.
6800
6801         * glyphs-widget.c (layout_update): add domain arg to
6802         set-glyph-image.
6803         (syms_of_glyphs_widget): remove set-glyph-image.
6804
6805 2000-07-23  Ben Wing  <ben@xemacs.org>
6806
6807         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
6808         Vpopup_frame_list.
6809
6810 2000-07-22  Andy Piper  <andy@xemacs.org>
6811
6812         * symsinit.h: add syms_of_win32().
6813
6814         * gui-msw.c (syms_of_gui_mswindows): remove
6815         Fmswindows_shell_execute.
6816         (Fmswindows_shell_execute): moved to win32.c.
6817
6818         * emacs.c (main_1): add syms_of_win32 ().
6819
6820         * win32.c (init_potentially_nonexistent_functions): rewrite in
6821         compiler-friendly terms.
6822         (Fmswindows_shell_execute): move here from gui-msw.c.
6823         (syms_of_win32): new.
6824
6825         * device-msw.c (Fmswindows_printer_list): clean up args to
6826         EnumPrinters.
6827         Don't include tchar under cygwin or mingw.
6828         (msprinter_default_printer): make cygwin-friendly.
6829
6830 2000-07-21  Andy Piper  <andy@xemacs.org>
6831
6832         * glyphs-widget.c (image_instantiator_tree_view): use tab
6833         control's update function.
6834         (layout_property): new function. Retrieve items.
6835
6836         * glyphs-msw.c (mswindows_tree_view_redisplay): new
6837         function. Re-populate the tree view from the pending items.
6838
6839         * glyphs.c (instantiate_image_instantiator): Make sure the domain
6840         is designated the parent if the domain is an image instance. This
6841         is needed so that dirtiness can be cascade up the hierarchy and
6842         thus for layout children to be redisplayed correctly.
6843         (allocate_image_instance): rename glyph -> parent.
6844
6845         * redisplay.h: change redisplay_output_layout signature.
6846
6847         * redisplay-msw.c (mswindows_output_display_block): use domain
6848         arg.
6849
6850         * redisplay-x.c (x_output_display_block): use domain arg.
6851
6852 2000-07-10  Andy Piper  <andy@xemacs.org>
6853
6854         * window.c (Fset_window_configuration): add comment.
6855
6856         * redisplay-output.c (compare_runes):
6857         (redisplay_output_subwindow): redisplay rather than update subwindow.
6858         (redisplay_output_layout): ditto.
6859
6860         * redisplay-msw.c (mswindows_frame_output_end):
6861         (mswindows_frame_output_end): make defer window pos optional.
6862
6863         * lisp.h: add Flast.
6864
6865         * glyphs.h (struct image_instantiator_methods): add dest_mask top
6866         normalize method. Change update method to be for changed
6867         instantiators. Add redisplay method. Change signature of layout
6868         method.
6869         (struct Lisp_Image_Instance): add instantiator.
6870         (IMAGE_INSTANCE_INSTANTIATOR): new.
6871         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
6872         (XIMAGE_INSTANCE_INSTANTIATOR): new.
6873         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
6874
6875         * glyphs.c:
6876         (find_instantiator_differences): new function.
6877         (Fset_instantiator_property): new convenience function.
6878         (check_image_instance_structure): strictly check for vector
6879         instantiators.
6880         (normalize_image_instantiator): make non-static.
6881         (instantiate_image_instantiator): pass on dest_mask and use new
6882         signatures for image_instance_layout and friends.
6883         (mark_image_instance): mark the instantiator. Mark the subwindow
6884         face not the widget face.
6885         (image_instance_equal): add instantiator.
6886         (image_instance_hash): ditto.
6887         (allocate_image_instance): ditto.
6888         (Fset_image_instance_property): removed.
6889         (Fimage_instance_file_name): ditto.
6890         (Fcolorize_image_instance): ditto.
6891         (image_instance_layout): add offsets to be set.
6892         (update_image_instance): new function. update an image instance
6893         from its changed instantiator.
6894         (inherit_normalize): add dest_mask.
6895         (xbm_normalize): ditto.
6896         (xface_normalize): ditto.
6897         (xpm_normalize): ditto.
6898         (text_update): set_property -> update.
6899         (image_instantiate): use the glyph identity as a hash key, not the
6900         instantiator.
6901         (glyph_width): use new image_instance_layout signature.
6902         (glyph_ascent): ditto.
6903         (glyph_descent): ditto.
6904         (glyph_height): ditto.
6905         (glyph_query_geometry): ressurrect.
6906         (glyph_layout): ditto.
6907         (redisplay_subwindow): update -> redisplay.
6908         (syms_of_glyphs): add Fset_instantiator_property.
6909         (image_instantiator_format_create): set_property -> update.
6910
6911         * glyphs-x.c:
6912         (autodetect_normalize): add dest_maks to signature.
6913         (x_redisplay_subwindow): update -> redisplay.
6914         (x_redisplay_widget): ditto.
6915         (x_button_redisplay): ditto.
6916         (x_progress_gauge_redisplay): ditto.
6917         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
6918         stacking order.
6919         (console_type_create_glyphs_x): update -> redisplay.
6920         (image_instantiator_format_create_glyphs_x): ditto.
6921
6922         * glyphs-widget.c:
6923         (check_valid_instantiator): disallow glyphs in the instantiator,
6924         they must now be vectors.
6925         (check_valid_instantiator_list): ditto.
6926         (glyph_instantiator_to_glyph): use internal symbol rather than
6927         intern.
6928         (widget_update): renamed from widget_set_property. Call cascaded
6929         update methods.
6930         (redisplay_widget): renamed from update_widget.
6931         (widget_layout): image_instance_layout now takes position as well
6932         as size.
6933         (widget_normalize): ditto.
6934         (widget_instantiate): ditto.
6935         (tab_control_query_geometry) ditto.:
6936         (tab_control_update): renamed from tab_control_set_property.
6937         (progress_gauge_update): set_property -> update.
6938         (layout_normalize): rewrite so that child instantiators are
6939         normalized also.
6940         (layout_update): new function. Create glyphs from the normalized
6941         children and cope with any other layout keywords. We do not
6942         instantiate children here that will be take care of by
6943         redisplay_output_layout.
6944         (layout_instantiate): call layout_update and not much else.
6945         (layout_post_instantiate): not sure whether this is needed
6946         anymore.
6947         (layout_query_geometry): query glyph geometry rather than
6948         image_instance geometry.
6949         (layout_layout): set offsets from pass in parameters. Use glyph
6950         geometry and layout functions rather than image instance ones.
6951         (native_layout_layout): ditto.
6952         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
6953         (image_instantiator_widget): set_property -> update.
6954         (image_instantiator_buttons): ditto.
6955         (image_instantiator_progress_guage): ditto.
6956         (image_instantiator_tab_control): ditto.
6957         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
6958         (image_instantiator_layout): add update method.
6959
6960         * glyphs-msw.c (bmp_normalize):
6961         (mswindows_resource_normalize): add dest_mask so that it can be
6962         proprogated by layout_normalize.
6963         (begin_defer_window_pos): make optional because it may not be the
6964         right thing to do and it introduces differences with X.
6965         (mswindows_unmap_subwindow): ditto.
6966         (mswindows_map_subwindow): ditto.
6967         (mswindows_redisplay_subwindow): renamed from
6968         mswindows_update_subwindow.
6969         (mswindows_redisplay_widget): ditto.
6970         (mswindows_button_redisplay): renamed from
6971         mswindows_button_update. Update is now what the instantiation
6972         function does for a changed instantiator.
6973         (mswindows_progress_gauge_instantiate): set the progress value
6974         here if appropriate.
6975         (mswindows_tab_control_redisplay): cope with re-ordering of the
6976         members of the tab widget by simply selecting the new top
6977         widget. This makes things appear ok if you click on a tab.
6978         (mswindows_combo_box_instantiate): image_instance_layout now takes
6979         position as well as size.
6980         (mswindows_progress_gauge_redisplay): renamed from
6981         mswindows_progress_gauge_update.
6982         (console_type_create_glyphs_mswindows): fix update -> redisplay.
6983         (image_instantiator_format_create_glyphs_mswindows): ditto.
6984
6985         * glyphs-eimage.c (jpeg_normalize):
6986         (gif_normalize):
6987         (png_normalize):
6988         (tiff_normalize): add dest_mask so that it can be proprogated by
6989         layout_normalize.
6990
6991         * elhash.c:
6992         (print_hash_table):
6993         (hash_table_weakness_validate):
6994         (decode_hash_table_weakness):
6995         (Fhash_table_weakness):
6996         (Fhash_table_type):
6997         (syms_of_elhash): use Ben's naming scheme for hashtable types..
6998
6999         * console.h (struct console_methods): move update_* to
7000         redisplay_*.
7001
7002 2000-07-20  Ben Wing  <ben@xemacs.org>
7003
7004         * *.[ch] (XSETOBJ): remove unused middle argument.
7005         lisp-disunion.h: correct wrap_object() to one argument.
7006
7007 2000-07-15  Ben Wing  <ben@xemacs.org>
7008
7009         * s/cygwin32.h:
7010         * s/cygwin32.h (CYGWIN_CONV_PATH):
7011         Add missing logb prototype for v1.1.
7012         Use post-b20 names and alias to pre-b20 names when pre-b20.
7013
7014         * s/windowsnt.h: [5].
7015
7016 2000-07-15  Ben Wing  <ben@xemacs.org>
7017
7018         * Makefile.in.in (x_objs):
7019         * Makefile.in.in (sheap_objs):
7020         * Makefile.in.in (objs):
7021         added win32.o, cosmetic cleanups.
7022
7023         * alloc.c (Fmake_byte_code):
7024         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
7025         etc. macros which declare their own args now.
7026
7027         * alloc.c (syms_of_alloc):
7028         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
7029
7030         * buffer.c:
7031         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
7032
7033         * buffer.c (Fget_file_buffer):
7034         Fixed GCPRO problem.
7035
7036         * buffer.c (get_truename_buffer):
7037         Fixed comment about GC checking.
7038
7039         * buffer.c (syms_of_buffer):
7040         Undeclared those dedicated frame funs.
7041         [2].
7042
7043         * buffer.h:
7044         Define convenience macros for internal/external conversions.
7045         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
7046         and Qenvironment_variable_encoding for cleaner code.
7047
7048         * bufslots.h:
7049         Remove dedicated-frame; in lisp.
7050
7051         * bytecode.c (funcall_compiled_function):
7052         [1].
7053
7054         * bytecode.c (syms_of_bytecode):
7055         [2].
7056
7057         * console-msw.c:
7058         * console-msw.c (mswindows_show_console): Rewrote.
7059
7060         * console-msw.c (Fmswindows_debugging_output): New.
7061         Sends to OutputDebugString (special MSWin debugger interface).
7062
7063         * console-msw.c (Fmswindows_message_box):
7064         Fixed stupid bugs so it works when called from kill-emacs.
7065
7066         * console-msw.c (syms_of_console_mswindows):
7067         Declare Fmswindows_debugging_output.
7068
7069         * console-msw.h:
7070         New MSWin prototypes.
7071
7072         * console-msw.h (struct mswindows_frame):
7073         New entry last-click-mods for improved button-modifier support.
7074
7075         * console-msw.h (FRAME_MSWINDOWS_POPUP):
7076         New struct entry `popup' with corresponding accessor.
7077
7078         * console-x.c:
7079         * console-x.c (split_up_display_spec):
7080         * console-x.c (get_display_arg_connection):
7081         * console-x.c (x_semi_canonicalize_console_connection):
7082         * console-x.c (x_canonicalize_device_connection):
7083         [[[6]]]: Change char to more specific type.
7084         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
7085
7086         * console-x.c (x_semi_canonicalize_console_connection):
7087         * console-x.c (x_canonicalize_device_connection):
7088         [[[9]]]: Fix up error signalling to use new structured error system.
7089
7090         * console-x.h:
7091         [[[4]]]: Define codesys aliases:
7092         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
7093         Qx_color_name_encoding, Qx_display_name_encoding.
7094
7095         * console.h (struct console_methods):
7096         New method make_dialog_box_internal supersedes older
7097         popup_dialog_box method.
7098
7099         * data.c:
7100         Define many new errors, part of new structured errors.
7101
7102         * data.c (init_errors_once_early):
7103         * data.c (syms_of_data):
7104         [2].
7105
7106         * device-msw.c (mswindows_init_device):
7107         [[[5]]]: Cleanup to support NT 3.51.
7108
7109         * device-msw.c (decode_devmode): Cleanup.
7110
7111         * device-msw.c (mswindows_handle_print_setup_dialog_box):
7112         * device-msw.c (mswindows_handle_print_dialog_box):
7113         * device-msw.c (mswindows_handle_page_setup_dialog_box):
7114         * device-msw.c (syms_of_device_mswindows):
7115         Delete the dialog box primitives recently introduced by Kirill and
7116         instead interface to general dialog box interface.
7117
7118         * device-x.c:
7119         * device-x.c (compute_x_app_name):
7120         * device-x.c (x_init_device):
7121         * device-x.c (Fx_valid_keysym_name_p):
7122         * device-x.c (Fx_set_font_path):
7123         [6].
7124         [7].
7125
7126         * device.h (wrap_device): New.
7127         First of its kind; meant to replace XSETDEVICE.
7128
7129         * dialog-msw.c: Many file-dialog symbols.
7130
7131         * dialog-msw.c (mswindows_register_popup_frame): New.
7132         * dialog-msw.c (mswindows_is_dialog_msg): New.
7133         For supporting kbd traversal in dialog boxes.
7134
7135         * dialog-msw.c (dialog_proc):
7136         Support hitting ESC in dialogs.
7137
7138         * dialog-msw.c (struct):
7139         Common dialog box errors.
7140
7141         * dialog-msw.c (handle_file_dialog_box): New.
7142         Add file dialog code.
7143
7144         * dialog-msw.c (handle_question_dialog_box):
7145         Redo existing code to support new question dialog syntax.
7146
7147         * dialog-msw.c (console_type_create_dialog_mswindows):
7148         We support new dialog console method.
7149
7150         * dialog-msw.c (syms_of_dialog_mswindows):
7151         * dialog-msw.c (vars_of_dialog_mswindows):
7152         New file dialog symbols, vars.
7153
7154         * dialog-x.c:
7155         * dialog-x.c (maybe_run_dbox_text_callback):
7156         * dialog-x.c (dbox_descriptor_to_widget_value):
7157         * dialog-x.c (x_make_dialog_box_internal):
7158         * dialog-x.c (console_type_create_dialog_x):
7159         Mule-ize entire file.
7160         Redo to support question dialog syntax.
7161         [6].
7162
7163         * dialog.c:
7164         * dialog.c (Fmake_dialog_box_internal):
7165         * dialog.c (syms_of_dialog):
7166         Kill old popup-dialog-box, replace with new primitive.
7167         Just call device method or signal error.
7168
7169         * eldap.c (Fldap_open):
7170         * eldap.c (Fldap_search_basic):
7171         * eldap.c (Fldap_add):
7172         * eldap.c (Fldap_modify):
7173         [1].
7174         [7].
7175
7176         * emacs.c:
7177         * emacs.c (make_arg_list_1):
7178         * emacs.c (make_arg_list):
7179         Mule-ize call to dll_init().
7180         [6].
7181         [8].
7182
7183         * emacs.c (make_argc_argv):
7184         * emacs.c (free_argc_argv):
7185         * emacs.c (init_cmdargs):
7186         * emacs.c (main_1):
7187         * emacs.c (Fkill_emacs):
7188         * emacs.c (Fdump_emacs):
7189         Update comments about what can be used in syms_* etc.
7190         Call init_win32() when necessary.
7191         Fix up MS Win dialog box in kill-buffer to actually work right.
7192         [7].
7193
7194         * eval.c:
7195         * eval.c (For):
7196         * eval.c (Fand):
7197         * eval.c (Fprogn):
7198         * eval.c (Fprog1):
7199         * eval.c (Fprog2):
7200         * eval.c (FletX):
7201         * eval.c (Flet):
7202         * eval.c (condition_case_3):
7203         * eval.c (Feval):
7204         * eval.c (function_argcount):
7205         * eval.c (funcall_lambda):
7206         [1].
7207
7208         * eval.c (type_error): New.
7209         * eval.c (maybe_type_error): New.
7210         * eval.c (continuable_type_error): New.
7211         * eval.c (maybe_continuable_type_error): New.
7212         * eval.c (type_error_with_frob): New.
7213         * eval.c (maybe_type_error_with_frob): New.
7214         * eval.c (continuable_type_error_with_frob): New.
7215         * eval.c (maybe_continuable_type_error_with_frob): New.
7216         New functions for use with structured errors.
7217
7218         * event-Xt.c:
7219         * event-Xt.c (x_event_to_emacs_event):
7220         Buttons are now modifiers too.
7221
7222         * event-Xt.c (emacs_Xt_current_event_timestamp):
7223         Implement new event method.
7224         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
7225
7226         * event-msw.c:
7227         * event-msw.c (ntpipe_shove_writer): [5].
7228         * event-msw.c (mswindows_enqueue_mouse_button_event):
7229         * event-msw.c (mswindows_drain_windows_queue):
7230         * event-msw.c (mswindows_wnd_proc): [7].
7231         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
7232         * event-msw.c (mswindows_modifier_state):
7233         Throughout: support new button modifiers.
7234
7235         * event-msw.c (emacs_mswindows_current_event_timestamp):
7236         Implement new event method.
7237         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
7238
7239         * event-stream.c:
7240         * event-stream.c (event_stream_current_event_timestamp): New.
7241         * event-stream.c (maybe_kbd_translate): New functionality.
7242         * event-stream.c (vars_of_event_stream):
7243         Document new kbd-translate-table functionality.
7244
7245         * event-stream.c (Fcurrent_event_timestamp): New.
7246         New primitive for use in fabricated events.
7247         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
7248
7249         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
7250
7251         * events.c:
7252         * events.c (Fmake_event):
7253         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
7254         [1].
7255         [9].
7256
7257         * events.c (format_event_object): fix gcc warnings.
7258
7259         * events.c (Fevent_timestamp): Document new primitives.
7260
7261         * events.c (TIMESTAMP_HALFSPACE): New.
7262
7263         * events.c (Fevent_timestamp_lessp): New.  New primitive for
7264         comparing timestamps correctly (half-space algorithm).
7265
7266         * events.c (Fevent_modifier_bits): Doc fix.
7267
7268         * events.c (Fevent_modifiers): Major doc addition.
7269         * events.c (event_x_y_pixel_internal): Typo fix.
7270         * events.c (syms_of_events): Declare new primitives.
7271
7272         * events.h:
7273         Update long comment for button modifiers, timestamps.
7274
7275         * events.h (struct event_stream):
7276         New current_event_timestamp method.
7277
7278         * extents.c:
7279         * extents.c (extent_in_region_p):
7280         * extents.c (decode_extent):
7281         * extents.c (Fset_extent_parent):
7282         * extents.c (decode_map_extents_flags):
7283         Fix gcc warnings.
7284         [9].
7285
7286         * extents.c (struct extent_at_arg):
7287         * extents.c (decode_extent_at_flag):
7288         * extents.c (extent_at_mapper):
7289         * extents.c (extent_at_bytind):
7290         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
7291         * extents.c (Fextents_at): New primitive. [9].
7292         * extents.c (symbol_to_glyph_layout): [9].
7293         Support new primitive `extents-at'.
7294
7295
7296         * extents.c (get_text_property_bytind):
7297         extent_at_bytind has another arg.
7298         [9].
7299
7300         * extents.c (syms_of_extents): New primitive.
7301
7302         * file-coding.c (Fmake_coding_system): [1].
7303         * file-coding.c (subsidiary_coding_system): fix gcc warning
7304         * file-coding.c (syms_of_file_coding): [2].
7305
7306         * fileio.c (Fexpand_file_name):
7307         * fileio.c (Fsysnetunam):
7308         * fileio.c (Ffile_exists_p):
7309         * fileio.c (Ffile_executable_p):
7310         * fileio.c (Fverify_visited_file_modtime):
7311         Clean up GCPROing.
7312
7313         * fileio.c (syms_of_fileio): [2].
7314
7315         * filelock.c (lock_file_1):
7316         * filelock.c (current_lock_owner):
7317         * filelock.c (lock_if_free):
7318         * filelock.c (lock_file):
7319         * filelock.c (unlock_file):
7320         Clean up GCPROing.
7321
7322         * fns.c (concat): Fix gcc warning.
7323
7324         * fns.c (Fmember):
7325         * fns.c (Fold_member):
7326         * fns.c (Fmemq):
7327         * fns.c (Fold_memq):
7328         * fns.c (memq_no_quit):
7329         * fns.c (Fassoc):
7330         * fns.c (Fold_assoc):
7331         * fns.c (Fassq):
7332         * fns.c (Fold_assq):
7333         * fns.c (assq_no_quit):
7334         * fns.c (Frassoc):
7335         * fns.c (Fold_rassoc):
7336         * fns.c (Frassq):
7337         * fns.c (Fold_rassq):
7338         * fns.c (rassq_no_quit):
7339         * fns.c (Fdelete):
7340         * fns.c (Fold_delete):
7341         * fns.c (Fdelq):
7342         * fns.c (Fold_delq):
7343         * fns.c (delq_no_quit):
7344         * fns.c (Fremassoc):
7345         * fns.c (Fremassq):
7346         * fns.c (remassq_no_quit):
7347         * fns.c (Fremrassoc):
7348         * fns.c (Fremrassq):
7349         * fns.c (remrassq_no_quit):
7350         * fns.c (Freverse):
7351         * fns.c (mapcar1):
7352         [1].
7353
7354         * frame-msw.c (mswindows_init_frame_1):
7355         * frame-msw.c (mswindows_delete_frame):
7356         Register popups with dialog code so keyboard traversing works.
7357
7358         * frame-tty.c (tty_raise_frame_no_select): [1].
7359
7360         * frame-x.c:
7361         * frame-x.c (x_set_frame_text_value):
7362         * frame-x.c (x_set_frame_properties):
7363         * frame-x.c (x_create_widgets):
7364         [7].
7365
7366         * frame.c:
7367         * frame.c (Fmouse_pixel_position): Minor doc fixes.
7368
7369         * frame.h (wrap_frame): New.
7370         Macro like wrap_device.
7371
7372         * general.c:
7373         * general.c (SYMBOL):
7374         * general.c (syms_of_general):
7375         Major reorg.  This is now just a wrapper and symbols themselves
7376         are listed in general-slots.h.
7377
7378         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
7379         * glyphs-msw.c (mswindows_resource_instantiate): [5].
7380
7381         * glyphs-msw.c (mswindows_native_layout_instantiate):
7382         Add DS_CONTROL so keyboard traversal will work.
7383
7384         * glyphs-widget.c:
7385         * glyphs-widget.c (syms_of_glyphs_widget):
7386         Move some symbols to general-slots.h.
7387
7388         * glyphs-x.c:
7389         * glyphs-x.c (xbm_instantiate_1):
7390         * glyphs-x.c (x_xbm_instantiate):
7391         * glyphs-x.c (x_xface_instantiate):
7392         * glyphs-x.c (autodetect_instantiate):
7393         * glyphs-x.c (cursor_font_instantiate):
7394         * glyphs-x.c (x_update_widget):
7395         * glyphs-x.c (x_widget_instantiate):
7396         * glyphs.c (bitmap_to_lisp_data):
7397         * glyphs.c (pixmap_to_lisp_data):
7398         [7].
7399
7400         * glyphs.c (syms_of_glyphs):
7401         [2].
7402
7403         * gui-x.c:
7404         * gui-x.c (print_widget_value):
7405         * gui-x.c (menu_separator_style_and_to_external):
7406         * gui-x.c (add_accel_and_to_external):
7407         * gui-x.c (button_item_to_widget_value):
7408         * gui-x.c (gui_items_to_widget_values_1):
7409         * gui-x.c (gui_items_to_widget_values):
7410         * gui-x.c (syms_of_gui_x):
7411         * gui-x.c (vars_of_gui_x):
7412         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
7413         [9].
7414
7415         * gui-x.h:
7416         Muleize, prototype changes matching gui-x.c.
7417
7418         * gui.c:
7419         * gui.c (separator_string_p):
7420         * gui.c (gui_item_add_keyval_pair):
7421         * gui.c (make_gui_item_from_keywords_internal):
7422         * gui.c (signal_too_long_error):
7423         * gui.c (parse_gui_item_tree_item):
7424         * gui.c (syms_of_gui):
7425         * gui.c (vars_of_gui):
7426         * gui.h:
7427         menu-no-selection-hook moved here (used by MSWin).
7428         Move some symbols to general-slots.h.
7429         [6].
7430         [9].
7431
7432         * insdel.c (get_buffer_pos_char):
7433         * insdel.c (get_buffer_range_char):
7434         Add GC comments.
7435
7436         * keymap.c (keymap_lookup_directly):
7437         * keymap.c (keymap_store):
7438         * keymap.c (ensure_meta_prefix_char_keymapp):
7439         * keymap.c (describe_map):
7440         * keymap.h:
7441         Support new button modifiers.
7442
7443         * lisp-disunion.h (wrap_object):
7444         * lisp-disunion.h (XSETOBJ):
7445         Rename make_obj to wrap_object.
7446
7447         * lisp-union.h:
7448         * lisp-union.h (make_int):
7449         * lisp-union.h (make_char):
7450         Support wrap_object.
7451
7452         * lisp.h:
7453         * lisp.h (LIST_LOOP):
7454         * lisp.h (EXTERNAL_LIST_LOOP):
7455         * lisp.h (LIST_LOOP_2):
7456         * lisp.h (EXTERNAL_LIST_LOOP_1):
7457         * lisp.h (EXTERNAL_LIST_LOOP_2):
7458         * lisp.h (EXTERNAL_LIST_LOOP_3):
7459         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
7460         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
7461         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
7462         * lisp.h (EXTERNAL_ALIST_LOOP_5):
7463         * lisp.h (EXTERNAL_ALIST_LOOP_6):
7464         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
7465         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
7466         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
7467         * lisp.h (struct Lisp_Symbol):
7468         * lisp.h (maybe_continuable_error_with_frob):
7469         Fix up section comments.
7470         Add new types for char to indicate usage.
7471         Delete symbols auto-generated from general-slots.h.
7472         Add prototypes for structured error functions.
7473         Add long comments describing looping macros and change interface
7474         so that lvalues are automatically declared.
7475         Add NO_DECLARE macro in case callers want to declare lvalues
7476         themselves.
7477
7478         * lread.c (read_syntax_error):
7479         * lread.c (continuable_read_syntax_error):
7480         * lread.c (read_structure):
7481         * lread.c (sequence_reader):
7482         * lread.c (read_list_conser):
7483         * lread.c (read_compiled_function):
7484         Rename syntax_error and continuable_syntax_error to avoid clash
7485         with same-named structured error functions.
7486
7487         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
7488         * menubar-msw.c (populate_menu_add_item):
7489         * menubar-msw.c (populate_or_checksum_helper):
7490         [5].
7491         [9].
7492
7493         * menubar-x.c:
7494         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
7495         Mule-ize whole file.
7496
7497         * menubar.c (Fnormalize_menu_item_name): Add optimization.
7498
7499         * mule-charset.c (Fmake_charset):
7500         * mule-wnnfns.c (Fwnn_set_param):
7501         [1].
7502
7503         * ntproc.c (create_child):
7504         * ntproc.c (Fwin32_set_current_locale):
7505         Add comments portending doom.
7506
7507         * objects-msw.c:
7508         * objects-msw.c (old_font_enum_callback_2):
7509         * objects-msw.c (font_enum_callback_1):
7510         * objects-msw.c (mswindows_enumerate_fonts):
7511         [5].
7512
7513         * objects-x.c:
7514         * objects-x.c (allocate_nearest_color):
7515         * objects-x.c (x_parse_nearest_color):
7516         * objects-x.c (x_initialize_color_instance):
7517         * objects-x.c (x_print_color_instance):
7518         * objects-x.c (x_finalize_color_instance):
7519         * objects-x.c (x_valid_color_name_p):
7520         * objects-x.c (x_initialize_font_instance):
7521         * objects-x.c (x_print_font_instance):
7522         * objects-x.c (valid_x_font_name_p):
7523         * objects-x.c (truename_via_FONT_prop):
7524         * objects-x.c (truename_via_random_props):
7525         * objects-x.c (truename_via_XListFonts):
7526         * objects-x.c (x_font_truename):
7527         * objects-x.c (x_font_instance_truename):
7528         * objects-x.c (x_font_instance_properties):
7529         * objects-x.c (x_list_fonts):
7530         * objects-x.c (x_find_charset_font):
7531         Mule-ize entire file.
7532         [7].
7533
7534         * objects-x.h:
7535         Mule-verify.
7536
7537         * print.c:
7538         * print.c (std_handle_out_external):
7539         * print.c (debug_print_no_newline):
7540         * print.c (syms_of_print):
7541         Output to all debugger kinds in debug-print.
7542         Fix console-output code under MSWin to actually work.
7543
7544         * process-nt.c (send_signal):
7545         * process-nt.c (nt_create_process):
7546         Use newer Unicode macros.
7547
7548         * process-unix.c (unix_create_process):
7549         * process-unix.c (unix_canonicalize_host_name):
7550         * process-unix.c (unix_open_network_stream):
7551         [7].
7552
7553         * scrollbar-x.c:
7554         Mule-verify.
7555
7556         * search.c (syms_of_search):
7557         [2].
7558
7559         * select-msw.c (mswindows_destroy_selection):
7560         Use LIST_LOOP_2.
7561
7562         * select-x.c (symbol_to_x_atom):
7563         [7].
7564
7565         * select.c (syms_of_select):
7566         [2].
7567
7568         * sound.c (Fplay_sound_file):
7569         [7].
7570
7571         * specifier.c:
7572         * specifier.c (decode_specifier_type):
7573         * specifier.c (Fvalid_specifier_locale_type_p):
7574         * specifier.c (check_valid_locale_or_locale_type):
7575         * specifier.c (decode_locale):
7576         * specifier.c (decode_locale_type):
7577         * specifier.c (decode_locale_list):
7578         * specifier.c (check_valid_domain):
7579         * specifier.c (decode_specifier_tag_set):
7580         * specifier.c (Fcanonicalize_tag_set):
7581         * specifier.c (Fdefine_specifier_tag):
7582         * specifier.c (Fspecifier_tag_predicate):
7583         * specifier.c (check_valid_inst_list):
7584         * specifier.c (check_valid_spec_list):
7585         * specifier.c (decode_how_to_add_specification):
7586         * specifier.c (check_modifiable_specifier):
7587         * specifier.c (specifier_add_spec):
7588         * specifier.c (boolean_validate):
7589         * specifier.c (display_table_validate):
7590         [9].
7591
7592         * specifier.c (syms_of_specifier):
7593         Move some symbols to general-slots.h.
7594         [2].
7595
7596         * symbols.c:
7597         * symbols.c (Fmapatoms):
7598         * symbols.c (Fapropos_internal):
7599         Add GCPROs.
7600
7601         * symbols.c (set_default_buffer_slot_variable):
7602         * symbols.c (set_default_console_slot_variable):
7603         [1].
7604
7605         * symbols.c (defsymbol_massage_name_1):
7606         * symbols.c (defkeyword_massage_name):
7607         * symbols.c (deferror_1):
7608         * symbols.c (deferror):
7609         * symbols.c (deferror_massage_name_and_message):
7610         * symeval.h:
7611         * symeval.h (DEFSYMBOL):
7612         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
7613
7614         * symbols.c (syms_of_symbols):
7615         [2].
7616
7617         * symsinit.h:
7618         * symsinit.h (init_win32): New.
7619         Also new is syms_of_dialog_mswindows.
7620
7621         * syswindows.h:
7622         Add new Unicode macros, missing Cygwin wide-char functions,
7623         convenience conversion macros for Qmswindows_tstr, macros for
7624         encapsulating required MSWin <-> Cygwin filename conversions,
7625         prototype for dynamically-extracted (not in NT 3.51) functions.
7626
7627         * toolbar-x.c:
7628         Mule-verify.
7629
7630         * tooltalk.c (Fadd_tooltalk_message_arg):
7631         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
7632         * tooltalk.c (Fadd_tooltalk_pattern_arg):
7633         [7].
7634
7635         * tooltalk.c (syms_of_tooltalk):
7636         [2].
7637
7638         * unexnt.c:
7639         * unexnt.c (unexec):
7640         Fix up headers, declaration of unexec() to be more standard.
7641
7642 2000-07-20  Martin Buchholz  <martin@xemacs.org>
7643
7644         * offix.h: Revert change to guard macros - they're used in offix.c!
7645
7646 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7647
7648         * lisp.h: Defsubred Fdelete.
7649
7650         * console-msw.h:  (msprinter_default_printer): Added.
7651
7652         * console-msw.c (msprinter_canonicalize_console_connection):
7653         (msprinter_canonicalize_device_connection): Added.
7654
7655         * device-msw.c (msprinter_default_printer):
7656         (Fmswingows_get_default_printer):
7657         (signal_enum_priner_error):
7658         (Fmswingows_printer_list): Added.
7659
7660 2000-07-19  Martin Buchholz <martin@xemacs.org>
7661
7662         * XEmacs 21.2.35 is released.
7663
7664 2000-07-19  Martin Buchholz  <martin@xemacs.org>
7665
7666         * select-x.c (x_handle_selection_request):
7667         Text selected in xemacs and pasted into xterm failed to appear.
7668         Spelling fixes and cosmetic changes.
7669
7670 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7671
7672         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
7673         XEmacs frame (fix for doubling chars in dialog boxes).
7674
7675 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
7676
7677         * select.c (select_convert_in, select_convert_out):
7678         Don't call intern() every time.
7679
7680         * select.c (Qselect_convert_in, Qselect_convert_out): New.
7681         * select.c (vars_of_select): Initialise them.
7682
7683 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
7684
7685         * select.c (selection-coercible-types): New.
7686
7687         * select.c (own-selection-internal):
7688         * select.c (get-selection-internal):
7689         MULE bug fix - these should default to COMPOUND_TEXT and not
7690         STRING for MULE. I think.
7691
7692         * select.c (select_convert_out): Use selection-coercible-types
7693         to find types that we can attempt to perform coercions on.
7694
7695 2000-07-18  Martin Buchholz  <martin@xemacs.org>
7696
7697         * mule-wnnfns.c:
7698         * mule-canna.c:
7699         Add coding: cookie to identify encoding.
7700
7701         * mule-canna.c (CANNA_mode_keys): make static.
7702         Use proper prototypes, even for functions of no arguments.
7703         Remove external prototype for Fding().
7704
7705         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
7706
7707         * select.c (syms_of_select): Add missing DEFSUBR.
7708
7709 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
7710
7711         * select.c (get_selection_internal, own_selection_internal):
7712         Make the type default to STRING, rather than placing a nil type
7713         into Vselection_alist.
7714
7715 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
7716
7717         * gpmevent.c (tty_selection_exists_p):
7718         * gpmevent.c (tty_own_selection):
7719         Updated parameter lists.
7720
7721 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
7722
7723         * select.h (selection-alist): Removed declaration.
7724
7725         * select.h (get_local_selection):
7726         * select.c (get_local_selection):
7727         Made static.
7728
7729         * select.h (convert_selection): Removed declaration.
7730         * select.c (convert_selection): Removed.
7731         This function belongs in Lisp.
7732
7733         * select.h (select_convert_in): Declare.
7734         * select.h (select_convert_out): Declare.
7735         * select.c (select_convert_in): New.
7736         * select.c (select_convert_out): New.
7737         New conversion functions for other files to call.
7738
7739         * select.h (select_notify_buffer_kill): Declare.
7740         * select.c (select_notify_buffer_kill): New.
7741         New functions that get called from kill-buffer.
7742
7743         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
7744         X-specific lisp code.
7745
7746         * select.h: Declare some of the lisp-visible functions for
7747         external use.
7748
7749         * select.c (clean_local_selection_data): Removed. This was
7750         a disgusting function, and previously should have been in
7751         select-x.c in any case. The functionality is now provided
7752         in select-convert-from-integer (select.el).
7753
7754         * select.c (available-selection-types): Fixed stupidity where
7755         INTEGER and ATOM got added twice. Also add STRING when we see an
7756         extent.
7757
7758         * select.c (get-selection-internal): Removed symbol stripping. No
7759         longer causes conversion when data comes from the internal cache.
7760
7761         * select.c (syms_of_select): Added new functions.
7762
7763         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
7764         error checking - previously this called abort!
7765
7766         * select-x.c (x_own_selection): Changed comment.
7767
7768         * select-x.c (x_handle_selection_request): Use select_convert_out.
7769         Don't mess with selection-alist; it's an internal variable of select.c.
7770
7771         * select-x.c (x_get_foreign_selection): Use select_convert_in.
7772
7773         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
7774         rather than messing with selection-alist.
7775
7776         * select-msw.c (mswindows_get_foreign_selection):
7777         Use TO_INTERNAL_FORMAT rather than hacking.
7778
7779 2000-07-14  Martin Buchholz  <martin@xemacs.org>
7780
7781         * process-unix.c (unix_open_multicast_group):
7782         (unix_open_multicast_group): Remove useless casts.
7783
7784 2000-07-13  Martin Buchholz  <martin@xemacs.org>
7785
7786         * sound.c (Fplay_sound): Fix `unused variable' warning.
7787
7788         * emacs.c (main): Use correct type for _environ on SCO5.
7789
7790 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
7791
7792         * console.h (own_selection_method):
7793         * console.h (selection_exists_p_method):
7794         * console.h (available_selection_types_method): New.
7795         * console.h (register_selection_data_type_method): New.
7796         * console.h (selection_data_type_name): New.
7797
7798         * console-msw.h (mswindows_destroy_selection): Declare it.  New
7799         function & alist to track GlobalAlloc()'d handles that need
7800         releasing when the clipboard data gets replaced or emptied.
7801
7802         * event-msw.c (mswindows_wnd_proc): Call it.
7803
7804         * lisp.h, general.c (Qappend): New symbol representing a
7805         `how-to-add' mode.
7806
7807         * select.c (own-selection-internal):
7808         * select.c (selection-exists-p):
7809         * select.c (available-selection-types): New.
7810         * select.c (register-selection-data-type): New.
7811         * select.c (selection-data-type-name): New.  New functions to deal
7812         with device-specific selection data formats.
7813         * select.c (selection-converter-out-alist): Renamed.
7814         * select.c (selection-converter-in-alist): New.
7815         * select.c (selection-appender-alist): New.  Added new alists.
7816         * select.c (syms_of_select, vars_of_select): Added new symbols &
7817         variables.
7818         * select.c (get_local_selection): Split.
7819         * select.c: Removed spurious type checking - selections may now be
7820         of any type, not just strings.
7821         * select.c (own-selection-internal):
7822
7823         * select.h, select.c (convert_selection): New. Created
7824         convert_selection() function based on get_local_selection().
7825         * select.h, select.c (QCF_*): New symbols representing mswindows
7826         clipboard formats.
7827         * select.h, select.c (Qreplace_all, Qreplace_existing): New
7828         symbols representing `how-to-add' modes.
7829
7830         * select-msw.c (x_sym_p): New.
7831         * select-msw.c (symbol_to_ms_cf): New.
7832         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
7833         symbols & clipboard formats. Can also handle string names.
7834         * select-msw.c (mswindows_own_selection):
7835         * select-msw.c (mswindows_selection_exists_p):
7836         Added `data-type' parameter. Use it.
7837         * select-msw.c (mswindows_available_selection_types): New.
7838         * select-msw.c (mswindows_register_selection_data_type): New.
7839         * select-msw.c (mswindows_selection_data_type_name): New.
7840         * select-msw.c (mswindows_own_selection):
7841         * select-msw.c (mswindows_get_foreign_selection):
7842         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
7843         * select-msw.c (console_create_select_mswindows): Added new methods.
7844         * select-msw.c (mswindows_destroy_selection): New.
7845         * select-msw.c (Vhandle_alist): New list.
7846         * select-msw.c (mswindows_own_selection):
7847
7848         * select-x.c (x_own_selection):
7849         * select-x.c (x_selection_exists_p):
7850         * select-x.c: Added some comments about maybe using new
7851         functionality.
7852         * select-x.c (x_own_selection):
7853
7854         * specifier.c: Remove definition of Qappend (now in general.c)
7855         * specifier.c (syms_of_specifier): Remove Qappend.
7856
7857 2000-07-12  Martin Buchholz  <martin@xemacs.org>
7858
7859         * config.h.in: Add socklen_t.
7860
7861         * s/decosf4-0.h: No special compiler flags needed or desired.
7862         In particular, undefine _BSD for DEC OSF 4.0.
7863
7864 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7865
7866         * redisplay-msw.c (msprinter_frame_output_end): Added.
7867         (console_type_create_redisplay_mswindows): Referred the above.
7868
7869         * frame.c (setup_frame_without_minibuffer): Do not create a
7870         default minibuffer frame on a printer device.
7871
7872         * frame-msw.c (apply_dc_geometry): Added.
7873         (msprinter_start_page):
7874         (msprinter_init_frame_3):
7875         (msprinter_eject_page): Use it.
7876
7877         * console-msw.h (struct msprinter_frame): Added pix_left and top,
7878         and removed residual duplex and orientation properties.
7879
7880 2000-07-11  Martin Buchholz  <martin@xemacs.org>
7881
7882         * eval.c (function_argcount): Work around a DEC CC compiler bug.
7883
7884         * unexalpha.c: Remove system prototypes from C sources!
7885
7886 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
7887
7888         * eval.c: Remove references to M-x edit-options in DEFUNs for
7889         `defvar' and `defconst'.
7890
7891 2000-07-09  Martin Buchholz  <martin@xemacs.org>
7892
7893         * config.h.in: Remove SMART_INCLUDE hackery.
7894
7895         PostgreSQL hacking:
7896         * config.h.in: Don't use SMART_INCLUDE.
7897
7898         * postgresql.h: Include libpq-fe.h here.  Fix typo.
7899         * inline.c: Simply #include "postgresql.h"
7900         * postgresql.c:
7901         - Don't use SMART_INCLUDE
7902         - Use simply "const".
7903         - Use standard doc string conventions.
7904         - Use correct type for result of PQstatus.
7905
7906 2000-07-09  Martin Buchholz  <martin@xemacs.org>
7907
7908         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
7909
7910         C++ compilation changes.
7911         * config.h.in (EXTERN_C): Define.
7912         * config.h.in (not): This is also a C++ keyword.
7913         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
7914         * cm.c: Use EXTERN_C.
7915         * redisplay-tty.c: Use EXTERN_C.
7916         * sysdep.c: Use EXTERN_C.  Remove Gould support.
7917
7918 2000-07-09  Martin Buchholz  <martin@xemacs.org>
7919
7920         * general.c: Remove duplicate definition for Qfunction.
7921
7922 2000-07-08  Ben Wing  <ben@xemacs.org>
7923
7924         * device-msw.c (msprinter_init_device):
7925         * device-msw.c (sync_printer_with_devmode):
7926         * device-msw.c (handle_devmode_changes):
7927         * device-msw.c (print_dialog_worker):
7928         * device-msw.c (Fmsprinter_apply_settings):
7929         * device-msw.c (hash_devmode):
7930         * device-msw.c (Fmsprinter_settings_despecialize):
7931         use Qmswindows_tstr, not Qctext.
7932
7933         * vm-limit.c (check_memory_limits):
7934         avoid infinite loop printing warning messages.
7935
7936 2000-07-05  Craig Lanning  <lanning@scra.org>
7937
7938         * Makefile.in.in: Add support for including the Windows resources
7939         when building with the cygwin and mingw targets.
7940
7941         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
7942         not set or not correct.
7943         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
7944         (init_initial_directory): Don't try to use $PWD on the
7945         WIN32_NATIVE target.
7946
7947         * s\cygwin32.h:
7948         [[Add -mwindows to eliminate console window.]] not required --ben
7949         (HAVE_NATIVE_SOUND): removed; now handled by configure.
7950         (MAIL_USE_POP): removed; now handled by configure.
7951
7952         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
7953         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
7954         (HAVE_NATIVE_SOUND): removed; now handled by configure.
7955         (MAIL_USE_POP): removed; now handled by configure.
7956         (ENCAPSULATE_STAT): from Dan Holmsand, added.
7957         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
7958         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
7959         constant string.
7960         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
7961         up from <winsock.h> via systime.h.
7962         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
7963         (getpagesize): from Dan Holmsand, added.
7964         Added #endif which was left dangling by Ben's mega patch; added
7965         comment to help prevent this in the future.
7966
7967         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
7968
7969 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7970
7971         * console-msw.h (struct mswindows_device): Removed unnecessary
7972         cached device geometry values.
7973         Added update_tick and an accessor macro.
7974         (Lisp_Devmode): Added lrecord declaration.
7975         (struct msprinter_device): Contain devmode as a Lisp object.
7976         Added mswindows_get_selected_frame_hwnd();
7977
7978         * console.h (struct console_methods): Indentation nitpicking.
7979
7980         * device-msw.c (mswindows_init_device): Do not initialize geometry
7981         cache. Initialize update tick.
7982         (mswindows_device_system_metrics): Ask the device for its geometry.
7983         (global_free_2_maybe):
7984         (devmode_to_hglobal):
7985         (handle_printer_changes):
7986         (ensure_not_printing):
7987         (print_dialog_worker):
7988         (Fmsprinter_print_setup_dialog):
7989         (Fmsprinter_print_dialog):
7990         (plist_get_margin):
7991         (plist_set_margin):
7992         (Fmsprinter_page_setup_dialog): Added functions.
7993         (sync_printer_with_devmode):
7994         (handle_devmode_changes):
7995         (Fmsprinter_get_settings):
7996         (Fmsprinter_select_settings):
7997         (Fmsprinter_apply_settings):
7998         (allocate_devmode):
7999         (Fmsprinter_settings_copy):
8000         (Fmsprinter_settings_despecialize):
8001         (print_devmode):
8002         (finalize_devmode):
8003         (equal_devmode):
8004         (hash_devmode): Added functions
8005         (syms_of_device_mswindows): Init devmode lrecord class.
8006
8007         * device.h: Added an exfun for find-device.
8008
8009         * event-msw.c (mswindows_wnd_proc): Do not update the cached
8010         geometry; although, recreate the device compatible DC.
8011
8012         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
8013         (msprinter_init_frame_3):
8014         (msprinter_frame_property):
8015         (msprinter_internal_frame_property_p):
8016         (msprinter_frame_properties):
8017         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
8018         print job properties (will move to device settings).
8019
8020         * lisp.h: Added symbols.
8021
8022         * general.c (syms_of_general): Declared them.
8023
8024         * hash.c (string_hash): Added.
8025
8026         * lrecord.h (lrecord_type): Added devmode lrecord type.
8027
8028 2000-07-02  Mike Sperber <mike@xemacs.org>
8029
8030         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
8031         FreeBSD 4.0.
8032
8033 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
8034
8035         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
8036         integer.
8037
8038 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
8039
8040         * data.c (Fstring_to_number): Don't recognize floating point if
8041         base is not 10.
8042
8043 2000-06-22  Martin Buchholz  <martin@xemacs.org>
8044
8045         * glyphs-widget.c (tab_control_query_geometry):
8046         (widget_query_geometry):
8047         (button_query_geometry):
8048         * glyphs.c (text_query_geometry):
8049         Enforce type correctness.
8050
8051 2000-06-18  Martin Buchholz  <martin@xemacs.org>
8052
8053         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
8054         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
8055
8056 2000-06-17  Martin Buchholz  <martin@xemacs.org>
8057
8058         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
8059         conflicts with gcc's fixincluded version of FOO.h.
8060
8061         * glyphs.h (image_instance_geometry): Remove trailing `,'
8062
8063 2000-06-08  Mike Alexander  <mta@arbortext.com>
8064
8065         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
8066         (shove_thread): Don't write the same output twice
8067         (make_ntpipe_output_stream): Increase priority of shove thread
8068         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
8069         chance to run
8070         (ntpipe_shove_closer): Don't delete the pipe until we're done with
8071         it.
8072
8073 2000-06-12  Ben Wing  <ben@xemacs.org>
8074
8075         * s\mingw32.h (sigset):
8076         * s\windowsnt.h (sigset):
8077         rename msw_ to mswindows_ for consistency with general convention.
8078
8079 2000-06-12  Ben Wing  <ben@xemacs.org>
8080
8081         * console-msw.c:
8082         * console-msw.c (mswindows_get_console_hwnd):
8083         * console-msw.c (mswindows_ensure_console_allocated):
8084         * console-msw.c (mswindows_hide_console):
8085         * console-msw.c (mswindows_show_console):
8086         * console-msw.c (mswindows_ensure_console_buffered):
8087         * console-msw.c (mswindows_output_console_string):
8088         * console-msw.c (mswindows_windows9x_p):
8089         * console-msw.h:
8090         * device-msw.c (mswindows_get_workspace_coords):
8091         * device-msw.c (mswindows_device_system_metrics):
8092         * dialog-msw.c (mswindows_popup_dialog_box):
8093         * event-msw.c (mswindows_wnd_proc):
8094         * frame-msw.c (mswindows_size_frame_internal):
8095         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
8096         * menubar-msw.c (displayable_menu_item):
8097         * menubar-msw.c (mswindows_char_is_accelerator):
8098         * nt.c:
8099         * nt.c (mswindows_sigset):
8100         * nt.c (mswindows_sigrelse):
8101         * nt.c (mswindows_sigpause):
8102         * nt.c (mswindows_raise):
8103         * nt.c (timer_proc):
8104         * ntproc.c:
8105         * ntproc.c (find_child_console):
8106         * ntproc.c (sys_kill):
8107         * print.c:
8108         * print.c (std_handle_out_external):
8109         * process-nt.c (find_child_console):
8110         * process-nt.c (send_signal_the_95_way):
8111         * process-nt.c (ensure_console_window_exists):
8112         * process-nt.c (nt_create_process):
8113         * syssignal.h:
8114         rename msw_ to mswindows_ for consistency with general convention.
8115
8116         * emacs.c:
8117         * dumper.c:
8118         include nt.h, not syswindows.h.
8119
8120         * nt.c (mswindows_fstat):
8121         * nt.c (mswindows_stat):
8122         prefix mswindows_ instead of attempting to directly override the
8123         library functions.  fix declarations.
8124
8125         * nt.h:
8126         include syswindows.h.  move some sysdep.h stuff here.
8127
8128         * ntheap.h:
8129         include syswindows.h, not <windows.h>.
8130
8131         * ntplay.c:
8132         clean up headers.
8133
8134         * sysdep.c:
8135         clean up headers.
8136
8137         * sysdep.c (sys_fstat):
8138         * sysdep.c (sys_stat):
8139         call mswindows versions when appropriate.
8140
8141         * sysdep.h:
8142         move mswin decls to nt.h.
8143
8144         * syswindows.h:
8145         add long comment describing appropriate use of the various windows
8146         headers.
8147
8148 2000-06-11  Ben Wing  <ben@xemacs.org>
8149
8150         * device-x.c: Correct doc string for sixth arg of x-get-resource.
8151
8152 2000-06-10  Ben Wing  <ben@xemacs.org>
8153
8154         * Makefile.in.in (release):
8155         Correction to make sure xemacs.exe always dumped when correct.
8156
8157         * alloca.c:
8158         * balloon_help.c:
8159         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
8160
8161         * buffer.c (set_buffer_internal):
8162         [[[[2]]]]: Remove HAVE_FEP code.
8163
8164         * buffer.c (init_initial_directory):
8165         [3].
8166
8167         * bytecode.c:
8168         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
8169         individual files.
8170
8171         * callproc.c:
8172         * callproc.c (call_process_cleanup):
8173         * callproc.c (Fold_call_process_internal):
8174         * callproc.c (child_setup):
8175         * callproc.c (getenv_internal):
8176         * callproc.c (init_callproc):
8177         * callproc.c (vars_of_callproc):
8178         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
8179         __CYGWIN32__ -> CYGWIN.
8180         DOS_NT -> WIN32_NATIVE.
8181         Remove MSDOS support/references, converting to WIN32_NATIVE
8182           where correct.
8183         __MINGW32__ -> MINGW.
8184         Fix windows.h includes.
8185         Remove bogus HAVE_NTGUI.
8186
8187         * config.h.in:
8188         [2].
8189
8190         * console-msw.c:
8191         mswindows_message_outputted added for use in allowing startup
8192         errors on the console to be seen.
8193
8194         * console-msw.c (msw_ensure_console_allocated):
8195         * console-msw.c (msw_output_console_string):
8196         * console-msw.c (DHEADER):
8197         * console-msw.c (DOPAQUE_DATA):
8198         * console-msw.c (DEVENT):
8199         * console-msw.c (DCONS):
8200         * console-msw.c (DCONSCDR):
8201         * console-msw.c (DSTRING):
8202         * console-msw.c (DVECTOR):
8203         * console-msw.c (DSYMBOL):
8204         * console-msw.c (DSYMNAME):
8205         Fix warnings.
8206
8207         * console-stream.c (stream_init_console):
8208         Fix text/binary problems.
8209
8210         * device-msw.c:
8211         * device-msw.c (mswindows_finish_init_device):
8212         * device-msw.c (mswindows_delete_device):
8213         [1].
8214
8215         * device.c (handle_asynch_device_change):
8216         [3].
8217
8218         * dgif_lib.c:
8219         * dgif_lib.c (DGifOpenFileName):
8220         * dgif_lib.c (DGifOpenFileHandle):
8221         * dgif_lib.c (DGifGetLine):
8222         * dgif_lib.c (DGifGetPixel):
8223         Added config.h/lisp.h, fix up includes.
8224         [1].
8225
8226         * dired-msw.c:
8227         [4].
8228
8229         * dired.c:
8230         * dired.c (file_name_completion):
8231         * dired.c (Ffile_attributes):
8232         * dired.c (syms_of_dired):
8233         [1].
8234
8235         * dumper.c:
8236         * dumper.c (pdump_file_unmap):
8237         * dumper.c (pdump_load):
8238         [1].
8239
8240         * editfns.c:
8241         * editfns.c (Ftemp_directory):
8242         * editfns.c (user_login_name):
8243         * editfns.c (Fuser_real_login_name):
8244         * editfns.c (get_home_directory):
8245         [1].
8246
8247         * elhash.c (finish_marking_weak_hash_tables):
8248         [[[[5]]]]: Fix GCC warnings.
8249
8250         * emacs.c:
8251         * emacs.c (mswindows_handle_hardware_exceptions):
8252         * emacs.c (make_arg_list_1):
8253         * emacs.c (main_1):
8254         * emacs.c (Fkill_emacs):
8255         * emacs.c (Fdump_emacs):
8256         [1].
8257         Fix problems with nested crashes, add long comment.
8258
8259         * event-Xt.c (init_event_Xt_late):
8260         [1].
8261
8262         * event-msw.c:
8263         * event-msw.c (mswindows_dde_callback):
8264         * event-msw.c (mswindows_handle_sticky_modifiers):
8265         * event-msw.c (mswindows_wnd_proc):
8266         [1].
8267         [5].
8268
8269         * events.c (character_to_event):
8270         [1].
8271
8272         * fileio.c:
8273         * fileio.c (Ffile_name_directory):
8274         * fileio.c (Ffile_name_nondirectory):
8275         * fileio.c (directory_file_name):
8276         * fileio.c (Fexpand_file_name):
8277         * fileio.c (Fsubstitute_in_file_name):
8278         * fileio.c (Ffile_name_absolute_p):
8279         * fileio.c (check_executable):
8280         * fileio.c (Ffile_readable_p):
8281         * fileio.c (Ffile_accessible_directory_p):
8282         * fileio.c (Ffile_modes):
8283         * fileio.c (Funix_sync):
8284         * fileio.c (vars_of_fileio):
8285         [1]. [4].
8286
8287         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
8288
8289         Expand getdefdir defn.
8290         Fix bogus rename() comment.
8291
8292         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
8293         to use standard XEmacs include files, e.g. sysfile.h, rather
8294         than system-specific includes.
8295
8296         * fns.c:
8297         * fns.c (Fsubseq):
8298         [5]. [6].
8299
8300         * frame.c (vars_of_frame):
8301         [1].
8302
8303         * getloadavg.c:
8304         * getloadavg.c (getloadavg):
8305         [1]. [6].
8306         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
8307         (We don't use it elsewhere in the code; just add a comment.)
8308
8309         * gif_io.c:
8310         [6].
8311         Add config.h.
8312
8313         * glyphs-msw.c:
8314         * glyphs-msw.c (mswindows_resource_instantiate):
8315         [1].
8316
8317         * glyphs-x.c (x_native_layout_instantiate):
8318         [5].
8319
8320         * gui-msw.c (Fmswindows_shell_execute):
8321         [1].
8322
8323         * insdel.c:
8324         [4].
8325
8326         * lisp.h:
8327         [4]. [5].
8328
8329         * lread.c (locate_file_in_directory_mapper):
8330         [1].
8331
8332         * lstream.c:
8333         [4].
8334
8335         * mem-limits.h:
8336         * mem-limits.h (get_lim_data):
8337         [1].
8338
8339         * menubar-msw.c:
8340         [4].
8341
8342         * ndir.h:
8343         [1].
8344
8345         * nt.c:
8346         * nt.c (getwd):
8347         * nt.c (closedir):
8348         * nt.c (rva_to_section):
8349         * nt.c (mswindows_executable_type):
8350         [1]. [6].
8351         Fix closedir() defn.
8352
8353         * nt.h:
8354         [[[[8]]]]: *_OK defs moved to sysfile.h.
8355
8356         * ntproc.c:
8357         [6]. [7].
8358
8359         * objects-x.c:
8360         [4].
8361
8362         * print.c:
8363         * print.c (std_handle_out_external):
8364         [1]. [4].
8365
8366         * process-nt.c:
8367         * process-nt.c (nt_create_process):
8368         [6].
8369         try to fix process quoting somewhat.
8370
8371         * process-unix.c (unix_create_process):
8372         [1].
8373
8374         * process.c:
8375         * process.c (vars_of_process):
8376         Add Vnull_device.
8377
8378         * process.h:
8379         [1].
8380
8381         * realpath.c:
8382         * realpath.c (xrealpath):
8383         [1].
8384
8385         * redisplay-tty.c (init_tty_for_redisplay):
8386         [3].
8387
8388         * redisplay.c:
8389         [4]. [6].
8390
8391         * scrollbar-msw.c:
8392         [4].
8393
8394         * sheap.c:
8395         * sheap.c (more_static_core):
8396         * sheap.c (report_sheap_usage):
8397         [5]. [6].
8398
8399         * signal.c:
8400         * signal.c (alarm_signal):
8401         [1]. [6].
8402
8403         * sound.c:
8404         [6].
8405
8406         * strftime.c:
8407         * strftime.c (zone_name):
8408         [1]. [5].
8409
8410         * symsinit.h (init_sunpro):
8411         [1].
8412
8413         * syscommctrl.h:
8414         commctrl.h not in Cygwin b20.1.
8415
8416         * sysdep.c:
8417         * sysdep.c (endif):
8418         * sysdep.c (sys_subshell):
8419         * sysdep.c (init_baud_rate):
8420         * sysdep.c (emacs_get_tty):
8421         * sysdep.c (emacs_set_tty):
8422         * sysdep.c (tty_init_sys_modes_on_device):
8423         * sysdep.c (init_system_name):
8424         * sysdep.c (sys_open):
8425         * sysdep.c (interruptible_open):
8426         * sysdep.c (sys_fopen):
8427         * sysdep.c (sys_mkdir):
8428         * sysdep.c (sys_rename):
8429         * sysdep.c (get_process_times_1):
8430         [1]. [6].
8431
8432         * sysdep.h:
8433         [1].
8434
8435         * sysdir.h:
8436         * sysdir.h (DIRENTRY_NONEMPTY):
8437         [1]. [6].
8438
8439         * sysdll.c (dll_init):
8440         * sysdll.h:
8441         [1].
8442
8443         * sysfile.h:
8444         [1]. [6]. [8].
8445         added text/binary defs.
8446
8447         * sysfloat.h:
8448         [1].
8449
8450         * sysproc.h:
8451         * sysproc.h (EDESTADDRREQ):
8452         * sysproc.h (poll_fds_for_input):
8453         [1]. [6].
8454
8455         * syspwd.h:
8456         [6].
8457
8458         * syssignal.h:
8459         [1].
8460
8461         * systime.h:
8462         [1]. [6].
8463
8464         * systty.h:
8465         [1].
8466
8467         * syswindows.h:
8468         [1].
8469         Always define WIN32_LEAN_AND_MEAN.
8470
8471         * unexcw.c (unexec):
8472         [5].
8473
8474         * unexec.c:
8475         * unexec.c (copy_text_and_data):
8476         * unexec.c (adjust_lnnoptrs):
8477         [1].
8478
8479         * unexnt.c:
8480         * unexnt.c (_start):
8481         [1].
8482
8483 2000-06-07  Ben Wing  <ben@xemacs.org>
8484
8485         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
8486         was used only as a model.  We've long since extracted any useful
8487         logic or code out of this. (I just did an exhaustive search.)
8488
8489         * s\msdos.h: Removed.
8490
8491         * s\windows95.h: Removed.
8492
8493 2000-06-10  Ben Wing  <ben@xemacs.org>
8494
8495         * s\cygwin32.h:
8496         [1]. [5].
8497         Don't use extern with fun defs.
8498
8499         * s\mingw32.h:
8500         [1]. [7].
8501         Remove nt\inc include.
8502         Remove getdisk, getdefdir. (The former is unused, the latter
8503         expanded in fileio.h.)
8504
8505         * s\windowsnt.h:
8506         * s\windowsnt.h (WIN32_NATIVE):
8507         * s\windowsnt.h (HAVE_STRCASECMP):
8508         [1]. [7].
8509         Add long comment about preprocessor changes.
8510         Remove getdisk, getdefdir. (The former is unused, the latter
8511         expanded in fileio.h.)
8512
8513 2000-06-10  Ben Wing  <ben@xemacs.org>
8514
8515         * m\arm.h:
8516         * m\delta.h:
8517         * m\intel386.h:
8518         * m\sequent.h:
8519         * m\template.h:
8520         * m\windowsnt.h:
8521         [1].
8522         Remove bogus/unused NO_SOCK_SIGIO.
8523
8524 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
8525
8526         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
8527         not an Emchar.
8528
8529 2000-06-04  Mike Sperber <mike@xemacs.org>
8530
8531         * casetab.c (set_case_table): For `set-standard-case-table',
8532         actually deposit the new case tables where the rest of XEmacs can
8533         see them.
8534
8535 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
8536
8537         * data.c (Faset): Don't cast XCHAR() to unsigned char.
8538
8539 2000-06-05  Ben Wing  <ben@xemacs.org>
8540
8541         * callproc.c (child_setup): Don't do close_load_descs() under
8542         MS Windows.  Put in a comment explaining why.
8543
8544 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
8545
8546         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
8547         Toolkit shell" which breaks `kill-compilation' on Windows NT
8548         native, retaining STDERR handling improvements.
8549
8550 2000-06-01  Andreas Jaeger  <aj@suse.de>
8551
8552         * s/s390.h: Support for S390, based on a patch by Martin
8553         Schwidefsky <schwidefsky@de.ibm.com>.
8554
8555 2000-05-30  Andy Piper  <andy@xemacs.org>
8556
8557         * window.c (allocate_window):
8558         (make_dummy_parent):
8559         (Fset_window_configuration): use new hashtable type.
8560
8561         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
8562         (struct image_instantiator_methods):
8563         (struct Lisp_Image_Instance): make instance geometry signed.
8564
8565         * glyphs.c (instantiate_image_instantiator):
8566         (image_instance_query_geometry):
8567         (image_instance_layout):
8568         (image_instance_layout):
8569         (query_string_geometry):
8570         (text_query_geometry):
8571         (image_instantiate):
8572         (image_instantiate):
8573         (cache_subwindow_instance_in_frame_maybe):
8574         (subwindow_query_geometry): make instance geometry signed.
8575
8576         * glyphs-widget.c (widget_query_geometry):
8577         (widget_layout):
8578         (button_query_geometry):
8579         (tree_view_query_geometry):
8580         (tab_control_query_geometry):
8581         (layout_query_geometry):
8582         (layout_layout):
8583         (native_layout_layout): make instance geometry signed.
8584
8585 2000-05-29  Olivier Galibert  <galibert@pobox.com>
8586
8587         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
8588         constant.
8589
8590         * general.c (syms_of_general): Add Qfull_assoc symbol.
8591
8592         * data.c (finish_marking_weak_lists): Mark full-assoc lists
8593         correctly.
8594         (decode_weak_list_type): Decode full-assoc type.
8595         (encode_weak_list_type): Encode full-assoc type.
8596         (Fmake_weak_list): Update doc string.
8597
8598 2000-05-30  Andy Piper  <andy@xemacs.org>
8599
8600         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
8601
8602         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
8603         (decode_hash_table_weakness): ditto.
8604         (Fhash_table_weakness): ditto.
8605         (Fhash_table_type): ditto.
8606         (finish_marking_weak_hash_tables): ditto.
8607         (hash_table_weakness_validate): ditto.
8608         (syms_of_elhash): ditto.
8609
8610 2000-05-28  Martin Buchholz <martin@xemacs.org>
8611
8612         * XEmacs 21.2.34 is released.
8613
8614 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
8615
8616         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
8617         start cache.
8618         (updating_line_start_cache): Gone.
8619         (regenerate_window): Replace resetting of VERTICAL_CLIP by
8620         generic code to force a minimum of 1 line laid out in the
8621         CMOTION_DISP case.
8622
8623 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
8624
8625         * glyphs.c (instantiate_image_instantiator): Check for initialized
8626         height & width no longer special cases IMAGE_NOTHING.
8627         (nothing_instantiate): Set height and width of instance.
8628
8629 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
8630
8631         * unexelf.c (unexec): Search for ".data" section.
8632         Initialize new_data2_offset from old_data_index.
8633         Remove redundant check for ElfW.
8634
8635 2000-05-23  Andy Piper  <andy@xemacs.org>
8636
8637         * glyphs.c (get_image_instantiator_governing_domain): allow more
8638         specific domains as the governing domain rather than expecting an
8639         exact match. This fixes problems with layouts.
8640
8641 2000-05-22  Andy Piper  <andy@xemacs.org>
8642
8643         * redisplay-output.c (compare_runes): check for non-images
8644
8645         * glyphs.c (set_glyph_dirty_p): ditto.
8646         (update_glyph_cachel_data): ditto.
8647
8648         * glyphs-widget.c (layout_post_instantiate): ditto.
8649         (layout_post_instantiate): ditto.
8650
8651         * event-msw.c (mswindows_wnd_proc): warning removal.
8652
8653 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
8654
8655         * s\mingw32.h: Added #undef for CLASH_DETECTION.
8656
8657         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
8658
8659         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
8660
8661         * nt.c (rva_to_section): mingw32 needs rva_to_section.
8662         (mswindows_executable_type): mingw32 now has enough headers for
8663         this to work.
8664
8665 2000-05-20  Andy Piper  <andy@xemacs.org>
8666
8667         * console-msw.c (mswindows_output_last_error): ; -> ,
8668
8669 2000-05-12  Andy Piper  <andy@xemacs.org>
8670
8671         * console-msw.c (FROB): compare ints with ints.
8672
8673 2000-05-11  Andy Piper  <andy@xemacs.org>
8674
8675         * glyphs-x.c (x_finalize_image_instance): make minimal build
8676         happy.
8677
8678 2000-05-20  Ben Wing  <ben@xemacs.org>
8679
8680         * event-Xt.c:
8681         * event-Xt.c (vars_of_event_Xt):
8682         move modifier-keys-are-sticky to event-stream.c.
8683
8684         * event-msw.c:
8685         * event-msw.c (mswindows_enqueue_mouse_button_event):
8686         * event-msw.c (key_needs_default_processing_p):
8687         * event-msw.c (XEMSW_LCONTROL):
8688         * event-msw.c (mswindows_handle_sticky_modifiers):
8689         * event-msw.c (FROB):
8690         * event-msw.c (clear_sticky_modifiers):
8691         * event-msw.c (output_modifier_keyboard_state):
8692         * event-msw.c (output_alt_keyboard_state):
8693         * event-msw.c (mswindows_wnd_proc):
8694         * event-msw.c (mswindows_modifier_state):
8695         * event-msw.c (emacs_mswindows_handle_magic_event):
8696         implement sticky modifiers.
8697
8698         * event-stream.c:
8699         * event-stream.c (vars_of_event_stream):
8700         move modifier-keys-are-sticky here.
8701
8702         * lisp.h:
8703         add CHECK_FUNCTION.
8704
8705         * rangetab.c:
8706         implement map-range-table.
8707
8708
8709 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
8710
8711         * redisplay-tty.c (reset_tty_modes):
8712         (tty_redisplay_shutdown): Adjust argument type to
8713         tty_frame_output_end.
8714
8715 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
8716
8717         * eval.c (Fbacktrace): Don't output a line with only right
8718         parenthesis.
8719
8720 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
8721
8722         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
8723         (Fpq_reset_poll): Ditto.
8724
8725 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
8726
8727         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
8728
8729 2000-05-16  Ben Wing  <ben@xemacs.org>
8730
8731         * buffer.c:
8732         * buffer.c (dfc_convert_to/from_internal_format):
8733         * buffer.c (reinit_vars_of_buffer):
8734         Fix conversion functions to allow reentrancy.
8735
8736         * console-msw.c:
8737         * console-msw.c (mswindows_output_last_error):
8738         New fun, generally useful -- output a human-readable
8739         version of GetLastError() on the console.
8740
8741         * console-msw.h:
8742         * console-msw.h (struct mswindows_frame):
8743         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
8744
8745         * console-stream.c (stream_output_begin):
8746         * console-stream.c (stream_output_end):
8747         * console-stream.c (stream_output_vertical_divider):
8748         * console-stream.c (stream_clear_region):
8749         * console-stream.c (stream_flash):
8750         * console-stream.c (console_type_create_stream):
8751         Delete blank stream methods, not needed.
8752
8753         * console.h (struct console_methods):
8754         Split begin/end methods into window and frame.
8755
8756         * event-msw.c:
8757         * event-msw.c (mswindows_handle_paint):
8758         * event-msw.c (output_alt_keyboard_state):
8759         * event-msw.c (mswindows_wnd_proc):
8760         * event-msw.c (vars_of_event_mswindows):
8761         Comment about problems with ignored-expose.
8762         Define mswindows-debug-events; not really implemented.
8763
8764         * frame-msw.c (mswindows_init_frame_1):
8765         random cleanups.
8766
8767         * glyphs-msw.c:
8768         * glyphs-msw.c (begin_defer_window_pos):
8769         * glyphs-msw.c (mswindows_unmap_subwindow):
8770         * glyphs-msw.c (mswindows_map_subwindow):
8771         * glyphs-msw.c (mswindows_resize_subwindow):
8772         Use DeferWindowPos to reduce flashing when mapping/unmapping.
8773
8774         * glyphs.c (make_image_instance_1):
8775         Fix crash.
8776
8777         * gutter.c (Fredisplay_gutter_area):
8778         Use new begin/end methods.
8779
8780         * lisp.h (Dynarr_new2):
8781         New creation fun.
8782
8783         * redisplay-msw.c:
8784         * redisplay-msw.c (mswindows_frame_output_begin):
8785         * redisplay-msw.c (mswindows_frame_output_end):
8786         * redisplay-msw.c (console_type_create_redisplay_mswindows):
8787         New begin/end methods -- handle DeferWindowPos.
8788
8789         * redisplay-output.c (redisplay_move_cursor):
8790         * redisplay-output.c (redraw_cursor_in_window):
8791         * redisplay-output.c (redisplay_update_line):
8792         * redisplay-output.c (redisplay_output_window):
8793         New begin/end methods.
8794
8795         * redisplay-tty.c:
8796         * redisplay-tty.c (tty_frame_output_begin):
8797         * redisplay-tty.c (tty_frame_output_end):
8798         * redisplay-tty.c (console_type_create_redisplay_tty):
8799         New begin/end methods.
8800
8801         * redisplay-x.c:
8802         * redisplay-x.c (x_window_output_begin):
8803         * redisplay-x.c (x_window_output_end):
8804         * redisplay-x.c (console_type_create_redisplay_x):
8805         New begin/end methods.
8806
8807         * redisplay.c (redisplay_frame):
8808         * redisplay.c (Fredisplay_echo_area):
8809         New begin/end methods.
8810         use MAYBE_DEVMETH for clear_frame; it may not exist.
8811
8812         * window.h (WINDOW_XFRAME):
8813         WINDOW_XFOO macros -- get locale and decode struct pointer.
8814
8815
8816 2000-05-12  Ben Wing  <ben@xemacs.org>
8817
8818         * emacs.c:
8819         * emacs.c (ensure_no_quitting_from_now_on):
8820         * emacs.c (fatal_error_signal):
8821         * emacs.c (mswindows_handle_hardware_exceptions):
8822         * emacs.c (main):
8823         * emacs.c (Fkill_emacs):
8824         * emacs.c (shut_down_emacs):
8825         * emacs.c (assert_failed):
8826         various improvements in fatal error handling.
8827
8828         * eval.c:
8829         move preparing_for_armageddon to emacs.c.
8830
8831         * lisp.h:
8832         declare fatal_error_in_progress.
8833
8834         * print.c:
8835         * print.c (std_handle_out_external):
8836         * print.c (std_handle_out_va):
8837         * print.c (stderr_out):
8838         * print.c (stdout_out):
8839         use console under mswin when no standard output.
8840         don't do code conversion during fatal error.
8841
8842         * scrollbar.c (Fscrollbar_page_up):
8843         * scrollbar.c (Fscrollbar_page_down):
8844         fix missing else.  reindent.
8845
8846 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
8847
8848         Emergency fix.
8849
8850         * glyphs.h (GLYPH_CACHEL_DESCENT):
8851         (GLYPH_CACHEL_DESCENT):
8852         (GLYPH_CACHEL_DESCENT):
8853         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
8854         used in case these are inline functions.
8855         Use more absurd values to error check.
8856
8857         include window.h for error check functions.
8858
8859 2000-05-11  Ben Wing  <ben@xemacs.org>
8860
8861         * cmdloop.c (Freally_early_error_handler):
8862         Display message box under windows; otherwise, message will disappear
8863         before it can be viewed.
8864
8865         * console-msw.c:
8866         * console-msw.c (Fmswindows_message_box):
8867         * console-msw.c (FROB):
8868         * console-msw.c (syms_of_console_mswindows):
8869         Define new fun `mswindows-message-box'.
8870         #### I will merge this into `popup-dialog-box'; just give me
8871         a bit of time.
8872
8873         * general.c:
8874         * general.c (syms_of_general):
8875         Some new symbols used in `mswindows-message-box'.
8876
8877         * glyphs.c:
8878         * glyphs.c (Fset_image_instance_property):
8879         put warning in this fun.
8880
8881         * glyphs.h:
8882         * glyphs.h (GLYPH_CACHEL_WIDTH):
8883         * glyphs.h (GLYPH_CACHEL_ASCENT):
8884         * glyphs.h (GLYPH_CACHEL):
8885         * glyphs.h (GLYPH_CACHEL_GLYPH):
8886         define error-checking versions to try to catch a bug i've seen --
8887         redisplay gets in an infinite loop because the glyph width of the
8888         continuation glyph is 65535.
8889
8890         * lisp.h:
8891         Extern message-box stuff.
8892
8893         * window.c (allocate_window):
8894         * window.c (make_dummy_parent):
8895         * window.c (Fset_window_configuration):
8896         Use EQUAL not EQ for subwindow caches to make them work a bit
8897         better. (Something is still very broken.)
8898
8899
8900 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
8901
8902         * glyphs.c (image_instantiate): Suppress gcc warnings.
8903         (Fmake_image_instance): Fix doc string.
8904         * specifier.c (Fmake_specifier): Ditto.
8905
8906 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
8907
8908         * paths.h.in (PATH_LOCK): Removed.
8909         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
8910         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
8911
8912 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
8913
8914         * fns.c (Ffeaturep): Update e-mail address in doc-string.
8915         Document (featurep '(and xemacs 21.02)).
8916
8917 2000-05-09  Ben Wing  <ben@xemacs.org>
8918
8919         * buffer.c (complex_vars_of_buffer):
8920         update modeline-format doc.
8921
8922         * device.h:
8923         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
8924
8925         * emacs.c:
8926         timeline of all released versions of Emacs, for use in creating
8927         authorship comments and in synching up.
8928
8929         * glyphs-widget.c (image_instantiator_buttons):
8930         * glyphs-widget.c (image_instantiator_edit_fields):
8931         * glyphs-widget.c (image_instantiator_combo_box):
8932         * glyphs-widget.c (image_instantiator_scrollbar):
8933         * glyphs-widget.c (image_instantiator_progress_guage):
8934         * glyphs-widget.c (image_instantiator_tree_view):
8935         * glyphs-widget.c (image_instantiator_tab_control):
8936         * glyphs-widget.c (image_instantiator_labels):
8937         * glyphs-widget.c (image_instantiator_layout):
8938         * glyphs-widget.c (image_instantiator_native_layout):
8939         rename decode_domain method to governing_domain.
8940
8941         * glyphs.c:
8942         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
8943         * glyphs.c (add_entry_to_device_ii_format_list):
8944         make sure we don't put an entry more than once into the list.
8945         * glyphs.c (check_instance_cache_mapper):
8946         *************************************************************
8947         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
8948         HAVE BEEN GETTING.
8949         *************************************************************
8950         * glyphs.c (get_image_instantiator_governing_domain):
8951         clean up, expand on new concept of governing domain.
8952         * glyphs.c (instantiate_image_instantiator):
8953         * glyphs.c (allocate_image_instance):
8954         use governing_domain instead of cache_domain in naming.
8955         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
8956         * glyphs.c (make_image_instance_1):
8957         * glyphs.c (Fmake_image_instance):
8958         allow for any domain (not just device), and process the
8959         governing domain correctly.  very big doc fix.
8960         * glyphs.c (Fimage_instance_domain):
8961         new primitive, to retrieve the governing domain of an image instance.
8962         * glyphs.c (image_instantiate):
8963         use new governing_domain stuff.  this fixes a crash you could get
8964         by instantiating certain widget glyphs in frame locales. (should
8965         signal an error instead of crashing.)
8966         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
8967         * glyphs.c (Fglyphp): clean up doc.
8968         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
8969         * glyphs.c (syms_of_glyphs):
8970         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
8971         * glyphs.c (image_instantiator_format_create): add some comments about
8972         bogus code.
8973         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
8974         for current-display-table. (Apparently Hrjove implemented in 1998 a
8975         design I wrote up in 1996, but didn't update the doc string.)
8976
8977         * glyphs.h: clean up a doc string.
8978         * glyphs.h (governing_domain):
8979         * glyphs.h (struct image_instantiator_methods):
8980         changes for governing_domain stuff.
8981
8982         * gutter.c:
8983         * gutter.c (Fgutter_specifier_p):
8984         * gutter.c (Fgutter_size_specifier_p):
8985         * gutter.c (Fgutter_visible_specifier_p):
8986         * objects.c:
8987         * objects.c (Fcolor_specifier_p):
8988         * objects.c (Ffont_specifier_p):
8989         * objects.c (Fface_boolean_specifier_p):
8990         doc strings moved to make-*-specifier.
8991
8992         * redisplay.c (add_disp_table_entry_runes_1):
8993         * redisplay.c (generate_fstring_runes):
8994         * redisplay.c (screen):
8995         add random comments and doc strings.
8996
8997         * specifier.c:
8998         * specifier.c (Fmake_specifier):
8999         major overhaul of this doc string.
9000
9001         * specifier.c (Fvalid_specifier_domain_p):
9002         comment about the bogosity of image instances being domains.
9003         * specifier.c (decode_domain):
9004         now non-static, used in glyphs.c.
9005         * specifier.c (specifier_instance):
9006         comment about the bogosity of image instances being domains.
9007         * specifier.c (Fgeneric_specifier_p):
9008         move doc string to make-generic-specifier.
9009         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
9010         rebackslashify.
9011
9012         * specifier.h:
9013         * specifier.h (DOMAIN_FRAME):
9014         * specifier.h (DOMAIN_LIVE_P):
9015         * specifier.h (DOMAIN_XDEVICE):
9016         rebackslashify.
9017         add comments about problems with these macros.
9018         prototype for decode_domain.
9019
9020         * toolbar.c:
9021         * toolbar.c (Ftoolbar_specifier_p):
9022         move doc string to `make-toolbar-specifier'.
9023
9024         * window.c (window_unmap_subwindows_cache_mapper):
9025         *************************************************************
9026         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
9027         HAVE BEEN GETTING.
9028         *************************************************************
9029
9030 2000-05-09  Andy Piper  <andy@xemacs.org>
9031
9032         * glyphs.h: declare reset_frame_subwindow_instance_cache.
9033
9034         * window.c (Fset_window_configuration): reset the frame subwindow
9035         cache and re-initialize the window subwindow caches.
9036
9037         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
9038
9039 2000-05-09  Ben Wing  <ben@xemacs.org>
9040
9041         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
9042         DWORD.
9043
9044 2000-04-26  Mike Woolley  <mike@bulsara.com>
9045
9046         * ntheap.c: Changed recreate_heap to limit the amount reserved
9047         for the heap to that which is actually available. Also now
9048         displays a message box (with some dignostics) in the event that
9049         it still can't start.
9050
9051 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
9052
9053         * callproc.c (Fold_call_process_internal): GCPRO path
9054
9055 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
9056
9057         Patch by Bill Perry.
9058
9059         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
9060         back data instead of #ifdef.
9061         (Fscrollbar_page_down): ditto.
9062
9063 2000-05-07  Ben Wing  <ben@xemacs.org>
9064
9065         * buffer.h:
9066         Kludge for defining Qmswindows_tstr.
9067
9068         * nt.c:
9069         * nt.c (open_input_file):
9070         * nt.c (open_output_file):
9071         * nt.c (rva_to_section):
9072         * nt.c (mswindows_executable_type):
9073         Move all memory-mapped-file routines here (some were in unexnt.c,
9074         which is bad because they are used by process-nt.c, and unexnt
9075         won't be around when portable dumping).  Synched the above routines
9076         with FSF 20.6.
9077
9078         * nt.h:
9079         Removed ifdef'd out bogus code.
9080         Fixed some prototypes.
9081
9082         * nt.h (file_data):
9083         * nt.h (OFFSET_TO_RVA):
9084         * nt.h (RVA_TO_OFFSET):
9085         * nt.h (RVA_TO_PTR):
9086         Moved the memory-mapped-file structures, macros and prototypes
9087         here, to parallel nt.c.  ntheap.h should really be removed
9088         entirely, and it's a non-portable-dumper specific file.
9089
9090         * ntheap.h (round_to_next):
9091         Moved the memory-mapped-file structures, macros and prototypes
9092         to nt.h.
9093
9094         * ntproc.c (compare_env):
9095         Moved rva_to_section and mswindows_executable_type to nt.c.
9096         Moved compare_env to process-nt.c.
9097         ntproc.c will die, one day.
9098
9099         * ntproc.c (sys_spawnve):
9100         Account for win32_ -> mswindows_.
9101
9102         * process-nt.c:
9103         * process-nt.c (struct nt_process_data):
9104         * process-nt.c (ensure_console_window_exists):
9105         * process-nt.c (compare_env):
9106         * process-nt.c (nt_create_process):
9107         * process-nt.c (nt_kill_process_by_pid):
9108         * process-nt.c (syms_of_process_nt):
9109         * process-nt.c (vars_of_process_nt):
9110         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
9111         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
9112         changes).  Eliminate our old `nt-quote-process-args' mechanism.
9113         Synch up nt_create_process with FSF 20.6 sys_spawnve.
9114         Move compare_env here from ntproc.c.
9115
9116         * process.c (Fprocess_send_region):
9117         Takes an optional fourth argument, BUFFER, which should fix some
9118         problems with call-process.
9119
9120         * syscommctrl.h:
9121         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
9122
9123         * syswindows.h:
9124         Move ICC_BAR_CLASSES to syscommctrl.h.
9125         Add preliminary macros for MSWindows/Mule.  More to come.
9126
9127         * unexnt.c:
9128         * unexnt.c (unexec):
9129         open_output_file moved to nt.c.
9130
9131
9132 2000-05-05  Andy Piper  <andy@xemacs.org>
9133
9134         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
9135         instance from the frame cache also since GC may catch up too late
9136         to make frame deletion sane.
9137
9138 2000-05-04  Andy Piper  <andy@xemacs.org>
9139
9140         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
9141         (x_finalize_image_instance): ungcpro on deletion.
9142
9143         * glyphs.c (image_instantiator_format_create): give pointers a
9144         query geometry method so that the geometry is at least set.
9145
9146         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
9147         initialize layouts if using widgets.
9148
9149 2000-05-03  Andy Piper  <andy@xemacs.org>
9150
9151         * nt.c: remove bogus reference to sysmmsystem.h
9152
9153         * gui-x.c (popup_selection_callback): fix no selection abort.
9154
9155 2000-05-02  Andy Piper  <andy@xemacs.org>
9156
9157         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
9158         (mswindows_widget_instantiate): ditto.
9159
9160         * glyphs-widget.c (initialize_widget_image_instance): initialize
9161         children correctly.
9162         (widget_instantiate): cope with children and items in the same
9163         instance.
9164
9165         * glyphs.c (mark_image_instance): cope with children as a first
9166         class member.
9167         (image_instance_equal): ditto.
9168         (image_instance_hash): ditto.
9169         (image_instance_changed): ditto.
9170
9171 2000-04-30  Andy Piper  <andy@xemacs.org>
9172
9173         * glyphs.c (subwindow_query_geometry): new function. Return some
9174         defaults.
9175         (subwindow_instantiate): don't assign dimensions if none have been
9176         given.
9177         (image_instantiator_format_create): add subwindow_query_geometry.
9178         (print_image_instance): cope with layouts as widgets.
9179
9180 2000-04-29  Andy Piper  <andy@xemacs.org>
9181
9182         * frame.c (delete_frame_internal): call
9183         free_frame_subwindow_instance_cache so that all subwindows are
9184         finalized before their parent.
9185         (mark_frame): remove subwindow_cachels.
9186         (Fmake_frame): remove subwindow_cachel manipulation.
9187         (allocate_frame_core): subwindow_instance_cache is a weak list.
9188         (delete_frame_internal): set subwindow_instance_cache to nil.
9189
9190         * glyphs-msw.c (mswindows_finalize_image_instance): make double
9191         finalization safe.
9192         (mswindows_finalize_image_instance): use the device
9193         not the domain as the domain may have died already.
9194
9195         * glyphs-x.c (x_finalize_image_instance): ditto.
9196         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
9197         HEIGHT.
9198
9199         * redisplay-output.c (redisplay_unmap_subwindows): update for
9200         subwindow instance cache as a weak list.
9201         (redisplay_unmap_subwindows_maybe): ditto.
9202         (redisplay_unmap_subwindows_except_us): ditto.
9203
9204         * glyphs.c (unmap_subwindow): error checking will check the domain
9205         so don't deal with it here. Don't use cachels anymore.
9206         (map_subwindow): ditto.
9207         (update_subwindow_cachel_data): remove old accessor names.
9208         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
9209         (Fresize_subwindow): don't update cachel.
9210         (mark_subwindow_cachels):
9211         (update_subwindow_cachel_data):
9212         (add_subwindow_cachel):
9213         (get_subwindow_cachel_index):
9214         (update_subwindow_cachel):
9215         (reset_subwindow_cachels):
9216         (mark_subwindow_cachels_as_not_updated): deleted.
9217         (cache_subwindow_instance_in_frame_maybe): new function. Add a
9218         subwindow instance to the frame cache.
9219         (find_matching_subwindow): update for subwindow instance cache as
9220         a weak list.
9221         (update_widget_instances): ditto.
9222         (image_instance_type_to_mask):inlined.
9223         (free_frame_subwindow_instance_cache): new function. finalize all
9224         subwindows that are instantiated.
9225
9226         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
9227         of cachel information.
9228         (IMAGE_INSTANCE_DISPLAY_X):
9229         (IMAGE_INSTANCE_DISPLAY_Y):
9230         (IMAGE_INSTANCE_DISPLAY_WIDTH):
9231         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
9232         (XIMAGE_INSTANCE_DISPLAY_X):
9233         (XIMAGE_INSTANCE_DISPLAY_Y):
9234         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
9235         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
9236         remove subwindow_cachel structure and function references.
9237         (image_instance_type_to_mask): inline from glyphs.c
9238
9239         * redisplay.c (redisplay_frame): remove subwindow_cachel
9240         references.
9241
9242         * frame.h (struct frame): remove subwindow_cachels.
9243         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
9244
9245         * frameslots.h: add subwindow_instance_cache.
9246
9247         * window.c (replace_window): check subwindow cache of replacement.
9248         (window_unmap_subwindows_cache_mapper):
9249         (window_unmap_subwindows): new functions. Unmap all subwindows
9250         cached on this window.
9251         (mark_window_as_deleted): unmap all subwindows.
9252
9253 2000-04-27  Andy Piper  <andy@xemacs.org>
9254
9255         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
9256
9257         * glyphs-widget.c (widget_layout): return something.
9258         (layout_layout): return something. Fail if not initialized.
9259         (layout_query_geometry): ditto.
9260         (image_instantiator_native_layout): new function. Initialized the
9261         native layout type.
9262         (widget_instantiate): don't do layout stuff here.
9263
9264         * glyphs.c (instantiate_image_instantiator): reorded calling or
9265         instantiate and post_instantiate with layout in between.
9266         (image_instance_layout): be more selective about deciding whether
9267         the layout has been done or not.
9268
9269         * glyphs.h (struct image_instantiator_methods): return a value
9270         from layout_method.
9271
9272 2000-04-26  Andy Piper  <andy@xemacs.org>
9273
9274         * glyphs.c (allocate_image_instance): make initial width and
9275         height unspecified. Set initialized to 0.
9276
9277         * syscommctrl.h new file. Encapsulates commctrl.h.
9278
9279         * syswindows.h new file. Encapsulates windows.h.
9280
9281         * ntplay.c: use new syswindows.h and syscommctrl.h header.
9282         * nt.c: ditto.
9283         * console-msw.h: ditto.
9284
9285         * redisplay-tty.c (tty_output_display_block): remove layout references.
9286
9287         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
9288         window handle rather than just the frame.
9289
9290         * glyphs.c (mark_image_instance): remove layout references.
9291         (print_image_instance): ditto.
9292         (image_instance_equal): ditto.
9293         (image_instance_hash): ditto.
9294         (decode_image_instance_type): ditto.
9295         (encode_image_instance_type): ditto.
9296         (image_instantiate): ditto.
9297         (allocate_glyph): ditto.
9298         (Fimage_instance_height): ditto.
9299         (Fimage_instance_width): ditto.
9300         (update_subwindow): ditto.
9301
9302         * redisplay-x.c (x_output_display_block): recode for layouts as
9303         widgets.
9304
9305         * redisplay-output.c (redisplay_output_layout): recode for layouts
9306         as widgets.
9307         (compare_runes): remove layout references.
9308
9309         * redisplay-msw.c (mswindows_output_display_block): recode for
9310         layouts as widgets.
9311
9312         * glyphs-widget.c (image_instantiator_layout): remove
9313         layout_possible_dest_types.
9314         (layout_possible_dest_types): deleted.
9315
9316         * glyphs.h (image_instance_type): remove layout references.
9317         (struct Lisp_Image_Instance): ditto. Add initialized flag.
9318         (IMAGE_INSTANCE_INITIALIZED): new accessor.
9319         (XIMAGE_INSTANCE_INITIALIZED): ditto.
9320
9321 2000-04-25  Andy Piper  <andy@xemacs.org>
9322
9323         * glyphs-widget.c (image_instantiator_buttons):
9324         (image_instantiator_edit_fields):
9325         (image_instantiator_combo_box):
9326         (image_instantiator_scrollbar):
9327         (image_instantiator_progress_guage):
9328         (image_instantiator_tree_view):
9329         (image_instantiator_tab_control):
9330         (image_instantiator_labels):
9331         (image_instantiator_layout): call default post_instantiate method.
9332         (widget_post_instantiate): new function. Simply lays out the
9333         widgets.
9334
9335         * glyphs.h (struct image_instantiator_methods): add
9336         post_instantiate method.
9337
9338         * glyphs.c (instantiate_image_instantiator): add post_instantiate
9339         method calls.
9340
9341 2000-04-23  Andy Piper  <andy@xemacs.org>
9342
9343         * glyphs.h (struct image_instantiator_methods): add
9344         decode_domain_method.
9345         (struct Lisp_Image_Instance): remove subwindow frame - it can be
9346         derived from the domain.
9347         (IMAGE_INSTANCE_FRAME): new accessor.
9348         (XIMAGE_INSTANCE_FRAME): ditto.
9349
9350         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
9351         instead of _SUBWINDOW_FRAME.
9352         (finalize_image_instance): ditto.
9353         (Fimage_instance_foreground): ditto.
9354         (Fimage_instance_background): ditto.
9355         (image_instantiate): ditto.
9356         (update_subwindow_cachel): ditto.
9357         (update_subwindow): ditto.
9358         (unmap_subwindow): ditto.
9359         (map_subwindow): ditto
9360         (subwindow_instantiate): ditto.
9361         * glyphs-msw.c (mswindows_update_widget): ditto.
9362         (mswindows_progress_gauge_instantiate): ditto.
9363         (mswindows_tab_control_update): ditto.
9364         * glyphs-x.c (x_update_widget): ditto.
9365         (x_widget_instantiate): ditto.
9366         (x_tab_control_instantiate): ditto.
9367         (x_tab_control_update): ditto.
9368         * event-msw.c (mswindows_wnd_proc): ditto
9369
9370         * glyphs-widget.c (image_instantiator_layout): use
9371         subwindow_decode_domain.
9372         (image_instantiator_buttons): ditto.
9373         (image_instantiator_edit_fields): ditto.
9374         (image_instantiator_combo_box): ditto.
9375         (image_instantiator_scrollbar): ditto.
9376         (image_instantiator_progress_guage): ditto.
9377         (image_instantiator_tree_view): ditto.
9378         (image_instantiator_tab_control): ditto.
9379         (image_instantiator_labels): ditto.
9380         (image_instantiator_layout): ditto.
9381
9382         * glyphs.c: add instance error checking to many functions.
9383         (instantiate_image_instantiator): decode device from cache_domain.
9384         (image_instantiate): partially rewrite by using
9385         decode_image_instantiator_domain to determine what domain the
9386         instance needs to be cached in.
9387         (decode_image_instantiator_domain): new function. Determine what
9388         domain the image needs to be cached in.
9389         (check_window_subwindow_cache): new error checking function.
9390         (check_instance_cache_mapper): ditto.
9391         (check_image_instance_structure): ditto.
9392         (subwindow_decode_domain): new function. Encodes a window as a
9393         subwindow's cache domain.
9394         (image_instantiator_format_create): use it for text and
9395         subwindows.
9396
9397 2000-04-21  Andy Piper  <andy@xemacs.org>
9398
9399         * glyphs.c (image_instance_device): new function.
9400         (image_instance_frame): new function.
9401         (image_instance_window): new function.
9402         (image_instance_live_p): new function.
9403
9404         * window.c (mark_window_as_deleted): reset the subwindow_instance_
9405         cache to nil.
9406
9407         * glyphs.h (struct Lisp_Image_Instance): device->domain.
9408         (IMAGE_INSTANCE_DOMAIN): new accessor.
9409         (XIMAGE_INSTANCE_DOMAIN): ditto.
9410
9411         * glyphs-x.c (x_finalize_image_instance): device->domain.
9412
9413         * glyphs-msw.c (init_image_instance_geometry): device->domain.
9414         (mswindows_finalize_image_instance): ditto.
9415
9416         * glyphs-eimage.c (jpeg_instantiate): device->domain.
9417         (gif_instantiate): ditto.
9418         (png_instantiate): ditto.
9419         (tiff_instantiate): ditto.
9420
9421         * glyphs.c (instantiate_image_instantiator): use domain rather
9422         than device.
9423         (mark_image_instance): device -> domain.
9424         (print_image_instance): ditto.
9425         (finalize_image_instance): ditto.
9426         (image_instance_equal): ditto.
9427         (allocate_image_instance): ditto.
9428         (Fcolorize_image_instance): ditto.
9429         (query_string_geometry): ditto.
9430         (image_instantiate): ditto
9431         (query_string_font): ditto.
9432         (image_instantiate): ditto.
9433         (update_subwindow): ditto.
9434         (unmap_subwindow): ditto.
9435         (map_subwindow): ditto.
9436         (subwindow_instantiate): ditto.
9437
9438         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
9439         (DOMAIN_FRAME): ditto.
9440         (DOMAIN_WINDOW): ditto.
9441         (DOMAIN_LIVE_P): ditto.
9442         (XDOMAIN_DEVICE): ditto.
9443         (XDOMAIN_FRAME): ditto.
9444         (XDOMAIN_WINDOW): ditto.
9445
9446         * specifier.c (Fvalid_specifier_domain_p): add image instances as
9447         a valid specifier domain.
9448
9449 2000-04-19  Andy Piper  <andy@xemacs.org>
9450
9451         * glyphs-widget.c (syms_of_glyphs_widget): remove
9452         widget-callback-current-channel.
9453         (vars_of_glyphs_widget): ditto.
9454         * glyphs.h: ditto
9455
9456         * gui.c (get_gui_callback): revert to previous behaviour.
9457
9458 2000-04-18  Andy Piper  <andy@xemacs.org>
9459
9460         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
9461         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
9462         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
9463
9464         * glyphs.c (image_instance_equal): add margin_width.
9465         (image_instance_hash): ditto.
9466
9467         * glyphs-widget.c (widget_instantiate): deal with margin-width.
9468         (layout_query_geometry): ditto.
9469         (layout_layout): ditto.
9470         (syms_of_glyphs_widget): add margin-width.
9471         (image_instantiator_layout): allow margin-width.
9472
9473         * glyphs.c (update_widget_instances): make a normal function.
9474         (syms_of_glyphs): remove Qupdate_widget_instances.
9475         * glyphs.h: ditto.
9476
9477         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
9478         so that we don't corrupt ideas about the last event or
9479         command. Remove widget-callback-current-channel fiddling.
9480         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
9481
9482 2000-05-01  Martin Buchholz <martin@xemacs.org>
9483
9484         * XEmacs 21.2.33 is released.
9485
9486 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
9487
9488         * make-src-depend: Allow dots in header file name.
9489
9490 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
9491
9492         * mule-charset.h (struct charset_lookup): Add
9493         next_allocated_1_byte_leading_byte and
9494         next_allocated_2_byte_leading_byte.
9495         * mule-charset.c: Move above two variables so that those values
9496         will be dumped.
9497
9498 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
9499
9500         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
9501         when string length is zero.
9502         (find_charsets_in_emchar_string): Ditto.
9503
9504 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
9505
9506         * lisp.h: extern Qdialog and Qmenubar.
9507
9508         * gui-x.c: added events.h.
9509                 also fixed typo which made the file uncompilable.
9510
9511         * general.c: Added Qmenubar and Qdialog
9512
9513 2000-04-28  Ben Wing  <ben@xemacs.org>
9514
9515         * frame-msw.c (mswindows_init_frame_1):
9516         * frame-msw.c (mswindows_mark_frame):
9517         * event-msw.c (mswindows_enqueue_dispatch_event):
9518         * console-msw.h:
9519         * console-msw.h (struct mswindows_frame):
9520         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
9521         there are now three hash tables for callbacks.
9522         mswindows_enqueue_dispatch_event is no longer static.
9523
9524         * dialog-x.c (maybe_run_dbox_text_callback):
9525         * dialog-x.c (dbox_descriptor_to_widget_value):
9526         switch to new cons3 form for callbacks.
9527
9528         * glyphs-msw.c (mswindows_register_gui_item):
9529         * glyphs-msw.c (mswindows_widget_instantiate):
9530         * glyphs-msw.c (add_tree_item):
9531         * glyphs-msw.c (add_tab_item):
9532         new image instance parameter, so it can be passed to callback-ex.
9533         respect :callback-ex as well as :callback.
9534
9535         * glyphs-widget.c (VALID_GUI_KEYWORDS):
9536         add :callback-ex.
9537
9538         * glyphs.c (print_image_instance):
9539         prettify, e.g. now prints widget type.
9540
9541         * gui-x.h:
9542         certain funs have new image instance parameter.
9543
9544         * gui.c:
9545         * gui.c (get_gui_callback):
9546         * gui.c (gui_item_add_keyval_pair):
9547         * gui.c (gui_item_init):
9548         * gui.c (gui_add_item_keywords_to_plist):
9549         * gui.c (mark_gui_item):
9550         * gui.c (gui_item_hash):
9551         * gui.c (gui_item_equal):
9552         * gui.c (copy_gui_item):
9553         * gui.c (syms_of_gui):
9554         recognize callback-ex in a number of places.
9555         also, fix the annoying "can't get out of yes-no dialog" bug.
9556
9557         * gui.h:
9558         * gui.h (struct Lisp_Gui_Item):
9559         recognize callback-ex in a number of places.
9560
9561         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9562         new parameter in button_item_to_widget_value.
9563
9564         * glyphs-x.c (x_update_widget):
9565         * glyphs-x.c (x_button_instantiate):
9566         * glyphs-x.c (x_button_update):
9567         * glyphs-x.c (x_progress_gauge_instantiate):
9568         * glyphs-x.c (x_edit_field_instantiate):
9569         * glyphs-x.c (x_combo_box_instantiate):
9570         * glyphs-x.c (x_tab_control_instantiate):
9571         * glyphs-x.c (x_label_instantiate):
9572         new image instance parameter in various places.
9573
9574         * event-Xt.c:
9575         * event-Xt.c (enqueue_Xt_dispatch_event):
9576         this fun gets exported.
9577
9578         * gui-msw.c:
9579         * gui-msw.c (mswindows_handle_gui_wm_command):
9580         handle both :callback and :callback-ex, and generate our own
9581         event because it's one of the callback-ex arguments.
9582
9583         * gui-x.c:
9584         * gui-x.c (popup_selection_callback):
9585         handle both :callback and :callback-ex, and generate our own
9586         event because it's one of the callback-ex arguments.
9587         * gui-x.c (button_item_to_widget_value):
9588         * gui-x.c (gui_items_to_widget_values_1):
9589         * gui-x.c (gui_item_children_to_widget_values):
9590         * gui-x.c (gui_items_to_widget_values):
9591         new image instance parameter in various places.
9592
9593         * fns.c (Freplace_list):
9594         fix small typo in doc string.
9595
9596         * lisp.h:
9597         declare enqueue_Xt_dispatch_event.
9598
9599 2000-04-28  Ben Wing  <ben@xemacs.org>
9600
9601         * buffer.c:
9602         * buffer.c (Frecord_buffer):
9603         * buffer.c (syms_of_buffer):
9604         delete record-buffer-hook.
9605
9606         * fns.c:
9607         * fns.c (Freplace_list):
9608         * fns.c (syms_of_fns):
9609         new primitive replace-list.
9610
9611         * frameslots.h:
9612         slot for old buffer-alist.
9613
9614         * lisp.h:
9615         exfun replace-list.
9616
9617         * redisplay.c:
9618         * redisplay.c (redisplay_frame):
9619         * redisplay.c (syms_of_redisplay):
9620         * redisplay.c (vars_of_redisplay):
9621         new hook buffer-list-changed-hook.
9622         call it.
9623
9624 2000-04-27  Ben Wing  <ben@xemacs.org>
9625
9626         * extents.h: extern in_modeline_generation.
9627
9628         * redisplay.c (generate_formatted_string_db): set
9629         in_modeline_generation.
9630
9631         * extents.c (extent_changed_for_redisplay): don't mark redisplay
9632         flags if in modeline generation.  otherwise frame-modified-tick
9633         is ticked far too often.
9634         Declare in_modeline_generation.
9635
9636 2000-04-26  Ben Wing  <ben@xemacs.org>
9637
9638         * emacs.c (vars_of_emacs): document quick-build "error-checking"
9639         option.
9640         (vars_of_emacs): add quick-build as an error-checking option.
9641         A bit kludgy, but there doesn't seem much point in creating
9642         a real var for this.
9643
9644         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
9645
9646 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9647
9648         * redisplay.h (struct display_line): Add a new variable,
9649         line_continuation.
9650
9651         * redisplay.c (create_text_block): Set dl->line_continuation if
9652         the line continues.
9653         (create_string_text_block): Ditto.
9654         (regenerate_window_incrementally): Use line_continuation instead
9655         of searching continuation glyph.
9656         (add_margin_runes): Call add_glyph_rune.
9657         (add_glyph_rune): Handle margin glyph.
9658
9659 2000-04-20  Martin Buchholz  <martin@xemacs.org>
9660
9661         * filelock.c (fill_in_lock_file_name):
9662         ANSIfy.
9663         Check for IS_ANY_SEP instead of '/'.
9664         (lock_file_1):
9665         Avoid generating gratuitous garbage.  Call user_login_name() directly.
9666         Never check errno without first seeing that system call failed.
9667         (unlock_file): Add GCPRO.
9668         (Flock_buffer): Fix docstring.
9669         (Ffile_locked_p): Fix docstring.  Add GCPRO.
9670
9671 2000-04-19  Martin Buchholz  <martin@xemacs.org>
9672
9673         * sysdep.c (get_pty_max_bytes):
9674         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
9675         strings longer than 252 bytes.
9676
9677         * md5.c: Unconditionally include ANSI header <limits.h>
9678
9679         * glyphs-x.c (convert_EImage_to_XImage):
9680         * lisp-union.h (union Lisp_Object):
9681         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
9682
9683 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
9684
9685         * filelock.c (current_lock_owner): Remove unused variable o, p.
9686
9687 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
9688
9689         * callint.c: Remove multiply defined symbol Qlet
9690         (syms_of_callint): ditto.
9691
9692 2000-04-14  Andy Piper  <andy@xemacs.org>
9693
9694         * general.c (syms_of_general): add last-command, this-command, let
9695         and funcall.
9696
9697         * lisp.h: declare various symbols.
9698
9699         * glyphs.h: declare Qwidget_callback_current_channel;
9700
9701         * glyphs-widget.c (syms_of_glyphs_widget): add
9702         Qgui_callback_current_channel.
9703         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
9704
9705         * gui-msw.c (mswindows_handle_gui_wm_command): bind
9706         widget-callback-current-channel when invoking the interactive
9707         arg. Also bind last-command and next-command when invoking the
9708         widget updates.
9709         * gui-x.c (popup_selection_callback): ditto.
9710
9711         * gui.c (get_gui_callback): massage args so that we are always
9712         calling eval. This allows us to add our own variable bindings
9713         outside.
9714
9715         * glyphs-x.c (x_button_instantiate): use
9716         gui_items_to_widget_values since this is GC safe.
9717         (x_progress_gauge_instantiate): ditto.
9718         (x_edit_field_instantiate): ditto.
9719         (x_label_instantiate): ditto.
9720
9721         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
9722         (emacs_Xt_event_widget_focus_out): new function
9723         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
9724         focus.
9725         (emacs_Xt_event_add_widget_actions): new function. add focus
9726         functions as actions.
9727         (init_event_Xt_late): use it.
9728
9729 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
9730
9731         * event-stream.c (Fdispatch_event): Doc fix.
9732
9733 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
9734
9735         * postgresql.c: Remove all references to PQsetenv*.
9736
9737         * postgresql.h: Remove references to PGsetenvHandler object.
9738         * lrecord.h (lrecord_type): Ditto.
9739
9740 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
9741
9742         * glyphs-msw.h (struct mswindows_image_instance_data): Added
9743         real_heigh and real_width members, and accessor macros for these.
9744
9745         * glyphs-msw.c (init_image_instance_geometry): New function.
9746         (init_image_instance_from_dibitmap): Use it.
9747         (mswindows_resource_instantiate): Use it.
9748         (init_image_instance_from_xbm_inline): Use it.
9749         (mswindows_initialize_image_instance_mask): Use real bitmap
9750         geometry.
9751         (mswindows_create_resized_bitmap): Ditto.
9752         (mswindows_create_resized_mask): Ditto.
9753
9754         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
9755         and bitmap to their surface size.
9756
9757 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
9758
9759         * process-unix.c (unix_send_process): Guard against process MIA
9760         after Faccept_process_output.
9761
9762 2000-04-11  Ben Wing  <ben@xemacs.org>
9763
9764         * eval.c (unbind_to_hairy): fix brokenness introduced by
9765         nanosecond speed improvements.
9766
9767 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
9768
9769         * sunplay.c (init_device): To play sounds correctly, the device
9770         apparently needs to be initialized at least once by XEmacs.  Make
9771         it so.
9772
9773 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9774
9775         * redisplay.c (add_margin_runes): Add text image glyph
9776           handling.
9777
9778 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
9779
9780         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
9781         gcc is newer than 2.5.
9782
9783 2000-04-06  Colin Rafferty  <colin@xemacs.org>
9784
9785         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
9786
9787         * fns.c (size_bit_vector):
9788         * alloc.c (size_vector):
9789         (make_vector_internal):
9790         (make_bit_vector_internal):
9791         (sweep_bit_vectors_1):
9792         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
9793
9794 2000-04-06  Andy Piper  <andy@xemacs.org>
9795
9796         * gmalloc.c (malloc): undo previous change.
9797         (malloc): ditto.
9798         (free): ditto.
9799         (realloc): ditto.
9800
9801 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
9802
9803         * line-number.c (buffer_line_number): Revert to former version.
9804
9805 2000-04-06  Andy Piper  <andy@xemacs.org>
9806
9807         * gmalloc.c (malloc): add error checking.
9808         (malloc): ditto.
9809         (free): ditto.
9810         (realloc): ditto.
9811
9812         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
9813         button_item_to_widget_value arg.
9814
9815         * glyphs-x.c (x_button_instantiate): add extra
9816         button_item_to_widget_value arg.
9817         (x_progress_gauge_instantiate): ditto.
9818         (x_edit_field_instantiate): ditto.
9819         (x_label_instantiate): ditto.
9820
9821         * gui-x.c (gui_items_to_widget_values_1): add extra
9822         button_item_to_widget_value arg.
9823         (button_item_to_widget_value): add extra menu_item_p arg.
9824
9825         * gui-x.h: change signature of button_item_to_widget_value.
9826
9827         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
9828         button_item_to_widget_value arg.
9829
9830 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
9831
9832         * buffer.h (struct buffer): auto_save_modified should be long.
9833
9834 2000-04-05  Andy Piper  <andy@xemacs.org>
9835
9836         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
9837         type.
9838         (button_query_geometry): give a little more room so that athena
9839         buttons fit.
9840
9841 2000-04-05  Andy Piper  <andy@xemacs.org>
9842
9843         * faces.c (complex_vars_of_faces): The widget face should inherit
9844         the font of the gui-element face.
9845
9846 2000-04-04  Andy Piper  <andy@xemacs.org>
9847
9848         * glyphs-x.c (x_button_update): new function. unconditionally
9849         update a button's state when the instance is dirty.
9850         (image_instantiator_format_create_glyphs_x): add x_button_update.
9851         (x_widget_instantiate): remove old resize cruft.
9852
9853 2000-04-02  Andy Piper  <andy@xemacs.org>
9854
9855         * frame.c (change_frame_size_1): The introduction of gutters means
9856         that we need to allow 0 as a potential frame dimension.
9857
9858 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9859
9860         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
9861         image glyph if allow_cursor.
9862         (add_hscroll_rune): Don't allow cursor to border glyph.
9863         (create_text_block): Ditto.
9864
9865         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
9866         text not in buffer.
9867         (redisplay_output_layout): Call ensure_face_cachel_complete for
9868         text image glyph.
9869
9870
9871 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9872
9873         * redisplay.c (add_glyph_rune): Adding text image as text runes.
9874
9875         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
9876         not in buffer
9877
9878         * redisplay-tty.c (tty_output_display_block): Delete the routine
9879         for text image glyph
9880         * redisplay-x.c (x_output_display_block): ditto
9881         * redisplay-msw.c (mswindows_output_display_block): ditto
9882
9883 2000-02-02  Mike Alexander  <mta@arbortext.com>
9884
9885         Note: Some of these were committed by accident as part of other
9886         patches.
9887
9888         * regex.c (regex_compile): Avoid compiler warnings.
9889
9890         * ntproc.c (sys_spawnve): Avoid compiler warnings.
9891
9892         * nt.h: Declare term_ntproc correctly.
9893
9894         * nt.c: Remove incorrect declaration of get_home_directory which
9895         is declared correctly in lisp.h.
9896
9897         * keymap.c (get_keyelt): Avoid compiler warnings.
9898         (raw_lookup_key_mapper): Avoid compiler warnings.
9899
9900         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
9901
9902         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
9903
9904         * filemode.c (mode_string): Avoid compiler warnings.
9905
9906         * file-coding.c (Fcoding_system_aliasee): Add return statement to
9907         avoid warning.
9908
9909         * events-mod.h: Undef some things that winuser.h defines differently.
9910
9911         * data.c (Faset): Avoid compiler warnings.
9912
9913         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
9914
9915 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
9916
9917         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
9918         Fall through to simple beep on error.
9919         Replace "extern" by real header file.
9920
9921         * linuxplay.c: Use nativesound.h
9922         (play_sound_data): Return error code. Be less verbose on error.
9923
9924         * sunplay.c: Use nativesound.h
9925         (play_sound_data): Return error code. Be less verbose on error.
9926
9927         * ntplay.c: Use nativesound.h
9928         (play_sound_data): Return fake error code
9929
9930         * sgiplay.c: Use nativesound.h
9931         (play_sound_data): Return error code
9932
9933         * hpplay.c: Use nativesound.h, partially implement
9934         new error code. Break compilation until finished.
9935         (play_sound_data): error code.
9936
9937         * nativesound.h (play_sound_file):
9938           (play_sound_data): Prototype in new header.
9939
9940 2000-03-31  Andy Piper  <andy@xemacs.org>
9941
9942         * glyphs-widget.c: (button_query_geometry): new function. Adjust
9943         for toggle and radio buttons.
9944         (image_instantiator_buttons): use it.
9945
9946 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
9947
9948         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
9949         (x_update_horizontal_scrollbar_callback): Return if no mirror was
9950         found. Scrollbar event probably belonged to some old config.
9951
9952 2000-03-31  Andy Piper  <andy@xemacs.org>
9953
9954         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
9955         than 1.
9956         (initialize_widget_image_instance): default layout to
9957         LAYOUT_HORIZONTAL rather than 0.
9958         (widget_instantiate): reverse the item list at the end rather than
9959         every iteration.
9960         (layout_layout): re-code for the border text at the front of the
9961         item list rather than at the end.
9962         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
9963         provided by the user.
9964         (widget_query_geometry): comment.
9965
9966 2000-03-30  Andy Piper  <andy@xemacs.org>
9967
9968         * glyphs-widget.c (image_instantiator_layout): allow standard
9969         widget keywords in layouts.
9970
9971         * gutter.c (output_gutter): cope with nil gutter contents.
9972
9973         * frame.c (Fset_frame_properties): add gutter docs.
9974
9975 2000-03-29  Andy Piper  <andy@xemacs.org>
9976
9977         * toolbar-msw.c (TBSTYLE_FLAT): add.
9978         (mswindows_output_toolbar): minor fiddling.
9979
9980 2000-03-29  Andy Piper  <andy@xemacs.org>
9981
9982         * gutter.c (output_gutter): force gutter size recalculation if
9983         what we are trying to display won't fit.
9984         (update_gutter_geometry): new function. A per-gutter version of
9985         update_frame_gutter_geometry.
9986         (update_frame_gutter_geometry): use it.
9987         (redraw_exposed_gutter): add extra debugging output.
9988
9989 2000-03-28  Mike Alexander  <mta@arbortext.com>
9990
9991         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
9992         (pdump_file_unmap): Implement it on Windows
9993         (pdump_file_get): Save alocated handles for pdump_file_unmap
9994
9995 2000-03-28  Andy Piper  <andy@xemacs.org>
9996
9997         * gui.c (get_gui_callback): treat Quit specially.
9998
9999 2000-03-27  Andy Piper  <andy@xemacs.org>
10000
10001         * glyphs.c (image_instantiate): be careful to check in the same
10002         way we assigned.
10003
10004 2000-03-27  Didier Verna  <didier@xemacs.org>
10005
10006         * config.h.in: define the proper SMART_INCLUDE macro.
10007         handle renaming of `foo_h_path' to `foo_h_file'.
10008
10009         * database.c: ditto.
10010
10011         * emacs.c: ditto.
10012
10013         * linuxplay.c: ditto.
10014
10015         * terminfo.c: ditto.
10016
10017         * tooltalk.h: ditto.
10018
10019 2000-03-27  Andy Piper  <andy@xemacs.org>
10020
10021         * glyphs-msw.c (mswindows_update_widget): make sure the widget
10022         gets updated whenever the face might have changed.
10023
10024 2000-03-26  Mike Alexander  <mta@arbortext.com>
10025
10026         * dumper.c (pdump_resource_free): Fix the comment.
10027
10028 2000-03-21  Olivier Galibert  <galibert@pobox.com>
10029
10030         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
10031
10032 2000-03-22  Mike Alexander  <mta@arbortext.com>
10033
10034         * dumper.c: Include Windows headers on Windows
10035         (pdump_resource_free): Add a body to the function
10036         (pdump_load): exe_name -> exe_path and add some comments.
10037
10038 2000-03-25  Mike Alexander  <mta@arbortext.com>
10039
10040         * gui.c (copy_gui_item_tree): Return a value in all cases
10041
10042 2000-03-21  Didier Verna  <didier@xemacs.org>
10043
10044         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
10045         lwlib/config.h.in.
10046         (SMART_INCLUDE): new macro.
10047         (POSTGRES_INCLUDE): new macro to include postgresql headers from
10048         the proper location.
10049
10050         * postgresql.c: use it.
10051
10052         * inline.c: ditto.
10053
10054 2000-03-24  Andy Piper  <andy@xemacs.org>
10055
10056         * gutter.c (redraw_exposed_gutters): must be "in display" when we
10057         do this.
10058
10059 2000-03-24  Andy Piper  <andy@xemacs.org>
10060
10061         * redisplay-output.c (compare_runes): use image_instance_changed
10062         to detect changes. Do not depend on glyphs_changed, only depend on
10063         dirtiness.
10064          (redisplay_output_layout): add debug messages.
10065         (compare_runes): ditto.
10066
10067         * glyphs.h: declare new functions.
10068         (struct Lisp_Image_Instance): remove percent and associated
10069         accessors.
10070
10071         * gui.h: declare new copying functions.
10072
10073         * gui.c (copy_gui_item_tree): new function.
10074         (copy_gui_item): new function.
10075         (gui_item_id_hash): revert to standard hash.
10076         (gui_item_hash): ditto.
10077         (gui_item_hash_internal): deleted.
10078         (mark_gui_item): mark value.
10079         (gui_item_add_keyval_pair): add value.
10080         (gui_item_init): ditto.
10081         (gui_add_item_keywords_to_plist): ditto.
10082         (gui_item_equal): ditto.
10083         (syms_of_gui): add Q_value.
10084
10085         * glyphs-x.c (x_progress_gauge_update): use pending items and
10086         value for setting the state.
10087         (x_update_widget): don't set items from pending here.
10088
10089         * glyphs-widget.c (update_widget): update items here.
10090         (progress_gauge_set_property): use items for storing value. Put
10091         new value in pending items.
10092
10093         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
10094         items for new value. Convert percent -> value.
10095         (mswindows_tab_control_update): don't update items here.
10096
10097         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
10098         (update_subwindow): ditto.
10099         (image_instance_changed): new function. Compare hash values and
10100         past and present widget items.
10101         (image_instantiate): We more careful about where we instantiate
10102         things.
10103         (image_instantiate): add error checking.
10104
10105         * gutter.c (syms_of_gutter): use -hook.
10106
10107 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
10108
10109         * console-tty.c (Fset_console_tty_input_coding_system): Use
10110         Qkeyboard.
10111         (Fset_console_tty_output_coding_system): Use Qterminal.
10112         (tty_init_console): Use Qkeyboard and Qterminal.
10113
10114 2000-03-21  Ben Wing  <ben@xemacs.org>
10115
10116         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
10117         From Mike Alexander <mta@arbortext.com>.
10118
10119 2000-03-21  Ben Wing  <ben@xemacs.org>
10120
10121         * event-msw.c (mswindows_need_event): Horrible kludge to fix
10122         process brokenness.  Proper implementation to come.
10123         * callproc.c:
10124         Rename call-process-internal to old-call-process-internal.
10125         New impl. in process.el.
10126
10127 2000-03-21  Martin Buchholz  <martin@xemacs.org>
10128
10129         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
10130
10131 2000-03-20  Andy Piper  <andy@xemacs.org>
10132
10133         * glyphs.c (full_list_hash): make hashes of the same elements in
10134         different orders return different values.
10135
10136 2000-03-20  Martin Buchholz <martin@xemacs.org>
10137
10138         * XEmacs 21.2.32 is released.
10139
10140 2000-03-20  Martin Buchholz  <martin@xemacs.org>
10141
10142         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
10143         (DFC_MALLOC_USE_CONVERTED_DATA):
10144         Add aliasing-safe casts to allow use with char* or unsigned char*
10145         lvalues.
10146
10147         * eldap.c (Fldap_open):
10148         (Fldap_search_basic):
10149         (Fldap_add):
10150         (Fldap_modify):
10151         Make C++-compilable.
10152         Make sure GCPRO'ed variables are initialized.
10153         Use temp variables to avoid repeated calls to Flength.
10154
10155 2000-03-16  Martin Buchholz  <martin@xemacs.org>
10156
10157         * sysfile.h:
10158         Make sure PATH_MAX is always defined.
10159         Include limits.h for PATH_MAX.
10160         Deprecate use of MAXPATHLEN.
10161
10162 2000-03-10  Martin Buchholz  <martin@xemacs.org>
10163
10164         * emacs.c: Add reinit_vars_of_fileio.
10165         * symsinit.h: Add reinit_vars_of_fileio.
10166         * fileio.c (reinit_vars_of_fileio): New.
10167         * fileio.c (Fmake_temp_name):
10168         Initialize temp_name random number from microseconds to make
10169         collisions even less likely.  Initialize always at process startup
10170         time.  (make-temp-name) used to return the same file name twice in
10171         a row when PDUMP.
10172         Random stylistic fiddling.
10173         Comment fixes.
10174
10175 2000-03-20  Andy Piper  <andy@xemacs.org>
10176
10177         * glyphs.c (image_instantiate): allow text glyphs to be
10178         instantiated in the minibuffer window.
10179
10180 2000-03-19  Andy Piper  <andy@xemacs.org>
10181
10182         * glyphs.c (image_instance_hash): be careful about which items we
10183         hash on.
10184
10185         * glyphs-widget.c (tab_control_set_property): record into pending
10186         items rather than the actual items.
10187
10188         * glyphs-x.c (x_update_widget): use pending items to update with.
10189
10190         * glyphs-msw.c (mswindows_tab_control_update): use pending items
10191         to update with.
10192
10193         * glyphs.c (mark_image_instance): mark pending items.
10194
10195         * window.c (Fset_window_configuration): record the buffer.
10196         (Fselect_window): totally revert previous change which breaks many
10197         things.
10198
10199 2000-03-18  Andy Piper  <andy@xemacs.org>
10200
10201         * glyphs-msw.c (mswindows_tab_control_update): force selected
10202         item.
10203
10204         * glyphs.c (image_instantiate): don't allow the minibuffer as a
10205         window domain cache, otherwise we get inconsistencies at
10206         startup. There is something fishy at startup which can lead to the
10207         minibuffer being the selected window when the gutter content is
10208         instantiated.
10209
10210         * gui.c (parse_gui_item_tree_list): add probably unnecessary
10211         gcpros.
10212         (parse_gui_item_tree_children): ditto.
10213         (parse_gui_item_tree_item): ditto.
10214
10215         * glyphs.c (Fupdate_widget_instances): return something.
10216
10217 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
10218
10219         * window.c (Fselect_window): Undo 2000-03-17 change.
10220
10221 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
10222
10223         * postgresql.c (Fpq_setenv): Remove this turkey when linking
10224         against v7.0 libraries.  Insta-coredump city until the postgres
10225         folks fix it.
10226
10227 2000-03-17  Andy Piper  <andy@xemacs.org>
10228
10229         * faces.c (complex_vars_of_faces): don't give the widget face an
10230         inherited background pixmap.
10231
10232         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
10233         selected item.
10234
10235         * event-stream.c (Fdispatch_non_command_events): return something.
10236
10237         * gutter.c (output_gutter): use widget face.
10238         (clear_gutter): ditto.
10239
10240         * NEWS: adjust again.
10241
10242         * window.c (Fselect_window): make sure this runs to completion to
10243         avoid oddities with Fset_window_configuration.
10244         (Fcurrent_window_configuration): in general do not save the
10245         minibuffer as the selected window.
10246
10247         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
10248
10249 2000-03-16  Olivier Galibert  <galibert@pobox.com>
10250
10251         * emacs.c (Frunning_temacs_p): Revert previous patch.
10252         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
10253
10254 2000-03-16  Andy Piper  <andy@xemacs.org>
10255
10256         * glyphs-x.c (x_tab_control_update): if no widget values then
10257         return.
10258
10259         * NEWS: update for new features.
10260
10261         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
10262         synthetic event to the native system.
10263         (reinit_vars_of_event_Xt): set force_event_pending to
10264         emacs_Xt_force_event_pending.
10265
10266         * events.h (struct event_stream): add force_event_pending.
10267
10268         * specifier.c (recompute_one_cached_specifier_in_window): add
10269         comment.
10270
10271         * redisplay.c (redisplay_frame): don't call
10272         update_frame_subwindows. Reset subwindow cachels when
10273         subwindows_changed, removing this was an optimization too far.
10274
10275         * redisplay-output.c (compare_runes): reorganize so that we catch
10276         glyph changes when we want them. Set optimize_output when this
10277         would help layouts.
10278         (redisplay_output_layout): remove frame_really_changed, use
10279         optimize_output instead.
10280
10281         * redisplay-msw.c (mswindows_output_display_block): reset
10282         optimize_output after outputting a glyph.
10283         * redisplay-x.c (x_output_display_block): ditto.
10284         * redisplay-tty.c (tty_output_display_block): ditto.
10285
10286         * gutter.c: (specifier_vars_of_gutter): use new spec changed
10287         functions.
10288         (gutter_specs_changed): do specific gutter positions.
10289         (top_gutter_specs_changed): new function. Only update the
10290         specified gutter specs.
10291         (bottom_gutter_specs_changed): ditto.
10292         (left_gutter_specs_changed): ditto.
10293         (right_gutter_specs_changed): ditto.
10294
10295         * gui.c (gui_item_hash_internal): new function, does a real hash.
10296         (gui_item_id_hash): use it.
10297         (gui_item_hash): hash the eval'ed gui_item.
10298
10299         * gui-x.c (popup_selection_callback): send an eval event to call
10300         Fupdate_widget_instances.
10301
10302         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
10303         to call Fupdate_widget_instances.
10304
10305         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
10306         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
10307
10308         * glyphs.c: (update_frame_subwindows): deleted.
10309         (Fupdate_widget_instances): new function for updating the dirty
10310         state of widgets that might have changed.
10311         (syms_of_glyphs): add Qupdate_widget_instances.
10312         (full_list_hash): hash a list completely.
10313         (image_instance_hash): use it for items and properties.
10314
10315         * frame-msw.c (mswindows_size_frame_internal): remove unused
10316         variable.
10317
10318         * faces.h (struct face_cachel): fix comment.
10319
10320         * event-stream.c (Fdispatch_non_command_events): new
10321         function. Process non-command events, forcing an event cycle
10322         beforehand.
10323         (syms_of_event_stream): declare.
10324         (event_stream_force_event_pending): new function. Force an event
10325         on the native event queue so that an event cycle will occur next
10326         time we check.
10327
10328         * event-msw.c:
10329         (struct ntpipe_shove_stream):
10330         (mswindows_enqueue_dispatch_event):
10331         (mswindows_dequeue_dispatch_event):
10332         (mswindows_cancel_dispatch_event):
10333         (mswindows_pump_outstanding_events):
10334         (mswindows_drain_windows_queue):
10335         (mswindows_handle_paint):
10336         (mswindows_wnd_proc):
10337         (mswindows_key_to_emacs_keysym):
10338         (get_process_input_waitable):
10339         (emacs_mswindows_delete_stream_pair): re-indent file.
10340         (mswindows_need_event): do not process further fds if the windows
10341         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
10342         fixes the 100% cpu problem.
10343         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
10344
10345 2000-03-15  Olivier Galibert  <galibert@pobox.com>
10346
10347         * alloc.h: New.
10348         * dumper.h: New.
10349         * dumper.c: New.
10350
10351         * emacs.c: Moved dump file searching to dumper.c.
10352         (Frunning_temacs_p): Fixed.
10353
10354         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
10355         last_lrecord_type_index_assigned.
10356
10357 2000-02-20  Olivier Galibert  <galibert@pobox.com>
10358
10359         * symsinit.h: Added reinit parameter to init_console_stream
10360         declaration.
10361
10362         * lisp.h: Added file parameter to pdump_load declaration.
10363
10364         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
10365         support.  Added dump file searching.
10366
10367         * config.h.in: Added EMACS_PROGNAME.
10368
10369         * console-stream.c (init_console_stream): Fix reinitialisation
10370         when running from temacs.
10371
10372         * alloc.c (pdump): Add id support.
10373         (pdump_load): Add file parameter and signature/id support.
10374
10375         * Makefile.in.in: Add full pdump support.
10376
10377 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
10378
10379         * postgresql.c: Update documentation to reflect latest code
10380         status.
10381         (print_result): Show tuple counts in printed representation when
10382         appropriate.
10383         (Fpq_put_nbytes): MULE-ize.
10384         (Fpq_get_line_async): Ditto.
10385
10386 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
10387
10388         * postgresql.c (Fpq_lo_import): Fix return value.
10389         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
10390
10391 2000-03-13  Ben Wing  <ben@xemacs.org>
10392
10393         * alloc.c (pdump_load):
10394         Fix compile warning under mswin.
10395
10396 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
10397
10398         * postgresql.c: Mule-ization, bug fixes.
10399         Use PG_CODING to encapsulate coding system name changes.
10400         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
10401         (pg-coding-system): Create.
10402
10403         (Fpq_conn_defaults): Mule-ize.
10404         (Fpq_connectdb): Mule-ize & bug fix.
10405         (Fpq_connect_start): Mule-ize.
10406         (Fpq_set_client_encoding): Mule-ize.
10407         (Fpq_finish): Document `DEAD' connection status.
10408         (Fpq_clear): Ditto.
10409         (Fpq_pgconn): Mule-ize.
10410         (Fpq_exec): Mule-ize & bug fix.
10411         (Fpq_send_query): Ditto.
10412         (Fpq_get_result): Ditto.
10413         (Fpq_res_status): Mule-ize.
10414         (Fpq_result_error_message): Mule-ize.
10415         (Fpq_ntuples): fix comments.
10416         (Fpq_fname): Mule-ize.
10417         (Fpq_fnumber): Mule-ize.
10418         (Fpq_ftype): fix comments.
10419         (Fpq_get_value): Mule-ize.
10420         (Fpq_cmd_status): Ditto.
10421         (Fpq_cmd_tuples): Ditto.
10422         (Fpq_oid_value): Ditto.
10423         (Fpq_notifies): Ditto.
10424         (Fpq_lo_import): Ditto.
10425         (Fpq_lo_export): Ditto.
10426         (Fpq_get_line): Ditto.
10427         (Fpq_put_line): Mule-ize and bug fix.
10428         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
10429
10430 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
10431
10432         * postgresql.c (vars_of_postgresql): Mule-ize.
10433         (Fpq_conn_defaults): Ditto.
10434
10435 2000-03-12  Ben Wing  <ben@xemacs.org>
10436
10437         * alloc.c (Fmake_byte_code):
10438         * alloc.c (debug_string_purity_print):
10439         * alloc.c (pdump_backtrace):
10440         * alloc.c (pdump_get_indirect_count):
10441         * alloc.c (pdump_register_sub):
10442         * alloc.c (pdump_register_object):
10443         * alloc.c (pdump_register_struct):
10444         * alloc.c (pdump_dump_data):
10445         * alloc.c (pdump_reloc_one):
10446         Minor cleanups.
10447
10448         * console-msw.c:
10449         * console-msw.c (GetConsoleHwnd):
10450         * console-msw.c (msw_hide_console):
10451         * console-msw.c (msw_show_console):
10452         * console-msw.c (msw_ensure_console_buffered):
10453         * console-msw.c (msw_output_console_string):
10454         * console-msw.c (console_type_create_mswindows):
10455
10456         a) Added functions to manipulate the console window for use with
10457         shell support.
10458
10459         b) Added support for writing text to the console, which is now
10460         used under Windows when xemacs is not being run non-interactively,
10461         to write text that would otherwise be destined for stdout because
10462         under these circumstances, text written to stdout tends to
10463         disappear and not be seen.
10464
10465         * console-msw.h:
10466         * event-Xt.c:
10467         * event-Xt.c (x_event_to_emacs_event):
10468         * event-Xt.c (describe_event_window):
10469         * events-mod.h (XEMACS_MOD_CONTROL):
10470         * events.c:
10471         * events.c (Fmake_event):
10472         * events.c (character_to_event):
10473         * events.c (event_to_character):
10474         * events.c (format_event_object):
10475         * events.c (Fevent_modifiers):
10476         * events.h:
10477         * events.h (struct key_data):
10478         * events.h (struct button_data):
10479         * events.h (struct misc_user_data):
10480         * frame-x.c (Fcde_start_drag_internal):
10481         * frame-x.c (Foffix_start_drag_internal):
10482         * gpmevent.c (Freceive_gpm_event):
10483         * keymap.c:
10484         * keymap.c (bucky_sym_to_bucky_bit):
10485         * keymap.c (control_meta_superify):
10486         * keymap.c (make_key_description):
10487         * keymap.c (keymap_lookup_directly):
10488         * keymap.c (create_bucky_submap):
10489         * keymap.c (keymap_store):
10490         * keymap.c (define_key_check_and_coerce_keysym):
10491         * keymap.c (define_key_parser):
10492         * keymap.c (define_key_alternate_name):
10493         * keymap.c (Fdefine_key):
10494         * keymap.c (raw_lookup_key_mapper):
10495         * keymap.c (struct map_keymap_unsorted_closure):
10496         * keymap.c (map_keymap_unsorted_mapper):
10497         * keymap.c (map_keymap_sort_predicate):
10498         * keymap.c (map_keymap_sorted):
10499         * keymap.c (accessible_keymaps_mapper_1):
10500         * keymap.c (where_is_recursive_mapper):
10501         * keymap.c (describe_map_mapper):
10502         * keymap.c (describe_map_sort_predicate):
10503         * keymap.c (describe_map):
10504         * keymap.c (complex_vars_of_keymap):
10505         And a number of other files, the key modifier preprocessor
10506         constants that xemacs uses have names that conflict with constants
10507         defined under MS Windows for other purposes, so they were renamed
10508         to begin with the prefix XEMACS_. The variables that hold such
10509         modifiers were changed to consistently be of type int to fix
10510         various compile warnings.
10511
10512         * console.c (complex_vars_of_console):
10513         * device.c:
10514         * device-msw.c:
10515         * device-msw.c (mswindows_finish_init_device):
10516         * device-msw.c (msw_get_workspace_coords):
10517         * device-msw.c (mswindows_device_system_metrics):
10518         and various other files, added support for a new
10519         device property called offset-workspace which returns the position
10520         of the upper left corner of the workspace area and goes along with
10521         the existing size-workspace property.
10522
10523         * dialog-msw.c:
10524         * dialog-msw.c (push_bufbyte_string_as_unicode):
10525         * dialog-msw.c (mswindows_popup_dialog_box):
10526         Added support for XEmacs-style accelerator specifications in
10527         button text.  Note: I didn't add support for this under X Windows,
10528         and somebody needs to do this.
10529
10530         * dialog.c:
10531         * dialog.c (Fpopup_dialog_box):
10532         Documented the support for accelerators that was just mentioned.
10533
10534         editfns.c (get_home_directory): Changed behavior under Windows
10535         when HOME not defined; former behavior was irretrievably broken.
10536
10537         * emacs.c:
10538         * emacs.c (main_1):
10539         * emacs.c (main):
10540         * minibuf.c (clear_echo_area_internal):
10541         * minibuf.c (echo_area_append):
10542         * print.c:
10543         * print.c (std_handle_out_external):
10544         * print.c (std_handle_out_va):
10545         * print.c (fatal):
10546         * print.c (write_string_to_stdio_stream):
10547         * print.c (output_string):
10548         * print.c (debug_print):
10549         * print.c (debug_backtrace):
10550         * print.c (debug_short_backtrace):
10551         Cleaned up the code that prints text to stdout so that this can be
10552         changed to output into a console window instead under MS Windows,
10553         as described above.
10554
10555         * eval.c:
10556         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
10557         * eval.c (internal_catch):
10558         * eval.c (unwind_to_catch):
10559         * eval.c (throw_or_bomb_out):
10560         * eval.c (condition_case_1):
10561         * eval.c (signal_1):
10562         * eval.c (check_error_state_sanity):
10563         * eval.c (call_with_suspended_errors_1):
10564         * eval.c (call_with_suspended_errors):
10565         * eval.c (reinit_vars_of_eval):
10566         Added code to catch throw loops and check for a pesky bug that may
10567         be gone now.
10568
10569         * event-msw.c:
10570         * event-msw.c (key_needs_default_processing_p):
10571         * event-msw.c (mswindows_wnd_proc):
10572         * event-msw.c (mswindows_modifier_state):
10573         * event-msw.c (emacs_mswindows_quit_p):
10574         * event-msw.c (vars_of_event_mswindows):
10575         a) Added support for using the alt key to select menu items as is
10576         standard under MS Windows.  This is controlled using the variable
10577         menu-accelerator-enabled, just like under X Windows.  There is an
10578         option on the options menu to turn this support on.  I really
10579         think that it should be on by default under Windows, but I'm not
10580         going to make this change yet.
10581
10582         b)  Added support for dynamic display size changes under Windows.
10583
10584         * event-stream.c:
10585         * event-stream.c (maybe_echo_keys):
10586         * event-stream.c (Fnext_event):
10587         * event-stream.c (command_builder_find_leaf):
10588         * event-stream.c (lookup_command_event):
10589         * event-stream.c (execute_command_event):
10590         * event-stream.c (pre_command_hook):
10591         * event-stream.c (post_command_hook):
10592         * event-stream.c (syms_of_event_stream):
10593         * event-stream.c (vars_of_event_stream):
10594         * event-stream.c (complex_vars_of_event_stream):
10595         * events.h (struct command_builder):
10596
10597         a) Tried to clean up a little bit the horribly written x-specific
10598         accelerator code that crept into this file.  I moved this code
10599         into menubar-x.c where it belongs. I also needed to move the
10600         command builder structure into the file events.h because it is
10601         accessed directly by this accelerator code.  What I didn't do, but
10602         which should be done at some point, is to properly abstract this
10603         code using device methods instead of the kludgy way that it
10604         currently hooks into the event code.
10605
10606         b) Added the lisp variables this-command-properties and
10607         last-command- properties, which should be used to synchronize two
10608         adjacent commands in preference to playing games with the variable
10609         this-command, which is typically what happens.
10610
10611         c) Added some slightly nasty code to hook into the lisp support
10612         for shifted- motion-key selection.  This is actually necessary for
10613         somewhat complicated reasons, which are described in
10614         simple.el. (NB: I think the proper thing would be to have the code
10615         that calls the pre and post command hooks also call out to generic
10616         lisp functions in simple.el, where all built-in stuff could be
10617         added.  I will think about this more.)
10618
10619         * event-unixoid.c (poll_fds_for_input):
10620         * lread.c (readchar):
10621         * redisplay-tty.c (tty_clear_frame):
10622         * redisplay-x.c (x_get_gc):
10623         * signal.c (interrupt_signal):
10624         And a whole bunch of other files: fixed up places that printed
10625         directly to stderr to instead call the function stderr_out so that
10626         the changes I made under Windows work correctly.
10627
10628         * filemode.c (mode_string):
10629         Warning fixes.
10630
10631         * frame-msw.c:
10632         * frame-msw.c (mswindows_size_frame_internal):
10633         Fixed the computation of frame size and position to keep the frame
10634         within the workspace area, rather than within the physical
10635         dimensions of the screen, so that the frame doesn't overlap window
10636         manager decorations, such as the start menu and toolbar, typically
10637         at the bottom of the screen.
10638
10639         * frame.c (vars_of_frame):
10640         Changed the default frame title format under MS Windows to consist
10641         of buffername-XEmacs, which is standard under MS Windows.  I think
10642         it might be a good idea to change this everywhere because I think
10643         it is superior to the current frame title format, but this is the
10644         kind of change that is likely to cause some people to get annoyed,
10645         so I'm not making it.
10646
10647         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
10648
10649         * gui-msw.c (mswindows_handle_gui_wm_command):
10650         Fixed compile warnings.
10651
10652         * gui-x.c:
10653         * gui-x.c (strdup_and_add_accel):
10654         * gui-x.c (button_item_to_widget_value):
10655         * gui-x.h:
10656         Added code to automatically put an accelerator onto the beginning
10657         of menu items that don't have one as is now the standard, and is
10658         described more later.  Also fixed things so that the menu item
10659         name can be an evaluated expression, again a new standard.
10660
10661         * gui.c:
10662         * gui.c (gui_item_add_keyval_pair):
10663         * gui.c (make_gui_item_from_keywords_internal):
10664         * gui.c (gui_add_item_keywords_to_plist):
10665         * gui.c (gui_item_accelerator):
10666         * gui.c (gui_name_accelerator):
10667         * gui.c (gui_item_included_p):
10668         * gui.c (gui_item_display_flush_left):
10669         * gui.c (gui_item_display_flush_right):
10670         * gui.c (parse_gui_item_tree_item):
10671         * gui.c (parse_gui_item_tree_children):
10672         * gui.c (parse_gui_item_tree_list):
10673         Mule-ized.  Cleanup.  GCPRO addition.
10674
10675         * line-number.c (buffer_line_number):
10676         * lisp.h:
10677         * lisp.h (EMACS_INT_MAX):
10678         Added the manifest constant EMACS_INT_MIN corresponding to the
10679         existing constant EMACS_INT_MAX.  This is partially to fix compile
10680         warnings under Windows, and partly for cleanliness.
10681
10682         * menubar-msw.c:
10683         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
10684         * menubar-msw.c (msw_translate_menu_or_dialog_item):
10685         * menubar-msw.c (displayable_menu_item):
10686         * menubar-msw.c (populate_menu_add_item):
10687         * menubar-msw.c (populate_or_checksum_helper):
10688         * menubar-msw.c (populate_menu):
10689         * menubar-msw.c (update_frame_menubar_maybe):
10690         * menubar-msw.c (prune_menubar):
10691         * menubar-msw.c (msw_char_is_accelerator):
10692         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
10693         * menubar-msw.c (mswindows_handle_wm_command):
10694         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
10695         * menubar-msw.c (mswindows_handle_wm_initmenu):
10696         * menubar-msw.c (mswindows_update_frame_menubars):
10697         * menubar-msw.c (mswindows_free_frame_menubars):
10698         * menubar-msw.c (mswindows_popup_menu):
10699         Fixed a bug in handling accelerators where an extra character
10700         would be displayed in the menu item.  Also generalized the
10701         function displayable_menu_item because it is now used by the
10702         dialog box code as well.  And finally, added code in the functions
10703         that create the menubar to extract a list of accelerators for the
10704         top level menubar, which is used in the event code to determine
10705         whether a particular alt-key combination should be used to invoke
10706         a menu item, or should be passed through to access the standard
10707         XEmacs keymap binding for this key combination.
10708
10709         Much needed GCPROing.
10710
10711         * menubar-x.c:
10712         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10713         * menubar-x.c (menu_item_descriptor_to_widget_value):
10714         * menubar-x.c (restore_in_menu_callback):
10715         * menubar-x.c (x_popup_menu):
10716         * menubar-x.c (menu_move_up):
10717         * menubar-x.c (menu_move_down):
10718         * menubar-x.c (menu_move_left):
10719         * menubar-x.c (menu_move_right):
10720         * menubar-x.c (menu_select_item):
10721         * menubar-x.c (command_builder_operate_menu_accelerator):
10722         * menubar-x.c (menu_accelerator_junk_on_error):
10723         * menubar-x.c (command_builder_find_menu_accelerator):
10724         * menubar-x.c (Faccelerate_menu):
10725         * menubar.h:
10726         Moved a whole bunch of code here that was previously in
10727         event-stream.c as described above.  There is also code connected
10728         to the new standard of adding an accelerator to the beginning of
10729         menu items that don't have one as described above and below.
10730
10731         * menubar.c:
10732         * menubar.c (menu_parse_submenu_keywords):
10733         * menubar.c (Fmenu_find_real_submenu):
10734         * menubar.c (Fnormalize_menu_item_name):
10735         * menubar.c (syms_of_menubar):
10736         * menubar.c (vars_of_menubar):
10737         * menubar.c (complex_vars_of_menubar):
10738
10739         a) Cleaned up a bunch of documentation and improved it.
10740
10741         b) XEmacs now automatically adds an accelerator onto the beginning
10742         of any menu items that don't have one.  I did this because there
10743         will inevitably be some menu items on the main menubar that don't
10744         have accelerators on them because the package that adds that
10745         particular menu item hasn't yet been fixed up to have accelerators
10746         in them and it looked rather strange to have some items with and
10747         some items without accelerators, especially since even in items
10748         without accelerators, you can, at least under windows, still
10749         access the item through an accelerator corresponding to the first
10750         character in the item's name.  If people don't like this behavior,
10751         I can add a variable to turn it off optionally, but I'm not sure
10752         this is a good idea because we really do need to have accelerators
10753         on all of the menu items, and if a package doesn't like the
10754         accelerators being put on the first character, then it should put
10755         the accelerators where they belong.
10756
10757         c) I made a behavior change, which is that the descriptor that
10758         specifies the text of the menu item, which formerly was just a
10759         string, can now also be an evaluated expression.  This makes this
10760         descriptor parallel with all of the others, which could also be
10761         evaluated expressions.  This also obviates the need for the
10762         keyword :label, which was previously listed in the documentation
10763         as unimplemented, and which was for the same purpose.
10764
10765         d) GCPROing.
10766
10767         * ntproc.c:
10768         * ntproc.c (new_child):
10769         * ntproc.c (sys_spawnve):
10770         * ntproc.c (find_child_console):
10771         * ntproc.c (sys_kill):
10772         Fixed compile warnings.  By the way, this file should really go
10773         away entirely, and this will happen as soon as Kirill makes his
10774         final round of process cleanups, which affect the function
10775         call-process.
10776
10777         * process-nt.c:
10778         * process-nt.c (struct nt_process_data):
10779         * process-nt.c (find_process_from_pid):
10780         * process-nt.c (send_signal_the_nt_way):
10781         * process-nt.c (enable_child_signals):
10782         * process-nt.c (find_child_console):
10783         * process-nt.c (send_signal_the_95_way):
10784         * process-nt.c (nt_finalize_process_data):
10785         * process-nt.c (ensure_console_window_exists):
10786         * process-nt.c (nt_create_process):
10787         * process-nt.c (nt_kill_child_process):
10788         * process-nt.c (nt_kill_process_by_pid):
10789         * process-nt.c (nt_open_network_stream):
10790         * process-nt.c (vars_of_process_nt):
10791         Copied over code from Emacs 20.5 to correctly send signals to sub-
10792         processes under Windows 95.  Also added code to automatically
10793         create and hide console window when a sub-process is created under
10794         Windows 95, which obviates the need for the separate runemacs.exe
10795         executable, and finally implemented some variables that were
10796         implemented in Emacs 20.5, but previously not in XEmacs.  These
10797         include mswindows- start-process-share-console and
10798         mswindows-start-process-inherit-error-mode. (Both of these only
10799         apply to Windows 95.)
10800
10801         * regex.c (regex_compile): Fixed a compile warning.
10802
10803         * select-msw.c:
10804         * select-msw.c (mswindows_own_selection):
10805         * select-msw.c (mswindows_get_foreign_selection):
10806         * select-msw.c (mswindows_disown_selection):
10807         * select-msw.c (console_type_create_select_mswindows):
10808         * select-msw.c (syms_of_select_mswindows):
10809         Cleaned up the file and implemented the device method
10810         selection_exists_p, which had accidentally been left out.  Also
10811         removed four lisp functions that were remnants from before the
10812         time when the selection code was properly device abstracted.
10813         These functions are no longer needed because there are generic
10814         equivalents, and because they were added recently and don't exist
10815         in FSF Emacs, I don't think there's any problem with just deleting
10816         them.
10817
10818         * sysdep.c:
10819         * sysdep.c (sys_subshell):
10820         Fixed a compile warning, although in this case there's probably
10821         something wrong with this code, and it ought to be looked into
10822         more thoroughly by somebody who understands it.
10823
10824         * window.c:
10825         * window.c (Fwindow_text_area_height):
10826         * window.c (Fwindow_width):
10827         * window.c (Fwindow_full_width):
10828         * window.c (Fwindow_pixel_width):
10829         * window.c (debug_print_window):
10830         * window.c (syms_of_window):
10831         Added functions window-text-area-height and window-full-width,
10832         which are functions for returning various width and height
10833         characteristics of a window. (One of these functions is necessary
10834         for making the file dialog box work correctly, and the other one
10835         was added for completeness.)  Also added a table to the
10836         documentation for window-height which describes the entire scheme
10837         for accessing width and height characteristics of a window.
10838
10839 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10840
10841         * nt.c (fstat): Added a comment for another problem with
10842         non-encapsulated [f]stat(), reported by Adrian Aichner
10843         <aichner@ecf.teradyne.com>.
10844
10845 2000-03-11  Andy Piper  <andy@xemacs.org>
10846
10847         * window.c (make_dummy_parent): initialize subwindow instance
10848         cache.
10849         (Fset_window_configuration): zero extent_modiff.
10850
10851 2000-03-10  Andy Piper  <andy@xemacs.org>
10852
10853         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
10854         more changes can be triggered.
10855         (Fredisplay_frame): ditto.
10856         (Fredraw_device): ditto.
10857         (Fredisplay_device): ditto.
10858         (redisplay_frame): make non-static.
10859         (redisplay_frame): call update_frame_gutter_geometry outside of
10860         display proper.
10861
10862         * gutter.h: declare update_frame_gutter_geometry.
10863
10864         * redisplay.h: declare redisplay_frame.
10865
10866         * gutter.c (update_frame_gutter_geometry): move geometry changes
10867         in update_frame_gutters here. Geometry changes can only occur
10868         outside of redisplay.
10869         (update_frame_gutters): remove geometry change code.
10870         (Fredisplay_gutter_area): make sure that we are in display when we
10871         update and that we have flushed any size changes.
10872
10873 2000-03-11  Andy Piper  <andy@xemacs.org>
10874
10875         * alloc.c (pdump_dump_data): remove i & count shadows.
10876
10877 2000-02-27  Mike Alexander  <mta@arbortext.com>
10878
10879         * sysdep.h: Declare pdump_read_file
10880
10881         * sysdep.c (pdump_read_file): New function
10882
10883         * alloc.c (pdump_load): Call pdump_read_file to get the portable
10884         dump data
10885
10886 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
10887
10888         * lrecord.h: add `lrecord_type_pgsetenv'.
10889
10890 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
10891
10892         * symsinit.h: declare (vars|syms)_of* functions.
10893         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
10894
10895 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
10896
10897         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
10898
10899         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
10900         GCCs.
10901
10902         * emacs.c (main_1): Call postgres initialization code.
10903
10904         * postgresql.h: New file.  PostgreSQL RDBMS support.
10905         * postgresql.c: New file.
10906
10907 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
10908
10909         * redisplay-output.c (redisplay_output_display_block): Disable
10910         redundant code.
10911
10912 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
10913
10914         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
10915         (Fcanna_henkan_next): Ditto.
10916         (Fcanna_bunsetu_henkou): Ditto.
10917         (Fcanna_henkan_kakutei): Ditto.
10918         (Fcanna_henkan_end): Ditto.
10919         (Fcanna_henkan_quit): Ditto.
10920         (Fcanna_henkan_next): Set retun value correctly.
10921         (c2mu): Use unsigned char instead of signed char.
10922
10923 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
10924
10925         * emacs.c (main_1): Always call syms_of_gui.
10926         * inline.c: include gui.h
10927
10928 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
10929
10930         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
10931         converted to Lisp_Object.
10932         (Qtop_bottom): New variable.
10933         (syms_of_redisplay): Initialize it.
10934         * redisplay.h (Vvisible_bell): Ditto.
10935         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
10936         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
10937         only flash top and bottom.
10938
10939 2000-03-08  Andy Piper  <andy@xemacs.org>
10940
10941         * buffer.c (Frename_buffer): record new buffer name the right way.
10942
10943 2000-03-08  Andy Piper  <andy@xemacs.org>
10944
10945         * glyphs.c (update_subwindow): increase hash depth so that widget
10946         items get picked up properly.
10947
10948         * redisplay-output.c (compare_runes): increase hash depth so that
10949         widget items get picked up properly.
10950
10951 2000-03-08  Andy Piper  <andy@xemacs.org>
10952
10953         * gutter.c (output_gutter): add some debug.
10954
10955         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
10956         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
10957         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
10958
10959         * redisplay-output.c (compare_runes): use display_hash to
10960         determine if glyphs really are not the same.
10961
10962         * glyphs.c (update_subwindow): check display_hash to see if
10963         anything really needs to be updated. If not then do
10964         nothing. Record the display_hash after updating.
10965         (image_instance_equal): compare the image_instance face also.
10966
10967 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
10968
10969         * redisplay.h: Fix comment style.
10970
10971 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10972
10973         * consle-msw.h (struct mswindows_frame):
10974         Added new member paint_pending to indicate whether a WM_PAINT
10975         magic event has been queued for this frame.
10976
10977         * event-msw.c (mswindows_drain_windows_queue):
10978         Don't queue a WM_PAINT magic event if one is already queued.
10979         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
10980
10981         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
10982
10983 2000-03-07  Didier Verna  <didier@xemacs.org>
10984
10985         * dired.c: #include `regex.h' after `sysfile.h'.
10986
10987 2000-03-06  Martin Buchholz  <martin@xemacs.org>
10988
10989         * sound.c (init_nas_sound): Fix compiler warning.
10990
10991         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
10992         (FREE_STRUCT_P):
10993         (MARK_STRUCT_AS_FREE):
10994         (MARK_STRUCT_AS_NOT_FREE):
10995         Make `gcc -fstrict-aliasing' work properly.
10996
10997 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10998
10999         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
11000         (mswindows_delete_device): Call CoUnnitialize().
11001
11002         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
11003
11004 2000-02-25    <CraigL@DyCon.com>
11005
11006         * process-nt.c: MinGW now has <shellapi.h>, but still needs
11007         <errno.h>.
11008
11009         * sysdep.c: This extern declaration for environ prevents MinGW
11010         from finding the variable in CRTDLL.DLL.
11011
11012         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
11013         windows headers.
11014         (SHGFI_EXETYPE): ..
11015         (WM_MOUSEWHEEL): ..
11016         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
11017         definitions.
11018         (MMRESULT): Removed, now defined in cygwin's windows headers.
11019         (TIMECAPS): ..
11020         (uid_t,gid_t,pid_t,ssize_t): ..
11021         (_timeb): Removed, MinGW defines both _timeb and timeb.
11022         (HAVE_H_ERRNO): Added.
11023         (HAVE_TZNAME): Added, configure is not detecting this.
11024
11025 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
11026
11027         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
11028         * syntax.c (syntax_match): Use it.
11029
11030         * cmds.c: Import auto-fill-chars from FSF Emacs.
11031         (Vauto_fill_chars): New variables.
11032         (internal_self_insert): Check Vauto_fill_chars.
11033         (vars_of_cmds):
11034         Declare auto-fill-chars as a Lisp variable and initialize it.
11035
11036 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11037
11038         * fileio.c (Fmake_symbolic_link):
11039         (Ffile_symlink_p):
11040         Run handlers even if local machine doesn't have symlinks.
11041
11042 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11043
11044         * event-msw.c (mswindows_drain_windows_queue):
11045         Don't generate paint magic events for non-XEmacs frames.
11046
11047 2000-03-05  Andy Piper  <andy@xemacs.org>
11048
11049         * redisplay.c (redisplay_frame): generate_displayable_area and
11050         friends assumes that we are not in GC, we therefore have to make
11051         sure that this doesn't happen.
11052
11053         * gutter.c (calculate_gutter_size): generate_displayable_area
11054         assumes that we are not in GC, we therefore have to make sure that
11055         this doesn't happen.
11056
11057 2000-03-05  Martin Buchholz  <martin@xemacs.org>
11058
11059         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
11060
11061 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
11062
11063         * redisplay.c (regenerate_window): Make sure we set a sane value
11064         for end_pos even if we jump out of the loop.
11065         (regenerate_window): Answer Ben's question :-).
11066         (start_end_of_last_line): Add may_error argument.
11067         (start_of_last_line):
11068         (end_of_last_line): Pass may_error = 0.
11069         (end_of_last_line_may_error): New function.
11070         (pixel_to_glyph_translation): Use it, so we don't crash in
11071         event_to_glyph.
11072
11073 2000-03-04  Andy Piper  <andy@xemacs.org>
11074
11075         * window.h (struct window): add gutter_extent_modiff.
11076
11077         * window.c (allocate_window): zero out gutter_extent_modiff.
11078
11079         * redisplay.h: declare sync_display_line_structs.
11080
11081         * redisplay.c (add_glyph_rune): add a better comment.
11082
11083         * redisplay-output.c (sync_display_line_structs): made non-static.
11084         (compare_runes): remove unneccesary glyph cachel access.
11085
11086         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
11087
11088         * gutter.c (output_gutter): don't output the gutter if extent
11089         changes only involve extents in buffers. use 4 sets of display
11090         lines.
11091         (gutter_extent_signal_changed_region_maybe): new function. Mark
11092         extents in gutters as changed.
11093         (update_frame_gutters): use 4 sets of display lines.
11094         (reset_gutter_display_lines): ditto.
11095         (free_frame_gutters): ditto.
11096         (redraw_exposed_gutter): force output of gutters.
11097
11098         * frame.h (struct frame): add 4 sets of gutter display lines.
11099
11100         * extents.c: (extent_changed_for_redisplay): signal changes to
11101         extents in strings in the gutter as well as extents in buffers.
11102
11103 2000-03-02  Andy Piper  <andy@xemacs.org>
11104
11105         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
11106
11107         * frame.c (Fmake_frame): make sure the gutters get initialized
11108         after the frame is visible.
11109         (set_frame_selected_window): re-arrange compilation macros a
11110         little.
11111         (change_frame_size_1): mark gutters changed.
11112
11113         * device.c (Fset_device_class): mark gutters changed.
11114
11115 2000-03-01  Andy Piper  <andy@xemacs.org>
11116
11117         * window.c (window_top_frame_gutter_height): deleted.
11118         (window_bottom_frame_gutter_height): ditto.
11119         (window_left_frame_gutter_height): ditto.
11120         (window_right_frame_gutter_height): ditto.
11121         (window_top_gutter_height): don't use them.
11122         (window_bottom_gutter_height): ditto.
11123         (window_left_gutter_width): ditto.
11124         (window_right_gutter_width): ditto.
11125         (Fsplit_window): ditto.
11126         (Fwindow_pixel_edges): don't use border dimensions here.
11127
11128         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
11129         (update_scrollbar_instance): ditto.
11130
11131         * redisplay.c (generate_modeline): don't take gutters into account.
11132         (generate_modeline): ditto.
11133         (redisplay_frame): small gutter display optimization.
11134
11135         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
11136
11137         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
11138         gutters into account.
11139
11140         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
11141         for window position and type.
11142
11143         * gutter.c (get_gutter_coords): fix for frame gutters.
11144         (update_frame_gutters): update frame geometry if the gutters have
11145         changed.
11146         (init_frame_gutters): record current gutter geometries.
11147
11148         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
11149         var.
11150         (mswindows_widget_instantiate): ditto.
11151
11152         * frame.h (struct frame): add current_gutter_bounds.
11153
11154         * frame.c (change_frame_size_1): position window and minibuffer
11155         appropriately taking into account the frame gutters.
11156
11157         * frame-x.c: (x_initialize_frame_size): take into account the
11158         frame gutters.
11159
11160 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
11161
11162         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
11163
11164 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
11165
11166         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
11167
11168 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
11169
11170         * file-coding.c (reset_decoding_stream): Clear previous
11171         detection state when autodetect.
11172
11173 2000-02-29  Didier Verna  <didier@xemacs.org>
11174
11175         * extents.c (set_extent_glyph_1): don't require extents to be
11176         attached.
11177
11178 2000-02-27  Andy Piper  <andy@xemacs.org>
11179
11180         * gutter.c (Fset_default_gutter_position): don't default left and
11181         right gutter visibility to t.
11182         (Fset_default_gutter_position): run
11183         default-gutter-position-changed-hook.
11184         (syms_of_gutter): add default-gutter-position-changed-hook.
11185
11186 2000-02-26  Andy Piper  <andy@xemacs.org>
11187
11188         * specifier.c (Fmake_specifier): add gutter references.
11189
11190         * gutter.h (RAW_WINDOW_GUTTER): new macro.
11191
11192         * lisp.h: declare Fvalid_plist_p.
11193
11194         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
11195         as changed.
11196         (default_gutter_visible_p_changed_in_window): invalidate gutter as
11197         well as its visibility so that it gets reconstructed.
11198         (construct_window_gutter_spec): new function. Construct a string
11199         to be displayed in the gutter from a plist of strings. Take care
11200         to only use elements that are declared as visible.
11201         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
11202         WINDOW_GUTTER.
11203         (gutter_validate): allow plists of strings in the specifier.
11204         (gutter_specs_changed): construct the real_gutter from the gutter
11205         specs using construct_window_gutter_spec.
11206         (gutter_visible_validate): gutter-visible is a new specifier type.
11207         (Fgutter_visible_specifier_p): new function for the new specifier.
11208         (syms_of_gutter): declare gutter-visible and
11209         Fgutter_visible_specifier_p.
11210         (specifier_type_create_gutter): intitalize new gutter-visible
11211         specifier.
11212         (reinit_specifier_type_create_gutter): ditto.
11213         (specifier_vars_of_gutter): use new specifier type for gutter
11214         visibility.
11215         (init_frame_gutters): construct real_gutter correctly.
11216         (Fgutter_specifier_p): beef up documentation.
11217         (Fgutter_size_specifier_p): ditto.
11218
11219         * winslots.h: add real_gutter slots.
11220
11221 2000-02-25  Andy Piper  <andy@xemacs.org>
11222
11223         * device-msw.c: Be kind to older cygwin versions. From Raymond
11224         Toy <toy@rtp.ericsson.se>.
11225
11226         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
11227         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
11228
11229 2000-02-25  Martin Buchholz  <martin@xemacs.org>
11230
11231         * elhash.c (MARK_OBJ): Practice macro hygiene.
11232
11233 2000-02-24  Martin Buchholz  <martin@xemacs.org>
11234
11235         * miscplay.c: s/__inline__/inline/g;
11236         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
11237         (get_device_compdc): INLINE ==> static inline
11238         * *.[ch]: Change INLINE to INLINE_HEADER globally.
11239         find -name '*.h' | \
11240         xargs global-replace \
11241         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
11242
11243 2000-02-25  Andy Piper  <andy@xemacs.org>
11244
11245         * window.c (window_top_frame_gutter_height): new function.
11246         (window_top_window_gutter_height): ditto.
11247         (window_top_gutter_height): use them.
11248         (window_bottom_frame_gutter_height): new function.
11249         (window_bottom_window_gutter_height): ditto.
11250         (window_bottom_gutter_height): use them.
11251         (window_left_window_gutter_width): new function.
11252         (window_left_frame_gutter_width): ditto.
11253         (window_left_gutter_width): use them.
11254         (window_right_window_gutter_width): new function.
11255         (window_right_frame_gutter_width): ditto.
11256         (window_right_gutter_width): use them.
11257         (window_pixel_height): new function. calulate window pixel height
11258         with frame gutter involvement.
11259         (Fsplit_window): calculate new sizes taking frame gutters into
11260         account.
11261         (window_char_height_to_pixel_height): don't include frame gutters.
11262         (window_char_height): use window_pixel_height.
11263         (window_pixheight): rename from window_pixel_height.
11264         (change_window_height): use it.
11265         (window_pixel_height_to_char_height): don't include frame gutters.
11266         (window_char_width_to_pixel_width): ditto.
11267
11268 2000-02-25  Andy Piper  <andy@xemacs.org>
11269
11270         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
11271         if it is.
11272
11273 2000-02-24  Martin Buchholz  <martin@xemacs.org>
11274
11275         * alloc.c (staticpro):
11276         (staticpro_nodump):
11277         (dumpstruct):
11278         (dumpopaque):
11279         (pdump_wire):
11280         (pdump_wire_list):
11281         (compact_string_chars):
11282         (pdump_dump_wired):
11283         Convert:  if (foo) abort();  ==>  assert (! foo);
11284
11285         * eldap.c (Fldap_search_basic):
11286         (Fldap_add):
11287         (Fldap_modify):
11288         (Fldap_delete):
11289         Fix compiler warnings, and possible crashes if (random) return
11290         value were to be used.
11291
11292 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11293
11294         * device-msw.c: Workaround ResetDC failure.
11295
11296         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
11297         applying a devmode.
11298
11299         * redisplay-msw.c (get_frame_dc): Added start_page_p.
11300         (mswindows_text_width): Do not start printer page.
11301
11302         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
11303
11304         * glyphs-msw.c: Added image methods to msprinter console and
11305         msprinter-specific image instantiation.
11306
11307 2000-02-20  Mike Alexander  <mta@arbortext.com>
11308
11309         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
11310         to avoid crashes when selection-sets-clipboard is on
11311         (mswindows_own_selection): ditto
11312
11313 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11314
11315         * glyphs-msw.c:
11316         * redisplay-msw.c (get_frame_dc):
11317         (get_frame_compdc):
11318         * console-msw.h:
11319         * device-msw.c (mswindows_init_device):
11320         (mswindows_delete_device):
11321         (msprinter_init_device):
11322         (msprinter_delete_device):
11323         * frame-msw.c (mswindows_init_frame_1):
11324         (mswindows_delete_frame):
11325         (msprinter_init_frame_3):
11326         (msprinter_delete_frame): Move compatible DC to device object from
11327         frame object, for both mswindows and msprinter. Only one at a time
11328         is needed, it is a real waste to have one per frame!
11329
11330 2000-02-23  Andy Piper  <andy@xemacs.org>
11331
11332         * glyphs.c: add dynamic width and height elements.
11333         (image_instance_equal): ditto.
11334
11335         * glyphs-widget.c (widget_query_geometry): calculate width and
11336         height dynamically if required.
11337         (initialize_widget_image_instance): initialize dynamic dimensions.
11338         (widget_instantiate): pick-up dynamic dimensions.
11339
11340         * glyphs.h (struct Lisp_Image_Instance): add width and height for
11341         dynamic determination. Add appropriate macros.
11342
11343         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
11344         dimensions safe.
11345         (WINDOW_GUTTER_SIZE): ditto.
11346         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
11347
11348         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
11349         inline.
11350         (get_frame_dc): ditto.
11351
11352         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
11353         here.
11354
11355 2000-02-23  Martin Buchholz <martin@xemacs.org>
11356
11357         * XEmacs 21.2.31 is released.
11358
11359 2000-02-22  Ben Wing <ben@xemacs.org>
11360
11361         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
11362
11363 2000-02-22  Andy Piper  <andy@xemacs.org>
11364
11365         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
11366
11367 2000-02-21  Mike Sperber <mike@xemacs.org>
11368
11369         * .dbxrc:
11370         * .gdbinit:
11371         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
11372         variables.
11373
11374 2000-02-21  Mike Sperber <mike@xemacs.org>
11375
11376         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
11377
11378 2000-02-21  Martin Buchholz <martin@xemacs.org>
11379
11380         * XEmacs 21.2.30 is released.
11381
11382 2000-02-20  Martin Buchholz  <martin@xemacs.org>
11383
11384         Performance hacking.
11385         * *.c (syms_of_*):
11386         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
11387         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
11388         * emacs.c (main_1):
11389         * lisp.h (DEFUN):
11390         * console.c (DEFVAR_CONSOLE_LOCAL_1):
11391         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
11392         * symeval.h (DEFVAR_SYMVAL_FWD):
11393         * symbols.c (guts_of_unbound_marker):
11394         Make all c_readonly objects also lisp_readonly and marked for life.
11395         * lrecord.h (struct lrecord_implementation):
11396         Document flags better.
11397         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
11398         * lrecord.h (DECLARE_LRECORD):
11399         * lrecord.h (XSETRECORD):
11400         * lrecord.h (RECORDP):
11401         * lrecord.h (RECORD_TYPEP):
11402         * lrecord.h (RECORD_MARKER): New.
11403         * lrecord.h (error_check_*):
11404         * lrecord.h (CONCHECK_NONRECORD):
11405         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
11406         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
11407         * lrecord.h (set_lheader_implementation):
11408         * lrecord.h (enum lrecord_type): New.
11409         * symeval.h (SYMBOL_VALUE_MAGIC_P):
11410         * alloc.c (disksave_object_finalization_1):
11411         * alloc.c (mark_object):
11412         * alloc.c (lrecord_type_index):
11413         * alloc.c (tick_lcrecord_stats):
11414         * alloc.c (Fgarbage_collect):
11415         * alloc.c (init_alloc_once_early):
11416         * alloc.c (pdump_load):
11417         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
11418         * alloc.c (lrecord_type_index): Delete.
11419         Make lisp object type indexes be constant.
11420           Makes (byte-compile) 5% faster.
11421         Put all marker functions into their own array.
11422           Makes (garbage-collect) 5% faster.
11423         Optimize SYMBOL_VALUE_MAGIC_P.
11424           Makes (byte-compile) 2-3% faster.
11425         * config.h.in (gc_checking_assert): New.
11426         * alloc.c: Use gc_checking_assert().
11427         * .dbxrc: Make compatible with new object type implementation.
11428         * .gdbinit: Make compatible with new object type implementation.
11429         * alloc.c: Delete all symbols defined only for debugging, such as
11430         Lisp_Type_Vector and lrecord_charset.
11431
11432 2000-02-21  Andy Piper  <andy@xemacs.org>
11433
11434         * gui-msw.c (Fmswindows_shell_execute): fix file location
11435         problems.
11436
11437         * buffer.c (Fkill_buffer): remove buffer from alist buffer
11438         unshowing so that set_window_buffer doesn't undo
11439         kill_buffer_hook's hard work.
11440
11441         * glyphs-widget.c (tab_control_query_geometry): don't count the
11442         first item when calculating geometry.
11443
11444         * glyphs.c (map_subwindow): remove redundant code.
11445         (update_frame_subwindows): be more circumspect about when to
11446         update subwindows.
11447
11448         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
11449         when items haven't changed. Update faces if faces have changed as
11450         well as just the widget face.
11451         (x_tab_control_update): Update faces if faces have changed as well
11452         as just the widget face.
11453
11454 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11455
11456         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
11457         registration.
11458         (build_syscolor_string): Use mswindows_color_to_string to try to
11459         get a named color.
11460         (mswindows_device_system_metrics): Reverse the foreground and
11461         background colors so that they match the documentation.
11462
11463         * objects-msw.c: (mswindows_X_color_map): tweak some values so
11464         they match the default Windows palette.
11465         (mswindows_color_to_string): New function.
11466
11467 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11468
11469         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
11470
11471 2000-02-18  Olivier Galibert  <galibert@pobox.com>
11472
11473         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
11474         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
11475
11476         * symbols.c (init_symbols_once_early): Removed obsolete
11477         DATA_SEG_BITS related kludge.
11478         (defvar_magic): Ditto.
11479
11480         * malloc.c: Removed obsolete DATA_SEG_BITS
11481         * ralloc.c: Ditto.
11482         * mem-limits.h: Ditto.
11483
11484         * Makefile.in.in: Removed obsolete HAVE_SHM
11485         * emacs.c: Ditto.
11486
11487 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11488
11489         *  device-msw.c (mswindows_delete_device): Free DDE string
11490         handles.
11491
11492 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11493
11494         * keymap.c (get_keyelt):
11495         * unexnt.c (unexec):
11496         * vm-limit.c (memory_warnings):
11497         * ntheap.c (recreate_heap):
11498         * ntheap.h (UNINIT_PTR):
11499         * select-msw.c (Fmswindows_get_clipboard):
11500         (Fmswindows_set_clipboard):
11501         * objects-msw.h (MSWINDOWS_BAD_HFONT):
11502         * objects-msw.c:
11503         * menubar-msw.c (displayable_menu_item):
11504         * glyphs-msw.c:
11505         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
11506         * sysdep.c (sys_subshell):
11507         * process-nt.c (nt_create_process):
11508         * nt.c (normalize_filename):
11509         (dostounix_filename):
11510         (unixtodos_filename):
11511         * ntproc.c (win32_executable_type):
11512         * ntplay.c (play_sound_data_1):
11513         (play_sound_file):
11514         * editfns.c (get_home_directory):
11515         * event-msw.c (struct winsock_stream):
11516         (mswindows_dde_callback):
11517         * device-msw.c (msprinter_init_device):
11518         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
11519
11520         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
11521         mswindows_clear_toolbar were swapped!
11522
11523         * objects-msw.c:(colormap_t):
11524         (fontmap_t):
11525         * emacs.c (struct standard_args): Fixed const jumble.
11526
11527         * glyphs-widget.c (update_widget): Fixed comparison notation.
11528
11529         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
11530
11531         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
11532         __declspec(noreturn) syntax.
11533
11534 2000-02-19  Martin Buchholz  <martin@xemacs.org>
11535
11536         * eldap.c (Fldap_open):
11537         (Fldap_search_basic):
11538         (Fldap_add):
11539         (Fldap_modify):
11540         Use new coding system conversion macros.
11541
11542 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
11543
11544         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
11545
11546 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
11547
11548         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
11549         (Fldap_add, Fldap_modify, Fldap_delete): New functions
11550
11551         * eldap.c (Qadd, Qreplace): New constant symbols
11552         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
11553         interruptions by XEmacs signals
11554         Remove unnecessary calls to slow_down_interrupts and
11555         speed_up_interrupts
11556         (Fldap_search_basic): Renamed from Fldap_search_internal
11557         Added new optional parameter VERBOSE that triggers the
11558         display of progress messages
11559         Remove unnecessary calls to slow_down_interrupts and
11560         speed_up_interrupts
11561         LDAP result code analysis rewritten
11562         (Fldap_add, Fldap_modify, Fldap_delete): New functions
11563         (syms_of_eldap): Define the new symbols and functions
11564
11565
11566 2000-02-17  Martin Buchholz  <martin@xemacs.org>
11567
11568         * realpath.c: Determine PATH_MAX maximally portably.
11569
11570         * insdel.c (bytecount_to_charcount): Optimize.
11571         The function used to be optimized for entirely ASCII sequences.
11572         Now it is optimized for successive characters from the same
11573         charset.  This also wins big for _mostly_ ASCII sequences.
11574
11575         * fileio.c (Ffile_truename): convert return from realpath() using
11576         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
11577         - Rewrite GCPROing slightly.
11578
11579         * sysdep.c (sys_open): Do filename conversion, like all other
11580         sys_* functions.  Fixes bug:
11581         (let ((file-name-coding-system 'iso-8859-2))
11582            (write-region x y latin2-name))
11583         ==> writes filename using internal encoding.
11584
11585 2000-02-18  Martin Buchholz  <martin@xemacs.org>
11586
11587         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
11588         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
11589         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
11590         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
11591         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
11592         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
11593         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
11594         (CONST_IF_NOT_DEBUG): Delete.
11595         * alloc.c (this_one_is_unmarkable): Delete.
11596         (mark_object): Don't check for this_one_is_unmarkable. Use the
11597         c_readonly flag instead.
11598         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
11599
11600 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11601
11602         * event-msw.c (mswindows_drain_windows_queue):
11603         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
11604         away redundant repaint events.
11605
11606 2000-02-17  Andy Piper  <andy@xemacs.org>
11607
11608         * redisplay.h: declare mark_redisplay_structs.
11609
11610         * redisplay.c (redisplay_window):
11611         (redisplay_frame): don't check subwindows_state_changed.
11612         (mark_redisplay): mark gutters here.
11613
11614         * glyphs.c: (instantiate_image_instantiator): always layout if we
11615         haven't done so already.
11616         (allocate_image_instance): don't mark as dirty.
11617         (update_subwindow): bind inhibit_quit.
11618
11619         * gutter.c (mark_gutters): new function.
11620
11621         * glyphs-x.c (x_update_widget): Always resize to get round a
11622         widget bug.
11623
11624         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
11625         breaking absolutely everything.
11626
11627         * gutter.h: declare mark_gutters.
11628
11629 2000-02-16  Martin Buchholz <martin@xemacs.org>
11630
11631         * XEmacs 21.2.29 is released.
11632
11633 2000-02-15  Olivier Galibert  <galibert@pobox.com>
11634
11635         * fns.c (size_bit_vector): Fix computation of the size.
11636
11637 2000-02-15  Martin Buchholz  <martin@xemacs.org>
11638
11639         * *.[ch]: Change CONST to const globally.
11640         find -name '*.[ch]' | \
11641         xargs global-replace \
11642         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
11643         - Remove vestigial references to CONST_IS_LOSING
11644
11645 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11646
11647         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
11648         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
11649         events instead of dispatching them directly.
11650         (mswindows_handle_paint): New function to do repainting.
11651         (mswindows_wnd_proc):
11652         (emacs_mswindows_handle_magic_event): Call above function.
11653
11654 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11655
11656         * objects-msw.c (mswindows_create_font_variant): Return the new
11657         font handle.
11658         (initialize_font_instance): Get font metrics from the underlined
11659         variant of the font to cope with the case where the underlined
11660         font has a bigger descent.
11661
11662 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
11663
11664         * gui.c (gui_item_accelerator): Return the first underlined
11665         character in item name.
11666
11667 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11668
11669         * lisp.h: Added Qprinter.
11670
11671         * general.c (syms_of_general): Initialized it.
11672
11673         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
11674         (get_frame_dc):
11675         (get_frame_compdc): Made inline.
11676
11677         * console.h (struct console_methods): Added eject_page method.
11678
11679         * frame.h: Added FRAME_DISPLAY_P and friends.
11680         Aligned backslahes in many macros in more readable fashion.
11681         Added page_number to struct frame, and an accessor macro
11682         for it.
11683
11684         * defice.h: Added DEVICE_DISPLAY_P and friends.
11685
11686         * device.c (Fdevice_printer_p): Used these.
11687
11688         * frame.c (allocate_frame_core): Initialize page number.
11689         (Fprint_job_page_number):
11690         (Fprint_job_eject_page): Implemented.
11691
11692         * frame-msw.c (msprinter_eject_page): Added method.
11693         (msprinter_start_page): Added.
11694
11695         * window.c (Fwindow_truncated_p): Fixed docstring.
11696         (Fwindow_last_line_visible_height): Implemented.
11697
11698 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
11699
11700         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
11701
11702 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
11703
11704         * syntax.c (scan_words): Always advance at least one character.
11705
11706 2000-02-13  Andy Piper  <andy@xemacs.org>
11707
11708         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
11709         to make sure the glyph is in the cachels.
11710
11711         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
11712         global image instance flag.
11713         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
11714         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
11715
11716         * glyphs.c (allocate_image_instance): set dirty bits correctly.
11717         (Fset_image_instance_property): mark layout as changed.
11718         (invalidate_glyph_geometry_maybe): mark layout as changed.
11719         (glyph_width): use new NEEDS_LAYOUT macro.
11720         (glyph_ascent): ditto.
11721         (glyph_descent): ditto.
11722         (glyph_height): ditto.
11723         (image_instance_layout): mark layout as clean after laying out.
11724         (update_subwindow): don't mark layout as clean here.
11725
11726         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
11727         should no longer be needed.
11728
11729         * glyphs-x.c (x_update_widget): sanitize asserts.
11730         (x_finalize_image_instance): sanitize assignment to widgets.
11731
11732         * glyphs-widget.c (widget_instantiate): don't need to clear the
11733         layout flag here.
11734
11735 2000-02-13  Martin Buchholz  <martin@xemacs.org>
11736
11737         * sysdep.c (getcwd): Use standard prototype.
11738         * sysdep.h (getcwd): Use standard prototype.
11739
11740         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
11741         (sequence, start, end).
11742         Remove redundant type checking.
11743         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
11744         view of `caller-protects') to avoid a crash where the real fix was
11745         found elsewhere.
11746
11747 2000-02-12  Martin Buchholz  <martin@xemacs.org>
11748
11749         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
11750
11751         * s/sol2.h: Remove feature macro initialization.
11752
11753         * alloc.c (alloc_lcrecord): Add more type checking assertions.
11754         (vector_hash): New.  Code from internal_hash.
11755         * lrecord.h:
11756         Fix up allocation subsystem comments.
11757
11758         * config.h.in: Add __EXTENSIONS__ for Solaris.
11759
11760         * systime.h (EMACS_GETTIMEOFDAY): New.
11761         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
11762         Remove Solaris-specific code.
11763         Use void* for the (ignored) second arg for gettimeofday().
11764
11765         * elhash.c (hash_table_hash): Implement it, finally.
11766         * elhash.c:  Use hashcode_t.
11767
11768         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
11769         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
11770
11771         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
11772         * fns.c (size_bit_vector):
11773         * alloc.c (size_vector):
11774         (make_vector_internal):
11775         (make_bit_vector_internal):
11776         (sweep_bit_vectors_1):
11777         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
11778
11779 2000-02-10  Martin Buchholz  <martin@xemacs.org>
11780
11781         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
11782         Include strings.h to avoid warnings for bzero and strcasecmp.
11783
11784 2000-02-10  Olivier Galibert  <galibert@pobox.com>
11785
11786         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
11787         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
11788
11789         * fns.c (size_bit_vector): New.  Declare bit vectors as a
11790         sequence.
11791
11792 2000-02-10  Olivier Galibert  <galibert@pobox.com>
11793
11794         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
11795         use a value field instead.
11796         (symbol_value_forward_forward): Use value field.
11797         (DEFVAR_SYMVAL_FWD): Use value field.
11798         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
11799         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
11800         (DEFVAR_CONST_INT): Ditto.
11801         (DEFVAR_BOOL): Ditto.
11802         (DEFVAR_CONST_BOOL): Ditto.
11803         (DEFVAR_INT_MAGIC): Ditto.
11804         (DEFVAR_BOOL_MAGIC): Ditto.
11805
11806         * symbols.c (guts_of_unbound_marker): Use value field.
11807         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
11808         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
11809
11810         * lisp.h: Declare dumpopaque and noninteractive1.
11811
11812         * alloc.c (dumpopaque): Added.
11813         (pdump_dump_opaquevec): Added.
11814         (pdump): Call pdump_dump_opaquevec to dump opaque data.
11815         (pdump_load): Reload opaque data.  Sync noninteractive1 with
11816         noninteractive.
11817
11818 2000-02-10  Andy Piper  <andy@xemacs.org>
11819
11820         * glyphs.c (image_instance_layout): if the size changes, mark it
11821         as such.
11822
11823         * redisplay-output.c (redisplay_output_layout): Update the
11824         subwindow here.
11825         (redisplay_output_subwindow): ditto.
11826
11827         * glyphs.c (update_subwindow): make sure we reset flags for
11828         layouts as well as everything else.
11829
11830         * glyphs-widget.c (layout_layout): don't need to set the instances
11831         dimensions here.
11832
11833 2000-02-09  Martin Buchholz  <martin@xemacs.org>
11834
11835         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
11836         not HAVE_DLOPEN, which is a lower-level thing.
11837
11838         * .cvsignore: Ignore gmon.out
11839
11840 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
11841
11842         * .cvsignore: Ignore portable dumper xemacs.dmp file
11843
11844 2000-02-09  Andy Piper  <andy@xemacs.org>
11845
11846         * redisplay-output.c (redisplay_output_layout): be more clever
11847         about when we output based on the changed flags.
11848
11849         * glyphs.h (struct image_instantiator_methods): add update_method.
11850         (struct Lisp_Image_Instance): add changed flags. Declare new
11851         macros for manipulating them.
11852
11853         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
11854         (image_instance_parent_glyph): find an image_instance's parent
11855         glyph or image_instance.
11856         (image_instance_layout): mark the size as changed.
11857         (set_image_instance_dirty_p): new function. mark an image
11858         instance, plus all of its parents, as dirty.
11859         (Fset_image_instance_property): use it.
11860         (Fglyph_animated_timeout_handler): use it.
11861         (update_subwindow): call update_widget and device methods for
11862         update_subwindow. Mark all changed flags as clean.
11863         (Fresize_subwindow): mark size as changed.
11864
11865         * glyphs-x.c (x_finalize_image_instance): try and detect gc
11866         failures.
11867         (x_update_subwindow): only resize subwindows here.
11868         (x_update_widget): new function. Update all changed properties of
11869         a widget.
11870         (x_resize_subwindow): deleted.
11871         (x_widget_set_property): deleted.
11872         (x_progress_gauge_set_property): deleted.
11873         (x_progress_gauge_update): new function. Implement recorded
11874         changes.
11875         (x_tab_control_update): ditto.
11876         (x_tab_control_set_property): deleted.
11877         (console_type_create_glyphs_x): declare new functions.
11878         (image_instantiator_format_create_glyphs_x): ditto.
11879
11880         * glyphs-widget.c (widget_set_property): mark text changed.
11881         (update_widget): new function. Update properties of a widget.
11882         (widget_instantiate): for layouts make sure we set their
11883         children's parent correctly.
11884         (tab_control_set_property): new function. Record changes that will
11885         take place under redisplay's control.
11886         (progress_gauge_set_property): ditto.
11887         (image_instantiator_progress_guage): declare new functions.
11888         (image_instantiator_tab_control): ditto.
11889
11890         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
11891         now.
11892         (mswindows_update_widget): new function. Update all properties on
11893         a widget that have changed.
11894         (mswindows_button_update): new function. Update a button's set
11895         state.
11896         (mswindows_tab_control_update): new function. Update the items in
11897         a tab.
11898         (mswindows_tab_control_set_property): deleted.
11899         (mswindows_progress_gauge_update): new function. Update the
11900         progress gauge's progress.
11901         (mswindows_widget_set_property): deleted. This is all done
11902         asynchronously now.
11903         (mswindows_progress_gauge_set_property): ditto.
11904         (console_type_create_glyphs_mswindows): declare new methods.
11905         (image_instantiator_format_create_glyphs_mswindows): ditto.
11906
11907         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
11908         (msprinter_set_frame_properties): ditto.
11909
11910         * console.h (struct console_methods): Add update_widget_method.
11911
11912 2000-02-09  Andy Piper  <andy@xemacs.org>
11913
11914         * gui-msw.c (Fmswindows_shell_execute): Make
11915         mswindows-shell-execute industrial strength.
11916
11917 2000-02-08  Martin Buchholz  <martin@xemacs.org>
11918
11919         * lrecord.h: Make macro argument `props' match member function `plist'.
11920         * fns.c (Fget):
11921         * fns.c (Fput):
11922         * fns.c (Fremprop):
11923         * fns.c (Fobject_plist):
11924         * alloc.c:
11925         * symbols.c:
11926         Object property list frobbing cleanup.
11927         - Allow any lisp object (compared with `eq'), not just symbols, as
11928           keys in object plists.
11929         - Move symbol plist frobbing into symbols.c, where it belongs.
11930         - Move string plist frobbing into alloc.c, where it belongs.
11931         - Everything's an lrecord now, so no need to test for symbolp, etc.
11932         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
11933
11934         * extents.c: Reorder code to remove declarations.
11935
11936         * frame.h (store_in_alist): Remove useless declaration.
11937
11938 2000-02-07  Martin Buchholz  <martin@xemacs.org>
11939
11940         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
11941         * config.h.in: Add HAVE_XCONVERTCASE.
11942
11943 2000-02-07  Andy Piper  <andy@xemacs.org>
11944
11945         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
11946         it breaks many things.
11947
11948 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
11949
11950         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
11951         actually can start a common comment type.
11952         * src/syntax.h (SYNTAX_END_P): ditto for end.
11953
11954 2000-02-07  Martin Buchholz <martin@xemacs.org>
11955
11956         * XEmacs 21.2.28 is released.
11957
11958 2000-02-06  Martin Buchholz  <martin@xemacs.org>
11959
11960         * event-Xt.c (x_keysym_to_character): New.
11961         (maybe_define_x_key_as_self_inserting_character): New.
11962         (x_has_keysym): New.
11963         Auto-define all keys on the keyboard as self-insert-key.
11964
11965 2000-02-02  Martin Buchholz  <martin@xemacs.org>
11966
11967         * menubar.c (vars_of_menubar): A small code simplification.
11968
11969         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
11970
11971         * ExternalShell.c:
11972         * ExternalClient.c:
11973         * EmacsShell-sub.c:
11974         * EmacsManager.c:
11975         * EmacsFrame.c:
11976         Use consistent style for specifying X resources.
11977
11978         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
11979         This makes (dontusethis-set-symbol-value-handler) actually usable.
11980
11981         * lrecord.h (lrecord_decription_type):
11982         * alloc.c (pdump_register_sub):
11983         (pdump_dump_data):
11984         (pdump_reloc_one):
11985         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
11986         Comply with XEmacs coding style.
11987         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
11988         args, and XD_LISP_OBJECT_ARRAY with 3 args.
11989
11990         * keymap.c (Faccessible_keymaps):
11991         Make (accessible-keymaps map "\C-h") do the Right Thing.
11992         Make (accessible-keymaps map []) do the Right Thing.
11993         Make (accessible-keymaps map "") do the Right Thing.
11994         (check_keymap_definition_loop): New function.
11995         (keymap_store_internal): Keep luser from shooting self in foot,
11996           via (define-key ctl-x-4-map "p" global-map).
11997         Remove fullness slot from struct Lisp_Keymap, since hash tables
11998         are now reliable.
11999         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
12000
12001 2000-01-30  Martin Buchholz  <martin@xemacs.org>
12002
12003         * redisplay.c (init_redisplay): Fix small memory leak.
12004         * elhash.h:
12005         * elhash.c (pdump_reorganize_hash_table):
12006         Rename from reorganize_hash_table. Change prototype.
12007         Reuse the original memory for hentries.  Save 100k.
12008         * alloc.c (PDUMP_READ): new macro.
12009         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
12010         * alloc.c: No need to #ifndef before #undef.
12011
12012         * print.c: Allow debug_print() to print readably by modifying
12013         debug_print_readably.  Use consistent variable names.
12014
12015         * .dbxrc: Try to get things to work even if stopped in a function
12016         without source available by explicitly specifying source files.
12017 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12018
12019         * unexnt.c (_start): Removed bogus code which caused loading heap
12020         from differrent executable file.
12021         Removed bogus assignment to _fmode, which caused inconsistencies.
12022
12023 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12024
12025         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
12026         Have spawnve encapsulation regard DONT_ENCAPSULATE.
12027         Do not preliminary `#define signal sigset'.
12028
12029         * systime.h: Do not prototype environ on windows nt and cygwin,
12030         this conflicts with system header.
12031
12032         * syssignal.h: Use correct define for WINDOWSNT
12033
12034         * sysdep.h: Do not prototype environ on windows nt, this conflicts
12035         with system header.
12036
12037         * sysdep.c (near start of file): Fixed commentary and rearranged
12038         ifdefs in readable order.
12039         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
12040         (start_of_text):
12041         (end_of_text):
12042         (end_of_data): Do not compile in if using PDUMP.
12043
12044         * symsinit.h: Prototyped vars_of_nt().
12045
12046         * ntproc.c (windows9x_p): Added, instead of os_subtype.
12047         (find_child_console): Use it.
12048         (sys_kill): Use it.
12049
12050         * ntheap.h: Do not extern os_subtype.
12051
12052         * ntheap.c (cache_system_info): Do not cache unneeded:
12053         nt_major_version, nt_minor_version and os_subtype.
12054         (recreate_heap): Do not compile in when PDUMPing.
12055
12056         * nt.c (geteuid and friends): Use the new varibale
12057         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
12058         (init_user_info): Removed the above mentioned hackery.
12059         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
12060         stat has been fixed in the C runtime.
12061         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
12062
12063         * file-coding.c (struct file_coding_dump): Do not define
12064         ucs_to_mule_table in the struct if not MULE.
12065         (struct struct lrecord_description fcd_description_1): Do not dump
12066         the above.
12067
12068         * emacs.c (main_1): Call vars_of_nt().
12069         (right before Fdump_emacs_data): Don't need lastfile if using both
12070         portabe dumper and system malloc.
12071
12072         * alloc.c (Fmemory_limit): Conditionalized out.
12073         (pdump): Use OPEN_BINARY for the portable dump file.
12074         (pdump_load): Ditto.
12075
12076 2000-02-02  Mike Alexander  <mta@arbortext.com>
12077
12078         * nt.c (convert_time): Set tm_isdst before calling mktime and
12079         avoid calling it at all if the compiler supports 64 bit integers.
12080         Also initialize utc_base_ft before using it.
12081
12082 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
12083
12084         * frame.c (change_frame_size_1): Take f->internal_border_width
12085         into consideration when calculating the width of the frame.
12086
12087 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12088
12089         * window.c (frame_min_height):
12090         (frame_size_valid_p):
12091         (frame_pixsize_valid_p): Added.
12092         (check_frame_size): Generalized.
12093
12094         * window.h: Prototyped the above.
12095
12096         * lisp.h:
12097         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
12098         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
12099         Deleted Vwin32_* and Vbinary_process_* unused variables.
12100
12101         * device-msw.c (msprinter_init_device): Do not get printer font
12102         list; Added DEVMODE functions.
12103
12104         * frame-msw.c: Added lots of printer code.
12105
12106         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
12107         general.c.
12108
12109         * console-msw.h: Added more msprinter device private slots.
12110
12111 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12112
12113         * event-msw.c (key_needs_default_processing_p): Added.
12114         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
12115
12116 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12117
12118         * glyphs.c (image_instance_layout): Mark image instance as clean
12119         after layout.
12120         (glyph_dirty_p): Removed redundant function.
12121         (invalidate_glyph_geometry_maybe): Added.
12122         (update_glyph_cachel_data): Call it.
12123
12124         * glyphs.h: Prototyped it.
12125
12126         * redisplay.c (add_glyph_rune): Call it.
12127         (redisplay_window): Reset glyphs cachels when frame faces have
12128         changed, thus forcing recomputation of built-in border glyphs.
12129
12130 2000-01-30  Martin Buchholz  <martin@xemacs.org>
12131
12132         * Makefile.in.in: Make portable dumper and purify play well together.
12133         Add imperfect, but better than nothing, support for pdump.
12134         Remove xemacs.dmp when temacs is re-generated.
12135         Don't ignore errors when dumping xemacs.
12136
12137         * symbols.c (maybe_call_magic_handler): Remove one magic number.
12138
12139 2000-01-28  Andy Piper  <andy@xemacs.org>
12140
12141         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
12142         (setup_normal_frame): ditto.
12143         (setup_frame_without_minibuffer): ditto.
12144         (setup_minibuffer_frame): ditto.
12145         (delete_frame_internal): ditto.
12146         (Fmake_frame_invisible): ditto.
12147         (Ficonify_frame): ditto.
12148
12149         * window.h: change Fset_window_buffer signature.
12150
12151         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
12152         (Fset_window_buffer): allow recording of buffer if the window is
12153         the selected window.
12154         (window_loop): Use new Fset_window signature.
12155
12156 2000-01-23  Daniel Pittman  <daniel@danann.net>
12157
12158         * config.h.in: Added template for `HAVE_ATHENA_3D'
12159
12160 2000-01-29  Andy Piper  <andy@xemacs.org>
12161
12162         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
12163
12164         * gutter.c (output_gutter): Don't output if the window isn't live.
12165
12166 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12167
12168         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
12169         of 01/12/00: Moved SetFocus back here where it belongs.
12170
12171 2000-01-23  Andy Piper  <andy@xemacs.org>
12172
12173         * s/cygwin32.h: declare printer things.
12174
12175 2000-01-26  Andy Piper  <andy@xemacs.org>
12176
12177         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
12178         Alexander.
12179
12180 2000-01-24  Andy Piper  <andy@xemacs.org>
12181
12182         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
12183         (mswindows_button_instantiate): Make sure glyph is a pixmap.
12184
12185         * glyphs-widget.c (widget_instantiate): Avoid shadows.
12186
12187         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
12188
12189         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
12190
12191         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
12192         (mswindows_output_display_block): Avoid local shadows.
12193
12194         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
12195         (mswindows_enqueue_mouse_button_event): ditto.
12196         (mswindows_handle_gui_wm_command): remove declaration.
12197
12198         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
12199         warnings.
12200
12201         * console-msw.h: Avoid shadows.
12202         (mswindows_get_toolbar_button_text):
12203         (emacs_mswindows_create_stream_pair):
12204         (emacs_mswindows_delete_stream_pair):
12205         (mswindows_handle_toolbar_wm_command): declare.
12206
12207         * device-msw.c (build_syscolor_string): Avoid shadows.
12208
12209 2000-01-23  Andy Piper  <andy@xemacs.org>
12210
12211         * glyphs-widget.c (widget_instantiate): reverse the items for
12212         layouts so that children are in the expected order.
12213
12214 2000-01-28  Martin Buchholz  <martin@xemacs.org>
12215
12216         * ralloc.c: safe_bcopy ==> memmove
12217         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
12218         * s/msdos.h: Remove BCOPY macros.
12219         * insdel.c (gap_right): Remove BCOPY conditional code.
12220         * insdel.c (gap_left): Remove BCOPY conditional code.
12221         XEmacs demands a working ANSI C compiler - hence memmove.
12222
12223         * regex.c (regex_compile): Remove accidental use of trigraphs.
12224
12225 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12226
12227         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
12228         event timestamp.
12229
12230 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12231
12232         * event-msw.c (mswindows_drain_windows_queue): Added the
12233         parameter.
12234         (mswindows_need_event): Commented the call to
12235         mswindows_drain_windows_queue().
12236         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
12237         only.
12238
12239         * console-msw.h: Moved a few function prototypes here from
12240         event-msw.c.
12241
12242         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
12243         parameter from unsigned short to unsigned long.
12244         (Fmswindows_shell_execute): Added return value.
12245
12246 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
12247
12248         * sysdep.c (init_system_name):
12249           process-unix.c (unix_canonicalized_host_name):
12250         Don't call freeaddrinfo() if getaddrinfo() fails.
12251
12252         * process-unix.c (unix_open_unix_network_stream):
12253         Moved the code to get a port # into address loop.
12254
12255 2000-01-27  Martin Buchholz  <martin@xemacs.org>
12256
12257         * buffer.c (reinit_vars_of_buffer):
12258         The right place to initialize conversion_in_dynarr and
12259         conversion_out_dynarr.
12260
12261         * alloc.c (pdump): Use the real open() till sys_open() is functional.
12262
12263         * process-unix.c (unix_canonicalize_host_name): Muleize.
12264         (unix_open_network_stream): Muleize.
12265
12266         * buffer.h: Fix up prototypes for ralloc.c functions.
12267
12268 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
12269         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
12270         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
12271                 instead of gethostbyname()
12272         * process-unix.c: In unix_canonicalize_host_name() and
12273                 unix_open_network_stream(), add code to use getaddrinfo()
12274                 instead of gethostbyname().
12275
12276 2000-01-27  Daniel Pittman <daniel@danann.net>
12277
12278         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
12279         libs when built with flat Athena.
12280
12281 2000-01-27  Martin Buchholz  <martin@xemacs.org>
12282
12283         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
12284         Use coding standards for function prototypes.
12285
12286 2000-01-25  Martin Buchholz  <martin@xemacs.org>
12287
12288         * dialog-msw.c (push_lisp_string_as_unicode):
12289         * doc.c (unparesseuxify_doc_string):
12290         * dired.c (Fuser_name_completion_1):
12291         * dired.c (Fuser_name_all_completions):
12292         * dired.c (free_user_cache):
12293         * dired.c (user_name_completion):
12294         * console-x.c (get_display_arg_connection):
12295         * minibuf.c (clear_echo_area_internal):
12296         * minibuf.c (echo_area_append):
12297         * eldap.c (Fldap_open):
12298         * eldap.c (Fldap_search_internal):
12299         * frame-x.c (x_set_frame_text_value):
12300         * frame-x.c (x_set_frame_properties):
12301         * frame-x.c (x_create_widgets):
12302         * redisplay-tty.c (term_get_fkeys_1):
12303         * objects-x.c (x_parse_nearest_color):
12304         * objects-x.c (x_valid_color_name_p):
12305         * objects-x.c (x_initialize_font_instance):
12306         * objects-x.c (x_list_fonts):
12307         * objects-x.c (x_find_charset_font):
12308         * tooltalk.c (Fadd_tooltalk_message_arg):
12309         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
12310         * tooltalk.c (Fadd_tooltalk_pattern_arg):
12311         * process-unix.c (unix_create_process):
12312         * ntproc.c (sys_spawnve):
12313         * sound.c (Fplay_sound_file):
12314         * sound.c (Fplay_sound):
12315         * buffer.c (init_initial_directory):
12316         * buffer.c (init_buffer):
12317         * editfns.c (init_editfns):
12318         * editfns.c (Ftemp_directory):
12319         * editfns.c (Fuser_full_name):
12320         * editfns.c (uncache_home_directory):
12321         * editfns.c (get_home_directory):
12322         * editfns.c (Fuser_home_directory):
12323         * editfns.c (Fformat_time_string):
12324         * editfns.c (Fcurrent_time_string):
12325         * gui-x.c (button_item_to_widget_value):
12326         * database.c (Fopen_database):
12327         * event-Xt.c (x_to_emacs_keysym):
12328         * event-Xt.c (x_event_to_emacs_event):
12329         * event-Xt.c (describe_event_window):
12330         * event-msw.c (mswindows_wnd_proc):
12331         * glyphs-eimage.c (jpeg_instantiate):
12332         * glyphs-eimage.c (gif_instantiate):
12333         * glyphs-eimage.c (png_instantiate):
12334         * glyphs-eimage.c (tiff_instantiate):
12335         * glyphs-x.c (xbm_instantiate_1):
12336         * glyphs-x.c (x_xbm_instantiate):
12337         * glyphs-x.c (x_xface_instantiate):
12338         * glyphs-x.c (autodetect_instantiate):
12339         * glyphs-x.c (cursor_font_instantiate):
12340         * glyphs-x.c (x_widget_instantiate):
12341         * glyphs-x.c (x_widget_set_property):
12342         * glyphs-x.c (x_widget_property):
12343         * glyphs-x.c (BUILD_GLYPH_INST):
12344         * print.c (write_string_to_stdio_stream):
12345         * print.c (output_string):
12346         * print.c (Falternate_debugging_output):
12347         * print.c (Fexternal_debugging_output):
12348         * glyphs-msw.c (extract_xpm_color_names):
12349         * glyphs-msw.c (mswindows_xpm_instantiate):
12350         * glyphs-msw.c (bmp_instantiate):
12351         * glyphs-msw.c (resource_name_to_resource):
12352         * glyphs-msw.c (mswindows_resource_instantiate):
12353         * glyphs-msw.c (xbm_instantiate_1):
12354         * glyphs-msw.c (mswindows_xbm_instantiate):
12355         * glyphs-msw.c (mswindows_xface_instantiate):
12356         * glyphs-msw.c (mswindows_widget_instantiate):
12357         * glyphs-msw.c (add_tree_item):
12358         * glyphs-msw.c (add_tab_item):
12359         * glyphs-msw.c (mswindows_combo_box_instantiate):
12360         * glyphs-msw.c (mswindows_widget_property):
12361         * glyphs-msw.c (mswindows_combo_box_property):
12362         * glyphs-msw.c (mswindows_widget_set_property):
12363         * console.c (stuff_buffered_input):
12364         * objects-msw.c (mswindows_initialize_color_instance):
12365         * objects-msw.c (mswindows_valid_color_name_p):
12366         * objects-msw.c (mswindows_list_fonts):
12367         * objects-msw.c (mswindows_font_instance_truename):
12368         * bytecode.c (optimize_compiled_function):
12369         * select-x.c (symbol_to_x_atom):
12370         * select-x.c (x_atom_to_symbol):
12371         * select-x.c (hack_motif_clipboard_selection):
12372         * select-x.c (selection_data_to_lisp_data):
12373         * select-x.c (lisp_data_to_selection_data):
12374         * select-x.c (Fx_get_cutbuffer_internal):
12375         * select-x.c (Fx_store_cutbuffer_internal):
12376         * buffer.h (TO_EXTERNAL_FORMAT): New function.
12377         * buffer.h (TO_INTERNAL_FORMAT): New function.
12378         * emacs.c (make_arg_list_1):
12379         * emacs.c (make_argc_argv):
12380         * emacs.c (main_1):
12381         * emacs.c (Fdump_emacs):
12382         * emacs.c (split_string_by_emchar_1):
12383         * file-coding.h:
12384         * lisp.h:
12385         * lstream.h:
12386         * symsinit.h:
12387         * device-x.c (x_init_device):
12388         * device-x.c (Fx_valid_keysym_name_p):
12389         * device-x.c (Fx_get_font_path):
12390         * device-x.c (Fx_set_font_path):
12391         * glyphs.c (bitmap_to_lisp_data):
12392         * glyphs.c (pixmap_to_lisp_data):
12393         * alloc.c (make_ext_string): Use coding system arguments.  Update
12394         all callers.
12395         * alloc.c (build_string):
12396         * callproc.c (child_setup):
12397         * callproc.c (init_callproc):
12398         * fileio.c (lisp_strerror):
12399         * fileio.c (directory_file_name):
12400         * fileio.c (Fexpand_file_name):
12401         * fileio.c (Ffile_truename):
12402         * fileio.c (Fsysnetunam):
12403         * fileio.c (Fdo_auto_save):
12404         * sysdep.c (sys_readdir):
12405         * tests.c: New file.  Allow adding C tests.
12406         Replace GET_* macros with a more comprehensible and flexible
12407         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
12408         Modify all calls.
12409         Any coding system can be used to do format conversion.
12410         Eliminate enum external_data_format.
12411         Eliminate convert_to_external_format.
12412         Eliminate convert_to_internal_format.
12413         Make sure file-name, keyboard, terminal, and ctext are always
12414         defined as coding systems or aliases.  Make
12415         file-name-coding-system, terminal-coding-system, and
12416         keyboard-coding-system magical variables that are equivalent to
12417         defining the corresponding coding system aliases.
12418
12419         * file-coding.c (Fcoding_system_canonical_name_p): New function.
12420         * file-coding.c (Fcoding_system_alias_p): New function.
12421         * file-coding.c (Fcoding_system_aliasee): New function.
12422         * file-coding.c (append_suffix_to_symbol): New function.
12423         * file-coding.c (dangling_coding_system_alias_p): New function.
12424         * file-coding.c (Ffind_coding_system):
12425         * file-coding.c (Fcopy_coding_system):
12426         * file-coding.c (encode_coding_no_conversion):
12427         * file-coding.c (syms_of_file_coding):
12428         * file-coding.c (vars_of_file_coding):
12429         Rewrite coding system alias code.
12430         Allow nested aliases, like symbolic links.
12431         Allow redefinition of coding system aliases.
12432         Prevent existence of dangling coding system aliases.
12433
12434         * dired.c (Fuser_name_completion_1):
12435         * dired.c (Fuser_name_all_completions):
12436         A crash would happen if user did QUIT in the middle of building
12437         user_name_cache.  Remove redundant code in mainline and unwind_protect.
12438
12439         * lisp.h:
12440         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
12441
12442         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
12443         an unsigned char *.  Update all callers.
12444
12445 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12446
12447         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
12448
12449 2000-01-25  Martin Buchholz  <martin@xemacs.org>
12450
12451         * elhash.c (hentry_description): Use more portable definition.
12452         (resize_hash_table): Initialize new hentries using
12453         xnew_array_and_zero, thereby simplifying the code.
12454
12455         * mule-charset.c (make_charset): Make sure entire object is
12456         initialized, to avoid Purify warnings.
12457
12458         * alloc.c (resize_string): Fix unlikely crash with big strings.
12459
12460 2000-01-24  Martin Buchholz  <martin@xemacs.org>
12461
12462         * realpath.c (xrealpath):
12463         Don't call getwd().
12464
12465 2000-01-25  Martin Buchholz  <martin@xemacs.org>
12466
12467         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
12468
12469 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
12470
12471         * unexelfsgi.c (unexec): Change the way we decide which segment
12472         should be extended.
12473
12474         Assumption that .bss section should be outside the PT_LOADable
12475         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
12476         it's present) is inside the 'data' segment. This would fail the
12477         test which was used to find a segment to grow and cover new
12478         heap. Instead of this assumption, I created another one - on IRIX
12479         the segment to grow should start below .bss and it's address
12480         should extent above the end of .bss. Once this segment is
12481         identified, it's grown to accommodate the new heap and new
12482         zero-length .bss section is added at the end of .data2.
12483
12484 2000-01-25  Martin Buchholz  <martin@xemacs.org>
12485
12486         * eval.c (Feval): Wrong number of arguments should use original
12487         function, not the indirect_function version of it.
12488
12489 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
12490
12491         * glyphs-x.c (x_button_instantiate): Don't add image if
12492         it is not a pixmap.
12493         (x_locate_pixmap_file): Call Fexpand_file_name when file name
12494         is relative.
12495
12496 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
12497
12498         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
12499         declaration.
12500         (DEFVAR_INT_MAGIC): Ditto.
12501         (DEFVAR_BOOL_MAGIC): Ditto.
12502         * glyphs.h: Reindent backslash.
12503
12504 2000-01-24  Martin Buchholz  <martin@xemacs.org>
12505
12506         * glyphs-widget.c (layout_query_geometry):
12507         (layout_layout): Use correct types for gheight, gwidth.
12508
12509 2000-01-24  Martin Buchholz  <martin@xemacs.org>
12510
12511         * EmacsManager.c (QueryGeometry): Purified.
12512
12513 2000-01-23  Martin Buchholz  <martin@xemacs.org>
12514
12515         * alloc.c (make_float): Make sure entire object is initialized, to
12516         avoid Purify warnings.
12517         (pdump_register_sub): Remove useless assignment.
12518         (pdump): Use xmalloc, not malloc.
12519         (pdump_load): Use xmalloc, not malloc.
12520
12521 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12522
12523         * callproc.c:
12524         * dired-msw.c:
12525         * fileio.c:
12526         * process-nt.c:
12527         * redisplay-msw.c:
12528         * sysdep.c: Removed redundant #include <windows.h>
12529
12530 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12531
12532         * frame.c (delete_frame_internal): Do not delete device when its
12533         implementation so declares.
12534         (delete_frame_internal): Set device selected frame to nil when
12535         last frame goes away.
12536
12537         * device-msw.c (msprinter_device_system_metrics): Implemented.
12538         (mswindows_device_system_metrics): Added 'device-dpi property.
12539
12540         * device.c: (Fdevice_printer_p): Added.
12541         Added 'offset-workspace device metric.
12542
12543         * console.h (device_metrics): Declared DM_offset_workspace.
12544
12545 2000-01-23  Martin Buchholz  <martin@xemacs.org>
12546
12547         * fileio.c (Ffile_truename): Remove pointless and confusing
12548         initialization of elen.
12549
12550         * glyphs-widget.c: Compiler warning fixes.
12551
12552 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
12553
12554         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
12555         instead of a Lisp_Object as argument to make it consistent with
12556         the other LIVE_P macros.
12557         (CHECK_LIVE_PROCESS): New macro.
12558
12559         * process.c: Declare Qprocess_live_p.
12560         (Fprocess_live_p): New function.
12561         (create_process): Use PROCESS_LIVE_P.
12562         (read_process_output): Ditto.
12563         (set_process_filter): Ditto.
12564         (Fdelete_process): Ditto.
12565         (kill_buffer_processes): Ditto
12566         (process_send_signal): Use CHECK_LIVE_PROCESS.
12567         (Fprocess_input_coding_system): Check whether process is still
12568         alive (fix PR#1061).
12569         (Fprocess_output_coding_system): Ditto.
12570         (Fprocess_coding_system): Ditto.
12571         (Fset_process_input_coding_system): Ditto.
12572         (Fset_process_output_coding_system): Ditto.
12573
12574 2000-01-23  Andy Piper  <andy@xemacs.org>
12575
12576         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
12577         layout and widget.
12578
12579         * glyphs.c (mark_image_instance): take into account changed
12580         image_instance format.
12581         (image_instance_equal): ditto.
12582         (image_instance_hash): ditto.
12583
12584         * glyphs-widget.c (widget_instantiate): Incorporate layout
12585         instantiation here. Delay layout of the layout until later.
12586         (layout_instantiate): deleted.
12587         (layout_query_geometry): new function. get the geometry of a
12588         layout.
12589         (layout_layout): layout a layout dynamically.
12590         (image_instantiator_widget): New function - splitting up
12591         image_instantiator_format_create_glyphs_widget for netwinder
12592         compilation.
12593         (image_instantiator_buttons):
12594         (image_instantiator_edit_fields):
12595         (image_instantiator_combo_box):
12596         (image_instantiator_scrollbar):
12597         (image_instantiator_progress_guage):
12598         (image_instantiator_tree_view):
12599         (image_instantiator_tab_control):
12600         (image_instantiator_labels):
12601         (image_instantiator_layout): ditto.
12602         (image_instantiator_format_create_glyphs_widget): Call preceding
12603         functions.
12604
12605 2000-01-22  Martin Buchholz  <martin@xemacs.org>
12606
12607         * process.c (Fset_process_coding_system):
12608         * device-x.c (Fx_keysym_hash_table):
12609         Docstring fixes.
12610
12611         * lstream.c (Lstream_write): Return documented value, not 0.
12612
12613         * fileio.c (directory_file_name):
12614         (Fsubstitute_in_file_name):
12615         (Fsubstitute_insert_file_contents_internal):
12616         (Fwrite_region_internal):
12617         * emacs.c:
12618         * sysdep.c:
12619         * getloadavg.c:
12620         * systty.h:
12621         Remove vestigial APOLLO-conditional code.
12622
12623 2000-01-21  Martin Buchholz  <martin@xemacs.org>
12624
12625         * getpagesize.h: Add guard macros.
12626         * libsst.h: Add guard macros.
12627         * libst.h: Add guard macros.
12628         * line-number.h: Add guard macros.
12629         * ndir.h: Add guard macros.
12630         * sysfloat.h: Add guard macros.
12631         * sysfile.h: Add guard macros.
12632         * sysproc.h: Add guard macros.
12633         * syswait.h: Add guard macros.
12634         * xintrinsic.h: Add guard macros.
12635         * xintrinsicp.h: Add guard macros.
12636         * xmmanager.h: Add guard macros.
12637         * xmmanagerp.h: Add guard macros.
12638         * xmprimitive.h: Add guard macros.
12639         * xmu.h: Add guard macros.
12640         * gpmevent.h: Add copyright statement. Add guard macros.
12641         * miscplay.h: Add guard macros.
12642         * *.h: Use consistent C-standards-approved guard macro names.
12643
12644         * opaque.c (make_opaque): Switch parameter order.
12645         * opaque.h (make_opaque): Switch parameter order.
12646         Update all callers.
12647         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
12648
12649         * config.h.in (type_checking_assert): Added.
12650         (bufpos_checking_assert): Added.
12651
12652 2000-01-21  Martin Buchholz  <martin@xemacs.org>
12653
12654         * alloc.c: Harmless pdump changes.
12655         - Use countof().
12656         - spell alignment correctly.
12657         * sysdep.c: Use countof()
12658
12659 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12660
12661         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
12662         initially_selected_for_input() console method, default to 0.
12663         (semi_canonicalize_console_connection): Try to delegate to
12664         canonicalize_console_connection if no such console method.
12665         (canonicalize_console_connection): Vice versa.
12666         (print_console): Do not print nil connection.
12667
12668         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
12669         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
12670         (XDEVIMPF_FRAMELESS_OK): Added.
12671         (CONSOLE_INHERITS_METHOD): Added.
12672
12673         * console-msw.c (mswindows_canonicalize_console_connection):
12674         Added.
12675         (mswindows_canonicalize_device_connection): Added.
12676
12677         * console-msw.h (struct msprinter_device): Added this struct and
12678         accessor macros.
12679         (mswindows_device): Made fontlist a lisp object.
12680
12681         * device.c (semi_canonicalize_device_connection):  Try to delegate
12682         to canonicalize_device_connection if no such console method.
12683         (canonicalize_device_connection): Vice versa.
12684         (print_device): Do not print nil connection.
12685
12686         * device-msw.c (mswindows_init_device): Call InitCommonControls
12687         when have widgets.
12688         (mswindows_delete_device): Removed fontlist deallocation.
12689         (mswindows_mark_device): Added.
12690
12691         * events.c (event_equal): Added abort() at unreached code.
12692         (event_hash): Ditto.
12693
12694         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
12695         fallback tags of Windows devices.
12696
12697         * general.c (syms_of_general): Initialized Qmsprinter.
12698
12699         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
12700         of fallback tags of Windows devices.
12701
12702         * lisp.h: Declared Qmsprinter.
12703
12704         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
12705         of strings.
12706         (mswindows_list_fonts): Ditto.
12707         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
12708         that it can be used by both mswindows and msprinter devices.
12709         (initialize_font_instance): Added.
12710         (mswindows_initialize_font_instance): Use it.
12711         (msprinter_initialize_font_instance): Added.
12712
12713         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
12714         and implementation flags check.
12715         (redisplay_without_hooks): Changed the call to the above.
12716         (Fredraw_device): Ditto.
12717         (Fredisplay_device): Ditto.
12718
12719         * redisplay-msw.c (get_frame_dc): Implemented.
12720         (get_frame_compdc): Implemented.
12721         (many functions): Use the two functions above to get device
12722         contexts, ether for a window or a printer.
12723
12724 2000-01-21  Olivier Galibert  <galibert@pobox.com>
12725
12726         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
12727         initialization here.
12728         (init_symbols_once_early): Call it.
12729         * emacs.c (main_1): Call it.
12730         * symsinit.h: Declare it.
12731
12732 2000-01-19  Olivier Galibert  <galibert@pobox.com>
12733
12734         * alloc.c: Use a lrecord_header * in the backtrace instead of a
12735         Lisp_Object.
12736         (pdump_backtrace): Ditto.
12737         (pdump_register_object): Ditto.  Cleanup use of the pointers.
12738         (pdump_get_entry): Abort if trying to register a null pointer.
12739         (pdump_dump_data): Cleanup types when relocating.
12740         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
12741         (pdump_dump_rtables): Remove bad casts.
12742         (pdump_load): Cleanup relocation w.r.t union type.  Use a
12743         Lisp_Object instead of a EMACS_INT for the hashtable
12744         reorganization.
12745
12746 2000-01-20  Martin Buchholz  <martin@xemacs.org>
12747
12748         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
12749
12750         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
12751
12752         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
12753
12754         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
12755
12756 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12757
12758         * faces.h (FACE_STRIKETHRU_P): Added.
12759
12760         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
12761         of font variants.
12762
12763         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
12764         (mswindows_set_dc_font): New function, aware of font variants,
12765         separated from mswindows_update_dc.
12766
12767         * objects-msw.h (struct mswindows_font_instance_data): Added
12768         definition.
12769
12770         * objects-msw.c (mswindows_finalize_font_instance): Delete all
12771         cached fonts and the data structure.
12772         (mswindows_initialize_font_instance): Added creation of font data
12773         structure.
12774         (mswindows_print_font_instance): Print at least something.
12775         (mswindows_create_font_variant): Implemented.
12776         (mswindows_get_hfont): Implemented.
12777
12778 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
12779
12780         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
12781         prototyping problem with msvc.
12782
12783         * emacs.c (main_1): added syms_of_gui_mswindows() call
12784
12785         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
12786         syms_of_gui_mswindows() function
12787
12788         * symsinit.h: added the prototype for syms_of_gui_mswindows()
12789
12790 2000-01-18  Martin Buchholz <martin@xemacs.org>
12791
12792         * XEmacs 21.2.27 is released.
12793
12794 2000-01-18  Martin Buchholz  <martin@xemacs.org>
12795
12796         * glyphs-eimage.c (struct tiff_error_struct):
12797         (tiff_error_func):
12798         (tiff_warning_func):
12799         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
12800
12801         * unexmips.c:
12802         * unexhp9k3.c:
12803         * unexfreebsd.c:
12804         * unexec.c: Remove vestigial Lucid C code.
12805         * unexalpha.c:
12806         * unexaix.c:
12807         * termcap.c:
12808         * libsst.c: Ansify.
12809         Remove declarations of errno and strerror().
12810
12811         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
12812
12813         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
12814
12815 2000-01-16  Martin Buchholz  <martin@xemacs.org>
12816
12817         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
12818         Optimize.
12819
12820 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
12821
12822         * md5.c:
12823         * file-coding.c:
12824         * file-coding.h:
12825         Change enum eol_type to eol_type_t.
12826
12827 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
12828
12829         * gui.c (get_gui_callback): Check cons before accessing car.
12830
12831 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
12832
12833         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
12834         (XSETSPECIFIER_TYPE): Ditto.
12835
12836 2000-01-17  Didier Verna  <didier@xemacs.org>
12837
12838         * redisplay.c (generate_fstring_runes): compute string size in
12839         characters, not bytes.
12840
12841 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
12842
12843         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
12844
12845 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
12846
12847         * print.c (print_error_message): Call print_prepare().
12848
12849 2000-01-14  Martin Buchholz  <martin@xemacs.org>
12850
12851         * .dbxrc: Renamed from dbxrc.
12852
12853         * events.c (event_to_character):
12854         Use `assert (foo)' instead of `if (!foo) abort()'
12855
12856         * .gdbinit (xtype): Add documentation.
12857         * .gdbinit (check-temacs): New function.
12858         * .gdbinit (check-xemacs): New function.
12859         * dbxrc (check-xemacs): New function.
12860         * dbxrc (check-xemacs): New function.
12861
12862 2000-01-14  Andy Piper  <andy@xemacs.org>
12863
12864         * glyphs-widget.c (widget_query_geometry): Make sure that we
12865         calculate default dimensions correctly.
12866
12867 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12868
12869         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
12870
12871         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
12872         pdump_wire'd variable.
12873
12874         * emacs.c: (main_1): Conditionalized calls to
12875         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
12876
12877 2000-01-13  Martin Buchholz  <martin@xemacs.org>
12878
12879         * window.c (Fset_window_configuration):
12880         * sysdep.c (_start):
12881         * input-method-motif.c (res):
12882         * event-Xt.c (Xt_process_to_emacs_event):
12883         Simple compiler warning fixes.
12884
12885         * bytecode.c (funcall_compiled_function): Use the original
12886         function symbol on the backtrace list in preference to the
12887         compiled_function object in error messages.
12888
12889 2000-01-13  Andy Piper  <andy@xemacs.org>
12890
12891         * glyphs-x.c (update_widget_face): Make sure we update the widget
12892         background as well as foreground.
12893
12894 2000-01-13  Andy Piper  <andy@xemacs.org>
12895
12896         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
12897         fields to subwindow.
12898         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
12899         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
12900         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
12901         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
12902
12903         * glyphs-widget.c (check_valid_tab_orientation): new function.
12904         (initialize_widget_image_instance): zero orientation and
12905         justification.
12906         (widget_instantiate): pick up orientation.
12907         (tab_control_query_geometry): return appropriate values for
12908         vertical tabs.
12909
12910         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
12911         appropriate creation flags for left, right and bottom tabs.
12912
12913         * s/cygwin32.h: add tab definitions.
12914
12915 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12916
12917         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
12918         frame upon hiding a subwindow.
12919         (mswindows_button_instantiate): Changed the push button style to
12920         BS_PUSHBUTTON.
12921         (mswindows_button_instantiate): Removed button BS_NOTIFY
12922         style.
12923         (mswindows_button_instantiate): Removed redundant check for
12924         a disabled gui item.
12925         (mswindows_button_instantiate): Made use of WS_TABSTOP
12926         consistent: "operable" controls (edit, button, tree, scroll) have
12927         this style, "display-only" ones (static, progress gauge) do
12928         not. This style is currently ignored by XEmacs though. Also,
12929         removed the WS_EX_CONTROLPARENT style - it is not for children,
12930         it is for their parents!
12931         (mswindows_edit_field_instantiate): Ditto.
12932         (mswindows_progress_gauge_instantiate): Ditto.
12933         (mswindows_tree_view_instantiate): Ditto.
12934         (mswindows_tab_control_instantiate): Ditto.
12935         (mswindows_scrollbar_instantiate): Ditto.
12936         (mswindows_combo_box_instantiate): Ditto.
12937         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
12938         style to the "clip" window.
12939         (mswindows_button_instantiate): Removed compilation warning by
12940         equally typing terms of the ?: operator.
12941
12942 2000-01-12  Didier Verna  <didier@xemacs.org>
12943
12944         * redisplay.c (generate_fstring_runes): new parameter holding the
12945         last modeline-format extent.
12946         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
12947         extent, fill the glyph block with it.
12948         (generate_fstring_runes): handle these parameters.
12949         (generate_formatted_string_db): ditto.
12950
12951         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
12952         glyphs'extents in the modeline.
12953
12954 1999-01-11  Mike Woolley  <mike@bulsara.com>
12955
12956         * ntheap.c: Reduced the reserved heap space from 1Gb down to
12957         256Mb, as a workaround for the non-starting problem many people
12958         have experienced.
12959
12960 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
12961
12962         * console-tty.c (Fset_console_tty_output_coding_system):
12963         Force redrawing tty frame.
12964
12965 2000-01-10  Didier Verna  <didier@xemacs.org>
12966
12967         * redisplay.c (generate_fstring_runes): fix size computation bug.
12968
12969 2000-01-09  William M. Perry <wmperry@aventail.com>
12970
12971         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
12972
12973 2000-01-09  Andy Piper  <andy@xemacs.org>
12974
12975         * glyphs-msw.c: index -> i to avoid shadows.
12976         (xbm_create_bitmap_from_data): make static.
12977         (check_valid_string_or_int): deleted.
12978         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
12979
12980         * glyphs-x.c (x_update_subwindow): remove unused args.
12981
12982         * glyphs.c (glyph_image_instance): return the thing. Don't set the
12983         back pointer - this is done in allocate_image_instance.
12984         (query_string_font): return Qnil to make the compiler happy.
12985         (unmap_subwindow): set to ~0 to make the compiler happy.
12986         (glyph_query_geometry): comment out until used.
12987         (glyph_layout): ditto.
12988
12989 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
12990
12991         * insdel.c (signal_after_change): Remove extraneous unbind_to().