update.
[chise/xemacs-chise.git] / src / ChangeLog
1 2002-11-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2
3         * mule-charset.c (decode_builtin_char): Reorganized.
4
5 2002-10-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
6
7         * text-coding.c (char_encode_shift_jis): Modify for
8         `charset_code_point'.
9         (char_encode_big5): Likewise.
10         (char_encode_utf8): Likewise.
11         (char_encode_iso2022): Likewise.
12
13         * mule-charset.c (charset_code_point): Add new argument
14         `defined_only'.
15         (Fencode_char): Add new optional argument `defined_only'.
16
17         * chartab.c (put_char_table): Modify for `charset_code_point'.
18         (map_char_table): Likewise.
19
20         * char-ucs.h (charset_code_point): Add new argument
21         `defined_only'.
22         (encode_char_1): Modify for `charset_code_point'.
23
24 2002-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
25
26         * mule-charset.c (complex_vars_of_mule_charset): Don't specify
27         `MIN_CHAR_THAI' and `MAX_CHAR_THAI' for `thai-tis620'.
28
29 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
30
31         * mule-charset.c (Vcharset_jis_x0208): New variable in UTF-2000.
32         (Qjis_x0208): Likewise.
33         (decode_builtin_char): Prefer XCHARSET_MAX_CODE(charset) than
34         XCHARSET_FINAL(charset).
35         (charset_code_point): Modify condition for final-byte based
36         builtin-chars.
37         (syms_of_mule_charset): Add new symbol `=jis-x0208' in UTF-2000.
38         (complex_vars_of_mule_charset): Add new coded-charset `=jis-x0208'
39         in UTF-2000; specify `=jis-x0208' as the mother of
40         `japanese-jisx0208-1978', `japanese-jisx0208' and
41         `japanese-jisx0208-1990' in UTF-2000.
42
43 2002-10-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
44
45         * char-ucs.h (LEADING_BYTE_JIS_X0208): New macro.
46
47 2002-07-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
48
49         * mule-charset.c (charset_code_point): If CHARSET_CONVERSION is
50         CONVERSION_IDENTICAL, identical conversion is used even if a CCS
51         is ISO-2022 style; instead of it, CONVERSION_94, CONVERSION_96,
52         CONVERSION_94x94, CONVERSION_96x96, CONVERSION_94x94x94,
53         CONVERSION_96x96x96, CONVERSION_94x94x94x94 and
54         CONVERSION_96x96x96x96 are introduced.
55         (complex_vars_of_mule_charset): Specify CONVERSION_96 instead of
56         CONVERSION_IDENTICAL for thai-tis620; Specify CONVERSION_94x94
57         instead of CONVERSION_IDENTICAL for japanese-jisx0208-1990.
58
59         * char-ucs.h (CONVERSION_94): New macro.
60         (CONVERSION_96): New macro.
61         (CONVERSION_94x94): New macro.
62         (CONVERSION_96x96): New macro.
63         (CONVERSION_94x94x94): New macro.
64         (CONVERSION_96x96x96): New macro.
65         (CONVERSION_94x94x94x60): New macro.
66         (CONVERSION_94x94x94x94): New macro.
67         (CONVERSION_96x96x96x96): New macro.
68
69 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
70
71         * lisp.h: Add an EXFUN for `Fchar_ref_p'.
72
73         * fns.c (Qideographic_structure): New variable.
74         (Qkeyword_char): New variable.
75         (ids_format_unit): New function.
76         (Fideographic_structure_to_ids): New function.
77         (syms_of_fns): Add new symbols `ideographic-structure' and
78         `:char'; add new builtin function `ideographic-structure-to-ids'.
79
80         * data.c (Fchar_ref_p): New function.
81         (syms_of_data): Add new builtin function `char-ref-p'.
82
83         * chartab.h: Add an EXFUN for `Ffind_char'.
84
85 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
86
87         * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
88         and `COMPOSE_ADD_CHAR'.
89         (decode_coding_iso2022): Use `decode_flush_er_chars'.
90
91 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
92
93         * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
94         instead of `DECODE_ADD_UCS_CHAR'.
95         (COMPOSE_ADD_CHAR): Likewise.
96
97 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
98
99         * text-coding.c (decode_flush_er_chars): New inline function.
100         (decode_add_er_char): New function.
101         (decode_coding_utf8): Use `decode_flush_er_chars' and
102         `decode_add_er_char'.
103
104 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
105
106         * text-coding.c (decode_coding_utf8): Flush for er_buf must be
107         done before `decode_output_utf8_partial_char'.
108
109         * mule-charset.c (complex_vars_of_mule_charset): Specify
110         `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
111         `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
112
113 2002-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
114
115         * mule-charset.c (decode_defined_char): New function; search
116         mother.
117         (decode_builtin_char): Don't search mother if
118         XCHARSET_MAX_CODE(charset) == 0.
119         (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
120         == 0 even if code >= XCHARSET_MAX_CODE(charset).
121         (Fdecode_char): Use `decode_defined_char' instead of
122         `DECODE_DEFINED_CHAR'.
123         (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
124         mother of `Vcharset_ucs_jis'.
125
126         * text-coding.c (decode_coding_big5): Use `decode_defined_char'
127         instead of `DECODE_DEFINED_CHAR'.
128
129         * char-ucs.h (decode_defined_char): Renamed from
130         `DECODE_DEFINED_CHAR'; changed to normal function.
131         (DECODE_CHAR): Use `decode_defined_char' instead of
132         `DECODE_DEFINED_CHAR'.
133
134         * lisp.h: Add `EXFUN' for `Fstring_to_number'.
135
136 2002-07-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
137
138         * char-ucs.h: Add `extern' for `Vcharset_ucs'.
139
140         * text-coding.c (Vcoded_charset_entity_reference_alist): New
141         variable.
142         (Quse_entity_reference): New variable.
143         (Qd): New variable.
144         (Qx): New variable.
145         (QX): New variable.
146         (coding_system_description): Add description for
147         `ccs_priority_list'.
148         (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
149         (allocate_coding_system): Initialize `ccs_priority_list' in
150         UTF-2000.
151         (Fmake_coding_system): Add description about
152         'use-entity-reference; setup
153         CODING_SYSTEM_USE_ENTITY_REFERENCE(codesys).
154         (Fcoding_system_property): Accept `disable-composition' and
155         `use-entity-reference' in UTF-2000.
156         (struct decoding_stream): Add new member `er_counter' and `er_buf'
157         in UTF-2000.
158         (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
159         (decode_coding_utf8): Decode entity-reference if
160         CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
161         (char_encode_utf8): Encode non-Unicode characters as
162         entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
163         (str->codesys).
164         (syms_of_file_coding): Add new symbols `use-entity-reference',
165         `d', `x', `X'.
166         (vars_of_file_coding): Add new variable
167         `coded-charset-entity-reference-alist'.
168         (complex_vars_of_file_coding): Declare `disable-composition' and
169         `use-entity-reference' to be coding-system-properties in UTF-2000.
170
171         * file-coding.h (struct Lisp_Coding_System): Add new member
172         `use_entity_reference' and `ccs_priority_list'.
173         (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
174         (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
175         (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
176
177 2002-02-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
178
179         * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
180
181 2002-02-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
182
183         * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
184         `XCHARSET_GRAPHIC(ccs)'.
185
186 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
187
188         * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
189         for decoding-table.
190
191 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
192
193         * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
194         instead of `XCHARSET_CHARS'.
195
196 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
197
198         * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
199         (XCHARSET_BYTE_SIZE): Likewise.
200
201         * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
202         mule-charset.c].
203         (XCHARSET_BYTE_SIZE): Likewise.
204
205 2002-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
206
207         * char-ucs.h (decoding_table_check_elements): Delete prototype.
208         (get_ccs_octet_table): New inline function.
209         (put_ccs_octet_table): Likewise.
210         (decoding_table_put_char): Use `get_ccs_octet_table' and
211         `put_ccs_octet_table'.
212         (decoding_table_remove_char): Use `decoding_table_put_char'.
213         (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
214
215         * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
216         into encoding_table.
217         (make_charset): Use Qunbound instead Qnil as initial value of
218         decoding_table.
219
220 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
221
222         * mule-charset.c (put_char_ccs_code_point): Modify for
223         `decoding_table_remove_char' and `decoding_table_put_char'.
224         (remove_char_ccs): Modify for `decoding_table_remove_char'.
225
226         * char-ucs.h (decoding_table_remove_char): Change arguments to
227         hide decoding_table vector.
228         (decoding_table_put_char): Likewise.
229
230 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
231
232         * mule-charset.c (decoding_table_remove_char): Moved to
233         char-ucs.h.
234         (decoding_table_put_char): Likewise.
235
236         * char-ucs.h (decoding_table_check_elements): New prototype [moved
237         from mule-charset.c].
238         (decoding_table_remove_char): New inline function [moved from
239         mule-charset.c].
240         (decoding_table_put_char): Likewise.
241
242 2002-04-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
243
244         * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
245         instead of `DECODE_CHAR' for mother; don't use special code for
246         chinese-big5 to use code space of chinese-big5-1 and
247         chinese-big5-2.
248         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
249         `MAX_CHAR_BIG5_CDP' for chinese-big5.
250
251         * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
252         (MAX_CHAR_BIG5_CDP): Revival.
253
254 2002-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
255
256         * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
257         the XLFD registry-encoding name of `chinese-big5'.
258
259 2002-04-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
260
261         * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
262         (Qchinese_big5_cdp): Deleted.
263         (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
264         (complex_vars_of_mule_charset): Delete coded-charset
265         `chinese-big5-cdp'.
266
267         * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
268         (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
269         `CHARSET_ID_OFFSET - n' for private CCS.
270         (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
271         (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
272         of `MIN_LEADING_BYTE'.
273         (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
274         `(CHARSET_ID_OFFSET - 97)'.
275         (MIN_CHAR_BIG5_CDP): Deleted.
276         (MAX_CHAR_BIG5_CDP): Deleted.
277
278 2002-01-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
279
280         * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
281         extension.
282
283 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
284
285         * mule-charset.c (decode_builtin_char): Support mother charsets.
286
287 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
288
289         * mule-charset.c (Q94x94x60): New variable.
290         (charset_code_point): Support conversion `94x94x60'.
291         (Fmake_charset): Likewise.
292         (syms_of_mule_charset): Add new symbol `94x94x60'.
293
294         * char-ucs.h (CONVERSION_94x94x60): New macro.
295
296 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
297
298         * mule-charset.c (charset_code_point): Unify code about
299         `code-offset'.
300
301 2001-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
302
303         * mule-charset.c (charset_code_point): Merge code about builtin
304         characters into code about mother charsets; don't use
305         `range_charset_code_point'.
306         (range_charset_code_point): Deleted.
307
308 2001-12-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
309
310         * mule-charset.c (Qcode_offset): New variable.
311         (Fmake_charset): Use `XUINT' to get value of `min-code' and
312         `max-code'; accept new property `code-offset'.
313         (syms_of_mule_charset): Add new symbol `code-offset'.
314
315 2001-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
316
317         * mule-charset.c (range_charset_code_point): Fixed.
318
319 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
320
321         * mule-charset.c (decode_builtin_char): Change semantics of
322         code-offset of coded-charset.
323         (charset_code_point): Likewise.
324         (range_charset_code_point): Likewise.
325         (complex_vars_of_mule_charset): Modify for the change.
326
327 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
328
329         * mule-charset.c (Fencode_char): Reverse arguments.
330
331         * mule-charset.c (charset_code_point): Fixed.
332
333 2001-12-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
334
335         * mule-charset.c (Vcharset_mojikyo): Deleted.
336         (Vcharset_mojikyo_2022_1): Deleted.
337         (Vcharset_mojikyo_pj_{1..21}): Deleted.
338         (Qmin_code): New variable in UTF-2000.
339         (Qmax_code): Likewise.
340         (Qmother): Likewise.
341         (Qconversion): Likewise.
342         (Q94x60): Likewise.
343         (Qmojikyo): Deleted.
344         (Qmojikyo_2022_1): Deleted.
345         (Qmojikyo_pj_{1..22}): Deleted.
346         (mark_charset): Mark `cs->mother'.
347         (charset_description): Add description for `mother'.
348         (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
349         new arguments `mother' and `conversion'; use
350         `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
351         (charset_code_point): Moved from char-ucs.h; support `mother'
352         charset feature.
353         (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
354         of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
355         (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
356         UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
357         allow 2 as the value of `graphic' in UTF-2000; add new properties
358         `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
359         require `final' in UTF-2000; modify for `make_charset'.
360         (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
361         instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
362         (Fcharset_property): Support `mother', `min-code' and `max-code'.
363         (Fencode_char): New function.
364         (syms_of_mule_charset): Add new builtin function `encode-char' in
365         UTF-2000; add new symbols `min-code', `max-code', `mother',
366         `conversion' and `94x60'; delete symbols `mojikyo',
367         `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
368         (complex_vars_of_mule_charset): Modify for `make_charset' change;
369         delete coded-charsets `mojikyo', `mojikyo-2022-1' and
370         `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
371
372         * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
373         `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
374
375         * char-ucs.h (Vcharset_mojikyo): Deleted.
376         (Vcharset_mojikyo_2022_1): Deleted.
377         (LEADING_BYTE_MOJIKYO): Deleted.
378         (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
379         (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
380         (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
381         (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
382         add new member `mother'; add new member `conversion'.
383         (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
384         (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
385         (CHARSET_MOTHER): New macro.
386         (CHARSET_CONVERSION): New macro.
387         (CONVERSION_IDENTICAL): New macro.
388         (CONVERSION_94x60): New macro.
389         (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
390         (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
391         (XCHARSET_MOTHER): New macro.
392         (XCHARSET_CONVERSION): New macro.
393         (MIN_CHAR_MOJIKYO): Deleted.
394         (MAX_CHAR_MOJIKYO): Deleted.
395         (DECODE_MOJIKYO_2022): Deleted.
396         (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
397         (charset_code_point): Changed to non-inline function.
398         (encode_char_1): Use `charset_code_point'.
399         (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
400
401 2001-12-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
402
403         * lread.c (read_compiled_function): Fix prototype.
404         (read_vector): Likewise.
405
406 2001-12-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
407
408         * lrecord.h (struct lrecord_header): Delete `older'.
409         (set_lheader_implementation): Delete code for `older'.
410         (set_lheader_older_implementation): Deleted.
411         (enum lrecord_type): Delete `lrecord_type_char_id_table'.
412         (OLDER_RECORD_P): Deleted.
413         (OLDER_RECORD_HEADER_P): Deleted.
414         (alloc_older_lcrecord): Deleted.
415         (alloc_older_lcrecord_type): Deleted.
416
417         * alloc.c (all_older_lcrecords): Deleted.
418         (alloc_older_lcrecord): Deleted.
419         (disksave_object_finalization_1): Delete code for older objects.
420         (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
421         (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
422
423 2001-12-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
424
425         * mule-charset.c (decoding_table_put_char): Use `make_vector'
426         instead of `make_older_vector'.
427         (put_char_ccs_code_point): Likewise.
428         (mark_charset): Mark `cs->decoding_table'.
429         (Fset_charset_mapping_table): Don't use `make_vector_newer'.
430
431         * lisp.h (make_older_vector): Deleted.
432         (make_vector_newer): Deleted.
433
434         * config.h.in (HAVE_GGC): Deleted.
435
436         * alloc.c (make_older_vector): Deleted.
437         (make_vector_newer_1): Deleted.
438         (make_vector_newer): Deleted.
439
440 2001-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
441
442         * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
443         (Qideograph_daikanwa_2): New variable.
444         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
445         (complex_vars_of_mule_charset): Add new coded-charset
446         `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
447         `LEADING_BYTE_DAIKANWA'.
448
449         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
450         (LEADING_BYTE_DAIKANWA_1): New macro.
451         (LEADING_BYTE_DAIKANWA_2): New macro.
452         (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
453
454 2001-12-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
455
456         * mule-charset.c (complex_vars_of_mule_charset): Change
457         DOC-strings and registry of `ideograph-daikanwa'; now it indicates
458         the second revised version.
459
460 2001-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
461
462         * mule-charset.c (Vcharset_ucs_smp): New variable.
463         (Vcharset_ucs_sip): New variable.
464         (Qucs_smp): New variable.
465         (Qucs_sip): New variable.
466         (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
467         MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
468         (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
469         (complex_vars_of_mule_charset): Modify middle-DOC and registry of
470         `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
471         charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
472
473         * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
474         (LEADING_BYTE_UCS_SIP): New macro.
475         (MIN_CHAR_SMP): New macro.
476         (MAX_CHAR_SMP): New macro.
477         (MIN_CHAR_SIP): New macro.
478         (MAX_CHAR_SIP): New macro.
479
480 2001-11-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
481
482         * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
483         utf-2000.
484
485 2001-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
486
487         * mule-charset.c (put_char_ccs_code_point): Return canonicalized
488         value; don't store value into `encoding_table' of `Lisp_Charset'.
489         (mark_charset): `encoding_table' was deleted.
490         (charset_description): Likewise.
491         (make_charset): Likewise.
492         (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
493         `put_char_ccs_code_point'.
494
495         * chartab.h (Fput_char_attribute): New EXFUN.
496
497         * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
498         is unified with normal symbol space.
499         (Fget_char_attribute): Likewise.
500         (Fput_char_attribute): Likewise; behavior of
501         `put_char_ccs_code_point' is changed.
502
503         * char-ucs.h: Include "elhash.h".
504         (Vchar_attribute_hash_table): New external variable.
505         (struct Lisp_Charset): Delete `encoding_table'.
506         (CHARSET_ENCODING_TABLE): New implementation; refer
507         `Vchar_attribute_hash_table' instead of `encoding_table' of struct
508         `Lisp_Charset'.
509
510 2001-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
511
512         * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
513         (cs) == 0.
514
515 2001-11-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
516
517         * text-coding.c (char_encode_big5): Prefer charset-g1 than
518         `chinese-big5'.
519
520 2001-11-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
521
522         * chartab.c (uint8_byte_table_description): New constant.
523         (uint8-byte-table): Use `uint8_byte_table_description'.
524         (uint16_byte_table_description): New constant.
525         (uint16-byte-table): Use `uint16_byte_table_description'.
526
527 2001-10-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
528
529         * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
530         range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
531
532 2001-10-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
533
534         * mule-charset.c (Vcharset_ucs_ks): New variable.
535         (Qucs_ks): New variable.
536         (syms_of_mule_charset): Add new symbol `ucs-ks'.
537         (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
538
539         * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
540
541 2001-10-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
542
543         * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
544         (Fdecode_char): Likewise.
545
546         * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
547         chartab.h.
548         (Fdefine_char): Modify for Fdecode_char.
549         (Ffind_char): Likewise.
550
551         * mule-charset.c (Fdecode_char): Add new optional argument
552         `defined-only'.
553         (Fdecode_builtin_char): Modify for `Fdecode_char'.
554
555 2001-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
556
557         * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
558         -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
559         (allocate_coding_system): Initialize initial-charsets of
560         CODESYS_BIG5 in XEmacs UTF-2000.
561         (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
562         CODESYS_BIG5 in XEmacs UTF-2000.
563         (decode_coding_big5): Use initial-charset-g0 and -g1 of
564         CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
565
566         * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
567         variables.
568         (Qideograph_hanziku_{1 .. 12}): Likewise.
569         (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
570         .. 12}'.
571         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
572         `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
573         `ideograph-hanziku-{1 .. 12}'.
574
575         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
576         (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
577         ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
578         ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
579         (DECODE_DEFINED_CHAR): New inline function.
580         (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
581
582 2001-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
583
584         * mule-charset.c (Vcharset_china3_jef): Renamed from
585         `Vcharset_japanese_jef_china3'.
586         (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
587         (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
588         `{MIN|MAX}_CHAR_JEF_CHINA3'..
589         (syms_of_mule_charset): Rename `china3-jef' from
590         `japanese-jef-china3'.
591         (complex_vars_of_mule_charset): Likewise; rename
592         `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
593
594         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
595         `LEADING_BYTE_JEF_CHINA3'.
596         (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
597         (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
598
599 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
600
601         * mule-charset.c (encode_builtin_char_1): Comment out special code
602         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
603
604         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
605         (MAX_CHAR_MOJIKYO_0): Comment out.
606         (MIN_CHAR_CBETA): Changed to 0x00E20000.
607         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
608         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
609         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
610
611 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
612
613         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
614         (Qideograph_cbeta): New variable.
615         (encode_builtin_char_1): Comment out special code for
616         coded-charset `mojikyo' and `japanese-jef-china3'.
617         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
618         (complex_vars_of_mule_charset): Add new coded-charset
619         `ideograph-cbeta'.
620
621         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
622         (MIN_CHAR_CBETA): New macro.
623         (MAX_CHAR_CBETA): New macro.
624
625 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
626
627         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
628         (LEADING_BYTE_JEF_CHINA3): New macro.
629         (MIN_CHAR_JEF_CHINA3): New macro.
630         (MAX_CHAR_JEF_CHINA3): Likewise.
631         (DECODE_CHAR): Fixed.
632
633 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
634
635         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
636         (Qjapanese_jef_china3): New variable.
637         (encode_builtin_char_1): Support `japanese-jef-china3'.
638         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
639         (complex_vars_of_mule_charset): Add new coded-charset
640         `japanese-jef-china3'.
641
642 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
643
644         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
645         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
646         94^4, 96^3, 96^4, 128^n and 256^n set.
647         (put_char_table): Use `XCHARSET_CELL_RANGE'.
648         (map_char_table): Likewise.
649
650 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
651
652         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
653         UTF-2000.
654
655 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
656
657         * chartab.h (get_char_id_table): New inline function.
658
659         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
660         function.
661
662 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
663
664         * chartab.h (decode_char_table_range): New prototype in XEmacs
665         UTF-2000.
666         (put_char_id_table): New inline function in XEmacs UTF-2000.
667
668         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
669         function.
670         (decode_char_table_range): Delete static declaration in XEmacs
671         UTF-2000.
672
673 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
674
675         * chartab.c (put_char_id_table): Use `put_char_table'.
676
677 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
678
679         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
680         (map_over_uint16_byte_table): Likewise.
681         (map_over_byte_table): Likewise.
682         (map_char_table): Modify for `map_over_uint8_byte_table',
683         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
684         UTF-2000.
685
686 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
687
688         * chartab.c (struct map_char_table_for_charset_arg): New
689         structure.
690         (map_char_table_for_charset_fun): New function.
691         (map_char_table): Use `map_char_table' for encoding_table of
692         `range->charset'.
693
694 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
695
696         * chartab.c (map_char_table): Check a character is found in
697         range->charset instead of non default value is defined in
698         char-table when range is CHARTAB_RANGE_ROW.
699
700 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
701
702         * chartab.c (map_char_id_table): Deleted.
703         (Fmap_char_attribute): Use `map_char_table' instead of
704         `map_char_id_table'.
705
706 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
707
708         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
709         UTF-2000.
710         (update_syntax_table): Deleted in XEmacs UTF-2000.
711
712         * syntax.c (find_defun_start): Use `syntax_table' instead of
713         `mirror_syntax_table' in XEmacs UTF-2000.
714         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
715         UTF-2000.
716         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
717         XEmacs UTF-2000.
718         (Fmatching_paren): Likewise.
719         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
720         in XEmacs UTF-2000.
721         (find_start_of_comment): Likewise.
722         (find_end_of_comment): Likewise.
723         (Fforward_comment): Likewise.
724         (scan_lists): Likewise.
725         (char_quoted): Likewise.
726         (Fbackward_prefix_chars): Likewise.
727         (scan_sexps_forward): Likewise.
728         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
729         (update_syntax_table): Likewise.
730
731         * search.c (skip_chars): Use `syntax_table' instead of
732         `mirror_syntax_table' in XEmacs UTF-2000.
733         (wordify): Likewise.
734         (Freplace_match): Likewise.
735
736         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
737         `mirror_syntax_table' in XEmacs UTF-2000.
738         (WORDCHAR_P_UNSAFE): Likewise.
739         (re_match_2_internal): Likewise.
740
741         * font-lock.c (find_context): Use `buf->syntax_table' instead of
742         `buf->mirror_syntax_table' in XEmacs UTF-2000.
743
744         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
745         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
746
747         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
748         XEmacs UTF-2000.
749
750         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
751         UTF-2000.
752         (print_char_table): Print `default_value' in XEmacs UTF-2000.
753         (char_table_description): Delete `mirror_table' in XEmacs
754         UTF-2000.
755         (fill_char_table): Don't call `update_syntax_table' in XEmacs
756         UTF-2000.
757         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
758         (Fcopy_char_table): Likewise.
759         (put_char_table): Don't call `update_syntax_table' in XEmacs
760         UTF-2000.
761
762         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
763         `buf->mirror_syntax_table' in XEmacs UTF-2000.
764         (casify_region_internal): Likewise.
765
766         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
767
768         * buffer.c (common_init_complex_vars_of_buffer): Don't use
769         `mirror_syntax_table' in XEmacs UTF-2000.
770
771         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
772         `buf->mirror_syntax_table' in XEmacs UTF-2000.
773         (Fexpand_abbrev): Likewise.
774
775 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
776
777         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
778
779 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
780
781         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
782         (map_over_uint16_byte_table): Likewise.
783         (map_over_byte_table): Likewise.
784         (get_char_id_table): Refer `cit->default_value'.
785         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
786         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
787         of character-id ranges.
788         (mark_char_table): Mark `ct->default_value'.
789         (char_table_description): Add `default_value'.
790         (fill_char_table): Use `default_value'.
791         (decode_char_table_range): Decode `nil' as
792         `CHARTAB_RANGE_DEFAULT'.
793         (get_char_id_table): Refer `cit->default_value'.
794         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
795         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
796         temporary hack; check value of char-table is bound or not.
797         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
798
799         * chartab.h (struct Lisp_Char_Table): Add new member
800         `default_value' in XEmacs UTF-2000.
801         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
802         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
803         UTF-2000.
804
805 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
806
807         * chartab.h (Lisp_Char_ID_Table): Deleted.
808
809         * chartab.c (char_table_description): Fix typo.
810         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
811         `Lisp_Char_ID_Table'.
812
813 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
814
815         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
816         `CHAR_ID_TABLE_P'.
817
818         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
819         `CHAR_ID_TABLE_P'.
820
821         * chartab.h (XCHAR_ID_TABLE): Deleted.
822         (XSETCHAR_ID_TABLE): Deleted.
823         (CHAR_ID_TABLE_P): Deleted.
824
825         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
826         `CHAR_ID_TABLE_P'.
827         (Fget_composite_char): Likewise.
828         (put_char_table): Likewise.
829         (add_char_attribute_alist_mapper): Fixed.
830         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
831         `CHAR_ID_TABLE_P'.
832         (Fget_char_attribute): Likewise.
833         (Fget_char_attribute): Likewise.
834         (Fmap_char_attribute): Likewise.
835
836         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
837         `CHAR_ID_TABLE_P'.
838         (encode_char_1): Likewise.
839
840 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
841
842         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
843         `XCHAR_ID_TABLE'.
844
845         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
846         instead of `XCHAR_ID_TABLE'.
847         (remove_char_ccs): Likewise.
848
849         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
850         `XCHAR_ID_TABLE'.
851         (Fget_composite_char): Likewise.
852         (Fchar_variants): Likewise.
853         (put_char_table): Likewise.
854         (add_char_attribute_alist_mapper): Likewise.
855         (Fchar_attribute_alist): Likewise.
856         (Fget_char_attribute): Likewise.
857         (Fput_char_attribute): Likewise.
858         (Fmap_char_attribute): Likewise.
859         (Fmap_char_attribute): Likewise.
860
861         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
862         `XCHAR_ID_TABLE'.
863         (encode_char_1): Likewise.
864
865 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
866
867         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
868         `Lisp_Char_ID_Table'.
869         (mark_char_id_table): Deleted.
870         (print_char_id_table): Likewise.
871         (char_id_table_equal): Likewise.
872         (char_id_table_hash): Likewise.
873         (char_id_table_description): Likewise.
874         (char_id_table): Likewise.
875         (make_char_id_table): Use `Fmake_char_table' and
876         `fill_char_table'.
877         (get_char_id_table): Use `Lisp_Char_Table' instead of
878         `Lisp_Char_ID_Table'.
879         (put_char_id_table): Likewise.
880         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
881         `XCHAR_ID_TABLE'.
882         (Fremove_char_attribute): Likewise.
883         (syms_of_chartab): Don't define type `char-id-table'.
884
885         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
886         (char_id_table): Likewise.
887         (GC_CHAR_ID_TABLE_P): Likewise.
888         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
889         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
890         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
891         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
892         (get_char_id_table): Use `Lisp_Char_Table' instead of
893         `Lisp_Char_ID_Table'.
894         (put_char_id_table_0): Likewise.
895         (put_char_id_table): Likewise.
896
897 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
898
899         * chartab.h: Lisp_Byte_Table related codes are moved from
900         chartab.h.
901
902         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
903
904 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
905
906         * chartab.h: Don't include "chartab.h".
907         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
908         (Lisp_Char_ID_Table): Likewise.
909         (char_id_table): Likewise.
910         (XCHAR_ID_TABLE): Likewise.
911         (XSETCHAR_ID_TABLE): Likewise.
912         (CHAR_ID_TABLE_P): Likewise.
913         (GC_CHAR_ID_TABLE_P): Likewise.
914         (get_char_id_table): Likewise.
915
916         * char-ucs.h: Include "chartab.h".
917         (struct Lisp_Char_ID_Table): Moved to chartab.h.
918         (Lisp_Char_ID_Table): Likewise.
919         (char_id_table): Likewise.
920         (XCHAR_ID_TABLE): Likewise.
921         (XSETCHAR_ID_TABLE): Likewise.
922         (CHAR_ID_TABLE_P): Likewise.
923         (GC_CHAR_ID_TABLE_P): Likewise.
924         (get_char_id_table): Likewise.
925
926 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
927
928         * chartab.c (copy_uint8_byte_table): New function.
929         (copy_uint16_byte_table): New function.
930         (copy_byte_table): New function.
931         (map_over_uint8_byte_table): Modify to avoid huge numbers of
932         characters to call.
933         (map_over_uint16_byte_table): Likewise.
934         (map_over_byte_table): Likewise.
935         (get_byte_table): Move prototype to chartab.h.
936         (put_byte_table): Likewise.
937         (put_char_id_table_0): Moved to chartab.h.
938         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
939         (char_table_entry_equal): Likewise.
940         (char_table_entry_hash): Likewise.
941         (char_table_entry_description): Likewise.
942         (char_table_entry): Likewise.
943         (make_char_table_entry): Likewise.
944         (copy_char_table_entry): Likewise.
945         (get_non_ascii_char_table_value): Likewise.
946         (map_over_charset_ascii): Likewise.
947         (map_over_charset_control_1): Likewise.
948         (map_over_charset_row): Likewise.
949         (map_over_other_charset): Likewise.
950         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
951         (print_char_table): Likewise.
952         (char_table_equal): Likewise.
953         (char_table_hash): Likewise.
954         (char_table_description): Likewise.
955         (fill_char_table): Likewise.
956         (Fcopy_char_table): Likewise.
957         (get_char_table): Likewise.
958         (Fget_range_char_table): Likewise.
959         (put_char_table): Likewise.
960         (map_char_table): Likewise.
961         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
962         UTF-2000.
963
964 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
965
966         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
967         `Vauto_fill_chars' in XEmacs UTF-2000.
968
969         * chartab.h (get_byte_table): New prototype [moved from
970         chartab.c].
971         (put_byte_table): Likewise [moved from chartab.c].
972         (put_char_id_table_0): New inline function [moved from chartab.c].
973         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
974         (Lisp_Char_Table_Entry): Likewise.
975         (char_table_entry): Likewise.
976         (XCHAR_TABLE_ENTRY): Likewise.
977         (XSETCHAR_TABLE_ENTRY): Likewise.
978         (CHAR_TABLE_ENTRYP): Likewise.
979         (CHECK_CHAR_TABLE_ENTRY): Likewise.
980         (NUM_ASCII_CHARS): Likewise.
981         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
982         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
983
984 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
985
986         * chartab.c (get_char_id_table): Change interface.
987         (put_char_id_table_0): New function.
988         (put_char_id_table): Change interface; new implementation.
989         (Fget_composite_char): Modify for interface change of
990         `get_char_id_table'.
991         (Fchar_variants): Likewise.
992         (add_char_attribute_alist_mapper): Likewise.
993         (Fchar_attribute_alist): Likewise.
994         (Fget_char_attribute): Likewise.
995         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
996         as same as character as the first argument like `put-char-table';
997         modify for interface change of `put_char_id_table'.
998         (Fremove_char_attribute): Modify for interface change of
999         `put_char_id_table'.
1000
1001 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1002
1003         * text-coding.c: Sync up with XEmacs 21.2.41.
1004         (COMPOSE_ADD_CHAR): Modify for interface change of
1005         `get_char_id_table'.
1006
1007         * mule-charset.c (put_char_ccs_code_point): Modify for interface
1008         change of `put_char_id_table'.
1009         (remove_char_ccs): Likewise.
1010
1011         * chartab.h (put_char_id_table): Change interface.
1012
1013         * char-ucs.h (get_char_id_table): Change interface.
1014         (charset_code_point): Modify for interface change of
1015         `get_char_id_table'.
1016         (encode_char_1): Likewise.
1017
1018 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1019
1020         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
1021         argument `ccs'.
1022         (map_over_uint16_byte_table): Likewise.
1023         (map_over_byte_table): Likewise.
1024         (map_char_id_table): Add new argument `range' like
1025         `map_char_table'.
1026         (Fmap_char_attribute): Add new argument `range' like
1027         `Fmap_char_table'.
1028
1029 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1030
1031         * chartab.c (map_over_uint8_byte_table): Change interface of
1032         mapping function to use struct chartab_range instead of Emchar.
1033         (map_over_uint16_byte_table): Likewise.
1034         (map_over_byte_table): Likewise.
1035         (map_char_id_table): Likewise.
1036         (struct slow_map_char_id_table_arg): Deleted.
1037         (slow_map_char_id_table_fun): Deleted.
1038         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
1039         function `slow_map_char_table_fun' instead of struct
1040         `slow_map_char_id_table_arg' and function
1041         `slow_map_char_id_table_fun'.
1042
1043 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1044
1045         * mule-charset.c: Move char-it-table related codes to chartab.c.
1046         (Vutf_2000_version): Moved to chartab.c.
1047         (Fdefine_char): Likewise.
1048         (Ffind_char): Likewise.
1049         (syms_of_mule_charset): Move types `uint8-byte-table',
1050         `uint16-byte-table', `byte-table' and `char-id-table' to
1051         chartab.c; move functions `char_attribute_list,
1052         `find_char_attribute_table, `char_attribute_alist,
1053         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
1054         `map_char_attribute, `define_char, `find_char, `char_variants and
1055         `get_composite_char to chartab.c; move symbols `=>ucs',
1056         `->decomposition', `compat', `isolated', `initial', `medial',
1057         `final', `vertical', `noBreak', `fraction', `super', `sub',
1058         `circle', `square', `wide', `narrow', `small' and `font' to
1059         chartab.c.
1060         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
1061         setting codes for `Vcharacter_composition_table' and
1062         `Vcharacter_variant_table' to chartab.c.
1063         (complex_vars_of_mule_charset): Move setting code for
1064         `Vchar_attribute_hash_table' to chartab.c.
1065
1066         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
1067         (make_char_id_table): New prototype.
1068         (put_char_id_table): Likewise.
1069         (Fget_char_attribute): Likewise.
1070
1071         * chartab.c: Move char-id-table related code from mule-charset.c.
1072         (Vutf_2000_version): Moved from mule-charset.c.
1073
1074         * char-ucs.h (Qucs): New external variable.
1075         (put_char_ccs_code_point): New prototype.
1076         (remove_char_ccs): Likewise.
1077
1078 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1079
1080         * mule-charset.c (Vcharset_ucs_jis): New variable.
1081         (Qucs_jis): Likewise.
1082         (syms_of_mule_charset): Add new symbol `ucs-jis'.
1083         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
1084
1085         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
1086
1087 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1088
1089         * mule-charset.c (map_over_uint8_byte_table): New function.
1090         (map_over_uint16_byte_table): Likewise.
1091         (map_over_byte_table): Likewise.
1092         (map_char_id_table): Likewise.
1093         (slow_map_char_id_table_fun): Likewise.
1094         (Fmap_char_attribute): Likewise.
1095         (syms_of_mule_charset): Add new function `map-char-attribute'.
1096
1097 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1098
1099         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
1100         (syms_of_mule_charset): Add new function `find-char'.
1101
1102 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1103
1104         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
1105         XEmacs UTF-2000.
1106         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
1107         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
1108         XEmacs UTF-2000.
1109         (complex_vars_of_mule_charset): Add new coded-charset
1110         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
1111         `ideograph-gt-pj-*'.
1112
1113         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
1114
1115 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1116
1117         * mule-charset.c (encode_builtin_char_1): Purge codes about
1118         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
1119         {MIN|MAX}_CHAR_HEBREW.
1120         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
1121         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
1122
1123         * char-ucs.h (MIN_CHAR_GREEK): Purged.
1124         (MAX_CHAR_GREEK): Purged.
1125         (MIN_CHAR_CYRILLIC): Purged.
1126         (MAX_CHAR_CYRILLIC): Purged.
1127         (MIN_CHAR_HEBREW): Commented out.
1128         (MAX_CHAR_HEBREW): Likewise.
1129
1130 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1131
1132         * mule-charset.c (Qto_ucs): New variable.
1133         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
1134         (Fdefine_char): Likewise.
1135         (syms_of_mule_charset): Add new symbol `=>ucs'.
1136
1137 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1138
1139         * mule-charset.c (Fdecode_char): Fixed.
1140
1141 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1142
1143         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
1144         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
1145         "tcvn5712-1".
1146
1147 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1148
1149         * mule-charset.c (Vcharset_ucs_big5): New variable.
1150         (Qucs_big5): Likewise.
1151         (syms_of_mule_charset): Add new symbol `ucs-big5'.
1152         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
1153
1154         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
1155
1156 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1157
1158         * mule-charset.c (decode_builtin_char): Check Big5 code range
1159         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
1160
1161 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1162
1163         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
1164         (Qchinese_gb12345): Likewise.
1165         (Fdecode_builtin_char): Fixed.
1166         (syms_of_mule_charset): Add `chinese-gb12345'.
1167         (complex_vars_of_mule_charset): Add coded-charset
1168         `chinese-gb12345'.
1169
1170         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
1171         (LEADING_BYTE_CHINESE_GB12345): New macro.
1172
1173 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1174
1175         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
1176         and `latin-viscii-upper' for `latin-viscii'.
1177
1178 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1179
1180         * mule-charset.c (Fdecode_builtin_char): Comment out
1181         regularization code for ISO-IR GR representation.
1182
1183 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1184
1185         * mule-charset.c (decode_builtin_char): New function; renamed from
1186         `make_builtin_char'; return -1 instead of signal.
1187         (Fdecode_builtin_char): Use `decode_builtin_char'.
1188
1189         * char-ucs.h (decode_builtin_char): New prototype; renamed from
1190         `make_builtin_char'.
1191         (DECODE_CHAR): Use `decode_builtin_char' instead of
1192         `make_builtin_char'; use mapping table of `chinese-big5' for
1193         `chinese-big5-{1,2}'.
1194
1195 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1196
1197         * text-coding.c (char_encode_big5): New function.
1198         (char_finish_big5): Likewise.
1199         (reset_encoding_stream): Use `char_encode_big5' and
1200         `char_finish_big5' for CODESYS_BIG5.
1201         (mule_encode): Don't use `encode_coding_big5'.
1202         (encode_coding_big5): Deleted.
1203
1204 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1205
1206         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
1207         0x81- in XEmacs UTF-2000.
1208         (detect_coding_big5): Likewise.
1209
1210 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1211
1212         * mule-charset.c (Fdefine_char): Don't use a CCS property to
1213         generate character-id if the CCS property does not have
1214         corresponding predefined character.
1215         (make_builtin_char): Return -1 if corresponding predefined
1216         character is not found.
1217         (Fdecode_char): Return nil if corresponding character is not
1218         found.
1219         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
1220         don't map to builtin ucs space.
1221
1222 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1223
1224         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
1225         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
1226
1227 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1228
1229         * mule-charset.c (Vcharset_ideograph_gt): New variable.
1230         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
1231         (Qideograph_gt): Likewise.
1232         (Qideograph_gt_pj_{1..11}): Likewise.
1233         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
1234         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
1235         `ideograph-gt-pj-11'.
1236         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
1237         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
1238         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
1239
1240         * char-ucs.h (LEADING_BYTE_GT): New macro.
1241         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
1242         (MIN_CHAR_GT): Likewise.
1243         (MAX_CHAR_GT): Likewise.
1244
1245 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1246
1247         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
1248         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
1249
1250         * doprnt.c (unsigned_int_converters): Add `c'.
1251         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
1252
1253         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
1254         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
1255         `MIN_CHAR_MOJIKYO'.
1256         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
1257         (MAX_CHAR_MOJIKYO_0): New macro.
1258         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
1259
1260 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1261
1262         * mule-charset.c (Fdefine_char): Delete cemented out code.
1263         (encode_builtin_char_1): Modify for new allocation of builtin
1264         Mojikyo characters.
1265
1266         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
1267
1268 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1269
1270         * mule-charset.c (Vcharset_ucs_cns): New variable.
1271         (Qucs_cns): New variable.
1272         (syms_of_mule_charset): Add new symbol `ucs-cns'.
1273         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
1274
1275 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1276
1277         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
1278
1279 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
1280
1281         * search.c (search_buffer): Make `charset_base_code' as
1282         character-id >> 6 to eliminate the corresponding last byte in
1283         UTF-8 representation [I'm not sure it is right thing].
1284         (boyer_moore): Likewise.
1285
1286 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
1287
1288         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
1289         representation in MULE.
1290
1291 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1292
1293         * text-coding.c (Fmake_coding_system): Use
1294         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
1295         `EXTERNAL_PROPERTY_LIST_LOOP'.
1296
1297 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1298
1299         * text-coding.c (decode_output_utf8_partial_char): New function.
1300         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
1301
1302 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1303
1304         * text-coding.c (decode_coding_utf8): Output original byte
1305         sequence if it is broken; change order of conditions.
1306
1307         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
1308         of conditions.
1309
1310         * mb-multibyte.h (BYTE_ASCII_P):
1311         Use bit ops for char-signedness safety.
1312         (BYTE_C0_P): Use bit ops for char-signedness safety.
1313         (BYTE_C1_P): Use bit ops for char-signedness safety.
1314
1315         * character.h: (XCHAR_OR_CHAR_INT):
1316         Always use inline function.
1317         Remove redundant type checking assert() - XINT will abort quite
1318         nicely.
1319
1320 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1321
1322         * text-coding.c: (Fencode_shift_jis_char):
1323         (Fencode_big5_char):
1324         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
1325         Replace 0 with '\0' when working with bytes.
1326         Replace initial "(" with "\(" in docstrings.
1327
1328         (Fmake_coding_system):
1329         When type is ccl and value is vector, register it with a proper
1330         symbol.  And checks whether the given ccl program is valid.
1331         (mule_decode): When calling ccl_driver, if src indicates
1332         NULL pointer, set an empty string instead.
1333         (mule_encode): Likewise.
1334
1335         (detect_eol_type):
1336         (detect_coding_sjis):
1337         (decode_coding_sjis):
1338         (detect_coding_big5):
1339         (decode_coding_big5):
1340         (detect_coding_ucs4):
1341         (decode_coding_ucs4):
1342         (detect_coding_utf8):
1343         (decode_coding_utf8):
1344         (detect_coding_iso2022):
1345         (decode_coding_iso2022):
1346         (decode_coding_no_conversion):
1347         (mule_decode):
1348         Make all detecting and decoding functions take an Extbyte * arg.
1349         (text_encode_generic):
1350         (encode_coding_big5):
1351         (encode_coding_no_conversion):
1352         (mule_encode):
1353         Make all encoding functions take a Bufbyte * arg.
1354         Use size_t instead of unsigned int for memory sizes.
1355         Only cast to unsigned char whenever dereferencing Extbyte *.
1356
1357         (struct lrecord_description fcd_description_1): Use countof.
1358         (complex_vars_of_file_coding):
1359         Use countof instead of sizeof.
1360         Use CHECK_NATNUM instead of CHECK_INT.
1361
1362 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1363
1364         * mule-charset.c (Fget_char_attribute): Add new optional argument
1365         `default-value'.
1366         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
1367         (remove_char_ccs): Likewise.
1368
1369 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1370
1371         * text-coding.c (char_encode_shift_jis): New implementation in
1372         UTF-2000.
1373         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
1374         ...)'.
1375
1376         * mule-charset.c (Vcharset_chinese_big5): New variable in
1377         UTF-2000.
1378         (Qchinese_big5): New variable in UTF-2000.
1379         (BIG5_SAME_ROW): New macro in UTF-2000.
1380         (make_builtin_char): Use builtin characters of
1381         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
1382         characters of `Vcharset_chinese_big5'.
1383         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
1384         (complex_vars_of_mule_charset): Add new coded-charset
1385         `chinese-big5' in UTF-2000.
1386
1387         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
1388         (Vcharset_chinese_big5): New external variable declaration.
1389         (Vcharset_japanese_jisx0208_1990): Likewise.
1390
1391 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1392
1393         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
1394         function.
1395         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
1396
1397 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1398
1399         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
1400         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
1401         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
1402         `mojikyo-pj-*'.
1403
1404 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1405
1406         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
1407
1408 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1409
1410         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1411         to 0.17.
1412
1413 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1414
1415         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
1416         for `CHARSET_BY_ATTRIBUTES'.
1417         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
1418         `CHARSET_BY_ATTRIBUTES'.
1419
1420         * text-coding.c (struct decoding_stream): Rename member `CH' to
1421         `CPOS'.
1422         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
1423         (decode_coding_sjis): Likewise.
1424         (decode_coding_big5): Likewise.
1425         (decode_coding_ucs4): Likewise.
1426         (decode_coding_utf8): Likewise.
1427         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
1428         `CHARSET_BY_ATTRIBUTES'.
1429         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
1430         `str->counter'; decode 3, 4 bytes sets.
1431         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
1432         sets.
1433         (decode_coding_no_conversion): Use `str->cpos' instead of
1434         `str->ch'.
1435
1436         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
1437         (Qmojikyo_2022_1): New variable.
1438         (make_charset): Don't use `CHARSET_TYPE_*'.
1439         (range_charset_code_point): Support coded-charset
1440         `mojikyo-2022-1'.
1441         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
1442         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
1443         `CHARSET_BY_ATTRIBUTES'.
1444         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
1445         `CHARSET_BY_ATTRIBUTES'.
1446         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
1447         (complex_vars_of_mule_charset): Add new coded-charset
1448         `mojikyo-2022-1'.
1449
1450         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
1451         interface; changed to inline function.
1452
1453         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
1454         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
1455         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
1456         (CHARSET_TYPE_94): Deleted.
1457         (CHARSET_TYPE_94X94): Deleted.
1458         (CHARSET_TYPE_96): Deleted.
1459         (CHARSET_TYPE_96X96): Deleted.
1460         (CHARSET_TYPE_128): Deleted.
1461         (CHARSET_TYPE_128X128): Deleted.
1462         (CHARSET_TYPE_256): Deleted.
1463         (CHARSET_TYPE_256X256): Deleted.
1464         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
1465         to inline function.
1466         (DECODE_MOJIKYO_2022): New inline function.
1467         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
1468         `Vcharset_mojikyo_2022_1'.
1469
1470 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1471
1472         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
1473         instead of `EQ'.
1474         (put_byte_table): Likewise.
1475         (char_id_table_equal): Use `get_byte_table' [new implementation].
1476
1477 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1478
1479         * mule-charset.c: Include <limits.h> in UTF-2000.
1480         (BT_UINT8_MIN): New macro in UTF-2000.
1481         (BT_UINT8_MAX): New macro in UTF-2000.
1482         (BT_UINT8_t): New macro in UTF-2000.
1483         (BT_UINT8_nil): New macro in UTF-2000.
1484         (BT_UINT8_unbound): New macro in UTF-2000.
1485         (INT_UINT8_P): New inline function in UTF-2000.
1486         (UINT8_VALUE_P): New inline function in UTF-2000.
1487         (UINT8_ENCODE): New inline function in UTF-2000.
1488         (UINT8_DECODE): New inline function in UTF-2000.
1489         (mark_uint8_byte_table): New function in UTF-2000.
1490         (print_uint8_byte_table): New function in UTF-2000.
1491         (uint8_byte_table_equal): New function in UTF-2000.
1492         (uint8_byte_table_hash): New function in UTF-2000.
1493         (make_uint8_byte_table): New function in UTF-2000.
1494         (uint8_byte_table_same_value_p): New function in UTF-2000.
1495         (BT_UINT16_MIN): New macro in UTF-2000.
1496         (BT_UINT16_MAX): New macro in UTF-2000.
1497         (BT_UINT16_t): New macro in UTF-2000.
1498         (BT_UINT16_nil): New macro in UTF-2000.
1499         (BT_UINT16_unbound): New macro in UTF-2000.
1500         (INT_UINT16_P): New inline function in UTF-2000.
1501         (UINT16_VALUE_P): New inline function in UTF-2000.
1502         (UINT16_ENCODE): New inline function in UTF-2000.
1503         (UINT16_DECODE): New inline function in UTF-2000.
1504         (UINT8_TO_UINT16): New inline function in UTF-2000.
1505         (mark_uint16_byte_table): New function in UTF-2000.
1506         (print_uint16_byte_table): New function in UTF-2000.
1507         (uint16_byte_table_equal): New function in UTF-2000.
1508         (uint16_byte_table_hash): New function in UTF-2000.
1509         (make_uint16_byte_table): New function in UTF-2000.
1510         (uint16_byte_table_same_value_p): New function in UTF-2000.
1511         (print_byte_table): New function in UTF-2000.
1512         (byte-table): Use `print_byte_table' as printer.
1513         (make_byte_table): Delete second argument `older'.
1514         (byte_table_same_value_p): New function in UTF-2000.
1515         (copy_byte_table): Deleted.
1516         (get_byte_table): New function in UTF-2000.
1517         (put_byte_table): New function in UTF-2000.
1518         (print_char_id_table): New function in UTF-2000.
1519         (char-id-table): Use `print_char_id_table' as printer.
1520         (make_char_id_table): Delete second argument `older'.
1521         (get_char_id_table): Use `get_byte_table [new implementation].
1522         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
1523         implementation].
1524         (Ffind_char_attribute_table): New function in UTF-2000.
1525         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
1526         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
1527         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
1528         (syms_of_mule_charset): Add new function
1529         `find-char-attribute-table' in UTF-2000.
1530
1531         * lrecord.h (enum lrecord_type): Add
1532         `lrecord_type_uint16_byte_table' and
1533         `lrecord_type_uint8_byte_table'.
1534
1535         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
1536         (Lisp_Uint8_Byte_Table): New type.
1537         (XUINT8_BYTE_TABLE): New macro.
1538         (XSETUINT8_BYTE_TABLE): New macro.
1539         (UINT8_BYTE_TABLE_P): New macro.
1540         (GC_UINT8_BYTE_TABLE_P): New macro.
1541         (struct Lisp_Uint16_Byte_Table): New structure.
1542         (Lisp_Uint16_Byte_Table): New type.
1543         (XUINT16_BYTE_TABLE): New macro.
1544         (XSETUINT16_BYTE_TABLE): New macro.
1545         (UINT16_BYTE_TABLE_P): New macro.
1546         (GC_UINT16_BYTE_TABLE_P): New macro.
1547
1548 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1549
1550         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
1551         (Vcharacter_ideographic_strokes_table): Deleted.
1552         (Vcharacter_total_strokes_table): Deleted.
1553         (Vcharacter_morohashi_daikanwa_table): Deleted.
1554         (Vcharacter_decomposition_table): Deleted.
1555         (Qname): Deleted because it is duplicated.
1556         (Qideographic_radical): Deleted.
1557         (Qideographic_strokes): Deleted.
1558         (Qtotal_strokes): Deleted.
1559         (Qmorohashi_daikanwa): Deleted.
1560         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
1561         `ideographic-radical', `ideographic-strokes', `total-strokes',
1562         `morohashi-daikanwa' and `->decomposition'.
1563         (Fget_char_attribute): Likewise.
1564         (Fput_char_attribute): Likewise; use `make-vector' instead of
1565         `make_older_vector' for `->decomposition' value.
1566         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
1567         `ideograph-daikanwa'.
1568         (syms_of_mule_charset): Delete builtin symbols `name',
1569         `ideographic-radical', `ideographic-strokes', `total-strokes' and
1570         `morohashi-daikanwa'.
1571         (vars_of_mule_charset): Don't setup
1572         `Vcharacter_ideographic_radical_table',
1573         `Vcharacter_ideographic_strokes_table',
1574         `Vcharacter_total_strokes_table',
1575         `Vcharacter_morohashi_daikanwa_table' and
1576         `Vcharacter_decomposition_table'.
1577
1578 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1579
1580         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
1581         `make_older_vector', `make_vector_newer_1' and
1582         `make_vector_newer'.
1583
1584         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
1585         `make_older_vector' and `make_vector_newer'.
1586
1587         * config.h.in (HAVE_GGC): New macro.
1588
1589 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1590
1591         * mule-charset.c (struct char_attribute_list_closure): New
1592         structure in UTF-2000.
1593         (add_char_attribute_to_list_mapper): New function in UTF-2000.
1594         (Fchar_attribute_list): Likewise.
1595         (Fset_charset_mapping_table): Use `make_vector_newer'.
1596         (Fdecode_builtin_char): New function in UTF-2000.
1597         (syms_of_mule_charset): Add new function `char-attribute-list' and
1598         `decode-builtin-char' in UTF-2000.
1599
1600         * lisp.h (make_vector_newer): New prototype.
1601
1602         * alloc.c (make_vector_newer_1): New function.
1603         (make_vector_newer): New function.
1604
1605 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1606
1607         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
1608         50100)'.
1609
1610 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1611
1612         * mule-charset.c (Vchar_attribute_hash_table): New variable.
1613         (Vcharacter_attribute_table): Deleted.
1614         (Vcharacter_name_table): Deleted.
1615         (put_char_attribute): Deleted.
1616         (remove_char_attribute): Deleted.
1617         (struct char_attribute_alist_closure): New structure.
1618         (add_char_attribute_alist_mapper): New function.
1619         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
1620         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
1621         (Fget_char_attribute): Likewise.
1622         (Fput_char_attribute): Likewise.
1623         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
1624         of `remove_char_attribute'.
1625         (Fdefine_char): Return character.
1626         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
1627         and `Vcharacter_name_table'.
1628         (complex_vars_of_mule_charset): Likewise
1629         `Vchar_attribute_hash_table'.
1630
1631 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1632
1633         * character.h (CHARC_CHARSET): New macro.
1634         (CHARC_CHARSET_ID): New macro.
1635         (CHARC_CODE_POINT): New macro.
1636         (CHARC_COLUMNS): New macro.
1637         (CHARC_TO_CHAR): New inline function.
1638         (CHARC_EQ): New inline function.
1639         (CHARC_ASCII_EQ): New inline function.
1640         (CHARC_IS_SPACE): New inline function.
1641         (ASCII_TO_CHARC): New inline function.
1642
1643         * char-ucs.h (encode_char_2): Deleted.
1644         (ENCODE_CHAR): Use `encode_char_1' again.
1645         (breakup_char_1): Likewise.
1646         (CHAR_TO_CHARC): New inline function.
1647
1648         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
1649
1650 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1651
1652         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
1653         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
1654         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
1655         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
1656         (create_string_text_block): Use `CHARC_ASCII_EQ' and
1657         `CHARC_IS_SPACE'.
1658         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
1659
1660         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
1661         `CHARC_CODE_POINT'.
1662         (x_output_display_block): Use `CHARC_CHARSET' and
1663         `CHARC_ASCII_EQ'.
1664
1665         * redisplay-tty.c (tty_output_display_block): Use
1666         `CHARC_ASCII_EQ'.
1667         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
1668
1669         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
1670
1671         * insdel.c (find_charsets_in_charc_string): Use
1672         `CHARC_CHARSET_ID'.
1673         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
1674         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
1675         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
1676         (convert_charc_string_into_malloced_string): Likewise.
1677
1678 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1679
1680         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
1681         instead of <Emchar_dynarr *> for buf; use
1682         `convert_bufbyte_string_into_charc_dynarr' instead of
1683         `convert_bufbyte_string_into_emchar_dynarr'; use
1684         `find_charsets_in_charc_string' instead of
1685         `find_charsets_in_emchar_string'.
1686
1687         * redisplay.h:
1688         - Include "character.h".
1689         (struct rune): New member `cglyph'; delete member `chr'.
1690
1691         * redisplay.c (redisplay_text_width_charc_string): New function;
1692         delete `redisplay_text_width_emchar_string'.
1693         (rtw_charc_dynarr): New variable; renamed from
1694         `rtw_emchar_dynarr'.
1695         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
1696         `rtw_emchar_dynarr'; use
1697         `convert_bufbyte_string_into_charc_dynarr' instead of
1698         `convert_bufbyte_string_into_emchar_dynarr'; use
1699         `redisplay_text_width_charc_string' instead of
1700         `redisplay_text_width_emchar_string'.
1701         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
1702         instead of `rtw_emchar_dynarr'; use
1703         `convert_bufbyte_string_into_charc_dynarr' instead of
1704         `convert_bufbyte_string_into_emchar_dynarr'.
1705         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
1706         `redisplay_text_width_charc_string' instead of
1707         `redisplay_text_width_emchar_string'.
1708         (create_text_block): Modify for <struct rune> change.
1709         (generate_formatted_string_db): Likewise.
1710         (create_string_text_block): Likewise.
1711         (pixel_to_glyph_translation): Likewise.
1712
1713         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
1714         instead of <const Emchar *>.
1715         (x_text_width): Likewise.
1716         (x_output_display_block): Use <Charc_dynarr *> instead
1717         <Emchar_dynarr *>; modify for <structure rune> change.
1718         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
1719         *>.
1720
1721         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
1722         <const Emchar *>; use `charc_string_displayed_columns' instead of
1723         `emchar_string_displayed_columns'.
1724         (tty_output_display_block): Use <Charc_dynarr *> instead of
1725         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
1726         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
1727         (tty_output_charc_dynarr_dynarr): New variable; renamed from
1728         `tty_output_emchar_dynarr_dynarr'.
1729         (tty_output_charc_dynarr): New function; delete
1730         `tty_output_charc_dynarr'.
1731
1732         * redisplay-output.c (compare_runes): Modify for `struct rune'.
1733         (redisplay_output_layout): Use <Charc_dynarr *> instead of
1734         <Emchar_dynarr *> for buf; use
1735         `convert_bufbyte_string_into_charc_dynarr' instead of
1736         `convert_bufbyte_string_into_emchar_dynarr'.
1737
1738         * frame.c (title_string_charc_dynarr): New variable; renamed from
1739         `title_string_emchar_dynarr'.
1740         (generate_title_string): Use `title_string_charc_dynarr' instead
1741         of `title_string_emchar_dynarr'; use
1742         `convert_charc_string_into_malloced_string' instead of
1743         `convert_emchar_string_into_malloced_string'.
1744         (init_frame): Use `title_string_charc_dynarr' instead of
1745         `title_string_emchar_dynarr'.
1746
1747         * console.h:
1748         - Include "character.h".
1749         (struct console_methods): Use <const Charc *> instead of <const
1750         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
1751         <Emchar_dynarr *> in output_string_method.
1752
1753         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
1754         <Emchar_dynarr *>.
1755
1756         * console-stream.c (stream_text_width): Use <const Charc *>
1757         instead of <const Emchar *>.
1758
1759         * character.h (Charc_dynarr): New type.
1760
1761         * char-ucs.h (structure Charc): New structure; define new type
1762         `Charc'.
1763
1764         * char-lb.h (DECODE_CHAR): New inline function.
1765         (encode_char_1): New inline function.
1766         (ENCODE_CHAR): New macro.
1767         (structure Charc): New structure; define new type `Charc'.
1768
1769         * char-1byte.h (Vcharset_control_1): New macro.
1770         (Vcharset_latin_iso8859_1): New macro.
1771         (DECODE_CHAR): New inline function.
1772         (encode_char_1): New inline function.
1773         (ENCODE_CHAR): New macro.
1774         (structure Charc): New structure; define new type `Charc'.
1775
1776         * insdel.c (find_charsets_in_charc_string): New function; delete
1777         `find_charsets_in_emchar_string'.
1778         (charc_string_displayed_columns): New function; delete
1779         `emchar_string_displayed_columns'.
1780         (convert_bufbyte_string_into_charc_dynarr): New function; delete
1781         `convert_bufbyte_string_into_emchar_dynarr'.
1782         (convert_charc_string_into_bufbyte_dynarr): New function; delete
1783         `convert_charc_string_into_bufbyte_dynarr'.
1784         (convert_charc_string_into_malloced_string): New function; delete
1785         `convert_charc_string_into_malloced_string'.
1786
1787         * buffer.h (find_charsets_in_charc_string): New prototype; delete
1788         `find_charsets_in_emchar_string'.
1789         (charc_string_displayed_columns): New prototype; delete
1790         `emchar_string_displayed_columns'.
1791         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
1792         `convert_charc_string_into_bufbyte_dynarr'.
1793         (convert_charc_string_into_malloced_string): New prototype; delete
1794         `convert_charc_string_into_malloced_string'.
1795
1796 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1797
1798         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
1799
1800 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1801
1802         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
1803
1804         * char-ucs.h: Use <short> for <Charset_ID>.
1805
1806         * mule-charset.h, char-1byte.h: Use <unsigned char> for
1807         <Charset_ID>.
1808
1809 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1810
1811         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1812         to 0.16.
1813
1814 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1815
1816         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
1817         variable.
1818         (Qmorohashi_daikanwa): New variable.
1819         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
1820         for `morohashi-daikanwa' attribute.
1821         (Fget_char_attribute): Likewise.
1822         (Fput_char_attribute): Likewise.
1823         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
1824         has the same value of `ideograph-daikanwa'.
1825         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
1826         (vars_of_mule_charset): Setup
1827         `Vcharacter_morohashi_daikanwa_table'.
1828
1829 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1830
1831         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
1832         attributes.
1833         (add_charset_to_list_mapper): Add `key' instead of
1834         `XCHARSET_NAME (value)' to return aliases.
1835
1836 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1837
1838         * mule-charset.c (Vcharacter_ideographic_radical_table): New
1839         variable.
1840         (Vcharacter_ideographic_strokes_table): New variable.
1841         (Qideographic_radical): New variable.
1842         (Qideographic_strokes): New variable.
1843         (Fchar_attribute_alist): Use
1844         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
1845         attribute; use `Vcharacter_ideographic_strokes_table' for
1846         `ideographic-strokes' attribute.
1847         (Fget_char_attribute): Likewise.
1848         (Fput_char_attribute): Likewise.
1849         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
1850         `ideographic-strokes'.
1851         (vars_of_mule_charset): Setup
1852         `Vcharacter_ideographic_radical_table' and
1853         `Vcharacter_ideographic_strokes_table'.
1854
1855 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1856
1857         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
1858         (Qtotal_strokes): New variable.
1859         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
1860         `total-strokes' attribute.
1861         (Fget_char_attribute): Likewise.
1862         (Fput_char_attribute): Likewise.
1863         (syms_of_mule_charset): Add new symbol `total-strokes'.
1864         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
1865
1866 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1867
1868         * mule-charset.c (Vcharacter_decomposition_table): New variable.
1869         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
1870         are found.
1871         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
1872         `->decomposition' attribute.
1873         (Fput_char_attribute): Likewise.
1874         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
1875
1876 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1877
1878         * mule-charset.c (decoding_table_check_elements): New function.
1879         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
1880
1881 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1882
1883         * mule-charset.c (Fset_charset_mapping_table): Use
1884         `put_char_ccs_code_point'.
1885
1886 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1887
1888         * mule-charset.c (decoding_table_put_char): New inline function.
1889         (put_char_ccs_code_point): Use `decoding_table_put_char'.
1890
1891 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1892
1893         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
1894         (XCHARSET_BYTE_SIZE): New macro.
1895         (decoding_table_remove_char): New inline function.
1896         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
1897         `decoding_table_remove_char'.
1898         (remove_char_ccs): Use `decoding_table_remove_char'.
1899         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
1900
1901 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1902
1903         * mule-charset.c (Vcharacter_name_table): New variable.
1904         (Qname): New variable.
1905         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
1906         attribute.
1907         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
1908         `Vcharacter_name_table' for `name' attribute.
1909         (Fremove_char_attribute): Use function `remove_char_ccs'.
1910         (put_char_ccs_code_point): New function.
1911         (remove_char_ccs): New function.
1912         (syms_of_mule_charset): Add new symbol `name'.
1913         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
1914
1915 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1916
1917         * mule-charset.c (make_byte_table): Add new argument `older'.
1918         (make_char_id_table): Likewise.
1919         (copy_char_id_table): Comment out because it is not used.
1920         (put_char_id_table): Modify for `make_byte_table'.
1921         (Fput_char_attribute): Make encoding_table as older object;
1922         inherit older bit of `Vcharacter_composition_table'.
1923         (mark_charset): Don't mark `cs->encoding_table'.
1924         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
1925         normal object; make `Vcharacter_composition_table' as an older
1926         object; delete staticpro for `Vcharacter_composition_table'; make
1927         `Vcharacter_variant_table' as a normal object.
1928
1929         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
1930         (mark_object): Don't check older object in UTF-2000.
1931
1932         * lrecord.h (struct lrecord_header): Add new member `older' in
1933         UTF-2000.
1934         (set_lheader_implementation): Setup `SLI_header->older' in
1935         UTF-2000.
1936         (set_lheader_older_implementation): New macro in UTF-2000.
1937         (OLDER_RECORD_P): New macro in UTF-2000.
1938         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
1939         (alloc_older_lcrecord): New prototype in UTF-2000.
1940         (alloc_older_lcrecord_type): New macro in UTF-2000.
1941
1942 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1943
1944         * mule-charset.c (byte_table_description): Use
1945         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
1946         (char_id_table_description): Delete bogus `, 1'.
1947         (Fget_char_attribute): Refer encoding_table of each coded-charset
1948         to get value of coded-charset attribute of a character.
1949         (Fput_char_attribute): Use `make_older_vector' instead of
1950         `make_vector'; use encoding_table of each coded-charset to store
1951         value of coded-charset attribute of a character.
1952         (Fremove_char_attribute): Use encoding_table of each coded-charset
1953         to store value of coded-charset attribute of a character.
1954         (mark_charset): Mark `cs->encoding_table'; don't mark
1955         `cs->decoding_table'.
1956         (charset_description): Add description of new member
1957         `encoding_table'.
1958         (make_charset): Initialize `encoding_table'.
1959
1960         * char-ucs.h (struct Lisp_Charset): Add new member
1961         `encoding_table'.
1962         (CHARSET_ENCODING_TABLE): New macro.
1963         (XCHARSET_ENCODING_TABLE): New macro.
1964         (charset_code_point): New implementation.
1965         (encode_char_1): Likewise.
1966
1967         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
1968         (disksave_object_finalization_1): Call finalizers of
1969         `all_older_lcrecords' in UTF-2000.
1970         (make_older_vector): New function in UTF-2000.
1971         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
1972         UTF-2000.
1973
1974         * lisp.h (make_older_vector): New prototype in UTF-2000.
1975
1976 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1977
1978         * lrecord.h (enum lrecord_type): Rename
1979         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
1980
1981         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
1982         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
1983         `get_char_code_table'.
1984
1985         * mule-charset.c (mark_char_id_table): Renamed from
1986         `mark_char_code_table'.
1987         (char_id_table_equal): Renamed from `char_code_table_equal'.
1988         (char_id_table_hash): Renamed from `char_code_table_hash'.
1989         (make_char_id_table): Renamed from `make_char_code_table'.
1990         (copy_char_id_table): Renamed from `copy_char_code_table'.
1991         (get_char_id_table): Renamed from `get_char_code_table'.
1992         (put_char_id_table): Renamed from `put_char_code_table'.
1993         (to_char_id): Renamed from `to_char_code'.
1994
1995         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
1996         `Lisp_Char_Code_Table'.
1997         (char_id_table): Renamed from `char_code_table'.
1998         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
1999         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
2000         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
2001         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
2002         (get_char_id_table): Renamed from `get_char_code_table'.
2003
2004 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2005
2006         * lrecord.h (enum lrecord_type): Rename
2007         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
2008
2009         * mule-charset.c (mark_byte_table): Renamed from
2010         `mark_char_byte_table'.
2011         (byte_table_equal): Renamed from `char_byte_table_equal'.
2012         (byte_table_hash): Renamed from `byte_table_hash'.
2013         (make_byte_table): Renamed from `make_byte_table'.
2014         (copy_byte_table): Renamed from `copy_char_byte_table'.
2015
2016         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
2017         `Lisp_Char_Byte_Table'.
2018         (byte_table): Renamed from `char_byte_table'.
2019         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
2020         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
2021         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
2022         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
2023
2024 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2025
2026         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
2027         (dfc_convert_to_internal_format): Likewise.
2028         
2029         * text-coding.c (Fcoding_system_canonical_name_p): New function.
2030         * text-coding.c (Fcoding_system_alias_p): New function.
2031         * text-coding.c (Fcoding_system_aliasee): New function.
2032         * text-coding.c (append_suffix_to_symbol): New function.
2033         * text-coding.c (dangling_coding_system_alias_p): New function.
2034         * text-coding.c (Ffind_coding_system):
2035         * text-coding.c (Fcopy_coding_system):
2036         * text-coding.c (encode_coding_no_conversion):
2037         * text-coding.c (syms_of_file_coding):
2038         * text-coding.c (vars_of_file_coding):
2039         Rewrite coding system alias code.
2040         Allow nested aliases, like symbolic links.
2041         Allow redefinition of coding system aliases.
2042         Prevent existence of dangling coding system aliases.
2043         Eliminate convert_to_external_format.
2044         Eliminate convert_to_internal_format.
2045         
2046         * text-coding.c: Change enum eol_type to eol_type_t.
2047
2048 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2049
2050         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
2051         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
2052
2053         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
2054         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
2055
2056 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2057
2058         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
2059         `ideograph-daikanwa'.
2060
2061         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
2062         (Vcharset_ucs_bmp): Likewise.
2063         (Vcharset_mojikyo): Add new extern variable definition.
2064         (Vcharset_latin_iso8859_2): Deleted because it is not used.
2065         (Vcharset_latin_iso8859_3): Likewise.
2066         (Vcharset_latin_iso8859_4): Likewise.
2067         (Vcharset_latin_iso8859_9): Likewise.
2068         (Vcharset_latin_viscii_lower): Likewise.
2069         (Vcharset_latin_viscii_upper): Likewise.
2070         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
2071         `mojikyo' code-point is used to decode.
2072         (encode_char_2): New function [to convert `mojikyo' code-point to
2073         Mojikyo font encoding].
2074         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
2075         (breakup_char_1): Likewise.
2076         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
2077
2078 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2079
2080         * text-coding.c (Fmake_coding_system): Add document about
2081         `disable-composition' property.
2082
2083 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2084
2085         * text-coding.c (Qdisable_composition): New variable; delete
2086         `Qcomposite'.
2087         (Fmake_coding_system): Add new property `disable-composite';
2088         delete property `composite'.
2089         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
2090         instead of `!CODING_SYSTEM_COMPOSITE'.
2091         (syms_of_file_coding): Add new symbol `disable-composition';
2092         delete symbol `composite'.
2093
2094         * file-coding.h (struct Lisp_Coding_System): Add
2095         `disable_composition'; delete `enable_composition'.
2096         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
2097         `CODING_SYSTEM_COMPOSITE'.
2098         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
2099         `XCODING_SYSTEM_COMPOSITE'.
2100
2101 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2102
2103         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2104         to 0.15.
2105
2106 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2107
2108         * text-coding.c (Qcomposite): New variable.
2109         (Fmake_coding_system): Add new property `composite'.
2110         (struct decoding_stream): Add `combined_char_count',
2111         `combined_chars' and `combining_table' in UTF-2000.
2112         (COMPOSE_FLUSH_CHARS): New macro.
2113         (COMPOSE_ADD_CHAR): New macro.
2114         (reset_decoding_stream): Reset `str->combined_char_count' and
2115         `str->combining_table' in UTF-2000.
2116         (decode_coding_iso2022): Modify for character-decomposition.
2117         (syms_of_file_coding): Add new symbol `composite'.
2118
2119 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2120
2121         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
2122         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
2123         of `Vcharacter_composition_table' if `->decomposition' property
2124         has only 1 element.
2125         (Qlatin_tcvn5712): New variable.
2126         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
2127         (complex_vars_of_mule_charset): Add new coded-charset
2128         `latin-tcvn5712'.
2129
2130         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
2131
2132 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2133
2134         * file-coding.h (struct Lisp_Coding_System): Add
2135         `enable_composition'.
2136         (CODING_SYSTEM_COMPOSITE): New macro.
2137         (XCODING_SYSTEM_COMPOSITE): New macro.
2138
2139 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
2140
2141         * mule-canna.c (c2mu): Fix problem with UTF-2000.
2142
2143 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
2144
2145         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
2146         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
2147
2148 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
2149
2150         * mule-charset.c (Vcharset_mojikyo): New variable.
2151         (Fdefine_char): Don't use coded-charset which does not have
2152         non-builtin character range to allocate character-id.
2153         (Qmojikyo): New variable.
2154         (syms_of_mule_charset): Add new symbol `mojikyo'.
2155         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
2156
2157         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
2158         (LEADING_BYTE_MOJIKYO): New macro.
2159         (MIN_CHAR_MOJIKYO): New macro.
2160         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
2161         (MAX_CHAR_MOJIKYO): New macro.
2162
2163 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
2164
2165         * mule-charset.c (remove_char_attribute): Fixed.
2166
2167 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
2168
2169         * mule-charset.c (remove_char_attribute): New function.
2170         (Fremove_char_attribute): New function.
2171         (encode_builtin_char_1): Comment out builtin-support for
2172         greek-iso8859-7 and cyrillic-iso8859-5.
2173         (Fdecode_char): Check `code' is an integer.
2174         (syms_of_mule_charset): Add `remove-char-attribute'.
2175         (MIN_CHAR_GREEK): Deleted.
2176         (MAX_CHAR_GREEK): Likewise.
2177         (MIN_CHAR_CYRILLIC): Likewise.
2178         (MAX_CHAR_CYRILLIC): Likewise.
2179         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
2180         MAX_CHAR_GREEK for `greek-iso8859-7'.
2181
2182         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
2183         (MAX_CHAR_GREEK): Likewise.
2184         (MIN_CHAR_CYRILLIC): Likewise.
2185         (MAX_CHAR_CYRILLIC): Likewise.
2186
2187 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
2188
2189         * mule-charset.c (Fdefine_char): Fix problem when new code-point
2190         format is used without `ucs' property.
2191         (Fdecode_char): Fix problem with GR representation.
2192         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
2193         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
2194
2195 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
2196
2197         * mule-charset.c (make_builtin_char): New function.
2198         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
2199         (Fset_charset_mapping_table): Modify for new representation of
2200         code-point.
2201         (Fdecode_char): New function.
2202         (syms_of_mule_charset): Add new builtin function `decode-char' in
2203         UTF-2000.
2204
2205         * char-ucs.h (make_builtin_char): New prototype.
2206         (DECODE_CHAR): New inline function.
2207         (MAKE_CHAR): Use `DECODE_CHAR'.
2208
2209 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
2210
2211         * text-coding.c (parse_charset_conversion_specs): Use
2212         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
2213         `XCHARSET_TYPE'.
2214         (iso2022_designate): Likewise.
2215
2216         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
2217         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
2218
2219         * mule-charset.c (Vcharset_ucs): New variable.
2220         (print_charset): Change design; use `CHARSET_CHARS' and
2221         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
2222         (make_charset): Change signature to specify `chars' and
2223         `dimension' instead of `type'.
2224         (range_charset_code_point): Modify for 256^n-set.
2225         (encode_builtin_char_1): Encode as `ucs' in default.
2226         (Fmake_charset): Modify for `make_charset'.
2227         (Fmake_reverse_direction_charset): Likewise.
2228         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
2229         UTF-2000.
2230         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
2231         for `make_charset'.
2232
2233         * char-ucs.h (Vcharset_ucs): New variable.
2234         (LEADING_BYTE_UCS): New macro.
2235         (struct Lisp_Charset): Delete `type'; change type of `dimension'
2236         and `chars' to `unsigned short' from `unsigned int'.
2237         (CHARSET_TYPE): Deleted.
2238         (XCHARSET_TYPE): Deleted.
2239
2240 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
2241
2242         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
2243
2244         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
2245         (ENCODE_CHAR): New macro.
2246
2247 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
2248
2249         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2250         to 0.14 (Kawachi-Katakami).
2251
2252 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
2253
2254         * text-coding.c (char_encode_shift_jis): Modify for
2255         `charset_code_point'.
2256         (char_encode_iso2022): Likewise.
2257
2258         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
2259         (integer) instead of list of <Lisp_Object>s (integers) as the
2260         format of code-point of a coded-charset.
2261         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
2262         (encode_builtin_char_1): New function; delete
2263         `split_builtin_char'.
2264         (charset_code_point): Return <int> instead of <Lisp_Object>.
2265         (Fsplit_char): Don't use `SPLIT_CHAR'.
2266
2267         * char-ucs.h (encode_builtin_char_1): New prototype; delete
2268         prototype for `split_builtin_char'.
2269         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
2270         (charset_code_point): Likewise.
2271         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
2272         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
2273
2274 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
2275
2276         * mule-charset.c (complex_vars_of_mule_charset): Don't define
2277         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
2278
2279 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2280
2281         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
2282
2283         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
2284         (MAX_CHAR_OBS_94x94): Deleted.
2285
2286 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2287
2288         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
2289
2290         * char-ucs.h (MAX_CHAR_BMP): New macro.
2291
2292 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
2293
2294         * text-coding.c: Sync with r21-2-24.
2295
2296 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
2297
2298         * file-coding.c: Modify for UTF-2000.
2299
2300 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
2301
2302         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2303         to 0.13 (Takaida).
2304
2305 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
2306
2307         * mule-charset.c (split_builtin_char): Delete builtin support for
2308         `katakana-jisx0201'.
2309         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
2310         BMP area in builtin representation.
2311
2312         * char-ucs.h (MAKE_CHAR): Delete builtin support for
2313         `Vcharset_katakana_jisx0201'.
2314
2315 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
2316
2317         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
2318         (Qisolated): New variable.
2319         (Qinitial): New variable.
2320         (Qmedial): New variable.
2321         (Qfinal): New variable.
2322         (Qvertical): New variable.
2323         (Qsmall): New variable.
2324         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
2325         `Qvertical' and `Qsmall'.
2326         (Qmojikyo_pj_[1 .. 21]): New variable.
2327         (syms_of_mule_charset): Add new symbols `isolated', `initial',
2328         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
2329         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
2330         .. 21]'.
2331
2332 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
2333
2334         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
2335         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
2336         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
2337
2338 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
2339
2340         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
2341         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
2342         BMP.
2343         (Qjapanese_jisx0208_1990): New variable.
2344         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
2345         (complex_vars_of_mule_charset): Add new coded-charset
2346         `japanese-jisx0208-1990'.
2347
2348         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
2349         (MIN_CHAR_JIS_X0208_1990): New macro.
2350         (MAX_CHAR_JIS_X0208_1990): New macro.
2351
2352 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2353
2354         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
2355         coded-charset is not found.
2356
2357 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2358
2359         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
2360         (Fdefine_char): Use `Fmake_char'.
2361
2362 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2363
2364         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
2365         (Vcharset_hiragana_jisx0208): Deleted.
2366         (Vcharset_katakana_jisx0208): Deleted.
2367         (Qideograph_daikanwa): New variable.
2368         (Qhiragana_jisx0208): Deleted.
2369         (Qkatakana_jisx0208): Deleted.
2370         (split_builtin_char): Split `ideograph-daikanwa'.
2371         (Fsplit_char): New implementation for UTF-2000.
2372         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
2373         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
2374         (complex_vars_of_mule_charset): Add new coded-charset
2375         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
2376         `katakana-jisx0208'.
2377
2378         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
2379         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
2380         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
2381         (MIN_CHAR_DAIKANWA): New macro.
2382         (MAX_CHAR_DAIKANWA): New macro.
2383
2384 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2385
2386         * data.c (Fstring_to_number): Don't recognize floating point if
2387         base is not 10.
2388
2389 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2390
2391         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
2392
2393 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2394
2395         * mule-charset.c (Qsquare): New variable.
2396         (to_char_code): Add `Qsquare'.
2397         (syms_of_mule_charset): Add new symbol `square'.
2398
2399 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2400
2401         * mule-charset.c (Qcircle): New variable.
2402         (to_char_code): Add `Qcircle'.
2403         (syms_of_mule_charset): Add new symbol `circle'.
2404
2405 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2406
2407         * mule-charset.c (Qfont): New variable.
2408         (to_char_code): Add `Qfont'.
2409         (syms_of_mule_charset): Add new symbol `font'.
2410
2411 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2412
2413         * mule-charset.c (Qsub): New variable.
2414         (to_char_code): Add `Qsub'.
2415         (syms_of_mule_charset): Add new symbol `sub'.
2416
2417 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2418
2419         * mule-charset.c (Fput_char_attribute): Convert each element of
2420         VALUE to GL position if ATTRIBUTE is a GR-set,
2421
2422 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2423
2424         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
2425         coded-charset is a GR-set.
2426
2427 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2428
2429         * mule-charset.c (Fput_char_attribute): Check each element of
2430         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
2431
2432 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2433
2434         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
2435         UTF-2000.
2436         (Qethiopic_ucs): New variable in UTF-2000.
2437         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
2438         (complex_vars_of_mule_charset): Add new coded-charset
2439         `ethiopic-ucs' in UTF-2000.
2440
2441         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
2442         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
2443         9)'.
2444         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
2445         10)'.
2446         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
2447
2448 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
2449
2450         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
2451         `ascii'.
2452
2453 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2454
2455         * mule-charset.c (Vcharacter_variant_table): New variable.
2456         (Q_ucs): New variable.
2457         (Fchar_variants): New function.
2458         (Fput_char_attribute): Register `->ucs' value to
2459         `Vcharacter_variant_table'.
2460         (syms_of_mule_charset): Add new function `char-variants' and new
2461         symbol `->ucs'.
2462         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
2463
2464 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2465
2466         * mule-charset.c (get_char_code_table): Allow negative character
2467         code.
2468         (put_char_code_table): Likewise.
2469         (Vcharacter_composition_table): New variable.
2470         (Q_decomposition): New variable.
2471         (Qwide): New variable.
2472         (Qnarrow): New variable.
2473         (Qcompat): New variable.
2474         (QnoBreak): New variable.
2475         (Qsuper): New variable.
2476         (Qfraction): New variable.
2477         (to_char_code): New function.
2478         (Fget_composite_char): New function.
2479         (Fput_char_attribute): Register `->decomposition' value to
2480         `Vcharacter_composition_table'.
2481         (syms_of_mule_charset): Add new function `get-composite-char', new
2482         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
2483         `super' and `fraction'.
2484         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
2485
2486 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2487
2488         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
2489         character; copy the return value.
2490
2491 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2492
2493         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
2494
2495         * mule-charset.c (range_charset_code_point): Must use make_int.
2496         (split_builtin_char): New function.
2497
2498 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2499
2500         * mule-charset.c (char_byte_table): Change name from
2501         "char-code-table" to "char-byte-table".
2502         (mark_char_code_table): New function.
2503         (char_code_table_equal): New function.
2504         (char_code_table_hash): New function.
2505         (char_code_table_description): New constant.
2506         (char_code_table): New type.
2507         (make_char_code_table): New function.
2508         (copy_char_code_table): New function.
2509         (get_char_code_table): Modify for `char_code_table' type.
2510         (put_char_code_table): Likewise.
2511         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
2512         (Kashiwara).
2513
2514         * char-ucs.h (char_code_table): New type.
2515         (XCHAR_CODE_TABLE): New macro.
2516         (XSETCHAR_CODE_TABLE): New macro.
2517         (CHAR_CODE_TABLE_P): New macro.
2518         (GC_CHAR_CODE_TABLE_P): New macro.
2519         (struct Lisp_Char_Code_Table): New structure.
2520
2521 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2522
2523         * mule-charset.c (Fmake_charset): Setup byte_offset for
2524         {94|96}^n-set.
2525
2526 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2527
2528         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
2529         character.
2530
2531 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2532
2533         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
2534         is found.
2535
2536 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2537
2538         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
2539         charset, it is regarded as a charset.
2540         (put_char_attribute): New function in UTF-2000.
2541         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
2542         charset, mapping-table of the charset is modified.
2543         (Fdefine_char): New function in UTF-2000.
2544         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
2545         `Fput_char_attribute'.
2546         (syms_of_mule_charset): Add new function `define-char' and new
2547         symbol `ucs' in UTF-2000.
2548         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
2549
2550 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
2551
2552         * mule-charset.c (Fcharset_name): Define `byte_offset' in
2553         non-UTF-2000 configuration.
2554
2555 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
2556
2557         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
2558         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
2559
2560         * mule-charset.c (mark_charset): `cs->encoding_table' has been
2561         deleted.
2562         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
2563         (Fset_charset_mapping_table): Likewise.
2564
2565         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
2566         (CHARSET_ENCODING_TABLE): Delete.
2567         (XCHARSET_ENCODING_TABLE): Delete.
2568         (charset_code_point): New interface.
2569
2570 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
2571
2572         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
2573         instead of `charset_get_byte1' and `charset_get_byte2'.
2574
2575         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
2576         (charset_get_byte2): Deleted.
2577
2578 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
2579
2580         * char-ucs.h (SPLIT_CHAR): New inline function.
2581         (breakup_char_1): Use `SPLIT_CHAR'.
2582
2583         * mule-charset.c (range_charset_code_point): New function.
2584         (charset_code_point): New function.
2585
2586         * char-ucs.h (range_charset_code_point): New interface.
2587         (breakup_char_1): Use `range_charset_code_point'.
2588
2589 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
2590
2591         * mule-charset.c (Fmake_charset): Delete unused local variable
2592         `code_offset'.
2593
2594         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
2595         (breakup_char_1): Find a charset and code-point in
2596         `Vcharacter_attribute_table'.
2597
2598 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
2599
2600         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2601         to 0.10 (Yao).
2602
2603 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
2604
2605         * mule-charset.c (Vcharacter_attribute_table): New variable.
2606         (Fchar_attribute_alist): New function.
2607         (Fget_char_attribute): New function.
2608         (Fput_char_attribute): New function.
2609         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
2610         too.
2611         (syms_of_mule_charset): Add new function `char-attribute-alist',
2612         `get-char-attribute' and `put-char-attribute'.
2613         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
2614
2615 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
2616
2617         * mule-charset.c (Fmake_charset): Just use
2618         `get_unallocated_leading_byte'.
2619
2620         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
2621         sets; don't use final-byte based number for private sets.
2622
2623 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2624
2625         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
2626         integer.
2627
2628 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2629
2630         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2631         to 0.9.
2632
2633 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2634
2635         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
2636         of `CHAR_LEADING_BYTE' in UTF-2000.
2637
2638         * insdel.c (find_charsets_in_bufbyte_string): Use
2639         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
2640         (find_charsets_in_emchar_string): Likewise.
2641
2642         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
2643         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
2644
2645         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
2646         (CHAR_CHARSET_ID): New macro.
2647
2648 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2649
2650         * chartab.c (get_char_table): Don't use type `Charset_ID' for
2651         charset-id - MIN_LEADING_BYTE.
2652         (put_char_table): Likewise.
2653
2654 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2655
2656         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
2657         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
2658         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
2659         (CHARSET_ID_OFFSET): New macro.
2660         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
2661         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
2662         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
2663         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
2664         4).
2665         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
2666         5).
2667         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
2668         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
2669         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
2670         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
2671         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
2672
2673 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2674
2675         * mule-charset.c (next_allocated_leading_byte): New variable in
2676         UTF-2000.
2677         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
2678         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
2679         (get_unallocated_leading_byte): Simply use
2680         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
2681         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
2682         UTF-2000.
2683
2684         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
2685         (MAX_LEADING_BYTE_PRIVATE): New macro.
2686         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
2687         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
2688
2689 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2690
2691         * mule-charset.c (Fmake_charset): Allocate final-byte based
2692         charset-id for 94-set, 96-set and 94x94-set.
2693
2694 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2695
2696         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
2697         ambiguous `else'.
2698         (Fmake_charset): Likewise.
2699         (complex_vars_of_mule_charset): Modify the font registry of
2700         `ucs-bmp' not to match `Ethiopic-Unicode'.
2701
2702 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2703
2704         * mule-charset.c (complex_vars_of_mule_charset): Add font
2705         registory of `ucs-bmp'.
2706
2707 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2708
2709         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
2710         coded-charsets in `default-coded-charset-priority-list' when
2711         breaking up a character.
2712
2713         * mule-charset.c (Vcharset_latin_viscii): New variable.
2714         (Qlatin_viscii): New variable.
2715         (make_charset): Don't use `decoding_table'.
2716         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
2717         byte_offset.
2718         (Fset_charset_mapping_table): New implementation.
2719         (syms_of_mule_charset): Add new symbol `latin-viscii'.
2720         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
2721         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
2722         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
2723         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
2724         charset `latin_viscii'.
2725
2726         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
2727         (CHARSET_TYPE_94X94): Change to 1 from 2.
2728         (CHARSET_TYPE_96): Change to 2 from 1.
2729         (CHARSET_TYPE_128): New macro.
2730         (CHARSET_TYPE_128X128): Change to 5 from 4.
2731         (CHARSET_TYPE_256): New macro.
2732         (CHARSET_TYPE_256X256): Change to 7 from 5.
2733         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
2734
2735 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2736
2737         * text-coding.c (char_encode_shift_jis): Refer
2738         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
2739         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
2740
2741         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
2742         (char_byte_table_equal): New function in UTF-2000.
2743         (char_byte_table_hash): New function in UTF-2000.
2744         (char_byte_table_description): New constant in UTF-2000.
2745         (char_byte_table): New type in UTF-2000.
2746         (make_char_byte_table): New function in UTF-2000.
2747         (copy_char_byte_table): New function in UTF-2000.
2748         (make_char_code_table): New macro in UTF-2000.
2749         (get_char_code_table): New function in UTF-2000.
2750         (put_char_code_table): New function in UTF-2000.
2751         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
2752         (charset_description): Add setting in UTF-2000.
2753         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
2754         `CHARSET_TO_BYTE1_TABLE(cs)'.
2755         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
2756         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
2757         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
2758         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
2759         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
2760         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
2761         `CHARSET_TO_BYTE2_TABLE(cs)'.
2762
2763         * char-ucs.h (char_byte_table): New type.
2764         (XCHAR_BYTE_TABLE): New macro.
2765         (XSETCHAR_BYTE_TABLE): New macro.
2766         (CHAR_BYTE_TABLE_P): New macro.
2767         (GC_CHAR_BYTE_TABLE_P): New macro.
2768         (struct Lisp_Char_Byte_Table): New structure.
2769         (get_char_code_table): New interface.
2770         (Emchar_to_byte_table): Deleted.
2771         (get_byte_from_character_table): Deleted.
2772         (struct Lisp_Charset): Add `encoding_table'; delete
2773         `to_byte1_table' and `to_byte2_table'.
2774         (CHARSET_ENCODING_TABLE): New macro.
2775         (CHARSET_TO_BYTE1_TABLE): Deleted.
2776         (CHARSET_TO_BYTE2_TABLE): Deleted.
2777         (XCHARSET_ENCODING_TABLE): New macro.
2778         (XCHARSET_TO_BYTE1_TABLE): Deleted.
2779         (XCHARSET_TO_BYTE2_TABLE): Deleted.
2780
2781 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
2782
2783         * mule-charset.c (syms_of_mule_charset): Delete charset alias
2784         `vietnamese-viscii-*'.
2785
2786 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
2787
2788         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
2789         (Qvietnamese_viscii_upper): New variable.
2790         (Fdefine_charset_alias): New function.
2791         (syms_of_mule_charset): Add new function `define-charset-alias'.
2792         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
2793         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
2794         `latin-viscii-*'.
2795
2796 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
2797
2798         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
2799         (MAX_CHAR_OBS_94x94): New macro.
2800         (breakup_char_1): Support obsolete XEmacs-UCS private code space
2801         for 94x94 sets.
2802
2803         * mule-charset.c (put_byte_from_character_table): Change unit size
2804         from 128 to 256.
2805         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
2806         not defined.
2807         (Fmake_reverse_direction_charset): Modify dummy argument of
2808         `make_charset' for non-UTF-2000 environment.
2809
2810 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2811
2812         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
2813
2814         * mule-charset.c (destroy_byte_from_character_table): New macro.
2815         (latin_jisx0201_to_ucs): Deleted.
2816         (latin_iso8859_2_to_ucs): Deleted.
2817         (latin_iso8859_3_to_ucs): Deleted.
2818         (latin_iso8859_4_to_ucs): Deleted.
2819         (latin_iso8859_9_to_ucs): Deleted.
2820         (latin_viscii_lower_to_ucs): Deleted.
2821         (latin_viscii_upper_to_ucs): Deleted.
2822         (mark_charset): Mark `cs->decoding_table'.
2823         (Fcharset_mapping_table): Fix DOC-string.
2824         (Fset_charset_mapping_table): New function.
2825         (syms_of_mule_charset): Add nwe function
2826         `set-charset-mapping-table'.
2827         (complex_vars_of_mule_charset): Don't setup and use
2828         `latin_*_to_ucs'.
2829
2830 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2831
2832         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
2833         charset.
2834
2835 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2836
2837         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
2838         (Vcharset_katakana_jisx0208): New variable.
2839         (Qhiragana_jisx0208): New variable.
2840         (Qkatakana_jisx0208): New variable.
2841         (make_charset): Add new argument `byte_offset'.
2842         (charset_get_byte1): Modify for new coded-charset definition; use
2843         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
2844         `XCHARSET_BYTE_OFFSET'.
2845         (Fmake_charset): Modify for `make_charset'.
2846         (Fmake_reverse_direction_charset): Likewise.
2847         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
2848         `katakana-jisx0208'.
2849         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
2850         `.'  in font registry of charset `katakana-jisx0201',
2851         `latin-jisx0201', `vietnamese-viscii-lower' and
2852         `vietnamese-viscii-upper'; modify DOC-string of charset
2853         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
2854         registry of charset `japanese-jisx0208' not to use font for JIS
2855         X0208:1990; add new charset `hiragana-jisx0208' and
2856         `katakana-jisx0208'.
2857
2858         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
2859         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
2860         (struct Lisp_Charset): Add `byte_offset'.
2861         (CHARSET_BYTE_OFFSET): New macro.
2862         (XCHARSET_UCS_MIN): New macro.
2863         (XCHARSET_UCS_MAX): New macro.
2864         (XCHARSET_CODE_OFFSET): New macro.
2865         (XCHARSET_BYTE_OFFSET): New macro.
2866         (MIN_CHAR_HIRAGANA): New macro.
2867         (MAX_CHAR_HIRAGANA): New macro.
2868         (MIN_CHAR_KATAKANA): New macro.
2869         (MAX_CHAR_KATAKANA): New macro.
2870         (MAKE_CHAR): Modify for new coded-charset definition; use
2871         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
2872         `XCHARSET_BYTE_OFFSET'.
2873
2874 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
2875
2876         * mule-charset.c (CHAR96): Deleted.
2877         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
2878         <Lisp_Object>.
2879         (latin_iso8859_2_to_ucs): Likewise.
2880         (latin_iso8859_3_to_ucs): Likewise.
2881         (latin_iso8859_4_to_ucs): Likewise.
2882         (latin_iso8859_9_to_ucs): Likewise.
2883         (latin_viscii_lower_to_ucs): Likewise.
2884         (latin_viscii_upper_to_ucs): Likewise.
2885         (latin_tcvn5712_to_ucs): Commented out.
2886         (make_charset): Change type of argument `decoding_table' from
2887         <Emchar*> to <Lisp_Object> [vector of characters].
2888         (Fmake_charset): Modify for `make_charset'.
2889         (Fmake_reverse_direction_charset): Likewise.
2890         (Fcharset_mapping_table): New function in UTF-2000.
2891         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
2892         UTF-2000.
2893         (complex_vars_of_mule_charset): Modify for type change of
2894         `*_to_ucs'; modify for `make_charset'.
2895
2896         * char-ucs.h (struct Lisp_Charset): Change type of
2897         `decoding_table' from <Emchar*> to <Lisp_Object>.
2898         (MAKE_CHAR): Modify for new specification of `decoding_table'.
2899
2900 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
2901
2902         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
2903         error with non-UTF-2000-Mule.
2904
2905 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
2906
2907         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
2908         in lisp again].
2909         (Vcharset_chinese_cns11643_4): Likewise.
2910         (Vcharset_chinese_cns11643_5): Likewise.
2911         (Vcharset_chinese_cns11643_6): Likewise.
2912         (Vcharset_chinese_cns11643_7): Likewise.
2913         (Qchinese_cns11643_3): Likewise.
2914         (Qchinese_cns11643_4): Likewise.
2915         (Qchinese_cns11643_5): Likewise.
2916         (Qchinese_cns11643_6): Likewise.
2917         (Qchinese_cns11643_7): Likewise.
2918         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
2919         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
2920         and `chinese-cns11643-7' to lisp/mule/chinese.el.
2921         (complex_vars_of_mule_charset): Likewise.
2922
2923 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
2924
2925         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
2926         96-set.
2927         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
2928         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
2929
2930 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
2931
2932         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
2933         0xFF60.
2934         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
2935         (breakup_char_1): Likewise.
2936
2937         * text-coding.c (char_encode_iso2022): Keep designated charsets if
2938         one of them includes the specified character.
2939
2940 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
2941
2942         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
2943
2944 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
2945
2946         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
2947
2948 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
2949
2950         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
2951         definition for non-UTF-2000 Mule.
2952         (latin_iso8859_3_to_ucs): Likewise.
2953         (latin_iso8859_4_to_ucs): Likewise.
2954         (latin_iso8859_9_to_ucs): Likewise.
2955         (latin_jisx0201_to_ucs): Likewise.
2956         (MIN_CHAR_THAI): Likewise.
2957         (MAX_CHAR_THAI): Likewise.
2958         (MIN_CHAR_GREEK): Likewise.
2959         (MAX_CHAR_GREEK): Likewise.
2960         (MIN_CHAR_HEBREW): Likewise.
2961         (MAX_CHAR_HEBREW): Likewise.
2962         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
2963         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
2964         (MIN_CHAR_CYRILLIC): Likewise.
2965         (MAX_CHAR_CYRILLIC): Likewise.
2966
2967 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
2968
2969         * char-ucs.h (breakup_char_1): Use
2970         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
2971         thai-tis620 and katakana-jisx0201 area.
2972
2973 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2974
2975         * char-ucs.h (breakup_char_1): Use
2976         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
2977         area.
2978
2979         * text-coding.c (reset_encoding_stream): Fixed.
2980         (char_encode_ucs4): Delete `& 255'.
2981
2982         * char-ucs.h (breakup_char_1): Use
2983         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
2984
2985 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2986
2987         * file-coding.c (Fmake_coding_system): Don't set up
2988         `codesys->fixed.size'.
2989         (encode_coding_no_conversion): Don't refer
2990         `str->codesys->fixed.size'.
2991
2992 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2993
2994         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
2995         (latin_a_char_to_byte1): Deleted.
2996         (latin_a_char_to_byte2): Deleted.
2997
2998 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2999
3000         * mule-charset.c (make_charset): Add new argument `ucs_min',
3001         `ucs_max' and `code_offset'.
3002         (charset_get_byte1): New implementation [delete specific charset
3003         depended implementations].
3004         (Fmake_charset): Modify for `make_charset'.
3005         (Fmake_reverse_direction_charset): Likewise.
3006         (complex_vars_of_mule_charset): Likewise.
3007
3008         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
3009         `code_offset'.
3010         (CHARSET_UCS_MIN): New macro.
3011         (CHARSET_UCS_MAX): New macro.
3012         (CHARSET_CODE_OFFSET): New macro.
3013         (MAKE_CHAR): Delete charset depended definitions [except
3014         katakana-jisx0201].
3015
3016 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
3017
3018         * char-ucs.h (breakup_char_1): Use
3019         `Vdefault_coded_charset_priority_list' for C0-Controls,
3020         Basic-Latin, C1-Controls and Latin-1-Supplement area.
3021
3022 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3023
3024         * char-ucs.h (charset_get_byte1): New function.
3025         (XCHARSET_GET_BYTE1): Deleted.
3026         (charset_get_byte2): New function.
3027         (XCHARSET_GET_BYTE2): Deleted.
3028         (Vdefault_coded_charset_priority_list): New external variable.
3029         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
3030         `Vdefault_preferred_coded_charset_list'.
3031
3032         * mule-charset.c (charset_get_byte1): New function.
3033         (charset_get_byte2): New function.
3034         (Vdefault_coded_charset_priority_list): New variable.
3035         (vars_of_mule_charset): Add new variable
3036         `default-coded-charset-priority-list'.
3037
3038 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3039
3040         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
3041         (XCHARSET_GET_BYTE2): New inline function.
3042         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
3043         `XCHARSET_GET_BYTE2'.
3044
3045 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3046
3047         * mule-charset.c (make_charset): Initialize
3048         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
3049         NULL if table is not defined.
3050
3051 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3052
3053         * text-coding.c (char_encode_shift_jis): Use
3054         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
3055         `ucs_to_latin_jisx0201'.
3056
3057         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
3058         (ucs_to_latin_iso8859_2): Deleted.
3059         (ucs_to_latin_iso8859_3): Deleted.
3060         (ucs_to_latin_iso8859_4): Deleted.
3061         (ucs_to_latin_iso8859_9): Deleted.
3062         (ucs_to_latin_viscii_lower): Deleted.
3063         (ucs_to_latin_viscii_upper): Deleted.
3064         (ucs_to_latin_tcvn5712): Deleted.
3065         (make_charset): Add new argument `decoding_table'; set up
3066         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
3067         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
3068         `decoding_table' is defined in UTF-2000.
3069         (Fmake_charset): Modify for `make_charset'.
3070         (Fmake_reverse_direction_charset): Likewise.
3071         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
3072         and `GENERATE_96_SET'.
3073
3074         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
3075         (ucs_to_latin_jisx0201): Deleted.
3076         (latin_iso8859_2_to_ucs): Deleted.
3077         (ucs_to_latin_iso8859_2): Deleted.
3078         (latin_iso8859_3_to_ucs): Deleted.
3079         (ucs_to_latin_iso8859_3): Deleted.
3080         (latin_iso8859_4_to_ucs): Deleted.
3081         (ucs_to_latin_iso8859_4): Deleted.
3082         (latin_iso8859_9_to_ucs): Deleted.
3083         (ucs_to_latin_iso8859_9): Deleted.
3084         (latin_viscii_lower_to_ucs): Deleted.
3085         (ucs_to_latin_viscii_lower): Deleted.
3086         (latin_viscii_upper_to_ucs): Deleted.
3087         (ucs_to_latin_viscii_upper): Deleted.
3088         (struct Lisp_Charset): Renamed `encoding_table' to
3089         `to_byte1_table'; add `to_byte2_table'.
3090         (CHARSET_DECODING_TABLE): New macro.
3091         (CHARSET_TO_BYTE1_TABLE): New macro.
3092         (CHARSET_TO_BYTE2_TABLE): New macro.
3093         (XCHARSET_DECODING_TABLE): New macro.
3094         (XCHARSET_TO_BYTE1_TABLE): New macro.
3095         (XCHARSET_TO_BYTE2_TABLE): New macro.
3096         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
3097         tables.
3098         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
3099         don't use `ucs_to_*' tables.
3100
3101 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3102
3103         * text-coding.c (Fmake_coding_system): Don't set up
3104         `codesys->fixed.size'.
3105         (encode_coding_no_conversion): Use `if' instead of `switch'.
3106
3107         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
3108
3109 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3110
3111         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
3112         (Fmake_charset): Modify for `make_charset'.
3113         (Fmake_reverse_direction_charset): Likewise.
3114         (complex_vars_of_mule_charset): Likewise.
3115
3116 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3117
3118         * text-coding.c (char_encode_shift_jis): Use table
3119         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
3120
3121 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3122
3123         * text-coding.c (text_encode_generic): Use `if' instead of
3124         `switch'.
3125         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
3126         decode JIS-Latin.
3127
3128 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3129
3130         * text-coding.c (encode_coding_sjis): Deleted.
3131         (char_encode_shift_jis): New function.
3132         (char_finish_shift_jis): New function.
3133         (reset_encoding_stream): Set up `encode_char' and `finish' for
3134         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
3135         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
3136         (char_encode_utf8): Treat `eol_type'.
3137
3138 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3139
3140         * file-coding.c (decode_coding_iso2022): Use
3141         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
3142
3143 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3144
3145         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3146         to 0.7 (Hirano).
3147
3148 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3149
3150         * char-lb.h (CHAR_COLUMNS): New macro.
3151
3152 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3153
3154         * text-coding.c (char_encode_ucs4): New function.
3155         (char_finish_ucs4): New function.
3156         (encode_coding_ucs4): Deleted.
3157         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
3158         (text_encode_generic): Delete local variable `charset' and `half'.
3159         (ucs_to_mule_table): Deleted.
3160         (mule_to_ucs_table): Deleted.
3161         (Fset_ucs_char): Deleted.
3162         (ucs_to_char): Deleted.
3163         (Fucs_char): Deleted.
3164         (Fset_char_ucs): Deleted.
3165         (Fchar_ucs): Deleted.
3166         (decode_ucs4): Deleted.
3167         (mule_char_to_ucs4): Deleted.
3168         (encode_ucs4): Deleted.
3169         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
3170         (decode_coding_utf8): Likewise.
3171         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
3172         (char_encode_iso2022): Fixed.
3173         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
3174         `Fset_char_ucs' and `Fchar_ucs'.
3175         (complex_vars_of_file_coding): Don't initialize
3176         `ucs_to_mule_table'.
3177
3178         * objects-tty.c (tty_initialize_font_instance): Don't use
3179         `XCHARSET_COLUMNS'.
3180
3181         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
3182         UTF-2000.
3183
3184         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
3185         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3186
3187         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
3188         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3189         (emchar_string_displayed_columns): Likewise.
3190
3191         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
3192         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3193         (string_column_at_point): Likewise.
3194         (Fmove_to_column): Likewise.
3195
3196         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
3197         `encoding_table' and `decoding_table'.
3198         (CHARSET_REP_BYTES): Deleted.
3199         (XCHARSET_REP_BYTES): Deleted.
3200         (XCHARSET_COLUMNS): Deleted.
3201         (CHAR_COLUMNS): New macro.
3202         (lookup_composite_char): Deleted unconditionally.
3203         (composite_char_string): Likewise.
3204
3205 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3206
3207         * char-ucs.h (Emchar_to_byte_table): New type.
3208         (get_byte_from_character_table): New function interface.
3209         (Vcharset_latin_jisx0201): New variable.
3210         (latin_jisx0201_to_ucs): New variable.
3211         (ucs_to_latin_jisx0201): New variable.
3212         (Vcharset_latin_iso8859_2): New variable.
3213         (latin_iso8859_2_to_ucs): New variable.
3214         (ucs_to_latin_iso8859_2): New variable.
3215         (Vcharset_latin_iso8859_3): New variable.
3216         (latin_iso8859_3_to_ucs): New variable.
3217         (ucs_to_latin_iso8859_3): New variable.
3218         (Vcharset_latin_iso8859_4): New variable.
3219         (latin_iso8859_4_to_ucs): New variable.
3220         (ucs_to_latin_iso8859_4): New variable.
3221         (Vcharset_latin_iso8859_9): New variable.
3222         (latin_iso8859_9_to_ucs): New variable.
3223         (ucs_to_latin_iso8859_9): New variable.
3224         (Vcharset_latin_viscii_lower): New variable.
3225         (latin_viscii_lower_to_ucs): New variable.
3226         (ucs_to_latin_viscii_lower): New variable.
3227         (Vcharset_latin_viscii_upper): New variable.
3228         (latin_viscii_upper_to_ucs): New variable.
3229         (ucs_to_latin_viscii_upper): New variable.
3230         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
3231         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
3232         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
3233         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
3234         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
3235         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
3236         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
3237         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
3238         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
3239         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
3240
3241         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
3242         (Vcharset_latin_viscii_upper): New variable.
3243         (make_byte_from_character_table): New function.
3244         (put_byte_from_character_table): New function.
3245         (get_byte_from_character_table): New function.
3246         (CHAR96): New macro.
3247         (ucs_to_latin_jisx0201): New variable.
3248         (latin_jisx0201_to_ucs): New variable.
3249         (ucs_to_latin_iso8859_2): New variable.
3250         (latin_iso8859_2_to_ucs): New variable.
3251         (ucs_to_latin_iso8859_3): New variable.
3252         (latin_iso8859_3_to_ucs): New variable.
3253         (ucs_to_latin_iso8859_4): New variable.
3254         (latin_iso8859_4_to_ucs): New variable.
3255         (ucs_to_latin_iso8859_9): New variable.
3256         (latin_iso8859_9_to_ucs): New variable.
3257         (ucs_to_latin_viscii_lower): New variable.
3258         (latin_viscii_lower_to_ucs): New variable.
3259         (ucs_to_latin_viscii_upper): New variable.
3260         (latin_viscii_upper_to_ucs): New variable.
3261         (ucs_to_latin_tcvn5712): New variable.
3262         (latin_tcvn5712_to_ucs): New variable.
3263         (Qlatin_viscii_lower): New variable.
3264         (Qlatin_viscii_upper): New variable.
3265         (syms_of_mule_charset): Set up new symbol
3266         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
3267         (complex_vars_of_mule_charset): Set up new charset
3268         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
3269         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
3270         `ucs_to_<CHARSET>' tables.
3271
3272 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
3273
3274         * text-coding.c: New file.
3275
3276 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
3277
3278         * mule-charset.c (Fmake_char): Fix problem of 256-set.
3279
3280         * char-ucs.h (Vcharset_ucs_bmp): New variable.
3281         (MAKE_CHAR): Modify for `ucs-bmp'.
3282         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
3283         non-MULE characters of BMP.
3284
3285 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
3286
3287         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3288         to 0.6.
3289
3290 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3291
3292         * lstream.h:
3293         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
3294         - Include character.h for `CHAR_ASCII_P'.
3295
3296         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
3297
3298         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
3299         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
3300
3301         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
3302         (BYTE_C0_P): Likewise.
3303         (BYTE_C1_P): Likewise.
3304         (Lstream_get_emchar_1): Likewise.
3305         (Lstream_fput_emchar): Likewise.
3306         (Lstream_funget_emchar): Likewise.
3307         (copy_internal_to_external): Likewise.
3308         (copy_external_to_internal): Likewise.
3309
3310         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
3311         (BYTE_C0_P): Likewise.
3312         (BYTE_C1_P): Likewise.
3313         (Lstream_get_emchar_1): Likewise.
3314         (Lstream_fput_emchar): Likewise.
3315         (Lstream_funget_emchar): Likewise.
3316         (copy_internal_to_external): Likewise.
3317         (copy_external_to_internal): Likewise.
3318
3319         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
3320         (REP_BYTES_BY_FIRST_BYTE): Likewise.
3321
3322         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
3323         (BYTE_ASCII_P): Moved to mb-1byte.h.
3324
3325 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3326
3327         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
3328
3329         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
3330         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
3331         (VALID_CHARPTR_P): Moved to mb-*byte.h.
3332         (VALIDATE_CHARPTR_BACKWARD): Likewise.
3333         (VALIDATE_CHARPTR_FORWARD): Likewise.
3334         (simple_charptr_emchar): Moved to mb-multibyte.h.
3335         (simple_set_charptr_emchar): Likewise.
3336         (simple_charptr_copy_char): Likewise.
3337         (non_ascii_charptr_emchar): Likewise.
3338         (non_ascii_set_charptr_emchar): Likewise.
3339         (non_ascii_charptr_copy_char): Likewise.
3340         (charptr_emchar): Moved to mb-*byte.h.
3341         (set_charptr_emchar): Likewise.
3342         (charptr_copy_char): Likewise.
3343
3344         * mb-1byte.h, mb-multibyte.h: New files.
3345
3346 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3347
3348         * mb-utf-8.h (MULTIBYTE): New macro.
3349         (MAX_EMCHAR_LEN): Moved from buffer.h.
3350         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
3351
3352         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
3353
3354         * mb-lb.h, multibyte.h: New files.
3355
3356         * char-1byte.h (Charset_ID): Moved from buffer.h.
3357         (MIN_LEADING_BYTE): Likewise.
3358         (LEADING_BYTE_ASCII): Likewise.
3359         (NUM_LEADING_BYTES): Likewise.
3360         (CHARSETP): Likewise.
3361         (CHARSET_BY_LEADING_BYTE): Likewise.
3362         (XCHARSET_LEADING_BYTE): Likewise.
3363         (XCHARSET_GRAPHIC): Likewise.
3364         (XCHARSET_COLUMNS): Likewise.
3365         (XCHARSET_DIMENSION): Likewise.
3366         (CHAR_CHARSET): Likewise.
3367         (CHAR_LEADING_BYTE): Likewise.
3368         (BREAKUP_CHAR): Likewise.
3369         (Vcharset_ascii): Likewise.
3370
3371         * buffer.h: Include multibyte.h unconditionally.
3372         (VALID_CHARPTR_P): Moved to multibyte.h.
3373         (ASSERT_VALID_CHARPTR): Likewise.
3374         (REAL_INC_CHARPTR): Likewise.
3375         (REAL_INC_CHARBYTIND): Likewise.
3376         (REAL_DEC_CHARPTR): Likewise.
3377         (INC_CHARPTR): Likewise.
3378         (INC_CHARBYTIND): Likewise.
3379         (DEC_CHARPTR): Likewise.
3380         (VALIDATE_CHARPTR_BACKWARD): Likewise.
3381         (VALIDATE_CHARPTR_FORWARD): Likewise.
3382         (charptr_n_addr): Likewise.
3383         (MAX_EMCHAR_LEN): Moved to mb-*.h.
3384         (simple_charptr_emchar): Moved to multibyte.h.
3385         (simple_set_charptr_emchar): Likewise.
3386         (simple_charptr_copy_char): Likewise.
3387         (non_ascii_charptr_emchar): Likewise.
3388         (non_ascii_set_charptr_emchar): Likewise.
3389         (non_ascii_charptr_copy_char): Likewise.
3390         (charptr_emchar): Likewise.
3391         (set_charptr_emchar): Likewise.
3392         (charptr_copy_char): Likewise.
3393         (charptr_emchar_n): Likewise.
3394         (Charset_ID): Moved to char-1byte.h.
3395         (Vcharset_ascii): Likewise.
3396         (CHAR_CHARSET): Likewise.
3397         (CHAR_LEADING_BYTE): Likewise.
3398         (LEADING_BYTE_ASCII): Likewise.
3399         (NUM_LEADING_BYTES): Likewise.
3400         (MIN_LEADING_BYTE): Likewise.
3401         (CHARSETP): Likewise.
3402         (CHARSET_BY_LEADING_BYTE): Likewise.
3403         (XCHARSET_LEADING_BYTE): Likewise.
3404         (XCHARSET_GRAPHIC): Likewise.
3405         (XCHARSET_COLUMNS): Likewise.
3406         (XCHARSET_DIMENSION): Likewise.
3407         (BREAKUP_CHAR): Likewise.
3408
3409 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3410
3411         * character.h: Add document about interface for characters.
3412
3413         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
3414         (MAKE_CHAR): Delete comment about
3415         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
3416         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
3417         (BREAKUP_CHAR): Modify name of arguments.
3418         (CHAR_CHARSET): Modify name of argument.
3419
3420         * buffer.h: Delete document about Emchar accessors.
3421
3422 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3423
3424         * character.h (CHAR_INTP): Moved from buffer.h
3425         (CHAR_OR_CHAR_INTP): Likewise.
3426         (XCHAR_OR_CHAR_INT): Likewise.
3427         (CHECK_CHAR_COERCE_INT): Likewise.
3428
3429         * buffer.h (CHAR_INTP): Moved to character.h
3430         (CHAR_OR_CHAR_INTP): Likewise.
3431         (XCHAR_OR_CHAR_INT): Likewise.
3432         (CHECK_CHAR_COERCE_INT): Likewise.
3433
3434 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3435
3436         * character.h:
3437         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
3438         - Include char-1byte.h, char-lb.h or char-ucs.h.
3439
3440         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
3441
3442         * buffer.h: Include character unconditionally.
3443         (valid_char_p): Moved to char-*.h.
3444         (non_ascii_valid_char_p): Moved to char-lb.h.
3445
3446         * char-1byte.h, char-lb.h, char-ucs.h: New files.
3447
3448 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3449
3450         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
3451         in UTF-2000 because it is not ported yet and not to use
3452         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
3453         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
3454         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
3455
3456         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
3457         (CHAR_ASCII_P): Moved from character.h.
3458
3459         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
3460         (CHAR_ASCII_P): Likewise.
3461         (CHAR_FIELD1_MASK): Deleted.
3462         (CHAR_FIELD2_MASK): Deleted.
3463         (CHAR_FIELD3_MASK): Deleted.
3464         (MAX_CHAR_BASIC_LATIN): New macro.
3465         (CHAR_FIELD1): Deleted.
3466         (CHAR_FIELD2_INTERNAL): Deleted.
3467         (CHAR_FIELD3_INTERNAL): Deleted.
3468         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
3469         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
3470         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
3471         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
3472         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
3473         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
3474         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
3475         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
3476         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
3477         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
3478         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
3479         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
3480         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
3481         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
3482         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
3483         (MIN_CHAR_COMPOSITION): Deleted.
3484         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
3485         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
3486
3487 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
3488
3489         * buffer.h: Include mb-utf-8.h in UTF-2000.
3490
3491         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
3492
3493         * mb-utf-8.h: New file.
3494
3495 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
3496
3497         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
3498         instead of `int'.
3499
3500         * mule-charset.h, buffer.h (Charset_ID): New type.
3501
3502 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
3503
3504         * mule-canna.c (c2mu): Use `MAKE_CHAR',
3505         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
3506         instead of `MULE_CHAR_PRIVATE_OFFSET',
3507         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
3508         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
3509         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
3510
3511         * character.h (Vcharset_japanese_jisx0212): New variable
3512         definition.
3513
3514 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
3515
3516         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
3517         (charset_by_attributes): Delete array about direction.
3518         (latin_a_char_to_charset): New variable in UTF-2000.
3519         (latin_a_char_to_byte1): New variable in UTF-2000.
3520         (latin_a_char_to_byte2): New variable in UTF-2000.
3521         (Qucs_bmp): New variable.
3522         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
3523         `Bufbyte'.
3524         (next_allocated_2_byte_leading_byte): Likewise.
3525         (non_ascii_set_charptr_emchar): Likewise.
3526         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
3527         `CHARSET_TYPE_256X256' in UTF-2000; modify for
3528         `charset_by_attributes'.
3529         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
3530         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
3531         and `CHARSET_BY_LEADING_BYTE'.
3532         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
3533         `utf-2000-version' to `vars_of_mule_charset'.
3534         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
3535         define `leading-code-private-11' in UTF-2000; move setting of
3536         `utf-2000-version' from `syms_of_mule_charset'.
3537         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
3538         UTF-2000.
3539
3540         * character.h (Charset_ID): New type.
3541         (LEADING_BYTE_UCS_BMP): New macro.
3542         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
3543         (CHARSET_ID_OFFSET_94): New macro.
3544         (MIN_CHARSET_ID_PRIVATE_94): New macro.
3545         (MAX_CHARSET_ID_PRIVATE_94): New macro.
3546         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
3547         final-byte.
3548         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
3549         (LEADING_BYTE_LATIN_JISX0201): Likewise.
3550         (CHARSET_ID_OFFSET_96): New macro.
3551         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
3552         CHARSET_ID_OFFSET_96 and final-byte.
3553         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
3554         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
3555         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
3556         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
3557         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
3558         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
3559         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
3560         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
3561         (LEADING_BYTE_THAI_TIS620): Likewise.
3562         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
3563         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
3564         (CHARSET_ID_OFFSET_94x94): New macro.
3565         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
3566         CHARSET_ID_OFFSET_94x94 and final-byte.
3567         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
3568         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
3569         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
3570         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
3571         (LEADING_BYTE_CHINESE_GB2312): Likewise.
3572         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
3573         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
3574         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
3575         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
3576         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
3577         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
3578         (CHARSET_TYPE_128X128): New macro.
3579         (CHARSET_TYPE_256X256): New macro.
3580         (XCHARSET_PRIVATE_P): Delete unconditionally.
3581         (charset_by_attributes): Delete array about direction.
3582         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
3583         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
3584         (MIN_CHAR_94): New macro.
3585         (MAX_CHAR_94): New macro.
3586         (MIN_CHAR_96): New macro.
3587         (MAX_CHAR_96): New macro.
3588         (MIN_CHAR_94x94): New macro.
3589         (MAX_CHAR_94x94): New macro.
3590         (MIN_CHAR_96x96): New macro.
3591         (MAX_CHAR_96x96): New macro.
3592         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
3593         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
3594         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
3595         - 32)'.
3596         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
3597         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
3598         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
3599         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
3600         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
3601         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
3602         `XCHARSET_LEADING_BYTE' to make code-point.
3603         (latin_a_char_to_charset): New variable.
3604         (latin_a_char_to_byte1): New variable.
3605         (latin_a_char_to_byte2): New variable.
3606         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
3607         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
3608         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
3609
3610         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
3611         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
3612         (find_charsets_in_emchar_string): Likewise.
3613         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
3614
3615         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
3616         `int'.
3617         (decode_coding_iso2022): Likewise.
3618
3619         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
3620         of `unsigned char'.
3621
3622         * redisplay.c (redisplay_text_width_emchar_string): Use
3623         `Charset_ID' instead of `unsigned char'.
3624         (redisplay_frame_text_width_string): Likewise.
3625
3626         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
3627         `unsigned char'.
3628
3629         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
3630         instead of `unsigned char'.
3631         (face_cachel_charset_font_metric_info): Likewise.
3632
3633         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
3634         (get_non_ascii_char_table_value): Likewise.
3635         (get_char_table): Likewise.
3636         (put_char_table): Likewise.
3637         (map_over_other_charset): Likewise.
3638         (map_char_table): Likewise.
3639
3640         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
3641         instead of `unsigned char'.
3642
3643 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
3644
3645         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
3646         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
3647
3648         * mule-charset.c (leading_code_private_11): Don't define in
3649         UTF-2000.
3650
3651         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
3652         in UTF-2000 because it is not ported yet and not to use
3653         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
3654
3655 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
3656
3657         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
3658
3659 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3660
3661         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
3662         in UTF-2000.
3663
3664         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
3665         of unsigned char to store leading-byte.
3666
3667         * chartab.c (get_non_ascii_char_table_value): Don't use
3668         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
3669
3670         * file-coding.c (encode_coding_big5): Delete bogus implementation
3671         in UTF2000.
3672
3673         * character.h (LEADING_BYTE_*): Delete definition for
3674         non-UTF-2000.
3675         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
3676         (LEADING_BYTE_PREFIX_P): Deleted.
3677         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
3678         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
3679         (BUFBYTE_LEADING_BYTE_P): Deleted.
3680         (CHARSET_PRIVATE_P): Deleted unconditionally.
3681         (rep_bytes_by_first_byte): Deleted unconditionally.
3682         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
3683         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
3684         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
3685         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
3686         (CHAR_FIELD2): Deleted.
3687         (CHAR_FIELD3): Deleted.
3688         (MAKE_CHAR): Delete definition for non-UTF-2000.
3689         (BREAKUP_CHAR_1_UNSAFE): Deleted.
3690         (breakup_char_1): New implementation.
3691         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
3692         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
3693
3694 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3695
3696         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
3697         condition.
3698
3699 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3700
3701         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
3702         (CHARSET_PRIVATE_P): Likewise.
3703         (XCHARSET_PRIVATE_P): Likewise.
3704         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
3705
3706         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
3707         UTF2000.
3708         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
3709
3710 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3711
3712         * character.h (LEADING_BYTE_*): Changed in UTF2000.
3713         (NUM_LEADING_BYTES): Changed from 128 to 256.
3714         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
3715         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
3716         UTF2000.
3717         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
3718
3719         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
3720         UTF2000.
3721         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
3722         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
3723         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
3724         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
3725         (Qchinese_cns11643_3): New variable in UTF2000.
3726         (Qchinese_cns11643_4): New variable in UTF2000.
3727         (Qchinese_cns11643_5): New variable in UTF2000.
3728         (Qchinese_cns11643_6): New variable in UTF2000.
3729         (Qchinese_cns11643_7): New variable in UTF2000.
3730         (syms_of_mule_charset): Define `chinese-cns11643-3',
3731         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
3732         and `chinese-cns11643-7' in UTF2000.
3733         (vars_of_mule_charset): Initialize
3734         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
3735         + 1 in UTF2000.
3736         (complex_vars_of_mule_charset): Setup charset
3737         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
3738         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
3739
3740 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3741
3742         * mule-charset.c: Move setting for `leading-code-private-11' from
3743         `syms_of_mule_charset' to `vars_of_mule_charset'.
3744
3745 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3746
3747         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
3748         and `NUM_LEADING_BYTES' in assert.
3749
3750 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3751
3752         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
3753         instead of 128.
3754         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
3755         `NUM_LEADING_BYTES' instead of 128.
3756
3757 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3758
3759         * mule-charset.h (charset_by_leading_byte): Use
3760         `NUM_LEADING_BYTES' instead of 128.
3761         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
3762
3763         * mule-charset.c (charset_by_leading_byte): Use
3764         `NUM_LEADING_BYTES' instead of 128.
3765         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
3766
3767         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
3768         128.
3769
3770 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
3771
3772         * mule-charset.c (syms_of_mule_charset): Update to
3773         0.4 (Shin-Imamiya).
3774
3775 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
3776
3777         * file-coding.c (encode_coding_sjis): New implementation for
3778         UTF2000.  (decode_coding_sjis): Ditto.
3779
3780 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
3781
3782         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
3783         Don't define in UTF2000.
3784
3785         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
3786         defined.
3787
3788         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
3789         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
3790         MULE.
3791
3792 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
3793
3794         * config.h.in (CHAR_IS_UCS4): New macro.
3795
3796         * mule-charset.c (rep_bytes_by_first_byte): Modify for
3797         conventional MULE representation.
3798         (syms_of_mule_charset): Update to 0.3 (Imamiya).
3799
3800         * mule-charset.h: Reverted to original.
3801
3802         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
3803         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
3804         "mule-charset.h" if CHAR_IS_UCS4 is defined.
3805
3806         * character.h: New file.
3807
3808         * file-coding.c (Fmake_coding_system): Set 1 to
3809         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
3810         defined.
3811         (encode_coding_no_conversion): New implementation for UTF2000.
3812
3813         * file-coding.h (struct Lisp_Coding_System): Add new member
3814         `fixed.size'.
3815
3816 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
3817
3818         * file-coding.c (decode_coding_iso2022): Code-point arguments of
3819         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
3820         (encode_coding_iso2022): New implementation for UTF2000.
3821
3822 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3823
3824         * mule-canna.c (c2mu): New implementation for UTF2000.
3825         (m2c): Likewise.
3826
3827 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3828
3829         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
3830
3831 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3832
3833         * file-coding.c (reset_encoding_stream): Set 0 to
3834         `str->iso2022.current_char_boundary' in UTF2000.
3835         (encode_utf8): Don't define in UTF2000.
3836         (encode_coding_utf8): New implementation for UTF-8 representation
3837         of UTF2000.
3838         (complex_vars_of_file_coding): Define coding-system `utf-8'.
3839
3840 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3841
3842         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
3843
3844         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
3845         UTF2000.
3846         (REP_BYTES_BY_FIRST_BYTE): Likewise.
3847
3848         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
3849
3850         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
3851         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
3852         as UTF-8 in UTF2000.
3853         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
3854         (non_ascii_valid_char_p): Don't define in UTF2000.
3855         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
3856         (Lstream_get_emchar_1): Likewise.
3857         (utf-2000-version): New variable in UTF2000.
3858
3859         * lread.c (read_escape): Add new reader `u'.
3860
3861         * insdel.c (three_to_one_table): Don't define in UTF2000.
3862         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
3863         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
3864         UTF2000.
3865         (bytind_to_bufpos_func): Likewise.
3866         (buffer_mule_signal_inserted_region): Likewise.
3867         (vars_of_insdel): Don't initialize `three_to_one_table'.
3868         (init_buffer_text): Use `buf->text->mule_size' instead of
3869         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
3870         UTF2000.
3871
3872         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
3873         UTF-8 representation in UTF2000.
3874         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
3875         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
3876         (decode_coding_iso2022): Don't define local variable `lb' in
3877         UTF2000; don't use LEADING_BYTE in UTF2000; use
3878         `DECODE_ADD_UCS_CHAR' in UTF2000.
3879         (convert_to_external_format): Decode as UTF-8 in UTF2000.
3880
3881         * config.h.in (UTF2000): New macro.
3882
3883         * buffer.h (struct buffer_text): Add new member `mule_size' and
3884         don't add `mule_shifter' and `mule_three_p' in UTF2000.
3885         (valid_char_p): Return always 1 in UTF2000.
3886         (MAX_EMCHAR_LEN): 6 in UTF2000.
3887         (three_to_one_table): Don't define in UTF2000.
3888         (real_bufpos_to_bytind): Modify for UTF-8 representation in
3889         UTF2000.
3890         (real_bytind_to_bufpos): Likewise.
3891
3892         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
3893
3894 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3895
3896         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
3897         representation change.
3898         (Vutf_2000_version): New variable.
3899         (leading_code_private_11): New variable.
3900         (syms_of_mule_charset): Add new variables `utf-2000-version' and
3901         `leading-code-private-11'.
3902
3903         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
3904         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
3905         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
3906         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
3907         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
3908         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
3909         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
3910         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
3911         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
3912         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
3913         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
3914         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
3915         (MIN_CHAR_GREEK): New macro.
3916         (MAX_CHAR_GREEK): New macro.
3917         (MIN_CHAR_CYRILLIC): New macro.
3918         (MAX_CHAR_CYRILLIC): New macro.
3919         (MIN_CHAR_HEBREW): New macro.
3920         (MAX_CHAR_HEBREW): New macro.
3921         (MIN_CHAR_THAI): New macro.
3922         (MAX_CHAR_THAI): New macro.
3923         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
3924         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
3925         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
3926         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
3927         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
3928         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
3929         (CHAR_FIELD2): New inline function.
3930         (CHAR_FIELD3): New inline function.
3931         (MULE_CHAR_PRIVATE_OFFSET): New macro.
3932         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
3933         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
3934         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
3935         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
3936         (MIN_CHAR_COMPOSITION): Likewise.
3937         (CHAR_LEADING_BYTE): Modified for character representation change.
3938         (MAKE_CHAR): Likewise.
3939
3940         * lisp.h (Vcharset_latin_iso8859_1): New variable.
3941         (Vcharset_greek_iso8859_7): Likewise.
3942         (Vcharset_cyrillic_iso8859_5): Likewise.
3943         (Vcharset_hebrew_iso8859_8): Likewise.
3944         (Vcharset_thai_tis620): Likewise.
3945         (Vcharset_katakana_jisx0201): Likewise.
3946
3947 2001-02-08  Martin Buchholz <martin@xemacs.org>
3948
3949         * XEmacs 21.2.44 "Thalia" is released.
3950
3951 2001-02-06  Martin Buchholz  <martin@xemacs.org>
3952
3953         Fixes crashes in kill-emacs on some systems.
3954         * process-unix.c (unix_kill_child_process):
3955         It's OK for kill() to fail with ESRCH.
3956
3957 2001-02-07  Martin Buchholz  <martin@xemacs.org>
3958
3959         Contortions to make .gdbinit tricks work on most systems.
3960         * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
3961         * alloc.c (dbg_valmask): Make non-const.
3962         * alloc.c (dbg_typemask): Make non-const.
3963         * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
3964         * alloc.c (dbg_valbits): Make non-const.
3965         * alloc.c (dbg_gctypebits): Make non-const.
3966         * .gdbinit (decode_object): Make it work with AIX cc.
3967
3968 2001-02-06  Martin Buchholz  <martin@xemacs.org>
3969
3970         * elhash.c (make_general_lisp_hash_table):
3971         Use simpler and more efficient calloc to clear entries.
3972
3973 2001-02-07  Martin Buchholz  <martin@xemacs.org>
3974
3975         * window.c (window_scroll): Work around an AIX C compiler bug.
3976         Fixes 'scroll-up' does nothing problem with xlC.
3977
3978 2001-02-05  Martin Buchholz  <martin@xemacs.org>
3979
3980         * .gdbinit: Remove obsolete comment.
3981
3982 2001-01-31  Mike Alexander  <mta@arbortext.com>
3983
3984         * select.c (Fown_selection_internal): Set owned_p for device
3985         method correctly.
3986
3987 2001-02-01  Martin Buchholz  <martin@xemacs.org>
3988
3989         Port to g++ 2.97.
3990         "not" cannot be used as a macro name as it is an operator in C++
3991         * config.h.in: Stop #defining `not'.
3992         * chartab.c (check_category_char): not ==> not_p
3993         * chartab.h: Likewise.
3994         * regex.c (re_match_2_internal): Likewise.
3995
3996 2001-02-02  Martin Buchholz  <martin@xemacs.org>
3997
3998         * lisp-disunion.h: Fix up comments.
3999
4000 2001-01-31  Martin Buchholz  <martin@xemacs.org>
4001
4002         * keymap.c (define_key_check_and_coerce_keysym):
4003         (syms_of_keymap):
4004         Support mouse-6 and mouse-7 bindings in the obvious way.
4005
4006 2001-02-01  Martin Buchholz  <martin@xemacs.org>
4007
4008         * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
4009
4010 2001-01-30  Martin Buchholz  <martin@xemacs.org>
4011
4012         Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
4013         Previous patch missed DEFVAR_INT_MAGIC.
4014         Make sure future DEFVAR_foo use correct types.
4015         * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
4016         * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
4017         * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
4018         * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
4019         * (DEFVAR_INT): Likewise.
4020         * redisplay.c (vertical_clip): Should be of type Fixnum.
4021         * redisplay.c (horizontal_clip): Likewise.
4022         * lisp.h (dump_add_opaque_int): New.
4023         (dump_add_opaque_fixnum): New.
4024
4025 2001-01-29  Andy Piper  <andy@xemacs.org>
4026
4027         * glyphs-widget.c (check_valid_int_or_function): allow symbols
4028         since they can be eval'ed
4029
4030 2001-01-29  Martin Buchholz  <martin@xemacs.org>
4031
4032         * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
4033         Oops, XEmacs redefines `class'.  Use `typename' instead.
4034
4035 2001-01-28  Martin Buchholz  <martin@xemacs.org>
4036
4037         * dumper.c: Fix C++ compile errors.
4038
4039 2001-01-29  Martin Buchholz  <martin@xemacs.org>
4040
4041         * tparam.c: Use correct prototypes.
4042
4043 2001-01-28  Martin Buchholz  <martin@xemacs.org>
4044
4045         * sysproc.h: #include util.h for NetBSD's openpty.
4046
4047 2001-01-27  Martin Buchholz  <martin@xemacs.org>
4048
4049         More 64-bit correctness.
4050         The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
4051         Use a typedef `fixnum' for the type used for DEFVAR_INT.
4052         Fix up comments.
4053         This finally finishes the 64-bit SGI port.
4054         Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
4055         * symbols.c: Fix up comments and type casts.
4056         * symbols.c (do_symval_forwarding): s/int/Fixnum/g
4057         * symbols.c (store_symval_forwarding): s/int/Fixnum/g
4058         * symeval.h (Fixnum): New type.
4059         * symeval.h (symbol_value_type): Fix up comment.
4060
4061         * commands.h:
4062         * nt.c:
4063         * emacs.c:
4064         * data.c:
4065         * redisplay.c:
4066         * abbrev.c:
4067         * dired-msw.c:
4068         * event-Xt.c:
4069         * eldap.c:
4070         * window.c:
4071         * sound.c:
4072         * event-stream.c:
4073         * eval.c:
4074         * buffer.c:
4075         * mule-canna.c: A million DEFVAR_INTs here...
4076         * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
4077         * extents.c:
4078         * cmdloop.c:
4079         * lisp.h:
4080         * select-x.c:
4081         * console-x.h:
4082         * event-msw.c:
4083         * mule-wnnfns.c:
4084         * hpplay.c:
4085         * ralloc.c:
4086         * alloc.c:
4087         * keymap.c:
4088         * profile.c:
4089         s/int/Fixnum/g in DEFVAR_INT declarations.
4090
4091 2001-01-26  Martin Buchholz  <martin@xemacs.org>
4092
4093         Port pdump to SGI alignment-sensitive environment.
4094         Lisp Object sizeof methods now return aligned sizes.  Rely on that.
4095         Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
4096         properly aligned.
4097         Define and use aligned reading and writing macros.
4098         Use buffered stdio instead of posix i/o for faster dumping.
4099         Eliminate kludgy 256 byte space for header.
4100         Read and write from dump file using structs for alignment safety.
4101         * dumper.c (pdump_align_stream): New.
4102         * dumper.c (PDUMP_ALIGN_OUTPUT): New.
4103         * dumper.c (PDUMP_READ_ALIGNED): New.
4104         * dumper.c (PDUMP_WRITE_ALIGNED): New.
4105         * dumper.c (pdump_static_Lisp_Object): New struct.
4106         * dumper.c (pdump_static_pointer): New struct.
4107         * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
4108         * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
4109         * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
4110         * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
4111
4112         * dumper.c (pdump_backtrace):
4113         * dumper.c (pdump_get_indirect_count):
4114         * dumper.c (pdump_register_object):
4115         * dumper.c (pdump_register_struct):
4116         * dumper.c (pdump_reloc_one):
4117         * dumper.c (pdump_scan_by_alignment):
4118         * dumper.c (pdump_dump_from_root_struct_ptrs):
4119         * dumper.c (pdump_dump_opaques):
4120         * dumper.c (pdump_dump_rtables):
4121         * dumper.c (pdump_dump_from_root_objects):
4122         * dumper.c (pdump):
4123         * dumper.c (pdump_load_finish):
4124         Use aligned reading and writing.
4125
4126         * dumper.c (pdump_free): Make static.
4127         * dumper.c (pdump_hFile): Likewise.
4128         * dumper.c (pdump_hMap): Likewise.
4129
4130 2001-01-26  Martin Buchholz <martin@xemacs.org>
4131
4132         * XEmacs 21.2.43 "Terspichore" is released.
4133
4134 2001-01-25  Martin Buchholz  <martin@xemacs.org>
4135
4136         Type fiddling for window_config.saved_windows_count
4137         * window.c (struct window_config): 
4138         Make saved_windows_count member unsigned.
4139         * window.c (sizeof_window_config_for_n_windows): 
4140         Make parameter unsigned.
4141         * window.c (mark_window_config):
4142         * window.c (window_config_equal):
4143         * window.c (free_window_configuration):
4144         * window.c (Fset_window_configuration):
4145         * window.c (count_windows):
4146         * window.c (Fcurrent_window_configuration):
4147         * window.c (reinit_vars_of_window):
4148         Update all callers and users.
4149
4150 2001-01-25  Martin Buchholz  <martin@xemacs.org>
4151
4152         Alignment correctness for flexible arrays.
4153         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
4154         Make alignment-correct. Add interesting comments.
4155         * alloc.c (size_vector):
4156         * alloc.c (make_vector_internal):
4157         * alloc.c (make_bit_vector_internal):
4158         * alloc.c (sweep_bit_vectors_1):
4159         * fns.c (size_bit_vector):
4160         Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
4161         * window.c (sizeof_window_config_for_n_windows): 
4162         Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
4163
4164 2001-01-24  Martin Buchholz  <martin@xemacs.org>
4165
4166         * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
4167
4168 2001-01-23  Andy Piper  <andy@xemacs.org>
4169
4170         * select.c (Fown_selection_internal): pass owned_p
4171
4172         * select-msw.c (mswindows_own_selection): New Signature.
4173
4174         * console.h (struct console_methods): add owned_p to
4175         _own_selection.
4176
4177         * select-x.c (x_own_selection): pass owned_p
4178         (hack_motif_clipboard_selection): use owned_p
4179         (vars_of_select_x): new variable -
4180         x_selection_strict_motif_ownership.
4181
4182 2001-01-23  Martin Buchholz  <martin@xemacs.org>
4183
4184         * specifier.h (specifier_data_offset): Remove pointless parens.
4185         * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
4186
4187 2001-01-24  Martin Buchholz  <martin@xemacs.org>
4188
4189         Make Lisp_Object sizeof methods be alignment-correct.
4190         pdump must restore objects to the same alignment as the C compiler
4191         assumes.  It really matters on SGIs.
4192         * lstream.c (aligned_sizeof_lstream): New.
4193         (sizeof_lstream): Use aligned_sizeof_lstream.
4194         (Lstream_new): Likewise.
4195         * opaque.c (aligned_sizeof_opaque): New.
4196         (sizeof_opaque): Use aligned_sizeof_opaque.
4197         (make_opaque): Likewise.
4198         * specifier.c (aligned_sizeof_specifier): New.
4199         (sizeof_specifier): Use aligned_sizeof_specifier.
4200         (make_specifier_internal): Likewise.
4201
4202 2001-01-23  Martin Buchholz  <martin@xemacs.org>
4203
4204         * lstream.h (struct lstream): Use max_align_t for trailing data.
4205         * specifier.h (struct Lisp_Specifier): Likewise.
4206
4207 2001-01-22  Martin Buchholz  <martin@xemacs.org>
4208
4209         * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
4210         (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
4211         (CCL_SUSPEND): Likewise.
4212         (CCL_INVALID_CMD): Likewise.
4213         (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
4214         (ccl_driver): Likewise.
4215         (CCL_WRITE_CHAR): Macro hygiene.
4216         (CCL_WRITE_STRING): Macro hygiene.
4217
4218 2001-01-22  Martin Buchholz  <martin@xemacs.org>
4219
4220         Port "portable" dumper to SunOS 4 and HP-UX.
4221         * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
4222         * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
4223         * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
4224
4225 2001-01-22  Martin Buchholz  <martin@xemacs.org>
4226
4227         * lisp.h (ALIGNOF): A better definition for C++.
4228
4229 2001-01-20  Martin Buchholz  <martin@xemacs.org>
4230
4231         Macro hygiene.
4232         Fix printf warnings: int format, long int arg.
4233         * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
4234         (PUSH_FAILURE_POINT): Use correct printf formats.
4235         (POP_FAILURE_POINT): Use correct printf formats.  
4236         Use do {...} while (0)
4237
4238 2001-01-20  Martin Buchholz <martin@xemacs.org>
4239
4240         * XEmacs 21.2.42 "Poseidon" is released.
4241
4242 2001-01-20  Martin Buchholz  <martin@xemacs.org>
4243
4244         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
4245
4246 2001-01-19  Martin Buchholz  <martin@xemacs.org>
4247
4248         De-kludgify FIXED_TYPE free list frobbing.
4249         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
4250         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
4251         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
4252         * alloc.c (Lisp_Free): New pseudo lisp object definition.
4253         * alloc.c (LRECORD_FREE_P): New.
4254         * alloc.c (MARK_LRECORD_AS_FREE): New.
4255         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
4256         * alloc.c (STRUCT_FREE_P): Deleted.
4257         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
4258         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
4259         * alloc.c (STRING_CHARS_FREE_P): New.
4260         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
4261         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
4262         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
4263         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
4264         * alloc.c (resize_string): Use new definitions.
4265         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
4266         * alloc.c (verify_string_chars_integrity): Use new definitions.
4267         * alloc.c (compact_string_chars): Use new definitions.
4268         * alloc.c: Update monster comments.
4269         * lrecord.h (lrecord_type): Add some new lrecord types for
4270         alloc.c's use.
4271
4272 2001-01-18  Martin Buchholz  <martin@xemacs.org>
4273
4274         Improve alignment hackery.
4275         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
4276         (max_align_t): Moved from opaque.h - general purpose.
4277         (ALIGN_PTR): Use size_t, not long.
4278         * opaque.h (max_align_t): Move to lisp.h.
4279
4280 2001-01-18  Norbert Koch  <nk@LF.net>
4281
4282         * gui.h: Fix and add prototypes to fix build problems.
4283
4284 2001-01-18  Martin Buchholz  <martin@xemacs.org>
4285
4286         temacs is going away, so `dump-temacs' is now a bad name.
4287         * .dbxrc (dump-temacs): Rename to `dmp'.
4288         * .gdbinit (dump-temacs): Rename to `dmp'.
4289
4290 2001-01-17  Andy Piper  <andy@xemacs.org>
4291
4292         * glyphs.c (print_image_instance): comment to make martin happy.
4293
4294         * glyphs-x.c (x_redisplay_widget): update faces after a frame
4295         change.
4296
4297         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
4298         activation.
4299         (mswindows_tab_control_redisplay): warning suppression.
4300
4301         * glyphs-widget.c (widget_update): re-write to cope with updated
4302         items.
4303         (widget_instantiate): use new gui_item functions.
4304         (tab_control_update): deleted.
4305         (progress_gauge_update): deleted.
4306         (image_instantiator_progress_guage): take out update reference.
4307         (image_instantiator_tree_view): ditto.
4308         (image_instantiator_tab_control): ditto.
4309
4310         * gui.c (widget_gui_parse_item_keywords): new function. Do things
4311         Right the new way.
4312         (gui_item_add_keyval_pair): re-write to cope with descriptors and
4313         return whether anything was changed.
4314         (update_gui_item_keywords): as it sounds.
4315
4316         * gui.h: declare widget_gui_parse_item_keywords.
4317
4318         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
4319         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
4320
4321 2001-01-17  Martin Buchholz <martin@xemacs.org>
4322
4323         * XEmacs 21.2.41 "Polyhymnia" is released.
4324
4325 2001-01-16  Didier Verna  <didier@xemacs.org>
4326
4327         * glyphs.c (image_instantiate): don't use fallbacks when
4328         instantiating a face's background pixmap by inheritance.
4329
4330 2001-01-14  Mike Sperber <mike@xemacs.org>
4331
4332         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
4333         Conditionalize accordingly.
4334
4335 2001-01-16  Martin Buchholz  <martin@xemacs.org>
4336
4337         * dumper.c (pdump_file_get): Fix a compiler warning.
4338
4339 2001-01-15  Martin Buchholz  <martin@xemacs.org>
4340
4341         Make Purify happy when pdumping.
4342         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
4343         iniitalizing all bits of new lisp object memory.
4344         * symbols.c (Fmake_local_variable): Likewise.
4345         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
4346         * symbols.c (Fdefvaralias): Likewise.
4347         * mule-charset.c (vars_of_mule_charset): Likewise.
4348
4349 2001-01-15  Martin Buchholz  <martin@xemacs.org>
4350         Add the `-nd' flag when running pre-dump operations under the debugger.
4351         * .dbxrc (run-temacs): Add `-nd'.
4352         * .dbxrc (update-elc): Likewise.
4353         * .dbxrc (dump-temacs): Likewise.
4354         * .gdbinit (run-temacs): Likewise.
4355         * .gdbinit (check-temacs): Likewise.
4356         * .gdbinit (update-elc): Likewise.
4357         * .gdbinit (dump-temacs): Likewise.
4358
4359 2001-01-14  Martin Buchholz  <martin@xemacs.org>
4360
4361         Allow building 64-bit executables on AIX with GNU malloc, e.g.
4362         export OBJECT_MODE=64
4363         configure --pdump --use-union-type=no
4364         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
4365         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
4366
4367         * miscplay.c (sndcnv8U_2mono):
4368         Avoid two uses of `++' in the same expression.
4369         Suppresses a GCC warning.
4370
4371 2001-01-13  Martin Buchholz  <martin@xemacs.org>
4372
4373         Make sure future compilers don't miscompile alloc.c.
4374         * alloc.c:
4375         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
4376         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
4377
4378 2001-01-12  Martin Buchholz  <martin@xemacs.org>
4379
4380         * dumper.c: A little post-pdump-rename comment fixup.
4381
4382 2001-01-09  Jerry James  <james@eecs.ku.edu>
4383
4384         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
4385
4386 2001-01-13  Martin Buchholz  <martin@xemacs.org>
4387
4388         * *.[ch]: Globally rename symbols using the following `pdump-rename'
4389         script:
4390         #!/bin/sh
4391         replace_symbol () {
4392           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
4393         }
4394
4395         replace_symbol pdump_wire_lists pdump_weak_object_chains
4396         replace_symbol pdump_wire_list dump_add_weak_object_chain
4397
4398         replace_symbol pdump_wires pdump_root_objects
4399         replace_symbol pdump_wire dump_add_root_object
4400
4401         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
4402         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
4403
4404         replace_symbol dumpstructinfos pdump_root_struct_ptrs
4405         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
4406         replace_symbol dumpstructinfo pdump_root_struct_ptr
4407         replace_symbol dumpstruct dump_add_root_struct_ptr
4408
4409         replace_symbol dumpopaque dump_add_opaque
4410         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
4411         replace_symbol dumpopaqueinfos pdump_opaques
4412         replace_symbol dumpopaqueinfo pdump_opaque
4413
4414         replace_symbol nb_structdump nb_root_struct_ptrs
4415         replace_symbol nb_opaquedump nb_opaques
4416
4417         replace_symbol align_table pdump_align_table
4418         replace_symbol dump_header pdump_header
4419
4420         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
4421         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
4422
4423
4424 2001-01-12  Martin Buchholz  <martin@xemacs.org>
4425
4426         * s/aix4.h: Keep the C for AIX compiler from overaggressively
4427         optimizing bytecount_to_charcount().
4428
4429 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
4430
4431         * config.h.in:
4432         (HAVE_DLFCN_H): Removed.
4433         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
4434
4435 2001-01-06  Martin Buchholz  <martin@xemacs.org>
4436
4437         Portable dumper maintainability improvements.
4438         * alloc.c (staticpro):
4439         * alloc.c (staticpro_nodump):
4440         * alloc.c (garbage_collect_1):
4441         * alloc.c (reinit_alloc_once_early):
4442         * alloc.c (init_alloc_once_early):
4443         * alloc.c: Move dumper functions to alloc.c.
4444         * dumper.c (pdump_backtrace):
4445         * dumper.c (pdump_dump_structs):
4446         * dumper.c (pdump_dump_opaques):
4447         * dumper.c (pdump_dump_rtables):
4448         * dumper.c (pdump_dump_wired):
4449         * dumper.c (pdump):
4450         * dumper.c (pdump_load_check):
4451         * dumper.c (pdump_load_finish):
4452         * dumper.c (pdump_file_unmap):
4453         * dumper.c (pdump_file_get):
4454         * dumper.c (pdump_resource_free):
4455         * dumper.c (pdump_resource_get):
4456         * dumper.c (pdump_file_free):
4457         * dumper.c (pdump_file_try):
4458         * dumper.c (pdump_load):
4459         Remove fixed size limits on staticpro(), staticpro_nodump(),
4460         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
4461         Remove custom code for dumping lrecord_implementations_table - use
4462         dumpopaque instead.
4463         Remove (most of the) custom code for dumping staticpros - dump it
4464         like any other dynarr.
4465
4466         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
4467         * dumper.c: Moved functions from alloc.c.
4468         * alloc.c (dumpstruct): Moved to dumper.c.
4469         * alloc.c (dumpopaque): Likewise.
4470         * alloc.c (pdump_wire): Likewise.
4471         * alloc.c (pdump_wire_list): Likewise.
4472
4473         * lisp.h (Dynarr_sizeof): New.
4474         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
4475         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
4476         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
4477
4478         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
4479         * lisp.h (dumpopaque): ditto.
4480         * lisp.h (pdump_wire): ditto.
4481         * lisp.h (pdump_wire_list): ditto.
4482
4483 2001-01-09  Martin Buchholz  <martin@xemacs.org>
4484
4485         * make-src-depend (PrintPatternDeps):
4486         Use `sort' to make output independent of perl version.
4487
4488 2001-01-08  Martin Buchholz  <martin@xemacs.org>
4489
4490         Port to Netbsd 1.5.
4491         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
4492         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
4493
4494 2001-01-03  Didier Verna  <didier@xemacs.org>
4495
4496         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
4497         that `focus_frame' is alive before thinking of calling
4498         `redisplay_redraw_cursor' on it.
4499
4500 2001-01-08  Martin Buchholz <martin@xemacs.org>
4501
4502         * XEmacs 21.2.40 is released.
4503
4504 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
4505
4506         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
4507
4508 2001-01-06  Martin Buchholz  <martin@xemacs.org>
4509
4510         * alloc.c (dbg_valmask): Make const.
4511         * alloc.c (dbg_typemask): Make const.
4512         * alloc.c (dbg_USE_UNION_TYPE): Make const.
4513         * alloc.c (dbg_valbits): Make const.
4514         * alloc.c (dbg_gctypebits): Make const.
4515
4516 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
4517
4518         * redisplay-x.c (x_bevel_area):
4519         redisplay.h (struct rune):
4520         Typo fixes in comments.
4521
4522 2001-01-05  Andy Piper  <andy@xemacs.org>
4523
4524         * glyphs-x.c (x_redisplay_widget): use size changed for offset
4525         adjustment.
4526
4527         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
4528
4529 2001-01-05  Martin Buchholz  <martin@xemacs.org>
4530
4531         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
4532
4533         * mule-ccl.c (stack_idx_of_map_multiple):
4534         Non const global data must not be initialized!
4535         Found by MIYASHITA Hisashi.
4536
4537 2001-01-02  Andy Piper  <andy@xemacs.org>
4538
4539         * frame.c (change_frame_size): make sure frame size is always
4540         marked as changed.
4541
4542         * glyphs.c (image_instance_layout): minor code reuse.
4543
4544         * window.c (Fcurrent_window_configuration): revert previous
4545         change.
4546
4547 2001-01-02  Martin Buchholz  <martin@xemacs.org>
4548
4549         * glyphs.h:
4550         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
4551
4552 2000-12-31  Andy Piper  <andy@xemacs.org>
4553
4554         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
4555         when widget gets unmapped.
4556
4557         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
4558         function. Make sure widgets losing focus don't just drop it.
4559         (handle_focus_event_1): record the widget with focus.
4560
4561 2000-12-31  Andy Piper  <andy@xemacs.org>
4562
4563         * window.c (allocate_window): use
4564         make_image_instance_cache_hash_table.
4565         (make_dummy_parent): ditto.
4566         (Fset_window_configuration): ditto.
4567
4568         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
4569
4570         * glyphs.c (process_image_string_instantiator): use
4571         INSTANTIATOR_TYPE.
4572         (get_image_instantiator_governing_domain): ditto.
4573         (normalize_image_instantiator): ditto.
4574         (instantiate_image_instantiator): ditto.
4575         (make_image_instance_1): ditto.
4576         (image_instantiate): ditto. Key on glyph *and* instantiator type.
4577         (instantiator_eq_equal): new function for use with instance hash
4578         tables.
4579         (instantiator_eq_hash): ditto.
4580         (make_image_instance_cache_hash_table): create a suitable hash
4581         table for storing image instances.
4582
4583         * elhash.h (hash_table_weakness): new internal weakness type
4584         HASH_TABLE_KEY_CAR_VALUE_WEAK.
4585         declare new functions.
4586
4587         * elhash.c (finish_marking_weak_hash_tables): introduce yet
4588         another weakness type for glyphs.
4589         (make_standard_lisp_hash_table): new function split out from
4590         make_general_lisp_hash_table.
4591         (make_lisp_hash_table): call make_standard_lisp_hash_table.
4592         (hash_table_instantiate): ditto.
4593         (Fmake_hash_table): ditto.
4594
4595 2000-12-31  Martin Buchholz <martin@xemacs.org>
4596
4597         * XEmacs 21.2.39 is released.
4598
4599 2000-12-29  Andy Piper  <andy@xemacs.org>
4600
4601         * menubar.c (menubar_visible_p_changed): signal the frame changed.
4602
4603         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
4604         the frame has changed so that we pick up geometry changes such as
4605         menubar visibility.
4606
4607 2000-12-28  Andy Piper  <andy@xemacs.org>
4608
4609         * lastfile.c (my_ebss): make a char array so we can pad the
4610         bss. Fixes cygwin unexec.
4611
4612         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
4613
4614 2000-12-26  Andy Piper  <andy@xemacs.org>
4615
4616         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
4617         comments and try and be more precise about a non-/SIGIO world.
4618         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
4619         SIGIO.
4620
4621         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
4622         we don't normalize to zero width or height.
4623
4624 2000-12-24  Andy Piper  <andy@xemacs.org>
4625
4626         * Makefile.in.in (ldflags): add -mwindows when appropriate.
4627
4628 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
4629
4630         * s/sco5.h: SCO 5 has pty support.
4631
4632 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
4633
4634         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
4635         input-method-xlib.c contains whole contents of input-method-xfs.c,
4636         so we can use input-method-xlib.c's code for USE_XFONTSET
4637         using #ifdefs.
4638         * input-method-xfs.c: removed.
4639
4640 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
4641
4642         * file-coding.h (enum coding_category_type): reorder enumerators to
4643         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
4644         (now one greater than largest real coding_category_type enumerator).
4645         * file-coding.c (coding_category_symbol, coding_category_by_priority,
4646         coding_category_system, fcd_descriptihon_1, decode_coding_category,
4647         Fcoding_category_list, Fset_coding_priority_list,
4648         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
4649         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
4650
4651 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
4652
4653         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
4654         * redisplay-output.c (redisplay_output_window): Clear top of window
4655         when face is changed.
4656         * redisplay-x.c (x_redraw_exposed_window): Call
4657         redisplay_clear_top_of_window.
4658         * redisplay.h: Publish redisplay_clear_top_of_window.
4659
4660 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
4661
4662         * buffer.c (Fkill_buffer): Map over all devices.
4663         * window.c (window_loop): Remove UNSHOW_BUFFER code.
4664         (list_windows): New function.
4665         (list_all_windows): Ditto.
4666         (Freplace_buffer_in_windows): Use them.
4667
4668 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
4669
4670         * database.c (berkdb_subtype): Recognize new subtype `queue'.
4671         (Fopen_database): Use `db_create' instead of `db_open'.
4672         (syms_of_database): Initialize Qqueue.
4673
4674 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
4675
4676         * buffer.c (common_init_complex_vars_of_buffer): Initialize
4677         buffer_local_face_property.
4678         * buffer.h (struct buffer): New member buffer_local_face_property.
4679         * window.c (Fset_window_buffer):  Mark window's face as changed
4680         when buffer has buffer local face.
4681         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
4682         * objects.c (color_after_change): Set buffer_local_face_property
4683         when locale of face specifier is buffer.
4684         * objects.c (font_after_change): Ditto.
4685         * objects.c (face_boolean_after_change): Ditto.
4686         * glyphs.c (image_after_change): Ditto.
4687
4688 2000-12-09  Dan Holmsand  <dan@eyebee.com>
4689
4690         * nt.c (mswindows_fstat): Report file permissions, volume serial
4691         number, etc. Code adapted from FSF Emacs 20.7.
4692
4693 2000-12-09  Dan Holmsand  <dan@eyebee.com>
4694
4695         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
4696         of stat when we don't have symbolic links, to make sure
4697         mswindows_stat is called on mswindows.
4698
4699 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
4700
4701         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
4702
4703 2000-12-12  Martin Buchholz  <martin@xemacs.org>
4704
4705         * doprnt.c (emacs_doprnt_1): More printing fixes.
4706         Make printing of numbers compatible with libc and FSF Emacs.
4707         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
4708         Use the system printf to do most of the hard work of formatting,
4709         instead of doprnt_1().
4710         Calculate memory to allocate for format string.
4711         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
4712         (doprnt_1): Cleaner code and documentation.
4713
4714 2000-12-01  Jerry James  <james@eecs.ukans.edu>
4715
4716         * Makefile.in.in: Use the loop variable to install headers.
4717
4718 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
4719
4720         * window.c (Fsplit_window): Don't invalidate face cache.
4721
4722 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
4723
4724         * minibuf.c (Fall_completions): Undo the previous change
4725         which removed checking elements start with space.
4726
4727 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
4728
4729         * mule-canna.c: Didier suppression.
4730
4731 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
4732
4733         * mule-canna.c: rename static unsigned char buf[] to key_buffer
4734         (warning suppression).  Add English comment translations.
4735
4736 2000-12-05  Martin Buchholz  <martin@xemacs.org>
4737
4738         * unexelfsgi.c (unexec): Better test for mmap failure.
4739
4740 2000-12-05  Martin Buchholz <martin@xemacs.org>
4741
4742         * XEmacs 21.2.38 is released.
4743
4744 2000-12-05  Martin Buchholz  <martin@xemacs.org>
4745
4746         * redisplay.c (bar-cursor): Make a user variable.
4747
4748         * symsinit.h: Add init_postgresql_from_environment.
4749
4750 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
4751
4752         * regex.c: Convert to clean C.
4753
4754 2000-12-05  Dan Holmsand  <dan@eyebee.com>
4755
4756         * realpath.c:
4757         Don't #include sysfile.h. Revert to duplicating PATH_MAX
4758         initialization.
4759         (sys_readlink): renamed to system_readlink to avoid conflict with
4760         the other sys_readlink.
4761
4762 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
4763
4764         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
4765
4766 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
4767
4768         * postgresql.c (init_postgresql_from_environment): new function.
4769         (vars_of_postgresql): Move code initializing Lisp variables out and
4770         into init_postgresql_from_environment.
4771         emacs.c (main_1): Call init_postgresql_from_environment if and only
4772         if running a dumped XEmacs.
4773
4774 2000-08-31  Dan Holmsand  <dan@eyebee.com>
4775
4776         * buffer.c: Make find-file-compare-truenames default to true on
4777         windows.
4778
4779         * realpath.c (win32_abs_start):
4780         (cygwin_readlink):
4781         (win32_readlink): New functions.
4782         (xrealpath): Return really real filenames on windows.
4783
4784         * fileio.c (Ffile_truename): Make file-truename work on windows.
4785
4786 2000-11-29  Didier Verna  <didier@xemacs.org>
4787
4788         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
4789         * faces.c (update_face_cachel_data): use it.
4790         * faces.c (add_face_cachel): use it. Complete background pixmap
4791         frobbing in face cache if `update_face_cachel_data' has not done so.
4792
4793 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
4794
4795         * search.c (string_match_1): Don't set last_thing_searched
4796         when search failed.
4797
4798 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
4799
4800         * buffer.c: Include casetab.h
4801         (common_init_complex_vars_of_buffer): Use new case-table object.
4802         * buffer.h: Include casetab.h
4803         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
4804         (DOWNCASE_TABLE_OF): Ditto.
4805         * bufslots.h: Remove char-tables and add case-table.
4806         * casetab.c: Include casetab.h
4807         (CASE_TABLE_P): Removed.
4808         (mark_case_table): New function.
4809         (allocate_case_table): New function.
4810         (Fcase_table_p): Use new case-table.
4811         (case_table_char): New function.
4812         (Fget_case_table): Ditto.
4813         (Fput_case_table): Ditto.
4814         (Fput_case_table_pair): Ditto.
4815         (Fcopy_case_table): Ditto.
4816         (Fcurrent_case_table): Return case-table.
4817         (Fstandard_case_table): Return case-table.
4818         (Fset_case_table): Fix doc-string.
4819         (set_case_table): Use case-table
4820         (syms_of_casetab): DEFSUBR new functions.
4821         (complex_vars_of_casetab): Set up standard case-table.
4822         * casetab.h: New file.
4823         * editfns.c: Include casetab.h
4824         (Fcompare_buffer_substrings): Use case-table.
4825         * inline.c: Include casetab.h
4826         * lisp.h: Remove bogus extern.
4827         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
4828         * search.c: Include casetab.h
4829         (TRANSLATE_ASCII): Removed.
4830         (TRANSLATE): Unconditionally translate character.
4831         (looking_at_1): Use case-table.
4832         (string_match_1): Ditto.
4833         (fast_string_match): Ditto.
4834         (search_command): Ditto.
4835         (search_buffer): Separate boyer_moore.  Check whether
4836         boyer_moore is possible.
4837         (simple_search): New function.
4838         (boyer_moore): Separated from search_buffer. Translate char.
4839
4840 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
4841
4842         * regex.c (RE_TR_ASCII): Removed.
4843         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
4844         (PATFETCH): Call PATFETCH_RAW.
4845         (PATFETCH_RAW): Fetch Emchar.
4846         (PATUNFETCH): Decrement charptr.
4847         (GET_BUFFER_SPACE): Rename b to buf_end.
4848         (BUF_PUSH): Ditto.
4849         (BUF_PUSH_2): Ditto.
4850         (BUF_PUSH_3): Ditto.
4851         (EXTEND_BUFFER): Ditto.
4852         (SET_LIST_BIT): Ditto.
4853         (regex_compile): Ditto.  Translate non ASCII char.
4854         (compile_range): Ditto.
4855         (re_search_2): Ditto.
4856         (re_match_2_internal): Compare Emchar.
4857         (bcmp_translate): Ditto.
4858
4859 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
4860
4861         * lisp.h (basic char/int typedefs):  comment improvement.
4862
4863 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
4864
4865         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
4866         unstomp inhibit_site_lisp.  Improve comments.
4867
4868 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
4869
4870         * mule-charset.c (Fcharset_property):  improve type checking, comments.
4871
4872 2000-11-28  Andy Piper  <andy@xemacs.org>
4873
4874         * redisplay-output.c (redisplay_output_subwindow): make sure we do
4875         clipped display for windows in the gutter also.
4876         (redisplay_display_boxes_in_window_p): change semantics of return
4877         codes to be more intuitive.
4878
4879         * gutter.h: declare display_boxes_in_gutter_p.
4880
4881         * gutter.c (display_boxes_in_gutter_p): new function for
4882         redisplay.
4883
4884 2000-11-22  Andy Piper  <andy@xemacs.org>
4885
4886         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
4887         autodetect domain.
4888
4889 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
4890
4891         * callproc.c (Fold_call_process_internal):
4892         * gpm.c (Freceive_gpm_event):
4893         (tty_get_foreign_selection): Might be just warning supression.
4894         * fileio.c (Fwrite_region_internal):
4895         (Fset_visited_file_modtime):
4896         * keymap.c (event_matches_key_specifier_p):
4897         Initialize GCPROed variable.
4898
4899         * menubar-x.c (command_builder_find_menu_accelerator):
4900         Initialize before use.
4901
4902 2000-11-23  Andy Piper  <andy@xemacs.org>
4903
4904         * unexcw.c (unexec): make the resulting executable executable.
4905
4906 2000-11-21  Martin Buchholz  <martin@xemacs.org>
4907
4908         * doc.c (get_doc_string):
4909         Use size_t, not int, for result of XSTRING_LENGTH.
4910
4911         * cmds.c (Fdelete_char):
4912         * cmds.c (Fpoint_at_eol):
4913         * cmds.c (Fself_insert_command):
4914         Use EMACS_INT, not int, for result of XINT.
4915         Someday, someone will want to insert more than 2**31 identical characters.
4916
4917         * cmds.c (Fdelete_char):
4918         * cmds.c (Fdelete_backward_char):
4919         * syntax.c (Fforward_word):
4920         * syntax.c (Fforward_comment):
4921         Make COUNT argument optional, for consistency with forward-char et al.
4922
4923 2000-11-22  Martin Buchholz  <martin@xemacs.org>
4924
4925         * lisp.h:
4926         * print.c (long_to_string):
4927         Return a useful value: the pointer at end of data written.
4928
4929         * doprnt.c:
4930         Use `static const char * const' for constant strings.
4931         (union printf_arg): Delete `i', `ui' members.
4932         (get_doprnt_args):
4933         (emacs_doprnt_1):
4934         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
4935         Do all printf-ing via the `l' specifier.
4936         Use EMACS_INT instead of int.
4937         Optimize.
4938
4939 2000-11-20  Didier Verna  <didier@xemacs.org>
4940
4941         * faces.c (update_face_cachel_data): don't frob the background
4942         pixmap when the window is being created. The face is needed but
4943         does not exist yet.
4944
4945 2000-11-20  Andy Piper  <andy@xemacs.org>
4946
4947         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
4948         messing with a debug environment.
4949
4950 2000-11-20  Martin Buchholz  <martin@xemacs.org>
4951
4952         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
4953
4954 2000-11-20  Martin Buchholz  <martin@xemacs.org>
4955
4956         * casetab.c (Fcase_table_p): Fix compile error and crash.
4957
4958 2000-11-18  Philip Aston  <philipa@mail.com>
4959
4960         * s/cygwin32.h: Cygwin has SVR4-like pty support.
4961
4962 2000-11-18  Martin Buchholz  <martin@xemacs.org>
4963
4964         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
4965         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
4966
4967 2000-11-17  Martin Buchholz  <martin@xemacs.org>
4968
4969         * config.h.in: Define HAVE_ELF_H if elf.h exists.
4970         * unexelf.c: Use HAVE_ELF_H.
4971         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
4972         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
4973         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
4974         Greg Harrington <greg_harrington@hotmail.com> provided a machine
4975         for testing.
4976         So this is an unexelfsgi.c from a different line of development.
4977
4978 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
4979
4980         * regex.c (RE_TR_ASCII): New function.
4981         (RE_TRANSLATE): Call it.
4982
4983 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
4984
4985         * buffer.h (TRT_TABLE_OF): Remove assert.
4986         (IN_TRT_TABLE_DOMAIN): Removed.
4987
4988 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
4989
4990         * free-hook.c (log_gcpro):
4991         (show_gcprohist): Add support for GCPRO5.
4992
4993 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
4994
4995         * emacs.c (main_1): Improve -sd error message when --pdump=no.
4996
4997 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
4998
4999         * symeval.h: Declare flush_all_buffer_local_cache.
5000
5001         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
5002         (flush_buffer_local_cache): Added.
5003         (flush_all_buffer_local_cache): Added.
5004
5005         * lrecord.h: Remove unused XD_LO_RESET_NIL.
5006
5007         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
5008         (pdump_dump_data): Ditto.
5009         (pdump_reloc_one): Ditto.
5010         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
5011         before dumping.
5012
5013
5014 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
5015
5016         * buffer.c: Remove if 0'ed entry.
5017         * buffer.h: Rewrite TRT to use char-table.
5018         * bufslots.h: Remove mirror tables.
5019         * casetab.c: Remove mirror tables.
5020         (CASE_TABLE_P): New macro.
5021         (Fcase_table_p): Element of a case table is string or char-table.
5022         (make_mirror_trt_table): Removed.
5023         (set_case_table): Setup char-table from strings for backward
5024         compatibility.
5025         * dired.c (Fdirectory_files):
5026         * dired-msw.c: (mswindows_get_files):
5027         * lisp.h: Change prototype of re_pattern_buffer.
5028         * regex.c: (RE_TRANSLATE): New macro.
5029         (TRANSLATE_P): Ditto.
5030         Change translate to type RE_TRANSLATE_TYPE.
5031         * regex.h: Define RE_TRANSLATE_TYPE
5032         * search.c (TRANSLATE): New macro.
5033         (TRANSLATE_ASCII): New macro.
5034         Translate table is changed to Lisp_Object.
5035         (signal_failure): Inhibit return.
5036
5037 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
5038
5039         * device-msw.c:
5040         * eldap.c:
5041         * event-Xt.c:
5042         * event-stream.c:
5043         * print.c:
5044         Do UNGCPRO before return.
5045
5046 2000-11-14  Martin Buchholz <martin@xemacs.org>
5047
5048         * XEmacs 21.2.37 is released.
5049
5050 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
5051
5052         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
5053         Add comments about discarded return value.
5054
5055 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
5056
5057         * callint.c:
5058         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
5059
5060 2000-10-27  Andy Piper  <andy@xemacs.org>
5061
5062         * gutter.c (Fset_default_gutter_position): default left and right
5063         gutters to visible.
5064         (calculate_gutter_size): calculate resonable heuristic for left
5065         and right gutter sizes.
5066         (specifier_vars_of_gutter): change left and right gutter sizes to
5067         autodetect.
5068         (calculate_gutter_size_from_display_lines): new function.
5069         (output_gutter): check for resizing on left and right gutters.
5070         (clear_gutter): don't special case top and left gutters.
5071         (specifier_vars_of_gutter): use new signature for
5072         set_specifier_caching.
5073
5074         * glyphs-x.c (x_redisplay_widget): spelling fix.
5075         * glyphs.c (specifier_vars_of_glyphs):
5076         * menubar.c (specifier_vars_of_menubar):
5077         * redisplay.c (specifier_vars_of_redisplay):
5078         * toolbar.c (specifier_vars_of_toolbar):
5079         * window.c (specifier_vars_of_window):
5080         * scrollbar.c (specifier_vars_of_scrollbar):
5081         (complex_vars_of_scrollbar): use new signature for
5082         set_specifier_caching.
5083
5084         * specifier.c (set_specifier_caching): include recompute flag.
5085         (recompute_one_cached_specifier_in_window): always recompute if
5086         flag set.
5087         (recompute_one_cached_specifier_in_frame): ditto.
5088
5089         * specifier.h (struct specifier_caching): add recompute flag.
5090
5091 2000-10-24  Andy Piper  <andy@xemacs.org>
5092
5093         * unexcw.c (copy_executable_and_dump_data_section): add new
5094         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
5095         5.0 happy.
5096
5097 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
5098
5099         * console-x.h (x_device): New member modifier_release_time.
5100         * event-Xt.c (x_handle_sticky_modifiers):
5101         Bound interval modifier keys are sticky.
5102         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
5103         * events.h: extern it.
5104
5105 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
5106
5107         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
5108
5109 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
5110
5111         * event-stream.c (execute_command_event): Preserve current_events
5112         and the like when event is misc-user-event.
5113         Inhibit quit during the call to maybe_echo_keys.
5114
5115 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
5116
5117         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
5118         symlink when buffer is killed.
5119         (inhibit_clash_detection): New variable.
5120
5121 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
5122
5123         * console.c (Fset_input_method): Trigger redisplay on tty.
5124
5125 2000-11-07  Martin Buchholz  <martin@xemacs.org>
5126
5127         * process.c (Fprocess_status): Revert to previous behavior:
5128         (process-status "nosuchprocess") ==> nil
5129
5130 2000-11-06  Martin Buchholz  <martin@xemacs.org>
5131
5132         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
5133         Work around another GCC 2.95.2 optimizer bug.
5134
5135 2000-11-02  Martin Buchholz  <martin@xemacs.org>
5136
5137         * process.c (Fget_process): Use LIST_LOOP_2.
5138         (kill_buffer_processes): Use LIST_LOOP_2.
5139
5140         * minibuf.c (Fall_completions):
5141         Delete old non-functional code for FSF fourth argument.
5142
5143         * frame.c (frame_matches_frame_spec):
5144         Renamed from `frame_matches_frametype'.  Update all callers.
5145         (device_matches_device_spec):
5146         Renamed from 'device_matches_console_spec'.  Update all callers.
5147
5148         * doc.c (Fsubstitute_command_keys):
5149         Remove buffer overflow crash.  Small code cleanups.
5150
5151         * casetab.c (check_case_table): Simpler code.
5152
5153         * window.c (Freplace_buffer_in_windows):
5154         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
5155         (and similar implementation) as Fdelete_windows_on.
5156         Update all callers.
5157
5158         * alloc.c (Fmake_list):
5159         * alloc.c (make_vector):
5160         * alloc.c (Fmake_vector):
5161         * alloc.c (make_bit_vector):
5162         * alloc.c (Fmake_bit_vector):
5163         * alloc.c (Fbit_vector):
5164         * alloc.c (Fmake_string):
5165         * alloc.c (Fpurecopy):
5166         * alloc.c (Fmemory_limit):
5167         * buffer.c:
5168         * buffer.c (Fget_buffer):
5169         * buffer.c (Fkill_buffer):
5170         * buffer.c (complex_vars_of_buffer):
5171         * bytecode.c (Fcompiled_function_stack_depth):
5172         * callint.c (Fprefix_numeric_value):
5173         * event-stream.c:
5174         * event-stream.c (Fread_key_sequence):
5175         * casetab.c:
5176         * casetab.c (Fcase_table_p):
5177         * casetab.c (check_case_table):
5178         * casetab.c (Fset_case_table):
5179         * casetab.c (Fset_standard_case_table):
5180         * chartab.c:
5181         * chartab.c (Fchar_table_type):
5182         * chartab.c (Freset_char_table):
5183         * chartab.c (Fget_char_table):
5184         * chartab.c (Fget_range_char_table):
5185         * chartab.c (Fput_char_table):
5186         * chartab.c (Fmap_char_table):
5187         * chartab.c (Fcategory_table_p):
5188         * chartab.c (Fcheck_category_at):
5189         * chartab.c (Fchar_in_category_p):
5190         * chartab.c (Fcategory_table):
5191         * chartab.c (Fcopy_category_table):
5192         * chartab.c (Fset_category_table):
5193         * chartab.c (Fcategory_designator_p):
5194         * chartab.c (Fcategory_table_value_p):
5195         * cmds.c (Fdelete_char):
5196         * cmds.c (Fdelete_backward_char):
5197         * cmds.c (Fself_insert_command):
5198         * cmds.c (Fself_insert_internal):
5199         * console.c (Fvalid_console_type_p):
5200         * console.c (Fcdfw_console):
5201         * console.c (Fconsole_type):
5202         * console.c (Fconsole_name):
5203         * console.c (Fconsole_device_list):
5204         * console.c (Fconsole_on_window_system_p):
5205         * data.c:
5206         * data.c (Feq):
5207         * data.c (Fold_eq):
5208         * data.c (Fsubr_interactive):
5209         * data.c (Fchar_to_int):
5210         * data.c (Fint_to_char):
5211         * data.c (Fsetcar):
5212         * data.c (Fsetcdr):
5213         * data.c (Fnumber_to_string):
5214         * data.c (Fstring_to_number):
5215         * data.c (Frem):
5216         * database.c (mark_database):
5217         * database.c (finalize_database):
5218         * database.c (Fdatabase_live_p):
5219         * database.c (Fdatabasep):
5220         * device-x.c (Fx_get_resource):
5221         * device.c (Fdfw_device):
5222         * dired.c:
5223         * dired.c (Ffile_name_completion):
5224         * dired.c (Ffile_name_all_completions):
5225         * dired.c (Fuser_name_completion):
5226         * dired.c (Fuser_name_completion_1):
5227         * dired.c (Fuser_name_all_completions):
5228         * doc.c (Fdocumentation):
5229         * doc.c (Fdocumentation_property):
5230         * doc.c (Fsubstitute_command_keys):
5231         * editfns.c:
5232         * editfns.c (Fchar_to_string):
5233         * editfns.c (Fstring_to_char):
5234         * editfns.c (Ftemp_directory):
5235         * editfns.c (Finsert_char):
5236         * editfns.c (Fbuffer_substring_no_properties):
5237         * editfns.c (Fnarrow_to_region):
5238         * editfns.c (Fchar_equal):
5239         * editfns.c (Fchar_Equal):
5240         * editfns.c (Ftranspose_regions):
5241         * emacs.c (Fdump_emacs):
5242         * eval.c (Fthrow):
5243         * eval.c (Fcommand_execute):
5244         * eval.c (Fautoload):
5245         * eval.c (Fbacktrace):
5246         * eval.c (Fbacktrace_frame):
5247         * events.c:
5248         * events.c (Fcopy_event):
5249         * events.c (Fcharacter_to_event):
5250         * events.c (Fevent_button):
5251         * events.c (Fevent_process):
5252         * extents.c:
5253         * extents.c (Fnext_extent_change):
5254         * extents.c (Fextent_property):
5255         * faces.c (Ffacep):
5256         * faces.c (Fmake_face):
5257         * file-coding.c:
5258         * file-coding.c (Fencode_shift_jis_char):
5259         * file-coding.c (Fencode_big5_char):
5260         * fileio.c (Ffile_name_directory):
5261         * fileio.c (Ffile_name_nondirectory):
5262         * fileio.c (Ffile_name_as_directory):
5263         * fileio.c (Fdirectory_file_name):
5264         * fileio.c (Ffile_truename):
5265         * fileio.c (Fsubstitute_in_file_name):
5266         * fileio.c (Ffile_modes):
5267         * fileio.c (Fset_file_modes):
5268         * fileio.c (Fset_default_file_modes):
5269         * fileio.c (Fverify_visited_file_modtime):
5270         * floatfns.c (Facos):
5271         * floatfns.c (Fasin):
5272         * floatfns.c (Fatan):
5273         * floatfns.c (Fcos):
5274         * floatfns.c (Fsin):
5275         * floatfns.c (Ftan):
5276         * floatfns.c (Fbessel_j0):
5277         * floatfns.c (Fbessel_j1):
5278         * floatfns.c (Fbessel_jn):
5279         * floatfns.c (Fbessel_y0):
5280         * floatfns.c (Fbessel_y1):
5281         * floatfns.c (Fbessel_yn):
5282         * floatfns.c (Ferf):
5283         * floatfns.c (Ferfc):
5284         * floatfns.c (Flog_gamma):
5285         * floatfns.c (Fexp):
5286         * floatfns.c (Fexpt):
5287         * floatfns.c (Flog):
5288         * floatfns.c (Flog10):
5289         * floatfns.c (Fsqrt):
5290         * floatfns.c (Fcube_root):
5291         * floatfns.c (Facosh):
5292         * floatfns.c (Fasinh):
5293         * floatfns.c (Fatanh):
5294         * floatfns.c (Fcosh):
5295         * floatfns.c (Fsinh):
5296         * floatfns.c (Ftanh):
5297         * floatfns.c (Fabs):
5298         * floatfns.c (Ffloat):
5299         * floatfns.c (Flogb):
5300         * floatfns.c (Fceiling):
5301         * floatfns.c (Ffloor):
5302         * floatfns.c (Fround):
5303         * floatfns.c (Ftruncate):
5304         * floatfns.c (Ffceiling):
5305         * floatfns.c (Fffloor):
5306         * floatfns.c (Ffround):
5307         * floatfns.c (Fftruncate):
5308         * fns.c (Fstring_equal):
5309         * fns.c (Fstring_lessp):
5310         * fns.c (concat2):
5311         * fns.c (concat3):
5312         * fns.c (vconcat2):
5313         * fns.c (vconcat3):
5314         * fns.c (Fsubstring):
5315         * fns.c (Fassoc):
5316         * fns.c (Fold_assoc):
5317         * fns.c (assoc_no_quit):
5318         * fns.c (Fassq):
5319         * fns.c (Fold_assq):
5320         * fns.c (assq_no_quit):
5321         * fns.c (Frassoc):
5322         * fns.c (Fold_rassoc):
5323         * fns.c (Frassq):
5324         * fns.c (Fold_rassq):
5325         * fns.c (rassq_no_quit):
5326         * fns.c (Fremassoc):
5327         * fns.c (remassoc_no_quit):
5328         * fns.c (Fremassq):
5329         * fns.c (remassq_no_quit):
5330         * fns.c (Fremrassoc):
5331         * fns.c (Fremrassq):
5332         * fns.c (remrassq_no_quit):
5333         * fns.c (Fsort):
5334         * fns.c (Fplist_get):
5335         * fns.c (Fplist_put):
5336         * fns.c (Fplist_remprop):
5337         * fns.c (Fplist_member):
5338         * fns.c (Flax_plist_get):
5339         * fns.c (Flax_plist_put):
5340         * fns.c (Flax_plist_remprop):
5341         * fns.c (Flax_plist_member):
5342         * fns.c (Fequal):
5343         * fns.c (Fold_equal):
5344         * fns.c (Frequire):
5345         * fns.c (Fbase64_encode_region):
5346         * fns.c (Fbase64_encode_string):
5347         * fns.c (Fbase64_decode_region):
5348         * frame.c:
5349         * frame.c (frame_matches_frame_spec):
5350         * frame.c (device_matches_device_spec):
5351         * frame.c (next_frame):
5352         * frame.c (previous_frame):
5353         * frame.c (Fnext_frame):
5354         * frame.c (Fprevious_frame):
5355         * frame.c (Fframe_property):
5356         * frame.c (Fset_frame_height):
5357         * frame.c (Fset_frame_size):
5358         * frame.h:
5359         * glyphs.c:
5360         * glyphs.c (if):
5361         * glyphs.c (decode_error_behavior_flag):
5362         * glyphs.c (Fmake_image_instance):
5363         * indent.c (Findent_to):
5364         * intl.c (Fignore_defer_gettext):
5365         * keymap.c (Fkeymapp):
5366         * keymap.c (Flookup_key):
5367         * lread.c:
5368         * lread.c (Fload_internal):
5369         * lread.c (Feval_buffer):
5370         * lread.c (Feval_region):
5371         * macros.c (Fexecute_kbd_macro):
5372         * marker.c (set_marker_internal):
5373         * marker.c (Fset_marker):
5374         * marker.c (set_marker_restricted):
5375         * marker.c (Fcopy_marker):
5376         * marker.c (noseeum_copy_marker):
5377         * menubar.c:
5378         * menubar.c (Fpopup_menu):
5379         * minibuf.c:
5380         * mule-charset.c (Fcharset_name):
5381         * mule-charset.c (Fchar_charset):
5382         * mule-charset.c (Fchar_octet):
5383         * mule-charset.c (Fsplit_char):
5384         * mule-wnnfns.c (Fwnn_open):
5385         * mule-wnnfns.c (Fwnn_dict_comment):
5386         * mule-wnnfns.c (Fwnn_quit_henkan):
5387         * mule-wnnfns.c (Fwnn_word_toroku):
5388         * mule-wnnfns.c (Fwnn_word_sakujo):
5389         * mule-wnnfns.c (Fwnn_word_use):
5390         * mule-wnnfns.c (Fwnn_hindo_set):
5391         * objects.c:
5392         * objects.c (Fmake_color_instance):
5393         * objects.c (Fmake_font_instance):
5394         * print.c (Fwrite_char):
5395         * process.c:
5396         * process.c (mark_process):
5397         * process.c (print_process):
5398         * process.c (get_process_from_usid):
5399         * process.c (Fprocessp):
5400         * process.c (Fprocess_live_p):
5401         * process.c (Fget_process):
5402         * process.c (Fget_buffer_process):
5403         * process.c (get_process):
5404         * process.c (Fprocess_id):
5405         * process.c (Fprocess_name):
5406         * process.c (Fprocess_command):
5407         * process.c (init_process_io_handles):
5408         * process.c (start_process_unwind):
5409         * process.c (Fstart_process_internal):
5410         * process.c (Fopen_multicast_group_internal):
5411         * process.c (Fset_process_window_size):
5412         * process.c (read_process_output):
5413         * process.c (send_process):
5414         * process.c (Fprocess_tty_name):
5415         * process.c (Fset_process_buffer):
5416         * process.c (Fprocess_buffer):
5417         * process.c (Fprocess_mark):
5418         * process.c (set_process_filter):
5419         * process.c (Fset_process_filter):
5420         * process.c (Fprocess_filter):
5421         * process.c (Fprocess_send_region):
5422         * process.c (Fprocess_send_string):
5423         * process.c (exec_sentinel):
5424         * process.c (Fset_process_sentinel):
5425         * process.c (Fprocess_sentinel):
5426         * process.c (status_notify):
5427         * process.c (Fprocess_status):
5428         * process.c (Fprocess_exit_status):
5429         * process.c (process_send_signal):
5430         * process.c (Fprocess_send_eof):
5431         * process.c (deactivate_process):
5432         * process.c (remove_process):
5433         * process.c (Fdelete_process):
5434         * process.c (kill_buffer_processes):
5435         * process.c (Fprocess_kill_without_query):
5436         * process.c (Fprocess_kill_without_query_p):
5437         * rangetab.c:
5438         * rangetab.c (Fget_range_table):
5439         * rangetab.c (Fput_range_table):
5440         * rangetab.c (Fremove_range_table):
5441         * rangetab.c (Fclear_range_table):
5442         * search.c:
5443         * search.c (Fskip_chars_forward):
5444         * search.c (Fskip_chars_backward):
5445         * search.c (Fskip_syntax_forward):
5446         * search.c (Fskip_syntax_backward):
5447         * search.c (search_command):
5448         * search.c (Freplace_match):
5449         * search.c (Fregexp_quote):
5450         * select.c (Fown_selection_internal):
5451         * select.c (Fselection_owner_p):
5452         * select.c (Fselection_exists_p):
5453         * select.c (Fget_selection_internal):
5454         * specifier.c:
5455         * symbols.c:
5456         * symbols.c (Fintern):
5457         * symbols.c (Fintern_soft):
5458         * symbols.c (Funintern):
5459         * symbols.c (Fapropos_internal):
5460         * symbols.c (Fset_default):
5461         * syntax.c:
5462         * syntax.c (Fsyntax_table_p):
5463         * syntax.c (Fcopy_syntax_table):
5464         * syntax.c (Fset_syntax_table):
5465         * syntax.c (Fchar_syntax):
5466         * syntax.c (syntax_match):
5467         * syntax.c (Fmatching_paren):
5468         * syntax.c (Fforward_word):
5469         * syntax.c (scan_lists):
5470         * syntax.c (Fscan_lists):
5471         * syntax.c (Fscan_sexps):
5472         * syntax.c (Fparse_partial_sexp):
5473         * toolbar.c (Fcheck_toolbar_button_syntax):
5474         * tooltalk.doc:
5475         * window.c:
5476         * window.c (Fwindowp):
5477         * window.c (Fwindow_live_p):
5478         * window.c (Fwindow_point):
5479         * window.c (Fdelete_window):
5480         * window.c (Fnext_window):
5481         * window.c (Fprevious_window):
5482         * window.c (Fother_window):
5483         * window.c (window_loop):
5484         * window.c (Fget_lru_window):
5485         * window.c (Fsplit_window):
5486         * window.c (Fenlarge_window):
5487         * window.c (Fenlarge_window_pixels):
5488         * window.c (Fshrink_window):
5489         * window.c (Fshrink_window_pixels):
5490         * window.c (change_window_height):
5491         * window.c (Fwindow_configuration_p):
5492         * window.c (Fcurrent_window_configuration):
5493         * window.h:
5494         * casefiddle.c (casify_object):
5495         * casefiddle.c (Fupcase):
5496         * casefiddle.c (Fdowncase):
5497         * casefiddle.c (Fcapitalize):
5498         * casefiddle.c (Fupcase_initials):
5499         * casefiddle.c (casify_region_internal):
5500         * casefiddle.c (casify_region):
5501         * casefiddle.c (Fupcase_region):
5502         * casefiddle.c (Fdowncase_region):
5503         * casefiddle.c (Fcapitalize_region):
5504         * casefiddle.c (Fupcase_initials_region):
5505         * casefiddle.c (Fupcase_word):
5506         * casefiddle.c (Fdowncase_word):
5507         * casefiddle.c (Fcapitalize_word):
5508         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
5509         Replace 0 with '\0' when working with bytes.
5510         Replace initial "(" with "\(" in docstrings.
5511
5512 2000-11-01  Martin Buchholz  <martin@xemacs.org>
5513
5514         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
5515
5516         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
5517
5518 2000-10-31  Martin Buchholz  <martin@xemacs.org>
5519
5520         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
5521
5522 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
5523
5524         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
5525         correctly.
5526
5527 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
5528
5529         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
5530         (inhibit_auto_save_session): New variable.
5531         (vars_of_fileio): Declare and initialize them.
5532         * fileio.c (Fdo_auto_save): Don't create session file if
5533         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
5534
5535 2000-10-31  Martin Buchholz  <martin@xemacs.org>
5536
5537         * sgiplay.c (play_internal): C++ compilability.
5538         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
5539         * callproc.c (Fold_call_process_internal):
5540         Remove unused vars `env', `first'.
5541         * scrollbar.c (update_scrollbar_instance):
5542         #### unused var `current_window'.
5543         * redisplay-tty.c: Put currently unused vars insert_mode_on,
5544         etc. within #ifdef NOT_YET.
5545         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
5546         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
5547         * specifier.c (specifier_instance):
5548         #### unused var `tag'.
5549         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
5550
5551 2000-10-27  Martin Buchholz  <martin@xemacs.org>
5552
5553         * fns.c (Fbutlast):
5554         * fns.c (list_sort):
5555         * fns.c (Ffillarray):
5556         * fns.c (bytecode_nconc2):
5557         * fns.c (Fnconc):
5558         * fns.c (mapcar1):
5559         * fns.c (Fmapconcat):
5560         Be pedantically 64-bit correct.  For the time when someone will
5561         want to have a list with length > 2**32.
5562
5563         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
5564         Work around MIPSpro compiler bug.
5565
5566         * process-unix.c (unix_kill_child_process): Add snarky comment.
5567         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
5568
5569         * config.h.in: Oops, _getpt ==> _getpty
5570
5571 2000-10-26  Martin Buchholz  <martin@xemacs.org>
5572
5573         * config.h.in:
5574         * regex.c:
5575         Use void*, not char*, as return type of alloca().
5576
5577         * alloc.c (free_marker): Side effect inside assert expression!
5578
5579 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
5580
5581         * mule-charset.c (Fset_charset_ccl_program): To check
5582         if the given ccl program is valid, use setup_ccl_program()
5583         instead of CHECK_VECTOR().
5584         (Fmake_charset): Likewise.
5585
5586 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
5587
5588         * faces.c (get_extent_fragment_face_cache_index):
5589         Fix cachel.merged_faces memory leak.
5590
5591 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
5592
5593         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
5594         Reset MSB of octets obtained by DECODE_SJIS
5595         because of the incompatibility with Emacs.
5596         (ccl_driver)<CCL_ENCODE_SJIS>:
5597         Set MSB of octets before passing them to
5598         ENCODE_SJIS because of the incompatibility
5599         with Emacs.
5600
5601 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
5602
5603         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
5604         (DECLARE_LRECORD): Undo the last change.
5605         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
5606
5607 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
5608
5609         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
5610         the implementation to lrecord_implementations_table.
5611
5612 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
5613
5614         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
5615         initial value of `lrecord_type_##c_name' and
5616         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
5617         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
5618         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
5619         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
5620         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
5621
5622 2000-10-17  Martin Buchholz  <martin@xemacs.org>
5623
5624         * miscplay.c (sndcnv8S_2mono):
5625         (sndcnv2monounsigned):
5626         (sndcnvULaw_2linear):
5627         (sndcnv16swap):
5628         Remove implementation-defined behavior.
5629
5630 2000-10-12  Martin Buchholz  <martin@xemacs.org>
5631
5632         * input-method-xlib.c: Warning suppression.
5633
5634 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
5635
5636         * mule-ccl.c: Sync up with Emacs 21.0.90.
5637         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
5638         Do nothing.
5639         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
5640         Likewise.
5641         (ccl_driver[WriteMultibyteChar2]): Bug fix.
5642         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
5643         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
5644         leading char belongs to official 2-dimensional charset.
5645         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
5646         write the given character as is.  Otherwise,
5647         if it is a multibyte char, convert it by
5648         non_ascii_set_charptr_emchar, then write it.
5649         (CCL_WRITE_STRING): Likewise.
5650         (ccl_get_compiled_code): New function.
5651         (setup_ccl_program): When ccl_prog is invalid,
5652         return -1.
5653         (Fregister_code_conversion_map): New function.
5654         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
5655
5656         * mule-ccl.h: Sync up with Emacs 21.0.90.
5657         (Fregister_ccl_program): export it.
5658
5659         * redisplay-msw.c (separate_textual_runs):
5660         If ccl program is not valid, don't do ccl conversion.
5661
5662         * redisplay-x.c (separate_textual_runs): Ditto.
5663
5664         * file-coding.c (Fmake_coding_system):
5665         When type is ccl and value is vector, register it
5666         with a proper symbol.  And checks whether the
5667         given ccl program is valid.
5668         (mule_decode): When calling ccl_driver, if src indicates
5669         NULL pointer, set an empty string instead.
5670         (mule_encode): Likewise.
5671
5672 2000-10-11  Martin Buchholz  <martin@xemacs.org>
5673
5674         The following large batch of changes gets us back to a state of
5675         C++ compilability.  Extbyte is now a char, which means that
5676         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
5677
5678         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
5679
5680         * sound.c (Fplay_sound): Type correctness.
5681
5682         * select-x.c (hack_motif_clipboard_selection): Type correctness.
5683         (x_get_window_property): Type correctness.
5684         (receive_incremental_selection): unsigned char ==> Extbyte
5685         (selection_data_to_lisp_data): unsigned char ==> Extbyte
5686         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
5687         (Fx_store_cutbuffer_internal): Type correctness.
5688
5689         * process-unix.c (try_to_initialize_subtty): Type correctness.
5690
5691         * objects-x.c (x_print_color_instance): Type correctness.
5692         (x_print_font_instance): Type correctness.
5693         (x_list_fonts): SExtbyte ==> Extbyte.
5694         (valid_x_font_name_p): SExtbyte ==> Extbyte.
5695         (x_find_charset_font): SExtbyte ==> Extbyte.
5696         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
5697         (truename_via_XListFonts): SExtbyte ==> Extbyte.
5698         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
5699         Use bufbyte_strcmp.
5700
5701         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
5702         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
5703         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
5704         (BYTE_C0_P): Use bit ops for char-signedness safety.
5705         (BYTE_C1_P): Use bit ops for char-signedness safety.
5706         (CHARSET_BY_LEADING_BYTE):
5707         (CHARSET_BY_ATTRIBUTES):
5708         Always use inline function.
5709         Use type_checking_assert.
5710         Hide chlook.
5711
5712         * mule-charset.c (non_ascii_charptr_copy_char):
5713         Modify to work with both ASCII and non-ASCII characters.
5714         Improve docs and variable names.
5715         Replace over-clever fall-through switch with a simple loop.
5716         (Lstream_get_emchar_1):
5717         Replace over-clever fall-through switch with a simple loop.
5718
5719         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
5720         Warning suppression.
5721
5722         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
5723         the return value of Lstream_getc, which could be EOF as well.
5724
5725         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
5726
5727         * lisp.h: Make Extbyte a char, not unsigned char, so that external
5728         APIs can be used on Extbytes without casts.  Risky!
5729         (SExtbyte): Remove.
5730         (UExtbyte): Remove.
5731
5732         * input-method-xlib.c (XIM_init_device):
5733         Use Xlib.h instead of IntrinsicP.h.
5734         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
5735         which will break in X11R7.
5736         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
5737         to call XRegisterIMInstantiateCallback with correct types.
5738
5739         * gui-x.c (button_item_to_widget_value): Type correctness.
5740
5741         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
5742
5743         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
5744         (xbm_instantiate_1): Type correctness.
5745         (BUILD_GLYPH_INST):  Type correctness.
5746
5747         * fileio.c (Fsubstitute_in_file_name): Type correctness.
5748
5749         * file-coding.c:
5750         (decode_coding_sjis):
5751         (decode_coding_big5):
5752         (decode_coding_ucs4):
5753         (decode_coding_utf8):
5754         (decode_coding_iso2022):
5755         (decode_coding_no_conversion):
5756         Make all decoding functions take an Extbyte * arg.
5757         (encode_coding_sjis):
5758         (encode_coding_big5):
5759         (encode_coding_ucs4):
5760         (encode_coding_utf8):
5761         (encode_coding_iso2022):
5762         (encode_coding_no_conversion):
5763         Make all encoding functions take a Bufbyte * arg.
5764         Use size_t instead of unsigned int for memory sizes.
5765         Only cast to unsigned char whenever dereferencing Extbyte *.
5766
5767         * doc.c (unparesseuxify_doc_string): Type correctness.
5768
5769         * console-x.c (split_up_display_spec):
5770         Rewrite without using details of internal string representation.
5771         (x_semi_canonicalize_device_connection): Type correctness.
5772
5773         * config.h.in:
5774         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
5775         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
5776         (HAVE_XFREE386): Removed.
5777
5778         * buffer.h (DEC_CHARPTR): `const' correctness.
5779         (bufbyte_strcmp): New.
5780         (bufbyte_memcmp): New.
5781
5782         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
5783
5784         * buffer.h (XCHAR_OR_CHAR_INT):
5785         Always use inline function.
5786         Remove redundant type checking assert() - XINT will abort quite nicely.
5787
5788 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
5789
5790         * search.c (Freplace_match): Set newtext to an empty string.
5791
5792 2000-10-10  Martin Buchholz  <martin@xemacs.org>
5793
5794         * s/decosf1-3.h: Remove #include of stropts.h
5795         * s/ptx.h: Remove #include of stropts.h
5796         * s/usg5-4.h: Remove #include of stropts.h
5797         * sysproc.h:
5798         * config.h.in:
5799         Use stropts.h, not sys/stropts.h.
5800         Use strtio.h, not sys/strtio.h.
5801
5802 2000-10-04  Martin Buchholz <martin@xemacs.org>
5803
5804         * XEmacs 21.2.36 is released.
5805
5806 2000-09-21  Andy Piper  <andy@xemacs.org>
5807
5808         * glyphs-x.c (x_redisplay_widget): make sure non-structural
5809         changes still involve copying the widget tree.
5810         (update_widget_face): make sure a change is register in the widget
5811         tree. Call update_tab_widget_face appropriately.
5812         (update_tab_widget_face): ditto.
5813         (x_tab_control_redisplay): make sure non-structural changes still
5814         involve copying the widget tree.
5815
5816 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
5817
5818         * lread.c (locate_file): Check the path element is non-nil.
5819
5820 2000-10-02  Martin Buchholz  <martin@xemacs.org>
5821
5822         * lisp.h: Warning suppression for SCO compilers.
5823
5824         * redisplay-tty.c (reset_tty_modes): Fix crash.
5825         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
5826
5827 2000-09-27  Martin Buchholz  <martin@xemacs.org>
5828
5829         Big signal/process handling overhaul.  Bugs fixed:
5830         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
5831         M-x comint-kill-subjob should work for both values nil and t of
5832         process-connection-type. It was broken on most platforms.
5833         Testing on Irix and Cygwin still needed.  Other plaforms tested.
5834         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
5835         * process-unix.c: Signal/Process handling overhaul.
5836         (pty_name): make 64 bytes, as `expect' does, for paranoia.
5837         (allocate_pty): Use all available modern methods of allocating
5838         ptys, falling back to old style BSD allocation as a last resort.
5839         Use allegedly more secure Unix98 pty allocation by default.
5840         (allocate_pty_the_old_fashioned_way): New. the last resort.
5841         (unix_create_process): Push ptem, ldterm, ttcompat where
5842         available.  Autoconfiscate.
5843         (try_to_initialize_subtty): New.
5844         (unix_kill_child_process): Proper signal handling for ptys on most
5845         platforms, using special knowledge of AIX, BSD, etc...
5846         (unix_create_process): Always disconnect_controlling_terminal() for
5847         subprocesses, whether using ptys or not.
5848         * process.h: Remove old getpt-dependent PTY code.
5849         * process.c (Fprocess_send_signal): New, obvious generic function.
5850         (decode_signal): New.
5851         (Finterrupt_process):
5852         (Fkill_process):
5853         (Fquit_process):
5854         (Fstop_process):
5855         (Fcontinue_process):
5856         (Fsignal_process): Use decode_signal.
5857         (process_send_signal):
5858         Many docstring corrections.
5859         Allow any signal to be sent to a process object.
5860         * config.h.in: Add symbols for big signal/process overhaul.
5861         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
5862         * sysproc.h: Include process-related headers, where available:
5863         sys/stropts.h sys/strtio.h pty.h libutil.h
5864         * s/irix4-0.h:
5865         * s/irix5-0.h:
5866         * s/cygwin32.h:
5867         * s/gnu.h:
5868         * s/linux.h:
5869         * s/hpux.h:
5870         * s/aix3-1.h:
5871         Remove old S&M pty stuff.
5872         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
5873         * systty.h: Simplify cpp hackery, improve comments.
5874         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
5875
5876         * editfns.c (Fformat_time_string):
5877         Be a little more paranoid with the return value of ctime.
5878
5879         * fileio.c (check_executable):
5880         (check_writable):
5881         Use symbolic constants X_OK, W_OK.
5882
5883         * console-x.c (split_up_display_spec): Fix a warning.
5884
5885 2000-10-02  Martin Buchholz  <martin@xemacs.org>
5886
5887         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
5888         * ntproc.c (sys_spawnve): make_string ==> build_string
5889         Small clarity improvements.
5890
5891 2000-09-30  Martin Buchholz  <martin@xemacs.org>
5892
5893         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
5894
5895         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
5896
5897         * config.h.in (HAVE_STRCASECMP): Remove.
5898
5899 2000-09-29  Martin Buchholz  <martin@xemacs.org>
5900
5901         * redisplay-output.c (redisplay_output_pixmap):
5902         Cleaner and possibly more 64-bit correct code.
5903
5904 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
5905
5906         * dumper.c (pdump_load_finish): move restoration of
5907         `noninteractive1' to emacs.c (main_1).
5908         * emacs.c (main_1): protect LISP-visible command-line flags
5909         from pdump_load().
5910
5911 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
5912
5913         * Makefile.in.in (versionclean):  Use EXE_TARGET and
5914         DUMP_TARGET instead of literal program names.
5915
5916 2000-09-20  Martin Buchholz  <martin@xemacs.org>
5917
5918         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
5919
5920 2000-09-19  Martin Buchholz  <martin@xemacs.org>
5921
5922         * *: Spelling mega-patch
5923
5924 2000-09-19  Martin Buchholz  <martin@xemacs.org>
5925
5926         * fns.c (bad_bad_turtle):
5927         Delete "Eek!" comment, since we fixed the bug to which it refers.
5928
5929 2000-09-16  Martin Buchholz  <martin@xemacs.org>
5930
5931         * alloca.c: Replace REGISTER with register.
5932
5933 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
5934
5935         * file-coding.c (ucs_to_char): Use countof.
5936
5937 2000-09-16  Martin Buchholz  <martin@xemacs.org>
5938
5939         * file-coding.c: (ucs_to_char):
5940         (complex_vars_of_file_coding):
5941         Use countof instead of sizeof.
5942         Use CHECK_NATNUM instead of CHECK_INT.
5943
5944         * sysdep.c (strcasecmp): Remove.
5945         * device-x.c (ascii_strcasecmp): New.
5946         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
5947         Avoid using non-standard non-portable strcasecmp.
5948
5949 2000-09-16  Martin Buchholz  <martin@xemacs.org>
5950
5951         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
5952         * font-lock.c: remove reference to emacsfns.h.
5953         * search.c: small doc improvement.
5954         * event-Xt.c: correct file names in comments.
5955         * console-x.h Correct file names in comments.
5956         * frame.c: Correct file names in comments.
5957         * event-stream.c: remove Energize from comments.
5958
5959 2000-09-15  Martin Buchholz  <martin@xemacs.org>
5960
5961         * symeval.h (DEFERROR_STANDARD):
5962         (DEFERROR):
5963         (DEFSYMBOL):
5964         (DEFSYMBOL_NO_DUMP):
5965         (DEFSYMBOL_MULTIWORD_PREDICATE):
5966         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
5967         (DEFKEYWORD):
5968         The construct &##name is not sensible C.
5969         Fixes compilation errors with Unixware native compiler.
5970
5971 2000-09-14  Martin Buchholz  <martin@xemacs.org>
5972
5973         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
5974         (next_frame_internal): Removed.  We now just have next_frame.
5975         (next_frame):
5976         Write a simpler and cleaner one-pass algorithm.
5977         Remove called_from_delete_device arg and #ifdefed-out code.
5978         (previous_frame):
5979         Renamed from prev_frame.  Update callers.
5980         Cleaned up to have an analogous implementation to next_frame.
5981         (other_visible_frames_internal): Remove the
5982         called_from_delete_device bogus arg, and hence, remove this
5983         function.  Just use other_visible_frames().
5984
5985         * window.c (Fnext_window):
5986         Prettify docstring.
5987         Since next_frame() is guaranteed to return a frame, remove check
5988         for nil inserted in previous patch.
5989         (Fprevious_window):
5990         Prettify docstring.
5991         Make code look more like Fnext_window.
5992         (window_loop):
5993         Respect the `console' arg when iterating through windows.
5994         Fixes bug: (get-buffer-window buffer t device) not respecting
5995         the `device' arg.
5996         This function needs more work, as others have pointed out.
5997
5998         * frame.h: Rename prev_frame to previous_frame.
5999         device_matches_console_spec no longer takes a `frame' arg.
6000
6001         * s/gnu.h:
6002         * s/linux.h:
6003         * s/hpux.h:
6004         Use EMACS_BLOCK_SIGNAL instead of sigblock.
6005         From "Golubev I. N." <gin@mo.msk.ru>.
6006
6007         * make-src-depend: Fix typo.
6008
6009 2000-09-13  Martin Buchholz  <martin@xemacs.org>
6010
6011         * window.c (Fnext_window):
6012         next_frame() might return nil, not a frame.
6013         Fixes this crash:
6014         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
6015
6016         * frame.c (next_frame_internal):
6017         We've passed a frame if we've passed its device.
6018         Fixes this crash:
6019         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
6020 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
6021
6022 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
6023
6024         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
6025         Allow option to suppress accelerators in menu/dialog items.
6026         (populate_or_checksum_helper): Pass dialog title through above.
6027
6028 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
6029
6030         * event-msw.c (mswindows_key_to_emacs_keysym):
6031         Add "pause" key, fix "menu" key.
6032
6033 2000-09-09  Martin Buchholz  <martin@xemacs.org>
6034
6035         * eval.c (reinit_vars_of_eval):
6036         Increase max_lisp_eval_depth to 1000,
6037         required for thai-xtis.el to byte-compile under some circumstances.
6038
6039 2000-09-04  Martin Buchholz  <martin@xemacs.org>
6040
6041         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
6042         From Kenichi Handa.
6043
6044 2000-09-01  Martin Buchholz  <martin@xemacs.org>
6045
6046         * make-src-depend: Make the generated Makefiles smaller.
6047
6048         * s/hpux.h (SETUP_SLAVE_PTY):
6049         Provide a %d in the format string for the errno argument.
6050
6051         * editfns.c (Ftemp_directory):
6052         Warning fix.
6053         Avoid buffer overrun on very long file name.
6054
6055         * input-method-xlib.c (XIM_init_device):
6056         6th parameter of XRegisterIMInstantiateCallback has different
6057         pointer types on different OSes, so simply cast to (void *).
6058
6059         * unexhp9k800.c: Warning fixes.  Fiddly changes.
6060
6061         * sysdll.c (dll_open):
6062         shl_load will hang hard if passed a NULL filename.
6063         Simply return NULL for compatibility with dlopen.
6064         * sysdll.c: Conform to XEmacs coding standards.
6065
6066         * sysdep.c (get_pty_max_bytes):
6067         Support pty input lines longer than 512 bytes on HP-UX 10.20.
6068
6069 2000-08-31  Martin Buchholz  <martin@xemacs.org>
6070
6071         * tooltalk.c: Add #include <syssignal.h>
6072
6073 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
6074
6075         * s/hpux.h: Don't use undefined function sigunblock().
6076
6077 2000-08-31  Martin Buchholz  <martin@xemacs.org>
6078
6079         * config.h.in: Add HAVE_BALLOON_HELP.
6080         * emacs.c: Use HAVE_BALLOON_HELP.
6081         * Makefile.in.in (x_objs):
6082         Make Balloon Help conditional on finding shape.h.
6083
6084 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
6085
6086         * syntax.c (regex_emacs_buffer_p): New variable.
6087         * syntax.h (regex_emacs_buffer_p): extern.
6088         * search.c (looking_at_1):
6089         (string_match_1):
6090         (fast_string_match):
6091         (search_buffer): Set regex_emacs_buffer_p.
6092         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
6093         when before_dot, at_dot, after_dot.
6094
6095 2000-08-23  Andy Piper  <andy@xemacs.org>
6096
6097         * gui-x.c (popup_selection_callback): Only set action_occurred
6098         when we really have an image instance.
6099         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
6100
6101 2000-08-23  Andy Piper  <andy@xemacs.org>
6102
6103         * gui-msw.c (mswindows_handle_gui_wm_command): set
6104         action_occurred.
6105         * gui-x.c (popup_selection_callback): ditto.
6106
6107         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
6108         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
6109         (struct Lisp_Image_Instance): add action_occurred flag.
6110
6111         * glyphs.c (redisplay_subwindow): use action_occurred flag.
6112         (image_instance_changed): ditto.
6113         (reset_frame_subwindow_instance_cache): only unmap windows - do
6114         not remove them from the cache also.
6115
6116         * glyphs-widget.c (tab_control_update): better debug.
6117         (progress_gauge_update): ditto.
6118         (layout_update): ditto.
6119         (layout_instantiate): ditto.
6120         (tab_control_order_only_changed): cope with null pending items.
6121
6122         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
6123         debug. Force selection of an item when an action occurred. Cope
6124         with null pending_items.
6125         (mswindows_progress_gauge_redisplay): better debug.
6126         * glyphs-x.c (x_tab_control_redisplay): ditto.
6127
6128         * redisplay.c (redisplay_frame): reset the frame cache if the
6129         frame is garbaged.
6130
6131         * window.c (Fset_window_configuration): potentially re-enable
6132         frame cache reset.
6133         (window_unmap_subwindows): need to finalize instances here since
6134         it is only used in mark_window_as_deleted.
6135
6136 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
6137
6138         * nas.c (SndOpenDataForReading):
6139         nas.c (WaveOpenDataForReading):
6140         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
6141         Somehow escaped from the 2000-08-14 patch.
6142
6143 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
6144
6145         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
6146         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
6147
6148 2000-08-21  Andy Piper  <andy@xemacs.org>
6149
6150         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
6151         window if it is not already displayed.
6152
6153         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
6154         it is not already displayed.
6155
6156         * window.c (Fset_window_configuration): don't reset the frame
6157         cache.
6158
6159         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
6160         instances from the frame cache if we are actually finalizing them.
6161         (reset_frame_subwindow_instance_cache): reset frame cache only
6162         after unmapping everything.
6163         (map_subwindow): set displayed flag after mapping.
6164
6165 2000-08-21  Martin Buchholz  <martin@xemacs.org>
6166
6167         * data.c (indirect_function):
6168         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
6169
6170         * eval.c (function_argcount):
6171         Use original function when signaling errors.
6172
6173 2000-08-18  Andy Piper  <andy@xemacs.org>
6174
6175         * frame.c (delete_frame_internal): use new
6176         free_frame_subwindow_instances name.
6177
6178         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
6179         (add_tab_item): make return type correct.
6180         (mswindows_tab_control_instantiate): assert index of tab.
6181         (mswindows_tab_control_redisplay): Re-code to use
6182         gui_item_equal_sans_selected and gui_item_list_find_selected.
6183
6184         * glyphs-widget.c (tab_control_update): Correct comment.
6185
6186         * window.c (window_unmap_subwindows): use new
6187         unmap_subwindow_instance_cache_mapper.
6188         (window_unmap_subwindows_cache_mapper): deleted.
6189         (Fset_window_configuration): comparisons should now be with
6190         EQ. Preserve the subwindow instance cache across configuration
6191         changes.
6192         (allocate_window): ditto.
6193         (make_dummy_parent): ditto.
6194
6195         * glyphs.c (free_frame_subwindow_instances): rename from
6196         free_frame_subwindow_instance_cache. finalize all instances rather
6197         than just those in the display cache.
6198         (finalize_all_subwindow_instances): walk windows unmapping and
6199         finalizing subwindows.
6200         (unmap_subwindow_instance_cache_mapper): moved from
6201         window.c. Allow finalization as well as unmapping.
6202
6203         * gui.c (gui_item_list_find_selected): new function.
6204
6205         * gui.h (gui_item_list_find_selected): declare.
6206
6207         * glyphs-x.c (x_tab_control_redisplay): pick tab
6208         explicitly. Re-code to use gui_item_equal_sans_selected and
6209         gui_item_list_find_selected.
6210
6211         * glyphs-x.h: add lwlib-utils.h
6212
6213         * buffer.c (Frecord_buffer): undo previous change.
6214
6215 2000-08-09  Vin Shelton  <acs@xemacs.org>
6216
6217         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
6218         possible.  Create temporary files more securely.  The patch was
6219         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
6220         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
6221         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
6222         for details.
6223
6224 2000-08-07  Ben Wing  <ben@xemacs.org>
6225
6226         * getloadavg.c: remove duplicate (and windows-breaking)
6227         includes of fcntl.h and sys/file.h.
6228
6229         * nt.c: remove duplicate getloadavg() definition.
6230
6231         * sysdll.h (Qdll_filename_encoding): add missing stand-in
6232         encodings.
6233
6234 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
6235
6236         * eval.c (function_argcount): If function needs to be autoloaded
6237         actually use the loaded definition.
6238         GCPRO function.
6239
6240 2000-08-05  Ben Wing  <ben@xemacs.org>
6241
6242         * getloadavg.c: add prototype for getloadavg().  remove
6243         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
6244         of the code).  remove duplicate header includes.
6245
6246         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
6247
6248         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
6249         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
6250         useful load average.
6251
6252         * alloc.c (reinit_alloc_once_early): removed references to
6253         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
6254         the lisp vars are the only things referencing the malloc_sbrk_*
6255         vars, and they were already if 0'd out.  these vars only exist
6256         in the older malloc.c, which is basically unused, and they're
6257         only for informational purposes.
6258
6259         * m\*.h: removed useless VIRT_ADDR_VARIES.
6260
6261         * m\powerpc.h: removed stray NO_ARG_ARRAY.
6262
6263 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
6264
6265         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
6266         color if the image is a mono pixmap.
6267
6268 2000-07-30  Ben Wing  <ben@xemacs.org>
6269
6270         * Makefile.in.in (release):
6271         Remove stray @.
6272
6273         * buffer.c (directory_is_current_directory):
6274         * dired-msw.c (mswindows_get_files):
6275         * dired.c:
6276         * dired.c (Fdirectory_files):
6277         * dired.c (file_name_completion_stat):
6278         * dired.c (Ffile_attributes):
6279         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
6280         preprocessor tricks, to avoid problems on some machines
6281         (e.g. SCO).
6282
6283         * callproc.c (egetenv): GC docs.
6284
6285         * console-msw.h:
6286         * console-msw.h (struct mswindows_dialog_id):
6287         * lrecord.h (lrecord_type):
6288         New object for use with MSW dialogs.
6289
6290         * console.h (struct console_methods):
6291         New enable/disable frame methods, for proper modal dialogs.
6292
6293         * device-msw.c (msprinter_default_printer): Fix to follow
6294         proper Mule conventions.
6295
6296         * device-msw.c:
6297         * device-msw.c (signal_open_printer_error):
6298         * device-msw.c (msprinter_init_device):
6299         * device-msw.c (ensure_not_printing):
6300         * device-msw.c (plist_get_margin):
6301         * device-msw.c (Fmsprinter_select_settings):
6302         * device-msw.c (finalize_devmode):
6303         * device-msw.c (Fmsprinter_settings_despecialize):
6304         * device-msw.c (signal_enum_priner_error):
6305         * extents.c (decode_extent):
6306         * extents.c (decode_map_extents_flags):
6307         * extents.c (decode_extent_at_flag):
6308         * extents.c (Fextent_at):
6309         * extents.c (Fextents_at):
6310         * extents.c (symbol_to_glyph_layout):
6311         [[[[2]]]] Use structured errors.
6312
6313         * dialog-msw.c:
6314         * dialog-msw.c (mswindows_is_dialog_msg):
6315         * dialog-msw.c (mark_mswindows_dialog_id):
6316         * dialog-msw.c (dialog_proc):
6317         * dialog-msw.c (handle_question_dialog_box):
6318         * dialog-msw.c (syms_of_dialog_mswindows):
6319         Define new object to clean up marking; use it as a dialog identifier.
6320         Call new delete-dialog-box-hook.
6321
6322         * dialog-x.c (dbox_selection_callback):
6323         * dialog-x.c (dbox_descriptor_to_widget_value):
6324         * dialog-x.c (x_make_dialog_box_internal):
6325         Call new delete-dialog-box-hook.
6326         Return an id.
6327
6328         * dialog.c:
6329         * dialog.c (syms_of_dialog):
6330         * dialog.c (vars_of_dialog):
6331         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
6332
6333         * eval.c:
6334         * eval.c (signal_call_debugger):
6335         when noninteractive, output stack traces on the console instead
6336         of in a (never-seen) buffer.
6337
6338         * eval.c (signal_type_error):
6339         * eval.c (invalid_argument_2):
6340         * lisp.h:
6341         new funs for use w/structured errors.
6342
6343         * event-Xt.c:
6344         * event-Xt.c (x_to_emacs_keysym):
6345         * event-Xt.c (describe_event):
6346         * event-Xt.c (emacs_Xt_event_handler):
6347         * event-Xt.c (vars_of_event_Xt):
6348         * event-msw.c:
6349         * event-msw.c (mswindows_wnd_proc):
6350         * event-msw.c (vars_of_event_mswindows):
6351         rename {x,mswindows}-debug-events to debug-{}-events for
6352         consistency with other debug-foo variables.
6353
6354         * event-stream.c:
6355         document next-event more clearly.
6356
6357         * fileio.c (Ffile_name_directory):
6358         * fileio.c (Ffile_name_nondirectory):
6359         * fileio.c (Funhandled_file_name_directory):
6360         * fileio.c (file_name_as_directory):
6361         * fileio.c (Ffile_name_as_directory):
6362         * fileio.c (directory_file_name):
6363         * fileio.c (Fdirectory_file_name):
6364         * fileio.c (Fmake_temp_name):
6365         * fileio.c (Ffile_truename):
6366         * fileio.c (Fsubstitute_in_file_name):
6367         * fileio.c (expand_and_dir_to_file):
6368         * fileio.c (barf_or_query_if_file_exists):
6369         * fileio.c (check_executable):
6370         * fileio.c (Ffile_exists_p):
6371         * fileio.c (Ffile_writable_p):
6372         * fileio.c (Ffile_directory_p):
6373         * fileio.c (Ffile_regular_p):
6374         * fileio.c (Ffile_modes):
6375         * fileio.c (Ffile_newer_than_file_p):
6376         * fileio.c (Fverify_visited_file_modtime):
6377         * fileio.c (Fset_visited_file_modtime):
6378         * fileio.c (auto_save_1):
6379         (1). (2).
6380         fix up gcpro's.
6381
6382         * frame-msw.c:
6383         * frame-msw.c (mswindows_init_frame_1):
6384         * frame-msw.c (mswindows_enable_frame):
6385         * frame-msw.c (error_frame_unsizable):
6386         * frame-msw.c (msprinter_init_frame_1):
6387         * frame-msw.c (msprinter_init_frame_3):
6388         * frame-msw.c (console_type_create_frame_mswindows):
6389         (2).
6390         implement new enable/disable frame methods.
6391
6392         * frame-x.c:
6393         * frame-x.c (x_enable_frame):
6394         * frame-x.c (console_type_create_frame_x):
6395         implement new enable/disable frame methods.
6396
6397         * frame.c:
6398         * frame.c (Fdisable_frame):
6399         * frame.c (syms_of_frame):
6400         * frame.h (struct frame):
6401         implement new enable/disable frame methods/functions.
6402
6403         * general-slots.h:
6404         add initial-focus.
6405
6406         * glyphs-msw.c (mswindows_widget_instantiate):
6407         comment that initial-focus should be implemented.
6408
6409         * glyphs-widget.c:
6410         * glyphs-widget.c (check_valid_instantiator):
6411         * glyphs-widget.c (check_valid_orientation):
6412         * glyphs-widget.c (check_valid_tab_orientation):
6413         * glyphs-widget.c (check_valid_justification):
6414         * glyphs-widget.c (check_valid_border):
6415         * glyphs-widget.c (check_valid_callback):
6416         * glyphs-widget.c (check_valid_int_or_function):
6417         * glyphs-widget.c (check_valid_string_or_vector):
6418         * glyphs-widget.c (check_valid_item_list_1):
6419         * glyphs-widget.c (widget_validate):
6420         * glyphs-widget.c (combo_box_validate):
6421         * glyphs-widget.c (widget_instantiate):
6422         * glyphs-widget.c (syms_of_glyphs_widget):
6423         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
6424         * glyphs-widget.c (image_instantiator_combo_box):
6425         * glyphs-widget.c (image_instantiator_scrollbar):
6426         * glyphs-widget.c (image_instantiator_tab_control):
6427         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
6428         (2).
6429         support (unimplemented) keyword initial-focus.
6430         reindent long macros.
6431
6432         * glyphs-x.c (x_redisplay_widget):
6433         * glyphs-x.c (x_button_instantiate):
6434         * glyphs-x.c (x_button_redisplay):
6435         * glyphs-x.c (x_progress_gauge_instantiate):
6436         * glyphs-x.c (x_edit_field_instantiate):
6437         * glyphs-x.c (x_combo_box_instantiate):
6438         * glyphs-x.c (x_tab_control_instantiate):
6439         * glyphs-x.c (x_label_instantiate):
6440         * gui-x.c:
6441         * gui-x.c (button_item_to_widget_value):
6442         * gui-x.c (gui_items_to_widget_values_1):
6443         * gui-x.c (gui_item_children_to_widget_values):
6444         * gui-x.c (gui_items_to_widget_values):
6445         * gui-x.h:
6446         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
6447         add new flag to gui-parsing routines to indicate whether
6448         accelerator specs should be supported.
6449
6450         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
6451
6452         * glyphs.h (struct Lisp_Image_Instance):
6453         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
6454         add initial-focus flag.
6455
6456         * gui.c:
6457         * gui.c (syms_of_gui):
6458         * gui.c (vars_of_gui):
6459         clean up menu-no-selection-hook.
6460
6461         * gui.h:
6462         support delete-dialog-box-hook.
6463
6464         * lread.c (Fload_internal):
6465         * lread.c (locate_file_in_directory_mapper):
6466         (1).
6467
6468         * lrecord.h:
6469         * lrecord.h (struct toolbar_button):
6470         * lrecord.h (syms_of_toolbar):
6471         document how to create a new object.
6472
6473         * menubar-msw.c (mswindows_char_is_accelerator):
6474         may be called on frames w/o menus.
6475
6476         * menubar.c (vars_of_menubar):
6477         clean up :filter docs.
6478
6479         * nt.c (readdir):
6480         * ntproc.c:
6481         (1).
6482
6483         * process-nt.c:
6484         * process-nt.c (validate_signal_number):
6485         * process-nt.c (signal_cannot_launch):
6486         * process-nt.c (nt_create_process):
6487         * process-nt.c (nt_send_process):
6488         * process-nt.c (nt_kill_child_process):
6489         * process-nt.c (nt_open_network_stream):
6490         * process-nt.c (syms_of_process_nt):
6491         (2).
6492         delete quote-handling.  call new lisp code that does it better.
6493
6494         * process-unix.c (connect_to_file_descriptor):
6495         * process-unix.c (allocate_pty):
6496         * process-unix.c (unix_send_process):
6497         * process-unix.c (unix_kill_child_process):
6498         * process-unix.c (unix_open_network_stream):
6499         * process-unix.c (unix_open_multicast_group):
6500         (1). (2).
6501
6502         * process.c:
6503         * process.c (Fstart_process_internal):
6504         (2).  need to canonicalize process path even if absolute.
6505
6506         * select-msw.c (symbol_to_ms_cf):
6507         * select-msw.c (ms_cf_to_symbol):
6508         * select-msw.c (cf_is_autofreed):
6509         * select-msw.c (mswindows_destroy_selection):
6510         * select.c:
6511         * select.c (syms_of_select):
6512         * select.h:
6513         support dibv5, fix bugs. (from Mike Alexander)
6514
6515         * select.c (Fget_selection_internal):
6516         * select.c (select_convert_out):
6517
6518         * sysdep.c:
6519         * sysdep.c (xemacs_stat):
6520         renamed.
6521
6522         * sysdep.c (mkdir):
6523         * sysdep.c (rmdir):
6524         but keep original stat() here because we provide encapsulation
6525         around these funs.
6526
6527         * sysfile.h:
6528         * sysfile.h (fstat):
6529         remove stat garbage.
6530
6531         * syswindows.h:
6532         fix X/MSW conflict.
6533         don't include tchar.h.  it's inappropriate because it makes
6534         compile-time distinctions when we want runtime distinctions.
6535         (we provide our own tchar replacements)
6536
6537         * toolbar.c:
6538         use default object printer for toolbar-button.
6539
6540         * unexcw.c:
6541         make sure we don't encapsulate.
6542
6543         * window.c (vars_of_window):
6544         emphasize that temp-buffer-show-hook is obsolete.
6545
6546 2000-08-05  Martin Buchholz  <martin@xemacs.org>
6547
6548         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
6549         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
6550
6551         * events.c (Fevent_timestamp_lessp):
6552         Not 64-bit clean.  Use EMACS_INT, not int.
6553
6554 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
6555
6556         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
6557         unsigned int and changed the last enum to
6558         lrecord_type_last_built_in_type.
6559         (lrecord_implementations_table): changed prototype to know how
6560         long the array is supposed to be.
6561         (lrecord_type_count): new unsigned int to keep track of the
6562         current number of lisp lrecord types.
6563         (DEFINE_EXTERNAL_LRECORD):
6564         (DECLARE_EXTERNAL_LRECORD): Added these two for external
6565         dynamic-modules to declare new lisp types. They are the same
6566         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
6567         int for each new type, and increment lrecord_type_count by 1.
6568
6569         * alloc.c (lrecord_implementations_table): Changed to reference
6570         lrecord_type_last_built_in_type for the size of the array.
6571         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
6572
6573 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
6574
6575         * glyphs.h (check_valid_item_list): Renamed from
6576         check_valid_item_list_1.
6577
6578 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
6579
6580         * select.c (Qselect_coerce): New.
6581         * select.c (Vselection_coercion_alist): New.
6582         * select.c (syms_of_select): Declare.
6583         * select.c (get-selection-internal): Use it.
6584         Use the new select-coerce functionality.
6585
6586         * select.c (select_coerce): New.
6587         * select.h (select_coerce): Declare.
6588         New function to coerce one type of data into another.
6589
6590 2000-08-03  Martin Buchholz  <martin@xemacs.org>
6591
6592         * callproc.c (Fcall_process_internal):
6593         (Fcall_process_internal):
6594         * process-unix.c (unix_create_process):
6595         Save and restore the value of errno, so that error messages are accurate.
6596
6597 2000-08-01  Martin Buchholz  <martin@xemacs.org>
6598
6599         * elhash.c (print_hash_table):
6600         Fix printing of hash tables to also use `key-and-value' instead of `t'.
6601         Prettify docstrings and indentation.
6602
6603 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
6604
6605         * window.c (Fwindow_pixel_edges): Subtract frame border and
6606         gutter size.
6607
6608 2000-07-31  Andy Piper  <andy@xemacs.org>
6609
6610         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
6611         will acknowledge the change.
6612
6613         * glyphs.h: declare tab_control_order_only_changed.
6614
6615         * glyphs-x.c (x_tab_control_redisplay): use
6616         tab_control_order_only_changed.
6617
6618         * glyphs-widget.c (tab_control_order_only_changed): new function.
6619
6620         * glyphs-msw.c (mswindows_tab_control_redisplay): use
6621         tab_control_order_only_changed.
6622
6623         * gui.c (gui_item_equal_sans_selected): new function.
6624         (gui_item_equal): use it.
6625
6626         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
6627         :properties in favor of :items..
6628
6629         * glyphs-widget.c (check_valid_item_list): rename from
6630         check_valid_item_list_1.
6631         (check_valid_item_list_1): renamed.
6632         (combo_box_validate): deprecate :properties in favor of :items.
6633         (widget_instantiate): ditto.
6634         (tab_control_update): ditto.
6635         (image_instantiator_combo_box): ditto.
6636         (image_instantiator_tree_view): ditto.
6637         (image_instantiator_tab_control): ditto.
6638         (layout_post_instantiate): remove dead code.
6639
6640         * print.c (debug_print_no_newline): only write to debugger if in
6641         WIN32_NATIVE.
6642
6643         * elhash.c (Fmake_hash_table): update doc string.
6644
6645         * event-msw.c (mswindows_wnd_proc): don't allow processing of
6646         messages whilst in GC. This at least stops XEmacs crashing but has
6647         the potential for wierd behaviour.
6648
6649 2000-07-31  Martin Buchholz  <martin@xemacs.org>
6650
6651         * config.h.in:
6652         Make existence of s&m files optional.
6653
6654         * s/bsd386.h: Remove HAVE_GETLOADAVG.
6655         * s/freebsd.h: Remove HAVE_GETLOADAVG.
6656         * s/gnu.h: Remove HAVE_GETLOADAVG.
6657         * s/netbsd.h: Remove HAVE_GETLOADAVG.
6658         * s/sol2.h: Remove HAVE_GETLOADAVG.
6659         * lisp.h: Remove getloadavg() declaration.
6660         * fns.c:
6661         Include <sys/loadavg.h> if available.
6662         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
6663         * config.h.in:  Group together getloadavg()-related macros.
6664         Use only configure-time tests to detect getloadavg().
6665
6666 2000-07-30  Martin Buchholz  <martin@xemacs.org>
6667
6668         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
6669
6670 2000-07-25  Andy Piper  <andy@xemacs.org>
6671
6672         * syswindows.h: add tchar.h for native builds.
6673
6674         * frame.c (syms_of_frame): remove set-glyph-image.
6675
6676         * general-slots.h: add Qset_glyph_image.
6677
6678         * glyphs-widget.c (layout_update): add domain arg to
6679         set-glyph-image.
6680         (syms_of_glyphs_widget): remove set-glyph-image.
6681
6682 2000-07-23  Ben Wing  <ben@xemacs.org>
6683
6684         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
6685         Vpopup_frame_list.
6686
6687 2000-07-22  Andy Piper  <andy@xemacs.org>
6688
6689         * symsinit.h: add syms_of_win32().
6690
6691         * gui-msw.c (syms_of_gui_mswindows): remove
6692         Fmswindows_shell_execute.
6693         (Fmswindows_shell_execute): moved to win32.c.
6694
6695         * emacs.c (main_1): add syms_of_win32 ().
6696
6697         * win32.c (init_potentially_nonexistent_functions): rewrite in
6698         compiler-friendly terms.
6699         (Fmswindows_shell_execute): move here from gui-msw.c.
6700         (syms_of_win32): new.
6701
6702         * device-msw.c (Fmswindows_printer_list): clean up args to
6703         EnumPrinters.
6704         Don't include tchar under cygwin or mingw.
6705         (msprinter_default_printer): make cygwin-friendly.
6706
6707 2000-07-21  Andy Piper  <andy@xemacs.org>
6708
6709         * glyphs-widget.c (image_instantiator_tree_view): use tab
6710         control's update function.
6711         (layout_property): new function. Retrieve items.
6712
6713         * glyphs-msw.c (mswindows_tree_view_redisplay): new
6714         function. Re-populate the tree view from the pending items.
6715
6716         * glyphs.c (instantiate_image_instantiator): Make sure the domain
6717         is designated the parent if the domain is an image instance. This
6718         is needed so that dirtiness can be cascade up the hierarchy and
6719         thus for layout children to be redisplayed correctly.
6720         (allocate_image_instance): rename glyph -> parent.
6721
6722         * redisplay.h: change redisplay_output_layout signature.
6723
6724         * redisplay-msw.c (mswindows_output_display_block): use domain
6725         arg.
6726
6727         * redisplay-x.c (x_output_display_block): use domain arg.
6728
6729 2000-07-10  Andy Piper  <andy@xemacs.org>
6730
6731         * window.c (Fset_window_configuration): add comment.
6732
6733         * redisplay-output.c (compare_runes):
6734         (redisplay_output_subwindow): redisplay rather than update subwindow.
6735         (redisplay_output_layout): ditto.
6736
6737         * redisplay-msw.c (mswindows_frame_output_end):
6738         (mswindows_frame_output_end): make defer window pos optional.
6739
6740         * lisp.h: add Flast.
6741
6742         * glyphs.h (struct image_instantiator_methods): add dest_mask top
6743         normalize method. Change update method to be for changed
6744         instantiators. Add redisplay method. Change signature of layout
6745         method.
6746         (struct Lisp_Image_Instance): add instantiator.
6747         (IMAGE_INSTANCE_INSTANTIATOR): new.
6748         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
6749         (XIMAGE_INSTANCE_INSTANTIATOR): new.
6750         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
6751
6752         * glyphs.c:
6753         (find_instantiator_differences): new function.
6754         (Fset_instantiator_property): new convenience function.
6755         (check_image_instance_structure): strictly check for vector
6756         instantiators.
6757         (normalize_image_instantiator): make non-static.
6758         (instantiate_image_instantiator): pass on dest_mask and use new
6759         signatures for image_instance_layout and friends.
6760         (mark_image_instance): mark the instantiator. Mark the subwindow
6761         face not the widget face.
6762         (image_instance_equal): add instantiator.
6763         (image_instance_hash): ditto.
6764         (allocate_image_instance): ditto.
6765         (Fset_image_instance_property): removed.
6766         (Fimage_instance_file_name): ditto.
6767         (Fcolorize_image_instance): ditto.
6768         (image_instance_layout): add offsets to be set.
6769         (update_image_instance): new function. update an image instance
6770         from its changed instantiator.
6771         (inherit_normalize): add dest_mask.
6772         (xbm_normalize): ditto.
6773         (xface_normalize): ditto.
6774         (xpm_normalize): ditto.
6775         (text_update): set_property -> update.
6776         (image_instantiate): use the glyph identity as a hash key, not the
6777         instantiator.
6778         (glyph_width): use new image_instance_layout signature.
6779         (glyph_ascent): ditto.
6780         (glyph_descent): ditto.
6781         (glyph_height): ditto.
6782         (glyph_query_geometry): ressurrect.
6783         (glyph_layout): ditto.
6784         (redisplay_subwindow): update -> redisplay.
6785         (syms_of_glyphs): add Fset_instantiator_property.
6786         (image_instantiator_format_create): set_property -> update.
6787
6788         * glyphs-x.c:
6789         (autodetect_normalize): add dest_maks to signature.
6790         (x_redisplay_subwindow): update -> redisplay.
6791         (x_redisplay_widget): ditto.
6792         (x_button_redisplay): ditto.
6793         (x_progress_gauge_redisplay): ditto.
6794         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
6795         stacking order.
6796         (console_type_create_glyphs_x): update -> redisplay.
6797         (image_instantiator_format_create_glyphs_x): ditto.
6798
6799         * glyphs-widget.c:
6800         (check_valid_instantiator): disallow glyphs in the instantiator,
6801         they must now be vectors.
6802         (check_valid_instantiator_list): ditto.
6803         (glyph_instantiator_to_glyph): use internal symbol rather than
6804         intern.
6805         (widget_update): renamed from widget_set_property. Call cascaded
6806         update methods.
6807         (redisplay_widget): renamed from update_widget.
6808         (widget_layout): image_instance_layout now takes position as well
6809         as size.
6810         (widget_normalize): ditto.
6811         (widget_instantiate): ditto.
6812         (tab_control_query_geometry) ditto.:
6813         (tab_control_update): renamed from tab_control_set_property.
6814         (progress_gauge_update): set_property -> update.
6815         (layout_normalize): rewrite so that child instantiators are
6816         normalized also.
6817         (layout_update): new function. Create glyphs from the normalized
6818         children and cope with any other layout keywords. We do not
6819         instantiate children here that will be take care of by
6820         redisplay_output_layout.
6821         (layout_instantiate): call layout_update and not much else.
6822         (layout_post_instantiate): not sure whether this is needed
6823         anymore.
6824         (layout_query_geometry): query glyph geometry rather than
6825         image_instance geometry.
6826         (layout_layout): set offsets from pass in parameters. Use glyph
6827         geometry and layout functions rather than image instance ones.
6828         (native_layout_layout): ditto.
6829         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
6830         (image_instantiator_widget): set_property -> update.
6831         (image_instantiator_buttons): ditto.
6832         (image_instantiator_progress_guage): ditto.
6833         (image_instantiator_tab_control): ditto.
6834         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
6835         (image_instantiator_layout): add update method.
6836
6837         * glyphs-msw.c (bmp_normalize):
6838         (mswindows_resource_normalize): add dest_mask so that it can be
6839         proprogated by layout_normalize.
6840         (begin_defer_window_pos): make optional because it may not be the
6841         right thing to do and it introduces differences with X.
6842         (mswindows_unmap_subwindow): ditto.
6843         (mswindows_map_subwindow): ditto.
6844         (mswindows_redisplay_subwindow): renamed from
6845         mswindows_update_subwindow.
6846         (mswindows_redisplay_widget): ditto.
6847         (mswindows_button_redisplay): renamed from
6848         mswindows_button_update. Update is now what the instantiation
6849         function does for a changed instantiator.
6850         (mswindows_progress_gauge_instantiate): set the progress value
6851         here if appropriate.
6852         (mswindows_tab_control_redisplay): cope with re-ordering of the
6853         members of the tab widget by simply selecting the new top
6854         widget. This makes things appear ok if you click on a tab.
6855         (mswindows_combo_box_instantiate): image_instance_layout now takes
6856         position as well as size.
6857         (mswindows_progress_gauge_redisplay): renamed from
6858         mswindows_progress_gauge_update.
6859         (console_type_create_glyphs_mswindows): fix update -> redisplay.
6860         (image_instantiator_format_create_glyphs_mswindows): ditto.
6861
6862         * glyphs-eimage.c (jpeg_normalize):
6863         (gif_normalize):
6864         (png_normalize):
6865         (tiff_normalize): add dest_mask so that it can be proprogated by
6866         layout_normalize.
6867
6868         * elhash.c:
6869         (print_hash_table):
6870         (hash_table_weakness_validate):
6871         (decode_hash_table_weakness):
6872         (Fhash_table_weakness):
6873         (Fhash_table_type):
6874         (syms_of_elhash): use Ben's naming scheme for hashtable types..
6875
6876         * console.h (struct console_methods): move update_* to
6877         redisplay_*.
6878
6879 2000-07-20  Ben Wing  <ben@xemacs.org>
6880
6881         * *.[ch] (XSETOBJ): remove unused middle argument.
6882         lisp-disunion.h: correct wrap_object() to one argument.
6883
6884 2000-07-15  Ben Wing  <ben@xemacs.org>
6885
6886         * s/cygwin32.h:
6887         * s/cygwin32.h (CYGWIN_CONV_PATH):
6888         Add missing logb prototype for v1.1.
6889         Use post-b20 names and alias to pre-b20 names when pre-b20.
6890
6891         * s/windowsnt.h: [5].
6892
6893 2000-07-15  Ben Wing  <ben@xemacs.org>
6894
6895         * Makefile.in.in (x_objs):
6896         * Makefile.in.in (sheap_objs):
6897         * Makefile.in.in (objs):
6898         added win32.o, cosmetic cleanups.
6899
6900         * alloc.c (Fmake_byte_code):
6901         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
6902         etc. macros which declare their own args now.
6903
6904         * alloc.c (syms_of_alloc):
6905         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
6906
6907         * buffer.c:
6908         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
6909
6910         * buffer.c (Fget_file_buffer):
6911         Fixed GCPRO problem.
6912
6913         * buffer.c (get_truename_buffer):
6914         Fixed comment about GC checking.
6915
6916         * buffer.c (syms_of_buffer):
6917         Undeclared those dedicated frame funs.
6918         [2].
6919
6920         * buffer.h:
6921         Define convenience macros for internal/external conversions.
6922         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
6923         and Qenvironment_variable_encoding for cleaner code.
6924
6925         * bufslots.h:
6926         Remove dedicated-frame; in lisp.
6927
6928         * bytecode.c (funcall_compiled_function):
6929         [1].
6930
6931         * bytecode.c (syms_of_bytecode):
6932         [2].
6933
6934         * console-msw.c:
6935         * console-msw.c (mswindows_show_console): Rewrote.
6936
6937         * console-msw.c (Fmswindows_debugging_output): New.
6938         Sends to OutputDebugString (special MSWin debugger interface).
6939
6940         * console-msw.c (Fmswindows_message_box):
6941         Fixed stupid bugs so it works when called from kill-emacs.
6942
6943         * console-msw.c (syms_of_console_mswindows):
6944         Declare Fmswindows_debugging_output.
6945
6946         * console-msw.h:
6947         New MSWin prototypes.
6948
6949         * console-msw.h (struct mswindows_frame):
6950         New entry last-click-mods for improved button-modifier support.
6951
6952         * console-msw.h (FRAME_MSWINDOWS_POPUP):
6953         New struct entry `popup' with corresponding accessor.
6954
6955         * console-x.c:
6956         * console-x.c (split_up_display_spec):
6957         * console-x.c (get_display_arg_connection):
6958         * console-x.c (x_semi_canonicalize_console_connection):
6959         * console-x.c (x_canonicalize_device_connection):
6960         [[[6]]]: Change char to more specific type.
6961         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
6962
6963         * console-x.c (x_semi_canonicalize_console_connection):
6964         * console-x.c (x_canonicalize_device_connection):
6965         [[[9]]]: Fix up error signalling to use new structured error system.
6966
6967         * console-x.h:
6968         [[[4]]]: Define codesys aliases:
6969         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
6970         Qx_color_name_encoding, Qx_display_name_encoding.
6971
6972         * console.h (struct console_methods):
6973         New method make_dialog_box_internal supersedes older
6974         popup_dialog_box method.
6975
6976         * data.c:
6977         Define many new errors, part of new structured errors.
6978
6979         * data.c (init_errors_once_early):
6980         * data.c (syms_of_data):
6981         [2].
6982
6983         * device-msw.c (mswindows_init_device):
6984         [[[5]]]: Cleanup to support NT 3.51.
6985
6986         * device-msw.c (decode_devmode): Cleanup.
6987
6988         * device-msw.c (mswindows_handle_print_setup_dialog_box):
6989         * device-msw.c (mswindows_handle_print_dialog_box):
6990         * device-msw.c (mswindows_handle_page_setup_dialog_box):
6991         * device-msw.c (syms_of_device_mswindows):
6992         Delete the dialog box primitives recently introduced by Kirill and
6993         instead interface to general dialog box interface.
6994
6995         * device-x.c:
6996         * device-x.c (compute_x_app_name):
6997         * device-x.c (x_init_device):
6998         * device-x.c (Fx_valid_keysym_name_p):
6999         * device-x.c (Fx_set_font_path):
7000         [6].
7001         [7].
7002
7003         * device.h (wrap_device): New.
7004         First of its kind; meant to replace XSETDEVICE.
7005
7006         * dialog-msw.c: Many file-dialog symbols.
7007
7008         * dialog-msw.c (mswindows_register_popup_frame): New.
7009         * dialog-msw.c (mswindows_is_dialog_msg): New.
7010         For supporting kbd traversal in dialog boxes.
7011
7012         * dialog-msw.c (dialog_proc):
7013         Support hitting ESC in dialogs.
7014
7015         * dialog-msw.c (struct):
7016         Common dialog box errors.
7017
7018         * dialog-msw.c (handle_file_dialog_box): New.
7019         Add file dialog code.
7020
7021         * dialog-msw.c (handle_question_dialog_box):
7022         Redo existing code to support new question dialog syntax.
7023
7024         * dialog-msw.c (console_type_create_dialog_mswindows):
7025         We support new dialog console method.
7026
7027         * dialog-msw.c (syms_of_dialog_mswindows):
7028         * dialog-msw.c (vars_of_dialog_mswindows):
7029         New file dialog symbols, vars.
7030
7031         * dialog-x.c:
7032         * dialog-x.c (maybe_run_dbox_text_callback):
7033         * dialog-x.c (dbox_descriptor_to_widget_value):
7034         * dialog-x.c (x_make_dialog_box_internal):
7035         * dialog-x.c (console_type_create_dialog_x):
7036         Mule-ize entire file.
7037         Redo to support question dialog syntax.
7038         [6].
7039
7040         * dialog.c:
7041         * dialog.c (Fmake_dialog_box_internal):
7042         * dialog.c (syms_of_dialog):
7043         Kill old popup-dialog-box, replace with new primitive.
7044         Just call device method or signal error.
7045
7046         * eldap.c (Fldap_open):
7047         * eldap.c (Fldap_search_basic):
7048         * eldap.c (Fldap_add):
7049         * eldap.c (Fldap_modify):
7050         [1].
7051         [7].
7052
7053         * emacs.c:
7054         * emacs.c (make_arg_list_1):
7055         * emacs.c (make_arg_list):
7056         Mule-ize call to dll_init().
7057         [6].
7058         [8].
7059
7060         * emacs.c (make_argc_argv):
7061         * emacs.c (free_argc_argv):
7062         * emacs.c (init_cmdargs):
7063         * emacs.c (main_1):
7064         * emacs.c (Fkill_emacs):
7065         * emacs.c (Fdump_emacs):
7066         Update comments about what can be used in syms_* etc.
7067         Call init_win32() when necessary.
7068         Fix up MS Win dialog box in kill-buffer to actually work right.
7069         [7].
7070
7071         * eval.c:
7072         * eval.c (For):
7073         * eval.c (Fand):
7074         * eval.c (Fprogn):
7075         * eval.c (Fprog1):
7076         * eval.c (Fprog2):
7077         * eval.c (FletX):
7078         * eval.c (Flet):
7079         * eval.c (condition_case_3):
7080         * eval.c (Feval):
7081         * eval.c (function_argcount):
7082         * eval.c (funcall_lambda):
7083         [1].
7084
7085         * eval.c (type_error): New.
7086         * eval.c (maybe_type_error): New.
7087         * eval.c (continuable_type_error): New.
7088         * eval.c (maybe_continuable_type_error): New.
7089         * eval.c (type_error_with_frob): New.
7090         * eval.c (maybe_type_error_with_frob): New.
7091         * eval.c (continuable_type_error_with_frob): New.
7092         * eval.c (maybe_continuable_type_error_with_frob): New.
7093         New functions for use with structured errors.
7094
7095         * event-Xt.c:
7096         * event-Xt.c (x_event_to_emacs_event):
7097         Buttons are now modifiers too.
7098
7099         * event-Xt.c (emacs_Xt_current_event_timestamp):
7100         Implement new event method.
7101         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
7102
7103         * event-msw.c:
7104         * event-msw.c (ntpipe_shove_writer): [5].
7105         * event-msw.c (mswindows_enqueue_mouse_button_event):
7106         * event-msw.c (mswindows_drain_windows_queue):
7107         * event-msw.c (mswindows_wnd_proc): [7].
7108         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
7109         * event-msw.c (mswindows_modifier_state):
7110         Throughout: support new button modifiers.
7111
7112         * event-msw.c (emacs_mswindows_current_event_timestamp):
7113         Implement new event method.
7114         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
7115
7116         * event-stream.c:
7117         * event-stream.c (event_stream_current_event_timestamp): New.
7118         * event-stream.c (maybe_kbd_translate): New functionality.
7119         * event-stream.c (vars_of_event_stream):
7120         Document new kbd-translate-table functionality.
7121
7122         * event-stream.c (Fcurrent_event_timestamp): New.
7123         New primitive for use in fabricated events.
7124         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
7125
7126         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
7127
7128         * events.c:
7129         * events.c (Fmake_event):
7130         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
7131         [1].
7132         [9].
7133
7134         * events.c (format_event_object): fix gcc warnings.
7135
7136         * events.c (Fevent_timestamp): Document new primitives.
7137
7138         * events.c (TIMESTAMP_HALFSPACE): New.
7139
7140         * events.c (Fevent_timestamp_lessp): New.  New primitive for
7141         comparing timestamps correctly (half-space algorithm).
7142
7143         * events.c (Fevent_modifier_bits): Doc fix.
7144
7145         * events.c (Fevent_modifiers): Major doc addition.
7146         * events.c (event_x_y_pixel_internal): Typo fix.
7147         * events.c (syms_of_events): Declare new primitives.
7148
7149         * events.h:
7150         Update long comment for button modifiers, timestamps.
7151
7152         * events.h (struct event_stream):
7153         New current_event_timestamp method.
7154
7155         * extents.c:
7156         * extents.c (extent_in_region_p):
7157         * extents.c (decode_extent):
7158         * extents.c (Fset_extent_parent):
7159         * extents.c (decode_map_extents_flags):
7160         Fix gcc warnings.
7161         [9].
7162
7163         * extents.c (struct extent_at_arg):
7164         * extents.c (decode_extent_at_flag):
7165         * extents.c (extent_at_mapper):
7166         * extents.c (extent_at_bytind):
7167         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
7168         * extents.c (Fextents_at): New primitive. [9].
7169         * extents.c (symbol_to_glyph_layout): [9].
7170         Support new primitive `extents-at'.
7171
7172
7173         * extents.c (get_text_property_bytind):
7174         extent_at_bytind has another arg.
7175         [9].
7176
7177         * extents.c (syms_of_extents): New primitive.
7178
7179         * file-coding.c (Fmake_coding_system): [1].
7180         * file-coding.c (subsidiary_coding_system): fix gcc warning
7181         * file-coding.c (syms_of_file_coding): [2].
7182
7183         * fileio.c (Fexpand_file_name):
7184         * fileio.c (Fsysnetunam):
7185         * fileio.c (Ffile_exists_p):
7186         * fileio.c (Ffile_executable_p):
7187         * fileio.c (Fverify_visited_file_modtime):
7188         Clean up GCPROing.
7189
7190         * fileio.c (syms_of_fileio): [2].
7191
7192         * filelock.c (lock_file_1):
7193         * filelock.c (current_lock_owner):
7194         * filelock.c (lock_if_free):
7195         * filelock.c (lock_file):
7196         * filelock.c (unlock_file):
7197         Clean up GCPROing.
7198
7199         * fns.c (concat): Fix gcc warning.
7200
7201         * fns.c (Fmember):
7202         * fns.c (Fold_member):
7203         * fns.c (Fmemq):
7204         * fns.c (Fold_memq):
7205         * fns.c (memq_no_quit):
7206         * fns.c (Fassoc):
7207         * fns.c (Fold_assoc):
7208         * fns.c (Fassq):
7209         * fns.c (Fold_assq):
7210         * fns.c (assq_no_quit):
7211         * fns.c (Frassoc):
7212         * fns.c (Fold_rassoc):
7213         * fns.c (Frassq):
7214         * fns.c (Fold_rassq):
7215         * fns.c (rassq_no_quit):
7216         * fns.c (Fdelete):
7217         * fns.c (Fold_delete):
7218         * fns.c (Fdelq):
7219         * fns.c (Fold_delq):
7220         * fns.c (delq_no_quit):
7221         * fns.c (Fremassoc):
7222         * fns.c (Fremassq):
7223         * fns.c (remassq_no_quit):
7224         * fns.c (Fremrassoc):
7225         * fns.c (Fremrassq):
7226         * fns.c (remrassq_no_quit):
7227         * fns.c (Freverse):
7228         * fns.c (mapcar1):
7229         [1].
7230
7231         * frame-msw.c (mswindows_init_frame_1):
7232         * frame-msw.c (mswindows_delete_frame):
7233         Register popups with dialog code so keyboard traversing works.
7234
7235         * frame-tty.c (tty_raise_frame_no_select): [1].
7236
7237         * frame-x.c:
7238         * frame-x.c (x_set_frame_text_value):
7239         * frame-x.c (x_set_frame_properties):
7240         * frame-x.c (x_create_widgets):
7241         [7].
7242
7243         * frame.c:
7244         * frame.c (Fmouse_pixel_position): Minor doc fixes.
7245
7246         * frame.h (wrap_frame): New.
7247         Macro like wrap_device.
7248
7249         * general.c:
7250         * general.c (SYMBOL):
7251         * general.c (syms_of_general):
7252         Major reorg.  This is now just a wrapper and symbols themselves
7253         are listed in general-slots.h.
7254
7255         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
7256         * glyphs-msw.c (mswindows_resource_instantiate): [5].
7257
7258         * glyphs-msw.c (mswindows_native_layout_instantiate):
7259         Add DS_CONTROL so keyboard traversal will work.
7260
7261         * glyphs-widget.c:
7262         * glyphs-widget.c (syms_of_glyphs_widget):
7263         Move some symbols to general-slots.h.
7264
7265         * glyphs-x.c:
7266         * glyphs-x.c (xbm_instantiate_1):
7267         * glyphs-x.c (x_xbm_instantiate):
7268         * glyphs-x.c (x_xface_instantiate):
7269         * glyphs-x.c (autodetect_instantiate):
7270         * glyphs-x.c (cursor_font_instantiate):
7271         * glyphs-x.c (x_update_widget):
7272         * glyphs-x.c (x_widget_instantiate):
7273         * glyphs.c (bitmap_to_lisp_data):
7274         * glyphs.c (pixmap_to_lisp_data):
7275         [7].
7276
7277         * glyphs.c (syms_of_glyphs):
7278         [2].
7279
7280         * gui-x.c:
7281         * gui-x.c (print_widget_value):
7282         * gui-x.c (menu_separator_style_and_to_external):
7283         * gui-x.c (add_accel_and_to_external):
7284         * gui-x.c (button_item_to_widget_value):
7285         * gui-x.c (gui_items_to_widget_values_1):
7286         * gui-x.c (gui_items_to_widget_values):
7287         * gui-x.c (syms_of_gui_x):
7288         * gui-x.c (vars_of_gui_x):
7289         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
7290         [9].
7291
7292         * gui-x.h:
7293         Muleize, prototype changes matching gui-x.c.
7294
7295         * gui.c:
7296         * gui.c (separator_string_p):
7297         * gui.c (gui_item_add_keyval_pair):
7298         * gui.c (make_gui_item_from_keywords_internal):
7299         * gui.c (signal_too_long_error):
7300         * gui.c (parse_gui_item_tree_item):
7301         * gui.c (syms_of_gui):
7302         * gui.c (vars_of_gui):
7303         * gui.h:
7304         menu-no-selection-hook moved here (used by MSWin).
7305         Move some symbols to general-slots.h.
7306         [6].
7307         [9].
7308
7309         * insdel.c (get_buffer_pos_char):
7310         * insdel.c (get_buffer_range_char):
7311         Add GC comments.
7312
7313         * keymap.c (keymap_lookup_directly):
7314         * keymap.c (keymap_store):
7315         * keymap.c (ensure_meta_prefix_char_keymapp):
7316         * keymap.c (describe_map):
7317         * keymap.h:
7318         Support new button modifiers.
7319
7320         * lisp-disunion.h (wrap_object):
7321         * lisp-disunion.h (XSETOBJ):
7322         Rename make_obj to wrap_object.
7323
7324         * lisp-union.h:
7325         * lisp-union.h (make_int):
7326         * lisp-union.h (make_char):
7327         Support wrap_object.
7328
7329         * lisp.h:
7330         * lisp.h (LIST_LOOP):
7331         * lisp.h (EXTERNAL_LIST_LOOP):
7332         * lisp.h (LIST_LOOP_2):
7333         * lisp.h (EXTERNAL_LIST_LOOP_1):
7334         * lisp.h (EXTERNAL_LIST_LOOP_2):
7335         * lisp.h (EXTERNAL_LIST_LOOP_3):
7336         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
7337         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
7338         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
7339         * lisp.h (EXTERNAL_ALIST_LOOP_5):
7340         * lisp.h (EXTERNAL_ALIST_LOOP_6):
7341         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
7342         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
7343         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
7344         * lisp.h (struct Lisp_Symbol):
7345         * lisp.h (maybe_continuable_error_with_frob):
7346         Fix up section comments.
7347         Add new types for char to indicate usage.
7348         Delete symbols auto-generated from general-slots.h.
7349         Add prototypes for structured error functions.
7350         Add long comments describing looping macros and change interface
7351         so that lvalues are automatically declared.
7352         Add NO_DECLARE macro in case callers want to declare lvalues
7353         themselves.
7354
7355         * lread.c (read_syntax_error):
7356         * lread.c (continuable_read_syntax_error):
7357         * lread.c (read_structure):
7358         * lread.c (sequence_reader):
7359         * lread.c (read_list_conser):
7360         * lread.c (read_compiled_function):
7361         Rename syntax_error and continuable_syntax_error to avoid clash
7362         with same-named structured error functions.
7363
7364         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
7365         * menubar-msw.c (populate_menu_add_item):
7366         * menubar-msw.c (populate_or_checksum_helper):
7367         [5].
7368         [9].
7369
7370         * menubar-x.c:
7371         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
7372         Mule-ize whole file.
7373
7374         * menubar.c (Fnormalize_menu_item_name): Add optimization.
7375
7376         * mule-charset.c (Fmake_charset):
7377         * mule-wnnfns.c (Fwnn_set_param):
7378         [1].
7379
7380         * ntproc.c (create_child):
7381         * ntproc.c (Fwin32_set_current_locale):
7382         Add comments portending doom.
7383
7384         * objects-msw.c:
7385         * objects-msw.c (old_font_enum_callback_2):
7386         * objects-msw.c (font_enum_callback_1):
7387         * objects-msw.c (mswindows_enumerate_fonts):
7388         [5].
7389
7390         * objects-x.c:
7391         * objects-x.c (allocate_nearest_color):
7392         * objects-x.c (x_parse_nearest_color):
7393         * objects-x.c (x_initialize_color_instance):
7394         * objects-x.c (x_print_color_instance):
7395         * objects-x.c (x_finalize_color_instance):
7396         * objects-x.c (x_valid_color_name_p):
7397         * objects-x.c (x_initialize_font_instance):
7398         * objects-x.c (x_print_font_instance):
7399         * objects-x.c (valid_x_font_name_p):
7400         * objects-x.c (truename_via_FONT_prop):
7401         * objects-x.c (truename_via_random_props):
7402         * objects-x.c (truename_via_XListFonts):
7403         * objects-x.c (x_font_truename):
7404         * objects-x.c (x_font_instance_truename):
7405         * objects-x.c (x_font_instance_properties):
7406         * objects-x.c (x_list_fonts):
7407         * objects-x.c (x_find_charset_font):
7408         Mule-ize entire file.
7409         [7].
7410
7411         * objects-x.h:
7412         Mule-verify.
7413
7414         * print.c:
7415         * print.c (std_handle_out_external):
7416         * print.c (debug_print_no_newline):
7417         * print.c (syms_of_print):
7418         Output to all debugger kinds in debug-print.
7419         Fix console-output code under MSWin to actually work.
7420
7421         * process-nt.c (send_signal):
7422         * process-nt.c (nt_create_process):
7423         Use newer Unicode macros.
7424
7425         * process-unix.c (unix_create_process):
7426         * process-unix.c (unix_canonicalize_host_name):
7427         * process-unix.c (unix_open_network_stream):
7428         [7].
7429
7430         * scrollbar-x.c:
7431         Mule-verify.
7432
7433         * search.c (syms_of_search):
7434         [2].
7435
7436         * select-msw.c (mswindows_destroy_selection):
7437         Use LIST_LOOP_2.
7438
7439         * select-x.c (symbol_to_x_atom):
7440         [7].
7441
7442         * select.c (syms_of_select):
7443         [2].
7444
7445         * sound.c (Fplay_sound_file):
7446         [7].
7447
7448         * specifier.c:
7449         * specifier.c (decode_specifier_type):
7450         * specifier.c (Fvalid_specifier_locale_type_p):
7451         * specifier.c (check_valid_locale_or_locale_type):
7452         * specifier.c (decode_locale):
7453         * specifier.c (decode_locale_type):
7454         * specifier.c (decode_locale_list):
7455         * specifier.c (check_valid_domain):
7456         * specifier.c (decode_specifier_tag_set):
7457         * specifier.c (Fcanonicalize_tag_set):
7458         * specifier.c (Fdefine_specifier_tag):
7459         * specifier.c (Fspecifier_tag_predicate):
7460         * specifier.c (check_valid_inst_list):
7461         * specifier.c (check_valid_spec_list):
7462         * specifier.c (decode_how_to_add_specification):
7463         * specifier.c (check_modifiable_specifier):
7464         * specifier.c (specifier_add_spec):
7465         * specifier.c (boolean_validate):
7466         * specifier.c (display_table_validate):
7467         [9].
7468
7469         * specifier.c (syms_of_specifier):
7470         Move some symbols to general-slots.h.
7471         [2].
7472
7473         * symbols.c:
7474         * symbols.c (Fmapatoms):
7475         * symbols.c (Fapropos_internal):
7476         Add GCPROs.
7477
7478         * symbols.c (set_default_buffer_slot_variable):
7479         * symbols.c (set_default_console_slot_variable):
7480         [1].
7481
7482         * symbols.c (defsymbol_massage_name_1):
7483         * symbols.c (defkeyword_massage_name):
7484         * symbols.c (deferror_1):
7485         * symbols.c (deferror):
7486         * symbols.c (deferror_massage_name_and_message):
7487         * symeval.h:
7488         * symeval.h (DEFSYMBOL):
7489         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
7490
7491         * symbols.c (syms_of_symbols):
7492         [2].
7493
7494         * symsinit.h:
7495         * symsinit.h (init_win32): New.
7496         Also new is syms_of_dialog_mswindows.
7497
7498         * syswindows.h:
7499         Add new Unicode macros, missing Cygwin wide-char functions,
7500         convenience conversion macros for Qmswindows_tstr, macros for
7501         encapsulating required MSWin <-> Cygwin filename conversions,
7502         prototype for dynamically-extracted (not in NT 3.51) functions.
7503
7504         * toolbar-x.c:
7505         Mule-verify.
7506
7507         * tooltalk.c (Fadd_tooltalk_message_arg):
7508         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
7509         * tooltalk.c (Fadd_tooltalk_pattern_arg):
7510         [7].
7511
7512         * tooltalk.c (syms_of_tooltalk):
7513         [2].
7514
7515         * unexnt.c:
7516         * unexnt.c (unexec):
7517         Fix up headers, declaration of unexec() to be more standard.
7518
7519 2000-07-20  Martin Buchholz  <martin@xemacs.org>
7520
7521         * offix.h: Revert change to guard macros - they're used in offix.c!
7522
7523 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7524
7525         * lisp.h: Defsubred Fdelete.
7526
7527         * console-msw.h:  (msprinter_default_printer): Added.
7528
7529         * console-msw.c (msprinter_canonicalize_console_connection):
7530         (msprinter_canonicalize_device_connection): Added.
7531
7532         * device-msw.c (msprinter_default_printer):
7533         (Fmswingows_get_default_printer):
7534         (signal_enum_priner_error):
7535         (Fmswingows_printer_list): Added.
7536
7537 2000-07-19  Martin Buchholz <martin@xemacs.org>
7538
7539         * XEmacs 21.2.35 is released.
7540
7541 2000-07-19  Martin Buchholz  <martin@xemacs.org>
7542
7543         * select-x.c (x_handle_selection_request):
7544         Text selected in xemacs and pasted into xterm failed to appear.
7545         Spelling fixes and cosmetic changes.
7546
7547 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7548
7549         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
7550         XEmacs frame (fix for doubling chars in dialog boxes).
7551
7552 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
7553
7554         * select.c (select_convert_in, select_convert_out):
7555         Don't call intern() every time.
7556
7557         * select.c (Qselect_convert_in, Qselect_convert_out): New.
7558         * select.c (vars_of_select): Initialise them.
7559
7560 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
7561
7562         * select.c (selection-coercible-types): New.
7563
7564         * select.c (own-selection-internal):
7565         * select.c (get-selection-internal):
7566         MULE bug fix - these should default to COMPOUND_TEXT and not
7567         STRING for MULE. I think.
7568
7569         * select.c (select_convert_out): Use selection-coercible-types
7570         to find types that we can attempt to perform coercions on.
7571
7572 2000-07-18  Martin Buchholz  <martin@xemacs.org>
7573
7574         * mule-wnnfns.c:
7575         * mule-canna.c:
7576         Add coding: cookie to identify encoding.
7577
7578         * mule-canna.c (CANNA_mode_keys): make static.
7579         Use proper prototypes, even for functions of no arguments.
7580         Remove external prototype for Fding().
7581
7582         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
7583
7584         * select.c (syms_of_select): Add missing DEFSUBR.
7585
7586 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
7587
7588         * select.c (get_selection_internal, own_selection_internal):
7589         Make the type default to STRING, rather than placing a nil type
7590         into Vselection_alist.
7591
7592 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
7593
7594         * gpmevent.c (tty_selection_exists_p):
7595         * gpmevent.c (tty_own_selection):
7596         Updated parameter lists.
7597
7598 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
7599
7600         * select.h (selection-alist): Removed declaration.
7601
7602         * select.h (get_local_selection):
7603         * select.c (get_local_selection):
7604         Made static.
7605
7606         * select.h (convert_selection): Removed declaration.
7607         * select.c (convert_selection): Removed.
7608         This function belongs in Lisp.
7609
7610         * select.h (select_convert_in): Declare.
7611         * select.h (select_convert_out): Declare.
7612         * select.c (select_convert_in): New.
7613         * select.c (select_convert_out): New.
7614         New conversion functions for other files to call.
7615
7616         * select.h (select_notify_buffer_kill): Declare.
7617         * select.c (select_notify_buffer_kill): New.
7618         New functions that get called from kill-buffer.
7619
7620         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
7621         X-specific lisp code.
7622
7623         * select.h: Declare some of the lisp-visible functions for
7624         external use.
7625
7626         * select.c (clean_local_selection_data): Removed. This was
7627         a disgusting function, and previously should have been in
7628         select-x.c in any case. The functionality is now provided
7629         in select-convert-from-integer (select.el).
7630
7631         * select.c (available-selection-types): Fixed stupidity where
7632         INTEGER and ATOM got added twice. Also add STRING when we see an
7633         extent.
7634
7635         * select.c (get-selection-internal): Removed symbol stripping. No
7636         longer causes conversion when data comes from the internal cache.
7637
7638         * select.c (syms_of_select): Added new functions.
7639
7640         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
7641         error checking - previously this called abort!
7642
7643         * select-x.c (x_own_selection): Changed comment.
7644
7645         * select-x.c (x_handle_selection_request): Use select_convert_out.
7646         Don't mess with selection-alist; it's an internal variable of select.c.
7647
7648         * select-x.c (x_get_foreign_selection): Use select_convert_in.
7649
7650         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
7651         rather than messing with selection-alist.
7652
7653         * select-msw.c (mswindows_get_foreign_selection):
7654         Use TO_INTERNAL_FORMAT rather than hacking.
7655
7656 2000-07-14  Martin Buchholz  <martin@xemacs.org>
7657
7658         * process-unix.c (unix_open_multicast_group):
7659         (unix_open_multicast_group): Remove useless casts.
7660
7661 2000-07-13  Martin Buchholz  <martin@xemacs.org>
7662
7663         * sound.c (Fplay_sound): Fix `unused variable' warning.
7664
7665         * emacs.c (main): Use correct type for _environ on SCO5.
7666
7667 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
7668
7669         * console.h (own_selection_method):
7670         * console.h (selection_exists_p_method):
7671         * console.h (available_selection_types_method): New.
7672         * console.h (register_selection_data_type_method): New.
7673         * console.h (selection_data_type_name): New.
7674
7675         * console-msw.h (mswindows_destroy_selection): Declare it.  New
7676         function & alist to track GlobalAlloc()'d handles that need
7677         releasing when the clipboard data gets replaced or emptied.
7678
7679         * event-msw.c (mswindows_wnd_proc): Call it.
7680
7681         * lisp.h, general.c (Qappend): New symbol representing a
7682         `how-to-add' mode.
7683
7684         * select.c (own-selection-internal):
7685         * select.c (selection-exists-p):
7686         * select.c (available-selection-types): New.
7687         * select.c (register-selection-data-type): New.
7688         * select.c (selection-data-type-name): New.  New functions to deal
7689         with device-specific selection data formats.
7690         * select.c (selection-converter-out-alist): Renamed.
7691         * select.c (selection-converter-in-alist): New.
7692         * select.c (selection-appender-alist): New.  Added new alists.
7693         * select.c (syms_of_select, vars_of_select): Added new symbols &
7694         variables.
7695         * select.c (get_local_selection): Split.
7696         * select.c: Removed spurious type checking - selections may now be
7697         of any type, not just strings.
7698         * select.c (own-selection-internal):
7699
7700         * select.h, select.c (convert_selection): New. Created
7701         convert_selection() function based on get_local_selection().
7702         * select.h, select.c (QCF_*): New symbols representing mswindows
7703         clipboard formats.
7704         * select.h, select.c (Qreplace_all, Qreplace_existing): New
7705         symbols representing `how-to-add' modes.
7706
7707         * select-msw.c (x_sym_p): New.
7708         * select-msw.c (symbol_to_ms_cf): New.
7709         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
7710         symbols & clipboard formats. Can also handle string names.
7711         * select-msw.c (mswindows_own_selection):
7712         * select-msw.c (mswindows_selection_exists_p):
7713         Added `data-type' parameter. Use it.
7714         * select-msw.c (mswindows_available_selection_types): New.
7715         * select-msw.c (mswindows_register_selection_data_type): New.
7716         * select-msw.c (mswindows_selection_data_type_name): New.
7717         * select-msw.c (mswindows_own_selection):
7718         * select-msw.c (mswindows_get_foreign_selection):
7719         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
7720         * select-msw.c (console_create_select_mswindows): Added new methods.
7721         * select-msw.c (mswindows_destroy_selection): New.
7722         * select-msw.c (Vhandle_alist): New list.
7723         * select-msw.c (mswindows_own_selection):
7724
7725         * select-x.c (x_own_selection):
7726         * select-x.c (x_selection_exists_p):
7727         * select-x.c: Added some comments about maybe using new
7728         functionality.
7729         * select-x.c (x_own_selection):
7730
7731         * specifier.c: Remove definition of Qappend (now in general.c)
7732         * specifier.c (syms_of_specifier): Remove Qappend.
7733
7734 2000-07-12  Martin Buchholz  <martin@xemacs.org>
7735
7736         * config.h.in: Add socklen_t.
7737
7738         * s/decosf4-0.h: No special compiler flags needed or desired.
7739         In particular, undefine _BSD for DEC OSF 4.0.
7740
7741 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7742
7743         * redisplay-msw.c (msprinter_frame_output_end): Added.
7744         (console_type_create_redisplay_mswindows): Referred the above.
7745
7746         * frame.c (setup_frame_without_minibuffer): Do not create a
7747         default minibuffer frame on a printer device.
7748
7749         * frame-msw.c (apply_dc_geometry): Added.
7750         (msprinter_start_page):
7751         (msprinter_init_frame_3):
7752         (msprinter_eject_page): Use it.
7753
7754         * console-msw.h (struct msprinter_frame): Added pix_left and top,
7755         and removed residual duplex and orientation properties.
7756
7757 2000-07-11  Martin Buchholz  <martin@xemacs.org>
7758
7759         * eval.c (function_argcount): Work around a DEC CC compiler bug.
7760
7761         * unexalpha.c: Remove system prototypes from C sources!
7762
7763 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
7764
7765         * eval.c: Remove references to M-x edit-options in DEFUNs for
7766         `defvar' and `defconst'.
7767
7768 2000-07-09  Martin Buchholz  <martin@xemacs.org>
7769
7770         * config.h.in: Remove SMART_INCLUDE hackery.
7771
7772         PostgreSQL hacking:
7773         * config.h.in: Don't use SMART_INCLUDE.
7774
7775         * postgresql.h: Include libpq-fe.h here.  Fix typo.
7776         * inline.c: Simply #include "postgresql.h"
7777         * postgresql.c:
7778         - Don't use SMART_INCLUDE
7779         - Use simply "const".
7780         - Use standard doc string conventions.
7781         - Use correct type for result of PQstatus.
7782
7783 2000-07-09  Martin Buchholz  <martin@xemacs.org>
7784
7785         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
7786
7787         C++ compilation changes.
7788         * config.h.in (EXTERN_C): Define.
7789         * config.h.in (not): This is also a C++ keyword.
7790         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
7791         * cm.c: Use EXTERN_C.
7792         * redisplay-tty.c: Use EXTERN_C.
7793         * sysdep.c: Use EXTERN_C.  Remove Gould support.
7794
7795 2000-07-09  Martin Buchholz  <martin@xemacs.org>
7796
7797         * general.c: Remove duplicate definition for Qfunction.
7798
7799 2000-07-08  Ben Wing  <ben@xemacs.org>
7800
7801         * device-msw.c (msprinter_init_device):
7802         * device-msw.c (sync_printer_with_devmode):
7803         * device-msw.c (handle_devmode_changes):
7804         * device-msw.c (print_dialog_worker):
7805         * device-msw.c (Fmsprinter_apply_settings):
7806         * device-msw.c (hash_devmode):
7807         * device-msw.c (Fmsprinter_settings_despecialize):
7808         use Qmswindows_tstr, not Qctext.
7809
7810         * vm-limit.c (check_memory_limits):
7811         avoid infinite loop printing warning messages.
7812
7813 2000-07-05  Craig Lanning  <lanning@scra.org>
7814
7815         * Makefile.in.in: Add support for including the Windows resources
7816         when building with the cygwin and mingw targets.
7817
7818         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
7819         not set or not correct.
7820         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
7821         (init_initial_directory): Don't try to use $PWD on the
7822         WIN32_NATIVE target.
7823
7824         * s\cygwin32.h:
7825         [[Add -mwindows to eliminate console window.]] not required --ben
7826         (HAVE_NATIVE_SOUND): removed; now handled by configure.
7827         (MAIL_USE_POP): removed; now handled by configure.
7828
7829         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
7830         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
7831         (HAVE_NATIVE_SOUND): removed; now handled by configure.
7832         (MAIL_USE_POP): removed; now handled by configure.
7833         (ENCAPSULATE_STAT): from Dan Holmsand, added.
7834         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
7835         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
7836         constant string.
7837         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
7838         up from <winsock.h> via systime.h.
7839         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
7840         (getpagesize): from Dan Holmsand, added.
7841         Added #endif which was left dangling by Ben's mega patch; added
7842         comment to help prevent this in the future.
7843
7844         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
7845
7846 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7847
7848         * console-msw.h (struct mswindows_device): Removed unnecessary
7849         cached device geometry values.
7850         Added update_tick and an accessor macro.
7851         (Lisp_Devmode): Added lrecord declaration.
7852         (struct msprinter_device): Contain devmode as a Lisp object.
7853         Added mswindows_get_selected_frame_hwnd();
7854
7855         * console.h (struct console_methods): Indentation nitpicking.
7856
7857         * device-msw.c (mswindows_init_device): Do not initialize geometry
7858         cache. Initialize update tick.
7859         (mswindows_device_system_metrics): Ask the device for its geometry.
7860         (global_free_2_maybe):
7861         (devmode_to_hglobal):
7862         (handle_printer_changes):
7863         (ensure_not_printing):
7864         (print_dialog_worker):
7865         (Fmsprinter_print_setup_dialog):
7866         (Fmsprinter_print_dialog):
7867         (plist_get_margin):
7868         (plist_set_margin):
7869         (Fmsprinter_page_setup_dialog): Added functions.
7870         (sync_printer_with_devmode):
7871         (handle_devmode_changes):
7872         (Fmsprinter_get_settings):
7873         (Fmsprinter_select_settings):
7874         (Fmsprinter_apply_settings):
7875         (allocate_devmode):
7876         (Fmsprinter_settings_copy):
7877         (Fmsprinter_settings_despecialize):
7878         (print_devmode):
7879         (finalize_devmode):
7880         (equal_devmode):
7881         (hash_devmode): Added functions
7882         (syms_of_device_mswindows): Init devmode lrecord class.
7883
7884         * device.h: Added an exfun for find-device.
7885
7886         * event-msw.c (mswindows_wnd_proc): Do not update the cached
7887         geometry; although, recreate the device compatible DC.
7888
7889         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
7890         (msprinter_init_frame_3):
7891         (msprinter_frame_property):
7892         (msprinter_internal_frame_property_p):
7893         (msprinter_frame_properties):
7894         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
7895         print job properties (will move to device settings).
7896
7897         * lisp.h: Added symbols.
7898
7899         * general.c (syms_of_general): Declared them.
7900
7901         * hash.c (string_hash): Added.
7902
7903         * lrecord.h (lrecord_type): Added devmode lrecord type.
7904
7905 2000-07-02  Mike Sperber <mike@xemacs.org>
7906
7907         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
7908         FreeBSD 4.0.
7909
7910 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
7911
7912         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
7913         integer.
7914
7915 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
7916
7917         * data.c (Fstring_to_number): Don't recognize floating point if
7918         base is not 10.
7919
7920 2000-06-22  Martin Buchholz  <martin@xemacs.org>
7921
7922         * glyphs-widget.c (tab_control_query_geometry):
7923         (widget_query_geometry):
7924         (button_query_geometry):
7925         * glyphs.c (text_query_geometry):
7926         Enforce type correctness.
7927
7928 2000-06-18  Martin Buchholz  <martin@xemacs.org>
7929
7930         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
7931         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
7932
7933 2000-06-17  Martin Buchholz  <martin@xemacs.org>
7934
7935         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
7936         conflicts with gcc's fixincluded version of FOO.h.
7937
7938         * glyphs.h (image_instance_geometry): Remove trailing `,'
7939
7940 2000-06-08  Mike Alexander  <mta@arbortext.com>
7941
7942         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
7943         (shove_thread): Don't write the same output twice
7944         (make_ntpipe_output_stream): Increase priority of shove thread
7945         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
7946         chance to run
7947         (ntpipe_shove_closer): Don't delete the pipe until we're done with
7948         it.
7949
7950 2000-06-12  Ben Wing  <ben@xemacs.org>
7951
7952         * s\mingw32.h (sigset):
7953         * s\windowsnt.h (sigset):
7954         rename msw_ to mswindows_ for consistency with general convention.
7955
7956 2000-06-12  Ben Wing  <ben@xemacs.org>
7957
7958         * console-msw.c:
7959         * console-msw.c (mswindows_get_console_hwnd):
7960         * console-msw.c (mswindows_ensure_console_allocated):
7961         * console-msw.c (mswindows_hide_console):
7962         * console-msw.c (mswindows_show_console):
7963         * console-msw.c (mswindows_ensure_console_buffered):
7964         * console-msw.c (mswindows_output_console_string):
7965         * console-msw.c (mswindows_windows9x_p):
7966         * console-msw.h:
7967         * device-msw.c (mswindows_get_workspace_coords):
7968         * device-msw.c (mswindows_device_system_metrics):
7969         * dialog-msw.c (mswindows_popup_dialog_box):
7970         * event-msw.c (mswindows_wnd_proc):
7971         * frame-msw.c (mswindows_size_frame_internal):
7972         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
7973         * menubar-msw.c (displayable_menu_item):
7974         * menubar-msw.c (mswindows_char_is_accelerator):
7975         * nt.c:
7976         * nt.c (mswindows_sigset):
7977         * nt.c (mswindows_sigrelse):
7978         * nt.c (mswindows_sigpause):
7979         * nt.c (mswindows_raise):
7980         * nt.c (timer_proc):
7981         * ntproc.c:
7982         * ntproc.c (find_child_console):
7983         * ntproc.c (sys_kill):
7984         * print.c:
7985         * print.c (std_handle_out_external):
7986         * process-nt.c (find_child_console):
7987         * process-nt.c (send_signal_the_95_way):
7988         * process-nt.c (ensure_console_window_exists):
7989         * process-nt.c (nt_create_process):
7990         * syssignal.h:
7991         rename msw_ to mswindows_ for consistency with general convention.
7992
7993         * emacs.c:
7994         * dumper.c:
7995         include nt.h, not syswindows.h.
7996
7997         * nt.c (mswindows_fstat):
7998         * nt.c (mswindows_stat):
7999         prefix mswindows_ instead of attempting to directly override the
8000         library functions.  fix declarations.
8001
8002         * nt.h:
8003         include syswindows.h.  move some sysdep.h stuff here.
8004
8005         * ntheap.h:
8006         include syswindows.h, not <windows.h>.
8007
8008         * ntplay.c:
8009         clean up headers.
8010
8011         * sysdep.c:
8012         clean up headers.
8013
8014         * sysdep.c (sys_fstat):
8015         * sysdep.c (sys_stat):
8016         call mswindows versions when appropriate.
8017
8018         * sysdep.h:
8019         move mswin decls to nt.h.
8020
8021         * syswindows.h:
8022         add long comment describing appropriate use of the various windows
8023         headers.
8024
8025 2000-06-11  Ben Wing  <ben@xemacs.org>
8026
8027         * device-x.c: Correct doc string for sixth arg of x-get-resource.
8028
8029 2000-06-10  Ben Wing  <ben@xemacs.org>
8030
8031         * Makefile.in.in (release):
8032         Correction to make sure xemacs.exe always dumped when correct.
8033
8034         * alloca.c:
8035         * balloon_help.c:
8036         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
8037
8038         * buffer.c (set_buffer_internal):
8039         [[[[2]]]]: Remove HAVE_FEP code.
8040
8041         * buffer.c (init_initial_directory):
8042         [3].
8043
8044         * bytecode.c:
8045         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
8046         individual files.
8047
8048         * callproc.c:
8049         * callproc.c (call_process_cleanup):
8050         * callproc.c (Fold_call_process_internal):
8051         * callproc.c (child_setup):
8052         * callproc.c (getenv_internal):
8053         * callproc.c (init_callproc):
8054         * callproc.c (vars_of_callproc):
8055         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
8056         __CYGWIN32__ -> CYGWIN.
8057         DOS_NT -> WIN32_NATIVE.
8058         Remove MSDOS support/references, converting to WIN32_NATIVE
8059           where correct.
8060         __MINGW32__ -> MINGW.
8061         Fix windows.h includes.
8062         Remove bogus HAVE_NTGUI.
8063
8064         * config.h.in:
8065         [2].
8066
8067         * console-msw.c:
8068         mswindows_message_outputted added for use in allowing startup
8069         errors on the console to be seen.
8070
8071         * console-msw.c (msw_ensure_console_allocated):
8072         * console-msw.c (msw_output_console_string):
8073         * console-msw.c (DHEADER):
8074         * console-msw.c (DOPAQUE_DATA):
8075         * console-msw.c (DEVENT):
8076         * console-msw.c (DCONS):
8077         * console-msw.c (DCONSCDR):
8078         * console-msw.c (DSTRING):
8079         * console-msw.c (DVECTOR):
8080         * console-msw.c (DSYMBOL):
8081         * console-msw.c (DSYMNAME):
8082         Fix warnings.
8083
8084         * console-stream.c (stream_init_console):
8085         Fix text/binary problems.
8086
8087         * device-msw.c:
8088         * device-msw.c (mswindows_finish_init_device):
8089         * device-msw.c (mswindows_delete_device):
8090         [1].
8091
8092         * device.c (handle_asynch_device_change):
8093         [3].
8094
8095         * dgif_lib.c:
8096         * dgif_lib.c (DGifOpenFileName):
8097         * dgif_lib.c (DGifOpenFileHandle):
8098         * dgif_lib.c (DGifGetLine):
8099         * dgif_lib.c (DGifGetPixel):
8100         Added config.h/lisp.h, fix up includes.
8101         [1].
8102
8103         * dired-msw.c:
8104         [4].
8105
8106         * dired.c:
8107         * dired.c (file_name_completion):
8108         * dired.c (Ffile_attributes):
8109         * dired.c (syms_of_dired):
8110         [1].
8111
8112         * dumper.c:
8113         * dumper.c (pdump_file_unmap):
8114         * dumper.c (pdump_load):
8115         [1].
8116
8117         * editfns.c:
8118         * editfns.c (Ftemp_directory):
8119         * editfns.c (user_login_name):
8120         * editfns.c (Fuser_real_login_name):
8121         * editfns.c (get_home_directory):
8122         [1].
8123
8124         * elhash.c (finish_marking_weak_hash_tables):
8125         [[[[5]]]]: Fix GCC warnings.
8126
8127         * emacs.c:
8128         * emacs.c (mswindows_handle_hardware_exceptions):
8129         * emacs.c (make_arg_list_1):
8130         * emacs.c (main_1):
8131         * emacs.c (Fkill_emacs):
8132         * emacs.c (Fdump_emacs):
8133         [1].
8134         Fix problems with nested crashes, add long comment.
8135
8136         * event-Xt.c (init_event_Xt_late):
8137         [1].
8138
8139         * event-msw.c:
8140         * event-msw.c (mswindows_dde_callback):
8141         * event-msw.c (mswindows_handle_sticky_modifiers):
8142         * event-msw.c (mswindows_wnd_proc):
8143         [1].
8144         [5].
8145
8146         * events.c (character_to_event):
8147         [1].
8148
8149         * fileio.c:
8150         * fileio.c (Ffile_name_directory):
8151         * fileio.c (Ffile_name_nondirectory):
8152         * fileio.c (directory_file_name):
8153         * fileio.c (Fexpand_file_name):
8154         * fileio.c (Fsubstitute_in_file_name):
8155         * fileio.c (Ffile_name_absolute_p):
8156         * fileio.c (check_executable):
8157         * fileio.c (Ffile_readable_p):
8158         * fileio.c (Ffile_accessible_directory_p):
8159         * fileio.c (Ffile_modes):
8160         * fileio.c (Funix_sync):
8161         * fileio.c (vars_of_fileio):
8162         [1]. [4].
8163
8164         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
8165
8166         Expand getdefdir defn.
8167         Fix bogus rename() comment.
8168
8169         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
8170         to use standard XEmacs include files, e.g. sysfile.h, rather
8171         than system-specific includes.
8172
8173         * fns.c:
8174         * fns.c (Fsubseq):
8175         [5]. [6].
8176
8177         * frame.c (vars_of_frame):
8178         [1].
8179
8180         * getloadavg.c:
8181         * getloadavg.c (getloadavg):
8182         [1]. [6].
8183         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
8184         (We don't use it elsewhere in the code; just add a comment.)
8185
8186         * gif_io.c:
8187         [6].
8188         Add config.h.
8189
8190         * glyphs-msw.c:
8191         * glyphs-msw.c (mswindows_resource_instantiate):
8192         [1].
8193
8194         * glyphs-x.c (x_native_layout_instantiate):
8195         [5].
8196
8197         * gui-msw.c (Fmswindows_shell_execute):
8198         [1].
8199
8200         * insdel.c:
8201         [4].
8202
8203         * lisp.h:
8204         [4]. [5].
8205
8206         * lread.c (locate_file_in_directory_mapper):
8207         [1].
8208
8209         * lstream.c:
8210         [4].
8211
8212         * mem-limits.h:
8213         * mem-limits.h (get_lim_data):
8214         [1].
8215
8216         * menubar-msw.c:
8217         [4].
8218
8219         * ndir.h:
8220         [1].
8221
8222         * nt.c:
8223         * nt.c (getwd):
8224         * nt.c (closedir):
8225         * nt.c (rva_to_section):
8226         * nt.c (mswindows_executable_type):
8227         [1]. [6].
8228         Fix closedir() defn.
8229
8230         * nt.h:
8231         [[[[8]]]]: *_OK defs moved to sysfile.h.
8232
8233         * ntproc.c:
8234         [6]. [7].
8235
8236         * objects-x.c:
8237         [4].
8238
8239         * print.c:
8240         * print.c (std_handle_out_external):
8241         [1]. [4].
8242
8243         * process-nt.c:
8244         * process-nt.c (nt_create_process):
8245         [6].
8246         try to fix process quoting somewhat.
8247
8248         * process-unix.c (unix_create_process):
8249         [1].
8250
8251         * process.c:
8252         * process.c (vars_of_process):
8253         Add Vnull_device.
8254
8255         * process.h:
8256         [1].
8257
8258         * realpath.c:
8259         * realpath.c (xrealpath):
8260         [1].
8261
8262         * redisplay-tty.c (init_tty_for_redisplay):
8263         [3].
8264
8265         * redisplay.c:
8266         [4]. [6].
8267
8268         * scrollbar-msw.c:
8269         [4].
8270
8271         * sheap.c:
8272         * sheap.c (more_static_core):
8273         * sheap.c (report_sheap_usage):
8274         [5]. [6].
8275
8276         * signal.c:
8277         * signal.c (alarm_signal):
8278         [1]. [6].
8279
8280         * sound.c:
8281         [6].
8282
8283         * strftime.c:
8284         * strftime.c (zone_name):
8285         [1]. [5].
8286
8287         * symsinit.h (init_sunpro):
8288         [1].
8289
8290         * syscommctrl.h:
8291         commctrl.h not in Cygwin b20.1.
8292
8293         * sysdep.c:
8294         * sysdep.c (endif):
8295         * sysdep.c (sys_subshell):
8296         * sysdep.c (init_baud_rate):
8297         * sysdep.c (emacs_get_tty):
8298         * sysdep.c (emacs_set_tty):
8299         * sysdep.c (tty_init_sys_modes_on_device):
8300         * sysdep.c (init_system_name):
8301         * sysdep.c (sys_open):
8302         * sysdep.c (interruptible_open):
8303         * sysdep.c (sys_fopen):
8304         * sysdep.c (sys_mkdir):
8305         * sysdep.c (sys_rename):
8306         * sysdep.c (get_process_times_1):
8307         [1]. [6].
8308
8309         * sysdep.h:
8310         [1].
8311
8312         * sysdir.h:
8313         * sysdir.h (DIRENTRY_NONEMPTY):
8314         [1]. [6].
8315
8316         * sysdll.c (dll_init):
8317         * sysdll.h:
8318         [1].
8319
8320         * sysfile.h:
8321         [1]. [6]. [8].
8322         added text/binary defs.
8323
8324         * sysfloat.h:
8325         [1].
8326
8327         * sysproc.h:
8328         * sysproc.h (EDESTADDRREQ):
8329         * sysproc.h (poll_fds_for_input):
8330         [1]. [6].
8331
8332         * syspwd.h:
8333         [6].
8334
8335         * syssignal.h:
8336         [1].
8337
8338         * systime.h:
8339         [1]. [6].
8340
8341         * systty.h:
8342         [1].
8343
8344         * syswindows.h:
8345         [1].
8346         Always define WIN32_LEAN_AND_MEAN.
8347
8348         * unexcw.c (unexec):
8349         [5].
8350
8351         * unexec.c:
8352         * unexec.c (copy_text_and_data):
8353         * unexec.c (adjust_lnnoptrs):
8354         [1].
8355
8356         * unexnt.c:
8357         * unexnt.c (_start):
8358         [1].
8359
8360 2000-06-07  Ben Wing  <ben@xemacs.org>
8361
8362         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
8363         was used only as a model.  We've long since extracted any useful
8364         logic or code out of this. (I just did an exhaustive search.)
8365
8366         * s\msdos.h: Removed.
8367
8368         * s\windows95.h: Removed.
8369
8370 2000-06-10  Ben Wing  <ben@xemacs.org>
8371
8372         * s\cygwin32.h:
8373         [1]. [5].
8374         Don't use extern with fun defs.
8375
8376         * s\mingw32.h:
8377         [1]. [7].
8378         Remove nt\inc include.
8379         Remove getdisk, getdefdir. (The former is unused, the latter
8380         expanded in fileio.h.)
8381
8382         * s\windowsnt.h:
8383         * s\windowsnt.h (WIN32_NATIVE):
8384         * s\windowsnt.h (HAVE_STRCASECMP):
8385         [1]. [7].
8386         Add long comment about preprocessor changes.
8387         Remove getdisk, getdefdir. (The former is unused, the latter
8388         expanded in fileio.h.)
8389
8390 2000-06-10  Ben Wing  <ben@xemacs.org>
8391
8392         * m\arm.h:
8393         * m\delta.h:
8394         * m\intel386.h:
8395         * m\sequent.h:
8396         * m\template.h:
8397         * m\windowsnt.h:
8398         [1].
8399         Remove bogus/unused NO_SOCK_SIGIO.
8400
8401 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
8402
8403         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
8404         not an Emchar.
8405
8406 2000-06-04  Mike Sperber <mike@xemacs.org>
8407
8408         * casetab.c (set_case_table): For `set-standard-case-table',
8409         actually deposit the new case tables where the rest of XEmacs can
8410         see them.
8411
8412 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
8413
8414         * data.c (Faset): Don't cast XCHAR() to unsigned char.
8415
8416 2000-06-05  Ben Wing  <ben@xemacs.org>
8417
8418         * callproc.c (child_setup): Don't do close_load_descs() under
8419         MS Windows.  Put in a comment explaining why.
8420
8421 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
8422
8423         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
8424         Toolkit shell" which breaks `kill-compilation' on Windows NT
8425         native, retaining STDERR handling improvements.
8426
8427 2000-06-01  Andreas Jaeger  <aj@suse.de>
8428
8429         * s/s390.h: Support for S390, based on a patch by Martin
8430         Schwidefsky <schwidefsky@de.ibm.com>.
8431
8432 2000-05-30  Andy Piper  <andy@xemacs.org>
8433
8434         * window.c (allocate_window):
8435         (make_dummy_parent):
8436         (Fset_window_configuration): use new hashtable type.
8437
8438         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
8439         (struct image_instantiator_methods):
8440         (struct Lisp_Image_Instance): make instance geometry signed.
8441
8442         * glyphs.c (instantiate_image_instantiator):
8443         (image_instance_query_geometry):
8444         (image_instance_layout):
8445         (image_instance_layout):
8446         (query_string_geometry):
8447         (text_query_geometry):
8448         (image_instantiate):
8449         (image_instantiate):
8450         (cache_subwindow_instance_in_frame_maybe):
8451         (subwindow_query_geometry): make instance geometry signed.
8452
8453         * glyphs-widget.c (widget_query_geometry):
8454         (widget_layout):
8455         (button_query_geometry):
8456         (tree_view_query_geometry):
8457         (tab_control_query_geometry):
8458         (layout_query_geometry):
8459         (layout_layout):
8460         (native_layout_layout): make instance geometry signed.
8461
8462 2000-05-29  Olivier Galibert  <galibert@pobox.com>
8463
8464         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
8465         constant.
8466
8467         * general.c (syms_of_general): Add Qfull_assoc symbol.
8468
8469         * data.c (finish_marking_weak_lists): Mark full-assoc lists
8470         correctly.
8471         (decode_weak_list_type): Decode full-assoc type.
8472         (encode_weak_list_type): Encode full-assoc type.
8473         (Fmake_weak_list): Update doc string.
8474
8475 2000-05-30  Andy Piper  <andy@xemacs.org>
8476
8477         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
8478
8479         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
8480         (decode_hash_table_weakness): ditto.
8481         (Fhash_table_weakness): ditto.
8482         (Fhash_table_type): ditto.
8483         (finish_marking_weak_hash_tables): ditto.
8484         (hash_table_weakness_validate): ditto.
8485         (syms_of_elhash): ditto.
8486
8487 2000-05-28  Martin Buchholz <martin@xemacs.org>
8488
8489         * XEmacs 21.2.34 is released.
8490
8491 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
8492
8493         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
8494         start cache.
8495         (updating_line_start_cache): Gone.
8496         (regenerate_window): Replace resetting of VERTICAL_CLIP by
8497         generic code to force a minimum of 1 line laid out in the
8498         CMOTION_DISP case.
8499
8500 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
8501
8502         * glyphs.c (instantiate_image_instantiator): Check for initialized
8503         height & width no longer special cases IMAGE_NOTHING.
8504         (nothing_instantiate): Set height and width of instance.
8505
8506 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
8507
8508         * unexelf.c (unexec): Search for ".data" section.
8509         Initialize new_data2_offset from old_data_index.
8510         Remove redundant check for ElfW.
8511
8512 2000-05-23  Andy Piper  <andy@xemacs.org>
8513
8514         * glyphs.c (get_image_instantiator_governing_domain): allow more
8515         specific domains as the governing domain rather than expecting an
8516         exact match. This fixes problems with layouts.
8517
8518 2000-05-22  Andy Piper  <andy@xemacs.org>
8519
8520         * redisplay-output.c (compare_runes): check for non-images
8521
8522         * glyphs.c (set_glyph_dirty_p): ditto.
8523         (update_glyph_cachel_data): ditto.
8524
8525         * glyphs-widget.c (layout_post_instantiate): ditto.
8526         (layout_post_instantiate): ditto.
8527
8528         * event-msw.c (mswindows_wnd_proc): warning removal.
8529
8530 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
8531
8532         * s\mingw32.h: Added #undef for CLASH_DETECTION.
8533
8534         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
8535
8536         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
8537
8538         * nt.c (rva_to_section): mingw32 needs rva_to_section.
8539         (mswindows_executable_type): mingw32 now has enough headers for
8540         this to work.
8541
8542 2000-05-20  Andy Piper  <andy@xemacs.org>
8543
8544         * console-msw.c (mswindows_output_last_error): ; -> ,
8545
8546 2000-05-12  Andy Piper  <andy@xemacs.org>
8547
8548         * console-msw.c (FROB): compare ints with ints.
8549
8550 2000-05-11  Andy Piper  <andy@xemacs.org>
8551
8552         * glyphs-x.c (x_finalize_image_instance): make minimal build
8553         happy.
8554
8555 2000-05-20  Ben Wing  <ben@xemacs.org>
8556
8557         * event-Xt.c:
8558         * event-Xt.c (vars_of_event_Xt):
8559         move modifier-keys-are-sticky to event-stream.c.
8560
8561         * event-msw.c:
8562         * event-msw.c (mswindows_enqueue_mouse_button_event):
8563         * event-msw.c (key_needs_default_processing_p):
8564         * event-msw.c (XEMSW_LCONTROL):
8565         * event-msw.c (mswindows_handle_sticky_modifiers):
8566         * event-msw.c (FROB):
8567         * event-msw.c (clear_sticky_modifiers):
8568         * event-msw.c (output_modifier_keyboard_state):
8569         * event-msw.c (output_alt_keyboard_state):
8570         * event-msw.c (mswindows_wnd_proc):
8571         * event-msw.c (mswindows_modifier_state):
8572         * event-msw.c (emacs_mswindows_handle_magic_event):
8573         implement sticky modifiers.
8574
8575         * event-stream.c:
8576         * event-stream.c (vars_of_event_stream):
8577         move modifier-keys-are-sticky here.
8578
8579         * lisp.h:
8580         add CHECK_FUNCTION.
8581
8582         * rangetab.c:
8583         implement map-range-table.
8584
8585
8586 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
8587
8588         * redisplay-tty.c (reset_tty_modes):
8589         (tty_redisplay_shutdown): Adjust argument type to
8590         tty_frame_output_end.
8591
8592 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
8593
8594         * eval.c (Fbacktrace): Don't output a line with only right
8595         parenthesis.
8596
8597 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
8598
8599         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
8600         (Fpq_reset_poll): Ditto.
8601
8602 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
8603
8604         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
8605
8606 2000-05-16  Ben Wing  <ben@xemacs.org>
8607
8608         * buffer.c:
8609         * buffer.c (dfc_convert_to/from_internal_format):
8610         * buffer.c (reinit_vars_of_buffer):
8611         Fix conversion functions to allow reentrancy.
8612
8613         * console-msw.c:
8614         * console-msw.c (mswindows_output_last_error):
8615         New fun, generally useful -- output a human-readable
8616         version of GetLastError() on the console.
8617
8618         * console-msw.h:
8619         * console-msw.h (struct mswindows_frame):
8620         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
8621
8622         * console-stream.c (stream_output_begin):
8623         * console-stream.c (stream_output_end):
8624         * console-stream.c (stream_output_vertical_divider):
8625         * console-stream.c (stream_clear_region):
8626         * console-stream.c (stream_flash):
8627         * console-stream.c (console_type_create_stream):
8628         Delete blank stream methods, not needed.
8629
8630         * console.h (struct console_methods):
8631         Split begin/end methods into window and frame.
8632
8633         * event-msw.c:
8634         * event-msw.c (mswindows_handle_paint):
8635         * event-msw.c (output_alt_keyboard_state):
8636         * event-msw.c (mswindows_wnd_proc):
8637         * event-msw.c (vars_of_event_mswindows):
8638         Comment about problems with ignored-expose.
8639         Define mswindows-debug-events; not really implemented.
8640
8641         * frame-msw.c (mswindows_init_frame_1):
8642         random cleanups.
8643
8644         * glyphs-msw.c:
8645         * glyphs-msw.c (begin_defer_window_pos):
8646         * glyphs-msw.c (mswindows_unmap_subwindow):
8647         * glyphs-msw.c (mswindows_map_subwindow):
8648         * glyphs-msw.c (mswindows_resize_subwindow):
8649         Use DeferWindowPos to reduce flashing when mapping/unmapping.
8650
8651         * glyphs.c (make_image_instance_1):
8652         Fix crash.
8653
8654         * gutter.c (Fredisplay_gutter_area):
8655         Use new begin/end methods.
8656
8657         * lisp.h (Dynarr_new2):
8658         New creation fun.
8659
8660         * redisplay-msw.c:
8661         * redisplay-msw.c (mswindows_frame_output_begin):
8662         * redisplay-msw.c (mswindows_frame_output_end):
8663         * redisplay-msw.c (console_type_create_redisplay_mswindows):
8664         New begin/end methods -- handle DeferWindowPos.
8665
8666         * redisplay-output.c (redisplay_move_cursor):
8667         * redisplay-output.c (redraw_cursor_in_window):
8668         * redisplay-output.c (redisplay_update_line):
8669         * redisplay-output.c (redisplay_output_window):
8670         New begin/end methods.
8671
8672         * redisplay-tty.c:
8673         * redisplay-tty.c (tty_frame_output_begin):
8674         * redisplay-tty.c (tty_frame_output_end):
8675         * redisplay-tty.c (console_type_create_redisplay_tty):
8676         New begin/end methods.
8677
8678         * redisplay-x.c:
8679         * redisplay-x.c (x_window_output_begin):
8680         * redisplay-x.c (x_window_output_end):
8681         * redisplay-x.c (console_type_create_redisplay_x):
8682         New begin/end methods.
8683
8684         * redisplay.c (redisplay_frame):
8685         * redisplay.c (Fredisplay_echo_area):
8686         New begin/end methods.
8687         use MAYBE_DEVMETH for clear_frame; it may not exist.
8688
8689         * window.h (WINDOW_XFRAME):
8690         WINDOW_XFOO macros -- get locale and decode struct pointer.
8691
8692
8693 2000-05-12  Ben Wing  <ben@xemacs.org>
8694
8695         * emacs.c:
8696         * emacs.c (ensure_no_quitting_from_now_on):
8697         * emacs.c (fatal_error_signal):
8698         * emacs.c (mswindows_handle_hardware_exceptions):
8699         * emacs.c (main):
8700         * emacs.c (Fkill_emacs):
8701         * emacs.c (shut_down_emacs):
8702         * emacs.c (assert_failed):
8703         various improvements in fatal error handling.
8704
8705         * eval.c:
8706         move preparing_for_armageddon to emacs.c.
8707
8708         * lisp.h:
8709         declare fatal_error_in_progress.
8710
8711         * print.c:
8712         * print.c (std_handle_out_external):
8713         * print.c (std_handle_out_va):
8714         * print.c (stderr_out):
8715         * print.c (stdout_out):
8716         use console under mswin when no standard output.
8717         don't do code conversion during fatal error.
8718
8719         * scrollbar.c (Fscrollbar_page_up):
8720         * scrollbar.c (Fscrollbar_page_down):
8721         fix missing else.  reindent.
8722
8723 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
8724
8725         Emergency fix.
8726
8727         * glyphs.h (GLYPH_CACHEL_DESCENT):
8728         (GLYPH_CACHEL_DESCENT):
8729         (GLYPH_CACHEL_DESCENT):
8730         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
8731         used in case these are inline functions.
8732         Use more absurd values to error check.
8733
8734         include window.h for error check functions.
8735
8736 2000-05-11  Ben Wing  <ben@xemacs.org>
8737
8738         * cmdloop.c (Freally_early_error_handler):
8739         Display message box under windows; otherwise, message will disappear
8740         before it can be viewed.
8741
8742         * console-msw.c:
8743         * console-msw.c (Fmswindows_message_box):
8744         * console-msw.c (FROB):
8745         * console-msw.c (syms_of_console_mswindows):
8746         Define new fun `mswindows-message-box'.
8747         #### I will merge this into `popup-dialog-box'; just give me
8748         a bit of time.
8749
8750         * general.c:
8751         * general.c (syms_of_general):
8752         Some new symbols used in `mswindows-message-box'.
8753
8754         * glyphs.c:
8755         * glyphs.c (Fset_image_instance_property):
8756         put warning in this fun.
8757
8758         * glyphs.h:
8759         * glyphs.h (GLYPH_CACHEL_WIDTH):
8760         * glyphs.h (GLYPH_CACHEL_ASCENT):
8761         * glyphs.h (GLYPH_CACHEL):
8762         * glyphs.h (GLYPH_CACHEL_GLYPH):
8763         define error-checking versions to try to catch a bug i've seen --
8764         redisplay gets in an infinite loop because the glyph width of the
8765         continuation glyph is 65535.
8766
8767         * lisp.h:
8768         Extern message-box stuff.
8769
8770         * window.c (allocate_window):
8771         * window.c (make_dummy_parent):
8772         * window.c (Fset_window_configuration):
8773         Use EQUAL not EQ for subwindow caches to make them work a bit
8774         better. (Something is still very broken.)
8775
8776
8777 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
8778
8779         * glyphs.c (image_instantiate): Suppress gcc warnings.
8780         (Fmake_image_instance): Fix doc string.
8781         * specifier.c (Fmake_specifier): Ditto.
8782
8783 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
8784
8785         * paths.h.in (PATH_LOCK): Removed.
8786         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
8787         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
8788
8789 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
8790
8791         * fns.c (Ffeaturep): Update e-mail address in doc-string.
8792         Document (featurep '(and xemacs 21.02)).
8793
8794 2000-05-09  Ben Wing  <ben@xemacs.org>
8795
8796         * buffer.c (complex_vars_of_buffer):
8797         update modeline-format doc.
8798
8799         * device.h:
8800         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
8801
8802         * emacs.c:
8803         timeline of all released versions of Emacs, for use in creating
8804         authorship comments and in synching up.
8805
8806         * glyphs-widget.c (image_instantiator_buttons):
8807         * glyphs-widget.c (image_instantiator_edit_fields):
8808         * glyphs-widget.c (image_instantiator_combo_box):
8809         * glyphs-widget.c (image_instantiator_scrollbar):
8810         * glyphs-widget.c (image_instantiator_progress_guage):
8811         * glyphs-widget.c (image_instantiator_tree_view):
8812         * glyphs-widget.c (image_instantiator_tab_control):
8813         * glyphs-widget.c (image_instantiator_labels):
8814         * glyphs-widget.c (image_instantiator_layout):
8815         * glyphs-widget.c (image_instantiator_native_layout):
8816         rename decode_domain method to governing_domain.
8817
8818         * glyphs.c:
8819         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
8820         * glyphs.c (add_entry_to_device_ii_format_list):
8821         make sure we don't put an entry more than once into the list.
8822         * glyphs.c (check_instance_cache_mapper):
8823         *************************************************************
8824         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
8825         HAVE BEEN GETTING.
8826         *************************************************************
8827         * glyphs.c (get_image_instantiator_governing_domain):
8828         clean up, expand on new concept of governing domain.
8829         * glyphs.c (instantiate_image_instantiator):
8830         * glyphs.c (allocate_image_instance):
8831         use governing_domain instead of cache_domain in naming.
8832         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
8833         * glyphs.c (make_image_instance_1):
8834         * glyphs.c (Fmake_image_instance):
8835         allow for any domain (not just device), and process the
8836         governing domain correctly.  very big doc fix.
8837         * glyphs.c (Fimage_instance_domain):
8838         new primitive, to retrieve the governing domain of an image instance.
8839         * glyphs.c (image_instantiate):
8840         use new governing_domain stuff.  this fixes a crash you could get
8841         by instantiating certain widget glyphs in frame locales. (should
8842         signal an error instead of crashing.)
8843         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
8844         * glyphs.c (Fglyphp): clean up doc.
8845         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
8846         * glyphs.c (syms_of_glyphs):
8847         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
8848         * glyphs.c (image_instantiator_format_create): add some comments about
8849         bogus code.
8850         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
8851         for current-display-table. (Apparently Hrjove implemented in 1998 a
8852         design I wrote up in 1996, but didn't update the doc string.)
8853
8854         * glyphs.h: clean up a doc string.
8855         * glyphs.h (governing_domain):
8856         * glyphs.h (struct image_instantiator_methods):
8857         changes for governing_domain stuff.
8858
8859         * gutter.c:
8860         * gutter.c (Fgutter_specifier_p):
8861         * gutter.c (Fgutter_size_specifier_p):
8862         * gutter.c (Fgutter_visible_specifier_p):
8863         * objects.c:
8864         * objects.c (Fcolor_specifier_p):
8865         * objects.c (Ffont_specifier_p):
8866         * objects.c (Fface_boolean_specifier_p):
8867         doc strings moved to make-*-specifier.
8868
8869         * redisplay.c (add_disp_table_entry_runes_1):
8870         * redisplay.c (generate_fstring_runes):
8871         * redisplay.c (screen):
8872         add random comments and doc strings.
8873
8874         * specifier.c:
8875         * specifier.c (Fmake_specifier):
8876         major overhaul of this doc string.
8877
8878         * specifier.c (Fvalid_specifier_domain_p):
8879         comment about the bogosity of image instances being domains.
8880         * specifier.c (decode_domain):
8881         now non-static, used in glyphs.c.
8882         * specifier.c (specifier_instance):
8883         comment about the bogosity of image instances being domains.
8884         * specifier.c (Fgeneric_specifier_p):
8885         move doc string to make-generic-specifier.
8886         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
8887         rebackslashify.
8888
8889         * specifier.h:
8890         * specifier.h (DOMAIN_FRAME):
8891         * specifier.h (DOMAIN_LIVE_P):
8892         * specifier.h (DOMAIN_XDEVICE):
8893         rebackslashify.
8894         add comments about problems with these macros.
8895         prototype for decode_domain.
8896
8897         * toolbar.c:
8898         * toolbar.c (Ftoolbar_specifier_p):
8899         move doc string to `make-toolbar-specifier'.
8900
8901         * window.c (window_unmap_subwindows_cache_mapper):
8902         *************************************************************
8903         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
8904         HAVE BEEN GETTING.
8905         *************************************************************
8906
8907 2000-05-09  Andy Piper  <andy@xemacs.org>
8908
8909         * glyphs.h: declare reset_frame_subwindow_instance_cache.
8910
8911         * window.c (Fset_window_configuration): reset the frame subwindow
8912         cache and re-initialize the window subwindow caches.
8913
8914         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
8915
8916 2000-05-09  Ben Wing  <ben@xemacs.org>
8917
8918         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
8919         DWORD.
8920
8921 2000-04-26  Mike Woolley  <mike@bulsara.com>
8922
8923         * ntheap.c: Changed recreate_heap to limit the amount reserved
8924         for the heap to that which is actually available. Also now
8925         displays a message box (with some dignostics) in the event that
8926         it still can't start.
8927
8928 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
8929
8930         * callproc.c (Fold_call_process_internal): GCPRO path
8931
8932 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
8933
8934         Patch by Bill Perry.
8935
8936         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
8937         back data instead of #ifdef.
8938         (Fscrollbar_page_down): ditto.
8939
8940 2000-05-07  Ben Wing  <ben@xemacs.org>
8941
8942         * buffer.h:
8943         Kludge for defining Qmswindows_tstr.
8944
8945         * nt.c:
8946         * nt.c (open_input_file):
8947         * nt.c (open_output_file):
8948         * nt.c (rva_to_section):
8949         * nt.c (mswindows_executable_type):
8950         Move all memory-mapped-file routines here (some were in unexnt.c,
8951         which is bad because they are used by process-nt.c, and unexnt
8952         won't be around when portable dumping).  Synched the above routines
8953         with FSF 20.6.
8954
8955         * nt.h:
8956         Removed ifdef'd out bogus code.
8957         Fixed some prototypes.
8958
8959         * nt.h (file_data):
8960         * nt.h (OFFSET_TO_RVA):
8961         * nt.h (RVA_TO_OFFSET):
8962         * nt.h (RVA_TO_PTR):
8963         Moved the memory-mapped-file structures, macros and prototypes
8964         here, to parallel nt.c.  ntheap.h should really be removed
8965         entirely, and it's a non-portable-dumper specific file.
8966
8967         * ntheap.h (round_to_next):
8968         Moved the memory-mapped-file structures, macros and prototypes
8969         to nt.h.
8970
8971         * ntproc.c (compare_env):
8972         Moved rva_to_section and mswindows_executable_type to nt.c.
8973         Moved compare_env to process-nt.c.
8974         ntproc.c will die, one day.
8975
8976         * ntproc.c (sys_spawnve):
8977         Account for win32_ -> mswindows_.
8978
8979         * process-nt.c:
8980         * process-nt.c (struct nt_process_data):
8981         * process-nt.c (ensure_console_window_exists):
8982         * process-nt.c (compare_env):
8983         * process-nt.c (nt_create_process):
8984         * process-nt.c (nt_kill_process_by_pid):
8985         * process-nt.c (syms_of_process_nt):
8986         * process-nt.c (vars_of_process_nt):
8987         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
8988         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
8989         changes).  Eliminate our old `nt-quote-process-args' mechanism.
8990         Synch up nt_create_process with FSF 20.6 sys_spawnve.
8991         Move compare_env here from ntproc.c.
8992
8993         * process.c (Fprocess_send_region):
8994         Takes an optional fourth argument, BUFFER, which should fix some
8995         problems with call-process.
8996
8997         * syscommctrl.h:
8998         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
8999
9000         * syswindows.h:
9001         Move ICC_BAR_CLASSES to syscommctrl.h.
9002         Add preliminary macros for MSWindows/Mule.  More to come.
9003
9004         * unexnt.c:
9005         * unexnt.c (unexec):
9006         open_output_file moved to nt.c.
9007
9008
9009 2000-05-05  Andy Piper  <andy@xemacs.org>
9010
9011         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
9012         instance from the frame cache also since GC may catch up too late
9013         to make frame deletion sane.
9014
9015 2000-05-04  Andy Piper  <andy@xemacs.org>
9016
9017         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
9018         (x_finalize_image_instance): ungcpro on deletion.
9019
9020         * glyphs.c (image_instantiator_format_create): give pointers a
9021         query geometry method so that the geometry is at least set.
9022
9023         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
9024         initialize layouts if using widgets.
9025
9026 2000-05-03  Andy Piper  <andy@xemacs.org>
9027
9028         * nt.c: remove bogus reference to sysmmsystem.h
9029
9030         * gui-x.c (popup_selection_callback): fix no selection abort.
9031
9032 2000-05-02  Andy Piper  <andy@xemacs.org>
9033
9034         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
9035         (mswindows_widget_instantiate): ditto.
9036
9037         * glyphs-widget.c (initialize_widget_image_instance): initialize
9038         children correctly.
9039         (widget_instantiate): cope with children and items in the same
9040         instance.
9041
9042         * glyphs.c (mark_image_instance): cope with children as a first
9043         class member.
9044         (image_instance_equal): ditto.
9045         (image_instance_hash): ditto.
9046         (image_instance_changed): ditto.
9047
9048 2000-04-30  Andy Piper  <andy@xemacs.org>
9049
9050         * glyphs.c (subwindow_query_geometry): new function. Return some
9051         defaults.
9052         (subwindow_instantiate): don't assign dimensions if none have been
9053         given.
9054         (image_instantiator_format_create): add subwindow_query_geometry.
9055         (print_image_instance): cope with layouts as widgets.
9056
9057 2000-04-29  Andy Piper  <andy@xemacs.org>
9058
9059         * frame.c (delete_frame_internal): call
9060         free_frame_subwindow_instance_cache so that all subwindows are
9061         finalized before their parent.
9062         (mark_frame): remove subwindow_cachels.
9063         (Fmake_frame): remove subwindow_cachel manipulation.
9064         (allocate_frame_core): subwindow_instance_cache is a weak list.
9065         (delete_frame_internal): set subwindow_instance_cache to nil.
9066
9067         * glyphs-msw.c (mswindows_finalize_image_instance): make double
9068         finalization safe.
9069         (mswindows_finalize_image_instance): use the device
9070         not the domain as the domain may have died already.
9071
9072         * glyphs-x.c (x_finalize_image_instance): ditto.
9073         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
9074         HEIGHT.
9075
9076         * redisplay-output.c (redisplay_unmap_subwindows): update for
9077         subwindow instance cache as a weak list.
9078         (redisplay_unmap_subwindows_maybe): ditto.
9079         (redisplay_unmap_subwindows_except_us): ditto.
9080
9081         * glyphs.c (unmap_subwindow): error checking will check the domain
9082         so don't deal with it here. Don't use cachels anymore.
9083         (map_subwindow): ditto.
9084         (update_subwindow_cachel_data): remove old accessor names.
9085         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
9086         (Fresize_subwindow): don't update cachel.
9087         (mark_subwindow_cachels):
9088         (update_subwindow_cachel_data):
9089         (add_subwindow_cachel):
9090         (get_subwindow_cachel_index):
9091         (update_subwindow_cachel):
9092         (reset_subwindow_cachels):
9093         (mark_subwindow_cachels_as_not_updated): deleted.
9094         (cache_subwindow_instance_in_frame_maybe): new function. Add a
9095         subwindow instance to the frame cache.
9096         (find_matching_subwindow): update for subwindow instance cache as
9097         a weak list.
9098         (update_widget_instances): ditto.
9099         (image_instance_type_to_mask):inlined.
9100         (free_frame_subwindow_instance_cache): new function. finalize all
9101         subwindows that are instantiated.
9102
9103         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
9104         of cachel information.
9105         (IMAGE_INSTANCE_DISPLAY_X):
9106         (IMAGE_INSTANCE_DISPLAY_Y):
9107         (IMAGE_INSTANCE_DISPLAY_WIDTH):
9108         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
9109         (XIMAGE_INSTANCE_DISPLAY_X):
9110         (XIMAGE_INSTANCE_DISPLAY_Y):
9111         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
9112         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
9113         remove subwindow_cachel structure and function references.
9114         (image_instance_type_to_mask): inline from glyphs.c
9115
9116         * redisplay.c (redisplay_frame): remove subwindow_cachel
9117         references.
9118
9119         * frame.h (struct frame): remove subwindow_cachels.
9120         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
9121
9122         * frameslots.h: add subwindow_instance_cache.
9123
9124         * window.c (replace_window): check subwindow cache of replacement.
9125         (window_unmap_subwindows_cache_mapper):
9126         (window_unmap_subwindows): new functions. Unmap all subwindows
9127         cached on this window.
9128         (mark_window_as_deleted): unmap all subwindows.
9129
9130 2000-04-27  Andy Piper  <andy@xemacs.org>
9131
9132         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
9133
9134         * glyphs-widget.c (widget_layout): return something.
9135         (layout_layout): return something. Fail if not initialized.
9136         (layout_query_geometry): ditto.
9137         (image_instantiator_native_layout): new function. Initialized the
9138         native layout type.
9139         (widget_instantiate): don't do layout stuff here.
9140
9141         * glyphs.c (instantiate_image_instantiator): reorded calling or
9142         instantiate and post_instantiate with layout in between.
9143         (image_instance_layout): be more selective about deciding whether
9144         the layout has been done or not.
9145
9146         * glyphs.h (struct image_instantiator_methods): return a value
9147         from layout_method.
9148
9149 2000-04-26  Andy Piper  <andy@xemacs.org>
9150
9151         * glyphs.c (allocate_image_instance): make initial width and
9152         height unspecified. Set initialized to 0.
9153
9154         * syscommctrl.h new file. Encapsulates commctrl.h.
9155
9156         * syswindows.h new file. Encapsulates windows.h.
9157
9158         * ntplay.c: use new syswindows.h and syscommctrl.h header.
9159         * nt.c: ditto.
9160         * console-msw.h: ditto.
9161
9162         * redisplay-tty.c (tty_output_display_block): remove layout references.
9163
9164         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
9165         window handle rather than just the frame.
9166
9167         * glyphs.c (mark_image_instance): remove layout references.
9168         (print_image_instance): ditto.
9169         (image_instance_equal): ditto.
9170         (image_instance_hash): ditto.
9171         (decode_image_instance_type): ditto.
9172         (encode_image_instance_type): ditto.
9173         (image_instantiate): ditto.
9174         (allocate_glyph): ditto.
9175         (Fimage_instance_height): ditto.
9176         (Fimage_instance_width): ditto.
9177         (update_subwindow): ditto.
9178
9179         * redisplay-x.c (x_output_display_block): recode for layouts as
9180         widgets.
9181
9182         * redisplay-output.c (redisplay_output_layout): recode for layouts
9183         as widgets.
9184         (compare_runes): remove layout references.
9185
9186         * redisplay-msw.c (mswindows_output_display_block): recode for
9187         layouts as widgets.
9188
9189         * glyphs-widget.c (image_instantiator_layout): remove
9190         layout_possible_dest_types.
9191         (layout_possible_dest_types): deleted.
9192
9193         * glyphs.h (image_instance_type): remove layout references.
9194         (struct Lisp_Image_Instance): ditto. Add initialized flag.
9195         (IMAGE_INSTANCE_INITIALIZED): new accessor.
9196         (XIMAGE_INSTANCE_INITIALIZED): ditto.
9197
9198 2000-04-25  Andy Piper  <andy@xemacs.org>
9199
9200         * glyphs-widget.c (image_instantiator_buttons):
9201         (image_instantiator_edit_fields):
9202         (image_instantiator_combo_box):
9203         (image_instantiator_scrollbar):
9204         (image_instantiator_progress_guage):
9205         (image_instantiator_tree_view):
9206         (image_instantiator_tab_control):
9207         (image_instantiator_labels):
9208         (image_instantiator_layout): call default post_instantiate method.
9209         (widget_post_instantiate): new function. Simply lays out the
9210         widgets.
9211
9212         * glyphs.h (struct image_instantiator_methods): add
9213         post_instantiate method.
9214
9215         * glyphs.c (instantiate_image_instantiator): add post_instantiate
9216         method calls.
9217
9218 2000-04-23  Andy Piper  <andy@xemacs.org>
9219
9220         * glyphs.h (struct image_instantiator_methods): add
9221         decode_domain_method.
9222         (struct Lisp_Image_Instance): remove subwindow frame - it can be
9223         derived from the domain.
9224         (IMAGE_INSTANCE_FRAME): new accessor.
9225         (XIMAGE_INSTANCE_FRAME): ditto.
9226
9227         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
9228         instead of _SUBWINDOW_FRAME.
9229         (finalize_image_instance): ditto.
9230         (Fimage_instance_foreground): ditto.
9231         (Fimage_instance_background): ditto.
9232         (image_instantiate): ditto.
9233         (update_subwindow_cachel): ditto.
9234         (update_subwindow): ditto.
9235         (unmap_subwindow): ditto.
9236         (map_subwindow): ditto
9237         (subwindow_instantiate): ditto.
9238         * glyphs-msw.c (mswindows_update_widget): ditto.
9239         (mswindows_progress_gauge_instantiate): ditto.
9240         (mswindows_tab_control_update): ditto.
9241         * glyphs-x.c (x_update_widget): ditto.
9242         (x_widget_instantiate): ditto.
9243         (x_tab_control_instantiate): ditto.
9244         (x_tab_control_update): ditto.
9245         * event-msw.c (mswindows_wnd_proc): ditto
9246
9247         * glyphs-widget.c (image_instantiator_layout): use
9248         subwindow_decode_domain.
9249         (image_instantiator_buttons): ditto.
9250         (image_instantiator_edit_fields): ditto.
9251         (image_instantiator_combo_box): ditto.
9252         (image_instantiator_scrollbar): ditto.
9253         (image_instantiator_progress_guage): ditto.
9254         (image_instantiator_tree_view): ditto.
9255         (image_instantiator_tab_control): ditto.
9256         (image_instantiator_labels): ditto.
9257         (image_instantiator_layout): ditto.
9258
9259         * glyphs.c: add instance error checking to many functions.
9260         (instantiate_image_instantiator): decode device from cache_domain.
9261         (image_instantiate): partially rewrite by using
9262         decode_image_instantiator_domain to determine what domain the
9263         instance needs to be cached in.
9264         (decode_image_instantiator_domain): new function. Determine what
9265         domain the image needs to be cached in.
9266         (check_window_subwindow_cache): new error checking function.
9267         (check_instance_cache_mapper): ditto.
9268         (check_image_instance_structure): ditto.
9269         (subwindow_decode_domain): new function. Encodes a window as a
9270         subwindow's cache domain.
9271         (image_instantiator_format_create): use it for text and
9272         subwindows.
9273
9274 2000-04-21  Andy Piper  <andy@xemacs.org>
9275
9276         * glyphs.c (image_instance_device): new function.
9277         (image_instance_frame): new function.
9278         (image_instance_window): new function.
9279         (image_instance_live_p): new function.
9280
9281         * window.c (mark_window_as_deleted): reset the subwindow_instance_
9282         cache to nil.
9283
9284         * glyphs.h (struct Lisp_Image_Instance): device->domain.
9285         (IMAGE_INSTANCE_DOMAIN): new accessor.
9286         (XIMAGE_INSTANCE_DOMAIN): ditto.
9287
9288         * glyphs-x.c (x_finalize_image_instance): device->domain.
9289
9290         * glyphs-msw.c (init_image_instance_geometry): device->domain.
9291         (mswindows_finalize_image_instance): ditto.
9292
9293         * glyphs-eimage.c (jpeg_instantiate): device->domain.
9294         (gif_instantiate): ditto.
9295         (png_instantiate): ditto.
9296         (tiff_instantiate): ditto.
9297
9298         * glyphs.c (instantiate_image_instantiator): use domain rather
9299         than device.
9300         (mark_image_instance): device -> domain.
9301         (print_image_instance): ditto.
9302         (finalize_image_instance): ditto.
9303         (image_instance_equal): ditto.
9304         (allocate_image_instance): ditto.
9305         (Fcolorize_image_instance): ditto.
9306         (query_string_geometry): ditto.
9307         (image_instantiate): ditto
9308         (query_string_font): ditto.
9309         (image_instantiate): ditto.
9310         (update_subwindow): ditto.
9311         (unmap_subwindow): ditto.
9312         (map_subwindow): ditto.
9313         (subwindow_instantiate): ditto.
9314
9315         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
9316         (DOMAIN_FRAME): ditto.
9317         (DOMAIN_WINDOW): ditto.
9318         (DOMAIN_LIVE_P): ditto.
9319         (XDOMAIN_DEVICE): ditto.
9320         (XDOMAIN_FRAME): ditto.
9321         (XDOMAIN_WINDOW): ditto.
9322
9323         * specifier.c (Fvalid_specifier_domain_p): add image instances as
9324         a valid specifier domain.
9325
9326 2000-04-19  Andy Piper  <andy@xemacs.org>
9327
9328         * glyphs-widget.c (syms_of_glyphs_widget): remove
9329         widget-callback-current-channel.
9330         (vars_of_glyphs_widget): ditto.
9331         * glyphs.h: ditto
9332
9333         * gui.c (get_gui_callback): revert to previous behaviour.
9334
9335 2000-04-18  Andy Piper  <andy@xemacs.org>
9336
9337         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
9338         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
9339         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
9340
9341         * glyphs.c (image_instance_equal): add margin_width.
9342         (image_instance_hash): ditto.
9343
9344         * glyphs-widget.c (widget_instantiate): deal with margin-width.
9345         (layout_query_geometry): ditto.
9346         (layout_layout): ditto.
9347         (syms_of_glyphs_widget): add margin-width.
9348         (image_instantiator_layout): allow margin-width.
9349
9350         * glyphs.c (update_widget_instances): make a normal function.
9351         (syms_of_glyphs): remove Qupdate_widget_instances.
9352         * glyphs.h: ditto.
9353
9354         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
9355         so that we don't corrupt ideas about the last event or
9356         command. Remove widget-callback-current-channel fiddling.
9357         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
9358
9359 2000-05-01  Martin Buchholz <martin@xemacs.org>
9360
9361         * XEmacs 21.2.33 is released.
9362
9363 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
9364
9365         * make-src-depend: Allow dots in header file name.
9366
9367 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
9368
9369         * mule-charset.h (struct charset_lookup): Add
9370         next_allocated_1_byte_leading_byte and
9371         next_allocated_2_byte_leading_byte.
9372         * mule-charset.c: Move above two variables so that those values
9373         will be dumped.
9374
9375 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
9376
9377         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
9378         when string length is zero.
9379         (find_charsets_in_emchar_string): Ditto.
9380
9381 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
9382
9383         * lisp.h: extern Qdialog and Qmenubar.
9384
9385         * gui-x.c: added events.h.
9386                 also fixed typo which made the file uncompilable.
9387
9388         * general.c: Added Qmenubar and Qdialog
9389
9390 2000-04-28  Ben Wing  <ben@xemacs.org>
9391
9392         * frame-msw.c (mswindows_init_frame_1):
9393         * frame-msw.c (mswindows_mark_frame):
9394         * event-msw.c (mswindows_enqueue_dispatch_event):
9395         * console-msw.h:
9396         * console-msw.h (struct mswindows_frame):
9397         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
9398         there are now three hash tables for callbacks.
9399         mswindows_enqueue_dispatch_event is no longer static.
9400
9401         * dialog-x.c (maybe_run_dbox_text_callback):
9402         * dialog-x.c (dbox_descriptor_to_widget_value):
9403         switch to new cons3 form for callbacks.
9404
9405         * glyphs-msw.c (mswindows_register_gui_item):
9406         * glyphs-msw.c (mswindows_widget_instantiate):
9407         * glyphs-msw.c (add_tree_item):
9408         * glyphs-msw.c (add_tab_item):
9409         new image instance parameter, so it can be passed to callback-ex.
9410         respect :callback-ex as well as :callback.
9411
9412         * glyphs-widget.c (VALID_GUI_KEYWORDS):
9413         add :callback-ex.
9414
9415         * glyphs.c (print_image_instance):
9416         prettify, e.g. now prints widget type.
9417
9418         * gui-x.h:
9419         certain funs have new image instance parameter.
9420
9421         * gui.c:
9422         * gui.c (get_gui_callback):
9423         * gui.c (gui_item_add_keyval_pair):
9424         * gui.c (gui_item_init):
9425         * gui.c (gui_add_item_keywords_to_plist):
9426         * gui.c (mark_gui_item):
9427         * gui.c (gui_item_hash):
9428         * gui.c (gui_item_equal):
9429         * gui.c (copy_gui_item):
9430         * gui.c (syms_of_gui):
9431         recognize callback-ex in a number of places.
9432         also, fix the annoying "can't get out of yes-no dialog" bug.
9433
9434         * gui.h:
9435         * gui.h (struct Lisp_Gui_Item):
9436         recognize callback-ex in a number of places.
9437
9438         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9439         new parameter in button_item_to_widget_value.
9440
9441         * glyphs-x.c (x_update_widget):
9442         * glyphs-x.c (x_button_instantiate):
9443         * glyphs-x.c (x_button_update):
9444         * glyphs-x.c (x_progress_gauge_instantiate):
9445         * glyphs-x.c (x_edit_field_instantiate):
9446         * glyphs-x.c (x_combo_box_instantiate):
9447         * glyphs-x.c (x_tab_control_instantiate):
9448         * glyphs-x.c (x_label_instantiate):
9449         new image instance parameter in various places.
9450
9451         * event-Xt.c:
9452         * event-Xt.c (enqueue_Xt_dispatch_event):
9453         this fun gets exported.
9454
9455         * gui-msw.c:
9456         * gui-msw.c (mswindows_handle_gui_wm_command):
9457         handle both :callback and :callback-ex, and generate our own
9458         event because it's one of the callback-ex arguments.
9459
9460         * gui-x.c:
9461         * gui-x.c (popup_selection_callback):
9462         handle both :callback and :callback-ex, and generate our own
9463         event because it's one of the callback-ex arguments.
9464         * gui-x.c (button_item_to_widget_value):
9465         * gui-x.c (gui_items_to_widget_values_1):
9466         * gui-x.c (gui_item_children_to_widget_values):
9467         * gui-x.c (gui_items_to_widget_values):
9468         new image instance parameter in various places.
9469
9470         * fns.c (Freplace_list):
9471         fix small typo in doc string.
9472
9473         * lisp.h:
9474         declare enqueue_Xt_dispatch_event.
9475
9476 2000-04-28  Ben Wing  <ben@xemacs.org>
9477
9478         * buffer.c:
9479         * buffer.c (Frecord_buffer):
9480         * buffer.c (syms_of_buffer):
9481         delete record-buffer-hook.
9482
9483         * fns.c:
9484         * fns.c (Freplace_list):
9485         * fns.c (syms_of_fns):
9486         new primitive replace-list.
9487
9488         * frameslots.h:
9489         slot for old buffer-alist.
9490
9491         * lisp.h:
9492         exfun replace-list.
9493
9494         * redisplay.c:
9495         * redisplay.c (redisplay_frame):
9496         * redisplay.c (syms_of_redisplay):
9497         * redisplay.c (vars_of_redisplay):
9498         new hook buffer-list-changed-hook.
9499         call it.
9500
9501 2000-04-27  Ben Wing  <ben@xemacs.org>
9502
9503         * extents.h: extern in_modeline_generation.
9504
9505         * redisplay.c (generate_formatted_string_db): set
9506         in_modeline_generation.
9507
9508         * extents.c (extent_changed_for_redisplay): don't mark redisplay
9509         flags if in modeline generation.  otherwise frame-modified-tick
9510         is ticked far too often.
9511         Declare in_modeline_generation.
9512
9513 2000-04-26  Ben Wing  <ben@xemacs.org>
9514
9515         * emacs.c (vars_of_emacs): document quick-build "error-checking"
9516         option.
9517         (vars_of_emacs): add quick-build as an error-checking option.
9518         A bit kludgy, but there doesn't seem much point in creating
9519         a real var for this.
9520
9521         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
9522
9523 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9524
9525         * redisplay.h (struct display_line): Add a new variable,
9526         line_continuation.
9527
9528         * redisplay.c (create_text_block): Set dl->line_continuation if
9529         the line continues.
9530         (create_string_text_block): Ditto.
9531         (regenerate_window_incrementally): Use line_continuation instead
9532         of searching continuation glyph.
9533         (add_margin_runes): Call add_glyph_rune.
9534         (add_glyph_rune): Handle margin glyph.
9535
9536 2000-04-20  Martin Buchholz  <martin@xemacs.org>
9537
9538         * filelock.c (fill_in_lock_file_name):
9539         ANSIfy.
9540         Check for IS_ANY_SEP instead of '/'.
9541         (lock_file_1):
9542         Avoid generating gratuitous garbage.  Call user_login_name() directly.
9543         Never check errno without first seeing that system call failed.
9544         (unlock_file): Add GCPRO.
9545         (Flock_buffer): Fix docstring.
9546         (Ffile_locked_p): Fix docstring.  Add GCPRO.
9547
9548 2000-04-19  Martin Buchholz  <martin@xemacs.org>
9549
9550         * sysdep.c (get_pty_max_bytes):
9551         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
9552         strings longer than 252 bytes.
9553
9554         * md5.c: Unconditionally include ANSI header <limits.h>
9555
9556         * glyphs-x.c (convert_EImage_to_XImage):
9557         * lisp-union.h (union Lisp_Object):
9558         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
9559
9560 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
9561
9562         * filelock.c (current_lock_owner): Remove unused variable o, p.
9563
9564 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
9565
9566         * callint.c: Remove multiply defined symbol Qlet
9567         (syms_of_callint): ditto.
9568
9569 2000-04-14  Andy Piper  <andy@xemacs.org>
9570
9571         * general.c (syms_of_general): add last-command, this-command, let
9572         and funcall.
9573
9574         * lisp.h: declare various symbols.
9575
9576         * glyphs.h: declare Qwidget_callback_current_channel;
9577
9578         * glyphs-widget.c (syms_of_glyphs_widget): add
9579         Qgui_callback_current_channel.
9580         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
9581
9582         * gui-msw.c (mswindows_handle_gui_wm_command): bind
9583         widget-callback-current-channel when invoking the interactive
9584         arg. Also bind last-command and next-command when invoking the
9585         widget updates.
9586         * gui-x.c (popup_selection_callback): ditto.
9587
9588         * gui.c (get_gui_callback): massage args so that we are always
9589         calling eval. This allows us to add our own variable bindings
9590         outside.
9591
9592         * glyphs-x.c (x_button_instantiate): use
9593         gui_items_to_widget_values since this is GC safe.
9594         (x_progress_gauge_instantiate): ditto.
9595         (x_edit_field_instantiate): ditto.
9596         (x_label_instantiate): ditto.
9597
9598         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
9599         (emacs_Xt_event_widget_focus_out): new function
9600         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
9601         focus.
9602         (emacs_Xt_event_add_widget_actions): new function. add focus
9603         functions as actions.
9604         (init_event_Xt_late): use it.
9605
9606 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
9607
9608         * event-stream.c (Fdispatch_event): Doc fix.
9609
9610 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
9611
9612         * postgresql.c: Remove all references to PQsetenv*.
9613
9614         * postgresql.h: Remove references to PGsetenvHandler object.
9615         * lrecord.h (lrecord_type): Ditto.
9616
9617 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
9618
9619         * glyphs-msw.h (struct mswindows_image_instance_data): Added
9620         real_heigh and real_width members, and accessor macros for these.
9621
9622         * glyphs-msw.c (init_image_instance_geometry): New function.
9623         (init_image_instance_from_dibitmap): Use it.
9624         (mswindows_resource_instantiate): Use it.
9625         (init_image_instance_from_xbm_inline): Use it.
9626         (mswindows_initialize_image_instance_mask): Use real bitmap
9627         geometry.
9628         (mswindows_create_resized_bitmap): Ditto.
9629         (mswindows_create_resized_mask): Ditto.
9630
9631         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
9632         and bitmap to their surface size.
9633
9634 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
9635
9636         * process-unix.c (unix_send_process): Guard against process MIA
9637         after Faccept_process_output.
9638
9639 2000-04-11  Ben Wing  <ben@xemacs.org>
9640
9641         * eval.c (unbind_to_hairy): fix brokenness introduced by
9642         nanosecond speed improvements.
9643
9644 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
9645
9646         * sunplay.c (init_device): To play sounds correctly, the device
9647         apparently needs to be initialized at least once by XEmacs.  Make
9648         it so.
9649
9650 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9651
9652         * redisplay.c (add_margin_runes): Add text image glyph
9653           handling.
9654
9655 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
9656
9657         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
9658         gcc is newer than 2.5.
9659
9660 2000-04-06  Colin Rafferty  <colin@xemacs.org>
9661
9662         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
9663
9664         * fns.c (size_bit_vector):
9665         * alloc.c (size_vector):
9666         (make_vector_internal):
9667         (make_bit_vector_internal):
9668         (sweep_bit_vectors_1):
9669         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
9670
9671 2000-04-06  Andy Piper  <andy@xemacs.org>
9672
9673         * gmalloc.c (malloc): undo previous change.
9674         (malloc): ditto.
9675         (free): ditto.
9676         (realloc): ditto.
9677
9678 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
9679
9680         * line-number.c (buffer_line_number): Revert to former version.
9681
9682 2000-04-06  Andy Piper  <andy@xemacs.org>
9683
9684         * gmalloc.c (malloc): add error checking.
9685         (malloc): ditto.
9686         (free): ditto.
9687         (realloc): ditto.
9688
9689         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
9690         button_item_to_widget_value arg.
9691
9692         * glyphs-x.c (x_button_instantiate): add extra
9693         button_item_to_widget_value arg.
9694         (x_progress_gauge_instantiate): ditto.
9695         (x_edit_field_instantiate): ditto.
9696         (x_label_instantiate): ditto.
9697
9698         * gui-x.c (gui_items_to_widget_values_1): add extra
9699         button_item_to_widget_value arg.
9700         (button_item_to_widget_value): add extra menu_item_p arg.
9701
9702         * gui-x.h: change signature of button_item_to_widget_value.
9703
9704         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
9705         button_item_to_widget_value arg.
9706
9707 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
9708
9709         * buffer.h (struct buffer): auto_save_modified should be long.
9710
9711 2000-04-05  Andy Piper  <andy@xemacs.org>
9712
9713         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
9714         type.
9715         (button_query_geometry): give a little more room so that athena
9716         buttons fit.
9717
9718 2000-04-05  Andy Piper  <andy@xemacs.org>
9719
9720         * faces.c (complex_vars_of_faces): The widget face should inherit
9721         the font of the gui-element face.
9722
9723 2000-04-04  Andy Piper  <andy@xemacs.org>
9724
9725         * glyphs-x.c (x_button_update): new function. unconditionally
9726         update a button's state when the instance is dirty.
9727         (image_instantiator_format_create_glyphs_x): add x_button_update.
9728         (x_widget_instantiate): remove old resize cruft.
9729
9730 2000-04-02  Andy Piper  <andy@xemacs.org>
9731
9732         * frame.c (change_frame_size_1): The introduction of gutters means
9733         that we need to allow 0 as a potential frame dimension.
9734
9735 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9736
9737         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
9738         image glyph if allow_cursor.
9739         (add_hscroll_rune): Don't allow cursor to border glyph.
9740         (create_text_block): Ditto.
9741
9742         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
9743         text not in buffer.
9744         (redisplay_output_layout): Call ensure_face_cachel_complete for
9745         text image glyph.
9746
9747
9748 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9749
9750         * redisplay.c (add_glyph_rune): Adding text image as text runes.
9751
9752         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
9753         not in buffer
9754
9755         * redisplay-tty.c (tty_output_display_block): Delete the routine
9756         for text image glyph
9757         * redisplay-x.c (x_output_display_block): ditto
9758         * redisplay-msw.c (mswindows_output_display_block): ditto
9759
9760 2000-02-02  Mike Alexander  <mta@arbortext.com>
9761
9762         Note: Some of these were committed by accident as part of other
9763         patches.
9764
9765         * regex.c (regex_compile): Avoid compiler warnings.
9766
9767         * ntproc.c (sys_spawnve): Avoid compiler warnings.
9768
9769         * nt.h: Declare term_ntproc correctly.
9770
9771         * nt.c: Remove incorrect declaration of get_home_directory which
9772         is declared correctly in lisp.h.
9773
9774         * keymap.c (get_keyelt): Avoid compiler warnings.
9775         (raw_lookup_key_mapper): Avoid compiler warnings.
9776
9777         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
9778
9779         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
9780
9781         * filemode.c (mode_string): Avoid compiler warnings.
9782
9783         * file-coding.c (Fcoding_system_aliasee): Add return statement to
9784         avoid warning.
9785
9786         * events-mod.h: Undef some things that winuser.h defines differently.
9787
9788         * data.c (Faset): Avoid compiler warnings.
9789
9790         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
9791
9792 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
9793
9794         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
9795         Fall through to simple beep on error.
9796         Replace "extern" by real header file.
9797
9798         * linuxplay.c: Use nativesound.h
9799         (play_sound_data): Return error code. Be less verbose on error.
9800
9801         * sunplay.c: Use nativesound.h
9802         (play_sound_data): Return error code. Be less verbose on error.
9803
9804         * ntplay.c: Use nativesound.h
9805         (play_sound_data): Return fake error code
9806
9807         * sgiplay.c: Use nativesound.h
9808         (play_sound_data): Return error code
9809
9810         * hpplay.c: Use nativesound.h, partially implement
9811         new error code. Break compilation until finished.
9812         (play_sound_data): error code.
9813
9814         * nativesound.h (play_sound_file):
9815           (play_sound_data): Prototype in new header.
9816
9817 2000-03-31  Andy Piper  <andy@xemacs.org>
9818
9819         * glyphs-widget.c: (button_query_geometry): new function. Adjust
9820         for toggle and radio buttons.
9821         (image_instantiator_buttons): use it.
9822
9823 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
9824
9825         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
9826         (x_update_horizontal_scrollbar_callback): Return if no mirror was
9827         found. Scrollbar event probably belonged to some old config.
9828
9829 2000-03-31  Andy Piper  <andy@xemacs.org>
9830
9831         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
9832         than 1.
9833         (initialize_widget_image_instance): default layout to
9834         LAYOUT_HORIZONTAL rather than 0.
9835         (widget_instantiate): reverse the item list at the end rather than
9836         every iteration.
9837         (layout_layout): re-code for the border text at the front of the
9838         item list rather than at the end.
9839         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
9840         provided by the user.
9841         (widget_query_geometry): comment.
9842
9843 2000-03-30  Andy Piper  <andy@xemacs.org>
9844
9845         * glyphs-widget.c (image_instantiator_layout): allow standard
9846         widget keywords in layouts.
9847
9848         * gutter.c (output_gutter): cope with nil gutter contents.
9849
9850         * frame.c (Fset_frame_properties): add gutter docs.
9851
9852 2000-03-29  Andy Piper  <andy@xemacs.org>
9853
9854         * toolbar-msw.c (TBSTYLE_FLAT): add.
9855         (mswindows_output_toolbar): minor fiddling.
9856
9857 2000-03-29  Andy Piper  <andy@xemacs.org>
9858
9859         * gutter.c (output_gutter): force gutter size recalculation if
9860         what we are trying to display won't fit.
9861         (update_gutter_geometry): new function. A per-gutter version of
9862         update_frame_gutter_geometry.
9863         (update_frame_gutter_geometry): use it.
9864         (redraw_exposed_gutter): add extra debugging output.
9865
9866 2000-03-28  Mike Alexander  <mta@arbortext.com>
9867
9868         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
9869         (pdump_file_unmap): Implement it on Windows
9870         (pdump_file_get): Save alocated handles for pdump_file_unmap
9871
9872 2000-03-28  Andy Piper  <andy@xemacs.org>
9873
9874         * gui.c (get_gui_callback): treat Quit specially.
9875
9876 2000-03-27  Andy Piper  <andy@xemacs.org>
9877
9878         * glyphs.c (image_instantiate): be careful to check in the same
9879         way we assigned.
9880
9881 2000-03-27  Didier Verna  <didier@xemacs.org>
9882
9883         * config.h.in: define the proper SMART_INCLUDE macro.
9884         handle renaming of `foo_h_path' to `foo_h_file'.
9885
9886         * database.c: ditto.
9887
9888         * emacs.c: ditto.
9889
9890         * linuxplay.c: ditto.
9891
9892         * terminfo.c: ditto.
9893
9894         * tooltalk.h: ditto.
9895
9896 2000-03-27  Andy Piper  <andy@xemacs.org>
9897
9898         * glyphs-msw.c (mswindows_update_widget): make sure the widget
9899         gets updated whenever the face might have changed.
9900
9901 2000-03-26  Mike Alexander  <mta@arbortext.com>
9902
9903         * dumper.c (pdump_resource_free): Fix the comment.
9904
9905 2000-03-21  Olivier Galibert  <galibert@pobox.com>
9906
9907         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
9908
9909 2000-03-22  Mike Alexander  <mta@arbortext.com>
9910
9911         * dumper.c: Include Windows headers on Windows
9912         (pdump_resource_free): Add a body to the function
9913         (pdump_load): exe_name -> exe_path and add some comments.
9914
9915 2000-03-25  Mike Alexander  <mta@arbortext.com>
9916
9917         * gui.c (copy_gui_item_tree): Return a value in all cases
9918
9919 2000-03-21  Didier Verna  <didier@xemacs.org>
9920
9921         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
9922         lwlib/config.h.in.
9923         (SMART_INCLUDE): new macro.
9924         (POSTGRES_INCLUDE): new macro to include postgresql headers from
9925         the proper location.
9926
9927         * postgresql.c: use it.
9928
9929         * inline.c: ditto.
9930
9931 2000-03-24  Andy Piper  <andy@xemacs.org>
9932
9933         * gutter.c (redraw_exposed_gutters): must be "in display" when we
9934         do this.
9935
9936 2000-03-24  Andy Piper  <andy@xemacs.org>
9937
9938         * redisplay-output.c (compare_runes): use image_instance_changed
9939         to detect changes. Do not depend on glyphs_changed, only depend on
9940         dirtiness.
9941          (redisplay_output_layout): add debug messages.
9942         (compare_runes): ditto.
9943
9944         * glyphs.h: declare new functions.
9945         (struct Lisp_Image_Instance): remove percent and associated
9946         accessors.
9947
9948         * gui.h: declare new copying functions.
9949
9950         * gui.c (copy_gui_item_tree): new function.
9951         (copy_gui_item): new function.
9952         (gui_item_id_hash): revert to standard hash.
9953         (gui_item_hash): ditto.
9954         (gui_item_hash_internal): deleted.
9955         (mark_gui_item): mark value.
9956         (gui_item_add_keyval_pair): add value.
9957         (gui_item_init): ditto.
9958         (gui_add_item_keywords_to_plist): ditto.
9959         (gui_item_equal): ditto.
9960         (syms_of_gui): add Q_value.
9961
9962         * glyphs-x.c (x_progress_gauge_update): use pending items and
9963         value for setting the state.
9964         (x_update_widget): don't set items from pending here.
9965
9966         * glyphs-widget.c (update_widget): update items here.
9967         (progress_gauge_set_property): use items for storing value. Put
9968         new value in pending items.
9969
9970         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
9971         items for new value. Convert percent -> value.
9972         (mswindows_tab_control_update): don't update items here.
9973
9974         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
9975         (update_subwindow): ditto.
9976         (image_instance_changed): new function. Compare hash values and
9977         past and present widget items.
9978         (image_instantiate): We more careful about where we instantiate
9979         things.
9980         (image_instantiate): add error checking.
9981
9982         * gutter.c (syms_of_gutter): use -hook.
9983
9984 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
9985
9986         * console-tty.c (Fset_console_tty_input_coding_system): Use
9987         Qkeyboard.
9988         (Fset_console_tty_output_coding_system): Use Qterminal.
9989         (tty_init_console): Use Qkeyboard and Qterminal.
9990
9991 2000-03-21  Ben Wing  <ben@xemacs.org>
9992
9993         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
9994         From Mike Alexander <mta@arbortext.com>.
9995
9996 2000-03-21  Ben Wing  <ben@xemacs.org>
9997
9998         * event-msw.c (mswindows_need_event): Horrible kludge to fix
9999         process brokenness.  Proper implementation to come.
10000         * callproc.c:
10001         Rename call-process-internal to old-call-process-internal.
10002         New impl. in process.el.
10003
10004 2000-03-21  Martin Buchholz  <martin@xemacs.org>
10005
10006         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
10007
10008 2000-03-20  Andy Piper  <andy@xemacs.org>
10009
10010         * glyphs.c (full_list_hash): make hashes of the same elements in
10011         different orders return different values.
10012
10013 2000-03-20  Martin Buchholz <martin@xemacs.org>
10014
10015         * XEmacs 21.2.32 is released.
10016
10017 2000-03-20  Martin Buchholz  <martin@xemacs.org>
10018
10019         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
10020         (DFC_MALLOC_USE_CONVERTED_DATA):
10021         Add aliasing-safe casts to allow use with char* or unsigned char*
10022         lvalues.
10023
10024         * eldap.c (Fldap_open):
10025         (Fldap_search_basic):
10026         (Fldap_add):
10027         (Fldap_modify):
10028         Make C++-compilable.
10029         Make sure GCPRO'ed variables are initialized.
10030         Use temp variables to avoid repeated calls to Flength.
10031
10032 2000-03-16  Martin Buchholz  <martin@xemacs.org>
10033
10034         * sysfile.h:
10035         Make sure PATH_MAX is always defined.
10036         Include limits.h for PATH_MAX.
10037         Deprecate use of MAXPATHLEN.
10038
10039 2000-03-10  Martin Buchholz  <martin@xemacs.org>
10040
10041         * emacs.c: Add reinit_vars_of_fileio.
10042         * symsinit.h: Add reinit_vars_of_fileio.
10043         * fileio.c (reinit_vars_of_fileio): New.
10044         * fileio.c (Fmake_temp_name):
10045         Initialize temp_name random number from microseconds to make
10046         collisions even less likely.  Initialize always at process startup
10047         time.  (make-temp-name) used to return the same file name twice in
10048         a row when PDUMP.
10049         Random stylistic fiddling.
10050         Comment fixes.
10051
10052 2000-03-20  Andy Piper  <andy@xemacs.org>
10053
10054         * glyphs.c (image_instantiate): allow text glyphs to be
10055         instantiated in the minibuffer window.
10056
10057 2000-03-19  Andy Piper  <andy@xemacs.org>
10058
10059         * glyphs.c (image_instance_hash): be careful about which items we
10060         hash on.
10061
10062         * glyphs-widget.c (tab_control_set_property): record into pending
10063         items rather than the actual items.
10064
10065         * glyphs-x.c (x_update_widget): use pending items to update with.
10066
10067         * glyphs-msw.c (mswindows_tab_control_update): use pending items
10068         to update with.
10069
10070         * glyphs.c (mark_image_instance): mark pending items.
10071
10072         * window.c (Fset_window_configuration): record the buffer.
10073         (Fselect_window): totally revert previous change which breaks many
10074         things.
10075
10076 2000-03-18  Andy Piper  <andy@xemacs.org>
10077
10078         * glyphs-msw.c (mswindows_tab_control_update): force selected
10079         item.
10080
10081         * glyphs.c (image_instantiate): don't allow the minibuffer as a
10082         window domain cache, otherwise we get inconsistencies at
10083         startup. There is something fishy at startup which can lead to the
10084         minibuffer being the selected window when the gutter content is
10085         instantiated.
10086
10087         * gui.c (parse_gui_item_tree_list): add probably unnecessary
10088         gcpros.
10089         (parse_gui_item_tree_children): ditto.
10090         (parse_gui_item_tree_item): ditto.
10091
10092         * glyphs.c (Fupdate_widget_instances): return something.
10093
10094 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
10095
10096         * window.c (Fselect_window): Undo 2000-03-17 change.
10097
10098 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
10099
10100         * postgresql.c (Fpq_setenv): Remove this turkey when linking
10101         against v7.0 libraries.  Insta-coredump city until the postgres
10102         folks fix it.
10103
10104 2000-03-17  Andy Piper  <andy@xemacs.org>
10105
10106         * faces.c (complex_vars_of_faces): don't give the widget face an
10107         inherited background pixmap.
10108
10109         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
10110         selected item.
10111
10112         * event-stream.c (Fdispatch_non_command_events): return something.
10113
10114         * gutter.c (output_gutter): use widget face.
10115         (clear_gutter): ditto.
10116
10117         * NEWS: adjust again.
10118
10119         * window.c (Fselect_window): make sure this runs to completion to
10120         avoid oddities with Fset_window_configuration.
10121         (Fcurrent_window_configuration): in general do not save the
10122         minibuffer as the selected window.
10123
10124         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
10125
10126 2000-03-16  Olivier Galibert  <galibert@pobox.com>
10127
10128         * emacs.c (Frunning_temacs_p): Revert previous patch.
10129         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
10130
10131 2000-03-16  Andy Piper  <andy@xemacs.org>
10132
10133         * glyphs-x.c (x_tab_control_update): if no widget values then
10134         return.
10135
10136         * NEWS: update for new features.
10137
10138         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
10139         synthetic event to the native system.
10140         (reinit_vars_of_event_Xt): set force_event_pending to
10141         emacs_Xt_force_event_pending.
10142
10143         * events.h (struct event_stream): add force_event_pending.
10144
10145         * specifier.c (recompute_one_cached_specifier_in_window): add
10146         comment.
10147
10148         * redisplay.c (redisplay_frame): don't call
10149         update_frame_subwindows. Reset subwindow cachels when
10150         subwindows_changed, removing this was an optimization too far.
10151
10152         * redisplay-output.c (compare_runes): reorganize so that we catch
10153         glyph changes when we want them. Set optimize_output when this
10154         would help layouts.
10155         (redisplay_output_layout): remove frame_really_changed, use
10156         optimize_output instead.
10157
10158         * redisplay-msw.c (mswindows_output_display_block): reset
10159         optimize_output after outputting a glyph.
10160         * redisplay-x.c (x_output_display_block): ditto.
10161         * redisplay-tty.c (tty_output_display_block): ditto.
10162
10163         * gutter.c: (specifier_vars_of_gutter): use new spec changed
10164         functions.
10165         (gutter_specs_changed): do specific gutter positions.
10166         (top_gutter_specs_changed): new function. Only update the
10167         specified gutter specs.
10168         (bottom_gutter_specs_changed): ditto.
10169         (left_gutter_specs_changed): ditto.
10170         (right_gutter_specs_changed): ditto.
10171
10172         * gui.c (gui_item_hash_internal): new function, does a real hash.
10173         (gui_item_id_hash): use it.
10174         (gui_item_hash): hash the eval'ed gui_item.
10175
10176         * gui-x.c (popup_selection_callback): send an eval event to call
10177         Fupdate_widget_instances.
10178
10179         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
10180         to call Fupdate_widget_instances.
10181
10182         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
10183         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
10184
10185         * glyphs.c: (update_frame_subwindows): deleted.
10186         (Fupdate_widget_instances): new function for updating the dirty
10187         state of widgets that might have changed.
10188         (syms_of_glyphs): add Qupdate_widget_instances.
10189         (full_list_hash): hash a list completely.
10190         (image_instance_hash): use it for items and properties.
10191
10192         * frame-msw.c (mswindows_size_frame_internal): remove unused
10193         variable.
10194
10195         * faces.h (struct face_cachel): fix comment.
10196
10197         * event-stream.c (Fdispatch_non_command_events): new
10198         function. Process non-command events, forcing an event cycle
10199         beforehand.
10200         (syms_of_event_stream): declare.
10201         (event_stream_force_event_pending): new function. Force an event
10202         on the native event queue so that an event cycle will occur next
10203         time we check.
10204
10205         * event-msw.c:
10206         (struct ntpipe_shove_stream):
10207         (mswindows_enqueue_dispatch_event):
10208         (mswindows_dequeue_dispatch_event):
10209         (mswindows_cancel_dispatch_event):
10210         (mswindows_pump_outstanding_events):
10211         (mswindows_drain_windows_queue):
10212         (mswindows_handle_paint):
10213         (mswindows_wnd_proc):
10214         (mswindows_key_to_emacs_keysym):
10215         (get_process_input_waitable):
10216         (emacs_mswindows_delete_stream_pair): re-indent file.
10217         (mswindows_need_event): do not process further fds if the windows
10218         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
10219         fixes the 100% cpu problem.
10220         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
10221
10222 2000-03-15  Olivier Galibert  <galibert@pobox.com>
10223
10224         * alloc.h: New.
10225         * dumper.h: New.
10226         * dumper.c: New.
10227
10228         * emacs.c: Moved dump file searching to dumper.c.
10229         (Frunning_temacs_p): Fixed.
10230
10231         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
10232         last_lrecord_type_index_assigned.
10233
10234 2000-02-20  Olivier Galibert  <galibert@pobox.com>
10235
10236         * symsinit.h: Added reinit parameter to init_console_stream
10237         declaration.
10238
10239         * lisp.h: Added file parameter to pdump_load declaration.
10240
10241         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
10242         support.  Added dump file searching.
10243
10244         * config.h.in: Added EMACS_PROGNAME.
10245
10246         * console-stream.c (init_console_stream): Fix reinitialisation
10247         when running from temacs.
10248
10249         * alloc.c (pdump): Add id support.
10250         (pdump_load): Add file parameter and signature/id support.
10251
10252         * Makefile.in.in: Add full pdump support.
10253
10254 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
10255
10256         * postgresql.c: Update documentation to reflect latest code
10257         status.
10258         (print_result): Show tuple counts in printed representation when
10259         appropriate.
10260         (Fpq_put_nbytes): MULE-ize.
10261         (Fpq_get_line_async): Ditto.
10262
10263 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
10264
10265         * postgresql.c (Fpq_lo_import): Fix return value.
10266         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
10267
10268 2000-03-13  Ben Wing  <ben@xemacs.org>
10269
10270         * alloc.c (pdump_load):
10271         Fix compile warning under mswin.
10272
10273 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
10274
10275         * postgresql.c: Mule-ization, bug fixes.
10276         Use PG_CODING to encapsulate coding system name changes.
10277         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
10278         (pg-coding-system): Create.
10279
10280         (Fpq_conn_defaults): Mule-ize.
10281         (Fpq_connectdb): Mule-ize & bug fix.
10282         (Fpq_connect_start): Mule-ize.
10283         (Fpq_set_client_encoding): Mule-ize.
10284         (Fpq_finish): Document `DEAD' connection status.
10285         (Fpq_clear): Ditto.
10286         (Fpq_pgconn): Mule-ize.
10287         (Fpq_exec): Mule-ize & bug fix.
10288         (Fpq_send_query): Ditto.
10289         (Fpq_get_result): Ditto.
10290         (Fpq_res_status): Mule-ize.
10291         (Fpq_result_error_message): Mule-ize.
10292         (Fpq_ntuples): fix comments.
10293         (Fpq_fname): Mule-ize.
10294         (Fpq_fnumber): Mule-ize.
10295         (Fpq_ftype): fix comments.
10296         (Fpq_get_value): Mule-ize.
10297         (Fpq_cmd_status): Ditto.
10298         (Fpq_cmd_tuples): Ditto.
10299         (Fpq_oid_value): Ditto.
10300         (Fpq_notifies): Ditto.
10301         (Fpq_lo_import): Ditto.
10302         (Fpq_lo_export): Ditto.
10303         (Fpq_get_line): Ditto.
10304         (Fpq_put_line): Mule-ize and bug fix.
10305         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
10306
10307 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
10308
10309         * postgresql.c (vars_of_postgresql): Mule-ize.
10310         (Fpq_conn_defaults): Ditto.
10311
10312 2000-03-12  Ben Wing  <ben@xemacs.org>
10313
10314         * alloc.c (Fmake_byte_code):
10315         * alloc.c (debug_string_purity_print):
10316         * alloc.c (pdump_backtrace):
10317         * alloc.c (pdump_get_indirect_count):
10318         * alloc.c (pdump_register_sub):
10319         * alloc.c (pdump_register_object):
10320         * alloc.c (pdump_register_struct):
10321         * alloc.c (pdump_dump_data):
10322         * alloc.c (pdump_reloc_one):
10323         Minor cleanups.
10324
10325         * console-msw.c:
10326         * console-msw.c (GetConsoleHwnd):
10327         * console-msw.c (msw_hide_console):
10328         * console-msw.c (msw_show_console):
10329         * console-msw.c (msw_ensure_console_buffered):
10330         * console-msw.c (msw_output_console_string):
10331         * console-msw.c (console_type_create_mswindows):
10332
10333         a) Added functions to manipulate the console window for use with
10334         shell support.
10335
10336         b) Added support for writing text to the console, which is now
10337         used under Windows when xemacs is not being run non-interactively,
10338         to write text that would otherwise be destined for stdout because
10339         under these circumstances, text written to stdout tends to
10340         disappear and not be seen.
10341
10342         * console-msw.h:
10343         * event-Xt.c:
10344         * event-Xt.c (x_event_to_emacs_event):
10345         * event-Xt.c (describe_event_window):
10346         * events-mod.h (XEMACS_MOD_CONTROL):
10347         * events.c:
10348         * events.c (Fmake_event):
10349         * events.c (character_to_event):
10350         * events.c (event_to_character):
10351         * events.c (format_event_object):
10352         * events.c (Fevent_modifiers):
10353         * events.h:
10354         * events.h (struct key_data):
10355         * events.h (struct button_data):
10356         * events.h (struct misc_user_data):
10357         * frame-x.c (Fcde_start_drag_internal):
10358         * frame-x.c (Foffix_start_drag_internal):
10359         * gpmevent.c (Freceive_gpm_event):
10360         * keymap.c:
10361         * keymap.c (bucky_sym_to_bucky_bit):
10362         * keymap.c (control_meta_superify):
10363         * keymap.c (make_key_description):
10364         * keymap.c (keymap_lookup_directly):
10365         * keymap.c (create_bucky_submap):
10366         * keymap.c (keymap_store):
10367         * keymap.c (define_key_check_and_coerce_keysym):
10368         * keymap.c (define_key_parser):
10369         * keymap.c (define_key_alternate_name):
10370         * keymap.c (Fdefine_key):
10371         * keymap.c (raw_lookup_key_mapper):
10372         * keymap.c (struct map_keymap_unsorted_closure):
10373         * keymap.c (map_keymap_unsorted_mapper):
10374         * keymap.c (map_keymap_sort_predicate):
10375         * keymap.c (map_keymap_sorted):
10376         * keymap.c (accessible_keymaps_mapper_1):
10377         * keymap.c (where_is_recursive_mapper):
10378         * keymap.c (describe_map_mapper):
10379         * keymap.c (describe_map_sort_predicate):
10380         * keymap.c (describe_map):
10381         * keymap.c (complex_vars_of_keymap):
10382         And a number of other files, the key modifier preprocessor
10383         constants that xemacs uses have names that conflict with constants
10384         defined under MS Windows for other purposes, so they were renamed
10385         to begin with the prefix XEMACS_. The variables that hold such
10386         modifiers were changed to consistently be of type int to fix
10387         various compile warnings.
10388
10389         * console.c (complex_vars_of_console):
10390         * device.c:
10391         * device-msw.c:
10392         * device-msw.c (mswindows_finish_init_device):
10393         * device-msw.c (msw_get_workspace_coords):
10394         * device-msw.c (mswindows_device_system_metrics):
10395         and various other files, added support for a new
10396         device property called offset-workspace which returns the position
10397         of the upper left corner of the workspace area and goes along with
10398         the existing size-workspace property.
10399
10400         * dialog-msw.c:
10401         * dialog-msw.c (push_bufbyte_string_as_unicode):
10402         * dialog-msw.c (mswindows_popup_dialog_box):
10403         Added support for XEmacs-style accelerator specifications in
10404         button text.  Note: I didn't add support for this under X Windows,
10405         and somebody needs to do this.
10406
10407         * dialog.c:
10408         * dialog.c (Fpopup_dialog_box):
10409         Documented the support for accelerators that was just mentioned.
10410
10411         editfns.c (get_home_directory): Changed behavior under Windows
10412         when HOME not defined; former behavior was irretrievably broken.
10413
10414         * emacs.c:
10415         * emacs.c (main_1):
10416         * emacs.c (main):
10417         * minibuf.c (clear_echo_area_internal):
10418         * minibuf.c (echo_area_append):
10419         * print.c:
10420         * print.c (std_handle_out_external):
10421         * print.c (std_handle_out_va):
10422         * print.c (fatal):
10423         * print.c (write_string_to_stdio_stream):
10424         * print.c (output_string):
10425         * print.c (debug_print):
10426         * print.c (debug_backtrace):
10427         * print.c (debug_short_backtrace):
10428         Cleaned up the code that prints text to stdout so that this can be
10429         changed to output into a console window instead under MS Windows,
10430         as described above.
10431
10432         * eval.c:
10433         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
10434         * eval.c (internal_catch):
10435         * eval.c (unwind_to_catch):
10436         * eval.c (throw_or_bomb_out):
10437         * eval.c (condition_case_1):
10438         * eval.c (signal_1):
10439         * eval.c (check_error_state_sanity):
10440         * eval.c (call_with_suspended_errors_1):
10441         * eval.c (call_with_suspended_errors):
10442         * eval.c (reinit_vars_of_eval):
10443         Added code to catch throw loops and check for a pesky bug that may
10444         be gone now.
10445
10446         * event-msw.c:
10447         * event-msw.c (key_needs_default_processing_p):
10448         * event-msw.c (mswindows_wnd_proc):
10449         * event-msw.c (mswindows_modifier_state):
10450         * event-msw.c (emacs_mswindows_quit_p):
10451         * event-msw.c (vars_of_event_mswindows):
10452         a) Added support for using the alt key to select menu items as is
10453         standard under MS Windows.  This is controlled using the variable
10454         menu-accelerator-enabled, just like under X Windows.  There is an
10455         option on the options menu to turn this support on.  I really
10456         think that it should be on by default under Windows, but I'm not
10457         going to make this change yet.
10458
10459         b)  Added support for dynamic display size changes under Windows.
10460
10461         * event-stream.c:
10462         * event-stream.c (maybe_echo_keys):
10463         * event-stream.c (Fnext_event):
10464         * event-stream.c (command_builder_find_leaf):
10465         * event-stream.c (lookup_command_event):
10466         * event-stream.c (execute_command_event):
10467         * event-stream.c (pre_command_hook):
10468         * event-stream.c (post_command_hook):
10469         * event-stream.c (syms_of_event_stream):
10470         * event-stream.c (vars_of_event_stream):
10471         * event-stream.c (complex_vars_of_event_stream):
10472         * events.h (struct command_builder):
10473
10474         a) Tried to clean up a little bit the horribly written x-specific
10475         accelerator code that crept into this file.  I moved this code
10476         into menubar-x.c where it belongs. I also needed to move the
10477         command builder structure into the file events.h because it is
10478         accessed directly by this accelerator code.  What I didn't do, but
10479         which should be done at some point, is to properly abstract this
10480         code using device methods instead of the kludgy way that it
10481         currently hooks into the event code.
10482
10483         b) Added the lisp variables this-command-properties and
10484         last-command- properties, which should be used to synchronize two
10485         adjacent commands in preference to playing games with the variable
10486         this-command, which is typically what happens.
10487
10488         c) Added some slightly nasty code to hook into the lisp support
10489         for shifted- motion-key selection.  This is actually necessary for
10490         somewhat complicated reasons, which are described in
10491         simple.el. (NB: I think the proper thing would be to have the code
10492         that calls the pre and post command hooks also call out to generic
10493         lisp functions in simple.el, where all built-in stuff could be
10494         added.  I will think about this more.)
10495
10496         * event-unixoid.c (poll_fds_for_input):
10497         * lread.c (readchar):
10498         * redisplay-tty.c (tty_clear_frame):
10499         * redisplay-x.c (x_get_gc):
10500         * signal.c (interrupt_signal):
10501         And a whole bunch of other files: fixed up places that printed
10502         directly to stderr to instead call the function stderr_out so that
10503         the changes I made under Windows work correctly.
10504
10505         * filemode.c (mode_string):
10506         Warning fixes.
10507
10508         * frame-msw.c:
10509         * frame-msw.c (mswindows_size_frame_internal):
10510         Fixed the computation of frame size and position to keep the frame
10511         within the workspace area, rather than within the physical
10512         dimensions of the screen, so that the frame doesn't overlap window
10513         manager decorations, such as the start menu and toolbar, typically
10514         at the bottom of the screen.
10515
10516         * frame.c (vars_of_frame):
10517         Changed the default frame title format under MS Windows to consist
10518         of buffername-XEmacs, which is standard under MS Windows.  I think
10519         it might be a good idea to change this everywhere because I think
10520         it is superior to the current frame title format, but this is the
10521         kind of change that is likely to cause some people to get annoyed,
10522         so I'm not making it.
10523
10524         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
10525
10526         * gui-msw.c (mswindows_handle_gui_wm_command):
10527         Fixed compile warnings.
10528
10529         * gui-x.c:
10530         * gui-x.c (strdup_and_add_accel):
10531         * gui-x.c (button_item_to_widget_value):
10532         * gui-x.h:
10533         Added code to automatically put an accelerator onto the beginning
10534         of menu items that don't have one as is now the standard, and is
10535         described more later.  Also fixed things so that the menu item
10536         name can be an evaluated expression, again a new standard.
10537
10538         * gui.c:
10539         * gui.c (gui_item_add_keyval_pair):
10540         * gui.c (make_gui_item_from_keywords_internal):
10541         * gui.c (gui_add_item_keywords_to_plist):
10542         * gui.c (gui_item_accelerator):
10543         * gui.c (gui_name_accelerator):
10544         * gui.c (gui_item_included_p):
10545         * gui.c (gui_item_display_flush_left):
10546         * gui.c (gui_item_display_flush_right):
10547         * gui.c (parse_gui_item_tree_item):
10548         * gui.c (parse_gui_item_tree_children):
10549         * gui.c (parse_gui_item_tree_list):
10550         Mule-ized.  Cleanup.  GCPRO addition.
10551
10552         * line-number.c (buffer_line_number):
10553         * lisp.h:
10554         * lisp.h (EMACS_INT_MAX):
10555         Added the manifest constant EMACS_INT_MIN corresponding to the
10556         existing constant EMACS_INT_MAX.  This is partially to fix compile
10557         warnings under Windows, and partly for cleanliness.
10558
10559         * menubar-msw.c:
10560         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
10561         * menubar-msw.c (msw_translate_menu_or_dialog_item):
10562         * menubar-msw.c (displayable_menu_item):
10563         * menubar-msw.c (populate_menu_add_item):
10564         * menubar-msw.c (populate_or_checksum_helper):
10565         * menubar-msw.c (populate_menu):
10566         * menubar-msw.c (update_frame_menubar_maybe):
10567         * menubar-msw.c (prune_menubar):
10568         * menubar-msw.c (msw_char_is_accelerator):
10569         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
10570         * menubar-msw.c (mswindows_handle_wm_command):
10571         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
10572         * menubar-msw.c (mswindows_handle_wm_initmenu):
10573         * menubar-msw.c (mswindows_update_frame_menubars):
10574         * menubar-msw.c (mswindows_free_frame_menubars):
10575         * menubar-msw.c (mswindows_popup_menu):
10576         Fixed a bug in handling accelerators where an extra character
10577         would be displayed in the menu item.  Also generalized the
10578         function displayable_menu_item because it is now used by the
10579         dialog box code as well.  And finally, added code in the functions
10580         that create the menubar to extract a list of accelerators for the
10581         top level menubar, which is used in the event code to determine
10582         whether a particular alt-key combination should be used to invoke
10583         a menu item, or should be passed through to access the standard
10584         XEmacs keymap binding for this key combination.
10585
10586         Much needed GCPROing.
10587
10588         * menubar-x.c:
10589         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10590         * menubar-x.c (menu_item_descriptor_to_widget_value):
10591         * menubar-x.c (restore_in_menu_callback):
10592         * menubar-x.c (x_popup_menu):
10593         * menubar-x.c (menu_move_up):
10594         * menubar-x.c (menu_move_down):
10595         * menubar-x.c (menu_move_left):
10596         * menubar-x.c (menu_move_right):
10597         * menubar-x.c (menu_select_item):
10598         * menubar-x.c (command_builder_operate_menu_accelerator):
10599         * menubar-x.c (menu_accelerator_junk_on_error):
10600         * menubar-x.c (command_builder_find_menu_accelerator):
10601         * menubar-x.c (Faccelerate_menu):
10602         * menubar.h:
10603         Moved a whole bunch of code here that was previously in
10604         event-stream.c as described above.  There is also code connected
10605         to the new standard of adding an accelerator to the beginning of
10606         menu items that don't have one as described above and below.
10607
10608         * menubar.c:
10609         * menubar.c (menu_parse_submenu_keywords):
10610         * menubar.c (Fmenu_find_real_submenu):
10611         * menubar.c (Fnormalize_menu_item_name):
10612         * menubar.c (syms_of_menubar):
10613         * menubar.c (vars_of_menubar):
10614         * menubar.c (complex_vars_of_menubar):
10615
10616         a) Cleaned up a bunch of documentation and improved it.
10617
10618         b) XEmacs now automatically adds an accelerator onto the beginning
10619         of any menu items that don't have one.  I did this because there
10620         will inevitably be some menu items on the main menubar that don't
10621         have accelerators on them because the package that adds that
10622         particular menu item hasn't yet been fixed up to have accelerators
10623         in them and it looked rather strange to have some items with and
10624         some items without accelerators, especially since even in items
10625         without accelerators, you can, at least under windows, still
10626         access the item through an accelerator corresponding to the first
10627         character in the item's name.  If people don't like this behavior,
10628         I can add a variable to turn it off optionally, but I'm not sure
10629         this is a good idea because we really do need to have accelerators
10630         on all of the menu items, and if a package doesn't like the
10631         accelerators being put on the first character, then it should put
10632         the accelerators where they belong.
10633
10634         c) I made a behavior change, which is that the descriptor that
10635         specifies the text of the menu item, which formerly was just a
10636         string, can now also be an evaluated expression.  This makes this
10637         descriptor parallel with all of the others, which could also be
10638         evaluated expressions.  This also obviates the need for the
10639         keyword :label, which was previously listed in the documentation
10640         as unimplemented, and which was for the same purpose.
10641
10642         d) GCPROing.
10643
10644         * ntproc.c:
10645         * ntproc.c (new_child):
10646         * ntproc.c (sys_spawnve):
10647         * ntproc.c (find_child_console):
10648         * ntproc.c (sys_kill):
10649         Fixed compile warnings.  By the way, this file should really go
10650         away entirely, and this will happen as soon as Kirill makes his
10651         final round of process cleanups, which affect the function
10652         call-process.
10653
10654         * process-nt.c:
10655         * process-nt.c (struct nt_process_data):
10656         * process-nt.c (find_process_from_pid):
10657         * process-nt.c (send_signal_the_nt_way):
10658         * process-nt.c (enable_child_signals):
10659         * process-nt.c (find_child_console):
10660         * process-nt.c (send_signal_the_95_way):
10661         * process-nt.c (nt_finalize_process_data):
10662         * process-nt.c (ensure_console_window_exists):
10663         * process-nt.c (nt_create_process):
10664         * process-nt.c (nt_kill_child_process):
10665         * process-nt.c (nt_kill_process_by_pid):
10666         * process-nt.c (nt_open_network_stream):
10667         * process-nt.c (vars_of_process_nt):
10668         Copied over code from Emacs 20.5 to correctly send signals to sub-
10669         processes under Windows 95.  Also added code to automatically
10670         create and hide console window when a sub-process is created under
10671         Windows 95, which obviates the need for the separate runemacs.exe
10672         executable, and finally implemented some variables that were
10673         implemented in Emacs 20.5, but previously not in XEmacs.  These
10674         include mswindows- start-process-share-console and
10675         mswindows-start-process-inherit-error-mode. (Both of these only
10676         apply to Windows 95.)
10677
10678         * regex.c (regex_compile): Fixed a compile warning.
10679
10680         * select-msw.c:
10681         * select-msw.c (mswindows_own_selection):
10682         * select-msw.c (mswindows_get_foreign_selection):
10683         * select-msw.c (mswindows_disown_selection):
10684         * select-msw.c (console_type_create_select_mswindows):
10685         * select-msw.c (syms_of_select_mswindows):
10686         Cleaned up the file and implemented the device method
10687         selection_exists_p, which had accidentally been left out.  Also
10688         removed four lisp functions that were remnants from before the
10689         time when the selection code was properly device abstracted.
10690         These functions are no longer needed because there are generic
10691         equivalents, and because they were added recently and don't exist
10692         in FSF Emacs, I don't think there's any problem with just deleting
10693         them.
10694
10695         * sysdep.c:
10696         * sysdep.c (sys_subshell):
10697         Fixed a compile warning, although in this case there's probably
10698         something wrong with this code, and it ought to be looked into
10699         more thoroughly by somebody who understands it.
10700
10701         * window.c:
10702         * window.c (Fwindow_text_area_height):
10703         * window.c (Fwindow_width):
10704         * window.c (Fwindow_full_width):
10705         * window.c (Fwindow_pixel_width):
10706         * window.c (debug_print_window):
10707         * window.c (syms_of_window):
10708         Added functions window-text-area-height and window-full-width,
10709         which are functions for returning various width and height
10710         characteristics of a window. (One of these functions is necessary
10711         for making the file dialog box work correctly, and the other one
10712         was added for completeness.)  Also added a table to the
10713         documentation for window-height which describes the entire scheme
10714         for accessing width and height characteristics of a window.
10715
10716 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10717
10718         * nt.c (fstat): Added a comment for another problem with
10719         non-encapsulated [f]stat(), reported by Adrian Aichner
10720         <aichner@ecf.teradyne.com>.
10721
10722 2000-03-11  Andy Piper  <andy@xemacs.org>
10723
10724         * window.c (make_dummy_parent): initialize subwindow instance
10725         cache.
10726         (Fset_window_configuration): zero extent_modiff.
10727
10728 2000-03-10  Andy Piper  <andy@xemacs.org>
10729
10730         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
10731         more changes can be triggered.
10732         (Fredisplay_frame): ditto.
10733         (Fredraw_device): ditto.
10734         (Fredisplay_device): ditto.
10735         (redisplay_frame): make non-static.
10736         (redisplay_frame): call update_frame_gutter_geometry outside of
10737         display proper.
10738
10739         * gutter.h: declare update_frame_gutter_geometry.
10740
10741         * redisplay.h: declare redisplay_frame.
10742
10743         * gutter.c (update_frame_gutter_geometry): move geometry changes
10744         in update_frame_gutters here. Geometry changes can only occur
10745         outside of redisplay.
10746         (update_frame_gutters): remove geometry change code.
10747         (Fredisplay_gutter_area): make sure that we are in display when we
10748         update and that we have flushed any size changes.
10749
10750 2000-03-11  Andy Piper  <andy@xemacs.org>
10751
10752         * alloc.c (pdump_dump_data): remove i & count shadows.
10753
10754 2000-02-27  Mike Alexander  <mta@arbortext.com>
10755
10756         * sysdep.h: Declare pdump_read_file
10757
10758         * sysdep.c (pdump_read_file): New function
10759
10760         * alloc.c (pdump_load): Call pdump_read_file to get the portable
10761         dump data
10762
10763 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
10764
10765         * lrecord.h: add `lrecord_type_pgsetenv'.
10766
10767 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
10768
10769         * symsinit.h: declare (vars|syms)_of* functions.
10770         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
10771
10772 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
10773
10774         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
10775
10776         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
10777         GCCs.
10778
10779         * emacs.c (main_1): Call postgres initialization code.
10780
10781         * postgresql.h: New file.  PostgreSQL RDBMS support.
10782         * postgresql.c: New file.
10783
10784 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
10785
10786         * redisplay-output.c (redisplay_output_display_block): Disable
10787         redundant code.
10788
10789 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
10790
10791         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
10792         (Fcanna_henkan_next): Ditto.
10793         (Fcanna_bunsetu_henkou): Ditto.
10794         (Fcanna_henkan_kakutei): Ditto.
10795         (Fcanna_henkan_end): Ditto.
10796         (Fcanna_henkan_quit): Ditto.
10797         (Fcanna_henkan_next): Set retun value correctly.
10798         (c2mu): Use unsigned char instead of signed char.
10799
10800 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
10801
10802         * emacs.c (main_1): Always call syms_of_gui.
10803         * inline.c: include gui.h
10804
10805 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
10806
10807         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
10808         converted to Lisp_Object.
10809         (Qtop_bottom): New variable.
10810         (syms_of_redisplay): Initialize it.
10811         * redisplay.h (Vvisible_bell): Ditto.
10812         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
10813         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
10814         only flash top and bottom.
10815
10816 2000-03-08  Andy Piper  <andy@xemacs.org>
10817
10818         * buffer.c (Frename_buffer): record new buffer name the right way.
10819
10820 2000-03-08  Andy Piper  <andy@xemacs.org>
10821
10822         * glyphs.c (update_subwindow): increase hash depth so that widget
10823         items get picked up properly.
10824
10825         * redisplay-output.c (compare_runes): increase hash depth so that
10826         widget items get picked up properly.
10827
10828 2000-03-08  Andy Piper  <andy@xemacs.org>
10829
10830         * gutter.c (output_gutter): add some debug.
10831
10832         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
10833         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
10834         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
10835
10836         * redisplay-output.c (compare_runes): use display_hash to
10837         determine if glyphs really are not the same.
10838
10839         * glyphs.c (update_subwindow): check display_hash to see if
10840         anything really needs to be updated. If not then do
10841         nothing. Record the display_hash after updating.
10842         (image_instance_equal): compare the image_instance face also.
10843
10844 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
10845
10846         * redisplay.h: Fix comment style.
10847
10848 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10849
10850         * consle-msw.h (struct mswindows_frame):
10851         Added new member paint_pending to indicate whether a WM_PAINT
10852         magic event has been queued for this frame.
10853
10854         * event-msw.c (mswindows_drain_windows_queue):
10855         Don't queue a WM_PAINT magic event if one is already queued.
10856         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
10857
10858         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
10859
10860 2000-03-07  Didier Verna  <didier@xemacs.org>
10861
10862         * dired.c: #include `regex.h' after `sysfile.h'.
10863
10864 2000-03-06  Martin Buchholz  <martin@xemacs.org>
10865
10866         * sound.c (init_nas_sound): Fix compiler warning.
10867
10868         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
10869         (FREE_STRUCT_P):
10870         (MARK_STRUCT_AS_FREE):
10871         (MARK_STRUCT_AS_NOT_FREE):
10872         Make `gcc -fstrict-aliasing' work properly.
10873
10874 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10875
10876         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
10877         (mswindows_delete_device): Call CoUnnitialize().
10878
10879         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
10880
10881 2000-02-25    <CraigL@DyCon.com>
10882
10883         * process-nt.c: MinGW now has <shellapi.h>, but still needs
10884         <errno.h>.
10885
10886         * sysdep.c: This extern declaration for environ prevents MinGW
10887         from finding the variable in CRTDLL.DLL.
10888
10889         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
10890         windows headers.
10891         (SHGFI_EXETYPE): ..
10892         (WM_MOUSEWHEEL): ..
10893         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
10894         definitions.
10895         (MMRESULT): Removed, now defined in cygwin's windows headers.
10896         (TIMECAPS): ..
10897         (uid_t,gid_t,pid_t,ssize_t): ..
10898         (_timeb): Removed, MinGW defines both _timeb and timeb.
10899         (HAVE_H_ERRNO): Added.
10900         (HAVE_TZNAME): Added, configure is not detecting this.
10901
10902 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
10903
10904         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
10905         * syntax.c (syntax_match): Use it.
10906
10907         * cmds.c: Import auto-fill-chars from FSF Emacs.
10908         (Vauto_fill_chars): New variables.
10909         (internal_self_insert): Check Vauto_fill_chars.
10910         (vars_of_cmds):
10911         Declare auto-fill-chars as a Lisp variable and initialize it.
10912
10913 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10914
10915         * fileio.c (Fmake_symbolic_link):
10916         (Ffile_symlink_p):
10917         Run handlers even if local machine doesn't have symlinks.
10918
10919 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10920
10921         * event-msw.c (mswindows_drain_windows_queue):
10922         Don't generate paint magic events for non-XEmacs frames.
10923
10924 2000-03-05  Andy Piper  <andy@xemacs.org>
10925
10926         * redisplay.c (redisplay_frame): generate_displayable_area and
10927         friends assumes that we are not in GC, we therefore have to make
10928         sure that this doesn't happen.
10929
10930         * gutter.c (calculate_gutter_size): generate_displayable_area
10931         assumes that we are not in GC, we therefore have to make sure that
10932         this doesn't happen.
10933
10934 2000-03-05  Martin Buchholz  <martin@xemacs.org>
10935
10936         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
10937
10938 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
10939
10940         * redisplay.c (regenerate_window): Make sure we set a sane value
10941         for end_pos even if we jump out of the loop.
10942         (regenerate_window): Answer Ben's question :-).
10943         (start_end_of_last_line): Add may_error argument.
10944         (start_of_last_line):
10945         (end_of_last_line): Pass may_error = 0.
10946         (end_of_last_line_may_error): New function.
10947         (pixel_to_glyph_translation): Use it, so we don't crash in
10948         event_to_glyph.
10949
10950 2000-03-04  Andy Piper  <andy@xemacs.org>
10951
10952         * window.h (struct window): add gutter_extent_modiff.
10953
10954         * window.c (allocate_window): zero out gutter_extent_modiff.
10955
10956         * redisplay.h: declare sync_display_line_structs.
10957
10958         * redisplay.c (add_glyph_rune): add a better comment.
10959
10960         * redisplay-output.c (sync_display_line_structs): made non-static.
10961         (compare_runes): remove unneccesary glyph cachel access.
10962
10963         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
10964
10965         * gutter.c (output_gutter): don't output the gutter if extent
10966         changes only involve extents in buffers. use 4 sets of display
10967         lines.
10968         (gutter_extent_signal_changed_region_maybe): new function. Mark
10969         extents in gutters as changed.
10970         (update_frame_gutters): use 4 sets of display lines.
10971         (reset_gutter_display_lines): ditto.
10972         (free_frame_gutters): ditto.
10973         (redraw_exposed_gutter): force output of gutters.
10974
10975         * frame.h (struct frame): add 4 sets of gutter display lines.
10976
10977         * extents.c: (extent_changed_for_redisplay): signal changes to
10978         extents in strings in the gutter as well as extents in buffers.
10979
10980 2000-03-02  Andy Piper  <andy@xemacs.org>
10981
10982         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
10983
10984         * frame.c (Fmake_frame): make sure the gutters get initialized
10985         after the frame is visible.
10986         (set_frame_selected_window): re-arrange compilation macros a
10987         little.
10988         (change_frame_size_1): mark gutters changed.
10989
10990         * device.c (Fset_device_class): mark gutters changed.
10991
10992 2000-03-01  Andy Piper  <andy@xemacs.org>
10993
10994         * window.c (window_top_frame_gutter_height): deleted.
10995         (window_bottom_frame_gutter_height): ditto.
10996         (window_left_frame_gutter_height): ditto.
10997         (window_right_frame_gutter_height): ditto.
10998         (window_top_gutter_height): don't use them.
10999         (window_bottom_gutter_height): ditto.
11000         (window_left_gutter_width): ditto.
11001         (window_right_gutter_width): ditto.
11002         (Fsplit_window): ditto.
11003         (Fwindow_pixel_edges): don't use border dimensions here.
11004
11005         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
11006         (update_scrollbar_instance): ditto.
11007
11008         * redisplay.c (generate_modeline): don't take gutters into account.
11009         (generate_modeline): ditto.
11010         (redisplay_frame): small gutter display optimization.
11011
11012         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
11013
11014         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
11015         gutters into account.
11016
11017         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
11018         for window position and type.
11019
11020         * gutter.c (get_gutter_coords): fix for frame gutters.
11021         (update_frame_gutters): update frame geometry if the gutters have
11022         changed.
11023         (init_frame_gutters): record current gutter geometries.
11024
11025         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
11026         var.
11027         (mswindows_widget_instantiate): ditto.
11028
11029         * frame.h (struct frame): add current_gutter_bounds.
11030
11031         * frame.c (change_frame_size_1): position window and minibuffer
11032         appropriately taking into account the frame gutters.
11033
11034         * frame-x.c: (x_initialize_frame_size): take into account the
11035         frame gutters.
11036
11037 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
11038
11039         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
11040
11041 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
11042
11043         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
11044
11045 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
11046
11047         * file-coding.c (reset_decoding_stream): Clear previous
11048         detection state when autodetect.
11049
11050 2000-02-29  Didier Verna  <didier@xemacs.org>
11051
11052         * extents.c (set_extent_glyph_1): don't require extents to be
11053         attached.
11054
11055 2000-02-27  Andy Piper  <andy@xemacs.org>
11056
11057         * gutter.c (Fset_default_gutter_position): don't default left and
11058         right gutter visibility to t.
11059         (Fset_default_gutter_position): run
11060         default-gutter-position-changed-hook.
11061         (syms_of_gutter): add default-gutter-position-changed-hook.
11062
11063 2000-02-26  Andy Piper  <andy@xemacs.org>
11064
11065         * specifier.c (Fmake_specifier): add gutter references.
11066
11067         * gutter.h (RAW_WINDOW_GUTTER): new macro.
11068
11069         * lisp.h: declare Fvalid_plist_p.
11070
11071         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
11072         as changed.
11073         (default_gutter_visible_p_changed_in_window): invalidate gutter as
11074         well as its visibility so that it gets reconstructed.
11075         (construct_window_gutter_spec): new function. Construct a string
11076         to be displayed in the gutter from a plist of strings. Take care
11077         to only use elements that are declared as visible.
11078         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
11079         WINDOW_GUTTER.
11080         (gutter_validate): allow plists of strings in the specifier.
11081         (gutter_specs_changed): construct the real_gutter from the gutter
11082         specs using construct_window_gutter_spec.
11083         (gutter_visible_validate): gutter-visible is a new specifier type.
11084         (Fgutter_visible_specifier_p): new function for the new specifier.
11085         (syms_of_gutter): declare gutter-visible and
11086         Fgutter_visible_specifier_p.
11087         (specifier_type_create_gutter): intitalize new gutter-visible
11088         specifier.
11089         (reinit_specifier_type_create_gutter): ditto.
11090         (specifier_vars_of_gutter): use new specifier type for gutter
11091         visibility.
11092         (init_frame_gutters): construct real_gutter correctly.
11093         (Fgutter_specifier_p): beef up documentation.
11094         (Fgutter_size_specifier_p): ditto.
11095
11096         * winslots.h: add real_gutter slots.
11097
11098 2000-02-25  Andy Piper  <andy@xemacs.org>
11099
11100         * device-msw.c: Be kind to older cygwin versions. From Raymond
11101         Toy <toy@rtp.ericsson.se>.
11102
11103         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
11104         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
11105
11106 2000-02-25  Martin Buchholz  <martin@xemacs.org>
11107
11108         * elhash.c (MARK_OBJ): Practice macro hygiene.
11109
11110 2000-02-24  Martin Buchholz  <martin@xemacs.org>
11111
11112         * miscplay.c: s/__inline__/inline/g;
11113         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
11114         (get_device_compdc): INLINE ==> static inline
11115         * *.[ch]: Change INLINE to INLINE_HEADER globally.
11116         find -name '*.h' | \
11117         xargs global-replace \
11118         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
11119
11120 2000-02-25  Andy Piper  <andy@xemacs.org>
11121
11122         * window.c (window_top_frame_gutter_height): new function.
11123         (window_top_window_gutter_height): ditto.
11124         (window_top_gutter_height): use them.
11125         (window_bottom_frame_gutter_height): new function.
11126         (window_bottom_window_gutter_height): ditto.
11127         (window_bottom_gutter_height): use them.
11128         (window_left_window_gutter_width): new function.
11129         (window_left_frame_gutter_width): ditto.
11130         (window_left_gutter_width): use them.
11131         (window_right_window_gutter_width): new function.
11132         (window_right_frame_gutter_width): ditto.
11133         (window_right_gutter_width): use them.
11134         (window_pixel_height): new function. calulate window pixel height
11135         with frame gutter involvement.
11136         (Fsplit_window): calculate new sizes taking frame gutters into
11137         account.
11138         (window_char_height_to_pixel_height): don't include frame gutters.
11139         (window_char_height): use window_pixel_height.
11140         (window_pixheight): rename from window_pixel_height.
11141         (change_window_height): use it.
11142         (window_pixel_height_to_char_height): don't include frame gutters.
11143         (window_char_width_to_pixel_width): ditto.
11144
11145 2000-02-25  Andy Piper  <andy@xemacs.org>
11146
11147         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
11148         if it is.
11149
11150 2000-02-24  Martin Buchholz  <martin@xemacs.org>
11151
11152         * alloc.c (staticpro):
11153         (staticpro_nodump):
11154         (dumpstruct):
11155         (dumpopaque):
11156         (pdump_wire):
11157         (pdump_wire_list):
11158         (compact_string_chars):
11159         (pdump_dump_wired):
11160         Convert:  if (foo) abort();  ==>  assert (! foo);
11161
11162         * eldap.c (Fldap_search_basic):
11163         (Fldap_add):
11164         (Fldap_modify):
11165         (Fldap_delete):
11166         Fix compiler warnings, and possible crashes if (random) return
11167         value were to be used.
11168
11169 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11170
11171         * device-msw.c: Workaround ResetDC failure.
11172
11173         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
11174         applying a devmode.
11175
11176         * redisplay-msw.c (get_frame_dc): Added start_page_p.
11177         (mswindows_text_width): Do not start printer page.
11178
11179         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
11180
11181         * glyphs-msw.c: Added image methods to msprinter console and
11182         msprinter-specific image instantiation.
11183
11184 2000-02-20  Mike Alexander  <mta@arbortext.com>
11185
11186         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
11187         to avoid crashes when selection-sets-clipboard is on
11188         (mswindows_own_selection): ditto
11189
11190 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11191
11192         * glyphs-msw.c:
11193         * redisplay-msw.c (get_frame_dc):
11194         (get_frame_compdc):
11195         * console-msw.h:
11196         * device-msw.c (mswindows_init_device):
11197         (mswindows_delete_device):
11198         (msprinter_init_device):
11199         (msprinter_delete_device):
11200         * frame-msw.c (mswindows_init_frame_1):
11201         (mswindows_delete_frame):
11202         (msprinter_init_frame_3):
11203         (msprinter_delete_frame): Move compatible DC to device object from
11204         frame object, for both mswindows and msprinter. Only one at a time
11205         is needed, it is a real waste to have one per frame!
11206
11207 2000-02-23  Andy Piper  <andy@xemacs.org>
11208
11209         * glyphs.c: add dynamic width and height elements.
11210         (image_instance_equal): ditto.
11211
11212         * glyphs-widget.c (widget_query_geometry): calculate width and
11213         height dynamically if required.
11214         (initialize_widget_image_instance): initialize dynamic dimensions.
11215         (widget_instantiate): pick-up dynamic dimensions.
11216
11217         * glyphs.h (struct Lisp_Image_Instance): add width and height for
11218         dynamic determination. Add appropriate macros.
11219
11220         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
11221         dimensions safe.
11222         (WINDOW_GUTTER_SIZE): ditto.
11223         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
11224
11225         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
11226         inline.
11227         (get_frame_dc): ditto.
11228
11229         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
11230         here.
11231
11232 2000-02-23  Martin Buchholz <martin@xemacs.org>
11233
11234         * XEmacs 21.2.31 is released.
11235
11236 2000-02-22  Ben Wing <ben@xemacs.org>
11237
11238         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
11239
11240 2000-02-22  Andy Piper  <andy@xemacs.org>
11241
11242         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
11243
11244 2000-02-21  Mike Sperber <mike@xemacs.org>
11245
11246         * .dbxrc:
11247         * .gdbinit:
11248         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
11249         variables.
11250
11251 2000-02-21  Mike Sperber <mike@xemacs.org>
11252
11253         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
11254
11255 2000-02-21  Martin Buchholz <martin@xemacs.org>
11256
11257         * XEmacs 21.2.30 is released.
11258
11259 2000-02-20  Martin Buchholz  <martin@xemacs.org>
11260
11261         Performance hacking.
11262         * *.c (syms_of_*):
11263         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
11264         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
11265         * emacs.c (main_1):
11266         * lisp.h (DEFUN):
11267         * console.c (DEFVAR_CONSOLE_LOCAL_1):
11268         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
11269         * symeval.h (DEFVAR_SYMVAL_FWD):
11270         * symbols.c (guts_of_unbound_marker):
11271         Make all c_readonly objects also lisp_readonly and marked for life.
11272         * lrecord.h (struct lrecord_implementation):
11273         Document flags better.
11274         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
11275         * lrecord.h (DECLARE_LRECORD):
11276         * lrecord.h (XSETRECORD):
11277         * lrecord.h (RECORDP):
11278         * lrecord.h (RECORD_TYPEP):
11279         * lrecord.h (RECORD_MARKER): New.
11280         * lrecord.h (error_check_*):
11281         * lrecord.h (CONCHECK_NONRECORD):
11282         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
11283         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
11284         * lrecord.h (set_lheader_implementation):
11285         * lrecord.h (enum lrecord_type): New.
11286         * symeval.h (SYMBOL_VALUE_MAGIC_P):
11287         * alloc.c (disksave_object_finalization_1):
11288         * alloc.c (mark_object):
11289         * alloc.c (lrecord_type_index):
11290         * alloc.c (tick_lcrecord_stats):
11291         * alloc.c (Fgarbage_collect):
11292         * alloc.c (init_alloc_once_early):
11293         * alloc.c (pdump_load):
11294         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
11295         * alloc.c (lrecord_type_index): Delete.
11296         Make lisp object type indexes be constant.
11297           Makes (byte-compile) 5% faster.
11298         Put all marker functions into their own array.
11299           Makes (garbage-collect) 5% faster.
11300         Optimize SYMBOL_VALUE_MAGIC_P.
11301           Makes (byte-compile) 2-3% faster.
11302         * config.h.in (gc_checking_assert): New.
11303         * alloc.c: Use gc_checking_assert().
11304         * .dbxrc: Make compatible with new object type implementation.
11305         * .gdbinit: Make compatible with new object type implementation.
11306         * alloc.c: Delete all symbols defined only for debugging, such as
11307         Lisp_Type_Vector and lrecord_charset.
11308
11309 2000-02-21  Andy Piper  <andy@xemacs.org>
11310
11311         * gui-msw.c (Fmswindows_shell_execute): fix file location
11312         problems.
11313
11314         * buffer.c (Fkill_buffer): remove buffer from alist buffer
11315         unshowing so that set_window_buffer doesn't undo
11316         kill_buffer_hook's hard work.
11317
11318         * glyphs-widget.c (tab_control_query_geometry): don't count the
11319         first item when calculating geometry.
11320
11321         * glyphs.c (map_subwindow): remove redundant code.
11322         (update_frame_subwindows): be more circumspect about when to
11323         update subwindows.
11324
11325         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
11326         when items haven't changed. Update faces if faces have changed as
11327         well as just the widget face.
11328         (x_tab_control_update): Update faces if faces have changed as well
11329         as just the widget face.
11330
11331 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11332
11333         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
11334         registration.
11335         (build_syscolor_string): Use mswindows_color_to_string to try to
11336         get a named color.
11337         (mswindows_device_system_metrics): Reverse the foreground and
11338         background colors so that they match the documentation.
11339
11340         * objects-msw.c: (mswindows_X_color_map): tweak some values so
11341         they match the default Windows palette.
11342         (mswindows_color_to_string): New function.
11343
11344 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11345
11346         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
11347
11348 2000-02-18  Olivier Galibert  <galibert@pobox.com>
11349
11350         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
11351         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
11352
11353         * symbols.c (init_symbols_once_early): Removed obsolete
11354         DATA_SEG_BITS related kludge.
11355         (defvar_magic): Ditto.
11356
11357         * malloc.c: Removed obsolete DATA_SEG_BITS
11358         * ralloc.c: Ditto.
11359         * mem-limits.h: Ditto.
11360
11361         * Makefile.in.in: Removed obsolete HAVE_SHM
11362         * emacs.c: Ditto.
11363
11364 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11365
11366         *  device-msw.c (mswindows_delete_device): Free DDE string
11367         handles.
11368
11369 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11370
11371         * keymap.c (get_keyelt):
11372         * unexnt.c (unexec):
11373         * vm-limit.c (memory_warnings):
11374         * ntheap.c (recreate_heap):
11375         * ntheap.h (UNINIT_PTR):
11376         * select-msw.c (Fmswindows_get_clipboard):
11377         (Fmswindows_set_clipboard):
11378         * objects-msw.h (MSWINDOWS_BAD_HFONT):
11379         * objects-msw.c:
11380         * menubar-msw.c (displayable_menu_item):
11381         * glyphs-msw.c:
11382         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
11383         * sysdep.c (sys_subshell):
11384         * process-nt.c (nt_create_process):
11385         * nt.c (normalize_filename):
11386         (dostounix_filename):
11387         (unixtodos_filename):
11388         * ntproc.c (win32_executable_type):
11389         * ntplay.c (play_sound_data_1):
11390         (play_sound_file):
11391         * editfns.c (get_home_directory):
11392         * event-msw.c (struct winsock_stream):
11393         (mswindows_dde_callback):
11394         * device-msw.c (msprinter_init_device):
11395         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
11396
11397         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
11398         mswindows_clear_toolbar were swapped!
11399
11400         * objects-msw.c:(colormap_t):
11401         (fontmap_t):
11402         * emacs.c (struct standard_args): Fixed const jumble.
11403
11404         * glyphs-widget.c (update_widget): Fixed comparison notation.
11405
11406         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
11407
11408         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
11409         __declspec(noreturn) syntax.
11410
11411 2000-02-19  Martin Buchholz  <martin@xemacs.org>
11412
11413         * eldap.c (Fldap_open):
11414         (Fldap_search_basic):
11415         (Fldap_add):
11416         (Fldap_modify):
11417         Use new coding system conversion macros.
11418
11419 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
11420
11421         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
11422
11423 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
11424
11425         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
11426         (Fldap_add, Fldap_modify, Fldap_delete): New functions
11427
11428         * eldap.c (Qadd, Qreplace): New constant symbols
11429         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
11430         interruptions by XEmacs signals
11431         Remove unnecessary calls to slow_down_interrupts and
11432         speed_up_interrupts
11433         (Fldap_search_basic): Renamed from Fldap_search_internal
11434         Added new optional parameter VERBOSE that triggers the
11435         display of progress messages
11436         Remove unnecessary calls to slow_down_interrupts and
11437         speed_up_interrupts
11438         LDAP result code analysis rewritten
11439         (Fldap_add, Fldap_modify, Fldap_delete): New functions
11440         (syms_of_eldap): Define the new symbols and functions
11441
11442
11443 2000-02-17  Martin Buchholz  <martin@xemacs.org>
11444
11445         * realpath.c: Determine PATH_MAX maximally portably.
11446
11447         * insdel.c (bytecount_to_charcount): Optimize.
11448         The function used to be optimized for entirely ASCII sequences.
11449         Now it is optimized for successive characters from the same
11450         charset.  This also wins big for _mostly_ ASCII sequences.
11451
11452         * fileio.c (Ffile_truename): convert return from realpath() using
11453         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
11454         - Rewrite GCPROing slightly.
11455
11456         * sysdep.c (sys_open): Do filename conversion, like all other
11457         sys_* functions.  Fixes bug:
11458         (let ((file-name-coding-system 'iso-8859-2))
11459            (write-region x y latin2-name))
11460         ==> writes filename using internal encoding.
11461
11462 2000-02-18  Martin Buchholz  <martin@xemacs.org>
11463
11464         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
11465         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
11466         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
11467         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
11468         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
11469         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
11470         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
11471         (CONST_IF_NOT_DEBUG): Delete.
11472         * alloc.c (this_one_is_unmarkable): Delete.
11473         (mark_object): Don't check for this_one_is_unmarkable. Use the
11474         c_readonly flag instead.
11475         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
11476
11477 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11478
11479         * event-msw.c (mswindows_drain_windows_queue):
11480         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
11481         away redundant repaint events.
11482
11483 2000-02-17  Andy Piper  <andy@xemacs.org>
11484
11485         * redisplay.h: declare mark_redisplay_structs.
11486
11487         * redisplay.c (redisplay_window):
11488         (redisplay_frame): don't check subwindows_state_changed.
11489         (mark_redisplay): mark gutters here.
11490
11491         * glyphs.c: (instantiate_image_instantiator): always layout if we
11492         haven't done so already.
11493         (allocate_image_instance): don't mark as dirty.
11494         (update_subwindow): bind inhibit_quit.
11495
11496         * gutter.c (mark_gutters): new function.
11497
11498         * glyphs-x.c (x_update_widget): Always resize to get round a
11499         widget bug.
11500
11501         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
11502         breaking absolutely everything.
11503
11504         * gutter.h: declare mark_gutters.
11505
11506 2000-02-16  Martin Buchholz <martin@xemacs.org>
11507
11508         * XEmacs 21.2.29 is released.
11509
11510 2000-02-15  Olivier Galibert  <galibert@pobox.com>
11511
11512         * fns.c (size_bit_vector): Fix computation of the size.
11513
11514 2000-02-15  Martin Buchholz  <martin@xemacs.org>
11515
11516         * *.[ch]: Change CONST to const globally.
11517         find -name '*.[ch]' | \
11518         xargs global-replace \
11519         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
11520         - Remove vestigial references to CONST_IS_LOSING
11521
11522 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11523
11524         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
11525         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
11526         events instead of dispatching them directly.
11527         (mswindows_handle_paint): New function to do repainting.
11528         (mswindows_wnd_proc):
11529         (emacs_mswindows_handle_magic_event): Call above function.
11530
11531 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11532
11533         * objects-msw.c (mswindows_create_font_variant): Return the new
11534         font handle.
11535         (initialize_font_instance): Get font metrics from the underlined
11536         variant of the font to cope with the case where the underlined
11537         font has a bigger descent.
11538
11539 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
11540
11541         * gui.c (gui_item_accelerator): Return the first underlined
11542         character in item name.
11543
11544 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11545
11546         * lisp.h: Added Qprinter.
11547
11548         * general.c (syms_of_general): Initialized it.
11549
11550         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
11551         (get_frame_dc):
11552         (get_frame_compdc): Made inline.
11553
11554         * console.h (struct console_methods): Added eject_page method.
11555
11556         * frame.h: Added FRAME_DISPLAY_P and friends.
11557         Aligned backslahes in many macros in more readable fashion.
11558         Added page_number to struct frame, and an accessor macro
11559         for it.
11560
11561         * defice.h: Added DEVICE_DISPLAY_P and friends.
11562
11563         * device.c (Fdevice_printer_p): Used these.
11564
11565         * frame.c (allocate_frame_core): Initialize page number.
11566         (Fprint_job_page_number):
11567         (Fprint_job_eject_page): Implemented.
11568
11569         * frame-msw.c (msprinter_eject_page): Added method.
11570         (msprinter_start_page): Added.
11571
11572         * window.c (Fwindow_truncated_p): Fixed docstring.
11573         (Fwindow_last_line_visible_height): Implemented.
11574
11575 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
11576
11577         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
11578
11579 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
11580
11581         * syntax.c (scan_words): Always advance at least one character.
11582
11583 2000-02-13  Andy Piper  <andy@xemacs.org>
11584
11585         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
11586         to make sure the glyph is in the cachels.
11587
11588         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
11589         global image instance flag.
11590         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
11591         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
11592
11593         * glyphs.c (allocate_image_instance): set dirty bits correctly.
11594         (Fset_image_instance_property): mark layout as changed.
11595         (invalidate_glyph_geometry_maybe): mark layout as changed.
11596         (glyph_width): use new NEEDS_LAYOUT macro.
11597         (glyph_ascent): ditto.
11598         (glyph_descent): ditto.
11599         (glyph_height): ditto.
11600         (image_instance_layout): mark layout as clean after laying out.
11601         (update_subwindow): don't mark layout as clean here.
11602
11603         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
11604         should no longer be needed.
11605
11606         * glyphs-x.c (x_update_widget): sanitize asserts.
11607         (x_finalize_image_instance): sanitize assignment to widgets.
11608
11609         * glyphs-widget.c (widget_instantiate): don't need to clear the
11610         layout flag here.
11611
11612 2000-02-13  Martin Buchholz  <martin@xemacs.org>
11613
11614         * sysdep.c (getcwd): Use standard prototype.
11615         * sysdep.h (getcwd): Use standard prototype.
11616
11617         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
11618         (sequence, start, end).
11619         Remove redundant type checking.
11620         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
11621         view of `caller-protects') to avoid a crash where the real fix was
11622         found elsewhere.
11623
11624 2000-02-12  Martin Buchholz  <martin@xemacs.org>
11625
11626         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
11627
11628         * s/sol2.h: Remove feature macro initialization.
11629
11630         * alloc.c (alloc_lcrecord): Add more type checking assertions.
11631         (vector_hash): New.  Code from internal_hash.
11632         * lrecord.h:
11633         Fix up allocation subsystem comments.
11634
11635         * config.h.in: Add __EXTENSIONS__ for Solaris.
11636
11637         * systime.h (EMACS_GETTIMEOFDAY): New.
11638         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
11639         Remove Solaris-specific code.
11640         Use void* for the (ignored) second arg for gettimeofday().
11641
11642         * elhash.c (hash_table_hash): Implement it, finally.
11643         * elhash.c:  Use hashcode_t.
11644
11645         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
11646         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
11647
11648         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
11649         * fns.c (size_bit_vector):
11650         * alloc.c (size_vector):
11651         (make_vector_internal):
11652         (make_bit_vector_internal):
11653         (sweep_bit_vectors_1):
11654         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
11655
11656 2000-02-10  Martin Buchholz  <martin@xemacs.org>
11657
11658         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
11659         Include strings.h to avoid warnings for bzero and strcasecmp.
11660
11661 2000-02-10  Olivier Galibert  <galibert@pobox.com>
11662
11663         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
11664         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
11665
11666         * fns.c (size_bit_vector): New.  Declare bit vectors as a
11667         sequence.
11668
11669 2000-02-10  Olivier Galibert  <galibert@pobox.com>
11670
11671         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
11672         use a value field instead.
11673         (symbol_value_forward_forward): Use value field.
11674         (DEFVAR_SYMVAL_FWD): Use value field.
11675         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
11676         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
11677         (DEFVAR_CONST_INT): Ditto.
11678         (DEFVAR_BOOL): Ditto.
11679         (DEFVAR_CONST_BOOL): Ditto.
11680         (DEFVAR_INT_MAGIC): Ditto.
11681         (DEFVAR_BOOL_MAGIC): Ditto.
11682
11683         * symbols.c (guts_of_unbound_marker): Use value field.
11684         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
11685         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
11686
11687         * lisp.h: Declare dumpopaque and noninteractive1.
11688
11689         * alloc.c (dumpopaque): Added.
11690         (pdump_dump_opaquevec): Added.
11691         (pdump): Call pdump_dump_opaquevec to dump opaque data.
11692         (pdump_load): Reload opaque data.  Sync noninteractive1 with
11693         noninteractive.
11694
11695 2000-02-10  Andy Piper  <andy@xemacs.org>
11696
11697         * glyphs.c (image_instance_layout): if the size changes, mark it
11698         as such.
11699
11700         * redisplay-output.c (redisplay_output_layout): Update the
11701         subwindow here.
11702         (redisplay_output_subwindow): ditto.
11703
11704         * glyphs.c (update_subwindow): make sure we reset flags for
11705         layouts as well as everything else.
11706
11707         * glyphs-widget.c (layout_layout): don't need to set the instances
11708         dimensions here.
11709
11710 2000-02-09  Martin Buchholz  <martin@xemacs.org>
11711
11712         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
11713         not HAVE_DLOPEN, which is a lower-level thing.
11714
11715         * .cvsignore: Ignore gmon.out
11716
11717 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
11718
11719         * .cvsignore: Ignore portable dumper xemacs.dmp file
11720
11721 2000-02-09  Andy Piper  <andy@xemacs.org>
11722
11723         * redisplay-output.c (redisplay_output_layout): be more clever
11724         about when we output based on the changed flags.
11725
11726         * glyphs.h (struct image_instantiator_methods): add update_method.
11727         (struct Lisp_Image_Instance): add changed flags. Declare new
11728         macros for manipulating them.
11729
11730         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
11731         (image_instance_parent_glyph): find an image_instance's parent
11732         glyph or image_instance.
11733         (image_instance_layout): mark the size as changed.
11734         (set_image_instance_dirty_p): new function. mark an image
11735         instance, plus all of its parents, as dirty.
11736         (Fset_image_instance_property): use it.
11737         (Fglyph_animated_timeout_handler): use it.
11738         (update_subwindow): call update_widget and device methods for
11739         update_subwindow. Mark all changed flags as clean.
11740         (Fresize_subwindow): mark size as changed.
11741
11742         * glyphs-x.c (x_finalize_image_instance): try and detect gc
11743         failures.
11744         (x_update_subwindow): only resize subwindows here.
11745         (x_update_widget): new function. Update all changed properties of
11746         a widget.
11747         (x_resize_subwindow): deleted.
11748         (x_widget_set_property): deleted.
11749         (x_progress_gauge_set_property): deleted.
11750         (x_progress_gauge_update): new function. Implement recorded
11751         changes.
11752         (x_tab_control_update): ditto.
11753         (x_tab_control_set_property): deleted.
11754         (console_type_create_glyphs_x): declare new functions.
11755         (image_instantiator_format_create_glyphs_x): ditto.
11756
11757         * glyphs-widget.c (widget_set_property): mark text changed.
11758         (update_widget): new function. Update properties of a widget.
11759         (widget_instantiate): for layouts make sure we set their
11760         children's parent correctly.
11761         (tab_control_set_property): new function. Record changes that will
11762         take place under redisplay's control.
11763         (progress_gauge_set_property): ditto.
11764         (image_instantiator_progress_guage): declare new functions.
11765         (image_instantiator_tab_control): ditto.
11766
11767         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
11768         now.
11769         (mswindows_update_widget): new function. Update all properties on
11770         a widget that have changed.
11771         (mswindows_button_update): new function. Update a button's set
11772         state.
11773         (mswindows_tab_control_update): new function. Update the items in
11774         a tab.
11775         (mswindows_tab_control_set_property): deleted.
11776         (mswindows_progress_gauge_update): new function. Update the
11777         progress gauge's progress.
11778         (mswindows_widget_set_property): deleted. This is all done
11779         asynchronously now.
11780         (mswindows_progress_gauge_set_property): ditto.
11781         (console_type_create_glyphs_mswindows): declare new methods.
11782         (image_instantiator_format_create_glyphs_mswindows): ditto.
11783
11784         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
11785         (msprinter_set_frame_properties): ditto.
11786
11787         * console.h (struct console_methods): Add update_widget_method.
11788
11789 2000-02-09  Andy Piper  <andy@xemacs.org>
11790
11791         * gui-msw.c (Fmswindows_shell_execute): Make
11792         mswindows-shell-execute industrial strength.
11793
11794 2000-02-08  Martin Buchholz  <martin@xemacs.org>
11795
11796         * lrecord.h: Make macro argument `props' match member function `plist'.
11797         * fns.c (Fget):
11798         * fns.c (Fput):
11799         * fns.c (Fremprop):
11800         * fns.c (Fobject_plist):
11801         * alloc.c:
11802         * symbols.c:
11803         Object property list frobbing cleanup.
11804         - Allow any lisp object (compared with `eq'), not just symbols, as
11805           keys in object plists.
11806         - Move symbol plist frobbing into symbols.c, where it belongs.
11807         - Move string plist frobbing into alloc.c, where it belongs.
11808         - Everything's an lrecord now, so no need to test for symbolp, etc.
11809         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
11810
11811         * extents.c: Reorder code to remove declarations.
11812
11813         * frame.h (store_in_alist): Remove useless declaration.
11814
11815 2000-02-07  Martin Buchholz  <martin@xemacs.org>
11816
11817         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
11818         * config.h.in: Add HAVE_XCONVERTCASE.
11819
11820 2000-02-07  Andy Piper  <andy@xemacs.org>
11821
11822         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
11823         it breaks many things.
11824
11825 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
11826
11827         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
11828         actually can start a common comment type.
11829         * src/syntax.h (SYNTAX_END_P): ditto for end.
11830
11831 2000-02-07  Martin Buchholz <martin@xemacs.org>
11832
11833         * XEmacs 21.2.28 is released.
11834
11835 2000-02-06  Martin Buchholz  <martin@xemacs.org>
11836
11837         * event-Xt.c (x_keysym_to_character): New.
11838         (maybe_define_x_key_as_self_inserting_character): New.
11839         (x_has_keysym): New.
11840         Auto-define all keys on the keyboard as self-insert-key.
11841
11842 2000-02-02  Martin Buchholz  <martin@xemacs.org>
11843
11844         * menubar.c (vars_of_menubar): A small code simplification.
11845
11846         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
11847
11848         * ExternalShell.c:
11849         * ExternalClient.c:
11850         * EmacsShell-sub.c:
11851         * EmacsManager.c:
11852         * EmacsFrame.c:
11853         Use consistent style for specifying X resources.
11854
11855         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
11856         This makes (dontusethis-set-symbol-value-handler) actually usable.
11857
11858         * lrecord.h (lrecord_decription_type):
11859         * alloc.c (pdump_register_sub):
11860         (pdump_dump_data):
11861         (pdump_reloc_one):
11862         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
11863         Comply with XEmacs coding style.
11864         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
11865         args, and XD_LISP_OBJECT_ARRAY with 3 args.
11866
11867         * keymap.c (Faccessible_keymaps):
11868         Make (accessible-keymaps map "\C-h") do the Right Thing.
11869         Make (accessible-keymaps map []) do the Right Thing.
11870         Make (accessible-keymaps map "") do the Right Thing.
11871         (check_keymap_definition_loop): New function.
11872         (keymap_store_internal): Keep luser from shooting self in foot,
11873           via (define-key ctl-x-4-map "p" global-map).
11874         Remove fullness slot from struct Lisp_Keymap, since hash tables
11875         are now reliable.
11876         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
11877
11878 2000-01-30  Martin Buchholz  <martin@xemacs.org>
11879
11880         * redisplay.c (init_redisplay): Fix small memory leak.
11881         * elhash.h:
11882         * elhash.c (pdump_reorganize_hash_table):
11883         Rename from reorganize_hash_table. Change prototype.
11884         Reuse the original memory for hentries.  Save 100k.
11885         * alloc.c (PDUMP_READ): new macro.
11886         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
11887         * alloc.c: No need to #ifndef before #undef.
11888
11889         * print.c: Allow debug_print() to print readably by modifying
11890         debug_print_readably.  Use consistent variable names.
11891
11892         * .dbxrc: Try to get things to work even if stopped in a function
11893         without source available by explicitly specifying source files.
11894 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11895
11896         * unexnt.c (_start): Removed bogus code which caused loading heap
11897         from differrent executable file.
11898         Removed bogus assignment to _fmode, which caused inconsistencies.
11899
11900 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11901
11902         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
11903         Have spawnve encapsulation regard DONT_ENCAPSULATE.
11904         Do not preliminary `#define signal sigset'.
11905
11906         * systime.h: Do not prototype environ on windows nt and cygwin,
11907         this conflicts with system header.
11908
11909         * syssignal.h: Use correct define for WINDOWSNT
11910
11911         * sysdep.h: Do not prototype environ on windows nt, this conflicts
11912         with system header.
11913
11914         * sysdep.c (near start of file): Fixed commentary and rearranged
11915         ifdefs in readable order.
11916         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
11917         (start_of_text):
11918         (end_of_text):
11919         (end_of_data): Do not compile in if using PDUMP.
11920
11921         * symsinit.h: Prototyped vars_of_nt().
11922
11923         * ntproc.c (windows9x_p): Added, instead of os_subtype.
11924         (find_child_console): Use it.
11925         (sys_kill): Use it.
11926
11927         * ntheap.h: Do not extern os_subtype.
11928
11929         * ntheap.c (cache_system_info): Do not cache unneeded:
11930         nt_major_version, nt_minor_version and os_subtype.
11931         (recreate_heap): Do not compile in when PDUMPing.
11932
11933         * nt.c (geteuid and friends): Use the new varibale
11934         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
11935         (init_user_info): Removed the above mentioned hackery.
11936         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
11937         stat has been fixed in the C runtime.
11938         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
11939
11940         * file-coding.c (struct file_coding_dump): Do not define
11941         ucs_to_mule_table in the struct if not MULE.
11942         (struct struct lrecord_description fcd_description_1): Do not dump
11943         the above.
11944
11945         * emacs.c (main_1): Call vars_of_nt().
11946         (right before Fdump_emacs_data): Don't need lastfile if using both
11947         portabe dumper and system malloc.
11948
11949         * alloc.c (Fmemory_limit): Conditionalized out.
11950         (pdump): Use OPEN_BINARY for the portable dump file.
11951         (pdump_load): Ditto.
11952
11953 2000-02-02  Mike Alexander  <mta@arbortext.com>
11954
11955         * nt.c (convert_time): Set tm_isdst before calling mktime and
11956         avoid calling it at all if the compiler supports 64 bit integers.
11957         Also initialize utc_base_ft before using it.
11958
11959 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
11960
11961         * frame.c (change_frame_size_1): Take f->internal_border_width
11962         into consideration when calculating the width of the frame.
11963
11964 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11965
11966         * window.c (frame_min_height):
11967         (frame_size_valid_p):
11968         (frame_pixsize_valid_p): Added.
11969         (check_frame_size): Generalized.
11970
11971         * window.h: Prototyped the above.
11972
11973         * lisp.h:
11974         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
11975         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
11976         Deleted Vwin32_* and Vbinary_process_* unused variables.
11977
11978         * device-msw.c (msprinter_init_device): Do not get printer font
11979         list; Added DEVMODE functions.
11980
11981         * frame-msw.c: Added lots of printer code.
11982
11983         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
11984         general.c.
11985
11986         * console-msw.h: Added more msprinter device private slots.
11987
11988 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11989
11990         * event-msw.c (key_needs_default_processing_p): Added.
11991         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
11992
11993 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11994
11995         * glyphs.c (image_instance_layout): Mark image instance as clean
11996         after layout.
11997         (glyph_dirty_p): Removed redundant function.
11998         (invalidate_glyph_geometry_maybe): Added.
11999         (update_glyph_cachel_data): Call it.
12000
12001         * glyphs.h: Prototyped it.
12002
12003         * redisplay.c (add_glyph_rune): Call it.
12004         (redisplay_window): Reset glyphs cachels when frame faces have
12005         changed, thus forcing recomputation of built-in border glyphs.
12006
12007 2000-01-30  Martin Buchholz  <martin@xemacs.org>
12008
12009         * Makefile.in.in: Make portable dumper and purify play well together.
12010         Add imperfect, but better than nothing, support for pdump.
12011         Remove xemacs.dmp when temacs is re-generated.
12012         Don't ignore errors when dumping xemacs.
12013
12014         * symbols.c (maybe_call_magic_handler): Remove one magic number.
12015
12016 2000-01-28  Andy Piper  <andy@xemacs.org>
12017
12018         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
12019         (setup_normal_frame): ditto.
12020         (setup_frame_without_minibuffer): ditto.
12021         (setup_minibuffer_frame): ditto.
12022         (delete_frame_internal): ditto.
12023         (Fmake_frame_invisible): ditto.
12024         (Ficonify_frame): ditto.
12025
12026         * window.h: change Fset_window_buffer signature.
12027
12028         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
12029         (Fset_window_buffer): allow recording of buffer if the window is
12030         the selected window.
12031         (window_loop): Use new Fset_window signature.
12032
12033 2000-01-23  Daniel Pittman  <daniel@danann.net>
12034
12035         * config.h.in: Added template for `HAVE_ATHENA_3D'
12036
12037 2000-01-29  Andy Piper  <andy@xemacs.org>
12038
12039         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
12040
12041         * gutter.c (output_gutter): Don't output if the window isn't live.
12042
12043 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12044
12045         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
12046         of 01/12/00: Moved SetFocus back here where it belongs.
12047
12048 2000-01-23  Andy Piper  <andy@xemacs.org>
12049
12050         * s/cygwin32.h: declare printer things.
12051
12052 2000-01-26  Andy Piper  <andy@xemacs.org>
12053
12054         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
12055         Alexander.
12056
12057 2000-01-24  Andy Piper  <andy@xemacs.org>
12058
12059         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
12060         (mswindows_button_instantiate): Make sure glyph is a pixmap.
12061
12062         * glyphs-widget.c (widget_instantiate): Avoid shadows.
12063
12064         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
12065
12066         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
12067
12068         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
12069         (mswindows_output_display_block): Avoid local shadows.
12070
12071         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
12072         (mswindows_enqueue_mouse_button_event): ditto.
12073         (mswindows_handle_gui_wm_command): remove declaration.
12074
12075         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
12076         warnings.
12077
12078         * console-msw.h: Avoid shadows.
12079         (mswindows_get_toolbar_button_text):
12080         (emacs_mswindows_create_stream_pair):
12081         (emacs_mswindows_delete_stream_pair):
12082         (mswindows_handle_toolbar_wm_command): declare.
12083
12084         * device-msw.c (build_syscolor_string): Avoid shadows.
12085
12086 2000-01-23  Andy Piper  <andy@xemacs.org>
12087
12088         * glyphs-widget.c (widget_instantiate): reverse the items for
12089         layouts so that children are in the expected order.
12090
12091 2000-01-28  Martin Buchholz  <martin@xemacs.org>
12092
12093         * ralloc.c: safe_bcopy ==> memmove
12094         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
12095         * s/msdos.h: Remove BCOPY macros.
12096         * insdel.c (gap_right): Remove BCOPY conditional code.
12097         * insdel.c (gap_left): Remove BCOPY conditional code.
12098         XEmacs demands a working ANSI C compiler - hence memmove.
12099
12100         * regex.c (regex_compile): Remove accidental use of trigraphs.
12101
12102 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12103
12104         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
12105         event timestamp.
12106
12107 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12108
12109         * event-msw.c (mswindows_drain_windows_queue): Added the
12110         parameter.
12111         (mswindows_need_event): Commented the call to
12112         mswindows_drain_windows_queue().
12113         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
12114         only.
12115
12116         * console-msw.h: Moved a few function prototypes here from
12117         event-msw.c.
12118
12119         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
12120         parameter from unsigned short to unsigned long.
12121         (Fmswindows_shell_execute): Added return value.
12122
12123 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
12124
12125         * sysdep.c (init_system_name):
12126           process-unix.c (unix_canonicalized_host_name):
12127         Don't call freeaddrinfo() if getaddrinfo() fails.
12128
12129         * process-unix.c (unix_open_unix_network_stream):
12130         Moved the code to get a port # into address loop.
12131
12132 2000-01-27  Martin Buchholz  <martin@xemacs.org>
12133
12134         * buffer.c (reinit_vars_of_buffer):
12135         The right place to initialize conversion_in_dynarr and
12136         conversion_out_dynarr.
12137
12138         * alloc.c (pdump): Use the real open() till sys_open() is functional.
12139
12140         * process-unix.c (unix_canonicalize_host_name): Muleize.
12141         (unix_open_network_stream): Muleize.
12142
12143         * buffer.h: Fix up prototypes for ralloc.c functions.
12144
12145 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
12146         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
12147         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
12148                 instead of gethostbyname()
12149         * process-unix.c: In unix_canonicalize_host_name() and
12150                 unix_open_network_stream(), add code to use getaddrinfo()
12151                 instead of gethostbyname().
12152
12153 2000-01-27  Daniel Pittman <daniel@danann.net>
12154
12155         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
12156         libs when built with flat Athena.
12157
12158 2000-01-27  Martin Buchholz  <martin@xemacs.org>
12159
12160         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
12161         Use coding standards for function prototypes.
12162
12163 2000-01-25  Martin Buchholz  <martin@xemacs.org>
12164
12165         * dialog-msw.c (push_lisp_string_as_unicode):
12166         * doc.c (unparesseuxify_doc_string):
12167         * dired.c (Fuser_name_completion_1):
12168         * dired.c (Fuser_name_all_completions):
12169         * dired.c (free_user_cache):
12170         * dired.c (user_name_completion):
12171         * console-x.c (get_display_arg_connection):
12172         * minibuf.c (clear_echo_area_internal):
12173         * minibuf.c (echo_area_append):
12174         * eldap.c (Fldap_open):
12175         * eldap.c (Fldap_search_internal):
12176         * frame-x.c (x_set_frame_text_value):
12177         * frame-x.c (x_set_frame_properties):
12178         * frame-x.c (x_create_widgets):
12179         * redisplay-tty.c (term_get_fkeys_1):
12180         * objects-x.c (x_parse_nearest_color):
12181         * objects-x.c (x_valid_color_name_p):
12182         * objects-x.c (x_initialize_font_instance):
12183         * objects-x.c (x_list_fonts):
12184         * objects-x.c (x_find_charset_font):
12185         * tooltalk.c (Fadd_tooltalk_message_arg):
12186         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
12187         * tooltalk.c (Fadd_tooltalk_pattern_arg):
12188         * process-unix.c (unix_create_process):
12189         * ntproc.c (sys_spawnve):
12190         * sound.c (Fplay_sound_file):
12191         * sound.c (Fplay_sound):
12192         * buffer.c (init_initial_directory):
12193         * buffer.c (init_buffer):
12194         * editfns.c (init_editfns):
12195         * editfns.c (Ftemp_directory):
12196         * editfns.c (Fuser_full_name):
12197         * editfns.c (uncache_home_directory):
12198         * editfns.c (get_home_directory):
12199         * editfns.c (Fuser_home_directory):
12200         * editfns.c (Fformat_time_string):
12201         * editfns.c (Fcurrent_time_string):
12202         * gui-x.c (button_item_to_widget_value):
12203         * database.c (Fopen_database):
12204         * event-Xt.c (x_to_emacs_keysym):
12205         * event-Xt.c (x_event_to_emacs_event):
12206         * event-Xt.c (describe_event_window):
12207         * event-msw.c (mswindows_wnd_proc):
12208         * glyphs-eimage.c (jpeg_instantiate):
12209         * glyphs-eimage.c (gif_instantiate):
12210         * glyphs-eimage.c (png_instantiate):
12211         * glyphs-eimage.c (tiff_instantiate):
12212         * glyphs-x.c (xbm_instantiate_1):
12213         * glyphs-x.c (x_xbm_instantiate):
12214         * glyphs-x.c (x_xface_instantiate):
12215         * glyphs-x.c (autodetect_instantiate):
12216         * glyphs-x.c (cursor_font_instantiate):
12217         * glyphs-x.c (x_widget_instantiate):
12218         * glyphs-x.c (x_widget_set_property):
12219         * glyphs-x.c (x_widget_property):
12220         * glyphs-x.c (BUILD_GLYPH_INST):
12221         * print.c (write_string_to_stdio_stream):
12222         * print.c (output_string):
12223         * print.c (Falternate_debugging_output):
12224         * print.c (Fexternal_debugging_output):
12225         * glyphs-msw.c (extract_xpm_color_names):
12226         * glyphs-msw.c (mswindows_xpm_instantiate):
12227         * glyphs-msw.c (bmp_instantiate):
12228         * glyphs-msw.c (resource_name_to_resource):
12229         * glyphs-msw.c (mswindows_resource_instantiate):
12230         * glyphs-msw.c (xbm_instantiate_1):
12231         * glyphs-msw.c (mswindows_xbm_instantiate):
12232         * glyphs-msw.c (mswindows_xface_instantiate):
12233         * glyphs-msw.c (mswindows_widget_instantiate):
12234         * glyphs-msw.c (add_tree_item):
12235         * glyphs-msw.c (add_tab_item):
12236         * glyphs-msw.c (mswindows_combo_box_instantiate):
12237         * glyphs-msw.c (mswindows_widget_property):
12238         * glyphs-msw.c (mswindows_combo_box_property):
12239         * glyphs-msw.c (mswindows_widget_set_property):
12240         * console.c (stuff_buffered_input):
12241         * objects-msw.c (mswindows_initialize_color_instance):
12242         * objects-msw.c (mswindows_valid_color_name_p):
12243         * objects-msw.c (mswindows_list_fonts):
12244         * objects-msw.c (mswindows_font_instance_truename):
12245         * bytecode.c (optimize_compiled_function):
12246         * select-x.c (symbol_to_x_atom):
12247         * select-x.c (x_atom_to_symbol):
12248         * select-x.c (hack_motif_clipboard_selection):
12249         * select-x.c (selection_data_to_lisp_data):
12250         * select-x.c (lisp_data_to_selection_data):
12251         * select-x.c (Fx_get_cutbuffer_internal):
12252         * select-x.c (Fx_store_cutbuffer_internal):
12253         * buffer.h (TO_EXTERNAL_FORMAT): New function.
12254         * buffer.h (TO_INTERNAL_FORMAT): New function.
12255         * emacs.c (make_arg_list_1):
12256         * emacs.c (make_argc_argv):
12257         * emacs.c (main_1):
12258         * emacs.c (Fdump_emacs):
12259         * emacs.c (split_string_by_emchar_1):
12260         * file-coding.h:
12261         * lisp.h:
12262         * lstream.h:
12263         * symsinit.h:
12264         * device-x.c (x_init_device):
12265         * device-x.c (Fx_valid_keysym_name_p):
12266         * device-x.c (Fx_get_font_path):
12267         * device-x.c (Fx_set_font_path):
12268         * glyphs.c (bitmap_to_lisp_data):
12269         * glyphs.c (pixmap_to_lisp_data):
12270         * alloc.c (make_ext_string): Use coding system arguments.  Update
12271         all callers.
12272         * alloc.c (build_string):
12273         * callproc.c (child_setup):
12274         * callproc.c (init_callproc):
12275         * fileio.c (lisp_strerror):
12276         * fileio.c (directory_file_name):
12277         * fileio.c (Fexpand_file_name):
12278         * fileio.c (Ffile_truename):
12279         * fileio.c (Fsysnetunam):
12280         * fileio.c (Fdo_auto_save):
12281         * sysdep.c (sys_readdir):
12282         * tests.c: New file.  Allow adding C tests.
12283         Replace GET_* macros with a more comprehensible and flexible
12284         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
12285         Modify all calls.
12286         Any coding system can be used to do format conversion.
12287         Eliminate enum external_data_format.
12288         Eliminate convert_to_external_format.
12289         Eliminate convert_to_internal_format.
12290         Make sure file-name, keyboard, terminal, and ctext are always
12291         defined as coding systems or aliases.  Make
12292         file-name-coding-system, terminal-coding-system, and
12293         keyboard-coding-system magical variables that are equivalent to
12294         defining the corresponding coding system aliases.
12295
12296         * file-coding.c (Fcoding_system_canonical_name_p): New function.
12297         * file-coding.c (Fcoding_system_alias_p): New function.
12298         * file-coding.c (Fcoding_system_aliasee): New function.
12299         * file-coding.c (append_suffix_to_symbol): New function.
12300         * file-coding.c (dangling_coding_system_alias_p): New function.
12301         * file-coding.c (Ffind_coding_system):
12302         * file-coding.c (Fcopy_coding_system):
12303         * file-coding.c (encode_coding_no_conversion):
12304         * file-coding.c (syms_of_file_coding):
12305         * file-coding.c (vars_of_file_coding):
12306         Rewrite coding system alias code.
12307         Allow nested aliases, like symbolic links.
12308         Allow redefinition of coding system aliases.
12309         Prevent existence of dangling coding system aliases.
12310
12311         * dired.c (Fuser_name_completion_1):
12312         * dired.c (Fuser_name_all_completions):
12313         A crash would happen if user did QUIT in the middle of building
12314         user_name_cache.  Remove redundant code in mainline and unwind_protect.
12315
12316         * lisp.h:
12317         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
12318
12319         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
12320         an unsigned char *.  Update all callers.
12321
12322 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12323
12324         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
12325
12326 2000-01-25  Martin Buchholz  <martin@xemacs.org>
12327
12328         * elhash.c (hentry_description): Use more portable definition.
12329         (resize_hash_table): Initialize new hentries using
12330         xnew_array_and_zero, thereby simplifying the code.
12331
12332         * mule-charset.c (make_charset): Make sure entire object is
12333         initialized, to avoid Purify warnings.
12334
12335         * alloc.c (resize_string): Fix unlikely crash with big strings.
12336
12337 2000-01-24  Martin Buchholz  <martin@xemacs.org>
12338
12339         * realpath.c (xrealpath):
12340         Don't call getwd().
12341
12342 2000-01-25  Martin Buchholz  <martin@xemacs.org>
12343
12344         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
12345
12346 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
12347
12348         * unexelfsgi.c (unexec): Change the way we decide which segment
12349         should be extended.
12350
12351         Assumption that .bss section should be outside the PT_LOADable
12352         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
12353         it's present) is inside the 'data' segment. This would fail the
12354         test which was used to find a segment to grow and cover new
12355         heap. Instead of this assumption, I created another one - on IRIX
12356         the segment to grow should start below .bss and it's address
12357         should extent above the end of .bss. Once this segment is
12358         identified, it's grown to accommodate the new heap and new
12359         zero-length .bss section is added at the end of .data2.
12360
12361 2000-01-25  Martin Buchholz  <martin@xemacs.org>
12362
12363         * eval.c (Feval): Wrong number of arguments should use original
12364         function, not the indirect_function version of it.
12365
12366 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
12367
12368         * glyphs-x.c (x_button_instantiate): Don't add image if
12369         it is not a pixmap.
12370         (x_locate_pixmap_file): Call Fexpand_file_name when file name
12371         is relative.
12372
12373 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
12374
12375         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
12376         declaration.
12377         (DEFVAR_INT_MAGIC): Ditto.
12378         (DEFVAR_BOOL_MAGIC): Ditto.
12379         * glyphs.h: Reindent backslash.
12380
12381 2000-01-24  Martin Buchholz  <martin@xemacs.org>
12382
12383         * glyphs-widget.c (layout_query_geometry):
12384         (layout_layout): Use correct types for gheight, gwidth.
12385
12386 2000-01-24  Martin Buchholz  <martin@xemacs.org>
12387
12388         * EmacsManager.c (QueryGeometry): Purified.
12389
12390 2000-01-23  Martin Buchholz  <martin@xemacs.org>
12391
12392         * alloc.c (make_float): Make sure entire object is initialized, to
12393         avoid Purify warnings.
12394         (pdump_register_sub): Remove useless assignment.
12395         (pdump): Use xmalloc, not malloc.
12396         (pdump_load): Use xmalloc, not malloc.
12397
12398 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12399
12400         * callproc.c:
12401         * dired-msw.c:
12402         * fileio.c:
12403         * process-nt.c:
12404         * redisplay-msw.c:
12405         * sysdep.c: Removed redundant #include <windows.h>
12406
12407 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12408
12409         * frame.c (delete_frame_internal): Do not delete device when its
12410         implementation so declares.
12411         (delete_frame_internal): Set device selected frame to nil when
12412         last frame goes away.
12413
12414         * device-msw.c (msprinter_device_system_metrics): Implemented.
12415         (mswindows_device_system_metrics): Added 'device-dpi property.
12416
12417         * device.c: (Fdevice_printer_p): Added.
12418         Added 'offset-workspace device metric.
12419
12420         * console.h (device_metrics): Declared DM_offset_workspace.
12421
12422 2000-01-23  Martin Buchholz  <martin@xemacs.org>
12423
12424         * fileio.c (Ffile_truename): Remove pointless and confusing
12425         initialization of elen.
12426
12427         * glyphs-widget.c: Compiler warning fixes.
12428
12429 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
12430
12431         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
12432         instead of a Lisp_Object as argument to make it consistent with
12433         the other LIVE_P macros.
12434         (CHECK_LIVE_PROCESS): New macro.
12435
12436         * process.c: Declare Qprocess_live_p.
12437         (Fprocess_live_p): New function.
12438         (create_process): Use PROCESS_LIVE_P.
12439         (read_process_output): Ditto.
12440         (set_process_filter): Ditto.
12441         (Fdelete_process): Ditto.
12442         (kill_buffer_processes): Ditto
12443         (process_send_signal): Use CHECK_LIVE_PROCESS.
12444         (Fprocess_input_coding_system): Check whether process is still
12445         alive (fix PR#1061).
12446         (Fprocess_output_coding_system): Ditto.
12447         (Fprocess_coding_system): Ditto.
12448         (Fset_process_input_coding_system): Ditto.
12449         (Fset_process_output_coding_system): Ditto.
12450
12451 2000-01-23  Andy Piper  <andy@xemacs.org>
12452
12453         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
12454         layout and widget.
12455
12456         * glyphs.c (mark_image_instance): take into account changed
12457         image_instance format.
12458         (image_instance_equal): ditto.
12459         (image_instance_hash): ditto.
12460
12461         * glyphs-widget.c (widget_instantiate): Incorporate layout
12462         instantiation here. Delay layout of the layout until later.
12463         (layout_instantiate): deleted.
12464         (layout_query_geometry): new function. get the geometry of a
12465         layout.
12466         (layout_layout): layout a layout dynamically.
12467         (image_instantiator_widget): New function - splitting up
12468         image_instantiator_format_create_glyphs_widget for netwinder
12469         compilation.
12470         (image_instantiator_buttons):
12471         (image_instantiator_edit_fields):
12472         (image_instantiator_combo_box):
12473         (image_instantiator_scrollbar):
12474         (image_instantiator_progress_guage):
12475         (image_instantiator_tree_view):
12476         (image_instantiator_tab_control):
12477         (image_instantiator_labels):
12478         (image_instantiator_layout): ditto.
12479         (image_instantiator_format_create_glyphs_widget): Call preceding
12480         functions.
12481
12482 2000-01-22  Martin Buchholz  <martin@xemacs.org>
12483
12484         * process.c (Fset_process_coding_system):
12485         * device-x.c (Fx_keysym_hash_table):
12486         Docstring fixes.
12487
12488         * lstream.c (Lstream_write): Return documented value, not 0.
12489
12490         * fileio.c (directory_file_name):
12491         (Fsubstitute_in_file_name):
12492         (Fsubstitute_insert_file_contents_internal):
12493         (Fwrite_region_internal):
12494         * emacs.c:
12495         * sysdep.c:
12496         * getloadavg.c:
12497         * systty.h:
12498         Remove vestigial APOLLO-conditional code.
12499
12500 2000-01-21  Martin Buchholz  <martin@xemacs.org>
12501
12502         * getpagesize.h: Add guard macros.
12503         * libsst.h: Add guard macros.
12504         * libst.h: Add guard macros.
12505         * line-number.h: Add guard macros.
12506         * ndir.h: Add guard macros.
12507         * sysfloat.h: Add guard macros.
12508         * sysfile.h: Add guard macros.
12509         * sysproc.h: Add guard macros.
12510         * syswait.h: Add guard macros.
12511         * xintrinsic.h: Add guard macros.
12512         * xintrinsicp.h: Add guard macros.
12513         * xmmanager.h: Add guard macros.
12514         * xmmanagerp.h: Add guard macros.
12515         * xmprimitive.h: Add guard macros.
12516         * xmu.h: Add guard macros.
12517         * gpmevent.h: Add copyright statement. Add guard macros.
12518         * miscplay.h: Add guard macros.
12519         * *.h: Use consistent C-standards-approved guard macro names.
12520
12521         * opaque.c (make_opaque): Switch parameter order.
12522         * opaque.h (make_opaque): Switch parameter order.
12523         Update all callers.
12524         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
12525
12526         * config.h.in (type_checking_assert): Added.
12527         (bufpos_checking_assert): Added.
12528
12529 2000-01-21  Martin Buchholz  <martin@xemacs.org>
12530
12531         * alloc.c: Harmless pdump changes.
12532         - Use countof().
12533         - spell alignment correctly.
12534         * sysdep.c: Use countof()
12535
12536 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12537
12538         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
12539         initially_selected_for_input() console method, default to 0.
12540         (semi_canonicalize_console_connection): Try to delegate to
12541         canonicalize_console_connection if no such console method.
12542         (canonicalize_console_connection): Vice versa.
12543         (print_console): Do not print nil connection.
12544
12545         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
12546         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
12547         (XDEVIMPF_FRAMELESS_OK): Added.
12548         (CONSOLE_INHERITS_METHOD): Added.
12549
12550         * console-msw.c (mswindows_canonicalize_console_connection):
12551         Added.
12552         (mswindows_canonicalize_device_connection): Added.
12553
12554         * console-msw.h (struct msprinter_device): Added this struct and
12555         accessor macros.
12556         (mswindows_device): Made fontlist a lisp object.
12557
12558         * device.c (semi_canonicalize_device_connection):  Try to delegate
12559         to canonicalize_device_connection if no such console method.
12560         (canonicalize_device_connection): Vice versa.
12561         (print_device): Do not print nil connection.
12562
12563         * device-msw.c (mswindows_init_device): Call InitCommonControls
12564         when have widgets.
12565         (mswindows_delete_device): Removed fontlist deallocation.
12566         (mswindows_mark_device): Added.
12567
12568         * events.c (event_equal): Added abort() at unreached code.
12569         (event_hash): Ditto.
12570
12571         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
12572         fallback tags of Windows devices.
12573
12574         * general.c (syms_of_general): Initialized Qmsprinter.
12575
12576         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
12577         of fallback tags of Windows devices.
12578
12579         * lisp.h: Declared Qmsprinter.
12580
12581         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
12582         of strings.
12583         (mswindows_list_fonts): Ditto.
12584         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
12585         that it can be used by both mswindows and msprinter devices.
12586         (initialize_font_instance): Added.
12587         (mswindows_initialize_font_instance): Use it.
12588         (msprinter_initialize_font_instance): Added.
12589
12590         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
12591         and implementation flags check.
12592         (redisplay_without_hooks): Changed the call to the above.
12593         (Fredraw_device): Ditto.
12594         (Fredisplay_device): Ditto.
12595
12596         * redisplay-msw.c (get_frame_dc): Implemented.
12597         (get_frame_compdc): Implemented.
12598         (many functions): Use the two functions above to get device
12599         contexts, ether for a window or a printer.
12600
12601 2000-01-21  Olivier Galibert  <galibert@pobox.com>
12602
12603         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
12604         initialization here.
12605         (init_symbols_once_early): Call it.
12606         * emacs.c (main_1): Call it.
12607         * symsinit.h: Declare it.
12608
12609 2000-01-19  Olivier Galibert  <galibert@pobox.com>
12610
12611         * alloc.c: Use a lrecord_header * in the backtrace instead of a
12612         Lisp_Object.
12613         (pdump_backtrace): Ditto.
12614         (pdump_register_object): Ditto.  Cleanup use of the pointers.
12615         (pdump_get_entry): Abort if trying to register a null pointer.
12616         (pdump_dump_data): Cleanup types when relocating.
12617         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
12618         (pdump_dump_rtables): Remove bad casts.
12619         (pdump_load): Cleanup relocation w.r.t union type.  Use a
12620         Lisp_Object instead of a EMACS_INT for the hashtable
12621         reorganization.
12622
12623 2000-01-20  Martin Buchholz  <martin@xemacs.org>
12624
12625         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
12626
12627         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
12628
12629         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
12630
12631         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
12632
12633 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12634
12635         * faces.h (FACE_STRIKETHRU_P): Added.
12636
12637         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
12638         of font variants.
12639
12640         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
12641         (mswindows_set_dc_font): New function, aware of font variants,
12642         separated from mswindows_update_dc.
12643
12644         * objects-msw.h (struct mswindows_font_instance_data): Added
12645         definition.
12646
12647         * objects-msw.c (mswindows_finalize_font_instance): Delete all
12648         cached fonts and the data structure.
12649         (mswindows_initialize_font_instance): Added creation of font data
12650         structure.
12651         (mswindows_print_font_instance): Print at least something.
12652         (mswindows_create_font_variant): Implemented.
12653         (mswindows_get_hfont): Implemented.
12654
12655 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
12656
12657         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
12658         prototyping problem with msvc.
12659
12660         * emacs.c (main_1): added syms_of_gui_mswindows() call
12661
12662         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
12663         syms_of_gui_mswindows() function
12664
12665         * symsinit.h: added the prototype for syms_of_gui_mswindows()
12666
12667 2000-01-18  Martin Buchholz <martin@xemacs.org>
12668
12669         * XEmacs 21.2.27 is released.
12670
12671 2000-01-18  Martin Buchholz  <martin@xemacs.org>
12672
12673         * glyphs-eimage.c (struct tiff_error_struct):
12674         (tiff_error_func):
12675         (tiff_warning_func):
12676         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
12677
12678         * unexmips.c:
12679         * unexhp9k3.c:
12680         * unexfreebsd.c:
12681         * unexec.c: Remove vestigial Lucid C code.
12682         * unexalpha.c:
12683         * unexaix.c:
12684         * termcap.c:
12685         * libsst.c: Ansify.
12686         Remove declarations of errno and strerror().
12687
12688         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
12689
12690         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
12691
12692 2000-01-16  Martin Buchholz  <martin@xemacs.org>
12693
12694         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
12695         Optimize.
12696
12697 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
12698
12699         * md5.c:
12700         * file-coding.c:
12701         * file-coding.h:
12702         Change enum eol_type to eol_type_t.
12703
12704 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
12705
12706         * gui.c (get_gui_callback): Check cons before accessing car.
12707
12708 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
12709
12710         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
12711         (XSETSPECIFIER_TYPE): Ditto.
12712
12713 2000-01-17  Didier Verna  <didier@xemacs.org>
12714
12715         * redisplay.c (generate_fstring_runes): compute string size in
12716         characters, not bytes.
12717
12718 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
12719
12720         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
12721
12722 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
12723
12724         * print.c (print_error_message): Call print_prepare().
12725
12726 2000-01-14  Martin Buchholz  <martin@xemacs.org>
12727
12728         * .dbxrc: Renamed from dbxrc.
12729
12730         * events.c (event_to_character):
12731         Use `assert (foo)' instead of `if (!foo) abort()'
12732
12733         * .gdbinit (xtype): Add documentation.
12734         * .gdbinit (check-temacs): New function.
12735         * .gdbinit (check-xemacs): New function.
12736         * dbxrc (check-xemacs): New function.
12737         * dbxrc (check-xemacs): New function.
12738
12739 2000-01-14  Andy Piper  <andy@xemacs.org>
12740
12741         * glyphs-widget.c (widget_query_geometry): Make sure that we
12742         calculate default dimensions correctly.
12743
12744 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12745
12746         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
12747
12748         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
12749         pdump_wire'd variable.
12750
12751         * emacs.c: (main_1): Conditionalized calls to
12752         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
12753
12754 2000-01-13  Martin Buchholz  <martin@xemacs.org>
12755
12756         * window.c (Fset_window_configuration):
12757         * sysdep.c (_start):
12758         * input-method-motif.c (res):
12759         * event-Xt.c (Xt_process_to_emacs_event):
12760         Simple compiler warning fixes.
12761
12762         * bytecode.c (funcall_compiled_function): Use the original
12763         function symbol on the backtrace list in preference to the
12764         compiled_function object in error messages.
12765
12766 2000-01-13  Andy Piper  <andy@xemacs.org>
12767
12768         * glyphs-x.c (update_widget_face): Make sure we update the widget
12769         background as well as foreground.
12770
12771 2000-01-13  Andy Piper  <andy@xemacs.org>
12772
12773         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
12774         fields to subwindow.
12775         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
12776         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
12777         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
12778         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
12779
12780         * glyphs-widget.c (check_valid_tab_orientation): new function.
12781         (initialize_widget_image_instance): zero orientation and
12782         justification.
12783         (widget_instantiate): pick up orientation.
12784         (tab_control_query_geometry): return appropriate values for
12785         vertical tabs.
12786
12787         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
12788         appropriate creation flags for left, right and bottom tabs.
12789
12790         * s/cygwin32.h: add tab definitions.
12791
12792 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12793
12794         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
12795         frame upon hiding a subwindow.
12796         (mswindows_button_instantiate): Changed the push button style to
12797         BS_PUSHBUTTON.
12798         (mswindows_button_instantiate): Removed button BS_NOTIFY
12799         style.
12800         (mswindows_button_instantiate): Removed redundant check for
12801         a disabled gui item.
12802         (mswindows_button_instantiate): Made use of WS_TABSTOP
12803         consistent: "operable" controls (edit, button, tree, scroll) have
12804         this style, "display-only" ones (static, progress gauge) do
12805         not. This style is currently ignored by XEmacs though. Also,
12806         removed the WS_EX_CONTROLPARENT style - it is not for children,
12807         it is for their parents!
12808         (mswindows_edit_field_instantiate): Ditto.
12809         (mswindows_progress_gauge_instantiate): Ditto.
12810         (mswindows_tree_view_instantiate): Ditto.
12811         (mswindows_tab_control_instantiate): Ditto.
12812         (mswindows_scrollbar_instantiate): Ditto.
12813         (mswindows_combo_box_instantiate): Ditto.
12814         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
12815         style to the "clip" window.
12816         (mswindows_button_instantiate): Removed compilation warning by
12817         equally typing terms of the ?: operator.
12818
12819 2000-01-12  Didier Verna  <didier@xemacs.org>
12820
12821         * redisplay.c (generate_fstring_runes): new parameter holding the
12822         last modeline-format extent.
12823         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
12824         extent, fill the glyph block with it.
12825         (generate_fstring_runes): handle these parameters.
12826         (generate_formatted_string_db): ditto.
12827
12828         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
12829         glyphs'extents in the modeline.
12830
12831 1999-01-11  Mike Woolley  <mike@bulsara.com>
12832
12833         * ntheap.c: Reduced the reserved heap space from 1Gb down to
12834         256Mb, as a workaround for the non-starting problem many people
12835         have experienced.
12836
12837 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
12838
12839         * console-tty.c (Fset_console_tty_output_coding_system):
12840         Force redrawing tty frame.
12841
12842 2000-01-10  Didier Verna  <didier@xemacs.org>
12843
12844         * redisplay.c (generate_fstring_runes): fix size computation bug.
12845
12846 2000-01-09  William M. Perry <wmperry@aventail.com>
12847
12848         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
12849
12850 2000-01-09  Andy Piper  <andy@xemacs.org>
12851
12852         * glyphs-msw.c: index -> i to avoid shadows.
12853         (xbm_create_bitmap_from_data): make static.
12854         (check_valid_string_or_int): deleted.
12855         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
12856
12857         * glyphs-x.c (x_update_subwindow): remove unused args.
12858
12859         * glyphs.c (glyph_image_instance): return the thing. Don't set the
12860         back pointer - this is done in allocate_image_instance.
12861         (query_string_font): return Qnil to make the compiler happy.
12862         (unmap_subwindow): set to ~0 to make the compiler happy.
12863         (glyph_query_geometry): comment out until used.
12864         (glyph_layout): ditto.
12865
12866 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
12867
12868         * insdel.c (signal_after_change): Remove extraneous unbind_to().