update.
[chise/xemacs-chise.git] / src / ChangeLog
1 2002-12-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2
3         * mule-charset.c (charset_lookup_description_1): Use
4         `NUM_LEADING_BYTES' in UTF-2000.
5
6 2002-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
7
8         * mule-charset.c (Vcharset_china3_jef): Deleted.
9         (Qchina3_jef): Deleted.
10         (syms_of_mule_charset): Don't define `china3-jef'.
11         (complex_vars_of_mule_charset): Likewise.
12
13         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Deleted.
14         (MIN_CHAR_CHINA3_JEF): Comment out.
15         (MAX_CHAR_CHINA3_JEF): Comment out.
16
17 2002-11-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
18
19         * mule-charset.c (Vcharset_ucs_gb): New variable.
20         (Qucs_gb): New variable.
21         (syms_of_mule_charset): Add new symbol `ucs-gb'.
22         (complex_vars_of_mule_charset): Add new coded-charset `ucs-gb'.
23
24         * char-ucs.h (LEADING_BYTE_UCS_GB): New macro.
25
26 2002-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
27
28         * mule-charset.c (charset_code_point): if a coded-charset has a
29         final-byte, don't inherit the builtin range of the mother CCS.
30
31 2002-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
32
33         * mule-charset.c (charset_code_point): Fix problem about
34         inheritance.
35
36 2002-11-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
37
38         * mule-charset.c (decode_builtin_char): Reorganized.
39
40 2002-10-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
41
42         * text-coding.c (char_encode_shift_jis): Modify for
43         `charset_code_point'.
44         (char_encode_big5): Likewise.
45         (char_encode_utf8): Likewise.
46         (char_encode_iso2022): Likewise.
47
48         * mule-charset.c (charset_code_point): Add new argument
49         `defined_only'.
50         (Fencode_char): Add new optional argument `defined_only'.
51
52         * chartab.c (put_char_table): Modify for `charset_code_point'.
53         (map_char_table): Likewise.
54
55         * char-ucs.h (charset_code_point): Add new argument
56         `defined_only'.
57         (encode_char_1): Modify for `charset_code_point'.
58
59 2002-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
60
61         * mule-charset.c (complex_vars_of_mule_charset): Don't specify
62         `MIN_CHAR_THAI' and `MAX_CHAR_THAI' for `thai-tis620'.
63
64 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
65
66         * mule-charset.c (Vcharset_jis_x0208): New variable in UTF-2000.
67         (Qjis_x0208): Likewise.
68         (decode_builtin_char): Prefer XCHARSET_MAX_CODE(charset) than
69         XCHARSET_FINAL(charset).
70         (charset_code_point): Modify condition for final-byte based
71         builtin-chars.
72         (syms_of_mule_charset): Add new symbol `=jis-x0208' in UTF-2000.
73         (complex_vars_of_mule_charset): Add new coded-charset `=jis-x0208'
74         in UTF-2000; specify `=jis-x0208' as the mother of
75         `japanese-jisx0208-1978', `japanese-jisx0208' and
76         `japanese-jisx0208-1990' in UTF-2000.
77
78 2002-10-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
79
80         * char-ucs.h (LEADING_BYTE_JIS_X0208): New macro.
81
82 2002-07-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
83
84         * mule-charset.c (charset_code_point): If CHARSET_CONVERSION is
85         CONVERSION_IDENTICAL, identical conversion is used even if a CCS
86         is ISO-2022 style; instead of it, CONVERSION_94, CONVERSION_96,
87         CONVERSION_94x94, CONVERSION_96x96, CONVERSION_94x94x94,
88         CONVERSION_96x96x96, CONVERSION_94x94x94x94 and
89         CONVERSION_96x96x96x96 are introduced.
90         (complex_vars_of_mule_charset): Specify CONVERSION_96 instead of
91         CONVERSION_IDENTICAL for thai-tis620; Specify CONVERSION_94x94
92         instead of CONVERSION_IDENTICAL for japanese-jisx0208-1990.
93
94         * char-ucs.h (CONVERSION_94): New macro.
95         (CONVERSION_96): New macro.
96         (CONVERSION_94x94): New macro.
97         (CONVERSION_96x96): New macro.
98         (CONVERSION_94x94x94): New macro.
99         (CONVERSION_96x96x96): New macro.
100         (CONVERSION_94x94x94x60): New macro.
101         (CONVERSION_94x94x94x94): New macro.
102         (CONVERSION_96x96x96x96): New macro.
103
104 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
105
106         * lisp.h: Add an EXFUN for `Fchar_ref_p'.
107
108         * fns.c (Qideographic_structure): New variable.
109         (Qkeyword_char): New variable.
110         (ids_format_unit): New function.
111         (Fideographic_structure_to_ids): New function.
112         (syms_of_fns): Add new symbols `ideographic-structure' and
113         `:char'; add new builtin function `ideographic-structure-to-ids'.
114
115         * data.c (Fchar_ref_p): New function.
116         (syms_of_data): Add new builtin function `char-ref-p'.
117
118         * chartab.h: Add an EXFUN for `Ffind_char'.
119
120 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
121
122         * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
123         and `COMPOSE_ADD_CHAR'.
124         (decode_coding_iso2022): Use `decode_flush_er_chars'.
125
126 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
127
128         * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
129         instead of `DECODE_ADD_UCS_CHAR'.
130         (COMPOSE_ADD_CHAR): Likewise.
131
132 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
133
134         * text-coding.c (decode_flush_er_chars): New inline function.
135         (decode_add_er_char): New function.
136         (decode_coding_utf8): Use `decode_flush_er_chars' and
137         `decode_add_er_char'.
138
139 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
140
141         * text-coding.c (decode_coding_utf8): Flush for er_buf must be
142         done before `decode_output_utf8_partial_char'.
143
144         * mule-charset.c (complex_vars_of_mule_charset): Specify
145         `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
146         `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
147
148 2002-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
149
150         * mule-charset.c (decode_defined_char): New function; search
151         mother.
152         (decode_builtin_char): Don't search mother if
153         XCHARSET_MAX_CODE(charset) == 0.
154         (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
155         == 0 even if code >= XCHARSET_MAX_CODE(charset).
156         (Fdecode_char): Use `decode_defined_char' instead of
157         `DECODE_DEFINED_CHAR'.
158         (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
159         mother of `Vcharset_ucs_jis'.
160
161         * text-coding.c (decode_coding_big5): Use `decode_defined_char'
162         instead of `DECODE_DEFINED_CHAR'.
163
164         * char-ucs.h (decode_defined_char): Renamed from
165         `DECODE_DEFINED_CHAR'; changed to normal function.
166         (DECODE_CHAR): Use `decode_defined_char' instead of
167         `DECODE_DEFINED_CHAR'.
168
169         * lisp.h: Add `EXFUN' for `Fstring_to_number'.
170
171 2002-07-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
172
173         * char-ucs.h: Add `extern' for `Vcharset_ucs'.
174
175         * text-coding.c (Vcoded_charset_entity_reference_alist): New
176         variable.
177         (Quse_entity_reference): New variable.
178         (Qd): New variable.
179         (Qx): New variable.
180         (QX): New variable.
181         (coding_system_description): Add description for
182         `ccs_priority_list'.
183         (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
184         (allocate_coding_system): Initialize `ccs_priority_list' in
185         UTF-2000.
186         (Fmake_coding_system): Add description about
187         'use-entity-reference; setup
188         CODING_SYSTEM_USE_ENTITY_REFERENCE(codesys).
189         (Fcoding_system_property): Accept `disable-composition' and
190         `use-entity-reference' in UTF-2000.
191         (struct decoding_stream): Add new member `er_counter' and `er_buf'
192         in UTF-2000.
193         (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
194         (decode_coding_utf8): Decode entity-reference if
195         CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
196         (char_encode_utf8): Encode non-Unicode characters as
197         entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
198         (str->codesys).
199         (syms_of_file_coding): Add new symbols `use-entity-reference',
200         `d', `x', `X'.
201         (vars_of_file_coding): Add new variable
202         `coded-charset-entity-reference-alist'.
203         (complex_vars_of_file_coding): Declare `disable-composition' and
204         `use-entity-reference' to be coding-system-properties in UTF-2000.
205
206         * file-coding.h (struct Lisp_Coding_System): Add new member
207         `use_entity_reference' and `ccs_priority_list'.
208         (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
209         (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
210         (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
211
212 2002-02-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
213
214         * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
215
216 2002-02-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
217
218         * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
219         `XCHARSET_GRAPHIC(ccs)'.
220
221 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
222
223         * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
224         for decoding-table.
225
226 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
227
228         * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
229         instead of `XCHARSET_CHARS'.
230
231 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
232
233         * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
234         (XCHARSET_BYTE_SIZE): Likewise.
235
236         * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
237         mule-charset.c].
238         (XCHARSET_BYTE_SIZE): Likewise.
239
240 2002-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
241
242         * char-ucs.h (decoding_table_check_elements): Delete prototype.
243         (get_ccs_octet_table): New inline function.
244         (put_ccs_octet_table): Likewise.
245         (decoding_table_put_char): Use `get_ccs_octet_table' and
246         `put_ccs_octet_table'.
247         (decoding_table_remove_char): Use `decoding_table_put_char'.
248         (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
249
250         * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
251         into encoding_table.
252         (make_charset): Use Qunbound instead Qnil as initial value of
253         decoding_table.
254
255 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
256
257         * mule-charset.c (put_char_ccs_code_point): Modify for
258         `decoding_table_remove_char' and `decoding_table_put_char'.
259         (remove_char_ccs): Modify for `decoding_table_remove_char'.
260
261         * char-ucs.h (decoding_table_remove_char): Change arguments to
262         hide decoding_table vector.
263         (decoding_table_put_char): Likewise.
264
265 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
266
267         * mule-charset.c (decoding_table_remove_char): Moved to
268         char-ucs.h.
269         (decoding_table_put_char): Likewise.
270
271         * char-ucs.h (decoding_table_check_elements): New prototype [moved
272         from mule-charset.c].
273         (decoding_table_remove_char): New inline function [moved from
274         mule-charset.c].
275         (decoding_table_put_char): Likewise.
276
277 2002-04-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
278
279         * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
280         instead of `DECODE_CHAR' for mother; don't use special code for
281         chinese-big5 to use code space of chinese-big5-1 and
282         chinese-big5-2.
283         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
284         `MAX_CHAR_BIG5_CDP' for chinese-big5.
285
286         * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
287         (MAX_CHAR_BIG5_CDP): Revival.
288
289 2002-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
290
291         * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
292         the XLFD registry-encoding name of `chinese-big5'.
293
294 2002-04-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
295
296         * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
297         (Qchinese_big5_cdp): Deleted.
298         (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
299         (complex_vars_of_mule_charset): Delete coded-charset
300         `chinese-big5-cdp'.
301
302         * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
303         (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
304         `CHARSET_ID_OFFSET - n' for private CCS.
305         (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
306         (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
307         of `MIN_LEADING_BYTE'.
308         (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
309         `(CHARSET_ID_OFFSET - 97)'.
310         (MIN_CHAR_BIG5_CDP): Deleted.
311         (MAX_CHAR_BIG5_CDP): Deleted.
312
313 2002-01-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
314
315         * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
316         extension.
317
318 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
319
320         * mule-charset.c (decode_builtin_char): Support mother charsets.
321
322 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
323
324         * mule-charset.c (Q94x94x60): New variable.
325         (charset_code_point): Support conversion `94x94x60'.
326         (Fmake_charset): Likewise.
327         (syms_of_mule_charset): Add new symbol `94x94x60'.
328
329         * char-ucs.h (CONVERSION_94x94x60): New macro.
330
331 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
332
333         * mule-charset.c (charset_code_point): Unify code about
334         `code-offset'.
335
336 2001-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
337
338         * mule-charset.c (charset_code_point): Merge code about builtin
339         characters into code about mother charsets; don't use
340         `range_charset_code_point'.
341         (range_charset_code_point): Deleted.
342
343 2001-12-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
344
345         * mule-charset.c (Qcode_offset): New variable.
346         (Fmake_charset): Use `XUINT' to get value of `min-code' and
347         `max-code'; accept new property `code-offset'.
348         (syms_of_mule_charset): Add new symbol `code-offset'.
349
350 2001-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
351
352         * mule-charset.c (range_charset_code_point): Fixed.
353
354 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
355
356         * mule-charset.c (decode_builtin_char): Change semantics of
357         code-offset of coded-charset.
358         (charset_code_point): Likewise.
359         (range_charset_code_point): Likewise.
360         (complex_vars_of_mule_charset): Modify for the change.
361
362 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
363
364         * mule-charset.c (Fencode_char): Reverse arguments.
365
366         * mule-charset.c (charset_code_point): Fixed.
367
368 2001-12-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
369
370         * mule-charset.c (Vcharset_mojikyo): Deleted.
371         (Vcharset_mojikyo_2022_1): Deleted.
372         (Vcharset_mojikyo_pj_{1..21}): Deleted.
373         (Qmin_code): New variable in UTF-2000.
374         (Qmax_code): Likewise.
375         (Qmother): Likewise.
376         (Qconversion): Likewise.
377         (Q94x60): Likewise.
378         (Qmojikyo): Deleted.
379         (Qmojikyo_2022_1): Deleted.
380         (Qmojikyo_pj_{1..22}): Deleted.
381         (mark_charset): Mark `cs->mother'.
382         (charset_description): Add description for `mother'.
383         (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
384         new arguments `mother' and `conversion'; use
385         `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
386         (charset_code_point): Moved from char-ucs.h; support `mother'
387         charset feature.
388         (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
389         of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
390         (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
391         UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
392         allow 2 as the value of `graphic' in UTF-2000; add new properties
393         `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
394         require `final' in UTF-2000; modify for `make_charset'.
395         (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
396         instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
397         (Fcharset_property): Support `mother', `min-code' and `max-code'.
398         (Fencode_char): New function.
399         (syms_of_mule_charset): Add new builtin function `encode-char' in
400         UTF-2000; add new symbols `min-code', `max-code', `mother',
401         `conversion' and `94x60'; delete symbols `mojikyo',
402         `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
403         (complex_vars_of_mule_charset): Modify for `make_charset' change;
404         delete coded-charsets `mojikyo', `mojikyo-2022-1' and
405         `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
406
407         * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
408         `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
409
410         * char-ucs.h (Vcharset_mojikyo): Deleted.
411         (Vcharset_mojikyo_2022_1): Deleted.
412         (LEADING_BYTE_MOJIKYO): Deleted.
413         (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
414         (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
415         (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
416         (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
417         add new member `mother'; add new member `conversion'.
418         (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
419         (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
420         (CHARSET_MOTHER): New macro.
421         (CHARSET_CONVERSION): New macro.
422         (CONVERSION_IDENTICAL): New macro.
423         (CONVERSION_94x60): New macro.
424         (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
425         (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
426         (XCHARSET_MOTHER): New macro.
427         (XCHARSET_CONVERSION): New macro.
428         (MIN_CHAR_MOJIKYO): Deleted.
429         (MAX_CHAR_MOJIKYO): Deleted.
430         (DECODE_MOJIKYO_2022): Deleted.
431         (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
432         (charset_code_point): Changed to non-inline function.
433         (encode_char_1): Use `charset_code_point'.
434         (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
435
436 2001-12-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
437
438         * lread.c (read_compiled_function): Fix prototype.
439         (read_vector): Likewise.
440
441 2001-12-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
442
443         * lrecord.h (struct lrecord_header): Delete `older'.
444         (set_lheader_implementation): Delete code for `older'.
445         (set_lheader_older_implementation): Deleted.
446         (enum lrecord_type): Delete `lrecord_type_char_id_table'.
447         (OLDER_RECORD_P): Deleted.
448         (OLDER_RECORD_HEADER_P): Deleted.
449         (alloc_older_lcrecord): Deleted.
450         (alloc_older_lcrecord_type): Deleted.
451
452         * alloc.c (all_older_lcrecords): Deleted.
453         (alloc_older_lcrecord): Deleted.
454         (disksave_object_finalization_1): Delete code for older objects.
455         (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
456         (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
457
458 2001-12-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
459
460         * mule-charset.c (decoding_table_put_char): Use `make_vector'
461         instead of `make_older_vector'.
462         (put_char_ccs_code_point): Likewise.
463         (mark_charset): Mark `cs->decoding_table'.
464         (Fset_charset_mapping_table): Don't use `make_vector_newer'.
465
466         * lisp.h (make_older_vector): Deleted.
467         (make_vector_newer): Deleted.
468
469         * config.h.in (HAVE_GGC): Deleted.
470
471         * alloc.c (make_older_vector): Deleted.
472         (make_vector_newer_1): Deleted.
473         (make_vector_newer): Deleted.
474
475 2001-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
476
477         * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
478         (Qideograph_daikanwa_2): New variable.
479         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
480         (complex_vars_of_mule_charset): Add new coded-charset
481         `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
482         `LEADING_BYTE_DAIKANWA'.
483
484         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
485         (LEADING_BYTE_DAIKANWA_1): New macro.
486         (LEADING_BYTE_DAIKANWA_2): New macro.
487         (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
488
489 2001-12-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
490
491         * mule-charset.c (complex_vars_of_mule_charset): Change
492         DOC-strings and registry of `ideograph-daikanwa'; now it indicates
493         the second revised version.
494
495 2001-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
496
497         * mule-charset.c (Vcharset_ucs_smp): New variable.
498         (Vcharset_ucs_sip): New variable.
499         (Qucs_smp): New variable.
500         (Qucs_sip): New variable.
501         (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
502         MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
503         (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
504         (complex_vars_of_mule_charset): Modify middle-DOC and registry of
505         `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
506         charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
507
508         * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
509         (LEADING_BYTE_UCS_SIP): New macro.
510         (MIN_CHAR_SMP): New macro.
511         (MAX_CHAR_SMP): New macro.
512         (MIN_CHAR_SIP): New macro.
513         (MAX_CHAR_SIP): New macro.
514
515 2001-11-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
516
517         * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
518         utf-2000.
519
520 2001-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
521
522         * mule-charset.c (put_char_ccs_code_point): Return canonicalized
523         value; don't store value into `encoding_table' of `Lisp_Charset'.
524         (mark_charset): `encoding_table' was deleted.
525         (charset_description): Likewise.
526         (make_charset): Likewise.
527         (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
528         `put_char_ccs_code_point'.
529
530         * chartab.h (Fput_char_attribute): New EXFUN.
531
532         * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
533         is unified with normal symbol space.
534         (Fget_char_attribute): Likewise.
535         (Fput_char_attribute): Likewise; behavior of
536         `put_char_ccs_code_point' is changed.
537
538         * char-ucs.h: Include "elhash.h".
539         (Vchar_attribute_hash_table): New external variable.
540         (struct Lisp_Charset): Delete `encoding_table'.
541         (CHARSET_ENCODING_TABLE): New implementation; refer
542         `Vchar_attribute_hash_table' instead of `encoding_table' of struct
543         `Lisp_Charset'.
544
545 2001-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
546
547         * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
548         (cs) == 0.
549
550 2001-11-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
551
552         * text-coding.c (char_encode_big5): Prefer charset-g1 than
553         `chinese-big5'.
554
555 2001-11-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
556
557         * chartab.c (uint8_byte_table_description): New constant.
558         (uint8-byte-table): Use `uint8_byte_table_description'.
559         (uint16_byte_table_description): New constant.
560         (uint16-byte-table): Use `uint16_byte_table_description'.
561
562 2001-10-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
563
564         * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
565         range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
566
567 2001-10-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
568
569         * mule-charset.c (Vcharset_ucs_ks): New variable.
570         (Qucs_ks): New variable.
571         (syms_of_mule_charset): Add new symbol `ucs-ks'.
572         (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
573
574         * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
575
576 2001-10-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
577
578         * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
579         (Fdecode_char): Likewise.
580
581         * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
582         chartab.h.
583         (Fdefine_char): Modify for Fdecode_char.
584         (Ffind_char): Likewise.
585
586         * mule-charset.c (Fdecode_char): Add new optional argument
587         `defined-only'.
588         (Fdecode_builtin_char): Modify for `Fdecode_char'.
589
590 2001-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
591
592         * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
593         -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
594         (allocate_coding_system): Initialize initial-charsets of
595         CODESYS_BIG5 in XEmacs UTF-2000.
596         (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
597         CODESYS_BIG5 in XEmacs UTF-2000.
598         (decode_coding_big5): Use initial-charset-g0 and -g1 of
599         CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
600
601         * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
602         variables.
603         (Qideograph_hanziku_{1 .. 12}): Likewise.
604         (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
605         .. 12}'.
606         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
607         `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
608         `ideograph-hanziku-{1 .. 12}'.
609
610         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
611         (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
612         ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
613         ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
614         (DECODE_DEFINED_CHAR): New inline function.
615         (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
616
617 2001-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
618
619         * mule-charset.c (Vcharset_china3_jef): Renamed from
620         `Vcharset_japanese_jef_china3'.
621         (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
622         (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
623         `{MIN|MAX}_CHAR_JEF_CHINA3'..
624         (syms_of_mule_charset): Rename `china3-jef' from
625         `japanese-jef-china3'.
626         (complex_vars_of_mule_charset): Likewise; rename
627         `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
628
629         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
630         `LEADING_BYTE_JEF_CHINA3'.
631         (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
632         (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
633
634 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
635
636         * mule-charset.c (encode_builtin_char_1): Comment out special code
637         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
638
639         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
640         (MAX_CHAR_MOJIKYO_0): Comment out.
641         (MIN_CHAR_CBETA): Changed to 0x00E20000.
642         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
643         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
644         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
645
646 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
647
648         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
649         (Qideograph_cbeta): New variable.
650         (encode_builtin_char_1): Comment out special code for
651         coded-charset `mojikyo' and `japanese-jef-china3'.
652         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
653         (complex_vars_of_mule_charset): Add new coded-charset
654         `ideograph-cbeta'.
655
656         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
657         (MIN_CHAR_CBETA): New macro.
658         (MAX_CHAR_CBETA): New macro.
659
660 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
661
662         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
663         (LEADING_BYTE_JEF_CHINA3): New macro.
664         (MIN_CHAR_JEF_CHINA3): New macro.
665         (MAX_CHAR_JEF_CHINA3): Likewise.
666         (DECODE_CHAR): Fixed.
667
668 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
669
670         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
671         (Qjapanese_jef_china3): New variable.
672         (encode_builtin_char_1): Support `japanese-jef-china3'.
673         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
674         (complex_vars_of_mule_charset): Add new coded-charset
675         `japanese-jef-china3'.
676
677 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
678
679         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
680         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
681         94^4, 96^3, 96^4, 128^n and 256^n set.
682         (put_char_table): Use `XCHARSET_CELL_RANGE'.
683         (map_char_table): Likewise.
684
685 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
686
687         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
688         UTF-2000.
689
690 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
691
692         * chartab.h (get_char_id_table): New inline function.
693
694         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
695         function.
696
697 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
698
699         * chartab.h (decode_char_table_range): New prototype in XEmacs
700         UTF-2000.
701         (put_char_id_table): New inline function in XEmacs UTF-2000.
702
703         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
704         function.
705         (decode_char_table_range): Delete static declaration in XEmacs
706         UTF-2000.
707
708 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
709
710         * chartab.c (put_char_id_table): Use `put_char_table'.
711
712 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
713
714         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
715         (map_over_uint16_byte_table): Likewise.
716         (map_over_byte_table): Likewise.
717         (map_char_table): Modify for `map_over_uint8_byte_table',
718         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
719         UTF-2000.
720
721 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
722
723         * chartab.c (struct map_char_table_for_charset_arg): New
724         structure.
725         (map_char_table_for_charset_fun): New function.
726         (map_char_table): Use `map_char_table' for encoding_table of
727         `range->charset'.
728
729 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
730
731         * chartab.c (map_char_table): Check a character is found in
732         range->charset instead of non default value is defined in
733         char-table when range is CHARTAB_RANGE_ROW.
734
735 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
736
737         * chartab.c (map_char_id_table): Deleted.
738         (Fmap_char_attribute): Use `map_char_table' instead of
739         `map_char_id_table'.
740
741 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
742
743         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
744         UTF-2000.
745         (update_syntax_table): Deleted in XEmacs UTF-2000.
746
747         * syntax.c (find_defun_start): Use `syntax_table' instead of
748         `mirror_syntax_table' in XEmacs UTF-2000.
749         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
750         UTF-2000.
751         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
752         XEmacs UTF-2000.
753         (Fmatching_paren): Likewise.
754         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
755         in XEmacs UTF-2000.
756         (find_start_of_comment): Likewise.
757         (find_end_of_comment): Likewise.
758         (Fforward_comment): Likewise.
759         (scan_lists): Likewise.
760         (char_quoted): Likewise.
761         (Fbackward_prefix_chars): Likewise.
762         (scan_sexps_forward): Likewise.
763         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
764         (update_syntax_table): Likewise.
765
766         * search.c (skip_chars): Use `syntax_table' instead of
767         `mirror_syntax_table' in XEmacs UTF-2000.
768         (wordify): Likewise.
769         (Freplace_match): Likewise.
770
771         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
772         `mirror_syntax_table' in XEmacs UTF-2000.
773         (WORDCHAR_P_UNSAFE): Likewise.
774         (re_match_2_internal): Likewise.
775
776         * font-lock.c (find_context): Use `buf->syntax_table' instead of
777         `buf->mirror_syntax_table' in XEmacs UTF-2000.
778
779         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
780         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
781
782         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
783         XEmacs UTF-2000.
784
785         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
786         UTF-2000.
787         (print_char_table): Print `default_value' in XEmacs UTF-2000.
788         (char_table_description): Delete `mirror_table' in XEmacs
789         UTF-2000.
790         (fill_char_table): Don't call `update_syntax_table' in XEmacs
791         UTF-2000.
792         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
793         (Fcopy_char_table): Likewise.
794         (put_char_table): Don't call `update_syntax_table' in XEmacs
795         UTF-2000.
796
797         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
798         `buf->mirror_syntax_table' in XEmacs UTF-2000.
799         (casify_region_internal): Likewise.
800
801         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
802
803         * buffer.c (common_init_complex_vars_of_buffer): Don't use
804         `mirror_syntax_table' in XEmacs UTF-2000.
805
806         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
807         `buf->mirror_syntax_table' in XEmacs UTF-2000.
808         (Fexpand_abbrev): Likewise.
809
810 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
811
812         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
813
814 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
815
816         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
817         (map_over_uint16_byte_table): Likewise.
818         (map_over_byte_table): Likewise.
819         (get_char_id_table): Refer `cit->default_value'.
820         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
821         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
822         of character-id ranges.
823         (mark_char_table): Mark `ct->default_value'.
824         (char_table_description): Add `default_value'.
825         (fill_char_table): Use `default_value'.
826         (decode_char_table_range): Decode `nil' as
827         `CHARTAB_RANGE_DEFAULT'.
828         (get_char_id_table): Refer `cit->default_value'.
829         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
830         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
831         temporary hack; check value of char-table is bound or not.
832         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
833
834         * chartab.h (struct Lisp_Char_Table): Add new member
835         `default_value' in XEmacs UTF-2000.
836         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
837         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
838         UTF-2000.
839
840 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
841
842         * chartab.h (Lisp_Char_ID_Table): Deleted.
843
844         * chartab.c (char_table_description): Fix typo.
845         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
846         `Lisp_Char_ID_Table'.
847
848 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
849
850         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
851         `CHAR_ID_TABLE_P'.
852
853         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
854         `CHAR_ID_TABLE_P'.
855
856         * chartab.h (XCHAR_ID_TABLE): Deleted.
857         (XSETCHAR_ID_TABLE): Deleted.
858         (CHAR_ID_TABLE_P): Deleted.
859
860         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
861         `CHAR_ID_TABLE_P'.
862         (Fget_composite_char): Likewise.
863         (put_char_table): Likewise.
864         (add_char_attribute_alist_mapper): Fixed.
865         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
866         `CHAR_ID_TABLE_P'.
867         (Fget_char_attribute): Likewise.
868         (Fget_char_attribute): Likewise.
869         (Fmap_char_attribute): Likewise.
870
871         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
872         `CHAR_ID_TABLE_P'.
873         (encode_char_1): Likewise.
874
875 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
876
877         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
878         `XCHAR_ID_TABLE'.
879
880         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
881         instead of `XCHAR_ID_TABLE'.
882         (remove_char_ccs): Likewise.
883
884         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
885         `XCHAR_ID_TABLE'.
886         (Fget_composite_char): Likewise.
887         (Fchar_variants): Likewise.
888         (put_char_table): Likewise.
889         (add_char_attribute_alist_mapper): Likewise.
890         (Fchar_attribute_alist): Likewise.
891         (Fget_char_attribute): Likewise.
892         (Fput_char_attribute): Likewise.
893         (Fmap_char_attribute): Likewise.
894         (Fmap_char_attribute): Likewise.
895
896         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
897         `XCHAR_ID_TABLE'.
898         (encode_char_1): Likewise.
899
900 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
901
902         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
903         `Lisp_Char_ID_Table'.
904         (mark_char_id_table): Deleted.
905         (print_char_id_table): Likewise.
906         (char_id_table_equal): Likewise.
907         (char_id_table_hash): Likewise.
908         (char_id_table_description): Likewise.
909         (char_id_table): Likewise.
910         (make_char_id_table): Use `Fmake_char_table' and
911         `fill_char_table'.
912         (get_char_id_table): Use `Lisp_Char_Table' instead of
913         `Lisp_Char_ID_Table'.
914         (put_char_id_table): Likewise.
915         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
916         `XCHAR_ID_TABLE'.
917         (Fremove_char_attribute): Likewise.
918         (syms_of_chartab): Don't define type `char-id-table'.
919
920         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
921         (char_id_table): Likewise.
922         (GC_CHAR_ID_TABLE_P): Likewise.
923         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
924         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
925         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
926         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
927         (get_char_id_table): Use `Lisp_Char_Table' instead of
928         `Lisp_Char_ID_Table'.
929         (put_char_id_table_0): Likewise.
930         (put_char_id_table): Likewise.
931
932 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
933
934         * chartab.h: Lisp_Byte_Table related codes are moved from
935         chartab.h.
936
937         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
938
939 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
940
941         * chartab.h: Don't include "chartab.h".
942         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
943         (Lisp_Char_ID_Table): Likewise.
944         (char_id_table): Likewise.
945         (XCHAR_ID_TABLE): Likewise.
946         (XSETCHAR_ID_TABLE): Likewise.
947         (CHAR_ID_TABLE_P): Likewise.
948         (GC_CHAR_ID_TABLE_P): Likewise.
949         (get_char_id_table): Likewise.
950
951         * char-ucs.h: Include "chartab.h".
952         (struct Lisp_Char_ID_Table): Moved to chartab.h.
953         (Lisp_Char_ID_Table): Likewise.
954         (char_id_table): Likewise.
955         (XCHAR_ID_TABLE): Likewise.
956         (XSETCHAR_ID_TABLE): Likewise.
957         (CHAR_ID_TABLE_P): Likewise.
958         (GC_CHAR_ID_TABLE_P): Likewise.
959         (get_char_id_table): Likewise.
960
961 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
962
963         * chartab.c (copy_uint8_byte_table): New function.
964         (copy_uint16_byte_table): New function.
965         (copy_byte_table): New function.
966         (map_over_uint8_byte_table): Modify to avoid huge numbers of
967         characters to call.
968         (map_over_uint16_byte_table): Likewise.
969         (map_over_byte_table): Likewise.
970         (get_byte_table): Move prototype to chartab.h.
971         (put_byte_table): Likewise.
972         (put_char_id_table_0): Moved to chartab.h.
973         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
974         (char_table_entry_equal): Likewise.
975         (char_table_entry_hash): Likewise.
976         (char_table_entry_description): Likewise.
977         (char_table_entry): Likewise.
978         (make_char_table_entry): Likewise.
979         (copy_char_table_entry): Likewise.
980         (get_non_ascii_char_table_value): Likewise.
981         (map_over_charset_ascii): Likewise.
982         (map_over_charset_control_1): Likewise.
983         (map_over_charset_row): Likewise.
984         (map_over_other_charset): Likewise.
985         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
986         (print_char_table): Likewise.
987         (char_table_equal): Likewise.
988         (char_table_hash): Likewise.
989         (char_table_description): Likewise.
990         (fill_char_table): Likewise.
991         (Fcopy_char_table): Likewise.
992         (get_char_table): Likewise.
993         (Fget_range_char_table): Likewise.
994         (put_char_table): Likewise.
995         (map_char_table): Likewise.
996         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
997         UTF-2000.
998
999 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1000
1001         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
1002         `Vauto_fill_chars' in XEmacs UTF-2000.
1003
1004         * chartab.h (get_byte_table): New prototype [moved from
1005         chartab.c].
1006         (put_byte_table): Likewise [moved from chartab.c].
1007         (put_char_id_table_0): New inline function [moved from chartab.c].
1008         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
1009         (Lisp_Char_Table_Entry): Likewise.
1010         (char_table_entry): Likewise.
1011         (XCHAR_TABLE_ENTRY): Likewise.
1012         (XSETCHAR_TABLE_ENTRY): Likewise.
1013         (CHAR_TABLE_ENTRYP): Likewise.
1014         (CHECK_CHAR_TABLE_ENTRY): Likewise.
1015         (NUM_ASCII_CHARS): Likewise.
1016         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
1017         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
1018
1019 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1020
1021         * chartab.c (get_char_id_table): Change interface.
1022         (put_char_id_table_0): New function.
1023         (put_char_id_table): Change interface; new implementation.
1024         (Fget_composite_char): Modify for interface change of
1025         `get_char_id_table'.
1026         (Fchar_variants): Likewise.
1027         (add_char_attribute_alist_mapper): Likewise.
1028         (Fchar_attribute_alist): Likewise.
1029         (Fget_char_attribute): Likewise.
1030         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
1031         as same as character as the first argument like `put-char-table';
1032         modify for interface change of `put_char_id_table'.
1033         (Fremove_char_attribute): Modify for interface change of
1034         `put_char_id_table'.
1035
1036 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1037
1038         * text-coding.c: Sync up with XEmacs 21.2.41.
1039         (COMPOSE_ADD_CHAR): Modify for interface change of
1040         `get_char_id_table'.
1041
1042         * mule-charset.c (put_char_ccs_code_point): Modify for interface
1043         change of `put_char_id_table'.
1044         (remove_char_ccs): Likewise.
1045
1046         * chartab.h (put_char_id_table): Change interface.
1047
1048         * char-ucs.h (get_char_id_table): Change interface.
1049         (charset_code_point): Modify for interface change of
1050         `get_char_id_table'.
1051         (encode_char_1): Likewise.
1052
1053 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1054
1055         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
1056         argument `ccs'.
1057         (map_over_uint16_byte_table): Likewise.
1058         (map_over_byte_table): Likewise.
1059         (map_char_id_table): Add new argument `range' like
1060         `map_char_table'.
1061         (Fmap_char_attribute): Add new argument `range' like
1062         `Fmap_char_table'.
1063
1064 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1065
1066         * chartab.c (map_over_uint8_byte_table): Change interface of
1067         mapping function to use struct chartab_range instead of Emchar.
1068         (map_over_uint16_byte_table): Likewise.
1069         (map_over_byte_table): Likewise.
1070         (map_char_id_table): Likewise.
1071         (struct slow_map_char_id_table_arg): Deleted.
1072         (slow_map_char_id_table_fun): Deleted.
1073         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
1074         function `slow_map_char_table_fun' instead of struct
1075         `slow_map_char_id_table_arg' and function
1076         `slow_map_char_id_table_fun'.
1077
1078 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1079
1080         * mule-charset.c: Move char-it-table related codes to chartab.c.
1081         (Vutf_2000_version): Moved to chartab.c.
1082         (Fdefine_char): Likewise.
1083         (Ffind_char): Likewise.
1084         (syms_of_mule_charset): Move types `uint8-byte-table',
1085         `uint16-byte-table', `byte-table' and `char-id-table' to
1086         chartab.c; move functions `char_attribute_list,
1087         `find_char_attribute_table, `char_attribute_alist,
1088         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
1089         `map_char_attribute, `define_char, `find_char, `char_variants and
1090         `get_composite_char to chartab.c; move symbols `=>ucs',
1091         `->decomposition', `compat', `isolated', `initial', `medial',
1092         `final', `vertical', `noBreak', `fraction', `super', `sub',
1093         `circle', `square', `wide', `narrow', `small' and `font' to
1094         chartab.c.
1095         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
1096         setting codes for `Vcharacter_composition_table' and
1097         `Vcharacter_variant_table' to chartab.c.
1098         (complex_vars_of_mule_charset): Move setting code for
1099         `Vchar_attribute_hash_table' to chartab.c.
1100
1101         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
1102         (make_char_id_table): New prototype.
1103         (put_char_id_table): Likewise.
1104         (Fget_char_attribute): Likewise.
1105
1106         * chartab.c: Move char-id-table related code from mule-charset.c.
1107         (Vutf_2000_version): Moved from mule-charset.c.
1108
1109         * char-ucs.h (Qucs): New external variable.
1110         (put_char_ccs_code_point): New prototype.
1111         (remove_char_ccs): Likewise.
1112
1113 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1114
1115         * mule-charset.c (Vcharset_ucs_jis): New variable.
1116         (Qucs_jis): Likewise.
1117         (syms_of_mule_charset): Add new symbol `ucs-jis'.
1118         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
1119
1120         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
1121
1122 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1123
1124         * mule-charset.c (map_over_uint8_byte_table): New function.
1125         (map_over_uint16_byte_table): Likewise.
1126         (map_over_byte_table): Likewise.
1127         (map_char_id_table): Likewise.
1128         (slow_map_char_id_table_fun): Likewise.
1129         (Fmap_char_attribute): Likewise.
1130         (syms_of_mule_charset): Add new function `map-char-attribute'.
1131
1132 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1133
1134         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
1135         (syms_of_mule_charset): Add new function `find-char'.
1136
1137 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1138
1139         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
1140         XEmacs UTF-2000.
1141         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
1142         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
1143         XEmacs UTF-2000.
1144         (complex_vars_of_mule_charset): Add new coded-charset
1145         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
1146         `ideograph-gt-pj-*'.
1147
1148         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
1149
1150 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1151
1152         * mule-charset.c (encode_builtin_char_1): Purge codes about
1153         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
1154         {MIN|MAX}_CHAR_HEBREW.
1155         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
1156         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
1157
1158         * char-ucs.h (MIN_CHAR_GREEK): Purged.
1159         (MAX_CHAR_GREEK): Purged.
1160         (MIN_CHAR_CYRILLIC): Purged.
1161         (MAX_CHAR_CYRILLIC): Purged.
1162         (MIN_CHAR_HEBREW): Commented out.
1163         (MAX_CHAR_HEBREW): Likewise.
1164
1165 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1166
1167         * mule-charset.c (Qto_ucs): New variable.
1168         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
1169         (Fdefine_char): Likewise.
1170         (syms_of_mule_charset): Add new symbol `=>ucs'.
1171
1172 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1173
1174         * mule-charset.c (Fdecode_char): Fixed.
1175
1176 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1177
1178         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
1179         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
1180         "tcvn5712-1".
1181
1182 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1183
1184         * mule-charset.c (Vcharset_ucs_big5): New variable.
1185         (Qucs_big5): Likewise.
1186         (syms_of_mule_charset): Add new symbol `ucs-big5'.
1187         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
1188
1189         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
1190
1191 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1192
1193         * mule-charset.c (decode_builtin_char): Check Big5 code range
1194         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
1195
1196 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1197
1198         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
1199         (Qchinese_gb12345): Likewise.
1200         (Fdecode_builtin_char): Fixed.
1201         (syms_of_mule_charset): Add `chinese-gb12345'.
1202         (complex_vars_of_mule_charset): Add coded-charset
1203         `chinese-gb12345'.
1204
1205         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
1206         (LEADING_BYTE_CHINESE_GB12345): New macro.
1207
1208 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1209
1210         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
1211         and `latin-viscii-upper' for `latin-viscii'.
1212
1213 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1214
1215         * mule-charset.c (Fdecode_builtin_char): Comment out
1216         regularization code for ISO-IR GR representation.
1217
1218 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1219
1220         * mule-charset.c (decode_builtin_char): New function; renamed from
1221         `make_builtin_char'; return -1 instead of signal.
1222         (Fdecode_builtin_char): Use `decode_builtin_char'.
1223
1224         * char-ucs.h (decode_builtin_char): New prototype; renamed from
1225         `make_builtin_char'.
1226         (DECODE_CHAR): Use `decode_builtin_char' instead of
1227         `make_builtin_char'; use mapping table of `chinese-big5' for
1228         `chinese-big5-{1,2}'.
1229
1230 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1231
1232         * text-coding.c (char_encode_big5): New function.
1233         (char_finish_big5): Likewise.
1234         (reset_encoding_stream): Use `char_encode_big5' and
1235         `char_finish_big5' for CODESYS_BIG5.
1236         (mule_encode): Don't use `encode_coding_big5'.
1237         (encode_coding_big5): Deleted.
1238
1239 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1240
1241         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
1242         0x81- in XEmacs UTF-2000.
1243         (detect_coding_big5): Likewise.
1244
1245 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1246
1247         * mule-charset.c (Fdefine_char): Don't use a CCS property to
1248         generate character-id if the CCS property does not have
1249         corresponding predefined character.
1250         (make_builtin_char): Return -1 if corresponding predefined
1251         character is not found.
1252         (Fdecode_char): Return nil if corresponding character is not
1253         found.
1254         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
1255         don't map to builtin ucs space.
1256
1257 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1258
1259         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
1260         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
1261
1262 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1263
1264         * mule-charset.c (Vcharset_ideograph_gt): New variable.
1265         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
1266         (Qideograph_gt): Likewise.
1267         (Qideograph_gt_pj_{1..11}): Likewise.
1268         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
1269         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
1270         `ideograph-gt-pj-11'.
1271         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
1272         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
1273         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
1274
1275         * char-ucs.h (LEADING_BYTE_GT): New macro.
1276         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
1277         (MIN_CHAR_GT): Likewise.
1278         (MAX_CHAR_GT): Likewise.
1279
1280 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1281
1282         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
1283         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
1284
1285         * doprnt.c (unsigned_int_converters): Add `c'.
1286         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
1287
1288         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
1289         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
1290         `MIN_CHAR_MOJIKYO'.
1291         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
1292         (MAX_CHAR_MOJIKYO_0): New macro.
1293         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
1294
1295 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1296
1297         * mule-charset.c (Fdefine_char): Delete cemented out code.
1298         (encode_builtin_char_1): Modify for new allocation of builtin
1299         Mojikyo characters.
1300
1301         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
1302
1303 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1304
1305         * mule-charset.c (Vcharset_ucs_cns): New variable.
1306         (Qucs_cns): New variable.
1307         (syms_of_mule_charset): Add new symbol `ucs-cns'.
1308         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
1309
1310 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1311
1312         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
1313
1314 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
1315
1316         * search.c (search_buffer): Make `charset_base_code' as
1317         character-id >> 6 to eliminate the corresponding last byte in
1318         UTF-8 representation [I'm not sure it is right thing].
1319         (boyer_moore): Likewise.
1320
1321 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
1322
1323         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
1324         representation in MULE.
1325
1326 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1327
1328         * text-coding.c (Fmake_coding_system): Use
1329         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
1330         `EXTERNAL_PROPERTY_LIST_LOOP'.
1331
1332 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1333
1334         * text-coding.c (decode_output_utf8_partial_char): New function.
1335         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
1336
1337 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1338
1339         * text-coding.c (decode_coding_utf8): Output original byte
1340         sequence if it is broken; change order of conditions.
1341
1342         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
1343         of conditions.
1344
1345         * mb-multibyte.h (BYTE_ASCII_P):
1346         Use bit ops for char-signedness safety.
1347         (BYTE_C0_P): Use bit ops for char-signedness safety.
1348         (BYTE_C1_P): Use bit ops for char-signedness safety.
1349
1350         * character.h: (XCHAR_OR_CHAR_INT):
1351         Always use inline function.
1352         Remove redundant type checking assert() - XINT will abort quite
1353         nicely.
1354
1355 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1356
1357         * text-coding.c: (Fencode_shift_jis_char):
1358         (Fencode_big5_char):
1359         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
1360         Replace 0 with '\0' when working with bytes.
1361         Replace initial "(" with "\(" in docstrings.
1362
1363         (Fmake_coding_system):
1364         When type is ccl and value is vector, register it with a proper
1365         symbol.  And checks whether the given ccl program is valid.
1366         (mule_decode): When calling ccl_driver, if src indicates
1367         NULL pointer, set an empty string instead.
1368         (mule_encode): Likewise.
1369
1370         (detect_eol_type):
1371         (detect_coding_sjis):
1372         (decode_coding_sjis):
1373         (detect_coding_big5):
1374         (decode_coding_big5):
1375         (detect_coding_ucs4):
1376         (decode_coding_ucs4):
1377         (detect_coding_utf8):
1378         (decode_coding_utf8):
1379         (detect_coding_iso2022):
1380         (decode_coding_iso2022):
1381         (decode_coding_no_conversion):
1382         (mule_decode):
1383         Make all detecting and decoding functions take an Extbyte * arg.
1384         (text_encode_generic):
1385         (encode_coding_big5):
1386         (encode_coding_no_conversion):
1387         (mule_encode):
1388         Make all encoding functions take a Bufbyte * arg.
1389         Use size_t instead of unsigned int for memory sizes.
1390         Only cast to unsigned char whenever dereferencing Extbyte *.
1391
1392         (struct lrecord_description fcd_description_1): Use countof.
1393         (complex_vars_of_file_coding):
1394         Use countof instead of sizeof.
1395         Use CHECK_NATNUM instead of CHECK_INT.
1396
1397 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1398
1399         * mule-charset.c (Fget_char_attribute): Add new optional argument
1400         `default-value'.
1401         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
1402         (remove_char_ccs): Likewise.
1403
1404 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1405
1406         * text-coding.c (char_encode_shift_jis): New implementation in
1407         UTF-2000.
1408         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
1409         ...)'.
1410
1411         * mule-charset.c (Vcharset_chinese_big5): New variable in
1412         UTF-2000.
1413         (Qchinese_big5): New variable in UTF-2000.
1414         (BIG5_SAME_ROW): New macro in UTF-2000.
1415         (make_builtin_char): Use builtin characters of
1416         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
1417         characters of `Vcharset_chinese_big5'.
1418         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
1419         (complex_vars_of_mule_charset): Add new coded-charset
1420         `chinese-big5' in UTF-2000.
1421
1422         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
1423         (Vcharset_chinese_big5): New external variable declaration.
1424         (Vcharset_japanese_jisx0208_1990): Likewise.
1425
1426 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1427
1428         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
1429         function.
1430         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
1431
1432 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1433
1434         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
1435         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
1436         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
1437         `mojikyo-pj-*'.
1438
1439 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1440
1441         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
1442
1443 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1444
1445         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1446         to 0.17.
1447
1448 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1449
1450         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
1451         for `CHARSET_BY_ATTRIBUTES'.
1452         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
1453         `CHARSET_BY_ATTRIBUTES'.
1454
1455         * text-coding.c (struct decoding_stream): Rename member `CH' to
1456         `CPOS'.
1457         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
1458         (decode_coding_sjis): Likewise.
1459         (decode_coding_big5): Likewise.
1460         (decode_coding_ucs4): Likewise.
1461         (decode_coding_utf8): Likewise.
1462         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
1463         `CHARSET_BY_ATTRIBUTES'.
1464         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
1465         `str->counter'; decode 3, 4 bytes sets.
1466         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
1467         sets.
1468         (decode_coding_no_conversion): Use `str->cpos' instead of
1469         `str->ch'.
1470
1471         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
1472         (Qmojikyo_2022_1): New variable.
1473         (make_charset): Don't use `CHARSET_TYPE_*'.
1474         (range_charset_code_point): Support coded-charset
1475         `mojikyo-2022-1'.
1476         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
1477         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
1478         `CHARSET_BY_ATTRIBUTES'.
1479         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
1480         `CHARSET_BY_ATTRIBUTES'.
1481         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
1482         (complex_vars_of_mule_charset): Add new coded-charset
1483         `mojikyo-2022-1'.
1484
1485         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
1486         interface; changed to inline function.
1487
1488         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
1489         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
1490         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
1491         (CHARSET_TYPE_94): Deleted.
1492         (CHARSET_TYPE_94X94): Deleted.
1493         (CHARSET_TYPE_96): Deleted.
1494         (CHARSET_TYPE_96X96): Deleted.
1495         (CHARSET_TYPE_128): Deleted.
1496         (CHARSET_TYPE_128X128): Deleted.
1497         (CHARSET_TYPE_256): Deleted.
1498         (CHARSET_TYPE_256X256): Deleted.
1499         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
1500         to inline function.
1501         (DECODE_MOJIKYO_2022): New inline function.
1502         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
1503         `Vcharset_mojikyo_2022_1'.
1504
1505 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1506
1507         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
1508         instead of `EQ'.
1509         (put_byte_table): Likewise.
1510         (char_id_table_equal): Use `get_byte_table' [new implementation].
1511
1512 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1513
1514         * mule-charset.c: Include <limits.h> in UTF-2000.
1515         (BT_UINT8_MIN): New macro in UTF-2000.
1516         (BT_UINT8_MAX): New macro in UTF-2000.
1517         (BT_UINT8_t): New macro in UTF-2000.
1518         (BT_UINT8_nil): New macro in UTF-2000.
1519         (BT_UINT8_unbound): New macro in UTF-2000.
1520         (INT_UINT8_P): New inline function in UTF-2000.
1521         (UINT8_VALUE_P): New inline function in UTF-2000.
1522         (UINT8_ENCODE): New inline function in UTF-2000.
1523         (UINT8_DECODE): New inline function in UTF-2000.
1524         (mark_uint8_byte_table): New function in UTF-2000.
1525         (print_uint8_byte_table): New function in UTF-2000.
1526         (uint8_byte_table_equal): New function in UTF-2000.
1527         (uint8_byte_table_hash): New function in UTF-2000.
1528         (make_uint8_byte_table): New function in UTF-2000.
1529         (uint8_byte_table_same_value_p): New function in UTF-2000.
1530         (BT_UINT16_MIN): New macro in UTF-2000.
1531         (BT_UINT16_MAX): New macro in UTF-2000.
1532         (BT_UINT16_t): New macro in UTF-2000.
1533         (BT_UINT16_nil): New macro in UTF-2000.
1534         (BT_UINT16_unbound): New macro in UTF-2000.
1535         (INT_UINT16_P): New inline function in UTF-2000.
1536         (UINT16_VALUE_P): New inline function in UTF-2000.
1537         (UINT16_ENCODE): New inline function in UTF-2000.
1538         (UINT16_DECODE): New inline function in UTF-2000.
1539         (UINT8_TO_UINT16): New inline function in UTF-2000.
1540         (mark_uint16_byte_table): New function in UTF-2000.
1541         (print_uint16_byte_table): New function in UTF-2000.
1542         (uint16_byte_table_equal): New function in UTF-2000.
1543         (uint16_byte_table_hash): New function in UTF-2000.
1544         (make_uint16_byte_table): New function in UTF-2000.
1545         (uint16_byte_table_same_value_p): New function in UTF-2000.
1546         (print_byte_table): New function in UTF-2000.
1547         (byte-table): Use `print_byte_table' as printer.
1548         (make_byte_table): Delete second argument `older'.
1549         (byte_table_same_value_p): New function in UTF-2000.
1550         (copy_byte_table): Deleted.
1551         (get_byte_table): New function in UTF-2000.
1552         (put_byte_table): New function in UTF-2000.
1553         (print_char_id_table): New function in UTF-2000.
1554         (char-id-table): Use `print_char_id_table' as printer.
1555         (make_char_id_table): Delete second argument `older'.
1556         (get_char_id_table): Use `get_byte_table [new implementation].
1557         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
1558         implementation].
1559         (Ffind_char_attribute_table): New function in UTF-2000.
1560         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
1561         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
1562         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
1563         (syms_of_mule_charset): Add new function
1564         `find-char-attribute-table' in UTF-2000.
1565
1566         * lrecord.h (enum lrecord_type): Add
1567         `lrecord_type_uint16_byte_table' and
1568         `lrecord_type_uint8_byte_table'.
1569
1570         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
1571         (Lisp_Uint8_Byte_Table): New type.
1572         (XUINT8_BYTE_TABLE): New macro.
1573         (XSETUINT8_BYTE_TABLE): New macro.
1574         (UINT8_BYTE_TABLE_P): New macro.
1575         (GC_UINT8_BYTE_TABLE_P): New macro.
1576         (struct Lisp_Uint16_Byte_Table): New structure.
1577         (Lisp_Uint16_Byte_Table): New type.
1578         (XUINT16_BYTE_TABLE): New macro.
1579         (XSETUINT16_BYTE_TABLE): New macro.
1580         (UINT16_BYTE_TABLE_P): New macro.
1581         (GC_UINT16_BYTE_TABLE_P): New macro.
1582
1583 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1584
1585         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
1586         (Vcharacter_ideographic_strokes_table): Deleted.
1587         (Vcharacter_total_strokes_table): Deleted.
1588         (Vcharacter_morohashi_daikanwa_table): Deleted.
1589         (Vcharacter_decomposition_table): Deleted.
1590         (Qname): Deleted because it is duplicated.
1591         (Qideographic_radical): Deleted.
1592         (Qideographic_strokes): Deleted.
1593         (Qtotal_strokes): Deleted.
1594         (Qmorohashi_daikanwa): Deleted.
1595         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
1596         `ideographic-radical', `ideographic-strokes', `total-strokes',
1597         `morohashi-daikanwa' and `->decomposition'.
1598         (Fget_char_attribute): Likewise.
1599         (Fput_char_attribute): Likewise; use `make-vector' instead of
1600         `make_older_vector' for `->decomposition' value.
1601         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
1602         `ideograph-daikanwa'.
1603         (syms_of_mule_charset): Delete builtin symbols `name',
1604         `ideographic-radical', `ideographic-strokes', `total-strokes' and
1605         `morohashi-daikanwa'.
1606         (vars_of_mule_charset): Don't setup
1607         `Vcharacter_ideographic_radical_table',
1608         `Vcharacter_ideographic_strokes_table',
1609         `Vcharacter_total_strokes_table',
1610         `Vcharacter_morohashi_daikanwa_table' and
1611         `Vcharacter_decomposition_table'.
1612
1613 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1614
1615         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
1616         `make_older_vector', `make_vector_newer_1' and
1617         `make_vector_newer'.
1618
1619         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
1620         `make_older_vector' and `make_vector_newer'.
1621
1622         * config.h.in (HAVE_GGC): New macro.
1623
1624 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1625
1626         * mule-charset.c (struct char_attribute_list_closure): New
1627         structure in UTF-2000.
1628         (add_char_attribute_to_list_mapper): New function in UTF-2000.
1629         (Fchar_attribute_list): Likewise.
1630         (Fset_charset_mapping_table): Use `make_vector_newer'.
1631         (Fdecode_builtin_char): New function in UTF-2000.
1632         (syms_of_mule_charset): Add new function `char-attribute-list' and
1633         `decode-builtin-char' in UTF-2000.
1634
1635         * lisp.h (make_vector_newer): New prototype.
1636
1637         * alloc.c (make_vector_newer_1): New function.
1638         (make_vector_newer): New function.
1639
1640 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1641
1642         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
1643         50100)'.
1644
1645 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1646
1647         * mule-charset.c (Vchar_attribute_hash_table): New variable.
1648         (Vcharacter_attribute_table): Deleted.
1649         (Vcharacter_name_table): Deleted.
1650         (put_char_attribute): Deleted.
1651         (remove_char_attribute): Deleted.
1652         (struct char_attribute_alist_closure): New structure.
1653         (add_char_attribute_alist_mapper): New function.
1654         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
1655         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
1656         (Fget_char_attribute): Likewise.
1657         (Fput_char_attribute): Likewise.
1658         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
1659         of `remove_char_attribute'.
1660         (Fdefine_char): Return character.
1661         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
1662         and `Vcharacter_name_table'.
1663         (complex_vars_of_mule_charset): Likewise
1664         `Vchar_attribute_hash_table'.
1665
1666 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1667
1668         * character.h (CHARC_CHARSET): New macro.
1669         (CHARC_CHARSET_ID): New macro.
1670         (CHARC_CODE_POINT): New macro.
1671         (CHARC_COLUMNS): New macro.
1672         (CHARC_TO_CHAR): New inline function.
1673         (CHARC_EQ): New inline function.
1674         (CHARC_ASCII_EQ): New inline function.
1675         (CHARC_IS_SPACE): New inline function.
1676         (ASCII_TO_CHARC): New inline function.
1677
1678         * char-ucs.h (encode_char_2): Deleted.
1679         (ENCODE_CHAR): Use `encode_char_1' again.
1680         (breakup_char_1): Likewise.
1681         (CHAR_TO_CHARC): New inline function.
1682
1683         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
1684
1685 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1686
1687         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
1688         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
1689         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
1690         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
1691         (create_string_text_block): Use `CHARC_ASCII_EQ' and
1692         `CHARC_IS_SPACE'.
1693         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
1694
1695         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
1696         `CHARC_CODE_POINT'.
1697         (x_output_display_block): Use `CHARC_CHARSET' and
1698         `CHARC_ASCII_EQ'.
1699
1700         * redisplay-tty.c (tty_output_display_block): Use
1701         `CHARC_ASCII_EQ'.
1702         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
1703
1704         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
1705
1706         * insdel.c (find_charsets_in_charc_string): Use
1707         `CHARC_CHARSET_ID'.
1708         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
1709         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
1710         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
1711         (convert_charc_string_into_malloced_string): Likewise.
1712
1713 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1714
1715         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
1716         instead of <Emchar_dynarr *> for buf; use
1717         `convert_bufbyte_string_into_charc_dynarr' instead of
1718         `convert_bufbyte_string_into_emchar_dynarr'; use
1719         `find_charsets_in_charc_string' instead of
1720         `find_charsets_in_emchar_string'.
1721
1722         * redisplay.h:
1723         - Include "character.h".
1724         (struct rune): New member `cglyph'; delete member `chr'.
1725
1726         * redisplay.c (redisplay_text_width_charc_string): New function;
1727         delete `redisplay_text_width_emchar_string'.
1728         (rtw_charc_dynarr): New variable; renamed from
1729         `rtw_emchar_dynarr'.
1730         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
1731         `rtw_emchar_dynarr'; use
1732         `convert_bufbyte_string_into_charc_dynarr' instead of
1733         `convert_bufbyte_string_into_emchar_dynarr'; use
1734         `redisplay_text_width_charc_string' instead of
1735         `redisplay_text_width_emchar_string'.
1736         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
1737         instead of `rtw_emchar_dynarr'; use
1738         `convert_bufbyte_string_into_charc_dynarr' instead of
1739         `convert_bufbyte_string_into_emchar_dynarr'.
1740         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
1741         `redisplay_text_width_charc_string' instead of
1742         `redisplay_text_width_emchar_string'.
1743         (create_text_block): Modify for <struct rune> change.
1744         (generate_formatted_string_db): Likewise.
1745         (create_string_text_block): Likewise.
1746         (pixel_to_glyph_translation): Likewise.
1747
1748         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
1749         instead of <const Emchar *>.
1750         (x_text_width): Likewise.
1751         (x_output_display_block): Use <Charc_dynarr *> instead
1752         <Emchar_dynarr *>; modify for <structure rune> change.
1753         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
1754         *>.
1755
1756         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
1757         <const Emchar *>; use `charc_string_displayed_columns' instead of
1758         `emchar_string_displayed_columns'.
1759         (tty_output_display_block): Use <Charc_dynarr *> instead of
1760         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
1761         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
1762         (tty_output_charc_dynarr_dynarr): New variable; renamed from
1763         `tty_output_emchar_dynarr_dynarr'.
1764         (tty_output_charc_dynarr): New function; delete
1765         `tty_output_charc_dynarr'.
1766
1767         * redisplay-output.c (compare_runes): Modify for `struct rune'.
1768         (redisplay_output_layout): Use <Charc_dynarr *> instead of
1769         <Emchar_dynarr *> for buf; use
1770         `convert_bufbyte_string_into_charc_dynarr' instead of
1771         `convert_bufbyte_string_into_emchar_dynarr'.
1772
1773         * frame.c (title_string_charc_dynarr): New variable; renamed from
1774         `title_string_emchar_dynarr'.
1775         (generate_title_string): Use `title_string_charc_dynarr' instead
1776         of `title_string_emchar_dynarr'; use
1777         `convert_charc_string_into_malloced_string' instead of
1778         `convert_emchar_string_into_malloced_string'.
1779         (init_frame): Use `title_string_charc_dynarr' instead of
1780         `title_string_emchar_dynarr'.
1781
1782         * console.h:
1783         - Include "character.h".
1784         (struct console_methods): Use <const Charc *> instead of <const
1785         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
1786         <Emchar_dynarr *> in output_string_method.
1787
1788         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
1789         <Emchar_dynarr *>.
1790
1791         * console-stream.c (stream_text_width): Use <const Charc *>
1792         instead of <const Emchar *>.
1793
1794         * character.h (Charc_dynarr): New type.
1795
1796         * char-ucs.h (structure Charc): New structure; define new type
1797         `Charc'.
1798
1799         * char-lb.h (DECODE_CHAR): New inline function.
1800         (encode_char_1): New inline function.
1801         (ENCODE_CHAR): New macro.
1802         (structure Charc): New structure; define new type `Charc'.
1803
1804         * char-1byte.h (Vcharset_control_1): New macro.
1805         (Vcharset_latin_iso8859_1): New macro.
1806         (DECODE_CHAR): New inline function.
1807         (encode_char_1): New inline function.
1808         (ENCODE_CHAR): New macro.
1809         (structure Charc): New structure; define new type `Charc'.
1810
1811         * insdel.c (find_charsets_in_charc_string): New function; delete
1812         `find_charsets_in_emchar_string'.
1813         (charc_string_displayed_columns): New function; delete
1814         `emchar_string_displayed_columns'.
1815         (convert_bufbyte_string_into_charc_dynarr): New function; delete
1816         `convert_bufbyte_string_into_emchar_dynarr'.
1817         (convert_charc_string_into_bufbyte_dynarr): New function; delete
1818         `convert_charc_string_into_bufbyte_dynarr'.
1819         (convert_charc_string_into_malloced_string): New function; delete
1820         `convert_charc_string_into_malloced_string'.
1821
1822         * buffer.h (find_charsets_in_charc_string): New prototype; delete
1823         `find_charsets_in_emchar_string'.
1824         (charc_string_displayed_columns): New prototype; delete
1825         `emchar_string_displayed_columns'.
1826         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
1827         `convert_charc_string_into_bufbyte_dynarr'.
1828         (convert_charc_string_into_malloced_string): New prototype; delete
1829         `convert_charc_string_into_malloced_string'.
1830
1831 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1832
1833         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
1834
1835 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1836
1837         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
1838
1839         * char-ucs.h: Use <short> for <Charset_ID>.
1840
1841         * mule-charset.h, char-1byte.h: Use <unsigned char> for
1842         <Charset_ID>.
1843
1844 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1845
1846         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1847         to 0.16.
1848
1849 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1850
1851         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
1852         variable.
1853         (Qmorohashi_daikanwa): New variable.
1854         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
1855         for `morohashi-daikanwa' attribute.
1856         (Fget_char_attribute): Likewise.
1857         (Fput_char_attribute): Likewise.
1858         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
1859         has the same value of `ideograph-daikanwa'.
1860         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
1861         (vars_of_mule_charset): Setup
1862         `Vcharacter_morohashi_daikanwa_table'.
1863
1864 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1865
1866         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
1867         attributes.
1868         (add_charset_to_list_mapper): Add `key' instead of
1869         `XCHARSET_NAME (value)' to return aliases.
1870
1871 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1872
1873         * mule-charset.c (Vcharacter_ideographic_radical_table): New
1874         variable.
1875         (Vcharacter_ideographic_strokes_table): New variable.
1876         (Qideographic_radical): New variable.
1877         (Qideographic_strokes): New variable.
1878         (Fchar_attribute_alist): Use
1879         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
1880         attribute; use `Vcharacter_ideographic_strokes_table' for
1881         `ideographic-strokes' attribute.
1882         (Fget_char_attribute): Likewise.
1883         (Fput_char_attribute): Likewise.
1884         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
1885         `ideographic-strokes'.
1886         (vars_of_mule_charset): Setup
1887         `Vcharacter_ideographic_radical_table' and
1888         `Vcharacter_ideographic_strokes_table'.
1889
1890 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1891
1892         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
1893         (Qtotal_strokes): New variable.
1894         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
1895         `total-strokes' attribute.
1896         (Fget_char_attribute): Likewise.
1897         (Fput_char_attribute): Likewise.
1898         (syms_of_mule_charset): Add new symbol `total-strokes'.
1899         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
1900
1901 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1902
1903         * mule-charset.c (Vcharacter_decomposition_table): New variable.
1904         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
1905         are found.
1906         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
1907         `->decomposition' attribute.
1908         (Fput_char_attribute): Likewise.
1909         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
1910
1911 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1912
1913         * mule-charset.c (decoding_table_check_elements): New function.
1914         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
1915
1916 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1917
1918         * mule-charset.c (Fset_charset_mapping_table): Use
1919         `put_char_ccs_code_point'.
1920
1921 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1922
1923         * mule-charset.c (decoding_table_put_char): New inline function.
1924         (put_char_ccs_code_point): Use `decoding_table_put_char'.
1925
1926 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1927
1928         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
1929         (XCHARSET_BYTE_SIZE): New macro.
1930         (decoding_table_remove_char): New inline function.
1931         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
1932         `decoding_table_remove_char'.
1933         (remove_char_ccs): Use `decoding_table_remove_char'.
1934         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
1935
1936 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1937
1938         * mule-charset.c (Vcharacter_name_table): New variable.
1939         (Qname): New variable.
1940         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
1941         attribute.
1942         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
1943         `Vcharacter_name_table' for `name' attribute.
1944         (Fremove_char_attribute): Use function `remove_char_ccs'.
1945         (put_char_ccs_code_point): New function.
1946         (remove_char_ccs): New function.
1947         (syms_of_mule_charset): Add new symbol `name'.
1948         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
1949
1950 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1951
1952         * mule-charset.c (make_byte_table): Add new argument `older'.
1953         (make_char_id_table): Likewise.
1954         (copy_char_id_table): Comment out because it is not used.
1955         (put_char_id_table): Modify for `make_byte_table'.
1956         (Fput_char_attribute): Make encoding_table as older object;
1957         inherit older bit of `Vcharacter_composition_table'.
1958         (mark_charset): Don't mark `cs->encoding_table'.
1959         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
1960         normal object; make `Vcharacter_composition_table' as an older
1961         object; delete staticpro for `Vcharacter_composition_table'; make
1962         `Vcharacter_variant_table' as a normal object.
1963
1964         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
1965         (mark_object): Don't check older object in UTF-2000.
1966
1967         * lrecord.h (struct lrecord_header): Add new member `older' in
1968         UTF-2000.
1969         (set_lheader_implementation): Setup `SLI_header->older' in
1970         UTF-2000.
1971         (set_lheader_older_implementation): New macro in UTF-2000.
1972         (OLDER_RECORD_P): New macro in UTF-2000.
1973         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
1974         (alloc_older_lcrecord): New prototype in UTF-2000.
1975         (alloc_older_lcrecord_type): New macro in UTF-2000.
1976
1977 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1978
1979         * mule-charset.c (byte_table_description): Use
1980         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
1981         (char_id_table_description): Delete bogus `, 1'.
1982         (Fget_char_attribute): Refer encoding_table of each coded-charset
1983         to get value of coded-charset attribute of a character.
1984         (Fput_char_attribute): Use `make_older_vector' instead of
1985         `make_vector'; use encoding_table of each coded-charset to store
1986         value of coded-charset attribute of a character.
1987         (Fremove_char_attribute): Use encoding_table of each coded-charset
1988         to store value of coded-charset attribute of a character.
1989         (mark_charset): Mark `cs->encoding_table'; don't mark
1990         `cs->decoding_table'.
1991         (charset_description): Add description of new member
1992         `encoding_table'.
1993         (make_charset): Initialize `encoding_table'.
1994
1995         * char-ucs.h (struct Lisp_Charset): Add new member
1996         `encoding_table'.
1997         (CHARSET_ENCODING_TABLE): New macro.
1998         (XCHARSET_ENCODING_TABLE): New macro.
1999         (charset_code_point): New implementation.
2000         (encode_char_1): Likewise.
2001
2002         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
2003         (disksave_object_finalization_1): Call finalizers of
2004         `all_older_lcrecords' in UTF-2000.
2005         (make_older_vector): New function in UTF-2000.
2006         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
2007         UTF-2000.
2008
2009         * lisp.h (make_older_vector): New prototype in UTF-2000.
2010
2011 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2012
2013         * lrecord.h (enum lrecord_type): Rename
2014         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
2015
2016         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
2017         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
2018         `get_char_code_table'.
2019
2020         * mule-charset.c (mark_char_id_table): Renamed from
2021         `mark_char_code_table'.
2022         (char_id_table_equal): Renamed from `char_code_table_equal'.
2023         (char_id_table_hash): Renamed from `char_code_table_hash'.
2024         (make_char_id_table): Renamed from `make_char_code_table'.
2025         (copy_char_id_table): Renamed from `copy_char_code_table'.
2026         (get_char_id_table): Renamed from `get_char_code_table'.
2027         (put_char_id_table): Renamed from `put_char_code_table'.
2028         (to_char_id): Renamed from `to_char_code'.
2029
2030         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
2031         `Lisp_Char_Code_Table'.
2032         (char_id_table): Renamed from `char_code_table'.
2033         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
2034         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
2035         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
2036         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
2037         (get_char_id_table): Renamed from `get_char_code_table'.
2038
2039 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2040
2041         * lrecord.h (enum lrecord_type): Rename
2042         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
2043
2044         * mule-charset.c (mark_byte_table): Renamed from
2045         `mark_char_byte_table'.
2046         (byte_table_equal): Renamed from `char_byte_table_equal'.
2047         (byte_table_hash): Renamed from `byte_table_hash'.
2048         (make_byte_table): Renamed from `make_byte_table'.
2049         (copy_byte_table): Renamed from `copy_char_byte_table'.
2050
2051         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
2052         `Lisp_Char_Byte_Table'.
2053         (byte_table): Renamed from `char_byte_table'.
2054         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
2055         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
2056         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
2057         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
2058
2059 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2060
2061         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
2062         (dfc_convert_to_internal_format): Likewise.
2063         
2064         * text-coding.c (Fcoding_system_canonical_name_p): New function.
2065         * text-coding.c (Fcoding_system_alias_p): New function.
2066         * text-coding.c (Fcoding_system_aliasee): New function.
2067         * text-coding.c (append_suffix_to_symbol): New function.
2068         * text-coding.c (dangling_coding_system_alias_p): New function.
2069         * text-coding.c (Ffind_coding_system):
2070         * text-coding.c (Fcopy_coding_system):
2071         * text-coding.c (encode_coding_no_conversion):
2072         * text-coding.c (syms_of_file_coding):
2073         * text-coding.c (vars_of_file_coding):
2074         Rewrite coding system alias code.
2075         Allow nested aliases, like symbolic links.
2076         Allow redefinition of coding system aliases.
2077         Prevent existence of dangling coding system aliases.
2078         Eliminate convert_to_external_format.
2079         Eliminate convert_to_internal_format.
2080         
2081         * text-coding.c: Change enum eol_type to eol_type_t.
2082
2083 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2084
2085         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
2086         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
2087
2088         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
2089         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
2090
2091 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2092
2093         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
2094         `ideograph-daikanwa'.
2095
2096         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
2097         (Vcharset_ucs_bmp): Likewise.
2098         (Vcharset_mojikyo): Add new extern variable definition.
2099         (Vcharset_latin_iso8859_2): Deleted because it is not used.
2100         (Vcharset_latin_iso8859_3): Likewise.
2101         (Vcharset_latin_iso8859_4): Likewise.
2102         (Vcharset_latin_iso8859_9): Likewise.
2103         (Vcharset_latin_viscii_lower): Likewise.
2104         (Vcharset_latin_viscii_upper): Likewise.
2105         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
2106         `mojikyo' code-point is used to decode.
2107         (encode_char_2): New function [to convert `mojikyo' code-point to
2108         Mojikyo font encoding].
2109         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
2110         (breakup_char_1): Likewise.
2111         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
2112
2113 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2114
2115         * text-coding.c (Fmake_coding_system): Add document about
2116         `disable-composition' property.
2117
2118 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2119
2120         * text-coding.c (Qdisable_composition): New variable; delete
2121         `Qcomposite'.
2122         (Fmake_coding_system): Add new property `disable-composite';
2123         delete property `composite'.
2124         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
2125         instead of `!CODING_SYSTEM_COMPOSITE'.
2126         (syms_of_file_coding): Add new symbol `disable-composition';
2127         delete symbol `composite'.
2128
2129         * file-coding.h (struct Lisp_Coding_System): Add
2130         `disable_composition'; delete `enable_composition'.
2131         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
2132         `CODING_SYSTEM_COMPOSITE'.
2133         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
2134         `XCODING_SYSTEM_COMPOSITE'.
2135
2136 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2137
2138         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2139         to 0.15.
2140
2141 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2142
2143         * text-coding.c (Qcomposite): New variable.
2144         (Fmake_coding_system): Add new property `composite'.
2145         (struct decoding_stream): Add `combined_char_count',
2146         `combined_chars' and `combining_table' in UTF-2000.
2147         (COMPOSE_FLUSH_CHARS): New macro.
2148         (COMPOSE_ADD_CHAR): New macro.
2149         (reset_decoding_stream): Reset `str->combined_char_count' and
2150         `str->combining_table' in UTF-2000.
2151         (decode_coding_iso2022): Modify for character-decomposition.
2152         (syms_of_file_coding): Add new symbol `composite'.
2153
2154 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2155
2156         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
2157         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
2158         of `Vcharacter_composition_table' if `->decomposition' property
2159         has only 1 element.
2160         (Qlatin_tcvn5712): New variable.
2161         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
2162         (complex_vars_of_mule_charset): Add new coded-charset
2163         `latin-tcvn5712'.
2164
2165         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
2166
2167 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2168
2169         * file-coding.h (struct Lisp_Coding_System): Add
2170         `enable_composition'.
2171         (CODING_SYSTEM_COMPOSITE): New macro.
2172         (XCODING_SYSTEM_COMPOSITE): New macro.
2173
2174 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
2175
2176         * mule-canna.c (c2mu): Fix problem with UTF-2000.
2177
2178 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
2179
2180         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
2181         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
2182
2183 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
2184
2185         * mule-charset.c (Vcharset_mojikyo): New variable.
2186         (Fdefine_char): Don't use coded-charset which does not have
2187         non-builtin character range to allocate character-id.
2188         (Qmojikyo): New variable.
2189         (syms_of_mule_charset): Add new symbol `mojikyo'.
2190         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
2191
2192         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
2193         (LEADING_BYTE_MOJIKYO): New macro.
2194         (MIN_CHAR_MOJIKYO): New macro.
2195         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
2196         (MAX_CHAR_MOJIKYO): New macro.
2197
2198 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
2199
2200         * mule-charset.c (remove_char_attribute): Fixed.
2201
2202 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
2203
2204         * mule-charset.c (remove_char_attribute): New function.
2205         (Fremove_char_attribute): New function.
2206         (encode_builtin_char_1): Comment out builtin-support for
2207         greek-iso8859-7 and cyrillic-iso8859-5.
2208         (Fdecode_char): Check `code' is an integer.
2209         (syms_of_mule_charset): Add `remove-char-attribute'.
2210         (MIN_CHAR_GREEK): Deleted.
2211         (MAX_CHAR_GREEK): Likewise.
2212         (MIN_CHAR_CYRILLIC): Likewise.
2213         (MAX_CHAR_CYRILLIC): Likewise.
2214         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
2215         MAX_CHAR_GREEK for `greek-iso8859-7'.
2216
2217         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
2218         (MAX_CHAR_GREEK): Likewise.
2219         (MIN_CHAR_CYRILLIC): Likewise.
2220         (MAX_CHAR_CYRILLIC): Likewise.
2221
2222 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
2223
2224         * mule-charset.c (Fdefine_char): Fix problem when new code-point
2225         format is used without `ucs' property.
2226         (Fdecode_char): Fix problem with GR representation.
2227         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
2228         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
2229
2230 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
2231
2232         * mule-charset.c (make_builtin_char): New function.
2233         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
2234         (Fset_charset_mapping_table): Modify for new representation of
2235         code-point.
2236         (Fdecode_char): New function.
2237         (syms_of_mule_charset): Add new builtin function `decode-char' in
2238         UTF-2000.
2239
2240         * char-ucs.h (make_builtin_char): New prototype.
2241         (DECODE_CHAR): New inline function.
2242         (MAKE_CHAR): Use `DECODE_CHAR'.
2243
2244 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
2245
2246         * text-coding.c (parse_charset_conversion_specs): Use
2247         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
2248         `XCHARSET_TYPE'.
2249         (iso2022_designate): Likewise.
2250
2251         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
2252         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
2253
2254         * mule-charset.c (Vcharset_ucs): New variable.
2255         (print_charset): Change design; use `CHARSET_CHARS' and
2256         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
2257         (make_charset): Change signature to specify `chars' and
2258         `dimension' instead of `type'.
2259         (range_charset_code_point): Modify for 256^n-set.
2260         (encode_builtin_char_1): Encode as `ucs' in default.
2261         (Fmake_charset): Modify for `make_charset'.
2262         (Fmake_reverse_direction_charset): Likewise.
2263         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
2264         UTF-2000.
2265         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
2266         for `make_charset'.
2267
2268         * char-ucs.h (Vcharset_ucs): New variable.
2269         (LEADING_BYTE_UCS): New macro.
2270         (struct Lisp_Charset): Delete `type'; change type of `dimension'
2271         and `chars' to `unsigned short' from `unsigned int'.
2272         (CHARSET_TYPE): Deleted.
2273         (XCHARSET_TYPE): Deleted.
2274
2275 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
2276
2277         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
2278
2279         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
2280         (ENCODE_CHAR): New macro.
2281
2282 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
2283
2284         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2285         to 0.14 (Kawachi-Katakami).
2286
2287 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
2288
2289         * text-coding.c (char_encode_shift_jis): Modify for
2290         `charset_code_point'.
2291         (char_encode_iso2022): Likewise.
2292
2293         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
2294         (integer) instead of list of <Lisp_Object>s (integers) as the
2295         format of code-point of a coded-charset.
2296         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
2297         (encode_builtin_char_1): New function; delete
2298         `split_builtin_char'.
2299         (charset_code_point): Return <int> instead of <Lisp_Object>.
2300         (Fsplit_char): Don't use `SPLIT_CHAR'.
2301
2302         * char-ucs.h (encode_builtin_char_1): New prototype; delete
2303         prototype for `split_builtin_char'.
2304         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
2305         (charset_code_point): Likewise.
2306         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
2307         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
2308
2309 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
2310
2311         * mule-charset.c (complex_vars_of_mule_charset): Don't define
2312         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
2313
2314 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2315
2316         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
2317
2318         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
2319         (MAX_CHAR_OBS_94x94): Deleted.
2320
2321 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2322
2323         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
2324
2325         * char-ucs.h (MAX_CHAR_BMP): New macro.
2326
2327 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
2328
2329         * text-coding.c: Sync with r21-2-24.
2330
2331 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
2332
2333         * file-coding.c: Modify for UTF-2000.
2334
2335 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
2336
2337         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2338         to 0.13 (Takaida).
2339
2340 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
2341
2342         * mule-charset.c (split_builtin_char): Delete builtin support for
2343         `katakana-jisx0201'.
2344         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
2345         BMP area in builtin representation.
2346
2347         * char-ucs.h (MAKE_CHAR): Delete builtin support for
2348         `Vcharset_katakana_jisx0201'.
2349
2350 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
2351
2352         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
2353         (Qisolated): New variable.
2354         (Qinitial): New variable.
2355         (Qmedial): New variable.
2356         (Qfinal): New variable.
2357         (Qvertical): New variable.
2358         (Qsmall): New variable.
2359         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
2360         `Qvertical' and `Qsmall'.
2361         (Qmojikyo_pj_[1 .. 21]): New variable.
2362         (syms_of_mule_charset): Add new symbols `isolated', `initial',
2363         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
2364         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
2365         .. 21]'.
2366
2367 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
2368
2369         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
2370         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
2371         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
2372
2373 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
2374
2375         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
2376         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
2377         BMP.
2378         (Qjapanese_jisx0208_1990): New variable.
2379         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
2380         (complex_vars_of_mule_charset): Add new coded-charset
2381         `japanese-jisx0208-1990'.
2382
2383         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
2384         (MIN_CHAR_JIS_X0208_1990): New macro.
2385         (MAX_CHAR_JIS_X0208_1990): New macro.
2386
2387 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2388
2389         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
2390         coded-charset is not found.
2391
2392 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2393
2394         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
2395         (Fdefine_char): Use `Fmake_char'.
2396
2397 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2398
2399         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
2400         (Vcharset_hiragana_jisx0208): Deleted.
2401         (Vcharset_katakana_jisx0208): Deleted.
2402         (Qideograph_daikanwa): New variable.
2403         (Qhiragana_jisx0208): Deleted.
2404         (Qkatakana_jisx0208): Deleted.
2405         (split_builtin_char): Split `ideograph-daikanwa'.
2406         (Fsplit_char): New implementation for UTF-2000.
2407         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
2408         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
2409         (complex_vars_of_mule_charset): Add new coded-charset
2410         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
2411         `katakana-jisx0208'.
2412
2413         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
2414         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
2415         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
2416         (MIN_CHAR_DAIKANWA): New macro.
2417         (MAX_CHAR_DAIKANWA): New macro.
2418
2419 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2420
2421         * data.c (Fstring_to_number): Don't recognize floating point if
2422         base is not 10.
2423
2424 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2425
2426         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
2427
2428 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2429
2430         * mule-charset.c (Qsquare): New variable.
2431         (to_char_code): Add `Qsquare'.
2432         (syms_of_mule_charset): Add new symbol `square'.
2433
2434 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2435
2436         * mule-charset.c (Qcircle): New variable.
2437         (to_char_code): Add `Qcircle'.
2438         (syms_of_mule_charset): Add new symbol `circle'.
2439
2440 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2441
2442         * mule-charset.c (Qfont): New variable.
2443         (to_char_code): Add `Qfont'.
2444         (syms_of_mule_charset): Add new symbol `font'.
2445
2446 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2447
2448         * mule-charset.c (Qsub): New variable.
2449         (to_char_code): Add `Qsub'.
2450         (syms_of_mule_charset): Add new symbol `sub'.
2451
2452 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2453
2454         * mule-charset.c (Fput_char_attribute): Convert each element of
2455         VALUE to GL position if ATTRIBUTE is a GR-set,
2456
2457 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2458
2459         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
2460         coded-charset is a GR-set.
2461
2462 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2463
2464         * mule-charset.c (Fput_char_attribute): Check each element of
2465         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
2466
2467 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2468
2469         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
2470         UTF-2000.
2471         (Qethiopic_ucs): New variable in UTF-2000.
2472         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
2473         (complex_vars_of_mule_charset): Add new coded-charset
2474         `ethiopic-ucs' in UTF-2000.
2475
2476         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
2477         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
2478         9)'.
2479         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
2480         10)'.
2481         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
2482
2483 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
2484
2485         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
2486         `ascii'.
2487
2488 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2489
2490         * mule-charset.c (Vcharacter_variant_table): New variable.
2491         (Q_ucs): New variable.
2492         (Fchar_variants): New function.
2493         (Fput_char_attribute): Register `->ucs' value to
2494         `Vcharacter_variant_table'.
2495         (syms_of_mule_charset): Add new function `char-variants' and new
2496         symbol `->ucs'.
2497         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
2498
2499 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2500
2501         * mule-charset.c (get_char_code_table): Allow negative character
2502         code.
2503         (put_char_code_table): Likewise.
2504         (Vcharacter_composition_table): New variable.
2505         (Q_decomposition): New variable.
2506         (Qwide): New variable.
2507         (Qnarrow): New variable.
2508         (Qcompat): New variable.
2509         (QnoBreak): New variable.
2510         (Qsuper): New variable.
2511         (Qfraction): New variable.
2512         (to_char_code): New function.
2513         (Fget_composite_char): New function.
2514         (Fput_char_attribute): Register `->decomposition' value to
2515         `Vcharacter_composition_table'.
2516         (syms_of_mule_charset): Add new function `get-composite-char', new
2517         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
2518         `super' and `fraction'.
2519         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
2520
2521 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2522
2523         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
2524         character; copy the return value.
2525
2526 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2527
2528         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
2529
2530         * mule-charset.c (range_charset_code_point): Must use make_int.
2531         (split_builtin_char): New function.
2532
2533 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2534
2535         * mule-charset.c (char_byte_table): Change name from
2536         "char-code-table" to "char-byte-table".
2537         (mark_char_code_table): New function.
2538         (char_code_table_equal): New function.
2539         (char_code_table_hash): New function.
2540         (char_code_table_description): New constant.
2541         (char_code_table): New type.
2542         (make_char_code_table): New function.
2543         (copy_char_code_table): New function.
2544         (get_char_code_table): Modify for `char_code_table' type.
2545         (put_char_code_table): Likewise.
2546         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
2547         (Kashiwara).
2548
2549         * char-ucs.h (char_code_table): New type.
2550         (XCHAR_CODE_TABLE): New macro.
2551         (XSETCHAR_CODE_TABLE): New macro.
2552         (CHAR_CODE_TABLE_P): New macro.
2553         (GC_CHAR_CODE_TABLE_P): New macro.
2554         (struct Lisp_Char_Code_Table): New structure.
2555
2556 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2557
2558         * mule-charset.c (Fmake_charset): Setup byte_offset for
2559         {94|96}^n-set.
2560
2561 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2562
2563         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
2564         character.
2565
2566 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2567
2568         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
2569         is found.
2570
2571 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2572
2573         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
2574         charset, it is regarded as a charset.
2575         (put_char_attribute): New function in UTF-2000.
2576         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
2577         charset, mapping-table of the charset is modified.
2578         (Fdefine_char): New function in UTF-2000.
2579         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
2580         `Fput_char_attribute'.
2581         (syms_of_mule_charset): Add new function `define-char' and new
2582         symbol `ucs' in UTF-2000.
2583         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
2584
2585 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
2586
2587         * mule-charset.c (Fcharset_name): Define `byte_offset' in
2588         non-UTF-2000 configuration.
2589
2590 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
2591
2592         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
2593         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
2594
2595         * mule-charset.c (mark_charset): `cs->encoding_table' has been
2596         deleted.
2597         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
2598         (Fset_charset_mapping_table): Likewise.
2599
2600         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
2601         (CHARSET_ENCODING_TABLE): Delete.
2602         (XCHARSET_ENCODING_TABLE): Delete.
2603         (charset_code_point): New interface.
2604
2605 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
2606
2607         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
2608         instead of `charset_get_byte1' and `charset_get_byte2'.
2609
2610         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
2611         (charset_get_byte2): Deleted.
2612
2613 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
2614
2615         * char-ucs.h (SPLIT_CHAR): New inline function.
2616         (breakup_char_1): Use `SPLIT_CHAR'.
2617
2618         * mule-charset.c (range_charset_code_point): New function.
2619         (charset_code_point): New function.
2620
2621         * char-ucs.h (range_charset_code_point): New interface.
2622         (breakup_char_1): Use `range_charset_code_point'.
2623
2624 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
2625
2626         * mule-charset.c (Fmake_charset): Delete unused local variable
2627         `code_offset'.
2628
2629         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
2630         (breakup_char_1): Find a charset and code-point in
2631         `Vcharacter_attribute_table'.
2632
2633 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
2634
2635         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2636         to 0.10 (Yao).
2637
2638 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
2639
2640         * mule-charset.c (Vcharacter_attribute_table): New variable.
2641         (Fchar_attribute_alist): New function.
2642         (Fget_char_attribute): New function.
2643         (Fput_char_attribute): New function.
2644         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
2645         too.
2646         (syms_of_mule_charset): Add new function `char-attribute-alist',
2647         `get-char-attribute' and `put-char-attribute'.
2648         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
2649
2650 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
2651
2652         * mule-charset.c (Fmake_charset): Just use
2653         `get_unallocated_leading_byte'.
2654
2655         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
2656         sets; don't use final-byte based number for private sets.
2657
2658 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2659
2660         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
2661         integer.
2662
2663 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2664
2665         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2666         to 0.9.
2667
2668 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2669
2670         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
2671         of `CHAR_LEADING_BYTE' in UTF-2000.
2672
2673         * insdel.c (find_charsets_in_bufbyte_string): Use
2674         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
2675         (find_charsets_in_emchar_string): Likewise.
2676
2677         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
2678         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
2679
2680         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
2681         (CHAR_CHARSET_ID): New macro.
2682
2683 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2684
2685         * chartab.c (get_char_table): Don't use type `Charset_ID' for
2686         charset-id - MIN_LEADING_BYTE.
2687         (put_char_table): Likewise.
2688
2689 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2690
2691         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
2692         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
2693         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
2694         (CHARSET_ID_OFFSET): New macro.
2695         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
2696         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
2697         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
2698         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
2699         4).
2700         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
2701         5).
2702         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
2703         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
2704         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
2705         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
2706         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
2707
2708 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2709
2710         * mule-charset.c (next_allocated_leading_byte): New variable in
2711         UTF-2000.
2712         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
2713         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
2714         (get_unallocated_leading_byte): Simply use
2715         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
2716         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
2717         UTF-2000.
2718
2719         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
2720         (MAX_LEADING_BYTE_PRIVATE): New macro.
2721         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
2722         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
2723
2724 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2725
2726         * mule-charset.c (Fmake_charset): Allocate final-byte based
2727         charset-id for 94-set, 96-set and 94x94-set.
2728
2729 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2730
2731         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
2732         ambiguous `else'.
2733         (Fmake_charset): Likewise.
2734         (complex_vars_of_mule_charset): Modify the font registry of
2735         `ucs-bmp' not to match `Ethiopic-Unicode'.
2736
2737 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2738
2739         * mule-charset.c (complex_vars_of_mule_charset): Add font
2740         registory of `ucs-bmp'.
2741
2742 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2743
2744         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
2745         coded-charsets in `default-coded-charset-priority-list' when
2746         breaking up a character.
2747
2748         * mule-charset.c (Vcharset_latin_viscii): New variable.
2749         (Qlatin_viscii): New variable.
2750         (make_charset): Don't use `decoding_table'.
2751         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
2752         byte_offset.
2753         (Fset_charset_mapping_table): New implementation.
2754         (syms_of_mule_charset): Add new symbol `latin-viscii'.
2755         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
2756         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
2757         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
2758         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
2759         charset `latin_viscii'.
2760
2761         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
2762         (CHARSET_TYPE_94X94): Change to 1 from 2.
2763         (CHARSET_TYPE_96): Change to 2 from 1.
2764         (CHARSET_TYPE_128): New macro.
2765         (CHARSET_TYPE_128X128): Change to 5 from 4.
2766         (CHARSET_TYPE_256): New macro.
2767         (CHARSET_TYPE_256X256): Change to 7 from 5.
2768         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
2769
2770 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2771
2772         * text-coding.c (char_encode_shift_jis): Refer
2773         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
2774         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
2775
2776         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
2777         (char_byte_table_equal): New function in UTF-2000.
2778         (char_byte_table_hash): New function in UTF-2000.
2779         (char_byte_table_description): New constant in UTF-2000.
2780         (char_byte_table): New type in UTF-2000.
2781         (make_char_byte_table): New function in UTF-2000.
2782         (copy_char_byte_table): New function in UTF-2000.
2783         (make_char_code_table): New macro in UTF-2000.
2784         (get_char_code_table): New function in UTF-2000.
2785         (put_char_code_table): New function in UTF-2000.
2786         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
2787         (charset_description): Add setting in UTF-2000.
2788         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
2789         `CHARSET_TO_BYTE1_TABLE(cs)'.
2790         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
2791         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
2792         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
2793         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
2794         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
2795         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
2796         `CHARSET_TO_BYTE2_TABLE(cs)'.
2797
2798         * char-ucs.h (char_byte_table): New type.
2799         (XCHAR_BYTE_TABLE): New macro.
2800         (XSETCHAR_BYTE_TABLE): New macro.
2801         (CHAR_BYTE_TABLE_P): New macro.
2802         (GC_CHAR_BYTE_TABLE_P): New macro.
2803         (struct Lisp_Char_Byte_Table): New structure.
2804         (get_char_code_table): New interface.
2805         (Emchar_to_byte_table): Deleted.
2806         (get_byte_from_character_table): Deleted.
2807         (struct Lisp_Charset): Add `encoding_table'; delete
2808         `to_byte1_table' and `to_byte2_table'.
2809         (CHARSET_ENCODING_TABLE): New macro.
2810         (CHARSET_TO_BYTE1_TABLE): Deleted.
2811         (CHARSET_TO_BYTE2_TABLE): Deleted.
2812         (XCHARSET_ENCODING_TABLE): New macro.
2813         (XCHARSET_TO_BYTE1_TABLE): Deleted.
2814         (XCHARSET_TO_BYTE2_TABLE): Deleted.
2815
2816 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
2817
2818         * mule-charset.c (syms_of_mule_charset): Delete charset alias
2819         `vietnamese-viscii-*'.
2820
2821 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
2822
2823         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
2824         (Qvietnamese_viscii_upper): New variable.
2825         (Fdefine_charset_alias): New function.
2826         (syms_of_mule_charset): Add new function `define-charset-alias'.
2827         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
2828         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
2829         `latin-viscii-*'.
2830
2831 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
2832
2833         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
2834         (MAX_CHAR_OBS_94x94): New macro.
2835         (breakup_char_1): Support obsolete XEmacs-UCS private code space
2836         for 94x94 sets.
2837
2838         * mule-charset.c (put_byte_from_character_table): Change unit size
2839         from 128 to 256.
2840         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
2841         not defined.
2842         (Fmake_reverse_direction_charset): Modify dummy argument of
2843         `make_charset' for non-UTF-2000 environment.
2844
2845 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2846
2847         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
2848
2849         * mule-charset.c (destroy_byte_from_character_table): New macro.
2850         (latin_jisx0201_to_ucs): Deleted.
2851         (latin_iso8859_2_to_ucs): Deleted.
2852         (latin_iso8859_3_to_ucs): Deleted.
2853         (latin_iso8859_4_to_ucs): Deleted.
2854         (latin_iso8859_9_to_ucs): Deleted.
2855         (latin_viscii_lower_to_ucs): Deleted.
2856         (latin_viscii_upper_to_ucs): Deleted.
2857         (mark_charset): Mark `cs->decoding_table'.
2858         (Fcharset_mapping_table): Fix DOC-string.
2859         (Fset_charset_mapping_table): New function.
2860         (syms_of_mule_charset): Add nwe function
2861         `set-charset-mapping-table'.
2862         (complex_vars_of_mule_charset): Don't setup and use
2863         `latin_*_to_ucs'.
2864
2865 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2866
2867         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
2868         charset.
2869
2870 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2871
2872         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
2873         (Vcharset_katakana_jisx0208): New variable.
2874         (Qhiragana_jisx0208): New variable.
2875         (Qkatakana_jisx0208): New variable.
2876         (make_charset): Add new argument `byte_offset'.
2877         (charset_get_byte1): Modify for new coded-charset definition; use
2878         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
2879         `XCHARSET_BYTE_OFFSET'.
2880         (Fmake_charset): Modify for `make_charset'.
2881         (Fmake_reverse_direction_charset): Likewise.
2882         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
2883         `katakana-jisx0208'.
2884         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
2885         `.'  in font registry of charset `katakana-jisx0201',
2886         `latin-jisx0201', `vietnamese-viscii-lower' and
2887         `vietnamese-viscii-upper'; modify DOC-string of charset
2888         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
2889         registry of charset `japanese-jisx0208' not to use font for JIS
2890         X0208:1990; add new charset `hiragana-jisx0208' and
2891         `katakana-jisx0208'.
2892
2893         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
2894         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
2895         (struct Lisp_Charset): Add `byte_offset'.
2896         (CHARSET_BYTE_OFFSET): New macro.
2897         (XCHARSET_UCS_MIN): New macro.
2898         (XCHARSET_UCS_MAX): New macro.
2899         (XCHARSET_CODE_OFFSET): New macro.
2900         (XCHARSET_BYTE_OFFSET): New macro.
2901         (MIN_CHAR_HIRAGANA): New macro.
2902         (MAX_CHAR_HIRAGANA): New macro.
2903         (MIN_CHAR_KATAKANA): New macro.
2904         (MAX_CHAR_KATAKANA): New macro.
2905         (MAKE_CHAR): Modify for new coded-charset definition; use
2906         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
2907         `XCHARSET_BYTE_OFFSET'.
2908
2909 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
2910
2911         * mule-charset.c (CHAR96): Deleted.
2912         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
2913         <Lisp_Object>.
2914         (latin_iso8859_2_to_ucs): Likewise.
2915         (latin_iso8859_3_to_ucs): Likewise.
2916         (latin_iso8859_4_to_ucs): Likewise.
2917         (latin_iso8859_9_to_ucs): Likewise.
2918         (latin_viscii_lower_to_ucs): Likewise.
2919         (latin_viscii_upper_to_ucs): Likewise.
2920         (latin_tcvn5712_to_ucs): Commented out.
2921         (make_charset): Change type of argument `decoding_table' from
2922         <Emchar*> to <Lisp_Object> [vector of characters].
2923         (Fmake_charset): Modify for `make_charset'.
2924         (Fmake_reverse_direction_charset): Likewise.
2925         (Fcharset_mapping_table): New function in UTF-2000.
2926         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
2927         UTF-2000.
2928         (complex_vars_of_mule_charset): Modify for type change of
2929         `*_to_ucs'; modify for `make_charset'.
2930
2931         * char-ucs.h (struct Lisp_Charset): Change type of
2932         `decoding_table' from <Emchar*> to <Lisp_Object>.
2933         (MAKE_CHAR): Modify for new specification of `decoding_table'.
2934
2935 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
2936
2937         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
2938         error with non-UTF-2000-Mule.
2939
2940 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
2941
2942         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
2943         in lisp again].
2944         (Vcharset_chinese_cns11643_4): Likewise.
2945         (Vcharset_chinese_cns11643_5): Likewise.
2946         (Vcharset_chinese_cns11643_6): Likewise.
2947         (Vcharset_chinese_cns11643_7): Likewise.
2948         (Qchinese_cns11643_3): Likewise.
2949         (Qchinese_cns11643_4): Likewise.
2950         (Qchinese_cns11643_5): Likewise.
2951         (Qchinese_cns11643_6): Likewise.
2952         (Qchinese_cns11643_7): Likewise.
2953         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
2954         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
2955         and `chinese-cns11643-7' to lisp/mule/chinese.el.
2956         (complex_vars_of_mule_charset): Likewise.
2957
2958 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
2959
2960         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
2961         96-set.
2962         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
2963         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
2964
2965 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
2966
2967         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
2968         0xFF60.
2969         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
2970         (breakup_char_1): Likewise.
2971
2972         * text-coding.c (char_encode_iso2022): Keep designated charsets if
2973         one of them includes the specified character.
2974
2975 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
2976
2977         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
2978
2979 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
2980
2981         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
2982
2983 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
2984
2985         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
2986         definition for non-UTF-2000 Mule.
2987         (latin_iso8859_3_to_ucs): Likewise.
2988         (latin_iso8859_4_to_ucs): Likewise.
2989         (latin_iso8859_9_to_ucs): Likewise.
2990         (latin_jisx0201_to_ucs): Likewise.
2991         (MIN_CHAR_THAI): Likewise.
2992         (MAX_CHAR_THAI): Likewise.
2993         (MIN_CHAR_GREEK): Likewise.
2994         (MAX_CHAR_GREEK): Likewise.
2995         (MIN_CHAR_HEBREW): Likewise.
2996         (MAX_CHAR_HEBREW): Likewise.
2997         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
2998         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
2999         (MIN_CHAR_CYRILLIC): Likewise.
3000         (MAX_CHAR_CYRILLIC): Likewise.
3001
3002 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3003
3004         * char-ucs.h (breakup_char_1): Use
3005         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
3006         thai-tis620 and katakana-jisx0201 area.
3007
3008 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3009
3010         * char-ucs.h (breakup_char_1): Use
3011         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
3012         area.
3013
3014         * text-coding.c (reset_encoding_stream): Fixed.
3015         (char_encode_ucs4): Delete `& 255'.
3016
3017         * char-ucs.h (breakup_char_1): Use
3018         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
3019
3020 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3021
3022         * file-coding.c (Fmake_coding_system): Don't set up
3023         `codesys->fixed.size'.
3024         (encode_coding_no_conversion): Don't refer
3025         `str->codesys->fixed.size'.
3026
3027 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3028
3029         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
3030         (latin_a_char_to_byte1): Deleted.
3031         (latin_a_char_to_byte2): Deleted.
3032
3033 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3034
3035         * mule-charset.c (make_charset): Add new argument `ucs_min',
3036         `ucs_max' and `code_offset'.
3037         (charset_get_byte1): New implementation [delete specific charset
3038         depended implementations].
3039         (Fmake_charset): Modify for `make_charset'.
3040         (Fmake_reverse_direction_charset): Likewise.
3041         (complex_vars_of_mule_charset): Likewise.
3042
3043         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
3044         `code_offset'.
3045         (CHARSET_UCS_MIN): New macro.
3046         (CHARSET_UCS_MAX): New macro.
3047         (CHARSET_CODE_OFFSET): New macro.
3048         (MAKE_CHAR): Delete charset depended definitions [except
3049         katakana-jisx0201].
3050
3051 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
3052
3053         * char-ucs.h (breakup_char_1): Use
3054         `Vdefault_coded_charset_priority_list' for C0-Controls,
3055         Basic-Latin, C1-Controls and Latin-1-Supplement area.
3056
3057 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3058
3059         * char-ucs.h (charset_get_byte1): New function.
3060         (XCHARSET_GET_BYTE1): Deleted.
3061         (charset_get_byte2): New function.
3062         (XCHARSET_GET_BYTE2): Deleted.
3063         (Vdefault_coded_charset_priority_list): New external variable.
3064         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
3065         `Vdefault_preferred_coded_charset_list'.
3066
3067         * mule-charset.c (charset_get_byte1): New function.
3068         (charset_get_byte2): New function.
3069         (Vdefault_coded_charset_priority_list): New variable.
3070         (vars_of_mule_charset): Add new variable
3071         `default-coded-charset-priority-list'.
3072
3073 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3074
3075         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
3076         (XCHARSET_GET_BYTE2): New inline function.
3077         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
3078         `XCHARSET_GET_BYTE2'.
3079
3080 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3081
3082         * mule-charset.c (make_charset): Initialize
3083         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
3084         NULL if table is not defined.
3085
3086 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3087
3088         * text-coding.c (char_encode_shift_jis): Use
3089         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
3090         `ucs_to_latin_jisx0201'.
3091
3092         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
3093         (ucs_to_latin_iso8859_2): Deleted.
3094         (ucs_to_latin_iso8859_3): Deleted.
3095         (ucs_to_latin_iso8859_4): Deleted.
3096         (ucs_to_latin_iso8859_9): Deleted.
3097         (ucs_to_latin_viscii_lower): Deleted.
3098         (ucs_to_latin_viscii_upper): Deleted.
3099         (ucs_to_latin_tcvn5712): Deleted.
3100         (make_charset): Add new argument `decoding_table'; set up
3101         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
3102         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
3103         `decoding_table' is defined in UTF-2000.
3104         (Fmake_charset): Modify for `make_charset'.
3105         (Fmake_reverse_direction_charset): Likewise.
3106         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
3107         and `GENERATE_96_SET'.
3108
3109         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
3110         (ucs_to_latin_jisx0201): Deleted.
3111         (latin_iso8859_2_to_ucs): Deleted.
3112         (ucs_to_latin_iso8859_2): Deleted.
3113         (latin_iso8859_3_to_ucs): Deleted.
3114         (ucs_to_latin_iso8859_3): Deleted.
3115         (latin_iso8859_4_to_ucs): Deleted.
3116         (ucs_to_latin_iso8859_4): Deleted.
3117         (latin_iso8859_9_to_ucs): Deleted.
3118         (ucs_to_latin_iso8859_9): Deleted.
3119         (latin_viscii_lower_to_ucs): Deleted.
3120         (ucs_to_latin_viscii_lower): Deleted.
3121         (latin_viscii_upper_to_ucs): Deleted.
3122         (ucs_to_latin_viscii_upper): Deleted.
3123         (struct Lisp_Charset): Renamed `encoding_table' to
3124         `to_byte1_table'; add `to_byte2_table'.
3125         (CHARSET_DECODING_TABLE): New macro.
3126         (CHARSET_TO_BYTE1_TABLE): New macro.
3127         (CHARSET_TO_BYTE2_TABLE): New macro.
3128         (XCHARSET_DECODING_TABLE): New macro.
3129         (XCHARSET_TO_BYTE1_TABLE): New macro.
3130         (XCHARSET_TO_BYTE2_TABLE): New macro.
3131         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
3132         tables.
3133         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
3134         don't use `ucs_to_*' tables.
3135
3136 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3137
3138         * text-coding.c (Fmake_coding_system): Don't set up
3139         `codesys->fixed.size'.
3140         (encode_coding_no_conversion): Use `if' instead of `switch'.
3141
3142         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
3143
3144 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3145
3146         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
3147         (Fmake_charset): Modify for `make_charset'.
3148         (Fmake_reverse_direction_charset): Likewise.
3149         (complex_vars_of_mule_charset): Likewise.
3150
3151 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3152
3153         * text-coding.c (char_encode_shift_jis): Use table
3154         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
3155
3156 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3157
3158         * text-coding.c (text_encode_generic): Use `if' instead of
3159         `switch'.
3160         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
3161         decode JIS-Latin.
3162
3163 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3164
3165         * text-coding.c (encode_coding_sjis): Deleted.
3166         (char_encode_shift_jis): New function.
3167         (char_finish_shift_jis): New function.
3168         (reset_encoding_stream): Set up `encode_char' and `finish' for
3169         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
3170         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
3171         (char_encode_utf8): Treat `eol_type'.
3172
3173 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3174
3175         * file-coding.c (decode_coding_iso2022): Use
3176         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
3177
3178 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3179
3180         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3181         to 0.7 (Hirano).
3182
3183 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3184
3185         * char-lb.h (CHAR_COLUMNS): New macro.
3186
3187 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3188
3189         * text-coding.c (char_encode_ucs4): New function.
3190         (char_finish_ucs4): New function.
3191         (encode_coding_ucs4): Deleted.
3192         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
3193         (text_encode_generic): Delete local variable `charset' and `half'.
3194         (ucs_to_mule_table): Deleted.
3195         (mule_to_ucs_table): Deleted.
3196         (Fset_ucs_char): Deleted.
3197         (ucs_to_char): Deleted.
3198         (Fucs_char): Deleted.
3199         (Fset_char_ucs): Deleted.
3200         (Fchar_ucs): Deleted.
3201         (decode_ucs4): Deleted.
3202         (mule_char_to_ucs4): Deleted.
3203         (encode_ucs4): Deleted.
3204         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
3205         (decode_coding_utf8): Likewise.
3206         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
3207         (char_encode_iso2022): Fixed.
3208         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
3209         `Fset_char_ucs' and `Fchar_ucs'.
3210         (complex_vars_of_file_coding): Don't initialize
3211         `ucs_to_mule_table'.
3212
3213         * objects-tty.c (tty_initialize_font_instance): Don't use
3214         `XCHARSET_COLUMNS'.
3215
3216         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
3217         UTF-2000.
3218
3219         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
3220         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3221
3222         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
3223         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3224         (emchar_string_displayed_columns): Likewise.
3225
3226         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
3227         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3228         (string_column_at_point): Likewise.
3229         (Fmove_to_column): Likewise.
3230
3231         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
3232         `encoding_table' and `decoding_table'.
3233         (CHARSET_REP_BYTES): Deleted.
3234         (XCHARSET_REP_BYTES): Deleted.
3235         (XCHARSET_COLUMNS): Deleted.
3236         (CHAR_COLUMNS): New macro.
3237         (lookup_composite_char): Deleted unconditionally.
3238         (composite_char_string): Likewise.
3239
3240 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3241
3242         * char-ucs.h (Emchar_to_byte_table): New type.
3243         (get_byte_from_character_table): New function interface.
3244         (Vcharset_latin_jisx0201): New variable.
3245         (latin_jisx0201_to_ucs): New variable.
3246         (ucs_to_latin_jisx0201): New variable.
3247         (Vcharset_latin_iso8859_2): New variable.
3248         (latin_iso8859_2_to_ucs): New variable.
3249         (ucs_to_latin_iso8859_2): New variable.
3250         (Vcharset_latin_iso8859_3): New variable.
3251         (latin_iso8859_3_to_ucs): New variable.
3252         (ucs_to_latin_iso8859_3): New variable.
3253         (Vcharset_latin_iso8859_4): New variable.
3254         (latin_iso8859_4_to_ucs): New variable.
3255         (ucs_to_latin_iso8859_4): New variable.
3256         (Vcharset_latin_iso8859_9): New variable.
3257         (latin_iso8859_9_to_ucs): New variable.
3258         (ucs_to_latin_iso8859_9): New variable.
3259         (Vcharset_latin_viscii_lower): New variable.
3260         (latin_viscii_lower_to_ucs): New variable.
3261         (ucs_to_latin_viscii_lower): New variable.
3262         (Vcharset_latin_viscii_upper): New variable.
3263         (latin_viscii_upper_to_ucs): New variable.
3264         (ucs_to_latin_viscii_upper): New variable.
3265         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
3266         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
3267         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
3268         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
3269         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
3270         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
3271         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
3272         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
3273         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
3274         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
3275
3276         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
3277         (Vcharset_latin_viscii_upper): New variable.
3278         (make_byte_from_character_table): New function.
3279         (put_byte_from_character_table): New function.
3280         (get_byte_from_character_table): New function.
3281         (CHAR96): New macro.
3282         (ucs_to_latin_jisx0201): New variable.
3283         (latin_jisx0201_to_ucs): New variable.
3284         (ucs_to_latin_iso8859_2): New variable.
3285         (latin_iso8859_2_to_ucs): New variable.
3286         (ucs_to_latin_iso8859_3): New variable.
3287         (latin_iso8859_3_to_ucs): New variable.
3288         (ucs_to_latin_iso8859_4): New variable.
3289         (latin_iso8859_4_to_ucs): New variable.
3290         (ucs_to_latin_iso8859_9): New variable.
3291         (latin_iso8859_9_to_ucs): New variable.
3292         (ucs_to_latin_viscii_lower): New variable.
3293         (latin_viscii_lower_to_ucs): New variable.
3294         (ucs_to_latin_viscii_upper): New variable.
3295         (latin_viscii_upper_to_ucs): New variable.
3296         (ucs_to_latin_tcvn5712): New variable.
3297         (latin_tcvn5712_to_ucs): New variable.
3298         (Qlatin_viscii_lower): New variable.
3299         (Qlatin_viscii_upper): New variable.
3300         (syms_of_mule_charset): Set up new symbol
3301         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
3302         (complex_vars_of_mule_charset): Set up new charset
3303         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
3304         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
3305         `ucs_to_<CHARSET>' tables.
3306
3307 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
3308
3309         * text-coding.c: New file.
3310
3311 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
3312
3313         * mule-charset.c (Fmake_char): Fix problem of 256-set.
3314
3315         * char-ucs.h (Vcharset_ucs_bmp): New variable.
3316         (MAKE_CHAR): Modify for `ucs-bmp'.
3317         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
3318         non-MULE characters of BMP.
3319
3320 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
3321
3322         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3323         to 0.6.
3324
3325 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3326
3327         * lstream.h:
3328         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
3329         - Include character.h for `CHAR_ASCII_P'.
3330
3331         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
3332
3333         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
3334         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
3335
3336         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
3337         (BYTE_C0_P): Likewise.
3338         (BYTE_C1_P): Likewise.
3339         (Lstream_get_emchar_1): Likewise.
3340         (Lstream_fput_emchar): Likewise.
3341         (Lstream_funget_emchar): Likewise.
3342         (copy_internal_to_external): Likewise.
3343         (copy_external_to_internal): Likewise.
3344
3345         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
3346         (BYTE_C0_P): Likewise.
3347         (BYTE_C1_P): Likewise.
3348         (Lstream_get_emchar_1): Likewise.
3349         (Lstream_fput_emchar): Likewise.
3350         (Lstream_funget_emchar): Likewise.
3351         (copy_internal_to_external): Likewise.
3352         (copy_external_to_internal): Likewise.
3353
3354         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
3355         (REP_BYTES_BY_FIRST_BYTE): Likewise.
3356
3357         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
3358         (BYTE_ASCII_P): Moved to mb-1byte.h.
3359
3360 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3361
3362         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
3363
3364         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
3365         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
3366         (VALID_CHARPTR_P): Moved to mb-*byte.h.
3367         (VALIDATE_CHARPTR_BACKWARD): Likewise.
3368         (VALIDATE_CHARPTR_FORWARD): Likewise.
3369         (simple_charptr_emchar): Moved to mb-multibyte.h.
3370         (simple_set_charptr_emchar): Likewise.
3371         (simple_charptr_copy_char): Likewise.
3372         (non_ascii_charptr_emchar): Likewise.
3373         (non_ascii_set_charptr_emchar): Likewise.
3374         (non_ascii_charptr_copy_char): Likewise.
3375         (charptr_emchar): Moved to mb-*byte.h.
3376         (set_charptr_emchar): Likewise.
3377         (charptr_copy_char): Likewise.
3378
3379         * mb-1byte.h, mb-multibyte.h: New files.
3380
3381 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3382
3383         * mb-utf-8.h (MULTIBYTE): New macro.
3384         (MAX_EMCHAR_LEN): Moved from buffer.h.
3385         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
3386
3387         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
3388
3389         * mb-lb.h, multibyte.h: New files.
3390
3391         * char-1byte.h (Charset_ID): Moved from buffer.h.
3392         (MIN_LEADING_BYTE): Likewise.
3393         (LEADING_BYTE_ASCII): Likewise.
3394         (NUM_LEADING_BYTES): Likewise.
3395         (CHARSETP): Likewise.
3396         (CHARSET_BY_LEADING_BYTE): Likewise.
3397         (XCHARSET_LEADING_BYTE): Likewise.
3398         (XCHARSET_GRAPHIC): Likewise.
3399         (XCHARSET_COLUMNS): Likewise.
3400         (XCHARSET_DIMENSION): Likewise.
3401         (CHAR_CHARSET): Likewise.
3402         (CHAR_LEADING_BYTE): Likewise.
3403         (BREAKUP_CHAR): Likewise.
3404         (Vcharset_ascii): Likewise.
3405
3406         * buffer.h: Include multibyte.h unconditionally.
3407         (VALID_CHARPTR_P): Moved to multibyte.h.
3408         (ASSERT_VALID_CHARPTR): Likewise.
3409         (REAL_INC_CHARPTR): Likewise.
3410         (REAL_INC_CHARBYTIND): Likewise.
3411         (REAL_DEC_CHARPTR): Likewise.
3412         (INC_CHARPTR): Likewise.
3413         (INC_CHARBYTIND): Likewise.
3414         (DEC_CHARPTR): Likewise.
3415         (VALIDATE_CHARPTR_BACKWARD): Likewise.
3416         (VALIDATE_CHARPTR_FORWARD): Likewise.
3417         (charptr_n_addr): Likewise.
3418         (MAX_EMCHAR_LEN): Moved to mb-*.h.
3419         (simple_charptr_emchar): Moved to multibyte.h.
3420         (simple_set_charptr_emchar): Likewise.
3421         (simple_charptr_copy_char): Likewise.
3422         (non_ascii_charptr_emchar): Likewise.
3423         (non_ascii_set_charptr_emchar): Likewise.
3424         (non_ascii_charptr_copy_char): Likewise.
3425         (charptr_emchar): Likewise.
3426         (set_charptr_emchar): Likewise.
3427         (charptr_copy_char): Likewise.
3428         (charptr_emchar_n): Likewise.
3429         (Charset_ID): Moved to char-1byte.h.
3430         (Vcharset_ascii): Likewise.
3431         (CHAR_CHARSET): Likewise.
3432         (CHAR_LEADING_BYTE): Likewise.
3433         (LEADING_BYTE_ASCII): Likewise.
3434         (NUM_LEADING_BYTES): Likewise.
3435         (MIN_LEADING_BYTE): Likewise.
3436         (CHARSETP): Likewise.
3437         (CHARSET_BY_LEADING_BYTE): Likewise.
3438         (XCHARSET_LEADING_BYTE): Likewise.
3439         (XCHARSET_GRAPHIC): Likewise.
3440         (XCHARSET_COLUMNS): Likewise.
3441         (XCHARSET_DIMENSION): Likewise.
3442         (BREAKUP_CHAR): Likewise.
3443
3444 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3445
3446         * character.h: Add document about interface for characters.
3447
3448         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
3449         (MAKE_CHAR): Delete comment about
3450         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
3451         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
3452         (BREAKUP_CHAR): Modify name of arguments.
3453         (CHAR_CHARSET): Modify name of argument.
3454
3455         * buffer.h: Delete document about Emchar accessors.
3456
3457 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3458
3459         * character.h (CHAR_INTP): Moved from buffer.h
3460         (CHAR_OR_CHAR_INTP): Likewise.
3461         (XCHAR_OR_CHAR_INT): Likewise.
3462         (CHECK_CHAR_COERCE_INT): Likewise.
3463
3464         * buffer.h (CHAR_INTP): Moved to character.h
3465         (CHAR_OR_CHAR_INTP): Likewise.
3466         (XCHAR_OR_CHAR_INT): Likewise.
3467         (CHECK_CHAR_COERCE_INT): Likewise.
3468
3469 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3470
3471         * character.h:
3472         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
3473         - Include char-1byte.h, char-lb.h or char-ucs.h.
3474
3475         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
3476
3477         * buffer.h: Include character unconditionally.
3478         (valid_char_p): Moved to char-*.h.
3479         (non_ascii_valid_char_p): Moved to char-lb.h.
3480
3481         * char-1byte.h, char-lb.h, char-ucs.h: New files.
3482
3483 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3484
3485         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
3486         in UTF-2000 because it is not ported yet and not to use
3487         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
3488         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
3489         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
3490
3491         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
3492         (CHAR_ASCII_P): Moved from character.h.
3493
3494         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
3495         (CHAR_ASCII_P): Likewise.
3496         (CHAR_FIELD1_MASK): Deleted.
3497         (CHAR_FIELD2_MASK): Deleted.
3498         (CHAR_FIELD3_MASK): Deleted.
3499         (MAX_CHAR_BASIC_LATIN): New macro.
3500         (CHAR_FIELD1): Deleted.
3501         (CHAR_FIELD2_INTERNAL): Deleted.
3502         (CHAR_FIELD3_INTERNAL): Deleted.
3503         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
3504         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
3505         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
3506         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
3507         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
3508         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
3509         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
3510         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
3511         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
3512         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
3513         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
3514         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
3515         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
3516         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
3517         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
3518         (MIN_CHAR_COMPOSITION): Deleted.
3519         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
3520         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
3521
3522 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
3523
3524         * buffer.h: Include mb-utf-8.h in UTF-2000.
3525
3526         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
3527
3528         * mb-utf-8.h: New file.
3529
3530 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
3531
3532         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
3533         instead of `int'.
3534
3535         * mule-charset.h, buffer.h (Charset_ID): New type.
3536
3537 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
3538
3539         * mule-canna.c (c2mu): Use `MAKE_CHAR',
3540         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
3541         instead of `MULE_CHAR_PRIVATE_OFFSET',
3542         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
3543         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
3544         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
3545
3546         * character.h (Vcharset_japanese_jisx0212): New variable
3547         definition.
3548
3549 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
3550
3551         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
3552         (charset_by_attributes): Delete array about direction.
3553         (latin_a_char_to_charset): New variable in UTF-2000.
3554         (latin_a_char_to_byte1): New variable in UTF-2000.
3555         (latin_a_char_to_byte2): New variable in UTF-2000.
3556         (Qucs_bmp): New variable.
3557         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
3558         `Bufbyte'.
3559         (next_allocated_2_byte_leading_byte): Likewise.
3560         (non_ascii_set_charptr_emchar): Likewise.
3561         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
3562         `CHARSET_TYPE_256X256' in UTF-2000; modify for
3563         `charset_by_attributes'.
3564         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
3565         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
3566         and `CHARSET_BY_LEADING_BYTE'.
3567         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
3568         `utf-2000-version' to `vars_of_mule_charset'.
3569         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
3570         define `leading-code-private-11' in UTF-2000; move setting of
3571         `utf-2000-version' from `syms_of_mule_charset'.
3572         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
3573         UTF-2000.
3574
3575         * character.h (Charset_ID): New type.
3576         (LEADING_BYTE_UCS_BMP): New macro.
3577         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
3578         (CHARSET_ID_OFFSET_94): New macro.
3579         (MIN_CHARSET_ID_PRIVATE_94): New macro.
3580         (MAX_CHARSET_ID_PRIVATE_94): New macro.
3581         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
3582         final-byte.
3583         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
3584         (LEADING_BYTE_LATIN_JISX0201): Likewise.
3585         (CHARSET_ID_OFFSET_96): New macro.
3586         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
3587         CHARSET_ID_OFFSET_96 and final-byte.
3588         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
3589         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
3590         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
3591         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
3592         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
3593         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
3594         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
3595         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
3596         (LEADING_BYTE_THAI_TIS620): Likewise.
3597         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
3598         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
3599         (CHARSET_ID_OFFSET_94x94): New macro.
3600         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
3601         CHARSET_ID_OFFSET_94x94 and final-byte.
3602         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
3603         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
3604         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
3605         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
3606         (LEADING_BYTE_CHINESE_GB2312): Likewise.
3607         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
3608         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
3609         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
3610         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
3611         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
3612         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
3613         (CHARSET_TYPE_128X128): New macro.
3614         (CHARSET_TYPE_256X256): New macro.
3615         (XCHARSET_PRIVATE_P): Delete unconditionally.
3616         (charset_by_attributes): Delete array about direction.
3617         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
3618         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
3619         (MIN_CHAR_94): New macro.
3620         (MAX_CHAR_94): New macro.
3621         (MIN_CHAR_96): New macro.
3622         (MAX_CHAR_96): New macro.
3623         (MIN_CHAR_94x94): New macro.
3624         (MAX_CHAR_94x94): New macro.
3625         (MIN_CHAR_96x96): New macro.
3626         (MAX_CHAR_96x96): New macro.
3627         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
3628         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
3629         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
3630         - 32)'.
3631         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
3632         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
3633         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
3634         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
3635         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
3636         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
3637         `XCHARSET_LEADING_BYTE' to make code-point.
3638         (latin_a_char_to_charset): New variable.
3639         (latin_a_char_to_byte1): New variable.
3640         (latin_a_char_to_byte2): New variable.
3641         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
3642         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
3643         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
3644
3645         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
3646         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
3647         (find_charsets_in_emchar_string): Likewise.
3648         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
3649
3650         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
3651         `int'.
3652         (decode_coding_iso2022): Likewise.
3653
3654         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
3655         of `unsigned char'.
3656
3657         * redisplay.c (redisplay_text_width_emchar_string): Use
3658         `Charset_ID' instead of `unsigned char'.
3659         (redisplay_frame_text_width_string): Likewise.
3660
3661         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
3662         `unsigned char'.
3663
3664         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
3665         instead of `unsigned char'.
3666         (face_cachel_charset_font_metric_info): Likewise.
3667
3668         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
3669         (get_non_ascii_char_table_value): Likewise.
3670         (get_char_table): Likewise.
3671         (put_char_table): Likewise.
3672         (map_over_other_charset): Likewise.
3673         (map_char_table): Likewise.
3674
3675         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
3676         instead of `unsigned char'.
3677
3678 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
3679
3680         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
3681         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
3682
3683         * mule-charset.c (leading_code_private_11): Don't define in
3684         UTF-2000.
3685
3686         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
3687         in UTF-2000 because it is not ported yet and not to use
3688         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
3689
3690 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
3691
3692         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
3693
3694 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3695
3696         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
3697         in UTF-2000.
3698
3699         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
3700         of unsigned char to store leading-byte.
3701
3702         * chartab.c (get_non_ascii_char_table_value): Don't use
3703         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
3704
3705         * file-coding.c (encode_coding_big5): Delete bogus implementation
3706         in UTF2000.
3707
3708         * character.h (LEADING_BYTE_*): Delete definition for
3709         non-UTF-2000.
3710         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
3711         (LEADING_BYTE_PREFIX_P): Deleted.
3712         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
3713         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
3714         (BUFBYTE_LEADING_BYTE_P): Deleted.
3715         (CHARSET_PRIVATE_P): Deleted unconditionally.
3716         (rep_bytes_by_first_byte): Deleted unconditionally.
3717         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
3718         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
3719         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
3720         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
3721         (CHAR_FIELD2): Deleted.
3722         (CHAR_FIELD3): Deleted.
3723         (MAKE_CHAR): Delete definition for non-UTF-2000.
3724         (BREAKUP_CHAR_1_UNSAFE): Deleted.
3725         (breakup_char_1): New implementation.
3726         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
3727         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
3728
3729 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3730
3731         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
3732         condition.
3733
3734 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3735
3736         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
3737         (CHARSET_PRIVATE_P): Likewise.
3738         (XCHARSET_PRIVATE_P): Likewise.
3739         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
3740
3741         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
3742         UTF2000.
3743         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
3744
3745 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3746
3747         * character.h (LEADING_BYTE_*): Changed in UTF2000.
3748         (NUM_LEADING_BYTES): Changed from 128 to 256.
3749         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
3750         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
3751         UTF2000.
3752         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
3753
3754         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
3755         UTF2000.
3756         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
3757         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
3758         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
3759         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
3760         (Qchinese_cns11643_3): New variable in UTF2000.
3761         (Qchinese_cns11643_4): New variable in UTF2000.
3762         (Qchinese_cns11643_5): New variable in UTF2000.
3763         (Qchinese_cns11643_6): New variable in UTF2000.
3764         (Qchinese_cns11643_7): New variable in UTF2000.
3765         (syms_of_mule_charset): Define `chinese-cns11643-3',
3766         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
3767         and `chinese-cns11643-7' in UTF2000.
3768         (vars_of_mule_charset): Initialize
3769         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
3770         + 1 in UTF2000.
3771         (complex_vars_of_mule_charset): Setup charset
3772         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
3773         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
3774
3775 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3776
3777         * mule-charset.c: Move setting for `leading-code-private-11' from
3778         `syms_of_mule_charset' to `vars_of_mule_charset'.
3779
3780 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3781
3782         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
3783         and `NUM_LEADING_BYTES' in assert.
3784
3785 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3786
3787         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
3788         instead of 128.
3789         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
3790         `NUM_LEADING_BYTES' instead of 128.
3791
3792 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3793
3794         * mule-charset.h (charset_by_leading_byte): Use
3795         `NUM_LEADING_BYTES' instead of 128.
3796         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
3797
3798         * mule-charset.c (charset_by_leading_byte): Use
3799         `NUM_LEADING_BYTES' instead of 128.
3800         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
3801
3802         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
3803         128.
3804
3805 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
3806
3807         * mule-charset.c (syms_of_mule_charset): Update to
3808         0.4 (Shin-Imamiya).
3809
3810 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
3811
3812         * file-coding.c (encode_coding_sjis): New implementation for
3813         UTF2000.  (decode_coding_sjis): Ditto.
3814
3815 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
3816
3817         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
3818         Don't define in UTF2000.
3819
3820         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
3821         defined.
3822
3823         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
3824         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
3825         MULE.
3826
3827 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
3828
3829         * config.h.in (CHAR_IS_UCS4): New macro.
3830
3831         * mule-charset.c (rep_bytes_by_first_byte): Modify for
3832         conventional MULE representation.
3833         (syms_of_mule_charset): Update to 0.3 (Imamiya).
3834
3835         * mule-charset.h: Reverted to original.
3836
3837         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
3838         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
3839         "mule-charset.h" if CHAR_IS_UCS4 is defined.
3840
3841         * character.h: New file.
3842
3843         * file-coding.c (Fmake_coding_system): Set 1 to
3844         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
3845         defined.
3846         (encode_coding_no_conversion): New implementation for UTF2000.
3847
3848         * file-coding.h (struct Lisp_Coding_System): Add new member
3849         `fixed.size'.
3850
3851 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
3852
3853         * file-coding.c (decode_coding_iso2022): Code-point arguments of
3854         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
3855         (encode_coding_iso2022): New implementation for UTF2000.
3856
3857 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3858
3859         * mule-canna.c (c2mu): New implementation for UTF2000.
3860         (m2c): Likewise.
3861
3862 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3863
3864         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
3865
3866 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3867
3868         * file-coding.c (reset_encoding_stream): Set 0 to
3869         `str->iso2022.current_char_boundary' in UTF2000.
3870         (encode_utf8): Don't define in UTF2000.
3871         (encode_coding_utf8): New implementation for UTF-8 representation
3872         of UTF2000.
3873         (complex_vars_of_file_coding): Define coding-system `utf-8'.
3874
3875 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3876
3877         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
3878
3879         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
3880         UTF2000.
3881         (REP_BYTES_BY_FIRST_BYTE): Likewise.
3882
3883         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
3884
3885         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
3886         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
3887         as UTF-8 in UTF2000.
3888         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
3889         (non_ascii_valid_char_p): Don't define in UTF2000.
3890         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
3891         (Lstream_get_emchar_1): Likewise.
3892         (utf-2000-version): New variable in UTF2000.
3893
3894         * lread.c (read_escape): Add new reader `u'.
3895
3896         * insdel.c (three_to_one_table): Don't define in UTF2000.
3897         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
3898         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
3899         UTF2000.
3900         (bytind_to_bufpos_func): Likewise.
3901         (buffer_mule_signal_inserted_region): Likewise.
3902         (vars_of_insdel): Don't initialize `three_to_one_table'.
3903         (init_buffer_text): Use `buf->text->mule_size' instead of
3904         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
3905         UTF2000.
3906
3907         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
3908         UTF-8 representation in UTF2000.
3909         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
3910         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
3911         (decode_coding_iso2022): Don't define local variable `lb' in
3912         UTF2000; don't use LEADING_BYTE in UTF2000; use
3913         `DECODE_ADD_UCS_CHAR' in UTF2000.
3914         (convert_to_external_format): Decode as UTF-8 in UTF2000.
3915
3916         * config.h.in (UTF2000): New macro.
3917
3918         * buffer.h (struct buffer_text): Add new member `mule_size' and
3919         don't add `mule_shifter' and `mule_three_p' in UTF2000.
3920         (valid_char_p): Return always 1 in UTF2000.
3921         (MAX_EMCHAR_LEN): 6 in UTF2000.
3922         (three_to_one_table): Don't define in UTF2000.
3923         (real_bufpos_to_bytind): Modify for UTF-8 representation in
3924         UTF2000.
3925         (real_bytind_to_bufpos): Likewise.
3926
3927         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
3928
3929 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3930
3931         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
3932         representation change.
3933         (Vutf_2000_version): New variable.
3934         (leading_code_private_11): New variable.
3935         (syms_of_mule_charset): Add new variables `utf-2000-version' and
3936         `leading-code-private-11'.
3937
3938         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
3939         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
3940         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
3941         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
3942         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
3943         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
3944         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
3945         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
3946         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
3947         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
3948         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
3949         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
3950         (MIN_CHAR_GREEK): New macro.
3951         (MAX_CHAR_GREEK): New macro.
3952         (MIN_CHAR_CYRILLIC): New macro.
3953         (MAX_CHAR_CYRILLIC): New macro.
3954         (MIN_CHAR_HEBREW): New macro.
3955         (MAX_CHAR_HEBREW): New macro.
3956         (MIN_CHAR_THAI): New macro.
3957         (MAX_CHAR_THAI): New macro.
3958         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
3959         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
3960         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
3961         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
3962         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
3963         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
3964         (CHAR_FIELD2): New inline function.
3965         (CHAR_FIELD3): New inline function.
3966         (MULE_CHAR_PRIVATE_OFFSET): New macro.
3967         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
3968         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
3969         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
3970         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
3971         (MIN_CHAR_COMPOSITION): Likewise.
3972         (CHAR_LEADING_BYTE): Modified for character representation change.
3973         (MAKE_CHAR): Likewise.
3974
3975         * lisp.h (Vcharset_latin_iso8859_1): New variable.
3976         (Vcharset_greek_iso8859_7): Likewise.
3977         (Vcharset_cyrillic_iso8859_5): Likewise.
3978         (Vcharset_hebrew_iso8859_8): Likewise.
3979         (Vcharset_thai_tis620): Likewise.
3980         (Vcharset_katakana_jisx0201): Likewise.
3981
3982 2001-02-08  Martin Buchholz <martin@xemacs.org>
3983
3984         * XEmacs 21.2.44 "Thalia" is released.
3985
3986 2001-02-06  Martin Buchholz  <martin@xemacs.org>
3987
3988         Fixes crashes in kill-emacs on some systems.
3989         * process-unix.c (unix_kill_child_process):
3990         It's OK for kill() to fail with ESRCH.
3991
3992 2001-02-07  Martin Buchholz  <martin@xemacs.org>
3993
3994         Contortions to make .gdbinit tricks work on most systems.
3995         * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
3996         * alloc.c (dbg_valmask): Make non-const.
3997         * alloc.c (dbg_typemask): Make non-const.
3998         * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
3999         * alloc.c (dbg_valbits): Make non-const.
4000         * alloc.c (dbg_gctypebits): Make non-const.
4001         * .gdbinit (decode_object): Make it work with AIX cc.
4002
4003 2001-02-06  Martin Buchholz  <martin@xemacs.org>
4004
4005         * elhash.c (make_general_lisp_hash_table):
4006         Use simpler and more efficient calloc to clear entries.
4007
4008 2001-02-07  Martin Buchholz  <martin@xemacs.org>
4009
4010         * window.c (window_scroll): Work around an AIX C compiler bug.
4011         Fixes 'scroll-up' does nothing problem with xlC.
4012
4013 2001-02-05  Martin Buchholz  <martin@xemacs.org>
4014
4015         * .gdbinit: Remove obsolete comment.
4016
4017 2001-01-31  Mike Alexander  <mta@arbortext.com>
4018
4019         * select.c (Fown_selection_internal): Set owned_p for device
4020         method correctly.
4021
4022 2001-02-01  Martin Buchholz  <martin@xemacs.org>
4023
4024         Port to g++ 2.97.
4025         "not" cannot be used as a macro name as it is an operator in C++
4026         * config.h.in: Stop #defining `not'.
4027         * chartab.c (check_category_char): not ==> not_p
4028         * chartab.h: Likewise.
4029         * regex.c (re_match_2_internal): Likewise.
4030
4031 2001-02-02  Martin Buchholz  <martin@xemacs.org>
4032
4033         * lisp-disunion.h: Fix up comments.
4034
4035 2001-01-31  Martin Buchholz  <martin@xemacs.org>
4036
4037         * keymap.c (define_key_check_and_coerce_keysym):
4038         (syms_of_keymap):
4039         Support mouse-6 and mouse-7 bindings in the obvious way.
4040
4041 2001-02-01  Martin Buchholz  <martin@xemacs.org>
4042
4043         * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
4044
4045 2001-01-30  Martin Buchholz  <martin@xemacs.org>
4046
4047         Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
4048         Previous patch missed DEFVAR_INT_MAGIC.
4049         Make sure future DEFVAR_foo use correct types.
4050         * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
4051         * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
4052         * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
4053         * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
4054         * (DEFVAR_INT): Likewise.
4055         * redisplay.c (vertical_clip): Should be of type Fixnum.
4056         * redisplay.c (horizontal_clip): Likewise.
4057         * lisp.h (dump_add_opaque_int): New.
4058         (dump_add_opaque_fixnum): New.
4059
4060 2001-01-29  Andy Piper  <andy@xemacs.org>
4061
4062         * glyphs-widget.c (check_valid_int_or_function): allow symbols
4063         since they can be eval'ed
4064
4065 2001-01-29  Martin Buchholz  <martin@xemacs.org>
4066
4067         * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
4068         Oops, XEmacs redefines `class'.  Use `typename' instead.
4069
4070 2001-01-28  Martin Buchholz  <martin@xemacs.org>
4071
4072         * dumper.c: Fix C++ compile errors.
4073
4074 2001-01-29  Martin Buchholz  <martin@xemacs.org>
4075
4076         * tparam.c: Use correct prototypes.
4077
4078 2001-01-28  Martin Buchholz  <martin@xemacs.org>
4079
4080         * sysproc.h: #include util.h for NetBSD's openpty.
4081
4082 2001-01-27  Martin Buchholz  <martin@xemacs.org>
4083
4084         More 64-bit correctness.
4085         The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
4086         Use a typedef `fixnum' for the type used for DEFVAR_INT.
4087         Fix up comments.
4088         This finally finishes the 64-bit SGI port.
4089         Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
4090         * symbols.c: Fix up comments and type casts.
4091         * symbols.c (do_symval_forwarding): s/int/Fixnum/g
4092         * symbols.c (store_symval_forwarding): s/int/Fixnum/g
4093         * symeval.h (Fixnum): New type.
4094         * symeval.h (symbol_value_type): Fix up comment.
4095
4096         * commands.h:
4097         * nt.c:
4098         * emacs.c:
4099         * data.c:
4100         * redisplay.c:
4101         * abbrev.c:
4102         * dired-msw.c:
4103         * event-Xt.c:
4104         * eldap.c:
4105         * window.c:
4106         * sound.c:
4107         * event-stream.c:
4108         * eval.c:
4109         * buffer.c:
4110         * mule-canna.c: A million DEFVAR_INTs here...
4111         * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
4112         * extents.c:
4113         * cmdloop.c:
4114         * lisp.h:
4115         * select-x.c:
4116         * console-x.h:
4117         * event-msw.c:
4118         * mule-wnnfns.c:
4119         * hpplay.c:
4120         * ralloc.c:
4121         * alloc.c:
4122         * keymap.c:
4123         * profile.c:
4124         s/int/Fixnum/g in DEFVAR_INT declarations.
4125
4126 2001-01-26  Martin Buchholz  <martin@xemacs.org>
4127
4128         Port pdump to SGI alignment-sensitive environment.
4129         Lisp Object sizeof methods now return aligned sizes.  Rely on that.
4130         Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
4131         properly aligned.
4132         Define and use aligned reading and writing macros.
4133         Use buffered stdio instead of posix i/o for faster dumping.
4134         Eliminate kludgy 256 byte space for header.
4135         Read and write from dump file using structs for alignment safety.
4136         * dumper.c (pdump_align_stream): New.
4137         * dumper.c (PDUMP_ALIGN_OUTPUT): New.
4138         * dumper.c (PDUMP_READ_ALIGNED): New.
4139         * dumper.c (PDUMP_WRITE_ALIGNED): New.
4140         * dumper.c (pdump_static_Lisp_Object): New struct.
4141         * dumper.c (pdump_static_pointer): New struct.
4142         * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
4143         * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
4144         * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
4145         * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
4146
4147         * dumper.c (pdump_backtrace):
4148         * dumper.c (pdump_get_indirect_count):
4149         * dumper.c (pdump_register_object):
4150         * dumper.c (pdump_register_struct):
4151         * dumper.c (pdump_reloc_one):
4152         * dumper.c (pdump_scan_by_alignment):
4153         * dumper.c (pdump_dump_from_root_struct_ptrs):
4154         * dumper.c (pdump_dump_opaques):
4155         * dumper.c (pdump_dump_rtables):
4156         * dumper.c (pdump_dump_from_root_objects):
4157         * dumper.c (pdump):
4158         * dumper.c (pdump_load_finish):
4159         Use aligned reading and writing.
4160
4161         * dumper.c (pdump_free): Make static.
4162         * dumper.c (pdump_hFile): Likewise.
4163         * dumper.c (pdump_hMap): Likewise.
4164
4165 2001-01-26  Martin Buchholz <martin@xemacs.org>
4166
4167         * XEmacs 21.2.43 "Terspichore" is released.
4168
4169 2001-01-25  Martin Buchholz  <martin@xemacs.org>
4170
4171         Type fiddling for window_config.saved_windows_count
4172         * window.c (struct window_config): 
4173         Make saved_windows_count member unsigned.
4174         * window.c (sizeof_window_config_for_n_windows): 
4175         Make parameter unsigned.
4176         * window.c (mark_window_config):
4177         * window.c (window_config_equal):
4178         * window.c (free_window_configuration):
4179         * window.c (Fset_window_configuration):
4180         * window.c (count_windows):
4181         * window.c (Fcurrent_window_configuration):
4182         * window.c (reinit_vars_of_window):
4183         Update all callers and users.
4184
4185 2001-01-25  Martin Buchholz  <martin@xemacs.org>
4186
4187         Alignment correctness for flexible arrays.
4188         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
4189         Make alignment-correct. Add interesting comments.
4190         * alloc.c (size_vector):
4191         * alloc.c (make_vector_internal):
4192         * alloc.c (make_bit_vector_internal):
4193         * alloc.c (sweep_bit_vectors_1):
4194         * fns.c (size_bit_vector):
4195         Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
4196         * window.c (sizeof_window_config_for_n_windows): 
4197         Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
4198
4199 2001-01-24  Martin Buchholz  <martin@xemacs.org>
4200
4201         * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
4202
4203 2001-01-23  Andy Piper  <andy@xemacs.org>
4204
4205         * select.c (Fown_selection_internal): pass owned_p
4206
4207         * select-msw.c (mswindows_own_selection): New Signature.
4208
4209         * console.h (struct console_methods): add owned_p to
4210         _own_selection.
4211
4212         * select-x.c (x_own_selection): pass owned_p
4213         (hack_motif_clipboard_selection): use owned_p
4214         (vars_of_select_x): new variable -
4215         x_selection_strict_motif_ownership.
4216
4217 2001-01-23  Martin Buchholz  <martin@xemacs.org>
4218
4219         * specifier.h (specifier_data_offset): Remove pointless parens.
4220         * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
4221
4222 2001-01-24  Martin Buchholz  <martin@xemacs.org>
4223
4224         Make Lisp_Object sizeof methods be alignment-correct.
4225         pdump must restore objects to the same alignment as the C compiler
4226         assumes.  It really matters on SGIs.
4227         * lstream.c (aligned_sizeof_lstream): New.
4228         (sizeof_lstream): Use aligned_sizeof_lstream.
4229         (Lstream_new): Likewise.
4230         * opaque.c (aligned_sizeof_opaque): New.
4231         (sizeof_opaque): Use aligned_sizeof_opaque.
4232         (make_opaque): Likewise.
4233         * specifier.c (aligned_sizeof_specifier): New.
4234         (sizeof_specifier): Use aligned_sizeof_specifier.
4235         (make_specifier_internal): Likewise.
4236
4237 2001-01-23  Martin Buchholz  <martin@xemacs.org>
4238
4239         * lstream.h (struct lstream): Use max_align_t for trailing data.
4240         * specifier.h (struct Lisp_Specifier): Likewise.
4241
4242 2001-01-22  Martin Buchholz  <martin@xemacs.org>
4243
4244         * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
4245         (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
4246         (CCL_SUSPEND): Likewise.
4247         (CCL_INVALID_CMD): Likewise.
4248         (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
4249         (ccl_driver): Likewise.
4250         (CCL_WRITE_CHAR): Macro hygiene.
4251         (CCL_WRITE_STRING): Macro hygiene.
4252
4253 2001-01-22  Martin Buchholz  <martin@xemacs.org>
4254
4255         Port "portable" dumper to SunOS 4 and HP-UX.
4256         * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
4257         * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
4258         * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
4259
4260 2001-01-22  Martin Buchholz  <martin@xemacs.org>
4261
4262         * lisp.h (ALIGNOF): A better definition for C++.
4263
4264 2001-01-20  Martin Buchholz  <martin@xemacs.org>
4265
4266         Macro hygiene.
4267         Fix printf warnings: int format, long int arg.
4268         * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
4269         (PUSH_FAILURE_POINT): Use correct printf formats.
4270         (POP_FAILURE_POINT): Use correct printf formats.  
4271         Use do {...} while (0)
4272
4273 2001-01-20  Martin Buchholz <martin@xemacs.org>
4274
4275         * XEmacs 21.2.42 "Poseidon" is released.
4276
4277 2001-01-20  Martin Buchholz  <martin@xemacs.org>
4278
4279         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
4280
4281 2001-01-19  Martin Buchholz  <martin@xemacs.org>
4282
4283         De-kludgify FIXED_TYPE free list frobbing.
4284         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
4285         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
4286         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
4287         * alloc.c (Lisp_Free): New pseudo lisp object definition.
4288         * alloc.c (LRECORD_FREE_P): New.
4289         * alloc.c (MARK_LRECORD_AS_FREE): New.
4290         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
4291         * alloc.c (STRUCT_FREE_P): Deleted.
4292         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
4293         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
4294         * alloc.c (STRING_CHARS_FREE_P): New.
4295         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
4296         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
4297         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
4298         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
4299         * alloc.c (resize_string): Use new definitions.
4300         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
4301         * alloc.c (verify_string_chars_integrity): Use new definitions.
4302         * alloc.c (compact_string_chars): Use new definitions.
4303         * alloc.c: Update monster comments.
4304         * lrecord.h (lrecord_type): Add some new lrecord types for
4305         alloc.c's use.
4306
4307 2001-01-18  Martin Buchholz  <martin@xemacs.org>
4308
4309         Improve alignment hackery.
4310         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
4311         (max_align_t): Moved from opaque.h - general purpose.
4312         (ALIGN_PTR): Use size_t, not long.
4313         * opaque.h (max_align_t): Move to lisp.h.
4314
4315 2001-01-18  Norbert Koch  <nk@LF.net>
4316
4317         * gui.h: Fix and add prototypes to fix build problems.
4318
4319 2001-01-18  Martin Buchholz  <martin@xemacs.org>
4320
4321         temacs is going away, so `dump-temacs' is now a bad name.
4322         * .dbxrc (dump-temacs): Rename to `dmp'.
4323         * .gdbinit (dump-temacs): Rename to `dmp'.
4324
4325 2001-01-17  Andy Piper  <andy@xemacs.org>
4326
4327         * glyphs.c (print_image_instance): comment to make martin happy.
4328
4329         * glyphs-x.c (x_redisplay_widget): update faces after a frame
4330         change.
4331
4332         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
4333         activation.
4334         (mswindows_tab_control_redisplay): warning suppression.
4335
4336         * glyphs-widget.c (widget_update): re-write to cope with updated
4337         items.
4338         (widget_instantiate): use new gui_item functions.
4339         (tab_control_update): deleted.
4340         (progress_gauge_update): deleted.
4341         (image_instantiator_progress_guage): take out update reference.
4342         (image_instantiator_tree_view): ditto.
4343         (image_instantiator_tab_control): ditto.
4344
4345         * gui.c (widget_gui_parse_item_keywords): new function. Do things
4346         Right the new way.
4347         (gui_item_add_keyval_pair): re-write to cope with descriptors and
4348         return whether anything was changed.
4349         (update_gui_item_keywords): as it sounds.
4350
4351         * gui.h: declare widget_gui_parse_item_keywords.
4352
4353         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
4354         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
4355
4356 2001-01-17  Martin Buchholz <martin@xemacs.org>
4357
4358         * XEmacs 21.2.41 "Polyhymnia" is released.
4359
4360 2001-01-16  Didier Verna  <didier@xemacs.org>
4361
4362         * glyphs.c (image_instantiate): don't use fallbacks when
4363         instantiating a face's background pixmap by inheritance.
4364
4365 2001-01-14  Mike Sperber <mike@xemacs.org>
4366
4367         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
4368         Conditionalize accordingly.
4369
4370 2001-01-16  Martin Buchholz  <martin@xemacs.org>
4371
4372         * dumper.c (pdump_file_get): Fix a compiler warning.
4373
4374 2001-01-15  Martin Buchholz  <martin@xemacs.org>
4375
4376         Make Purify happy when pdumping.
4377         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
4378         iniitalizing all bits of new lisp object memory.
4379         * symbols.c (Fmake_local_variable): Likewise.
4380         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
4381         * symbols.c (Fdefvaralias): Likewise.
4382         * mule-charset.c (vars_of_mule_charset): Likewise.
4383
4384 2001-01-15  Martin Buchholz  <martin@xemacs.org>
4385         Add the `-nd' flag when running pre-dump operations under the debugger.
4386         * .dbxrc (run-temacs): Add `-nd'.
4387         * .dbxrc (update-elc): Likewise.
4388         * .dbxrc (dump-temacs): Likewise.
4389         * .gdbinit (run-temacs): Likewise.
4390         * .gdbinit (check-temacs): Likewise.
4391         * .gdbinit (update-elc): Likewise.
4392         * .gdbinit (dump-temacs): Likewise.
4393
4394 2001-01-14  Martin Buchholz  <martin@xemacs.org>
4395
4396         Allow building 64-bit executables on AIX with GNU malloc, e.g.
4397         export OBJECT_MODE=64
4398         configure --pdump --use-union-type=no
4399         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
4400         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
4401
4402         * miscplay.c (sndcnv8U_2mono):
4403         Avoid two uses of `++' in the same expression.
4404         Suppresses a GCC warning.
4405
4406 2001-01-13  Martin Buchholz  <martin@xemacs.org>
4407
4408         Make sure future compilers don't miscompile alloc.c.
4409         * alloc.c:
4410         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
4411         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
4412
4413 2001-01-12  Martin Buchholz  <martin@xemacs.org>
4414
4415         * dumper.c: A little post-pdump-rename comment fixup.
4416
4417 2001-01-09  Jerry James  <james@eecs.ku.edu>
4418
4419         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
4420
4421 2001-01-13  Martin Buchholz  <martin@xemacs.org>
4422
4423         * *.[ch]: Globally rename symbols using the following `pdump-rename'
4424         script:
4425         #!/bin/sh
4426         replace_symbol () {
4427           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
4428         }
4429
4430         replace_symbol pdump_wire_lists pdump_weak_object_chains
4431         replace_symbol pdump_wire_list dump_add_weak_object_chain
4432
4433         replace_symbol pdump_wires pdump_root_objects
4434         replace_symbol pdump_wire dump_add_root_object
4435
4436         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
4437         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
4438
4439         replace_symbol dumpstructinfos pdump_root_struct_ptrs
4440         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
4441         replace_symbol dumpstructinfo pdump_root_struct_ptr
4442         replace_symbol dumpstruct dump_add_root_struct_ptr
4443
4444         replace_symbol dumpopaque dump_add_opaque
4445         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
4446         replace_symbol dumpopaqueinfos pdump_opaques
4447         replace_symbol dumpopaqueinfo pdump_opaque
4448
4449         replace_symbol nb_structdump nb_root_struct_ptrs
4450         replace_symbol nb_opaquedump nb_opaques
4451
4452         replace_symbol align_table pdump_align_table
4453         replace_symbol dump_header pdump_header
4454
4455         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
4456         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
4457
4458
4459 2001-01-12  Martin Buchholz  <martin@xemacs.org>
4460
4461         * s/aix4.h: Keep the C for AIX compiler from overaggressively
4462         optimizing bytecount_to_charcount().
4463
4464 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
4465
4466         * config.h.in:
4467         (HAVE_DLFCN_H): Removed.
4468         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
4469
4470 2001-01-06  Martin Buchholz  <martin@xemacs.org>
4471
4472         Portable dumper maintainability improvements.
4473         * alloc.c (staticpro):
4474         * alloc.c (staticpro_nodump):
4475         * alloc.c (garbage_collect_1):
4476         * alloc.c (reinit_alloc_once_early):
4477         * alloc.c (init_alloc_once_early):
4478         * alloc.c: Move dumper functions to alloc.c.
4479         * dumper.c (pdump_backtrace):
4480         * dumper.c (pdump_dump_structs):
4481         * dumper.c (pdump_dump_opaques):
4482         * dumper.c (pdump_dump_rtables):
4483         * dumper.c (pdump_dump_wired):
4484         * dumper.c (pdump):
4485         * dumper.c (pdump_load_check):
4486         * dumper.c (pdump_load_finish):
4487         * dumper.c (pdump_file_unmap):
4488         * dumper.c (pdump_file_get):
4489         * dumper.c (pdump_resource_free):
4490         * dumper.c (pdump_resource_get):
4491         * dumper.c (pdump_file_free):
4492         * dumper.c (pdump_file_try):
4493         * dumper.c (pdump_load):
4494         Remove fixed size limits on staticpro(), staticpro_nodump(),
4495         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
4496         Remove custom code for dumping lrecord_implementations_table - use
4497         dumpopaque instead.
4498         Remove (most of the) custom code for dumping staticpros - dump it
4499         like any other dynarr.
4500
4501         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
4502         * dumper.c: Moved functions from alloc.c.
4503         * alloc.c (dumpstruct): Moved to dumper.c.
4504         * alloc.c (dumpopaque): Likewise.
4505         * alloc.c (pdump_wire): Likewise.
4506         * alloc.c (pdump_wire_list): Likewise.
4507
4508         * lisp.h (Dynarr_sizeof): New.
4509         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
4510         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
4511         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
4512
4513         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
4514         * lisp.h (dumpopaque): ditto.
4515         * lisp.h (pdump_wire): ditto.
4516         * lisp.h (pdump_wire_list): ditto.
4517
4518 2001-01-09  Martin Buchholz  <martin@xemacs.org>
4519
4520         * make-src-depend (PrintPatternDeps):
4521         Use `sort' to make output independent of perl version.
4522
4523 2001-01-08  Martin Buchholz  <martin@xemacs.org>
4524
4525         Port to Netbsd 1.5.
4526         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
4527         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
4528
4529 2001-01-03  Didier Verna  <didier@xemacs.org>
4530
4531         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
4532         that `focus_frame' is alive before thinking of calling
4533         `redisplay_redraw_cursor' on it.
4534
4535 2001-01-08  Martin Buchholz <martin@xemacs.org>
4536
4537         * XEmacs 21.2.40 is released.
4538
4539 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
4540
4541         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
4542
4543 2001-01-06  Martin Buchholz  <martin@xemacs.org>
4544
4545         * alloc.c (dbg_valmask): Make const.
4546         * alloc.c (dbg_typemask): Make const.
4547         * alloc.c (dbg_USE_UNION_TYPE): Make const.
4548         * alloc.c (dbg_valbits): Make const.
4549         * alloc.c (dbg_gctypebits): Make const.
4550
4551 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
4552
4553         * redisplay-x.c (x_bevel_area):
4554         redisplay.h (struct rune):
4555         Typo fixes in comments.
4556
4557 2001-01-05  Andy Piper  <andy@xemacs.org>
4558
4559         * glyphs-x.c (x_redisplay_widget): use size changed for offset
4560         adjustment.
4561
4562         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
4563
4564 2001-01-05  Martin Buchholz  <martin@xemacs.org>
4565
4566         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
4567
4568         * mule-ccl.c (stack_idx_of_map_multiple):
4569         Non const global data must not be initialized!
4570         Found by MIYASHITA Hisashi.
4571
4572 2001-01-02  Andy Piper  <andy@xemacs.org>
4573
4574         * frame.c (change_frame_size): make sure frame size is always
4575         marked as changed.
4576
4577         * glyphs.c (image_instance_layout): minor code reuse.
4578
4579         * window.c (Fcurrent_window_configuration): revert previous
4580         change.
4581
4582 2001-01-02  Martin Buchholz  <martin@xemacs.org>
4583
4584         * glyphs.h:
4585         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
4586
4587 2000-12-31  Andy Piper  <andy@xemacs.org>
4588
4589         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
4590         when widget gets unmapped.
4591
4592         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
4593         function. Make sure widgets losing focus don't just drop it.
4594         (handle_focus_event_1): record the widget with focus.
4595
4596 2000-12-31  Andy Piper  <andy@xemacs.org>
4597
4598         * window.c (allocate_window): use
4599         make_image_instance_cache_hash_table.
4600         (make_dummy_parent): ditto.
4601         (Fset_window_configuration): ditto.
4602
4603         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
4604
4605         * glyphs.c (process_image_string_instantiator): use
4606         INSTANTIATOR_TYPE.
4607         (get_image_instantiator_governing_domain): ditto.
4608         (normalize_image_instantiator): ditto.
4609         (instantiate_image_instantiator): ditto.
4610         (make_image_instance_1): ditto.
4611         (image_instantiate): ditto. Key on glyph *and* instantiator type.
4612         (instantiator_eq_equal): new function for use with instance hash
4613         tables.
4614         (instantiator_eq_hash): ditto.
4615         (make_image_instance_cache_hash_table): create a suitable hash
4616         table for storing image instances.
4617
4618         * elhash.h (hash_table_weakness): new internal weakness type
4619         HASH_TABLE_KEY_CAR_VALUE_WEAK.
4620         declare new functions.
4621
4622         * elhash.c (finish_marking_weak_hash_tables): introduce yet
4623         another weakness type for glyphs.
4624         (make_standard_lisp_hash_table): new function split out from
4625         make_general_lisp_hash_table.
4626         (make_lisp_hash_table): call make_standard_lisp_hash_table.
4627         (hash_table_instantiate): ditto.
4628         (Fmake_hash_table): ditto.
4629
4630 2000-12-31  Martin Buchholz <martin@xemacs.org>
4631
4632         * XEmacs 21.2.39 is released.
4633
4634 2000-12-29  Andy Piper  <andy@xemacs.org>
4635
4636         * menubar.c (menubar_visible_p_changed): signal the frame changed.
4637
4638         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
4639         the frame has changed so that we pick up geometry changes such as
4640         menubar visibility.
4641
4642 2000-12-28  Andy Piper  <andy@xemacs.org>
4643
4644         * lastfile.c (my_ebss): make a char array so we can pad the
4645         bss. Fixes cygwin unexec.
4646
4647         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
4648
4649 2000-12-26  Andy Piper  <andy@xemacs.org>
4650
4651         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
4652         comments and try and be more precise about a non-/SIGIO world.
4653         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
4654         SIGIO.
4655
4656         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
4657         we don't normalize to zero width or height.
4658
4659 2000-12-24  Andy Piper  <andy@xemacs.org>
4660
4661         * Makefile.in.in (ldflags): add -mwindows when appropriate.
4662
4663 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
4664
4665         * s/sco5.h: SCO 5 has pty support.
4666
4667 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
4668
4669         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
4670         input-method-xlib.c contains whole contents of input-method-xfs.c,
4671         so we can use input-method-xlib.c's code for USE_XFONTSET
4672         using #ifdefs.
4673         * input-method-xfs.c: removed.
4674
4675 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
4676
4677         * file-coding.h (enum coding_category_type): reorder enumerators to
4678         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
4679         (now one greater than largest real coding_category_type enumerator).
4680         * file-coding.c (coding_category_symbol, coding_category_by_priority,
4681         coding_category_system, fcd_descriptihon_1, decode_coding_category,
4682         Fcoding_category_list, Fset_coding_priority_list,
4683         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
4684         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
4685
4686 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
4687
4688         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
4689         * redisplay-output.c (redisplay_output_window): Clear top of window
4690         when face is changed.
4691         * redisplay-x.c (x_redraw_exposed_window): Call
4692         redisplay_clear_top_of_window.
4693         * redisplay.h: Publish redisplay_clear_top_of_window.
4694
4695 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
4696
4697         * buffer.c (Fkill_buffer): Map over all devices.
4698         * window.c (window_loop): Remove UNSHOW_BUFFER code.
4699         (list_windows): New function.
4700         (list_all_windows): Ditto.
4701         (Freplace_buffer_in_windows): Use them.
4702
4703 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
4704
4705         * database.c (berkdb_subtype): Recognize new subtype `queue'.
4706         (Fopen_database): Use `db_create' instead of `db_open'.
4707         (syms_of_database): Initialize Qqueue.
4708
4709 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
4710
4711         * buffer.c (common_init_complex_vars_of_buffer): Initialize
4712         buffer_local_face_property.
4713         * buffer.h (struct buffer): New member buffer_local_face_property.
4714         * window.c (Fset_window_buffer):  Mark window's face as changed
4715         when buffer has buffer local face.
4716         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
4717         * objects.c (color_after_change): Set buffer_local_face_property
4718         when locale of face specifier is buffer.
4719         * objects.c (font_after_change): Ditto.
4720         * objects.c (face_boolean_after_change): Ditto.
4721         * glyphs.c (image_after_change): Ditto.
4722
4723 2000-12-09  Dan Holmsand  <dan@eyebee.com>
4724
4725         * nt.c (mswindows_fstat): Report file permissions, volume serial
4726         number, etc. Code adapted from FSF Emacs 20.7.
4727
4728 2000-12-09  Dan Holmsand  <dan@eyebee.com>
4729
4730         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
4731         of stat when we don't have symbolic links, to make sure
4732         mswindows_stat is called on mswindows.
4733
4734 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
4735
4736         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
4737
4738 2000-12-12  Martin Buchholz  <martin@xemacs.org>
4739
4740         * doprnt.c (emacs_doprnt_1): More printing fixes.
4741         Make printing of numbers compatible with libc and FSF Emacs.
4742         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
4743         Use the system printf to do most of the hard work of formatting,
4744         instead of doprnt_1().
4745         Calculate memory to allocate for format string.
4746         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
4747         (doprnt_1): Cleaner code and documentation.
4748
4749 2000-12-01  Jerry James  <james@eecs.ukans.edu>
4750
4751         * Makefile.in.in: Use the loop variable to install headers.
4752
4753 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
4754
4755         * window.c (Fsplit_window): Don't invalidate face cache.
4756
4757 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
4758
4759         * minibuf.c (Fall_completions): Undo the previous change
4760         which removed checking elements start with space.
4761
4762 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
4763
4764         * mule-canna.c: Didier suppression.
4765
4766 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
4767
4768         * mule-canna.c: rename static unsigned char buf[] to key_buffer
4769         (warning suppression).  Add English comment translations.
4770
4771 2000-12-05  Martin Buchholz  <martin@xemacs.org>
4772
4773         * unexelfsgi.c (unexec): Better test for mmap failure.
4774
4775 2000-12-05  Martin Buchholz <martin@xemacs.org>
4776
4777         * XEmacs 21.2.38 is released.
4778
4779 2000-12-05  Martin Buchholz  <martin@xemacs.org>
4780
4781         * redisplay.c (bar-cursor): Make a user variable.
4782
4783         * symsinit.h: Add init_postgresql_from_environment.
4784
4785 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
4786
4787         * regex.c: Convert to clean C.
4788
4789 2000-12-05  Dan Holmsand  <dan@eyebee.com>
4790
4791         * realpath.c:
4792         Don't #include sysfile.h. Revert to duplicating PATH_MAX
4793         initialization.
4794         (sys_readlink): renamed to system_readlink to avoid conflict with
4795         the other sys_readlink.
4796
4797 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
4798
4799         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
4800
4801 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
4802
4803         * postgresql.c (init_postgresql_from_environment): new function.
4804         (vars_of_postgresql): Move code initializing Lisp variables out and
4805         into init_postgresql_from_environment.
4806         emacs.c (main_1): Call init_postgresql_from_environment if and only
4807         if running a dumped XEmacs.
4808
4809 2000-08-31  Dan Holmsand  <dan@eyebee.com>
4810
4811         * buffer.c: Make find-file-compare-truenames default to true on
4812         windows.
4813
4814         * realpath.c (win32_abs_start):
4815         (cygwin_readlink):
4816         (win32_readlink): New functions.
4817         (xrealpath): Return really real filenames on windows.
4818
4819         * fileio.c (Ffile_truename): Make file-truename work on windows.
4820
4821 2000-11-29  Didier Verna  <didier@xemacs.org>
4822
4823         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
4824         * faces.c (update_face_cachel_data): use it.
4825         * faces.c (add_face_cachel): use it. Complete background pixmap
4826         frobbing in face cache if `update_face_cachel_data' has not done so.
4827
4828 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
4829
4830         * search.c (string_match_1): Don't set last_thing_searched
4831         when search failed.
4832
4833 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
4834
4835         * buffer.c: Include casetab.h
4836         (common_init_complex_vars_of_buffer): Use new case-table object.
4837         * buffer.h: Include casetab.h
4838         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
4839         (DOWNCASE_TABLE_OF): Ditto.
4840         * bufslots.h: Remove char-tables and add case-table.
4841         * casetab.c: Include casetab.h
4842         (CASE_TABLE_P): Removed.
4843         (mark_case_table): New function.
4844         (allocate_case_table): New function.
4845         (Fcase_table_p): Use new case-table.
4846         (case_table_char): New function.
4847         (Fget_case_table): Ditto.
4848         (Fput_case_table): Ditto.
4849         (Fput_case_table_pair): Ditto.
4850         (Fcopy_case_table): Ditto.
4851         (Fcurrent_case_table): Return case-table.
4852         (Fstandard_case_table): Return case-table.
4853         (Fset_case_table): Fix doc-string.
4854         (set_case_table): Use case-table
4855         (syms_of_casetab): DEFSUBR new functions.
4856         (complex_vars_of_casetab): Set up standard case-table.
4857         * casetab.h: New file.
4858         * editfns.c: Include casetab.h
4859         (Fcompare_buffer_substrings): Use case-table.
4860         * inline.c: Include casetab.h
4861         * lisp.h: Remove bogus extern.
4862         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
4863         * search.c: Include casetab.h
4864         (TRANSLATE_ASCII): Removed.
4865         (TRANSLATE): Unconditionally translate character.
4866         (looking_at_1): Use case-table.
4867         (string_match_1): Ditto.
4868         (fast_string_match): Ditto.
4869         (search_command): Ditto.
4870         (search_buffer): Separate boyer_moore.  Check whether
4871         boyer_moore is possible.
4872         (simple_search): New function.
4873         (boyer_moore): Separated from search_buffer. Translate char.
4874
4875 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
4876
4877         * regex.c (RE_TR_ASCII): Removed.
4878         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
4879         (PATFETCH): Call PATFETCH_RAW.
4880         (PATFETCH_RAW): Fetch Emchar.
4881         (PATUNFETCH): Decrement charptr.
4882         (GET_BUFFER_SPACE): Rename b to buf_end.
4883         (BUF_PUSH): Ditto.
4884         (BUF_PUSH_2): Ditto.
4885         (BUF_PUSH_3): Ditto.
4886         (EXTEND_BUFFER): Ditto.
4887         (SET_LIST_BIT): Ditto.
4888         (regex_compile): Ditto.  Translate non ASCII char.
4889         (compile_range): Ditto.
4890         (re_search_2): Ditto.
4891         (re_match_2_internal): Compare Emchar.
4892         (bcmp_translate): Ditto.
4893
4894 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
4895
4896         * lisp.h (basic char/int typedefs):  comment improvement.
4897
4898 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
4899
4900         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
4901         unstomp inhibit_site_lisp.  Improve comments.
4902
4903 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
4904
4905         * mule-charset.c (Fcharset_property):  improve type checking, comments.
4906
4907 2000-11-28  Andy Piper  <andy@xemacs.org>
4908
4909         * redisplay-output.c (redisplay_output_subwindow): make sure we do
4910         clipped display for windows in the gutter also.
4911         (redisplay_display_boxes_in_window_p): change semantics of return
4912         codes to be more intuitive.
4913
4914         * gutter.h: declare display_boxes_in_gutter_p.
4915
4916         * gutter.c (display_boxes_in_gutter_p): new function for
4917         redisplay.
4918
4919 2000-11-22  Andy Piper  <andy@xemacs.org>
4920
4921         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
4922         autodetect domain.
4923
4924 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
4925
4926         * callproc.c (Fold_call_process_internal):
4927         * gpm.c (Freceive_gpm_event):
4928         (tty_get_foreign_selection): Might be just warning supression.
4929         * fileio.c (Fwrite_region_internal):
4930         (Fset_visited_file_modtime):
4931         * keymap.c (event_matches_key_specifier_p):
4932         Initialize GCPROed variable.
4933
4934         * menubar-x.c (command_builder_find_menu_accelerator):
4935         Initialize before use.
4936
4937 2000-11-23  Andy Piper  <andy@xemacs.org>
4938
4939         * unexcw.c (unexec): make the resulting executable executable.
4940
4941 2000-11-21  Martin Buchholz  <martin@xemacs.org>
4942
4943         * doc.c (get_doc_string):
4944         Use size_t, not int, for result of XSTRING_LENGTH.
4945
4946         * cmds.c (Fdelete_char):
4947         * cmds.c (Fpoint_at_eol):
4948         * cmds.c (Fself_insert_command):
4949         Use EMACS_INT, not int, for result of XINT.
4950         Someday, someone will want to insert more than 2**31 identical characters.
4951
4952         * cmds.c (Fdelete_char):
4953         * cmds.c (Fdelete_backward_char):
4954         * syntax.c (Fforward_word):
4955         * syntax.c (Fforward_comment):
4956         Make COUNT argument optional, for consistency with forward-char et al.
4957
4958 2000-11-22  Martin Buchholz  <martin@xemacs.org>
4959
4960         * lisp.h:
4961         * print.c (long_to_string):
4962         Return a useful value: the pointer at end of data written.
4963
4964         * doprnt.c:
4965         Use `static const char * const' for constant strings.
4966         (union printf_arg): Delete `i', `ui' members.
4967         (get_doprnt_args):
4968         (emacs_doprnt_1):
4969         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
4970         Do all printf-ing via the `l' specifier.
4971         Use EMACS_INT instead of int.
4972         Optimize.
4973
4974 2000-11-20  Didier Verna  <didier@xemacs.org>
4975
4976         * faces.c (update_face_cachel_data): don't frob the background
4977         pixmap when the window is being created. The face is needed but
4978         does not exist yet.
4979
4980 2000-11-20  Andy Piper  <andy@xemacs.org>
4981
4982         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
4983         messing with a debug environment.
4984
4985 2000-11-20  Martin Buchholz  <martin@xemacs.org>
4986
4987         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
4988
4989 2000-11-20  Martin Buchholz  <martin@xemacs.org>
4990
4991         * casetab.c (Fcase_table_p): Fix compile error and crash.
4992
4993 2000-11-18  Philip Aston  <philipa@mail.com>
4994
4995         * s/cygwin32.h: Cygwin has SVR4-like pty support.
4996
4997 2000-11-18  Martin Buchholz  <martin@xemacs.org>
4998
4999         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
5000         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
5001
5002 2000-11-17  Martin Buchholz  <martin@xemacs.org>
5003
5004         * config.h.in: Define HAVE_ELF_H if elf.h exists.
5005         * unexelf.c: Use HAVE_ELF_H.
5006         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
5007         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
5008         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
5009         Greg Harrington <greg_harrington@hotmail.com> provided a machine
5010         for testing.
5011         So this is an unexelfsgi.c from a different line of development.
5012
5013 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
5014
5015         * regex.c (RE_TR_ASCII): New function.
5016         (RE_TRANSLATE): Call it.
5017
5018 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
5019
5020         * buffer.h (TRT_TABLE_OF): Remove assert.
5021         (IN_TRT_TABLE_DOMAIN): Removed.
5022
5023 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
5024
5025         * free-hook.c (log_gcpro):
5026         (show_gcprohist): Add support for GCPRO5.
5027
5028 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
5029
5030         * emacs.c (main_1): Improve -sd error message when --pdump=no.
5031
5032 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
5033
5034         * symeval.h: Declare flush_all_buffer_local_cache.
5035
5036         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
5037         (flush_buffer_local_cache): Added.
5038         (flush_all_buffer_local_cache): Added.
5039
5040         * lrecord.h: Remove unused XD_LO_RESET_NIL.
5041
5042         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
5043         (pdump_dump_data): Ditto.
5044         (pdump_reloc_one): Ditto.
5045         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
5046         before dumping.
5047
5048
5049 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
5050
5051         * buffer.c: Remove if 0'ed entry.
5052         * buffer.h: Rewrite TRT to use char-table.
5053         * bufslots.h: Remove mirror tables.
5054         * casetab.c: Remove mirror tables.
5055         (CASE_TABLE_P): New macro.
5056         (Fcase_table_p): Element of a case table is string or char-table.
5057         (make_mirror_trt_table): Removed.
5058         (set_case_table): Setup char-table from strings for backward
5059         compatibility.
5060         * dired.c (Fdirectory_files):
5061         * dired-msw.c: (mswindows_get_files):
5062         * lisp.h: Change prototype of re_pattern_buffer.
5063         * regex.c: (RE_TRANSLATE): New macro.
5064         (TRANSLATE_P): Ditto.
5065         Change translate to type RE_TRANSLATE_TYPE.
5066         * regex.h: Define RE_TRANSLATE_TYPE
5067         * search.c (TRANSLATE): New macro.
5068         (TRANSLATE_ASCII): New macro.
5069         Translate table is changed to Lisp_Object.
5070         (signal_failure): Inhibit return.
5071
5072 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
5073
5074         * device-msw.c:
5075         * eldap.c:
5076         * event-Xt.c:
5077         * event-stream.c:
5078         * print.c:
5079         Do UNGCPRO before return.
5080
5081 2000-11-14  Martin Buchholz <martin@xemacs.org>
5082
5083         * XEmacs 21.2.37 is released.
5084
5085 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
5086
5087         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
5088         Add comments about discarded return value.
5089
5090 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
5091
5092         * callint.c:
5093         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
5094
5095 2000-10-27  Andy Piper  <andy@xemacs.org>
5096
5097         * gutter.c (Fset_default_gutter_position): default left and right
5098         gutters to visible.
5099         (calculate_gutter_size): calculate resonable heuristic for left
5100         and right gutter sizes.
5101         (specifier_vars_of_gutter): change left and right gutter sizes to
5102         autodetect.
5103         (calculate_gutter_size_from_display_lines): new function.
5104         (output_gutter): check for resizing on left and right gutters.
5105         (clear_gutter): don't special case top and left gutters.
5106         (specifier_vars_of_gutter): use new signature for
5107         set_specifier_caching.
5108
5109         * glyphs-x.c (x_redisplay_widget): spelling fix.
5110         * glyphs.c (specifier_vars_of_glyphs):
5111         * menubar.c (specifier_vars_of_menubar):
5112         * redisplay.c (specifier_vars_of_redisplay):
5113         * toolbar.c (specifier_vars_of_toolbar):
5114         * window.c (specifier_vars_of_window):
5115         * scrollbar.c (specifier_vars_of_scrollbar):
5116         (complex_vars_of_scrollbar): use new signature for
5117         set_specifier_caching.
5118
5119         * specifier.c (set_specifier_caching): include recompute flag.
5120         (recompute_one_cached_specifier_in_window): always recompute if
5121         flag set.
5122         (recompute_one_cached_specifier_in_frame): ditto.
5123
5124         * specifier.h (struct specifier_caching): add recompute flag.
5125
5126 2000-10-24  Andy Piper  <andy@xemacs.org>
5127
5128         * unexcw.c (copy_executable_and_dump_data_section): add new
5129         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
5130         5.0 happy.
5131
5132 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
5133
5134         * console-x.h (x_device): New member modifier_release_time.
5135         * event-Xt.c (x_handle_sticky_modifiers):
5136         Bound interval modifier keys are sticky.
5137         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
5138         * events.h: extern it.
5139
5140 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
5141
5142         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
5143
5144 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
5145
5146         * event-stream.c (execute_command_event): Preserve current_events
5147         and the like when event is misc-user-event.
5148         Inhibit quit during the call to maybe_echo_keys.
5149
5150 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
5151
5152         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
5153         symlink when buffer is killed.
5154         (inhibit_clash_detection): New variable.
5155
5156 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
5157
5158         * console.c (Fset_input_method): Trigger redisplay on tty.
5159
5160 2000-11-07  Martin Buchholz  <martin@xemacs.org>
5161
5162         * process.c (Fprocess_status): Revert to previous behavior:
5163         (process-status "nosuchprocess") ==> nil
5164
5165 2000-11-06  Martin Buchholz  <martin@xemacs.org>
5166
5167         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
5168         Work around another GCC 2.95.2 optimizer bug.
5169
5170 2000-11-02  Martin Buchholz  <martin@xemacs.org>
5171
5172         * process.c (Fget_process): Use LIST_LOOP_2.
5173         (kill_buffer_processes): Use LIST_LOOP_2.
5174
5175         * minibuf.c (Fall_completions):
5176         Delete old non-functional code for FSF fourth argument.
5177
5178         * frame.c (frame_matches_frame_spec):
5179         Renamed from `frame_matches_frametype'.  Update all callers.
5180         (device_matches_device_spec):
5181         Renamed from 'device_matches_console_spec'.  Update all callers.
5182
5183         * doc.c (Fsubstitute_command_keys):
5184         Remove buffer overflow crash.  Small code cleanups.
5185
5186         * casetab.c (check_case_table): Simpler code.
5187
5188         * window.c (Freplace_buffer_in_windows):
5189         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
5190         (and similar implementation) as Fdelete_windows_on.
5191         Update all callers.
5192
5193         * alloc.c (Fmake_list):
5194         * alloc.c (make_vector):
5195         * alloc.c (Fmake_vector):
5196         * alloc.c (make_bit_vector):
5197         * alloc.c (Fmake_bit_vector):
5198         * alloc.c (Fbit_vector):
5199         * alloc.c (Fmake_string):
5200         * alloc.c (Fpurecopy):
5201         * alloc.c (Fmemory_limit):
5202         * buffer.c:
5203         * buffer.c (Fget_buffer):
5204         * buffer.c (Fkill_buffer):
5205         * buffer.c (complex_vars_of_buffer):
5206         * bytecode.c (Fcompiled_function_stack_depth):
5207         * callint.c (Fprefix_numeric_value):
5208         * event-stream.c:
5209         * event-stream.c (Fread_key_sequence):
5210         * casetab.c:
5211         * casetab.c (Fcase_table_p):
5212         * casetab.c (check_case_table):
5213         * casetab.c (Fset_case_table):
5214         * casetab.c (Fset_standard_case_table):
5215         * chartab.c:
5216         * chartab.c (Fchar_table_type):
5217         * chartab.c (Freset_char_table):
5218         * chartab.c (Fget_char_table):
5219         * chartab.c (Fget_range_char_table):
5220         * chartab.c (Fput_char_table):
5221         * chartab.c (Fmap_char_table):
5222         * chartab.c (Fcategory_table_p):
5223         * chartab.c (Fcheck_category_at):
5224         * chartab.c (Fchar_in_category_p):
5225         * chartab.c (Fcategory_table):
5226         * chartab.c (Fcopy_category_table):
5227         * chartab.c (Fset_category_table):
5228         * chartab.c (Fcategory_designator_p):
5229         * chartab.c (Fcategory_table_value_p):
5230         * cmds.c (Fdelete_char):
5231         * cmds.c (Fdelete_backward_char):
5232         * cmds.c (Fself_insert_command):
5233         * cmds.c (Fself_insert_internal):
5234         * console.c (Fvalid_console_type_p):
5235         * console.c (Fcdfw_console):
5236         * console.c (Fconsole_type):
5237         * console.c (Fconsole_name):
5238         * console.c (Fconsole_device_list):
5239         * console.c (Fconsole_on_window_system_p):
5240         * data.c:
5241         * data.c (Feq):
5242         * data.c (Fold_eq):
5243         * data.c (Fsubr_interactive):
5244         * data.c (Fchar_to_int):
5245         * data.c (Fint_to_char):
5246         * data.c (Fsetcar):
5247         * data.c (Fsetcdr):
5248         * data.c (Fnumber_to_string):
5249         * data.c (Fstring_to_number):
5250         * data.c (Frem):
5251         * database.c (mark_database):
5252         * database.c (finalize_database):
5253         * database.c (Fdatabase_live_p):
5254         * database.c (Fdatabasep):
5255         * device-x.c (Fx_get_resource):
5256         * device.c (Fdfw_device):
5257         * dired.c:
5258         * dired.c (Ffile_name_completion):
5259         * dired.c (Ffile_name_all_completions):
5260         * dired.c (Fuser_name_completion):
5261         * dired.c (Fuser_name_completion_1):
5262         * dired.c (Fuser_name_all_completions):
5263         * doc.c (Fdocumentation):
5264         * doc.c (Fdocumentation_property):
5265         * doc.c (Fsubstitute_command_keys):
5266         * editfns.c:
5267         * editfns.c (Fchar_to_string):
5268         * editfns.c (Fstring_to_char):
5269         * editfns.c (Ftemp_directory):
5270         * editfns.c (Finsert_char):
5271         * editfns.c (Fbuffer_substring_no_properties):
5272         * editfns.c (Fnarrow_to_region):
5273         * editfns.c (Fchar_equal):
5274         * editfns.c (Fchar_Equal):
5275         * editfns.c (Ftranspose_regions):
5276         * emacs.c (Fdump_emacs):
5277         * eval.c (Fthrow):
5278         * eval.c (Fcommand_execute):
5279         * eval.c (Fautoload):
5280         * eval.c (Fbacktrace):
5281         * eval.c (Fbacktrace_frame):
5282         * events.c:
5283         * events.c (Fcopy_event):
5284         * events.c (Fcharacter_to_event):
5285         * events.c (Fevent_button):
5286         * events.c (Fevent_process):
5287         * extents.c:
5288         * extents.c (Fnext_extent_change):
5289         * extents.c (Fextent_property):
5290         * faces.c (Ffacep):
5291         * faces.c (Fmake_face):
5292         * file-coding.c:
5293         * file-coding.c (Fencode_shift_jis_char):
5294         * file-coding.c (Fencode_big5_char):
5295         * fileio.c (Ffile_name_directory):
5296         * fileio.c (Ffile_name_nondirectory):
5297         * fileio.c (Ffile_name_as_directory):
5298         * fileio.c (Fdirectory_file_name):
5299         * fileio.c (Ffile_truename):
5300         * fileio.c (Fsubstitute_in_file_name):
5301         * fileio.c (Ffile_modes):
5302         * fileio.c (Fset_file_modes):
5303         * fileio.c (Fset_default_file_modes):
5304         * fileio.c (Fverify_visited_file_modtime):
5305         * floatfns.c (Facos):
5306         * floatfns.c (Fasin):
5307         * floatfns.c (Fatan):
5308         * floatfns.c (Fcos):
5309         * floatfns.c (Fsin):
5310         * floatfns.c (Ftan):
5311         * floatfns.c (Fbessel_j0):
5312         * floatfns.c (Fbessel_j1):
5313         * floatfns.c (Fbessel_jn):
5314         * floatfns.c (Fbessel_y0):
5315         * floatfns.c (Fbessel_y1):
5316         * floatfns.c (Fbessel_yn):
5317         * floatfns.c (Ferf):
5318         * floatfns.c (Ferfc):
5319         * floatfns.c (Flog_gamma):
5320         * floatfns.c (Fexp):
5321         * floatfns.c (Fexpt):
5322         * floatfns.c (Flog):
5323         * floatfns.c (Flog10):
5324         * floatfns.c (Fsqrt):
5325         * floatfns.c (Fcube_root):
5326         * floatfns.c (Facosh):
5327         * floatfns.c (Fasinh):
5328         * floatfns.c (Fatanh):
5329         * floatfns.c (Fcosh):
5330         * floatfns.c (Fsinh):
5331         * floatfns.c (Ftanh):
5332         * floatfns.c (Fabs):
5333         * floatfns.c (Ffloat):
5334         * floatfns.c (Flogb):
5335         * floatfns.c (Fceiling):
5336         * floatfns.c (Ffloor):
5337         * floatfns.c (Fround):
5338         * floatfns.c (Ftruncate):
5339         * floatfns.c (Ffceiling):
5340         * floatfns.c (Fffloor):
5341         * floatfns.c (Ffround):
5342         * floatfns.c (Fftruncate):
5343         * fns.c (Fstring_equal):
5344         * fns.c (Fstring_lessp):
5345         * fns.c (concat2):
5346         * fns.c (concat3):
5347         * fns.c (vconcat2):
5348         * fns.c (vconcat3):
5349         * fns.c (Fsubstring):
5350         * fns.c (Fassoc):
5351         * fns.c (Fold_assoc):
5352         * fns.c (assoc_no_quit):
5353         * fns.c (Fassq):
5354         * fns.c (Fold_assq):
5355         * fns.c (assq_no_quit):
5356         * fns.c (Frassoc):
5357         * fns.c (Fold_rassoc):
5358         * fns.c (Frassq):
5359         * fns.c (Fold_rassq):
5360         * fns.c (rassq_no_quit):
5361         * fns.c (Fremassoc):
5362         * fns.c (remassoc_no_quit):
5363         * fns.c (Fremassq):
5364         * fns.c (remassq_no_quit):
5365         * fns.c (Fremrassoc):
5366         * fns.c (Fremrassq):
5367         * fns.c (remrassq_no_quit):
5368         * fns.c (Fsort):
5369         * fns.c (Fplist_get):
5370         * fns.c (Fplist_put):
5371         * fns.c (Fplist_remprop):
5372         * fns.c (Fplist_member):
5373         * fns.c (Flax_plist_get):
5374         * fns.c (Flax_plist_put):
5375         * fns.c (Flax_plist_remprop):
5376         * fns.c (Flax_plist_member):
5377         * fns.c (Fequal):
5378         * fns.c (Fold_equal):
5379         * fns.c (Frequire):
5380         * fns.c (Fbase64_encode_region):
5381         * fns.c (Fbase64_encode_string):
5382         * fns.c (Fbase64_decode_region):
5383         * frame.c:
5384         * frame.c (frame_matches_frame_spec):
5385         * frame.c (device_matches_device_spec):
5386         * frame.c (next_frame):
5387         * frame.c (previous_frame):
5388         * frame.c (Fnext_frame):
5389         * frame.c (Fprevious_frame):
5390         * frame.c (Fframe_property):
5391         * frame.c (Fset_frame_height):
5392         * frame.c (Fset_frame_size):
5393         * frame.h:
5394         * glyphs.c:
5395         * glyphs.c (if):
5396         * glyphs.c (decode_error_behavior_flag):
5397         * glyphs.c (Fmake_image_instance):
5398         * indent.c (Findent_to):
5399         * intl.c (Fignore_defer_gettext):
5400         * keymap.c (Fkeymapp):
5401         * keymap.c (Flookup_key):
5402         * lread.c:
5403         * lread.c (Fload_internal):
5404         * lread.c (Feval_buffer):
5405         * lread.c (Feval_region):
5406         * macros.c (Fexecute_kbd_macro):
5407         * marker.c (set_marker_internal):
5408         * marker.c (Fset_marker):
5409         * marker.c (set_marker_restricted):
5410         * marker.c (Fcopy_marker):
5411         * marker.c (noseeum_copy_marker):
5412         * menubar.c:
5413         * menubar.c (Fpopup_menu):
5414         * minibuf.c:
5415         * mule-charset.c (Fcharset_name):
5416         * mule-charset.c (Fchar_charset):
5417         * mule-charset.c (Fchar_octet):
5418         * mule-charset.c (Fsplit_char):
5419         * mule-wnnfns.c (Fwnn_open):
5420         * mule-wnnfns.c (Fwnn_dict_comment):
5421         * mule-wnnfns.c (Fwnn_quit_henkan):
5422         * mule-wnnfns.c (Fwnn_word_toroku):
5423         * mule-wnnfns.c (Fwnn_word_sakujo):
5424         * mule-wnnfns.c (Fwnn_word_use):
5425         * mule-wnnfns.c (Fwnn_hindo_set):
5426         * objects.c:
5427         * objects.c (Fmake_color_instance):
5428         * objects.c (Fmake_font_instance):
5429         * print.c (Fwrite_char):
5430         * process.c:
5431         * process.c (mark_process):
5432         * process.c (print_process):
5433         * process.c (get_process_from_usid):
5434         * process.c (Fprocessp):
5435         * process.c (Fprocess_live_p):
5436         * process.c (Fget_process):
5437         * process.c (Fget_buffer_process):
5438         * process.c (get_process):
5439         * process.c (Fprocess_id):
5440         * process.c (Fprocess_name):
5441         * process.c (Fprocess_command):
5442         * process.c (init_process_io_handles):
5443         * process.c (start_process_unwind):
5444         * process.c (Fstart_process_internal):
5445         * process.c (Fopen_multicast_group_internal):
5446         * process.c (Fset_process_window_size):
5447         * process.c (read_process_output):
5448         * process.c (send_process):
5449         * process.c (Fprocess_tty_name):
5450         * process.c (Fset_process_buffer):
5451         * process.c (Fprocess_buffer):
5452         * process.c (Fprocess_mark):
5453         * process.c (set_process_filter):
5454         * process.c (Fset_process_filter):
5455         * process.c (Fprocess_filter):
5456         * process.c (Fprocess_send_region):
5457         * process.c (Fprocess_send_string):
5458         * process.c (exec_sentinel):
5459         * process.c (Fset_process_sentinel):
5460         * process.c (Fprocess_sentinel):
5461         * process.c (status_notify):
5462         * process.c (Fprocess_status):
5463         * process.c (Fprocess_exit_status):
5464         * process.c (process_send_signal):
5465         * process.c (Fprocess_send_eof):
5466         * process.c (deactivate_process):
5467         * process.c (remove_process):
5468         * process.c (Fdelete_process):
5469         * process.c (kill_buffer_processes):
5470         * process.c (Fprocess_kill_without_query):
5471         * process.c (Fprocess_kill_without_query_p):
5472         * rangetab.c:
5473         * rangetab.c (Fget_range_table):
5474         * rangetab.c (Fput_range_table):
5475         * rangetab.c (Fremove_range_table):
5476         * rangetab.c (Fclear_range_table):
5477         * search.c:
5478         * search.c (Fskip_chars_forward):
5479         * search.c (Fskip_chars_backward):
5480         * search.c (Fskip_syntax_forward):
5481         * search.c (Fskip_syntax_backward):
5482         * search.c (search_command):
5483         * search.c (Freplace_match):
5484         * search.c (Fregexp_quote):
5485         * select.c (Fown_selection_internal):
5486         * select.c (Fselection_owner_p):
5487         * select.c (Fselection_exists_p):
5488         * select.c (Fget_selection_internal):
5489         * specifier.c:
5490         * symbols.c:
5491         * symbols.c (Fintern):
5492         * symbols.c (Fintern_soft):
5493         * symbols.c (Funintern):
5494         * symbols.c (Fapropos_internal):
5495         * symbols.c (Fset_default):
5496         * syntax.c:
5497         * syntax.c (Fsyntax_table_p):
5498         * syntax.c (Fcopy_syntax_table):
5499         * syntax.c (Fset_syntax_table):
5500         * syntax.c (Fchar_syntax):
5501         * syntax.c (syntax_match):
5502         * syntax.c (Fmatching_paren):
5503         * syntax.c (Fforward_word):
5504         * syntax.c (scan_lists):
5505         * syntax.c (Fscan_lists):
5506         * syntax.c (Fscan_sexps):
5507         * syntax.c (Fparse_partial_sexp):
5508         * toolbar.c (Fcheck_toolbar_button_syntax):
5509         * tooltalk.doc:
5510         * window.c:
5511         * window.c (Fwindowp):
5512         * window.c (Fwindow_live_p):
5513         * window.c (Fwindow_point):
5514         * window.c (Fdelete_window):
5515         * window.c (Fnext_window):
5516         * window.c (Fprevious_window):
5517         * window.c (Fother_window):
5518         * window.c (window_loop):
5519         * window.c (Fget_lru_window):
5520         * window.c (Fsplit_window):
5521         * window.c (Fenlarge_window):
5522         * window.c (Fenlarge_window_pixels):
5523         * window.c (Fshrink_window):
5524         * window.c (Fshrink_window_pixels):
5525         * window.c (change_window_height):
5526         * window.c (Fwindow_configuration_p):
5527         * window.c (Fcurrent_window_configuration):
5528         * window.h:
5529         * casefiddle.c (casify_object):
5530         * casefiddle.c (Fupcase):
5531         * casefiddle.c (Fdowncase):
5532         * casefiddle.c (Fcapitalize):
5533         * casefiddle.c (Fupcase_initials):
5534         * casefiddle.c (casify_region_internal):
5535         * casefiddle.c (casify_region):
5536         * casefiddle.c (Fupcase_region):
5537         * casefiddle.c (Fdowncase_region):
5538         * casefiddle.c (Fcapitalize_region):
5539         * casefiddle.c (Fupcase_initials_region):
5540         * casefiddle.c (Fupcase_word):
5541         * casefiddle.c (Fdowncase_word):
5542         * casefiddle.c (Fcapitalize_word):
5543         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
5544         Replace 0 with '\0' when working with bytes.
5545         Replace initial "(" with "\(" in docstrings.
5546
5547 2000-11-01  Martin Buchholz  <martin@xemacs.org>
5548
5549         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
5550
5551         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
5552
5553 2000-10-31  Martin Buchholz  <martin@xemacs.org>
5554
5555         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
5556
5557 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
5558
5559         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
5560         correctly.
5561
5562 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
5563
5564         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
5565         (inhibit_auto_save_session): New variable.
5566         (vars_of_fileio): Declare and initialize them.
5567         * fileio.c (Fdo_auto_save): Don't create session file if
5568         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
5569
5570 2000-10-31  Martin Buchholz  <martin@xemacs.org>
5571
5572         * sgiplay.c (play_internal): C++ compilability.
5573         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
5574         * callproc.c (Fold_call_process_internal):
5575         Remove unused vars `env', `first'.
5576         * scrollbar.c (update_scrollbar_instance):
5577         #### unused var `current_window'.
5578         * redisplay-tty.c: Put currently unused vars insert_mode_on,
5579         etc. within #ifdef NOT_YET.
5580         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
5581         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
5582         * specifier.c (specifier_instance):
5583         #### unused var `tag'.
5584         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
5585
5586 2000-10-27  Martin Buchholz  <martin@xemacs.org>
5587
5588         * fns.c (Fbutlast):
5589         * fns.c (list_sort):
5590         * fns.c (Ffillarray):
5591         * fns.c (bytecode_nconc2):
5592         * fns.c (Fnconc):
5593         * fns.c (mapcar1):
5594         * fns.c (Fmapconcat):
5595         Be pedantically 64-bit correct.  For the time when someone will
5596         want to have a list with length > 2**32.
5597
5598         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
5599         Work around MIPSpro compiler bug.
5600
5601         * process-unix.c (unix_kill_child_process): Add snarky comment.
5602         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
5603
5604         * config.h.in: Oops, _getpt ==> _getpty
5605
5606 2000-10-26  Martin Buchholz  <martin@xemacs.org>
5607
5608         * config.h.in:
5609         * regex.c:
5610         Use void*, not char*, as return type of alloca().
5611
5612         * alloc.c (free_marker): Side effect inside assert expression!
5613
5614 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
5615
5616         * mule-charset.c (Fset_charset_ccl_program): To check
5617         if the given ccl program is valid, use setup_ccl_program()
5618         instead of CHECK_VECTOR().
5619         (Fmake_charset): Likewise.
5620
5621 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
5622
5623         * faces.c (get_extent_fragment_face_cache_index):
5624         Fix cachel.merged_faces memory leak.
5625
5626 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
5627
5628         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
5629         Reset MSB of octets obtained by DECODE_SJIS
5630         because of the incompatibility with Emacs.
5631         (ccl_driver)<CCL_ENCODE_SJIS>:
5632         Set MSB of octets before passing them to
5633         ENCODE_SJIS because of the incompatibility
5634         with Emacs.
5635
5636 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
5637
5638         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
5639         (DECLARE_LRECORD): Undo the last change.
5640         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
5641
5642 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
5643
5644         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
5645         the implementation to lrecord_implementations_table.
5646
5647 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
5648
5649         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
5650         initial value of `lrecord_type_##c_name' and
5651         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
5652         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
5653         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
5654         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
5655         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
5656
5657 2000-10-17  Martin Buchholz  <martin@xemacs.org>
5658
5659         * miscplay.c (sndcnv8S_2mono):
5660         (sndcnv2monounsigned):
5661         (sndcnvULaw_2linear):
5662         (sndcnv16swap):
5663         Remove implementation-defined behavior.
5664
5665 2000-10-12  Martin Buchholz  <martin@xemacs.org>
5666
5667         * input-method-xlib.c: Warning suppression.
5668
5669 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
5670
5671         * mule-ccl.c: Sync up with Emacs 21.0.90.
5672         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
5673         Do nothing.
5674         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
5675         Likewise.
5676         (ccl_driver[WriteMultibyteChar2]): Bug fix.
5677         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
5678         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
5679         leading char belongs to official 2-dimensional charset.
5680         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
5681         write the given character as is.  Otherwise,
5682         if it is a multibyte char, convert it by
5683         non_ascii_set_charptr_emchar, then write it.
5684         (CCL_WRITE_STRING): Likewise.
5685         (ccl_get_compiled_code): New function.
5686         (setup_ccl_program): When ccl_prog is invalid,
5687         return -1.
5688         (Fregister_code_conversion_map): New function.
5689         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
5690
5691         * mule-ccl.h: Sync up with Emacs 21.0.90.
5692         (Fregister_ccl_program): export it.
5693
5694         * redisplay-msw.c (separate_textual_runs):
5695         If ccl program is not valid, don't do ccl conversion.
5696
5697         * redisplay-x.c (separate_textual_runs): Ditto.
5698
5699         * file-coding.c (Fmake_coding_system):
5700         When type is ccl and value is vector, register it
5701         with a proper symbol.  And checks whether the
5702         given ccl program is valid.
5703         (mule_decode): When calling ccl_driver, if src indicates
5704         NULL pointer, set an empty string instead.
5705         (mule_encode): Likewise.
5706
5707 2000-10-11  Martin Buchholz  <martin@xemacs.org>
5708
5709         The following large batch of changes gets us back to a state of
5710         C++ compilability.  Extbyte is now a char, which means that
5711         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
5712
5713         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
5714
5715         * sound.c (Fplay_sound): Type correctness.
5716
5717         * select-x.c (hack_motif_clipboard_selection): Type correctness.
5718         (x_get_window_property): Type correctness.
5719         (receive_incremental_selection): unsigned char ==> Extbyte
5720         (selection_data_to_lisp_data): unsigned char ==> Extbyte
5721         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
5722         (Fx_store_cutbuffer_internal): Type correctness.
5723
5724         * process-unix.c (try_to_initialize_subtty): Type correctness.
5725
5726         * objects-x.c (x_print_color_instance): Type correctness.
5727         (x_print_font_instance): Type correctness.
5728         (x_list_fonts): SExtbyte ==> Extbyte.
5729         (valid_x_font_name_p): SExtbyte ==> Extbyte.
5730         (x_find_charset_font): SExtbyte ==> Extbyte.
5731         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
5732         (truename_via_XListFonts): SExtbyte ==> Extbyte.
5733         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
5734         Use bufbyte_strcmp.
5735
5736         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
5737         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
5738         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
5739         (BYTE_C0_P): Use bit ops for char-signedness safety.
5740         (BYTE_C1_P): Use bit ops for char-signedness safety.
5741         (CHARSET_BY_LEADING_BYTE):
5742         (CHARSET_BY_ATTRIBUTES):
5743         Always use inline function.
5744         Use type_checking_assert.
5745         Hide chlook.
5746
5747         * mule-charset.c (non_ascii_charptr_copy_char):
5748         Modify to work with both ASCII and non-ASCII characters.
5749         Improve docs and variable names.
5750         Replace over-clever fall-through switch with a simple loop.
5751         (Lstream_get_emchar_1):
5752         Replace over-clever fall-through switch with a simple loop.
5753
5754         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
5755         Warning suppression.
5756
5757         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
5758         the return value of Lstream_getc, which could be EOF as well.
5759
5760         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
5761
5762         * lisp.h: Make Extbyte a char, not unsigned char, so that external
5763         APIs can be used on Extbytes without casts.  Risky!
5764         (SExtbyte): Remove.
5765         (UExtbyte): Remove.
5766
5767         * input-method-xlib.c (XIM_init_device):
5768         Use Xlib.h instead of IntrinsicP.h.
5769         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
5770         which will break in X11R7.
5771         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
5772         to call XRegisterIMInstantiateCallback with correct types.
5773
5774         * gui-x.c (button_item_to_widget_value): Type correctness.
5775
5776         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
5777
5778         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
5779         (xbm_instantiate_1): Type correctness.
5780         (BUILD_GLYPH_INST):  Type correctness.
5781
5782         * fileio.c (Fsubstitute_in_file_name): Type correctness.
5783
5784         * file-coding.c:
5785         (decode_coding_sjis):
5786         (decode_coding_big5):
5787         (decode_coding_ucs4):
5788         (decode_coding_utf8):
5789         (decode_coding_iso2022):
5790         (decode_coding_no_conversion):
5791         Make all decoding functions take an Extbyte * arg.
5792         (encode_coding_sjis):
5793         (encode_coding_big5):
5794         (encode_coding_ucs4):
5795         (encode_coding_utf8):
5796         (encode_coding_iso2022):
5797         (encode_coding_no_conversion):
5798         Make all encoding functions take a Bufbyte * arg.
5799         Use size_t instead of unsigned int for memory sizes.
5800         Only cast to unsigned char whenever dereferencing Extbyte *.
5801
5802         * doc.c (unparesseuxify_doc_string): Type correctness.
5803
5804         * console-x.c (split_up_display_spec):
5805         Rewrite without using details of internal string representation.
5806         (x_semi_canonicalize_device_connection): Type correctness.
5807
5808         * config.h.in:
5809         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
5810         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
5811         (HAVE_XFREE386): Removed.
5812
5813         * buffer.h (DEC_CHARPTR): `const' correctness.
5814         (bufbyte_strcmp): New.
5815         (bufbyte_memcmp): New.
5816
5817         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
5818
5819         * buffer.h (XCHAR_OR_CHAR_INT):
5820         Always use inline function.
5821         Remove redundant type checking assert() - XINT will abort quite nicely.
5822
5823 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
5824
5825         * search.c (Freplace_match): Set newtext to an empty string.
5826
5827 2000-10-10  Martin Buchholz  <martin@xemacs.org>
5828
5829         * s/decosf1-3.h: Remove #include of stropts.h
5830         * s/ptx.h: Remove #include of stropts.h
5831         * s/usg5-4.h: Remove #include of stropts.h
5832         * sysproc.h:
5833         * config.h.in:
5834         Use stropts.h, not sys/stropts.h.
5835         Use strtio.h, not sys/strtio.h.
5836
5837 2000-10-04  Martin Buchholz <martin@xemacs.org>
5838
5839         * XEmacs 21.2.36 is released.
5840
5841 2000-09-21  Andy Piper  <andy@xemacs.org>
5842
5843         * glyphs-x.c (x_redisplay_widget): make sure non-structural
5844         changes still involve copying the widget tree.
5845         (update_widget_face): make sure a change is register in the widget
5846         tree. Call update_tab_widget_face appropriately.
5847         (update_tab_widget_face): ditto.
5848         (x_tab_control_redisplay): make sure non-structural changes still
5849         involve copying the widget tree.
5850
5851 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
5852
5853         * lread.c (locate_file): Check the path element is non-nil.
5854
5855 2000-10-02  Martin Buchholz  <martin@xemacs.org>
5856
5857         * lisp.h: Warning suppression for SCO compilers.
5858
5859         * redisplay-tty.c (reset_tty_modes): Fix crash.
5860         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
5861
5862 2000-09-27  Martin Buchholz  <martin@xemacs.org>
5863
5864         Big signal/process handling overhaul.  Bugs fixed:
5865         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
5866         M-x comint-kill-subjob should work for both values nil and t of
5867         process-connection-type. It was broken on most platforms.
5868         Testing on Irix and Cygwin still needed.  Other plaforms tested.
5869         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
5870         * process-unix.c: Signal/Process handling overhaul.
5871         (pty_name): make 64 bytes, as `expect' does, for paranoia.
5872         (allocate_pty): Use all available modern methods of allocating
5873         ptys, falling back to old style BSD allocation as a last resort.
5874         Use allegedly more secure Unix98 pty allocation by default.
5875         (allocate_pty_the_old_fashioned_way): New. the last resort.
5876         (unix_create_process): Push ptem, ldterm, ttcompat where
5877         available.  Autoconfiscate.
5878         (try_to_initialize_subtty): New.
5879         (unix_kill_child_process): Proper signal handling for ptys on most
5880         platforms, using special knowledge of AIX, BSD, etc...
5881         (unix_create_process): Always disconnect_controlling_terminal() for
5882         subprocesses, whether using ptys or not.
5883         * process.h: Remove old getpt-dependent PTY code.
5884         * process.c (Fprocess_send_signal): New, obvious generic function.
5885         (decode_signal): New.
5886         (Finterrupt_process):
5887         (Fkill_process):
5888         (Fquit_process):
5889         (Fstop_process):
5890         (Fcontinue_process):
5891         (Fsignal_process): Use decode_signal.
5892         (process_send_signal):
5893         Many docstring corrections.
5894         Allow any signal to be sent to a process object.
5895         * config.h.in: Add symbols for big signal/process overhaul.
5896         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
5897         * sysproc.h: Include process-related headers, where available:
5898         sys/stropts.h sys/strtio.h pty.h libutil.h
5899         * s/irix4-0.h:
5900         * s/irix5-0.h:
5901         * s/cygwin32.h:
5902         * s/gnu.h:
5903         * s/linux.h:
5904         * s/hpux.h:
5905         * s/aix3-1.h:
5906         Remove old S&M pty stuff.
5907         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
5908         * systty.h: Simplify cpp hackery, improve comments.
5909         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
5910
5911         * editfns.c (Fformat_time_string):
5912         Be a little more paranoid with the return value of ctime.
5913
5914         * fileio.c (check_executable):
5915         (check_writable):
5916         Use symbolic constants X_OK, W_OK.
5917
5918         * console-x.c (split_up_display_spec): Fix a warning.
5919
5920 2000-10-02  Martin Buchholz  <martin@xemacs.org>
5921
5922         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
5923         * ntproc.c (sys_spawnve): make_string ==> build_string
5924         Small clarity improvements.
5925
5926 2000-09-30  Martin Buchholz  <martin@xemacs.org>
5927
5928         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
5929
5930         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
5931
5932         * config.h.in (HAVE_STRCASECMP): Remove.
5933
5934 2000-09-29  Martin Buchholz  <martin@xemacs.org>
5935
5936         * redisplay-output.c (redisplay_output_pixmap):
5937         Cleaner and possibly more 64-bit correct code.
5938
5939 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
5940
5941         * dumper.c (pdump_load_finish): move restoration of
5942         `noninteractive1' to emacs.c (main_1).
5943         * emacs.c (main_1): protect LISP-visible command-line flags
5944         from pdump_load().
5945
5946 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
5947
5948         * Makefile.in.in (versionclean):  Use EXE_TARGET and
5949         DUMP_TARGET instead of literal program names.
5950
5951 2000-09-20  Martin Buchholz  <martin@xemacs.org>
5952
5953         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
5954
5955 2000-09-19  Martin Buchholz  <martin@xemacs.org>
5956
5957         * *: Spelling mega-patch
5958
5959 2000-09-19  Martin Buchholz  <martin@xemacs.org>
5960
5961         * fns.c (bad_bad_turtle):
5962         Delete "Eek!" comment, since we fixed the bug to which it refers.
5963
5964 2000-09-16  Martin Buchholz  <martin@xemacs.org>
5965
5966         * alloca.c: Replace REGISTER with register.
5967
5968 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
5969
5970         * file-coding.c (ucs_to_char): Use countof.
5971
5972 2000-09-16  Martin Buchholz  <martin@xemacs.org>
5973
5974         * file-coding.c: (ucs_to_char):
5975         (complex_vars_of_file_coding):
5976         Use countof instead of sizeof.
5977         Use CHECK_NATNUM instead of CHECK_INT.
5978
5979         * sysdep.c (strcasecmp): Remove.
5980         * device-x.c (ascii_strcasecmp): New.
5981         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
5982         Avoid using non-standard non-portable strcasecmp.
5983
5984 2000-09-16  Martin Buchholz  <martin@xemacs.org>
5985
5986         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
5987         * font-lock.c: remove reference to emacsfns.h.
5988         * search.c: small doc improvement.
5989         * event-Xt.c: correct file names in comments.
5990         * console-x.h Correct file names in comments.
5991         * frame.c: Correct file names in comments.
5992         * event-stream.c: remove Energize from comments.
5993
5994 2000-09-15  Martin Buchholz  <martin@xemacs.org>
5995
5996         * symeval.h (DEFERROR_STANDARD):
5997         (DEFERROR):
5998         (DEFSYMBOL):
5999         (DEFSYMBOL_NO_DUMP):
6000         (DEFSYMBOL_MULTIWORD_PREDICATE):
6001         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
6002         (DEFKEYWORD):
6003         The construct &##name is not sensible C.
6004         Fixes compilation errors with Unixware native compiler.
6005
6006 2000-09-14  Martin Buchholz  <martin@xemacs.org>
6007
6008         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
6009         (next_frame_internal): Removed.  We now just have next_frame.
6010         (next_frame):
6011         Write a simpler and cleaner one-pass algorithm.
6012         Remove called_from_delete_device arg and #ifdefed-out code.
6013         (previous_frame):
6014         Renamed from prev_frame.  Update callers.
6015         Cleaned up to have an analogous implementation to next_frame.
6016         (other_visible_frames_internal): Remove the
6017         called_from_delete_device bogus arg, and hence, remove this
6018         function.  Just use other_visible_frames().
6019
6020         * window.c (Fnext_window):
6021         Prettify docstring.
6022         Since next_frame() is guaranteed to return a frame, remove check
6023         for nil inserted in previous patch.
6024         (Fprevious_window):
6025         Prettify docstring.
6026         Make code look more like Fnext_window.
6027         (window_loop):
6028         Respect the `console' arg when iterating through windows.
6029         Fixes bug: (get-buffer-window buffer t device) not respecting
6030         the `device' arg.
6031         This function needs more work, as others have pointed out.
6032
6033         * frame.h: Rename prev_frame to previous_frame.
6034         device_matches_console_spec no longer takes a `frame' arg.
6035
6036         * s/gnu.h:
6037         * s/linux.h:
6038         * s/hpux.h:
6039         Use EMACS_BLOCK_SIGNAL instead of sigblock.
6040         From "Golubev I. N." <gin@mo.msk.ru>.
6041
6042         * make-src-depend: Fix typo.
6043
6044 2000-09-13  Martin Buchholz  <martin@xemacs.org>
6045
6046         * window.c (Fnext_window):
6047         next_frame() might return nil, not a frame.
6048         Fixes this crash:
6049         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
6050
6051         * frame.c (next_frame_internal):
6052         We've passed a frame if we've passed its device.
6053         Fixes this crash:
6054         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
6055 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
6056
6057 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
6058
6059         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
6060         Allow option to suppress accelerators in menu/dialog items.
6061         (populate_or_checksum_helper): Pass dialog title through above.
6062
6063 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
6064
6065         * event-msw.c (mswindows_key_to_emacs_keysym):
6066         Add "pause" key, fix "menu" key.
6067
6068 2000-09-09  Martin Buchholz  <martin@xemacs.org>
6069
6070         * eval.c (reinit_vars_of_eval):
6071         Increase max_lisp_eval_depth to 1000,
6072         required for thai-xtis.el to byte-compile under some circumstances.
6073
6074 2000-09-04  Martin Buchholz  <martin@xemacs.org>
6075
6076         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
6077         From Kenichi Handa.
6078
6079 2000-09-01  Martin Buchholz  <martin@xemacs.org>
6080
6081         * make-src-depend: Make the generated Makefiles smaller.
6082
6083         * s/hpux.h (SETUP_SLAVE_PTY):
6084         Provide a %d in the format string for the errno argument.
6085
6086         * editfns.c (Ftemp_directory):
6087         Warning fix.
6088         Avoid buffer overrun on very long file name.
6089
6090         * input-method-xlib.c (XIM_init_device):
6091         6th parameter of XRegisterIMInstantiateCallback has different
6092         pointer types on different OSes, so simply cast to (void *).
6093
6094         * unexhp9k800.c: Warning fixes.  Fiddly changes.
6095
6096         * sysdll.c (dll_open):
6097         shl_load will hang hard if passed a NULL filename.
6098         Simply return NULL for compatibility with dlopen.
6099         * sysdll.c: Conform to XEmacs coding standards.
6100
6101         * sysdep.c (get_pty_max_bytes):
6102         Support pty input lines longer than 512 bytes on HP-UX 10.20.
6103
6104 2000-08-31  Martin Buchholz  <martin@xemacs.org>
6105
6106         * tooltalk.c: Add #include <syssignal.h>
6107
6108 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
6109
6110         * s/hpux.h: Don't use undefined function sigunblock().
6111
6112 2000-08-31  Martin Buchholz  <martin@xemacs.org>
6113
6114         * config.h.in: Add HAVE_BALLOON_HELP.
6115         * emacs.c: Use HAVE_BALLOON_HELP.
6116         * Makefile.in.in (x_objs):
6117         Make Balloon Help conditional on finding shape.h.
6118
6119 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
6120
6121         * syntax.c (regex_emacs_buffer_p): New variable.
6122         * syntax.h (regex_emacs_buffer_p): extern.
6123         * search.c (looking_at_1):
6124         (string_match_1):
6125         (fast_string_match):
6126         (search_buffer): Set regex_emacs_buffer_p.
6127         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
6128         when before_dot, at_dot, after_dot.
6129
6130 2000-08-23  Andy Piper  <andy@xemacs.org>
6131
6132         * gui-x.c (popup_selection_callback): Only set action_occurred
6133         when we really have an image instance.
6134         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
6135
6136 2000-08-23  Andy Piper  <andy@xemacs.org>
6137
6138         * gui-msw.c (mswindows_handle_gui_wm_command): set
6139         action_occurred.
6140         * gui-x.c (popup_selection_callback): ditto.
6141
6142         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
6143         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
6144         (struct Lisp_Image_Instance): add action_occurred flag.
6145
6146         * glyphs.c (redisplay_subwindow): use action_occurred flag.
6147         (image_instance_changed): ditto.
6148         (reset_frame_subwindow_instance_cache): only unmap windows - do
6149         not remove them from the cache also.
6150
6151         * glyphs-widget.c (tab_control_update): better debug.
6152         (progress_gauge_update): ditto.
6153         (layout_update): ditto.
6154         (layout_instantiate): ditto.
6155         (tab_control_order_only_changed): cope with null pending items.
6156
6157         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
6158         debug. Force selection of an item when an action occurred. Cope
6159         with null pending_items.
6160         (mswindows_progress_gauge_redisplay): better debug.
6161         * glyphs-x.c (x_tab_control_redisplay): ditto.
6162
6163         * redisplay.c (redisplay_frame): reset the frame cache if the
6164         frame is garbaged.
6165
6166         * window.c (Fset_window_configuration): potentially re-enable
6167         frame cache reset.
6168         (window_unmap_subwindows): need to finalize instances here since
6169         it is only used in mark_window_as_deleted.
6170
6171 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
6172
6173         * nas.c (SndOpenDataForReading):
6174         nas.c (WaveOpenDataForReading):
6175         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
6176         Somehow escaped from the 2000-08-14 patch.
6177
6178 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
6179
6180         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
6181         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
6182
6183 2000-08-21  Andy Piper  <andy@xemacs.org>
6184
6185         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
6186         window if it is not already displayed.
6187
6188         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
6189         it is not already displayed.
6190
6191         * window.c (Fset_window_configuration): don't reset the frame
6192         cache.
6193
6194         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
6195         instances from the frame cache if we are actually finalizing them.
6196         (reset_frame_subwindow_instance_cache): reset frame cache only
6197         after unmapping everything.
6198         (map_subwindow): set displayed flag after mapping.
6199
6200 2000-08-21  Martin Buchholz  <martin@xemacs.org>
6201
6202         * data.c (indirect_function):
6203         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
6204
6205         * eval.c (function_argcount):
6206         Use original function when signaling errors.
6207
6208 2000-08-18  Andy Piper  <andy@xemacs.org>
6209
6210         * frame.c (delete_frame_internal): use new
6211         free_frame_subwindow_instances name.
6212
6213         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
6214         (add_tab_item): make return type correct.
6215         (mswindows_tab_control_instantiate): assert index of tab.
6216         (mswindows_tab_control_redisplay): Re-code to use
6217         gui_item_equal_sans_selected and gui_item_list_find_selected.
6218
6219         * glyphs-widget.c (tab_control_update): Correct comment.
6220
6221         * window.c (window_unmap_subwindows): use new
6222         unmap_subwindow_instance_cache_mapper.
6223         (window_unmap_subwindows_cache_mapper): deleted.
6224         (Fset_window_configuration): comparisons should now be with
6225         EQ. Preserve the subwindow instance cache across configuration
6226         changes.
6227         (allocate_window): ditto.
6228         (make_dummy_parent): ditto.
6229
6230         * glyphs.c (free_frame_subwindow_instances): rename from
6231         free_frame_subwindow_instance_cache. finalize all instances rather
6232         than just those in the display cache.
6233         (finalize_all_subwindow_instances): walk windows unmapping and
6234         finalizing subwindows.
6235         (unmap_subwindow_instance_cache_mapper): moved from
6236         window.c. Allow finalization as well as unmapping.
6237
6238         * gui.c (gui_item_list_find_selected): new function.
6239
6240         * gui.h (gui_item_list_find_selected): declare.
6241
6242         * glyphs-x.c (x_tab_control_redisplay): pick tab
6243         explicitly. Re-code to use gui_item_equal_sans_selected and
6244         gui_item_list_find_selected.
6245
6246         * glyphs-x.h: add lwlib-utils.h
6247
6248         * buffer.c (Frecord_buffer): undo previous change.
6249
6250 2000-08-09  Vin Shelton  <acs@xemacs.org>
6251
6252         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
6253         possible.  Create temporary files more securely.  The patch was
6254         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
6255         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
6256         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
6257         for details.
6258
6259 2000-08-07  Ben Wing  <ben@xemacs.org>
6260
6261         * getloadavg.c: remove duplicate (and windows-breaking)
6262         includes of fcntl.h and sys/file.h.
6263
6264         * nt.c: remove duplicate getloadavg() definition.
6265
6266         * sysdll.h (Qdll_filename_encoding): add missing stand-in
6267         encodings.
6268
6269 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
6270
6271         * eval.c (function_argcount): If function needs to be autoloaded
6272         actually use the loaded definition.
6273         GCPRO function.
6274
6275 2000-08-05  Ben Wing  <ben@xemacs.org>
6276
6277         * getloadavg.c: add prototype for getloadavg().  remove
6278         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
6279         of the code).  remove duplicate header includes.
6280
6281         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
6282
6283         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
6284         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
6285         useful load average.
6286
6287         * alloc.c (reinit_alloc_once_early): removed references to
6288         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
6289         the lisp vars are the only things referencing the malloc_sbrk_*
6290         vars, and they were already if 0'd out.  these vars only exist
6291         in the older malloc.c, which is basically unused, and they're
6292         only for informational purposes.
6293
6294         * m\*.h: removed useless VIRT_ADDR_VARIES.
6295
6296         * m\powerpc.h: removed stray NO_ARG_ARRAY.
6297
6298 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
6299
6300         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
6301         color if the image is a mono pixmap.
6302
6303 2000-07-30  Ben Wing  <ben@xemacs.org>
6304
6305         * Makefile.in.in (release):
6306         Remove stray @.
6307
6308         * buffer.c (directory_is_current_directory):
6309         * dired-msw.c (mswindows_get_files):
6310         * dired.c:
6311         * dired.c (Fdirectory_files):
6312         * dired.c (file_name_completion_stat):
6313         * dired.c (Ffile_attributes):
6314         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
6315         preprocessor tricks, to avoid problems on some machines
6316         (e.g. SCO).
6317
6318         * callproc.c (egetenv): GC docs.
6319
6320         * console-msw.h:
6321         * console-msw.h (struct mswindows_dialog_id):
6322         * lrecord.h (lrecord_type):
6323         New object for use with MSW dialogs.
6324
6325         * console.h (struct console_methods):
6326         New enable/disable frame methods, for proper modal dialogs.
6327
6328         * device-msw.c (msprinter_default_printer): Fix to follow
6329         proper Mule conventions.
6330
6331         * device-msw.c:
6332         * device-msw.c (signal_open_printer_error):
6333         * device-msw.c (msprinter_init_device):
6334         * device-msw.c (ensure_not_printing):
6335         * device-msw.c (plist_get_margin):
6336         * device-msw.c (Fmsprinter_select_settings):
6337         * device-msw.c (finalize_devmode):
6338         * device-msw.c (Fmsprinter_settings_despecialize):
6339         * device-msw.c (signal_enum_priner_error):
6340         * extents.c (decode_extent):
6341         * extents.c (decode_map_extents_flags):
6342         * extents.c (decode_extent_at_flag):
6343         * extents.c (Fextent_at):
6344         * extents.c (Fextents_at):
6345         * extents.c (symbol_to_glyph_layout):
6346         [[[[2]]]] Use structured errors.
6347
6348         * dialog-msw.c:
6349         * dialog-msw.c (mswindows_is_dialog_msg):
6350         * dialog-msw.c (mark_mswindows_dialog_id):
6351         * dialog-msw.c (dialog_proc):
6352         * dialog-msw.c (handle_question_dialog_box):
6353         * dialog-msw.c (syms_of_dialog_mswindows):
6354         Define new object to clean up marking; use it as a dialog identifier.
6355         Call new delete-dialog-box-hook.
6356
6357         * dialog-x.c (dbox_selection_callback):
6358         * dialog-x.c (dbox_descriptor_to_widget_value):
6359         * dialog-x.c (x_make_dialog_box_internal):
6360         Call new delete-dialog-box-hook.
6361         Return an id.
6362
6363         * dialog.c:
6364         * dialog.c (syms_of_dialog):
6365         * dialog.c (vars_of_dialog):
6366         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
6367
6368         * eval.c:
6369         * eval.c (signal_call_debugger):
6370         when noninteractive, output stack traces on the console instead
6371         of in a (never-seen) buffer.
6372
6373         * eval.c (signal_type_error):
6374         * eval.c (invalid_argument_2):
6375         * lisp.h:
6376         new funs for use w/structured errors.
6377
6378         * event-Xt.c:
6379         * event-Xt.c (x_to_emacs_keysym):
6380         * event-Xt.c (describe_event):
6381         * event-Xt.c (emacs_Xt_event_handler):
6382         * event-Xt.c (vars_of_event_Xt):
6383         * event-msw.c:
6384         * event-msw.c (mswindows_wnd_proc):
6385         * event-msw.c (vars_of_event_mswindows):
6386         rename {x,mswindows}-debug-events to debug-{}-events for
6387         consistency with other debug-foo variables.
6388
6389         * event-stream.c:
6390         document next-event more clearly.
6391
6392         * fileio.c (Ffile_name_directory):
6393         * fileio.c (Ffile_name_nondirectory):
6394         * fileio.c (Funhandled_file_name_directory):
6395         * fileio.c (file_name_as_directory):
6396         * fileio.c (Ffile_name_as_directory):
6397         * fileio.c (directory_file_name):
6398         * fileio.c (Fdirectory_file_name):
6399         * fileio.c (Fmake_temp_name):
6400         * fileio.c (Ffile_truename):
6401         * fileio.c (Fsubstitute_in_file_name):
6402         * fileio.c (expand_and_dir_to_file):
6403         * fileio.c (barf_or_query_if_file_exists):
6404         * fileio.c (check_executable):
6405         * fileio.c (Ffile_exists_p):
6406         * fileio.c (Ffile_writable_p):
6407         * fileio.c (Ffile_directory_p):
6408         * fileio.c (Ffile_regular_p):
6409         * fileio.c (Ffile_modes):
6410         * fileio.c (Ffile_newer_than_file_p):
6411         * fileio.c (Fverify_visited_file_modtime):
6412         * fileio.c (Fset_visited_file_modtime):
6413         * fileio.c (auto_save_1):
6414         (1). (2).
6415         fix up gcpro's.
6416
6417         * frame-msw.c:
6418         * frame-msw.c (mswindows_init_frame_1):
6419         * frame-msw.c (mswindows_enable_frame):
6420         * frame-msw.c (error_frame_unsizable):
6421         * frame-msw.c (msprinter_init_frame_1):
6422         * frame-msw.c (msprinter_init_frame_3):
6423         * frame-msw.c (console_type_create_frame_mswindows):
6424         (2).
6425         implement new enable/disable frame methods.
6426
6427         * frame-x.c:
6428         * frame-x.c (x_enable_frame):
6429         * frame-x.c (console_type_create_frame_x):
6430         implement new enable/disable frame methods.
6431
6432         * frame.c:
6433         * frame.c (Fdisable_frame):
6434         * frame.c (syms_of_frame):
6435         * frame.h (struct frame):
6436         implement new enable/disable frame methods/functions.
6437
6438         * general-slots.h:
6439         add initial-focus.
6440
6441         * glyphs-msw.c (mswindows_widget_instantiate):
6442         comment that initial-focus should be implemented.
6443
6444         * glyphs-widget.c:
6445         * glyphs-widget.c (check_valid_instantiator):
6446         * glyphs-widget.c (check_valid_orientation):
6447         * glyphs-widget.c (check_valid_tab_orientation):
6448         * glyphs-widget.c (check_valid_justification):
6449         * glyphs-widget.c (check_valid_border):
6450         * glyphs-widget.c (check_valid_callback):
6451         * glyphs-widget.c (check_valid_int_or_function):
6452         * glyphs-widget.c (check_valid_string_or_vector):
6453         * glyphs-widget.c (check_valid_item_list_1):
6454         * glyphs-widget.c (widget_validate):
6455         * glyphs-widget.c (combo_box_validate):
6456         * glyphs-widget.c (widget_instantiate):
6457         * glyphs-widget.c (syms_of_glyphs_widget):
6458         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
6459         * glyphs-widget.c (image_instantiator_combo_box):
6460         * glyphs-widget.c (image_instantiator_scrollbar):
6461         * glyphs-widget.c (image_instantiator_tab_control):
6462         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
6463         (2).
6464         support (unimplemented) keyword initial-focus.
6465         reindent long macros.
6466
6467         * glyphs-x.c (x_redisplay_widget):
6468         * glyphs-x.c (x_button_instantiate):
6469         * glyphs-x.c (x_button_redisplay):
6470         * glyphs-x.c (x_progress_gauge_instantiate):
6471         * glyphs-x.c (x_edit_field_instantiate):
6472         * glyphs-x.c (x_combo_box_instantiate):
6473         * glyphs-x.c (x_tab_control_instantiate):
6474         * glyphs-x.c (x_label_instantiate):
6475         * gui-x.c:
6476         * gui-x.c (button_item_to_widget_value):
6477         * gui-x.c (gui_items_to_widget_values_1):
6478         * gui-x.c (gui_item_children_to_widget_values):
6479         * gui-x.c (gui_items_to_widget_values):
6480         * gui-x.h:
6481         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
6482         add new flag to gui-parsing routines to indicate whether
6483         accelerator specs should be supported.
6484
6485         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
6486
6487         * glyphs.h (struct Lisp_Image_Instance):
6488         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
6489         add initial-focus flag.
6490
6491         * gui.c:
6492         * gui.c (syms_of_gui):
6493         * gui.c (vars_of_gui):
6494         clean up menu-no-selection-hook.
6495
6496         * gui.h:
6497         support delete-dialog-box-hook.
6498
6499         * lread.c (Fload_internal):
6500         * lread.c (locate_file_in_directory_mapper):
6501         (1).
6502
6503         * lrecord.h:
6504         * lrecord.h (struct toolbar_button):
6505         * lrecord.h (syms_of_toolbar):
6506         document how to create a new object.
6507
6508         * menubar-msw.c (mswindows_char_is_accelerator):
6509         may be called on frames w/o menus.
6510
6511         * menubar.c (vars_of_menubar):
6512         clean up :filter docs.
6513
6514         * nt.c (readdir):
6515         * ntproc.c:
6516         (1).
6517
6518         * process-nt.c:
6519         * process-nt.c (validate_signal_number):
6520         * process-nt.c (signal_cannot_launch):
6521         * process-nt.c (nt_create_process):
6522         * process-nt.c (nt_send_process):
6523         * process-nt.c (nt_kill_child_process):
6524         * process-nt.c (nt_open_network_stream):
6525         * process-nt.c (syms_of_process_nt):
6526         (2).
6527         delete quote-handling.  call new lisp code that does it better.
6528
6529         * process-unix.c (connect_to_file_descriptor):
6530         * process-unix.c (allocate_pty):
6531         * process-unix.c (unix_send_process):
6532         * process-unix.c (unix_kill_child_process):
6533         * process-unix.c (unix_open_network_stream):
6534         * process-unix.c (unix_open_multicast_group):
6535         (1). (2).
6536
6537         * process.c:
6538         * process.c (Fstart_process_internal):
6539         (2).  need to canonicalize process path even if absolute.
6540
6541         * select-msw.c (symbol_to_ms_cf):
6542         * select-msw.c (ms_cf_to_symbol):
6543         * select-msw.c (cf_is_autofreed):
6544         * select-msw.c (mswindows_destroy_selection):
6545         * select.c:
6546         * select.c (syms_of_select):
6547         * select.h:
6548         support dibv5, fix bugs. (from Mike Alexander)
6549
6550         * select.c (Fget_selection_internal):
6551         * select.c (select_convert_out):
6552
6553         * sysdep.c:
6554         * sysdep.c (xemacs_stat):
6555         renamed.
6556
6557         * sysdep.c (mkdir):
6558         * sysdep.c (rmdir):
6559         but keep original stat() here because we provide encapsulation
6560         around these funs.
6561
6562         * sysfile.h:
6563         * sysfile.h (fstat):
6564         remove stat garbage.
6565
6566         * syswindows.h:
6567         fix X/MSW conflict.
6568         don't include tchar.h.  it's inappropriate because it makes
6569         compile-time distinctions when we want runtime distinctions.
6570         (we provide our own tchar replacements)
6571
6572         * toolbar.c:
6573         use default object printer for toolbar-button.
6574
6575         * unexcw.c:
6576         make sure we don't encapsulate.
6577
6578         * window.c (vars_of_window):
6579         emphasize that temp-buffer-show-hook is obsolete.
6580
6581 2000-08-05  Martin Buchholz  <martin@xemacs.org>
6582
6583         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
6584         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
6585
6586         * events.c (Fevent_timestamp_lessp):
6587         Not 64-bit clean.  Use EMACS_INT, not int.
6588
6589 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
6590
6591         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
6592         unsigned int and changed the last enum to
6593         lrecord_type_last_built_in_type.
6594         (lrecord_implementations_table): changed prototype to know how
6595         long the array is supposed to be.
6596         (lrecord_type_count): new unsigned int to keep track of the
6597         current number of lisp lrecord types.
6598         (DEFINE_EXTERNAL_LRECORD):
6599         (DECLARE_EXTERNAL_LRECORD): Added these two for external
6600         dynamic-modules to declare new lisp types. They are the same
6601         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
6602         int for each new type, and increment lrecord_type_count by 1.
6603
6604         * alloc.c (lrecord_implementations_table): Changed to reference
6605         lrecord_type_last_built_in_type for the size of the array.
6606         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
6607
6608 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
6609
6610         * glyphs.h (check_valid_item_list): Renamed from
6611         check_valid_item_list_1.
6612
6613 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
6614
6615         * select.c (Qselect_coerce): New.
6616         * select.c (Vselection_coercion_alist): New.
6617         * select.c (syms_of_select): Declare.
6618         * select.c (get-selection-internal): Use it.
6619         Use the new select-coerce functionality.
6620
6621         * select.c (select_coerce): New.
6622         * select.h (select_coerce): Declare.
6623         New function to coerce one type of data into another.
6624
6625 2000-08-03  Martin Buchholz  <martin@xemacs.org>
6626
6627         * callproc.c (Fcall_process_internal):
6628         (Fcall_process_internal):
6629         * process-unix.c (unix_create_process):
6630         Save and restore the value of errno, so that error messages are accurate.
6631
6632 2000-08-01  Martin Buchholz  <martin@xemacs.org>
6633
6634         * elhash.c (print_hash_table):
6635         Fix printing of hash tables to also use `key-and-value' instead of `t'.
6636         Prettify docstrings and indentation.
6637
6638 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
6639
6640         * window.c (Fwindow_pixel_edges): Subtract frame border and
6641         gutter size.
6642
6643 2000-07-31  Andy Piper  <andy@xemacs.org>
6644
6645         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
6646         will acknowledge the change.
6647
6648         * glyphs.h: declare tab_control_order_only_changed.
6649
6650         * glyphs-x.c (x_tab_control_redisplay): use
6651         tab_control_order_only_changed.
6652
6653         * glyphs-widget.c (tab_control_order_only_changed): new function.
6654
6655         * glyphs-msw.c (mswindows_tab_control_redisplay): use
6656         tab_control_order_only_changed.
6657
6658         * gui.c (gui_item_equal_sans_selected): new function.
6659         (gui_item_equal): use it.
6660
6661         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
6662         :properties in favor of :items..
6663
6664         * glyphs-widget.c (check_valid_item_list): rename from
6665         check_valid_item_list_1.
6666         (check_valid_item_list_1): renamed.
6667         (combo_box_validate): deprecate :properties in favor of :items.
6668         (widget_instantiate): ditto.
6669         (tab_control_update): ditto.
6670         (image_instantiator_combo_box): ditto.
6671         (image_instantiator_tree_view): ditto.
6672         (image_instantiator_tab_control): ditto.
6673         (layout_post_instantiate): remove dead code.
6674
6675         * print.c (debug_print_no_newline): only write to debugger if in
6676         WIN32_NATIVE.
6677
6678         * elhash.c (Fmake_hash_table): update doc string.
6679
6680         * event-msw.c (mswindows_wnd_proc): don't allow processing of
6681         messages whilst in GC. This at least stops XEmacs crashing but has
6682         the potential for wierd behaviour.
6683
6684 2000-07-31  Martin Buchholz  <martin@xemacs.org>
6685
6686         * config.h.in:
6687         Make existence of s&m files optional.
6688
6689         * s/bsd386.h: Remove HAVE_GETLOADAVG.
6690         * s/freebsd.h: Remove HAVE_GETLOADAVG.
6691         * s/gnu.h: Remove HAVE_GETLOADAVG.
6692         * s/netbsd.h: Remove HAVE_GETLOADAVG.
6693         * s/sol2.h: Remove HAVE_GETLOADAVG.
6694         * lisp.h: Remove getloadavg() declaration.
6695         * fns.c:
6696         Include <sys/loadavg.h> if available.
6697         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
6698         * config.h.in:  Group together getloadavg()-related macros.
6699         Use only configure-time tests to detect getloadavg().
6700
6701 2000-07-30  Martin Buchholz  <martin@xemacs.org>
6702
6703         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
6704
6705 2000-07-25  Andy Piper  <andy@xemacs.org>
6706
6707         * syswindows.h: add tchar.h for native builds.
6708
6709         * frame.c (syms_of_frame): remove set-glyph-image.
6710
6711         * general-slots.h: add Qset_glyph_image.
6712
6713         * glyphs-widget.c (layout_update): add domain arg to
6714         set-glyph-image.
6715         (syms_of_glyphs_widget): remove set-glyph-image.
6716
6717 2000-07-23  Ben Wing  <ben@xemacs.org>
6718
6719         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
6720         Vpopup_frame_list.
6721
6722 2000-07-22  Andy Piper  <andy@xemacs.org>
6723
6724         * symsinit.h: add syms_of_win32().
6725
6726         * gui-msw.c (syms_of_gui_mswindows): remove
6727         Fmswindows_shell_execute.
6728         (Fmswindows_shell_execute): moved to win32.c.
6729
6730         * emacs.c (main_1): add syms_of_win32 ().
6731
6732         * win32.c (init_potentially_nonexistent_functions): rewrite in
6733         compiler-friendly terms.
6734         (Fmswindows_shell_execute): move here from gui-msw.c.
6735         (syms_of_win32): new.
6736
6737         * device-msw.c (Fmswindows_printer_list): clean up args to
6738         EnumPrinters.
6739         Don't include tchar under cygwin or mingw.
6740         (msprinter_default_printer): make cygwin-friendly.
6741
6742 2000-07-21  Andy Piper  <andy@xemacs.org>
6743
6744         * glyphs-widget.c (image_instantiator_tree_view): use tab
6745         control's update function.
6746         (layout_property): new function. Retrieve items.
6747
6748         * glyphs-msw.c (mswindows_tree_view_redisplay): new
6749         function. Re-populate the tree view from the pending items.
6750
6751         * glyphs.c (instantiate_image_instantiator): Make sure the domain
6752         is designated the parent if the domain is an image instance. This
6753         is needed so that dirtiness can be cascade up the hierarchy and
6754         thus for layout children to be redisplayed correctly.
6755         (allocate_image_instance): rename glyph -> parent.
6756
6757         * redisplay.h: change redisplay_output_layout signature.
6758
6759         * redisplay-msw.c (mswindows_output_display_block): use domain
6760         arg.
6761
6762         * redisplay-x.c (x_output_display_block): use domain arg.
6763
6764 2000-07-10  Andy Piper  <andy@xemacs.org>
6765
6766         * window.c (Fset_window_configuration): add comment.
6767
6768         * redisplay-output.c (compare_runes):
6769         (redisplay_output_subwindow): redisplay rather than update subwindow.
6770         (redisplay_output_layout): ditto.
6771
6772         * redisplay-msw.c (mswindows_frame_output_end):
6773         (mswindows_frame_output_end): make defer window pos optional.
6774
6775         * lisp.h: add Flast.
6776
6777         * glyphs.h (struct image_instantiator_methods): add dest_mask top
6778         normalize method. Change update method to be for changed
6779         instantiators. Add redisplay method. Change signature of layout
6780         method.
6781         (struct Lisp_Image_Instance): add instantiator.
6782         (IMAGE_INSTANCE_INSTANTIATOR): new.
6783         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
6784         (XIMAGE_INSTANCE_INSTANTIATOR): new.
6785         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
6786
6787         * glyphs.c:
6788         (find_instantiator_differences): new function.
6789         (Fset_instantiator_property): new convenience function.
6790         (check_image_instance_structure): strictly check for vector
6791         instantiators.
6792         (normalize_image_instantiator): make non-static.
6793         (instantiate_image_instantiator): pass on dest_mask and use new
6794         signatures for image_instance_layout and friends.
6795         (mark_image_instance): mark the instantiator. Mark the subwindow
6796         face not the widget face.
6797         (image_instance_equal): add instantiator.
6798         (image_instance_hash): ditto.
6799         (allocate_image_instance): ditto.
6800         (Fset_image_instance_property): removed.
6801         (Fimage_instance_file_name): ditto.
6802         (Fcolorize_image_instance): ditto.
6803         (image_instance_layout): add offsets to be set.
6804         (update_image_instance): new function. update an image instance
6805         from its changed instantiator.
6806         (inherit_normalize): add dest_mask.
6807         (xbm_normalize): ditto.
6808         (xface_normalize): ditto.
6809         (xpm_normalize): ditto.
6810         (text_update): set_property -> update.
6811         (image_instantiate): use the glyph identity as a hash key, not the
6812         instantiator.
6813         (glyph_width): use new image_instance_layout signature.
6814         (glyph_ascent): ditto.
6815         (glyph_descent): ditto.
6816         (glyph_height): ditto.
6817         (glyph_query_geometry): ressurrect.
6818         (glyph_layout): ditto.
6819         (redisplay_subwindow): update -> redisplay.
6820         (syms_of_glyphs): add Fset_instantiator_property.
6821         (image_instantiator_format_create): set_property -> update.
6822
6823         * glyphs-x.c:
6824         (autodetect_normalize): add dest_maks to signature.
6825         (x_redisplay_subwindow): update -> redisplay.
6826         (x_redisplay_widget): ditto.
6827         (x_button_redisplay): ditto.
6828         (x_progress_gauge_redisplay): ditto.
6829         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
6830         stacking order.
6831         (console_type_create_glyphs_x): update -> redisplay.
6832         (image_instantiator_format_create_glyphs_x): ditto.
6833
6834         * glyphs-widget.c:
6835         (check_valid_instantiator): disallow glyphs in the instantiator,
6836         they must now be vectors.
6837         (check_valid_instantiator_list): ditto.
6838         (glyph_instantiator_to_glyph): use internal symbol rather than
6839         intern.
6840         (widget_update): renamed from widget_set_property. Call cascaded
6841         update methods.
6842         (redisplay_widget): renamed from update_widget.
6843         (widget_layout): image_instance_layout now takes position as well
6844         as size.
6845         (widget_normalize): ditto.
6846         (widget_instantiate): ditto.
6847         (tab_control_query_geometry) ditto.:
6848         (tab_control_update): renamed from tab_control_set_property.
6849         (progress_gauge_update): set_property -> update.
6850         (layout_normalize): rewrite so that child instantiators are
6851         normalized also.
6852         (layout_update): new function. Create glyphs from the normalized
6853         children and cope with any other layout keywords. We do not
6854         instantiate children here that will be take care of by
6855         redisplay_output_layout.
6856         (layout_instantiate): call layout_update and not much else.
6857         (layout_post_instantiate): not sure whether this is needed
6858         anymore.
6859         (layout_query_geometry): query glyph geometry rather than
6860         image_instance geometry.
6861         (layout_layout): set offsets from pass in parameters. Use glyph
6862         geometry and layout functions rather than image instance ones.
6863         (native_layout_layout): ditto.
6864         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
6865         (image_instantiator_widget): set_property -> update.
6866         (image_instantiator_buttons): ditto.
6867         (image_instantiator_progress_guage): ditto.
6868         (image_instantiator_tab_control): ditto.
6869         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
6870         (image_instantiator_layout): add update method.
6871
6872         * glyphs-msw.c (bmp_normalize):
6873         (mswindows_resource_normalize): add dest_mask so that it can be
6874         proprogated by layout_normalize.
6875         (begin_defer_window_pos): make optional because it may not be the
6876         right thing to do and it introduces differences with X.
6877         (mswindows_unmap_subwindow): ditto.
6878         (mswindows_map_subwindow): ditto.
6879         (mswindows_redisplay_subwindow): renamed from
6880         mswindows_update_subwindow.
6881         (mswindows_redisplay_widget): ditto.
6882         (mswindows_button_redisplay): renamed from
6883         mswindows_button_update. Update is now what the instantiation
6884         function does for a changed instantiator.
6885         (mswindows_progress_gauge_instantiate): set the progress value
6886         here if appropriate.
6887         (mswindows_tab_control_redisplay): cope with re-ordering of the
6888         members of the tab widget by simply selecting the new top
6889         widget. This makes things appear ok if you click on a tab.
6890         (mswindows_combo_box_instantiate): image_instance_layout now takes
6891         position as well as size.
6892         (mswindows_progress_gauge_redisplay): renamed from
6893         mswindows_progress_gauge_update.
6894         (console_type_create_glyphs_mswindows): fix update -> redisplay.
6895         (image_instantiator_format_create_glyphs_mswindows): ditto.
6896
6897         * glyphs-eimage.c (jpeg_normalize):
6898         (gif_normalize):
6899         (png_normalize):
6900         (tiff_normalize): add dest_mask so that it can be proprogated by
6901         layout_normalize.
6902
6903         * elhash.c:
6904         (print_hash_table):
6905         (hash_table_weakness_validate):
6906         (decode_hash_table_weakness):
6907         (Fhash_table_weakness):
6908         (Fhash_table_type):
6909         (syms_of_elhash): use Ben's naming scheme for hashtable types..
6910
6911         * console.h (struct console_methods): move update_* to
6912         redisplay_*.
6913
6914 2000-07-20  Ben Wing  <ben@xemacs.org>
6915
6916         * *.[ch] (XSETOBJ): remove unused middle argument.
6917         lisp-disunion.h: correct wrap_object() to one argument.
6918
6919 2000-07-15  Ben Wing  <ben@xemacs.org>
6920
6921         * s/cygwin32.h:
6922         * s/cygwin32.h (CYGWIN_CONV_PATH):
6923         Add missing logb prototype for v1.1.
6924         Use post-b20 names and alias to pre-b20 names when pre-b20.
6925
6926         * s/windowsnt.h: [5].
6927
6928 2000-07-15  Ben Wing  <ben@xemacs.org>
6929
6930         * Makefile.in.in (x_objs):
6931         * Makefile.in.in (sheap_objs):
6932         * Makefile.in.in (objs):
6933         added win32.o, cosmetic cleanups.
6934
6935         * alloc.c (Fmake_byte_code):
6936         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
6937         etc. macros which declare their own args now.
6938
6939         * alloc.c (syms_of_alloc):
6940         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
6941
6942         * buffer.c:
6943         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
6944
6945         * buffer.c (Fget_file_buffer):
6946         Fixed GCPRO problem.
6947
6948         * buffer.c (get_truename_buffer):
6949         Fixed comment about GC checking.
6950
6951         * buffer.c (syms_of_buffer):
6952         Undeclared those dedicated frame funs.
6953         [2].
6954
6955         * buffer.h:
6956         Define convenience macros for internal/external conversions.
6957         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
6958         and Qenvironment_variable_encoding for cleaner code.
6959
6960         * bufslots.h:
6961         Remove dedicated-frame; in lisp.
6962
6963         * bytecode.c (funcall_compiled_function):
6964         [1].
6965
6966         * bytecode.c (syms_of_bytecode):
6967         [2].
6968
6969         * console-msw.c:
6970         * console-msw.c (mswindows_show_console): Rewrote.
6971
6972         * console-msw.c (Fmswindows_debugging_output): New.
6973         Sends to OutputDebugString (special MSWin debugger interface).
6974
6975         * console-msw.c (Fmswindows_message_box):
6976         Fixed stupid bugs so it works when called from kill-emacs.
6977
6978         * console-msw.c (syms_of_console_mswindows):
6979         Declare Fmswindows_debugging_output.
6980
6981         * console-msw.h:
6982         New MSWin prototypes.
6983
6984         * console-msw.h (struct mswindows_frame):
6985         New entry last-click-mods for improved button-modifier support.
6986
6987         * console-msw.h (FRAME_MSWINDOWS_POPUP):
6988         New struct entry `popup' with corresponding accessor.
6989
6990         * console-x.c:
6991         * console-x.c (split_up_display_spec):
6992         * console-x.c (get_display_arg_connection):
6993         * console-x.c (x_semi_canonicalize_console_connection):
6994         * console-x.c (x_canonicalize_device_connection):
6995         [[[6]]]: Change char to more specific type.
6996         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
6997
6998         * console-x.c (x_semi_canonicalize_console_connection):
6999         * console-x.c (x_canonicalize_device_connection):
7000         [[[9]]]: Fix up error signalling to use new structured error system.
7001
7002         * console-x.h:
7003         [[[4]]]: Define codesys aliases:
7004         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
7005         Qx_color_name_encoding, Qx_display_name_encoding.
7006
7007         * console.h (struct console_methods):
7008         New method make_dialog_box_internal supersedes older
7009         popup_dialog_box method.
7010
7011         * data.c:
7012         Define many new errors, part of new structured errors.
7013
7014         * data.c (init_errors_once_early):
7015         * data.c (syms_of_data):
7016         [2].
7017
7018         * device-msw.c (mswindows_init_device):
7019         [[[5]]]: Cleanup to support NT 3.51.
7020
7021         * device-msw.c (decode_devmode): Cleanup.
7022
7023         * device-msw.c (mswindows_handle_print_setup_dialog_box):
7024         * device-msw.c (mswindows_handle_print_dialog_box):
7025         * device-msw.c (mswindows_handle_page_setup_dialog_box):
7026         * device-msw.c (syms_of_device_mswindows):
7027         Delete the dialog box primitives recently introduced by Kirill and
7028         instead interface to general dialog box interface.
7029
7030         * device-x.c:
7031         * device-x.c (compute_x_app_name):
7032         * device-x.c (x_init_device):
7033         * device-x.c (Fx_valid_keysym_name_p):
7034         * device-x.c (Fx_set_font_path):
7035         [6].
7036         [7].
7037
7038         * device.h (wrap_device): New.
7039         First of its kind; meant to replace XSETDEVICE.
7040
7041         * dialog-msw.c: Many file-dialog symbols.
7042
7043         * dialog-msw.c (mswindows_register_popup_frame): New.
7044         * dialog-msw.c (mswindows_is_dialog_msg): New.
7045         For supporting kbd traversal in dialog boxes.
7046
7047         * dialog-msw.c (dialog_proc):
7048         Support hitting ESC in dialogs.
7049
7050         * dialog-msw.c (struct):
7051         Common dialog box errors.
7052
7053         * dialog-msw.c (handle_file_dialog_box): New.
7054         Add file dialog code.
7055
7056         * dialog-msw.c (handle_question_dialog_box):
7057         Redo existing code to support new question dialog syntax.
7058
7059         * dialog-msw.c (console_type_create_dialog_mswindows):
7060         We support new dialog console method.
7061
7062         * dialog-msw.c (syms_of_dialog_mswindows):
7063         * dialog-msw.c (vars_of_dialog_mswindows):
7064         New file dialog symbols, vars.
7065
7066         * dialog-x.c:
7067         * dialog-x.c (maybe_run_dbox_text_callback):
7068         * dialog-x.c (dbox_descriptor_to_widget_value):
7069         * dialog-x.c (x_make_dialog_box_internal):
7070         * dialog-x.c (console_type_create_dialog_x):
7071         Mule-ize entire file.
7072         Redo to support question dialog syntax.
7073         [6].
7074
7075         * dialog.c:
7076         * dialog.c (Fmake_dialog_box_internal):
7077         * dialog.c (syms_of_dialog):
7078         Kill old popup-dialog-box, replace with new primitive.
7079         Just call device method or signal error.
7080
7081         * eldap.c (Fldap_open):
7082         * eldap.c (Fldap_search_basic):
7083         * eldap.c (Fldap_add):
7084         * eldap.c (Fldap_modify):
7085         [1].
7086         [7].
7087
7088         * emacs.c:
7089         * emacs.c (make_arg_list_1):
7090         * emacs.c (make_arg_list):
7091         Mule-ize call to dll_init().
7092         [6].
7093         [8].
7094
7095         * emacs.c (make_argc_argv):
7096         * emacs.c (free_argc_argv):
7097         * emacs.c (init_cmdargs):
7098         * emacs.c (main_1):
7099         * emacs.c (Fkill_emacs):
7100         * emacs.c (Fdump_emacs):
7101         Update comments about what can be used in syms_* etc.
7102         Call init_win32() when necessary.
7103         Fix up MS Win dialog box in kill-buffer to actually work right.
7104         [7].
7105
7106         * eval.c:
7107         * eval.c (For):
7108         * eval.c (Fand):
7109         * eval.c (Fprogn):
7110         * eval.c (Fprog1):
7111         * eval.c (Fprog2):
7112         * eval.c (FletX):
7113         * eval.c (Flet):
7114         * eval.c (condition_case_3):
7115         * eval.c (Feval):
7116         * eval.c (function_argcount):
7117         * eval.c (funcall_lambda):
7118         [1].
7119
7120         * eval.c (type_error): New.
7121         * eval.c (maybe_type_error): New.
7122         * eval.c (continuable_type_error): New.
7123         * eval.c (maybe_continuable_type_error): New.
7124         * eval.c (type_error_with_frob): New.
7125         * eval.c (maybe_type_error_with_frob): New.
7126         * eval.c (continuable_type_error_with_frob): New.
7127         * eval.c (maybe_continuable_type_error_with_frob): New.
7128         New functions for use with structured errors.
7129
7130         * event-Xt.c:
7131         * event-Xt.c (x_event_to_emacs_event):
7132         Buttons are now modifiers too.
7133
7134         * event-Xt.c (emacs_Xt_current_event_timestamp):
7135         Implement new event method.
7136         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
7137
7138         * event-msw.c:
7139         * event-msw.c (ntpipe_shove_writer): [5].
7140         * event-msw.c (mswindows_enqueue_mouse_button_event):
7141         * event-msw.c (mswindows_drain_windows_queue):
7142         * event-msw.c (mswindows_wnd_proc): [7].
7143         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
7144         * event-msw.c (mswindows_modifier_state):
7145         Throughout: support new button modifiers.
7146
7147         * event-msw.c (emacs_mswindows_current_event_timestamp):
7148         Implement new event method.
7149         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
7150
7151         * event-stream.c:
7152         * event-stream.c (event_stream_current_event_timestamp): New.
7153         * event-stream.c (maybe_kbd_translate): New functionality.
7154         * event-stream.c (vars_of_event_stream):
7155         Document new kbd-translate-table functionality.
7156
7157         * event-stream.c (Fcurrent_event_timestamp): New.
7158         New primitive for use in fabricated events.
7159         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
7160
7161         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
7162
7163         * events.c:
7164         * events.c (Fmake_event):
7165         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
7166         [1].
7167         [9].
7168
7169         * events.c (format_event_object): fix gcc warnings.
7170
7171         * events.c (Fevent_timestamp): Document new primitives.
7172
7173         * events.c (TIMESTAMP_HALFSPACE): New.
7174
7175         * events.c (Fevent_timestamp_lessp): New.  New primitive for
7176         comparing timestamps correctly (half-space algorithm).
7177
7178         * events.c (Fevent_modifier_bits): Doc fix.
7179
7180         * events.c (Fevent_modifiers): Major doc addition.
7181         * events.c (event_x_y_pixel_internal): Typo fix.
7182         * events.c (syms_of_events): Declare new primitives.
7183
7184         * events.h:
7185         Update long comment for button modifiers, timestamps.
7186
7187         * events.h (struct event_stream):
7188         New current_event_timestamp method.
7189
7190         * extents.c:
7191         * extents.c (extent_in_region_p):
7192         * extents.c (decode_extent):
7193         * extents.c (Fset_extent_parent):
7194         * extents.c (decode_map_extents_flags):
7195         Fix gcc warnings.
7196         [9].
7197
7198         * extents.c (struct extent_at_arg):
7199         * extents.c (decode_extent_at_flag):
7200         * extents.c (extent_at_mapper):
7201         * extents.c (extent_at_bytind):
7202         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
7203         * extents.c (Fextents_at): New primitive. [9].
7204         * extents.c (symbol_to_glyph_layout): [9].
7205         Support new primitive `extents-at'.
7206
7207
7208         * extents.c (get_text_property_bytind):
7209         extent_at_bytind has another arg.
7210         [9].
7211
7212         * extents.c (syms_of_extents): New primitive.
7213
7214         * file-coding.c (Fmake_coding_system): [1].
7215         * file-coding.c (subsidiary_coding_system): fix gcc warning
7216         * file-coding.c (syms_of_file_coding): [2].
7217
7218         * fileio.c (Fexpand_file_name):
7219         * fileio.c (Fsysnetunam):
7220         * fileio.c (Ffile_exists_p):
7221         * fileio.c (Ffile_executable_p):
7222         * fileio.c (Fverify_visited_file_modtime):
7223         Clean up GCPROing.
7224
7225         * fileio.c (syms_of_fileio): [2].
7226
7227         * filelock.c (lock_file_1):
7228         * filelock.c (current_lock_owner):
7229         * filelock.c (lock_if_free):
7230         * filelock.c (lock_file):
7231         * filelock.c (unlock_file):
7232         Clean up GCPROing.
7233
7234         * fns.c (concat): Fix gcc warning.
7235
7236         * fns.c (Fmember):
7237         * fns.c (Fold_member):
7238         * fns.c (Fmemq):
7239         * fns.c (Fold_memq):
7240         * fns.c (memq_no_quit):
7241         * fns.c (Fassoc):
7242         * fns.c (Fold_assoc):
7243         * fns.c (Fassq):
7244         * fns.c (Fold_assq):
7245         * fns.c (assq_no_quit):
7246         * fns.c (Frassoc):
7247         * fns.c (Fold_rassoc):
7248         * fns.c (Frassq):
7249         * fns.c (Fold_rassq):
7250         * fns.c (rassq_no_quit):
7251         * fns.c (Fdelete):
7252         * fns.c (Fold_delete):
7253         * fns.c (Fdelq):
7254         * fns.c (Fold_delq):
7255         * fns.c (delq_no_quit):
7256         * fns.c (Fremassoc):
7257         * fns.c (Fremassq):
7258         * fns.c (remassq_no_quit):
7259         * fns.c (Fremrassoc):
7260         * fns.c (Fremrassq):
7261         * fns.c (remrassq_no_quit):
7262         * fns.c (Freverse):
7263         * fns.c (mapcar1):
7264         [1].
7265
7266         * frame-msw.c (mswindows_init_frame_1):
7267         * frame-msw.c (mswindows_delete_frame):
7268         Register popups with dialog code so keyboard traversing works.
7269
7270         * frame-tty.c (tty_raise_frame_no_select): [1].
7271
7272         * frame-x.c:
7273         * frame-x.c (x_set_frame_text_value):
7274         * frame-x.c (x_set_frame_properties):
7275         * frame-x.c (x_create_widgets):
7276         [7].
7277
7278         * frame.c:
7279         * frame.c (Fmouse_pixel_position): Minor doc fixes.
7280
7281         * frame.h (wrap_frame): New.
7282         Macro like wrap_device.
7283
7284         * general.c:
7285         * general.c (SYMBOL):
7286         * general.c (syms_of_general):
7287         Major reorg.  This is now just a wrapper and symbols themselves
7288         are listed in general-slots.h.
7289
7290         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
7291         * glyphs-msw.c (mswindows_resource_instantiate): [5].
7292
7293         * glyphs-msw.c (mswindows_native_layout_instantiate):
7294         Add DS_CONTROL so keyboard traversal will work.
7295
7296         * glyphs-widget.c:
7297         * glyphs-widget.c (syms_of_glyphs_widget):
7298         Move some symbols to general-slots.h.
7299
7300         * glyphs-x.c:
7301         * glyphs-x.c (xbm_instantiate_1):
7302         * glyphs-x.c (x_xbm_instantiate):
7303         * glyphs-x.c (x_xface_instantiate):
7304         * glyphs-x.c (autodetect_instantiate):
7305         * glyphs-x.c (cursor_font_instantiate):
7306         * glyphs-x.c (x_update_widget):
7307         * glyphs-x.c (x_widget_instantiate):
7308         * glyphs.c (bitmap_to_lisp_data):
7309         * glyphs.c (pixmap_to_lisp_data):
7310         [7].
7311
7312         * glyphs.c (syms_of_glyphs):
7313         [2].
7314
7315         * gui-x.c:
7316         * gui-x.c (print_widget_value):
7317         * gui-x.c (menu_separator_style_and_to_external):
7318         * gui-x.c (add_accel_and_to_external):
7319         * gui-x.c (button_item_to_widget_value):
7320         * gui-x.c (gui_items_to_widget_values_1):
7321         * gui-x.c (gui_items_to_widget_values):
7322         * gui-x.c (syms_of_gui_x):
7323         * gui-x.c (vars_of_gui_x):
7324         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
7325         [9].
7326
7327         * gui-x.h:
7328         Muleize, prototype changes matching gui-x.c.
7329
7330         * gui.c:
7331         * gui.c (separator_string_p):
7332         * gui.c (gui_item_add_keyval_pair):
7333         * gui.c (make_gui_item_from_keywords_internal):
7334         * gui.c (signal_too_long_error):
7335         * gui.c (parse_gui_item_tree_item):
7336         * gui.c (syms_of_gui):
7337         * gui.c (vars_of_gui):
7338         * gui.h:
7339         menu-no-selection-hook moved here (used by MSWin).
7340         Move some symbols to general-slots.h.
7341         [6].
7342         [9].
7343
7344         * insdel.c (get_buffer_pos_char):
7345         * insdel.c (get_buffer_range_char):
7346         Add GC comments.
7347
7348         * keymap.c (keymap_lookup_directly):
7349         * keymap.c (keymap_store):
7350         * keymap.c (ensure_meta_prefix_char_keymapp):
7351         * keymap.c (describe_map):
7352         * keymap.h:
7353         Support new button modifiers.
7354
7355         * lisp-disunion.h (wrap_object):
7356         * lisp-disunion.h (XSETOBJ):
7357         Rename make_obj to wrap_object.
7358
7359         * lisp-union.h:
7360         * lisp-union.h (make_int):
7361         * lisp-union.h (make_char):
7362         Support wrap_object.
7363
7364         * lisp.h:
7365         * lisp.h (LIST_LOOP):
7366         * lisp.h (EXTERNAL_LIST_LOOP):
7367         * lisp.h (LIST_LOOP_2):
7368         * lisp.h (EXTERNAL_LIST_LOOP_1):
7369         * lisp.h (EXTERNAL_LIST_LOOP_2):
7370         * lisp.h (EXTERNAL_LIST_LOOP_3):
7371         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
7372         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
7373         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
7374         * lisp.h (EXTERNAL_ALIST_LOOP_5):
7375         * lisp.h (EXTERNAL_ALIST_LOOP_6):
7376         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
7377         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
7378         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
7379         * lisp.h (struct Lisp_Symbol):
7380         * lisp.h (maybe_continuable_error_with_frob):
7381         Fix up section comments.
7382         Add new types for char to indicate usage.
7383         Delete symbols auto-generated from general-slots.h.
7384         Add prototypes for structured error functions.
7385         Add long comments describing looping macros and change interface
7386         so that lvalues are automatically declared.
7387         Add NO_DECLARE macro in case callers want to declare lvalues
7388         themselves.
7389
7390         * lread.c (read_syntax_error):
7391         * lread.c (continuable_read_syntax_error):
7392         * lread.c (read_structure):
7393         * lread.c (sequence_reader):
7394         * lread.c (read_list_conser):
7395         * lread.c (read_compiled_function):
7396         Rename syntax_error and continuable_syntax_error to avoid clash
7397         with same-named structured error functions.
7398
7399         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
7400         * menubar-msw.c (populate_menu_add_item):
7401         * menubar-msw.c (populate_or_checksum_helper):
7402         [5].
7403         [9].
7404
7405         * menubar-x.c:
7406         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
7407         Mule-ize whole file.
7408
7409         * menubar.c (Fnormalize_menu_item_name): Add optimization.
7410
7411         * mule-charset.c (Fmake_charset):
7412         * mule-wnnfns.c (Fwnn_set_param):
7413         [1].
7414
7415         * ntproc.c (create_child):
7416         * ntproc.c (Fwin32_set_current_locale):
7417         Add comments portending doom.
7418
7419         * objects-msw.c:
7420         * objects-msw.c (old_font_enum_callback_2):
7421         * objects-msw.c (font_enum_callback_1):
7422         * objects-msw.c (mswindows_enumerate_fonts):
7423         [5].
7424
7425         * objects-x.c:
7426         * objects-x.c (allocate_nearest_color):
7427         * objects-x.c (x_parse_nearest_color):
7428         * objects-x.c (x_initialize_color_instance):
7429         * objects-x.c (x_print_color_instance):
7430         * objects-x.c (x_finalize_color_instance):
7431         * objects-x.c (x_valid_color_name_p):
7432         * objects-x.c (x_initialize_font_instance):
7433         * objects-x.c (x_print_font_instance):
7434         * objects-x.c (valid_x_font_name_p):
7435         * objects-x.c (truename_via_FONT_prop):
7436         * objects-x.c (truename_via_random_props):
7437         * objects-x.c (truename_via_XListFonts):
7438         * objects-x.c (x_font_truename):
7439         * objects-x.c (x_font_instance_truename):
7440         * objects-x.c (x_font_instance_properties):
7441         * objects-x.c (x_list_fonts):
7442         * objects-x.c (x_find_charset_font):
7443         Mule-ize entire file.
7444         [7].
7445
7446         * objects-x.h:
7447         Mule-verify.
7448
7449         * print.c:
7450         * print.c (std_handle_out_external):
7451         * print.c (debug_print_no_newline):
7452         * print.c (syms_of_print):
7453         Output to all debugger kinds in debug-print.
7454         Fix console-output code under MSWin to actually work.
7455
7456         * process-nt.c (send_signal):
7457         * process-nt.c (nt_create_process):
7458         Use newer Unicode macros.
7459
7460         * process-unix.c (unix_create_process):
7461         * process-unix.c (unix_canonicalize_host_name):
7462         * process-unix.c (unix_open_network_stream):
7463         [7].
7464
7465         * scrollbar-x.c:
7466         Mule-verify.
7467
7468         * search.c (syms_of_search):
7469         [2].
7470
7471         * select-msw.c (mswindows_destroy_selection):
7472         Use LIST_LOOP_2.
7473
7474         * select-x.c (symbol_to_x_atom):
7475         [7].
7476
7477         * select.c (syms_of_select):
7478         [2].
7479
7480         * sound.c (Fplay_sound_file):
7481         [7].
7482
7483         * specifier.c:
7484         * specifier.c (decode_specifier_type):
7485         * specifier.c (Fvalid_specifier_locale_type_p):
7486         * specifier.c (check_valid_locale_or_locale_type):
7487         * specifier.c (decode_locale):
7488         * specifier.c (decode_locale_type):
7489         * specifier.c (decode_locale_list):
7490         * specifier.c (check_valid_domain):
7491         * specifier.c (decode_specifier_tag_set):
7492         * specifier.c (Fcanonicalize_tag_set):
7493         * specifier.c (Fdefine_specifier_tag):
7494         * specifier.c (Fspecifier_tag_predicate):
7495         * specifier.c (check_valid_inst_list):
7496         * specifier.c (check_valid_spec_list):
7497         * specifier.c (decode_how_to_add_specification):
7498         * specifier.c (check_modifiable_specifier):
7499         * specifier.c (specifier_add_spec):
7500         * specifier.c (boolean_validate):
7501         * specifier.c (display_table_validate):
7502         [9].
7503
7504         * specifier.c (syms_of_specifier):
7505         Move some symbols to general-slots.h.
7506         [2].
7507
7508         * symbols.c:
7509         * symbols.c (Fmapatoms):
7510         * symbols.c (Fapropos_internal):
7511         Add GCPROs.
7512
7513         * symbols.c (set_default_buffer_slot_variable):
7514         * symbols.c (set_default_console_slot_variable):
7515         [1].
7516
7517         * symbols.c (defsymbol_massage_name_1):
7518         * symbols.c (defkeyword_massage_name):
7519         * symbols.c (deferror_1):
7520         * symbols.c (deferror):
7521         * symbols.c (deferror_massage_name_and_message):
7522         * symeval.h:
7523         * symeval.h (DEFSYMBOL):
7524         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
7525
7526         * symbols.c (syms_of_symbols):
7527         [2].
7528
7529         * symsinit.h:
7530         * symsinit.h (init_win32): New.
7531         Also new is syms_of_dialog_mswindows.
7532
7533         * syswindows.h:
7534         Add new Unicode macros, missing Cygwin wide-char functions,
7535         convenience conversion macros for Qmswindows_tstr, macros for
7536         encapsulating required MSWin <-> Cygwin filename conversions,
7537         prototype for dynamically-extracted (not in NT 3.51) functions.
7538
7539         * toolbar-x.c:
7540         Mule-verify.
7541
7542         * tooltalk.c (Fadd_tooltalk_message_arg):
7543         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
7544         * tooltalk.c (Fadd_tooltalk_pattern_arg):
7545         [7].
7546
7547         * tooltalk.c (syms_of_tooltalk):
7548         [2].
7549
7550         * unexnt.c:
7551         * unexnt.c (unexec):
7552         Fix up headers, declaration of unexec() to be more standard.
7553
7554 2000-07-20  Martin Buchholz  <martin@xemacs.org>
7555
7556         * offix.h: Revert change to guard macros - they're used in offix.c!
7557
7558 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7559
7560         * lisp.h: Defsubred Fdelete.
7561
7562         * console-msw.h:  (msprinter_default_printer): Added.
7563
7564         * console-msw.c (msprinter_canonicalize_console_connection):
7565         (msprinter_canonicalize_device_connection): Added.
7566
7567         * device-msw.c (msprinter_default_printer):
7568         (Fmswingows_get_default_printer):
7569         (signal_enum_priner_error):
7570         (Fmswingows_printer_list): Added.
7571
7572 2000-07-19  Martin Buchholz <martin@xemacs.org>
7573
7574         * XEmacs 21.2.35 is released.
7575
7576 2000-07-19  Martin Buchholz  <martin@xemacs.org>
7577
7578         * select-x.c (x_handle_selection_request):
7579         Text selected in xemacs and pasted into xterm failed to appear.
7580         Spelling fixes and cosmetic changes.
7581
7582 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7583
7584         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
7585         XEmacs frame (fix for doubling chars in dialog boxes).
7586
7587 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
7588
7589         * select.c (select_convert_in, select_convert_out):
7590         Don't call intern() every time.
7591
7592         * select.c (Qselect_convert_in, Qselect_convert_out): New.
7593         * select.c (vars_of_select): Initialise them.
7594
7595 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
7596
7597         * select.c (selection-coercible-types): New.
7598
7599         * select.c (own-selection-internal):
7600         * select.c (get-selection-internal):
7601         MULE bug fix - these should default to COMPOUND_TEXT and not
7602         STRING for MULE. I think.
7603
7604         * select.c (select_convert_out): Use selection-coercible-types
7605         to find types that we can attempt to perform coercions on.
7606
7607 2000-07-18  Martin Buchholz  <martin@xemacs.org>
7608
7609         * mule-wnnfns.c:
7610         * mule-canna.c:
7611         Add coding: cookie to identify encoding.
7612
7613         * mule-canna.c (CANNA_mode_keys): make static.
7614         Use proper prototypes, even for functions of no arguments.
7615         Remove external prototype for Fding().
7616
7617         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
7618
7619         * select.c (syms_of_select): Add missing DEFSUBR.
7620
7621 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
7622
7623         * select.c (get_selection_internal, own_selection_internal):
7624         Make the type default to STRING, rather than placing a nil type
7625         into Vselection_alist.
7626
7627 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
7628
7629         * gpmevent.c (tty_selection_exists_p):
7630         * gpmevent.c (tty_own_selection):
7631         Updated parameter lists.
7632
7633 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
7634
7635         * select.h (selection-alist): Removed declaration.
7636
7637         * select.h (get_local_selection):
7638         * select.c (get_local_selection):
7639         Made static.
7640
7641         * select.h (convert_selection): Removed declaration.
7642         * select.c (convert_selection): Removed.
7643         This function belongs in Lisp.
7644
7645         * select.h (select_convert_in): Declare.
7646         * select.h (select_convert_out): Declare.
7647         * select.c (select_convert_in): New.
7648         * select.c (select_convert_out): New.
7649         New conversion functions for other files to call.
7650
7651         * select.h (select_notify_buffer_kill): Declare.
7652         * select.c (select_notify_buffer_kill): New.
7653         New functions that get called from kill-buffer.
7654
7655         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
7656         X-specific lisp code.
7657
7658         * select.h: Declare some of the lisp-visible functions for
7659         external use.
7660
7661         * select.c (clean_local_selection_data): Removed. This was
7662         a disgusting function, and previously should have been in
7663         select-x.c in any case. The functionality is now provided
7664         in select-convert-from-integer (select.el).
7665
7666         * select.c (available-selection-types): Fixed stupidity where
7667         INTEGER and ATOM got added twice. Also add STRING when we see an
7668         extent.
7669
7670         * select.c (get-selection-internal): Removed symbol stripping. No
7671         longer causes conversion when data comes from the internal cache.
7672
7673         * select.c (syms_of_select): Added new functions.
7674
7675         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
7676         error checking - previously this called abort!
7677
7678         * select-x.c (x_own_selection): Changed comment.
7679
7680         * select-x.c (x_handle_selection_request): Use select_convert_out.
7681         Don't mess with selection-alist; it's an internal variable of select.c.
7682
7683         * select-x.c (x_get_foreign_selection): Use select_convert_in.
7684
7685         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
7686         rather than messing with selection-alist.
7687
7688         * select-msw.c (mswindows_get_foreign_selection):
7689         Use TO_INTERNAL_FORMAT rather than hacking.
7690
7691 2000-07-14  Martin Buchholz  <martin@xemacs.org>
7692
7693         * process-unix.c (unix_open_multicast_group):
7694         (unix_open_multicast_group): Remove useless casts.
7695
7696 2000-07-13  Martin Buchholz  <martin@xemacs.org>
7697
7698         * sound.c (Fplay_sound): Fix `unused variable' warning.
7699
7700         * emacs.c (main): Use correct type for _environ on SCO5.
7701
7702 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
7703
7704         * console.h (own_selection_method):
7705         * console.h (selection_exists_p_method):
7706         * console.h (available_selection_types_method): New.
7707         * console.h (register_selection_data_type_method): New.
7708         * console.h (selection_data_type_name): New.
7709
7710         * console-msw.h (mswindows_destroy_selection): Declare it.  New
7711         function & alist to track GlobalAlloc()'d handles that need
7712         releasing when the clipboard data gets replaced or emptied.
7713
7714         * event-msw.c (mswindows_wnd_proc): Call it.
7715
7716         * lisp.h, general.c (Qappend): New symbol representing a
7717         `how-to-add' mode.
7718
7719         * select.c (own-selection-internal):
7720         * select.c (selection-exists-p):
7721         * select.c (available-selection-types): New.
7722         * select.c (register-selection-data-type): New.
7723         * select.c (selection-data-type-name): New.  New functions to deal
7724         with device-specific selection data formats.
7725         * select.c (selection-converter-out-alist): Renamed.
7726         * select.c (selection-converter-in-alist): New.
7727         * select.c (selection-appender-alist): New.  Added new alists.
7728         * select.c (syms_of_select, vars_of_select): Added new symbols &
7729         variables.
7730         * select.c (get_local_selection): Split.
7731         * select.c: Removed spurious type checking - selections may now be
7732         of any type, not just strings.
7733         * select.c (own-selection-internal):
7734
7735         * select.h, select.c (convert_selection): New. Created
7736         convert_selection() function based on get_local_selection().
7737         * select.h, select.c (QCF_*): New symbols representing mswindows
7738         clipboard formats.
7739         * select.h, select.c (Qreplace_all, Qreplace_existing): New
7740         symbols representing `how-to-add' modes.
7741
7742         * select-msw.c (x_sym_p): New.
7743         * select-msw.c (symbol_to_ms_cf): New.
7744         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
7745         symbols & clipboard formats. Can also handle string names.
7746         * select-msw.c (mswindows_own_selection):
7747         * select-msw.c (mswindows_selection_exists_p):
7748         Added `data-type' parameter. Use it.
7749         * select-msw.c (mswindows_available_selection_types): New.
7750         * select-msw.c (mswindows_register_selection_data_type): New.
7751         * select-msw.c (mswindows_selection_data_type_name): New.
7752         * select-msw.c (mswindows_own_selection):
7753         * select-msw.c (mswindows_get_foreign_selection):
7754         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
7755         * select-msw.c (console_create_select_mswindows): Added new methods.
7756         * select-msw.c (mswindows_destroy_selection): New.
7757         * select-msw.c (Vhandle_alist): New list.
7758         * select-msw.c (mswindows_own_selection):
7759
7760         * select-x.c (x_own_selection):
7761         * select-x.c (x_selection_exists_p):
7762         * select-x.c: Added some comments about maybe using new
7763         functionality.
7764         * select-x.c (x_own_selection):
7765
7766         * specifier.c: Remove definition of Qappend (now in general.c)
7767         * specifier.c (syms_of_specifier): Remove Qappend.
7768
7769 2000-07-12  Martin Buchholz  <martin@xemacs.org>
7770
7771         * config.h.in: Add socklen_t.
7772
7773         * s/decosf4-0.h: No special compiler flags needed or desired.
7774         In particular, undefine _BSD for DEC OSF 4.0.
7775
7776 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7777
7778         * redisplay-msw.c (msprinter_frame_output_end): Added.
7779         (console_type_create_redisplay_mswindows): Referred the above.
7780
7781         * frame.c (setup_frame_without_minibuffer): Do not create a
7782         default minibuffer frame on a printer device.
7783
7784         * frame-msw.c (apply_dc_geometry): Added.
7785         (msprinter_start_page):
7786         (msprinter_init_frame_3):
7787         (msprinter_eject_page): Use it.
7788
7789         * console-msw.h (struct msprinter_frame): Added pix_left and top,
7790         and removed residual duplex and orientation properties.
7791
7792 2000-07-11  Martin Buchholz  <martin@xemacs.org>
7793
7794         * eval.c (function_argcount): Work around a DEC CC compiler bug.
7795
7796         * unexalpha.c: Remove system prototypes from C sources!
7797
7798 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
7799
7800         * eval.c: Remove references to M-x edit-options in DEFUNs for
7801         `defvar' and `defconst'.
7802
7803 2000-07-09  Martin Buchholz  <martin@xemacs.org>
7804
7805         * config.h.in: Remove SMART_INCLUDE hackery.
7806
7807         PostgreSQL hacking:
7808         * config.h.in: Don't use SMART_INCLUDE.
7809
7810         * postgresql.h: Include libpq-fe.h here.  Fix typo.
7811         * inline.c: Simply #include "postgresql.h"
7812         * postgresql.c:
7813         - Don't use SMART_INCLUDE
7814         - Use simply "const".
7815         - Use standard doc string conventions.
7816         - Use correct type for result of PQstatus.
7817
7818 2000-07-09  Martin Buchholz  <martin@xemacs.org>
7819
7820         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
7821
7822         C++ compilation changes.
7823         * config.h.in (EXTERN_C): Define.
7824         * config.h.in (not): This is also a C++ keyword.
7825         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
7826         * cm.c: Use EXTERN_C.
7827         * redisplay-tty.c: Use EXTERN_C.
7828         * sysdep.c: Use EXTERN_C.  Remove Gould support.
7829
7830 2000-07-09  Martin Buchholz  <martin@xemacs.org>
7831
7832         * general.c: Remove duplicate definition for Qfunction.
7833
7834 2000-07-08  Ben Wing  <ben@xemacs.org>
7835
7836         * device-msw.c (msprinter_init_device):
7837         * device-msw.c (sync_printer_with_devmode):
7838         * device-msw.c (handle_devmode_changes):
7839         * device-msw.c (print_dialog_worker):
7840         * device-msw.c (Fmsprinter_apply_settings):
7841         * device-msw.c (hash_devmode):
7842         * device-msw.c (Fmsprinter_settings_despecialize):
7843         use Qmswindows_tstr, not Qctext.
7844
7845         * vm-limit.c (check_memory_limits):
7846         avoid infinite loop printing warning messages.
7847
7848 2000-07-05  Craig Lanning  <lanning@scra.org>
7849
7850         * Makefile.in.in: Add support for including the Windows resources
7851         when building with the cygwin and mingw targets.
7852
7853         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
7854         not set or not correct.
7855         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
7856         (init_initial_directory): Don't try to use $PWD on the
7857         WIN32_NATIVE target.
7858
7859         * s\cygwin32.h:
7860         [[Add -mwindows to eliminate console window.]] not required --ben
7861         (HAVE_NATIVE_SOUND): removed; now handled by configure.
7862         (MAIL_USE_POP): removed; now handled by configure.
7863
7864         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
7865         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
7866         (HAVE_NATIVE_SOUND): removed; now handled by configure.
7867         (MAIL_USE_POP): removed; now handled by configure.
7868         (ENCAPSULATE_STAT): from Dan Holmsand, added.
7869         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
7870         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
7871         constant string.
7872         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
7873         up from <winsock.h> via systime.h.
7874         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
7875         (getpagesize): from Dan Holmsand, added.
7876         Added #endif which was left dangling by Ben's mega patch; added
7877         comment to help prevent this in the future.
7878
7879         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
7880
7881 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7882
7883         * console-msw.h (struct mswindows_device): Removed unnecessary
7884         cached device geometry values.
7885         Added update_tick and an accessor macro.
7886         (Lisp_Devmode): Added lrecord declaration.
7887         (struct msprinter_device): Contain devmode as a Lisp object.
7888         Added mswindows_get_selected_frame_hwnd();
7889
7890         * console.h (struct console_methods): Indentation nitpicking.
7891
7892         * device-msw.c (mswindows_init_device): Do not initialize geometry
7893         cache. Initialize update tick.
7894         (mswindows_device_system_metrics): Ask the device for its geometry.
7895         (global_free_2_maybe):
7896         (devmode_to_hglobal):
7897         (handle_printer_changes):
7898         (ensure_not_printing):
7899         (print_dialog_worker):
7900         (Fmsprinter_print_setup_dialog):
7901         (Fmsprinter_print_dialog):
7902         (plist_get_margin):
7903         (plist_set_margin):
7904         (Fmsprinter_page_setup_dialog): Added functions.
7905         (sync_printer_with_devmode):
7906         (handle_devmode_changes):
7907         (Fmsprinter_get_settings):
7908         (Fmsprinter_select_settings):
7909         (Fmsprinter_apply_settings):
7910         (allocate_devmode):
7911         (Fmsprinter_settings_copy):
7912         (Fmsprinter_settings_despecialize):
7913         (print_devmode):
7914         (finalize_devmode):
7915         (equal_devmode):
7916         (hash_devmode): Added functions
7917         (syms_of_device_mswindows): Init devmode lrecord class.
7918
7919         * device.h: Added an exfun for find-device.
7920
7921         * event-msw.c (mswindows_wnd_proc): Do not update the cached
7922         geometry; although, recreate the device compatible DC.
7923
7924         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
7925         (msprinter_init_frame_3):
7926         (msprinter_frame_property):
7927         (msprinter_internal_frame_property_p):
7928         (msprinter_frame_properties):
7929         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
7930         print job properties (will move to device settings).
7931
7932         * lisp.h: Added symbols.
7933
7934         * general.c (syms_of_general): Declared them.
7935
7936         * hash.c (string_hash): Added.
7937
7938         * lrecord.h (lrecord_type): Added devmode lrecord type.
7939
7940 2000-07-02  Mike Sperber <mike@xemacs.org>
7941
7942         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
7943         FreeBSD 4.0.
7944
7945 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
7946
7947         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
7948         integer.
7949
7950 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
7951
7952         * data.c (Fstring_to_number): Don't recognize floating point if
7953         base is not 10.
7954
7955 2000-06-22  Martin Buchholz  <martin@xemacs.org>
7956
7957         * glyphs-widget.c (tab_control_query_geometry):
7958         (widget_query_geometry):
7959         (button_query_geometry):
7960         * glyphs.c (text_query_geometry):
7961         Enforce type correctness.
7962
7963 2000-06-18  Martin Buchholz  <martin@xemacs.org>
7964
7965         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
7966         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
7967
7968 2000-06-17  Martin Buchholz  <martin@xemacs.org>
7969
7970         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
7971         conflicts with gcc's fixincluded version of FOO.h.
7972
7973         * glyphs.h (image_instance_geometry): Remove trailing `,'
7974
7975 2000-06-08  Mike Alexander  <mta@arbortext.com>
7976
7977         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
7978         (shove_thread): Don't write the same output twice
7979         (make_ntpipe_output_stream): Increase priority of shove thread
7980         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
7981         chance to run
7982         (ntpipe_shove_closer): Don't delete the pipe until we're done with
7983         it.
7984
7985 2000-06-12  Ben Wing  <ben@xemacs.org>
7986
7987         * s\mingw32.h (sigset):
7988         * s\windowsnt.h (sigset):
7989         rename msw_ to mswindows_ for consistency with general convention.
7990
7991 2000-06-12  Ben Wing  <ben@xemacs.org>
7992
7993         * console-msw.c:
7994         * console-msw.c (mswindows_get_console_hwnd):
7995         * console-msw.c (mswindows_ensure_console_allocated):
7996         * console-msw.c (mswindows_hide_console):
7997         * console-msw.c (mswindows_show_console):
7998         * console-msw.c (mswindows_ensure_console_buffered):
7999         * console-msw.c (mswindows_output_console_string):
8000         * console-msw.c (mswindows_windows9x_p):
8001         * console-msw.h:
8002         * device-msw.c (mswindows_get_workspace_coords):
8003         * device-msw.c (mswindows_device_system_metrics):
8004         * dialog-msw.c (mswindows_popup_dialog_box):
8005         * event-msw.c (mswindows_wnd_proc):
8006         * frame-msw.c (mswindows_size_frame_internal):
8007         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
8008         * menubar-msw.c (displayable_menu_item):
8009         * menubar-msw.c (mswindows_char_is_accelerator):
8010         * nt.c:
8011         * nt.c (mswindows_sigset):
8012         * nt.c (mswindows_sigrelse):
8013         * nt.c (mswindows_sigpause):
8014         * nt.c (mswindows_raise):
8015         * nt.c (timer_proc):
8016         * ntproc.c:
8017         * ntproc.c (find_child_console):
8018         * ntproc.c (sys_kill):
8019         * print.c:
8020         * print.c (std_handle_out_external):
8021         * process-nt.c (find_child_console):
8022         * process-nt.c (send_signal_the_95_way):
8023         * process-nt.c (ensure_console_window_exists):
8024         * process-nt.c (nt_create_process):
8025         * syssignal.h:
8026         rename msw_ to mswindows_ for consistency with general convention.
8027
8028         * emacs.c:
8029         * dumper.c:
8030         include nt.h, not syswindows.h.
8031
8032         * nt.c (mswindows_fstat):
8033         * nt.c (mswindows_stat):
8034         prefix mswindows_ instead of attempting to directly override the
8035         library functions.  fix declarations.
8036
8037         * nt.h:
8038         include syswindows.h.  move some sysdep.h stuff here.
8039
8040         * ntheap.h:
8041         include syswindows.h, not <windows.h>.
8042
8043         * ntplay.c:
8044         clean up headers.
8045
8046         * sysdep.c:
8047         clean up headers.
8048
8049         * sysdep.c (sys_fstat):
8050         * sysdep.c (sys_stat):
8051         call mswindows versions when appropriate.
8052
8053         * sysdep.h:
8054         move mswin decls to nt.h.
8055
8056         * syswindows.h:
8057         add long comment describing appropriate use of the various windows
8058         headers.
8059
8060 2000-06-11  Ben Wing  <ben@xemacs.org>
8061
8062         * device-x.c: Correct doc string for sixth arg of x-get-resource.
8063
8064 2000-06-10  Ben Wing  <ben@xemacs.org>
8065
8066         * Makefile.in.in (release):
8067         Correction to make sure xemacs.exe always dumped when correct.
8068
8069         * alloca.c:
8070         * balloon_help.c:
8071         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
8072
8073         * buffer.c (set_buffer_internal):
8074         [[[[2]]]]: Remove HAVE_FEP code.
8075
8076         * buffer.c (init_initial_directory):
8077         [3].
8078
8079         * bytecode.c:
8080         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
8081         individual files.
8082
8083         * callproc.c:
8084         * callproc.c (call_process_cleanup):
8085         * callproc.c (Fold_call_process_internal):
8086         * callproc.c (child_setup):
8087         * callproc.c (getenv_internal):
8088         * callproc.c (init_callproc):
8089         * callproc.c (vars_of_callproc):
8090         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
8091         __CYGWIN32__ -> CYGWIN.
8092         DOS_NT -> WIN32_NATIVE.
8093         Remove MSDOS support/references, converting to WIN32_NATIVE
8094           where correct.
8095         __MINGW32__ -> MINGW.
8096         Fix windows.h includes.
8097         Remove bogus HAVE_NTGUI.
8098
8099         * config.h.in:
8100         [2].
8101
8102         * console-msw.c:
8103         mswindows_message_outputted added for use in allowing startup
8104         errors on the console to be seen.
8105
8106         * console-msw.c (msw_ensure_console_allocated):
8107         * console-msw.c (msw_output_console_string):
8108         * console-msw.c (DHEADER):
8109         * console-msw.c (DOPAQUE_DATA):
8110         * console-msw.c (DEVENT):
8111         * console-msw.c (DCONS):
8112         * console-msw.c (DCONSCDR):
8113         * console-msw.c (DSTRING):
8114         * console-msw.c (DVECTOR):
8115         * console-msw.c (DSYMBOL):
8116         * console-msw.c (DSYMNAME):
8117         Fix warnings.
8118
8119         * console-stream.c (stream_init_console):
8120         Fix text/binary problems.
8121
8122         * device-msw.c:
8123         * device-msw.c (mswindows_finish_init_device):
8124         * device-msw.c (mswindows_delete_device):
8125         [1].
8126
8127         * device.c (handle_asynch_device_change):
8128         [3].
8129
8130         * dgif_lib.c:
8131         * dgif_lib.c (DGifOpenFileName):
8132         * dgif_lib.c (DGifOpenFileHandle):
8133         * dgif_lib.c (DGifGetLine):
8134         * dgif_lib.c (DGifGetPixel):
8135         Added config.h/lisp.h, fix up includes.
8136         [1].
8137
8138         * dired-msw.c:
8139         [4].
8140
8141         * dired.c:
8142         * dired.c (file_name_completion):
8143         * dired.c (Ffile_attributes):
8144         * dired.c (syms_of_dired):
8145         [1].
8146
8147         * dumper.c:
8148         * dumper.c (pdump_file_unmap):
8149         * dumper.c (pdump_load):
8150         [1].
8151
8152         * editfns.c:
8153         * editfns.c (Ftemp_directory):
8154         * editfns.c (user_login_name):
8155         * editfns.c (Fuser_real_login_name):
8156         * editfns.c (get_home_directory):
8157         [1].
8158
8159         * elhash.c (finish_marking_weak_hash_tables):
8160         [[[[5]]]]: Fix GCC warnings.
8161
8162         * emacs.c:
8163         * emacs.c (mswindows_handle_hardware_exceptions):
8164         * emacs.c (make_arg_list_1):
8165         * emacs.c (main_1):
8166         * emacs.c (Fkill_emacs):
8167         * emacs.c (Fdump_emacs):
8168         [1].
8169         Fix problems with nested crashes, add long comment.
8170
8171         * event-Xt.c (init_event_Xt_late):
8172         [1].
8173
8174         * event-msw.c:
8175         * event-msw.c (mswindows_dde_callback):
8176         * event-msw.c (mswindows_handle_sticky_modifiers):
8177         * event-msw.c (mswindows_wnd_proc):
8178         [1].
8179         [5].
8180
8181         * events.c (character_to_event):
8182         [1].
8183
8184         * fileio.c:
8185         * fileio.c (Ffile_name_directory):
8186         * fileio.c (Ffile_name_nondirectory):
8187         * fileio.c (directory_file_name):
8188         * fileio.c (Fexpand_file_name):
8189         * fileio.c (Fsubstitute_in_file_name):
8190         * fileio.c (Ffile_name_absolute_p):
8191         * fileio.c (check_executable):
8192         * fileio.c (Ffile_readable_p):
8193         * fileio.c (Ffile_accessible_directory_p):
8194         * fileio.c (Ffile_modes):
8195         * fileio.c (Funix_sync):
8196         * fileio.c (vars_of_fileio):
8197         [1]. [4].
8198
8199         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
8200
8201         Expand getdefdir defn.
8202         Fix bogus rename() comment.
8203
8204         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
8205         to use standard XEmacs include files, e.g. sysfile.h, rather
8206         than system-specific includes.
8207
8208         * fns.c:
8209         * fns.c (Fsubseq):
8210         [5]. [6].
8211
8212         * frame.c (vars_of_frame):
8213         [1].
8214
8215         * getloadavg.c:
8216         * getloadavg.c (getloadavg):
8217         [1]. [6].
8218         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
8219         (We don't use it elsewhere in the code; just add a comment.)
8220
8221         * gif_io.c:
8222         [6].
8223         Add config.h.
8224
8225         * glyphs-msw.c:
8226         * glyphs-msw.c (mswindows_resource_instantiate):
8227         [1].
8228
8229         * glyphs-x.c (x_native_layout_instantiate):
8230         [5].
8231
8232         * gui-msw.c (Fmswindows_shell_execute):
8233         [1].
8234
8235         * insdel.c:
8236         [4].
8237
8238         * lisp.h:
8239         [4]. [5].
8240
8241         * lread.c (locate_file_in_directory_mapper):
8242         [1].
8243
8244         * lstream.c:
8245         [4].
8246
8247         * mem-limits.h:
8248         * mem-limits.h (get_lim_data):
8249         [1].
8250
8251         * menubar-msw.c:
8252         [4].
8253
8254         * ndir.h:
8255         [1].
8256
8257         * nt.c:
8258         * nt.c (getwd):
8259         * nt.c (closedir):
8260         * nt.c (rva_to_section):
8261         * nt.c (mswindows_executable_type):
8262         [1]. [6].
8263         Fix closedir() defn.
8264
8265         * nt.h:
8266         [[[[8]]]]: *_OK defs moved to sysfile.h.
8267
8268         * ntproc.c:
8269         [6]. [7].
8270
8271         * objects-x.c:
8272         [4].
8273
8274         * print.c:
8275         * print.c (std_handle_out_external):
8276         [1]. [4].
8277
8278         * process-nt.c:
8279         * process-nt.c (nt_create_process):
8280         [6].
8281         try to fix process quoting somewhat.
8282
8283         * process-unix.c (unix_create_process):
8284         [1].
8285
8286         * process.c:
8287         * process.c (vars_of_process):
8288         Add Vnull_device.
8289
8290         * process.h:
8291         [1].
8292
8293         * realpath.c:
8294         * realpath.c (xrealpath):
8295         [1].
8296
8297         * redisplay-tty.c (init_tty_for_redisplay):
8298         [3].
8299
8300         * redisplay.c:
8301         [4]. [6].
8302
8303         * scrollbar-msw.c:
8304         [4].
8305
8306         * sheap.c:
8307         * sheap.c (more_static_core):
8308         * sheap.c (report_sheap_usage):
8309         [5]. [6].
8310
8311         * signal.c:
8312         * signal.c (alarm_signal):
8313         [1]. [6].
8314
8315         * sound.c:
8316         [6].
8317
8318         * strftime.c:
8319         * strftime.c (zone_name):
8320         [1]. [5].
8321
8322         * symsinit.h (init_sunpro):
8323         [1].
8324
8325         * syscommctrl.h:
8326         commctrl.h not in Cygwin b20.1.
8327
8328         * sysdep.c:
8329         * sysdep.c (endif):
8330         * sysdep.c (sys_subshell):
8331         * sysdep.c (init_baud_rate):
8332         * sysdep.c (emacs_get_tty):
8333         * sysdep.c (emacs_set_tty):
8334         * sysdep.c (tty_init_sys_modes_on_device):
8335         * sysdep.c (init_system_name):
8336         * sysdep.c (sys_open):
8337         * sysdep.c (interruptible_open):
8338         * sysdep.c (sys_fopen):
8339         * sysdep.c (sys_mkdir):
8340         * sysdep.c (sys_rename):
8341         * sysdep.c (get_process_times_1):
8342         [1]. [6].
8343
8344         * sysdep.h:
8345         [1].
8346
8347         * sysdir.h:
8348         * sysdir.h (DIRENTRY_NONEMPTY):
8349         [1]. [6].
8350
8351         * sysdll.c (dll_init):
8352         * sysdll.h:
8353         [1].
8354
8355         * sysfile.h:
8356         [1]. [6]. [8].
8357         added text/binary defs.
8358
8359         * sysfloat.h:
8360         [1].
8361
8362         * sysproc.h:
8363         * sysproc.h (EDESTADDRREQ):
8364         * sysproc.h (poll_fds_for_input):
8365         [1]. [6].
8366
8367         * syspwd.h:
8368         [6].
8369
8370         * syssignal.h:
8371         [1].
8372
8373         * systime.h:
8374         [1]. [6].
8375
8376         * systty.h:
8377         [1].
8378
8379         * syswindows.h:
8380         [1].
8381         Always define WIN32_LEAN_AND_MEAN.
8382
8383         * unexcw.c (unexec):
8384         [5].
8385
8386         * unexec.c:
8387         * unexec.c (copy_text_and_data):
8388         * unexec.c (adjust_lnnoptrs):
8389         [1].
8390
8391         * unexnt.c:
8392         * unexnt.c (_start):
8393         [1].
8394
8395 2000-06-07  Ben Wing  <ben@xemacs.org>
8396
8397         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
8398         was used only as a model.  We've long since extracted any useful
8399         logic or code out of this. (I just did an exhaustive search.)
8400
8401         * s\msdos.h: Removed.
8402
8403         * s\windows95.h: Removed.
8404
8405 2000-06-10  Ben Wing  <ben@xemacs.org>
8406
8407         * s\cygwin32.h:
8408         [1]. [5].
8409         Don't use extern with fun defs.
8410
8411         * s\mingw32.h:
8412         [1]. [7].
8413         Remove nt\inc include.
8414         Remove getdisk, getdefdir. (The former is unused, the latter
8415         expanded in fileio.h.)
8416
8417         * s\windowsnt.h:
8418         * s\windowsnt.h (WIN32_NATIVE):
8419         * s\windowsnt.h (HAVE_STRCASECMP):
8420         [1]. [7].
8421         Add long comment about preprocessor changes.
8422         Remove getdisk, getdefdir. (The former is unused, the latter
8423         expanded in fileio.h.)
8424
8425 2000-06-10  Ben Wing  <ben@xemacs.org>
8426
8427         * m\arm.h:
8428         * m\delta.h:
8429         * m\intel386.h:
8430         * m\sequent.h:
8431         * m\template.h:
8432         * m\windowsnt.h:
8433         [1].
8434         Remove bogus/unused NO_SOCK_SIGIO.
8435
8436 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
8437
8438         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
8439         not an Emchar.
8440
8441 2000-06-04  Mike Sperber <mike@xemacs.org>
8442
8443         * casetab.c (set_case_table): For `set-standard-case-table',
8444         actually deposit the new case tables where the rest of XEmacs can
8445         see them.
8446
8447 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
8448
8449         * data.c (Faset): Don't cast XCHAR() to unsigned char.
8450
8451 2000-06-05  Ben Wing  <ben@xemacs.org>
8452
8453         * callproc.c (child_setup): Don't do close_load_descs() under
8454         MS Windows.  Put in a comment explaining why.
8455
8456 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
8457
8458         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
8459         Toolkit shell" which breaks `kill-compilation' on Windows NT
8460         native, retaining STDERR handling improvements.
8461
8462 2000-06-01  Andreas Jaeger  <aj@suse.de>
8463
8464         * s/s390.h: Support for S390, based on a patch by Martin
8465         Schwidefsky <schwidefsky@de.ibm.com>.
8466
8467 2000-05-30  Andy Piper  <andy@xemacs.org>
8468
8469         * window.c (allocate_window):
8470         (make_dummy_parent):
8471         (Fset_window_configuration): use new hashtable type.
8472
8473         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
8474         (struct image_instantiator_methods):
8475         (struct Lisp_Image_Instance): make instance geometry signed.
8476
8477         * glyphs.c (instantiate_image_instantiator):
8478         (image_instance_query_geometry):
8479         (image_instance_layout):
8480         (image_instance_layout):
8481         (query_string_geometry):
8482         (text_query_geometry):
8483         (image_instantiate):
8484         (image_instantiate):
8485         (cache_subwindow_instance_in_frame_maybe):
8486         (subwindow_query_geometry): make instance geometry signed.
8487
8488         * glyphs-widget.c (widget_query_geometry):
8489         (widget_layout):
8490         (button_query_geometry):
8491         (tree_view_query_geometry):
8492         (tab_control_query_geometry):
8493         (layout_query_geometry):
8494         (layout_layout):
8495         (native_layout_layout): make instance geometry signed.
8496
8497 2000-05-29  Olivier Galibert  <galibert@pobox.com>
8498
8499         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
8500         constant.
8501
8502         * general.c (syms_of_general): Add Qfull_assoc symbol.
8503
8504         * data.c (finish_marking_weak_lists): Mark full-assoc lists
8505         correctly.
8506         (decode_weak_list_type): Decode full-assoc type.
8507         (encode_weak_list_type): Encode full-assoc type.
8508         (Fmake_weak_list): Update doc string.
8509
8510 2000-05-30  Andy Piper  <andy@xemacs.org>
8511
8512         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
8513
8514         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
8515         (decode_hash_table_weakness): ditto.
8516         (Fhash_table_weakness): ditto.
8517         (Fhash_table_type): ditto.
8518         (finish_marking_weak_hash_tables): ditto.
8519         (hash_table_weakness_validate): ditto.
8520         (syms_of_elhash): ditto.
8521
8522 2000-05-28  Martin Buchholz <martin@xemacs.org>
8523
8524         * XEmacs 21.2.34 is released.
8525
8526 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
8527
8528         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
8529         start cache.
8530         (updating_line_start_cache): Gone.
8531         (regenerate_window): Replace resetting of VERTICAL_CLIP by
8532         generic code to force a minimum of 1 line laid out in the
8533         CMOTION_DISP case.
8534
8535 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
8536
8537         * glyphs.c (instantiate_image_instantiator): Check for initialized
8538         height & width no longer special cases IMAGE_NOTHING.
8539         (nothing_instantiate): Set height and width of instance.
8540
8541 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
8542
8543         * unexelf.c (unexec): Search for ".data" section.
8544         Initialize new_data2_offset from old_data_index.
8545         Remove redundant check for ElfW.
8546
8547 2000-05-23  Andy Piper  <andy@xemacs.org>
8548
8549         * glyphs.c (get_image_instantiator_governing_domain): allow more
8550         specific domains as the governing domain rather than expecting an
8551         exact match. This fixes problems with layouts.
8552
8553 2000-05-22  Andy Piper  <andy@xemacs.org>
8554
8555         * redisplay-output.c (compare_runes): check for non-images
8556
8557         * glyphs.c (set_glyph_dirty_p): ditto.
8558         (update_glyph_cachel_data): ditto.
8559
8560         * glyphs-widget.c (layout_post_instantiate): ditto.
8561         (layout_post_instantiate): ditto.
8562
8563         * event-msw.c (mswindows_wnd_proc): warning removal.
8564
8565 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
8566
8567         * s\mingw32.h: Added #undef for CLASH_DETECTION.
8568
8569         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
8570
8571         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
8572
8573         * nt.c (rva_to_section): mingw32 needs rva_to_section.
8574         (mswindows_executable_type): mingw32 now has enough headers for
8575         this to work.
8576
8577 2000-05-20  Andy Piper  <andy@xemacs.org>
8578
8579         * console-msw.c (mswindows_output_last_error): ; -> ,
8580
8581 2000-05-12  Andy Piper  <andy@xemacs.org>
8582
8583         * console-msw.c (FROB): compare ints with ints.
8584
8585 2000-05-11  Andy Piper  <andy@xemacs.org>
8586
8587         * glyphs-x.c (x_finalize_image_instance): make minimal build
8588         happy.
8589
8590 2000-05-20  Ben Wing  <ben@xemacs.org>
8591
8592         * event-Xt.c:
8593         * event-Xt.c (vars_of_event_Xt):
8594         move modifier-keys-are-sticky to event-stream.c.
8595
8596         * event-msw.c:
8597         * event-msw.c (mswindows_enqueue_mouse_button_event):
8598         * event-msw.c (key_needs_default_processing_p):
8599         * event-msw.c (XEMSW_LCONTROL):
8600         * event-msw.c (mswindows_handle_sticky_modifiers):
8601         * event-msw.c (FROB):
8602         * event-msw.c (clear_sticky_modifiers):
8603         * event-msw.c (output_modifier_keyboard_state):
8604         * event-msw.c (output_alt_keyboard_state):
8605         * event-msw.c (mswindows_wnd_proc):
8606         * event-msw.c (mswindows_modifier_state):
8607         * event-msw.c (emacs_mswindows_handle_magic_event):
8608         implement sticky modifiers.
8609
8610         * event-stream.c:
8611         * event-stream.c (vars_of_event_stream):
8612         move modifier-keys-are-sticky here.
8613
8614         * lisp.h:
8615         add CHECK_FUNCTION.
8616
8617         * rangetab.c:
8618         implement map-range-table.
8619
8620
8621 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
8622
8623         * redisplay-tty.c (reset_tty_modes):
8624         (tty_redisplay_shutdown): Adjust argument type to
8625         tty_frame_output_end.
8626
8627 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
8628
8629         * eval.c (Fbacktrace): Don't output a line with only right
8630         parenthesis.
8631
8632 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
8633
8634         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
8635         (Fpq_reset_poll): Ditto.
8636
8637 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
8638
8639         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
8640
8641 2000-05-16  Ben Wing  <ben@xemacs.org>
8642
8643         * buffer.c:
8644         * buffer.c (dfc_convert_to/from_internal_format):
8645         * buffer.c (reinit_vars_of_buffer):
8646         Fix conversion functions to allow reentrancy.
8647
8648         * console-msw.c:
8649         * console-msw.c (mswindows_output_last_error):
8650         New fun, generally useful -- output a human-readable
8651         version of GetLastError() on the console.
8652
8653         * console-msw.h:
8654         * console-msw.h (struct mswindows_frame):
8655         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
8656
8657         * console-stream.c (stream_output_begin):
8658         * console-stream.c (stream_output_end):
8659         * console-stream.c (stream_output_vertical_divider):
8660         * console-stream.c (stream_clear_region):
8661         * console-stream.c (stream_flash):
8662         * console-stream.c (console_type_create_stream):
8663         Delete blank stream methods, not needed.
8664
8665         * console.h (struct console_methods):
8666         Split begin/end methods into window and frame.
8667
8668         * event-msw.c:
8669         * event-msw.c (mswindows_handle_paint):
8670         * event-msw.c (output_alt_keyboard_state):
8671         * event-msw.c (mswindows_wnd_proc):
8672         * event-msw.c (vars_of_event_mswindows):
8673         Comment about problems with ignored-expose.
8674         Define mswindows-debug-events; not really implemented.
8675
8676         * frame-msw.c (mswindows_init_frame_1):
8677         random cleanups.
8678
8679         * glyphs-msw.c:
8680         * glyphs-msw.c (begin_defer_window_pos):
8681         * glyphs-msw.c (mswindows_unmap_subwindow):
8682         * glyphs-msw.c (mswindows_map_subwindow):
8683         * glyphs-msw.c (mswindows_resize_subwindow):
8684         Use DeferWindowPos to reduce flashing when mapping/unmapping.
8685
8686         * glyphs.c (make_image_instance_1):
8687         Fix crash.
8688
8689         * gutter.c (Fredisplay_gutter_area):
8690         Use new begin/end methods.
8691
8692         * lisp.h (Dynarr_new2):
8693         New creation fun.
8694
8695         * redisplay-msw.c:
8696         * redisplay-msw.c (mswindows_frame_output_begin):
8697         * redisplay-msw.c (mswindows_frame_output_end):
8698         * redisplay-msw.c (console_type_create_redisplay_mswindows):
8699         New begin/end methods -- handle DeferWindowPos.
8700
8701         * redisplay-output.c (redisplay_move_cursor):
8702         * redisplay-output.c (redraw_cursor_in_window):
8703         * redisplay-output.c (redisplay_update_line):
8704         * redisplay-output.c (redisplay_output_window):
8705         New begin/end methods.
8706
8707         * redisplay-tty.c:
8708         * redisplay-tty.c (tty_frame_output_begin):
8709         * redisplay-tty.c (tty_frame_output_end):
8710         * redisplay-tty.c (console_type_create_redisplay_tty):
8711         New begin/end methods.
8712
8713         * redisplay-x.c:
8714         * redisplay-x.c (x_window_output_begin):
8715         * redisplay-x.c (x_window_output_end):
8716         * redisplay-x.c (console_type_create_redisplay_x):
8717         New begin/end methods.
8718
8719         * redisplay.c (redisplay_frame):
8720         * redisplay.c (Fredisplay_echo_area):
8721         New begin/end methods.
8722         use MAYBE_DEVMETH for clear_frame; it may not exist.
8723
8724         * window.h (WINDOW_XFRAME):
8725         WINDOW_XFOO macros -- get locale and decode struct pointer.
8726
8727
8728 2000-05-12  Ben Wing  <ben@xemacs.org>
8729
8730         * emacs.c:
8731         * emacs.c (ensure_no_quitting_from_now_on):
8732         * emacs.c (fatal_error_signal):
8733         * emacs.c (mswindows_handle_hardware_exceptions):
8734         * emacs.c (main):
8735         * emacs.c (Fkill_emacs):
8736         * emacs.c (shut_down_emacs):
8737         * emacs.c (assert_failed):
8738         various improvements in fatal error handling.
8739
8740         * eval.c:
8741         move preparing_for_armageddon to emacs.c.
8742
8743         * lisp.h:
8744         declare fatal_error_in_progress.
8745
8746         * print.c:
8747         * print.c (std_handle_out_external):
8748         * print.c (std_handle_out_va):
8749         * print.c (stderr_out):
8750         * print.c (stdout_out):
8751         use console under mswin when no standard output.
8752         don't do code conversion during fatal error.
8753
8754         * scrollbar.c (Fscrollbar_page_up):
8755         * scrollbar.c (Fscrollbar_page_down):
8756         fix missing else.  reindent.
8757
8758 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
8759
8760         Emergency fix.
8761
8762         * glyphs.h (GLYPH_CACHEL_DESCENT):
8763         (GLYPH_CACHEL_DESCENT):
8764         (GLYPH_CACHEL_DESCENT):
8765         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
8766         used in case these are inline functions.
8767         Use more absurd values to error check.
8768
8769         include window.h for error check functions.
8770
8771 2000-05-11  Ben Wing  <ben@xemacs.org>
8772
8773         * cmdloop.c (Freally_early_error_handler):
8774         Display message box under windows; otherwise, message will disappear
8775         before it can be viewed.
8776
8777         * console-msw.c:
8778         * console-msw.c (Fmswindows_message_box):
8779         * console-msw.c (FROB):
8780         * console-msw.c (syms_of_console_mswindows):
8781         Define new fun `mswindows-message-box'.
8782         #### I will merge this into `popup-dialog-box'; just give me
8783         a bit of time.
8784
8785         * general.c:
8786         * general.c (syms_of_general):
8787         Some new symbols used in `mswindows-message-box'.
8788
8789         * glyphs.c:
8790         * glyphs.c (Fset_image_instance_property):
8791         put warning in this fun.
8792
8793         * glyphs.h:
8794         * glyphs.h (GLYPH_CACHEL_WIDTH):
8795         * glyphs.h (GLYPH_CACHEL_ASCENT):
8796         * glyphs.h (GLYPH_CACHEL):
8797         * glyphs.h (GLYPH_CACHEL_GLYPH):
8798         define error-checking versions to try to catch a bug i've seen --
8799         redisplay gets in an infinite loop because the glyph width of the
8800         continuation glyph is 65535.
8801
8802         * lisp.h:
8803         Extern message-box stuff.
8804
8805         * window.c (allocate_window):
8806         * window.c (make_dummy_parent):
8807         * window.c (Fset_window_configuration):
8808         Use EQUAL not EQ for subwindow caches to make them work a bit
8809         better. (Something is still very broken.)
8810
8811
8812 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
8813
8814         * glyphs.c (image_instantiate): Suppress gcc warnings.
8815         (Fmake_image_instance): Fix doc string.
8816         * specifier.c (Fmake_specifier): Ditto.
8817
8818 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
8819
8820         * paths.h.in (PATH_LOCK): Removed.
8821         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
8822         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
8823
8824 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
8825
8826         * fns.c (Ffeaturep): Update e-mail address in doc-string.
8827         Document (featurep '(and xemacs 21.02)).
8828
8829 2000-05-09  Ben Wing  <ben@xemacs.org>
8830
8831         * buffer.c (complex_vars_of_buffer):
8832         update modeline-format doc.
8833
8834         * device.h:
8835         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
8836
8837         * emacs.c:
8838         timeline of all released versions of Emacs, for use in creating
8839         authorship comments and in synching up.
8840
8841         * glyphs-widget.c (image_instantiator_buttons):
8842         * glyphs-widget.c (image_instantiator_edit_fields):
8843         * glyphs-widget.c (image_instantiator_combo_box):
8844         * glyphs-widget.c (image_instantiator_scrollbar):
8845         * glyphs-widget.c (image_instantiator_progress_guage):
8846         * glyphs-widget.c (image_instantiator_tree_view):
8847         * glyphs-widget.c (image_instantiator_tab_control):
8848         * glyphs-widget.c (image_instantiator_labels):
8849         * glyphs-widget.c (image_instantiator_layout):
8850         * glyphs-widget.c (image_instantiator_native_layout):
8851         rename decode_domain method to governing_domain.
8852
8853         * glyphs.c:
8854         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
8855         * glyphs.c (add_entry_to_device_ii_format_list):
8856         make sure we don't put an entry more than once into the list.
8857         * glyphs.c (check_instance_cache_mapper):
8858         *************************************************************
8859         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
8860         HAVE BEEN GETTING.
8861         *************************************************************
8862         * glyphs.c (get_image_instantiator_governing_domain):
8863         clean up, expand on new concept of governing domain.
8864         * glyphs.c (instantiate_image_instantiator):
8865         * glyphs.c (allocate_image_instance):
8866         use governing_domain instead of cache_domain in naming.
8867         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
8868         * glyphs.c (make_image_instance_1):
8869         * glyphs.c (Fmake_image_instance):
8870         allow for any domain (not just device), and process the
8871         governing domain correctly.  very big doc fix.
8872         * glyphs.c (Fimage_instance_domain):
8873         new primitive, to retrieve the governing domain of an image instance.
8874         * glyphs.c (image_instantiate):
8875         use new governing_domain stuff.  this fixes a crash you could get
8876         by instantiating certain widget glyphs in frame locales. (should
8877         signal an error instead of crashing.)
8878         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
8879         * glyphs.c (Fglyphp): clean up doc.
8880         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
8881         * glyphs.c (syms_of_glyphs):
8882         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
8883         * glyphs.c (image_instantiator_format_create): add some comments about
8884         bogus code.
8885         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
8886         for current-display-table. (Apparently Hrjove implemented in 1998 a
8887         design I wrote up in 1996, but didn't update the doc string.)
8888
8889         * glyphs.h: clean up a doc string.
8890         * glyphs.h (governing_domain):
8891         * glyphs.h (struct image_instantiator_methods):
8892         changes for governing_domain stuff.
8893
8894         * gutter.c:
8895         * gutter.c (Fgutter_specifier_p):
8896         * gutter.c (Fgutter_size_specifier_p):
8897         * gutter.c (Fgutter_visible_specifier_p):
8898         * objects.c:
8899         * objects.c (Fcolor_specifier_p):
8900         * objects.c (Ffont_specifier_p):
8901         * objects.c (Fface_boolean_specifier_p):
8902         doc strings moved to make-*-specifier.
8903
8904         * redisplay.c (add_disp_table_entry_runes_1):
8905         * redisplay.c (generate_fstring_runes):
8906         * redisplay.c (screen):
8907         add random comments and doc strings.
8908
8909         * specifier.c:
8910         * specifier.c (Fmake_specifier):
8911         major overhaul of this doc string.
8912
8913         * specifier.c (Fvalid_specifier_domain_p):
8914         comment about the bogosity of image instances being domains.
8915         * specifier.c (decode_domain):
8916         now non-static, used in glyphs.c.
8917         * specifier.c (specifier_instance):
8918         comment about the bogosity of image instances being domains.
8919         * specifier.c (Fgeneric_specifier_p):
8920         move doc string to make-generic-specifier.
8921         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
8922         rebackslashify.
8923
8924         * specifier.h:
8925         * specifier.h (DOMAIN_FRAME):
8926         * specifier.h (DOMAIN_LIVE_P):
8927         * specifier.h (DOMAIN_XDEVICE):
8928         rebackslashify.
8929         add comments about problems with these macros.
8930         prototype for decode_domain.
8931
8932         * toolbar.c:
8933         * toolbar.c (Ftoolbar_specifier_p):
8934         move doc string to `make-toolbar-specifier'.
8935
8936         * window.c (window_unmap_subwindows_cache_mapper):
8937         *************************************************************
8938         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
8939         HAVE BEEN GETTING.
8940         *************************************************************
8941
8942 2000-05-09  Andy Piper  <andy@xemacs.org>
8943
8944         * glyphs.h: declare reset_frame_subwindow_instance_cache.
8945
8946         * window.c (Fset_window_configuration): reset the frame subwindow
8947         cache and re-initialize the window subwindow caches.
8948
8949         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
8950
8951 2000-05-09  Ben Wing  <ben@xemacs.org>
8952
8953         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
8954         DWORD.
8955
8956 2000-04-26  Mike Woolley  <mike@bulsara.com>
8957
8958         * ntheap.c: Changed recreate_heap to limit the amount reserved
8959         for the heap to that which is actually available. Also now
8960         displays a message box (with some dignostics) in the event that
8961         it still can't start.
8962
8963 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
8964
8965         * callproc.c (Fold_call_process_internal): GCPRO path
8966
8967 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
8968
8969         Patch by Bill Perry.
8970
8971         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
8972         back data instead of #ifdef.
8973         (Fscrollbar_page_down): ditto.
8974
8975 2000-05-07  Ben Wing  <ben@xemacs.org>
8976
8977         * buffer.h:
8978         Kludge for defining Qmswindows_tstr.
8979
8980         * nt.c:
8981         * nt.c (open_input_file):
8982         * nt.c (open_output_file):
8983         * nt.c (rva_to_section):
8984         * nt.c (mswindows_executable_type):
8985         Move all memory-mapped-file routines here (some were in unexnt.c,
8986         which is bad because they are used by process-nt.c, and unexnt
8987         won't be around when portable dumping).  Synched the above routines
8988         with FSF 20.6.
8989
8990         * nt.h:
8991         Removed ifdef'd out bogus code.
8992         Fixed some prototypes.
8993
8994         * nt.h (file_data):
8995         * nt.h (OFFSET_TO_RVA):
8996         * nt.h (RVA_TO_OFFSET):
8997         * nt.h (RVA_TO_PTR):
8998         Moved the memory-mapped-file structures, macros and prototypes
8999         here, to parallel nt.c.  ntheap.h should really be removed
9000         entirely, and it's a non-portable-dumper specific file.
9001
9002         * ntheap.h (round_to_next):
9003         Moved the memory-mapped-file structures, macros and prototypes
9004         to nt.h.
9005
9006         * ntproc.c (compare_env):
9007         Moved rva_to_section and mswindows_executable_type to nt.c.
9008         Moved compare_env to process-nt.c.
9009         ntproc.c will die, one day.
9010
9011         * ntproc.c (sys_spawnve):
9012         Account for win32_ -> mswindows_.
9013
9014         * process-nt.c:
9015         * process-nt.c (struct nt_process_data):
9016         * process-nt.c (ensure_console_window_exists):
9017         * process-nt.c (compare_env):
9018         * process-nt.c (nt_create_process):
9019         * process-nt.c (nt_kill_process_by_pid):
9020         * process-nt.c (syms_of_process_nt):
9021         * process-nt.c (vars_of_process_nt):
9022         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
9023         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
9024         changes).  Eliminate our old `nt-quote-process-args' mechanism.
9025         Synch up nt_create_process with FSF 20.6 sys_spawnve.
9026         Move compare_env here from ntproc.c.
9027
9028         * process.c (Fprocess_send_region):
9029         Takes an optional fourth argument, BUFFER, which should fix some
9030         problems with call-process.
9031
9032         * syscommctrl.h:
9033         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
9034
9035         * syswindows.h:
9036         Move ICC_BAR_CLASSES to syscommctrl.h.
9037         Add preliminary macros for MSWindows/Mule.  More to come.
9038
9039         * unexnt.c:
9040         * unexnt.c (unexec):
9041         open_output_file moved to nt.c.
9042
9043
9044 2000-05-05  Andy Piper  <andy@xemacs.org>
9045
9046         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
9047         instance from the frame cache also since GC may catch up too late
9048         to make frame deletion sane.
9049
9050 2000-05-04  Andy Piper  <andy@xemacs.org>
9051
9052         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
9053         (x_finalize_image_instance): ungcpro on deletion.
9054
9055         * glyphs.c (image_instantiator_format_create): give pointers a
9056         query geometry method so that the geometry is at least set.
9057
9058         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
9059         initialize layouts if using widgets.
9060
9061 2000-05-03  Andy Piper  <andy@xemacs.org>
9062
9063         * nt.c: remove bogus reference to sysmmsystem.h
9064
9065         * gui-x.c (popup_selection_callback): fix no selection abort.
9066
9067 2000-05-02  Andy Piper  <andy@xemacs.org>
9068
9069         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
9070         (mswindows_widget_instantiate): ditto.
9071
9072         * glyphs-widget.c (initialize_widget_image_instance): initialize
9073         children correctly.
9074         (widget_instantiate): cope with children and items in the same
9075         instance.
9076
9077         * glyphs.c (mark_image_instance): cope with children as a first
9078         class member.
9079         (image_instance_equal): ditto.
9080         (image_instance_hash): ditto.
9081         (image_instance_changed): ditto.
9082
9083 2000-04-30  Andy Piper  <andy@xemacs.org>
9084
9085         * glyphs.c (subwindow_query_geometry): new function. Return some
9086         defaults.
9087         (subwindow_instantiate): don't assign dimensions if none have been
9088         given.
9089         (image_instantiator_format_create): add subwindow_query_geometry.
9090         (print_image_instance): cope with layouts as widgets.
9091
9092 2000-04-29  Andy Piper  <andy@xemacs.org>
9093
9094         * frame.c (delete_frame_internal): call
9095         free_frame_subwindow_instance_cache so that all subwindows are
9096         finalized before their parent.
9097         (mark_frame): remove subwindow_cachels.
9098         (Fmake_frame): remove subwindow_cachel manipulation.
9099         (allocate_frame_core): subwindow_instance_cache is a weak list.
9100         (delete_frame_internal): set subwindow_instance_cache to nil.
9101
9102         * glyphs-msw.c (mswindows_finalize_image_instance): make double
9103         finalization safe.
9104         (mswindows_finalize_image_instance): use the device
9105         not the domain as the domain may have died already.
9106
9107         * glyphs-x.c (x_finalize_image_instance): ditto.
9108         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
9109         HEIGHT.
9110
9111         * redisplay-output.c (redisplay_unmap_subwindows): update for
9112         subwindow instance cache as a weak list.
9113         (redisplay_unmap_subwindows_maybe): ditto.
9114         (redisplay_unmap_subwindows_except_us): ditto.
9115
9116         * glyphs.c (unmap_subwindow): error checking will check the domain
9117         so don't deal with it here. Don't use cachels anymore.
9118         (map_subwindow): ditto.
9119         (update_subwindow_cachel_data): remove old accessor names.
9120         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
9121         (Fresize_subwindow): don't update cachel.
9122         (mark_subwindow_cachels):
9123         (update_subwindow_cachel_data):
9124         (add_subwindow_cachel):
9125         (get_subwindow_cachel_index):
9126         (update_subwindow_cachel):
9127         (reset_subwindow_cachels):
9128         (mark_subwindow_cachels_as_not_updated): deleted.
9129         (cache_subwindow_instance_in_frame_maybe): new function. Add a
9130         subwindow instance to the frame cache.
9131         (find_matching_subwindow): update for subwindow instance cache as
9132         a weak list.
9133         (update_widget_instances): ditto.
9134         (image_instance_type_to_mask):inlined.
9135         (free_frame_subwindow_instance_cache): new function. finalize all
9136         subwindows that are instantiated.
9137
9138         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
9139         of cachel information.
9140         (IMAGE_INSTANCE_DISPLAY_X):
9141         (IMAGE_INSTANCE_DISPLAY_Y):
9142         (IMAGE_INSTANCE_DISPLAY_WIDTH):
9143         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
9144         (XIMAGE_INSTANCE_DISPLAY_X):
9145         (XIMAGE_INSTANCE_DISPLAY_Y):
9146         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
9147         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
9148         remove subwindow_cachel structure and function references.
9149         (image_instance_type_to_mask): inline from glyphs.c
9150
9151         * redisplay.c (redisplay_frame): remove subwindow_cachel
9152         references.
9153
9154         * frame.h (struct frame): remove subwindow_cachels.
9155         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
9156
9157         * frameslots.h: add subwindow_instance_cache.
9158
9159         * window.c (replace_window): check subwindow cache of replacement.
9160         (window_unmap_subwindows_cache_mapper):
9161         (window_unmap_subwindows): new functions. Unmap all subwindows
9162         cached on this window.
9163         (mark_window_as_deleted): unmap all subwindows.
9164
9165 2000-04-27  Andy Piper  <andy@xemacs.org>
9166
9167         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
9168
9169         * glyphs-widget.c (widget_layout): return something.
9170         (layout_layout): return something. Fail if not initialized.
9171         (layout_query_geometry): ditto.
9172         (image_instantiator_native_layout): new function. Initialized the
9173         native layout type.
9174         (widget_instantiate): don't do layout stuff here.
9175
9176         * glyphs.c (instantiate_image_instantiator): reorded calling or
9177         instantiate and post_instantiate with layout in between.
9178         (image_instance_layout): be more selective about deciding whether
9179         the layout has been done or not.
9180
9181         * glyphs.h (struct image_instantiator_methods): return a value
9182         from layout_method.
9183
9184 2000-04-26  Andy Piper  <andy@xemacs.org>
9185
9186         * glyphs.c (allocate_image_instance): make initial width and
9187         height unspecified. Set initialized to 0.
9188
9189         * syscommctrl.h new file. Encapsulates commctrl.h.
9190
9191         * syswindows.h new file. Encapsulates windows.h.
9192
9193         * ntplay.c: use new syswindows.h and syscommctrl.h header.
9194         * nt.c: ditto.
9195         * console-msw.h: ditto.
9196
9197         * redisplay-tty.c (tty_output_display_block): remove layout references.
9198
9199         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
9200         window handle rather than just the frame.
9201
9202         * glyphs.c (mark_image_instance): remove layout references.
9203         (print_image_instance): ditto.
9204         (image_instance_equal): ditto.
9205         (image_instance_hash): ditto.
9206         (decode_image_instance_type): ditto.
9207         (encode_image_instance_type): ditto.
9208         (image_instantiate): ditto.
9209         (allocate_glyph): ditto.
9210         (Fimage_instance_height): ditto.
9211         (Fimage_instance_width): ditto.
9212         (update_subwindow): ditto.
9213
9214         * redisplay-x.c (x_output_display_block): recode for layouts as
9215         widgets.
9216
9217         * redisplay-output.c (redisplay_output_layout): recode for layouts
9218         as widgets.
9219         (compare_runes): remove layout references.
9220
9221         * redisplay-msw.c (mswindows_output_display_block): recode for
9222         layouts as widgets.
9223
9224         * glyphs-widget.c (image_instantiator_layout): remove
9225         layout_possible_dest_types.
9226         (layout_possible_dest_types): deleted.
9227
9228         * glyphs.h (image_instance_type): remove layout references.
9229         (struct Lisp_Image_Instance): ditto. Add initialized flag.
9230         (IMAGE_INSTANCE_INITIALIZED): new accessor.
9231         (XIMAGE_INSTANCE_INITIALIZED): ditto.
9232
9233 2000-04-25  Andy Piper  <andy@xemacs.org>
9234
9235         * glyphs-widget.c (image_instantiator_buttons):
9236         (image_instantiator_edit_fields):
9237         (image_instantiator_combo_box):
9238         (image_instantiator_scrollbar):
9239         (image_instantiator_progress_guage):
9240         (image_instantiator_tree_view):
9241         (image_instantiator_tab_control):
9242         (image_instantiator_labels):
9243         (image_instantiator_layout): call default post_instantiate method.
9244         (widget_post_instantiate): new function. Simply lays out the
9245         widgets.
9246
9247         * glyphs.h (struct image_instantiator_methods): add
9248         post_instantiate method.
9249
9250         * glyphs.c (instantiate_image_instantiator): add post_instantiate
9251         method calls.
9252
9253 2000-04-23  Andy Piper  <andy@xemacs.org>
9254
9255         * glyphs.h (struct image_instantiator_methods): add
9256         decode_domain_method.
9257         (struct Lisp_Image_Instance): remove subwindow frame - it can be
9258         derived from the domain.
9259         (IMAGE_INSTANCE_FRAME): new accessor.
9260         (XIMAGE_INSTANCE_FRAME): ditto.
9261
9262         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
9263         instead of _SUBWINDOW_FRAME.
9264         (finalize_image_instance): ditto.
9265         (Fimage_instance_foreground): ditto.
9266         (Fimage_instance_background): ditto.
9267         (image_instantiate): ditto.
9268         (update_subwindow_cachel): ditto.
9269         (update_subwindow): ditto.
9270         (unmap_subwindow): ditto.
9271         (map_subwindow): ditto
9272         (subwindow_instantiate): ditto.
9273         * glyphs-msw.c (mswindows_update_widget): ditto.
9274         (mswindows_progress_gauge_instantiate): ditto.
9275         (mswindows_tab_control_update): ditto.
9276         * glyphs-x.c (x_update_widget): ditto.
9277         (x_widget_instantiate): ditto.
9278         (x_tab_control_instantiate): ditto.
9279         (x_tab_control_update): ditto.
9280         * event-msw.c (mswindows_wnd_proc): ditto
9281
9282         * glyphs-widget.c (image_instantiator_layout): use
9283         subwindow_decode_domain.
9284         (image_instantiator_buttons): ditto.
9285         (image_instantiator_edit_fields): ditto.
9286         (image_instantiator_combo_box): ditto.
9287         (image_instantiator_scrollbar): ditto.
9288         (image_instantiator_progress_guage): ditto.
9289         (image_instantiator_tree_view): ditto.
9290         (image_instantiator_tab_control): ditto.
9291         (image_instantiator_labels): ditto.
9292         (image_instantiator_layout): ditto.
9293
9294         * glyphs.c: add instance error checking to many functions.
9295         (instantiate_image_instantiator): decode device from cache_domain.
9296         (image_instantiate): partially rewrite by using
9297         decode_image_instantiator_domain to determine what domain the
9298         instance needs to be cached in.
9299         (decode_image_instantiator_domain): new function. Determine what
9300         domain the image needs to be cached in.
9301         (check_window_subwindow_cache): new error checking function.
9302         (check_instance_cache_mapper): ditto.
9303         (check_image_instance_structure): ditto.
9304         (subwindow_decode_domain): new function. Encodes a window as a
9305         subwindow's cache domain.
9306         (image_instantiator_format_create): use it for text and
9307         subwindows.
9308
9309 2000-04-21  Andy Piper  <andy@xemacs.org>
9310
9311         * glyphs.c (image_instance_device): new function.
9312         (image_instance_frame): new function.
9313         (image_instance_window): new function.
9314         (image_instance_live_p): new function.
9315
9316         * window.c (mark_window_as_deleted): reset the subwindow_instance_
9317         cache to nil.
9318
9319         * glyphs.h (struct Lisp_Image_Instance): device->domain.
9320         (IMAGE_INSTANCE_DOMAIN): new accessor.
9321         (XIMAGE_INSTANCE_DOMAIN): ditto.
9322
9323         * glyphs-x.c (x_finalize_image_instance): device->domain.
9324
9325         * glyphs-msw.c (init_image_instance_geometry): device->domain.
9326         (mswindows_finalize_image_instance): ditto.
9327
9328         * glyphs-eimage.c (jpeg_instantiate): device->domain.
9329         (gif_instantiate): ditto.
9330         (png_instantiate): ditto.
9331         (tiff_instantiate): ditto.
9332
9333         * glyphs.c (instantiate_image_instantiator): use domain rather
9334         than device.
9335         (mark_image_instance): device -> domain.
9336         (print_image_instance): ditto.
9337         (finalize_image_instance): ditto.
9338         (image_instance_equal): ditto.
9339         (allocate_image_instance): ditto.
9340         (Fcolorize_image_instance): ditto.
9341         (query_string_geometry): ditto.
9342         (image_instantiate): ditto
9343         (query_string_font): ditto.
9344         (image_instantiate): ditto.
9345         (update_subwindow): ditto.
9346         (unmap_subwindow): ditto.
9347         (map_subwindow): ditto.
9348         (subwindow_instantiate): ditto.
9349
9350         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
9351         (DOMAIN_FRAME): ditto.
9352         (DOMAIN_WINDOW): ditto.
9353         (DOMAIN_LIVE_P): ditto.
9354         (XDOMAIN_DEVICE): ditto.
9355         (XDOMAIN_FRAME): ditto.
9356         (XDOMAIN_WINDOW): ditto.
9357
9358         * specifier.c (Fvalid_specifier_domain_p): add image instances as
9359         a valid specifier domain.
9360
9361 2000-04-19  Andy Piper  <andy@xemacs.org>
9362
9363         * glyphs-widget.c (syms_of_glyphs_widget): remove
9364         widget-callback-current-channel.
9365         (vars_of_glyphs_widget): ditto.
9366         * glyphs.h: ditto
9367
9368         * gui.c (get_gui_callback): revert to previous behaviour.
9369
9370 2000-04-18  Andy Piper  <andy@xemacs.org>
9371
9372         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
9373         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
9374         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
9375
9376         * glyphs.c (image_instance_equal): add margin_width.
9377         (image_instance_hash): ditto.
9378
9379         * glyphs-widget.c (widget_instantiate): deal with margin-width.
9380         (layout_query_geometry): ditto.
9381         (layout_layout): ditto.
9382         (syms_of_glyphs_widget): add margin-width.
9383         (image_instantiator_layout): allow margin-width.
9384
9385         * glyphs.c (update_widget_instances): make a normal function.
9386         (syms_of_glyphs): remove Qupdate_widget_instances.
9387         * glyphs.h: ditto.
9388
9389         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
9390         so that we don't corrupt ideas about the last event or
9391         command. Remove widget-callback-current-channel fiddling.
9392         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
9393
9394 2000-05-01  Martin Buchholz <martin@xemacs.org>
9395
9396         * XEmacs 21.2.33 is released.
9397
9398 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
9399
9400         * make-src-depend: Allow dots in header file name.
9401
9402 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
9403
9404         * mule-charset.h (struct charset_lookup): Add
9405         next_allocated_1_byte_leading_byte and
9406         next_allocated_2_byte_leading_byte.
9407         * mule-charset.c: Move above two variables so that those values
9408         will be dumped.
9409
9410 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
9411
9412         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
9413         when string length is zero.
9414         (find_charsets_in_emchar_string): Ditto.
9415
9416 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
9417
9418         * lisp.h: extern Qdialog and Qmenubar.
9419
9420         * gui-x.c: added events.h.
9421                 also fixed typo which made the file uncompilable.
9422
9423         * general.c: Added Qmenubar and Qdialog
9424
9425 2000-04-28  Ben Wing  <ben@xemacs.org>
9426
9427         * frame-msw.c (mswindows_init_frame_1):
9428         * frame-msw.c (mswindows_mark_frame):
9429         * event-msw.c (mswindows_enqueue_dispatch_event):
9430         * console-msw.h:
9431         * console-msw.h (struct mswindows_frame):
9432         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
9433         there are now three hash tables for callbacks.
9434         mswindows_enqueue_dispatch_event is no longer static.
9435
9436         * dialog-x.c (maybe_run_dbox_text_callback):
9437         * dialog-x.c (dbox_descriptor_to_widget_value):
9438         switch to new cons3 form for callbacks.
9439
9440         * glyphs-msw.c (mswindows_register_gui_item):
9441         * glyphs-msw.c (mswindows_widget_instantiate):
9442         * glyphs-msw.c (add_tree_item):
9443         * glyphs-msw.c (add_tab_item):
9444         new image instance parameter, so it can be passed to callback-ex.
9445         respect :callback-ex as well as :callback.
9446
9447         * glyphs-widget.c (VALID_GUI_KEYWORDS):
9448         add :callback-ex.
9449
9450         * glyphs.c (print_image_instance):
9451         prettify, e.g. now prints widget type.
9452
9453         * gui-x.h:
9454         certain funs have new image instance parameter.
9455
9456         * gui.c:
9457         * gui.c (get_gui_callback):
9458         * gui.c (gui_item_add_keyval_pair):
9459         * gui.c (gui_item_init):
9460         * gui.c (gui_add_item_keywords_to_plist):
9461         * gui.c (mark_gui_item):
9462         * gui.c (gui_item_hash):
9463         * gui.c (gui_item_equal):
9464         * gui.c (copy_gui_item):
9465         * gui.c (syms_of_gui):
9466         recognize callback-ex in a number of places.
9467         also, fix the annoying "can't get out of yes-no dialog" bug.
9468
9469         * gui.h:
9470         * gui.h (struct Lisp_Gui_Item):
9471         recognize callback-ex in a number of places.
9472
9473         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9474         new parameter in button_item_to_widget_value.
9475
9476         * glyphs-x.c (x_update_widget):
9477         * glyphs-x.c (x_button_instantiate):
9478         * glyphs-x.c (x_button_update):
9479         * glyphs-x.c (x_progress_gauge_instantiate):
9480         * glyphs-x.c (x_edit_field_instantiate):
9481         * glyphs-x.c (x_combo_box_instantiate):
9482         * glyphs-x.c (x_tab_control_instantiate):
9483         * glyphs-x.c (x_label_instantiate):
9484         new image instance parameter in various places.
9485
9486         * event-Xt.c:
9487         * event-Xt.c (enqueue_Xt_dispatch_event):
9488         this fun gets exported.
9489
9490         * gui-msw.c:
9491         * gui-msw.c (mswindows_handle_gui_wm_command):
9492         handle both :callback and :callback-ex, and generate our own
9493         event because it's one of the callback-ex arguments.
9494
9495         * gui-x.c:
9496         * gui-x.c (popup_selection_callback):
9497         handle both :callback and :callback-ex, and generate our own
9498         event because it's one of the callback-ex arguments.
9499         * gui-x.c (button_item_to_widget_value):
9500         * gui-x.c (gui_items_to_widget_values_1):
9501         * gui-x.c (gui_item_children_to_widget_values):
9502         * gui-x.c (gui_items_to_widget_values):
9503         new image instance parameter in various places.
9504
9505         * fns.c (Freplace_list):
9506         fix small typo in doc string.
9507
9508         * lisp.h:
9509         declare enqueue_Xt_dispatch_event.
9510
9511 2000-04-28  Ben Wing  <ben@xemacs.org>
9512
9513         * buffer.c:
9514         * buffer.c (Frecord_buffer):
9515         * buffer.c (syms_of_buffer):
9516         delete record-buffer-hook.
9517
9518         * fns.c:
9519         * fns.c (Freplace_list):
9520         * fns.c (syms_of_fns):
9521         new primitive replace-list.
9522
9523         * frameslots.h:
9524         slot for old buffer-alist.
9525
9526         * lisp.h:
9527         exfun replace-list.
9528
9529         * redisplay.c:
9530         * redisplay.c (redisplay_frame):
9531         * redisplay.c (syms_of_redisplay):
9532         * redisplay.c (vars_of_redisplay):
9533         new hook buffer-list-changed-hook.
9534         call it.
9535
9536 2000-04-27  Ben Wing  <ben@xemacs.org>
9537
9538         * extents.h: extern in_modeline_generation.
9539
9540         * redisplay.c (generate_formatted_string_db): set
9541         in_modeline_generation.
9542
9543         * extents.c (extent_changed_for_redisplay): don't mark redisplay
9544         flags if in modeline generation.  otherwise frame-modified-tick
9545         is ticked far too often.
9546         Declare in_modeline_generation.
9547
9548 2000-04-26  Ben Wing  <ben@xemacs.org>
9549
9550         * emacs.c (vars_of_emacs): document quick-build "error-checking"
9551         option.
9552         (vars_of_emacs): add quick-build as an error-checking option.
9553         A bit kludgy, but there doesn't seem much point in creating
9554         a real var for this.
9555
9556         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
9557
9558 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9559
9560         * redisplay.h (struct display_line): Add a new variable,
9561         line_continuation.
9562
9563         * redisplay.c (create_text_block): Set dl->line_continuation if
9564         the line continues.
9565         (create_string_text_block): Ditto.
9566         (regenerate_window_incrementally): Use line_continuation instead
9567         of searching continuation glyph.
9568         (add_margin_runes): Call add_glyph_rune.
9569         (add_glyph_rune): Handle margin glyph.
9570
9571 2000-04-20  Martin Buchholz  <martin@xemacs.org>
9572
9573         * filelock.c (fill_in_lock_file_name):
9574         ANSIfy.
9575         Check for IS_ANY_SEP instead of '/'.
9576         (lock_file_1):
9577         Avoid generating gratuitous garbage.  Call user_login_name() directly.
9578         Never check errno without first seeing that system call failed.
9579         (unlock_file): Add GCPRO.
9580         (Flock_buffer): Fix docstring.
9581         (Ffile_locked_p): Fix docstring.  Add GCPRO.
9582
9583 2000-04-19  Martin Buchholz  <martin@xemacs.org>
9584
9585         * sysdep.c (get_pty_max_bytes):
9586         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
9587         strings longer than 252 bytes.
9588
9589         * md5.c: Unconditionally include ANSI header <limits.h>
9590
9591         * glyphs-x.c (convert_EImage_to_XImage):
9592         * lisp-union.h (union Lisp_Object):
9593         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
9594
9595 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
9596
9597         * filelock.c (current_lock_owner): Remove unused variable o, p.
9598
9599 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
9600
9601         * callint.c: Remove multiply defined symbol Qlet
9602         (syms_of_callint): ditto.
9603
9604 2000-04-14  Andy Piper  <andy@xemacs.org>
9605
9606         * general.c (syms_of_general): add last-command, this-command, let
9607         and funcall.
9608
9609         * lisp.h: declare various symbols.
9610
9611         * glyphs.h: declare Qwidget_callback_current_channel;
9612
9613         * glyphs-widget.c (syms_of_glyphs_widget): add
9614         Qgui_callback_current_channel.
9615         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
9616
9617         * gui-msw.c (mswindows_handle_gui_wm_command): bind
9618         widget-callback-current-channel when invoking the interactive
9619         arg. Also bind last-command and next-command when invoking the
9620         widget updates.
9621         * gui-x.c (popup_selection_callback): ditto.
9622
9623         * gui.c (get_gui_callback): massage args so that we are always
9624         calling eval. This allows us to add our own variable bindings
9625         outside.
9626
9627         * glyphs-x.c (x_button_instantiate): use
9628         gui_items_to_widget_values since this is GC safe.
9629         (x_progress_gauge_instantiate): ditto.
9630         (x_edit_field_instantiate): ditto.
9631         (x_label_instantiate): ditto.
9632
9633         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
9634         (emacs_Xt_event_widget_focus_out): new function
9635         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
9636         focus.
9637         (emacs_Xt_event_add_widget_actions): new function. add focus
9638         functions as actions.
9639         (init_event_Xt_late): use it.
9640
9641 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
9642
9643         * event-stream.c (Fdispatch_event): Doc fix.
9644
9645 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
9646
9647         * postgresql.c: Remove all references to PQsetenv*.
9648
9649         * postgresql.h: Remove references to PGsetenvHandler object.
9650         * lrecord.h (lrecord_type): Ditto.
9651
9652 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
9653
9654         * glyphs-msw.h (struct mswindows_image_instance_data): Added
9655         real_heigh and real_width members, and accessor macros for these.
9656
9657         * glyphs-msw.c (init_image_instance_geometry): New function.
9658         (init_image_instance_from_dibitmap): Use it.
9659         (mswindows_resource_instantiate): Use it.
9660         (init_image_instance_from_xbm_inline): Use it.
9661         (mswindows_initialize_image_instance_mask): Use real bitmap
9662         geometry.
9663         (mswindows_create_resized_bitmap): Ditto.
9664         (mswindows_create_resized_mask): Ditto.
9665
9666         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
9667         and bitmap to their surface size.
9668
9669 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
9670
9671         * process-unix.c (unix_send_process): Guard against process MIA
9672         after Faccept_process_output.
9673
9674 2000-04-11  Ben Wing  <ben@xemacs.org>
9675
9676         * eval.c (unbind_to_hairy): fix brokenness introduced by
9677         nanosecond speed improvements.
9678
9679 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
9680
9681         * sunplay.c (init_device): To play sounds correctly, the device
9682         apparently needs to be initialized at least once by XEmacs.  Make
9683         it so.
9684
9685 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9686
9687         * redisplay.c (add_margin_runes): Add text image glyph
9688           handling.
9689
9690 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
9691
9692         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
9693         gcc is newer than 2.5.
9694
9695 2000-04-06  Colin Rafferty  <colin@xemacs.org>
9696
9697         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
9698
9699         * fns.c (size_bit_vector):
9700         * alloc.c (size_vector):
9701         (make_vector_internal):
9702         (make_bit_vector_internal):
9703         (sweep_bit_vectors_1):
9704         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
9705
9706 2000-04-06  Andy Piper  <andy@xemacs.org>
9707
9708         * gmalloc.c (malloc): undo previous change.
9709         (malloc): ditto.
9710         (free): ditto.
9711         (realloc): ditto.
9712
9713 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
9714
9715         * line-number.c (buffer_line_number): Revert to former version.
9716
9717 2000-04-06  Andy Piper  <andy@xemacs.org>
9718
9719         * gmalloc.c (malloc): add error checking.
9720         (malloc): ditto.
9721         (free): ditto.
9722         (realloc): ditto.
9723
9724         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
9725         button_item_to_widget_value arg.
9726
9727         * glyphs-x.c (x_button_instantiate): add extra
9728         button_item_to_widget_value arg.
9729         (x_progress_gauge_instantiate): ditto.
9730         (x_edit_field_instantiate): ditto.
9731         (x_label_instantiate): ditto.
9732
9733         * gui-x.c (gui_items_to_widget_values_1): add extra
9734         button_item_to_widget_value arg.
9735         (button_item_to_widget_value): add extra menu_item_p arg.
9736
9737         * gui-x.h: change signature of button_item_to_widget_value.
9738
9739         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
9740         button_item_to_widget_value arg.
9741
9742 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
9743
9744         * buffer.h (struct buffer): auto_save_modified should be long.
9745
9746 2000-04-05  Andy Piper  <andy@xemacs.org>
9747
9748         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
9749         type.
9750         (button_query_geometry): give a little more room so that athena
9751         buttons fit.
9752
9753 2000-04-05  Andy Piper  <andy@xemacs.org>
9754
9755         * faces.c (complex_vars_of_faces): The widget face should inherit
9756         the font of the gui-element face.
9757
9758 2000-04-04  Andy Piper  <andy@xemacs.org>
9759
9760         * glyphs-x.c (x_button_update): new function. unconditionally
9761         update a button's state when the instance is dirty.
9762         (image_instantiator_format_create_glyphs_x): add x_button_update.
9763         (x_widget_instantiate): remove old resize cruft.
9764
9765 2000-04-02  Andy Piper  <andy@xemacs.org>
9766
9767         * frame.c (change_frame_size_1): The introduction of gutters means
9768         that we need to allow 0 as a potential frame dimension.
9769
9770 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9771
9772         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
9773         image glyph if allow_cursor.
9774         (add_hscroll_rune): Don't allow cursor to border glyph.
9775         (create_text_block): Ditto.
9776
9777         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
9778         text not in buffer.
9779         (redisplay_output_layout): Call ensure_face_cachel_complete for
9780         text image glyph.
9781
9782
9783 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9784
9785         * redisplay.c (add_glyph_rune): Adding text image as text runes.
9786
9787         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
9788         not in buffer
9789
9790         * redisplay-tty.c (tty_output_display_block): Delete the routine
9791         for text image glyph
9792         * redisplay-x.c (x_output_display_block): ditto
9793         * redisplay-msw.c (mswindows_output_display_block): ditto
9794
9795 2000-02-02  Mike Alexander  <mta@arbortext.com>
9796
9797         Note: Some of these were committed by accident as part of other
9798         patches.
9799
9800         * regex.c (regex_compile): Avoid compiler warnings.
9801
9802         * ntproc.c (sys_spawnve): Avoid compiler warnings.
9803
9804         * nt.h: Declare term_ntproc correctly.
9805
9806         * nt.c: Remove incorrect declaration of get_home_directory which
9807         is declared correctly in lisp.h.
9808
9809         * keymap.c (get_keyelt): Avoid compiler warnings.
9810         (raw_lookup_key_mapper): Avoid compiler warnings.
9811
9812         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
9813
9814         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
9815
9816         * filemode.c (mode_string): Avoid compiler warnings.
9817
9818         * file-coding.c (Fcoding_system_aliasee): Add return statement to
9819         avoid warning.
9820
9821         * events-mod.h: Undef some things that winuser.h defines differently.
9822
9823         * data.c (Faset): Avoid compiler warnings.
9824
9825         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
9826
9827 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
9828
9829         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
9830         Fall through to simple beep on error.
9831         Replace "extern" by real header file.
9832
9833         * linuxplay.c: Use nativesound.h
9834         (play_sound_data): Return error code. Be less verbose on error.
9835
9836         * sunplay.c: Use nativesound.h
9837         (play_sound_data): Return error code. Be less verbose on error.
9838
9839         * ntplay.c: Use nativesound.h
9840         (play_sound_data): Return fake error code
9841
9842         * sgiplay.c: Use nativesound.h
9843         (play_sound_data): Return error code
9844
9845         * hpplay.c: Use nativesound.h, partially implement
9846         new error code. Break compilation until finished.
9847         (play_sound_data): error code.
9848
9849         * nativesound.h (play_sound_file):
9850           (play_sound_data): Prototype in new header.
9851
9852 2000-03-31  Andy Piper  <andy@xemacs.org>
9853
9854         * glyphs-widget.c: (button_query_geometry): new function. Adjust
9855         for toggle and radio buttons.
9856         (image_instantiator_buttons): use it.
9857
9858 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
9859
9860         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
9861         (x_update_horizontal_scrollbar_callback): Return if no mirror was
9862         found. Scrollbar event probably belonged to some old config.
9863
9864 2000-03-31  Andy Piper  <andy@xemacs.org>
9865
9866         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
9867         than 1.
9868         (initialize_widget_image_instance): default layout to
9869         LAYOUT_HORIZONTAL rather than 0.
9870         (widget_instantiate): reverse the item list at the end rather than
9871         every iteration.
9872         (layout_layout): re-code for the border text at the front of the
9873         item list rather than at the end.
9874         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
9875         provided by the user.
9876         (widget_query_geometry): comment.
9877
9878 2000-03-30  Andy Piper  <andy@xemacs.org>
9879
9880         * glyphs-widget.c (image_instantiator_layout): allow standard
9881         widget keywords in layouts.
9882
9883         * gutter.c (output_gutter): cope with nil gutter contents.
9884
9885         * frame.c (Fset_frame_properties): add gutter docs.
9886
9887 2000-03-29  Andy Piper  <andy@xemacs.org>
9888
9889         * toolbar-msw.c (TBSTYLE_FLAT): add.
9890         (mswindows_output_toolbar): minor fiddling.
9891
9892 2000-03-29  Andy Piper  <andy@xemacs.org>
9893
9894         * gutter.c (output_gutter): force gutter size recalculation if
9895         what we are trying to display won't fit.
9896         (update_gutter_geometry): new function. A per-gutter version of
9897         update_frame_gutter_geometry.
9898         (update_frame_gutter_geometry): use it.
9899         (redraw_exposed_gutter): add extra debugging output.
9900
9901 2000-03-28  Mike Alexander  <mta@arbortext.com>
9902
9903         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
9904         (pdump_file_unmap): Implement it on Windows
9905         (pdump_file_get): Save alocated handles for pdump_file_unmap
9906
9907 2000-03-28  Andy Piper  <andy@xemacs.org>
9908
9909         * gui.c (get_gui_callback): treat Quit specially.
9910
9911 2000-03-27  Andy Piper  <andy@xemacs.org>
9912
9913         * glyphs.c (image_instantiate): be careful to check in the same
9914         way we assigned.
9915
9916 2000-03-27  Didier Verna  <didier@xemacs.org>
9917
9918         * config.h.in: define the proper SMART_INCLUDE macro.
9919         handle renaming of `foo_h_path' to `foo_h_file'.
9920
9921         * database.c: ditto.
9922
9923         * emacs.c: ditto.
9924
9925         * linuxplay.c: ditto.
9926
9927         * terminfo.c: ditto.
9928
9929         * tooltalk.h: ditto.
9930
9931 2000-03-27  Andy Piper  <andy@xemacs.org>
9932
9933         * glyphs-msw.c (mswindows_update_widget): make sure the widget
9934         gets updated whenever the face might have changed.
9935
9936 2000-03-26  Mike Alexander  <mta@arbortext.com>
9937
9938         * dumper.c (pdump_resource_free): Fix the comment.
9939
9940 2000-03-21  Olivier Galibert  <galibert@pobox.com>
9941
9942         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
9943
9944 2000-03-22  Mike Alexander  <mta@arbortext.com>
9945
9946         * dumper.c: Include Windows headers on Windows
9947         (pdump_resource_free): Add a body to the function
9948         (pdump_load): exe_name -> exe_path and add some comments.
9949
9950 2000-03-25  Mike Alexander  <mta@arbortext.com>
9951
9952         * gui.c (copy_gui_item_tree): Return a value in all cases
9953
9954 2000-03-21  Didier Verna  <didier@xemacs.org>
9955
9956         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
9957         lwlib/config.h.in.
9958         (SMART_INCLUDE): new macro.
9959         (POSTGRES_INCLUDE): new macro to include postgresql headers from
9960         the proper location.
9961
9962         * postgresql.c: use it.
9963
9964         * inline.c: ditto.
9965
9966 2000-03-24  Andy Piper  <andy@xemacs.org>
9967
9968         * gutter.c (redraw_exposed_gutters): must be "in display" when we
9969         do this.
9970
9971 2000-03-24  Andy Piper  <andy@xemacs.org>
9972
9973         * redisplay-output.c (compare_runes): use image_instance_changed
9974         to detect changes. Do not depend on glyphs_changed, only depend on
9975         dirtiness.
9976          (redisplay_output_layout): add debug messages.
9977         (compare_runes): ditto.
9978
9979         * glyphs.h: declare new functions.
9980         (struct Lisp_Image_Instance): remove percent and associated
9981         accessors.
9982
9983         * gui.h: declare new copying functions.
9984
9985         * gui.c (copy_gui_item_tree): new function.
9986         (copy_gui_item): new function.
9987         (gui_item_id_hash): revert to standard hash.
9988         (gui_item_hash): ditto.
9989         (gui_item_hash_internal): deleted.
9990         (mark_gui_item): mark value.
9991         (gui_item_add_keyval_pair): add value.
9992         (gui_item_init): ditto.
9993         (gui_add_item_keywords_to_plist): ditto.
9994         (gui_item_equal): ditto.
9995         (syms_of_gui): add Q_value.
9996
9997         * glyphs-x.c (x_progress_gauge_update): use pending items and
9998         value for setting the state.
9999         (x_update_widget): don't set items from pending here.
10000
10001         * glyphs-widget.c (update_widget): update items here.
10002         (progress_gauge_set_property): use items for storing value. Put
10003         new value in pending items.
10004
10005         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
10006         items for new value. Convert percent -> value.
10007         (mswindows_tab_control_update): don't update items here.
10008
10009         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
10010         (update_subwindow): ditto.
10011         (image_instance_changed): new function. Compare hash values and
10012         past and present widget items.
10013         (image_instantiate): We more careful about where we instantiate
10014         things.
10015         (image_instantiate): add error checking.
10016
10017         * gutter.c (syms_of_gutter): use -hook.
10018
10019 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
10020
10021         * console-tty.c (Fset_console_tty_input_coding_system): Use
10022         Qkeyboard.
10023         (Fset_console_tty_output_coding_system): Use Qterminal.
10024         (tty_init_console): Use Qkeyboard and Qterminal.
10025
10026 2000-03-21  Ben Wing  <ben@xemacs.org>
10027
10028         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
10029         From Mike Alexander <mta@arbortext.com>.
10030
10031 2000-03-21  Ben Wing  <ben@xemacs.org>
10032
10033         * event-msw.c (mswindows_need_event): Horrible kludge to fix
10034         process brokenness.  Proper implementation to come.
10035         * callproc.c:
10036         Rename call-process-internal to old-call-process-internal.
10037         New impl. in process.el.
10038
10039 2000-03-21  Martin Buchholz  <martin@xemacs.org>
10040
10041         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
10042
10043 2000-03-20  Andy Piper  <andy@xemacs.org>
10044
10045         * glyphs.c (full_list_hash): make hashes of the same elements in
10046         different orders return different values.
10047
10048 2000-03-20  Martin Buchholz <martin@xemacs.org>
10049
10050         * XEmacs 21.2.32 is released.
10051
10052 2000-03-20  Martin Buchholz  <martin@xemacs.org>
10053
10054         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
10055         (DFC_MALLOC_USE_CONVERTED_DATA):
10056         Add aliasing-safe casts to allow use with char* or unsigned char*
10057         lvalues.
10058
10059         * eldap.c (Fldap_open):
10060         (Fldap_search_basic):
10061         (Fldap_add):
10062         (Fldap_modify):
10063         Make C++-compilable.
10064         Make sure GCPRO'ed variables are initialized.
10065         Use temp variables to avoid repeated calls to Flength.
10066
10067 2000-03-16  Martin Buchholz  <martin@xemacs.org>
10068
10069         * sysfile.h:
10070         Make sure PATH_MAX is always defined.
10071         Include limits.h for PATH_MAX.
10072         Deprecate use of MAXPATHLEN.
10073
10074 2000-03-10  Martin Buchholz  <martin@xemacs.org>
10075
10076         * emacs.c: Add reinit_vars_of_fileio.
10077         * symsinit.h: Add reinit_vars_of_fileio.
10078         * fileio.c (reinit_vars_of_fileio): New.
10079         * fileio.c (Fmake_temp_name):
10080         Initialize temp_name random number from microseconds to make
10081         collisions even less likely.  Initialize always at process startup
10082         time.  (make-temp-name) used to return the same file name twice in
10083         a row when PDUMP.
10084         Random stylistic fiddling.
10085         Comment fixes.
10086
10087 2000-03-20  Andy Piper  <andy@xemacs.org>
10088
10089         * glyphs.c (image_instantiate): allow text glyphs to be
10090         instantiated in the minibuffer window.
10091
10092 2000-03-19  Andy Piper  <andy@xemacs.org>
10093
10094         * glyphs.c (image_instance_hash): be careful about which items we
10095         hash on.
10096
10097         * glyphs-widget.c (tab_control_set_property): record into pending
10098         items rather than the actual items.
10099
10100         * glyphs-x.c (x_update_widget): use pending items to update with.
10101
10102         * glyphs-msw.c (mswindows_tab_control_update): use pending items
10103         to update with.
10104
10105         * glyphs.c (mark_image_instance): mark pending items.
10106
10107         * window.c (Fset_window_configuration): record the buffer.
10108         (Fselect_window): totally revert previous change which breaks many
10109         things.
10110
10111 2000-03-18  Andy Piper  <andy@xemacs.org>
10112
10113         * glyphs-msw.c (mswindows_tab_control_update): force selected
10114         item.
10115
10116         * glyphs.c (image_instantiate): don't allow the minibuffer as a
10117         window domain cache, otherwise we get inconsistencies at
10118         startup. There is something fishy at startup which can lead to the
10119         minibuffer being the selected window when the gutter content is
10120         instantiated.
10121
10122         * gui.c (parse_gui_item_tree_list): add probably unnecessary
10123         gcpros.
10124         (parse_gui_item_tree_children): ditto.
10125         (parse_gui_item_tree_item): ditto.
10126
10127         * glyphs.c (Fupdate_widget_instances): return something.
10128
10129 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
10130
10131         * window.c (Fselect_window): Undo 2000-03-17 change.
10132
10133 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
10134
10135         * postgresql.c (Fpq_setenv): Remove this turkey when linking
10136         against v7.0 libraries.  Insta-coredump city until the postgres
10137         folks fix it.
10138
10139 2000-03-17  Andy Piper  <andy@xemacs.org>
10140
10141         * faces.c (complex_vars_of_faces): don't give the widget face an
10142         inherited background pixmap.
10143
10144         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
10145         selected item.
10146
10147         * event-stream.c (Fdispatch_non_command_events): return something.
10148
10149         * gutter.c (output_gutter): use widget face.
10150         (clear_gutter): ditto.
10151
10152         * NEWS: adjust again.
10153
10154         * window.c (Fselect_window): make sure this runs to completion to
10155         avoid oddities with Fset_window_configuration.
10156         (Fcurrent_window_configuration): in general do not save the
10157         minibuffer as the selected window.
10158
10159         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
10160
10161 2000-03-16  Olivier Galibert  <galibert@pobox.com>
10162
10163         * emacs.c (Frunning_temacs_p): Revert previous patch.
10164         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
10165
10166 2000-03-16  Andy Piper  <andy@xemacs.org>
10167
10168         * glyphs-x.c (x_tab_control_update): if no widget values then
10169         return.
10170
10171         * NEWS: update for new features.
10172
10173         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
10174         synthetic event to the native system.
10175         (reinit_vars_of_event_Xt): set force_event_pending to
10176         emacs_Xt_force_event_pending.
10177
10178         * events.h (struct event_stream): add force_event_pending.
10179
10180         * specifier.c (recompute_one_cached_specifier_in_window): add
10181         comment.
10182
10183         * redisplay.c (redisplay_frame): don't call
10184         update_frame_subwindows. Reset subwindow cachels when
10185         subwindows_changed, removing this was an optimization too far.
10186
10187         * redisplay-output.c (compare_runes): reorganize so that we catch
10188         glyph changes when we want them. Set optimize_output when this
10189         would help layouts.
10190         (redisplay_output_layout): remove frame_really_changed, use
10191         optimize_output instead.
10192
10193         * redisplay-msw.c (mswindows_output_display_block): reset
10194         optimize_output after outputting a glyph.
10195         * redisplay-x.c (x_output_display_block): ditto.
10196         * redisplay-tty.c (tty_output_display_block): ditto.
10197
10198         * gutter.c: (specifier_vars_of_gutter): use new spec changed
10199         functions.
10200         (gutter_specs_changed): do specific gutter positions.
10201         (top_gutter_specs_changed): new function. Only update the
10202         specified gutter specs.
10203         (bottom_gutter_specs_changed): ditto.
10204         (left_gutter_specs_changed): ditto.
10205         (right_gutter_specs_changed): ditto.
10206
10207         * gui.c (gui_item_hash_internal): new function, does a real hash.
10208         (gui_item_id_hash): use it.
10209         (gui_item_hash): hash the eval'ed gui_item.
10210
10211         * gui-x.c (popup_selection_callback): send an eval event to call
10212         Fupdate_widget_instances.
10213
10214         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
10215         to call Fupdate_widget_instances.
10216
10217         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
10218         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
10219
10220         * glyphs.c: (update_frame_subwindows): deleted.
10221         (Fupdate_widget_instances): new function for updating the dirty
10222         state of widgets that might have changed.
10223         (syms_of_glyphs): add Qupdate_widget_instances.
10224         (full_list_hash): hash a list completely.
10225         (image_instance_hash): use it for items and properties.
10226
10227         * frame-msw.c (mswindows_size_frame_internal): remove unused
10228         variable.
10229
10230         * faces.h (struct face_cachel): fix comment.
10231
10232         * event-stream.c (Fdispatch_non_command_events): new
10233         function. Process non-command events, forcing an event cycle
10234         beforehand.
10235         (syms_of_event_stream): declare.
10236         (event_stream_force_event_pending): new function. Force an event
10237         on the native event queue so that an event cycle will occur next
10238         time we check.
10239
10240         * event-msw.c:
10241         (struct ntpipe_shove_stream):
10242         (mswindows_enqueue_dispatch_event):
10243         (mswindows_dequeue_dispatch_event):
10244         (mswindows_cancel_dispatch_event):
10245         (mswindows_pump_outstanding_events):
10246         (mswindows_drain_windows_queue):
10247         (mswindows_handle_paint):
10248         (mswindows_wnd_proc):
10249         (mswindows_key_to_emacs_keysym):
10250         (get_process_input_waitable):
10251         (emacs_mswindows_delete_stream_pair): re-indent file.
10252         (mswindows_need_event): do not process further fds if the windows
10253         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
10254         fixes the 100% cpu problem.
10255         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
10256
10257 2000-03-15  Olivier Galibert  <galibert@pobox.com>
10258
10259         * alloc.h: New.
10260         * dumper.h: New.
10261         * dumper.c: New.
10262
10263         * emacs.c: Moved dump file searching to dumper.c.
10264         (Frunning_temacs_p): Fixed.
10265
10266         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
10267         last_lrecord_type_index_assigned.
10268
10269 2000-02-20  Olivier Galibert  <galibert@pobox.com>
10270
10271         * symsinit.h: Added reinit parameter to init_console_stream
10272         declaration.
10273
10274         * lisp.h: Added file parameter to pdump_load declaration.
10275
10276         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
10277         support.  Added dump file searching.
10278
10279         * config.h.in: Added EMACS_PROGNAME.
10280
10281         * console-stream.c (init_console_stream): Fix reinitialisation
10282         when running from temacs.
10283
10284         * alloc.c (pdump): Add id support.
10285         (pdump_load): Add file parameter and signature/id support.
10286
10287         * Makefile.in.in: Add full pdump support.
10288
10289 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
10290
10291         * postgresql.c: Update documentation to reflect latest code
10292         status.
10293         (print_result): Show tuple counts in printed representation when
10294         appropriate.
10295         (Fpq_put_nbytes): MULE-ize.
10296         (Fpq_get_line_async): Ditto.
10297
10298 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
10299
10300         * postgresql.c (Fpq_lo_import): Fix return value.
10301         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
10302
10303 2000-03-13  Ben Wing  <ben@xemacs.org>
10304
10305         * alloc.c (pdump_load):
10306         Fix compile warning under mswin.
10307
10308 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
10309
10310         * postgresql.c: Mule-ization, bug fixes.
10311         Use PG_CODING to encapsulate coding system name changes.
10312         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
10313         (pg-coding-system): Create.
10314
10315         (Fpq_conn_defaults): Mule-ize.
10316         (Fpq_connectdb): Mule-ize & bug fix.
10317         (Fpq_connect_start): Mule-ize.
10318         (Fpq_set_client_encoding): Mule-ize.
10319         (Fpq_finish): Document `DEAD' connection status.
10320         (Fpq_clear): Ditto.
10321         (Fpq_pgconn): Mule-ize.
10322         (Fpq_exec): Mule-ize & bug fix.
10323         (Fpq_send_query): Ditto.
10324         (Fpq_get_result): Ditto.
10325         (Fpq_res_status): Mule-ize.
10326         (Fpq_result_error_message): Mule-ize.
10327         (Fpq_ntuples): fix comments.
10328         (Fpq_fname): Mule-ize.
10329         (Fpq_fnumber): Mule-ize.
10330         (Fpq_ftype): fix comments.
10331         (Fpq_get_value): Mule-ize.
10332         (Fpq_cmd_status): Ditto.
10333         (Fpq_cmd_tuples): Ditto.
10334         (Fpq_oid_value): Ditto.
10335         (Fpq_notifies): Ditto.
10336         (Fpq_lo_import): Ditto.
10337         (Fpq_lo_export): Ditto.
10338         (Fpq_get_line): Ditto.
10339         (Fpq_put_line): Mule-ize and bug fix.
10340         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
10341
10342 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
10343
10344         * postgresql.c (vars_of_postgresql): Mule-ize.
10345         (Fpq_conn_defaults): Ditto.
10346
10347 2000-03-12  Ben Wing  <ben@xemacs.org>
10348
10349         * alloc.c (Fmake_byte_code):
10350         * alloc.c (debug_string_purity_print):
10351         * alloc.c (pdump_backtrace):
10352         * alloc.c (pdump_get_indirect_count):
10353         * alloc.c (pdump_register_sub):
10354         * alloc.c (pdump_register_object):
10355         * alloc.c (pdump_register_struct):
10356         * alloc.c (pdump_dump_data):
10357         * alloc.c (pdump_reloc_one):
10358         Minor cleanups.
10359
10360         * console-msw.c:
10361         * console-msw.c (GetConsoleHwnd):
10362         * console-msw.c (msw_hide_console):
10363         * console-msw.c (msw_show_console):
10364         * console-msw.c (msw_ensure_console_buffered):
10365         * console-msw.c (msw_output_console_string):
10366         * console-msw.c (console_type_create_mswindows):
10367
10368         a) Added functions to manipulate the console window for use with
10369         shell support.
10370
10371         b) Added support for writing text to the console, which is now
10372         used under Windows when xemacs is not being run non-interactively,
10373         to write text that would otherwise be destined for stdout because
10374         under these circumstances, text written to stdout tends to
10375         disappear and not be seen.
10376
10377         * console-msw.h:
10378         * event-Xt.c:
10379         * event-Xt.c (x_event_to_emacs_event):
10380         * event-Xt.c (describe_event_window):
10381         * events-mod.h (XEMACS_MOD_CONTROL):
10382         * events.c:
10383         * events.c (Fmake_event):
10384         * events.c (character_to_event):
10385         * events.c (event_to_character):
10386         * events.c (format_event_object):
10387         * events.c (Fevent_modifiers):
10388         * events.h:
10389         * events.h (struct key_data):
10390         * events.h (struct button_data):
10391         * events.h (struct misc_user_data):
10392         * frame-x.c (Fcde_start_drag_internal):
10393         * frame-x.c (Foffix_start_drag_internal):
10394         * gpmevent.c (Freceive_gpm_event):
10395         * keymap.c:
10396         * keymap.c (bucky_sym_to_bucky_bit):
10397         * keymap.c (control_meta_superify):
10398         * keymap.c (make_key_description):
10399         * keymap.c (keymap_lookup_directly):
10400         * keymap.c (create_bucky_submap):
10401         * keymap.c (keymap_store):
10402         * keymap.c (define_key_check_and_coerce_keysym):
10403         * keymap.c (define_key_parser):
10404         * keymap.c (define_key_alternate_name):
10405         * keymap.c (Fdefine_key):
10406         * keymap.c (raw_lookup_key_mapper):
10407         * keymap.c (struct map_keymap_unsorted_closure):
10408         * keymap.c (map_keymap_unsorted_mapper):
10409         * keymap.c (map_keymap_sort_predicate):
10410         * keymap.c (map_keymap_sorted):
10411         * keymap.c (accessible_keymaps_mapper_1):
10412         * keymap.c (where_is_recursive_mapper):
10413         * keymap.c (describe_map_mapper):
10414         * keymap.c (describe_map_sort_predicate):
10415         * keymap.c (describe_map):
10416         * keymap.c (complex_vars_of_keymap):
10417         And a number of other files, the key modifier preprocessor
10418         constants that xemacs uses have names that conflict with constants
10419         defined under MS Windows for other purposes, so they were renamed
10420         to begin with the prefix XEMACS_. The variables that hold such
10421         modifiers were changed to consistently be of type int to fix
10422         various compile warnings.
10423
10424         * console.c (complex_vars_of_console):
10425         * device.c:
10426         * device-msw.c:
10427         * device-msw.c (mswindows_finish_init_device):
10428         * device-msw.c (msw_get_workspace_coords):
10429         * device-msw.c (mswindows_device_system_metrics):
10430         and various other files, added support for a new
10431         device property called offset-workspace which returns the position
10432         of the upper left corner of the workspace area and goes along with
10433         the existing size-workspace property.
10434
10435         * dialog-msw.c:
10436         * dialog-msw.c (push_bufbyte_string_as_unicode):
10437         * dialog-msw.c (mswindows_popup_dialog_box):
10438         Added support for XEmacs-style accelerator specifications in
10439         button text.  Note: I didn't add support for this under X Windows,
10440         and somebody needs to do this.
10441
10442         * dialog.c:
10443         * dialog.c (Fpopup_dialog_box):
10444         Documented the support for accelerators that was just mentioned.
10445
10446         editfns.c (get_home_directory): Changed behavior under Windows
10447         when HOME not defined; former behavior was irretrievably broken.
10448
10449         * emacs.c:
10450         * emacs.c (main_1):
10451         * emacs.c (main):
10452         * minibuf.c (clear_echo_area_internal):
10453         * minibuf.c (echo_area_append):
10454         * print.c:
10455         * print.c (std_handle_out_external):
10456         * print.c (std_handle_out_va):
10457         * print.c (fatal):
10458         * print.c (write_string_to_stdio_stream):
10459         * print.c (output_string):
10460         * print.c (debug_print):
10461         * print.c (debug_backtrace):
10462         * print.c (debug_short_backtrace):
10463         Cleaned up the code that prints text to stdout so that this can be
10464         changed to output into a console window instead under MS Windows,
10465         as described above.
10466
10467         * eval.c:
10468         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
10469         * eval.c (internal_catch):
10470         * eval.c (unwind_to_catch):
10471         * eval.c (throw_or_bomb_out):
10472         * eval.c (condition_case_1):
10473         * eval.c (signal_1):
10474         * eval.c (check_error_state_sanity):
10475         * eval.c (call_with_suspended_errors_1):
10476         * eval.c (call_with_suspended_errors):
10477         * eval.c (reinit_vars_of_eval):
10478         Added code to catch throw loops and check for a pesky bug that may
10479         be gone now.
10480
10481         * event-msw.c:
10482         * event-msw.c (key_needs_default_processing_p):
10483         * event-msw.c (mswindows_wnd_proc):
10484         * event-msw.c (mswindows_modifier_state):
10485         * event-msw.c (emacs_mswindows_quit_p):
10486         * event-msw.c (vars_of_event_mswindows):
10487         a) Added support for using the alt key to select menu items as is
10488         standard under MS Windows.  This is controlled using the variable
10489         menu-accelerator-enabled, just like under X Windows.  There is an
10490         option on the options menu to turn this support on.  I really
10491         think that it should be on by default under Windows, but I'm not
10492         going to make this change yet.
10493
10494         b)  Added support for dynamic display size changes under Windows.
10495
10496         * event-stream.c:
10497         * event-stream.c (maybe_echo_keys):
10498         * event-stream.c (Fnext_event):
10499         * event-stream.c (command_builder_find_leaf):
10500         * event-stream.c (lookup_command_event):
10501         * event-stream.c (execute_command_event):
10502         * event-stream.c (pre_command_hook):
10503         * event-stream.c (post_command_hook):
10504         * event-stream.c (syms_of_event_stream):
10505         * event-stream.c (vars_of_event_stream):
10506         * event-stream.c (complex_vars_of_event_stream):
10507         * events.h (struct command_builder):
10508
10509         a) Tried to clean up a little bit the horribly written x-specific
10510         accelerator code that crept into this file.  I moved this code
10511         into menubar-x.c where it belongs. I also needed to move the
10512         command builder structure into the file events.h because it is
10513         accessed directly by this accelerator code.  What I didn't do, but
10514         which should be done at some point, is to properly abstract this
10515         code using device methods instead of the kludgy way that it
10516         currently hooks into the event code.
10517
10518         b) Added the lisp variables this-command-properties and
10519         last-command- properties, which should be used to synchronize two
10520         adjacent commands in preference to playing games with the variable
10521         this-command, which is typically what happens.
10522
10523         c) Added some slightly nasty code to hook into the lisp support
10524         for shifted- motion-key selection.  This is actually necessary for
10525         somewhat complicated reasons, which are described in
10526         simple.el. (NB: I think the proper thing would be to have the code
10527         that calls the pre and post command hooks also call out to generic
10528         lisp functions in simple.el, where all built-in stuff could be
10529         added.  I will think about this more.)
10530
10531         * event-unixoid.c (poll_fds_for_input):
10532         * lread.c (readchar):
10533         * redisplay-tty.c (tty_clear_frame):
10534         * redisplay-x.c (x_get_gc):
10535         * signal.c (interrupt_signal):
10536         And a whole bunch of other files: fixed up places that printed
10537         directly to stderr to instead call the function stderr_out so that
10538         the changes I made under Windows work correctly.
10539
10540         * filemode.c (mode_string):
10541         Warning fixes.
10542
10543         * frame-msw.c:
10544         * frame-msw.c (mswindows_size_frame_internal):
10545         Fixed the computation of frame size and position to keep the frame
10546         within the workspace area, rather than within the physical
10547         dimensions of the screen, so that the frame doesn't overlap window
10548         manager decorations, such as the start menu and toolbar, typically
10549         at the bottom of the screen.
10550
10551         * frame.c (vars_of_frame):
10552         Changed the default frame title format under MS Windows to consist
10553         of buffername-XEmacs, which is standard under MS Windows.  I think
10554         it might be a good idea to change this everywhere because I think
10555         it is superior to the current frame title format, but this is the
10556         kind of change that is likely to cause some people to get annoyed,
10557         so I'm not making it.
10558
10559         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
10560
10561         * gui-msw.c (mswindows_handle_gui_wm_command):
10562         Fixed compile warnings.
10563
10564         * gui-x.c:
10565         * gui-x.c (strdup_and_add_accel):
10566         * gui-x.c (button_item_to_widget_value):
10567         * gui-x.h:
10568         Added code to automatically put an accelerator onto the beginning
10569         of menu items that don't have one as is now the standard, and is
10570         described more later.  Also fixed things so that the menu item
10571         name can be an evaluated expression, again a new standard.
10572
10573         * gui.c:
10574         * gui.c (gui_item_add_keyval_pair):
10575         * gui.c (make_gui_item_from_keywords_internal):
10576         * gui.c (gui_add_item_keywords_to_plist):
10577         * gui.c (gui_item_accelerator):
10578         * gui.c (gui_name_accelerator):
10579         * gui.c (gui_item_included_p):
10580         * gui.c (gui_item_display_flush_left):
10581         * gui.c (gui_item_display_flush_right):
10582         * gui.c (parse_gui_item_tree_item):
10583         * gui.c (parse_gui_item_tree_children):
10584         * gui.c (parse_gui_item_tree_list):
10585         Mule-ized.  Cleanup.  GCPRO addition.
10586
10587         * line-number.c (buffer_line_number):
10588         * lisp.h:
10589         * lisp.h (EMACS_INT_MAX):
10590         Added the manifest constant EMACS_INT_MIN corresponding to the
10591         existing constant EMACS_INT_MAX.  This is partially to fix compile
10592         warnings under Windows, and partly for cleanliness.
10593
10594         * menubar-msw.c:
10595         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
10596         * menubar-msw.c (msw_translate_menu_or_dialog_item):
10597         * menubar-msw.c (displayable_menu_item):
10598         * menubar-msw.c (populate_menu_add_item):
10599         * menubar-msw.c (populate_or_checksum_helper):
10600         * menubar-msw.c (populate_menu):
10601         * menubar-msw.c (update_frame_menubar_maybe):
10602         * menubar-msw.c (prune_menubar):
10603         * menubar-msw.c (msw_char_is_accelerator):
10604         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
10605         * menubar-msw.c (mswindows_handle_wm_command):
10606         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
10607         * menubar-msw.c (mswindows_handle_wm_initmenu):
10608         * menubar-msw.c (mswindows_update_frame_menubars):
10609         * menubar-msw.c (mswindows_free_frame_menubars):
10610         * menubar-msw.c (mswindows_popup_menu):
10611         Fixed a bug in handling accelerators where an extra character
10612         would be displayed in the menu item.  Also generalized the
10613         function displayable_menu_item because it is now used by the
10614         dialog box code as well.  And finally, added code in the functions
10615         that create the menubar to extract a list of accelerators for the
10616         top level menubar, which is used in the event code to determine
10617         whether a particular alt-key combination should be used to invoke
10618         a menu item, or should be passed through to access the standard
10619         XEmacs keymap binding for this key combination.
10620
10621         Much needed GCPROing.
10622
10623         * menubar-x.c:
10624         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10625         * menubar-x.c (menu_item_descriptor_to_widget_value):
10626         * menubar-x.c (restore_in_menu_callback):
10627         * menubar-x.c (x_popup_menu):
10628         * menubar-x.c (menu_move_up):
10629         * menubar-x.c (menu_move_down):
10630         * menubar-x.c (menu_move_left):
10631         * menubar-x.c (menu_move_right):
10632         * menubar-x.c (menu_select_item):
10633         * menubar-x.c (command_builder_operate_menu_accelerator):
10634         * menubar-x.c (menu_accelerator_junk_on_error):
10635         * menubar-x.c (command_builder_find_menu_accelerator):
10636         * menubar-x.c (Faccelerate_menu):
10637         * menubar.h:
10638         Moved a whole bunch of code here that was previously in
10639         event-stream.c as described above.  There is also code connected
10640         to the new standard of adding an accelerator to the beginning of
10641         menu items that don't have one as described above and below.
10642
10643         * menubar.c:
10644         * menubar.c (menu_parse_submenu_keywords):
10645         * menubar.c (Fmenu_find_real_submenu):
10646         * menubar.c (Fnormalize_menu_item_name):
10647         * menubar.c (syms_of_menubar):
10648         * menubar.c (vars_of_menubar):
10649         * menubar.c (complex_vars_of_menubar):
10650
10651         a) Cleaned up a bunch of documentation and improved it.
10652
10653         b) XEmacs now automatically adds an accelerator onto the beginning
10654         of any menu items that don't have one.  I did this because there
10655         will inevitably be some menu items on the main menubar that don't
10656         have accelerators on them because the package that adds that
10657         particular menu item hasn't yet been fixed up to have accelerators
10658         in them and it looked rather strange to have some items with and
10659         some items without accelerators, especially since even in items
10660         without accelerators, you can, at least under windows, still
10661         access the item through an accelerator corresponding to the first
10662         character in the item's name.  If people don't like this behavior,
10663         I can add a variable to turn it off optionally, but I'm not sure
10664         this is a good idea because we really do need to have accelerators
10665         on all of the menu items, and if a package doesn't like the
10666         accelerators being put on the first character, then it should put
10667         the accelerators where they belong.
10668
10669         c) I made a behavior change, which is that the descriptor that
10670         specifies the text of the menu item, which formerly was just a
10671         string, can now also be an evaluated expression.  This makes this
10672         descriptor parallel with all of the others, which could also be
10673         evaluated expressions.  This also obviates the need for the
10674         keyword :label, which was previously listed in the documentation
10675         as unimplemented, and which was for the same purpose.
10676
10677         d) GCPROing.
10678
10679         * ntproc.c:
10680         * ntproc.c (new_child):
10681         * ntproc.c (sys_spawnve):
10682         * ntproc.c (find_child_console):
10683         * ntproc.c (sys_kill):
10684         Fixed compile warnings.  By the way, this file should really go
10685         away entirely, and this will happen as soon as Kirill makes his
10686         final round of process cleanups, which affect the function
10687         call-process.
10688
10689         * process-nt.c:
10690         * process-nt.c (struct nt_process_data):
10691         * process-nt.c (find_process_from_pid):
10692         * process-nt.c (send_signal_the_nt_way):
10693         * process-nt.c (enable_child_signals):
10694         * process-nt.c (find_child_console):
10695         * process-nt.c (send_signal_the_95_way):
10696         * process-nt.c (nt_finalize_process_data):
10697         * process-nt.c (ensure_console_window_exists):
10698         * process-nt.c (nt_create_process):
10699         * process-nt.c (nt_kill_child_process):
10700         * process-nt.c (nt_kill_process_by_pid):
10701         * process-nt.c (nt_open_network_stream):
10702         * process-nt.c (vars_of_process_nt):
10703         Copied over code from Emacs 20.5 to correctly send signals to sub-
10704         processes under Windows 95.  Also added code to automatically
10705         create and hide console window when a sub-process is created under
10706         Windows 95, which obviates the need for the separate runemacs.exe
10707         executable, and finally implemented some variables that were
10708         implemented in Emacs 20.5, but previously not in XEmacs.  These
10709         include mswindows- start-process-share-console and
10710         mswindows-start-process-inherit-error-mode. (Both of these only
10711         apply to Windows 95.)
10712
10713         * regex.c (regex_compile): Fixed a compile warning.
10714
10715         * select-msw.c:
10716         * select-msw.c (mswindows_own_selection):
10717         * select-msw.c (mswindows_get_foreign_selection):
10718         * select-msw.c (mswindows_disown_selection):
10719         * select-msw.c (console_type_create_select_mswindows):
10720         * select-msw.c (syms_of_select_mswindows):
10721         Cleaned up the file and implemented the device method
10722         selection_exists_p, which had accidentally been left out.  Also
10723         removed four lisp functions that were remnants from before the
10724         time when the selection code was properly device abstracted.
10725         These functions are no longer needed because there are generic
10726         equivalents, and because they were added recently and don't exist
10727         in FSF Emacs, I don't think there's any problem with just deleting
10728         them.
10729
10730         * sysdep.c:
10731         * sysdep.c (sys_subshell):
10732         Fixed a compile warning, although in this case there's probably
10733         something wrong with this code, and it ought to be looked into
10734         more thoroughly by somebody who understands it.
10735
10736         * window.c:
10737         * window.c (Fwindow_text_area_height):
10738         * window.c (Fwindow_width):
10739         * window.c (Fwindow_full_width):
10740         * window.c (Fwindow_pixel_width):
10741         * window.c (debug_print_window):
10742         * window.c (syms_of_window):
10743         Added functions window-text-area-height and window-full-width,
10744         which are functions for returning various width and height
10745         characteristics of a window. (One of these functions is necessary
10746         for making the file dialog box work correctly, and the other one
10747         was added for completeness.)  Also added a table to the
10748         documentation for window-height which describes the entire scheme
10749         for accessing width and height characteristics of a window.
10750
10751 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10752
10753         * nt.c (fstat): Added a comment for another problem with
10754         non-encapsulated [f]stat(), reported by Adrian Aichner
10755         <aichner@ecf.teradyne.com>.
10756
10757 2000-03-11  Andy Piper  <andy@xemacs.org>
10758
10759         * window.c (make_dummy_parent): initialize subwindow instance
10760         cache.
10761         (Fset_window_configuration): zero extent_modiff.
10762
10763 2000-03-10  Andy Piper  <andy@xemacs.org>
10764
10765         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
10766         more changes can be triggered.
10767         (Fredisplay_frame): ditto.
10768         (Fredraw_device): ditto.
10769         (Fredisplay_device): ditto.
10770         (redisplay_frame): make non-static.
10771         (redisplay_frame): call update_frame_gutter_geometry outside of
10772         display proper.
10773
10774         * gutter.h: declare update_frame_gutter_geometry.
10775
10776         * redisplay.h: declare redisplay_frame.
10777
10778         * gutter.c (update_frame_gutter_geometry): move geometry changes
10779         in update_frame_gutters here. Geometry changes can only occur
10780         outside of redisplay.
10781         (update_frame_gutters): remove geometry change code.
10782         (Fredisplay_gutter_area): make sure that we are in display when we
10783         update and that we have flushed any size changes.
10784
10785 2000-03-11  Andy Piper  <andy@xemacs.org>
10786
10787         * alloc.c (pdump_dump_data): remove i & count shadows.
10788
10789 2000-02-27  Mike Alexander  <mta@arbortext.com>
10790
10791         * sysdep.h: Declare pdump_read_file
10792
10793         * sysdep.c (pdump_read_file): New function
10794
10795         * alloc.c (pdump_load): Call pdump_read_file to get the portable
10796         dump data
10797
10798 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
10799
10800         * lrecord.h: add `lrecord_type_pgsetenv'.
10801
10802 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
10803
10804         * symsinit.h: declare (vars|syms)_of* functions.
10805         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
10806
10807 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
10808
10809         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
10810
10811         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
10812         GCCs.
10813
10814         * emacs.c (main_1): Call postgres initialization code.
10815
10816         * postgresql.h: New file.  PostgreSQL RDBMS support.
10817         * postgresql.c: New file.
10818
10819 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
10820
10821         * redisplay-output.c (redisplay_output_display_block): Disable
10822         redundant code.
10823
10824 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
10825
10826         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
10827         (Fcanna_henkan_next): Ditto.
10828         (Fcanna_bunsetu_henkou): Ditto.
10829         (Fcanna_henkan_kakutei): Ditto.
10830         (Fcanna_henkan_end): Ditto.
10831         (Fcanna_henkan_quit): Ditto.
10832         (Fcanna_henkan_next): Set retun value correctly.
10833         (c2mu): Use unsigned char instead of signed char.
10834
10835 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
10836
10837         * emacs.c (main_1): Always call syms_of_gui.
10838         * inline.c: include gui.h
10839
10840 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
10841
10842         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
10843         converted to Lisp_Object.
10844         (Qtop_bottom): New variable.
10845         (syms_of_redisplay): Initialize it.
10846         * redisplay.h (Vvisible_bell): Ditto.
10847         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
10848         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
10849         only flash top and bottom.
10850
10851 2000-03-08  Andy Piper  <andy@xemacs.org>
10852
10853         * buffer.c (Frename_buffer): record new buffer name the right way.
10854
10855 2000-03-08  Andy Piper  <andy@xemacs.org>
10856
10857         * glyphs.c (update_subwindow): increase hash depth so that widget
10858         items get picked up properly.
10859
10860         * redisplay-output.c (compare_runes): increase hash depth so that
10861         widget items get picked up properly.
10862
10863 2000-03-08  Andy Piper  <andy@xemacs.org>
10864
10865         * gutter.c (output_gutter): add some debug.
10866
10867         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
10868         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
10869         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
10870
10871         * redisplay-output.c (compare_runes): use display_hash to
10872         determine if glyphs really are not the same.
10873
10874         * glyphs.c (update_subwindow): check display_hash to see if
10875         anything really needs to be updated. If not then do
10876         nothing. Record the display_hash after updating.
10877         (image_instance_equal): compare the image_instance face also.
10878
10879 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
10880
10881         * redisplay.h: Fix comment style.
10882
10883 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10884
10885         * consle-msw.h (struct mswindows_frame):
10886         Added new member paint_pending to indicate whether a WM_PAINT
10887         magic event has been queued for this frame.
10888
10889         * event-msw.c (mswindows_drain_windows_queue):
10890         Don't queue a WM_PAINT magic event if one is already queued.
10891         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
10892
10893         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
10894
10895 2000-03-07  Didier Verna  <didier@xemacs.org>
10896
10897         * dired.c: #include `regex.h' after `sysfile.h'.
10898
10899 2000-03-06  Martin Buchholz  <martin@xemacs.org>
10900
10901         * sound.c (init_nas_sound): Fix compiler warning.
10902
10903         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
10904         (FREE_STRUCT_P):
10905         (MARK_STRUCT_AS_FREE):
10906         (MARK_STRUCT_AS_NOT_FREE):
10907         Make `gcc -fstrict-aliasing' work properly.
10908
10909 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10910
10911         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
10912         (mswindows_delete_device): Call CoUnnitialize().
10913
10914         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
10915
10916 2000-02-25    <CraigL@DyCon.com>
10917
10918         * process-nt.c: MinGW now has <shellapi.h>, but still needs
10919         <errno.h>.
10920
10921         * sysdep.c: This extern declaration for environ prevents MinGW
10922         from finding the variable in CRTDLL.DLL.
10923
10924         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
10925         windows headers.
10926         (SHGFI_EXETYPE): ..
10927         (WM_MOUSEWHEEL): ..
10928         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
10929         definitions.
10930         (MMRESULT): Removed, now defined in cygwin's windows headers.
10931         (TIMECAPS): ..
10932         (uid_t,gid_t,pid_t,ssize_t): ..
10933         (_timeb): Removed, MinGW defines both _timeb and timeb.
10934         (HAVE_H_ERRNO): Added.
10935         (HAVE_TZNAME): Added, configure is not detecting this.
10936
10937 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
10938
10939         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
10940         * syntax.c (syntax_match): Use it.
10941
10942         * cmds.c: Import auto-fill-chars from FSF Emacs.
10943         (Vauto_fill_chars): New variables.
10944         (internal_self_insert): Check Vauto_fill_chars.
10945         (vars_of_cmds):
10946         Declare auto-fill-chars as a Lisp variable and initialize it.
10947
10948 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10949
10950         * fileio.c (Fmake_symbolic_link):
10951         (Ffile_symlink_p):
10952         Run handlers even if local machine doesn't have symlinks.
10953
10954 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10955
10956         * event-msw.c (mswindows_drain_windows_queue):
10957         Don't generate paint magic events for non-XEmacs frames.
10958
10959 2000-03-05  Andy Piper  <andy@xemacs.org>
10960
10961         * redisplay.c (redisplay_frame): generate_displayable_area and
10962         friends assumes that we are not in GC, we therefore have to make
10963         sure that this doesn't happen.
10964
10965         * gutter.c (calculate_gutter_size): generate_displayable_area
10966         assumes that we are not in GC, we therefore have to make sure that
10967         this doesn't happen.
10968
10969 2000-03-05  Martin Buchholz  <martin@xemacs.org>
10970
10971         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
10972
10973 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
10974
10975         * redisplay.c (regenerate_window): Make sure we set a sane value
10976         for end_pos even if we jump out of the loop.
10977         (regenerate_window): Answer Ben's question :-).
10978         (start_end_of_last_line): Add may_error argument.
10979         (start_of_last_line):
10980         (end_of_last_line): Pass may_error = 0.
10981         (end_of_last_line_may_error): New function.
10982         (pixel_to_glyph_translation): Use it, so we don't crash in
10983         event_to_glyph.
10984
10985 2000-03-04  Andy Piper  <andy@xemacs.org>
10986
10987         * window.h (struct window): add gutter_extent_modiff.
10988
10989         * window.c (allocate_window): zero out gutter_extent_modiff.
10990
10991         * redisplay.h: declare sync_display_line_structs.
10992
10993         * redisplay.c (add_glyph_rune): add a better comment.
10994
10995         * redisplay-output.c (sync_display_line_structs): made non-static.
10996         (compare_runes): remove unneccesary glyph cachel access.
10997
10998         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
10999
11000         * gutter.c (output_gutter): don't output the gutter if extent
11001         changes only involve extents in buffers. use 4 sets of display
11002         lines.
11003         (gutter_extent_signal_changed_region_maybe): new function. Mark
11004         extents in gutters as changed.
11005         (update_frame_gutters): use 4 sets of display lines.
11006         (reset_gutter_display_lines): ditto.
11007         (free_frame_gutters): ditto.
11008         (redraw_exposed_gutter): force output of gutters.
11009
11010         * frame.h (struct frame): add 4 sets of gutter display lines.
11011
11012         * extents.c: (extent_changed_for_redisplay): signal changes to
11013         extents in strings in the gutter as well as extents in buffers.
11014
11015 2000-03-02  Andy Piper  <andy@xemacs.org>
11016
11017         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
11018
11019         * frame.c (Fmake_frame): make sure the gutters get initialized
11020         after the frame is visible.
11021         (set_frame_selected_window): re-arrange compilation macros a
11022         little.
11023         (change_frame_size_1): mark gutters changed.
11024
11025         * device.c (Fset_device_class): mark gutters changed.
11026
11027 2000-03-01  Andy Piper  <andy@xemacs.org>
11028
11029         * window.c (window_top_frame_gutter_height): deleted.
11030         (window_bottom_frame_gutter_height): ditto.
11031         (window_left_frame_gutter_height): ditto.
11032         (window_right_frame_gutter_height): ditto.
11033         (window_top_gutter_height): don't use them.
11034         (window_bottom_gutter_height): ditto.
11035         (window_left_gutter_width): ditto.
11036         (window_right_gutter_width): ditto.
11037         (Fsplit_window): ditto.
11038         (Fwindow_pixel_edges): don't use border dimensions here.
11039
11040         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
11041         (update_scrollbar_instance): ditto.
11042
11043         * redisplay.c (generate_modeline): don't take gutters into account.
11044         (generate_modeline): ditto.
11045         (redisplay_frame): small gutter display optimization.
11046
11047         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
11048
11049         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
11050         gutters into account.
11051
11052         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
11053         for window position and type.
11054
11055         * gutter.c (get_gutter_coords): fix for frame gutters.
11056         (update_frame_gutters): update frame geometry if the gutters have
11057         changed.
11058         (init_frame_gutters): record current gutter geometries.
11059
11060         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
11061         var.
11062         (mswindows_widget_instantiate): ditto.
11063
11064         * frame.h (struct frame): add current_gutter_bounds.
11065
11066         * frame.c (change_frame_size_1): position window and minibuffer
11067         appropriately taking into account the frame gutters.
11068
11069         * frame-x.c: (x_initialize_frame_size): take into account the
11070         frame gutters.
11071
11072 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
11073
11074         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
11075
11076 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
11077
11078         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
11079
11080 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
11081
11082         * file-coding.c (reset_decoding_stream): Clear previous
11083         detection state when autodetect.
11084
11085 2000-02-29  Didier Verna  <didier@xemacs.org>
11086
11087         * extents.c (set_extent_glyph_1): don't require extents to be
11088         attached.
11089
11090 2000-02-27  Andy Piper  <andy@xemacs.org>
11091
11092         * gutter.c (Fset_default_gutter_position): don't default left and
11093         right gutter visibility to t.
11094         (Fset_default_gutter_position): run
11095         default-gutter-position-changed-hook.
11096         (syms_of_gutter): add default-gutter-position-changed-hook.
11097
11098 2000-02-26  Andy Piper  <andy@xemacs.org>
11099
11100         * specifier.c (Fmake_specifier): add gutter references.
11101
11102         * gutter.h (RAW_WINDOW_GUTTER): new macro.
11103
11104         * lisp.h: declare Fvalid_plist_p.
11105
11106         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
11107         as changed.
11108         (default_gutter_visible_p_changed_in_window): invalidate gutter as
11109         well as its visibility so that it gets reconstructed.
11110         (construct_window_gutter_spec): new function. Construct a string
11111         to be displayed in the gutter from a plist of strings. Take care
11112         to only use elements that are declared as visible.
11113         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
11114         WINDOW_GUTTER.
11115         (gutter_validate): allow plists of strings in the specifier.
11116         (gutter_specs_changed): construct the real_gutter from the gutter
11117         specs using construct_window_gutter_spec.
11118         (gutter_visible_validate): gutter-visible is a new specifier type.
11119         (Fgutter_visible_specifier_p): new function for the new specifier.
11120         (syms_of_gutter): declare gutter-visible and
11121         Fgutter_visible_specifier_p.
11122         (specifier_type_create_gutter): intitalize new gutter-visible
11123         specifier.
11124         (reinit_specifier_type_create_gutter): ditto.
11125         (specifier_vars_of_gutter): use new specifier type for gutter
11126         visibility.
11127         (init_frame_gutters): construct real_gutter correctly.
11128         (Fgutter_specifier_p): beef up documentation.
11129         (Fgutter_size_specifier_p): ditto.
11130
11131         * winslots.h: add real_gutter slots.
11132
11133 2000-02-25  Andy Piper  <andy@xemacs.org>
11134
11135         * device-msw.c: Be kind to older cygwin versions. From Raymond
11136         Toy <toy@rtp.ericsson.se>.
11137
11138         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
11139         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
11140
11141 2000-02-25  Martin Buchholz  <martin@xemacs.org>
11142
11143         * elhash.c (MARK_OBJ): Practice macro hygiene.
11144
11145 2000-02-24  Martin Buchholz  <martin@xemacs.org>
11146
11147         * miscplay.c: s/__inline__/inline/g;
11148         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
11149         (get_device_compdc): INLINE ==> static inline
11150         * *.[ch]: Change INLINE to INLINE_HEADER globally.
11151         find -name '*.h' | \
11152         xargs global-replace \
11153         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
11154
11155 2000-02-25  Andy Piper  <andy@xemacs.org>
11156
11157         * window.c (window_top_frame_gutter_height): new function.
11158         (window_top_window_gutter_height): ditto.
11159         (window_top_gutter_height): use them.
11160         (window_bottom_frame_gutter_height): new function.
11161         (window_bottom_window_gutter_height): ditto.
11162         (window_bottom_gutter_height): use them.
11163         (window_left_window_gutter_width): new function.
11164         (window_left_frame_gutter_width): ditto.
11165         (window_left_gutter_width): use them.
11166         (window_right_window_gutter_width): new function.
11167         (window_right_frame_gutter_width): ditto.
11168         (window_right_gutter_width): use them.
11169         (window_pixel_height): new function. calulate window pixel height
11170         with frame gutter involvement.
11171         (Fsplit_window): calculate new sizes taking frame gutters into
11172         account.
11173         (window_char_height_to_pixel_height): don't include frame gutters.
11174         (window_char_height): use window_pixel_height.
11175         (window_pixheight): rename from window_pixel_height.
11176         (change_window_height): use it.
11177         (window_pixel_height_to_char_height): don't include frame gutters.
11178         (window_char_width_to_pixel_width): ditto.
11179
11180 2000-02-25  Andy Piper  <andy@xemacs.org>
11181
11182         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
11183         if it is.
11184
11185 2000-02-24  Martin Buchholz  <martin@xemacs.org>
11186
11187         * alloc.c (staticpro):
11188         (staticpro_nodump):
11189         (dumpstruct):
11190         (dumpopaque):
11191         (pdump_wire):
11192         (pdump_wire_list):
11193         (compact_string_chars):
11194         (pdump_dump_wired):
11195         Convert:  if (foo) abort();  ==>  assert (! foo);
11196
11197         * eldap.c (Fldap_search_basic):
11198         (Fldap_add):
11199         (Fldap_modify):
11200         (Fldap_delete):
11201         Fix compiler warnings, and possible crashes if (random) return
11202         value were to be used.
11203
11204 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11205
11206         * device-msw.c: Workaround ResetDC failure.
11207
11208         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
11209         applying a devmode.
11210
11211         * redisplay-msw.c (get_frame_dc): Added start_page_p.
11212         (mswindows_text_width): Do not start printer page.
11213
11214         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
11215
11216         * glyphs-msw.c: Added image methods to msprinter console and
11217         msprinter-specific image instantiation.
11218
11219 2000-02-20  Mike Alexander  <mta@arbortext.com>
11220
11221         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
11222         to avoid crashes when selection-sets-clipboard is on
11223         (mswindows_own_selection): ditto
11224
11225 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11226
11227         * glyphs-msw.c:
11228         * redisplay-msw.c (get_frame_dc):
11229         (get_frame_compdc):
11230         * console-msw.h:
11231         * device-msw.c (mswindows_init_device):
11232         (mswindows_delete_device):
11233         (msprinter_init_device):
11234         (msprinter_delete_device):
11235         * frame-msw.c (mswindows_init_frame_1):
11236         (mswindows_delete_frame):
11237         (msprinter_init_frame_3):
11238         (msprinter_delete_frame): Move compatible DC to device object from
11239         frame object, for both mswindows and msprinter. Only one at a time
11240         is needed, it is a real waste to have one per frame!
11241
11242 2000-02-23  Andy Piper  <andy@xemacs.org>
11243
11244         * glyphs.c: add dynamic width and height elements.
11245         (image_instance_equal): ditto.
11246
11247         * glyphs-widget.c (widget_query_geometry): calculate width and
11248         height dynamically if required.
11249         (initialize_widget_image_instance): initialize dynamic dimensions.
11250         (widget_instantiate): pick-up dynamic dimensions.
11251
11252         * glyphs.h (struct Lisp_Image_Instance): add width and height for
11253         dynamic determination. Add appropriate macros.
11254
11255         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
11256         dimensions safe.
11257         (WINDOW_GUTTER_SIZE): ditto.
11258         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
11259
11260         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
11261         inline.
11262         (get_frame_dc): ditto.
11263
11264         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
11265         here.
11266
11267 2000-02-23  Martin Buchholz <martin@xemacs.org>
11268
11269         * XEmacs 21.2.31 is released.
11270
11271 2000-02-22  Ben Wing <ben@xemacs.org>
11272
11273         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
11274
11275 2000-02-22  Andy Piper  <andy@xemacs.org>
11276
11277         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
11278
11279 2000-02-21  Mike Sperber <mike@xemacs.org>
11280
11281         * .dbxrc:
11282         * .gdbinit:
11283         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
11284         variables.
11285
11286 2000-02-21  Mike Sperber <mike@xemacs.org>
11287
11288         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
11289
11290 2000-02-21  Martin Buchholz <martin@xemacs.org>
11291
11292         * XEmacs 21.2.30 is released.
11293
11294 2000-02-20  Martin Buchholz  <martin@xemacs.org>
11295
11296         Performance hacking.
11297         * *.c (syms_of_*):
11298         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
11299         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
11300         * emacs.c (main_1):
11301         * lisp.h (DEFUN):
11302         * console.c (DEFVAR_CONSOLE_LOCAL_1):
11303         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
11304         * symeval.h (DEFVAR_SYMVAL_FWD):
11305         * symbols.c (guts_of_unbound_marker):
11306         Make all c_readonly objects also lisp_readonly and marked for life.
11307         * lrecord.h (struct lrecord_implementation):
11308         Document flags better.
11309         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
11310         * lrecord.h (DECLARE_LRECORD):
11311         * lrecord.h (XSETRECORD):
11312         * lrecord.h (RECORDP):
11313         * lrecord.h (RECORD_TYPEP):
11314         * lrecord.h (RECORD_MARKER): New.
11315         * lrecord.h (error_check_*):
11316         * lrecord.h (CONCHECK_NONRECORD):
11317         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
11318         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
11319         * lrecord.h (set_lheader_implementation):
11320         * lrecord.h (enum lrecord_type): New.
11321         * symeval.h (SYMBOL_VALUE_MAGIC_P):
11322         * alloc.c (disksave_object_finalization_1):
11323         * alloc.c (mark_object):
11324         * alloc.c (lrecord_type_index):
11325         * alloc.c (tick_lcrecord_stats):
11326         * alloc.c (Fgarbage_collect):
11327         * alloc.c (init_alloc_once_early):
11328         * alloc.c (pdump_load):
11329         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
11330         * alloc.c (lrecord_type_index): Delete.
11331         Make lisp object type indexes be constant.
11332           Makes (byte-compile) 5% faster.
11333         Put all marker functions into their own array.
11334           Makes (garbage-collect) 5% faster.
11335         Optimize SYMBOL_VALUE_MAGIC_P.
11336           Makes (byte-compile) 2-3% faster.
11337         * config.h.in (gc_checking_assert): New.
11338         * alloc.c: Use gc_checking_assert().
11339         * .dbxrc: Make compatible with new object type implementation.
11340         * .gdbinit: Make compatible with new object type implementation.
11341         * alloc.c: Delete all symbols defined only for debugging, such as
11342         Lisp_Type_Vector and lrecord_charset.
11343
11344 2000-02-21  Andy Piper  <andy@xemacs.org>
11345
11346         * gui-msw.c (Fmswindows_shell_execute): fix file location
11347         problems.
11348
11349         * buffer.c (Fkill_buffer): remove buffer from alist buffer
11350         unshowing so that set_window_buffer doesn't undo
11351         kill_buffer_hook's hard work.
11352
11353         * glyphs-widget.c (tab_control_query_geometry): don't count the
11354         first item when calculating geometry.
11355
11356         * glyphs.c (map_subwindow): remove redundant code.
11357         (update_frame_subwindows): be more circumspect about when to
11358         update subwindows.
11359
11360         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
11361         when items haven't changed. Update faces if faces have changed as
11362         well as just the widget face.
11363         (x_tab_control_update): Update faces if faces have changed as well
11364         as just the widget face.
11365
11366 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11367
11368         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
11369         registration.
11370         (build_syscolor_string): Use mswindows_color_to_string to try to
11371         get a named color.
11372         (mswindows_device_system_metrics): Reverse the foreground and
11373         background colors so that they match the documentation.
11374
11375         * objects-msw.c: (mswindows_X_color_map): tweak some values so
11376         they match the default Windows palette.
11377         (mswindows_color_to_string): New function.
11378
11379 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11380
11381         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
11382
11383 2000-02-18  Olivier Galibert  <galibert@pobox.com>
11384
11385         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
11386         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
11387
11388         * symbols.c (init_symbols_once_early): Removed obsolete
11389         DATA_SEG_BITS related kludge.
11390         (defvar_magic): Ditto.
11391
11392         * malloc.c: Removed obsolete DATA_SEG_BITS
11393         * ralloc.c: Ditto.
11394         * mem-limits.h: Ditto.
11395
11396         * Makefile.in.in: Removed obsolete HAVE_SHM
11397         * emacs.c: Ditto.
11398
11399 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11400
11401         *  device-msw.c (mswindows_delete_device): Free DDE string
11402         handles.
11403
11404 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11405
11406         * keymap.c (get_keyelt):
11407         * unexnt.c (unexec):
11408         * vm-limit.c (memory_warnings):
11409         * ntheap.c (recreate_heap):
11410         * ntheap.h (UNINIT_PTR):
11411         * select-msw.c (Fmswindows_get_clipboard):
11412         (Fmswindows_set_clipboard):
11413         * objects-msw.h (MSWINDOWS_BAD_HFONT):
11414         * objects-msw.c:
11415         * menubar-msw.c (displayable_menu_item):
11416         * glyphs-msw.c:
11417         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
11418         * sysdep.c (sys_subshell):
11419         * process-nt.c (nt_create_process):
11420         * nt.c (normalize_filename):
11421         (dostounix_filename):
11422         (unixtodos_filename):
11423         * ntproc.c (win32_executable_type):
11424         * ntplay.c (play_sound_data_1):
11425         (play_sound_file):
11426         * editfns.c (get_home_directory):
11427         * event-msw.c (struct winsock_stream):
11428         (mswindows_dde_callback):
11429         * device-msw.c (msprinter_init_device):
11430         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
11431
11432         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
11433         mswindows_clear_toolbar were swapped!
11434
11435         * objects-msw.c:(colormap_t):
11436         (fontmap_t):
11437         * emacs.c (struct standard_args): Fixed const jumble.
11438
11439         * glyphs-widget.c (update_widget): Fixed comparison notation.
11440
11441         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
11442
11443         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
11444         __declspec(noreturn) syntax.
11445
11446 2000-02-19  Martin Buchholz  <martin@xemacs.org>
11447
11448         * eldap.c (Fldap_open):
11449         (Fldap_search_basic):
11450         (Fldap_add):
11451         (Fldap_modify):
11452         Use new coding system conversion macros.
11453
11454 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
11455
11456         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
11457
11458 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
11459
11460         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
11461         (Fldap_add, Fldap_modify, Fldap_delete): New functions
11462
11463         * eldap.c (Qadd, Qreplace): New constant symbols
11464         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
11465         interruptions by XEmacs signals
11466         Remove unnecessary calls to slow_down_interrupts and
11467         speed_up_interrupts
11468         (Fldap_search_basic): Renamed from Fldap_search_internal
11469         Added new optional parameter VERBOSE that triggers the
11470         display of progress messages
11471         Remove unnecessary calls to slow_down_interrupts and
11472         speed_up_interrupts
11473         LDAP result code analysis rewritten
11474         (Fldap_add, Fldap_modify, Fldap_delete): New functions
11475         (syms_of_eldap): Define the new symbols and functions
11476
11477
11478 2000-02-17  Martin Buchholz  <martin@xemacs.org>
11479
11480         * realpath.c: Determine PATH_MAX maximally portably.
11481
11482         * insdel.c (bytecount_to_charcount): Optimize.
11483         The function used to be optimized for entirely ASCII sequences.
11484         Now it is optimized for successive characters from the same
11485         charset.  This also wins big for _mostly_ ASCII sequences.
11486
11487         * fileio.c (Ffile_truename): convert return from realpath() using
11488         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
11489         - Rewrite GCPROing slightly.
11490
11491         * sysdep.c (sys_open): Do filename conversion, like all other
11492         sys_* functions.  Fixes bug:
11493         (let ((file-name-coding-system 'iso-8859-2))
11494            (write-region x y latin2-name))
11495         ==> writes filename using internal encoding.
11496
11497 2000-02-18  Martin Buchholz  <martin@xemacs.org>
11498
11499         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
11500         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
11501         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
11502         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
11503         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
11504         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
11505         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
11506         (CONST_IF_NOT_DEBUG): Delete.
11507         * alloc.c (this_one_is_unmarkable): Delete.
11508         (mark_object): Don't check for this_one_is_unmarkable. Use the
11509         c_readonly flag instead.
11510         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
11511
11512 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11513
11514         * event-msw.c (mswindows_drain_windows_queue):
11515         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
11516         away redundant repaint events.
11517
11518 2000-02-17  Andy Piper  <andy@xemacs.org>
11519
11520         * redisplay.h: declare mark_redisplay_structs.
11521
11522         * redisplay.c (redisplay_window):
11523         (redisplay_frame): don't check subwindows_state_changed.
11524         (mark_redisplay): mark gutters here.
11525
11526         * glyphs.c: (instantiate_image_instantiator): always layout if we
11527         haven't done so already.
11528         (allocate_image_instance): don't mark as dirty.
11529         (update_subwindow): bind inhibit_quit.
11530
11531         * gutter.c (mark_gutters): new function.
11532
11533         * glyphs-x.c (x_update_widget): Always resize to get round a
11534         widget bug.
11535
11536         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
11537         breaking absolutely everything.
11538
11539         * gutter.h: declare mark_gutters.
11540
11541 2000-02-16  Martin Buchholz <martin@xemacs.org>
11542
11543         * XEmacs 21.2.29 is released.
11544
11545 2000-02-15  Olivier Galibert  <galibert@pobox.com>
11546
11547         * fns.c (size_bit_vector): Fix computation of the size.
11548
11549 2000-02-15  Martin Buchholz  <martin@xemacs.org>
11550
11551         * *.[ch]: Change CONST to const globally.
11552         find -name '*.[ch]' | \
11553         xargs global-replace \
11554         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
11555         - Remove vestigial references to CONST_IS_LOSING
11556
11557 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11558
11559         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
11560         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
11561         events instead of dispatching them directly.
11562         (mswindows_handle_paint): New function to do repainting.
11563         (mswindows_wnd_proc):
11564         (emacs_mswindows_handle_magic_event): Call above function.
11565
11566 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11567
11568         * objects-msw.c (mswindows_create_font_variant): Return the new
11569         font handle.
11570         (initialize_font_instance): Get font metrics from the underlined
11571         variant of the font to cope with the case where the underlined
11572         font has a bigger descent.
11573
11574 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
11575
11576         * gui.c (gui_item_accelerator): Return the first underlined
11577         character in item name.
11578
11579 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11580
11581         * lisp.h: Added Qprinter.
11582
11583         * general.c (syms_of_general): Initialized it.
11584
11585         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
11586         (get_frame_dc):
11587         (get_frame_compdc): Made inline.
11588
11589         * console.h (struct console_methods): Added eject_page method.
11590
11591         * frame.h: Added FRAME_DISPLAY_P and friends.
11592         Aligned backslahes in many macros in more readable fashion.
11593         Added page_number to struct frame, and an accessor macro
11594         for it.
11595
11596         * defice.h: Added DEVICE_DISPLAY_P and friends.
11597
11598         * device.c (Fdevice_printer_p): Used these.
11599
11600         * frame.c (allocate_frame_core): Initialize page number.
11601         (Fprint_job_page_number):
11602         (Fprint_job_eject_page): Implemented.
11603
11604         * frame-msw.c (msprinter_eject_page): Added method.
11605         (msprinter_start_page): Added.
11606
11607         * window.c (Fwindow_truncated_p): Fixed docstring.
11608         (Fwindow_last_line_visible_height): Implemented.
11609
11610 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
11611
11612         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
11613
11614 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
11615
11616         * syntax.c (scan_words): Always advance at least one character.
11617
11618 2000-02-13  Andy Piper  <andy@xemacs.org>
11619
11620         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
11621         to make sure the glyph is in the cachels.
11622
11623         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
11624         global image instance flag.
11625         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
11626         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
11627
11628         * glyphs.c (allocate_image_instance): set dirty bits correctly.
11629         (Fset_image_instance_property): mark layout as changed.
11630         (invalidate_glyph_geometry_maybe): mark layout as changed.
11631         (glyph_width): use new NEEDS_LAYOUT macro.
11632         (glyph_ascent): ditto.
11633         (glyph_descent): ditto.
11634         (glyph_height): ditto.
11635         (image_instance_layout): mark layout as clean after laying out.
11636         (update_subwindow): don't mark layout as clean here.
11637
11638         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
11639         should no longer be needed.
11640
11641         * glyphs-x.c (x_update_widget): sanitize asserts.
11642         (x_finalize_image_instance): sanitize assignment to widgets.
11643
11644         * glyphs-widget.c (widget_instantiate): don't need to clear the
11645         layout flag here.
11646
11647 2000-02-13  Martin Buchholz  <martin@xemacs.org>
11648
11649         * sysdep.c (getcwd): Use standard prototype.
11650         * sysdep.h (getcwd): Use standard prototype.
11651
11652         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
11653         (sequence, start, end).
11654         Remove redundant type checking.
11655         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
11656         view of `caller-protects') to avoid a crash where the real fix was
11657         found elsewhere.
11658
11659 2000-02-12  Martin Buchholz  <martin@xemacs.org>
11660
11661         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
11662
11663         * s/sol2.h: Remove feature macro initialization.
11664
11665         * alloc.c (alloc_lcrecord): Add more type checking assertions.
11666         (vector_hash): New.  Code from internal_hash.
11667         * lrecord.h:
11668         Fix up allocation subsystem comments.
11669
11670         * config.h.in: Add __EXTENSIONS__ for Solaris.
11671
11672         * systime.h (EMACS_GETTIMEOFDAY): New.
11673         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
11674         Remove Solaris-specific code.
11675         Use void* for the (ignored) second arg for gettimeofday().
11676
11677         * elhash.c (hash_table_hash): Implement it, finally.
11678         * elhash.c:  Use hashcode_t.
11679
11680         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
11681         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
11682
11683         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
11684         * fns.c (size_bit_vector):
11685         * alloc.c (size_vector):
11686         (make_vector_internal):
11687         (make_bit_vector_internal):
11688         (sweep_bit_vectors_1):
11689         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
11690
11691 2000-02-10  Martin Buchholz  <martin@xemacs.org>
11692
11693         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
11694         Include strings.h to avoid warnings for bzero and strcasecmp.
11695
11696 2000-02-10  Olivier Galibert  <galibert@pobox.com>
11697
11698         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
11699         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
11700
11701         * fns.c (size_bit_vector): New.  Declare bit vectors as a
11702         sequence.
11703
11704 2000-02-10  Olivier Galibert  <galibert@pobox.com>
11705
11706         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
11707         use a value field instead.
11708         (symbol_value_forward_forward): Use value field.
11709         (DEFVAR_SYMVAL_FWD): Use value field.
11710         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
11711         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
11712         (DEFVAR_CONST_INT): Ditto.
11713         (DEFVAR_BOOL): Ditto.
11714         (DEFVAR_CONST_BOOL): Ditto.
11715         (DEFVAR_INT_MAGIC): Ditto.
11716         (DEFVAR_BOOL_MAGIC): Ditto.
11717
11718         * symbols.c (guts_of_unbound_marker): Use value field.
11719         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
11720         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
11721
11722         * lisp.h: Declare dumpopaque and noninteractive1.
11723
11724         * alloc.c (dumpopaque): Added.
11725         (pdump_dump_opaquevec): Added.
11726         (pdump): Call pdump_dump_opaquevec to dump opaque data.
11727         (pdump_load): Reload opaque data.  Sync noninteractive1 with
11728         noninteractive.
11729
11730 2000-02-10  Andy Piper  <andy@xemacs.org>
11731
11732         * glyphs.c (image_instance_layout): if the size changes, mark it
11733         as such.
11734
11735         * redisplay-output.c (redisplay_output_layout): Update the
11736         subwindow here.
11737         (redisplay_output_subwindow): ditto.
11738
11739         * glyphs.c (update_subwindow): make sure we reset flags for
11740         layouts as well as everything else.
11741
11742         * glyphs-widget.c (layout_layout): don't need to set the instances
11743         dimensions here.
11744
11745 2000-02-09  Martin Buchholz  <martin@xemacs.org>
11746
11747         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
11748         not HAVE_DLOPEN, which is a lower-level thing.
11749
11750         * .cvsignore: Ignore gmon.out
11751
11752 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
11753
11754         * .cvsignore: Ignore portable dumper xemacs.dmp file
11755
11756 2000-02-09  Andy Piper  <andy@xemacs.org>
11757
11758         * redisplay-output.c (redisplay_output_layout): be more clever
11759         about when we output based on the changed flags.
11760
11761         * glyphs.h (struct image_instantiator_methods): add update_method.
11762         (struct Lisp_Image_Instance): add changed flags. Declare new
11763         macros for manipulating them.
11764
11765         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
11766         (image_instance_parent_glyph): find an image_instance's parent
11767         glyph or image_instance.
11768         (image_instance_layout): mark the size as changed.
11769         (set_image_instance_dirty_p): new function. mark an image
11770         instance, plus all of its parents, as dirty.
11771         (Fset_image_instance_property): use it.
11772         (Fglyph_animated_timeout_handler): use it.
11773         (update_subwindow): call update_widget and device methods for
11774         update_subwindow. Mark all changed flags as clean.
11775         (Fresize_subwindow): mark size as changed.
11776
11777         * glyphs-x.c (x_finalize_image_instance): try and detect gc
11778         failures.
11779         (x_update_subwindow): only resize subwindows here.
11780         (x_update_widget): new function. Update all changed properties of
11781         a widget.
11782         (x_resize_subwindow): deleted.
11783         (x_widget_set_property): deleted.
11784         (x_progress_gauge_set_property): deleted.
11785         (x_progress_gauge_update): new function. Implement recorded
11786         changes.
11787         (x_tab_control_update): ditto.
11788         (x_tab_control_set_property): deleted.
11789         (console_type_create_glyphs_x): declare new functions.
11790         (image_instantiator_format_create_glyphs_x): ditto.
11791
11792         * glyphs-widget.c (widget_set_property): mark text changed.
11793         (update_widget): new function. Update properties of a widget.
11794         (widget_instantiate): for layouts make sure we set their
11795         children's parent correctly.
11796         (tab_control_set_property): new function. Record changes that will
11797         take place under redisplay's control.
11798         (progress_gauge_set_property): ditto.
11799         (image_instantiator_progress_guage): declare new functions.
11800         (image_instantiator_tab_control): ditto.
11801
11802         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
11803         now.
11804         (mswindows_update_widget): new function. Update all properties on
11805         a widget that have changed.
11806         (mswindows_button_update): new function. Update a button's set
11807         state.
11808         (mswindows_tab_control_update): new function. Update the items in
11809         a tab.
11810         (mswindows_tab_control_set_property): deleted.
11811         (mswindows_progress_gauge_update): new function. Update the
11812         progress gauge's progress.
11813         (mswindows_widget_set_property): deleted. This is all done
11814         asynchronously now.
11815         (mswindows_progress_gauge_set_property): ditto.
11816         (console_type_create_glyphs_mswindows): declare new methods.
11817         (image_instantiator_format_create_glyphs_mswindows): ditto.
11818
11819         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
11820         (msprinter_set_frame_properties): ditto.
11821
11822         * console.h (struct console_methods): Add update_widget_method.
11823
11824 2000-02-09  Andy Piper  <andy@xemacs.org>
11825
11826         * gui-msw.c (Fmswindows_shell_execute): Make
11827         mswindows-shell-execute industrial strength.
11828
11829 2000-02-08  Martin Buchholz  <martin@xemacs.org>
11830
11831         * lrecord.h: Make macro argument `props' match member function `plist'.
11832         * fns.c (Fget):
11833         * fns.c (Fput):
11834         * fns.c (Fremprop):
11835         * fns.c (Fobject_plist):
11836         * alloc.c:
11837         * symbols.c:
11838         Object property list frobbing cleanup.
11839         - Allow any lisp object (compared with `eq'), not just symbols, as
11840           keys in object plists.
11841         - Move symbol plist frobbing into symbols.c, where it belongs.
11842         - Move string plist frobbing into alloc.c, where it belongs.
11843         - Everything's an lrecord now, so no need to test for symbolp, etc.
11844         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
11845
11846         * extents.c: Reorder code to remove declarations.
11847
11848         * frame.h (store_in_alist): Remove useless declaration.
11849
11850 2000-02-07  Martin Buchholz  <martin@xemacs.org>
11851
11852         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
11853         * config.h.in: Add HAVE_XCONVERTCASE.
11854
11855 2000-02-07  Andy Piper  <andy@xemacs.org>
11856
11857         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
11858         it breaks many things.
11859
11860 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
11861
11862         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
11863         actually can start a common comment type.
11864         * src/syntax.h (SYNTAX_END_P): ditto for end.
11865
11866 2000-02-07  Martin Buchholz <martin@xemacs.org>
11867
11868         * XEmacs 21.2.28 is released.
11869
11870 2000-02-06  Martin Buchholz  <martin@xemacs.org>
11871
11872         * event-Xt.c (x_keysym_to_character): New.
11873         (maybe_define_x_key_as_self_inserting_character): New.
11874         (x_has_keysym): New.
11875         Auto-define all keys on the keyboard as self-insert-key.
11876
11877 2000-02-02  Martin Buchholz  <martin@xemacs.org>
11878
11879         * menubar.c (vars_of_menubar): A small code simplification.
11880
11881         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
11882
11883         * ExternalShell.c:
11884         * ExternalClient.c:
11885         * EmacsShell-sub.c:
11886         * EmacsManager.c:
11887         * EmacsFrame.c:
11888         Use consistent style for specifying X resources.
11889
11890         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
11891         This makes (dontusethis-set-symbol-value-handler) actually usable.
11892
11893         * lrecord.h (lrecord_decription_type):
11894         * alloc.c (pdump_register_sub):
11895         (pdump_dump_data):
11896         (pdump_reloc_one):
11897         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
11898         Comply with XEmacs coding style.
11899         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
11900         args, and XD_LISP_OBJECT_ARRAY with 3 args.
11901
11902         * keymap.c (Faccessible_keymaps):
11903         Make (accessible-keymaps map "\C-h") do the Right Thing.
11904         Make (accessible-keymaps map []) do the Right Thing.
11905         Make (accessible-keymaps map "") do the Right Thing.
11906         (check_keymap_definition_loop): New function.
11907         (keymap_store_internal): Keep luser from shooting self in foot,
11908           via (define-key ctl-x-4-map "p" global-map).
11909         Remove fullness slot from struct Lisp_Keymap, since hash tables
11910         are now reliable.
11911         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
11912
11913 2000-01-30  Martin Buchholz  <martin@xemacs.org>
11914
11915         * redisplay.c (init_redisplay): Fix small memory leak.
11916         * elhash.h:
11917         * elhash.c (pdump_reorganize_hash_table):
11918         Rename from reorganize_hash_table. Change prototype.
11919         Reuse the original memory for hentries.  Save 100k.
11920         * alloc.c (PDUMP_READ): new macro.
11921         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
11922         * alloc.c: No need to #ifndef before #undef.
11923
11924         * print.c: Allow debug_print() to print readably by modifying
11925         debug_print_readably.  Use consistent variable names.
11926
11927         * .dbxrc: Try to get things to work even if stopped in a function
11928         without source available by explicitly specifying source files.
11929 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11930
11931         * unexnt.c (_start): Removed bogus code which caused loading heap
11932         from differrent executable file.
11933         Removed bogus assignment to _fmode, which caused inconsistencies.
11934
11935 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11936
11937         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
11938         Have spawnve encapsulation regard DONT_ENCAPSULATE.
11939         Do not preliminary `#define signal sigset'.
11940
11941         * systime.h: Do not prototype environ on windows nt and cygwin,
11942         this conflicts with system header.
11943
11944         * syssignal.h: Use correct define for WINDOWSNT
11945
11946         * sysdep.h: Do not prototype environ on windows nt, this conflicts
11947         with system header.
11948
11949         * sysdep.c (near start of file): Fixed commentary and rearranged
11950         ifdefs in readable order.
11951         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
11952         (start_of_text):
11953         (end_of_text):
11954         (end_of_data): Do not compile in if using PDUMP.
11955
11956         * symsinit.h: Prototyped vars_of_nt().
11957
11958         * ntproc.c (windows9x_p): Added, instead of os_subtype.
11959         (find_child_console): Use it.
11960         (sys_kill): Use it.
11961
11962         * ntheap.h: Do not extern os_subtype.
11963
11964         * ntheap.c (cache_system_info): Do not cache unneeded:
11965         nt_major_version, nt_minor_version and os_subtype.
11966         (recreate_heap): Do not compile in when PDUMPing.
11967
11968         * nt.c (geteuid and friends): Use the new varibale
11969         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
11970         (init_user_info): Removed the above mentioned hackery.
11971         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
11972         stat has been fixed in the C runtime.
11973         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
11974
11975         * file-coding.c (struct file_coding_dump): Do not define
11976         ucs_to_mule_table in the struct if not MULE.
11977         (struct struct lrecord_description fcd_description_1): Do not dump
11978         the above.
11979
11980         * emacs.c (main_1): Call vars_of_nt().
11981         (right before Fdump_emacs_data): Don't need lastfile if using both
11982         portabe dumper and system malloc.
11983
11984         * alloc.c (Fmemory_limit): Conditionalized out.
11985         (pdump): Use OPEN_BINARY for the portable dump file.
11986         (pdump_load): Ditto.
11987
11988 2000-02-02  Mike Alexander  <mta@arbortext.com>
11989
11990         * nt.c (convert_time): Set tm_isdst before calling mktime and
11991         avoid calling it at all if the compiler supports 64 bit integers.
11992         Also initialize utc_base_ft before using it.
11993
11994 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
11995
11996         * frame.c (change_frame_size_1): Take f->internal_border_width
11997         into consideration when calculating the width of the frame.
11998
11999 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12000
12001         * window.c (frame_min_height):
12002         (frame_size_valid_p):
12003         (frame_pixsize_valid_p): Added.
12004         (check_frame_size): Generalized.
12005
12006         * window.h: Prototyped the above.
12007
12008         * lisp.h:
12009         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
12010         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
12011         Deleted Vwin32_* and Vbinary_process_* unused variables.
12012
12013         * device-msw.c (msprinter_init_device): Do not get printer font
12014         list; Added DEVMODE functions.
12015
12016         * frame-msw.c: Added lots of printer code.
12017
12018         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
12019         general.c.
12020
12021         * console-msw.h: Added more msprinter device private slots.
12022
12023 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12024
12025         * event-msw.c (key_needs_default_processing_p): Added.
12026         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
12027
12028 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12029
12030         * glyphs.c (image_instance_layout): Mark image instance as clean
12031         after layout.
12032         (glyph_dirty_p): Removed redundant function.
12033         (invalidate_glyph_geometry_maybe): Added.
12034         (update_glyph_cachel_data): Call it.
12035
12036         * glyphs.h: Prototyped it.
12037
12038         * redisplay.c (add_glyph_rune): Call it.
12039         (redisplay_window): Reset glyphs cachels when frame faces have
12040         changed, thus forcing recomputation of built-in border glyphs.
12041
12042 2000-01-30  Martin Buchholz  <martin@xemacs.org>
12043
12044         * Makefile.in.in: Make portable dumper and purify play well together.
12045         Add imperfect, but better than nothing, support for pdump.
12046         Remove xemacs.dmp when temacs is re-generated.
12047         Don't ignore errors when dumping xemacs.
12048
12049         * symbols.c (maybe_call_magic_handler): Remove one magic number.
12050
12051 2000-01-28  Andy Piper  <andy@xemacs.org>
12052
12053         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
12054         (setup_normal_frame): ditto.
12055         (setup_frame_without_minibuffer): ditto.
12056         (setup_minibuffer_frame): ditto.
12057         (delete_frame_internal): ditto.
12058         (Fmake_frame_invisible): ditto.
12059         (Ficonify_frame): ditto.
12060
12061         * window.h: change Fset_window_buffer signature.
12062
12063         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
12064         (Fset_window_buffer): allow recording of buffer if the window is
12065         the selected window.
12066         (window_loop): Use new Fset_window signature.
12067
12068 2000-01-23  Daniel Pittman  <daniel@danann.net>
12069
12070         * config.h.in: Added template for `HAVE_ATHENA_3D'
12071
12072 2000-01-29  Andy Piper  <andy@xemacs.org>
12073
12074         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
12075
12076         * gutter.c (output_gutter): Don't output if the window isn't live.
12077
12078 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12079
12080         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
12081         of 01/12/00: Moved SetFocus back here where it belongs.
12082
12083 2000-01-23  Andy Piper  <andy@xemacs.org>
12084
12085         * s/cygwin32.h: declare printer things.
12086
12087 2000-01-26  Andy Piper  <andy@xemacs.org>
12088
12089         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
12090         Alexander.
12091
12092 2000-01-24  Andy Piper  <andy@xemacs.org>
12093
12094         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
12095         (mswindows_button_instantiate): Make sure glyph is a pixmap.
12096
12097         * glyphs-widget.c (widget_instantiate): Avoid shadows.
12098
12099         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
12100
12101         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
12102
12103         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
12104         (mswindows_output_display_block): Avoid local shadows.
12105
12106         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
12107         (mswindows_enqueue_mouse_button_event): ditto.
12108         (mswindows_handle_gui_wm_command): remove declaration.
12109
12110         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
12111         warnings.
12112
12113         * console-msw.h: Avoid shadows.
12114         (mswindows_get_toolbar_button_text):
12115         (emacs_mswindows_create_stream_pair):
12116         (emacs_mswindows_delete_stream_pair):
12117         (mswindows_handle_toolbar_wm_command): declare.
12118
12119         * device-msw.c (build_syscolor_string): Avoid shadows.
12120
12121 2000-01-23  Andy Piper  <andy@xemacs.org>
12122
12123         * glyphs-widget.c (widget_instantiate): reverse the items for
12124         layouts so that children are in the expected order.
12125
12126 2000-01-28  Martin Buchholz  <martin@xemacs.org>
12127
12128         * ralloc.c: safe_bcopy ==> memmove
12129         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
12130         * s/msdos.h: Remove BCOPY macros.
12131         * insdel.c (gap_right): Remove BCOPY conditional code.
12132         * insdel.c (gap_left): Remove BCOPY conditional code.
12133         XEmacs demands a working ANSI C compiler - hence memmove.
12134
12135         * regex.c (regex_compile): Remove accidental use of trigraphs.
12136
12137 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12138
12139         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
12140         event timestamp.
12141
12142 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12143
12144         * event-msw.c (mswindows_drain_windows_queue): Added the
12145         parameter.
12146         (mswindows_need_event): Commented the call to
12147         mswindows_drain_windows_queue().
12148         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
12149         only.
12150
12151         * console-msw.h: Moved a few function prototypes here from
12152         event-msw.c.
12153
12154         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
12155         parameter from unsigned short to unsigned long.
12156         (Fmswindows_shell_execute): Added return value.
12157
12158 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
12159
12160         * sysdep.c (init_system_name):
12161           process-unix.c (unix_canonicalized_host_name):
12162         Don't call freeaddrinfo() if getaddrinfo() fails.
12163
12164         * process-unix.c (unix_open_unix_network_stream):
12165         Moved the code to get a port # into address loop.
12166
12167 2000-01-27  Martin Buchholz  <martin@xemacs.org>
12168
12169         * buffer.c (reinit_vars_of_buffer):
12170         The right place to initialize conversion_in_dynarr and
12171         conversion_out_dynarr.
12172
12173         * alloc.c (pdump): Use the real open() till sys_open() is functional.
12174
12175         * process-unix.c (unix_canonicalize_host_name): Muleize.
12176         (unix_open_network_stream): Muleize.
12177
12178         * buffer.h: Fix up prototypes for ralloc.c functions.
12179
12180 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
12181         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
12182         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
12183                 instead of gethostbyname()
12184         * process-unix.c: In unix_canonicalize_host_name() and
12185                 unix_open_network_stream(), add code to use getaddrinfo()
12186                 instead of gethostbyname().
12187
12188 2000-01-27  Daniel Pittman <daniel@danann.net>
12189
12190         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
12191         libs when built with flat Athena.
12192
12193 2000-01-27  Martin Buchholz  <martin@xemacs.org>
12194
12195         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
12196         Use coding standards for function prototypes.
12197
12198 2000-01-25  Martin Buchholz  <martin@xemacs.org>
12199
12200         * dialog-msw.c (push_lisp_string_as_unicode):
12201         * doc.c (unparesseuxify_doc_string):
12202         * dired.c (Fuser_name_completion_1):
12203         * dired.c (Fuser_name_all_completions):
12204         * dired.c (free_user_cache):
12205         * dired.c (user_name_completion):
12206         * console-x.c (get_display_arg_connection):
12207         * minibuf.c (clear_echo_area_internal):
12208         * minibuf.c (echo_area_append):
12209         * eldap.c (Fldap_open):
12210         * eldap.c (Fldap_search_internal):
12211         * frame-x.c (x_set_frame_text_value):
12212         * frame-x.c (x_set_frame_properties):
12213         * frame-x.c (x_create_widgets):
12214         * redisplay-tty.c (term_get_fkeys_1):
12215         * objects-x.c (x_parse_nearest_color):
12216         * objects-x.c (x_valid_color_name_p):
12217         * objects-x.c (x_initialize_font_instance):
12218         * objects-x.c (x_list_fonts):
12219         * objects-x.c (x_find_charset_font):
12220         * tooltalk.c (Fadd_tooltalk_message_arg):
12221         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
12222         * tooltalk.c (Fadd_tooltalk_pattern_arg):
12223         * process-unix.c (unix_create_process):
12224         * ntproc.c (sys_spawnve):
12225         * sound.c (Fplay_sound_file):
12226         * sound.c (Fplay_sound):
12227         * buffer.c (init_initial_directory):
12228         * buffer.c (init_buffer):
12229         * editfns.c (init_editfns):
12230         * editfns.c (Ftemp_directory):
12231         * editfns.c (Fuser_full_name):
12232         * editfns.c (uncache_home_directory):
12233         * editfns.c (get_home_directory):
12234         * editfns.c (Fuser_home_directory):
12235         * editfns.c (Fformat_time_string):
12236         * editfns.c (Fcurrent_time_string):
12237         * gui-x.c (button_item_to_widget_value):
12238         * database.c (Fopen_database):
12239         * event-Xt.c (x_to_emacs_keysym):
12240         * event-Xt.c (x_event_to_emacs_event):
12241         * event-Xt.c (describe_event_window):
12242         * event-msw.c (mswindows_wnd_proc):
12243         * glyphs-eimage.c (jpeg_instantiate):
12244         * glyphs-eimage.c (gif_instantiate):
12245         * glyphs-eimage.c (png_instantiate):
12246         * glyphs-eimage.c (tiff_instantiate):
12247         * glyphs-x.c (xbm_instantiate_1):
12248         * glyphs-x.c (x_xbm_instantiate):
12249         * glyphs-x.c (x_xface_instantiate):
12250         * glyphs-x.c (autodetect_instantiate):
12251         * glyphs-x.c (cursor_font_instantiate):
12252         * glyphs-x.c (x_widget_instantiate):
12253         * glyphs-x.c (x_widget_set_property):
12254         * glyphs-x.c (x_widget_property):
12255         * glyphs-x.c (BUILD_GLYPH_INST):
12256         * print.c (write_string_to_stdio_stream):
12257         * print.c (output_string):
12258         * print.c (Falternate_debugging_output):
12259         * print.c (Fexternal_debugging_output):
12260         * glyphs-msw.c (extract_xpm_color_names):
12261         * glyphs-msw.c (mswindows_xpm_instantiate):
12262         * glyphs-msw.c (bmp_instantiate):
12263         * glyphs-msw.c (resource_name_to_resource):
12264         * glyphs-msw.c (mswindows_resource_instantiate):
12265         * glyphs-msw.c (xbm_instantiate_1):
12266         * glyphs-msw.c (mswindows_xbm_instantiate):
12267         * glyphs-msw.c (mswindows_xface_instantiate):
12268         * glyphs-msw.c (mswindows_widget_instantiate):
12269         * glyphs-msw.c (add_tree_item):
12270         * glyphs-msw.c (add_tab_item):
12271         * glyphs-msw.c (mswindows_combo_box_instantiate):
12272         * glyphs-msw.c (mswindows_widget_property):
12273         * glyphs-msw.c (mswindows_combo_box_property):
12274         * glyphs-msw.c (mswindows_widget_set_property):
12275         * console.c (stuff_buffered_input):
12276         * objects-msw.c (mswindows_initialize_color_instance):
12277         * objects-msw.c (mswindows_valid_color_name_p):
12278         * objects-msw.c (mswindows_list_fonts):
12279         * objects-msw.c (mswindows_font_instance_truename):
12280         * bytecode.c (optimize_compiled_function):
12281         * select-x.c (symbol_to_x_atom):
12282         * select-x.c (x_atom_to_symbol):
12283         * select-x.c (hack_motif_clipboard_selection):
12284         * select-x.c (selection_data_to_lisp_data):
12285         * select-x.c (lisp_data_to_selection_data):
12286         * select-x.c (Fx_get_cutbuffer_internal):
12287         * select-x.c (Fx_store_cutbuffer_internal):
12288         * buffer.h (TO_EXTERNAL_FORMAT): New function.
12289         * buffer.h (TO_INTERNAL_FORMAT): New function.
12290         * emacs.c (make_arg_list_1):
12291         * emacs.c (make_argc_argv):
12292         * emacs.c (main_1):
12293         * emacs.c (Fdump_emacs):
12294         * emacs.c (split_string_by_emchar_1):
12295         * file-coding.h:
12296         * lisp.h:
12297         * lstream.h:
12298         * symsinit.h:
12299         * device-x.c (x_init_device):
12300         * device-x.c (Fx_valid_keysym_name_p):
12301         * device-x.c (Fx_get_font_path):
12302         * device-x.c (Fx_set_font_path):
12303         * glyphs.c (bitmap_to_lisp_data):
12304         * glyphs.c (pixmap_to_lisp_data):
12305         * alloc.c (make_ext_string): Use coding system arguments.  Update
12306         all callers.
12307         * alloc.c (build_string):
12308         * callproc.c (child_setup):
12309         * callproc.c (init_callproc):
12310         * fileio.c (lisp_strerror):
12311         * fileio.c (directory_file_name):
12312         * fileio.c (Fexpand_file_name):
12313         * fileio.c (Ffile_truename):
12314         * fileio.c (Fsysnetunam):
12315         * fileio.c (Fdo_auto_save):
12316         * sysdep.c (sys_readdir):
12317         * tests.c: New file.  Allow adding C tests.
12318         Replace GET_* macros with a more comprehensible and flexible
12319         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
12320         Modify all calls.
12321         Any coding system can be used to do format conversion.
12322         Eliminate enum external_data_format.
12323         Eliminate convert_to_external_format.
12324         Eliminate convert_to_internal_format.
12325         Make sure file-name, keyboard, terminal, and ctext are always
12326         defined as coding systems or aliases.  Make
12327         file-name-coding-system, terminal-coding-system, and
12328         keyboard-coding-system magical variables that are equivalent to
12329         defining the corresponding coding system aliases.
12330
12331         * file-coding.c (Fcoding_system_canonical_name_p): New function.
12332         * file-coding.c (Fcoding_system_alias_p): New function.
12333         * file-coding.c (Fcoding_system_aliasee): New function.
12334         * file-coding.c (append_suffix_to_symbol): New function.
12335         * file-coding.c (dangling_coding_system_alias_p): New function.
12336         * file-coding.c (Ffind_coding_system):
12337         * file-coding.c (Fcopy_coding_system):
12338         * file-coding.c (encode_coding_no_conversion):
12339         * file-coding.c (syms_of_file_coding):
12340         * file-coding.c (vars_of_file_coding):
12341         Rewrite coding system alias code.
12342         Allow nested aliases, like symbolic links.
12343         Allow redefinition of coding system aliases.
12344         Prevent existence of dangling coding system aliases.
12345
12346         * dired.c (Fuser_name_completion_1):
12347         * dired.c (Fuser_name_all_completions):
12348         A crash would happen if user did QUIT in the middle of building
12349         user_name_cache.  Remove redundant code in mainline and unwind_protect.
12350
12351         * lisp.h:
12352         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
12353
12354         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
12355         an unsigned char *.  Update all callers.
12356
12357 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12358
12359         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
12360
12361 2000-01-25  Martin Buchholz  <martin@xemacs.org>
12362
12363         * elhash.c (hentry_description): Use more portable definition.
12364         (resize_hash_table): Initialize new hentries using
12365         xnew_array_and_zero, thereby simplifying the code.
12366
12367         * mule-charset.c (make_charset): Make sure entire object is
12368         initialized, to avoid Purify warnings.
12369
12370         * alloc.c (resize_string): Fix unlikely crash with big strings.
12371
12372 2000-01-24  Martin Buchholz  <martin@xemacs.org>
12373
12374         * realpath.c (xrealpath):
12375         Don't call getwd().
12376
12377 2000-01-25  Martin Buchholz  <martin@xemacs.org>
12378
12379         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
12380
12381 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
12382
12383         * unexelfsgi.c (unexec): Change the way we decide which segment
12384         should be extended.
12385
12386         Assumption that .bss section should be outside the PT_LOADable
12387         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
12388         it's present) is inside the 'data' segment. This would fail the
12389         test which was used to find a segment to grow and cover new
12390         heap. Instead of this assumption, I created another one - on IRIX
12391         the segment to grow should start below .bss and it's address
12392         should extent above the end of .bss. Once this segment is
12393         identified, it's grown to accommodate the new heap and new
12394         zero-length .bss section is added at the end of .data2.
12395
12396 2000-01-25  Martin Buchholz  <martin@xemacs.org>
12397
12398         * eval.c (Feval): Wrong number of arguments should use original
12399         function, not the indirect_function version of it.
12400
12401 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
12402
12403         * glyphs-x.c (x_button_instantiate): Don't add image if
12404         it is not a pixmap.
12405         (x_locate_pixmap_file): Call Fexpand_file_name when file name
12406         is relative.
12407
12408 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
12409
12410         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
12411         declaration.
12412         (DEFVAR_INT_MAGIC): Ditto.
12413         (DEFVAR_BOOL_MAGIC): Ditto.
12414         * glyphs.h: Reindent backslash.
12415
12416 2000-01-24  Martin Buchholz  <martin@xemacs.org>
12417
12418         * glyphs-widget.c (layout_query_geometry):
12419         (layout_layout): Use correct types for gheight, gwidth.
12420
12421 2000-01-24  Martin Buchholz  <martin@xemacs.org>
12422
12423         * EmacsManager.c (QueryGeometry): Purified.
12424
12425 2000-01-23  Martin Buchholz  <martin@xemacs.org>
12426
12427         * alloc.c (make_float): Make sure entire object is initialized, to
12428         avoid Purify warnings.
12429         (pdump_register_sub): Remove useless assignment.
12430         (pdump): Use xmalloc, not malloc.
12431         (pdump_load): Use xmalloc, not malloc.
12432
12433 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12434
12435         * callproc.c:
12436         * dired-msw.c:
12437         * fileio.c:
12438         * process-nt.c:
12439         * redisplay-msw.c:
12440         * sysdep.c: Removed redundant #include <windows.h>
12441
12442 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12443
12444         * frame.c (delete_frame_internal): Do not delete device when its
12445         implementation so declares.
12446         (delete_frame_internal): Set device selected frame to nil when
12447         last frame goes away.
12448
12449         * device-msw.c (msprinter_device_system_metrics): Implemented.
12450         (mswindows_device_system_metrics): Added 'device-dpi property.
12451
12452         * device.c: (Fdevice_printer_p): Added.
12453         Added 'offset-workspace device metric.
12454
12455         * console.h (device_metrics): Declared DM_offset_workspace.
12456
12457 2000-01-23  Martin Buchholz  <martin@xemacs.org>
12458
12459         * fileio.c (Ffile_truename): Remove pointless and confusing
12460         initialization of elen.
12461
12462         * glyphs-widget.c: Compiler warning fixes.
12463
12464 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
12465
12466         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
12467         instead of a Lisp_Object as argument to make it consistent with
12468         the other LIVE_P macros.
12469         (CHECK_LIVE_PROCESS): New macro.
12470
12471         * process.c: Declare Qprocess_live_p.
12472         (Fprocess_live_p): New function.
12473         (create_process): Use PROCESS_LIVE_P.
12474         (read_process_output): Ditto.
12475         (set_process_filter): Ditto.
12476         (Fdelete_process): Ditto.
12477         (kill_buffer_processes): Ditto
12478         (process_send_signal): Use CHECK_LIVE_PROCESS.
12479         (Fprocess_input_coding_system): Check whether process is still
12480         alive (fix PR#1061).
12481         (Fprocess_output_coding_system): Ditto.
12482         (Fprocess_coding_system): Ditto.
12483         (Fset_process_input_coding_system): Ditto.
12484         (Fset_process_output_coding_system): Ditto.
12485
12486 2000-01-23  Andy Piper  <andy@xemacs.org>
12487
12488         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
12489         layout and widget.
12490
12491         * glyphs.c (mark_image_instance): take into account changed
12492         image_instance format.
12493         (image_instance_equal): ditto.
12494         (image_instance_hash): ditto.
12495
12496         * glyphs-widget.c (widget_instantiate): Incorporate layout
12497         instantiation here. Delay layout of the layout until later.
12498         (layout_instantiate): deleted.
12499         (layout_query_geometry): new function. get the geometry of a
12500         layout.
12501         (layout_layout): layout a layout dynamically.
12502         (image_instantiator_widget): New function - splitting up
12503         image_instantiator_format_create_glyphs_widget for netwinder
12504         compilation.
12505         (image_instantiator_buttons):
12506         (image_instantiator_edit_fields):
12507         (image_instantiator_combo_box):
12508         (image_instantiator_scrollbar):
12509         (image_instantiator_progress_guage):
12510         (image_instantiator_tree_view):
12511         (image_instantiator_tab_control):
12512         (image_instantiator_labels):
12513         (image_instantiator_layout): ditto.
12514         (image_instantiator_format_create_glyphs_widget): Call preceding
12515         functions.
12516
12517 2000-01-22  Martin Buchholz  <martin@xemacs.org>
12518
12519         * process.c (Fset_process_coding_system):
12520         * device-x.c (Fx_keysym_hash_table):
12521         Docstring fixes.
12522
12523         * lstream.c (Lstream_write): Return documented value, not 0.
12524
12525         * fileio.c (directory_file_name):
12526         (Fsubstitute_in_file_name):
12527         (Fsubstitute_insert_file_contents_internal):
12528         (Fwrite_region_internal):
12529         * emacs.c:
12530         * sysdep.c:
12531         * getloadavg.c:
12532         * systty.h:
12533         Remove vestigial APOLLO-conditional code.
12534
12535 2000-01-21  Martin Buchholz  <martin@xemacs.org>
12536
12537         * getpagesize.h: Add guard macros.
12538         * libsst.h: Add guard macros.
12539         * libst.h: Add guard macros.
12540         * line-number.h: Add guard macros.
12541         * ndir.h: Add guard macros.
12542         * sysfloat.h: Add guard macros.
12543         * sysfile.h: Add guard macros.
12544         * sysproc.h: Add guard macros.
12545         * syswait.h: Add guard macros.
12546         * xintrinsic.h: Add guard macros.
12547         * xintrinsicp.h: Add guard macros.
12548         * xmmanager.h: Add guard macros.
12549         * xmmanagerp.h: Add guard macros.
12550         * xmprimitive.h: Add guard macros.
12551         * xmu.h: Add guard macros.
12552         * gpmevent.h: Add copyright statement. Add guard macros.
12553         * miscplay.h: Add guard macros.
12554         * *.h: Use consistent C-standards-approved guard macro names.
12555
12556         * opaque.c (make_opaque): Switch parameter order.
12557         * opaque.h (make_opaque): Switch parameter order.
12558         Update all callers.
12559         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
12560
12561         * config.h.in (type_checking_assert): Added.
12562         (bufpos_checking_assert): Added.
12563
12564 2000-01-21  Martin Buchholz  <martin@xemacs.org>
12565
12566         * alloc.c: Harmless pdump changes.
12567         - Use countof().
12568         - spell alignment correctly.
12569         * sysdep.c: Use countof()
12570
12571 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12572
12573         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
12574         initially_selected_for_input() console method, default to 0.
12575         (semi_canonicalize_console_connection): Try to delegate to
12576         canonicalize_console_connection if no such console method.
12577         (canonicalize_console_connection): Vice versa.
12578         (print_console): Do not print nil connection.
12579
12580         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
12581         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
12582         (XDEVIMPF_FRAMELESS_OK): Added.
12583         (CONSOLE_INHERITS_METHOD): Added.
12584
12585         * console-msw.c (mswindows_canonicalize_console_connection):
12586         Added.
12587         (mswindows_canonicalize_device_connection): Added.
12588
12589         * console-msw.h (struct msprinter_device): Added this struct and
12590         accessor macros.
12591         (mswindows_device): Made fontlist a lisp object.
12592
12593         * device.c (semi_canonicalize_device_connection):  Try to delegate
12594         to canonicalize_device_connection if no such console method.
12595         (canonicalize_device_connection): Vice versa.
12596         (print_device): Do not print nil connection.
12597
12598         * device-msw.c (mswindows_init_device): Call InitCommonControls
12599         when have widgets.
12600         (mswindows_delete_device): Removed fontlist deallocation.
12601         (mswindows_mark_device): Added.
12602
12603         * events.c (event_equal): Added abort() at unreached code.
12604         (event_hash): Ditto.
12605
12606         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
12607         fallback tags of Windows devices.
12608
12609         * general.c (syms_of_general): Initialized Qmsprinter.
12610
12611         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
12612         of fallback tags of Windows devices.
12613
12614         * lisp.h: Declared Qmsprinter.
12615
12616         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
12617         of strings.
12618         (mswindows_list_fonts): Ditto.
12619         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
12620         that it can be used by both mswindows and msprinter devices.
12621         (initialize_font_instance): Added.
12622         (mswindows_initialize_font_instance): Use it.
12623         (msprinter_initialize_font_instance): Added.
12624
12625         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
12626         and implementation flags check.
12627         (redisplay_without_hooks): Changed the call to the above.
12628         (Fredraw_device): Ditto.
12629         (Fredisplay_device): Ditto.
12630
12631         * redisplay-msw.c (get_frame_dc): Implemented.
12632         (get_frame_compdc): Implemented.
12633         (many functions): Use the two functions above to get device
12634         contexts, ether for a window or a printer.
12635
12636 2000-01-21  Olivier Galibert  <galibert@pobox.com>
12637
12638         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
12639         initialization here.
12640         (init_symbols_once_early): Call it.
12641         * emacs.c (main_1): Call it.
12642         * symsinit.h: Declare it.
12643
12644 2000-01-19  Olivier Galibert  <galibert@pobox.com>
12645
12646         * alloc.c: Use a lrecord_header * in the backtrace instead of a
12647         Lisp_Object.
12648         (pdump_backtrace): Ditto.
12649         (pdump_register_object): Ditto.  Cleanup use of the pointers.
12650         (pdump_get_entry): Abort if trying to register a null pointer.
12651         (pdump_dump_data): Cleanup types when relocating.
12652         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
12653         (pdump_dump_rtables): Remove bad casts.
12654         (pdump_load): Cleanup relocation w.r.t union type.  Use a
12655         Lisp_Object instead of a EMACS_INT for the hashtable
12656         reorganization.
12657
12658 2000-01-20  Martin Buchholz  <martin@xemacs.org>
12659
12660         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
12661
12662         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
12663
12664         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
12665
12666         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
12667
12668 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12669
12670         * faces.h (FACE_STRIKETHRU_P): Added.
12671
12672         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
12673         of font variants.
12674
12675         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
12676         (mswindows_set_dc_font): New function, aware of font variants,
12677         separated from mswindows_update_dc.
12678
12679         * objects-msw.h (struct mswindows_font_instance_data): Added
12680         definition.
12681
12682         * objects-msw.c (mswindows_finalize_font_instance): Delete all
12683         cached fonts and the data structure.
12684         (mswindows_initialize_font_instance): Added creation of font data
12685         structure.
12686         (mswindows_print_font_instance): Print at least something.
12687         (mswindows_create_font_variant): Implemented.
12688         (mswindows_get_hfont): Implemented.
12689
12690 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
12691
12692         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
12693         prototyping problem with msvc.
12694
12695         * emacs.c (main_1): added syms_of_gui_mswindows() call
12696
12697         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
12698         syms_of_gui_mswindows() function
12699
12700         * symsinit.h: added the prototype for syms_of_gui_mswindows()
12701
12702 2000-01-18  Martin Buchholz <martin@xemacs.org>
12703
12704         * XEmacs 21.2.27 is released.
12705
12706 2000-01-18  Martin Buchholz  <martin@xemacs.org>
12707
12708         * glyphs-eimage.c (struct tiff_error_struct):
12709         (tiff_error_func):
12710         (tiff_warning_func):
12711         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
12712
12713         * unexmips.c:
12714         * unexhp9k3.c:
12715         * unexfreebsd.c:
12716         * unexec.c: Remove vestigial Lucid C code.
12717         * unexalpha.c:
12718         * unexaix.c:
12719         * termcap.c:
12720         * libsst.c: Ansify.
12721         Remove declarations of errno and strerror().
12722
12723         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
12724
12725         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
12726
12727 2000-01-16  Martin Buchholz  <martin@xemacs.org>
12728
12729         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
12730         Optimize.
12731
12732 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
12733
12734         * md5.c:
12735         * file-coding.c:
12736         * file-coding.h:
12737         Change enum eol_type to eol_type_t.
12738
12739 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
12740
12741         * gui.c (get_gui_callback): Check cons before accessing car.
12742
12743 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
12744
12745         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
12746         (XSETSPECIFIER_TYPE): Ditto.
12747
12748 2000-01-17  Didier Verna  <didier@xemacs.org>
12749
12750         * redisplay.c (generate_fstring_runes): compute string size in
12751         characters, not bytes.
12752
12753 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
12754
12755         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
12756
12757 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
12758
12759         * print.c (print_error_message): Call print_prepare().
12760
12761 2000-01-14  Martin Buchholz  <martin@xemacs.org>
12762
12763         * .dbxrc: Renamed from dbxrc.
12764
12765         * events.c (event_to_character):
12766         Use `assert (foo)' instead of `if (!foo) abort()'
12767
12768         * .gdbinit (xtype): Add documentation.
12769         * .gdbinit (check-temacs): New function.
12770         * .gdbinit (check-xemacs): New function.
12771         * dbxrc (check-xemacs): New function.
12772         * dbxrc (check-xemacs): New function.
12773
12774 2000-01-14  Andy Piper  <andy@xemacs.org>
12775
12776         * glyphs-widget.c (widget_query_geometry): Make sure that we
12777         calculate default dimensions correctly.
12778
12779 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12780
12781         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
12782
12783         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
12784         pdump_wire'd variable.
12785
12786         * emacs.c: (main_1): Conditionalized calls to
12787         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
12788
12789 2000-01-13  Martin Buchholz  <martin@xemacs.org>
12790
12791         * window.c (Fset_window_configuration):
12792         * sysdep.c (_start):
12793         * input-method-motif.c (res):
12794         * event-Xt.c (Xt_process_to_emacs_event):
12795         Simple compiler warning fixes.
12796
12797         * bytecode.c (funcall_compiled_function): Use the original
12798         function symbol on the backtrace list in preference to the
12799         compiled_function object in error messages.
12800
12801 2000-01-13  Andy Piper  <andy@xemacs.org>
12802
12803         * glyphs-x.c (update_widget_face): Make sure we update the widget
12804         background as well as foreground.
12805
12806 2000-01-13  Andy Piper  <andy@xemacs.org>
12807
12808         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
12809         fields to subwindow.
12810         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
12811         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
12812         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
12813         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
12814
12815         * glyphs-widget.c (check_valid_tab_orientation): new function.
12816         (initialize_widget_image_instance): zero orientation and
12817         justification.
12818         (widget_instantiate): pick up orientation.
12819         (tab_control_query_geometry): return appropriate values for
12820         vertical tabs.
12821
12822         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
12823         appropriate creation flags for left, right and bottom tabs.
12824
12825         * s/cygwin32.h: add tab definitions.
12826
12827 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12828
12829         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
12830         frame upon hiding a subwindow.
12831         (mswindows_button_instantiate): Changed the push button style to
12832         BS_PUSHBUTTON.
12833         (mswindows_button_instantiate): Removed button BS_NOTIFY
12834         style.
12835         (mswindows_button_instantiate): Removed redundant check for
12836         a disabled gui item.
12837         (mswindows_button_instantiate): Made use of WS_TABSTOP
12838         consistent: "operable" controls (edit, button, tree, scroll) have
12839         this style, "display-only" ones (static, progress gauge) do
12840         not. This style is currently ignored by XEmacs though. Also,
12841         removed the WS_EX_CONTROLPARENT style - it is not for children,
12842         it is for their parents!
12843         (mswindows_edit_field_instantiate): Ditto.
12844         (mswindows_progress_gauge_instantiate): Ditto.
12845         (mswindows_tree_view_instantiate): Ditto.
12846         (mswindows_tab_control_instantiate): Ditto.
12847         (mswindows_scrollbar_instantiate): Ditto.
12848         (mswindows_combo_box_instantiate): Ditto.
12849         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
12850         style to the "clip" window.
12851         (mswindows_button_instantiate): Removed compilation warning by
12852         equally typing terms of the ?: operator.
12853
12854 2000-01-12  Didier Verna  <didier@xemacs.org>
12855
12856         * redisplay.c (generate_fstring_runes): new parameter holding the
12857         last modeline-format extent.
12858         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
12859         extent, fill the glyph block with it.
12860         (generate_fstring_runes): handle these parameters.
12861         (generate_formatted_string_db): ditto.
12862
12863         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
12864         glyphs'extents in the modeline.
12865
12866 1999-01-11  Mike Woolley  <mike@bulsara.com>
12867
12868         * ntheap.c: Reduced the reserved heap space from 1Gb down to
12869         256Mb, as a workaround for the non-starting problem many people
12870         have experienced.
12871
12872 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
12873
12874         * console-tty.c (Fset_console_tty_output_coding_system):
12875         Force redrawing tty frame.
12876
12877 2000-01-10  Didier Verna  <didier@xemacs.org>
12878
12879         * redisplay.c (generate_fstring_runes): fix size computation bug.
12880
12881 2000-01-09  William M. Perry <wmperry@aventail.com>
12882
12883         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
12884
12885 2000-01-09  Andy Piper  <andy@xemacs.org>
12886
12887         * glyphs-msw.c: index -> i to avoid shadows.
12888         (xbm_create_bitmap_from_data): make static.
12889         (check_valid_string_or_int): deleted.
12890         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
12891
12892         * glyphs-x.c (x_update_subwindow): remove unused args.
12893
12894         * glyphs.c (glyph_image_instance): return the thing. Don't set the
12895         back pointer - this is done in allocate_image_instance.
12896         (query_string_font): return Qnil to make the compiler happy.
12897         (unmap_subwindow): set to ~0 to make the compiler happy.
12898         (glyph_query_geometry): comment out until used.
12899         (glyph_layout): ditto.
12900
12901 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
12902
12903         * insdel.c (signal_after_change): Remove extraneous unbind_to().