update.
[chise/xemacs-chise.git] / src / ChangeLog
1 2003-02-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2
3         * char-ucs.h (LEADING_BYTE_GT_PJ_{1..11}): Deleted.
4
5         * mule-charset.c (Vcharset_ideograph_gt_pj_{1..11}): Deleted.
6         (Qideograph_gt_pj_{1..11}): Deleted.
7         (syms_of_mule_charset): Delete `ideograph-gt-pj-{1..11}'.
8         (complex_vars_of_mule_charset): Likewise.
9
10 2003-02-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
11
12         * mule-charset.c (Vcharset_ucs_big5): Deleted.
13         (Vcharset_ideograph_gt): Deleted.
14         (Qucs_big5): Deleted.
15         (Qideograph_gt): Deleted.
16         (syms_of_mule_charset): Delete symbol `ucs-big5' and
17         `ideograph-gt'.
18         (complex_vars_of_mule_charset): Delete coded-charset `ucs-big5'
19         and `ideograph-gt'.
20
21         * char-ucs.h (LEADING_BYTE_UCS_BIG5): Deleted.
22         (LEADING_BYTE_GT): Deleted.
23         (GC_CHARSETP): Deleted.
24         (MIN_CHAR_GT): Deleted.
25         (MAX_CHAR_GT): Deleted.
26
27 2003-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
28
29         * chartab.c (Fput_char_attribute): Canonicalise charset-aliases.
30
31 2003-01-05  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
32
33         * mule-charset.c (Vcharset_ideograph_cbeta): Deleted.
34         (Qideograph_cbeta): Deleted.
35         (syms_of_mule_charset): Don't define `ideograph-cbeta'.
36         (complex_vars_of_mule_charset): Likewise.
37
38         * char-ucs.h (LEADING_BYTE_CBETA): Deleted.
39         (MIN_CHAR_CBETA): Comment out.
40         (MAX_CHAR_CBETA): Likewise.
41
42 2002-12-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
43
44         * mule-charset.c (charset_lookup_description_1): Use
45         `NUM_LEADING_BYTES' in UTF-2000.
46
47 2002-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
48
49         * mule-charset.c (Vcharset_china3_jef): Deleted.
50         (Qchina3_jef): Deleted.
51         (syms_of_mule_charset): Don't define `china3-jef'.
52         (complex_vars_of_mule_charset): Likewise.
53
54         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Deleted.
55         (MIN_CHAR_CHINA3_JEF): Comment out.
56         (MAX_CHAR_CHINA3_JEF): Comment out.
57
58 2002-11-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
59
60         * mule-charset.c (Vcharset_ucs_gb): New variable.
61         (Qucs_gb): New variable.
62         (syms_of_mule_charset): Add new symbol `ucs-gb'.
63         (complex_vars_of_mule_charset): Add new coded-charset `ucs-gb'.
64
65         * char-ucs.h (LEADING_BYTE_UCS_GB): New macro.
66
67 2002-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
68
69         * mule-charset.c (charset_code_point): if a coded-charset has a
70         final-byte, don't inherit the builtin range of the mother CCS.
71
72 2002-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
73
74         * mule-charset.c (charset_code_point): Fix problem about
75         inheritance.
76
77 2002-11-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
78
79         * mule-charset.c (decode_builtin_char): Reorganized.
80
81 2002-10-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
82
83         * text-coding.c (char_encode_shift_jis): Modify for
84         `charset_code_point'.
85         (char_encode_big5): Likewise.
86         (char_encode_utf8): Likewise.
87         (char_encode_iso2022): Likewise.
88
89         * mule-charset.c (charset_code_point): Add new argument
90         `defined_only'.
91         (Fencode_char): Add new optional argument `defined_only'.
92
93         * chartab.c (put_char_table): Modify for `charset_code_point'.
94         (map_char_table): Likewise.
95
96         * char-ucs.h (charset_code_point): Add new argument
97         `defined_only'.
98         (encode_char_1): Modify for `charset_code_point'.
99
100 2002-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
101
102         * mule-charset.c (complex_vars_of_mule_charset): Don't specify
103         `MIN_CHAR_THAI' and `MAX_CHAR_THAI' for `thai-tis620'.
104
105 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
106
107         * mule-charset.c (Vcharset_jis_x0208): New variable in UTF-2000.
108         (Qjis_x0208): Likewise.
109         (decode_builtin_char): Prefer XCHARSET_MAX_CODE(charset) than
110         XCHARSET_FINAL(charset).
111         (charset_code_point): Modify condition for final-byte based
112         builtin-chars.
113         (syms_of_mule_charset): Add new symbol `=jis-x0208' in UTF-2000.
114         (complex_vars_of_mule_charset): Add new coded-charset `=jis-x0208'
115         in UTF-2000; specify `=jis-x0208' as the mother of
116         `japanese-jisx0208-1978', `japanese-jisx0208' and
117         `japanese-jisx0208-1990' in UTF-2000.
118
119 2002-10-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
120
121         * char-ucs.h (LEADING_BYTE_JIS_X0208): New macro.
122
123 2002-07-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
124
125         * mule-charset.c (charset_code_point): If CHARSET_CONVERSION is
126         CONVERSION_IDENTICAL, identical conversion is used even if a CCS
127         is ISO-2022 style; instead of it, CONVERSION_94, CONVERSION_96,
128         CONVERSION_94x94, CONVERSION_96x96, CONVERSION_94x94x94,
129         CONVERSION_96x96x96, CONVERSION_94x94x94x94 and
130         CONVERSION_96x96x96x96 are introduced.
131         (complex_vars_of_mule_charset): Specify CONVERSION_96 instead of
132         CONVERSION_IDENTICAL for thai-tis620; Specify CONVERSION_94x94
133         instead of CONVERSION_IDENTICAL for japanese-jisx0208-1990.
134
135         * char-ucs.h (CONVERSION_94): New macro.
136         (CONVERSION_96): New macro.
137         (CONVERSION_94x94): New macro.
138         (CONVERSION_96x96): New macro.
139         (CONVERSION_94x94x94): New macro.
140         (CONVERSION_96x96x96): New macro.
141         (CONVERSION_94x94x94x60): New macro.
142         (CONVERSION_94x94x94x94): New macro.
143         (CONVERSION_96x96x96x96): New macro.
144
145 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
146
147         * lisp.h: Add an EXFUN for `Fchar_ref_p'.
148
149         * fns.c (Qideographic_structure): New variable.
150         (Qkeyword_char): New variable.
151         (ids_format_unit): New function.
152         (Fideographic_structure_to_ids): New function.
153         (syms_of_fns): Add new symbols `ideographic-structure' and
154         `:char'; add new builtin function `ideographic-structure-to-ids'.
155
156         * data.c (Fchar_ref_p): New function.
157         (syms_of_data): Add new builtin function `char-ref-p'.
158
159         * chartab.h: Add an EXFUN for `Ffind_char'.
160
161 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
162
163         * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
164         and `COMPOSE_ADD_CHAR'.
165         (decode_coding_iso2022): Use `decode_flush_er_chars'.
166
167 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
168
169         * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
170         instead of `DECODE_ADD_UCS_CHAR'.
171         (COMPOSE_ADD_CHAR): Likewise.
172
173 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
174
175         * text-coding.c (decode_flush_er_chars): New inline function.
176         (decode_add_er_char): New function.
177         (decode_coding_utf8): Use `decode_flush_er_chars' and
178         `decode_add_er_char'.
179
180 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
181
182         * text-coding.c (decode_coding_utf8): Flush for er_buf must be
183         done before `decode_output_utf8_partial_char'.
184
185         * mule-charset.c (complex_vars_of_mule_charset): Specify
186         `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
187         `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
188
189 2002-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
190
191         * mule-charset.c (decode_defined_char): New function; search
192         mother.
193         (decode_builtin_char): Don't search mother if
194         XCHARSET_MAX_CODE(charset) == 0.
195         (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
196         == 0 even if code >= XCHARSET_MAX_CODE(charset).
197         (Fdecode_char): Use `decode_defined_char' instead of
198         `DECODE_DEFINED_CHAR'.
199         (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
200         mother of `Vcharset_ucs_jis'.
201
202         * text-coding.c (decode_coding_big5): Use `decode_defined_char'
203         instead of `DECODE_DEFINED_CHAR'.
204
205         * char-ucs.h (decode_defined_char): Renamed from
206         `DECODE_DEFINED_CHAR'; changed to normal function.
207         (DECODE_CHAR): Use `decode_defined_char' instead of
208         `DECODE_DEFINED_CHAR'.
209
210         * lisp.h: Add `EXFUN' for `Fstring_to_number'.
211
212 2002-07-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
213
214         * char-ucs.h: Add `extern' for `Vcharset_ucs'.
215
216         * text-coding.c (Vcoded_charset_entity_reference_alist): New
217         variable.
218         (Quse_entity_reference): New variable.
219         (Qd): New variable.
220         (Qx): New variable.
221         (QX): New variable.
222         (coding_system_description): Add description for
223         `ccs_priority_list'.
224         (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
225         (allocate_coding_system): Initialize `ccs_priority_list' in
226         UTF-2000.
227         (Fmake_coding_system): Add description about
228         'use-entity-reference; setup
229         CODING_SYSTEM_USE_ENTITY_REFERENCE(codesys).
230         (Fcoding_system_property): Accept `disable-composition' and
231         `use-entity-reference' in UTF-2000.
232         (struct decoding_stream): Add new member `er_counter' and `er_buf'
233         in UTF-2000.
234         (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
235         (decode_coding_utf8): Decode entity-reference if
236         CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
237         (char_encode_utf8): Encode non-Unicode characters as
238         entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
239         (str->codesys).
240         (syms_of_file_coding): Add new symbols `use-entity-reference',
241         `d', `x', `X'.
242         (vars_of_file_coding): Add new variable
243         `coded-charset-entity-reference-alist'.
244         (complex_vars_of_file_coding): Declare `disable-composition' and
245         `use-entity-reference' to be coding-system-properties in UTF-2000.
246
247         * file-coding.h (struct Lisp_Coding_System): Add new member
248         `use_entity_reference' and `ccs_priority_list'.
249         (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
250         (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
251         (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
252
253 2002-02-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
254
255         * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
256
257 2002-02-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
258
259         * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
260         `XCHARSET_GRAPHIC(ccs)'.
261
262 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
263
264         * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
265         for decoding-table.
266
267 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
268
269         * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
270         instead of `XCHARSET_CHARS'.
271
272 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
273
274         * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
275         (XCHARSET_BYTE_SIZE): Likewise.
276
277         * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
278         mule-charset.c].
279         (XCHARSET_BYTE_SIZE): Likewise.
280
281 2002-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
282
283         * char-ucs.h (decoding_table_check_elements): Delete prototype.
284         (get_ccs_octet_table): New inline function.
285         (put_ccs_octet_table): Likewise.
286         (decoding_table_put_char): Use `get_ccs_octet_table' and
287         `put_ccs_octet_table'.
288         (decoding_table_remove_char): Use `decoding_table_put_char'.
289         (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
290
291         * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
292         into encoding_table.
293         (make_charset): Use Qunbound instead Qnil as initial value of
294         decoding_table.
295
296 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
297
298         * mule-charset.c (put_char_ccs_code_point): Modify for
299         `decoding_table_remove_char' and `decoding_table_put_char'.
300         (remove_char_ccs): Modify for `decoding_table_remove_char'.
301
302         * char-ucs.h (decoding_table_remove_char): Change arguments to
303         hide decoding_table vector.
304         (decoding_table_put_char): Likewise.
305
306 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
307
308         * mule-charset.c (decoding_table_remove_char): Moved to
309         char-ucs.h.
310         (decoding_table_put_char): Likewise.
311
312         * char-ucs.h (decoding_table_check_elements): New prototype [moved
313         from mule-charset.c].
314         (decoding_table_remove_char): New inline function [moved from
315         mule-charset.c].
316         (decoding_table_put_char): Likewise.
317
318 2002-04-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
319
320         * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
321         instead of `DECODE_CHAR' for mother; don't use special code for
322         chinese-big5 to use code space of chinese-big5-1 and
323         chinese-big5-2.
324         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
325         `MAX_CHAR_BIG5_CDP' for chinese-big5.
326
327         * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
328         (MAX_CHAR_BIG5_CDP): Revival.
329
330 2002-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
331
332         * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
333         the XLFD registry-encoding name of `chinese-big5'.
334
335 2002-04-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
336
337         * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
338         (Qchinese_big5_cdp): Deleted.
339         (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
340         (complex_vars_of_mule_charset): Delete coded-charset
341         `chinese-big5-cdp'.
342
343         * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
344         (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
345         `CHARSET_ID_OFFSET - n' for private CCS.
346         (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
347         (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
348         of `MIN_LEADING_BYTE'.
349         (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
350         `(CHARSET_ID_OFFSET - 97)'.
351         (MIN_CHAR_BIG5_CDP): Deleted.
352         (MAX_CHAR_BIG5_CDP): Deleted.
353
354 2002-01-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
355
356         * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
357         extension.
358
359 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
360
361         * mule-charset.c (decode_builtin_char): Support mother charsets.
362
363 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
364
365         * mule-charset.c (Q94x94x60): New variable.
366         (charset_code_point): Support conversion `94x94x60'.
367         (Fmake_charset): Likewise.
368         (syms_of_mule_charset): Add new symbol `94x94x60'.
369
370         * char-ucs.h (CONVERSION_94x94x60): New macro.
371
372 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
373
374         * mule-charset.c (charset_code_point): Unify code about
375         `code-offset'.
376
377 2001-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
378
379         * mule-charset.c (charset_code_point): Merge code about builtin
380         characters into code about mother charsets; don't use
381         `range_charset_code_point'.
382         (range_charset_code_point): Deleted.
383
384 2001-12-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
385
386         * mule-charset.c (Qcode_offset): New variable.
387         (Fmake_charset): Use `XUINT' to get value of `min-code' and
388         `max-code'; accept new property `code-offset'.
389         (syms_of_mule_charset): Add new symbol `code-offset'.
390
391 2001-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
392
393         * mule-charset.c (range_charset_code_point): Fixed.
394
395 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
396
397         * mule-charset.c (decode_builtin_char): Change semantics of
398         code-offset of coded-charset.
399         (charset_code_point): Likewise.
400         (range_charset_code_point): Likewise.
401         (complex_vars_of_mule_charset): Modify for the change.
402
403 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
404
405         * mule-charset.c (Fencode_char): Reverse arguments.
406
407         * mule-charset.c (charset_code_point): Fixed.
408
409 2001-12-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
410
411         * mule-charset.c (Vcharset_mojikyo): Deleted.
412         (Vcharset_mojikyo_2022_1): Deleted.
413         (Vcharset_mojikyo_pj_{1..21}): Deleted.
414         (Qmin_code): New variable in UTF-2000.
415         (Qmax_code): Likewise.
416         (Qmother): Likewise.
417         (Qconversion): Likewise.
418         (Q94x60): Likewise.
419         (Qmojikyo): Deleted.
420         (Qmojikyo_2022_1): Deleted.
421         (Qmojikyo_pj_{1..22}): Deleted.
422         (mark_charset): Mark `cs->mother'.
423         (charset_description): Add description for `mother'.
424         (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
425         new arguments `mother' and `conversion'; use
426         `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
427         (charset_code_point): Moved from char-ucs.h; support `mother'
428         charset feature.
429         (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
430         of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
431         (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
432         UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
433         allow 2 as the value of `graphic' in UTF-2000; add new properties
434         `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
435         require `final' in UTF-2000; modify for `make_charset'.
436         (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
437         instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
438         (Fcharset_property): Support `mother', `min-code' and `max-code'.
439         (Fencode_char): New function.
440         (syms_of_mule_charset): Add new builtin function `encode-char' in
441         UTF-2000; add new symbols `min-code', `max-code', `mother',
442         `conversion' and `94x60'; delete symbols `mojikyo',
443         `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
444         (complex_vars_of_mule_charset): Modify for `make_charset' change;
445         delete coded-charsets `mojikyo', `mojikyo-2022-1' and
446         `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
447
448         * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
449         `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
450
451         * char-ucs.h (Vcharset_mojikyo): Deleted.
452         (Vcharset_mojikyo_2022_1): Deleted.
453         (LEADING_BYTE_MOJIKYO): Deleted.
454         (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
455         (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
456         (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
457         (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
458         add new member `mother'; add new member `conversion'.
459         (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
460         (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
461         (CHARSET_MOTHER): New macro.
462         (CHARSET_CONVERSION): New macro.
463         (CONVERSION_IDENTICAL): New macro.
464         (CONVERSION_94x60): New macro.
465         (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
466         (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
467         (XCHARSET_MOTHER): New macro.
468         (XCHARSET_CONVERSION): New macro.
469         (MIN_CHAR_MOJIKYO): Deleted.
470         (MAX_CHAR_MOJIKYO): Deleted.
471         (DECODE_MOJIKYO_2022): Deleted.
472         (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
473         (charset_code_point): Changed to non-inline function.
474         (encode_char_1): Use `charset_code_point'.
475         (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
476
477 2001-12-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
478
479         * lread.c (read_compiled_function): Fix prototype.
480         (read_vector): Likewise.
481
482 2001-12-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
483
484         * lrecord.h (struct lrecord_header): Delete `older'.
485         (set_lheader_implementation): Delete code for `older'.
486         (set_lheader_older_implementation): Deleted.
487         (enum lrecord_type): Delete `lrecord_type_char_id_table'.
488         (OLDER_RECORD_P): Deleted.
489         (OLDER_RECORD_HEADER_P): Deleted.
490         (alloc_older_lcrecord): Deleted.
491         (alloc_older_lcrecord_type): Deleted.
492
493         * alloc.c (all_older_lcrecords): Deleted.
494         (alloc_older_lcrecord): Deleted.
495         (disksave_object_finalization_1): Delete code for older objects.
496         (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
497         (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
498
499 2001-12-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
500
501         * mule-charset.c (decoding_table_put_char): Use `make_vector'
502         instead of `make_older_vector'.
503         (put_char_ccs_code_point): Likewise.
504         (mark_charset): Mark `cs->decoding_table'.
505         (Fset_charset_mapping_table): Don't use `make_vector_newer'.
506
507         * lisp.h (make_older_vector): Deleted.
508         (make_vector_newer): Deleted.
509
510         * config.h.in (HAVE_GGC): Deleted.
511
512         * alloc.c (make_older_vector): Deleted.
513         (make_vector_newer_1): Deleted.
514         (make_vector_newer): Deleted.
515
516 2001-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
517
518         * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
519         (Qideograph_daikanwa_2): New variable.
520         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
521         (complex_vars_of_mule_charset): Add new coded-charset
522         `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
523         `LEADING_BYTE_DAIKANWA'.
524
525         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
526         (LEADING_BYTE_DAIKANWA_1): New macro.
527         (LEADING_BYTE_DAIKANWA_2): New macro.
528         (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
529
530 2001-12-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
531
532         * mule-charset.c (complex_vars_of_mule_charset): Change
533         DOC-strings and registry of `ideograph-daikanwa'; now it indicates
534         the second revised version.
535
536 2001-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
537
538         * mule-charset.c (Vcharset_ucs_smp): New variable.
539         (Vcharset_ucs_sip): New variable.
540         (Qucs_smp): New variable.
541         (Qucs_sip): New variable.
542         (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
543         MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
544         (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
545         (complex_vars_of_mule_charset): Modify middle-DOC and registry of
546         `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
547         charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
548
549         * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
550         (LEADING_BYTE_UCS_SIP): New macro.
551         (MIN_CHAR_SMP): New macro.
552         (MAX_CHAR_SMP): New macro.
553         (MIN_CHAR_SIP): New macro.
554         (MAX_CHAR_SIP): New macro.
555
556 2001-11-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
557
558         * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
559         utf-2000.
560
561 2001-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
562
563         * mule-charset.c (put_char_ccs_code_point): Return canonicalized
564         value; don't store value into `encoding_table' of `Lisp_Charset'.
565         (mark_charset): `encoding_table' was deleted.
566         (charset_description): Likewise.
567         (make_charset): Likewise.
568         (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
569         `put_char_ccs_code_point'.
570
571         * chartab.h (Fput_char_attribute): New EXFUN.
572
573         * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
574         is unified with normal symbol space.
575         (Fget_char_attribute): Likewise.
576         (Fput_char_attribute): Likewise; behavior of
577         `put_char_ccs_code_point' is changed.
578
579         * char-ucs.h: Include "elhash.h".
580         (Vchar_attribute_hash_table): New external variable.
581         (struct Lisp_Charset): Delete `encoding_table'.
582         (CHARSET_ENCODING_TABLE): New implementation; refer
583         `Vchar_attribute_hash_table' instead of `encoding_table' of struct
584         `Lisp_Charset'.
585
586 2001-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
587
588         * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
589         (cs) == 0.
590
591 2001-11-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
592
593         * text-coding.c (char_encode_big5): Prefer charset-g1 than
594         `chinese-big5'.
595
596 2001-11-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
597
598         * chartab.c (uint8_byte_table_description): New constant.
599         (uint8-byte-table): Use `uint8_byte_table_description'.
600         (uint16_byte_table_description): New constant.
601         (uint16-byte-table): Use `uint16_byte_table_description'.
602
603 2001-10-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
604
605         * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
606         range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
607
608 2001-10-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
609
610         * mule-charset.c (Vcharset_ucs_ks): New variable.
611         (Qucs_ks): New variable.
612         (syms_of_mule_charset): Add new symbol `ucs-ks'.
613         (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
614
615         * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
616
617 2001-10-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
618
619         * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
620         (Fdecode_char): Likewise.
621
622         * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
623         chartab.h.
624         (Fdefine_char): Modify for Fdecode_char.
625         (Ffind_char): Likewise.
626
627         * mule-charset.c (Fdecode_char): Add new optional argument
628         `defined-only'.
629         (Fdecode_builtin_char): Modify for `Fdecode_char'.
630
631 2001-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
632
633         * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
634         -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
635         (allocate_coding_system): Initialize initial-charsets of
636         CODESYS_BIG5 in XEmacs UTF-2000.
637         (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
638         CODESYS_BIG5 in XEmacs UTF-2000.
639         (decode_coding_big5): Use initial-charset-g0 and -g1 of
640         CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
641
642         * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
643         variables.
644         (Qideograph_hanziku_{1 .. 12}): Likewise.
645         (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
646         .. 12}'.
647         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
648         `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
649         `ideograph-hanziku-{1 .. 12}'.
650
651         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
652         (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
653         ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
654         ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
655         (DECODE_DEFINED_CHAR): New inline function.
656         (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
657
658 2001-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
659
660         * mule-charset.c (Vcharset_china3_jef): Renamed from
661         `Vcharset_japanese_jef_china3'.
662         (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
663         (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
664         `{MIN|MAX}_CHAR_JEF_CHINA3'..
665         (syms_of_mule_charset): Rename `china3-jef' from
666         `japanese-jef-china3'.
667         (complex_vars_of_mule_charset): Likewise; rename
668         `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
669
670         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
671         `LEADING_BYTE_JEF_CHINA3'.
672         (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
673         (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
674
675 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
676
677         * mule-charset.c (encode_builtin_char_1): Comment out special code
678         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
679
680         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
681         (MAX_CHAR_MOJIKYO_0): Comment out.
682         (MIN_CHAR_CBETA): Changed to 0x00E20000.
683         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
684         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
685         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
686
687 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
688
689         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
690         (Qideograph_cbeta): New variable.
691         (encode_builtin_char_1): Comment out special code for
692         coded-charset `mojikyo' and `japanese-jef-china3'.
693         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
694         (complex_vars_of_mule_charset): Add new coded-charset
695         `ideograph-cbeta'.
696
697         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
698         (MIN_CHAR_CBETA): New macro.
699         (MAX_CHAR_CBETA): New macro.
700
701 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
702
703         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
704         (LEADING_BYTE_JEF_CHINA3): New macro.
705         (MIN_CHAR_JEF_CHINA3): New macro.
706         (MAX_CHAR_JEF_CHINA3): Likewise.
707         (DECODE_CHAR): Fixed.
708
709 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
710
711         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
712         (Qjapanese_jef_china3): New variable.
713         (encode_builtin_char_1): Support `japanese-jef-china3'.
714         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
715         (complex_vars_of_mule_charset): Add new coded-charset
716         `japanese-jef-china3'.
717
718 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
719
720         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
721         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
722         94^4, 96^3, 96^4, 128^n and 256^n set.
723         (put_char_table): Use `XCHARSET_CELL_RANGE'.
724         (map_char_table): Likewise.
725
726 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
727
728         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
729         UTF-2000.
730
731 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
732
733         * chartab.h (get_char_id_table): New inline function.
734
735         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
736         function.
737
738 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
739
740         * chartab.h (decode_char_table_range): New prototype in XEmacs
741         UTF-2000.
742         (put_char_id_table): New inline function in XEmacs UTF-2000.
743
744         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
745         function.
746         (decode_char_table_range): Delete static declaration in XEmacs
747         UTF-2000.
748
749 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
750
751         * chartab.c (put_char_id_table): Use `put_char_table'.
752
753 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
754
755         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
756         (map_over_uint16_byte_table): Likewise.
757         (map_over_byte_table): Likewise.
758         (map_char_table): Modify for `map_over_uint8_byte_table',
759         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
760         UTF-2000.
761
762 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
763
764         * chartab.c (struct map_char_table_for_charset_arg): New
765         structure.
766         (map_char_table_for_charset_fun): New function.
767         (map_char_table): Use `map_char_table' for encoding_table of
768         `range->charset'.
769
770 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
771
772         * chartab.c (map_char_table): Check a character is found in
773         range->charset instead of non default value is defined in
774         char-table when range is CHARTAB_RANGE_ROW.
775
776 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
777
778         * chartab.c (map_char_id_table): Deleted.
779         (Fmap_char_attribute): Use `map_char_table' instead of
780         `map_char_id_table'.
781
782 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
783
784         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
785         UTF-2000.
786         (update_syntax_table): Deleted in XEmacs UTF-2000.
787
788         * syntax.c (find_defun_start): Use `syntax_table' instead of
789         `mirror_syntax_table' in XEmacs UTF-2000.
790         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
791         UTF-2000.
792         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
793         XEmacs UTF-2000.
794         (Fmatching_paren): Likewise.
795         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
796         in XEmacs UTF-2000.
797         (find_start_of_comment): Likewise.
798         (find_end_of_comment): Likewise.
799         (Fforward_comment): Likewise.
800         (scan_lists): Likewise.
801         (char_quoted): Likewise.
802         (Fbackward_prefix_chars): Likewise.
803         (scan_sexps_forward): Likewise.
804         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
805         (update_syntax_table): Likewise.
806
807         * search.c (skip_chars): Use `syntax_table' instead of
808         `mirror_syntax_table' in XEmacs UTF-2000.
809         (wordify): Likewise.
810         (Freplace_match): Likewise.
811
812         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
813         `mirror_syntax_table' in XEmacs UTF-2000.
814         (WORDCHAR_P_UNSAFE): Likewise.
815         (re_match_2_internal): Likewise.
816
817         * font-lock.c (find_context): Use `buf->syntax_table' instead of
818         `buf->mirror_syntax_table' in XEmacs UTF-2000.
819
820         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
821         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
822
823         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
824         XEmacs UTF-2000.
825
826         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
827         UTF-2000.
828         (print_char_table): Print `default_value' in XEmacs UTF-2000.
829         (char_table_description): Delete `mirror_table' in XEmacs
830         UTF-2000.
831         (fill_char_table): Don't call `update_syntax_table' in XEmacs
832         UTF-2000.
833         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
834         (Fcopy_char_table): Likewise.
835         (put_char_table): Don't call `update_syntax_table' in XEmacs
836         UTF-2000.
837
838         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
839         `buf->mirror_syntax_table' in XEmacs UTF-2000.
840         (casify_region_internal): Likewise.
841
842         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
843
844         * buffer.c (common_init_complex_vars_of_buffer): Don't use
845         `mirror_syntax_table' in XEmacs UTF-2000.
846
847         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
848         `buf->mirror_syntax_table' in XEmacs UTF-2000.
849         (Fexpand_abbrev): Likewise.
850
851 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
852
853         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
854
855 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
856
857         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
858         (map_over_uint16_byte_table): Likewise.
859         (map_over_byte_table): Likewise.
860         (get_char_id_table): Refer `cit->default_value'.
861         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
862         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
863         of character-id ranges.
864         (mark_char_table): Mark `ct->default_value'.
865         (char_table_description): Add `default_value'.
866         (fill_char_table): Use `default_value'.
867         (decode_char_table_range): Decode `nil' as
868         `CHARTAB_RANGE_DEFAULT'.
869         (get_char_id_table): Refer `cit->default_value'.
870         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
871         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
872         temporary hack; check value of char-table is bound or not.
873         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
874
875         * chartab.h (struct Lisp_Char_Table): Add new member
876         `default_value' in XEmacs UTF-2000.
877         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
878         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
879         UTF-2000.
880
881 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
882
883         * chartab.h (Lisp_Char_ID_Table): Deleted.
884
885         * chartab.c (char_table_description): Fix typo.
886         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
887         `Lisp_Char_ID_Table'.
888
889 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
890
891         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
892         `CHAR_ID_TABLE_P'.
893
894         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
895         `CHAR_ID_TABLE_P'.
896
897         * chartab.h (XCHAR_ID_TABLE): Deleted.
898         (XSETCHAR_ID_TABLE): Deleted.
899         (CHAR_ID_TABLE_P): Deleted.
900
901         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
902         `CHAR_ID_TABLE_P'.
903         (Fget_composite_char): Likewise.
904         (put_char_table): Likewise.
905         (add_char_attribute_alist_mapper): Fixed.
906         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
907         `CHAR_ID_TABLE_P'.
908         (Fget_char_attribute): Likewise.
909         (Fget_char_attribute): Likewise.
910         (Fmap_char_attribute): Likewise.
911
912         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
913         `CHAR_ID_TABLE_P'.
914         (encode_char_1): Likewise.
915
916 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
917
918         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
919         `XCHAR_ID_TABLE'.
920
921         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
922         instead of `XCHAR_ID_TABLE'.
923         (remove_char_ccs): Likewise.
924
925         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
926         `XCHAR_ID_TABLE'.
927         (Fget_composite_char): Likewise.
928         (Fchar_variants): Likewise.
929         (put_char_table): Likewise.
930         (add_char_attribute_alist_mapper): Likewise.
931         (Fchar_attribute_alist): Likewise.
932         (Fget_char_attribute): Likewise.
933         (Fput_char_attribute): Likewise.
934         (Fmap_char_attribute): Likewise.
935         (Fmap_char_attribute): Likewise.
936
937         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
938         `XCHAR_ID_TABLE'.
939         (encode_char_1): Likewise.
940
941 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
942
943         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
944         `Lisp_Char_ID_Table'.
945         (mark_char_id_table): Deleted.
946         (print_char_id_table): Likewise.
947         (char_id_table_equal): Likewise.
948         (char_id_table_hash): Likewise.
949         (char_id_table_description): Likewise.
950         (char_id_table): Likewise.
951         (make_char_id_table): Use `Fmake_char_table' and
952         `fill_char_table'.
953         (get_char_id_table): Use `Lisp_Char_Table' instead of
954         `Lisp_Char_ID_Table'.
955         (put_char_id_table): Likewise.
956         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
957         `XCHAR_ID_TABLE'.
958         (Fremove_char_attribute): Likewise.
959         (syms_of_chartab): Don't define type `char-id-table'.
960
961         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
962         (char_id_table): Likewise.
963         (GC_CHAR_ID_TABLE_P): Likewise.
964         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
965         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
966         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
967         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
968         (get_char_id_table): Use `Lisp_Char_Table' instead of
969         `Lisp_Char_ID_Table'.
970         (put_char_id_table_0): Likewise.
971         (put_char_id_table): Likewise.
972
973 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
974
975         * chartab.h: Lisp_Byte_Table related codes are moved from
976         chartab.h.
977
978         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
979
980 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
981
982         * chartab.h: Don't include "chartab.h".
983         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
984         (Lisp_Char_ID_Table): Likewise.
985         (char_id_table): Likewise.
986         (XCHAR_ID_TABLE): Likewise.
987         (XSETCHAR_ID_TABLE): Likewise.
988         (CHAR_ID_TABLE_P): Likewise.
989         (GC_CHAR_ID_TABLE_P): Likewise.
990         (get_char_id_table): Likewise.
991
992         * char-ucs.h: Include "chartab.h".
993         (struct Lisp_Char_ID_Table): Moved to chartab.h.
994         (Lisp_Char_ID_Table): Likewise.
995         (char_id_table): Likewise.
996         (XCHAR_ID_TABLE): Likewise.
997         (XSETCHAR_ID_TABLE): Likewise.
998         (CHAR_ID_TABLE_P): Likewise.
999         (GC_CHAR_ID_TABLE_P): Likewise.
1000         (get_char_id_table): Likewise.
1001
1002 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1003
1004         * chartab.c (copy_uint8_byte_table): New function.
1005         (copy_uint16_byte_table): New function.
1006         (copy_byte_table): New function.
1007         (map_over_uint8_byte_table): Modify to avoid huge numbers of
1008         characters to call.
1009         (map_over_uint16_byte_table): Likewise.
1010         (map_over_byte_table): Likewise.
1011         (get_byte_table): Move prototype to chartab.h.
1012         (put_byte_table): Likewise.
1013         (put_char_id_table_0): Moved to chartab.h.
1014         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
1015         (char_table_entry_equal): Likewise.
1016         (char_table_entry_hash): Likewise.
1017         (char_table_entry_description): Likewise.
1018         (char_table_entry): Likewise.
1019         (make_char_table_entry): Likewise.
1020         (copy_char_table_entry): Likewise.
1021         (get_non_ascii_char_table_value): Likewise.
1022         (map_over_charset_ascii): Likewise.
1023         (map_over_charset_control_1): Likewise.
1024         (map_over_charset_row): Likewise.
1025         (map_over_other_charset): Likewise.
1026         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
1027         (print_char_table): Likewise.
1028         (char_table_equal): Likewise.
1029         (char_table_hash): Likewise.
1030         (char_table_description): Likewise.
1031         (fill_char_table): Likewise.
1032         (Fcopy_char_table): Likewise.
1033         (get_char_table): Likewise.
1034         (Fget_range_char_table): Likewise.
1035         (put_char_table): Likewise.
1036         (map_char_table): Likewise.
1037         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
1038         UTF-2000.
1039
1040 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1041
1042         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
1043         `Vauto_fill_chars' in XEmacs UTF-2000.
1044
1045         * chartab.h (get_byte_table): New prototype [moved from
1046         chartab.c].
1047         (put_byte_table): Likewise [moved from chartab.c].
1048         (put_char_id_table_0): New inline function [moved from chartab.c].
1049         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
1050         (Lisp_Char_Table_Entry): Likewise.
1051         (char_table_entry): Likewise.
1052         (XCHAR_TABLE_ENTRY): Likewise.
1053         (XSETCHAR_TABLE_ENTRY): Likewise.
1054         (CHAR_TABLE_ENTRYP): Likewise.
1055         (CHECK_CHAR_TABLE_ENTRY): Likewise.
1056         (NUM_ASCII_CHARS): Likewise.
1057         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
1058         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
1059
1060 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1061
1062         * chartab.c (get_char_id_table): Change interface.
1063         (put_char_id_table_0): New function.
1064         (put_char_id_table): Change interface; new implementation.
1065         (Fget_composite_char): Modify for interface change of
1066         `get_char_id_table'.
1067         (Fchar_variants): Likewise.
1068         (add_char_attribute_alist_mapper): Likewise.
1069         (Fchar_attribute_alist): Likewise.
1070         (Fget_char_attribute): Likewise.
1071         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
1072         as same as character as the first argument like `put-char-table';
1073         modify for interface change of `put_char_id_table'.
1074         (Fremove_char_attribute): Modify for interface change of
1075         `put_char_id_table'.
1076
1077 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1078
1079         * text-coding.c: Sync up with XEmacs 21.2.41.
1080         (COMPOSE_ADD_CHAR): Modify for interface change of
1081         `get_char_id_table'.
1082
1083         * mule-charset.c (put_char_ccs_code_point): Modify for interface
1084         change of `put_char_id_table'.
1085         (remove_char_ccs): Likewise.
1086
1087         * chartab.h (put_char_id_table): Change interface.
1088
1089         * char-ucs.h (get_char_id_table): Change interface.
1090         (charset_code_point): Modify for interface change of
1091         `get_char_id_table'.
1092         (encode_char_1): Likewise.
1093
1094 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1095
1096         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
1097         argument `ccs'.
1098         (map_over_uint16_byte_table): Likewise.
1099         (map_over_byte_table): Likewise.
1100         (map_char_id_table): Add new argument `range' like
1101         `map_char_table'.
1102         (Fmap_char_attribute): Add new argument `range' like
1103         `Fmap_char_table'.
1104
1105 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1106
1107         * chartab.c (map_over_uint8_byte_table): Change interface of
1108         mapping function to use struct chartab_range instead of Emchar.
1109         (map_over_uint16_byte_table): Likewise.
1110         (map_over_byte_table): Likewise.
1111         (map_char_id_table): Likewise.
1112         (struct slow_map_char_id_table_arg): Deleted.
1113         (slow_map_char_id_table_fun): Deleted.
1114         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
1115         function `slow_map_char_table_fun' instead of struct
1116         `slow_map_char_id_table_arg' and function
1117         `slow_map_char_id_table_fun'.
1118
1119 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1120
1121         * mule-charset.c: Move char-it-table related codes to chartab.c.
1122         (Vutf_2000_version): Moved to chartab.c.
1123         (Fdefine_char): Likewise.
1124         (Ffind_char): Likewise.
1125         (syms_of_mule_charset): Move types `uint8-byte-table',
1126         `uint16-byte-table', `byte-table' and `char-id-table' to
1127         chartab.c; move functions `char_attribute_list,
1128         `find_char_attribute_table, `char_attribute_alist,
1129         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
1130         `map_char_attribute, `define_char, `find_char, `char_variants and
1131         `get_composite_char to chartab.c; move symbols `=>ucs',
1132         `->decomposition', `compat', `isolated', `initial', `medial',
1133         `final', `vertical', `noBreak', `fraction', `super', `sub',
1134         `circle', `square', `wide', `narrow', `small' and `font' to
1135         chartab.c.
1136         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
1137         setting codes for `Vcharacter_composition_table' and
1138         `Vcharacter_variant_table' to chartab.c.
1139         (complex_vars_of_mule_charset): Move setting code for
1140         `Vchar_attribute_hash_table' to chartab.c.
1141
1142         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
1143         (make_char_id_table): New prototype.
1144         (put_char_id_table): Likewise.
1145         (Fget_char_attribute): Likewise.
1146
1147         * chartab.c: Move char-id-table related code from mule-charset.c.
1148         (Vutf_2000_version): Moved from mule-charset.c.
1149
1150         * char-ucs.h (Qucs): New external variable.
1151         (put_char_ccs_code_point): New prototype.
1152         (remove_char_ccs): Likewise.
1153
1154 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1155
1156         * mule-charset.c (Vcharset_ucs_jis): New variable.
1157         (Qucs_jis): Likewise.
1158         (syms_of_mule_charset): Add new symbol `ucs-jis'.
1159         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
1160
1161         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
1162
1163 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1164
1165         * mule-charset.c (map_over_uint8_byte_table): New function.
1166         (map_over_uint16_byte_table): Likewise.
1167         (map_over_byte_table): Likewise.
1168         (map_char_id_table): Likewise.
1169         (slow_map_char_id_table_fun): Likewise.
1170         (Fmap_char_attribute): Likewise.
1171         (syms_of_mule_charset): Add new function `map-char-attribute'.
1172
1173 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1174
1175         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
1176         (syms_of_mule_charset): Add new function `find-char'.
1177
1178 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1179
1180         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
1181         XEmacs UTF-2000.
1182         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
1183         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
1184         XEmacs UTF-2000.
1185         (complex_vars_of_mule_charset): Add new coded-charset
1186         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
1187         `ideograph-gt-pj-*'.
1188
1189         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
1190
1191 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1192
1193         * mule-charset.c (encode_builtin_char_1): Purge codes about
1194         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
1195         {MIN|MAX}_CHAR_HEBREW.
1196         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
1197         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
1198
1199         * char-ucs.h (MIN_CHAR_GREEK): Purged.
1200         (MAX_CHAR_GREEK): Purged.
1201         (MIN_CHAR_CYRILLIC): Purged.
1202         (MAX_CHAR_CYRILLIC): Purged.
1203         (MIN_CHAR_HEBREW): Commented out.
1204         (MAX_CHAR_HEBREW): Likewise.
1205
1206 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1207
1208         * mule-charset.c (Qto_ucs): New variable.
1209         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
1210         (Fdefine_char): Likewise.
1211         (syms_of_mule_charset): Add new symbol `=>ucs'.
1212
1213 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1214
1215         * mule-charset.c (Fdecode_char): Fixed.
1216
1217 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1218
1219         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
1220         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
1221         "tcvn5712-1".
1222
1223 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1224
1225         * mule-charset.c (Vcharset_ucs_big5): New variable.
1226         (Qucs_big5): Likewise.
1227         (syms_of_mule_charset): Add new symbol `ucs-big5'.
1228         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
1229
1230         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
1231
1232 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1233
1234         * mule-charset.c (decode_builtin_char): Check Big5 code range
1235         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
1236
1237 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1238
1239         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
1240         (Qchinese_gb12345): Likewise.
1241         (Fdecode_builtin_char): Fixed.
1242         (syms_of_mule_charset): Add `chinese-gb12345'.
1243         (complex_vars_of_mule_charset): Add coded-charset
1244         `chinese-gb12345'.
1245
1246         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
1247         (LEADING_BYTE_CHINESE_GB12345): New macro.
1248
1249 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1250
1251         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
1252         and `latin-viscii-upper' for `latin-viscii'.
1253
1254 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1255
1256         * mule-charset.c (Fdecode_builtin_char): Comment out
1257         regularization code for ISO-IR GR representation.
1258
1259 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1260
1261         * mule-charset.c (decode_builtin_char): New function; renamed from
1262         `make_builtin_char'; return -1 instead of signal.
1263         (Fdecode_builtin_char): Use `decode_builtin_char'.
1264
1265         * char-ucs.h (decode_builtin_char): New prototype; renamed from
1266         `make_builtin_char'.
1267         (DECODE_CHAR): Use `decode_builtin_char' instead of
1268         `make_builtin_char'; use mapping table of `chinese-big5' for
1269         `chinese-big5-{1,2}'.
1270
1271 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1272
1273         * text-coding.c (char_encode_big5): New function.
1274         (char_finish_big5): Likewise.
1275         (reset_encoding_stream): Use `char_encode_big5' and
1276         `char_finish_big5' for CODESYS_BIG5.
1277         (mule_encode): Don't use `encode_coding_big5'.
1278         (encode_coding_big5): Deleted.
1279
1280 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1281
1282         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
1283         0x81- in XEmacs UTF-2000.
1284         (detect_coding_big5): Likewise.
1285
1286 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1287
1288         * mule-charset.c (Fdefine_char): Don't use a CCS property to
1289         generate character-id if the CCS property does not have
1290         corresponding predefined character.
1291         (make_builtin_char): Return -1 if corresponding predefined
1292         character is not found.
1293         (Fdecode_char): Return nil if corresponding character is not
1294         found.
1295         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
1296         don't map to builtin ucs space.
1297
1298 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1299
1300         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
1301         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
1302
1303 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1304
1305         * mule-charset.c (Vcharset_ideograph_gt): New variable.
1306         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
1307         (Qideograph_gt): Likewise.
1308         (Qideograph_gt_pj_{1..11}): Likewise.
1309         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
1310         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
1311         `ideograph-gt-pj-11'.
1312         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
1313         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
1314         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
1315
1316         * char-ucs.h (LEADING_BYTE_GT): New macro.
1317         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
1318         (MIN_CHAR_GT): Likewise.
1319         (MAX_CHAR_GT): Likewise.
1320
1321 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1322
1323         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
1324         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
1325
1326         * doprnt.c (unsigned_int_converters): Add `c'.
1327         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
1328
1329         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
1330         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
1331         `MIN_CHAR_MOJIKYO'.
1332         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
1333         (MAX_CHAR_MOJIKYO_0): New macro.
1334         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
1335
1336 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1337
1338         * mule-charset.c (Fdefine_char): Delete cemented out code.
1339         (encode_builtin_char_1): Modify for new allocation of builtin
1340         Mojikyo characters.
1341
1342         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
1343
1344 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1345
1346         * mule-charset.c (Vcharset_ucs_cns): New variable.
1347         (Qucs_cns): New variable.
1348         (syms_of_mule_charset): Add new symbol `ucs-cns'.
1349         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
1350
1351 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1352
1353         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
1354
1355 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
1356
1357         * search.c (search_buffer): Make `charset_base_code' as
1358         character-id >> 6 to eliminate the corresponding last byte in
1359         UTF-8 representation [I'm not sure it is right thing].
1360         (boyer_moore): Likewise.
1361
1362 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
1363
1364         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
1365         representation in MULE.
1366
1367 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1368
1369         * text-coding.c (Fmake_coding_system): Use
1370         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
1371         `EXTERNAL_PROPERTY_LIST_LOOP'.
1372
1373 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1374
1375         * text-coding.c (decode_output_utf8_partial_char): New function.
1376         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
1377
1378 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1379
1380         * text-coding.c (decode_coding_utf8): Output original byte
1381         sequence if it is broken; change order of conditions.
1382
1383         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
1384         of conditions.
1385
1386         * mb-multibyte.h (BYTE_ASCII_P):
1387         Use bit ops for char-signedness safety.
1388         (BYTE_C0_P): Use bit ops for char-signedness safety.
1389         (BYTE_C1_P): Use bit ops for char-signedness safety.
1390
1391         * character.h: (XCHAR_OR_CHAR_INT):
1392         Always use inline function.
1393         Remove redundant type checking assert() - XINT will abort quite
1394         nicely.
1395
1396 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1397
1398         * text-coding.c: (Fencode_shift_jis_char):
1399         (Fencode_big5_char):
1400         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
1401         Replace 0 with '\0' when working with bytes.
1402         Replace initial "(" with "\(" in docstrings.
1403
1404         (Fmake_coding_system):
1405         When type is ccl and value is vector, register it with a proper
1406         symbol.  And checks whether the given ccl program is valid.
1407         (mule_decode): When calling ccl_driver, if src indicates
1408         NULL pointer, set an empty string instead.
1409         (mule_encode): Likewise.
1410
1411         (detect_eol_type):
1412         (detect_coding_sjis):
1413         (decode_coding_sjis):
1414         (detect_coding_big5):
1415         (decode_coding_big5):
1416         (detect_coding_ucs4):
1417         (decode_coding_ucs4):
1418         (detect_coding_utf8):
1419         (decode_coding_utf8):
1420         (detect_coding_iso2022):
1421         (decode_coding_iso2022):
1422         (decode_coding_no_conversion):
1423         (mule_decode):
1424         Make all detecting and decoding functions take an Extbyte * arg.
1425         (text_encode_generic):
1426         (encode_coding_big5):
1427         (encode_coding_no_conversion):
1428         (mule_encode):
1429         Make all encoding functions take a Bufbyte * arg.
1430         Use size_t instead of unsigned int for memory sizes.
1431         Only cast to unsigned char whenever dereferencing Extbyte *.
1432
1433         (struct lrecord_description fcd_description_1): Use countof.
1434         (complex_vars_of_file_coding):
1435         Use countof instead of sizeof.
1436         Use CHECK_NATNUM instead of CHECK_INT.
1437
1438 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1439
1440         * mule-charset.c (Fget_char_attribute): Add new optional argument
1441         `default-value'.
1442         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
1443         (remove_char_ccs): Likewise.
1444
1445 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1446
1447         * text-coding.c (char_encode_shift_jis): New implementation in
1448         UTF-2000.
1449         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
1450         ...)'.
1451
1452         * mule-charset.c (Vcharset_chinese_big5): New variable in
1453         UTF-2000.
1454         (Qchinese_big5): New variable in UTF-2000.
1455         (BIG5_SAME_ROW): New macro in UTF-2000.
1456         (make_builtin_char): Use builtin characters of
1457         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
1458         characters of `Vcharset_chinese_big5'.
1459         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
1460         (complex_vars_of_mule_charset): Add new coded-charset
1461         `chinese-big5' in UTF-2000.
1462
1463         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
1464         (Vcharset_chinese_big5): New external variable declaration.
1465         (Vcharset_japanese_jisx0208_1990): Likewise.
1466
1467 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1468
1469         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
1470         function.
1471         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
1472
1473 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1474
1475         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
1476         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
1477         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
1478         `mojikyo-pj-*'.
1479
1480 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1481
1482         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
1483
1484 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1485
1486         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1487         to 0.17.
1488
1489 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1490
1491         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
1492         for `CHARSET_BY_ATTRIBUTES'.
1493         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
1494         `CHARSET_BY_ATTRIBUTES'.
1495
1496         * text-coding.c (struct decoding_stream): Rename member `CH' to
1497         `CPOS'.
1498         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
1499         (decode_coding_sjis): Likewise.
1500         (decode_coding_big5): Likewise.
1501         (decode_coding_ucs4): Likewise.
1502         (decode_coding_utf8): Likewise.
1503         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
1504         `CHARSET_BY_ATTRIBUTES'.
1505         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
1506         `str->counter'; decode 3, 4 bytes sets.
1507         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
1508         sets.
1509         (decode_coding_no_conversion): Use `str->cpos' instead of
1510         `str->ch'.
1511
1512         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
1513         (Qmojikyo_2022_1): New variable.
1514         (make_charset): Don't use `CHARSET_TYPE_*'.
1515         (range_charset_code_point): Support coded-charset
1516         `mojikyo-2022-1'.
1517         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
1518         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
1519         `CHARSET_BY_ATTRIBUTES'.
1520         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
1521         `CHARSET_BY_ATTRIBUTES'.
1522         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
1523         (complex_vars_of_mule_charset): Add new coded-charset
1524         `mojikyo-2022-1'.
1525
1526         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
1527         interface; changed to inline function.
1528
1529         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
1530         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
1531         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
1532         (CHARSET_TYPE_94): Deleted.
1533         (CHARSET_TYPE_94X94): Deleted.
1534         (CHARSET_TYPE_96): Deleted.
1535         (CHARSET_TYPE_96X96): Deleted.
1536         (CHARSET_TYPE_128): Deleted.
1537         (CHARSET_TYPE_128X128): Deleted.
1538         (CHARSET_TYPE_256): Deleted.
1539         (CHARSET_TYPE_256X256): Deleted.
1540         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
1541         to inline function.
1542         (DECODE_MOJIKYO_2022): New inline function.
1543         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
1544         `Vcharset_mojikyo_2022_1'.
1545
1546 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1547
1548         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
1549         instead of `EQ'.
1550         (put_byte_table): Likewise.
1551         (char_id_table_equal): Use `get_byte_table' [new implementation].
1552
1553 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1554
1555         * mule-charset.c: Include <limits.h> in UTF-2000.
1556         (BT_UINT8_MIN): New macro in UTF-2000.
1557         (BT_UINT8_MAX): New macro in UTF-2000.
1558         (BT_UINT8_t): New macro in UTF-2000.
1559         (BT_UINT8_nil): New macro in UTF-2000.
1560         (BT_UINT8_unbound): New macro in UTF-2000.
1561         (INT_UINT8_P): New inline function in UTF-2000.
1562         (UINT8_VALUE_P): New inline function in UTF-2000.
1563         (UINT8_ENCODE): New inline function in UTF-2000.
1564         (UINT8_DECODE): New inline function in UTF-2000.
1565         (mark_uint8_byte_table): New function in UTF-2000.
1566         (print_uint8_byte_table): New function in UTF-2000.
1567         (uint8_byte_table_equal): New function in UTF-2000.
1568         (uint8_byte_table_hash): New function in UTF-2000.
1569         (make_uint8_byte_table): New function in UTF-2000.
1570         (uint8_byte_table_same_value_p): New function in UTF-2000.
1571         (BT_UINT16_MIN): New macro in UTF-2000.
1572         (BT_UINT16_MAX): New macro in UTF-2000.
1573         (BT_UINT16_t): New macro in UTF-2000.
1574         (BT_UINT16_nil): New macro in UTF-2000.
1575         (BT_UINT16_unbound): New macro in UTF-2000.
1576         (INT_UINT16_P): New inline function in UTF-2000.
1577         (UINT16_VALUE_P): New inline function in UTF-2000.
1578         (UINT16_ENCODE): New inline function in UTF-2000.
1579         (UINT16_DECODE): New inline function in UTF-2000.
1580         (UINT8_TO_UINT16): New inline function in UTF-2000.
1581         (mark_uint16_byte_table): New function in UTF-2000.
1582         (print_uint16_byte_table): New function in UTF-2000.
1583         (uint16_byte_table_equal): New function in UTF-2000.
1584         (uint16_byte_table_hash): New function in UTF-2000.
1585         (make_uint16_byte_table): New function in UTF-2000.
1586         (uint16_byte_table_same_value_p): New function in UTF-2000.
1587         (print_byte_table): New function in UTF-2000.
1588         (byte-table): Use `print_byte_table' as printer.
1589         (make_byte_table): Delete second argument `older'.
1590         (byte_table_same_value_p): New function in UTF-2000.
1591         (copy_byte_table): Deleted.
1592         (get_byte_table): New function in UTF-2000.
1593         (put_byte_table): New function in UTF-2000.
1594         (print_char_id_table): New function in UTF-2000.
1595         (char-id-table): Use `print_char_id_table' as printer.
1596         (make_char_id_table): Delete second argument `older'.
1597         (get_char_id_table): Use `get_byte_table [new implementation].
1598         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
1599         implementation].
1600         (Ffind_char_attribute_table): New function in UTF-2000.
1601         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
1602         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
1603         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
1604         (syms_of_mule_charset): Add new function
1605         `find-char-attribute-table' in UTF-2000.
1606
1607         * lrecord.h (enum lrecord_type): Add
1608         `lrecord_type_uint16_byte_table' and
1609         `lrecord_type_uint8_byte_table'.
1610
1611         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
1612         (Lisp_Uint8_Byte_Table): New type.
1613         (XUINT8_BYTE_TABLE): New macro.
1614         (XSETUINT8_BYTE_TABLE): New macro.
1615         (UINT8_BYTE_TABLE_P): New macro.
1616         (GC_UINT8_BYTE_TABLE_P): New macro.
1617         (struct Lisp_Uint16_Byte_Table): New structure.
1618         (Lisp_Uint16_Byte_Table): New type.
1619         (XUINT16_BYTE_TABLE): New macro.
1620         (XSETUINT16_BYTE_TABLE): New macro.
1621         (UINT16_BYTE_TABLE_P): New macro.
1622         (GC_UINT16_BYTE_TABLE_P): New macro.
1623
1624 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1625
1626         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
1627         (Vcharacter_ideographic_strokes_table): Deleted.
1628         (Vcharacter_total_strokes_table): Deleted.
1629         (Vcharacter_morohashi_daikanwa_table): Deleted.
1630         (Vcharacter_decomposition_table): Deleted.
1631         (Qname): Deleted because it is duplicated.
1632         (Qideographic_radical): Deleted.
1633         (Qideographic_strokes): Deleted.
1634         (Qtotal_strokes): Deleted.
1635         (Qmorohashi_daikanwa): Deleted.
1636         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
1637         `ideographic-radical', `ideographic-strokes', `total-strokes',
1638         `morohashi-daikanwa' and `->decomposition'.
1639         (Fget_char_attribute): Likewise.
1640         (Fput_char_attribute): Likewise; use `make-vector' instead of
1641         `make_older_vector' for `->decomposition' value.
1642         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
1643         `ideograph-daikanwa'.
1644         (syms_of_mule_charset): Delete builtin symbols `name',
1645         `ideographic-radical', `ideographic-strokes', `total-strokes' and
1646         `morohashi-daikanwa'.
1647         (vars_of_mule_charset): Don't setup
1648         `Vcharacter_ideographic_radical_table',
1649         `Vcharacter_ideographic_strokes_table',
1650         `Vcharacter_total_strokes_table',
1651         `Vcharacter_morohashi_daikanwa_table' and
1652         `Vcharacter_decomposition_table'.
1653
1654 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1655
1656         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
1657         `make_older_vector', `make_vector_newer_1' and
1658         `make_vector_newer'.
1659
1660         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
1661         `make_older_vector' and `make_vector_newer'.
1662
1663         * config.h.in (HAVE_GGC): New macro.
1664
1665 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1666
1667         * mule-charset.c (struct char_attribute_list_closure): New
1668         structure in UTF-2000.
1669         (add_char_attribute_to_list_mapper): New function in UTF-2000.
1670         (Fchar_attribute_list): Likewise.
1671         (Fset_charset_mapping_table): Use `make_vector_newer'.
1672         (Fdecode_builtin_char): New function in UTF-2000.
1673         (syms_of_mule_charset): Add new function `char-attribute-list' and
1674         `decode-builtin-char' in UTF-2000.
1675
1676         * lisp.h (make_vector_newer): New prototype.
1677
1678         * alloc.c (make_vector_newer_1): New function.
1679         (make_vector_newer): New function.
1680
1681 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1682
1683         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
1684         50100)'.
1685
1686 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1687
1688         * mule-charset.c (Vchar_attribute_hash_table): New variable.
1689         (Vcharacter_attribute_table): Deleted.
1690         (Vcharacter_name_table): Deleted.
1691         (put_char_attribute): Deleted.
1692         (remove_char_attribute): Deleted.
1693         (struct char_attribute_alist_closure): New structure.
1694         (add_char_attribute_alist_mapper): New function.
1695         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
1696         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
1697         (Fget_char_attribute): Likewise.
1698         (Fput_char_attribute): Likewise.
1699         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
1700         of `remove_char_attribute'.
1701         (Fdefine_char): Return character.
1702         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
1703         and `Vcharacter_name_table'.
1704         (complex_vars_of_mule_charset): Likewise
1705         `Vchar_attribute_hash_table'.
1706
1707 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1708
1709         * character.h (CHARC_CHARSET): New macro.
1710         (CHARC_CHARSET_ID): New macro.
1711         (CHARC_CODE_POINT): New macro.
1712         (CHARC_COLUMNS): New macro.
1713         (CHARC_TO_CHAR): New inline function.
1714         (CHARC_EQ): New inline function.
1715         (CHARC_ASCII_EQ): New inline function.
1716         (CHARC_IS_SPACE): New inline function.
1717         (ASCII_TO_CHARC): New inline function.
1718
1719         * char-ucs.h (encode_char_2): Deleted.
1720         (ENCODE_CHAR): Use `encode_char_1' again.
1721         (breakup_char_1): Likewise.
1722         (CHAR_TO_CHARC): New inline function.
1723
1724         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
1725
1726 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1727
1728         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
1729         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
1730         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
1731         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
1732         (create_string_text_block): Use `CHARC_ASCII_EQ' and
1733         `CHARC_IS_SPACE'.
1734         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
1735
1736         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
1737         `CHARC_CODE_POINT'.
1738         (x_output_display_block): Use `CHARC_CHARSET' and
1739         `CHARC_ASCII_EQ'.
1740
1741         * redisplay-tty.c (tty_output_display_block): Use
1742         `CHARC_ASCII_EQ'.
1743         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
1744
1745         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
1746
1747         * insdel.c (find_charsets_in_charc_string): Use
1748         `CHARC_CHARSET_ID'.
1749         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
1750         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
1751         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
1752         (convert_charc_string_into_malloced_string): Likewise.
1753
1754 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1755
1756         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
1757         instead of <Emchar_dynarr *> for buf; use
1758         `convert_bufbyte_string_into_charc_dynarr' instead of
1759         `convert_bufbyte_string_into_emchar_dynarr'; use
1760         `find_charsets_in_charc_string' instead of
1761         `find_charsets_in_emchar_string'.
1762
1763         * redisplay.h:
1764         - Include "character.h".
1765         (struct rune): New member `cglyph'; delete member `chr'.
1766
1767         * redisplay.c (redisplay_text_width_charc_string): New function;
1768         delete `redisplay_text_width_emchar_string'.
1769         (rtw_charc_dynarr): New variable; renamed from
1770         `rtw_emchar_dynarr'.
1771         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
1772         `rtw_emchar_dynarr'; use
1773         `convert_bufbyte_string_into_charc_dynarr' instead of
1774         `convert_bufbyte_string_into_emchar_dynarr'; use
1775         `redisplay_text_width_charc_string' instead of
1776         `redisplay_text_width_emchar_string'.
1777         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
1778         instead of `rtw_emchar_dynarr'; use
1779         `convert_bufbyte_string_into_charc_dynarr' instead of
1780         `convert_bufbyte_string_into_emchar_dynarr'.
1781         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
1782         `redisplay_text_width_charc_string' instead of
1783         `redisplay_text_width_emchar_string'.
1784         (create_text_block): Modify for <struct rune> change.
1785         (generate_formatted_string_db): Likewise.
1786         (create_string_text_block): Likewise.
1787         (pixel_to_glyph_translation): Likewise.
1788
1789         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
1790         instead of <const Emchar *>.
1791         (x_text_width): Likewise.
1792         (x_output_display_block): Use <Charc_dynarr *> instead
1793         <Emchar_dynarr *>; modify for <structure rune> change.
1794         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
1795         *>.
1796
1797         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
1798         <const Emchar *>; use `charc_string_displayed_columns' instead of
1799         `emchar_string_displayed_columns'.
1800         (tty_output_display_block): Use <Charc_dynarr *> instead of
1801         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
1802         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
1803         (tty_output_charc_dynarr_dynarr): New variable; renamed from
1804         `tty_output_emchar_dynarr_dynarr'.
1805         (tty_output_charc_dynarr): New function; delete
1806         `tty_output_charc_dynarr'.
1807
1808         * redisplay-output.c (compare_runes): Modify for `struct rune'.
1809         (redisplay_output_layout): Use <Charc_dynarr *> instead of
1810         <Emchar_dynarr *> for buf; use
1811         `convert_bufbyte_string_into_charc_dynarr' instead of
1812         `convert_bufbyte_string_into_emchar_dynarr'.
1813
1814         * frame.c (title_string_charc_dynarr): New variable; renamed from
1815         `title_string_emchar_dynarr'.
1816         (generate_title_string): Use `title_string_charc_dynarr' instead
1817         of `title_string_emchar_dynarr'; use
1818         `convert_charc_string_into_malloced_string' instead of
1819         `convert_emchar_string_into_malloced_string'.
1820         (init_frame): Use `title_string_charc_dynarr' instead of
1821         `title_string_emchar_dynarr'.
1822
1823         * console.h:
1824         - Include "character.h".
1825         (struct console_methods): Use <const Charc *> instead of <const
1826         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
1827         <Emchar_dynarr *> in output_string_method.
1828
1829         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
1830         <Emchar_dynarr *>.
1831
1832         * console-stream.c (stream_text_width): Use <const Charc *>
1833         instead of <const Emchar *>.
1834
1835         * character.h (Charc_dynarr): New type.
1836
1837         * char-ucs.h (structure Charc): New structure; define new type
1838         `Charc'.
1839
1840         * char-lb.h (DECODE_CHAR): New inline function.
1841         (encode_char_1): New inline function.
1842         (ENCODE_CHAR): New macro.
1843         (structure Charc): New structure; define new type `Charc'.
1844
1845         * char-1byte.h (Vcharset_control_1): New macro.
1846         (Vcharset_latin_iso8859_1): New macro.
1847         (DECODE_CHAR): New inline function.
1848         (encode_char_1): New inline function.
1849         (ENCODE_CHAR): New macro.
1850         (structure Charc): New structure; define new type `Charc'.
1851
1852         * insdel.c (find_charsets_in_charc_string): New function; delete
1853         `find_charsets_in_emchar_string'.
1854         (charc_string_displayed_columns): New function; delete
1855         `emchar_string_displayed_columns'.
1856         (convert_bufbyte_string_into_charc_dynarr): New function; delete
1857         `convert_bufbyte_string_into_emchar_dynarr'.
1858         (convert_charc_string_into_bufbyte_dynarr): New function; delete
1859         `convert_charc_string_into_bufbyte_dynarr'.
1860         (convert_charc_string_into_malloced_string): New function; delete
1861         `convert_charc_string_into_malloced_string'.
1862
1863         * buffer.h (find_charsets_in_charc_string): New prototype; delete
1864         `find_charsets_in_emchar_string'.
1865         (charc_string_displayed_columns): New prototype; delete
1866         `emchar_string_displayed_columns'.
1867         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
1868         `convert_charc_string_into_bufbyte_dynarr'.
1869         (convert_charc_string_into_malloced_string): New prototype; delete
1870         `convert_charc_string_into_malloced_string'.
1871
1872 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1873
1874         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
1875
1876 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1877
1878         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
1879
1880         * char-ucs.h: Use <short> for <Charset_ID>.
1881
1882         * mule-charset.h, char-1byte.h: Use <unsigned char> for
1883         <Charset_ID>.
1884
1885 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1886
1887         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1888         to 0.16.
1889
1890 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1891
1892         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
1893         variable.
1894         (Qmorohashi_daikanwa): New variable.
1895         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
1896         for `morohashi-daikanwa' attribute.
1897         (Fget_char_attribute): Likewise.
1898         (Fput_char_attribute): Likewise.
1899         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
1900         has the same value of `ideograph-daikanwa'.
1901         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
1902         (vars_of_mule_charset): Setup
1903         `Vcharacter_morohashi_daikanwa_table'.
1904
1905 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1906
1907         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
1908         attributes.
1909         (add_charset_to_list_mapper): Add `key' instead of
1910         `XCHARSET_NAME (value)' to return aliases.
1911
1912 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1913
1914         * mule-charset.c (Vcharacter_ideographic_radical_table): New
1915         variable.
1916         (Vcharacter_ideographic_strokes_table): New variable.
1917         (Qideographic_radical): New variable.
1918         (Qideographic_strokes): New variable.
1919         (Fchar_attribute_alist): Use
1920         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
1921         attribute; use `Vcharacter_ideographic_strokes_table' for
1922         `ideographic-strokes' attribute.
1923         (Fget_char_attribute): Likewise.
1924         (Fput_char_attribute): Likewise.
1925         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
1926         `ideographic-strokes'.
1927         (vars_of_mule_charset): Setup
1928         `Vcharacter_ideographic_radical_table' and
1929         `Vcharacter_ideographic_strokes_table'.
1930
1931 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1932
1933         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
1934         (Qtotal_strokes): New variable.
1935         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
1936         `total-strokes' attribute.
1937         (Fget_char_attribute): Likewise.
1938         (Fput_char_attribute): Likewise.
1939         (syms_of_mule_charset): Add new symbol `total-strokes'.
1940         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
1941
1942 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1943
1944         * mule-charset.c (Vcharacter_decomposition_table): New variable.
1945         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
1946         are found.
1947         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
1948         `->decomposition' attribute.
1949         (Fput_char_attribute): Likewise.
1950         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
1951
1952 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1953
1954         * mule-charset.c (decoding_table_check_elements): New function.
1955         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
1956
1957 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1958
1959         * mule-charset.c (Fset_charset_mapping_table): Use
1960         `put_char_ccs_code_point'.
1961
1962 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1963
1964         * mule-charset.c (decoding_table_put_char): New inline function.
1965         (put_char_ccs_code_point): Use `decoding_table_put_char'.
1966
1967 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1968
1969         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
1970         (XCHARSET_BYTE_SIZE): New macro.
1971         (decoding_table_remove_char): New inline function.
1972         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
1973         `decoding_table_remove_char'.
1974         (remove_char_ccs): Use `decoding_table_remove_char'.
1975         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
1976
1977 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1978
1979         * mule-charset.c (Vcharacter_name_table): New variable.
1980         (Qname): New variable.
1981         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
1982         attribute.
1983         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
1984         `Vcharacter_name_table' for `name' attribute.
1985         (Fremove_char_attribute): Use function `remove_char_ccs'.
1986         (put_char_ccs_code_point): New function.
1987         (remove_char_ccs): New function.
1988         (syms_of_mule_charset): Add new symbol `name'.
1989         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
1990
1991 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1992
1993         * mule-charset.c (make_byte_table): Add new argument `older'.
1994         (make_char_id_table): Likewise.
1995         (copy_char_id_table): Comment out because it is not used.
1996         (put_char_id_table): Modify for `make_byte_table'.
1997         (Fput_char_attribute): Make encoding_table as older object;
1998         inherit older bit of `Vcharacter_composition_table'.
1999         (mark_charset): Don't mark `cs->encoding_table'.
2000         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
2001         normal object; make `Vcharacter_composition_table' as an older
2002         object; delete staticpro for `Vcharacter_composition_table'; make
2003         `Vcharacter_variant_table' as a normal object.
2004
2005         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
2006         (mark_object): Don't check older object in UTF-2000.
2007
2008         * lrecord.h (struct lrecord_header): Add new member `older' in
2009         UTF-2000.
2010         (set_lheader_implementation): Setup `SLI_header->older' in
2011         UTF-2000.
2012         (set_lheader_older_implementation): New macro in UTF-2000.
2013         (OLDER_RECORD_P): New macro in UTF-2000.
2014         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
2015         (alloc_older_lcrecord): New prototype in UTF-2000.
2016         (alloc_older_lcrecord_type): New macro in UTF-2000.
2017
2018 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2019
2020         * mule-charset.c (byte_table_description): Use
2021         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
2022         (char_id_table_description): Delete bogus `, 1'.
2023         (Fget_char_attribute): Refer encoding_table of each coded-charset
2024         to get value of coded-charset attribute of a character.
2025         (Fput_char_attribute): Use `make_older_vector' instead of
2026         `make_vector'; use encoding_table of each coded-charset to store
2027         value of coded-charset attribute of a character.
2028         (Fremove_char_attribute): Use encoding_table of each coded-charset
2029         to store value of coded-charset attribute of a character.
2030         (mark_charset): Mark `cs->encoding_table'; don't mark
2031         `cs->decoding_table'.
2032         (charset_description): Add description of new member
2033         `encoding_table'.
2034         (make_charset): Initialize `encoding_table'.
2035
2036         * char-ucs.h (struct Lisp_Charset): Add new member
2037         `encoding_table'.
2038         (CHARSET_ENCODING_TABLE): New macro.
2039         (XCHARSET_ENCODING_TABLE): New macro.
2040         (charset_code_point): New implementation.
2041         (encode_char_1): Likewise.
2042
2043         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
2044         (disksave_object_finalization_1): Call finalizers of
2045         `all_older_lcrecords' in UTF-2000.
2046         (make_older_vector): New function in UTF-2000.
2047         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
2048         UTF-2000.
2049
2050         * lisp.h (make_older_vector): New prototype in UTF-2000.
2051
2052 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2053
2054         * lrecord.h (enum lrecord_type): Rename
2055         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
2056
2057         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
2058         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
2059         `get_char_code_table'.
2060
2061         * mule-charset.c (mark_char_id_table): Renamed from
2062         `mark_char_code_table'.
2063         (char_id_table_equal): Renamed from `char_code_table_equal'.
2064         (char_id_table_hash): Renamed from `char_code_table_hash'.
2065         (make_char_id_table): Renamed from `make_char_code_table'.
2066         (copy_char_id_table): Renamed from `copy_char_code_table'.
2067         (get_char_id_table): Renamed from `get_char_code_table'.
2068         (put_char_id_table): Renamed from `put_char_code_table'.
2069         (to_char_id): Renamed from `to_char_code'.
2070
2071         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
2072         `Lisp_Char_Code_Table'.
2073         (char_id_table): Renamed from `char_code_table'.
2074         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
2075         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
2076         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
2077         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
2078         (get_char_id_table): Renamed from `get_char_code_table'.
2079
2080 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2081
2082         * lrecord.h (enum lrecord_type): Rename
2083         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
2084
2085         * mule-charset.c (mark_byte_table): Renamed from
2086         `mark_char_byte_table'.
2087         (byte_table_equal): Renamed from `char_byte_table_equal'.
2088         (byte_table_hash): Renamed from `byte_table_hash'.
2089         (make_byte_table): Renamed from `make_byte_table'.
2090         (copy_byte_table): Renamed from `copy_char_byte_table'.
2091
2092         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
2093         `Lisp_Char_Byte_Table'.
2094         (byte_table): Renamed from `char_byte_table'.
2095         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
2096         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
2097         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
2098         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
2099
2100 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2101
2102         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
2103         (dfc_convert_to_internal_format): Likewise.
2104         
2105         * text-coding.c (Fcoding_system_canonical_name_p): New function.
2106         * text-coding.c (Fcoding_system_alias_p): New function.
2107         * text-coding.c (Fcoding_system_aliasee): New function.
2108         * text-coding.c (append_suffix_to_symbol): New function.
2109         * text-coding.c (dangling_coding_system_alias_p): New function.
2110         * text-coding.c (Ffind_coding_system):
2111         * text-coding.c (Fcopy_coding_system):
2112         * text-coding.c (encode_coding_no_conversion):
2113         * text-coding.c (syms_of_file_coding):
2114         * text-coding.c (vars_of_file_coding):
2115         Rewrite coding system alias code.
2116         Allow nested aliases, like symbolic links.
2117         Allow redefinition of coding system aliases.
2118         Prevent existence of dangling coding system aliases.
2119         Eliminate convert_to_external_format.
2120         Eliminate convert_to_internal_format.
2121         
2122         * text-coding.c: Change enum eol_type to eol_type_t.
2123
2124 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2125
2126         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
2127         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
2128
2129         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
2130         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
2131
2132 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2133
2134         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
2135         `ideograph-daikanwa'.
2136
2137         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
2138         (Vcharset_ucs_bmp): Likewise.
2139         (Vcharset_mojikyo): Add new extern variable definition.
2140         (Vcharset_latin_iso8859_2): Deleted because it is not used.
2141         (Vcharset_latin_iso8859_3): Likewise.
2142         (Vcharset_latin_iso8859_4): Likewise.
2143         (Vcharset_latin_iso8859_9): Likewise.
2144         (Vcharset_latin_viscii_lower): Likewise.
2145         (Vcharset_latin_viscii_upper): Likewise.
2146         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
2147         `mojikyo' code-point is used to decode.
2148         (encode_char_2): New function [to convert `mojikyo' code-point to
2149         Mojikyo font encoding].
2150         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
2151         (breakup_char_1): Likewise.
2152         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
2153
2154 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2155
2156         * text-coding.c (Fmake_coding_system): Add document about
2157         `disable-composition' property.
2158
2159 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2160
2161         * text-coding.c (Qdisable_composition): New variable; delete
2162         `Qcomposite'.
2163         (Fmake_coding_system): Add new property `disable-composite';
2164         delete property `composite'.
2165         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
2166         instead of `!CODING_SYSTEM_COMPOSITE'.
2167         (syms_of_file_coding): Add new symbol `disable-composition';
2168         delete symbol `composite'.
2169
2170         * file-coding.h (struct Lisp_Coding_System): Add
2171         `disable_composition'; delete `enable_composition'.
2172         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
2173         `CODING_SYSTEM_COMPOSITE'.
2174         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
2175         `XCODING_SYSTEM_COMPOSITE'.
2176
2177 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2178
2179         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2180         to 0.15.
2181
2182 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2183
2184         * text-coding.c (Qcomposite): New variable.
2185         (Fmake_coding_system): Add new property `composite'.
2186         (struct decoding_stream): Add `combined_char_count',
2187         `combined_chars' and `combining_table' in UTF-2000.
2188         (COMPOSE_FLUSH_CHARS): New macro.
2189         (COMPOSE_ADD_CHAR): New macro.
2190         (reset_decoding_stream): Reset `str->combined_char_count' and
2191         `str->combining_table' in UTF-2000.
2192         (decode_coding_iso2022): Modify for character-decomposition.
2193         (syms_of_file_coding): Add new symbol `composite'.
2194
2195 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2196
2197         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
2198         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
2199         of `Vcharacter_composition_table' if `->decomposition' property
2200         has only 1 element.
2201         (Qlatin_tcvn5712): New variable.
2202         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
2203         (complex_vars_of_mule_charset): Add new coded-charset
2204         `latin-tcvn5712'.
2205
2206         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
2207
2208 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2209
2210         * file-coding.h (struct Lisp_Coding_System): Add
2211         `enable_composition'.
2212         (CODING_SYSTEM_COMPOSITE): New macro.
2213         (XCODING_SYSTEM_COMPOSITE): New macro.
2214
2215 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
2216
2217         * mule-canna.c (c2mu): Fix problem with UTF-2000.
2218
2219 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
2220
2221         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
2222         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
2223
2224 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
2225
2226         * mule-charset.c (Vcharset_mojikyo): New variable.
2227         (Fdefine_char): Don't use coded-charset which does not have
2228         non-builtin character range to allocate character-id.
2229         (Qmojikyo): New variable.
2230         (syms_of_mule_charset): Add new symbol `mojikyo'.
2231         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
2232
2233         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
2234         (LEADING_BYTE_MOJIKYO): New macro.
2235         (MIN_CHAR_MOJIKYO): New macro.
2236         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
2237         (MAX_CHAR_MOJIKYO): New macro.
2238
2239 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
2240
2241         * mule-charset.c (remove_char_attribute): Fixed.
2242
2243 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
2244
2245         * mule-charset.c (remove_char_attribute): New function.
2246         (Fremove_char_attribute): New function.
2247         (encode_builtin_char_1): Comment out builtin-support for
2248         greek-iso8859-7 and cyrillic-iso8859-5.
2249         (Fdecode_char): Check `code' is an integer.
2250         (syms_of_mule_charset): Add `remove-char-attribute'.
2251         (MIN_CHAR_GREEK): Deleted.
2252         (MAX_CHAR_GREEK): Likewise.
2253         (MIN_CHAR_CYRILLIC): Likewise.
2254         (MAX_CHAR_CYRILLIC): Likewise.
2255         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
2256         MAX_CHAR_GREEK for `greek-iso8859-7'.
2257
2258         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
2259         (MAX_CHAR_GREEK): Likewise.
2260         (MIN_CHAR_CYRILLIC): Likewise.
2261         (MAX_CHAR_CYRILLIC): Likewise.
2262
2263 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
2264
2265         * mule-charset.c (Fdefine_char): Fix problem when new code-point
2266         format is used without `ucs' property.
2267         (Fdecode_char): Fix problem with GR representation.
2268         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
2269         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
2270
2271 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
2272
2273         * mule-charset.c (make_builtin_char): New function.
2274         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
2275         (Fset_charset_mapping_table): Modify for new representation of
2276         code-point.
2277         (Fdecode_char): New function.
2278         (syms_of_mule_charset): Add new builtin function `decode-char' in
2279         UTF-2000.
2280
2281         * char-ucs.h (make_builtin_char): New prototype.
2282         (DECODE_CHAR): New inline function.
2283         (MAKE_CHAR): Use `DECODE_CHAR'.
2284
2285 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
2286
2287         * text-coding.c (parse_charset_conversion_specs): Use
2288         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
2289         `XCHARSET_TYPE'.
2290         (iso2022_designate): Likewise.
2291
2292         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
2293         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
2294
2295         * mule-charset.c (Vcharset_ucs): New variable.
2296         (print_charset): Change design; use `CHARSET_CHARS' and
2297         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
2298         (make_charset): Change signature to specify `chars' and
2299         `dimension' instead of `type'.
2300         (range_charset_code_point): Modify for 256^n-set.
2301         (encode_builtin_char_1): Encode as `ucs' in default.
2302         (Fmake_charset): Modify for `make_charset'.
2303         (Fmake_reverse_direction_charset): Likewise.
2304         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
2305         UTF-2000.
2306         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
2307         for `make_charset'.
2308
2309         * char-ucs.h (Vcharset_ucs): New variable.
2310         (LEADING_BYTE_UCS): New macro.
2311         (struct Lisp_Charset): Delete `type'; change type of `dimension'
2312         and `chars' to `unsigned short' from `unsigned int'.
2313         (CHARSET_TYPE): Deleted.
2314         (XCHARSET_TYPE): Deleted.
2315
2316 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
2317
2318         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
2319
2320         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
2321         (ENCODE_CHAR): New macro.
2322
2323 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
2324
2325         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2326         to 0.14 (Kawachi-Katakami).
2327
2328 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
2329
2330         * text-coding.c (char_encode_shift_jis): Modify for
2331         `charset_code_point'.
2332         (char_encode_iso2022): Likewise.
2333
2334         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
2335         (integer) instead of list of <Lisp_Object>s (integers) as the
2336         format of code-point of a coded-charset.
2337         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
2338         (encode_builtin_char_1): New function; delete
2339         `split_builtin_char'.
2340         (charset_code_point): Return <int> instead of <Lisp_Object>.
2341         (Fsplit_char): Don't use `SPLIT_CHAR'.
2342
2343         * char-ucs.h (encode_builtin_char_1): New prototype; delete
2344         prototype for `split_builtin_char'.
2345         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
2346         (charset_code_point): Likewise.
2347         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
2348         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
2349
2350 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
2351
2352         * mule-charset.c (complex_vars_of_mule_charset): Don't define
2353         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
2354
2355 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2356
2357         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
2358
2359         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
2360         (MAX_CHAR_OBS_94x94): Deleted.
2361
2362 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2363
2364         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
2365
2366         * char-ucs.h (MAX_CHAR_BMP): New macro.
2367
2368 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
2369
2370         * text-coding.c: Sync with r21-2-24.
2371
2372 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
2373
2374         * file-coding.c: Modify for UTF-2000.
2375
2376 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
2377
2378         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2379         to 0.13 (Takaida).
2380
2381 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
2382
2383         * mule-charset.c (split_builtin_char): Delete builtin support for
2384         `katakana-jisx0201'.
2385         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
2386         BMP area in builtin representation.
2387
2388         * char-ucs.h (MAKE_CHAR): Delete builtin support for
2389         `Vcharset_katakana_jisx0201'.
2390
2391 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
2392
2393         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
2394         (Qisolated): New variable.
2395         (Qinitial): New variable.
2396         (Qmedial): New variable.
2397         (Qfinal): New variable.
2398         (Qvertical): New variable.
2399         (Qsmall): New variable.
2400         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
2401         `Qvertical' and `Qsmall'.
2402         (Qmojikyo_pj_[1 .. 21]): New variable.
2403         (syms_of_mule_charset): Add new symbols `isolated', `initial',
2404         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
2405         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
2406         .. 21]'.
2407
2408 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
2409
2410         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
2411         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
2412         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
2413
2414 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
2415
2416         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
2417         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
2418         BMP.
2419         (Qjapanese_jisx0208_1990): New variable.
2420         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
2421         (complex_vars_of_mule_charset): Add new coded-charset
2422         `japanese-jisx0208-1990'.
2423
2424         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
2425         (MIN_CHAR_JIS_X0208_1990): New macro.
2426         (MAX_CHAR_JIS_X0208_1990): New macro.
2427
2428 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2429
2430         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
2431         coded-charset is not found.
2432
2433 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2434
2435         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
2436         (Fdefine_char): Use `Fmake_char'.
2437
2438 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2439
2440         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
2441         (Vcharset_hiragana_jisx0208): Deleted.
2442         (Vcharset_katakana_jisx0208): Deleted.
2443         (Qideograph_daikanwa): New variable.
2444         (Qhiragana_jisx0208): Deleted.
2445         (Qkatakana_jisx0208): Deleted.
2446         (split_builtin_char): Split `ideograph-daikanwa'.
2447         (Fsplit_char): New implementation for UTF-2000.
2448         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
2449         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
2450         (complex_vars_of_mule_charset): Add new coded-charset
2451         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
2452         `katakana-jisx0208'.
2453
2454         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
2455         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
2456         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
2457         (MIN_CHAR_DAIKANWA): New macro.
2458         (MAX_CHAR_DAIKANWA): New macro.
2459
2460 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2461
2462         * data.c (Fstring_to_number): Don't recognize floating point if
2463         base is not 10.
2464
2465 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2466
2467         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
2468
2469 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2470
2471         * mule-charset.c (Qsquare): New variable.
2472         (to_char_code): Add `Qsquare'.
2473         (syms_of_mule_charset): Add new symbol `square'.
2474
2475 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2476
2477         * mule-charset.c (Qcircle): New variable.
2478         (to_char_code): Add `Qcircle'.
2479         (syms_of_mule_charset): Add new symbol `circle'.
2480
2481 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2482
2483         * mule-charset.c (Qfont): New variable.
2484         (to_char_code): Add `Qfont'.
2485         (syms_of_mule_charset): Add new symbol `font'.
2486
2487 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2488
2489         * mule-charset.c (Qsub): New variable.
2490         (to_char_code): Add `Qsub'.
2491         (syms_of_mule_charset): Add new symbol `sub'.
2492
2493 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2494
2495         * mule-charset.c (Fput_char_attribute): Convert each element of
2496         VALUE to GL position if ATTRIBUTE is a GR-set,
2497
2498 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2499
2500         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
2501         coded-charset is a GR-set.
2502
2503 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2504
2505         * mule-charset.c (Fput_char_attribute): Check each element of
2506         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
2507
2508 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2509
2510         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
2511         UTF-2000.
2512         (Qethiopic_ucs): New variable in UTF-2000.
2513         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
2514         (complex_vars_of_mule_charset): Add new coded-charset
2515         `ethiopic-ucs' in UTF-2000.
2516
2517         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
2518         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
2519         9)'.
2520         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
2521         10)'.
2522         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
2523
2524 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
2525
2526         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
2527         `ascii'.
2528
2529 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2530
2531         * mule-charset.c (Vcharacter_variant_table): New variable.
2532         (Q_ucs): New variable.
2533         (Fchar_variants): New function.
2534         (Fput_char_attribute): Register `->ucs' value to
2535         `Vcharacter_variant_table'.
2536         (syms_of_mule_charset): Add new function `char-variants' and new
2537         symbol `->ucs'.
2538         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
2539
2540 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2541
2542         * mule-charset.c (get_char_code_table): Allow negative character
2543         code.
2544         (put_char_code_table): Likewise.
2545         (Vcharacter_composition_table): New variable.
2546         (Q_decomposition): New variable.
2547         (Qwide): New variable.
2548         (Qnarrow): New variable.
2549         (Qcompat): New variable.
2550         (QnoBreak): New variable.
2551         (Qsuper): New variable.
2552         (Qfraction): New variable.
2553         (to_char_code): New function.
2554         (Fget_composite_char): New function.
2555         (Fput_char_attribute): Register `->decomposition' value to
2556         `Vcharacter_composition_table'.
2557         (syms_of_mule_charset): Add new function `get-composite-char', new
2558         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
2559         `super' and `fraction'.
2560         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
2561
2562 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2563
2564         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
2565         character; copy the return value.
2566
2567 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2568
2569         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
2570
2571         * mule-charset.c (range_charset_code_point): Must use make_int.
2572         (split_builtin_char): New function.
2573
2574 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2575
2576         * mule-charset.c (char_byte_table): Change name from
2577         "char-code-table" to "char-byte-table".
2578         (mark_char_code_table): New function.
2579         (char_code_table_equal): New function.
2580         (char_code_table_hash): New function.
2581         (char_code_table_description): New constant.
2582         (char_code_table): New type.
2583         (make_char_code_table): New function.
2584         (copy_char_code_table): New function.
2585         (get_char_code_table): Modify for `char_code_table' type.
2586         (put_char_code_table): Likewise.
2587         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
2588         (Kashiwara).
2589
2590         * char-ucs.h (char_code_table): New type.
2591         (XCHAR_CODE_TABLE): New macro.
2592         (XSETCHAR_CODE_TABLE): New macro.
2593         (CHAR_CODE_TABLE_P): New macro.
2594         (GC_CHAR_CODE_TABLE_P): New macro.
2595         (struct Lisp_Char_Code_Table): New structure.
2596
2597 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2598
2599         * mule-charset.c (Fmake_charset): Setup byte_offset for
2600         {94|96}^n-set.
2601
2602 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2603
2604         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
2605         character.
2606
2607 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2608
2609         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
2610         is found.
2611
2612 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2613
2614         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
2615         charset, it is regarded as a charset.
2616         (put_char_attribute): New function in UTF-2000.
2617         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
2618         charset, mapping-table of the charset is modified.
2619         (Fdefine_char): New function in UTF-2000.
2620         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
2621         `Fput_char_attribute'.
2622         (syms_of_mule_charset): Add new function `define-char' and new
2623         symbol `ucs' in UTF-2000.
2624         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
2625
2626 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
2627
2628         * mule-charset.c (Fcharset_name): Define `byte_offset' in
2629         non-UTF-2000 configuration.
2630
2631 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
2632
2633         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
2634         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
2635
2636         * mule-charset.c (mark_charset): `cs->encoding_table' has been
2637         deleted.
2638         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
2639         (Fset_charset_mapping_table): Likewise.
2640
2641         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
2642         (CHARSET_ENCODING_TABLE): Delete.
2643         (XCHARSET_ENCODING_TABLE): Delete.
2644         (charset_code_point): New interface.
2645
2646 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
2647
2648         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
2649         instead of `charset_get_byte1' and `charset_get_byte2'.
2650
2651         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
2652         (charset_get_byte2): Deleted.
2653
2654 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
2655
2656         * char-ucs.h (SPLIT_CHAR): New inline function.
2657         (breakup_char_1): Use `SPLIT_CHAR'.
2658
2659         * mule-charset.c (range_charset_code_point): New function.
2660         (charset_code_point): New function.
2661
2662         * char-ucs.h (range_charset_code_point): New interface.
2663         (breakup_char_1): Use `range_charset_code_point'.
2664
2665 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
2666
2667         * mule-charset.c (Fmake_charset): Delete unused local variable
2668         `code_offset'.
2669
2670         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
2671         (breakup_char_1): Find a charset and code-point in
2672         `Vcharacter_attribute_table'.
2673
2674 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
2675
2676         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2677         to 0.10 (Yao).
2678
2679 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
2680
2681         * mule-charset.c (Vcharacter_attribute_table): New variable.
2682         (Fchar_attribute_alist): New function.
2683         (Fget_char_attribute): New function.
2684         (Fput_char_attribute): New function.
2685         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
2686         too.
2687         (syms_of_mule_charset): Add new function `char-attribute-alist',
2688         `get-char-attribute' and `put-char-attribute'.
2689         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
2690
2691 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
2692
2693         * mule-charset.c (Fmake_charset): Just use
2694         `get_unallocated_leading_byte'.
2695
2696         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
2697         sets; don't use final-byte based number for private sets.
2698
2699 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2700
2701         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
2702         integer.
2703
2704 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2705
2706         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2707         to 0.9.
2708
2709 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2710
2711         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
2712         of `CHAR_LEADING_BYTE' in UTF-2000.
2713
2714         * insdel.c (find_charsets_in_bufbyte_string): Use
2715         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
2716         (find_charsets_in_emchar_string): Likewise.
2717
2718         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
2719         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
2720
2721         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
2722         (CHAR_CHARSET_ID): New macro.
2723
2724 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2725
2726         * chartab.c (get_char_table): Don't use type `Charset_ID' for
2727         charset-id - MIN_LEADING_BYTE.
2728         (put_char_table): Likewise.
2729
2730 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2731
2732         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
2733         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
2734         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
2735         (CHARSET_ID_OFFSET): New macro.
2736         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
2737         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
2738         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
2739         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
2740         4).
2741         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
2742         5).
2743         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
2744         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
2745         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
2746         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
2747         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
2748
2749 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2750
2751         * mule-charset.c (next_allocated_leading_byte): New variable in
2752         UTF-2000.
2753         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
2754         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
2755         (get_unallocated_leading_byte): Simply use
2756         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
2757         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
2758         UTF-2000.
2759
2760         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
2761         (MAX_LEADING_BYTE_PRIVATE): New macro.
2762         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
2763         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
2764
2765 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2766
2767         * mule-charset.c (Fmake_charset): Allocate final-byte based
2768         charset-id for 94-set, 96-set and 94x94-set.
2769
2770 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2771
2772         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
2773         ambiguous `else'.
2774         (Fmake_charset): Likewise.
2775         (complex_vars_of_mule_charset): Modify the font registry of
2776         `ucs-bmp' not to match `Ethiopic-Unicode'.
2777
2778 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2779
2780         * mule-charset.c (complex_vars_of_mule_charset): Add font
2781         registory of `ucs-bmp'.
2782
2783 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2784
2785         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
2786         coded-charsets in `default-coded-charset-priority-list' when
2787         breaking up a character.
2788
2789         * mule-charset.c (Vcharset_latin_viscii): New variable.
2790         (Qlatin_viscii): New variable.
2791         (make_charset): Don't use `decoding_table'.
2792         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
2793         byte_offset.
2794         (Fset_charset_mapping_table): New implementation.
2795         (syms_of_mule_charset): Add new symbol `latin-viscii'.
2796         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
2797         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
2798         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
2799         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
2800         charset `latin_viscii'.
2801
2802         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
2803         (CHARSET_TYPE_94X94): Change to 1 from 2.
2804         (CHARSET_TYPE_96): Change to 2 from 1.
2805         (CHARSET_TYPE_128): New macro.
2806         (CHARSET_TYPE_128X128): Change to 5 from 4.
2807         (CHARSET_TYPE_256): New macro.
2808         (CHARSET_TYPE_256X256): Change to 7 from 5.
2809         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
2810
2811 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2812
2813         * text-coding.c (char_encode_shift_jis): Refer
2814         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
2815         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
2816
2817         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
2818         (char_byte_table_equal): New function in UTF-2000.
2819         (char_byte_table_hash): New function in UTF-2000.
2820         (char_byte_table_description): New constant in UTF-2000.
2821         (char_byte_table): New type in UTF-2000.
2822         (make_char_byte_table): New function in UTF-2000.
2823         (copy_char_byte_table): New function in UTF-2000.
2824         (make_char_code_table): New macro in UTF-2000.
2825         (get_char_code_table): New function in UTF-2000.
2826         (put_char_code_table): New function in UTF-2000.
2827         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
2828         (charset_description): Add setting in UTF-2000.
2829         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
2830         `CHARSET_TO_BYTE1_TABLE(cs)'.
2831         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
2832         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
2833         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
2834         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
2835         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
2836         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
2837         `CHARSET_TO_BYTE2_TABLE(cs)'.
2838
2839         * char-ucs.h (char_byte_table): New type.
2840         (XCHAR_BYTE_TABLE): New macro.
2841         (XSETCHAR_BYTE_TABLE): New macro.
2842         (CHAR_BYTE_TABLE_P): New macro.
2843         (GC_CHAR_BYTE_TABLE_P): New macro.
2844         (struct Lisp_Char_Byte_Table): New structure.
2845         (get_char_code_table): New interface.
2846         (Emchar_to_byte_table): Deleted.
2847         (get_byte_from_character_table): Deleted.
2848         (struct Lisp_Charset): Add `encoding_table'; delete
2849         `to_byte1_table' and `to_byte2_table'.
2850         (CHARSET_ENCODING_TABLE): New macro.
2851         (CHARSET_TO_BYTE1_TABLE): Deleted.
2852         (CHARSET_TO_BYTE2_TABLE): Deleted.
2853         (XCHARSET_ENCODING_TABLE): New macro.
2854         (XCHARSET_TO_BYTE1_TABLE): Deleted.
2855         (XCHARSET_TO_BYTE2_TABLE): Deleted.
2856
2857 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
2858
2859         * mule-charset.c (syms_of_mule_charset): Delete charset alias
2860         `vietnamese-viscii-*'.
2861
2862 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
2863
2864         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
2865         (Qvietnamese_viscii_upper): New variable.
2866         (Fdefine_charset_alias): New function.
2867         (syms_of_mule_charset): Add new function `define-charset-alias'.
2868         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
2869         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
2870         `latin-viscii-*'.
2871
2872 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
2873
2874         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
2875         (MAX_CHAR_OBS_94x94): New macro.
2876         (breakup_char_1): Support obsolete XEmacs-UCS private code space
2877         for 94x94 sets.
2878
2879         * mule-charset.c (put_byte_from_character_table): Change unit size
2880         from 128 to 256.
2881         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
2882         not defined.
2883         (Fmake_reverse_direction_charset): Modify dummy argument of
2884         `make_charset' for non-UTF-2000 environment.
2885
2886 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2887
2888         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
2889
2890         * mule-charset.c (destroy_byte_from_character_table): New macro.
2891         (latin_jisx0201_to_ucs): Deleted.
2892         (latin_iso8859_2_to_ucs): Deleted.
2893         (latin_iso8859_3_to_ucs): Deleted.
2894         (latin_iso8859_4_to_ucs): Deleted.
2895         (latin_iso8859_9_to_ucs): Deleted.
2896         (latin_viscii_lower_to_ucs): Deleted.
2897         (latin_viscii_upper_to_ucs): Deleted.
2898         (mark_charset): Mark `cs->decoding_table'.
2899         (Fcharset_mapping_table): Fix DOC-string.
2900         (Fset_charset_mapping_table): New function.
2901         (syms_of_mule_charset): Add nwe function
2902         `set-charset-mapping-table'.
2903         (complex_vars_of_mule_charset): Don't setup and use
2904         `latin_*_to_ucs'.
2905
2906 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2907
2908         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
2909         charset.
2910
2911 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2912
2913         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
2914         (Vcharset_katakana_jisx0208): New variable.
2915         (Qhiragana_jisx0208): New variable.
2916         (Qkatakana_jisx0208): New variable.
2917         (make_charset): Add new argument `byte_offset'.
2918         (charset_get_byte1): Modify for new coded-charset definition; use
2919         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
2920         `XCHARSET_BYTE_OFFSET'.
2921         (Fmake_charset): Modify for `make_charset'.
2922         (Fmake_reverse_direction_charset): Likewise.
2923         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
2924         `katakana-jisx0208'.
2925         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
2926         `.'  in font registry of charset `katakana-jisx0201',
2927         `latin-jisx0201', `vietnamese-viscii-lower' and
2928         `vietnamese-viscii-upper'; modify DOC-string of charset
2929         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
2930         registry of charset `japanese-jisx0208' not to use font for JIS
2931         X0208:1990; add new charset `hiragana-jisx0208' and
2932         `katakana-jisx0208'.
2933
2934         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
2935         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
2936         (struct Lisp_Charset): Add `byte_offset'.
2937         (CHARSET_BYTE_OFFSET): New macro.
2938         (XCHARSET_UCS_MIN): New macro.
2939         (XCHARSET_UCS_MAX): New macro.
2940         (XCHARSET_CODE_OFFSET): New macro.
2941         (XCHARSET_BYTE_OFFSET): New macro.
2942         (MIN_CHAR_HIRAGANA): New macro.
2943         (MAX_CHAR_HIRAGANA): New macro.
2944         (MIN_CHAR_KATAKANA): New macro.
2945         (MAX_CHAR_KATAKANA): New macro.
2946         (MAKE_CHAR): Modify for new coded-charset definition; use
2947         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
2948         `XCHARSET_BYTE_OFFSET'.
2949
2950 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
2951
2952         * mule-charset.c (CHAR96): Deleted.
2953         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
2954         <Lisp_Object>.
2955         (latin_iso8859_2_to_ucs): Likewise.
2956         (latin_iso8859_3_to_ucs): Likewise.
2957         (latin_iso8859_4_to_ucs): Likewise.
2958         (latin_iso8859_9_to_ucs): Likewise.
2959         (latin_viscii_lower_to_ucs): Likewise.
2960         (latin_viscii_upper_to_ucs): Likewise.
2961         (latin_tcvn5712_to_ucs): Commented out.
2962         (make_charset): Change type of argument `decoding_table' from
2963         <Emchar*> to <Lisp_Object> [vector of characters].
2964         (Fmake_charset): Modify for `make_charset'.
2965         (Fmake_reverse_direction_charset): Likewise.
2966         (Fcharset_mapping_table): New function in UTF-2000.
2967         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
2968         UTF-2000.
2969         (complex_vars_of_mule_charset): Modify for type change of
2970         `*_to_ucs'; modify for `make_charset'.
2971
2972         * char-ucs.h (struct Lisp_Charset): Change type of
2973         `decoding_table' from <Emchar*> to <Lisp_Object>.
2974         (MAKE_CHAR): Modify for new specification of `decoding_table'.
2975
2976 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
2977
2978         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
2979         error with non-UTF-2000-Mule.
2980
2981 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
2982
2983         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
2984         in lisp again].
2985         (Vcharset_chinese_cns11643_4): Likewise.
2986         (Vcharset_chinese_cns11643_5): Likewise.
2987         (Vcharset_chinese_cns11643_6): Likewise.
2988         (Vcharset_chinese_cns11643_7): Likewise.
2989         (Qchinese_cns11643_3): Likewise.
2990         (Qchinese_cns11643_4): Likewise.
2991         (Qchinese_cns11643_5): Likewise.
2992         (Qchinese_cns11643_6): Likewise.
2993         (Qchinese_cns11643_7): Likewise.
2994         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
2995         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
2996         and `chinese-cns11643-7' to lisp/mule/chinese.el.
2997         (complex_vars_of_mule_charset): Likewise.
2998
2999 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3000
3001         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
3002         96-set.
3003         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
3004         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
3005
3006 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
3007
3008         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
3009         0xFF60.
3010         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
3011         (breakup_char_1): Likewise.
3012
3013         * text-coding.c (char_encode_iso2022): Keep designated charsets if
3014         one of them includes the specified character.
3015
3016 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3017
3018         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
3019
3020 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3021
3022         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
3023
3024 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3025
3026         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
3027         definition for non-UTF-2000 Mule.
3028         (latin_iso8859_3_to_ucs): Likewise.
3029         (latin_iso8859_4_to_ucs): Likewise.
3030         (latin_iso8859_9_to_ucs): Likewise.
3031         (latin_jisx0201_to_ucs): Likewise.
3032         (MIN_CHAR_THAI): Likewise.
3033         (MAX_CHAR_THAI): Likewise.
3034         (MIN_CHAR_GREEK): Likewise.
3035         (MAX_CHAR_GREEK): Likewise.
3036         (MIN_CHAR_HEBREW): Likewise.
3037         (MAX_CHAR_HEBREW): Likewise.
3038         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
3039         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
3040         (MIN_CHAR_CYRILLIC): Likewise.
3041         (MAX_CHAR_CYRILLIC): Likewise.
3042
3043 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3044
3045         * char-ucs.h (breakup_char_1): Use
3046         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
3047         thai-tis620 and katakana-jisx0201 area.
3048
3049 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3050
3051         * char-ucs.h (breakup_char_1): Use
3052         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
3053         area.
3054
3055         * text-coding.c (reset_encoding_stream): Fixed.
3056         (char_encode_ucs4): Delete `& 255'.
3057
3058         * char-ucs.h (breakup_char_1): Use
3059         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
3060
3061 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3062
3063         * file-coding.c (Fmake_coding_system): Don't set up
3064         `codesys->fixed.size'.
3065         (encode_coding_no_conversion): Don't refer
3066         `str->codesys->fixed.size'.
3067
3068 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3069
3070         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
3071         (latin_a_char_to_byte1): Deleted.
3072         (latin_a_char_to_byte2): Deleted.
3073
3074 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3075
3076         * mule-charset.c (make_charset): Add new argument `ucs_min',
3077         `ucs_max' and `code_offset'.
3078         (charset_get_byte1): New implementation [delete specific charset
3079         depended implementations].
3080         (Fmake_charset): Modify for `make_charset'.
3081         (Fmake_reverse_direction_charset): Likewise.
3082         (complex_vars_of_mule_charset): Likewise.
3083
3084         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
3085         `code_offset'.
3086         (CHARSET_UCS_MIN): New macro.
3087         (CHARSET_UCS_MAX): New macro.
3088         (CHARSET_CODE_OFFSET): New macro.
3089         (MAKE_CHAR): Delete charset depended definitions [except
3090         katakana-jisx0201].
3091
3092 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
3093
3094         * char-ucs.h (breakup_char_1): Use
3095         `Vdefault_coded_charset_priority_list' for C0-Controls,
3096         Basic-Latin, C1-Controls and Latin-1-Supplement area.
3097
3098 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3099
3100         * char-ucs.h (charset_get_byte1): New function.
3101         (XCHARSET_GET_BYTE1): Deleted.
3102         (charset_get_byte2): New function.
3103         (XCHARSET_GET_BYTE2): Deleted.
3104         (Vdefault_coded_charset_priority_list): New external variable.
3105         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
3106         `Vdefault_preferred_coded_charset_list'.
3107
3108         * mule-charset.c (charset_get_byte1): New function.
3109         (charset_get_byte2): New function.
3110         (Vdefault_coded_charset_priority_list): New variable.
3111         (vars_of_mule_charset): Add new variable
3112         `default-coded-charset-priority-list'.
3113
3114 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3115
3116         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
3117         (XCHARSET_GET_BYTE2): New inline function.
3118         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
3119         `XCHARSET_GET_BYTE2'.
3120
3121 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3122
3123         * mule-charset.c (make_charset): Initialize
3124         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
3125         NULL if table is not defined.
3126
3127 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3128
3129         * text-coding.c (char_encode_shift_jis): Use
3130         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
3131         `ucs_to_latin_jisx0201'.
3132
3133         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
3134         (ucs_to_latin_iso8859_2): Deleted.
3135         (ucs_to_latin_iso8859_3): Deleted.
3136         (ucs_to_latin_iso8859_4): Deleted.
3137         (ucs_to_latin_iso8859_9): Deleted.
3138         (ucs_to_latin_viscii_lower): Deleted.
3139         (ucs_to_latin_viscii_upper): Deleted.
3140         (ucs_to_latin_tcvn5712): Deleted.
3141         (make_charset): Add new argument `decoding_table'; set up
3142         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
3143         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
3144         `decoding_table' is defined in UTF-2000.
3145         (Fmake_charset): Modify for `make_charset'.
3146         (Fmake_reverse_direction_charset): Likewise.
3147         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
3148         and `GENERATE_96_SET'.
3149
3150         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
3151         (ucs_to_latin_jisx0201): Deleted.
3152         (latin_iso8859_2_to_ucs): Deleted.
3153         (ucs_to_latin_iso8859_2): Deleted.
3154         (latin_iso8859_3_to_ucs): Deleted.
3155         (ucs_to_latin_iso8859_3): Deleted.
3156         (latin_iso8859_4_to_ucs): Deleted.
3157         (ucs_to_latin_iso8859_4): Deleted.
3158         (latin_iso8859_9_to_ucs): Deleted.
3159         (ucs_to_latin_iso8859_9): Deleted.
3160         (latin_viscii_lower_to_ucs): Deleted.
3161         (ucs_to_latin_viscii_lower): Deleted.
3162         (latin_viscii_upper_to_ucs): Deleted.
3163         (ucs_to_latin_viscii_upper): Deleted.
3164         (struct Lisp_Charset): Renamed `encoding_table' to
3165         `to_byte1_table'; add `to_byte2_table'.
3166         (CHARSET_DECODING_TABLE): New macro.
3167         (CHARSET_TO_BYTE1_TABLE): New macro.
3168         (CHARSET_TO_BYTE2_TABLE): New macro.
3169         (XCHARSET_DECODING_TABLE): New macro.
3170         (XCHARSET_TO_BYTE1_TABLE): New macro.
3171         (XCHARSET_TO_BYTE2_TABLE): New macro.
3172         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
3173         tables.
3174         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
3175         don't use `ucs_to_*' tables.
3176
3177 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3178
3179         * text-coding.c (Fmake_coding_system): Don't set up
3180         `codesys->fixed.size'.
3181         (encode_coding_no_conversion): Use `if' instead of `switch'.
3182
3183         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
3184
3185 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3186
3187         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
3188         (Fmake_charset): Modify for `make_charset'.
3189         (Fmake_reverse_direction_charset): Likewise.
3190         (complex_vars_of_mule_charset): Likewise.
3191
3192 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3193
3194         * text-coding.c (char_encode_shift_jis): Use table
3195         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
3196
3197 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3198
3199         * text-coding.c (text_encode_generic): Use `if' instead of
3200         `switch'.
3201         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
3202         decode JIS-Latin.
3203
3204 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3205
3206         * text-coding.c (encode_coding_sjis): Deleted.
3207         (char_encode_shift_jis): New function.
3208         (char_finish_shift_jis): New function.
3209         (reset_encoding_stream): Set up `encode_char' and `finish' for
3210         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
3211         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
3212         (char_encode_utf8): Treat `eol_type'.
3213
3214 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3215
3216         * file-coding.c (decode_coding_iso2022): Use
3217         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
3218
3219 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3220
3221         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3222         to 0.7 (Hirano).
3223
3224 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3225
3226         * char-lb.h (CHAR_COLUMNS): New macro.
3227
3228 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3229
3230         * text-coding.c (char_encode_ucs4): New function.
3231         (char_finish_ucs4): New function.
3232         (encode_coding_ucs4): Deleted.
3233         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
3234         (text_encode_generic): Delete local variable `charset' and `half'.
3235         (ucs_to_mule_table): Deleted.
3236         (mule_to_ucs_table): Deleted.
3237         (Fset_ucs_char): Deleted.
3238         (ucs_to_char): Deleted.
3239         (Fucs_char): Deleted.
3240         (Fset_char_ucs): Deleted.
3241         (Fchar_ucs): Deleted.
3242         (decode_ucs4): Deleted.
3243         (mule_char_to_ucs4): Deleted.
3244         (encode_ucs4): Deleted.
3245         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
3246         (decode_coding_utf8): Likewise.
3247         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
3248         (char_encode_iso2022): Fixed.
3249         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
3250         `Fset_char_ucs' and `Fchar_ucs'.
3251         (complex_vars_of_file_coding): Don't initialize
3252         `ucs_to_mule_table'.
3253
3254         * objects-tty.c (tty_initialize_font_instance): Don't use
3255         `XCHARSET_COLUMNS'.
3256
3257         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
3258         UTF-2000.
3259
3260         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
3261         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3262
3263         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
3264         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3265         (emchar_string_displayed_columns): Likewise.
3266
3267         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
3268         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3269         (string_column_at_point): Likewise.
3270         (Fmove_to_column): Likewise.
3271
3272         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
3273         `encoding_table' and `decoding_table'.
3274         (CHARSET_REP_BYTES): Deleted.
3275         (XCHARSET_REP_BYTES): Deleted.
3276         (XCHARSET_COLUMNS): Deleted.
3277         (CHAR_COLUMNS): New macro.
3278         (lookup_composite_char): Deleted unconditionally.
3279         (composite_char_string): Likewise.
3280
3281 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3282
3283         * char-ucs.h (Emchar_to_byte_table): New type.
3284         (get_byte_from_character_table): New function interface.
3285         (Vcharset_latin_jisx0201): New variable.
3286         (latin_jisx0201_to_ucs): New variable.
3287         (ucs_to_latin_jisx0201): New variable.
3288         (Vcharset_latin_iso8859_2): New variable.
3289         (latin_iso8859_2_to_ucs): New variable.
3290         (ucs_to_latin_iso8859_2): New variable.
3291         (Vcharset_latin_iso8859_3): New variable.
3292         (latin_iso8859_3_to_ucs): New variable.
3293         (ucs_to_latin_iso8859_3): New variable.
3294         (Vcharset_latin_iso8859_4): New variable.
3295         (latin_iso8859_4_to_ucs): New variable.
3296         (ucs_to_latin_iso8859_4): New variable.
3297         (Vcharset_latin_iso8859_9): New variable.
3298         (latin_iso8859_9_to_ucs): New variable.
3299         (ucs_to_latin_iso8859_9): New variable.
3300         (Vcharset_latin_viscii_lower): New variable.
3301         (latin_viscii_lower_to_ucs): New variable.
3302         (ucs_to_latin_viscii_lower): New variable.
3303         (Vcharset_latin_viscii_upper): New variable.
3304         (latin_viscii_upper_to_ucs): New variable.
3305         (ucs_to_latin_viscii_upper): New variable.
3306         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
3307         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
3308         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
3309         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
3310         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
3311         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
3312         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
3313         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
3314         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
3315         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
3316
3317         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
3318         (Vcharset_latin_viscii_upper): New variable.
3319         (make_byte_from_character_table): New function.
3320         (put_byte_from_character_table): New function.
3321         (get_byte_from_character_table): New function.
3322         (CHAR96): New macro.
3323         (ucs_to_latin_jisx0201): New variable.
3324         (latin_jisx0201_to_ucs): New variable.
3325         (ucs_to_latin_iso8859_2): New variable.
3326         (latin_iso8859_2_to_ucs): New variable.
3327         (ucs_to_latin_iso8859_3): New variable.
3328         (latin_iso8859_3_to_ucs): New variable.
3329         (ucs_to_latin_iso8859_4): New variable.
3330         (latin_iso8859_4_to_ucs): New variable.
3331         (ucs_to_latin_iso8859_9): New variable.
3332         (latin_iso8859_9_to_ucs): New variable.
3333         (ucs_to_latin_viscii_lower): New variable.
3334         (latin_viscii_lower_to_ucs): New variable.
3335         (ucs_to_latin_viscii_upper): New variable.
3336         (latin_viscii_upper_to_ucs): New variable.
3337         (ucs_to_latin_tcvn5712): New variable.
3338         (latin_tcvn5712_to_ucs): New variable.
3339         (Qlatin_viscii_lower): New variable.
3340         (Qlatin_viscii_upper): New variable.
3341         (syms_of_mule_charset): Set up new symbol
3342         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
3343         (complex_vars_of_mule_charset): Set up new charset
3344         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
3345         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
3346         `ucs_to_<CHARSET>' tables.
3347
3348 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
3349
3350         * text-coding.c: New file.
3351
3352 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
3353
3354         * mule-charset.c (Fmake_char): Fix problem of 256-set.
3355
3356         * char-ucs.h (Vcharset_ucs_bmp): New variable.
3357         (MAKE_CHAR): Modify for `ucs-bmp'.
3358         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
3359         non-MULE characters of BMP.
3360
3361 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
3362
3363         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3364         to 0.6.
3365
3366 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3367
3368         * lstream.h:
3369         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
3370         - Include character.h for `CHAR_ASCII_P'.
3371
3372         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
3373
3374         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
3375         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
3376
3377         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
3378         (BYTE_C0_P): Likewise.
3379         (BYTE_C1_P): Likewise.
3380         (Lstream_get_emchar_1): Likewise.
3381         (Lstream_fput_emchar): Likewise.
3382         (Lstream_funget_emchar): Likewise.
3383         (copy_internal_to_external): Likewise.
3384         (copy_external_to_internal): Likewise.
3385
3386         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
3387         (BYTE_C0_P): Likewise.
3388         (BYTE_C1_P): Likewise.
3389         (Lstream_get_emchar_1): Likewise.
3390         (Lstream_fput_emchar): Likewise.
3391         (Lstream_funget_emchar): Likewise.
3392         (copy_internal_to_external): Likewise.
3393         (copy_external_to_internal): Likewise.
3394
3395         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
3396         (REP_BYTES_BY_FIRST_BYTE): Likewise.
3397
3398         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
3399         (BYTE_ASCII_P): Moved to mb-1byte.h.
3400
3401 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3402
3403         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
3404
3405         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
3406         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
3407         (VALID_CHARPTR_P): Moved to mb-*byte.h.
3408         (VALIDATE_CHARPTR_BACKWARD): Likewise.
3409         (VALIDATE_CHARPTR_FORWARD): Likewise.
3410         (simple_charptr_emchar): Moved to mb-multibyte.h.
3411         (simple_set_charptr_emchar): Likewise.
3412         (simple_charptr_copy_char): Likewise.
3413         (non_ascii_charptr_emchar): Likewise.
3414         (non_ascii_set_charptr_emchar): Likewise.
3415         (non_ascii_charptr_copy_char): Likewise.
3416         (charptr_emchar): Moved to mb-*byte.h.
3417         (set_charptr_emchar): Likewise.
3418         (charptr_copy_char): Likewise.
3419
3420         * mb-1byte.h, mb-multibyte.h: New files.
3421
3422 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3423
3424         * mb-utf-8.h (MULTIBYTE): New macro.
3425         (MAX_EMCHAR_LEN): Moved from buffer.h.
3426         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
3427
3428         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
3429
3430         * mb-lb.h, multibyte.h: New files.
3431
3432         * char-1byte.h (Charset_ID): Moved from buffer.h.
3433         (MIN_LEADING_BYTE): Likewise.
3434         (LEADING_BYTE_ASCII): Likewise.
3435         (NUM_LEADING_BYTES): Likewise.
3436         (CHARSETP): Likewise.
3437         (CHARSET_BY_LEADING_BYTE): Likewise.
3438         (XCHARSET_LEADING_BYTE): Likewise.
3439         (XCHARSET_GRAPHIC): Likewise.
3440         (XCHARSET_COLUMNS): Likewise.
3441         (XCHARSET_DIMENSION): Likewise.
3442         (CHAR_CHARSET): Likewise.
3443         (CHAR_LEADING_BYTE): Likewise.
3444         (BREAKUP_CHAR): Likewise.
3445         (Vcharset_ascii): Likewise.
3446
3447         * buffer.h: Include multibyte.h unconditionally.
3448         (VALID_CHARPTR_P): Moved to multibyte.h.
3449         (ASSERT_VALID_CHARPTR): Likewise.
3450         (REAL_INC_CHARPTR): Likewise.
3451         (REAL_INC_CHARBYTIND): Likewise.
3452         (REAL_DEC_CHARPTR): Likewise.
3453         (INC_CHARPTR): Likewise.
3454         (INC_CHARBYTIND): Likewise.
3455         (DEC_CHARPTR): Likewise.
3456         (VALIDATE_CHARPTR_BACKWARD): Likewise.
3457         (VALIDATE_CHARPTR_FORWARD): Likewise.
3458         (charptr_n_addr): Likewise.
3459         (MAX_EMCHAR_LEN): Moved to mb-*.h.
3460         (simple_charptr_emchar): Moved to multibyte.h.
3461         (simple_set_charptr_emchar): Likewise.
3462         (simple_charptr_copy_char): Likewise.
3463         (non_ascii_charptr_emchar): Likewise.
3464         (non_ascii_set_charptr_emchar): Likewise.
3465         (non_ascii_charptr_copy_char): Likewise.
3466         (charptr_emchar): Likewise.
3467         (set_charptr_emchar): Likewise.
3468         (charptr_copy_char): Likewise.
3469         (charptr_emchar_n): Likewise.
3470         (Charset_ID): Moved to char-1byte.h.
3471         (Vcharset_ascii): Likewise.
3472         (CHAR_CHARSET): Likewise.
3473         (CHAR_LEADING_BYTE): Likewise.
3474         (LEADING_BYTE_ASCII): Likewise.
3475         (NUM_LEADING_BYTES): Likewise.
3476         (MIN_LEADING_BYTE): Likewise.
3477         (CHARSETP): Likewise.
3478         (CHARSET_BY_LEADING_BYTE): Likewise.
3479         (XCHARSET_LEADING_BYTE): Likewise.
3480         (XCHARSET_GRAPHIC): Likewise.
3481         (XCHARSET_COLUMNS): Likewise.
3482         (XCHARSET_DIMENSION): Likewise.
3483         (BREAKUP_CHAR): Likewise.
3484
3485 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3486
3487         * character.h: Add document about interface for characters.
3488
3489         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
3490         (MAKE_CHAR): Delete comment about
3491         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
3492         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
3493         (BREAKUP_CHAR): Modify name of arguments.
3494         (CHAR_CHARSET): Modify name of argument.
3495
3496         * buffer.h: Delete document about Emchar accessors.
3497
3498 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3499
3500         * character.h (CHAR_INTP): Moved from buffer.h
3501         (CHAR_OR_CHAR_INTP): Likewise.
3502         (XCHAR_OR_CHAR_INT): Likewise.
3503         (CHECK_CHAR_COERCE_INT): Likewise.
3504
3505         * buffer.h (CHAR_INTP): Moved to character.h
3506         (CHAR_OR_CHAR_INTP): Likewise.
3507         (XCHAR_OR_CHAR_INT): Likewise.
3508         (CHECK_CHAR_COERCE_INT): Likewise.
3509
3510 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3511
3512         * character.h:
3513         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
3514         - Include char-1byte.h, char-lb.h or char-ucs.h.
3515
3516         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
3517
3518         * buffer.h: Include character unconditionally.
3519         (valid_char_p): Moved to char-*.h.
3520         (non_ascii_valid_char_p): Moved to char-lb.h.
3521
3522         * char-1byte.h, char-lb.h, char-ucs.h: New files.
3523
3524 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3525
3526         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
3527         in UTF-2000 because it is not ported yet and not to use
3528         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
3529         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
3530         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
3531
3532         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
3533         (CHAR_ASCII_P): Moved from character.h.
3534
3535         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
3536         (CHAR_ASCII_P): Likewise.
3537         (CHAR_FIELD1_MASK): Deleted.
3538         (CHAR_FIELD2_MASK): Deleted.
3539         (CHAR_FIELD3_MASK): Deleted.
3540         (MAX_CHAR_BASIC_LATIN): New macro.
3541         (CHAR_FIELD1): Deleted.
3542         (CHAR_FIELD2_INTERNAL): Deleted.
3543         (CHAR_FIELD3_INTERNAL): Deleted.
3544         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
3545         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
3546         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
3547         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
3548         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
3549         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
3550         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
3551         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
3552         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
3553         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
3554         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
3555         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
3556         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
3557         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
3558         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
3559         (MIN_CHAR_COMPOSITION): Deleted.
3560         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
3561         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
3562
3563 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
3564
3565         * buffer.h: Include mb-utf-8.h in UTF-2000.
3566
3567         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
3568
3569         * mb-utf-8.h: New file.
3570
3571 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
3572
3573         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
3574         instead of `int'.
3575
3576         * mule-charset.h, buffer.h (Charset_ID): New type.
3577
3578 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
3579
3580         * mule-canna.c (c2mu): Use `MAKE_CHAR',
3581         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
3582         instead of `MULE_CHAR_PRIVATE_OFFSET',
3583         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
3584         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
3585         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
3586
3587         * character.h (Vcharset_japanese_jisx0212): New variable
3588         definition.
3589
3590 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
3591
3592         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
3593         (charset_by_attributes): Delete array about direction.
3594         (latin_a_char_to_charset): New variable in UTF-2000.
3595         (latin_a_char_to_byte1): New variable in UTF-2000.
3596         (latin_a_char_to_byte2): New variable in UTF-2000.
3597         (Qucs_bmp): New variable.
3598         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
3599         `Bufbyte'.
3600         (next_allocated_2_byte_leading_byte): Likewise.
3601         (non_ascii_set_charptr_emchar): Likewise.
3602         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
3603         `CHARSET_TYPE_256X256' in UTF-2000; modify for
3604         `charset_by_attributes'.
3605         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
3606         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
3607         and `CHARSET_BY_LEADING_BYTE'.
3608         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
3609         `utf-2000-version' to `vars_of_mule_charset'.
3610         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
3611         define `leading-code-private-11' in UTF-2000; move setting of
3612         `utf-2000-version' from `syms_of_mule_charset'.
3613         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
3614         UTF-2000.
3615
3616         * character.h (Charset_ID): New type.
3617         (LEADING_BYTE_UCS_BMP): New macro.
3618         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
3619         (CHARSET_ID_OFFSET_94): New macro.
3620         (MIN_CHARSET_ID_PRIVATE_94): New macro.
3621         (MAX_CHARSET_ID_PRIVATE_94): New macro.
3622         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
3623         final-byte.
3624         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
3625         (LEADING_BYTE_LATIN_JISX0201): Likewise.
3626         (CHARSET_ID_OFFSET_96): New macro.
3627         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
3628         CHARSET_ID_OFFSET_96 and final-byte.
3629         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
3630         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
3631         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
3632         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
3633         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
3634         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
3635         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
3636         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
3637         (LEADING_BYTE_THAI_TIS620): Likewise.
3638         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
3639         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
3640         (CHARSET_ID_OFFSET_94x94): New macro.
3641         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
3642         CHARSET_ID_OFFSET_94x94 and final-byte.
3643         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
3644         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
3645         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
3646         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
3647         (LEADING_BYTE_CHINESE_GB2312): Likewise.
3648         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
3649         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
3650         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
3651         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
3652         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
3653         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
3654         (CHARSET_TYPE_128X128): New macro.
3655         (CHARSET_TYPE_256X256): New macro.
3656         (XCHARSET_PRIVATE_P): Delete unconditionally.
3657         (charset_by_attributes): Delete array about direction.
3658         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
3659         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
3660         (MIN_CHAR_94): New macro.
3661         (MAX_CHAR_94): New macro.
3662         (MIN_CHAR_96): New macro.
3663         (MAX_CHAR_96): New macro.
3664         (MIN_CHAR_94x94): New macro.
3665         (MAX_CHAR_94x94): New macro.
3666         (MIN_CHAR_96x96): New macro.
3667         (MAX_CHAR_96x96): New macro.
3668         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
3669         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
3670         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
3671         - 32)'.
3672         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
3673         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
3674         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
3675         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
3676         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
3677         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
3678         `XCHARSET_LEADING_BYTE' to make code-point.
3679         (latin_a_char_to_charset): New variable.
3680         (latin_a_char_to_byte1): New variable.
3681         (latin_a_char_to_byte2): New variable.
3682         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
3683         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
3684         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
3685
3686         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
3687         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
3688         (find_charsets_in_emchar_string): Likewise.
3689         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
3690
3691         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
3692         `int'.
3693         (decode_coding_iso2022): Likewise.
3694
3695         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
3696         of `unsigned char'.
3697
3698         * redisplay.c (redisplay_text_width_emchar_string): Use
3699         `Charset_ID' instead of `unsigned char'.
3700         (redisplay_frame_text_width_string): Likewise.
3701
3702         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
3703         `unsigned char'.
3704
3705         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
3706         instead of `unsigned char'.
3707         (face_cachel_charset_font_metric_info): Likewise.
3708
3709         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
3710         (get_non_ascii_char_table_value): Likewise.
3711         (get_char_table): Likewise.
3712         (put_char_table): Likewise.
3713         (map_over_other_charset): Likewise.
3714         (map_char_table): Likewise.
3715
3716         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
3717         instead of `unsigned char'.
3718
3719 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
3720
3721         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
3722         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
3723
3724         * mule-charset.c (leading_code_private_11): Don't define in
3725         UTF-2000.
3726
3727         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
3728         in UTF-2000 because it is not ported yet and not to use
3729         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
3730
3731 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
3732
3733         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
3734
3735 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3736
3737         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
3738         in UTF-2000.
3739
3740         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
3741         of unsigned char to store leading-byte.
3742
3743         * chartab.c (get_non_ascii_char_table_value): Don't use
3744         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
3745
3746         * file-coding.c (encode_coding_big5): Delete bogus implementation
3747         in UTF2000.
3748
3749         * character.h (LEADING_BYTE_*): Delete definition for
3750         non-UTF-2000.
3751         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
3752         (LEADING_BYTE_PREFIX_P): Deleted.
3753         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
3754         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
3755         (BUFBYTE_LEADING_BYTE_P): Deleted.
3756         (CHARSET_PRIVATE_P): Deleted unconditionally.
3757         (rep_bytes_by_first_byte): Deleted unconditionally.
3758         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
3759         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
3760         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
3761         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
3762         (CHAR_FIELD2): Deleted.
3763         (CHAR_FIELD3): Deleted.
3764         (MAKE_CHAR): Delete definition for non-UTF-2000.
3765         (BREAKUP_CHAR_1_UNSAFE): Deleted.
3766         (breakup_char_1): New implementation.
3767         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
3768         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
3769
3770 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3771
3772         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
3773         condition.
3774
3775 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3776
3777         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
3778         (CHARSET_PRIVATE_P): Likewise.
3779         (XCHARSET_PRIVATE_P): Likewise.
3780         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
3781
3782         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
3783         UTF2000.
3784         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
3785
3786 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3787
3788         * character.h (LEADING_BYTE_*): Changed in UTF2000.
3789         (NUM_LEADING_BYTES): Changed from 128 to 256.
3790         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
3791         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
3792         UTF2000.
3793         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
3794
3795         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
3796         UTF2000.
3797         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
3798         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
3799         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
3800         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
3801         (Qchinese_cns11643_3): New variable in UTF2000.
3802         (Qchinese_cns11643_4): New variable in UTF2000.
3803         (Qchinese_cns11643_5): New variable in UTF2000.
3804         (Qchinese_cns11643_6): New variable in UTF2000.
3805         (Qchinese_cns11643_7): New variable in UTF2000.
3806         (syms_of_mule_charset): Define `chinese-cns11643-3',
3807         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
3808         and `chinese-cns11643-7' in UTF2000.
3809         (vars_of_mule_charset): Initialize
3810         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
3811         + 1 in UTF2000.
3812         (complex_vars_of_mule_charset): Setup charset
3813         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
3814         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
3815
3816 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3817
3818         * mule-charset.c: Move setting for `leading-code-private-11' from
3819         `syms_of_mule_charset' to `vars_of_mule_charset'.
3820
3821 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3822
3823         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
3824         and `NUM_LEADING_BYTES' in assert.
3825
3826 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3827
3828         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
3829         instead of 128.
3830         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
3831         `NUM_LEADING_BYTES' instead of 128.
3832
3833 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3834
3835         * mule-charset.h (charset_by_leading_byte): Use
3836         `NUM_LEADING_BYTES' instead of 128.
3837         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
3838
3839         * mule-charset.c (charset_by_leading_byte): Use
3840         `NUM_LEADING_BYTES' instead of 128.
3841         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
3842
3843         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
3844         128.
3845
3846 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
3847
3848         * mule-charset.c (syms_of_mule_charset): Update to
3849         0.4 (Shin-Imamiya).
3850
3851 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
3852
3853         * file-coding.c (encode_coding_sjis): New implementation for
3854         UTF2000.  (decode_coding_sjis): Ditto.
3855
3856 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
3857
3858         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
3859         Don't define in UTF2000.
3860
3861         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
3862         defined.
3863
3864         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
3865         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
3866         MULE.
3867
3868 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
3869
3870         * config.h.in (CHAR_IS_UCS4): New macro.
3871
3872         * mule-charset.c (rep_bytes_by_first_byte): Modify for
3873         conventional MULE representation.
3874         (syms_of_mule_charset): Update to 0.3 (Imamiya).
3875
3876         * mule-charset.h: Reverted to original.
3877
3878         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
3879         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
3880         "mule-charset.h" if CHAR_IS_UCS4 is defined.
3881
3882         * character.h: New file.
3883
3884         * file-coding.c (Fmake_coding_system): Set 1 to
3885         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
3886         defined.
3887         (encode_coding_no_conversion): New implementation for UTF2000.
3888
3889         * file-coding.h (struct Lisp_Coding_System): Add new member
3890         `fixed.size'.
3891
3892 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
3893
3894         * file-coding.c (decode_coding_iso2022): Code-point arguments of
3895         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
3896         (encode_coding_iso2022): New implementation for UTF2000.
3897
3898 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3899
3900         * mule-canna.c (c2mu): New implementation for UTF2000.
3901         (m2c): Likewise.
3902
3903 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3904
3905         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
3906
3907 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3908
3909         * file-coding.c (reset_encoding_stream): Set 0 to
3910         `str->iso2022.current_char_boundary' in UTF2000.
3911         (encode_utf8): Don't define in UTF2000.
3912         (encode_coding_utf8): New implementation for UTF-8 representation
3913         of UTF2000.
3914         (complex_vars_of_file_coding): Define coding-system `utf-8'.
3915
3916 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3917
3918         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
3919
3920         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
3921         UTF2000.
3922         (REP_BYTES_BY_FIRST_BYTE): Likewise.
3923
3924         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
3925
3926         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
3927         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
3928         as UTF-8 in UTF2000.
3929         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
3930         (non_ascii_valid_char_p): Don't define in UTF2000.
3931         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
3932         (Lstream_get_emchar_1): Likewise.
3933         (utf-2000-version): New variable in UTF2000.
3934
3935         * lread.c (read_escape): Add new reader `u'.
3936
3937         * insdel.c (three_to_one_table): Don't define in UTF2000.
3938         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
3939         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
3940         UTF2000.
3941         (bytind_to_bufpos_func): Likewise.
3942         (buffer_mule_signal_inserted_region): Likewise.
3943         (vars_of_insdel): Don't initialize `three_to_one_table'.
3944         (init_buffer_text): Use `buf->text->mule_size' instead of
3945         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
3946         UTF2000.
3947
3948         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
3949         UTF-8 representation in UTF2000.
3950         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
3951         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
3952         (decode_coding_iso2022): Don't define local variable `lb' in
3953         UTF2000; don't use LEADING_BYTE in UTF2000; use
3954         `DECODE_ADD_UCS_CHAR' in UTF2000.
3955         (convert_to_external_format): Decode as UTF-8 in UTF2000.
3956
3957         * config.h.in (UTF2000): New macro.
3958
3959         * buffer.h (struct buffer_text): Add new member `mule_size' and
3960         don't add `mule_shifter' and `mule_three_p' in UTF2000.
3961         (valid_char_p): Return always 1 in UTF2000.
3962         (MAX_EMCHAR_LEN): 6 in UTF2000.
3963         (three_to_one_table): Don't define in UTF2000.
3964         (real_bufpos_to_bytind): Modify for UTF-8 representation in
3965         UTF2000.
3966         (real_bytind_to_bufpos): Likewise.
3967
3968         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
3969
3970 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3971
3972         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
3973         representation change.
3974         (Vutf_2000_version): New variable.
3975         (leading_code_private_11): New variable.
3976         (syms_of_mule_charset): Add new variables `utf-2000-version' and
3977         `leading-code-private-11'.
3978
3979         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
3980         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
3981         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
3982         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
3983         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
3984         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
3985         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
3986         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
3987         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
3988         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
3989         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
3990         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
3991         (MIN_CHAR_GREEK): New macro.
3992         (MAX_CHAR_GREEK): New macro.
3993         (MIN_CHAR_CYRILLIC): New macro.
3994         (MAX_CHAR_CYRILLIC): New macro.
3995         (MIN_CHAR_HEBREW): New macro.
3996         (MAX_CHAR_HEBREW): New macro.
3997         (MIN_CHAR_THAI): New macro.
3998         (MAX_CHAR_THAI): New macro.
3999         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
4000         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
4001         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
4002         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
4003         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
4004         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
4005         (CHAR_FIELD2): New inline function.
4006         (CHAR_FIELD3): New inline function.
4007         (MULE_CHAR_PRIVATE_OFFSET): New macro.
4008         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
4009         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
4010         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
4011         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
4012         (MIN_CHAR_COMPOSITION): Likewise.
4013         (CHAR_LEADING_BYTE): Modified for character representation change.
4014         (MAKE_CHAR): Likewise.
4015
4016         * lisp.h (Vcharset_latin_iso8859_1): New variable.
4017         (Vcharset_greek_iso8859_7): Likewise.
4018         (Vcharset_cyrillic_iso8859_5): Likewise.
4019         (Vcharset_hebrew_iso8859_8): Likewise.
4020         (Vcharset_thai_tis620): Likewise.
4021         (Vcharset_katakana_jisx0201): Likewise.
4022
4023 2001-02-08  Martin Buchholz <martin@xemacs.org>
4024
4025         * XEmacs 21.2.44 "Thalia" is released.
4026
4027 2001-02-06  Martin Buchholz  <martin@xemacs.org>
4028
4029         Fixes crashes in kill-emacs on some systems.
4030         * process-unix.c (unix_kill_child_process):
4031         It's OK for kill() to fail with ESRCH.
4032
4033 2001-02-07  Martin Buchholz  <martin@xemacs.org>
4034
4035         Contortions to make .gdbinit tricks work on most systems.
4036         * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
4037         * alloc.c (dbg_valmask): Make non-const.
4038         * alloc.c (dbg_typemask): Make non-const.
4039         * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
4040         * alloc.c (dbg_valbits): Make non-const.
4041         * alloc.c (dbg_gctypebits): Make non-const.
4042         * .gdbinit (decode_object): Make it work with AIX cc.
4043
4044 2001-02-06  Martin Buchholz  <martin@xemacs.org>
4045
4046         * elhash.c (make_general_lisp_hash_table):
4047         Use simpler and more efficient calloc to clear entries.
4048
4049 2001-02-07  Martin Buchholz  <martin@xemacs.org>
4050
4051         * window.c (window_scroll): Work around an AIX C compiler bug.
4052         Fixes 'scroll-up' does nothing problem with xlC.
4053
4054 2001-02-05  Martin Buchholz  <martin@xemacs.org>
4055
4056         * .gdbinit: Remove obsolete comment.
4057
4058 2001-01-31  Mike Alexander  <mta@arbortext.com>
4059
4060         * select.c (Fown_selection_internal): Set owned_p for device
4061         method correctly.
4062
4063 2001-02-01  Martin Buchholz  <martin@xemacs.org>
4064
4065         Port to g++ 2.97.
4066         "not" cannot be used as a macro name as it is an operator in C++
4067         * config.h.in: Stop #defining `not'.
4068         * chartab.c (check_category_char): not ==> not_p
4069         * chartab.h: Likewise.
4070         * regex.c (re_match_2_internal): Likewise.
4071
4072 2001-02-02  Martin Buchholz  <martin@xemacs.org>
4073
4074         * lisp-disunion.h: Fix up comments.
4075
4076 2001-01-31  Martin Buchholz  <martin@xemacs.org>
4077
4078         * keymap.c (define_key_check_and_coerce_keysym):
4079         (syms_of_keymap):
4080         Support mouse-6 and mouse-7 bindings in the obvious way.
4081
4082 2001-02-01  Martin Buchholz  <martin@xemacs.org>
4083
4084         * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
4085
4086 2001-01-30  Martin Buchholz  <martin@xemacs.org>
4087
4088         Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
4089         Previous patch missed DEFVAR_INT_MAGIC.
4090         Make sure future DEFVAR_foo use correct types.
4091         * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
4092         * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
4093         * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
4094         * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
4095         * (DEFVAR_INT): Likewise.
4096         * redisplay.c (vertical_clip): Should be of type Fixnum.
4097         * redisplay.c (horizontal_clip): Likewise.
4098         * lisp.h (dump_add_opaque_int): New.
4099         (dump_add_opaque_fixnum): New.
4100
4101 2001-01-29  Andy Piper  <andy@xemacs.org>
4102
4103         * glyphs-widget.c (check_valid_int_or_function): allow symbols
4104         since they can be eval'ed
4105
4106 2001-01-29  Martin Buchholz  <martin@xemacs.org>
4107
4108         * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
4109         Oops, XEmacs redefines `class'.  Use `typename' instead.
4110
4111 2001-01-28  Martin Buchholz  <martin@xemacs.org>
4112
4113         * dumper.c: Fix C++ compile errors.
4114
4115 2001-01-29  Martin Buchholz  <martin@xemacs.org>
4116
4117         * tparam.c: Use correct prototypes.
4118
4119 2001-01-28  Martin Buchholz  <martin@xemacs.org>
4120
4121         * sysproc.h: #include util.h for NetBSD's openpty.
4122
4123 2001-01-27  Martin Buchholz  <martin@xemacs.org>
4124
4125         More 64-bit correctness.
4126         The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
4127         Use a typedef `fixnum' for the type used for DEFVAR_INT.
4128         Fix up comments.
4129         This finally finishes the 64-bit SGI port.
4130         Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
4131         * symbols.c: Fix up comments and type casts.
4132         * symbols.c (do_symval_forwarding): s/int/Fixnum/g
4133         * symbols.c (store_symval_forwarding): s/int/Fixnum/g
4134         * symeval.h (Fixnum): New type.
4135         * symeval.h (symbol_value_type): Fix up comment.
4136
4137         * commands.h:
4138         * nt.c:
4139         * emacs.c:
4140         * data.c:
4141         * redisplay.c:
4142         * abbrev.c:
4143         * dired-msw.c:
4144         * event-Xt.c:
4145         * eldap.c:
4146         * window.c:
4147         * sound.c:
4148         * event-stream.c:
4149         * eval.c:
4150         * buffer.c:
4151         * mule-canna.c: A million DEFVAR_INTs here...
4152         * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
4153         * extents.c:
4154         * cmdloop.c:
4155         * lisp.h:
4156         * select-x.c:
4157         * console-x.h:
4158         * event-msw.c:
4159         * mule-wnnfns.c:
4160         * hpplay.c:
4161         * ralloc.c:
4162         * alloc.c:
4163         * keymap.c:
4164         * profile.c:
4165         s/int/Fixnum/g in DEFVAR_INT declarations.
4166
4167 2001-01-26  Martin Buchholz  <martin@xemacs.org>
4168
4169         Port pdump to SGI alignment-sensitive environment.
4170         Lisp Object sizeof methods now return aligned sizes.  Rely on that.
4171         Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
4172         properly aligned.
4173         Define and use aligned reading and writing macros.
4174         Use buffered stdio instead of posix i/o for faster dumping.
4175         Eliminate kludgy 256 byte space for header.
4176         Read and write from dump file using structs for alignment safety.
4177         * dumper.c (pdump_align_stream): New.
4178         * dumper.c (PDUMP_ALIGN_OUTPUT): New.
4179         * dumper.c (PDUMP_READ_ALIGNED): New.
4180         * dumper.c (PDUMP_WRITE_ALIGNED): New.
4181         * dumper.c (pdump_static_Lisp_Object): New struct.
4182         * dumper.c (pdump_static_pointer): New struct.
4183         * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
4184         * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
4185         * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
4186         * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
4187
4188         * dumper.c (pdump_backtrace):
4189         * dumper.c (pdump_get_indirect_count):
4190         * dumper.c (pdump_register_object):
4191         * dumper.c (pdump_register_struct):
4192         * dumper.c (pdump_reloc_one):
4193         * dumper.c (pdump_scan_by_alignment):
4194         * dumper.c (pdump_dump_from_root_struct_ptrs):
4195         * dumper.c (pdump_dump_opaques):
4196         * dumper.c (pdump_dump_rtables):
4197         * dumper.c (pdump_dump_from_root_objects):
4198         * dumper.c (pdump):
4199         * dumper.c (pdump_load_finish):
4200         Use aligned reading and writing.
4201
4202         * dumper.c (pdump_free): Make static.
4203         * dumper.c (pdump_hFile): Likewise.
4204         * dumper.c (pdump_hMap): Likewise.
4205
4206 2001-01-26  Martin Buchholz <martin@xemacs.org>
4207
4208         * XEmacs 21.2.43 "Terspichore" is released.
4209
4210 2001-01-25  Martin Buchholz  <martin@xemacs.org>
4211
4212         Type fiddling for window_config.saved_windows_count
4213         * window.c (struct window_config): 
4214         Make saved_windows_count member unsigned.
4215         * window.c (sizeof_window_config_for_n_windows): 
4216         Make parameter unsigned.
4217         * window.c (mark_window_config):
4218         * window.c (window_config_equal):
4219         * window.c (free_window_configuration):
4220         * window.c (Fset_window_configuration):
4221         * window.c (count_windows):
4222         * window.c (Fcurrent_window_configuration):
4223         * window.c (reinit_vars_of_window):
4224         Update all callers and users.
4225
4226 2001-01-25  Martin Buchholz  <martin@xemacs.org>
4227
4228         Alignment correctness for flexible arrays.
4229         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
4230         Make alignment-correct. Add interesting comments.
4231         * alloc.c (size_vector):
4232         * alloc.c (make_vector_internal):
4233         * alloc.c (make_bit_vector_internal):
4234         * alloc.c (sweep_bit_vectors_1):
4235         * fns.c (size_bit_vector):
4236         Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
4237         * window.c (sizeof_window_config_for_n_windows): 
4238         Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
4239
4240 2001-01-24  Martin Buchholz  <martin@xemacs.org>
4241
4242         * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
4243
4244 2001-01-23  Andy Piper  <andy@xemacs.org>
4245
4246         * select.c (Fown_selection_internal): pass owned_p
4247
4248         * select-msw.c (mswindows_own_selection): New Signature.
4249
4250         * console.h (struct console_methods): add owned_p to
4251         _own_selection.
4252
4253         * select-x.c (x_own_selection): pass owned_p
4254         (hack_motif_clipboard_selection): use owned_p
4255         (vars_of_select_x): new variable -
4256         x_selection_strict_motif_ownership.
4257
4258 2001-01-23  Martin Buchholz  <martin@xemacs.org>
4259
4260         * specifier.h (specifier_data_offset): Remove pointless parens.
4261         * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
4262
4263 2001-01-24  Martin Buchholz  <martin@xemacs.org>
4264
4265         Make Lisp_Object sizeof methods be alignment-correct.
4266         pdump must restore objects to the same alignment as the C compiler
4267         assumes.  It really matters on SGIs.
4268         * lstream.c (aligned_sizeof_lstream): New.
4269         (sizeof_lstream): Use aligned_sizeof_lstream.
4270         (Lstream_new): Likewise.
4271         * opaque.c (aligned_sizeof_opaque): New.
4272         (sizeof_opaque): Use aligned_sizeof_opaque.
4273         (make_opaque): Likewise.
4274         * specifier.c (aligned_sizeof_specifier): New.
4275         (sizeof_specifier): Use aligned_sizeof_specifier.
4276         (make_specifier_internal): Likewise.
4277
4278 2001-01-23  Martin Buchholz  <martin@xemacs.org>
4279
4280         * lstream.h (struct lstream): Use max_align_t for trailing data.
4281         * specifier.h (struct Lisp_Specifier): Likewise.
4282
4283 2001-01-22  Martin Buchholz  <martin@xemacs.org>
4284
4285         * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
4286         (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
4287         (CCL_SUSPEND): Likewise.
4288         (CCL_INVALID_CMD): Likewise.
4289         (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
4290         (ccl_driver): Likewise.
4291         (CCL_WRITE_CHAR): Macro hygiene.
4292         (CCL_WRITE_STRING): Macro hygiene.
4293
4294 2001-01-22  Martin Buchholz  <martin@xemacs.org>
4295
4296         Port "portable" dumper to SunOS 4 and HP-UX.
4297         * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
4298         * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
4299         * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
4300
4301 2001-01-22  Martin Buchholz  <martin@xemacs.org>
4302
4303         * lisp.h (ALIGNOF): A better definition for C++.
4304
4305 2001-01-20  Martin Buchholz  <martin@xemacs.org>
4306
4307         Macro hygiene.
4308         Fix printf warnings: int format, long int arg.
4309         * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
4310         (PUSH_FAILURE_POINT): Use correct printf formats.
4311         (POP_FAILURE_POINT): Use correct printf formats.  
4312         Use do {...} while (0)
4313
4314 2001-01-20  Martin Buchholz <martin@xemacs.org>
4315
4316         * XEmacs 21.2.42 "Poseidon" is released.
4317
4318 2001-01-20  Martin Buchholz  <martin@xemacs.org>
4319
4320         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
4321
4322 2001-01-19  Martin Buchholz  <martin@xemacs.org>
4323
4324         De-kludgify FIXED_TYPE free list frobbing.
4325         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
4326         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
4327         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
4328         * alloc.c (Lisp_Free): New pseudo lisp object definition.
4329         * alloc.c (LRECORD_FREE_P): New.
4330         * alloc.c (MARK_LRECORD_AS_FREE): New.
4331         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
4332         * alloc.c (STRUCT_FREE_P): Deleted.
4333         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
4334         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
4335         * alloc.c (STRING_CHARS_FREE_P): New.
4336         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
4337         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
4338         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
4339         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
4340         * alloc.c (resize_string): Use new definitions.
4341         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
4342         * alloc.c (verify_string_chars_integrity): Use new definitions.
4343         * alloc.c (compact_string_chars): Use new definitions.
4344         * alloc.c: Update monster comments.
4345         * lrecord.h (lrecord_type): Add some new lrecord types for
4346         alloc.c's use.
4347
4348 2001-01-18  Martin Buchholz  <martin@xemacs.org>
4349
4350         Improve alignment hackery.
4351         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
4352         (max_align_t): Moved from opaque.h - general purpose.
4353         (ALIGN_PTR): Use size_t, not long.
4354         * opaque.h (max_align_t): Move to lisp.h.
4355
4356 2001-01-18  Norbert Koch  <nk@LF.net>
4357
4358         * gui.h: Fix and add prototypes to fix build problems.
4359
4360 2001-01-18  Martin Buchholz  <martin@xemacs.org>
4361
4362         temacs is going away, so `dump-temacs' is now a bad name.
4363         * .dbxrc (dump-temacs): Rename to `dmp'.
4364         * .gdbinit (dump-temacs): Rename to `dmp'.
4365
4366 2001-01-17  Andy Piper  <andy@xemacs.org>
4367
4368         * glyphs.c (print_image_instance): comment to make martin happy.
4369
4370         * glyphs-x.c (x_redisplay_widget): update faces after a frame
4371         change.
4372
4373         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
4374         activation.
4375         (mswindows_tab_control_redisplay): warning suppression.
4376
4377         * glyphs-widget.c (widget_update): re-write to cope with updated
4378         items.
4379         (widget_instantiate): use new gui_item functions.
4380         (tab_control_update): deleted.
4381         (progress_gauge_update): deleted.
4382         (image_instantiator_progress_guage): take out update reference.
4383         (image_instantiator_tree_view): ditto.
4384         (image_instantiator_tab_control): ditto.
4385
4386         * gui.c (widget_gui_parse_item_keywords): new function. Do things
4387         Right the new way.
4388         (gui_item_add_keyval_pair): re-write to cope with descriptors and
4389         return whether anything was changed.
4390         (update_gui_item_keywords): as it sounds.
4391
4392         * gui.h: declare widget_gui_parse_item_keywords.
4393
4394         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
4395         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
4396
4397 2001-01-17  Martin Buchholz <martin@xemacs.org>
4398
4399         * XEmacs 21.2.41 "Polyhymnia" is released.
4400
4401 2001-01-16  Didier Verna  <didier@xemacs.org>
4402
4403         * glyphs.c (image_instantiate): don't use fallbacks when
4404         instantiating a face's background pixmap by inheritance.
4405
4406 2001-01-14  Mike Sperber <mike@xemacs.org>
4407
4408         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
4409         Conditionalize accordingly.
4410
4411 2001-01-16  Martin Buchholz  <martin@xemacs.org>
4412
4413         * dumper.c (pdump_file_get): Fix a compiler warning.
4414
4415 2001-01-15  Martin Buchholz  <martin@xemacs.org>
4416
4417         Make Purify happy when pdumping.
4418         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
4419         iniitalizing all bits of new lisp object memory.
4420         * symbols.c (Fmake_local_variable): Likewise.
4421         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
4422         * symbols.c (Fdefvaralias): Likewise.
4423         * mule-charset.c (vars_of_mule_charset): Likewise.
4424
4425 2001-01-15  Martin Buchholz  <martin@xemacs.org>
4426         Add the `-nd' flag when running pre-dump operations under the debugger.
4427         * .dbxrc (run-temacs): Add `-nd'.
4428         * .dbxrc (update-elc): Likewise.
4429         * .dbxrc (dump-temacs): Likewise.
4430         * .gdbinit (run-temacs): Likewise.
4431         * .gdbinit (check-temacs): Likewise.
4432         * .gdbinit (update-elc): Likewise.
4433         * .gdbinit (dump-temacs): Likewise.
4434
4435 2001-01-14  Martin Buchholz  <martin@xemacs.org>
4436
4437         Allow building 64-bit executables on AIX with GNU malloc, e.g.
4438         export OBJECT_MODE=64
4439         configure --pdump --use-union-type=no
4440         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
4441         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
4442
4443         * miscplay.c (sndcnv8U_2mono):
4444         Avoid two uses of `++' in the same expression.
4445         Suppresses a GCC warning.
4446
4447 2001-01-13  Martin Buchholz  <martin@xemacs.org>
4448
4449         Make sure future compilers don't miscompile alloc.c.
4450         * alloc.c:
4451         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
4452         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
4453
4454 2001-01-12  Martin Buchholz  <martin@xemacs.org>
4455
4456         * dumper.c: A little post-pdump-rename comment fixup.
4457
4458 2001-01-09  Jerry James  <james@eecs.ku.edu>
4459
4460         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
4461
4462 2001-01-13  Martin Buchholz  <martin@xemacs.org>
4463
4464         * *.[ch]: Globally rename symbols using the following `pdump-rename'
4465         script:
4466         #!/bin/sh
4467         replace_symbol () {
4468           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
4469         }
4470
4471         replace_symbol pdump_wire_lists pdump_weak_object_chains
4472         replace_symbol pdump_wire_list dump_add_weak_object_chain
4473
4474         replace_symbol pdump_wires pdump_root_objects
4475         replace_symbol pdump_wire dump_add_root_object
4476
4477         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
4478         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
4479
4480         replace_symbol dumpstructinfos pdump_root_struct_ptrs
4481         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
4482         replace_symbol dumpstructinfo pdump_root_struct_ptr
4483         replace_symbol dumpstruct dump_add_root_struct_ptr
4484
4485         replace_symbol dumpopaque dump_add_opaque
4486         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
4487         replace_symbol dumpopaqueinfos pdump_opaques
4488         replace_symbol dumpopaqueinfo pdump_opaque
4489
4490         replace_symbol nb_structdump nb_root_struct_ptrs
4491         replace_symbol nb_opaquedump nb_opaques
4492
4493         replace_symbol align_table pdump_align_table
4494         replace_symbol dump_header pdump_header
4495
4496         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
4497         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
4498
4499
4500 2001-01-12  Martin Buchholz  <martin@xemacs.org>
4501
4502         * s/aix4.h: Keep the C for AIX compiler from overaggressively
4503         optimizing bytecount_to_charcount().
4504
4505 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
4506
4507         * config.h.in:
4508         (HAVE_DLFCN_H): Removed.
4509         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
4510
4511 2001-01-06  Martin Buchholz  <martin@xemacs.org>
4512
4513         Portable dumper maintainability improvements.
4514         * alloc.c (staticpro):
4515         * alloc.c (staticpro_nodump):
4516         * alloc.c (garbage_collect_1):
4517         * alloc.c (reinit_alloc_once_early):
4518         * alloc.c (init_alloc_once_early):
4519         * alloc.c: Move dumper functions to alloc.c.
4520         * dumper.c (pdump_backtrace):
4521         * dumper.c (pdump_dump_structs):
4522         * dumper.c (pdump_dump_opaques):
4523         * dumper.c (pdump_dump_rtables):
4524         * dumper.c (pdump_dump_wired):
4525         * dumper.c (pdump):
4526         * dumper.c (pdump_load_check):
4527         * dumper.c (pdump_load_finish):
4528         * dumper.c (pdump_file_unmap):
4529         * dumper.c (pdump_file_get):
4530         * dumper.c (pdump_resource_free):
4531         * dumper.c (pdump_resource_get):
4532         * dumper.c (pdump_file_free):
4533         * dumper.c (pdump_file_try):
4534         * dumper.c (pdump_load):
4535         Remove fixed size limits on staticpro(), staticpro_nodump(),
4536         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
4537         Remove custom code for dumping lrecord_implementations_table - use
4538         dumpopaque instead.
4539         Remove (most of the) custom code for dumping staticpros - dump it
4540         like any other dynarr.
4541
4542         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
4543         * dumper.c: Moved functions from alloc.c.
4544         * alloc.c (dumpstruct): Moved to dumper.c.
4545         * alloc.c (dumpopaque): Likewise.
4546         * alloc.c (pdump_wire): Likewise.
4547         * alloc.c (pdump_wire_list): Likewise.
4548
4549         * lisp.h (Dynarr_sizeof): New.
4550         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
4551         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
4552         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
4553
4554         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
4555         * lisp.h (dumpopaque): ditto.
4556         * lisp.h (pdump_wire): ditto.
4557         * lisp.h (pdump_wire_list): ditto.
4558
4559 2001-01-09  Martin Buchholz  <martin@xemacs.org>
4560
4561         * make-src-depend (PrintPatternDeps):
4562         Use `sort' to make output independent of perl version.
4563
4564 2001-01-08  Martin Buchholz  <martin@xemacs.org>
4565
4566         Port to Netbsd 1.5.
4567         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
4568         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
4569
4570 2001-01-03  Didier Verna  <didier@xemacs.org>
4571
4572         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
4573         that `focus_frame' is alive before thinking of calling
4574         `redisplay_redraw_cursor' on it.
4575
4576 2001-01-08  Martin Buchholz <martin@xemacs.org>
4577
4578         * XEmacs 21.2.40 is released.
4579
4580 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
4581
4582         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
4583
4584 2001-01-06  Martin Buchholz  <martin@xemacs.org>
4585
4586         * alloc.c (dbg_valmask): Make const.
4587         * alloc.c (dbg_typemask): Make const.
4588         * alloc.c (dbg_USE_UNION_TYPE): Make const.
4589         * alloc.c (dbg_valbits): Make const.
4590         * alloc.c (dbg_gctypebits): Make const.
4591
4592 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
4593
4594         * redisplay-x.c (x_bevel_area):
4595         redisplay.h (struct rune):
4596         Typo fixes in comments.
4597
4598 2001-01-05  Andy Piper  <andy@xemacs.org>
4599
4600         * glyphs-x.c (x_redisplay_widget): use size changed for offset
4601         adjustment.
4602
4603         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
4604
4605 2001-01-05  Martin Buchholz  <martin@xemacs.org>
4606
4607         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
4608
4609         * mule-ccl.c (stack_idx_of_map_multiple):
4610         Non const global data must not be initialized!
4611         Found by MIYASHITA Hisashi.
4612
4613 2001-01-02  Andy Piper  <andy@xemacs.org>
4614
4615         * frame.c (change_frame_size): make sure frame size is always
4616         marked as changed.
4617
4618         * glyphs.c (image_instance_layout): minor code reuse.
4619
4620         * window.c (Fcurrent_window_configuration): revert previous
4621         change.
4622
4623 2001-01-02  Martin Buchholz  <martin@xemacs.org>
4624
4625         * glyphs.h:
4626         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
4627
4628 2000-12-31  Andy Piper  <andy@xemacs.org>
4629
4630         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
4631         when widget gets unmapped.
4632
4633         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
4634         function. Make sure widgets losing focus don't just drop it.
4635         (handle_focus_event_1): record the widget with focus.
4636
4637 2000-12-31  Andy Piper  <andy@xemacs.org>
4638
4639         * window.c (allocate_window): use
4640         make_image_instance_cache_hash_table.
4641         (make_dummy_parent): ditto.
4642         (Fset_window_configuration): ditto.
4643
4644         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
4645
4646         * glyphs.c (process_image_string_instantiator): use
4647         INSTANTIATOR_TYPE.
4648         (get_image_instantiator_governing_domain): ditto.
4649         (normalize_image_instantiator): ditto.
4650         (instantiate_image_instantiator): ditto.
4651         (make_image_instance_1): ditto.
4652         (image_instantiate): ditto. Key on glyph *and* instantiator type.
4653         (instantiator_eq_equal): new function for use with instance hash
4654         tables.
4655         (instantiator_eq_hash): ditto.
4656         (make_image_instance_cache_hash_table): create a suitable hash
4657         table for storing image instances.
4658
4659         * elhash.h (hash_table_weakness): new internal weakness type
4660         HASH_TABLE_KEY_CAR_VALUE_WEAK.
4661         declare new functions.
4662
4663         * elhash.c (finish_marking_weak_hash_tables): introduce yet
4664         another weakness type for glyphs.
4665         (make_standard_lisp_hash_table): new function split out from
4666         make_general_lisp_hash_table.
4667         (make_lisp_hash_table): call make_standard_lisp_hash_table.
4668         (hash_table_instantiate): ditto.
4669         (Fmake_hash_table): ditto.
4670
4671 2000-12-31  Martin Buchholz <martin@xemacs.org>
4672
4673         * XEmacs 21.2.39 is released.
4674
4675 2000-12-29  Andy Piper  <andy@xemacs.org>
4676
4677         * menubar.c (menubar_visible_p_changed): signal the frame changed.
4678
4679         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
4680         the frame has changed so that we pick up geometry changes such as
4681         menubar visibility.
4682
4683 2000-12-28  Andy Piper  <andy@xemacs.org>
4684
4685         * lastfile.c (my_ebss): make a char array so we can pad the
4686         bss. Fixes cygwin unexec.
4687
4688         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
4689
4690 2000-12-26  Andy Piper  <andy@xemacs.org>
4691
4692         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
4693         comments and try and be more precise about a non-/SIGIO world.
4694         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
4695         SIGIO.
4696
4697         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
4698         we don't normalize to zero width or height.
4699
4700 2000-12-24  Andy Piper  <andy@xemacs.org>
4701
4702         * Makefile.in.in (ldflags): add -mwindows when appropriate.
4703
4704 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
4705
4706         * s/sco5.h: SCO 5 has pty support.
4707
4708 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
4709
4710         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
4711         input-method-xlib.c contains whole contents of input-method-xfs.c,
4712         so we can use input-method-xlib.c's code for USE_XFONTSET
4713         using #ifdefs.
4714         * input-method-xfs.c: removed.
4715
4716 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
4717
4718         * file-coding.h (enum coding_category_type): reorder enumerators to
4719         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
4720         (now one greater than largest real coding_category_type enumerator).
4721         * file-coding.c (coding_category_symbol, coding_category_by_priority,
4722         coding_category_system, fcd_descriptihon_1, decode_coding_category,
4723         Fcoding_category_list, Fset_coding_priority_list,
4724         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
4725         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
4726
4727 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
4728
4729         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
4730         * redisplay-output.c (redisplay_output_window): Clear top of window
4731         when face is changed.
4732         * redisplay-x.c (x_redraw_exposed_window): Call
4733         redisplay_clear_top_of_window.
4734         * redisplay.h: Publish redisplay_clear_top_of_window.
4735
4736 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
4737
4738         * buffer.c (Fkill_buffer): Map over all devices.
4739         * window.c (window_loop): Remove UNSHOW_BUFFER code.
4740         (list_windows): New function.
4741         (list_all_windows): Ditto.
4742         (Freplace_buffer_in_windows): Use them.
4743
4744 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
4745
4746         * database.c (berkdb_subtype): Recognize new subtype `queue'.
4747         (Fopen_database): Use `db_create' instead of `db_open'.
4748         (syms_of_database): Initialize Qqueue.
4749
4750 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
4751
4752         * buffer.c (common_init_complex_vars_of_buffer): Initialize
4753         buffer_local_face_property.
4754         * buffer.h (struct buffer): New member buffer_local_face_property.
4755         * window.c (Fset_window_buffer):  Mark window's face as changed
4756         when buffer has buffer local face.
4757         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
4758         * objects.c (color_after_change): Set buffer_local_face_property
4759         when locale of face specifier is buffer.
4760         * objects.c (font_after_change): Ditto.
4761         * objects.c (face_boolean_after_change): Ditto.
4762         * glyphs.c (image_after_change): Ditto.
4763
4764 2000-12-09  Dan Holmsand  <dan@eyebee.com>
4765
4766         * nt.c (mswindows_fstat): Report file permissions, volume serial
4767         number, etc. Code adapted from FSF Emacs 20.7.
4768
4769 2000-12-09  Dan Holmsand  <dan@eyebee.com>
4770
4771         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
4772         of stat when we don't have symbolic links, to make sure
4773         mswindows_stat is called on mswindows.
4774
4775 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
4776
4777         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
4778
4779 2000-12-12  Martin Buchholz  <martin@xemacs.org>
4780
4781         * doprnt.c (emacs_doprnt_1): More printing fixes.
4782         Make printing of numbers compatible with libc and FSF Emacs.
4783         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
4784         Use the system printf to do most of the hard work of formatting,
4785         instead of doprnt_1().
4786         Calculate memory to allocate for format string.
4787         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
4788         (doprnt_1): Cleaner code and documentation.
4789
4790 2000-12-01  Jerry James  <james@eecs.ukans.edu>
4791
4792         * Makefile.in.in: Use the loop variable to install headers.
4793
4794 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
4795
4796         * window.c (Fsplit_window): Don't invalidate face cache.
4797
4798 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
4799
4800         * minibuf.c (Fall_completions): Undo the previous change
4801         which removed checking elements start with space.
4802
4803 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
4804
4805         * mule-canna.c: Didier suppression.
4806
4807 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
4808
4809         * mule-canna.c: rename static unsigned char buf[] to key_buffer
4810         (warning suppression).  Add English comment translations.
4811
4812 2000-12-05  Martin Buchholz  <martin@xemacs.org>
4813
4814         * unexelfsgi.c (unexec): Better test for mmap failure.
4815
4816 2000-12-05  Martin Buchholz <martin@xemacs.org>
4817
4818         * XEmacs 21.2.38 is released.
4819
4820 2000-12-05  Martin Buchholz  <martin@xemacs.org>
4821
4822         * redisplay.c (bar-cursor): Make a user variable.
4823
4824         * symsinit.h: Add init_postgresql_from_environment.
4825
4826 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
4827
4828         * regex.c: Convert to clean C.
4829
4830 2000-12-05  Dan Holmsand  <dan@eyebee.com>
4831
4832         * realpath.c:
4833         Don't #include sysfile.h. Revert to duplicating PATH_MAX
4834         initialization.
4835         (sys_readlink): renamed to system_readlink to avoid conflict with
4836         the other sys_readlink.
4837
4838 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
4839
4840         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
4841
4842 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
4843
4844         * postgresql.c (init_postgresql_from_environment): new function.
4845         (vars_of_postgresql): Move code initializing Lisp variables out and
4846         into init_postgresql_from_environment.
4847         emacs.c (main_1): Call init_postgresql_from_environment if and only
4848         if running a dumped XEmacs.
4849
4850 2000-08-31  Dan Holmsand  <dan@eyebee.com>
4851
4852         * buffer.c: Make find-file-compare-truenames default to true on
4853         windows.
4854
4855         * realpath.c (win32_abs_start):
4856         (cygwin_readlink):
4857         (win32_readlink): New functions.
4858         (xrealpath): Return really real filenames on windows.
4859
4860         * fileio.c (Ffile_truename): Make file-truename work on windows.
4861
4862 2000-11-29  Didier Verna  <didier@xemacs.org>
4863
4864         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
4865         * faces.c (update_face_cachel_data): use it.
4866         * faces.c (add_face_cachel): use it. Complete background pixmap
4867         frobbing in face cache if `update_face_cachel_data' has not done so.
4868
4869 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
4870
4871         * search.c (string_match_1): Don't set last_thing_searched
4872         when search failed.
4873
4874 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
4875
4876         * buffer.c: Include casetab.h
4877         (common_init_complex_vars_of_buffer): Use new case-table object.
4878         * buffer.h: Include casetab.h
4879         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
4880         (DOWNCASE_TABLE_OF): Ditto.
4881         * bufslots.h: Remove char-tables and add case-table.
4882         * casetab.c: Include casetab.h
4883         (CASE_TABLE_P): Removed.
4884         (mark_case_table): New function.
4885         (allocate_case_table): New function.
4886         (Fcase_table_p): Use new case-table.
4887         (case_table_char): New function.
4888         (Fget_case_table): Ditto.
4889         (Fput_case_table): Ditto.
4890         (Fput_case_table_pair): Ditto.
4891         (Fcopy_case_table): Ditto.
4892         (Fcurrent_case_table): Return case-table.
4893         (Fstandard_case_table): Return case-table.
4894         (Fset_case_table): Fix doc-string.
4895         (set_case_table): Use case-table
4896         (syms_of_casetab): DEFSUBR new functions.
4897         (complex_vars_of_casetab): Set up standard case-table.
4898         * casetab.h: New file.
4899         * editfns.c: Include casetab.h
4900         (Fcompare_buffer_substrings): Use case-table.
4901         * inline.c: Include casetab.h
4902         * lisp.h: Remove bogus extern.
4903         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
4904         * search.c: Include casetab.h
4905         (TRANSLATE_ASCII): Removed.
4906         (TRANSLATE): Unconditionally translate character.
4907         (looking_at_1): Use case-table.
4908         (string_match_1): Ditto.
4909         (fast_string_match): Ditto.
4910         (search_command): Ditto.
4911         (search_buffer): Separate boyer_moore.  Check whether
4912         boyer_moore is possible.
4913         (simple_search): New function.
4914         (boyer_moore): Separated from search_buffer. Translate char.
4915
4916 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
4917
4918         * regex.c (RE_TR_ASCII): Removed.
4919         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
4920         (PATFETCH): Call PATFETCH_RAW.
4921         (PATFETCH_RAW): Fetch Emchar.
4922         (PATUNFETCH): Decrement charptr.
4923         (GET_BUFFER_SPACE): Rename b to buf_end.
4924         (BUF_PUSH): Ditto.
4925         (BUF_PUSH_2): Ditto.
4926         (BUF_PUSH_3): Ditto.
4927         (EXTEND_BUFFER): Ditto.
4928         (SET_LIST_BIT): Ditto.
4929         (regex_compile): Ditto.  Translate non ASCII char.
4930         (compile_range): Ditto.
4931         (re_search_2): Ditto.
4932         (re_match_2_internal): Compare Emchar.
4933         (bcmp_translate): Ditto.
4934
4935 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
4936
4937         * lisp.h (basic char/int typedefs):  comment improvement.
4938
4939 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
4940
4941         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
4942         unstomp inhibit_site_lisp.  Improve comments.
4943
4944 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
4945
4946         * mule-charset.c (Fcharset_property):  improve type checking, comments.
4947
4948 2000-11-28  Andy Piper  <andy@xemacs.org>
4949
4950         * redisplay-output.c (redisplay_output_subwindow): make sure we do
4951         clipped display for windows in the gutter also.
4952         (redisplay_display_boxes_in_window_p): change semantics of return
4953         codes to be more intuitive.
4954
4955         * gutter.h: declare display_boxes_in_gutter_p.
4956
4957         * gutter.c (display_boxes_in_gutter_p): new function for
4958         redisplay.
4959
4960 2000-11-22  Andy Piper  <andy@xemacs.org>
4961
4962         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
4963         autodetect domain.
4964
4965 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
4966
4967         * callproc.c (Fold_call_process_internal):
4968         * gpm.c (Freceive_gpm_event):
4969         (tty_get_foreign_selection): Might be just warning supression.
4970         * fileio.c (Fwrite_region_internal):
4971         (Fset_visited_file_modtime):
4972         * keymap.c (event_matches_key_specifier_p):
4973         Initialize GCPROed variable.
4974
4975         * menubar-x.c (command_builder_find_menu_accelerator):
4976         Initialize before use.
4977
4978 2000-11-23  Andy Piper  <andy@xemacs.org>
4979
4980         * unexcw.c (unexec): make the resulting executable executable.
4981
4982 2000-11-21  Martin Buchholz  <martin@xemacs.org>
4983
4984         * doc.c (get_doc_string):
4985         Use size_t, not int, for result of XSTRING_LENGTH.
4986
4987         * cmds.c (Fdelete_char):
4988         * cmds.c (Fpoint_at_eol):
4989         * cmds.c (Fself_insert_command):
4990         Use EMACS_INT, not int, for result of XINT.
4991         Someday, someone will want to insert more than 2**31 identical characters.
4992
4993         * cmds.c (Fdelete_char):
4994         * cmds.c (Fdelete_backward_char):
4995         * syntax.c (Fforward_word):
4996         * syntax.c (Fforward_comment):
4997         Make COUNT argument optional, for consistency with forward-char et al.
4998
4999 2000-11-22  Martin Buchholz  <martin@xemacs.org>
5000
5001         * lisp.h:
5002         * print.c (long_to_string):
5003         Return a useful value: the pointer at end of data written.
5004
5005         * doprnt.c:
5006         Use `static const char * const' for constant strings.
5007         (union printf_arg): Delete `i', `ui' members.
5008         (get_doprnt_args):
5009         (emacs_doprnt_1):
5010         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
5011         Do all printf-ing via the `l' specifier.
5012         Use EMACS_INT instead of int.
5013         Optimize.
5014
5015 2000-11-20  Didier Verna  <didier@xemacs.org>
5016
5017         * faces.c (update_face_cachel_data): don't frob the background
5018         pixmap when the window is being created. The face is needed but
5019         does not exist yet.
5020
5021 2000-11-20  Andy Piper  <andy@xemacs.org>
5022
5023         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
5024         messing with a debug environment.
5025
5026 2000-11-20  Martin Buchholz  <martin@xemacs.org>
5027
5028         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
5029
5030 2000-11-20  Martin Buchholz  <martin@xemacs.org>
5031
5032         * casetab.c (Fcase_table_p): Fix compile error and crash.
5033
5034 2000-11-18  Philip Aston  <philipa@mail.com>
5035
5036         * s/cygwin32.h: Cygwin has SVR4-like pty support.
5037
5038 2000-11-18  Martin Buchholz  <martin@xemacs.org>
5039
5040         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
5041         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
5042
5043 2000-11-17  Martin Buchholz  <martin@xemacs.org>
5044
5045         * config.h.in: Define HAVE_ELF_H if elf.h exists.
5046         * unexelf.c: Use HAVE_ELF_H.
5047         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
5048         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
5049         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
5050         Greg Harrington <greg_harrington@hotmail.com> provided a machine
5051         for testing.
5052         So this is an unexelfsgi.c from a different line of development.
5053
5054 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
5055
5056         * regex.c (RE_TR_ASCII): New function.
5057         (RE_TRANSLATE): Call it.
5058
5059 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
5060
5061         * buffer.h (TRT_TABLE_OF): Remove assert.
5062         (IN_TRT_TABLE_DOMAIN): Removed.
5063
5064 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
5065
5066         * free-hook.c (log_gcpro):
5067         (show_gcprohist): Add support for GCPRO5.
5068
5069 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
5070
5071         * emacs.c (main_1): Improve -sd error message when --pdump=no.
5072
5073 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
5074
5075         * symeval.h: Declare flush_all_buffer_local_cache.
5076
5077         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
5078         (flush_buffer_local_cache): Added.
5079         (flush_all_buffer_local_cache): Added.
5080
5081         * lrecord.h: Remove unused XD_LO_RESET_NIL.
5082
5083         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
5084         (pdump_dump_data): Ditto.
5085         (pdump_reloc_one): Ditto.
5086         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
5087         before dumping.
5088
5089
5090 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
5091
5092         * buffer.c: Remove if 0'ed entry.
5093         * buffer.h: Rewrite TRT to use char-table.
5094         * bufslots.h: Remove mirror tables.
5095         * casetab.c: Remove mirror tables.
5096         (CASE_TABLE_P): New macro.
5097         (Fcase_table_p): Element of a case table is string or char-table.
5098         (make_mirror_trt_table): Removed.
5099         (set_case_table): Setup char-table from strings for backward
5100         compatibility.
5101         * dired.c (Fdirectory_files):
5102         * dired-msw.c: (mswindows_get_files):
5103         * lisp.h: Change prototype of re_pattern_buffer.
5104         * regex.c: (RE_TRANSLATE): New macro.
5105         (TRANSLATE_P): Ditto.
5106         Change translate to type RE_TRANSLATE_TYPE.
5107         * regex.h: Define RE_TRANSLATE_TYPE
5108         * search.c (TRANSLATE): New macro.
5109         (TRANSLATE_ASCII): New macro.
5110         Translate table is changed to Lisp_Object.
5111         (signal_failure): Inhibit return.
5112
5113 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
5114
5115         * device-msw.c:
5116         * eldap.c:
5117         * event-Xt.c:
5118         * event-stream.c:
5119         * print.c:
5120         Do UNGCPRO before return.
5121
5122 2000-11-14  Martin Buchholz <martin@xemacs.org>
5123
5124         * XEmacs 21.2.37 is released.
5125
5126 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
5127
5128         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
5129         Add comments about discarded return value.
5130
5131 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
5132
5133         * callint.c:
5134         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
5135
5136 2000-10-27  Andy Piper  <andy@xemacs.org>
5137
5138         * gutter.c (Fset_default_gutter_position): default left and right
5139         gutters to visible.
5140         (calculate_gutter_size): calculate resonable heuristic for left
5141         and right gutter sizes.
5142         (specifier_vars_of_gutter): change left and right gutter sizes to
5143         autodetect.
5144         (calculate_gutter_size_from_display_lines): new function.
5145         (output_gutter): check for resizing on left and right gutters.
5146         (clear_gutter): don't special case top and left gutters.
5147         (specifier_vars_of_gutter): use new signature for
5148         set_specifier_caching.
5149
5150         * glyphs-x.c (x_redisplay_widget): spelling fix.
5151         * glyphs.c (specifier_vars_of_glyphs):
5152         * menubar.c (specifier_vars_of_menubar):
5153         * redisplay.c (specifier_vars_of_redisplay):
5154         * toolbar.c (specifier_vars_of_toolbar):
5155         * window.c (specifier_vars_of_window):
5156         * scrollbar.c (specifier_vars_of_scrollbar):
5157         (complex_vars_of_scrollbar): use new signature for
5158         set_specifier_caching.
5159
5160         * specifier.c (set_specifier_caching): include recompute flag.
5161         (recompute_one_cached_specifier_in_window): always recompute if
5162         flag set.
5163         (recompute_one_cached_specifier_in_frame): ditto.
5164
5165         * specifier.h (struct specifier_caching): add recompute flag.
5166
5167 2000-10-24  Andy Piper  <andy@xemacs.org>
5168
5169         * unexcw.c (copy_executable_and_dump_data_section): add new
5170         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
5171         5.0 happy.
5172
5173 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
5174
5175         * console-x.h (x_device): New member modifier_release_time.
5176         * event-Xt.c (x_handle_sticky_modifiers):
5177         Bound interval modifier keys are sticky.
5178         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
5179         * events.h: extern it.
5180
5181 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
5182
5183         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
5184
5185 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
5186
5187         * event-stream.c (execute_command_event): Preserve current_events
5188         and the like when event is misc-user-event.
5189         Inhibit quit during the call to maybe_echo_keys.
5190
5191 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
5192
5193         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
5194         symlink when buffer is killed.
5195         (inhibit_clash_detection): New variable.
5196
5197 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
5198
5199         * console.c (Fset_input_method): Trigger redisplay on tty.
5200
5201 2000-11-07  Martin Buchholz  <martin@xemacs.org>
5202
5203         * process.c (Fprocess_status): Revert to previous behavior:
5204         (process-status "nosuchprocess") ==> nil
5205
5206 2000-11-06  Martin Buchholz  <martin@xemacs.org>
5207
5208         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
5209         Work around another GCC 2.95.2 optimizer bug.
5210
5211 2000-11-02  Martin Buchholz  <martin@xemacs.org>
5212
5213         * process.c (Fget_process): Use LIST_LOOP_2.
5214         (kill_buffer_processes): Use LIST_LOOP_2.
5215
5216         * minibuf.c (Fall_completions):
5217         Delete old non-functional code for FSF fourth argument.
5218
5219         * frame.c (frame_matches_frame_spec):
5220         Renamed from `frame_matches_frametype'.  Update all callers.
5221         (device_matches_device_spec):
5222         Renamed from 'device_matches_console_spec'.  Update all callers.
5223
5224         * doc.c (Fsubstitute_command_keys):
5225         Remove buffer overflow crash.  Small code cleanups.
5226
5227         * casetab.c (check_case_table): Simpler code.
5228
5229         * window.c (Freplace_buffer_in_windows):
5230         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
5231         (and similar implementation) as Fdelete_windows_on.
5232         Update all callers.
5233
5234         * alloc.c (Fmake_list):
5235         * alloc.c (make_vector):
5236         * alloc.c (Fmake_vector):
5237         * alloc.c (make_bit_vector):
5238         * alloc.c (Fmake_bit_vector):
5239         * alloc.c (Fbit_vector):
5240         * alloc.c (Fmake_string):
5241         * alloc.c (Fpurecopy):
5242         * alloc.c (Fmemory_limit):
5243         * buffer.c:
5244         * buffer.c (Fget_buffer):
5245         * buffer.c (Fkill_buffer):
5246         * buffer.c (complex_vars_of_buffer):
5247         * bytecode.c (Fcompiled_function_stack_depth):
5248         * callint.c (Fprefix_numeric_value):
5249         * event-stream.c:
5250         * event-stream.c (Fread_key_sequence):
5251         * casetab.c:
5252         * casetab.c (Fcase_table_p):
5253         * casetab.c (check_case_table):
5254         * casetab.c (Fset_case_table):
5255         * casetab.c (Fset_standard_case_table):
5256         * chartab.c:
5257         * chartab.c (Fchar_table_type):
5258         * chartab.c (Freset_char_table):
5259         * chartab.c (Fget_char_table):
5260         * chartab.c (Fget_range_char_table):
5261         * chartab.c (Fput_char_table):
5262         * chartab.c (Fmap_char_table):
5263         * chartab.c (Fcategory_table_p):
5264         * chartab.c (Fcheck_category_at):
5265         * chartab.c (Fchar_in_category_p):
5266         * chartab.c (Fcategory_table):
5267         * chartab.c (Fcopy_category_table):
5268         * chartab.c (Fset_category_table):
5269         * chartab.c (Fcategory_designator_p):
5270         * chartab.c (Fcategory_table_value_p):
5271         * cmds.c (Fdelete_char):
5272         * cmds.c (Fdelete_backward_char):
5273         * cmds.c (Fself_insert_command):
5274         * cmds.c (Fself_insert_internal):
5275         * console.c (Fvalid_console_type_p):
5276         * console.c (Fcdfw_console):
5277         * console.c (Fconsole_type):
5278         * console.c (Fconsole_name):
5279         * console.c (Fconsole_device_list):
5280         * console.c (Fconsole_on_window_system_p):
5281         * data.c:
5282         * data.c (Feq):
5283         * data.c (Fold_eq):
5284         * data.c (Fsubr_interactive):
5285         * data.c (Fchar_to_int):
5286         * data.c (Fint_to_char):
5287         * data.c (Fsetcar):
5288         * data.c (Fsetcdr):
5289         * data.c (Fnumber_to_string):
5290         * data.c (Fstring_to_number):
5291         * data.c (Frem):
5292         * database.c (mark_database):
5293         * database.c (finalize_database):
5294         * database.c (Fdatabase_live_p):
5295         * database.c (Fdatabasep):
5296         * device-x.c (Fx_get_resource):
5297         * device.c (Fdfw_device):
5298         * dired.c:
5299         * dired.c (Ffile_name_completion):
5300         * dired.c (Ffile_name_all_completions):
5301         * dired.c (Fuser_name_completion):
5302         * dired.c (Fuser_name_completion_1):
5303         * dired.c (Fuser_name_all_completions):
5304         * doc.c (Fdocumentation):
5305         * doc.c (Fdocumentation_property):
5306         * doc.c (Fsubstitute_command_keys):
5307         * editfns.c:
5308         * editfns.c (Fchar_to_string):
5309         * editfns.c (Fstring_to_char):
5310         * editfns.c (Ftemp_directory):
5311         * editfns.c (Finsert_char):
5312         * editfns.c (Fbuffer_substring_no_properties):
5313         * editfns.c (Fnarrow_to_region):
5314         * editfns.c (Fchar_equal):
5315         * editfns.c (Fchar_Equal):
5316         * editfns.c (Ftranspose_regions):
5317         * emacs.c (Fdump_emacs):
5318         * eval.c (Fthrow):
5319         * eval.c (Fcommand_execute):
5320         * eval.c (Fautoload):
5321         * eval.c (Fbacktrace):
5322         * eval.c (Fbacktrace_frame):
5323         * events.c:
5324         * events.c (Fcopy_event):
5325         * events.c (Fcharacter_to_event):
5326         * events.c (Fevent_button):
5327         * events.c (Fevent_process):
5328         * extents.c:
5329         * extents.c (Fnext_extent_change):
5330         * extents.c (Fextent_property):
5331         * faces.c (Ffacep):
5332         * faces.c (Fmake_face):
5333         * file-coding.c:
5334         * file-coding.c (Fencode_shift_jis_char):
5335         * file-coding.c (Fencode_big5_char):
5336         * fileio.c (Ffile_name_directory):
5337         * fileio.c (Ffile_name_nondirectory):
5338         * fileio.c (Ffile_name_as_directory):
5339         * fileio.c (Fdirectory_file_name):
5340         * fileio.c (Ffile_truename):
5341         * fileio.c (Fsubstitute_in_file_name):
5342         * fileio.c (Ffile_modes):
5343         * fileio.c (Fset_file_modes):
5344         * fileio.c (Fset_default_file_modes):
5345         * fileio.c (Fverify_visited_file_modtime):
5346         * floatfns.c (Facos):
5347         * floatfns.c (Fasin):
5348         * floatfns.c (Fatan):
5349         * floatfns.c (Fcos):
5350         * floatfns.c (Fsin):
5351         * floatfns.c (Ftan):
5352         * floatfns.c (Fbessel_j0):
5353         * floatfns.c (Fbessel_j1):
5354         * floatfns.c (Fbessel_jn):
5355         * floatfns.c (Fbessel_y0):
5356         * floatfns.c (Fbessel_y1):
5357         * floatfns.c (Fbessel_yn):
5358         * floatfns.c (Ferf):
5359         * floatfns.c (Ferfc):
5360         * floatfns.c (Flog_gamma):
5361         * floatfns.c (Fexp):
5362         * floatfns.c (Fexpt):
5363         * floatfns.c (Flog):
5364         * floatfns.c (Flog10):
5365         * floatfns.c (Fsqrt):
5366         * floatfns.c (Fcube_root):
5367         * floatfns.c (Facosh):
5368         * floatfns.c (Fasinh):
5369         * floatfns.c (Fatanh):
5370         * floatfns.c (Fcosh):
5371         * floatfns.c (Fsinh):
5372         * floatfns.c (Ftanh):
5373         * floatfns.c (Fabs):
5374         * floatfns.c (Ffloat):
5375         * floatfns.c (Flogb):
5376         * floatfns.c (Fceiling):
5377         * floatfns.c (Ffloor):
5378         * floatfns.c (Fround):
5379         * floatfns.c (Ftruncate):
5380         * floatfns.c (Ffceiling):
5381         * floatfns.c (Fffloor):
5382         * floatfns.c (Ffround):
5383         * floatfns.c (Fftruncate):
5384         * fns.c (Fstring_equal):
5385         * fns.c (Fstring_lessp):
5386         * fns.c (concat2):
5387         * fns.c (concat3):
5388         * fns.c (vconcat2):
5389         * fns.c (vconcat3):
5390         * fns.c (Fsubstring):
5391         * fns.c (Fassoc):
5392         * fns.c (Fold_assoc):
5393         * fns.c (assoc_no_quit):
5394         * fns.c (Fassq):
5395         * fns.c (Fold_assq):
5396         * fns.c (assq_no_quit):
5397         * fns.c (Frassoc):
5398         * fns.c (Fold_rassoc):
5399         * fns.c (Frassq):
5400         * fns.c (Fold_rassq):
5401         * fns.c (rassq_no_quit):
5402         * fns.c (Fremassoc):
5403         * fns.c (remassoc_no_quit):
5404         * fns.c (Fremassq):
5405         * fns.c (remassq_no_quit):
5406         * fns.c (Fremrassoc):
5407         * fns.c (Fremrassq):
5408         * fns.c (remrassq_no_quit):
5409         * fns.c (Fsort):
5410         * fns.c (Fplist_get):
5411         * fns.c (Fplist_put):
5412         * fns.c (Fplist_remprop):
5413         * fns.c (Fplist_member):
5414         * fns.c (Flax_plist_get):
5415         * fns.c (Flax_plist_put):
5416         * fns.c (Flax_plist_remprop):
5417         * fns.c (Flax_plist_member):
5418         * fns.c (Fequal):
5419         * fns.c (Fold_equal):
5420         * fns.c (Frequire):
5421         * fns.c (Fbase64_encode_region):
5422         * fns.c (Fbase64_encode_string):
5423         * fns.c (Fbase64_decode_region):
5424         * frame.c:
5425         * frame.c (frame_matches_frame_spec):
5426         * frame.c (device_matches_device_spec):
5427         * frame.c (next_frame):
5428         * frame.c (previous_frame):
5429         * frame.c (Fnext_frame):
5430         * frame.c (Fprevious_frame):
5431         * frame.c (Fframe_property):
5432         * frame.c (Fset_frame_height):
5433         * frame.c (Fset_frame_size):
5434         * frame.h:
5435         * glyphs.c:
5436         * glyphs.c (if):
5437         * glyphs.c (decode_error_behavior_flag):
5438         * glyphs.c (Fmake_image_instance):
5439         * indent.c (Findent_to):
5440         * intl.c (Fignore_defer_gettext):
5441         * keymap.c (Fkeymapp):
5442         * keymap.c (Flookup_key):
5443         * lread.c:
5444         * lread.c (Fload_internal):
5445         * lread.c (Feval_buffer):
5446         * lread.c (Feval_region):
5447         * macros.c (Fexecute_kbd_macro):
5448         * marker.c (set_marker_internal):
5449         * marker.c (Fset_marker):
5450         * marker.c (set_marker_restricted):
5451         * marker.c (Fcopy_marker):
5452         * marker.c (noseeum_copy_marker):
5453         * menubar.c:
5454         * menubar.c (Fpopup_menu):
5455         * minibuf.c:
5456         * mule-charset.c (Fcharset_name):
5457         * mule-charset.c (Fchar_charset):
5458         * mule-charset.c (Fchar_octet):
5459         * mule-charset.c (Fsplit_char):
5460         * mule-wnnfns.c (Fwnn_open):
5461         * mule-wnnfns.c (Fwnn_dict_comment):
5462         * mule-wnnfns.c (Fwnn_quit_henkan):
5463         * mule-wnnfns.c (Fwnn_word_toroku):
5464         * mule-wnnfns.c (Fwnn_word_sakujo):
5465         * mule-wnnfns.c (Fwnn_word_use):
5466         * mule-wnnfns.c (Fwnn_hindo_set):
5467         * objects.c:
5468         * objects.c (Fmake_color_instance):
5469         * objects.c (Fmake_font_instance):
5470         * print.c (Fwrite_char):
5471         * process.c:
5472         * process.c (mark_process):
5473         * process.c (print_process):
5474         * process.c (get_process_from_usid):
5475         * process.c (Fprocessp):
5476         * process.c (Fprocess_live_p):
5477         * process.c (Fget_process):
5478         * process.c (Fget_buffer_process):
5479         * process.c (get_process):
5480         * process.c (Fprocess_id):
5481         * process.c (Fprocess_name):
5482         * process.c (Fprocess_command):
5483         * process.c (init_process_io_handles):
5484         * process.c (start_process_unwind):
5485         * process.c (Fstart_process_internal):
5486         * process.c (Fopen_multicast_group_internal):
5487         * process.c (Fset_process_window_size):
5488         * process.c (read_process_output):
5489         * process.c (send_process):
5490         * process.c (Fprocess_tty_name):
5491         * process.c (Fset_process_buffer):
5492         * process.c (Fprocess_buffer):
5493         * process.c (Fprocess_mark):
5494         * process.c (set_process_filter):
5495         * process.c (Fset_process_filter):
5496         * process.c (Fprocess_filter):
5497         * process.c (Fprocess_send_region):
5498         * process.c (Fprocess_send_string):
5499         * process.c (exec_sentinel):
5500         * process.c (Fset_process_sentinel):
5501         * process.c (Fprocess_sentinel):
5502         * process.c (status_notify):
5503         * process.c (Fprocess_status):
5504         * process.c (Fprocess_exit_status):
5505         * process.c (process_send_signal):
5506         * process.c (Fprocess_send_eof):
5507         * process.c (deactivate_process):
5508         * process.c (remove_process):
5509         * process.c (Fdelete_process):
5510         * process.c (kill_buffer_processes):
5511         * process.c (Fprocess_kill_without_query):
5512         * process.c (Fprocess_kill_without_query_p):
5513         * rangetab.c:
5514         * rangetab.c (Fget_range_table):
5515         * rangetab.c (Fput_range_table):
5516         * rangetab.c (Fremove_range_table):
5517         * rangetab.c (Fclear_range_table):
5518         * search.c:
5519         * search.c (Fskip_chars_forward):
5520         * search.c (Fskip_chars_backward):
5521         * search.c (Fskip_syntax_forward):
5522         * search.c (Fskip_syntax_backward):
5523         * search.c (search_command):
5524         * search.c (Freplace_match):
5525         * search.c (Fregexp_quote):
5526         * select.c (Fown_selection_internal):
5527         * select.c (Fselection_owner_p):
5528         * select.c (Fselection_exists_p):
5529         * select.c (Fget_selection_internal):
5530         * specifier.c:
5531         * symbols.c:
5532         * symbols.c (Fintern):
5533         * symbols.c (Fintern_soft):
5534         * symbols.c (Funintern):
5535         * symbols.c (Fapropos_internal):
5536         * symbols.c (Fset_default):
5537         * syntax.c:
5538         * syntax.c (Fsyntax_table_p):
5539         * syntax.c (Fcopy_syntax_table):
5540         * syntax.c (Fset_syntax_table):
5541         * syntax.c (Fchar_syntax):
5542         * syntax.c (syntax_match):
5543         * syntax.c (Fmatching_paren):
5544         * syntax.c (Fforward_word):
5545         * syntax.c (scan_lists):
5546         * syntax.c (Fscan_lists):
5547         * syntax.c (Fscan_sexps):
5548         * syntax.c (Fparse_partial_sexp):
5549         * toolbar.c (Fcheck_toolbar_button_syntax):
5550         * tooltalk.doc:
5551         * window.c:
5552         * window.c (Fwindowp):
5553         * window.c (Fwindow_live_p):
5554         * window.c (Fwindow_point):
5555         * window.c (Fdelete_window):
5556         * window.c (Fnext_window):
5557         * window.c (Fprevious_window):
5558         * window.c (Fother_window):
5559         * window.c (window_loop):
5560         * window.c (Fget_lru_window):
5561         * window.c (Fsplit_window):
5562         * window.c (Fenlarge_window):
5563         * window.c (Fenlarge_window_pixels):
5564         * window.c (Fshrink_window):
5565         * window.c (Fshrink_window_pixels):
5566         * window.c (change_window_height):
5567         * window.c (Fwindow_configuration_p):
5568         * window.c (Fcurrent_window_configuration):
5569         * window.h:
5570         * casefiddle.c (casify_object):
5571         * casefiddle.c (Fupcase):
5572         * casefiddle.c (Fdowncase):
5573         * casefiddle.c (Fcapitalize):
5574         * casefiddle.c (Fupcase_initials):
5575         * casefiddle.c (casify_region_internal):
5576         * casefiddle.c (casify_region):
5577         * casefiddle.c (Fupcase_region):
5578         * casefiddle.c (Fdowncase_region):
5579         * casefiddle.c (Fcapitalize_region):
5580         * casefiddle.c (Fupcase_initials_region):
5581         * casefiddle.c (Fupcase_word):
5582         * casefiddle.c (Fdowncase_word):
5583         * casefiddle.c (Fcapitalize_word):
5584         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
5585         Replace 0 with '\0' when working with bytes.
5586         Replace initial "(" with "\(" in docstrings.
5587
5588 2000-11-01  Martin Buchholz  <martin@xemacs.org>
5589
5590         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
5591
5592         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
5593
5594 2000-10-31  Martin Buchholz  <martin@xemacs.org>
5595
5596         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
5597
5598 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
5599
5600         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
5601         correctly.
5602
5603 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
5604
5605         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
5606         (inhibit_auto_save_session): New variable.
5607         (vars_of_fileio): Declare and initialize them.
5608         * fileio.c (Fdo_auto_save): Don't create session file if
5609         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
5610
5611 2000-10-31  Martin Buchholz  <martin@xemacs.org>
5612
5613         * sgiplay.c (play_internal): C++ compilability.
5614         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
5615         * callproc.c (Fold_call_process_internal):
5616         Remove unused vars `env', `first'.
5617         * scrollbar.c (update_scrollbar_instance):
5618         #### unused var `current_window'.
5619         * redisplay-tty.c: Put currently unused vars insert_mode_on,
5620         etc. within #ifdef NOT_YET.
5621         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
5622         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
5623         * specifier.c (specifier_instance):
5624         #### unused var `tag'.
5625         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
5626
5627 2000-10-27  Martin Buchholz  <martin@xemacs.org>
5628
5629         * fns.c (Fbutlast):
5630         * fns.c (list_sort):
5631         * fns.c (Ffillarray):
5632         * fns.c (bytecode_nconc2):
5633         * fns.c (Fnconc):
5634         * fns.c (mapcar1):
5635         * fns.c (Fmapconcat):
5636         Be pedantically 64-bit correct.  For the time when someone will
5637         want to have a list with length > 2**32.
5638
5639         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
5640         Work around MIPSpro compiler bug.
5641
5642         * process-unix.c (unix_kill_child_process): Add snarky comment.
5643         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
5644
5645         * config.h.in: Oops, _getpt ==> _getpty
5646
5647 2000-10-26  Martin Buchholz  <martin@xemacs.org>
5648
5649         * config.h.in:
5650         * regex.c:
5651         Use void*, not char*, as return type of alloca().
5652
5653         * alloc.c (free_marker): Side effect inside assert expression!
5654
5655 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
5656
5657         * mule-charset.c (Fset_charset_ccl_program): To check
5658         if the given ccl program is valid, use setup_ccl_program()
5659         instead of CHECK_VECTOR().
5660         (Fmake_charset): Likewise.
5661
5662 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
5663
5664         * faces.c (get_extent_fragment_face_cache_index):
5665         Fix cachel.merged_faces memory leak.
5666
5667 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
5668
5669         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
5670         Reset MSB of octets obtained by DECODE_SJIS
5671         because of the incompatibility with Emacs.
5672         (ccl_driver)<CCL_ENCODE_SJIS>:
5673         Set MSB of octets before passing them to
5674         ENCODE_SJIS because of the incompatibility
5675         with Emacs.
5676
5677 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
5678
5679         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
5680         (DECLARE_LRECORD): Undo the last change.
5681         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
5682
5683 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
5684
5685         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
5686         the implementation to lrecord_implementations_table.
5687
5688 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
5689
5690         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
5691         initial value of `lrecord_type_##c_name' and
5692         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
5693         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
5694         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
5695         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
5696         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
5697
5698 2000-10-17  Martin Buchholz  <martin@xemacs.org>
5699
5700         * miscplay.c (sndcnv8S_2mono):
5701         (sndcnv2monounsigned):
5702         (sndcnvULaw_2linear):
5703         (sndcnv16swap):
5704         Remove implementation-defined behavior.
5705
5706 2000-10-12  Martin Buchholz  <martin@xemacs.org>
5707
5708         * input-method-xlib.c: Warning suppression.
5709
5710 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
5711
5712         * mule-ccl.c: Sync up with Emacs 21.0.90.
5713         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
5714         Do nothing.
5715         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
5716         Likewise.
5717         (ccl_driver[WriteMultibyteChar2]): Bug fix.
5718         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
5719         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
5720         leading char belongs to official 2-dimensional charset.
5721         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
5722         write the given character as is.  Otherwise,
5723         if it is a multibyte char, convert it by
5724         non_ascii_set_charptr_emchar, then write it.
5725         (CCL_WRITE_STRING): Likewise.
5726         (ccl_get_compiled_code): New function.
5727         (setup_ccl_program): When ccl_prog is invalid,
5728         return -1.
5729         (Fregister_code_conversion_map): New function.
5730         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
5731
5732         * mule-ccl.h: Sync up with Emacs 21.0.90.
5733         (Fregister_ccl_program): export it.
5734
5735         * redisplay-msw.c (separate_textual_runs):
5736         If ccl program is not valid, don't do ccl conversion.
5737
5738         * redisplay-x.c (separate_textual_runs): Ditto.
5739
5740         * file-coding.c (Fmake_coding_system):
5741         When type is ccl and value is vector, register it
5742         with a proper symbol.  And checks whether the
5743         given ccl program is valid.
5744         (mule_decode): When calling ccl_driver, if src indicates
5745         NULL pointer, set an empty string instead.
5746         (mule_encode): Likewise.
5747
5748 2000-10-11  Martin Buchholz  <martin@xemacs.org>
5749
5750         The following large batch of changes gets us back to a state of
5751         C++ compilability.  Extbyte is now a char, which means that
5752         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
5753
5754         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
5755
5756         * sound.c (Fplay_sound): Type correctness.
5757
5758         * select-x.c (hack_motif_clipboard_selection): Type correctness.
5759         (x_get_window_property): Type correctness.
5760         (receive_incremental_selection): unsigned char ==> Extbyte
5761         (selection_data_to_lisp_data): unsigned char ==> Extbyte
5762         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
5763         (Fx_store_cutbuffer_internal): Type correctness.
5764
5765         * process-unix.c (try_to_initialize_subtty): Type correctness.
5766
5767         * objects-x.c (x_print_color_instance): Type correctness.
5768         (x_print_font_instance): Type correctness.
5769         (x_list_fonts): SExtbyte ==> Extbyte.
5770         (valid_x_font_name_p): SExtbyte ==> Extbyte.
5771         (x_find_charset_font): SExtbyte ==> Extbyte.
5772         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
5773         (truename_via_XListFonts): SExtbyte ==> Extbyte.
5774         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
5775         Use bufbyte_strcmp.
5776
5777         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
5778         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
5779         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
5780         (BYTE_C0_P): Use bit ops for char-signedness safety.
5781         (BYTE_C1_P): Use bit ops for char-signedness safety.
5782         (CHARSET_BY_LEADING_BYTE):
5783         (CHARSET_BY_ATTRIBUTES):
5784         Always use inline function.
5785         Use type_checking_assert.
5786         Hide chlook.
5787
5788         * mule-charset.c (non_ascii_charptr_copy_char):
5789         Modify to work with both ASCII and non-ASCII characters.
5790         Improve docs and variable names.
5791         Replace over-clever fall-through switch with a simple loop.
5792         (Lstream_get_emchar_1):
5793         Replace over-clever fall-through switch with a simple loop.
5794
5795         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
5796         Warning suppression.
5797
5798         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
5799         the return value of Lstream_getc, which could be EOF as well.
5800
5801         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
5802
5803         * lisp.h: Make Extbyte a char, not unsigned char, so that external
5804         APIs can be used on Extbytes without casts.  Risky!
5805         (SExtbyte): Remove.
5806         (UExtbyte): Remove.
5807
5808         * input-method-xlib.c (XIM_init_device):
5809         Use Xlib.h instead of IntrinsicP.h.
5810         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
5811         which will break in X11R7.
5812         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
5813         to call XRegisterIMInstantiateCallback with correct types.
5814
5815         * gui-x.c (button_item_to_widget_value): Type correctness.
5816
5817         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
5818
5819         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
5820         (xbm_instantiate_1): Type correctness.
5821         (BUILD_GLYPH_INST):  Type correctness.
5822
5823         * fileio.c (Fsubstitute_in_file_name): Type correctness.
5824
5825         * file-coding.c:
5826         (decode_coding_sjis):
5827         (decode_coding_big5):
5828         (decode_coding_ucs4):
5829         (decode_coding_utf8):
5830         (decode_coding_iso2022):
5831         (decode_coding_no_conversion):
5832         Make all decoding functions take an Extbyte * arg.
5833         (encode_coding_sjis):
5834         (encode_coding_big5):
5835         (encode_coding_ucs4):
5836         (encode_coding_utf8):
5837         (encode_coding_iso2022):
5838         (encode_coding_no_conversion):
5839         Make all encoding functions take a Bufbyte * arg.
5840         Use size_t instead of unsigned int for memory sizes.
5841         Only cast to unsigned char whenever dereferencing Extbyte *.
5842
5843         * doc.c (unparesseuxify_doc_string): Type correctness.
5844
5845         * console-x.c (split_up_display_spec):
5846         Rewrite without using details of internal string representation.
5847         (x_semi_canonicalize_device_connection): Type correctness.
5848
5849         * config.h.in:
5850         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
5851         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
5852         (HAVE_XFREE386): Removed.
5853
5854         * buffer.h (DEC_CHARPTR): `const' correctness.
5855         (bufbyte_strcmp): New.
5856         (bufbyte_memcmp): New.
5857
5858         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
5859
5860         * buffer.h (XCHAR_OR_CHAR_INT):
5861         Always use inline function.
5862         Remove redundant type checking assert() - XINT will abort quite nicely.
5863
5864 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
5865
5866         * search.c (Freplace_match): Set newtext to an empty string.
5867
5868 2000-10-10  Martin Buchholz  <martin@xemacs.org>
5869
5870         * s/decosf1-3.h: Remove #include of stropts.h
5871         * s/ptx.h: Remove #include of stropts.h
5872         * s/usg5-4.h: Remove #include of stropts.h
5873         * sysproc.h:
5874         * config.h.in:
5875         Use stropts.h, not sys/stropts.h.
5876         Use strtio.h, not sys/strtio.h.
5877
5878 2000-10-04  Martin Buchholz <martin@xemacs.org>
5879
5880         * XEmacs 21.2.36 is released.
5881
5882 2000-09-21  Andy Piper  <andy@xemacs.org>
5883
5884         * glyphs-x.c (x_redisplay_widget): make sure non-structural
5885         changes still involve copying the widget tree.
5886         (update_widget_face): make sure a change is register in the widget
5887         tree. Call update_tab_widget_face appropriately.
5888         (update_tab_widget_face): ditto.
5889         (x_tab_control_redisplay): make sure non-structural changes still
5890         involve copying the widget tree.
5891
5892 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
5893
5894         * lread.c (locate_file): Check the path element is non-nil.
5895
5896 2000-10-02  Martin Buchholz  <martin@xemacs.org>
5897
5898         * lisp.h: Warning suppression for SCO compilers.
5899
5900         * redisplay-tty.c (reset_tty_modes): Fix crash.
5901         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
5902
5903 2000-09-27  Martin Buchholz  <martin@xemacs.org>
5904
5905         Big signal/process handling overhaul.  Bugs fixed:
5906         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
5907         M-x comint-kill-subjob should work for both values nil and t of
5908         process-connection-type. It was broken on most platforms.
5909         Testing on Irix and Cygwin still needed.  Other plaforms tested.
5910         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
5911         * process-unix.c: Signal/Process handling overhaul.
5912         (pty_name): make 64 bytes, as `expect' does, for paranoia.
5913         (allocate_pty): Use all available modern methods of allocating
5914         ptys, falling back to old style BSD allocation as a last resort.
5915         Use allegedly more secure Unix98 pty allocation by default.
5916         (allocate_pty_the_old_fashioned_way): New. the last resort.
5917         (unix_create_process): Push ptem, ldterm, ttcompat where
5918         available.  Autoconfiscate.
5919         (try_to_initialize_subtty): New.
5920         (unix_kill_child_process): Proper signal handling for ptys on most
5921         platforms, using special knowledge of AIX, BSD, etc...
5922         (unix_create_process): Always disconnect_controlling_terminal() for
5923         subprocesses, whether using ptys or not.
5924         * process.h: Remove old getpt-dependent PTY code.
5925         * process.c (Fprocess_send_signal): New, obvious generic function.
5926         (decode_signal): New.
5927         (Finterrupt_process):
5928         (Fkill_process):
5929         (Fquit_process):
5930         (Fstop_process):
5931         (Fcontinue_process):
5932         (Fsignal_process): Use decode_signal.
5933         (process_send_signal):
5934         Many docstring corrections.
5935         Allow any signal to be sent to a process object.
5936         * config.h.in: Add symbols for big signal/process overhaul.
5937         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
5938         * sysproc.h: Include process-related headers, where available:
5939         sys/stropts.h sys/strtio.h pty.h libutil.h
5940         * s/irix4-0.h:
5941         * s/irix5-0.h:
5942         * s/cygwin32.h:
5943         * s/gnu.h:
5944         * s/linux.h:
5945         * s/hpux.h:
5946         * s/aix3-1.h:
5947         Remove old S&M pty stuff.
5948         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
5949         * systty.h: Simplify cpp hackery, improve comments.
5950         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
5951
5952         * editfns.c (Fformat_time_string):
5953         Be a little more paranoid with the return value of ctime.
5954
5955         * fileio.c (check_executable):
5956         (check_writable):
5957         Use symbolic constants X_OK, W_OK.
5958
5959         * console-x.c (split_up_display_spec): Fix a warning.
5960
5961 2000-10-02  Martin Buchholz  <martin@xemacs.org>
5962
5963         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
5964         * ntproc.c (sys_spawnve): make_string ==> build_string
5965         Small clarity improvements.
5966
5967 2000-09-30  Martin Buchholz  <martin@xemacs.org>
5968
5969         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
5970
5971         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
5972
5973         * config.h.in (HAVE_STRCASECMP): Remove.
5974
5975 2000-09-29  Martin Buchholz  <martin@xemacs.org>
5976
5977         * redisplay-output.c (redisplay_output_pixmap):
5978         Cleaner and possibly more 64-bit correct code.
5979
5980 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
5981
5982         * dumper.c (pdump_load_finish): move restoration of
5983         `noninteractive1' to emacs.c (main_1).
5984         * emacs.c (main_1): protect LISP-visible command-line flags
5985         from pdump_load().
5986
5987 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
5988
5989         * Makefile.in.in (versionclean):  Use EXE_TARGET and
5990         DUMP_TARGET instead of literal program names.
5991
5992 2000-09-20  Martin Buchholz  <martin@xemacs.org>
5993
5994         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
5995
5996 2000-09-19  Martin Buchholz  <martin@xemacs.org>
5997
5998         * *: Spelling mega-patch
5999
6000 2000-09-19  Martin Buchholz  <martin@xemacs.org>
6001
6002         * fns.c (bad_bad_turtle):
6003         Delete "Eek!" comment, since we fixed the bug to which it refers.
6004
6005 2000-09-16  Martin Buchholz  <martin@xemacs.org>
6006
6007         * alloca.c: Replace REGISTER with register.
6008
6009 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
6010
6011         * file-coding.c (ucs_to_char): Use countof.
6012
6013 2000-09-16  Martin Buchholz  <martin@xemacs.org>
6014
6015         * file-coding.c: (ucs_to_char):
6016         (complex_vars_of_file_coding):
6017         Use countof instead of sizeof.
6018         Use CHECK_NATNUM instead of CHECK_INT.
6019
6020         * sysdep.c (strcasecmp): Remove.
6021         * device-x.c (ascii_strcasecmp): New.
6022         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
6023         Avoid using non-standard non-portable strcasecmp.
6024
6025 2000-09-16  Martin Buchholz  <martin@xemacs.org>
6026
6027         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
6028         * font-lock.c: remove reference to emacsfns.h.
6029         * search.c: small doc improvement.
6030         * event-Xt.c: correct file names in comments.
6031         * console-x.h Correct file names in comments.
6032         * frame.c: Correct file names in comments.
6033         * event-stream.c: remove Energize from comments.
6034
6035 2000-09-15  Martin Buchholz  <martin@xemacs.org>
6036
6037         * symeval.h (DEFERROR_STANDARD):
6038         (DEFERROR):
6039         (DEFSYMBOL):
6040         (DEFSYMBOL_NO_DUMP):
6041         (DEFSYMBOL_MULTIWORD_PREDICATE):
6042         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
6043         (DEFKEYWORD):
6044         The construct &##name is not sensible C.
6045         Fixes compilation errors with Unixware native compiler.
6046
6047 2000-09-14  Martin Buchholz  <martin@xemacs.org>
6048
6049         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
6050         (next_frame_internal): Removed.  We now just have next_frame.
6051         (next_frame):
6052         Write a simpler and cleaner one-pass algorithm.
6053         Remove called_from_delete_device arg and #ifdefed-out code.
6054         (previous_frame):
6055         Renamed from prev_frame.  Update callers.
6056         Cleaned up to have an analogous implementation to next_frame.
6057         (other_visible_frames_internal): Remove the
6058         called_from_delete_device bogus arg, and hence, remove this
6059         function.  Just use other_visible_frames().
6060
6061         * window.c (Fnext_window):
6062         Prettify docstring.
6063         Since next_frame() is guaranteed to return a frame, remove check
6064         for nil inserted in previous patch.
6065         (Fprevious_window):
6066         Prettify docstring.
6067         Make code look more like Fnext_window.
6068         (window_loop):
6069         Respect the `console' arg when iterating through windows.
6070         Fixes bug: (get-buffer-window buffer t device) not respecting
6071         the `device' arg.
6072         This function needs more work, as others have pointed out.
6073
6074         * frame.h: Rename prev_frame to previous_frame.
6075         device_matches_console_spec no longer takes a `frame' arg.
6076
6077         * s/gnu.h:
6078         * s/linux.h:
6079         * s/hpux.h:
6080         Use EMACS_BLOCK_SIGNAL instead of sigblock.
6081         From "Golubev I. N." <gin@mo.msk.ru>.
6082
6083         * make-src-depend: Fix typo.
6084
6085 2000-09-13  Martin Buchholz  <martin@xemacs.org>
6086
6087         * window.c (Fnext_window):
6088         next_frame() might return nil, not a frame.
6089         Fixes this crash:
6090         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
6091
6092         * frame.c (next_frame_internal):
6093         We've passed a frame if we've passed its device.
6094         Fixes this crash:
6095         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
6096 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
6097
6098 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
6099
6100         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
6101         Allow option to suppress accelerators in menu/dialog items.
6102         (populate_or_checksum_helper): Pass dialog title through above.
6103
6104 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
6105
6106         * event-msw.c (mswindows_key_to_emacs_keysym):
6107         Add "pause" key, fix "menu" key.
6108
6109 2000-09-09  Martin Buchholz  <martin@xemacs.org>
6110
6111         * eval.c (reinit_vars_of_eval):
6112         Increase max_lisp_eval_depth to 1000,
6113         required for thai-xtis.el to byte-compile under some circumstances.
6114
6115 2000-09-04  Martin Buchholz  <martin@xemacs.org>
6116
6117         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
6118         From Kenichi Handa.
6119
6120 2000-09-01  Martin Buchholz  <martin@xemacs.org>
6121
6122         * make-src-depend: Make the generated Makefiles smaller.
6123
6124         * s/hpux.h (SETUP_SLAVE_PTY):
6125         Provide a %d in the format string for the errno argument.
6126
6127         * editfns.c (Ftemp_directory):
6128         Warning fix.
6129         Avoid buffer overrun on very long file name.
6130
6131         * input-method-xlib.c (XIM_init_device):
6132         6th parameter of XRegisterIMInstantiateCallback has different
6133         pointer types on different OSes, so simply cast to (void *).
6134
6135         * unexhp9k800.c: Warning fixes.  Fiddly changes.
6136
6137         * sysdll.c (dll_open):
6138         shl_load will hang hard if passed a NULL filename.
6139         Simply return NULL for compatibility with dlopen.
6140         * sysdll.c: Conform to XEmacs coding standards.
6141
6142         * sysdep.c (get_pty_max_bytes):
6143         Support pty input lines longer than 512 bytes on HP-UX 10.20.
6144
6145 2000-08-31  Martin Buchholz  <martin@xemacs.org>
6146
6147         * tooltalk.c: Add #include <syssignal.h>
6148
6149 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
6150
6151         * s/hpux.h: Don't use undefined function sigunblock().
6152
6153 2000-08-31  Martin Buchholz  <martin@xemacs.org>
6154
6155         * config.h.in: Add HAVE_BALLOON_HELP.
6156         * emacs.c: Use HAVE_BALLOON_HELP.
6157         * Makefile.in.in (x_objs):
6158         Make Balloon Help conditional on finding shape.h.
6159
6160 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
6161
6162         * syntax.c (regex_emacs_buffer_p): New variable.
6163         * syntax.h (regex_emacs_buffer_p): extern.
6164         * search.c (looking_at_1):
6165         (string_match_1):
6166         (fast_string_match):
6167         (search_buffer): Set regex_emacs_buffer_p.
6168         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
6169         when before_dot, at_dot, after_dot.
6170
6171 2000-08-23  Andy Piper  <andy@xemacs.org>
6172
6173         * gui-x.c (popup_selection_callback): Only set action_occurred
6174         when we really have an image instance.
6175         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
6176
6177 2000-08-23  Andy Piper  <andy@xemacs.org>
6178
6179         * gui-msw.c (mswindows_handle_gui_wm_command): set
6180         action_occurred.
6181         * gui-x.c (popup_selection_callback): ditto.
6182
6183         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
6184         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
6185         (struct Lisp_Image_Instance): add action_occurred flag.
6186
6187         * glyphs.c (redisplay_subwindow): use action_occurred flag.
6188         (image_instance_changed): ditto.
6189         (reset_frame_subwindow_instance_cache): only unmap windows - do
6190         not remove them from the cache also.
6191
6192         * glyphs-widget.c (tab_control_update): better debug.
6193         (progress_gauge_update): ditto.
6194         (layout_update): ditto.
6195         (layout_instantiate): ditto.
6196         (tab_control_order_only_changed): cope with null pending items.
6197
6198         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
6199         debug. Force selection of an item when an action occurred. Cope
6200         with null pending_items.
6201         (mswindows_progress_gauge_redisplay): better debug.
6202         * glyphs-x.c (x_tab_control_redisplay): ditto.
6203
6204         * redisplay.c (redisplay_frame): reset the frame cache if the
6205         frame is garbaged.
6206
6207         * window.c (Fset_window_configuration): potentially re-enable
6208         frame cache reset.
6209         (window_unmap_subwindows): need to finalize instances here since
6210         it is only used in mark_window_as_deleted.
6211
6212 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
6213
6214         * nas.c (SndOpenDataForReading):
6215         nas.c (WaveOpenDataForReading):
6216         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
6217         Somehow escaped from the 2000-08-14 patch.
6218
6219 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
6220
6221         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
6222         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
6223
6224 2000-08-21  Andy Piper  <andy@xemacs.org>
6225
6226         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
6227         window if it is not already displayed.
6228
6229         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
6230         it is not already displayed.
6231
6232         * window.c (Fset_window_configuration): don't reset the frame
6233         cache.
6234
6235         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
6236         instances from the frame cache if we are actually finalizing them.
6237         (reset_frame_subwindow_instance_cache): reset frame cache only
6238         after unmapping everything.
6239         (map_subwindow): set displayed flag after mapping.
6240
6241 2000-08-21  Martin Buchholz  <martin@xemacs.org>
6242
6243         * data.c (indirect_function):
6244         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
6245
6246         * eval.c (function_argcount):
6247         Use original function when signaling errors.
6248
6249 2000-08-18  Andy Piper  <andy@xemacs.org>
6250
6251         * frame.c (delete_frame_internal): use new
6252         free_frame_subwindow_instances name.
6253
6254         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
6255         (add_tab_item): make return type correct.
6256         (mswindows_tab_control_instantiate): assert index of tab.
6257         (mswindows_tab_control_redisplay): Re-code to use
6258         gui_item_equal_sans_selected and gui_item_list_find_selected.
6259
6260         * glyphs-widget.c (tab_control_update): Correct comment.
6261
6262         * window.c (window_unmap_subwindows): use new
6263         unmap_subwindow_instance_cache_mapper.
6264         (window_unmap_subwindows_cache_mapper): deleted.
6265         (Fset_window_configuration): comparisons should now be with
6266         EQ. Preserve the subwindow instance cache across configuration
6267         changes.
6268         (allocate_window): ditto.
6269         (make_dummy_parent): ditto.
6270
6271         * glyphs.c (free_frame_subwindow_instances): rename from
6272         free_frame_subwindow_instance_cache. finalize all instances rather
6273         than just those in the display cache.
6274         (finalize_all_subwindow_instances): walk windows unmapping and
6275         finalizing subwindows.
6276         (unmap_subwindow_instance_cache_mapper): moved from
6277         window.c. Allow finalization as well as unmapping.
6278
6279         * gui.c (gui_item_list_find_selected): new function.
6280
6281         * gui.h (gui_item_list_find_selected): declare.
6282
6283         * glyphs-x.c (x_tab_control_redisplay): pick tab
6284         explicitly. Re-code to use gui_item_equal_sans_selected and
6285         gui_item_list_find_selected.
6286
6287         * glyphs-x.h: add lwlib-utils.h
6288
6289         * buffer.c (Frecord_buffer): undo previous change.
6290
6291 2000-08-09  Vin Shelton  <acs@xemacs.org>
6292
6293         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
6294         possible.  Create temporary files more securely.  The patch was
6295         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
6296         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
6297         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
6298         for details.
6299
6300 2000-08-07  Ben Wing  <ben@xemacs.org>
6301
6302         * getloadavg.c: remove duplicate (and windows-breaking)
6303         includes of fcntl.h and sys/file.h.
6304
6305         * nt.c: remove duplicate getloadavg() definition.
6306
6307         * sysdll.h (Qdll_filename_encoding): add missing stand-in
6308         encodings.
6309
6310 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
6311
6312         * eval.c (function_argcount): If function needs to be autoloaded
6313         actually use the loaded definition.
6314         GCPRO function.
6315
6316 2000-08-05  Ben Wing  <ben@xemacs.org>
6317
6318         * getloadavg.c: add prototype for getloadavg().  remove
6319         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
6320         of the code).  remove duplicate header includes.
6321
6322         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
6323
6324         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
6325         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
6326         useful load average.
6327
6328         * alloc.c (reinit_alloc_once_early): removed references to
6329         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
6330         the lisp vars are the only things referencing the malloc_sbrk_*
6331         vars, and they were already if 0'd out.  these vars only exist
6332         in the older malloc.c, which is basically unused, and they're
6333         only for informational purposes.
6334
6335         * m\*.h: removed useless VIRT_ADDR_VARIES.
6336
6337         * m\powerpc.h: removed stray NO_ARG_ARRAY.
6338
6339 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
6340
6341         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
6342         color if the image is a mono pixmap.
6343
6344 2000-07-30  Ben Wing  <ben@xemacs.org>
6345
6346         * Makefile.in.in (release):
6347         Remove stray @.
6348
6349         * buffer.c (directory_is_current_directory):
6350         * dired-msw.c (mswindows_get_files):
6351         * dired.c:
6352         * dired.c (Fdirectory_files):
6353         * dired.c (file_name_completion_stat):
6354         * dired.c (Ffile_attributes):
6355         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
6356         preprocessor tricks, to avoid problems on some machines
6357         (e.g. SCO).
6358
6359         * callproc.c (egetenv): GC docs.
6360
6361         * console-msw.h:
6362         * console-msw.h (struct mswindows_dialog_id):
6363         * lrecord.h (lrecord_type):
6364         New object for use with MSW dialogs.
6365
6366         * console.h (struct console_methods):
6367         New enable/disable frame methods, for proper modal dialogs.
6368
6369         * device-msw.c (msprinter_default_printer): Fix to follow
6370         proper Mule conventions.
6371
6372         * device-msw.c:
6373         * device-msw.c (signal_open_printer_error):
6374         * device-msw.c (msprinter_init_device):
6375         * device-msw.c (ensure_not_printing):
6376         * device-msw.c (plist_get_margin):
6377         * device-msw.c (Fmsprinter_select_settings):
6378         * device-msw.c (finalize_devmode):
6379         * device-msw.c (Fmsprinter_settings_despecialize):
6380         * device-msw.c (signal_enum_priner_error):
6381         * extents.c (decode_extent):
6382         * extents.c (decode_map_extents_flags):
6383         * extents.c (decode_extent_at_flag):
6384         * extents.c (Fextent_at):
6385         * extents.c (Fextents_at):
6386         * extents.c (symbol_to_glyph_layout):
6387         [[[[2]]]] Use structured errors.
6388
6389         * dialog-msw.c:
6390         * dialog-msw.c (mswindows_is_dialog_msg):
6391         * dialog-msw.c (mark_mswindows_dialog_id):
6392         * dialog-msw.c (dialog_proc):
6393         * dialog-msw.c (handle_question_dialog_box):
6394         * dialog-msw.c (syms_of_dialog_mswindows):
6395         Define new object to clean up marking; use it as a dialog identifier.
6396         Call new delete-dialog-box-hook.
6397
6398         * dialog-x.c (dbox_selection_callback):
6399         * dialog-x.c (dbox_descriptor_to_widget_value):
6400         * dialog-x.c (x_make_dialog_box_internal):
6401         Call new delete-dialog-box-hook.
6402         Return an id.
6403
6404         * dialog.c:
6405         * dialog.c (syms_of_dialog):
6406         * dialog.c (vars_of_dialog):
6407         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
6408
6409         * eval.c:
6410         * eval.c (signal_call_debugger):
6411         when noninteractive, output stack traces on the console instead
6412         of in a (never-seen) buffer.
6413
6414         * eval.c (signal_type_error):
6415         * eval.c (invalid_argument_2):
6416         * lisp.h:
6417         new funs for use w/structured errors.
6418
6419         * event-Xt.c:
6420         * event-Xt.c (x_to_emacs_keysym):
6421         * event-Xt.c (describe_event):
6422         * event-Xt.c (emacs_Xt_event_handler):
6423         * event-Xt.c (vars_of_event_Xt):
6424         * event-msw.c:
6425         * event-msw.c (mswindows_wnd_proc):
6426         * event-msw.c (vars_of_event_mswindows):
6427         rename {x,mswindows}-debug-events to debug-{}-events for
6428         consistency with other debug-foo variables.
6429
6430         * event-stream.c:
6431         document next-event more clearly.
6432
6433         * fileio.c (Ffile_name_directory):
6434         * fileio.c (Ffile_name_nondirectory):
6435         * fileio.c (Funhandled_file_name_directory):
6436         * fileio.c (file_name_as_directory):
6437         * fileio.c (Ffile_name_as_directory):
6438         * fileio.c (directory_file_name):
6439         * fileio.c (Fdirectory_file_name):
6440         * fileio.c (Fmake_temp_name):
6441         * fileio.c (Ffile_truename):
6442         * fileio.c (Fsubstitute_in_file_name):
6443         * fileio.c (expand_and_dir_to_file):
6444         * fileio.c (barf_or_query_if_file_exists):
6445         * fileio.c (check_executable):
6446         * fileio.c (Ffile_exists_p):
6447         * fileio.c (Ffile_writable_p):
6448         * fileio.c (Ffile_directory_p):
6449         * fileio.c (Ffile_regular_p):
6450         * fileio.c (Ffile_modes):
6451         * fileio.c (Ffile_newer_than_file_p):
6452         * fileio.c (Fverify_visited_file_modtime):
6453         * fileio.c (Fset_visited_file_modtime):
6454         * fileio.c (auto_save_1):
6455         (1). (2).
6456         fix up gcpro's.
6457
6458         * frame-msw.c:
6459         * frame-msw.c (mswindows_init_frame_1):
6460         * frame-msw.c (mswindows_enable_frame):
6461         * frame-msw.c (error_frame_unsizable):
6462         * frame-msw.c (msprinter_init_frame_1):
6463         * frame-msw.c (msprinter_init_frame_3):
6464         * frame-msw.c (console_type_create_frame_mswindows):
6465         (2).
6466         implement new enable/disable frame methods.
6467
6468         * frame-x.c:
6469         * frame-x.c (x_enable_frame):
6470         * frame-x.c (console_type_create_frame_x):
6471         implement new enable/disable frame methods.
6472
6473         * frame.c:
6474         * frame.c (Fdisable_frame):
6475         * frame.c (syms_of_frame):
6476         * frame.h (struct frame):
6477         implement new enable/disable frame methods/functions.
6478
6479         * general-slots.h:
6480         add initial-focus.
6481
6482         * glyphs-msw.c (mswindows_widget_instantiate):
6483         comment that initial-focus should be implemented.
6484
6485         * glyphs-widget.c:
6486         * glyphs-widget.c (check_valid_instantiator):
6487         * glyphs-widget.c (check_valid_orientation):
6488         * glyphs-widget.c (check_valid_tab_orientation):
6489         * glyphs-widget.c (check_valid_justification):
6490         * glyphs-widget.c (check_valid_border):
6491         * glyphs-widget.c (check_valid_callback):
6492         * glyphs-widget.c (check_valid_int_or_function):
6493         * glyphs-widget.c (check_valid_string_or_vector):
6494         * glyphs-widget.c (check_valid_item_list_1):
6495         * glyphs-widget.c (widget_validate):
6496         * glyphs-widget.c (combo_box_validate):
6497         * glyphs-widget.c (widget_instantiate):
6498         * glyphs-widget.c (syms_of_glyphs_widget):
6499         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
6500         * glyphs-widget.c (image_instantiator_combo_box):
6501         * glyphs-widget.c (image_instantiator_scrollbar):
6502         * glyphs-widget.c (image_instantiator_tab_control):
6503         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
6504         (2).
6505         support (unimplemented) keyword initial-focus.
6506         reindent long macros.
6507
6508         * glyphs-x.c (x_redisplay_widget):
6509         * glyphs-x.c (x_button_instantiate):
6510         * glyphs-x.c (x_button_redisplay):
6511         * glyphs-x.c (x_progress_gauge_instantiate):
6512         * glyphs-x.c (x_edit_field_instantiate):
6513         * glyphs-x.c (x_combo_box_instantiate):
6514         * glyphs-x.c (x_tab_control_instantiate):
6515         * glyphs-x.c (x_label_instantiate):
6516         * gui-x.c:
6517         * gui-x.c (button_item_to_widget_value):
6518         * gui-x.c (gui_items_to_widget_values_1):
6519         * gui-x.c (gui_item_children_to_widget_values):
6520         * gui-x.c (gui_items_to_widget_values):
6521         * gui-x.h:
6522         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
6523         add new flag to gui-parsing routines to indicate whether
6524         accelerator specs should be supported.
6525
6526         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
6527
6528         * glyphs.h (struct Lisp_Image_Instance):
6529         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
6530         add initial-focus flag.
6531
6532         * gui.c:
6533         * gui.c (syms_of_gui):
6534         * gui.c (vars_of_gui):
6535         clean up menu-no-selection-hook.
6536
6537         * gui.h:
6538         support delete-dialog-box-hook.
6539
6540         * lread.c (Fload_internal):
6541         * lread.c (locate_file_in_directory_mapper):
6542         (1).
6543
6544         * lrecord.h:
6545         * lrecord.h (struct toolbar_button):
6546         * lrecord.h (syms_of_toolbar):
6547         document how to create a new object.
6548
6549         * menubar-msw.c (mswindows_char_is_accelerator):
6550         may be called on frames w/o menus.
6551
6552         * menubar.c (vars_of_menubar):
6553         clean up :filter docs.
6554
6555         * nt.c (readdir):
6556         * ntproc.c:
6557         (1).
6558
6559         * process-nt.c:
6560         * process-nt.c (validate_signal_number):
6561         * process-nt.c (signal_cannot_launch):
6562         * process-nt.c (nt_create_process):
6563         * process-nt.c (nt_send_process):
6564         * process-nt.c (nt_kill_child_process):
6565         * process-nt.c (nt_open_network_stream):
6566         * process-nt.c (syms_of_process_nt):
6567         (2).
6568         delete quote-handling.  call new lisp code that does it better.
6569
6570         * process-unix.c (connect_to_file_descriptor):
6571         * process-unix.c (allocate_pty):
6572         * process-unix.c (unix_send_process):
6573         * process-unix.c (unix_kill_child_process):
6574         * process-unix.c (unix_open_network_stream):
6575         * process-unix.c (unix_open_multicast_group):
6576         (1). (2).
6577
6578         * process.c:
6579         * process.c (Fstart_process_internal):
6580         (2).  need to canonicalize process path even if absolute.
6581
6582         * select-msw.c (symbol_to_ms_cf):
6583         * select-msw.c (ms_cf_to_symbol):
6584         * select-msw.c (cf_is_autofreed):
6585         * select-msw.c (mswindows_destroy_selection):
6586         * select.c:
6587         * select.c (syms_of_select):
6588         * select.h:
6589         support dibv5, fix bugs. (from Mike Alexander)
6590
6591         * select.c (Fget_selection_internal):
6592         * select.c (select_convert_out):
6593
6594         * sysdep.c:
6595         * sysdep.c (xemacs_stat):
6596         renamed.
6597
6598         * sysdep.c (mkdir):
6599         * sysdep.c (rmdir):
6600         but keep original stat() here because we provide encapsulation
6601         around these funs.
6602
6603         * sysfile.h:
6604         * sysfile.h (fstat):
6605         remove stat garbage.
6606
6607         * syswindows.h:
6608         fix X/MSW conflict.
6609         don't include tchar.h.  it's inappropriate because it makes
6610         compile-time distinctions when we want runtime distinctions.
6611         (we provide our own tchar replacements)
6612
6613         * toolbar.c:
6614         use default object printer for toolbar-button.
6615
6616         * unexcw.c:
6617         make sure we don't encapsulate.
6618
6619         * window.c (vars_of_window):
6620         emphasize that temp-buffer-show-hook is obsolete.
6621
6622 2000-08-05  Martin Buchholz  <martin@xemacs.org>
6623
6624         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
6625         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
6626
6627         * events.c (Fevent_timestamp_lessp):
6628         Not 64-bit clean.  Use EMACS_INT, not int.
6629
6630 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
6631
6632         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
6633         unsigned int and changed the last enum to
6634         lrecord_type_last_built_in_type.
6635         (lrecord_implementations_table): changed prototype to know how
6636         long the array is supposed to be.
6637         (lrecord_type_count): new unsigned int to keep track of the
6638         current number of lisp lrecord types.
6639         (DEFINE_EXTERNAL_LRECORD):
6640         (DECLARE_EXTERNAL_LRECORD): Added these two for external
6641         dynamic-modules to declare new lisp types. They are the same
6642         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
6643         int for each new type, and increment lrecord_type_count by 1.
6644
6645         * alloc.c (lrecord_implementations_table): Changed to reference
6646         lrecord_type_last_built_in_type for the size of the array.
6647         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
6648
6649 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
6650
6651         * glyphs.h (check_valid_item_list): Renamed from
6652         check_valid_item_list_1.
6653
6654 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
6655
6656         * select.c (Qselect_coerce): New.
6657         * select.c (Vselection_coercion_alist): New.
6658         * select.c (syms_of_select): Declare.
6659         * select.c (get-selection-internal): Use it.
6660         Use the new select-coerce functionality.
6661
6662         * select.c (select_coerce): New.
6663         * select.h (select_coerce): Declare.
6664         New function to coerce one type of data into another.
6665
6666 2000-08-03  Martin Buchholz  <martin@xemacs.org>
6667
6668         * callproc.c (Fcall_process_internal):
6669         (Fcall_process_internal):
6670         * process-unix.c (unix_create_process):
6671         Save and restore the value of errno, so that error messages are accurate.
6672
6673 2000-08-01  Martin Buchholz  <martin@xemacs.org>
6674
6675         * elhash.c (print_hash_table):
6676         Fix printing of hash tables to also use `key-and-value' instead of `t'.
6677         Prettify docstrings and indentation.
6678
6679 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
6680
6681         * window.c (Fwindow_pixel_edges): Subtract frame border and
6682         gutter size.
6683
6684 2000-07-31  Andy Piper  <andy@xemacs.org>
6685
6686         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
6687         will acknowledge the change.
6688
6689         * glyphs.h: declare tab_control_order_only_changed.
6690
6691         * glyphs-x.c (x_tab_control_redisplay): use
6692         tab_control_order_only_changed.
6693
6694         * glyphs-widget.c (tab_control_order_only_changed): new function.
6695
6696         * glyphs-msw.c (mswindows_tab_control_redisplay): use
6697         tab_control_order_only_changed.
6698
6699         * gui.c (gui_item_equal_sans_selected): new function.
6700         (gui_item_equal): use it.
6701
6702         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
6703         :properties in favor of :items..
6704
6705         * glyphs-widget.c (check_valid_item_list): rename from
6706         check_valid_item_list_1.
6707         (check_valid_item_list_1): renamed.
6708         (combo_box_validate): deprecate :properties in favor of :items.
6709         (widget_instantiate): ditto.
6710         (tab_control_update): ditto.
6711         (image_instantiator_combo_box): ditto.
6712         (image_instantiator_tree_view): ditto.
6713         (image_instantiator_tab_control): ditto.
6714         (layout_post_instantiate): remove dead code.
6715
6716         * print.c (debug_print_no_newline): only write to debugger if in
6717         WIN32_NATIVE.
6718
6719         * elhash.c (Fmake_hash_table): update doc string.
6720
6721         * event-msw.c (mswindows_wnd_proc): don't allow processing of
6722         messages whilst in GC. This at least stops XEmacs crashing but has
6723         the potential for wierd behaviour.
6724
6725 2000-07-31  Martin Buchholz  <martin@xemacs.org>
6726
6727         * config.h.in:
6728         Make existence of s&m files optional.
6729
6730         * s/bsd386.h: Remove HAVE_GETLOADAVG.
6731         * s/freebsd.h: Remove HAVE_GETLOADAVG.
6732         * s/gnu.h: Remove HAVE_GETLOADAVG.
6733         * s/netbsd.h: Remove HAVE_GETLOADAVG.
6734         * s/sol2.h: Remove HAVE_GETLOADAVG.
6735         * lisp.h: Remove getloadavg() declaration.
6736         * fns.c:
6737         Include <sys/loadavg.h> if available.
6738         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
6739         * config.h.in:  Group together getloadavg()-related macros.
6740         Use only configure-time tests to detect getloadavg().
6741
6742 2000-07-30  Martin Buchholz  <martin@xemacs.org>
6743
6744         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
6745
6746 2000-07-25  Andy Piper  <andy@xemacs.org>
6747
6748         * syswindows.h: add tchar.h for native builds.
6749
6750         * frame.c (syms_of_frame): remove set-glyph-image.
6751
6752         * general-slots.h: add Qset_glyph_image.
6753
6754         * glyphs-widget.c (layout_update): add domain arg to
6755         set-glyph-image.
6756         (syms_of_glyphs_widget): remove set-glyph-image.
6757
6758 2000-07-23  Ben Wing  <ben@xemacs.org>
6759
6760         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
6761         Vpopup_frame_list.
6762
6763 2000-07-22  Andy Piper  <andy@xemacs.org>
6764
6765         * symsinit.h: add syms_of_win32().
6766
6767         * gui-msw.c (syms_of_gui_mswindows): remove
6768         Fmswindows_shell_execute.
6769         (Fmswindows_shell_execute): moved to win32.c.
6770
6771         * emacs.c (main_1): add syms_of_win32 ().
6772
6773         * win32.c (init_potentially_nonexistent_functions): rewrite in
6774         compiler-friendly terms.
6775         (Fmswindows_shell_execute): move here from gui-msw.c.
6776         (syms_of_win32): new.
6777
6778         * device-msw.c (Fmswindows_printer_list): clean up args to
6779         EnumPrinters.
6780         Don't include tchar under cygwin or mingw.
6781         (msprinter_default_printer): make cygwin-friendly.
6782
6783 2000-07-21  Andy Piper  <andy@xemacs.org>
6784
6785         * glyphs-widget.c (image_instantiator_tree_view): use tab
6786         control's update function.
6787         (layout_property): new function. Retrieve items.
6788
6789         * glyphs-msw.c (mswindows_tree_view_redisplay): new
6790         function. Re-populate the tree view from the pending items.
6791
6792         * glyphs.c (instantiate_image_instantiator): Make sure the domain
6793         is designated the parent if the domain is an image instance. This
6794         is needed so that dirtiness can be cascade up the hierarchy and
6795         thus for layout children to be redisplayed correctly.
6796         (allocate_image_instance): rename glyph -> parent.
6797
6798         * redisplay.h: change redisplay_output_layout signature.
6799
6800         * redisplay-msw.c (mswindows_output_display_block): use domain
6801         arg.
6802
6803         * redisplay-x.c (x_output_display_block): use domain arg.
6804
6805 2000-07-10  Andy Piper  <andy@xemacs.org>
6806
6807         * window.c (Fset_window_configuration): add comment.
6808
6809         * redisplay-output.c (compare_runes):
6810         (redisplay_output_subwindow): redisplay rather than update subwindow.
6811         (redisplay_output_layout): ditto.
6812
6813         * redisplay-msw.c (mswindows_frame_output_end):
6814         (mswindows_frame_output_end): make defer window pos optional.
6815
6816         * lisp.h: add Flast.
6817
6818         * glyphs.h (struct image_instantiator_methods): add dest_mask top
6819         normalize method. Change update method to be for changed
6820         instantiators. Add redisplay method. Change signature of layout
6821         method.
6822         (struct Lisp_Image_Instance): add instantiator.
6823         (IMAGE_INSTANCE_INSTANTIATOR): new.
6824         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
6825         (XIMAGE_INSTANCE_INSTANTIATOR): new.
6826         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
6827
6828         * glyphs.c:
6829         (find_instantiator_differences): new function.
6830         (Fset_instantiator_property): new convenience function.
6831         (check_image_instance_structure): strictly check for vector
6832         instantiators.
6833         (normalize_image_instantiator): make non-static.
6834         (instantiate_image_instantiator): pass on dest_mask and use new
6835         signatures for image_instance_layout and friends.
6836         (mark_image_instance): mark the instantiator. Mark the subwindow
6837         face not the widget face.
6838         (image_instance_equal): add instantiator.
6839         (image_instance_hash): ditto.
6840         (allocate_image_instance): ditto.
6841         (Fset_image_instance_property): removed.
6842         (Fimage_instance_file_name): ditto.
6843         (Fcolorize_image_instance): ditto.
6844         (image_instance_layout): add offsets to be set.
6845         (update_image_instance): new function. update an image instance
6846         from its changed instantiator.
6847         (inherit_normalize): add dest_mask.
6848         (xbm_normalize): ditto.
6849         (xface_normalize): ditto.
6850         (xpm_normalize): ditto.
6851         (text_update): set_property -> update.
6852         (image_instantiate): use the glyph identity as a hash key, not the
6853         instantiator.
6854         (glyph_width): use new image_instance_layout signature.
6855         (glyph_ascent): ditto.
6856         (glyph_descent): ditto.
6857         (glyph_height): ditto.
6858         (glyph_query_geometry): ressurrect.
6859         (glyph_layout): ditto.
6860         (redisplay_subwindow): update -> redisplay.
6861         (syms_of_glyphs): add Fset_instantiator_property.
6862         (image_instantiator_format_create): set_property -> update.
6863
6864         * glyphs-x.c:
6865         (autodetect_normalize): add dest_maks to signature.
6866         (x_redisplay_subwindow): update -> redisplay.
6867         (x_redisplay_widget): ditto.
6868         (x_button_redisplay): ditto.
6869         (x_progress_gauge_redisplay): ditto.
6870         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
6871         stacking order.
6872         (console_type_create_glyphs_x): update -> redisplay.
6873         (image_instantiator_format_create_glyphs_x): ditto.
6874
6875         * glyphs-widget.c:
6876         (check_valid_instantiator): disallow glyphs in the instantiator,
6877         they must now be vectors.
6878         (check_valid_instantiator_list): ditto.
6879         (glyph_instantiator_to_glyph): use internal symbol rather than
6880         intern.
6881         (widget_update): renamed from widget_set_property. Call cascaded
6882         update methods.
6883         (redisplay_widget): renamed from update_widget.
6884         (widget_layout): image_instance_layout now takes position as well
6885         as size.
6886         (widget_normalize): ditto.
6887         (widget_instantiate): ditto.
6888         (tab_control_query_geometry) ditto.:
6889         (tab_control_update): renamed from tab_control_set_property.
6890         (progress_gauge_update): set_property -> update.
6891         (layout_normalize): rewrite so that child instantiators are
6892         normalized also.
6893         (layout_update): new function. Create glyphs from the normalized
6894         children and cope with any other layout keywords. We do not
6895         instantiate children here that will be take care of by
6896         redisplay_output_layout.
6897         (layout_instantiate): call layout_update and not much else.
6898         (layout_post_instantiate): not sure whether this is needed
6899         anymore.
6900         (layout_query_geometry): query glyph geometry rather than
6901         image_instance geometry.
6902         (layout_layout): set offsets from pass in parameters. Use glyph
6903         geometry and layout functions rather than image instance ones.
6904         (native_layout_layout): ditto.
6905         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
6906         (image_instantiator_widget): set_property -> update.
6907         (image_instantiator_buttons): ditto.
6908         (image_instantiator_progress_guage): ditto.
6909         (image_instantiator_tab_control): ditto.
6910         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
6911         (image_instantiator_layout): add update method.
6912
6913         * glyphs-msw.c (bmp_normalize):
6914         (mswindows_resource_normalize): add dest_mask so that it can be
6915         proprogated by layout_normalize.
6916         (begin_defer_window_pos): make optional because it may not be the
6917         right thing to do and it introduces differences with X.
6918         (mswindows_unmap_subwindow): ditto.
6919         (mswindows_map_subwindow): ditto.
6920         (mswindows_redisplay_subwindow): renamed from
6921         mswindows_update_subwindow.
6922         (mswindows_redisplay_widget): ditto.
6923         (mswindows_button_redisplay): renamed from
6924         mswindows_button_update. Update is now what the instantiation
6925         function does for a changed instantiator.
6926         (mswindows_progress_gauge_instantiate): set the progress value
6927         here if appropriate.
6928         (mswindows_tab_control_redisplay): cope with re-ordering of the
6929         members of the tab widget by simply selecting the new top
6930         widget. This makes things appear ok if you click on a tab.
6931         (mswindows_combo_box_instantiate): image_instance_layout now takes
6932         position as well as size.
6933         (mswindows_progress_gauge_redisplay): renamed from
6934         mswindows_progress_gauge_update.
6935         (console_type_create_glyphs_mswindows): fix update -> redisplay.
6936         (image_instantiator_format_create_glyphs_mswindows): ditto.
6937
6938         * glyphs-eimage.c (jpeg_normalize):
6939         (gif_normalize):
6940         (png_normalize):
6941         (tiff_normalize): add dest_mask so that it can be proprogated by
6942         layout_normalize.
6943
6944         * elhash.c:
6945         (print_hash_table):
6946         (hash_table_weakness_validate):
6947         (decode_hash_table_weakness):
6948         (Fhash_table_weakness):
6949         (Fhash_table_type):
6950         (syms_of_elhash): use Ben's naming scheme for hashtable types..
6951
6952         * console.h (struct console_methods): move update_* to
6953         redisplay_*.
6954
6955 2000-07-20  Ben Wing  <ben@xemacs.org>
6956
6957         * *.[ch] (XSETOBJ): remove unused middle argument.
6958         lisp-disunion.h: correct wrap_object() to one argument.
6959
6960 2000-07-15  Ben Wing  <ben@xemacs.org>
6961
6962         * s/cygwin32.h:
6963         * s/cygwin32.h (CYGWIN_CONV_PATH):
6964         Add missing logb prototype for v1.1.
6965         Use post-b20 names and alias to pre-b20 names when pre-b20.
6966
6967         * s/windowsnt.h: [5].
6968
6969 2000-07-15  Ben Wing  <ben@xemacs.org>
6970
6971         * Makefile.in.in (x_objs):
6972         * Makefile.in.in (sheap_objs):
6973         * Makefile.in.in (objs):
6974         added win32.o, cosmetic cleanups.
6975
6976         * alloc.c (Fmake_byte_code):
6977         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
6978         etc. macros which declare their own args now.
6979
6980         * alloc.c (syms_of_alloc):
6981         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
6982
6983         * buffer.c:
6984         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
6985
6986         * buffer.c (Fget_file_buffer):
6987         Fixed GCPRO problem.
6988
6989         * buffer.c (get_truename_buffer):
6990         Fixed comment about GC checking.
6991
6992         * buffer.c (syms_of_buffer):
6993         Undeclared those dedicated frame funs.
6994         [2].
6995
6996         * buffer.h:
6997         Define convenience macros for internal/external conversions.
6998         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
6999         and Qenvironment_variable_encoding for cleaner code.
7000
7001         * bufslots.h:
7002         Remove dedicated-frame; in lisp.
7003
7004         * bytecode.c (funcall_compiled_function):
7005         [1].
7006
7007         * bytecode.c (syms_of_bytecode):
7008         [2].
7009
7010         * console-msw.c:
7011         * console-msw.c (mswindows_show_console): Rewrote.
7012
7013         * console-msw.c (Fmswindows_debugging_output): New.
7014         Sends to OutputDebugString (special MSWin debugger interface).
7015
7016         * console-msw.c (Fmswindows_message_box):
7017         Fixed stupid bugs so it works when called from kill-emacs.
7018
7019         * console-msw.c (syms_of_console_mswindows):
7020         Declare Fmswindows_debugging_output.
7021
7022         * console-msw.h:
7023         New MSWin prototypes.
7024
7025         * console-msw.h (struct mswindows_frame):
7026         New entry last-click-mods for improved button-modifier support.
7027
7028         * console-msw.h (FRAME_MSWINDOWS_POPUP):
7029         New struct entry `popup' with corresponding accessor.
7030
7031         * console-x.c:
7032         * console-x.c (split_up_display_spec):
7033         * console-x.c (get_display_arg_connection):
7034         * console-x.c (x_semi_canonicalize_console_connection):
7035         * console-x.c (x_canonicalize_device_connection):
7036         [[[6]]]: Change char to more specific type.
7037         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
7038
7039         * console-x.c (x_semi_canonicalize_console_connection):
7040         * console-x.c (x_canonicalize_device_connection):
7041         [[[9]]]: Fix up error signalling to use new structured error system.
7042
7043         * console-x.h:
7044         [[[4]]]: Define codesys aliases:
7045         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
7046         Qx_color_name_encoding, Qx_display_name_encoding.
7047
7048         * console.h (struct console_methods):
7049         New method make_dialog_box_internal supersedes older
7050         popup_dialog_box method.
7051
7052         * data.c:
7053         Define many new errors, part of new structured errors.
7054
7055         * data.c (init_errors_once_early):
7056         * data.c (syms_of_data):
7057         [2].
7058
7059         * device-msw.c (mswindows_init_device):
7060         [[[5]]]: Cleanup to support NT 3.51.
7061
7062         * device-msw.c (decode_devmode): Cleanup.
7063
7064         * device-msw.c (mswindows_handle_print_setup_dialog_box):
7065         * device-msw.c (mswindows_handle_print_dialog_box):
7066         * device-msw.c (mswindows_handle_page_setup_dialog_box):
7067         * device-msw.c (syms_of_device_mswindows):
7068         Delete the dialog box primitives recently introduced by Kirill and
7069         instead interface to general dialog box interface.
7070
7071         * device-x.c:
7072         * device-x.c (compute_x_app_name):
7073         * device-x.c (x_init_device):
7074         * device-x.c (Fx_valid_keysym_name_p):
7075         * device-x.c (Fx_set_font_path):
7076         [6].
7077         [7].
7078
7079         * device.h (wrap_device): New.
7080         First of its kind; meant to replace XSETDEVICE.
7081
7082         * dialog-msw.c: Many file-dialog symbols.
7083
7084         * dialog-msw.c (mswindows_register_popup_frame): New.
7085         * dialog-msw.c (mswindows_is_dialog_msg): New.
7086         For supporting kbd traversal in dialog boxes.
7087
7088         * dialog-msw.c (dialog_proc):
7089         Support hitting ESC in dialogs.
7090
7091         * dialog-msw.c (struct):
7092         Common dialog box errors.
7093
7094         * dialog-msw.c (handle_file_dialog_box): New.
7095         Add file dialog code.
7096
7097         * dialog-msw.c (handle_question_dialog_box):
7098         Redo existing code to support new question dialog syntax.
7099
7100         * dialog-msw.c (console_type_create_dialog_mswindows):
7101         We support new dialog console method.
7102
7103         * dialog-msw.c (syms_of_dialog_mswindows):
7104         * dialog-msw.c (vars_of_dialog_mswindows):
7105         New file dialog symbols, vars.
7106
7107         * dialog-x.c:
7108         * dialog-x.c (maybe_run_dbox_text_callback):
7109         * dialog-x.c (dbox_descriptor_to_widget_value):
7110         * dialog-x.c (x_make_dialog_box_internal):
7111         * dialog-x.c (console_type_create_dialog_x):
7112         Mule-ize entire file.
7113         Redo to support question dialog syntax.
7114         [6].
7115
7116         * dialog.c:
7117         * dialog.c (Fmake_dialog_box_internal):
7118         * dialog.c (syms_of_dialog):
7119         Kill old popup-dialog-box, replace with new primitive.
7120         Just call device method or signal error.
7121
7122         * eldap.c (Fldap_open):
7123         * eldap.c (Fldap_search_basic):
7124         * eldap.c (Fldap_add):
7125         * eldap.c (Fldap_modify):
7126         [1].
7127         [7].
7128
7129         * emacs.c:
7130         * emacs.c (make_arg_list_1):
7131         * emacs.c (make_arg_list):
7132         Mule-ize call to dll_init().
7133         [6].
7134         [8].
7135
7136         * emacs.c (make_argc_argv):
7137         * emacs.c (free_argc_argv):
7138         * emacs.c (init_cmdargs):
7139         * emacs.c (main_1):
7140         * emacs.c (Fkill_emacs):
7141         * emacs.c (Fdump_emacs):
7142         Update comments about what can be used in syms_* etc.
7143         Call init_win32() when necessary.
7144         Fix up MS Win dialog box in kill-buffer to actually work right.
7145         [7].
7146
7147         * eval.c:
7148         * eval.c (For):
7149         * eval.c (Fand):
7150         * eval.c (Fprogn):
7151         * eval.c (Fprog1):
7152         * eval.c (Fprog2):
7153         * eval.c (FletX):
7154         * eval.c (Flet):
7155         * eval.c (condition_case_3):
7156         * eval.c (Feval):
7157         * eval.c (function_argcount):
7158         * eval.c (funcall_lambda):
7159         [1].
7160
7161         * eval.c (type_error): New.
7162         * eval.c (maybe_type_error): New.
7163         * eval.c (continuable_type_error): New.
7164         * eval.c (maybe_continuable_type_error): New.
7165         * eval.c (type_error_with_frob): New.
7166         * eval.c (maybe_type_error_with_frob): New.
7167         * eval.c (continuable_type_error_with_frob): New.
7168         * eval.c (maybe_continuable_type_error_with_frob): New.
7169         New functions for use with structured errors.
7170
7171         * event-Xt.c:
7172         * event-Xt.c (x_event_to_emacs_event):
7173         Buttons are now modifiers too.
7174
7175         * event-Xt.c (emacs_Xt_current_event_timestamp):
7176         Implement new event method.
7177         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
7178
7179         * event-msw.c:
7180         * event-msw.c (ntpipe_shove_writer): [5].
7181         * event-msw.c (mswindows_enqueue_mouse_button_event):
7182         * event-msw.c (mswindows_drain_windows_queue):
7183         * event-msw.c (mswindows_wnd_proc): [7].
7184         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
7185         * event-msw.c (mswindows_modifier_state):
7186         Throughout: support new button modifiers.
7187
7188         * event-msw.c (emacs_mswindows_current_event_timestamp):
7189         Implement new event method.
7190         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
7191
7192         * event-stream.c:
7193         * event-stream.c (event_stream_current_event_timestamp): New.
7194         * event-stream.c (maybe_kbd_translate): New functionality.
7195         * event-stream.c (vars_of_event_stream):
7196         Document new kbd-translate-table functionality.
7197
7198         * event-stream.c (Fcurrent_event_timestamp): New.
7199         New primitive for use in fabricated events.
7200         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
7201
7202         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
7203
7204         * events.c:
7205         * events.c (Fmake_event):
7206         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
7207         [1].
7208         [9].
7209
7210         * events.c (format_event_object): fix gcc warnings.
7211
7212         * events.c (Fevent_timestamp): Document new primitives.
7213
7214         * events.c (TIMESTAMP_HALFSPACE): New.
7215
7216         * events.c (Fevent_timestamp_lessp): New.  New primitive for
7217         comparing timestamps correctly (half-space algorithm).
7218
7219         * events.c (Fevent_modifier_bits): Doc fix.
7220
7221         * events.c (Fevent_modifiers): Major doc addition.
7222         * events.c (event_x_y_pixel_internal): Typo fix.
7223         * events.c (syms_of_events): Declare new primitives.
7224
7225         * events.h:
7226         Update long comment for button modifiers, timestamps.
7227
7228         * events.h (struct event_stream):
7229         New current_event_timestamp method.
7230
7231         * extents.c:
7232         * extents.c (extent_in_region_p):
7233         * extents.c (decode_extent):
7234         * extents.c (Fset_extent_parent):
7235         * extents.c (decode_map_extents_flags):
7236         Fix gcc warnings.
7237         [9].
7238
7239         * extents.c (struct extent_at_arg):
7240         * extents.c (decode_extent_at_flag):
7241         * extents.c (extent_at_mapper):
7242         * extents.c (extent_at_bytind):
7243         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
7244         * extents.c (Fextents_at): New primitive. [9].
7245         * extents.c (symbol_to_glyph_layout): [9].
7246         Support new primitive `extents-at'.
7247
7248
7249         * extents.c (get_text_property_bytind):
7250         extent_at_bytind has another arg.
7251         [9].
7252
7253         * extents.c (syms_of_extents): New primitive.
7254
7255         * file-coding.c (Fmake_coding_system): [1].
7256         * file-coding.c (subsidiary_coding_system): fix gcc warning
7257         * file-coding.c (syms_of_file_coding): [2].
7258
7259         * fileio.c (Fexpand_file_name):
7260         * fileio.c (Fsysnetunam):
7261         * fileio.c (Ffile_exists_p):
7262         * fileio.c (Ffile_executable_p):
7263         * fileio.c (Fverify_visited_file_modtime):
7264         Clean up GCPROing.
7265
7266         * fileio.c (syms_of_fileio): [2].
7267
7268         * filelock.c (lock_file_1):
7269         * filelock.c (current_lock_owner):
7270         * filelock.c (lock_if_free):
7271         * filelock.c (lock_file):
7272         * filelock.c (unlock_file):
7273         Clean up GCPROing.
7274
7275         * fns.c (concat): Fix gcc warning.
7276
7277         * fns.c (Fmember):
7278         * fns.c (Fold_member):
7279         * fns.c (Fmemq):
7280         * fns.c (Fold_memq):
7281         * fns.c (memq_no_quit):
7282         * fns.c (Fassoc):
7283         * fns.c (Fold_assoc):
7284         * fns.c (Fassq):
7285         * fns.c (Fold_assq):
7286         * fns.c (assq_no_quit):
7287         * fns.c (Frassoc):
7288         * fns.c (Fold_rassoc):
7289         * fns.c (Frassq):
7290         * fns.c (Fold_rassq):
7291         * fns.c (rassq_no_quit):
7292         * fns.c (Fdelete):
7293         * fns.c (Fold_delete):
7294         * fns.c (Fdelq):
7295         * fns.c (Fold_delq):
7296         * fns.c (delq_no_quit):
7297         * fns.c (Fremassoc):
7298         * fns.c (Fremassq):
7299         * fns.c (remassq_no_quit):
7300         * fns.c (Fremrassoc):
7301         * fns.c (Fremrassq):
7302         * fns.c (remrassq_no_quit):
7303         * fns.c (Freverse):
7304         * fns.c (mapcar1):
7305         [1].
7306
7307         * frame-msw.c (mswindows_init_frame_1):
7308         * frame-msw.c (mswindows_delete_frame):
7309         Register popups with dialog code so keyboard traversing works.
7310
7311         * frame-tty.c (tty_raise_frame_no_select): [1].
7312
7313         * frame-x.c:
7314         * frame-x.c (x_set_frame_text_value):
7315         * frame-x.c (x_set_frame_properties):
7316         * frame-x.c (x_create_widgets):
7317         [7].
7318
7319         * frame.c:
7320         * frame.c (Fmouse_pixel_position): Minor doc fixes.
7321
7322         * frame.h (wrap_frame): New.
7323         Macro like wrap_device.
7324
7325         * general.c:
7326         * general.c (SYMBOL):
7327         * general.c (syms_of_general):
7328         Major reorg.  This is now just a wrapper and symbols themselves
7329         are listed in general-slots.h.
7330
7331         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
7332         * glyphs-msw.c (mswindows_resource_instantiate): [5].
7333
7334         * glyphs-msw.c (mswindows_native_layout_instantiate):
7335         Add DS_CONTROL so keyboard traversal will work.
7336
7337         * glyphs-widget.c:
7338         * glyphs-widget.c (syms_of_glyphs_widget):
7339         Move some symbols to general-slots.h.
7340
7341         * glyphs-x.c:
7342         * glyphs-x.c (xbm_instantiate_1):
7343         * glyphs-x.c (x_xbm_instantiate):
7344         * glyphs-x.c (x_xface_instantiate):
7345         * glyphs-x.c (autodetect_instantiate):
7346         * glyphs-x.c (cursor_font_instantiate):
7347         * glyphs-x.c (x_update_widget):
7348         * glyphs-x.c (x_widget_instantiate):
7349         * glyphs.c (bitmap_to_lisp_data):
7350         * glyphs.c (pixmap_to_lisp_data):
7351         [7].
7352
7353         * glyphs.c (syms_of_glyphs):
7354         [2].
7355
7356         * gui-x.c:
7357         * gui-x.c (print_widget_value):
7358         * gui-x.c (menu_separator_style_and_to_external):
7359         * gui-x.c (add_accel_and_to_external):
7360         * gui-x.c (button_item_to_widget_value):
7361         * gui-x.c (gui_items_to_widget_values_1):
7362         * gui-x.c (gui_items_to_widget_values):
7363         * gui-x.c (syms_of_gui_x):
7364         * gui-x.c (vars_of_gui_x):
7365         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
7366         [9].
7367
7368         * gui-x.h:
7369         Muleize, prototype changes matching gui-x.c.
7370
7371         * gui.c:
7372         * gui.c (separator_string_p):
7373         * gui.c (gui_item_add_keyval_pair):
7374         * gui.c (make_gui_item_from_keywords_internal):
7375         * gui.c (signal_too_long_error):
7376         * gui.c (parse_gui_item_tree_item):
7377         * gui.c (syms_of_gui):
7378         * gui.c (vars_of_gui):
7379         * gui.h:
7380         menu-no-selection-hook moved here (used by MSWin).
7381         Move some symbols to general-slots.h.
7382         [6].
7383         [9].
7384
7385         * insdel.c (get_buffer_pos_char):
7386         * insdel.c (get_buffer_range_char):
7387         Add GC comments.
7388
7389         * keymap.c (keymap_lookup_directly):
7390         * keymap.c (keymap_store):
7391         * keymap.c (ensure_meta_prefix_char_keymapp):
7392         * keymap.c (describe_map):
7393         * keymap.h:
7394         Support new button modifiers.
7395
7396         * lisp-disunion.h (wrap_object):
7397         * lisp-disunion.h (XSETOBJ):
7398         Rename make_obj to wrap_object.
7399
7400         * lisp-union.h:
7401         * lisp-union.h (make_int):
7402         * lisp-union.h (make_char):
7403         Support wrap_object.
7404
7405         * lisp.h:
7406         * lisp.h (LIST_LOOP):
7407         * lisp.h (EXTERNAL_LIST_LOOP):
7408         * lisp.h (LIST_LOOP_2):
7409         * lisp.h (EXTERNAL_LIST_LOOP_1):
7410         * lisp.h (EXTERNAL_LIST_LOOP_2):
7411         * lisp.h (EXTERNAL_LIST_LOOP_3):
7412         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
7413         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
7414         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
7415         * lisp.h (EXTERNAL_ALIST_LOOP_5):
7416         * lisp.h (EXTERNAL_ALIST_LOOP_6):
7417         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
7418         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
7419         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
7420         * lisp.h (struct Lisp_Symbol):
7421         * lisp.h (maybe_continuable_error_with_frob):
7422         Fix up section comments.
7423         Add new types for char to indicate usage.
7424         Delete symbols auto-generated from general-slots.h.
7425         Add prototypes for structured error functions.
7426         Add long comments describing looping macros and change interface
7427         so that lvalues are automatically declared.
7428         Add NO_DECLARE macro in case callers want to declare lvalues
7429         themselves.
7430
7431         * lread.c (read_syntax_error):
7432         * lread.c (continuable_read_syntax_error):
7433         * lread.c (read_structure):
7434         * lread.c (sequence_reader):
7435         * lread.c (read_list_conser):
7436         * lread.c (read_compiled_function):
7437         Rename syntax_error and continuable_syntax_error to avoid clash
7438         with same-named structured error functions.
7439
7440         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
7441         * menubar-msw.c (populate_menu_add_item):
7442         * menubar-msw.c (populate_or_checksum_helper):
7443         [5].
7444         [9].
7445
7446         * menubar-x.c:
7447         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
7448         Mule-ize whole file.
7449
7450         * menubar.c (Fnormalize_menu_item_name): Add optimization.
7451
7452         * mule-charset.c (Fmake_charset):
7453         * mule-wnnfns.c (Fwnn_set_param):
7454         [1].
7455
7456         * ntproc.c (create_child):
7457         * ntproc.c (Fwin32_set_current_locale):
7458         Add comments portending doom.
7459
7460         * objects-msw.c:
7461         * objects-msw.c (old_font_enum_callback_2):
7462         * objects-msw.c (font_enum_callback_1):
7463         * objects-msw.c (mswindows_enumerate_fonts):
7464         [5].
7465
7466         * objects-x.c:
7467         * objects-x.c (allocate_nearest_color):
7468         * objects-x.c (x_parse_nearest_color):
7469         * objects-x.c (x_initialize_color_instance):
7470         * objects-x.c (x_print_color_instance):
7471         * objects-x.c (x_finalize_color_instance):
7472         * objects-x.c (x_valid_color_name_p):
7473         * objects-x.c (x_initialize_font_instance):
7474         * objects-x.c (x_print_font_instance):
7475         * objects-x.c (valid_x_font_name_p):
7476         * objects-x.c (truename_via_FONT_prop):
7477         * objects-x.c (truename_via_random_props):
7478         * objects-x.c (truename_via_XListFonts):
7479         * objects-x.c (x_font_truename):
7480         * objects-x.c (x_font_instance_truename):
7481         * objects-x.c (x_font_instance_properties):
7482         * objects-x.c (x_list_fonts):
7483         * objects-x.c (x_find_charset_font):
7484         Mule-ize entire file.
7485         [7].
7486
7487         * objects-x.h:
7488         Mule-verify.
7489
7490         * print.c:
7491         * print.c (std_handle_out_external):
7492         * print.c (debug_print_no_newline):
7493         * print.c (syms_of_print):
7494         Output to all debugger kinds in debug-print.
7495         Fix console-output code under MSWin to actually work.
7496
7497         * process-nt.c (send_signal):
7498         * process-nt.c (nt_create_process):
7499         Use newer Unicode macros.
7500
7501         * process-unix.c (unix_create_process):
7502         * process-unix.c (unix_canonicalize_host_name):
7503         * process-unix.c (unix_open_network_stream):
7504         [7].
7505
7506         * scrollbar-x.c:
7507         Mule-verify.
7508
7509         * search.c (syms_of_search):
7510         [2].
7511
7512         * select-msw.c (mswindows_destroy_selection):
7513         Use LIST_LOOP_2.
7514
7515         * select-x.c (symbol_to_x_atom):
7516         [7].
7517
7518         * select.c (syms_of_select):
7519         [2].
7520
7521         * sound.c (Fplay_sound_file):
7522         [7].
7523
7524         * specifier.c:
7525         * specifier.c (decode_specifier_type):
7526         * specifier.c (Fvalid_specifier_locale_type_p):
7527         * specifier.c (check_valid_locale_or_locale_type):
7528         * specifier.c (decode_locale):
7529         * specifier.c (decode_locale_type):
7530         * specifier.c (decode_locale_list):
7531         * specifier.c (check_valid_domain):
7532         * specifier.c (decode_specifier_tag_set):
7533         * specifier.c (Fcanonicalize_tag_set):
7534         * specifier.c (Fdefine_specifier_tag):
7535         * specifier.c (Fspecifier_tag_predicate):
7536         * specifier.c (check_valid_inst_list):
7537         * specifier.c (check_valid_spec_list):
7538         * specifier.c (decode_how_to_add_specification):
7539         * specifier.c (check_modifiable_specifier):
7540         * specifier.c (specifier_add_spec):
7541         * specifier.c (boolean_validate):
7542         * specifier.c (display_table_validate):
7543         [9].
7544
7545         * specifier.c (syms_of_specifier):
7546         Move some symbols to general-slots.h.
7547         [2].
7548
7549         * symbols.c:
7550         * symbols.c (Fmapatoms):
7551         * symbols.c (Fapropos_internal):
7552         Add GCPROs.
7553
7554         * symbols.c (set_default_buffer_slot_variable):
7555         * symbols.c (set_default_console_slot_variable):
7556         [1].
7557
7558         * symbols.c (defsymbol_massage_name_1):
7559         * symbols.c (defkeyword_massage_name):
7560         * symbols.c (deferror_1):
7561         * symbols.c (deferror):
7562         * symbols.c (deferror_massage_name_and_message):
7563         * symeval.h:
7564         * symeval.h (DEFSYMBOL):
7565         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
7566
7567         * symbols.c (syms_of_symbols):
7568         [2].
7569
7570         * symsinit.h:
7571         * symsinit.h (init_win32): New.
7572         Also new is syms_of_dialog_mswindows.
7573
7574         * syswindows.h:
7575         Add new Unicode macros, missing Cygwin wide-char functions,
7576         convenience conversion macros for Qmswindows_tstr, macros for
7577         encapsulating required MSWin <-> Cygwin filename conversions,
7578         prototype for dynamically-extracted (not in NT 3.51) functions.
7579
7580         * toolbar-x.c:
7581         Mule-verify.
7582
7583         * tooltalk.c (Fadd_tooltalk_message_arg):
7584         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
7585         * tooltalk.c (Fadd_tooltalk_pattern_arg):
7586         [7].
7587
7588         * tooltalk.c (syms_of_tooltalk):
7589         [2].
7590
7591         * unexnt.c:
7592         * unexnt.c (unexec):
7593         Fix up headers, declaration of unexec() to be more standard.
7594
7595 2000-07-20  Martin Buchholz  <martin@xemacs.org>
7596
7597         * offix.h: Revert change to guard macros - they're used in offix.c!
7598
7599 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7600
7601         * lisp.h: Defsubred Fdelete.
7602
7603         * console-msw.h:  (msprinter_default_printer): Added.
7604
7605         * console-msw.c (msprinter_canonicalize_console_connection):
7606         (msprinter_canonicalize_device_connection): Added.
7607
7608         * device-msw.c (msprinter_default_printer):
7609         (Fmswingows_get_default_printer):
7610         (signal_enum_priner_error):
7611         (Fmswingows_printer_list): Added.
7612
7613 2000-07-19  Martin Buchholz <martin@xemacs.org>
7614
7615         * XEmacs 21.2.35 is released.
7616
7617 2000-07-19  Martin Buchholz  <martin@xemacs.org>
7618
7619         * select-x.c (x_handle_selection_request):
7620         Text selected in xemacs and pasted into xterm failed to appear.
7621         Spelling fixes and cosmetic changes.
7622
7623 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7624
7625         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
7626         XEmacs frame (fix for doubling chars in dialog boxes).
7627
7628 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
7629
7630         * select.c (select_convert_in, select_convert_out):
7631         Don't call intern() every time.
7632
7633         * select.c (Qselect_convert_in, Qselect_convert_out): New.
7634         * select.c (vars_of_select): Initialise them.
7635
7636 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
7637
7638         * select.c (selection-coercible-types): New.
7639
7640         * select.c (own-selection-internal):
7641         * select.c (get-selection-internal):
7642         MULE bug fix - these should default to COMPOUND_TEXT and not
7643         STRING for MULE. I think.
7644
7645         * select.c (select_convert_out): Use selection-coercible-types
7646         to find types that we can attempt to perform coercions on.
7647
7648 2000-07-18  Martin Buchholz  <martin@xemacs.org>
7649
7650         * mule-wnnfns.c:
7651         * mule-canna.c:
7652         Add coding: cookie to identify encoding.
7653
7654         * mule-canna.c (CANNA_mode_keys): make static.
7655         Use proper prototypes, even for functions of no arguments.
7656         Remove external prototype for Fding().
7657
7658         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
7659
7660         * select.c (syms_of_select): Add missing DEFSUBR.
7661
7662 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
7663
7664         * select.c (get_selection_internal, own_selection_internal):
7665         Make the type default to STRING, rather than placing a nil type
7666         into Vselection_alist.
7667
7668 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
7669
7670         * gpmevent.c (tty_selection_exists_p):
7671         * gpmevent.c (tty_own_selection):
7672         Updated parameter lists.
7673
7674 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
7675
7676         * select.h (selection-alist): Removed declaration.
7677
7678         * select.h (get_local_selection):
7679         * select.c (get_local_selection):
7680         Made static.
7681
7682         * select.h (convert_selection): Removed declaration.
7683         * select.c (convert_selection): Removed.
7684         This function belongs in Lisp.
7685
7686         * select.h (select_convert_in): Declare.
7687         * select.h (select_convert_out): Declare.
7688         * select.c (select_convert_in): New.
7689         * select.c (select_convert_out): New.
7690         New conversion functions for other files to call.
7691
7692         * select.h (select_notify_buffer_kill): Declare.
7693         * select.c (select_notify_buffer_kill): New.
7694         New functions that get called from kill-buffer.
7695
7696         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
7697         X-specific lisp code.
7698
7699         * select.h: Declare some of the lisp-visible functions for
7700         external use.
7701
7702         * select.c (clean_local_selection_data): Removed. This was
7703         a disgusting function, and previously should have been in
7704         select-x.c in any case. The functionality is now provided
7705         in select-convert-from-integer (select.el).
7706
7707         * select.c (available-selection-types): Fixed stupidity where
7708         INTEGER and ATOM got added twice. Also add STRING when we see an
7709         extent.
7710
7711         * select.c (get-selection-internal): Removed symbol stripping. No
7712         longer causes conversion when data comes from the internal cache.
7713
7714         * select.c (syms_of_select): Added new functions.
7715
7716         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
7717         error checking - previously this called abort!
7718
7719         * select-x.c (x_own_selection): Changed comment.
7720
7721         * select-x.c (x_handle_selection_request): Use select_convert_out.
7722         Don't mess with selection-alist; it's an internal variable of select.c.
7723
7724         * select-x.c (x_get_foreign_selection): Use select_convert_in.
7725
7726         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
7727         rather than messing with selection-alist.
7728
7729         * select-msw.c (mswindows_get_foreign_selection):
7730         Use TO_INTERNAL_FORMAT rather than hacking.
7731
7732 2000-07-14  Martin Buchholz  <martin@xemacs.org>
7733
7734         * process-unix.c (unix_open_multicast_group):
7735         (unix_open_multicast_group): Remove useless casts.
7736
7737 2000-07-13  Martin Buchholz  <martin@xemacs.org>
7738
7739         * sound.c (Fplay_sound): Fix `unused variable' warning.
7740
7741         * emacs.c (main): Use correct type for _environ on SCO5.
7742
7743 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
7744
7745         * console.h (own_selection_method):
7746         * console.h (selection_exists_p_method):
7747         * console.h (available_selection_types_method): New.
7748         * console.h (register_selection_data_type_method): New.
7749         * console.h (selection_data_type_name): New.
7750
7751         * console-msw.h (mswindows_destroy_selection): Declare it.  New
7752         function & alist to track GlobalAlloc()'d handles that need
7753         releasing when the clipboard data gets replaced or emptied.
7754
7755         * event-msw.c (mswindows_wnd_proc): Call it.
7756
7757         * lisp.h, general.c (Qappend): New symbol representing a
7758         `how-to-add' mode.
7759
7760         * select.c (own-selection-internal):
7761         * select.c (selection-exists-p):
7762         * select.c (available-selection-types): New.
7763         * select.c (register-selection-data-type): New.
7764         * select.c (selection-data-type-name): New.  New functions to deal
7765         with device-specific selection data formats.
7766         * select.c (selection-converter-out-alist): Renamed.
7767         * select.c (selection-converter-in-alist): New.
7768         * select.c (selection-appender-alist): New.  Added new alists.
7769         * select.c (syms_of_select, vars_of_select): Added new symbols &
7770         variables.
7771         * select.c (get_local_selection): Split.
7772         * select.c: Removed spurious type checking - selections may now be
7773         of any type, not just strings.
7774         * select.c (own-selection-internal):
7775
7776         * select.h, select.c (convert_selection): New. Created
7777         convert_selection() function based on get_local_selection().
7778         * select.h, select.c (QCF_*): New symbols representing mswindows
7779         clipboard formats.
7780         * select.h, select.c (Qreplace_all, Qreplace_existing): New
7781         symbols representing `how-to-add' modes.
7782
7783         * select-msw.c (x_sym_p): New.
7784         * select-msw.c (symbol_to_ms_cf): New.
7785         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
7786         symbols & clipboard formats. Can also handle string names.
7787         * select-msw.c (mswindows_own_selection):
7788         * select-msw.c (mswindows_selection_exists_p):
7789         Added `data-type' parameter. Use it.
7790         * select-msw.c (mswindows_available_selection_types): New.
7791         * select-msw.c (mswindows_register_selection_data_type): New.
7792         * select-msw.c (mswindows_selection_data_type_name): New.
7793         * select-msw.c (mswindows_own_selection):
7794         * select-msw.c (mswindows_get_foreign_selection):
7795         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
7796         * select-msw.c (console_create_select_mswindows): Added new methods.
7797         * select-msw.c (mswindows_destroy_selection): New.
7798         * select-msw.c (Vhandle_alist): New list.
7799         * select-msw.c (mswindows_own_selection):
7800
7801         * select-x.c (x_own_selection):
7802         * select-x.c (x_selection_exists_p):
7803         * select-x.c: Added some comments about maybe using new
7804         functionality.
7805         * select-x.c (x_own_selection):
7806
7807         * specifier.c: Remove definition of Qappend (now in general.c)
7808         * specifier.c (syms_of_specifier): Remove Qappend.
7809
7810 2000-07-12  Martin Buchholz  <martin@xemacs.org>
7811
7812         * config.h.in: Add socklen_t.
7813
7814         * s/decosf4-0.h: No special compiler flags needed or desired.
7815         In particular, undefine _BSD for DEC OSF 4.0.
7816
7817 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7818
7819         * redisplay-msw.c (msprinter_frame_output_end): Added.
7820         (console_type_create_redisplay_mswindows): Referred the above.
7821
7822         * frame.c (setup_frame_without_minibuffer): Do not create a
7823         default minibuffer frame on a printer device.
7824
7825         * frame-msw.c (apply_dc_geometry): Added.
7826         (msprinter_start_page):
7827         (msprinter_init_frame_3):
7828         (msprinter_eject_page): Use it.
7829
7830         * console-msw.h (struct msprinter_frame): Added pix_left and top,
7831         and removed residual duplex and orientation properties.
7832
7833 2000-07-11  Martin Buchholz  <martin@xemacs.org>
7834
7835         * eval.c (function_argcount): Work around a DEC CC compiler bug.
7836
7837         * unexalpha.c: Remove system prototypes from C sources!
7838
7839 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
7840
7841         * eval.c: Remove references to M-x edit-options in DEFUNs for
7842         `defvar' and `defconst'.
7843
7844 2000-07-09  Martin Buchholz  <martin@xemacs.org>
7845
7846         * config.h.in: Remove SMART_INCLUDE hackery.
7847
7848         PostgreSQL hacking:
7849         * config.h.in: Don't use SMART_INCLUDE.
7850
7851         * postgresql.h: Include libpq-fe.h here.  Fix typo.
7852         * inline.c: Simply #include "postgresql.h"
7853         * postgresql.c:
7854         - Don't use SMART_INCLUDE
7855         - Use simply "const".
7856         - Use standard doc string conventions.
7857         - Use correct type for result of PQstatus.
7858
7859 2000-07-09  Martin Buchholz  <martin@xemacs.org>
7860
7861         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
7862
7863         C++ compilation changes.
7864         * config.h.in (EXTERN_C): Define.
7865         * config.h.in (not): This is also a C++ keyword.
7866         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
7867         * cm.c: Use EXTERN_C.
7868         * redisplay-tty.c: Use EXTERN_C.
7869         * sysdep.c: Use EXTERN_C.  Remove Gould support.
7870
7871 2000-07-09  Martin Buchholz  <martin@xemacs.org>
7872
7873         * general.c: Remove duplicate definition for Qfunction.
7874
7875 2000-07-08  Ben Wing  <ben@xemacs.org>
7876
7877         * device-msw.c (msprinter_init_device):
7878         * device-msw.c (sync_printer_with_devmode):
7879         * device-msw.c (handle_devmode_changes):
7880         * device-msw.c (print_dialog_worker):
7881         * device-msw.c (Fmsprinter_apply_settings):
7882         * device-msw.c (hash_devmode):
7883         * device-msw.c (Fmsprinter_settings_despecialize):
7884         use Qmswindows_tstr, not Qctext.
7885
7886         * vm-limit.c (check_memory_limits):
7887         avoid infinite loop printing warning messages.
7888
7889 2000-07-05  Craig Lanning  <lanning@scra.org>
7890
7891         * Makefile.in.in: Add support for including the Windows resources
7892         when building with the cygwin and mingw targets.
7893
7894         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
7895         not set or not correct.
7896         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
7897         (init_initial_directory): Don't try to use $PWD on the
7898         WIN32_NATIVE target.
7899
7900         * s\cygwin32.h:
7901         [[Add -mwindows to eliminate console window.]] not required --ben
7902         (HAVE_NATIVE_SOUND): removed; now handled by configure.
7903         (MAIL_USE_POP): removed; now handled by configure.
7904
7905         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
7906         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
7907         (HAVE_NATIVE_SOUND): removed; now handled by configure.
7908         (MAIL_USE_POP): removed; now handled by configure.
7909         (ENCAPSULATE_STAT): from Dan Holmsand, added.
7910         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
7911         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
7912         constant string.
7913         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
7914         up from <winsock.h> via systime.h.
7915         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
7916         (getpagesize): from Dan Holmsand, added.
7917         Added #endif which was left dangling by Ben's mega patch; added
7918         comment to help prevent this in the future.
7919
7920         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
7921
7922 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7923
7924         * console-msw.h (struct mswindows_device): Removed unnecessary
7925         cached device geometry values.
7926         Added update_tick and an accessor macro.
7927         (Lisp_Devmode): Added lrecord declaration.
7928         (struct msprinter_device): Contain devmode as a Lisp object.
7929         Added mswindows_get_selected_frame_hwnd();
7930
7931         * console.h (struct console_methods): Indentation nitpicking.
7932
7933         * device-msw.c (mswindows_init_device): Do not initialize geometry
7934         cache. Initialize update tick.
7935         (mswindows_device_system_metrics): Ask the device for its geometry.
7936         (global_free_2_maybe):
7937         (devmode_to_hglobal):
7938         (handle_printer_changes):
7939         (ensure_not_printing):
7940         (print_dialog_worker):
7941         (Fmsprinter_print_setup_dialog):
7942         (Fmsprinter_print_dialog):
7943         (plist_get_margin):
7944         (plist_set_margin):
7945         (Fmsprinter_page_setup_dialog): Added functions.
7946         (sync_printer_with_devmode):
7947         (handle_devmode_changes):
7948         (Fmsprinter_get_settings):
7949         (Fmsprinter_select_settings):
7950         (Fmsprinter_apply_settings):
7951         (allocate_devmode):
7952         (Fmsprinter_settings_copy):
7953         (Fmsprinter_settings_despecialize):
7954         (print_devmode):
7955         (finalize_devmode):
7956         (equal_devmode):
7957         (hash_devmode): Added functions
7958         (syms_of_device_mswindows): Init devmode lrecord class.
7959
7960         * device.h: Added an exfun for find-device.
7961
7962         * event-msw.c (mswindows_wnd_proc): Do not update the cached
7963         geometry; although, recreate the device compatible DC.
7964
7965         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
7966         (msprinter_init_frame_3):
7967         (msprinter_frame_property):
7968         (msprinter_internal_frame_property_p):
7969         (msprinter_frame_properties):
7970         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
7971         print job properties (will move to device settings).
7972
7973         * lisp.h: Added symbols.
7974
7975         * general.c (syms_of_general): Declared them.
7976
7977         * hash.c (string_hash): Added.
7978
7979         * lrecord.h (lrecord_type): Added devmode lrecord type.
7980
7981 2000-07-02  Mike Sperber <mike@xemacs.org>
7982
7983         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
7984         FreeBSD 4.0.
7985
7986 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
7987
7988         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
7989         integer.
7990
7991 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
7992
7993         * data.c (Fstring_to_number): Don't recognize floating point if
7994         base is not 10.
7995
7996 2000-06-22  Martin Buchholz  <martin@xemacs.org>
7997
7998         * glyphs-widget.c (tab_control_query_geometry):
7999         (widget_query_geometry):
8000         (button_query_geometry):
8001         * glyphs.c (text_query_geometry):
8002         Enforce type correctness.
8003
8004 2000-06-18  Martin Buchholz  <martin@xemacs.org>
8005
8006         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
8007         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
8008
8009 2000-06-17  Martin Buchholz  <martin@xemacs.org>
8010
8011         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
8012         conflicts with gcc's fixincluded version of FOO.h.
8013
8014         * glyphs.h (image_instance_geometry): Remove trailing `,'
8015
8016 2000-06-08  Mike Alexander  <mta@arbortext.com>
8017
8018         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
8019         (shove_thread): Don't write the same output twice
8020         (make_ntpipe_output_stream): Increase priority of shove thread
8021         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
8022         chance to run
8023         (ntpipe_shove_closer): Don't delete the pipe until we're done with
8024         it.
8025
8026 2000-06-12  Ben Wing  <ben@xemacs.org>
8027
8028         * s\mingw32.h (sigset):
8029         * s\windowsnt.h (sigset):
8030         rename msw_ to mswindows_ for consistency with general convention.
8031
8032 2000-06-12  Ben Wing  <ben@xemacs.org>
8033
8034         * console-msw.c:
8035         * console-msw.c (mswindows_get_console_hwnd):
8036         * console-msw.c (mswindows_ensure_console_allocated):
8037         * console-msw.c (mswindows_hide_console):
8038         * console-msw.c (mswindows_show_console):
8039         * console-msw.c (mswindows_ensure_console_buffered):
8040         * console-msw.c (mswindows_output_console_string):
8041         * console-msw.c (mswindows_windows9x_p):
8042         * console-msw.h:
8043         * device-msw.c (mswindows_get_workspace_coords):
8044         * device-msw.c (mswindows_device_system_metrics):
8045         * dialog-msw.c (mswindows_popup_dialog_box):
8046         * event-msw.c (mswindows_wnd_proc):
8047         * frame-msw.c (mswindows_size_frame_internal):
8048         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
8049         * menubar-msw.c (displayable_menu_item):
8050         * menubar-msw.c (mswindows_char_is_accelerator):
8051         * nt.c:
8052         * nt.c (mswindows_sigset):
8053         * nt.c (mswindows_sigrelse):
8054         * nt.c (mswindows_sigpause):
8055         * nt.c (mswindows_raise):
8056         * nt.c (timer_proc):
8057         * ntproc.c:
8058         * ntproc.c (find_child_console):
8059         * ntproc.c (sys_kill):
8060         * print.c:
8061         * print.c (std_handle_out_external):
8062         * process-nt.c (find_child_console):
8063         * process-nt.c (send_signal_the_95_way):
8064         * process-nt.c (ensure_console_window_exists):
8065         * process-nt.c (nt_create_process):
8066         * syssignal.h:
8067         rename msw_ to mswindows_ for consistency with general convention.
8068
8069         * emacs.c:
8070         * dumper.c:
8071         include nt.h, not syswindows.h.
8072
8073         * nt.c (mswindows_fstat):
8074         * nt.c (mswindows_stat):
8075         prefix mswindows_ instead of attempting to directly override the
8076         library functions.  fix declarations.
8077
8078         * nt.h:
8079         include syswindows.h.  move some sysdep.h stuff here.
8080
8081         * ntheap.h:
8082         include syswindows.h, not <windows.h>.
8083
8084         * ntplay.c:
8085         clean up headers.
8086
8087         * sysdep.c:
8088         clean up headers.
8089
8090         * sysdep.c (sys_fstat):
8091         * sysdep.c (sys_stat):
8092         call mswindows versions when appropriate.
8093
8094         * sysdep.h:
8095         move mswin decls to nt.h.
8096
8097         * syswindows.h:
8098         add long comment describing appropriate use of the various windows
8099         headers.
8100
8101 2000-06-11  Ben Wing  <ben@xemacs.org>
8102
8103         * device-x.c: Correct doc string for sixth arg of x-get-resource.
8104
8105 2000-06-10  Ben Wing  <ben@xemacs.org>
8106
8107         * Makefile.in.in (release):
8108         Correction to make sure xemacs.exe always dumped when correct.
8109
8110         * alloca.c:
8111         * balloon_help.c:
8112         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
8113
8114         * buffer.c (set_buffer_internal):
8115         [[[[2]]]]: Remove HAVE_FEP code.
8116
8117         * buffer.c (init_initial_directory):
8118         [3].
8119
8120         * bytecode.c:
8121         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
8122         individual files.
8123
8124         * callproc.c:
8125         * callproc.c (call_process_cleanup):
8126         * callproc.c (Fold_call_process_internal):
8127         * callproc.c (child_setup):
8128         * callproc.c (getenv_internal):
8129         * callproc.c (init_callproc):
8130         * callproc.c (vars_of_callproc):
8131         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
8132         __CYGWIN32__ -> CYGWIN.
8133         DOS_NT -> WIN32_NATIVE.
8134         Remove MSDOS support/references, converting to WIN32_NATIVE
8135           where correct.
8136         __MINGW32__ -> MINGW.
8137         Fix windows.h includes.
8138         Remove bogus HAVE_NTGUI.
8139
8140         * config.h.in:
8141         [2].
8142
8143         * console-msw.c:
8144         mswindows_message_outputted added for use in allowing startup
8145         errors on the console to be seen.
8146
8147         * console-msw.c (msw_ensure_console_allocated):
8148         * console-msw.c (msw_output_console_string):
8149         * console-msw.c (DHEADER):
8150         * console-msw.c (DOPAQUE_DATA):
8151         * console-msw.c (DEVENT):
8152         * console-msw.c (DCONS):
8153         * console-msw.c (DCONSCDR):
8154         * console-msw.c (DSTRING):
8155         * console-msw.c (DVECTOR):
8156         * console-msw.c (DSYMBOL):
8157         * console-msw.c (DSYMNAME):
8158         Fix warnings.
8159
8160         * console-stream.c (stream_init_console):
8161         Fix text/binary problems.
8162
8163         * device-msw.c:
8164         * device-msw.c (mswindows_finish_init_device):
8165         * device-msw.c (mswindows_delete_device):
8166         [1].
8167
8168         * device.c (handle_asynch_device_change):
8169         [3].
8170
8171         * dgif_lib.c:
8172         * dgif_lib.c (DGifOpenFileName):
8173         * dgif_lib.c (DGifOpenFileHandle):
8174         * dgif_lib.c (DGifGetLine):
8175         * dgif_lib.c (DGifGetPixel):
8176         Added config.h/lisp.h, fix up includes.
8177         [1].
8178
8179         * dired-msw.c:
8180         [4].
8181
8182         * dired.c:
8183         * dired.c (file_name_completion):
8184         * dired.c (Ffile_attributes):
8185         * dired.c (syms_of_dired):
8186         [1].
8187
8188         * dumper.c:
8189         * dumper.c (pdump_file_unmap):
8190         * dumper.c (pdump_load):
8191         [1].
8192
8193         * editfns.c:
8194         * editfns.c (Ftemp_directory):
8195         * editfns.c (user_login_name):
8196         * editfns.c (Fuser_real_login_name):
8197         * editfns.c (get_home_directory):
8198         [1].
8199
8200         * elhash.c (finish_marking_weak_hash_tables):
8201         [[[[5]]]]: Fix GCC warnings.
8202
8203         * emacs.c:
8204         * emacs.c (mswindows_handle_hardware_exceptions):
8205         * emacs.c (make_arg_list_1):
8206         * emacs.c (main_1):
8207         * emacs.c (Fkill_emacs):
8208         * emacs.c (Fdump_emacs):
8209         [1].
8210         Fix problems with nested crashes, add long comment.
8211
8212         * event-Xt.c (init_event_Xt_late):
8213         [1].
8214
8215         * event-msw.c:
8216         * event-msw.c (mswindows_dde_callback):
8217         * event-msw.c (mswindows_handle_sticky_modifiers):
8218         * event-msw.c (mswindows_wnd_proc):
8219         [1].
8220         [5].
8221
8222         * events.c (character_to_event):
8223         [1].
8224
8225         * fileio.c:
8226         * fileio.c (Ffile_name_directory):
8227         * fileio.c (Ffile_name_nondirectory):
8228         * fileio.c (directory_file_name):
8229         * fileio.c (Fexpand_file_name):
8230         * fileio.c (Fsubstitute_in_file_name):
8231         * fileio.c (Ffile_name_absolute_p):
8232         * fileio.c (check_executable):
8233         * fileio.c (Ffile_readable_p):
8234         * fileio.c (Ffile_accessible_directory_p):
8235         * fileio.c (Ffile_modes):
8236         * fileio.c (Funix_sync):
8237         * fileio.c (vars_of_fileio):
8238         [1]. [4].
8239
8240         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
8241
8242         Expand getdefdir defn.
8243         Fix bogus rename() comment.
8244
8245         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
8246         to use standard XEmacs include files, e.g. sysfile.h, rather
8247         than system-specific includes.
8248
8249         * fns.c:
8250         * fns.c (Fsubseq):
8251         [5]. [6].
8252
8253         * frame.c (vars_of_frame):
8254         [1].
8255
8256         * getloadavg.c:
8257         * getloadavg.c (getloadavg):
8258         [1]. [6].
8259         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
8260         (We don't use it elsewhere in the code; just add a comment.)
8261
8262         * gif_io.c:
8263         [6].
8264         Add config.h.
8265
8266         * glyphs-msw.c:
8267         * glyphs-msw.c (mswindows_resource_instantiate):
8268         [1].
8269
8270         * glyphs-x.c (x_native_layout_instantiate):
8271         [5].
8272
8273         * gui-msw.c (Fmswindows_shell_execute):
8274         [1].
8275
8276         * insdel.c:
8277         [4].
8278
8279         * lisp.h:
8280         [4]. [5].
8281
8282         * lread.c (locate_file_in_directory_mapper):
8283         [1].
8284
8285         * lstream.c:
8286         [4].
8287
8288         * mem-limits.h:
8289         * mem-limits.h (get_lim_data):
8290         [1].
8291
8292         * menubar-msw.c:
8293         [4].
8294
8295         * ndir.h:
8296         [1].
8297
8298         * nt.c:
8299         * nt.c (getwd):
8300         * nt.c (closedir):
8301         * nt.c (rva_to_section):
8302         * nt.c (mswindows_executable_type):
8303         [1]. [6].
8304         Fix closedir() defn.
8305
8306         * nt.h:
8307         [[[[8]]]]: *_OK defs moved to sysfile.h.
8308
8309         * ntproc.c:
8310         [6]. [7].
8311
8312         * objects-x.c:
8313         [4].
8314
8315         * print.c:
8316         * print.c (std_handle_out_external):
8317         [1]. [4].
8318
8319         * process-nt.c:
8320         * process-nt.c (nt_create_process):
8321         [6].
8322         try to fix process quoting somewhat.
8323
8324         * process-unix.c (unix_create_process):
8325         [1].
8326
8327         * process.c:
8328         * process.c (vars_of_process):
8329         Add Vnull_device.
8330
8331         * process.h:
8332         [1].
8333
8334         * realpath.c:
8335         * realpath.c (xrealpath):
8336         [1].
8337
8338         * redisplay-tty.c (init_tty_for_redisplay):
8339         [3].
8340
8341         * redisplay.c:
8342         [4]. [6].
8343
8344         * scrollbar-msw.c:
8345         [4].
8346
8347         * sheap.c:
8348         * sheap.c (more_static_core):
8349         * sheap.c (report_sheap_usage):
8350         [5]. [6].
8351
8352         * signal.c:
8353         * signal.c (alarm_signal):
8354         [1]. [6].
8355
8356         * sound.c:
8357         [6].
8358
8359         * strftime.c:
8360         * strftime.c (zone_name):
8361         [1]. [5].
8362
8363         * symsinit.h (init_sunpro):
8364         [1].
8365
8366         * syscommctrl.h:
8367         commctrl.h not in Cygwin b20.1.
8368
8369         * sysdep.c:
8370         * sysdep.c (endif):
8371         * sysdep.c (sys_subshell):
8372         * sysdep.c (init_baud_rate):
8373         * sysdep.c (emacs_get_tty):
8374         * sysdep.c (emacs_set_tty):
8375         * sysdep.c (tty_init_sys_modes_on_device):
8376         * sysdep.c (init_system_name):
8377         * sysdep.c (sys_open):
8378         * sysdep.c (interruptible_open):
8379         * sysdep.c (sys_fopen):
8380         * sysdep.c (sys_mkdir):
8381         * sysdep.c (sys_rename):
8382         * sysdep.c (get_process_times_1):
8383         [1]. [6].
8384
8385         * sysdep.h:
8386         [1].
8387
8388         * sysdir.h:
8389         * sysdir.h (DIRENTRY_NONEMPTY):
8390         [1]. [6].
8391
8392         * sysdll.c (dll_init):
8393         * sysdll.h:
8394         [1].
8395
8396         * sysfile.h:
8397         [1]. [6]. [8].
8398         added text/binary defs.
8399
8400         * sysfloat.h:
8401         [1].
8402
8403         * sysproc.h:
8404         * sysproc.h (EDESTADDRREQ):
8405         * sysproc.h (poll_fds_for_input):
8406         [1]. [6].
8407
8408         * syspwd.h:
8409         [6].
8410
8411         * syssignal.h:
8412         [1].
8413
8414         * systime.h:
8415         [1]. [6].
8416
8417         * systty.h:
8418         [1].
8419
8420         * syswindows.h:
8421         [1].
8422         Always define WIN32_LEAN_AND_MEAN.
8423
8424         * unexcw.c (unexec):
8425         [5].
8426
8427         * unexec.c:
8428         * unexec.c (copy_text_and_data):
8429         * unexec.c (adjust_lnnoptrs):
8430         [1].
8431
8432         * unexnt.c:
8433         * unexnt.c (_start):
8434         [1].
8435
8436 2000-06-07  Ben Wing  <ben@xemacs.org>
8437
8438         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
8439         was used only as a model.  We've long since extracted any useful
8440         logic or code out of this. (I just did an exhaustive search.)
8441
8442         * s\msdos.h: Removed.
8443
8444         * s\windows95.h: Removed.
8445
8446 2000-06-10  Ben Wing  <ben@xemacs.org>
8447
8448         * s\cygwin32.h:
8449         [1]. [5].
8450         Don't use extern with fun defs.
8451
8452         * s\mingw32.h:
8453         [1]. [7].
8454         Remove nt\inc include.
8455         Remove getdisk, getdefdir. (The former is unused, the latter
8456         expanded in fileio.h.)
8457
8458         * s\windowsnt.h:
8459         * s\windowsnt.h (WIN32_NATIVE):
8460         * s\windowsnt.h (HAVE_STRCASECMP):
8461         [1]. [7].
8462         Add long comment about preprocessor changes.
8463         Remove getdisk, getdefdir. (The former is unused, the latter
8464         expanded in fileio.h.)
8465
8466 2000-06-10  Ben Wing  <ben@xemacs.org>
8467
8468         * m\arm.h:
8469         * m\delta.h:
8470         * m\intel386.h:
8471         * m\sequent.h:
8472         * m\template.h:
8473         * m\windowsnt.h:
8474         [1].
8475         Remove bogus/unused NO_SOCK_SIGIO.
8476
8477 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
8478
8479         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
8480         not an Emchar.
8481
8482 2000-06-04  Mike Sperber <mike@xemacs.org>
8483
8484         * casetab.c (set_case_table): For `set-standard-case-table',
8485         actually deposit the new case tables where the rest of XEmacs can
8486         see them.
8487
8488 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
8489
8490         * data.c (Faset): Don't cast XCHAR() to unsigned char.
8491
8492 2000-06-05  Ben Wing  <ben@xemacs.org>
8493
8494         * callproc.c (child_setup): Don't do close_load_descs() under
8495         MS Windows.  Put in a comment explaining why.
8496
8497 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
8498
8499         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
8500         Toolkit shell" which breaks `kill-compilation' on Windows NT
8501         native, retaining STDERR handling improvements.
8502
8503 2000-06-01  Andreas Jaeger  <aj@suse.de>
8504
8505         * s/s390.h: Support for S390, based on a patch by Martin
8506         Schwidefsky <schwidefsky@de.ibm.com>.
8507
8508 2000-05-30  Andy Piper  <andy@xemacs.org>
8509
8510         * window.c (allocate_window):
8511         (make_dummy_parent):
8512         (Fset_window_configuration): use new hashtable type.
8513
8514         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
8515         (struct image_instantiator_methods):
8516         (struct Lisp_Image_Instance): make instance geometry signed.
8517
8518         * glyphs.c (instantiate_image_instantiator):
8519         (image_instance_query_geometry):
8520         (image_instance_layout):
8521         (image_instance_layout):
8522         (query_string_geometry):
8523         (text_query_geometry):
8524         (image_instantiate):
8525         (image_instantiate):
8526         (cache_subwindow_instance_in_frame_maybe):
8527         (subwindow_query_geometry): make instance geometry signed.
8528
8529         * glyphs-widget.c (widget_query_geometry):
8530         (widget_layout):
8531         (button_query_geometry):
8532         (tree_view_query_geometry):
8533         (tab_control_query_geometry):
8534         (layout_query_geometry):
8535         (layout_layout):
8536         (native_layout_layout): make instance geometry signed.
8537
8538 2000-05-29  Olivier Galibert  <galibert@pobox.com>
8539
8540         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
8541         constant.
8542
8543         * general.c (syms_of_general): Add Qfull_assoc symbol.
8544
8545         * data.c (finish_marking_weak_lists): Mark full-assoc lists
8546         correctly.
8547         (decode_weak_list_type): Decode full-assoc type.
8548         (encode_weak_list_type): Encode full-assoc type.
8549         (Fmake_weak_list): Update doc string.
8550
8551 2000-05-30  Andy Piper  <andy@xemacs.org>
8552
8553         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
8554
8555         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
8556         (decode_hash_table_weakness): ditto.
8557         (Fhash_table_weakness): ditto.
8558         (Fhash_table_type): ditto.
8559         (finish_marking_weak_hash_tables): ditto.
8560         (hash_table_weakness_validate): ditto.
8561         (syms_of_elhash): ditto.
8562
8563 2000-05-28  Martin Buchholz <martin@xemacs.org>
8564
8565         * XEmacs 21.2.34 is released.
8566
8567 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
8568
8569         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
8570         start cache.
8571         (updating_line_start_cache): Gone.
8572         (regenerate_window): Replace resetting of VERTICAL_CLIP by
8573         generic code to force a minimum of 1 line laid out in the
8574         CMOTION_DISP case.
8575
8576 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
8577
8578         * glyphs.c (instantiate_image_instantiator): Check for initialized
8579         height & width no longer special cases IMAGE_NOTHING.
8580         (nothing_instantiate): Set height and width of instance.
8581
8582 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
8583
8584         * unexelf.c (unexec): Search for ".data" section.
8585         Initialize new_data2_offset from old_data_index.
8586         Remove redundant check for ElfW.
8587
8588 2000-05-23  Andy Piper  <andy@xemacs.org>
8589
8590         * glyphs.c (get_image_instantiator_governing_domain): allow more
8591         specific domains as the governing domain rather than expecting an
8592         exact match. This fixes problems with layouts.
8593
8594 2000-05-22  Andy Piper  <andy@xemacs.org>
8595
8596         * redisplay-output.c (compare_runes): check for non-images
8597
8598         * glyphs.c (set_glyph_dirty_p): ditto.
8599         (update_glyph_cachel_data): ditto.
8600
8601         * glyphs-widget.c (layout_post_instantiate): ditto.
8602         (layout_post_instantiate): ditto.
8603
8604         * event-msw.c (mswindows_wnd_proc): warning removal.
8605
8606 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
8607
8608         * s\mingw32.h: Added #undef for CLASH_DETECTION.
8609
8610         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
8611
8612         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
8613
8614         * nt.c (rva_to_section): mingw32 needs rva_to_section.
8615         (mswindows_executable_type): mingw32 now has enough headers for
8616         this to work.
8617
8618 2000-05-20  Andy Piper  <andy@xemacs.org>
8619
8620         * console-msw.c (mswindows_output_last_error): ; -> ,
8621
8622 2000-05-12  Andy Piper  <andy@xemacs.org>
8623
8624         * console-msw.c (FROB): compare ints with ints.
8625
8626 2000-05-11  Andy Piper  <andy@xemacs.org>
8627
8628         * glyphs-x.c (x_finalize_image_instance): make minimal build
8629         happy.
8630
8631 2000-05-20  Ben Wing  <ben@xemacs.org>
8632
8633         * event-Xt.c:
8634         * event-Xt.c (vars_of_event_Xt):
8635         move modifier-keys-are-sticky to event-stream.c.
8636
8637         * event-msw.c:
8638         * event-msw.c (mswindows_enqueue_mouse_button_event):
8639         * event-msw.c (key_needs_default_processing_p):
8640         * event-msw.c (XEMSW_LCONTROL):
8641         * event-msw.c (mswindows_handle_sticky_modifiers):
8642         * event-msw.c (FROB):
8643         * event-msw.c (clear_sticky_modifiers):
8644         * event-msw.c (output_modifier_keyboard_state):
8645         * event-msw.c (output_alt_keyboard_state):
8646         * event-msw.c (mswindows_wnd_proc):
8647         * event-msw.c (mswindows_modifier_state):
8648         * event-msw.c (emacs_mswindows_handle_magic_event):
8649         implement sticky modifiers.
8650
8651         * event-stream.c:
8652         * event-stream.c (vars_of_event_stream):
8653         move modifier-keys-are-sticky here.
8654
8655         * lisp.h:
8656         add CHECK_FUNCTION.
8657
8658         * rangetab.c:
8659         implement map-range-table.
8660
8661
8662 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
8663
8664         * redisplay-tty.c (reset_tty_modes):
8665         (tty_redisplay_shutdown): Adjust argument type to
8666         tty_frame_output_end.
8667
8668 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
8669
8670         * eval.c (Fbacktrace): Don't output a line with only right
8671         parenthesis.
8672
8673 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
8674
8675         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
8676         (Fpq_reset_poll): Ditto.
8677
8678 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
8679
8680         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
8681
8682 2000-05-16  Ben Wing  <ben@xemacs.org>
8683
8684         * buffer.c:
8685         * buffer.c (dfc_convert_to/from_internal_format):
8686         * buffer.c (reinit_vars_of_buffer):
8687         Fix conversion functions to allow reentrancy.
8688
8689         * console-msw.c:
8690         * console-msw.c (mswindows_output_last_error):
8691         New fun, generally useful -- output a human-readable
8692         version of GetLastError() on the console.
8693
8694         * console-msw.h:
8695         * console-msw.h (struct mswindows_frame):
8696         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
8697
8698         * console-stream.c (stream_output_begin):
8699         * console-stream.c (stream_output_end):
8700         * console-stream.c (stream_output_vertical_divider):
8701         * console-stream.c (stream_clear_region):
8702         * console-stream.c (stream_flash):
8703         * console-stream.c (console_type_create_stream):
8704         Delete blank stream methods, not needed.
8705
8706         * console.h (struct console_methods):
8707         Split begin/end methods into window and frame.
8708
8709         * event-msw.c:
8710         * event-msw.c (mswindows_handle_paint):
8711         * event-msw.c (output_alt_keyboard_state):
8712         * event-msw.c (mswindows_wnd_proc):
8713         * event-msw.c (vars_of_event_mswindows):
8714         Comment about problems with ignored-expose.
8715         Define mswindows-debug-events; not really implemented.
8716
8717         * frame-msw.c (mswindows_init_frame_1):
8718         random cleanups.
8719
8720         * glyphs-msw.c:
8721         * glyphs-msw.c (begin_defer_window_pos):
8722         * glyphs-msw.c (mswindows_unmap_subwindow):
8723         * glyphs-msw.c (mswindows_map_subwindow):
8724         * glyphs-msw.c (mswindows_resize_subwindow):
8725         Use DeferWindowPos to reduce flashing when mapping/unmapping.
8726
8727         * glyphs.c (make_image_instance_1):
8728         Fix crash.
8729
8730         * gutter.c (Fredisplay_gutter_area):
8731         Use new begin/end methods.
8732
8733         * lisp.h (Dynarr_new2):
8734         New creation fun.
8735
8736         * redisplay-msw.c:
8737         * redisplay-msw.c (mswindows_frame_output_begin):
8738         * redisplay-msw.c (mswindows_frame_output_end):
8739         * redisplay-msw.c (console_type_create_redisplay_mswindows):
8740         New begin/end methods -- handle DeferWindowPos.
8741
8742         * redisplay-output.c (redisplay_move_cursor):
8743         * redisplay-output.c (redraw_cursor_in_window):
8744         * redisplay-output.c (redisplay_update_line):
8745         * redisplay-output.c (redisplay_output_window):
8746         New begin/end methods.
8747
8748         * redisplay-tty.c:
8749         * redisplay-tty.c (tty_frame_output_begin):
8750         * redisplay-tty.c (tty_frame_output_end):
8751         * redisplay-tty.c (console_type_create_redisplay_tty):
8752         New begin/end methods.
8753
8754         * redisplay-x.c:
8755         * redisplay-x.c (x_window_output_begin):
8756         * redisplay-x.c (x_window_output_end):
8757         * redisplay-x.c (console_type_create_redisplay_x):
8758         New begin/end methods.
8759
8760         * redisplay.c (redisplay_frame):
8761         * redisplay.c (Fredisplay_echo_area):
8762         New begin/end methods.
8763         use MAYBE_DEVMETH for clear_frame; it may not exist.
8764
8765         * window.h (WINDOW_XFRAME):
8766         WINDOW_XFOO macros -- get locale and decode struct pointer.
8767
8768
8769 2000-05-12  Ben Wing  <ben@xemacs.org>
8770
8771         * emacs.c:
8772         * emacs.c (ensure_no_quitting_from_now_on):
8773         * emacs.c (fatal_error_signal):
8774         * emacs.c (mswindows_handle_hardware_exceptions):
8775         * emacs.c (main):
8776         * emacs.c (Fkill_emacs):
8777         * emacs.c (shut_down_emacs):
8778         * emacs.c (assert_failed):
8779         various improvements in fatal error handling.
8780
8781         * eval.c:
8782         move preparing_for_armageddon to emacs.c.
8783
8784         * lisp.h:
8785         declare fatal_error_in_progress.
8786
8787         * print.c:
8788         * print.c (std_handle_out_external):
8789         * print.c (std_handle_out_va):
8790         * print.c (stderr_out):
8791         * print.c (stdout_out):
8792         use console under mswin when no standard output.
8793         don't do code conversion during fatal error.
8794
8795         * scrollbar.c (Fscrollbar_page_up):
8796         * scrollbar.c (Fscrollbar_page_down):
8797         fix missing else.  reindent.
8798
8799 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
8800
8801         Emergency fix.
8802
8803         * glyphs.h (GLYPH_CACHEL_DESCENT):
8804         (GLYPH_CACHEL_DESCENT):
8805         (GLYPH_CACHEL_DESCENT):
8806         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
8807         used in case these are inline functions.
8808         Use more absurd values to error check.
8809
8810         include window.h for error check functions.
8811
8812 2000-05-11  Ben Wing  <ben@xemacs.org>
8813
8814         * cmdloop.c (Freally_early_error_handler):
8815         Display message box under windows; otherwise, message will disappear
8816         before it can be viewed.
8817
8818         * console-msw.c:
8819         * console-msw.c (Fmswindows_message_box):
8820         * console-msw.c (FROB):
8821         * console-msw.c (syms_of_console_mswindows):
8822         Define new fun `mswindows-message-box'.
8823         #### I will merge this into `popup-dialog-box'; just give me
8824         a bit of time.
8825
8826         * general.c:
8827         * general.c (syms_of_general):
8828         Some new symbols used in `mswindows-message-box'.
8829
8830         * glyphs.c:
8831         * glyphs.c (Fset_image_instance_property):
8832         put warning in this fun.
8833
8834         * glyphs.h:
8835         * glyphs.h (GLYPH_CACHEL_WIDTH):
8836         * glyphs.h (GLYPH_CACHEL_ASCENT):
8837         * glyphs.h (GLYPH_CACHEL):
8838         * glyphs.h (GLYPH_CACHEL_GLYPH):
8839         define error-checking versions to try to catch a bug i've seen --
8840         redisplay gets in an infinite loop because the glyph width of the
8841         continuation glyph is 65535.
8842
8843         * lisp.h:
8844         Extern message-box stuff.
8845
8846         * window.c (allocate_window):
8847         * window.c (make_dummy_parent):
8848         * window.c (Fset_window_configuration):
8849         Use EQUAL not EQ for subwindow caches to make them work a bit
8850         better. (Something is still very broken.)
8851
8852
8853 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
8854
8855         * glyphs.c (image_instantiate): Suppress gcc warnings.
8856         (Fmake_image_instance): Fix doc string.
8857         * specifier.c (Fmake_specifier): Ditto.
8858
8859 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
8860
8861         * paths.h.in (PATH_LOCK): Removed.
8862         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
8863         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
8864
8865 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
8866
8867         * fns.c (Ffeaturep): Update e-mail address in doc-string.
8868         Document (featurep '(and xemacs 21.02)).
8869
8870 2000-05-09  Ben Wing  <ben@xemacs.org>
8871
8872         * buffer.c (complex_vars_of_buffer):
8873         update modeline-format doc.
8874
8875         * device.h:
8876         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
8877
8878         * emacs.c:
8879         timeline of all released versions of Emacs, for use in creating
8880         authorship comments and in synching up.
8881
8882         * glyphs-widget.c (image_instantiator_buttons):
8883         * glyphs-widget.c (image_instantiator_edit_fields):
8884         * glyphs-widget.c (image_instantiator_combo_box):
8885         * glyphs-widget.c (image_instantiator_scrollbar):
8886         * glyphs-widget.c (image_instantiator_progress_guage):
8887         * glyphs-widget.c (image_instantiator_tree_view):
8888         * glyphs-widget.c (image_instantiator_tab_control):
8889         * glyphs-widget.c (image_instantiator_labels):
8890         * glyphs-widget.c (image_instantiator_layout):
8891         * glyphs-widget.c (image_instantiator_native_layout):
8892         rename decode_domain method to governing_domain.
8893
8894         * glyphs.c:
8895         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
8896         * glyphs.c (add_entry_to_device_ii_format_list):
8897         make sure we don't put an entry more than once into the list.
8898         * glyphs.c (check_instance_cache_mapper):
8899         *************************************************************
8900         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
8901         HAVE BEEN GETTING.
8902         *************************************************************
8903         * glyphs.c (get_image_instantiator_governing_domain):
8904         clean up, expand on new concept of governing domain.
8905         * glyphs.c (instantiate_image_instantiator):
8906         * glyphs.c (allocate_image_instance):
8907         use governing_domain instead of cache_domain in naming.
8908         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
8909         * glyphs.c (make_image_instance_1):
8910         * glyphs.c (Fmake_image_instance):
8911         allow for any domain (not just device), and process the
8912         governing domain correctly.  very big doc fix.
8913         * glyphs.c (Fimage_instance_domain):
8914         new primitive, to retrieve the governing domain of an image instance.
8915         * glyphs.c (image_instantiate):
8916         use new governing_domain stuff.  this fixes a crash you could get
8917         by instantiating certain widget glyphs in frame locales. (should
8918         signal an error instead of crashing.)
8919         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
8920         * glyphs.c (Fglyphp): clean up doc.
8921         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
8922         * glyphs.c (syms_of_glyphs):
8923         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
8924         * glyphs.c (image_instantiator_format_create): add some comments about
8925         bogus code.
8926         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
8927         for current-display-table. (Apparently Hrjove implemented in 1998 a
8928         design I wrote up in 1996, but didn't update the doc string.)
8929
8930         * glyphs.h: clean up a doc string.
8931         * glyphs.h (governing_domain):
8932         * glyphs.h (struct image_instantiator_methods):
8933         changes for governing_domain stuff.
8934
8935         * gutter.c:
8936         * gutter.c (Fgutter_specifier_p):
8937         * gutter.c (Fgutter_size_specifier_p):
8938         * gutter.c (Fgutter_visible_specifier_p):
8939         * objects.c:
8940         * objects.c (Fcolor_specifier_p):
8941         * objects.c (Ffont_specifier_p):
8942         * objects.c (Fface_boolean_specifier_p):
8943         doc strings moved to make-*-specifier.
8944
8945         * redisplay.c (add_disp_table_entry_runes_1):
8946         * redisplay.c (generate_fstring_runes):
8947         * redisplay.c (screen):
8948         add random comments and doc strings.
8949
8950         * specifier.c:
8951         * specifier.c (Fmake_specifier):
8952         major overhaul of this doc string.
8953
8954         * specifier.c (Fvalid_specifier_domain_p):
8955         comment about the bogosity of image instances being domains.
8956         * specifier.c (decode_domain):
8957         now non-static, used in glyphs.c.
8958         * specifier.c (specifier_instance):
8959         comment about the bogosity of image instances being domains.
8960         * specifier.c (Fgeneric_specifier_p):
8961         move doc string to make-generic-specifier.
8962         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
8963         rebackslashify.
8964
8965         * specifier.h:
8966         * specifier.h (DOMAIN_FRAME):
8967         * specifier.h (DOMAIN_LIVE_P):
8968         * specifier.h (DOMAIN_XDEVICE):
8969         rebackslashify.
8970         add comments about problems with these macros.
8971         prototype for decode_domain.
8972
8973         * toolbar.c:
8974         * toolbar.c (Ftoolbar_specifier_p):
8975         move doc string to `make-toolbar-specifier'.
8976
8977         * window.c (window_unmap_subwindows_cache_mapper):
8978         *************************************************************
8979         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
8980         HAVE BEEN GETTING.
8981         *************************************************************
8982
8983 2000-05-09  Andy Piper  <andy@xemacs.org>
8984
8985         * glyphs.h: declare reset_frame_subwindow_instance_cache.
8986
8987         * window.c (Fset_window_configuration): reset the frame subwindow
8988         cache and re-initialize the window subwindow caches.
8989
8990         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
8991
8992 2000-05-09  Ben Wing  <ben@xemacs.org>
8993
8994         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
8995         DWORD.
8996
8997 2000-04-26  Mike Woolley  <mike@bulsara.com>
8998
8999         * ntheap.c: Changed recreate_heap to limit the amount reserved
9000         for the heap to that which is actually available. Also now
9001         displays a message box (with some dignostics) in the event that
9002         it still can't start.
9003
9004 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
9005
9006         * callproc.c (Fold_call_process_internal): GCPRO path
9007
9008 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
9009
9010         Patch by Bill Perry.
9011
9012         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
9013         back data instead of #ifdef.
9014         (Fscrollbar_page_down): ditto.
9015
9016 2000-05-07  Ben Wing  <ben@xemacs.org>
9017
9018         * buffer.h:
9019         Kludge for defining Qmswindows_tstr.
9020
9021         * nt.c:
9022         * nt.c (open_input_file):
9023         * nt.c (open_output_file):
9024         * nt.c (rva_to_section):
9025         * nt.c (mswindows_executable_type):
9026         Move all memory-mapped-file routines here (some were in unexnt.c,
9027         which is bad because they are used by process-nt.c, and unexnt
9028         won't be around when portable dumping).  Synched the above routines
9029         with FSF 20.6.
9030
9031         * nt.h:
9032         Removed ifdef'd out bogus code.
9033         Fixed some prototypes.
9034
9035         * nt.h (file_data):
9036         * nt.h (OFFSET_TO_RVA):
9037         * nt.h (RVA_TO_OFFSET):
9038         * nt.h (RVA_TO_PTR):
9039         Moved the memory-mapped-file structures, macros and prototypes
9040         here, to parallel nt.c.  ntheap.h should really be removed
9041         entirely, and it's a non-portable-dumper specific file.
9042
9043         * ntheap.h (round_to_next):
9044         Moved the memory-mapped-file structures, macros and prototypes
9045         to nt.h.
9046
9047         * ntproc.c (compare_env):
9048         Moved rva_to_section and mswindows_executable_type to nt.c.
9049         Moved compare_env to process-nt.c.
9050         ntproc.c will die, one day.
9051
9052         * ntproc.c (sys_spawnve):
9053         Account for win32_ -> mswindows_.
9054
9055         * process-nt.c:
9056         * process-nt.c (struct nt_process_data):
9057         * process-nt.c (ensure_console_window_exists):
9058         * process-nt.c (compare_env):
9059         * process-nt.c (nt_create_process):
9060         * process-nt.c (nt_kill_process_by_pid):
9061         * process-nt.c (syms_of_process_nt):
9062         * process-nt.c (vars_of_process_nt):
9063         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
9064         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
9065         changes).  Eliminate our old `nt-quote-process-args' mechanism.
9066         Synch up nt_create_process with FSF 20.6 sys_spawnve.
9067         Move compare_env here from ntproc.c.
9068
9069         * process.c (Fprocess_send_region):
9070         Takes an optional fourth argument, BUFFER, which should fix some
9071         problems with call-process.
9072
9073         * syscommctrl.h:
9074         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
9075
9076         * syswindows.h:
9077         Move ICC_BAR_CLASSES to syscommctrl.h.
9078         Add preliminary macros for MSWindows/Mule.  More to come.
9079
9080         * unexnt.c:
9081         * unexnt.c (unexec):
9082         open_output_file moved to nt.c.
9083
9084
9085 2000-05-05  Andy Piper  <andy@xemacs.org>
9086
9087         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
9088         instance from the frame cache also since GC may catch up too late
9089         to make frame deletion sane.
9090
9091 2000-05-04  Andy Piper  <andy@xemacs.org>
9092
9093         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
9094         (x_finalize_image_instance): ungcpro on deletion.
9095
9096         * glyphs.c (image_instantiator_format_create): give pointers a
9097         query geometry method so that the geometry is at least set.
9098
9099         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
9100         initialize layouts if using widgets.
9101
9102 2000-05-03  Andy Piper  <andy@xemacs.org>
9103
9104         * nt.c: remove bogus reference to sysmmsystem.h
9105
9106         * gui-x.c (popup_selection_callback): fix no selection abort.
9107
9108 2000-05-02  Andy Piper  <andy@xemacs.org>
9109
9110         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
9111         (mswindows_widget_instantiate): ditto.
9112
9113         * glyphs-widget.c (initialize_widget_image_instance): initialize
9114         children correctly.
9115         (widget_instantiate): cope with children and items in the same
9116         instance.
9117
9118         * glyphs.c (mark_image_instance): cope with children as a first
9119         class member.
9120         (image_instance_equal): ditto.
9121         (image_instance_hash): ditto.
9122         (image_instance_changed): ditto.
9123
9124 2000-04-30  Andy Piper  <andy@xemacs.org>
9125
9126         * glyphs.c (subwindow_query_geometry): new function. Return some
9127         defaults.
9128         (subwindow_instantiate): don't assign dimensions if none have been
9129         given.
9130         (image_instantiator_format_create): add subwindow_query_geometry.
9131         (print_image_instance): cope with layouts as widgets.
9132
9133 2000-04-29  Andy Piper  <andy@xemacs.org>
9134
9135         * frame.c (delete_frame_internal): call
9136         free_frame_subwindow_instance_cache so that all subwindows are
9137         finalized before their parent.
9138         (mark_frame): remove subwindow_cachels.
9139         (Fmake_frame): remove subwindow_cachel manipulation.
9140         (allocate_frame_core): subwindow_instance_cache is a weak list.
9141         (delete_frame_internal): set subwindow_instance_cache to nil.
9142
9143         * glyphs-msw.c (mswindows_finalize_image_instance): make double
9144         finalization safe.
9145         (mswindows_finalize_image_instance): use the device
9146         not the domain as the domain may have died already.
9147
9148         * glyphs-x.c (x_finalize_image_instance): ditto.
9149         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
9150         HEIGHT.
9151
9152         * redisplay-output.c (redisplay_unmap_subwindows): update for
9153         subwindow instance cache as a weak list.
9154         (redisplay_unmap_subwindows_maybe): ditto.
9155         (redisplay_unmap_subwindows_except_us): ditto.
9156
9157         * glyphs.c (unmap_subwindow): error checking will check the domain
9158         so don't deal with it here. Don't use cachels anymore.
9159         (map_subwindow): ditto.
9160         (update_subwindow_cachel_data): remove old accessor names.
9161         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
9162         (Fresize_subwindow): don't update cachel.
9163         (mark_subwindow_cachels):
9164         (update_subwindow_cachel_data):
9165         (add_subwindow_cachel):
9166         (get_subwindow_cachel_index):
9167         (update_subwindow_cachel):
9168         (reset_subwindow_cachels):
9169         (mark_subwindow_cachels_as_not_updated): deleted.
9170         (cache_subwindow_instance_in_frame_maybe): new function. Add a
9171         subwindow instance to the frame cache.
9172         (find_matching_subwindow): update for subwindow instance cache as
9173         a weak list.
9174         (update_widget_instances): ditto.
9175         (image_instance_type_to_mask):inlined.
9176         (free_frame_subwindow_instance_cache): new function. finalize all
9177         subwindows that are instantiated.
9178
9179         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
9180         of cachel information.
9181         (IMAGE_INSTANCE_DISPLAY_X):
9182         (IMAGE_INSTANCE_DISPLAY_Y):
9183         (IMAGE_INSTANCE_DISPLAY_WIDTH):
9184         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
9185         (XIMAGE_INSTANCE_DISPLAY_X):
9186         (XIMAGE_INSTANCE_DISPLAY_Y):
9187         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
9188         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
9189         remove subwindow_cachel structure and function references.
9190         (image_instance_type_to_mask): inline from glyphs.c
9191
9192         * redisplay.c (redisplay_frame): remove subwindow_cachel
9193         references.
9194
9195         * frame.h (struct frame): remove subwindow_cachels.
9196         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
9197
9198         * frameslots.h: add subwindow_instance_cache.
9199
9200         * window.c (replace_window): check subwindow cache of replacement.
9201         (window_unmap_subwindows_cache_mapper):
9202         (window_unmap_subwindows): new functions. Unmap all subwindows
9203         cached on this window.
9204         (mark_window_as_deleted): unmap all subwindows.
9205
9206 2000-04-27  Andy Piper  <andy@xemacs.org>
9207
9208         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
9209
9210         * glyphs-widget.c (widget_layout): return something.
9211         (layout_layout): return something. Fail if not initialized.
9212         (layout_query_geometry): ditto.
9213         (image_instantiator_native_layout): new function. Initialized the
9214         native layout type.
9215         (widget_instantiate): don't do layout stuff here.
9216
9217         * glyphs.c (instantiate_image_instantiator): reorded calling or
9218         instantiate and post_instantiate with layout in between.
9219         (image_instance_layout): be more selective about deciding whether
9220         the layout has been done or not.
9221
9222         * glyphs.h (struct image_instantiator_methods): return a value
9223         from layout_method.
9224
9225 2000-04-26  Andy Piper  <andy@xemacs.org>
9226
9227         * glyphs.c (allocate_image_instance): make initial width and
9228         height unspecified. Set initialized to 0.
9229
9230         * syscommctrl.h new file. Encapsulates commctrl.h.
9231
9232         * syswindows.h new file. Encapsulates windows.h.
9233
9234         * ntplay.c: use new syswindows.h and syscommctrl.h header.
9235         * nt.c: ditto.
9236         * console-msw.h: ditto.
9237
9238         * redisplay-tty.c (tty_output_display_block): remove layout references.
9239
9240         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
9241         window handle rather than just the frame.
9242
9243         * glyphs.c (mark_image_instance): remove layout references.
9244         (print_image_instance): ditto.
9245         (image_instance_equal): ditto.
9246         (image_instance_hash): ditto.
9247         (decode_image_instance_type): ditto.
9248         (encode_image_instance_type): ditto.
9249         (image_instantiate): ditto.
9250         (allocate_glyph): ditto.
9251         (Fimage_instance_height): ditto.
9252         (Fimage_instance_width): ditto.
9253         (update_subwindow): ditto.
9254
9255         * redisplay-x.c (x_output_display_block): recode for layouts as
9256         widgets.
9257
9258         * redisplay-output.c (redisplay_output_layout): recode for layouts
9259         as widgets.
9260         (compare_runes): remove layout references.
9261
9262         * redisplay-msw.c (mswindows_output_display_block): recode for
9263         layouts as widgets.
9264
9265         * glyphs-widget.c (image_instantiator_layout): remove
9266         layout_possible_dest_types.
9267         (layout_possible_dest_types): deleted.
9268
9269         * glyphs.h (image_instance_type): remove layout references.
9270         (struct Lisp_Image_Instance): ditto. Add initialized flag.
9271         (IMAGE_INSTANCE_INITIALIZED): new accessor.
9272         (XIMAGE_INSTANCE_INITIALIZED): ditto.
9273
9274 2000-04-25  Andy Piper  <andy@xemacs.org>
9275
9276         * glyphs-widget.c (image_instantiator_buttons):
9277         (image_instantiator_edit_fields):
9278         (image_instantiator_combo_box):
9279         (image_instantiator_scrollbar):
9280         (image_instantiator_progress_guage):
9281         (image_instantiator_tree_view):
9282         (image_instantiator_tab_control):
9283         (image_instantiator_labels):
9284         (image_instantiator_layout): call default post_instantiate method.
9285         (widget_post_instantiate): new function. Simply lays out the
9286         widgets.
9287
9288         * glyphs.h (struct image_instantiator_methods): add
9289         post_instantiate method.
9290
9291         * glyphs.c (instantiate_image_instantiator): add post_instantiate
9292         method calls.
9293
9294 2000-04-23  Andy Piper  <andy@xemacs.org>
9295
9296         * glyphs.h (struct image_instantiator_methods): add
9297         decode_domain_method.
9298         (struct Lisp_Image_Instance): remove subwindow frame - it can be
9299         derived from the domain.
9300         (IMAGE_INSTANCE_FRAME): new accessor.
9301         (XIMAGE_INSTANCE_FRAME): ditto.
9302
9303         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
9304         instead of _SUBWINDOW_FRAME.
9305         (finalize_image_instance): ditto.
9306         (Fimage_instance_foreground): ditto.
9307         (Fimage_instance_background): ditto.
9308         (image_instantiate): ditto.
9309         (update_subwindow_cachel): ditto.
9310         (update_subwindow): ditto.
9311         (unmap_subwindow): ditto.
9312         (map_subwindow): ditto
9313         (subwindow_instantiate): ditto.
9314         * glyphs-msw.c (mswindows_update_widget): ditto.
9315         (mswindows_progress_gauge_instantiate): ditto.
9316         (mswindows_tab_control_update): ditto.
9317         * glyphs-x.c (x_update_widget): ditto.
9318         (x_widget_instantiate): ditto.
9319         (x_tab_control_instantiate): ditto.
9320         (x_tab_control_update): ditto.
9321         * event-msw.c (mswindows_wnd_proc): ditto
9322
9323         * glyphs-widget.c (image_instantiator_layout): use
9324         subwindow_decode_domain.
9325         (image_instantiator_buttons): ditto.
9326         (image_instantiator_edit_fields): ditto.
9327         (image_instantiator_combo_box): ditto.
9328         (image_instantiator_scrollbar): ditto.
9329         (image_instantiator_progress_guage): ditto.
9330         (image_instantiator_tree_view): ditto.
9331         (image_instantiator_tab_control): ditto.
9332         (image_instantiator_labels): ditto.
9333         (image_instantiator_layout): ditto.
9334
9335         * glyphs.c: add instance error checking to many functions.
9336         (instantiate_image_instantiator): decode device from cache_domain.
9337         (image_instantiate): partially rewrite by using
9338         decode_image_instantiator_domain to determine what domain the
9339         instance needs to be cached in.
9340         (decode_image_instantiator_domain): new function. Determine what
9341         domain the image needs to be cached in.
9342         (check_window_subwindow_cache): new error checking function.
9343         (check_instance_cache_mapper): ditto.
9344         (check_image_instance_structure): ditto.
9345         (subwindow_decode_domain): new function. Encodes a window as a
9346         subwindow's cache domain.
9347         (image_instantiator_format_create): use it for text and
9348         subwindows.
9349
9350 2000-04-21  Andy Piper  <andy@xemacs.org>
9351
9352         * glyphs.c (image_instance_device): new function.
9353         (image_instance_frame): new function.
9354         (image_instance_window): new function.
9355         (image_instance_live_p): new function.
9356
9357         * window.c (mark_window_as_deleted): reset the subwindow_instance_
9358         cache to nil.
9359
9360         * glyphs.h (struct Lisp_Image_Instance): device->domain.
9361         (IMAGE_INSTANCE_DOMAIN): new accessor.
9362         (XIMAGE_INSTANCE_DOMAIN): ditto.
9363
9364         * glyphs-x.c (x_finalize_image_instance): device->domain.
9365
9366         * glyphs-msw.c (init_image_instance_geometry): device->domain.
9367         (mswindows_finalize_image_instance): ditto.
9368
9369         * glyphs-eimage.c (jpeg_instantiate): device->domain.
9370         (gif_instantiate): ditto.
9371         (png_instantiate): ditto.
9372         (tiff_instantiate): ditto.
9373
9374         * glyphs.c (instantiate_image_instantiator): use domain rather
9375         than device.
9376         (mark_image_instance): device -> domain.
9377         (print_image_instance): ditto.
9378         (finalize_image_instance): ditto.
9379         (image_instance_equal): ditto.
9380         (allocate_image_instance): ditto.
9381         (Fcolorize_image_instance): ditto.
9382         (query_string_geometry): ditto.
9383         (image_instantiate): ditto
9384         (query_string_font): ditto.
9385         (image_instantiate): ditto.
9386         (update_subwindow): ditto.
9387         (unmap_subwindow): ditto.
9388         (map_subwindow): ditto.
9389         (subwindow_instantiate): ditto.
9390
9391         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
9392         (DOMAIN_FRAME): ditto.
9393         (DOMAIN_WINDOW): ditto.
9394         (DOMAIN_LIVE_P): ditto.
9395         (XDOMAIN_DEVICE): ditto.
9396         (XDOMAIN_FRAME): ditto.
9397         (XDOMAIN_WINDOW): ditto.
9398
9399         * specifier.c (Fvalid_specifier_domain_p): add image instances as
9400         a valid specifier domain.
9401
9402 2000-04-19  Andy Piper  <andy@xemacs.org>
9403
9404         * glyphs-widget.c (syms_of_glyphs_widget): remove
9405         widget-callback-current-channel.
9406         (vars_of_glyphs_widget): ditto.
9407         * glyphs.h: ditto
9408
9409         * gui.c (get_gui_callback): revert to previous behaviour.
9410
9411 2000-04-18  Andy Piper  <andy@xemacs.org>
9412
9413         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
9414         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
9415         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
9416
9417         * glyphs.c (image_instance_equal): add margin_width.
9418         (image_instance_hash): ditto.
9419
9420         * glyphs-widget.c (widget_instantiate): deal with margin-width.
9421         (layout_query_geometry): ditto.
9422         (layout_layout): ditto.
9423         (syms_of_glyphs_widget): add margin-width.
9424         (image_instantiator_layout): allow margin-width.
9425
9426         * glyphs.c (update_widget_instances): make a normal function.
9427         (syms_of_glyphs): remove Qupdate_widget_instances.
9428         * glyphs.h: ditto.
9429
9430         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
9431         so that we don't corrupt ideas about the last event or
9432         command. Remove widget-callback-current-channel fiddling.
9433         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
9434
9435 2000-05-01  Martin Buchholz <martin@xemacs.org>
9436
9437         * XEmacs 21.2.33 is released.
9438
9439 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
9440
9441         * make-src-depend: Allow dots in header file name.
9442
9443 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
9444
9445         * mule-charset.h (struct charset_lookup): Add
9446         next_allocated_1_byte_leading_byte and
9447         next_allocated_2_byte_leading_byte.
9448         * mule-charset.c: Move above two variables so that those values
9449         will be dumped.
9450
9451 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
9452
9453         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
9454         when string length is zero.
9455         (find_charsets_in_emchar_string): Ditto.
9456
9457 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
9458
9459         * lisp.h: extern Qdialog and Qmenubar.
9460
9461         * gui-x.c: added events.h.
9462                 also fixed typo which made the file uncompilable.
9463
9464         * general.c: Added Qmenubar and Qdialog
9465
9466 2000-04-28  Ben Wing  <ben@xemacs.org>
9467
9468         * frame-msw.c (mswindows_init_frame_1):
9469         * frame-msw.c (mswindows_mark_frame):
9470         * event-msw.c (mswindows_enqueue_dispatch_event):
9471         * console-msw.h:
9472         * console-msw.h (struct mswindows_frame):
9473         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
9474         there are now three hash tables for callbacks.
9475         mswindows_enqueue_dispatch_event is no longer static.
9476
9477         * dialog-x.c (maybe_run_dbox_text_callback):
9478         * dialog-x.c (dbox_descriptor_to_widget_value):
9479         switch to new cons3 form for callbacks.
9480
9481         * glyphs-msw.c (mswindows_register_gui_item):
9482         * glyphs-msw.c (mswindows_widget_instantiate):
9483         * glyphs-msw.c (add_tree_item):
9484         * glyphs-msw.c (add_tab_item):
9485         new image instance parameter, so it can be passed to callback-ex.
9486         respect :callback-ex as well as :callback.
9487
9488         * glyphs-widget.c (VALID_GUI_KEYWORDS):
9489         add :callback-ex.
9490
9491         * glyphs.c (print_image_instance):
9492         prettify, e.g. now prints widget type.
9493
9494         * gui-x.h:
9495         certain funs have new image instance parameter.
9496
9497         * gui.c:
9498         * gui.c (get_gui_callback):
9499         * gui.c (gui_item_add_keyval_pair):
9500         * gui.c (gui_item_init):
9501         * gui.c (gui_add_item_keywords_to_plist):
9502         * gui.c (mark_gui_item):
9503         * gui.c (gui_item_hash):
9504         * gui.c (gui_item_equal):
9505         * gui.c (copy_gui_item):
9506         * gui.c (syms_of_gui):
9507         recognize callback-ex in a number of places.
9508         also, fix the annoying "can't get out of yes-no dialog" bug.
9509
9510         * gui.h:
9511         * gui.h (struct Lisp_Gui_Item):
9512         recognize callback-ex in a number of places.
9513
9514         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9515         new parameter in button_item_to_widget_value.
9516
9517         * glyphs-x.c (x_update_widget):
9518         * glyphs-x.c (x_button_instantiate):
9519         * glyphs-x.c (x_button_update):
9520         * glyphs-x.c (x_progress_gauge_instantiate):
9521         * glyphs-x.c (x_edit_field_instantiate):
9522         * glyphs-x.c (x_combo_box_instantiate):
9523         * glyphs-x.c (x_tab_control_instantiate):
9524         * glyphs-x.c (x_label_instantiate):
9525         new image instance parameter in various places.
9526
9527         * event-Xt.c:
9528         * event-Xt.c (enqueue_Xt_dispatch_event):
9529         this fun gets exported.
9530
9531         * gui-msw.c:
9532         * gui-msw.c (mswindows_handle_gui_wm_command):
9533         handle both :callback and :callback-ex, and generate our own
9534         event because it's one of the callback-ex arguments.
9535
9536         * gui-x.c:
9537         * gui-x.c (popup_selection_callback):
9538         handle both :callback and :callback-ex, and generate our own
9539         event because it's one of the callback-ex arguments.
9540         * gui-x.c (button_item_to_widget_value):
9541         * gui-x.c (gui_items_to_widget_values_1):
9542         * gui-x.c (gui_item_children_to_widget_values):
9543         * gui-x.c (gui_items_to_widget_values):
9544         new image instance parameter in various places.
9545
9546         * fns.c (Freplace_list):
9547         fix small typo in doc string.
9548
9549         * lisp.h:
9550         declare enqueue_Xt_dispatch_event.
9551
9552 2000-04-28  Ben Wing  <ben@xemacs.org>
9553
9554         * buffer.c:
9555         * buffer.c (Frecord_buffer):
9556         * buffer.c (syms_of_buffer):
9557         delete record-buffer-hook.
9558
9559         * fns.c:
9560         * fns.c (Freplace_list):
9561         * fns.c (syms_of_fns):
9562         new primitive replace-list.
9563
9564         * frameslots.h:
9565         slot for old buffer-alist.
9566
9567         * lisp.h:
9568         exfun replace-list.
9569
9570         * redisplay.c:
9571         * redisplay.c (redisplay_frame):
9572         * redisplay.c (syms_of_redisplay):
9573         * redisplay.c (vars_of_redisplay):
9574         new hook buffer-list-changed-hook.
9575         call it.
9576
9577 2000-04-27  Ben Wing  <ben@xemacs.org>
9578
9579         * extents.h: extern in_modeline_generation.
9580
9581         * redisplay.c (generate_formatted_string_db): set
9582         in_modeline_generation.
9583
9584         * extents.c (extent_changed_for_redisplay): don't mark redisplay
9585         flags if in modeline generation.  otherwise frame-modified-tick
9586         is ticked far too often.
9587         Declare in_modeline_generation.
9588
9589 2000-04-26  Ben Wing  <ben@xemacs.org>
9590
9591         * emacs.c (vars_of_emacs): document quick-build "error-checking"
9592         option.
9593         (vars_of_emacs): add quick-build as an error-checking option.
9594         A bit kludgy, but there doesn't seem much point in creating
9595         a real var for this.
9596
9597         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
9598
9599 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9600
9601         * redisplay.h (struct display_line): Add a new variable,
9602         line_continuation.
9603
9604         * redisplay.c (create_text_block): Set dl->line_continuation if
9605         the line continues.
9606         (create_string_text_block): Ditto.
9607         (regenerate_window_incrementally): Use line_continuation instead
9608         of searching continuation glyph.
9609         (add_margin_runes): Call add_glyph_rune.
9610         (add_glyph_rune): Handle margin glyph.
9611
9612 2000-04-20  Martin Buchholz  <martin@xemacs.org>
9613
9614         * filelock.c (fill_in_lock_file_name):
9615         ANSIfy.
9616         Check for IS_ANY_SEP instead of '/'.
9617         (lock_file_1):
9618         Avoid generating gratuitous garbage.  Call user_login_name() directly.
9619         Never check errno without first seeing that system call failed.
9620         (unlock_file): Add GCPRO.
9621         (Flock_buffer): Fix docstring.
9622         (Ffile_locked_p): Fix docstring.  Add GCPRO.
9623
9624 2000-04-19  Martin Buchholz  <martin@xemacs.org>
9625
9626         * sysdep.c (get_pty_max_bytes):
9627         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
9628         strings longer than 252 bytes.
9629
9630         * md5.c: Unconditionally include ANSI header <limits.h>
9631
9632         * glyphs-x.c (convert_EImage_to_XImage):
9633         * lisp-union.h (union Lisp_Object):
9634         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
9635
9636 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
9637
9638         * filelock.c (current_lock_owner): Remove unused variable o, p.
9639
9640 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
9641
9642         * callint.c: Remove multiply defined symbol Qlet
9643         (syms_of_callint): ditto.
9644
9645 2000-04-14  Andy Piper  <andy@xemacs.org>
9646
9647         * general.c (syms_of_general): add last-command, this-command, let
9648         and funcall.
9649
9650         * lisp.h: declare various symbols.
9651
9652         * glyphs.h: declare Qwidget_callback_current_channel;
9653
9654         * glyphs-widget.c (syms_of_glyphs_widget): add
9655         Qgui_callback_current_channel.
9656         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
9657
9658         * gui-msw.c (mswindows_handle_gui_wm_command): bind
9659         widget-callback-current-channel when invoking the interactive
9660         arg. Also bind last-command and next-command when invoking the
9661         widget updates.
9662         * gui-x.c (popup_selection_callback): ditto.
9663
9664         * gui.c (get_gui_callback): massage args so that we are always
9665         calling eval. This allows us to add our own variable bindings
9666         outside.
9667
9668         * glyphs-x.c (x_button_instantiate): use
9669         gui_items_to_widget_values since this is GC safe.
9670         (x_progress_gauge_instantiate): ditto.
9671         (x_edit_field_instantiate): ditto.
9672         (x_label_instantiate): ditto.
9673
9674         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
9675         (emacs_Xt_event_widget_focus_out): new function
9676         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
9677         focus.
9678         (emacs_Xt_event_add_widget_actions): new function. add focus
9679         functions as actions.
9680         (init_event_Xt_late): use it.
9681
9682 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
9683
9684         * event-stream.c (Fdispatch_event): Doc fix.
9685
9686 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
9687
9688         * postgresql.c: Remove all references to PQsetenv*.
9689
9690         * postgresql.h: Remove references to PGsetenvHandler object.
9691         * lrecord.h (lrecord_type): Ditto.
9692
9693 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
9694
9695         * glyphs-msw.h (struct mswindows_image_instance_data): Added
9696         real_heigh and real_width members, and accessor macros for these.
9697
9698         * glyphs-msw.c (init_image_instance_geometry): New function.
9699         (init_image_instance_from_dibitmap): Use it.
9700         (mswindows_resource_instantiate): Use it.
9701         (init_image_instance_from_xbm_inline): Use it.
9702         (mswindows_initialize_image_instance_mask): Use real bitmap
9703         geometry.
9704         (mswindows_create_resized_bitmap): Ditto.
9705         (mswindows_create_resized_mask): Ditto.
9706
9707         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
9708         and bitmap to their surface size.
9709
9710 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
9711
9712         * process-unix.c (unix_send_process): Guard against process MIA
9713         after Faccept_process_output.
9714
9715 2000-04-11  Ben Wing  <ben@xemacs.org>
9716
9717         * eval.c (unbind_to_hairy): fix brokenness introduced by
9718         nanosecond speed improvements.
9719
9720 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
9721
9722         * sunplay.c (init_device): To play sounds correctly, the device
9723         apparently needs to be initialized at least once by XEmacs.  Make
9724         it so.
9725
9726 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9727
9728         * redisplay.c (add_margin_runes): Add text image glyph
9729           handling.
9730
9731 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
9732
9733         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
9734         gcc is newer than 2.5.
9735
9736 2000-04-06  Colin Rafferty  <colin@xemacs.org>
9737
9738         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
9739
9740         * fns.c (size_bit_vector):
9741         * alloc.c (size_vector):
9742         (make_vector_internal):
9743         (make_bit_vector_internal):
9744         (sweep_bit_vectors_1):
9745         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
9746
9747 2000-04-06  Andy Piper  <andy@xemacs.org>
9748
9749         * gmalloc.c (malloc): undo previous change.
9750         (malloc): ditto.
9751         (free): ditto.
9752         (realloc): ditto.
9753
9754 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
9755
9756         * line-number.c (buffer_line_number): Revert to former version.
9757
9758 2000-04-06  Andy Piper  <andy@xemacs.org>
9759
9760         * gmalloc.c (malloc): add error checking.
9761         (malloc): ditto.
9762         (free): ditto.
9763         (realloc): ditto.
9764
9765         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
9766         button_item_to_widget_value arg.
9767
9768         * glyphs-x.c (x_button_instantiate): add extra
9769         button_item_to_widget_value arg.
9770         (x_progress_gauge_instantiate): ditto.
9771         (x_edit_field_instantiate): ditto.
9772         (x_label_instantiate): ditto.
9773
9774         * gui-x.c (gui_items_to_widget_values_1): add extra
9775         button_item_to_widget_value arg.
9776         (button_item_to_widget_value): add extra menu_item_p arg.
9777
9778         * gui-x.h: change signature of button_item_to_widget_value.
9779
9780         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
9781         button_item_to_widget_value arg.
9782
9783 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
9784
9785         * buffer.h (struct buffer): auto_save_modified should be long.
9786
9787 2000-04-05  Andy Piper  <andy@xemacs.org>
9788
9789         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
9790         type.
9791         (button_query_geometry): give a little more room so that athena
9792         buttons fit.
9793
9794 2000-04-05  Andy Piper  <andy@xemacs.org>
9795
9796         * faces.c (complex_vars_of_faces): The widget face should inherit
9797         the font of the gui-element face.
9798
9799 2000-04-04  Andy Piper  <andy@xemacs.org>
9800
9801         * glyphs-x.c (x_button_update): new function. unconditionally
9802         update a button's state when the instance is dirty.
9803         (image_instantiator_format_create_glyphs_x): add x_button_update.
9804         (x_widget_instantiate): remove old resize cruft.
9805
9806 2000-04-02  Andy Piper  <andy@xemacs.org>
9807
9808         * frame.c (change_frame_size_1): The introduction of gutters means
9809         that we need to allow 0 as a potential frame dimension.
9810
9811 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9812
9813         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
9814         image glyph if allow_cursor.
9815         (add_hscroll_rune): Don't allow cursor to border glyph.
9816         (create_text_block): Ditto.
9817
9818         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
9819         text not in buffer.
9820         (redisplay_output_layout): Call ensure_face_cachel_complete for
9821         text image glyph.
9822
9823
9824 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9825
9826         * redisplay.c (add_glyph_rune): Adding text image as text runes.
9827
9828         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
9829         not in buffer
9830
9831         * redisplay-tty.c (tty_output_display_block): Delete the routine
9832         for text image glyph
9833         * redisplay-x.c (x_output_display_block): ditto
9834         * redisplay-msw.c (mswindows_output_display_block): ditto
9835
9836 2000-02-02  Mike Alexander  <mta@arbortext.com>
9837
9838         Note: Some of these were committed by accident as part of other
9839         patches.
9840
9841         * regex.c (regex_compile): Avoid compiler warnings.
9842
9843         * ntproc.c (sys_spawnve): Avoid compiler warnings.
9844
9845         * nt.h: Declare term_ntproc correctly.
9846
9847         * nt.c: Remove incorrect declaration of get_home_directory which
9848         is declared correctly in lisp.h.
9849
9850         * keymap.c (get_keyelt): Avoid compiler warnings.
9851         (raw_lookup_key_mapper): Avoid compiler warnings.
9852
9853         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
9854
9855         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
9856
9857         * filemode.c (mode_string): Avoid compiler warnings.
9858
9859         * file-coding.c (Fcoding_system_aliasee): Add return statement to
9860         avoid warning.
9861
9862         * events-mod.h: Undef some things that winuser.h defines differently.
9863
9864         * data.c (Faset): Avoid compiler warnings.
9865
9866         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
9867
9868 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
9869
9870         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
9871         Fall through to simple beep on error.
9872         Replace "extern" by real header file.
9873
9874         * linuxplay.c: Use nativesound.h
9875         (play_sound_data): Return error code. Be less verbose on error.
9876
9877         * sunplay.c: Use nativesound.h
9878         (play_sound_data): Return error code. Be less verbose on error.
9879
9880         * ntplay.c: Use nativesound.h
9881         (play_sound_data): Return fake error code
9882
9883         * sgiplay.c: Use nativesound.h
9884         (play_sound_data): Return error code
9885
9886         * hpplay.c: Use nativesound.h, partially implement
9887         new error code. Break compilation until finished.
9888         (play_sound_data): error code.
9889
9890         * nativesound.h (play_sound_file):
9891           (play_sound_data): Prototype in new header.
9892
9893 2000-03-31  Andy Piper  <andy@xemacs.org>
9894
9895         * glyphs-widget.c: (button_query_geometry): new function. Adjust
9896         for toggle and radio buttons.
9897         (image_instantiator_buttons): use it.
9898
9899 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
9900
9901         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
9902         (x_update_horizontal_scrollbar_callback): Return if no mirror was
9903         found. Scrollbar event probably belonged to some old config.
9904
9905 2000-03-31  Andy Piper  <andy@xemacs.org>
9906
9907         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
9908         than 1.
9909         (initialize_widget_image_instance): default layout to
9910         LAYOUT_HORIZONTAL rather than 0.
9911         (widget_instantiate): reverse the item list at the end rather than
9912         every iteration.
9913         (layout_layout): re-code for the border text at the front of the
9914         item list rather than at the end.
9915         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
9916         provided by the user.
9917         (widget_query_geometry): comment.
9918
9919 2000-03-30  Andy Piper  <andy@xemacs.org>
9920
9921         * glyphs-widget.c (image_instantiator_layout): allow standard
9922         widget keywords in layouts.
9923
9924         * gutter.c (output_gutter): cope with nil gutter contents.
9925
9926         * frame.c (Fset_frame_properties): add gutter docs.
9927
9928 2000-03-29  Andy Piper  <andy@xemacs.org>
9929
9930         * toolbar-msw.c (TBSTYLE_FLAT): add.
9931         (mswindows_output_toolbar): minor fiddling.
9932
9933 2000-03-29  Andy Piper  <andy@xemacs.org>
9934
9935         * gutter.c (output_gutter): force gutter size recalculation if
9936         what we are trying to display won't fit.
9937         (update_gutter_geometry): new function. A per-gutter version of
9938         update_frame_gutter_geometry.
9939         (update_frame_gutter_geometry): use it.
9940         (redraw_exposed_gutter): add extra debugging output.
9941
9942 2000-03-28  Mike Alexander  <mta@arbortext.com>
9943
9944         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
9945         (pdump_file_unmap): Implement it on Windows
9946         (pdump_file_get): Save alocated handles for pdump_file_unmap
9947
9948 2000-03-28  Andy Piper  <andy@xemacs.org>
9949
9950         * gui.c (get_gui_callback): treat Quit specially.
9951
9952 2000-03-27  Andy Piper  <andy@xemacs.org>
9953
9954         * glyphs.c (image_instantiate): be careful to check in the same
9955         way we assigned.
9956
9957 2000-03-27  Didier Verna  <didier@xemacs.org>
9958
9959         * config.h.in: define the proper SMART_INCLUDE macro.
9960         handle renaming of `foo_h_path' to `foo_h_file'.
9961
9962         * database.c: ditto.
9963
9964         * emacs.c: ditto.
9965
9966         * linuxplay.c: ditto.
9967
9968         * terminfo.c: ditto.
9969
9970         * tooltalk.h: ditto.
9971
9972 2000-03-27  Andy Piper  <andy@xemacs.org>
9973
9974         * glyphs-msw.c (mswindows_update_widget): make sure the widget
9975         gets updated whenever the face might have changed.
9976
9977 2000-03-26  Mike Alexander  <mta@arbortext.com>
9978
9979         * dumper.c (pdump_resource_free): Fix the comment.
9980
9981 2000-03-21  Olivier Galibert  <galibert@pobox.com>
9982
9983         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
9984
9985 2000-03-22  Mike Alexander  <mta@arbortext.com>
9986
9987         * dumper.c: Include Windows headers on Windows
9988         (pdump_resource_free): Add a body to the function
9989         (pdump_load): exe_name -> exe_path and add some comments.
9990
9991 2000-03-25  Mike Alexander  <mta@arbortext.com>
9992
9993         * gui.c (copy_gui_item_tree): Return a value in all cases
9994
9995 2000-03-21  Didier Verna  <didier@xemacs.org>
9996
9997         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
9998         lwlib/config.h.in.
9999         (SMART_INCLUDE): new macro.
10000         (POSTGRES_INCLUDE): new macro to include postgresql headers from
10001         the proper location.
10002
10003         * postgresql.c: use it.
10004
10005         * inline.c: ditto.
10006
10007 2000-03-24  Andy Piper  <andy@xemacs.org>
10008
10009         * gutter.c (redraw_exposed_gutters): must be "in display" when we
10010         do this.
10011
10012 2000-03-24  Andy Piper  <andy@xemacs.org>
10013
10014         * redisplay-output.c (compare_runes): use image_instance_changed
10015         to detect changes. Do not depend on glyphs_changed, only depend on
10016         dirtiness.
10017          (redisplay_output_layout): add debug messages.
10018         (compare_runes): ditto.
10019
10020         * glyphs.h: declare new functions.
10021         (struct Lisp_Image_Instance): remove percent and associated
10022         accessors.
10023
10024         * gui.h: declare new copying functions.
10025
10026         * gui.c (copy_gui_item_tree): new function.
10027         (copy_gui_item): new function.
10028         (gui_item_id_hash): revert to standard hash.
10029         (gui_item_hash): ditto.
10030         (gui_item_hash_internal): deleted.
10031         (mark_gui_item): mark value.
10032         (gui_item_add_keyval_pair): add value.
10033         (gui_item_init): ditto.
10034         (gui_add_item_keywords_to_plist): ditto.
10035         (gui_item_equal): ditto.
10036         (syms_of_gui): add Q_value.
10037
10038         * glyphs-x.c (x_progress_gauge_update): use pending items and
10039         value for setting the state.
10040         (x_update_widget): don't set items from pending here.
10041
10042         * glyphs-widget.c (update_widget): update items here.
10043         (progress_gauge_set_property): use items for storing value. Put
10044         new value in pending items.
10045
10046         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
10047         items for new value. Convert percent -> value.
10048         (mswindows_tab_control_update): don't update items here.
10049
10050         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
10051         (update_subwindow): ditto.
10052         (image_instance_changed): new function. Compare hash values and
10053         past and present widget items.
10054         (image_instantiate): We more careful about where we instantiate
10055         things.
10056         (image_instantiate): add error checking.
10057
10058         * gutter.c (syms_of_gutter): use -hook.
10059
10060 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
10061
10062         * console-tty.c (Fset_console_tty_input_coding_system): Use
10063         Qkeyboard.
10064         (Fset_console_tty_output_coding_system): Use Qterminal.
10065         (tty_init_console): Use Qkeyboard and Qterminal.
10066
10067 2000-03-21  Ben Wing  <ben@xemacs.org>
10068
10069         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
10070         From Mike Alexander <mta@arbortext.com>.
10071
10072 2000-03-21  Ben Wing  <ben@xemacs.org>
10073
10074         * event-msw.c (mswindows_need_event): Horrible kludge to fix
10075         process brokenness.  Proper implementation to come.
10076         * callproc.c:
10077         Rename call-process-internal to old-call-process-internal.
10078         New impl. in process.el.
10079
10080 2000-03-21  Martin Buchholz  <martin@xemacs.org>
10081
10082         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
10083
10084 2000-03-20  Andy Piper  <andy@xemacs.org>
10085
10086         * glyphs.c (full_list_hash): make hashes of the same elements in
10087         different orders return different values.
10088
10089 2000-03-20  Martin Buchholz <martin@xemacs.org>
10090
10091         * XEmacs 21.2.32 is released.
10092
10093 2000-03-20  Martin Buchholz  <martin@xemacs.org>
10094
10095         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
10096         (DFC_MALLOC_USE_CONVERTED_DATA):
10097         Add aliasing-safe casts to allow use with char* or unsigned char*
10098         lvalues.
10099
10100         * eldap.c (Fldap_open):
10101         (Fldap_search_basic):
10102         (Fldap_add):
10103         (Fldap_modify):
10104         Make C++-compilable.
10105         Make sure GCPRO'ed variables are initialized.
10106         Use temp variables to avoid repeated calls to Flength.
10107
10108 2000-03-16  Martin Buchholz  <martin@xemacs.org>
10109
10110         * sysfile.h:
10111         Make sure PATH_MAX is always defined.
10112         Include limits.h for PATH_MAX.
10113         Deprecate use of MAXPATHLEN.
10114
10115 2000-03-10  Martin Buchholz  <martin@xemacs.org>
10116
10117         * emacs.c: Add reinit_vars_of_fileio.
10118         * symsinit.h: Add reinit_vars_of_fileio.
10119         * fileio.c (reinit_vars_of_fileio): New.
10120         * fileio.c (Fmake_temp_name):
10121         Initialize temp_name random number from microseconds to make
10122         collisions even less likely.  Initialize always at process startup
10123         time.  (make-temp-name) used to return the same file name twice in
10124         a row when PDUMP.
10125         Random stylistic fiddling.
10126         Comment fixes.
10127
10128 2000-03-20  Andy Piper  <andy@xemacs.org>
10129
10130         * glyphs.c (image_instantiate): allow text glyphs to be
10131         instantiated in the minibuffer window.
10132
10133 2000-03-19  Andy Piper  <andy@xemacs.org>
10134
10135         * glyphs.c (image_instance_hash): be careful about which items we
10136         hash on.
10137
10138         * glyphs-widget.c (tab_control_set_property): record into pending
10139         items rather than the actual items.
10140
10141         * glyphs-x.c (x_update_widget): use pending items to update with.
10142
10143         * glyphs-msw.c (mswindows_tab_control_update): use pending items
10144         to update with.
10145
10146         * glyphs.c (mark_image_instance): mark pending items.
10147
10148         * window.c (Fset_window_configuration): record the buffer.
10149         (Fselect_window): totally revert previous change which breaks many
10150         things.
10151
10152 2000-03-18  Andy Piper  <andy@xemacs.org>
10153
10154         * glyphs-msw.c (mswindows_tab_control_update): force selected
10155         item.
10156
10157         * glyphs.c (image_instantiate): don't allow the minibuffer as a
10158         window domain cache, otherwise we get inconsistencies at
10159         startup. There is something fishy at startup which can lead to the
10160         minibuffer being the selected window when the gutter content is
10161         instantiated.
10162
10163         * gui.c (parse_gui_item_tree_list): add probably unnecessary
10164         gcpros.
10165         (parse_gui_item_tree_children): ditto.
10166         (parse_gui_item_tree_item): ditto.
10167
10168         * glyphs.c (Fupdate_widget_instances): return something.
10169
10170 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
10171
10172         * window.c (Fselect_window): Undo 2000-03-17 change.
10173
10174 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
10175
10176         * postgresql.c (Fpq_setenv): Remove this turkey when linking
10177         against v7.0 libraries.  Insta-coredump city until the postgres
10178         folks fix it.
10179
10180 2000-03-17  Andy Piper  <andy@xemacs.org>
10181
10182         * faces.c (complex_vars_of_faces): don't give the widget face an
10183         inherited background pixmap.
10184
10185         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
10186         selected item.
10187
10188         * event-stream.c (Fdispatch_non_command_events): return something.
10189
10190         * gutter.c (output_gutter): use widget face.
10191         (clear_gutter): ditto.
10192
10193         * NEWS: adjust again.
10194
10195         * window.c (Fselect_window): make sure this runs to completion to
10196         avoid oddities with Fset_window_configuration.
10197         (Fcurrent_window_configuration): in general do not save the
10198         minibuffer as the selected window.
10199
10200         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
10201
10202 2000-03-16  Olivier Galibert  <galibert@pobox.com>
10203
10204         * emacs.c (Frunning_temacs_p): Revert previous patch.
10205         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
10206
10207 2000-03-16  Andy Piper  <andy@xemacs.org>
10208
10209         * glyphs-x.c (x_tab_control_update): if no widget values then
10210         return.
10211
10212         * NEWS: update for new features.
10213
10214         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
10215         synthetic event to the native system.
10216         (reinit_vars_of_event_Xt): set force_event_pending to
10217         emacs_Xt_force_event_pending.
10218
10219         * events.h (struct event_stream): add force_event_pending.
10220
10221         * specifier.c (recompute_one_cached_specifier_in_window): add
10222         comment.
10223
10224         * redisplay.c (redisplay_frame): don't call
10225         update_frame_subwindows. Reset subwindow cachels when
10226         subwindows_changed, removing this was an optimization too far.
10227
10228         * redisplay-output.c (compare_runes): reorganize so that we catch
10229         glyph changes when we want them. Set optimize_output when this
10230         would help layouts.
10231         (redisplay_output_layout): remove frame_really_changed, use
10232         optimize_output instead.
10233
10234         * redisplay-msw.c (mswindows_output_display_block): reset
10235         optimize_output after outputting a glyph.
10236         * redisplay-x.c (x_output_display_block): ditto.
10237         * redisplay-tty.c (tty_output_display_block): ditto.
10238
10239         * gutter.c: (specifier_vars_of_gutter): use new spec changed
10240         functions.
10241         (gutter_specs_changed): do specific gutter positions.
10242         (top_gutter_specs_changed): new function. Only update the
10243         specified gutter specs.
10244         (bottom_gutter_specs_changed): ditto.
10245         (left_gutter_specs_changed): ditto.
10246         (right_gutter_specs_changed): ditto.
10247
10248         * gui.c (gui_item_hash_internal): new function, does a real hash.
10249         (gui_item_id_hash): use it.
10250         (gui_item_hash): hash the eval'ed gui_item.
10251
10252         * gui-x.c (popup_selection_callback): send an eval event to call
10253         Fupdate_widget_instances.
10254
10255         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
10256         to call Fupdate_widget_instances.
10257
10258         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
10259         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
10260
10261         * glyphs.c: (update_frame_subwindows): deleted.
10262         (Fupdate_widget_instances): new function for updating the dirty
10263         state of widgets that might have changed.
10264         (syms_of_glyphs): add Qupdate_widget_instances.
10265         (full_list_hash): hash a list completely.
10266         (image_instance_hash): use it for items and properties.
10267
10268         * frame-msw.c (mswindows_size_frame_internal): remove unused
10269         variable.
10270
10271         * faces.h (struct face_cachel): fix comment.
10272
10273         * event-stream.c (Fdispatch_non_command_events): new
10274         function. Process non-command events, forcing an event cycle
10275         beforehand.
10276         (syms_of_event_stream): declare.
10277         (event_stream_force_event_pending): new function. Force an event
10278         on the native event queue so that an event cycle will occur next
10279         time we check.
10280
10281         * event-msw.c:
10282         (struct ntpipe_shove_stream):
10283         (mswindows_enqueue_dispatch_event):
10284         (mswindows_dequeue_dispatch_event):
10285         (mswindows_cancel_dispatch_event):
10286         (mswindows_pump_outstanding_events):
10287         (mswindows_drain_windows_queue):
10288         (mswindows_handle_paint):
10289         (mswindows_wnd_proc):
10290         (mswindows_key_to_emacs_keysym):
10291         (get_process_input_waitable):
10292         (emacs_mswindows_delete_stream_pair): re-indent file.
10293         (mswindows_need_event): do not process further fds if the windows
10294         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
10295         fixes the 100% cpu problem.
10296         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
10297
10298 2000-03-15  Olivier Galibert  <galibert@pobox.com>
10299
10300         * alloc.h: New.
10301         * dumper.h: New.
10302         * dumper.c: New.
10303
10304         * emacs.c: Moved dump file searching to dumper.c.
10305         (Frunning_temacs_p): Fixed.
10306
10307         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
10308         last_lrecord_type_index_assigned.
10309
10310 2000-02-20  Olivier Galibert  <galibert@pobox.com>
10311
10312         * symsinit.h: Added reinit parameter to init_console_stream
10313         declaration.
10314
10315         * lisp.h: Added file parameter to pdump_load declaration.
10316
10317         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
10318         support.  Added dump file searching.
10319
10320         * config.h.in: Added EMACS_PROGNAME.
10321
10322         * console-stream.c (init_console_stream): Fix reinitialisation
10323         when running from temacs.
10324
10325         * alloc.c (pdump): Add id support.
10326         (pdump_load): Add file parameter and signature/id support.
10327
10328         * Makefile.in.in: Add full pdump support.
10329
10330 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
10331
10332         * postgresql.c: Update documentation to reflect latest code
10333         status.
10334         (print_result): Show tuple counts in printed representation when
10335         appropriate.
10336         (Fpq_put_nbytes): MULE-ize.
10337         (Fpq_get_line_async): Ditto.
10338
10339 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
10340
10341         * postgresql.c (Fpq_lo_import): Fix return value.
10342         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
10343
10344 2000-03-13  Ben Wing  <ben@xemacs.org>
10345
10346         * alloc.c (pdump_load):
10347         Fix compile warning under mswin.
10348
10349 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
10350
10351         * postgresql.c: Mule-ization, bug fixes.
10352         Use PG_CODING to encapsulate coding system name changes.
10353         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
10354         (pg-coding-system): Create.
10355
10356         (Fpq_conn_defaults): Mule-ize.
10357         (Fpq_connectdb): Mule-ize & bug fix.
10358         (Fpq_connect_start): Mule-ize.
10359         (Fpq_set_client_encoding): Mule-ize.
10360         (Fpq_finish): Document `DEAD' connection status.
10361         (Fpq_clear): Ditto.
10362         (Fpq_pgconn): Mule-ize.
10363         (Fpq_exec): Mule-ize & bug fix.
10364         (Fpq_send_query): Ditto.
10365         (Fpq_get_result): Ditto.
10366         (Fpq_res_status): Mule-ize.
10367         (Fpq_result_error_message): Mule-ize.
10368         (Fpq_ntuples): fix comments.
10369         (Fpq_fname): Mule-ize.
10370         (Fpq_fnumber): Mule-ize.
10371         (Fpq_ftype): fix comments.
10372         (Fpq_get_value): Mule-ize.
10373         (Fpq_cmd_status): Ditto.
10374         (Fpq_cmd_tuples): Ditto.
10375         (Fpq_oid_value): Ditto.
10376         (Fpq_notifies): Ditto.
10377         (Fpq_lo_import): Ditto.
10378         (Fpq_lo_export): Ditto.
10379         (Fpq_get_line): Ditto.
10380         (Fpq_put_line): Mule-ize and bug fix.
10381         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
10382
10383 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
10384
10385         * postgresql.c (vars_of_postgresql): Mule-ize.
10386         (Fpq_conn_defaults): Ditto.
10387
10388 2000-03-12  Ben Wing  <ben@xemacs.org>
10389
10390         * alloc.c (Fmake_byte_code):
10391         * alloc.c (debug_string_purity_print):
10392         * alloc.c (pdump_backtrace):
10393         * alloc.c (pdump_get_indirect_count):
10394         * alloc.c (pdump_register_sub):
10395         * alloc.c (pdump_register_object):
10396         * alloc.c (pdump_register_struct):
10397         * alloc.c (pdump_dump_data):
10398         * alloc.c (pdump_reloc_one):
10399         Minor cleanups.
10400
10401         * console-msw.c:
10402         * console-msw.c (GetConsoleHwnd):
10403         * console-msw.c (msw_hide_console):
10404         * console-msw.c (msw_show_console):
10405         * console-msw.c (msw_ensure_console_buffered):
10406         * console-msw.c (msw_output_console_string):
10407         * console-msw.c (console_type_create_mswindows):
10408
10409         a) Added functions to manipulate the console window for use with
10410         shell support.
10411
10412         b) Added support for writing text to the console, which is now
10413         used under Windows when xemacs is not being run non-interactively,
10414         to write text that would otherwise be destined for stdout because
10415         under these circumstances, text written to stdout tends to
10416         disappear and not be seen.
10417
10418         * console-msw.h:
10419         * event-Xt.c:
10420         * event-Xt.c (x_event_to_emacs_event):
10421         * event-Xt.c (describe_event_window):
10422         * events-mod.h (XEMACS_MOD_CONTROL):
10423         * events.c:
10424         * events.c (Fmake_event):
10425         * events.c (character_to_event):
10426         * events.c (event_to_character):
10427         * events.c (format_event_object):
10428         * events.c (Fevent_modifiers):
10429         * events.h:
10430         * events.h (struct key_data):
10431         * events.h (struct button_data):
10432         * events.h (struct misc_user_data):
10433         * frame-x.c (Fcde_start_drag_internal):
10434         * frame-x.c (Foffix_start_drag_internal):
10435         * gpmevent.c (Freceive_gpm_event):
10436         * keymap.c:
10437         * keymap.c (bucky_sym_to_bucky_bit):
10438         * keymap.c (control_meta_superify):
10439         * keymap.c (make_key_description):
10440         * keymap.c (keymap_lookup_directly):
10441         * keymap.c (create_bucky_submap):
10442         * keymap.c (keymap_store):
10443         * keymap.c (define_key_check_and_coerce_keysym):
10444         * keymap.c (define_key_parser):
10445         * keymap.c (define_key_alternate_name):
10446         * keymap.c (Fdefine_key):
10447         * keymap.c (raw_lookup_key_mapper):
10448         * keymap.c (struct map_keymap_unsorted_closure):
10449         * keymap.c (map_keymap_unsorted_mapper):
10450         * keymap.c (map_keymap_sort_predicate):
10451         * keymap.c (map_keymap_sorted):
10452         * keymap.c (accessible_keymaps_mapper_1):
10453         * keymap.c (where_is_recursive_mapper):
10454         * keymap.c (describe_map_mapper):
10455         * keymap.c (describe_map_sort_predicate):
10456         * keymap.c (describe_map):
10457         * keymap.c (complex_vars_of_keymap):
10458         And a number of other files, the key modifier preprocessor
10459         constants that xemacs uses have names that conflict with constants
10460         defined under MS Windows for other purposes, so they were renamed
10461         to begin with the prefix XEMACS_. The variables that hold such
10462         modifiers were changed to consistently be of type int to fix
10463         various compile warnings.
10464
10465         * console.c (complex_vars_of_console):
10466         * device.c:
10467         * device-msw.c:
10468         * device-msw.c (mswindows_finish_init_device):
10469         * device-msw.c (msw_get_workspace_coords):
10470         * device-msw.c (mswindows_device_system_metrics):
10471         and various other files, added support for a new
10472         device property called offset-workspace which returns the position
10473         of the upper left corner of the workspace area and goes along with
10474         the existing size-workspace property.
10475
10476         * dialog-msw.c:
10477         * dialog-msw.c (push_bufbyte_string_as_unicode):
10478         * dialog-msw.c (mswindows_popup_dialog_box):
10479         Added support for XEmacs-style accelerator specifications in
10480         button text.  Note: I didn't add support for this under X Windows,
10481         and somebody needs to do this.
10482
10483         * dialog.c:
10484         * dialog.c (Fpopup_dialog_box):
10485         Documented the support for accelerators that was just mentioned.
10486
10487         editfns.c (get_home_directory): Changed behavior under Windows
10488         when HOME not defined; former behavior was irretrievably broken.
10489
10490         * emacs.c:
10491         * emacs.c (main_1):
10492         * emacs.c (main):
10493         * minibuf.c (clear_echo_area_internal):
10494         * minibuf.c (echo_area_append):
10495         * print.c:
10496         * print.c (std_handle_out_external):
10497         * print.c (std_handle_out_va):
10498         * print.c (fatal):
10499         * print.c (write_string_to_stdio_stream):
10500         * print.c (output_string):
10501         * print.c (debug_print):
10502         * print.c (debug_backtrace):
10503         * print.c (debug_short_backtrace):
10504         Cleaned up the code that prints text to stdout so that this can be
10505         changed to output into a console window instead under MS Windows,
10506         as described above.
10507
10508         * eval.c:
10509         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
10510         * eval.c (internal_catch):
10511         * eval.c (unwind_to_catch):
10512         * eval.c (throw_or_bomb_out):
10513         * eval.c (condition_case_1):
10514         * eval.c (signal_1):
10515         * eval.c (check_error_state_sanity):
10516         * eval.c (call_with_suspended_errors_1):
10517         * eval.c (call_with_suspended_errors):
10518         * eval.c (reinit_vars_of_eval):
10519         Added code to catch throw loops and check for a pesky bug that may
10520         be gone now.
10521
10522         * event-msw.c:
10523         * event-msw.c (key_needs_default_processing_p):
10524         * event-msw.c (mswindows_wnd_proc):
10525         * event-msw.c (mswindows_modifier_state):
10526         * event-msw.c (emacs_mswindows_quit_p):
10527         * event-msw.c (vars_of_event_mswindows):
10528         a) Added support for using the alt key to select menu items as is
10529         standard under MS Windows.  This is controlled using the variable
10530         menu-accelerator-enabled, just like under X Windows.  There is an
10531         option on the options menu to turn this support on.  I really
10532         think that it should be on by default under Windows, but I'm not
10533         going to make this change yet.
10534
10535         b)  Added support for dynamic display size changes under Windows.
10536
10537         * event-stream.c:
10538         * event-stream.c (maybe_echo_keys):
10539         * event-stream.c (Fnext_event):
10540         * event-stream.c (command_builder_find_leaf):
10541         * event-stream.c (lookup_command_event):
10542         * event-stream.c (execute_command_event):
10543         * event-stream.c (pre_command_hook):
10544         * event-stream.c (post_command_hook):
10545         * event-stream.c (syms_of_event_stream):
10546         * event-stream.c (vars_of_event_stream):
10547         * event-stream.c (complex_vars_of_event_stream):
10548         * events.h (struct command_builder):
10549
10550         a) Tried to clean up a little bit the horribly written x-specific
10551         accelerator code that crept into this file.  I moved this code
10552         into menubar-x.c where it belongs. I also needed to move the
10553         command builder structure into the file events.h because it is
10554         accessed directly by this accelerator code.  What I didn't do, but
10555         which should be done at some point, is to properly abstract this
10556         code using device methods instead of the kludgy way that it
10557         currently hooks into the event code.
10558
10559         b) Added the lisp variables this-command-properties and
10560         last-command- properties, which should be used to synchronize two
10561         adjacent commands in preference to playing games with the variable
10562         this-command, which is typically what happens.
10563
10564         c) Added some slightly nasty code to hook into the lisp support
10565         for shifted- motion-key selection.  This is actually necessary for
10566         somewhat complicated reasons, which are described in
10567         simple.el. (NB: I think the proper thing would be to have the code
10568         that calls the pre and post command hooks also call out to generic
10569         lisp functions in simple.el, where all built-in stuff could be
10570         added.  I will think about this more.)
10571
10572         * event-unixoid.c (poll_fds_for_input):
10573         * lread.c (readchar):
10574         * redisplay-tty.c (tty_clear_frame):
10575         * redisplay-x.c (x_get_gc):
10576         * signal.c (interrupt_signal):
10577         And a whole bunch of other files: fixed up places that printed
10578         directly to stderr to instead call the function stderr_out so that
10579         the changes I made under Windows work correctly.
10580
10581         * filemode.c (mode_string):
10582         Warning fixes.
10583
10584         * frame-msw.c:
10585         * frame-msw.c (mswindows_size_frame_internal):
10586         Fixed the computation of frame size and position to keep the frame
10587         within the workspace area, rather than within the physical
10588         dimensions of the screen, so that the frame doesn't overlap window
10589         manager decorations, such as the start menu and toolbar, typically
10590         at the bottom of the screen.
10591
10592         * frame.c (vars_of_frame):
10593         Changed the default frame title format under MS Windows to consist
10594         of buffername-XEmacs, which is standard under MS Windows.  I think
10595         it might be a good idea to change this everywhere because I think
10596         it is superior to the current frame title format, but this is the
10597         kind of change that is likely to cause some people to get annoyed,
10598         so I'm not making it.
10599
10600         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
10601
10602         * gui-msw.c (mswindows_handle_gui_wm_command):
10603         Fixed compile warnings.
10604
10605         * gui-x.c:
10606         * gui-x.c (strdup_and_add_accel):
10607         * gui-x.c (button_item_to_widget_value):
10608         * gui-x.h:
10609         Added code to automatically put an accelerator onto the beginning
10610         of menu items that don't have one as is now the standard, and is
10611         described more later.  Also fixed things so that the menu item
10612         name can be an evaluated expression, again a new standard.
10613
10614         * gui.c:
10615         * gui.c (gui_item_add_keyval_pair):
10616         * gui.c (make_gui_item_from_keywords_internal):
10617         * gui.c (gui_add_item_keywords_to_plist):
10618         * gui.c (gui_item_accelerator):
10619         * gui.c (gui_name_accelerator):
10620         * gui.c (gui_item_included_p):
10621         * gui.c (gui_item_display_flush_left):
10622         * gui.c (gui_item_display_flush_right):
10623         * gui.c (parse_gui_item_tree_item):
10624         * gui.c (parse_gui_item_tree_children):
10625         * gui.c (parse_gui_item_tree_list):
10626         Mule-ized.  Cleanup.  GCPRO addition.
10627
10628         * line-number.c (buffer_line_number):
10629         * lisp.h:
10630         * lisp.h (EMACS_INT_MAX):
10631         Added the manifest constant EMACS_INT_MIN corresponding to the
10632         existing constant EMACS_INT_MAX.  This is partially to fix compile
10633         warnings under Windows, and partly for cleanliness.
10634
10635         * menubar-msw.c:
10636         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
10637         * menubar-msw.c (msw_translate_menu_or_dialog_item):
10638         * menubar-msw.c (displayable_menu_item):
10639         * menubar-msw.c (populate_menu_add_item):
10640         * menubar-msw.c (populate_or_checksum_helper):
10641         * menubar-msw.c (populate_menu):
10642         * menubar-msw.c (update_frame_menubar_maybe):
10643         * menubar-msw.c (prune_menubar):
10644         * menubar-msw.c (msw_char_is_accelerator):
10645         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
10646         * menubar-msw.c (mswindows_handle_wm_command):
10647         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
10648         * menubar-msw.c (mswindows_handle_wm_initmenu):
10649         * menubar-msw.c (mswindows_update_frame_menubars):
10650         * menubar-msw.c (mswindows_free_frame_menubars):
10651         * menubar-msw.c (mswindows_popup_menu):
10652         Fixed a bug in handling accelerators where an extra character
10653         would be displayed in the menu item.  Also generalized the
10654         function displayable_menu_item because it is now used by the
10655         dialog box code as well.  And finally, added code in the functions
10656         that create the menubar to extract a list of accelerators for the
10657         top level menubar, which is used in the event code to determine
10658         whether a particular alt-key combination should be used to invoke
10659         a menu item, or should be passed through to access the standard
10660         XEmacs keymap binding for this key combination.
10661
10662         Much needed GCPROing.
10663
10664         * menubar-x.c:
10665         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10666         * menubar-x.c (menu_item_descriptor_to_widget_value):
10667         * menubar-x.c (restore_in_menu_callback):
10668         * menubar-x.c (x_popup_menu):
10669         * menubar-x.c (menu_move_up):
10670         * menubar-x.c (menu_move_down):
10671         * menubar-x.c (menu_move_left):
10672         * menubar-x.c (menu_move_right):
10673         * menubar-x.c (menu_select_item):
10674         * menubar-x.c (command_builder_operate_menu_accelerator):
10675         * menubar-x.c (menu_accelerator_junk_on_error):
10676         * menubar-x.c (command_builder_find_menu_accelerator):
10677         * menubar-x.c (Faccelerate_menu):
10678         * menubar.h:
10679         Moved a whole bunch of code here that was previously in
10680         event-stream.c as described above.  There is also code connected
10681         to the new standard of adding an accelerator to the beginning of
10682         menu items that don't have one as described above and below.
10683
10684         * menubar.c:
10685         * menubar.c (menu_parse_submenu_keywords):
10686         * menubar.c (Fmenu_find_real_submenu):
10687         * menubar.c (Fnormalize_menu_item_name):
10688         * menubar.c (syms_of_menubar):
10689         * menubar.c (vars_of_menubar):
10690         * menubar.c (complex_vars_of_menubar):
10691
10692         a) Cleaned up a bunch of documentation and improved it.
10693
10694         b) XEmacs now automatically adds an accelerator onto the beginning
10695         of any menu items that don't have one.  I did this because there
10696         will inevitably be some menu items on the main menubar that don't
10697         have accelerators on them because the package that adds that
10698         particular menu item hasn't yet been fixed up to have accelerators
10699         in them and it looked rather strange to have some items with and
10700         some items without accelerators, especially since even in items
10701         without accelerators, you can, at least under windows, still
10702         access the item through an accelerator corresponding to the first
10703         character in the item's name.  If people don't like this behavior,
10704         I can add a variable to turn it off optionally, but I'm not sure
10705         this is a good idea because we really do need to have accelerators
10706         on all of the menu items, and if a package doesn't like the
10707         accelerators being put on the first character, then it should put
10708         the accelerators where they belong.
10709
10710         c) I made a behavior change, which is that the descriptor that
10711         specifies the text of the menu item, which formerly was just a
10712         string, can now also be an evaluated expression.  This makes this
10713         descriptor parallel with all of the others, which could also be
10714         evaluated expressions.  This also obviates the need for the
10715         keyword :label, which was previously listed in the documentation
10716         as unimplemented, and which was for the same purpose.
10717
10718         d) GCPROing.
10719
10720         * ntproc.c:
10721         * ntproc.c (new_child):
10722         * ntproc.c (sys_spawnve):
10723         * ntproc.c (find_child_console):
10724         * ntproc.c (sys_kill):
10725         Fixed compile warnings.  By the way, this file should really go
10726         away entirely, and this will happen as soon as Kirill makes his
10727         final round of process cleanups, which affect the function
10728         call-process.
10729
10730         * process-nt.c:
10731         * process-nt.c (struct nt_process_data):
10732         * process-nt.c (find_process_from_pid):
10733         * process-nt.c (send_signal_the_nt_way):
10734         * process-nt.c (enable_child_signals):
10735         * process-nt.c (find_child_console):
10736         * process-nt.c (send_signal_the_95_way):
10737         * process-nt.c (nt_finalize_process_data):
10738         * process-nt.c (ensure_console_window_exists):
10739         * process-nt.c (nt_create_process):
10740         * process-nt.c (nt_kill_child_process):
10741         * process-nt.c (nt_kill_process_by_pid):
10742         * process-nt.c (nt_open_network_stream):
10743         * process-nt.c (vars_of_process_nt):
10744         Copied over code from Emacs 20.5 to correctly send signals to sub-
10745         processes under Windows 95.  Also added code to automatically
10746         create and hide console window when a sub-process is created under
10747         Windows 95, which obviates the need for the separate runemacs.exe
10748         executable, and finally implemented some variables that were
10749         implemented in Emacs 20.5, but previously not in XEmacs.  These
10750         include mswindows- start-process-share-console and
10751         mswindows-start-process-inherit-error-mode. (Both of these only
10752         apply to Windows 95.)
10753
10754         * regex.c (regex_compile): Fixed a compile warning.
10755
10756         * select-msw.c:
10757         * select-msw.c (mswindows_own_selection):
10758         * select-msw.c (mswindows_get_foreign_selection):
10759         * select-msw.c (mswindows_disown_selection):
10760         * select-msw.c (console_type_create_select_mswindows):
10761         * select-msw.c (syms_of_select_mswindows):
10762         Cleaned up the file and implemented the device method
10763         selection_exists_p, which had accidentally been left out.  Also
10764         removed four lisp functions that were remnants from before the
10765         time when the selection code was properly device abstracted.
10766         These functions are no longer needed because there are generic
10767         equivalents, and because they were added recently and don't exist
10768         in FSF Emacs, I don't think there's any problem with just deleting
10769         them.
10770
10771         * sysdep.c:
10772         * sysdep.c (sys_subshell):
10773         Fixed a compile warning, although in this case there's probably
10774         something wrong with this code, and it ought to be looked into
10775         more thoroughly by somebody who understands it.
10776
10777         * window.c:
10778         * window.c (Fwindow_text_area_height):
10779         * window.c (Fwindow_width):
10780         * window.c (Fwindow_full_width):
10781         * window.c (Fwindow_pixel_width):
10782         * window.c (debug_print_window):
10783         * window.c (syms_of_window):
10784         Added functions window-text-area-height and window-full-width,
10785         which are functions for returning various width and height
10786         characteristics of a window. (One of these functions is necessary
10787         for making the file dialog box work correctly, and the other one
10788         was added for completeness.)  Also added a table to the
10789         documentation for window-height which describes the entire scheme
10790         for accessing width and height characteristics of a window.
10791
10792 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10793
10794         * nt.c (fstat): Added a comment for another problem with
10795         non-encapsulated [f]stat(), reported by Adrian Aichner
10796         <aichner@ecf.teradyne.com>.
10797
10798 2000-03-11  Andy Piper  <andy@xemacs.org>
10799
10800         * window.c (make_dummy_parent): initialize subwindow instance
10801         cache.
10802         (Fset_window_configuration): zero extent_modiff.
10803
10804 2000-03-10  Andy Piper  <andy@xemacs.org>
10805
10806         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
10807         more changes can be triggered.
10808         (Fredisplay_frame): ditto.
10809         (Fredraw_device): ditto.
10810         (Fredisplay_device): ditto.
10811         (redisplay_frame): make non-static.
10812         (redisplay_frame): call update_frame_gutter_geometry outside of
10813         display proper.
10814
10815         * gutter.h: declare update_frame_gutter_geometry.
10816
10817         * redisplay.h: declare redisplay_frame.
10818
10819         * gutter.c (update_frame_gutter_geometry): move geometry changes
10820         in update_frame_gutters here. Geometry changes can only occur
10821         outside of redisplay.
10822         (update_frame_gutters): remove geometry change code.
10823         (Fredisplay_gutter_area): make sure that we are in display when we
10824         update and that we have flushed any size changes.
10825
10826 2000-03-11  Andy Piper  <andy@xemacs.org>
10827
10828         * alloc.c (pdump_dump_data): remove i & count shadows.
10829
10830 2000-02-27  Mike Alexander  <mta@arbortext.com>
10831
10832         * sysdep.h: Declare pdump_read_file
10833
10834         * sysdep.c (pdump_read_file): New function
10835
10836         * alloc.c (pdump_load): Call pdump_read_file to get the portable
10837         dump data
10838
10839 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
10840
10841         * lrecord.h: add `lrecord_type_pgsetenv'.
10842
10843 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
10844
10845         * symsinit.h: declare (vars|syms)_of* functions.
10846         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
10847
10848 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
10849
10850         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
10851
10852         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
10853         GCCs.
10854
10855         * emacs.c (main_1): Call postgres initialization code.
10856
10857         * postgresql.h: New file.  PostgreSQL RDBMS support.
10858         * postgresql.c: New file.
10859
10860 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
10861
10862         * redisplay-output.c (redisplay_output_display_block): Disable
10863         redundant code.
10864
10865 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
10866
10867         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
10868         (Fcanna_henkan_next): Ditto.
10869         (Fcanna_bunsetu_henkou): Ditto.
10870         (Fcanna_henkan_kakutei): Ditto.
10871         (Fcanna_henkan_end): Ditto.
10872         (Fcanna_henkan_quit): Ditto.
10873         (Fcanna_henkan_next): Set retun value correctly.
10874         (c2mu): Use unsigned char instead of signed char.
10875
10876 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
10877
10878         * emacs.c (main_1): Always call syms_of_gui.
10879         * inline.c: include gui.h
10880
10881 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
10882
10883         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
10884         converted to Lisp_Object.
10885         (Qtop_bottom): New variable.
10886         (syms_of_redisplay): Initialize it.
10887         * redisplay.h (Vvisible_bell): Ditto.
10888         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
10889         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
10890         only flash top and bottom.
10891
10892 2000-03-08  Andy Piper  <andy@xemacs.org>
10893
10894         * buffer.c (Frename_buffer): record new buffer name the right way.
10895
10896 2000-03-08  Andy Piper  <andy@xemacs.org>
10897
10898         * glyphs.c (update_subwindow): increase hash depth so that widget
10899         items get picked up properly.
10900
10901         * redisplay-output.c (compare_runes): increase hash depth so that
10902         widget items get picked up properly.
10903
10904 2000-03-08  Andy Piper  <andy@xemacs.org>
10905
10906         * gutter.c (output_gutter): add some debug.
10907
10908         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
10909         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
10910         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
10911
10912         * redisplay-output.c (compare_runes): use display_hash to
10913         determine if glyphs really are not the same.
10914
10915         * glyphs.c (update_subwindow): check display_hash to see if
10916         anything really needs to be updated. If not then do
10917         nothing. Record the display_hash after updating.
10918         (image_instance_equal): compare the image_instance face also.
10919
10920 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
10921
10922         * redisplay.h: Fix comment style.
10923
10924 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10925
10926         * consle-msw.h (struct mswindows_frame):
10927         Added new member paint_pending to indicate whether a WM_PAINT
10928         magic event has been queued for this frame.
10929
10930         * event-msw.c (mswindows_drain_windows_queue):
10931         Don't queue a WM_PAINT magic event if one is already queued.
10932         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
10933
10934         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
10935
10936 2000-03-07  Didier Verna  <didier@xemacs.org>
10937
10938         * dired.c: #include `regex.h' after `sysfile.h'.
10939
10940 2000-03-06  Martin Buchholz  <martin@xemacs.org>
10941
10942         * sound.c (init_nas_sound): Fix compiler warning.
10943
10944         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
10945         (FREE_STRUCT_P):
10946         (MARK_STRUCT_AS_FREE):
10947         (MARK_STRUCT_AS_NOT_FREE):
10948         Make `gcc -fstrict-aliasing' work properly.
10949
10950 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10951
10952         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
10953         (mswindows_delete_device): Call CoUnnitialize().
10954
10955         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
10956
10957 2000-02-25    <CraigL@DyCon.com>
10958
10959         * process-nt.c: MinGW now has <shellapi.h>, but still needs
10960         <errno.h>.
10961
10962         * sysdep.c: This extern declaration for environ prevents MinGW
10963         from finding the variable in CRTDLL.DLL.
10964
10965         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
10966         windows headers.
10967         (SHGFI_EXETYPE): ..
10968         (WM_MOUSEWHEEL): ..
10969         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
10970         definitions.
10971         (MMRESULT): Removed, now defined in cygwin's windows headers.
10972         (TIMECAPS): ..
10973         (uid_t,gid_t,pid_t,ssize_t): ..
10974         (_timeb): Removed, MinGW defines both _timeb and timeb.
10975         (HAVE_H_ERRNO): Added.
10976         (HAVE_TZNAME): Added, configure is not detecting this.
10977
10978 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
10979
10980         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
10981         * syntax.c (syntax_match): Use it.
10982
10983         * cmds.c: Import auto-fill-chars from FSF Emacs.
10984         (Vauto_fill_chars): New variables.
10985         (internal_self_insert): Check Vauto_fill_chars.
10986         (vars_of_cmds):
10987         Declare auto-fill-chars as a Lisp variable and initialize it.
10988
10989 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10990
10991         * fileio.c (Fmake_symbolic_link):
10992         (Ffile_symlink_p):
10993         Run handlers even if local machine doesn't have symlinks.
10994
10995 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10996
10997         * event-msw.c (mswindows_drain_windows_queue):
10998         Don't generate paint magic events for non-XEmacs frames.
10999
11000 2000-03-05  Andy Piper  <andy@xemacs.org>
11001
11002         * redisplay.c (redisplay_frame): generate_displayable_area and
11003         friends assumes that we are not in GC, we therefore have to make
11004         sure that this doesn't happen.
11005
11006         * gutter.c (calculate_gutter_size): generate_displayable_area
11007         assumes that we are not in GC, we therefore have to make sure that
11008         this doesn't happen.
11009
11010 2000-03-05  Martin Buchholz  <martin@xemacs.org>
11011
11012         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
11013
11014 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
11015
11016         * redisplay.c (regenerate_window): Make sure we set a sane value
11017         for end_pos even if we jump out of the loop.
11018         (regenerate_window): Answer Ben's question :-).
11019         (start_end_of_last_line): Add may_error argument.
11020         (start_of_last_line):
11021         (end_of_last_line): Pass may_error = 0.
11022         (end_of_last_line_may_error): New function.
11023         (pixel_to_glyph_translation): Use it, so we don't crash in
11024         event_to_glyph.
11025
11026 2000-03-04  Andy Piper  <andy@xemacs.org>
11027
11028         * window.h (struct window): add gutter_extent_modiff.
11029
11030         * window.c (allocate_window): zero out gutter_extent_modiff.
11031
11032         * redisplay.h: declare sync_display_line_structs.
11033
11034         * redisplay.c (add_glyph_rune): add a better comment.
11035
11036         * redisplay-output.c (sync_display_line_structs): made non-static.
11037         (compare_runes): remove unneccesary glyph cachel access.
11038
11039         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
11040
11041         * gutter.c (output_gutter): don't output the gutter if extent
11042         changes only involve extents in buffers. use 4 sets of display
11043         lines.
11044         (gutter_extent_signal_changed_region_maybe): new function. Mark
11045         extents in gutters as changed.
11046         (update_frame_gutters): use 4 sets of display lines.
11047         (reset_gutter_display_lines): ditto.
11048         (free_frame_gutters): ditto.
11049         (redraw_exposed_gutter): force output of gutters.
11050
11051         * frame.h (struct frame): add 4 sets of gutter display lines.
11052
11053         * extents.c: (extent_changed_for_redisplay): signal changes to
11054         extents in strings in the gutter as well as extents in buffers.
11055
11056 2000-03-02  Andy Piper  <andy@xemacs.org>
11057
11058         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
11059
11060         * frame.c (Fmake_frame): make sure the gutters get initialized
11061         after the frame is visible.
11062         (set_frame_selected_window): re-arrange compilation macros a
11063         little.
11064         (change_frame_size_1): mark gutters changed.
11065
11066         * device.c (Fset_device_class): mark gutters changed.
11067
11068 2000-03-01  Andy Piper  <andy@xemacs.org>
11069
11070         * window.c (window_top_frame_gutter_height): deleted.
11071         (window_bottom_frame_gutter_height): ditto.
11072         (window_left_frame_gutter_height): ditto.
11073         (window_right_frame_gutter_height): ditto.
11074         (window_top_gutter_height): don't use them.
11075         (window_bottom_gutter_height): ditto.
11076         (window_left_gutter_width): ditto.
11077         (window_right_gutter_width): ditto.
11078         (Fsplit_window): ditto.
11079         (Fwindow_pixel_edges): don't use border dimensions here.
11080
11081         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
11082         (update_scrollbar_instance): ditto.
11083
11084         * redisplay.c (generate_modeline): don't take gutters into account.
11085         (generate_modeline): ditto.
11086         (redisplay_frame): small gutter display optimization.
11087
11088         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
11089
11090         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
11091         gutters into account.
11092
11093         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
11094         for window position and type.
11095
11096         * gutter.c (get_gutter_coords): fix for frame gutters.
11097         (update_frame_gutters): update frame geometry if the gutters have
11098         changed.
11099         (init_frame_gutters): record current gutter geometries.
11100
11101         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
11102         var.
11103         (mswindows_widget_instantiate): ditto.
11104
11105         * frame.h (struct frame): add current_gutter_bounds.
11106
11107         * frame.c (change_frame_size_1): position window and minibuffer
11108         appropriately taking into account the frame gutters.
11109
11110         * frame-x.c: (x_initialize_frame_size): take into account the
11111         frame gutters.
11112
11113 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
11114
11115         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
11116
11117 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
11118
11119         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
11120
11121 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
11122
11123         * file-coding.c (reset_decoding_stream): Clear previous
11124         detection state when autodetect.
11125
11126 2000-02-29  Didier Verna  <didier@xemacs.org>
11127
11128         * extents.c (set_extent_glyph_1): don't require extents to be
11129         attached.
11130
11131 2000-02-27  Andy Piper  <andy@xemacs.org>
11132
11133         * gutter.c (Fset_default_gutter_position): don't default left and
11134         right gutter visibility to t.
11135         (Fset_default_gutter_position): run
11136         default-gutter-position-changed-hook.
11137         (syms_of_gutter): add default-gutter-position-changed-hook.
11138
11139 2000-02-26  Andy Piper  <andy@xemacs.org>
11140
11141         * specifier.c (Fmake_specifier): add gutter references.
11142
11143         * gutter.h (RAW_WINDOW_GUTTER): new macro.
11144
11145         * lisp.h: declare Fvalid_plist_p.
11146
11147         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
11148         as changed.
11149         (default_gutter_visible_p_changed_in_window): invalidate gutter as
11150         well as its visibility so that it gets reconstructed.
11151         (construct_window_gutter_spec): new function. Construct a string
11152         to be displayed in the gutter from a plist of strings. Take care
11153         to only use elements that are declared as visible.
11154         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
11155         WINDOW_GUTTER.
11156         (gutter_validate): allow plists of strings in the specifier.
11157         (gutter_specs_changed): construct the real_gutter from the gutter
11158         specs using construct_window_gutter_spec.
11159         (gutter_visible_validate): gutter-visible is a new specifier type.
11160         (Fgutter_visible_specifier_p): new function for the new specifier.
11161         (syms_of_gutter): declare gutter-visible and
11162         Fgutter_visible_specifier_p.
11163         (specifier_type_create_gutter): intitalize new gutter-visible
11164         specifier.
11165         (reinit_specifier_type_create_gutter): ditto.
11166         (specifier_vars_of_gutter): use new specifier type for gutter
11167         visibility.
11168         (init_frame_gutters): construct real_gutter correctly.
11169         (Fgutter_specifier_p): beef up documentation.
11170         (Fgutter_size_specifier_p): ditto.
11171
11172         * winslots.h: add real_gutter slots.
11173
11174 2000-02-25  Andy Piper  <andy@xemacs.org>
11175
11176         * device-msw.c: Be kind to older cygwin versions. From Raymond
11177         Toy <toy@rtp.ericsson.se>.
11178
11179         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
11180         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
11181
11182 2000-02-25  Martin Buchholz  <martin@xemacs.org>
11183
11184         * elhash.c (MARK_OBJ): Practice macro hygiene.
11185
11186 2000-02-24  Martin Buchholz  <martin@xemacs.org>
11187
11188         * miscplay.c: s/__inline__/inline/g;
11189         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
11190         (get_device_compdc): INLINE ==> static inline
11191         * *.[ch]: Change INLINE to INLINE_HEADER globally.
11192         find -name '*.h' | \
11193         xargs global-replace \
11194         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
11195
11196 2000-02-25  Andy Piper  <andy@xemacs.org>
11197
11198         * window.c (window_top_frame_gutter_height): new function.
11199         (window_top_window_gutter_height): ditto.
11200         (window_top_gutter_height): use them.
11201         (window_bottom_frame_gutter_height): new function.
11202         (window_bottom_window_gutter_height): ditto.
11203         (window_bottom_gutter_height): use them.
11204         (window_left_window_gutter_width): new function.
11205         (window_left_frame_gutter_width): ditto.
11206         (window_left_gutter_width): use them.
11207         (window_right_window_gutter_width): new function.
11208         (window_right_frame_gutter_width): ditto.
11209         (window_right_gutter_width): use them.
11210         (window_pixel_height): new function. calulate window pixel height
11211         with frame gutter involvement.
11212         (Fsplit_window): calculate new sizes taking frame gutters into
11213         account.
11214         (window_char_height_to_pixel_height): don't include frame gutters.
11215         (window_char_height): use window_pixel_height.
11216         (window_pixheight): rename from window_pixel_height.
11217         (change_window_height): use it.
11218         (window_pixel_height_to_char_height): don't include frame gutters.
11219         (window_char_width_to_pixel_width): ditto.
11220
11221 2000-02-25  Andy Piper  <andy@xemacs.org>
11222
11223         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
11224         if it is.
11225
11226 2000-02-24  Martin Buchholz  <martin@xemacs.org>
11227
11228         * alloc.c (staticpro):
11229         (staticpro_nodump):
11230         (dumpstruct):
11231         (dumpopaque):
11232         (pdump_wire):
11233         (pdump_wire_list):
11234         (compact_string_chars):
11235         (pdump_dump_wired):
11236         Convert:  if (foo) abort();  ==>  assert (! foo);
11237
11238         * eldap.c (Fldap_search_basic):
11239         (Fldap_add):
11240         (Fldap_modify):
11241         (Fldap_delete):
11242         Fix compiler warnings, and possible crashes if (random) return
11243         value were to be used.
11244
11245 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11246
11247         * device-msw.c: Workaround ResetDC failure.
11248
11249         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
11250         applying a devmode.
11251
11252         * redisplay-msw.c (get_frame_dc): Added start_page_p.
11253         (mswindows_text_width): Do not start printer page.
11254
11255         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
11256
11257         * glyphs-msw.c: Added image methods to msprinter console and
11258         msprinter-specific image instantiation.
11259
11260 2000-02-20  Mike Alexander  <mta@arbortext.com>
11261
11262         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
11263         to avoid crashes when selection-sets-clipboard is on
11264         (mswindows_own_selection): ditto
11265
11266 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11267
11268         * glyphs-msw.c:
11269         * redisplay-msw.c (get_frame_dc):
11270         (get_frame_compdc):
11271         * console-msw.h:
11272         * device-msw.c (mswindows_init_device):
11273         (mswindows_delete_device):
11274         (msprinter_init_device):
11275         (msprinter_delete_device):
11276         * frame-msw.c (mswindows_init_frame_1):
11277         (mswindows_delete_frame):
11278         (msprinter_init_frame_3):
11279         (msprinter_delete_frame): Move compatible DC to device object from
11280         frame object, for both mswindows and msprinter. Only one at a time
11281         is needed, it is a real waste to have one per frame!
11282
11283 2000-02-23  Andy Piper  <andy@xemacs.org>
11284
11285         * glyphs.c: add dynamic width and height elements.
11286         (image_instance_equal): ditto.
11287
11288         * glyphs-widget.c (widget_query_geometry): calculate width and
11289         height dynamically if required.
11290         (initialize_widget_image_instance): initialize dynamic dimensions.
11291         (widget_instantiate): pick-up dynamic dimensions.
11292
11293         * glyphs.h (struct Lisp_Image_Instance): add width and height for
11294         dynamic determination. Add appropriate macros.
11295
11296         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
11297         dimensions safe.
11298         (WINDOW_GUTTER_SIZE): ditto.
11299         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
11300
11301         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
11302         inline.
11303         (get_frame_dc): ditto.
11304
11305         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
11306         here.
11307
11308 2000-02-23  Martin Buchholz <martin@xemacs.org>
11309
11310         * XEmacs 21.2.31 is released.
11311
11312 2000-02-22  Ben Wing <ben@xemacs.org>
11313
11314         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
11315
11316 2000-02-22  Andy Piper  <andy@xemacs.org>
11317
11318         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
11319
11320 2000-02-21  Mike Sperber <mike@xemacs.org>
11321
11322         * .dbxrc:
11323         * .gdbinit:
11324         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
11325         variables.
11326
11327 2000-02-21  Mike Sperber <mike@xemacs.org>
11328
11329         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
11330
11331 2000-02-21  Martin Buchholz <martin@xemacs.org>
11332
11333         * XEmacs 21.2.30 is released.
11334
11335 2000-02-20  Martin Buchholz  <martin@xemacs.org>
11336
11337         Performance hacking.
11338         * *.c (syms_of_*):
11339         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
11340         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
11341         * emacs.c (main_1):
11342         * lisp.h (DEFUN):
11343         * console.c (DEFVAR_CONSOLE_LOCAL_1):
11344         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
11345         * symeval.h (DEFVAR_SYMVAL_FWD):
11346         * symbols.c (guts_of_unbound_marker):
11347         Make all c_readonly objects also lisp_readonly and marked for life.
11348         * lrecord.h (struct lrecord_implementation):
11349         Document flags better.
11350         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
11351         * lrecord.h (DECLARE_LRECORD):
11352         * lrecord.h (XSETRECORD):
11353         * lrecord.h (RECORDP):
11354         * lrecord.h (RECORD_TYPEP):
11355         * lrecord.h (RECORD_MARKER): New.
11356         * lrecord.h (error_check_*):
11357         * lrecord.h (CONCHECK_NONRECORD):
11358         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
11359         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
11360         * lrecord.h (set_lheader_implementation):
11361         * lrecord.h (enum lrecord_type): New.
11362         * symeval.h (SYMBOL_VALUE_MAGIC_P):
11363         * alloc.c (disksave_object_finalization_1):
11364         * alloc.c (mark_object):
11365         * alloc.c (lrecord_type_index):
11366         * alloc.c (tick_lcrecord_stats):
11367         * alloc.c (Fgarbage_collect):
11368         * alloc.c (init_alloc_once_early):
11369         * alloc.c (pdump_load):
11370         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
11371         * alloc.c (lrecord_type_index): Delete.
11372         Make lisp object type indexes be constant.
11373           Makes (byte-compile) 5% faster.
11374         Put all marker functions into their own array.
11375           Makes (garbage-collect) 5% faster.
11376         Optimize SYMBOL_VALUE_MAGIC_P.
11377           Makes (byte-compile) 2-3% faster.
11378         * config.h.in (gc_checking_assert): New.
11379         * alloc.c: Use gc_checking_assert().
11380         * .dbxrc: Make compatible with new object type implementation.
11381         * .gdbinit: Make compatible with new object type implementation.
11382         * alloc.c: Delete all symbols defined only for debugging, such as
11383         Lisp_Type_Vector and lrecord_charset.
11384
11385 2000-02-21  Andy Piper  <andy@xemacs.org>
11386
11387         * gui-msw.c (Fmswindows_shell_execute): fix file location
11388         problems.
11389
11390         * buffer.c (Fkill_buffer): remove buffer from alist buffer
11391         unshowing so that set_window_buffer doesn't undo
11392         kill_buffer_hook's hard work.
11393
11394         * glyphs-widget.c (tab_control_query_geometry): don't count the
11395         first item when calculating geometry.
11396
11397         * glyphs.c (map_subwindow): remove redundant code.
11398         (update_frame_subwindows): be more circumspect about when to
11399         update subwindows.
11400
11401         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
11402         when items haven't changed. Update faces if faces have changed as
11403         well as just the widget face.
11404         (x_tab_control_update): Update faces if faces have changed as well
11405         as just the widget face.
11406
11407 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11408
11409         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
11410         registration.
11411         (build_syscolor_string): Use mswindows_color_to_string to try to
11412         get a named color.
11413         (mswindows_device_system_metrics): Reverse the foreground and
11414         background colors so that they match the documentation.
11415
11416         * objects-msw.c: (mswindows_X_color_map): tweak some values so
11417         they match the default Windows palette.
11418         (mswindows_color_to_string): New function.
11419
11420 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11421
11422         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
11423
11424 2000-02-18  Olivier Galibert  <galibert@pobox.com>
11425
11426         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
11427         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
11428
11429         * symbols.c (init_symbols_once_early): Removed obsolete
11430         DATA_SEG_BITS related kludge.
11431         (defvar_magic): Ditto.
11432
11433         * malloc.c: Removed obsolete DATA_SEG_BITS
11434         * ralloc.c: Ditto.
11435         * mem-limits.h: Ditto.
11436
11437         * Makefile.in.in: Removed obsolete HAVE_SHM
11438         * emacs.c: Ditto.
11439
11440 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11441
11442         *  device-msw.c (mswindows_delete_device): Free DDE string
11443         handles.
11444
11445 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11446
11447         * keymap.c (get_keyelt):
11448         * unexnt.c (unexec):
11449         * vm-limit.c (memory_warnings):
11450         * ntheap.c (recreate_heap):
11451         * ntheap.h (UNINIT_PTR):
11452         * select-msw.c (Fmswindows_get_clipboard):
11453         (Fmswindows_set_clipboard):
11454         * objects-msw.h (MSWINDOWS_BAD_HFONT):
11455         * objects-msw.c:
11456         * menubar-msw.c (displayable_menu_item):
11457         * glyphs-msw.c:
11458         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
11459         * sysdep.c (sys_subshell):
11460         * process-nt.c (nt_create_process):
11461         * nt.c (normalize_filename):
11462         (dostounix_filename):
11463         (unixtodos_filename):
11464         * ntproc.c (win32_executable_type):
11465         * ntplay.c (play_sound_data_1):
11466         (play_sound_file):
11467         * editfns.c (get_home_directory):
11468         * event-msw.c (struct winsock_stream):
11469         (mswindows_dde_callback):
11470         * device-msw.c (msprinter_init_device):
11471         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
11472
11473         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
11474         mswindows_clear_toolbar were swapped!
11475
11476         * objects-msw.c:(colormap_t):
11477         (fontmap_t):
11478         * emacs.c (struct standard_args): Fixed const jumble.
11479
11480         * glyphs-widget.c (update_widget): Fixed comparison notation.
11481
11482         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
11483
11484         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
11485         __declspec(noreturn) syntax.
11486
11487 2000-02-19  Martin Buchholz  <martin@xemacs.org>
11488
11489         * eldap.c (Fldap_open):
11490         (Fldap_search_basic):
11491         (Fldap_add):
11492         (Fldap_modify):
11493         Use new coding system conversion macros.
11494
11495 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
11496
11497         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
11498
11499 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
11500
11501         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
11502         (Fldap_add, Fldap_modify, Fldap_delete): New functions
11503
11504         * eldap.c (Qadd, Qreplace): New constant symbols
11505         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
11506         interruptions by XEmacs signals
11507         Remove unnecessary calls to slow_down_interrupts and
11508         speed_up_interrupts
11509         (Fldap_search_basic): Renamed from Fldap_search_internal
11510         Added new optional parameter VERBOSE that triggers the
11511         display of progress messages
11512         Remove unnecessary calls to slow_down_interrupts and
11513         speed_up_interrupts
11514         LDAP result code analysis rewritten
11515         (Fldap_add, Fldap_modify, Fldap_delete): New functions
11516         (syms_of_eldap): Define the new symbols and functions
11517
11518
11519 2000-02-17  Martin Buchholz  <martin@xemacs.org>
11520
11521         * realpath.c: Determine PATH_MAX maximally portably.
11522
11523         * insdel.c (bytecount_to_charcount): Optimize.
11524         The function used to be optimized for entirely ASCII sequences.
11525         Now it is optimized for successive characters from the same
11526         charset.  This also wins big for _mostly_ ASCII sequences.
11527
11528         * fileio.c (Ffile_truename): convert return from realpath() using
11529         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
11530         - Rewrite GCPROing slightly.
11531
11532         * sysdep.c (sys_open): Do filename conversion, like all other
11533         sys_* functions.  Fixes bug:
11534         (let ((file-name-coding-system 'iso-8859-2))
11535            (write-region x y latin2-name))
11536         ==> writes filename using internal encoding.
11537
11538 2000-02-18  Martin Buchholz  <martin@xemacs.org>
11539
11540         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
11541         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
11542         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
11543         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
11544         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
11545         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
11546         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
11547         (CONST_IF_NOT_DEBUG): Delete.
11548         * alloc.c (this_one_is_unmarkable): Delete.
11549         (mark_object): Don't check for this_one_is_unmarkable. Use the
11550         c_readonly flag instead.
11551         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
11552
11553 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11554
11555         * event-msw.c (mswindows_drain_windows_queue):
11556         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
11557         away redundant repaint events.
11558
11559 2000-02-17  Andy Piper  <andy@xemacs.org>
11560
11561         * redisplay.h: declare mark_redisplay_structs.
11562
11563         * redisplay.c (redisplay_window):
11564         (redisplay_frame): don't check subwindows_state_changed.
11565         (mark_redisplay): mark gutters here.
11566
11567         * glyphs.c: (instantiate_image_instantiator): always layout if we
11568         haven't done so already.
11569         (allocate_image_instance): don't mark as dirty.
11570         (update_subwindow): bind inhibit_quit.
11571
11572         * gutter.c (mark_gutters): new function.
11573
11574         * glyphs-x.c (x_update_widget): Always resize to get round a
11575         widget bug.
11576
11577         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
11578         breaking absolutely everything.
11579
11580         * gutter.h: declare mark_gutters.
11581
11582 2000-02-16  Martin Buchholz <martin@xemacs.org>
11583
11584         * XEmacs 21.2.29 is released.
11585
11586 2000-02-15  Olivier Galibert  <galibert@pobox.com>
11587
11588         * fns.c (size_bit_vector): Fix computation of the size.
11589
11590 2000-02-15  Martin Buchholz  <martin@xemacs.org>
11591
11592         * *.[ch]: Change CONST to const globally.
11593         find -name '*.[ch]' | \
11594         xargs global-replace \
11595         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
11596         - Remove vestigial references to CONST_IS_LOSING
11597
11598 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11599
11600         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
11601         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
11602         events instead of dispatching them directly.
11603         (mswindows_handle_paint): New function to do repainting.
11604         (mswindows_wnd_proc):
11605         (emacs_mswindows_handle_magic_event): Call above function.
11606
11607 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11608
11609         * objects-msw.c (mswindows_create_font_variant): Return the new
11610         font handle.
11611         (initialize_font_instance): Get font metrics from the underlined
11612         variant of the font to cope with the case where the underlined
11613         font has a bigger descent.
11614
11615 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
11616
11617         * gui.c (gui_item_accelerator): Return the first underlined
11618         character in item name.
11619
11620 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11621
11622         * lisp.h: Added Qprinter.
11623
11624         * general.c (syms_of_general): Initialized it.
11625
11626         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
11627         (get_frame_dc):
11628         (get_frame_compdc): Made inline.
11629
11630         * console.h (struct console_methods): Added eject_page method.
11631
11632         * frame.h: Added FRAME_DISPLAY_P and friends.
11633         Aligned backslahes in many macros in more readable fashion.
11634         Added page_number to struct frame, and an accessor macro
11635         for it.
11636
11637         * defice.h: Added DEVICE_DISPLAY_P and friends.
11638
11639         * device.c (Fdevice_printer_p): Used these.
11640
11641         * frame.c (allocate_frame_core): Initialize page number.
11642         (Fprint_job_page_number):
11643         (Fprint_job_eject_page): Implemented.
11644
11645         * frame-msw.c (msprinter_eject_page): Added method.
11646         (msprinter_start_page): Added.
11647
11648         * window.c (Fwindow_truncated_p): Fixed docstring.
11649         (Fwindow_last_line_visible_height): Implemented.
11650
11651 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
11652
11653         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
11654
11655 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
11656
11657         * syntax.c (scan_words): Always advance at least one character.
11658
11659 2000-02-13  Andy Piper  <andy@xemacs.org>
11660
11661         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
11662         to make sure the glyph is in the cachels.
11663
11664         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
11665         global image instance flag.
11666         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
11667         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
11668
11669         * glyphs.c (allocate_image_instance): set dirty bits correctly.
11670         (Fset_image_instance_property): mark layout as changed.
11671         (invalidate_glyph_geometry_maybe): mark layout as changed.
11672         (glyph_width): use new NEEDS_LAYOUT macro.
11673         (glyph_ascent): ditto.
11674         (glyph_descent): ditto.
11675         (glyph_height): ditto.
11676         (image_instance_layout): mark layout as clean after laying out.
11677         (update_subwindow): don't mark layout as clean here.
11678
11679         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
11680         should no longer be needed.
11681
11682         * glyphs-x.c (x_update_widget): sanitize asserts.
11683         (x_finalize_image_instance): sanitize assignment to widgets.
11684
11685         * glyphs-widget.c (widget_instantiate): don't need to clear the
11686         layout flag here.
11687
11688 2000-02-13  Martin Buchholz  <martin@xemacs.org>
11689
11690         * sysdep.c (getcwd): Use standard prototype.
11691         * sysdep.h (getcwd): Use standard prototype.
11692
11693         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
11694         (sequence, start, end).
11695         Remove redundant type checking.
11696         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
11697         view of `caller-protects') to avoid a crash where the real fix was
11698         found elsewhere.
11699
11700 2000-02-12  Martin Buchholz  <martin@xemacs.org>
11701
11702         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
11703
11704         * s/sol2.h: Remove feature macro initialization.
11705
11706         * alloc.c (alloc_lcrecord): Add more type checking assertions.
11707         (vector_hash): New.  Code from internal_hash.
11708         * lrecord.h:
11709         Fix up allocation subsystem comments.
11710
11711         * config.h.in: Add __EXTENSIONS__ for Solaris.
11712
11713         * systime.h (EMACS_GETTIMEOFDAY): New.
11714         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
11715         Remove Solaris-specific code.
11716         Use void* for the (ignored) second arg for gettimeofday().
11717
11718         * elhash.c (hash_table_hash): Implement it, finally.
11719         * elhash.c:  Use hashcode_t.
11720
11721         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
11722         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
11723
11724         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
11725         * fns.c (size_bit_vector):
11726         * alloc.c (size_vector):
11727         (make_vector_internal):
11728         (make_bit_vector_internal):
11729         (sweep_bit_vectors_1):
11730         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
11731
11732 2000-02-10  Martin Buchholz  <martin@xemacs.org>
11733
11734         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
11735         Include strings.h to avoid warnings for bzero and strcasecmp.
11736
11737 2000-02-10  Olivier Galibert  <galibert@pobox.com>
11738
11739         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
11740         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
11741
11742         * fns.c (size_bit_vector): New.  Declare bit vectors as a
11743         sequence.
11744
11745 2000-02-10  Olivier Galibert  <galibert@pobox.com>
11746
11747         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
11748         use a value field instead.
11749         (symbol_value_forward_forward): Use value field.
11750         (DEFVAR_SYMVAL_FWD): Use value field.
11751         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
11752         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
11753         (DEFVAR_CONST_INT): Ditto.
11754         (DEFVAR_BOOL): Ditto.
11755         (DEFVAR_CONST_BOOL): Ditto.
11756         (DEFVAR_INT_MAGIC): Ditto.
11757         (DEFVAR_BOOL_MAGIC): Ditto.
11758
11759         * symbols.c (guts_of_unbound_marker): Use value field.
11760         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
11761         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
11762
11763         * lisp.h: Declare dumpopaque and noninteractive1.
11764
11765         * alloc.c (dumpopaque): Added.
11766         (pdump_dump_opaquevec): Added.
11767         (pdump): Call pdump_dump_opaquevec to dump opaque data.
11768         (pdump_load): Reload opaque data.  Sync noninteractive1 with
11769         noninteractive.
11770
11771 2000-02-10  Andy Piper  <andy@xemacs.org>
11772
11773         * glyphs.c (image_instance_layout): if the size changes, mark it
11774         as such.
11775
11776         * redisplay-output.c (redisplay_output_layout): Update the
11777         subwindow here.
11778         (redisplay_output_subwindow): ditto.
11779
11780         * glyphs.c (update_subwindow): make sure we reset flags for
11781         layouts as well as everything else.
11782
11783         * glyphs-widget.c (layout_layout): don't need to set the instances
11784         dimensions here.
11785
11786 2000-02-09  Martin Buchholz  <martin@xemacs.org>
11787
11788         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
11789         not HAVE_DLOPEN, which is a lower-level thing.
11790
11791         * .cvsignore: Ignore gmon.out
11792
11793 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
11794
11795         * .cvsignore: Ignore portable dumper xemacs.dmp file
11796
11797 2000-02-09  Andy Piper  <andy@xemacs.org>
11798
11799         * redisplay-output.c (redisplay_output_layout): be more clever
11800         about when we output based on the changed flags.
11801
11802         * glyphs.h (struct image_instantiator_methods): add update_method.
11803         (struct Lisp_Image_Instance): add changed flags. Declare new
11804         macros for manipulating them.
11805
11806         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
11807         (image_instance_parent_glyph): find an image_instance's parent
11808         glyph or image_instance.
11809         (image_instance_layout): mark the size as changed.
11810         (set_image_instance_dirty_p): new function. mark an image
11811         instance, plus all of its parents, as dirty.
11812         (Fset_image_instance_property): use it.
11813         (Fglyph_animated_timeout_handler): use it.
11814         (update_subwindow): call update_widget and device methods for
11815         update_subwindow. Mark all changed flags as clean.
11816         (Fresize_subwindow): mark size as changed.
11817
11818         * glyphs-x.c (x_finalize_image_instance): try and detect gc
11819         failures.
11820         (x_update_subwindow): only resize subwindows here.
11821         (x_update_widget): new function. Update all changed properties of
11822         a widget.
11823         (x_resize_subwindow): deleted.
11824         (x_widget_set_property): deleted.
11825         (x_progress_gauge_set_property): deleted.
11826         (x_progress_gauge_update): new function. Implement recorded
11827         changes.
11828         (x_tab_control_update): ditto.
11829         (x_tab_control_set_property): deleted.
11830         (console_type_create_glyphs_x): declare new functions.
11831         (image_instantiator_format_create_glyphs_x): ditto.
11832
11833         * glyphs-widget.c (widget_set_property): mark text changed.
11834         (update_widget): new function. Update properties of a widget.
11835         (widget_instantiate): for layouts make sure we set their
11836         children's parent correctly.
11837         (tab_control_set_property): new function. Record changes that will
11838         take place under redisplay's control.
11839         (progress_gauge_set_property): ditto.
11840         (image_instantiator_progress_guage): declare new functions.
11841         (image_instantiator_tab_control): ditto.
11842
11843         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
11844         now.
11845         (mswindows_update_widget): new function. Update all properties on
11846         a widget that have changed.
11847         (mswindows_button_update): new function. Update a button's set
11848         state.
11849         (mswindows_tab_control_update): new function. Update the items in
11850         a tab.
11851         (mswindows_tab_control_set_property): deleted.
11852         (mswindows_progress_gauge_update): new function. Update the
11853         progress gauge's progress.
11854         (mswindows_widget_set_property): deleted. This is all done
11855         asynchronously now.
11856         (mswindows_progress_gauge_set_property): ditto.
11857         (console_type_create_glyphs_mswindows): declare new methods.
11858         (image_instantiator_format_create_glyphs_mswindows): ditto.
11859
11860         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
11861         (msprinter_set_frame_properties): ditto.
11862
11863         * console.h (struct console_methods): Add update_widget_method.
11864
11865 2000-02-09  Andy Piper  <andy@xemacs.org>
11866
11867         * gui-msw.c (Fmswindows_shell_execute): Make
11868         mswindows-shell-execute industrial strength.
11869
11870 2000-02-08  Martin Buchholz  <martin@xemacs.org>
11871
11872         * lrecord.h: Make macro argument `props' match member function `plist'.
11873         * fns.c (Fget):
11874         * fns.c (Fput):
11875         * fns.c (Fremprop):
11876         * fns.c (Fobject_plist):
11877         * alloc.c:
11878         * symbols.c:
11879         Object property list frobbing cleanup.
11880         - Allow any lisp object (compared with `eq'), not just symbols, as
11881           keys in object plists.
11882         - Move symbol plist frobbing into symbols.c, where it belongs.
11883         - Move string plist frobbing into alloc.c, where it belongs.
11884         - Everything's an lrecord now, so no need to test for symbolp, etc.
11885         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
11886
11887         * extents.c: Reorder code to remove declarations.
11888
11889         * frame.h (store_in_alist): Remove useless declaration.
11890
11891 2000-02-07  Martin Buchholz  <martin@xemacs.org>
11892
11893         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
11894         * config.h.in: Add HAVE_XCONVERTCASE.
11895
11896 2000-02-07  Andy Piper  <andy@xemacs.org>
11897
11898         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
11899         it breaks many things.
11900
11901 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
11902
11903         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
11904         actually can start a common comment type.
11905         * src/syntax.h (SYNTAX_END_P): ditto for end.
11906
11907 2000-02-07  Martin Buchholz <martin@xemacs.org>
11908
11909         * XEmacs 21.2.28 is released.
11910
11911 2000-02-06  Martin Buchholz  <martin@xemacs.org>
11912
11913         * event-Xt.c (x_keysym_to_character): New.
11914         (maybe_define_x_key_as_self_inserting_character): New.
11915         (x_has_keysym): New.
11916         Auto-define all keys on the keyboard as self-insert-key.
11917
11918 2000-02-02  Martin Buchholz  <martin@xemacs.org>
11919
11920         * menubar.c (vars_of_menubar): A small code simplification.
11921
11922         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
11923
11924         * ExternalShell.c:
11925         * ExternalClient.c:
11926         * EmacsShell-sub.c:
11927         * EmacsManager.c:
11928         * EmacsFrame.c:
11929         Use consistent style for specifying X resources.
11930
11931         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
11932         This makes (dontusethis-set-symbol-value-handler) actually usable.
11933
11934         * lrecord.h (lrecord_decription_type):
11935         * alloc.c (pdump_register_sub):
11936         (pdump_dump_data):
11937         (pdump_reloc_one):
11938         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
11939         Comply with XEmacs coding style.
11940         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
11941         args, and XD_LISP_OBJECT_ARRAY with 3 args.
11942
11943         * keymap.c (Faccessible_keymaps):
11944         Make (accessible-keymaps map "\C-h") do the Right Thing.
11945         Make (accessible-keymaps map []) do the Right Thing.
11946         Make (accessible-keymaps map "") do the Right Thing.
11947         (check_keymap_definition_loop): New function.
11948         (keymap_store_internal): Keep luser from shooting self in foot,
11949           via (define-key ctl-x-4-map "p" global-map).
11950         Remove fullness slot from struct Lisp_Keymap, since hash tables
11951         are now reliable.
11952         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
11953
11954 2000-01-30  Martin Buchholz  <martin@xemacs.org>
11955
11956         * redisplay.c (init_redisplay): Fix small memory leak.
11957         * elhash.h:
11958         * elhash.c (pdump_reorganize_hash_table):
11959         Rename from reorganize_hash_table. Change prototype.
11960         Reuse the original memory for hentries.  Save 100k.
11961         * alloc.c (PDUMP_READ): new macro.
11962         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
11963         * alloc.c: No need to #ifndef before #undef.
11964
11965         * print.c: Allow debug_print() to print readably by modifying
11966         debug_print_readably.  Use consistent variable names.
11967
11968         * .dbxrc: Try to get things to work even if stopped in a function
11969         without source available by explicitly specifying source files.
11970 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11971
11972         * unexnt.c (_start): Removed bogus code which caused loading heap
11973         from differrent executable file.
11974         Removed bogus assignment to _fmode, which caused inconsistencies.
11975
11976 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11977
11978         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
11979         Have spawnve encapsulation regard DONT_ENCAPSULATE.
11980         Do not preliminary `#define signal sigset'.
11981
11982         * systime.h: Do not prototype environ on windows nt and cygwin,
11983         this conflicts with system header.
11984
11985         * syssignal.h: Use correct define for WINDOWSNT
11986
11987         * sysdep.h: Do not prototype environ on windows nt, this conflicts
11988         with system header.
11989
11990         * sysdep.c (near start of file): Fixed commentary and rearranged
11991         ifdefs in readable order.
11992         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
11993         (start_of_text):
11994         (end_of_text):
11995         (end_of_data): Do not compile in if using PDUMP.
11996
11997         * symsinit.h: Prototyped vars_of_nt().
11998
11999         * ntproc.c (windows9x_p): Added, instead of os_subtype.
12000         (find_child_console): Use it.
12001         (sys_kill): Use it.
12002
12003         * ntheap.h: Do not extern os_subtype.
12004
12005         * ntheap.c (cache_system_info): Do not cache unneeded:
12006         nt_major_version, nt_minor_version and os_subtype.
12007         (recreate_heap): Do not compile in when PDUMPing.
12008
12009         * nt.c (geteuid and friends): Use the new varibale
12010         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
12011         (init_user_info): Removed the above mentioned hackery.
12012         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
12013         stat has been fixed in the C runtime.
12014         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
12015
12016         * file-coding.c (struct file_coding_dump): Do not define
12017         ucs_to_mule_table in the struct if not MULE.
12018         (struct struct lrecord_description fcd_description_1): Do not dump
12019         the above.
12020
12021         * emacs.c (main_1): Call vars_of_nt().
12022         (right before Fdump_emacs_data): Don't need lastfile if using both
12023         portabe dumper and system malloc.
12024
12025         * alloc.c (Fmemory_limit): Conditionalized out.
12026         (pdump): Use OPEN_BINARY for the portable dump file.
12027         (pdump_load): Ditto.
12028
12029 2000-02-02  Mike Alexander  <mta@arbortext.com>
12030
12031         * nt.c (convert_time): Set tm_isdst before calling mktime and
12032         avoid calling it at all if the compiler supports 64 bit integers.
12033         Also initialize utc_base_ft before using it.
12034
12035 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
12036
12037         * frame.c (change_frame_size_1): Take f->internal_border_width
12038         into consideration when calculating the width of the frame.
12039
12040 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12041
12042         * window.c (frame_min_height):
12043         (frame_size_valid_p):
12044         (frame_pixsize_valid_p): Added.
12045         (check_frame_size): Generalized.
12046
12047         * window.h: Prototyped the above.
12048
12049         * lisp.h:
12050         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
12051         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
12052         Deleted Vwin32_* and Vbinary_process_* unused variables.
12053
12054         * device-msw.c (msprinter_init_device): Do not get printer font
12055         list; Added DEVMODE functions.
12056
12057         * frame-msw.c: Added lots of printer code.
12058
12059         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
12060         general.c.
12061
12062         * console-msw.h: Added more msprinter device private slots.
12063
12064 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12065
12066         * event-msw.c (key_needs_default_processing_p): Added.
12067         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
12068
12069 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12070
12071         * glyphs.c (image_instance_layout): Mark image instance as clean
12072         after layout.
12073         (glyph_dirty_p): Removed redundant function.
12074         (invalidate_glyph_geometry_maybe): Added.
12075         (update_glyph_cachel_data): Call it.
12076
12077         * glyphs.h: Prototyped it.
12078
12079         * redisplay.c (add_glyph_rune): Call it.
12080         (redisplay_window): Reset glyphs cachels when frame faces have
12081         changed, thus forcing recomputation of built-in border glyphs.
12082
12083 2000-01-30  Martin Buchholz  <martin@xemacs.org>
12084
12085         * Makefile.in.in: Make portable dumper and purify play well together.
12086         Add imperfect, but better than nothing, support for pdump.
12087         Remove xemacs.dmp when temacs is re-generated.
12088         Don't ignore errors when dumping xemacs.
12089
12090         * symbols.c (maybe_call_magic_handler): Remove one magic number.
12091
12092 2000-01-28  Andy Piper  <andy@xemacs.org>
12093
12094         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
12095         (setup_normal_frame): ditto.
12096         (setup_frame_without_minibuffer): ditto.
12097         (setup_minibuffer_frame): ditto.
12098         (delete_frame_internal): ditto.
12099         (Fmake_frame_invisible): ditto.
12100         (Ficonify_frame): ditto.
12101
12102         * window.h: change Fset_window_buffer signature.
12103
12104         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
12105         (Fset_window_buffer): allow recording of buffer if the window is
12106         the selected window.
12107         (window_loop): Use new Fset_window signature.
12108
12109 2000-01-23  Daniel Pittman  <daniel@danann.net>
12110
12111         * config.h.in: Added template for `HAVE_ATHENA_3D'
12112
12113 2000-01-29  Andy Piper  <andy@xemacs.org>
12114
12115         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
12116
12117         * gutter.c (output_gutter): Don't output if the window isn't live.
12118
12119 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12120
12121         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
12122         of 01/12/00: Moved SetFocus back here where it belongs.
12123
12124 2000-01-23  Andy Piper  <andy@xemacs.org>
12125
12126         * s/cygwin32.h: declare printer things.
12127
12128 2000-01-26  Andy Piper  <andy@xemacs.org>
12129
12130         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
12131         Alexander.
12132
12133 2000-01-24  Andy Piper  <andy@xemacs.org>
12134
12135         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
12136         (mswindows_button_instantiate): Make sure glyph is a pixmap.
12137
12138         * glyphs-widget.c (widget_instantiate): Avoid shadows.
12139
12140         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
12141
12142         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
12143
12144         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
12145         (mswindows_output_display_block): Avoid local shadows.
12146
12147         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
12148         (mswindows_enqueue_mouse_button_event): ditto.
12149         (mswindows_handle_gui_wm_command): remove declaration.
12150
12151         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
12152         warnings.
12153
12154         * console-msw.h: Avoid shadows.
12155         (mswindows_get_toolbar_button_text):
12156         (emacs_mswindows_create_stream_pair):
12157         (emacs_mswindows_delete_stream_pair):
12158         (mswindows_handle_toolbar_wm_command): declare.
12159
12160         * device-msw.c (build_syscolor_string): Avoid shadows.
12161
12162 2000-01-23  Andy Piper  <andy@xemacs.org>
12163
12164         * glyphs-widget.c (widget_instantiate): reverse the items for
12165         layouts so that children are in the expected order.
12166
12167 2000-01-28  Martin Buchholz  <martin@xemacs.org>
12168
12169         * ralloc.c: safe_bcopy ==> memmove
12170         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
12171         * s/msdos.h: Remove BCOPY macros.
12172         * insdel.c (gap_right): Remove BCOPY conditional code.
12173         * insdel.c (gap_left): Remove BCOPY conditional code.
12174         XEmacs demands a working ANSI C compiler - hence memmove.
12175
12176         * regex.c (regex_compile): Remove accidental use of trigraphs.
12177
12178 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12179
12180         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
12181         event timestamp.
12182
12183 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12184
12185         * event-msw.c (mswindows_drain_windows_queue): Added the
12186         parameter.
12187         (mswindows_need_event): Commented the call to
12188         mswindows_drain_windows_queue().
12189         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
12190         only.
12191
12192         * console-msw.h: Moved a few function prototypes here from
12193         event-msw.c.
12194
12195         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
12196         parameter from unsigned short to unsigned long.
12197         (Fmswindows_shell_execute): Added return value.
12198
12199 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
12200
12201         * sysdep.c (init_system_name):
12202           process-unix.c (unix_canonicalized_host_name):
12203         Don't call freeaddrinfo() if getaddrinfo() fails.
12204
12205         * process-unix.c (unix_open_unix_network_stream):
12206         Moved the code to get a port # into address loop.
12207
12208 2000-01-27  Martin Buchholz  <martin@xemacs.org>
12209
12210         * buffer.c (reinit_vars_of_buffer):
12211         The right place to initialize conversion_in_dynarr and
12212         conversion_out_dynarr.
12213
12214         * alloc.c (pdump): Use the real open() till sys_open() is functional.
12215
12216         * process-unix.c (unix_canonicalize_host_name): Muleize.
12217         (unix_open_network_stream): Muleize.
12218
12219         * buffer.h: Fix up prototypes for ralloc.c functions.
12220
12221 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
12222         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
12223         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
12224                 instead of gethostbyname()
12225         * process-unix.c: In unix_canonicalize_host_name() and
12226                 unix_open_network_stream(), add code to use getaddrinfo()
12227                 instead of gethostbyname().
12228
12229 2000-01-27  Daniel Pittman <daniel@danann.net>
12230
12231         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
12232         libs when built with flat Athena.
12233
12234 2000-01-27  Martin Buchholz  <martin@xemacs.org>
12235
12236         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
12237         Use coding standards for function prototypes.
12238
12239 2000-01-25  Martin Buchholz  <martin@xemacs.org>
12240
12241         * dialog-msw.c (push_lisp_string_as_unicode):
12242         * doc.c (unparesseuxify_doc_string):
12243         * dired.c (Fuser_name_completion_1):
12244         * dired.c (Fuser_name_all_completions):
12245         * dired.c (free_user_cache):
12246         * dired.c (user_name_completion):
12247         * console-x.c (get_display_arg_connection):
12248         * minibuf.c (clear_echo_area_internal):
12249         * minibuf.c (echo_area_append):
12250         * eldap.c (Fldap_open):
12251         * eldap.c (Fldap_search_internal):
12252         * frame-x.c (x_set_frame_text_value):
12253         * frame-x.c (x_set_frame_properties):
12254         * frame-x.c (x_create_widgets):
12255         * redisplay-tty.c (term_get_fkeys_1):
12256         * objects-x.c (x_parse_nearest_color):
12257         * objects-x.c (x_valid_color_name_p):
12258         * objects-x.c (x_initialize_font_instance):
12259         * objects-x.c (x_list_fonts):
12260         * objects-x.c (x_find_charset_font):
12261         * tooltalk.c (Fadd_tooltalk_message_arg):
12262         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
12263         * tooltalk.c (Fadd_tooltalk_pattern_arg):
12264         * process-unix.c (unix_create_process):
12265         * ntproc.c (sys_spawnve):
12266         * sound.c (Fplay_sound_file):
12267         * sound.c (Fplay_sound):
12268         * buffer.c (init_initial_directory):
12269         * buffer.c (init_buffer):
12270         * editfns.c (init_editfns):
12271         * editfns.c (Ftemp_directory):
12272         * editfns.c (Fuser_full_name):
12273         * editfns.c (uncache_home_directory):
12274         * editfns.c (get_home_directory):
12275         * editfns.c (Fuser_home_directory):
12276         * editfns.c (Fformat_time_string):
12277         * editfns.c (Fcurrent_time_string):
12278         * gui-x.c (button_item_to_widget_value):
12279         * database.c (Fopen_database):
12280         * event-Xt.c (x_to_emacs_keysym):
12281         * event-Xt.c (x_event_to_emacs_event):
12282         * event-Xt.c (describe_event_window):
12283         * event-msw.c (mswindows_wnd_proc):
12284         * glyphs-eimage.c (jpeg_instantiate):
12285         * glyphs-eimage.c (gif_instantiate):
12286         * glyphs-eimage.c (png_instantiate):
12287         * glyphs-eimage.c (tiff_instantiate):
12288         * glyphs-x.c (xbm_instantiate_1):
12289         * glyphs-x.c (x_xbm_instantiate):
12290         * glyphs-x.c (x_xface_instantiate):
12291         * glyphs-x.c (autodetect_instantiate):
12292         * glyphs-x.c (cursor_font_instantiate):
12293         * glyphs-x.c (x_widget_instantiate):
12294         * glyphs-x.c (x_widget_set_property):
12295         * glyphs-x.c (x_widget_property):
12296         * glyphs-x.c (BUILD_GLYPH_INST):
12297         * print.c (write_string_to_stdio_stream):
12298         * print.c (output_string):
12299         * print.c (Falternate_debugging_output):
12300         * print.c (Fexternal_debugging_output):
12301         * glyphs-msw.c (extract_xpm_color_names):
12302         * glyphs-msw.c (mswindows_xpm_instantiate):
12303         * glyphs-msw.c (bmp_instantiate):
12304         * glyphs-msw.c (resource_name_to_resource):
12305         * glyphs-msw.c (mswindows_resource_instantiate):
12306         * glyphs-msw.c (xbm_instantiate_1):
12307         * glyphs-msw.c (mswindows_xbm_instantiate):
12308         * glyphs-msw.c (mswindows_xface_instantiate):
12309         * glyphs-msw.c (mswindows_widget_instantiate):
12310         * glyphs-msw.c (add_tree_item):
12311         * glyphs-msw.c (add_tab_item):
12312         * glyphs-msw.c (mswindows_combo_box_instantiate):
12313         * glyphs-msw.c (mswindows_widget_property):
12314         * glyphs-msw.c (mswindows_combo_box_property):
12315         * glyphs-msw.c (mswindows_widget_set_property):
12316         * console.c (stuff_buffered_input):
12317         * objects-msw.c (mswindows_initialize_color_instance):
12318         * objects-msw.c (mswindows_valid_color_name_p):
12319         * objects-msw.c (mswindows_list_fonts):
12320         * objects-msw.c (mswindows_font_instance_truename):
12321         * bytecode.c (optimize_compiled_function):
12322         * select-x.c (symbol_to_x_atom):
12323         * select-x.c (x_atom_to_symbol):
12324         * select-x.c (hack_motif_clipboard_selection):
12325         * select-x.c (selection_data_to_lisp_data):
12326         * select-x.c (lisp_data_to_selection_data):
12327         * select-x.c (Fx_get_cutbuffer_internal):
12328         * select-x.c (Fx_store_cutbuffer_internal):
12329         * buffer.h (TO_EXTERNAL_FORMAT): New function.
12330         * buffer.h (TO_INTERNAL_FORMAT): New function.
12331         * emacs.c (make_arg_list_1):
12332         * emacs.c (make_argc_argv):
12333         * emacs.c (main_1):
12334         * emacs.c (Fdump_emacs):
12335         * emacs.c (split_string_by_emchar_1):
12336         * file-coding.h:
12337         * lisp.h:
12338         * lstream.h:
12339         * symsinit.h:
12340         * device-x.c (x_init_device):
12341         * device-x.c (Fx_valid_keysym_name_p):
12342         * device-x.c (Fx_get_font_path):
12343         * device-x.c (Fx_set_font_path):
12344         * glyphs.c (bitmap_to_lisp_data):
12345         * glyphs.c (pixmap_to_lisp_data):
12346         * alloc.c (make_ext_string): Use coding system arguments.  Update
12347         all callers.
12348         * alloc.c (build_string):
12349         * callproc.c (child_setup):
12350         * callproc.c (init_callproc):
12351         * fileio.c (lisp_strerror):
12352         * fileio.c (directory_file_name):
12353         * fileio.c (Fexpand_file_name):
12354         * fileio.c (Ffile_truename):
12355         * fileio.c (Fsysnetunam):
12356         * fileio.c (Fdo_auto_save):
12357         * sysdep.c (sys_readdir):
12358         * tests.c: New file.  Allow adding C tests.
12359         Replace GET_* macros with a more comprehensible and flexible
12360         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
12361         Modify all calls.
12362         Any coding system can be used to do format conversion.
12363         Eliminate enum external_data_format.
12364         Eliminate convert_to_external_format.
12365         Eliminate convert_to_internal_format.
12366         Make sure file-name, keyboard, terminal, and ctext are always
12367         defined as coding systems or aliases.  Make
12368         file-name-coding-system, terminal-coding-system, and
12369         keyboard-coding-system magical variables that are equivalent to
12370         defining the corresponding coding system aliases.
12371
12372         * file-coding.c (Fcoding_system_canonical_name_p): New function.
12373         * file-coding.c (Fcoding_system_alias_p): New function.
12374         * file-coding.c (Fcoding_system_aliasee): New function.
12375         * file-coding.c (append_suffix_to_symbol): New function.
12376         * file-coding.c (dangling_coding_system_alias_p): New function.
12377         * file-coding.c (Ffind_coding_system):
12378         * file-coding.c (Fcopy_coding_system):
12379         * file-coding.c (encode_coding_no_conversion):
12380         * file-coding.c (syms_of_file_coding):
12381         * file-coding.c (vars_of_file_coding):
12382         Rewrite coding system alias code.
12383         Allow nested aliases, like symbolic links.
12384         Allow redefinition of coding system aliases.
12385         Prevent existence of dangling coding system aliases.
12386
12387         * dired.c (Fuser_name_completion_1):
12388         * dired.c (Fuser_name_all_completions):
12389         A crash would happen if user did QUIT in the middle of building
12390         user_name_cache.  Remove redundant code in mainline and unwind_protect.
12391
12392         * lisp.h:
12393         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
12394
12395         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
12396         an unsigned char *.  Update all callers.
12397
12398 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12399
12400         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
12401
12402 2000-01-25  Martin Buchholz  <martin@xemacs.org>
12403
12404         * elhash.c (hentry_description): Use more portable definition.
12405         (resize_hash_table): Initialize new hentries using
12406         xnew_array_and_zero, thereby simplifying the code.
12407
12408         * mule-charset.c (make_charset): Make sure entire object is
12409         initialized, to avoid Purify warnings.
12410
12411         * alloc.c (resize_string): Fix unlikely crash with big strings.
12412
12413 2000-01-24  Martin Buchholz  <martin@xemacs.org>
12414
12415         * realpath.c (xrealpath):
12416         Don't call getwd().
12417
12418 2000-01-25  Martin Buchholz  <martin@xemacs.org>
12419
12420         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
12421
12422 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
12423
12424         * unexelfsgi.c (unexec): Change the way we decide which segment
12425         should be extended.
12426
12427         Assumption that .bss section should be outside the PT_LOADable
12428         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
12429         it's present) is inside the 'data' segment. This would fail the
12430         test which was used to find a segment to grow and cover new
12431         heap. Instead of this assumption, I created another one - on IRIX
12432         the segment to grow should start below .bss and it's address
12433         should extent above the end of .bss. Once this segment is
12434         identified, it's grown to accommodate the new heap and new
12435         zero-length .bss section is added at the end of .data2.
12436
12437 2000-01-25  Martin Buchholz  <martin@xemacs.org>
12438
12439         * eval.c (Feval): Wrong number of arguments should use original
12440         function, not the indirect_function version of it.
12441
12442 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
12443
12444         * glyphs-x.c (x_button_instantiate): Don't add image if
12445         it is not a pixmap.
12446         (x_locate_pixmap_file): Call Fexpand_file_name when file name
12447         is relative.
12448
12449 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
12450
12451         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
12452         declaration.
12453         (DEFVAR_INT_MAGIC): Ditto.
12454         (DEFVAR_BOOL_MAGIC): Ditto.
12455         * glyphs.h: Reindent backslash.
12456
12457 2000-01-24  Martin Buchholz  <martin@xemacs.org>
12458
12459         * glyphs-widget.c (layout_query_geometry):
12460         (layout_layout): Use correct types for gheight, gwidth.
12461
12462 2000-01-24  Martin Buchholz  <martin@xemacs.org>
12463
12464         * EmacsManager.c (QueryGeometry): Purified.
12465
12466 2000-01-23  Martin Buchholz  <martin@xemacs.org>
12467
12468         * alloc.c (make_float): Make sure entire object is initialized, to
12469         avoid Purify warnings.
12470         (pdump_register_sub): Remove useless assignment.
12471         (pdump): Use xmalloc, not malloc.
12472         (pdump_load): Use xmalloc, not malloc.
12473
12474 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12475
12476         * callproc.c:
12477         * dired-msw.c:
12478         * fileio.c:
12479         * process-nt.c:
12480         * redisplay-msw.c:
12481         * sysdep.c: Removed redundant #include <windows.h>
12482
12483 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12484
12485         * frame.c (delete_frame_internal): Do not delete device when its
12486         implementation so declares.
12487         (delete_frame_internal): Set device selected frame to nil when
12488         last frame goes away.
12489
12490         * device-msw.c (msprinter_device_system_metrics): Implemented.
12491         (mswindows_device_system_metrics): Added 'device-dpi property.
12492
12493         * device.c: (Fdevice_printer_p): Added.
12494         Added 'offset-workspace device metric.
12495
12496         * console.h (device_metrics): Declared DM_offset_workspace.
12497
12498 2000-01-23  Martin Buchholz  <martin@xemacs.org>
12499
12500         * fileio.c (Ffile_truename): Remove pointless and confusing
12501         initialization of elen.
12502
12503         * glyphs-widget.c: Compiler warning fixes.
12504
12505 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
12506
12507         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
12508         instead of a Lisp_Object as argument to make it consistent with
12509         the other LIVE_P macros.
12510         (CHECK_LIVE_PROCESS): New macro.
12511
12512         * process.c: Declare Qprocess_live_p.
12513         (Fprocess_live_p): New function.
12514         (create_process): Use PROCESS_LIVE_P.
12515         (read_process_output): Ditto.
12516         (set_process_filter): Ditto.
12517         (Fdelete_process): Ditto.
12518         (kill_buffer_processes): Ditto
12519         (process_send_signal): Use CHECK_LIVE_PROCESS.
12520         (Fprocess_input_coding_system): Check whether process is still
12521         alive (fix PR#1061).
12522         (Fprocess_output_coding_system): Ditto.
12523         (Fprocess_coding_system): Ditto.
12524         (Fset_process_input_coding_system): Ditto.
12525         (Fset_process_output_coding_system): Ditto.
12526
12527 2000-01-23  Andy Piper  <andy@xemacs.org>
12528
12529         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
12530         layout and widget.
12531
12532         * glyphs.c (mark_image_instance): take into account changed
12533         image_instance format.
12534         (image_instance_equal): ditto.
12535         (image_instance_hash): ditto.
12536
12537         * glyphs-widget.c (widget_instantiate): Incorporate layout
12538         instantiation here. Delay layout of the layout until later.
12539         (layout_instantiate): deleted.
12540         (layout_query_geometry): new function. get the geometry of a
12541         layout.
12542         (layout_layout): layout a layout dynamically.
12543         (image_instantiator_widget): New function - splitting up
12544         image_instantiator_format_create_glyphs_widget for netwinder
12545         compilation.
12546         (image_instantiator_buttons):
12547         (image_instantiator_edit_fields):
12548         (image_instantiator_combo_box):
12549         (image_instantiator_scrollbar):
12550         (image_instantiator_progress_guage):
12551         (image_instantiator_tree_view):
12552         (image_instantiator_tab_control):
12553         (image_instantiator_labels):
12554         (image_instantiator_layout): ditto.
12555         (image_instantiator_format_create_glyphs_widget): Call preceding
12556         functions.
12557
12558 2000-01-22  Martin Buchholz  <martin@xemacs.org>
12559
12560         * process.c (Fset_process_coding_system):
12561         * device-x.c (Fx_keysym_hash_table):
12562         Docstring fixes.
12563
12564         * lstream.c (Lstream_write): Return documented value, not 0.
12565
12566         * fileio.c (directory_file_name):
12567         (Fsubstitute_in_file_name):
12568         (Fsubstitute_insert_file_contents_internal):
12569         (Fwrite_region_internal):
12570         * emacs.c:
12571         * sysdep.c:
12572         * getloadavg.c:
12573         * systty.h:
12574         Remove vestigial APOLLO-conditional code.
12575
12576 2000-01-21  Martin Buchholz  <martin@xemacs.org>
12577
12578         * getpagesize.h: Add guard macros.
12579         * libsst.h: Add guard macros.
12580         * libst.h: Add guard macros.
12581         * line-number.h: Add guard macros.
12582         * ndir.h: Add guard macros.
12583         * sysfloat.h: Add guard macros.
12584         * sysfile.h: Add guard macros.
12585         * sysproc.h: Add guard macros.
12586         * syswait.h: Add guard macros.
12587         * xintrinsic.h: Add guard macros.
12588         * xintrinsicp.h: Add guard macros.
12589         * xmmanager.h: Add guard macros.
12590         * xmmanagerp.h: Add guard macros.
12591         * xmprimitive.h: Add guard macros.
12592         * xmu.h: Add guard macros.
12593         * gpmevent.h: Add copyright statement. Add guard macros.
12594         * miscplay.h: Add guard macros.
12595         * *.h: Use consistent C-standards-approved guard macro names.
12596
12597         * opaque.c (make_opaque): Switch parameter order.
12598         * opaque.h (make_opaque): Switch parameter order.
12599         Update all callers.
12600         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
12601
12602         * config.h.in (type_checking_assert): Added.
12603         (bufpos_checking_assert): Added.
12604
12605 2000-01-21  Martin Buchholz  <martin@xemacs.org>
12606
12607         * alloc.c: Harmless pdump changes.
12608         - Use countof().
12609         - spell alignment correctly.
12610         * sysdep.c: Use countof()
12611
12612 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12613
12614         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
12615         initially_selected_for_input() console method, default to 0.
12616         (semi_canonicalize_console_connection): Try to delegate to
12617         canonicalize_console_connection if no such console method.
12618         (canonicalize_console_connection): Vice versa.
12619         (print_console): Do not print nil connection.
12620
12621         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
12622         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
12623         (XDEVIMPF_FRAMELESS_OK): Added.
12624         (CONSOLE_INHERITS_METHOD): Added.
12625
12626         * console-msw.c (mswindows_canonicalize_console_connection):
12627         Added.
12628         (mswindows_canonicalize_device_connection): Added.
12629
12630         * console-msw.h (struct msprinter_device): Added this struct and
12631         accessor macros.
12632         (mswindows_device): Made fontlist a lisp object.
12633
12634         * device.c (semi_canonicalize_device_connection):  Try to delegate
12635         to canonicalize_device_connection if no such console method.
12636         (canonicalize_device_connection): Vice versa.
12637         (print_device): Do not print nil connection.
12638
12639         * device-msw.c (mswindows_init_device): Call InitCommonControls
12640         when have widgets.
12641         (mswindows_delete_device): Removed fontlist deallocation.
12642         (mswindows_mark_device): Added.
12643
12644         * events.c (event_equal): Added abort() at unreached code.
12645         (event_hash): Ditto.
12646
12647         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
12648         fallback tags of Windows devices.
12649
12650         * general.c (syms_of_general): Initialized Qmsprinter.
12651
12652         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
12653         of fallback tags of Windows devices.
12654
12655         * lisp.h: Declared Qmsprinter.
12656
12657         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
12658         of strings.
12659         (mswindows_list_fonts): Ditto.
12660         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
12661         that it can be used by both mswindows and msprinter devices.
12662         (initialize_font_instance): Added.
12663         (mswindows_initialize_font_instance): Use it.
12664         (msprinter_initialize_font_instance): Added.
12665
12666         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
12667         and implementation flags check.
12668         (redisplay_without_hooks): Changed the call to the above.
12669         (Fredraw_device): Ditto.
12670         (Fredisplay_device): Ditto.
12671
12672         * redisplay-msw.c (get_frame_dc): Implemented.
12673         (get_frame_compdc): Implemented.
12674         (many functions): Use the two functions above to get device
12675         contexts, ether for a window or a printer.
12676
12677 2000-01-21  Olivier Galibert  <galibert@pobox.com>
12678
12679         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
12680         initialization here.
12681         (init_symbols_once_early): Call it.
12682         * emacs.c (main_1): Call it.
12683         * symsinit.h: Declare it.
12684
12685 2000-01-19  Olivier Galibert  <galibert@pobox.com>
12686
12687         * alloc.c: Use a lrecord_header * in the backtrace instead of a
12688         Lisp_Object.
12689         (pdump_backtrace): Ditto.
12690         (pdump_register_object): Ditto.  Cleanup use of the pointers.
12691         (pdump_get_entry): Abort if trying to register a null pointer.
12692         (pdump_dump_data): Cleanup types when relocating.
12693         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
12694         (pdump_dump_rtables): Remove bad casts.
12695         (pdump_load): Cleanup relocation w.r.t union type.  Use a
12696         Lisp_Object instead of a EMACS_INT for the hashtable
12697         reorganization.
12698
12699 2000-01-20  Martin Buchholz  <martin@xemacs.org>
12700
12701         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
12702
12703         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
12704
12705         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
12706
12707         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
12708
12709 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12710
12711         * faces.h (FACE_STRIKETHRU_P): Added.
12712
12713         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
12714         of font variants.
12715
12716         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
12717         (mswindows_set_dc_font): New function, aware of font variants,
12718         separated from mswindows_update_dc.
12719
12720         * objects-msw.h (struct mswindows_font_instance_data): Added
12721         definition.
12722
12723         * objects-msw.c (mswindows_finalize_font_instance): Delete all
12724         cached fonts and the data structure.
12725         (mswindows_initialize_font_instance): Added creation of font data
12726         structure.
12727         (mswindows_print_font_instance): Print at least something.
12728         (mswindows_create_font_variant): Implemented.
12729         (mswindows_get_hfont): Implemented.
12730
12731 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
12732
12733         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
12734         prototyping problem with msvc.
12735
12736         * emacs.c (main_1): added syms_of_gui_mswindows() call
12737
12738         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
12739         syms_of_gui_mswindows() function
12740
12741         * symsinit.h: added the prototype for syms_of_gui_mswindows()
12742
12743 2000-01-18  Martin Buchholz <martin@xemacs.org>
12744
12745         * XEmacs 21.2.27 is released.
12746
12747 2000-01-18  Martin Buchholz  <martin@xemacs.org>
12748
12749         * glyphs-eimage.c (struct tiff_error_struct):
12750         (tiff_error_func):
12751         (tiff_warning_func):
12752         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
12753
12754         * unexmips.c:
12755         * unexhp9k3.c:
12756         * unexfreebsd.c:
12757         * unexec.c: Remove vestigial Lucid C code.
12758         * unexalpha.c:
12759         * unexaix.c:
12760         * termcap.c:
12761         * libsst.c: Ansify.
12762         Remove declarations of errno and strerror().
12763
12764         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
12765
12766         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
12767
12768 2000-01-16  Martin Buchholz  <martin@xemacs.org>
12769
12770         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
12771         Optimize.
12772
12773 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
12774
12775         * md5.c:
12776         * file-coding.c:
12777         * file-coding.h:
12778         Change enum eol_type to eol_type_t.
12779
12780 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
12781
12782         * gui.c (get_gui_callback): Check cons before accessing car.
12783
12784 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
12785
12786         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
12787         (XSETSPECIFIER_TYPE): Ditto.
12788
12789 2000-01-17  Didier Verna  <didier@xemacs.org>
12790
12791         * redisplay.c (generate_fstring_runes): compute string size in
12792         characters, not bytes.
12793
12794 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
12795
12796         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
12797
12798 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
12799
12800         * print.c (print_error_message): Call print_prepare().
12801
12802 2000-01-14  Martin Buchholz  <martin@xemacs.org>
12803
12804         * .dbxrc: Renamed from dbxrc.
12805
12806         * events.c (event_to_character):
12807         Use `assert (foo)' instead of `if (!foo) abort()'
12808
12809         * .gdbinit (xtype): Add documentation.
12810         * .gdbinit (check-temacs): New function.
12811         * .gdbinit (check-xemacs): New function.
12812         * dbxrc (check-xemacs): New function.
12813         * dbxrc (check-xemacs): New function.
12814
12815 2000-01-14  Andy Piper  <andy@xemacs.org>
12816
12817         * glyphs-widget.c (widget_query_geometry): Make sure that we
12818         calculate default dimensions correctly.
12819
12820 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12821
12822         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
12823
12824         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
12825         pdump_wire'd variable.
12826
12827         * emacs.c: (main_1): Conditionalized calls to
12828         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
12829
12830 2000-01-13  Martin Buchholz  <martin@xemacs.org>
12831
12832         * window.c (Fset_window_configuration):
12833         * sysdep.c (_start):
12834         * input-method-motif.c (res):
12835         * event-Xt.c (Xt_process_to_emacs_event):
12836         Simple compiler warning fixes.
12837
12838         * bytecode.c (funcall_compiled_function): Use the original
12839         function symbol on the backtrace list in preference to the
12840         compiled_function object in error messages.
12841
12842 2000-01-13  Andy Piper  <andy@xemacs.org>
12843
12844         * glyphs-x.c (update_widget_face): Make sure we update the widget
12845         background as well as foreground.
12846
12847 2000-01-13  Andy Piper  <andy@xemacs.org>
12848
12849         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
12850         fields to subwindow.
12851         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
12852         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
12853         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
12854         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
12855
12856         * glyphs-widget.c (check_valid_tab_orientation): new function.
12857         (initialize_widget_image_instance): zero orientation and
12858         justification.
12859         (widget_instantiate): pick up orientation.
12860         (tab_control_query_geometry): return appropriate values for
12861         vertical tabs.
12862
12863         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
12864         appropriate creation flags for left, right and bottom tabs.
12865
12866         * s/cygwin32.h: add tab definitions.
12867
12868 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12869
12870         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
12871         frame upon hiding a subwindow.
12872         (mswindows_button_instantiate): Changed the push button style to
12873         BS_PUSHBUTTON.
12874         (mswindows_button_instantiate): Removed button BS_NOTIFY
12875         style.
12876         (mswindows_button_instantiate): Removed redundant check for
12877         a disabled gui item.
12878         (mswindows_button_instantiate): Made use of WS_TABSTOP
12879         consistent: "operable" controls (edit, button, tree, scroll) have
12880         this style, "display-only" ones (static, progress gauge) do
12881         not. This style is currently ignored by XEmacs though. Also,
12882         removed the WS_EX_CONTROLPARENT style - it is not for children,
12883         it is for their parents!
12884         (mswindows_edit_field_instantiate): Ditto.
12885         (mswindows_progress_gauge_instantiate): Ditto.
12886         (mswindows_tree_view_instantiate): Ditto.
12887         (mswindows_tab_control_instantiate): Ditto.
12888         (mswindows_scrollbar_instantiate): Ditto.
12889         (mswindows_combo_box_instantiate): Ditto.
12890         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
12891         style to the "clip" window.
12892         (mswindows_button_instantiate): Removed compilation warning by
12893         equally typing terms of the ?: operator.
12894
12895 2000-01-12  Didier Verna  <didier@xemacs.org>
12896
12897         * redisplay.c (generate_fstring_runes): new parameter holding the
12898         last modeline-format extent.
12899         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
12900         extent, fill the glyph block with it.
12901         (generate_fstring_runes): handle these parameters.
12902         (generate_formatted_string_db): ditto.
12903
12904         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
12905         glyphs'extents in the modeline.
12906
12907 1999-01-11  Mike Woolley  <mike@bulsara.com>
12908
12909         * ntheap.c: Reduced the reserved heap space from 1Gb down to
12910         256Mb, as a workaround for the non-starting problem many people
12911         have experienced.
12912
12913 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
12914
12915         * console-tty.c (Fset_console_tty_output_coding_system):
12916         Force redrawing tty frame.
12917
12918 2000-01-10  Didier Verna  <didier@xemacs.org>
12919
12920         * redisplay.c (generate_fstring_runes): fix size computation bug.
12921
12922 2000-01-09  William M. Perry <wmperry@aventail.com>
12923
12924         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
12925
12926 2000-01-09  Andy Piper  <andy@xemacs.org>
12927
12928         * glyphs-msw.c: index -> i to avoid shadows.
12929         (xbm_create_bitmap_from_data): make static.
12930         (check_valid_string_or_int): deleted.
12931         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
12932
12933         * glyphs-x.c (x_update_subwindow): remove unused args.
12934
12935         * glyphs.c (glyph_image_instance): return the thing. Don't set the
12936         back pointer - this is done in allocate_image_instance.
12937         (query_string_font): return Qnil to make the compiler happy.
12938         (unmap_subwindow): set to ~0 to make the compiler happy.
12939         (glyph_query_geometry): comment out until used.
12940         (glyph_layout): ditto.
12941
12942 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
12943
12944         * insdel.c (signal_after_change): Remove extraneous unbind_to().