update.
[chise/xemacs-chise.git] / src / ChangeLog
1 2002-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2
3         * mule-charset.c (charset_code_point): Fix problem about
4         inheritance.
5
6 2002-11-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
7
8         * mule-charset.c (decode_builtin_char): Reorganized.
9
10 2002-10-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
11
12         * text-coding.c (char_encode_shift_jis): Modify for
13         `charset_code_point'.
14         (char_encode_big5): Likewise.
15         (char_encode_utf8): Likewise.
16         (char_encode_iso2022): Likewise.
17
18         * mule-charset.c (charset_code_point): Add new argument
19         `defined_only'.
20         (Fencode_char): Add new optional argument `defined_only'.
21
22         * chartab.c (put_char_table): Modify for `charset_code_point'.
23         (map_char_table): Likewise.
24
25         * char-ucs.h (charset_code_point): Add new argument
26         `defined_only'.
27         (encode_char_1): Modify for `charset_code_point'.
28
29 2002-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
30
31         * mule-charset.c (complex_vars_of_mule_charset): Don't specify
32         `MIN_CHAR_THAI' and `MAX_CHAR_THAI' for `thai-tis620'.
33
34 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
35
36         * mule-charset.c (Vcharset_jis_x0208): New variable in UTF-2000.
37         (Qjis_x0208): Likewise.
38         (decode_builtin_char): Prefer XCHARSET_MAX_CODE(charset) than
39         XCHARSET_FINAL(charset).
40         (charset_code_point): Modify condition for final-byte based
41         builtin-chars.
42         (syms_of_mule_charset): Add new symbol `=jis-x0208' in UTF-2000.
43         (complex_vars_of_mule_charset): Add new coded-charset `=jis-x0208'
44         in UTF-2000; specify `=jis-x0208' as the mother of
45         `japanese-jisx0208-1978', `japanese-jisx0208' and
46         `japanese-jisx0208-1990' in UTF-2000.
47
48 2002-10-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
49
50         * char-ucs.h (LEADING_BYTE_JIS_X0208): New macro.
51
52 2002-07-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
53
54         * mule-charset.c (charset_code_point): If CHARSET_CONVERSION is
55         CONVERSION_IDENTICAL, identical conversion is used even if a CCS
56         is ISO-2022 style; instead of it, CONVERSION_94, CONVERSION_96,
57         CONVERSION_94x94, CONVERSION_96x96, CONVERSION_94x94x94,
58         CONVERSION_96x96x96, CONVERSION_94x94x94x94 and
59         CONVERSION_96x96x96x96 are introduced.
60         (complex_vars_of_mule_charset): Specify CONVERSION_96 instead of
61         CONVERSION_IDENTICAL for thai-tis620; Specify CONVERSION_94x94
62         instead of CONVERSION_IDENTICAL for japanese-jisx0208-1990.
63
64         * char-ucs.h (CONVERSION_94): New macro.
65         (CONVERSION_96): New macro.
66         (CONVERSION_94x94): New macro.
67         (CONVERSION_96x96): New macro.
68         (CONVERSION_94x94x94): New macro.
69         (CONVERSION_96x96x96): New macro.
70         (CONVERSION_94x94x94x60): New macro.
71         (CONVERSION_94x94x94x94): New macro.
72         (CONVERSION_96x96x96x96): New macro.
73
74 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
75
76         * lisp.h: Add an EXFUN for `Fchar_ref_p'.
77
78         * fns.c (Qideographic_structure): New variable.
79         (Qkeyword_char): New variable.
80         (ids_format_unit): New function.
81         (Fideographic_structure_to_ids): New function.
82         (syms_of_fns): Add new symbols `ideographic-structure' and
83         `:char'; add new builtin function `ideographic-structure-to-ids'.
84
85         * data.c (Fchar_ref_p): New function.
86         (syms_of_data): Add new builtin function `char-ref-p'.
87
88         * chartab.h: Add an EXFUN for `Ffind_char'.
89
90 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
91
92         * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
93         and `COMPOSE_ADD_CHAR'.
94         (decode_coding_iso2022): Use `decode_flush_er_chars'.
95
96 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
97
98         * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
99         instead of `DECODE_ADD_UCS_CHAR'.
100         (COMPOSE_ADD_CHAR): Likewise.
101
102 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
103
104         * text-coding.c (decode_flush_er_chars): New inline function.
105         (decode_add_er_char): New function.
106         (decode_coding_utf8): Use `decode_flush_er_chars' and
107         `decode_add_er_char'.
108
109 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
110
111         * text-coding.c (decode_coding_utf8): Flush for er_buf must be
112         done before `decode_output_utf8_partial_char'.
113
114         * mule-charset.c (complex_vars_of_mule_charset): Specify
115         `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
116         `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
117
118 2002-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
119
120         * mule-charset.c (decode_defined_char): New function; search
121         mother.
122         (decode_builtin_char): Don't search mother if
123         XCHARSET_MAX_CODE(charset) == 0.
124         (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
125         == 0 even if code >= XCHARSET_MAX_CODE(charset).
126         (Fdecode_char): Use `decode_defined_char' instead of
127         `DECODE_DEFINED_CHAR'.
128         (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
129         mother of `Vcharset_ucs_jis'.
130
131         * text-coding.c (decode_coding_big5): Use `decode_defined_char'
132         instead of `DECODE_DEFINED_CHAR'.
133
134         * char-ucs.h (decode_defined_char): Renamed from
135         `DECODE_DEFINED_CHAR'; changed to normal function.
136         (DECODE_CHAR): Use `decode_defined_char' instead of
137         `DECODE_DEFINED_CHAR'.
138
139         * lisp.h: Add `EXFUN' for `Fstring_to_number'.
140
141 2002-07-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
142
143         * char-ucs.h: Add `extern' for `Vcharset_ucs'.
144
145         * text-coding.c (Vcoded_charset_entity_reference_alist): New
146         variable.
147         (Quse_entity_reference): New variable.
148         (Qd): New variable.
149         (Qx): New variable.
150         (QX): New variable.
151         (coding_system_description): Add description for
152         `ccs_priority_list'.
153         (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
154         (allocate_coding_system): Initialize `ccs_priority_list' in
155         UTF-2000.
156         (Fmake_coding_system): Add description about
157         'use-entity-reference; setup
158         CODING_SYSTEM_USE_ENTITY_REFERENCE(codesys).
159         (Fcoding_system_property): Accept `disable-composition' and
160         `use-entity-reference' in UTF-2000.
161         (struct decoding_stream): Add new member `er_counter' and `er_buf'
162         in UTF-2000.
163         (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
164         (decode_coding_utf8): Decode entity-reference if
165         CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
166         (char_encode_utf8): Encode non-Unicode characters as
167         entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
168         (str->codesys).
169         (syms_of_file_coding): Add new symbols `use-entity-reference',
170         `d', `x', `X'.
171         (vars_of_file_coding): Add new variable
172         `coded-charset-entity-reference-alist'.
173         (complex_vars_of_file_coding): Declare `disable-composition' and
174         `use-entity-reference' to be coding-system-properties in UTF-2000.
175
176         * file-coding.h (struct Lisp_Coding_System): Add new member
177         `use_entity_reference' and `ccs_priority_list'.
178         (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
179         (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
180         (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
181
182 2002-02-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
183
184         * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
185
186 2002-02-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
187
188         * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
189         `XCHARSET_GRAPHIC(ccs)'.
190
191 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
192
193         * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
194         for decoding-table.
195
196 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
197
198         * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
199         instead of `XCHARSET_CHARS'.
200
201 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
202
203         * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
204         (XCHARSET_BYTE_SIZE): Likewise.
205
206         * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
207         mule-charset.c].
208         (XCHARSET_BYTE_SIZE): Likewise.
209
210 2002-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
211
212         * char-ucs.h (decoding_table_check_elements): Delete prototype.
213         (get_ccs_octet_table): New inline function.
214         (put_ccs_octet_table): Likewise.
215         (decoding_table_put_char): Use `get_ccs_octet_table' and
216         `put_ccs_octet_table'.
217         (decoding_table_remove_char): Use `decoding_table_put_char'.
218         (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
219
220         * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
221         into encoding_table.
222         (make_charset): Use Qunbound instead Qnil as initial value of
223         decoding_table.
224
225 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
226
227         * mule-charset.c (put_char_ccs_code_point): Modify for
228         `decoding_table_remove_char' and `decoding_table_put_char'.
229         (remove_char_ccs): Modify for `decoding_table_remove_char'.
230
231         * char-ucs.h (decoding_table_remove_char): Change arguments to
232         hide decoding_table vector.
233         (decoding_table_put_char): Likewise.
234
235 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
236
237         * mule-charset.c (decoding_table_remove_char): Moved to
238         char-ucs.h.
239         (decoding_table_put_char): Likewise.
240
241         * char-ucs.h (decoding_table_check_elements): New prototype [moved
242         from mule-charset.c].
243         (decoding_table_remove_char): New inline function [moved from
244         mule-charset.c].
245         (decoding_table_put_char): Likewise.
246
247 2002-04-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
248
249         * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
250         instead of `DECODE_CHAR' for mother; don't use special code for
251         chinese-big5 to use code space of chinese-big5-1 and
252         chinese-big5-2.
253         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
254         `MAX_CHAR_BIG5_CDP' for chinese-big5.
255
256         * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
257         (MAX_CHAR_BIG5_CDP): Revival.
258
259 2002-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
260
261         * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
262         the XLFD registry-encoding name of `chinese-big5'.
263
264 2002-04-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
265
266         * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
267         (Qchinese_big5_cdp): Deleted.
268         (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
269         (complex_vars_of_mule_charset): Delete coded-charset
270         `chinese-big5-cdp'.
271
272         * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
273         (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
274         `CHARSET_ID_OFFSET - n' for private CCS.
275         (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
276         (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
277         of `MIN_LEADING_BYTE'.
278         (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
279         `(CHARSET_ID_OFFSET - 97)'.
280         (MIN_CHAR_BIG5_CDP): Deleted.
281         (MAX_CHAR_BIG5_CDP): Deleted.
282
283 2002-01-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
284
285         * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
286         extension.
287
288 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
289
290         * mule-charset.c (decode_builtin_char): Support mother charsets.
291
292 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
293
294         * mule-charset.c (Q94x94x60): New variable.
295         (charset_code_point): Support conversion `94x94x60'.
296         (Fmake_charset): Likewise.
297         (syms_of_mule_charset): Add new symbol `94x94x60'.
298
299         * char-ucs.h (CONVERSION_94x94x60): New macro.
300
301 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
302
303         * mule-charset.c (charset_code_point): Unify code about
304         `code-offset'.
305
306 2001-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
307
308         * mule-charset.c (charset_code_point): Merge code about builtin
309         characters into code about mother charsets; don't use
310         `range_charset_code_point'.
311         (range_charset_code_point): Deleted.
312
313 2001-12-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
314
315         * mule-charset.c (Qcode_offset): New variable.
316         (Fmake_charset): Use `XUINT' to get value of `min-code' and
317         `max-code'; accept new property `code-offset'.
318         (syms_of_mule_charset): Add new symbol `code-offset'.
319
320 2001-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
321
322         * mule-charset.c (range_charset_code_point): Fixed.
323
324 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
325
326         * mule-charset.c (decode_builtin_char): Change semantics of
327         code-offset of coded-charset.
328         (charset_code_point): Likewise.
329         (range_charset_code_point): Likewise.
330         (complex_vars_of_mule_charset): Modify for the change.
331
332 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
333
334         * mule-charset.c (Fencode_char): Reverse arguments.
335
336         * mule-charset.c (charset_code_point): Fixed.
337
338 2001-12-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
339
340         * mule-charset.c (Vcharset_mojikyo): Deleted.
341         (Vcharset_mojikyo_2022_1): Deleted.
342         (Vcharset_mojikyo_pj_{1..21}): Deleted.
343         (Qmin_code): New variable in UTF-2000.
344         (Qmax_code): Likewise.
345         (Qmother): Likewise.
346         (Qconversion): Likewise.
347         (Q94x60): Likewise.
348         (Qmojikyo): Deleted.
349         (Qmojikyo_2022_1): Deleted.
350         (Qmojikyo_pj_{1..22}): Deleted.
351         (mark_charset): Mark `cs->mother'.
352         (charset_description): Add description for `mother'.
353         (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
354         new arguments `mother' and `conversion'; use
355         `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
356         (charset_code_point): Moved from char-ucs.h; support `mother'
357         charset feature.
358         (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
359         of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
360         (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
361         UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
362         allow 2 as the value of `graphic' in UTF-2000; add new properties
363         `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
364         require `final' in UTF-2000; modify for `make_charset'.
365         (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
366         instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
367         (Fcharset_property): Support `mother', `min-code' and `max-code'.
368         (Fencode_char): New function.
369         (syms_of_mule_charset): Add new builtin function `encode-char' in
370         UTF-2000; add new symbols `min-code', `max-code', `mother',
371         `conversion' and `94x60'; delete symbols `mojikyo',
372         `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
373         (complex_vars_of_mule_charset): Modify for `make_charset' change;
374         delete coded-charsets `mojikyo', `mojikyo-2022-1' and
375         `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
376
377         * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
378         `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
379
380         * char-ucs.h (Vcharset_mojikyo): Deleted.
381         (Vcharset_mojikyo_2022_1): Deleted.
382         (LEADING_BYTE_MOJIKYO): Deleted.
383         (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
384         (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
385         (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
386         (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
387         add new member `mother'; add new member `conversion'.
388         (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
389         (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
390         (CHARSET_MOTHER): New macro.
391         (CHARSET_CONVERSION): New macro.
392         (CONVERSION_IDENTICAL): New macro.
393         (CONVERSION_94x60): New macro.
394         (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
395         (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
396         (XCHARSET_MOTHER): New macro.
397         (XCHARSET_CONVERSION): New macro.
398         (MIN_CHAR_MOJIKYO): Deleted.
399         (MAX_CHAR_MOJIKYO): Deleted.
400         (DECODE_MOJIKYO_2022): Deleted.
401         (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
402         (charset_code_point): Changed to non-inline function.
403         (encode_char_1): Use `charset_code_point'.
404         (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
405
406 2001-12-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
407
408         * lread.c (read_compiled_function): Fix prototype.
409         (read_vector): Likewise.
410
411 2001-12-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
412
413         * lrecord.h (struct lrecord_header): Delete `older'.
414         (set_lheader_implementation): Delete code for `older'.
415         (set_lheader_older_implementation): Deleted.
416         (enum lrecord_type): Delete `lrecord_type_char_id_table'.
417         (OLDER_RECORD_P): Deleted.
418         (OLDER_RECORD_HEADER_P): Deleted.
419         (alloc_older_lcrecord): Deleted.
420         (alloc_older_lcrecord_type): Deleted.
421
422         * alloc.c (all_older_lcrecords): Deleted.
423         (alloc_older_lcrecord): Deleted.
424         (disksave_object_finalization_1): Delete code for older objects.
425         (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
426         (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
427
428 2001-12-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
429
430         * mule-charset.c (decoding_table_put_char): Use `make_vector'
431         instead of `make_older_vector'.
432         (put_char_ccs_code_point): Likewise.
433         (mark_charset): Mark `cs->decoding_table'.
434         (Fset_charset_mapping_table): Don't use `make_vector_newer'.
435
436         * lisp.h (make_older_vector): Deleted.
437         (make_vector_newer): Deleted.
438
439         * config.h.in (HAVE_GGC): Deleted.
440
441         * alloc.c (make_older_vector): Deleted.
442         (make_vector_newer_1): Deleted.
443         (make_vector_newer): Deleted.
444
445 2001-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
446
447         * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
448         (Qideograph_daikanwa_2): New variable.
449         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
450         (complex_vars_of_mule_charset): Add new coded-charset
451         `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
452         `LEADING_BYTE_DAIKANWA'.
453
454         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
455         (LEADING_BYTE_DAIKANWA_1): New macro.
456         (LEADING_BYTE_DAIKANWA_2): New macro.
457         (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
458
459 2001-12-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
460
461         * mule-charset.c (complex_vars_of_mule_charset): Change
462         DOC-strings and registry of `ideograph-daikanwa'; now it indicates
463         the second revised version.
464
465 2001-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
466
467         * mule-charset.c (Vcharset_ucs_smp): New variable.
468         (Vcharset_ucs_sip): New variable.
469         (Qucs_smp): New variable.
470         (Qucs_sip): New variable.
471         (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
472         MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
473         (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
474         (complex_vars_of_mule_charset): Modify middle-DOC and registry of
475         `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
476         charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
477
478         * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
479         (LEADING_BYTE_UCS_SIP): New macro.
480         (MIN_CHAR_SMP): New macro.
481         (MAX_CHAR_SMP): New macro.
482         (MIN_CHAR_SIP): New macro.
483         (MAX_CHAR_SIP): New macro.
484
485 2001-11-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
486
487         * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
488         utf-2000.
489
490 2001-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
491
492         * mule-charset.c (put_char_ccs_code_point): Return canonicalized
493         value; don't store value into `encoding_table' of `Lisp_Charset'.
494         (mark_charset): `encoding_table' was deleted.
495         (charset_description): Likewise.
496         (make_charset): Likewise.
497         (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
498         `put_char_ccs_code_point'.
499
500         * chartab.h (Fput_char_attribute): New EXFUN.
501
502         * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
503         is unified with normal symbol space.
504         (Fget_char_attribute): Likewise.
505         (Fput_char_attribute): Likewise; behavior of
506         `put_char_ccs_code_point' is changed.
507
508         * char-ucs.h: Include "elhash.h".
509         (Vchar_attribute_hash_table): New external variable.
510         (struct Lisp_Charset): Delete `encoding_table'.
511         (CHARSET_ENCODING_TABLE): New implementation; refer
512         `Vchar_attribute_hash_table' instead of `encoding_table' of struct
513         `Lisp_Charset'.
514
515 2001-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
516
517         * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
518         (cs) == 0.
519
520 2001-11-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
521
522         * text-coding.c (char_encode_big5): Prefer charset-g1 than
523         `chinese-big5'.
524
525 2001-11-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
526
527         * chartab.c (uint8_byte_table_description): New constant.
528         (uint8-byte-table): Use `uint8_byte_table_description'.
529         (uint16_byte_table_description): New constant.
530         (uint16-byte-table): Use `uint16_byte_table_description'.
531
532 2001-10-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
533
534         * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
535         range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
536
537 2001-10-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
538
539         * mule-charset.c (Vcharset_ucs_ks): New variable.
540         (Qucs_ks): New variable.
541         (syms_of_mule_charset): Add new symbol `ucs-ks'.
542         (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
543
544         * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
545
546 2001-10-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
547
548         * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
549         (Fdecode_char): Likewise.
550
551         * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
552         chartab.h.
553         (Fdefine_char): Modify for Fdecode_char.
554         (Ffind_char): Likewise.
555
556         * mule-charset.c (Fdecode_char): Add new optional argument
557         `defined-only'.
558         (Fdecode_builtin_char): Modify for `Fdecode_char'.
559
560 2001-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
561
562         * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
563         -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
564         (allocate_coding_system): Initialize initial-charsets of
565         CODESYS_BIG5 in XEmacs UTF-2000.
566         (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
567         CODESYS_BIG5 in XEmacs UTF-2000.
568         (decode_coding_big5): Use initial-charset-g0 and -g1 of
569         CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
570
571         * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
572         variables.
573         (Qideograph_hanziku_{1 .. 12}): Likewise.
574         (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
575         .. 12}'.
576         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
577         `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
578         `ideograph-hanziku-{1 .. 12}'.
579
580         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
581         (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
582         ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
583         ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
584         (DECODE_DEFINED_CHAR): New inline function.
585         (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
586
587 2001-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
588
589         * mule-charset.c (Vcharset_china3_jef): Renamed from
590         `Vcharset_japanese_jef_china3'.
591         (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
592         (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
593         `{MIN|MAX}_CHAR_JEF_CHINA3'..
594         (syms_of_mule_charset): Rename `china3-jef' from
595         `japanese-jef-china3'.
596         (complex_vars_of_mule_charset): Likewise; rename
597         `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
598
599         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
600         `LEADING_BYTE_JEF_CHINA3'.
601         (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
602         (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
603
604 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
605
606         * mule-charset.c (encode_builtin_char_1): Comment out special code
607         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
608
609         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
610         (MAX_CHAR_MOJIKYO_0): Comment out.
611         (MIN_CHAR_CBETA): Changed to 0x00E20000.
612         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
613         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
614         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
615
616 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
617
618         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
619         (Qideograph_cbeta): New variable.
620         (encode_builtin_char_1): Comment out special code for
621         coded-charset `mojikyo' and `japanese-jef-china3'.
622         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
623         (complex_vars_of_mule_charset): Add new coded-charset
624         `ideograph-cbeta'.
625
626         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
627         (MIN_CHAR_CBETA): New macro.
628         (MAX_CHAR_CBETA): New macro.
629
630 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
631
632         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
633         (LEADING_BYTE_JEF_CHINA3): New macro.
634         (MIN_CHAR_JEF_CHINA3): New macro.
635         (MAX_CHAR_JEF_CHINA3): Likewise.
636         (DECODE_CHAR): Fixed.
637
638 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
639
640         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
641         (Qjapanese_jef_china3): New variable.
642         (encode_builtin_char_1): Support `japanese-jef-china3'.
643         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
644         (complex_vars_of_mule_charset): Add new coded-charset
645         `japanese-jef-china3'.
646
647 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
648
649         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
650         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
651         94^4, 96^3, 96^4, 128^n and 256^n set.
652         (put_char_table): Use `XCHARSET_CELL_RANGE'.
653         (map_char_table): Likewise.
654
655 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
656
657         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
658         UTF-2000.
659
660 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
661
662         * chartab.h (get_char_id_table): New inline function.
663
664         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
665         function.
666
667 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
668
669         * chartab.h (decode_char_table_range): New prototype in XEmacs
670         UTF-2000.
671         (put_char_id_table): New inline function in XEmacs UTF-2000.
672
673         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
674         function.
675         (decode_char_table_range): Delete static declaration in XEmacs
676         UTF-2000.
677
678 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
679
680         * chartab.c (put_char_id_table): Use `put_char_table'.
681
682 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
683
684         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
685         (map_over_uint16_byte_table): Likewise.
686         (map_over_byte_table): Likewise.
687         (map_char_table): Modify for `map_over_uint8_byte_table',
688         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
689         UTF-2000.
690
691 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
692
693         * chartab.c (struct map_char_table_for_charset_arg): New
694         structure.
695         (map_char_table_for_charset_fun): New function.
696         (map_char_table): Use `map_char_table' for encoding_table of
697         `range->charset'.
698
699 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
700
701         * chartab.c (map_char_table): Check a character is found in
702         range->charset instead of non default value is defined in
703         char-table when range is CHARTAB_RANGE_ROW.
704
705 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
706
707         * chartab.c (map_char_id_table): Deleted.
708         (Fmap_char_attribute): Use `map_char_table' instead of
709         `map_char_id_table'.
710
711 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
712
713         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
714         UTF-2000.
715         (update_syntax_table): Deleted in XEmacs UTF-2000.
716
717         * syntax.c (find_defun_start): Use `syntax_table' instead of
718         `mirror_syntax_table' in XEmacs UTF-2000.
719         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
720         UTF-2000.
721         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
722         XEmacs UTF-2000.
723         (Fmatching_paren): Likewise.
724         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
725         in XEmacs UTF-2000.
726         (find_start_of_comment): Likewise.
727         (find_end_of_comment): Likewise.
728         (Fforward_comment): Likewise.
729         (scan_lists): Likewise.
730         (char_quoted): Likewise.
731         (Fbackward_prefix_chars): Likewise.
732         (scan_sexps_forward): Likewise.
733         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
734         (update_syntax_table): Likewise.
735
736         * search.c (skip_chars): Use `syntax_table' instead of
737         `mirror_syntax_table' in XEmacs UTF-2000.
738         (wordify): Likewise.
739         (Freplace_match): Likewise.
740
741         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
742         `mirror_syntax_table' in XEmacs UTF-2000.
743         (WORDCHAR_P_UNSAFE): Likewise.
744         (re_match_2_internal): Likewise.
745
746         * font-lock.c (find_context): Use `buf->syntax_table' instead of
747         `buf->mirror_syntax_table' in XEmacs UTF-2000.
748
749         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
750         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
751
752         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
753         XEmacs UTF-2000.
754
755         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
756         UTF-2000.
757         (print_char_table): Print `default_value' in XEmacs UTF-2000.
758         (char_table_description): Delete `mirror_table' in XEmacs
759         UTF-2000.
760         (fill_char_table): Don't call `update_syntax_table' in XEmacs
761         UTF-2000.
762         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
763         (Fcopy_char_table): Likewise.
764         (put_char_table): Don't call `update_syntax_table' in XEmacs
765         UTF-2000.
766
767         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
768         `buf->mirror_syntax_table' in XEmacs UTF-2000.
769         (casify_region_internal): Likewise.
770
771         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
772
773         * buffer.c (common_init_complex_vars_of_buffer): Don't use
774         `mirror_syntax_table' in XEmacs UTF-2000.
775
776         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
777         `buf->mirror_syntax_table' in XEmacs UTF-2000.
778         (Fexpand_abbrev): Likewise.
779
780 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
781
782         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
783
784 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
785
786         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
787         (map_over_uint16_byte_table): Likewise.
788         (map_over_byte_table): Likewise.
789         (get_char_id_table): Refer `cit->default_value'.
790         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
791         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
792         of character-id ranges.
793         (mark_char_table): Mark `ct->default_value'.
794         (char_table_description): Add `default_value'.
795         (fill_char_table): Use `default_value'.
796         (decode_char_table_range): Decode `nil' as
797         `CHARTAB_RANGE_DEFAULT'.
798         (get_char_id_table): Refer `cit->default_value'.
799         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
800         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
801         temporary hack; check value of char-table is bound or not.
802         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
803
804         * chartab.h (struct Lisp_Char_Table): Add new member
805         `default_value' in XEmacs UTF-2000.
806         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
807         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
808         UTF-2000.
809
810 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
811
812         * chartab.h (Lisp_Char_ID_Table): Deleted.
813
814         * chartab.c (char_table_description): Fix typo.
815         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
816         `Lisp_Char_ID_Table'.
817
818 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
819
820         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
821         `CHAR_ID_TABLE_P'.
822
823         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
824         `CHAR_ID_TABLE_P'.
825
826         * chartab.h (XCHAR_ID_TABLE): Deleted.
827         (XSETCHAR_ID_TABLE): Deleted.
828         (CHAR_ID_TABLE_P): Deleted.
829
830         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
831         `CHAR_ID_TABLE_P'.
832         (Fget_composite_char): Likewise.
833         (put_char_table): Likewise.
834         (add_char_attribute_alist_mapper): Fixed.
835         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
836         `CHAR_ID_TABLE_P'.
837         (Fget_char_attribute): Likewise.
838         (Fget_char_attribute): Likewise.
839         (Fmap_char_attribute): Likewise.
840
841         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
842         `CHAR_ID_TABLE_P'.
843         (encode_char_1): Likewise.
844
845 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
846
847         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
848         `XCHAR_ID_TABLE'.
849
850         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
851         instead of `XCHAR_ID_TABLE'.
852         (remove_char_ccs): Likewise.
853
854         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
855         `XCHAR_ID_TABLE'.
856         (Fget_composite_char): Likewise.
857         (Fchar_variants): Likewise.
858         (put_char_table): Likewise.
859         (add_char_attribute_alist_mapper): Likewise.
860         (Fchar_attribute_alist): Likewise.
861         (Fget_char_attribute): Likewise.
862         (Fput_char_attribute): Likewise.
863         (Fmap_char_attribute): Likewise.
864         (Fmap_char_attribute): Likewise.
865
866         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
867         `XCHAR_ID_TABLE'.
868         (encode_char_1): Likewise.
869
870 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
871
872         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
873         `Lisp_Char_ID_Table'.
874         (mark_char_id_table): Deleted.
875         (print_char_id_table): Likewise.
876         (char_id_table_equal): Likewise.
877         (char_id_table_hash): Likewise.
878         (char_id_table_description): Likewise.
879         (char_id_table): Likewise.
880         (make_char_id_table): Use `Fmake_char_table' and
881         `fill_char_table'.
882         (get_char_id_table): Use `Lisp_Char_Table' instead of
883         `Lisp_Char_ID_Table'.
884         (put_char_id_table): Likewise.
885         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
886         `XCHAR_ID_TABLE'.
887         (Fremove_char_attribute): Likewise.
888         (syms_of_chartab): Don't define type `char-id-table'.
889
890         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
891         (char_id_table): Likewise.
892         (GC_CHAR_ID_TABLE_P): Likewise.
893         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
894         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
895         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
896         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
897         (get_char_id_table): Use `Lisp_Char_Table' instead of
898         `Lisp_Char_ID_Table'.
899         (put_char_id_table_0): Likewise.
900         (put_char_id_table): Likewise.
901
902 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
903
904         * chartab.h: Lisp_Byte_Table related codes are moved from
905         chartab.h.
906
907         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
908
909 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
910
911         * chartab.h: Don't include "chartab.h".
912         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
913         (Lisp_Char_ID_Table): Likewise.
914         (char_id_table): Likewise.
915         (XCHAR_ID_TABLE): Likewise.
916         (XSETCHAR_ID_TABLE): Likewise.
917         (CHAR_ID_TABLE_P): Likewise.
918         (GC_CHAR_ID_TABLE_P): Likewise.
919         (get_char_id_table): Likewise.
920
921         * char-ucs.h: Include "chartab.h".
922         (struct Lisp_Char_ID_Table): Moved to chartab.h.
923         (Lisp_Char_ID_Table): Likewise.
924         (char_id_table): Likewise.
925         (XCHAR_ID_TABLE): Likewise.
926         (XSETCHAR_ID_TABLE): Likewise.
927         (CHAR_ID_TABLE_P): Likewise.
928         (GC_CHAR_ID_TABLE_P): Likewise.
929         (get_char_id_table): Likewise.
930
931 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
932
933         * chartab.c (copy_uint8_byte_table): New function.
934         (copy_uint16_byte_table): New function.
935         (copy_byte_table): New function.
936         (map_over_uint8_byte_table): Modify to avoid huge numbers of
937         characters to call.
938         (map_over_uint16_byte_table): Likewise.
939         (map_over_byte_table): Likewise.
940         (get_byte_table): Move prototype to chartab.h.
941         (put_byte_table): Likewise.
942         (put_char_id_table_0): Moved to chartab.h.
943         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
944         (char_table_entry_equal): Likewise.
945         (char_table_entry_hash): Likewise.
946         (char_table_entry_description): Likewise.
947         (char_table_entry): Likewise.
948         (make_char_table_entry): Likewise.
949         (copy_char_table_entry): Likewise.
950         (get_non_ascii_char_table_value): Likewise.
951         (map_over_charset_ascii): Likewise.
952         (map_over_charset_control_1): Likewise.
953         (map_over_charset_row): Likewise.
954         (map_over_other_charset): Likewise.
955         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
956         (print_char_table): Likewise.
957         (char_table_equal): Likewise.
958         (char_table_hash): Likewise.
959         (char_table_description): Likewise.
960         (fill_char_table): Likewise.
961         (Fcopy_char_table): Likewise.
962         (get_char_table): Likewise.
963         (Fget_range_char_table): Likewise.
964         (put_char_table): Likewise.
965         (map_char_table): Likewise.
966         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
967         UTF-2000.
968
969 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
970
971         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
972         `Vauto_fill_chars' in XEmacs UTF-2000.
973
974         * chartab.h (get_byte_table): New prototype [moved from
975         chartab.c].
976         (put_byte_table): Likewise [moved from chartab.c].
977         (put_char_id_table_0): New inline function [moved from chartab.c].
978         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
979         (Lisp_Char_Table_Entry): Likewise.
980         (char_table_entry): Likewise.
981         (XCHAR_TABLE_ENTRY): Likewise.
982         (XSETCHAR_TABLE_ENTRY): Likewise.
983         (CHAR_TABLE_ENTRYP): Likewise.
984         (CHECK_CHAR_TABLE_ENTRY): Likewise.
985         (NUM_ASCII_CHARS): Likewise.
986         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
987         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
988
989 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
990
991         * chartab.c (get_char_id_table): Change interface.
992         (put_char_id_table_0): New function.
993         (put_char_id_table): Change interface; new implementation.
994         (Fget_composite_char): Modify for interface change of
995         `get_char_id_table'.
996         (Fchar_variants): Likewise.
997         (add_char_attribute_alist_mapper): Likewise.
998         (Fchar_attribute_alist): Likewise.
999         (Fget_char_attribute): Likewise.
1000         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
1001         as same as character as the first argument like `put-char-table';
1002         modify for interface change of `put_char_id_table'.
1003         (Fremove_char_attribute): Modify for interface change of
1004         `put_char_id_table'.
1005
1006 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1007
1008         * text-coding.c: Sync up with XEmacs 21.2.41.
1009         (COMPOSE_ADD_CHAR): Modify for interface change of
1010         `get_char_id_table'.
1011
1012         * mule-charset.c (put_char_ccs_code_point): Modify for interface
1013         change of `put_char_id_table'.
1014         (remove_char_ccs): Likewise.
1015
1016         * chartab.h (put_char_id_table): Change interface.
1017
1018         * char-ucs.h (get_char_id_table): Change interface.
1019         (charset_code_point): Modify for interface change of
1020         `get_char_id_table'.
1021         (encode_char_1): Likewise.
1022
1023 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1024
1025         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
1026         argument `ccs'.
1027         (map_over_uint16_byte_table): Likewise.
1028         (map_over_byte_table): Likewise.
1029         (map_char_id_table): Add new argument `range' like
1030         `map_char_table'.
1031         (Fmap_char_attribute): Add new argument `range' like
1032         `Fmap_char_table'.
1033
1034 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1035
1036         * chartab.c (map_over_uint8_byte_table): Change interface of
1037         mapping function to use struct chartab_range instead of Emchar.
1038         (map_over_uint16_byte_table): Likewise.
1039         (map_over_byte_table): Likewise.
1040         (map_char_id_table): Likewise.
1041         (struct slow_map_char_id_table_arg): Deleted.
1042         (slow_map_char_id_table_fun): Deleted.
1043         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
1044         function `slow_map_char_table_fun' instead of struct
1045         `slow_map_char_id_table_arg' and function
1046         `slow_map_char_id_table_fun'.
1047
1048 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1049
1050         * mule-charset.c: Move char-it-table related codes to chartab.c.
1051         (Vutf_2000_version): Moved to chartab.c.
1052         (Fdefine_char): Likewise.
1053         (Ffind_char): Likewise.
1054         (syms_of_mule_charset): Move types `uint8-byte-table',
1055         `uint16-byte-table', `byte-table' and `char-id-table' to
1056         chartab.c; move functions `char_attribute_list,
1057         `find_char_attribute_table, `char_attribute_alist,
1058         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
1059         `map_char_attribute, `define_char, `find_char, `char_variants and
1060         `get_composite_char to chartab.c; move symbols `=>ucs',
1061         `->decomposition', `compat', `isolated', `initial', `medial',
1062         `final', `vertical', `noBreak', `fraction', `super', `sub',
1063         `circle', `square', `wide', `narrow', `small' and `font' to
1064         chartab.c.
1065         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
1066         setting codes for `Vcharacter_composition_table' and
1067         `Vcharacter_variant_table' to chartab.c.
1068         (complex_vars_of_mule_charset): Move setting code for
1069         `Vchar_attribute_hash_table' to chartab.c.
1070
1071         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
1072         (make_char_id_table): New prototype.
1073         (put_char_id_table): Likewise.
1074         (Fget_char_attribute): Likewise.
1075
1076         * chartab.c: Move char-id-table related code from mule-charset.c.
1077         (Vutf_2000_version): Moved from mule-charset.c.
1078
1079         * char-ucs.h (Qucs): New external variable.
1080         (put_char_ccs_code_point): New prototype.
1081         (remove_char_ccs): Likewise.
1082
1083 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1084
1085         * mule-charset.c (Vcharset_ucs_jis): New variable.
1086         (Qucs_jis): Likewise.
1087         (syms_of_mule_charset): Add new symbol `ucs-jis'.
1088         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
1089
1090         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
1091
1092 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1093
1094         * mule-charset.c (map_over_uint8_byte_table): New function.
1095         (map_over_uint16_byte_table): Likewise.
1096         (map_over_byte_table): Likewise.
1097         (map_char_id_table): Likewise.
1098         (slow_map_char_id_table_fun): Likewise.
1099         (Fmap_char_attribute): Likewise.
1100         (syms_of_mule_charset): Add new function `map-char-attribute'.
1101
1102 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1103
1104         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
1105         (syms_of_mule_charset): Add new function `find-char'.
1106
1107 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1108
1109         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
1110         XEmacs UTF-2000.
1111         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
1112         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
1113         XEmacs UTF-2000.
1114         (complex_vars_of_mule_charset): Add new coded-charset
1115         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
1116         `ideograph-gt-pj-*'.
1117
1118         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
1119
1120 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1121
1122         * mule-charset.c (encode_builtin_char_1): Purge codes about
1123         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
1124         {MIN|MAX}_CHAR_HEBREW.
1125         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
1126         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
1127
1128         * char-ucs.h (MIN_CHAR_GREEK): Purged.
1129         (MAX_CHAR_GREEK): Purged.
1130         (MIN_CHAR_CYRILLIC): Purged.
1131         (MAX_CHAR_CYRILLIC): Purged.
1132         (MIN_CHAR_HEBREW): Commented out.
1133         (MAX_CHAR_HEBREW): Likewise.
1134
1135 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1136
1137         * mule-charset.c (Qto_ucs): New variable.
1138         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
1139         (Fdefine_char): Likewise.
1140         (syms_of_mule_charset): Add new symbol `=>ucs'.
1141
1142 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1143
1144         * mule-charset.c (Fdecode_char): Fixed.
1145
1146 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1147
1148         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
1149         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
1150         "tcvn5712-1".
1151
1152 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1153
1154         * mule-charset.c (Vcharset_ucs_big5): New variable.
1155         (Qucs_big5): Likewise.
1156         (syms_of_mule_charset): Add new symbol `ucs-big5'.
1157         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
1158
1159         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
1160
1161 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1162
1163         * mule-charset.c (decode_builtin_char): Check Big5 code range
1164         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
1165
1166 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1167
1168         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
1169         (Qchinese_gb12345): Likewise.
1170         (Fdecode_builtin_char): Fixed.
1171         (syms_of_mule_charset): Add `chinese-gb12345'.
1172         (complex_vars_of_mule_charset): Add coded-charset
1173         `chinese-gb12345'.
1174
1175         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
1176         (LEADING_BYTE_CHINESE_GB12345): New macro.
1177
1178 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1179
1180         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
1181         and `latin-viscii-upper' for `latin-viscii'.
1182
1183 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1184
1185         * mule-charset.c (Fdecode_builtin_char): Comment out
1186         regularization code for ISO-IR GR representation.
1187
1188 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1189
1190         * mule-charset.c (decode_builtin_char): New function; renamed from
1191         `make_builtin_char'; return -1 instead of signal.
1192         (Fdecode_builtin_char): Use `decode_builtin_char'.
1193
1194         * char-ucs.h (decode_builtin_char): New prototype; renamed from
1195         `make_builtin_char'.
1196         (DECODE_CHAR): Use `decode_builtin_char' instead of
1197         `make_builtin_char'; use mapping table of `chinese-big5' for
1198         `chinese-big5-{1,2}'.
1199
1200 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1201
1202         * text-coding.c (char_encode_big5): New function.
1203         (char_finish_big5): Likewise.
1204         (reset_encoding_stream): Use `char_encode_big5' and
1205         `char_finish_big5' for CODESYS_BIG5.
1206         (mule_encode): Don't use `encode_coding_big5'.
1207         (encode_coding_big5): Deleted.
1208
1209 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1210
1211         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
1212         0x81- in XEmacs UTF-2000.
1213         (detect_coding_big5): Likewise.
1214
1215 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1216
1217         * mule-charset.c (Fdefine_char): Don't use a CCS property to
1218         generate character-id if the CCS property does not have
1219         corresponding predefined character.
1220         (make_builtin_char): Return -1 if corresponding predefined
1221         character is not found.
1222         (Fdecode_char): Return nil if corresponding character is not
1223         found.
1224         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
1225         don't map to builtin ucs space.
1226
1227 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1228
1229         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
1230         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
1231
1232 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1233
1234         * mule-charset.c (Vcharset_ideograph_gt): New variable.
1235         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
1236         (Qideograph_gt): Likewise.
1237         (Qideograph_gt_pj_{1..11}): Likewise.
1238         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
1239         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
1240         `ideograph-gt-pj-11'.
1241         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
1242         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
1243         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
1244
1245         * char-ucs.h (LEADING_BYTE_GT): New macro.
1246         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
1247         (MIN_CHAR_GT): Likewise.
1248         (MAX_CHAR_GT): Likewise.
1249
1250 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1251
1252         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
1253         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
1254
1255         * doprnt.c (unsigned_int_converters): Add `c'.
1256         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
1257
1258         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
1259         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
1260         `MIN_CHAR_MOJIKYO'.
1261         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
1262         (MAX_CHAR_MOJIKYO_0): New macro.
1263         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
1264
1265 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1266
1267         * mule-charset.c (Fdefine_char): Delete cemented out code.
1268         (encode_builtin_char_1): Modify for new allocation of builtin
1269         Mojikyo characters.
1270
1271         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
1272
1273 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1274
1275         * mule-charset.c (Vcharset_ucs_cns): New variable.
1276         (Qucs_cns): New variable.
1277         (syms_of_mule_charset): Add new symbol `ucs-cns'.
1278         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
1279
1280 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1281
1282         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
1283
1284 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
1285
1286         * search.c (search_buffer): Make `charset_base_code' as
1287         character-id >> 6 to eliminate the corresponding last byte in
1288         UTF-8 representation [I'm not sure it is right thing].
1289         (boyer_moore): Likewise.
1290
1291 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
1292
1293         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
1294         representation in MULE.
1295
1296 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1297
1298         * text-coding.c (Fmake_coding_system): Use
1299         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
1300         `EXTERNAL_PROPERTY_LIST_LOOP'.
1301
1302 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1303
1304         * text-coding.c (decode_output_utf8_partial_char): New function.
1305         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
1306
1307 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1308
1309         * text-coding.c (decode_coding_utf8): Output original byte
1310         sequence if it is broken; change order of conditions.
1311
1312         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
1313         of conditions.
1314
1315         * mb-multibyte.h (BYTE_ASCII_P):
1316         Use bit ops for char-signedness safety.
1317         (BYTE_C0_P): Use bit ops for char-signedness safety.
1318         (BYTE_C1_P): Use bit ops for char-signedness safety.
1319
1320         * character.h: (XCHAR_OR_CHAR_INT):
1321         Always use inline function.
1322         Remove redundant type checking assert() - XINT will abort quite
1323         nicely.
1324
1325 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1326
1327         * text-coding.c: (Fencode_shift_jis_char):
1328         (Fencode_big5_char):
1329         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
1330         Replace 0 with '\0' when working with bytes.
1331         Replace initial "(" with "\(" in docstrings.
1332
1333         (Fmake_coding_system):
1334         When type is ccl and value is vector, register it with a proper
1335         symbol.  And checks whether the given ccl program is valid.
1336         (mule_decode): When calling ccl_driver, if src indicates
1337         NULL pointer, set an empty string instead.
1338         (mule_encode): Likewise.
1339
1340         (detect_eol_type):
1341         (detect_coding_sjis):
1342         (decode_coding_sjis):
1343         (detect_coding_big5):
1344         (decode_coding_big5):
1345         (detect_coding_ucs4):
1346         (decode_coding_ucs4):
1347         (detect_coding_utf8):
1348         (decode_coding_utf8):
1349         (detect_coding_iso2022):
1350         (decode_coding_iso2022):
1351         (decode_coding_no_conversion):
1352         (mule_decode):
1353         Make all detecting and decoding functions take an Extbyte * arg.
1354         (text_encode_generic):
1355         (encode_coding_big5):
1356         (encode_coding_no_conversion):
1357         (mule_encode):
1358         Make all encoding functions take a Bufbyte * arg.
1359         Use size_t instead of unsigned int for memory sizes.
1360         Only cast to unsigned char whenever dereferencing Extbyte *.
1361
1362         (struct lrecord_description fcd_description_1): Use countof.
1363         (complex_vars_of_file_coding):
1364         Use countof instead of sizeof.
1365         Use CHECK_NATNUM instead of CHECK_INT.
1366
1367 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1368
1369         * mule-charset.c (Fget_char_attribute): Add new optional argument
1370         `default-value'.
1371         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
1372         (remove_char_ccs): Likewise.
1373
1374 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1375
1376         * text-coding.c (char_encode_shift_jis): New implementation in
1377         UTF-2000.
1378         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
1379         ...)'.
1380
1381         * mule-charset.c (Vcharset_chinese_big5): New variable in
1382         UTF-2000.
1383         (Qchinese_big5): New variable in UTF-2000.
1384         (BIG5_SAME_ROW): New macro in UTF-2000.
1385         (make_builtin_char): Use builtin characters of
1386         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
1387         characters of `Vcharset_chinese_big5'.
1388         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
1389         (complex_vars_of_mule_charset): Add new coded-charset
1390         `chinese-big5' in UTF-2000.
1391
1392         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
1393         (Vcharset_chinese_big5): New external variable declaration.
1394         (Vcharset_japanese_jisx0208_1990): Likewise.
1395
1396 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1397
1398         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
1399         function.
1400         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
1401
1402 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1403
1404         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
1405         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
1406         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
1407         `mojikyo-pj-*'.
1408
1409 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1410
1411         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
1412
1413 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1414
1415         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1416         to 0.17.
1417
1418 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1419
1420         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
1421         for `CHARSET_BY_ATTRIBUTES'.
1422         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
1423         `CHARSET_BY_ATTRIBUTES'.
1424
1425         * text-coding.c (struct decoding_stream): Rename member `CH' to
1426         `CPOS'.
1427         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
1428         (decode_coding_sjis): Likewise.
1429         (decode_coding_big5): Likewise.
1430         (decode_coding_ucs4): Likewise.
1431         (decode_coding_utf8): Likewise.
1432         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
1433         `CHARSET_BY_ATTRIBUTES'.
1434         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
1435         `str->counter'; decode 3, 4 bytes sets.
1436         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
1437         sets.
1438         (decode_coding_no_conversion): Use `str->cpos' instead of
1439         `str->ch'.
1440
1441         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
1442         (Qmojikyo_2022_1): New variable.
1443         (make_charset): Don't use `CHARSET_TYPE_*'.
1444         (range_charset_code_point): Support coded-charset
1445         `mojikyo-2022-1'.
1446         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
1447         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
1448         `CHARSET_BY_ATTRIBUTES'.
1449         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
1450         `CHARSET_BY_ATTRIBUTES'.
1451         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
1452         (complex_vars_of_mule_charset): Add new coded-charset
1453         `mojikyo-2022-1'.
1454
1455         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
1456         interface; changed to inline function.
1457
1458         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
1459         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
1460         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
1461         (CHARSET_TYPE_94): Deleted.
1462         (CHARSET_TYPE_94X94): Deleted.
1463         (CHARSET_TYPE_96): Deleted.
1464         (CHARSET_TYPE_96X96): Deleted.
1465         (CHARSET_TYPE_128): Deleted.
1466         (CHARSET_TYPE_128X128): Deleted.
1467         (CHARSET_TYPE_256): Deleted.
1468         (CHARSET_TYPE_256X256): Deleted.
1469         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
1470         to inline function.
1471         (DECODE_MOJIKYO_2022): New inline function.
1472         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
1473         `Vcharset_mojikyo_2022_1'.
1474
1475 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1476
1477         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
1478         instead of `EQ'.
1479         (put_byte_table): Likewise.
1480         (char_id_table_equal): Use `get_byte_table' [new implementation].
1481
1482 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1483
1484         * mule-charset.c: Include <limits.h> in UTF-2000.
1485         (BT_UINT8_MIN): New macro in UTF-2000.
1486         (BT_UINT8_MAX): New macro in UTF-2000.
1487         (BT_UINT8_t): New macro in UTF-2000.
1488         (BT_UINT8_nil): New macro in UTF-2000.
1489         (BT_UINT8_unbound): New macro in UTF-2000.
1490         (INT_UINT8_P): New inline function in UTF-2000.
1491         (UINT8_VALUE_P): New inline function in UTF-2000.
1492         (UINT8_ENCODE): New inline function in UTF-2000.
1493         (UINT8_DECODE): New inline function in UTF-2000.
1494         (mark_uint8_byte_table): New function in UTF-2000.
1495         (print_uint8_byte_table): New function in UTF-2000.
1496         (uint8_byte_table_equal): New function in UTF-2000.
1497         (uint8_byte_table_hash): New function in UTF-2000.
1498         (make_uint8_byte_table): New function in UTF-2000.
1499         (uint8_byte_table_same_value_p): New function in UTF-2000.
1500         (BT_UINT16_MIN): New macro in UTF-2000.
1501         (BT_UINT16_MAX): New macro in UTF-2000.
1502         (BT_UINT16_t): New macro in UTF-2000.
1503         (BT_UINT16_nil): New macro in UTF-2000.
1504         (BT_UINT16_unbound): New macro in UTF-2000.
1505         (INT_UINT16_P): New inline function in UTF-2000.
1506         (UINT16_VALUE_P): New inline function in UTF-2000.
1507         (UINT16_ENCODE): New inline function in UTF-2000.
1508         (UINT16_DECODE): New inline function in UTF-2000.
1509         (UINT8_TO_UINT16): New inline function in UTF-2000.
1510         (mark_uint16_byte_table): New function in UTF-2000.
1511         (print_uint16_byte_table): New function in UTF-2000.
1512         (uint16_byte_table_equal): New function in UTF-2000.
1513         (uint16_byte_table_hash): New function in UTF-2000.
1514         (make_uint16_byte_table): New function in UTF-2000.
1515         (uint16_byte_table_same_value_p): New function in UTF-2000.
1516         (print_byte_table): New function in UTF-2000.
1517         (byte-table): Use `print_byte_table' as printer.
1518         (make_byte_table): Delete second argument `older'.
1519         (byte_table_same_value_p): New function in UTF-2000.
1520         (copy_byte_table): Deleted.
1521         (get_byte_table): New function in UTF-2000.
1522         (put_byte_table): New function in UTF-2000.
1523         (print_char_id_table): New function in UTF-2000.
1524         (char-id-table): Use `print_char_id_table' as printer.
1525         (make_char_id_table): Delete second argument `older'.
1526         (get_char_id_table): Use `get_byte_table [new implementation].
1527         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
1528         implementation].
1529         (Ffind_char_attribute_table): New function in UTF-2000.
1530         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
1531         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
1532         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
1533         (syms_of_mule_charset): Add new function
1534         `find-char-attribute-table' in UTF-2000.
1535
1536         * lrecord.h (enum lrecord_type): Add
1537         `lrecord_type_uint16_byte_table' and
1538         `lrecord_type_uint8_byte_table'.
1539
1540         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
1541         (Lisp_Uint8_Byte_Table): New type.
1542         (XUINT8_BYTE_TABLE): New macro.
1543         (XSETUINT8_BYTE_TABLE): New macro.
1544         (UINT8_BYTE_TABLE_P): New macro.
1545         (GC_UINT8_BYTE_TABLE_P): New macro.
1546         (struct Lisp_Uint16_Byte_Table): New structure.
1547         (Lisp_Uint16_Byte_Table): New type.
1548         (XUINT16_BYTE_TABLE): New macro.
1549         (XSETUINT16_BYTE_TABLE): New macro.
1550         (UINT16_BYTE_TABLE_P): New macro.
1551         (GC_UINT16_BYTE_TABLE_P): New macro.
1552
1553 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1554
1555         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
1556         (Vcharacter_ideographic_strokes_table): Deleted.
1557         (Vcharacter_total_strokes_table): Deleted.
1558         (Vcharacter_morohashi_daikanwa_table): Deleted.
1559         (Vcharacter_decomposition_table): Deleted.
1560         (Qname): Deleted because it is duplicated.
1561         (Qideographic_radical): Deleted.
1562         (Qideographic_strokes): Deleted.
1563         (Qtotal_strokes): Deleted.
1564         (Qmorohashi_daikanwa): Deleted.
1565         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
1566         `ideographic-radical', `ideographic-strokes', `total-strokes',
1567         `morohashi-daikanwa' and `->decomposition'.
1568         (Fget_char_attribute): Likewise.
1569         (Fput_char_attribute): Likewise; use `make-vector' instead of
1570         `make_older_vector' for `->decomposition' value.
1571         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
1572         `ideograph-daikanwa'.
1573         (syms_of_mule_charset): Delete builtin symbols `name',
1574         `ideographic-radical', `ideographic-strokes', `total-strokes' and
1575         `morohashi-daikanwa'.
1576         (vars_of_mule_charset): Don't setup
1577         `Vcharacter_ideographic_radical_table',
1578         `Vcharacter_ideographic_strokes_table',
1579         `Vcharacter_total_strokes_table',
1580         `Vcharacter_morohashi_daikanwa_table' and
1581         `Vcharacter_decomposition_table'.
1582
1583 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1584
1585         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
1586         `make_older_vector', `make_vector_newer_1' and
1587         `make_vector_newer'.
1588
1589         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
1590         `make_older_vector' and `make_vector_newer'.
1591
1592         * config.h.in (HAVE_GGC): New macro.
1593
1594 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1595
1596         * mule-charset.c (struct char_attribute_list_closure): New
1597         structure in UTF-2000.
1598         (add_char_attribute_to_list_mapper): New function in UTF-2000.
1599         (Fchar_attribute_list): Likewise.
1600         (Fset_charset_mapping_table): Use `make_vector_newer'.
1601         (Fdecode_builtin_char): New function in UTF-2000.
1602         (syms_of_mule_charset): Add new function `char-attribute-list' and
1603         `decode-builtin-char' in UTF-2000.
1604
1605         * lisp.h (make_vector_newer): New prototype.
1606
1607         * alloc.c (make_vector_newer_1): New function.
1608         (make_vector_newer): New function.
1609
1610 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1611
1612         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
1613         50100)'.
1614
1615 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1616
1617         * mule-charset.c (Vchar_attribute_hash_table): New variable.
1618         (Vcharacter_attribute_table): Deleted.
1619         (Vcharacter_name_table): Deleted.
1620         (put_char_attribute): Deleted.
1621         (remove_char_attribute): Deleted.
1622         (struct char_attribute_alist_closure): New structure.
1623         (add_char_attribute_alist_mapper): New function.
1624         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
1625         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
1626         (Fget_char_attribute): Likewise.
1627         (Fput_char_attribute): Likewise.
1628         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
1629         of `remove_char_attribute'.
1630         (Fdefine_char): Return character.
1631         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
1632         and `Vcharacter_name_table'.
1633         (complex_vars_of_mule_charset): Likewise
1634         `Vchar_attribute_hash_table'.
1635
1636 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1637
1638         * character.h (CHARC_CHARSET): New macro.
1639         (CHARC_CHARSET_ID): New macro.
1640         (CHARC_CODE_POINT): New macro.
1641         (CHARC_COLUMNS): New macro.
1642         (CHARC_TO_CHAR): New inline function.
1643         (CHARC_EQ): New inline function.
1644         (CHARC_ASCII_EQ): New inline function.
1645         (CHARC_IS_SPACE): New inline function.
1646         (ASCII_TO_CHARC): New inline function.
1647
1648         * char-ucs.h (encode_char_2): Deleted.
1649         (ENCODE_CHAR): Use `encode_char_1' again.
1650         (breakup_char_1): Likewise.
1651         (CHAR_TO_CHARC): New inline function.
1652
1653         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
1654
1655 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1656
1657         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
1658         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
1659         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
1660         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
1661         (create_string_text_block): Use `CHARC_ASCII_EQ' and
1662         `CHARC_IS_SPACE'.
1663         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
1664
1665         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
1666         `CHARC_CODE_POINT'.
1667         (x_output_display_block): Use `CHARC_CHARSET' and
1668         `CHARC_ASCII_EQ'.
1669
1670         * redisplay-tty.c (tty_output_display_block): Use
1671         `CHARC_ASCII_EQ'.
1672         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
1673
1674         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
1675
1676         * insdel.c (find_charsets_in_charc_string): Use
1677         `CHARC_CHARSET_ID'.
1678         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
1679         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
1680         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
1681         (convert_charc_string_into_malloced_string): Likewise.
1682
1683 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1684
1685         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
1686         instead of <Emchar_dynarr *> for buf; use
1687         `convert_bufbyte_string_into_charc_dynarr' instead of
1688         `convert_bufbyte_string_into_emchar_dynarr'; use
1689         `find_charsets_in_charc_string' instead of
1690         `find_charsets_in_emchar_string'.
1691
1692         * redisplay.h:
1693         - Include "character.h".
1694         (struct rune): New member `cglyph'; delete member `chr'.
1695
1696         * redisplay.c (redisplay_text_width_charc_string): New function;
1697         delete `redisplay_text_width_emchar_string'.
1698         (rtw_charc_dynarr): New variable; renamed from
1699         `rtw_emchar_dynarr'.
1700         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
1701         `rtw_emchar_dynarr'; use
1702         `convert_bufbyte_string_into_charc_dynarr' instead of
1703         `convert_bufbyte_string_into_emchar_dynarr'; use
1704         `redisplay_text_width_charc_string' instead of
1705         `redisplay_text_width_emchar_string'.
1706         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
1707         instead of `rtw_emchar_dynarr'; use
1708         `convert_bufbyte_string_into_charc_dynarr' instead of
1709         `convert_bufbyte_string_into_emchar_dynarr'.
1710         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
1711         `redisplay_text_width_charc_string' instead of
1712         `redisplay_text_width_emchar_string'.
1713         (create_text_block): Modify for <struct rune> change.
1714         (generate_formatted_string_db): Likewise.
1715         (create_string_text_block): Likewise.
1716         (pixel_to_glyph_translation): Likewise.
1717
1718         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
1719         instead of <const Emchar *>.
1720         (x_text_width): Likewise.
1721         (x_output_display_block): Use <Charc_dynarr *> instead
1722         <Emchar_dynarr *>; modify for <structure rune> change.
1723         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
1724         *>.
1725
1726         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
1727         <const Emchar *>; use `charc_string_displayed_columns' instead of
1728         `emchar_string_displayed_columns'.
1729         (tty_output_display_block): Use <Charc_dynarr *> instead of
1730         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
1731         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
1732         (tty_output_charc_dynarr_dynarr): New variable; renamed from
1733         `tty_output_emchar_dynarr_dynarr'.
1734         (tty_output_charc_dynarr): New function; delete
1735         `tty_output_charc_dynarr'.
1736
1737         * redisplay-output.c (compare_runes): Modify for `struct rune'.
1738         (redisplay_output_layout): Use <Charc_dynarr *> instead of
1739         <Emchar_dynarr *> for buf; use
1740         `convert_bufbyte_string_into_charc_dynarr' instead of
1741         `convert_bufbyte_string_into_emchar_dynarr'.
1742
1743         * frame.c (title_string_charc_dynarr): New variable; renamed from
1744         `title_string_emchar_dynarr'.
1745         (generate_title_string): Use `title_string_charc_dynarr' instead
1746         of `title_string_emchar_dynarr'; use
1747         `convert_charc_string_into_malloced_string' instead of
1748         `convert_emchar_string_into_malloced_string'.
1749         (init_frame): Use `title_string_charc_dynarr' instead of
1750         `title_string_emchar_dynarr'.
1751
1752         * console.h:
1753         - Include "character.h".
1754         (struct console_methods): Use <const Charc *> instead of <const
1755         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
1756         <Emchar_dynarr *> in output_string_method.
1757
1758         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
1759         <Emchar_dynarr *>.
1760
1761         * console-stream.c (stream_text_width): Use <const Charc *>
1762         instead of <const Emchar *>.
1763
1764         * character.h (Charc_dynarr): New type.
1765
1766         * char-ucs.h (structure Charc): New structure; define new type
1767         `Charc'.
1768
1769         * char-lb.h (DECODE_CHAR): New inline function.
1770         (encode_char_1): New inline function.
1771         (ENCODE_CHAR): New macro.
1772         (structure Charc): New structure; define new type `Charc'.
1773
1774         * char-1byte.h (Vcharset_control_1): New macro.
1775         (Vcharset_latin_iso8859_1): New macro.
1776         (DECODE_CHAR): New inline function.
1777         (encode_char_1): New inline function.
1778         (ENCODE_CHAR): New macro.
1779         (structure Charc): New structure; define new type `Charc'.
1780
1781         * insdel.c (find_charsets_in_charc_string): New function; delete
1782         `find_charsets_in_emchar_string'.
1783         (charc_string_displayed_columns): New function; delete
1784         `emchar_string_displayed_columns'.
1785         (convert_bufbyte_string_into_charc_dynarr): New function; delete
1786         `convert_bufbyte_string_into_emchar_dynarr'.
1787         (convert_charc_string_into_bufbyte_dynarr): New function; delete
1788         `convert_charc_string_into_bufbyte_dynarr'.
1789         (convert_charc_string_into_malloced_string): New function; delete
1790         `convert_charc_string_into_malloced_string'.
1791
1792         * buffer.h (find_charsets_in_charc_string): New prototype; delete
1793         `find_charsets_in_emchar_string'.
1794         (charc_string_displayed_columns): New prototype; delete
1795         `emchar_string_displayed_columns'.
1796         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
1797         `convert_charc_string_into_bufbyte_dynarr'.
1798         (convert_charc_string_into_malloced_string): New prototype; delete
1799         `convert_charc_string_into_malloced_string'.
1800
1801 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1802
1803         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
1804
1805 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1806
1807         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
1808
1809         * char-ucs.h: Use <short> for <Charset_ID>.
1810
1811         * mule-charset.h, char-1byte.h: Use <unsigned char> for
1812         <Charset_ID>.
1813
1814 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1815
1816         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1817         to 0.16.
1818
1819 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1820
1821         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
1822         variable.
1823         (Qmorohashi_daikanwa): New variable.
1824         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
1825         for `morohashi-daikanwa' attribute.
1826         (Fget_char_attribute): Likewise.
1827         (Fput_char_attribute): Likewise.
1828         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
1829         has the same value of `ideograph-daikanwa'.
1830         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
1831         (vars_of_mule_charset): Setup
1832         `Vcharacter_morohashi_daikanwa_table'.
1833
1834 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1835
1836         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
1837         attributes.
1838         (add_charset_to_list_mapper): Add `key' instead of
1839         `XCHARSET_NAME (value)' to return aliases.
1840
1841 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1842
1843         * mule-charset.c (Vcharacter_ideographic_radical_table): New
1844         variable.
1845         (Vcharacter_ideographic_strokes_table): New variable.
1846         (Qideographic_radical): New variable.
1847         (Qideographic_strokes): New variable.
1848         (Fchar_attribute_alist): Use
1849         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
1850         attribute; use `Vcharacter_ideographic_strokes_table' for
1851         `ideographic-strokes' attribute.
1852         (Fget_char_attribute): Likewise.
1853         (Fput_char_attribute): Likewise.
1854         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
1855         `ideographic-strokes'.
1856         (vars_of_mule_charset): Setup
1857         `Vcharacter_ideographic_radical_table' and
1858         `Vcharacter_ideographic_strokes_table'.
1859
1860 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1861
1862         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
1863         (Qtotal_strokes): New variable.
1864         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
1865         `total-strokes' attribute.
1866         (Fget_char_attribute): Likewise.
1867         (Fput_char_attribute): Likewise.
1868         (syms_of_mule_charset): Add new symbol `total-strokes'.
1869         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
1870
1871 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1872
1873         * mule-charset.c (Vcharacter_decomposition_table): New variable.
1874         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
1875         are found.
1876         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
1877         `->decomposition' attribute.
1878         (Fput_char_attribute): Likewise.
1879         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
1880
1881 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1882
1883         * mule-charset.c (decoding_table_check_elements): New function.
1884         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
1885
1886 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1887
1888         * mule-charset.c (Fset_charset_mapping_table): Use
1889         `put_char_ccs_code_point'.
1890
1891 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1892
1893         * mule-charset.c (decoding_table_put_char): New inline function.
1894         (put_char_ccs_code_point): Use `decoding_table_put_char'.
1895
1896 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1897
1898         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
1899         (XCHARSET_BYTE_SIZE): New macro.
1900         (decoding_table_remove_char): New inline function.
1901         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
1902         `decoding_table_remove_char'.
1903         (remove_char_ccs): Use `decoding_table_remove_char'.
1904         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
1905
1906 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1907
1908         * mule-charset.c (Vcharacter_name_table): New variable.
1909         (Qname): New variable.
1910         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
1911         attribute.
1912         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
1913         `Vcharacter_name_table' for `name' attribute.
1914         (Fremove_char_attribute): Use function `remove_char_ccs'.
1915         (put_char_ccs_code_point): New function.
1916         (remove_char_ccs): New function.
1917         (syms_of_mule_charset): Add new symbol `name'.
1918         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
1919
1920 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1921
1922         * mule-charset.c (make_byte_table): Add new argument `older'.
1923         (make_char_id_table): Likewise.
1924         (copy_char_id_table): Comment out because it is not used.
1925         (put_char_id_table): Modify for `make_byte_table'.
1926         (Fput_char_attribute): Make encoding_table as older object;
1927         inherit older bit of `Vcharacter_composition_table'.
1928         (mark_charset): Don't mark `cs->encoding_table'.
1929         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
1930         normal object; make `Vcharacter_composition_table' as an older
1931         object; delete staticpro for `Vcharacter_composition_table'; make
1932         `Vcharacter_variant_table' as a normal object.
1933
1934         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
1935         (mark_object): Don't check older object in UTF-2000.
1936
1937         * lrecord.h (struct lrecord_header): Add new member `older' in
1938         UTF-2000.
1939         (set_lheader_implementation): Setup `SLI_header->older' in
1940         UTF-2000.
1941         (set_lheader_older_implementation): New macro in UTF-2000.
1942         (OLDER_RECORD_P): New macro in UTF-2000.
1943         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
1944         (alloc_older_lcrecord): New prototype in UTF-2000.
1945         (alloc_older_lcrecord_type): New macro in UTF-2000.
1946
1947 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1948
1949         * mule-charset.c (byte_table_description): Use
1950         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
1951         (char_id_table_description): Delete bogus `, 1'.
1952         (Fget_char_attribute): Refer encoding_table of each coded-charset
1953         to get value of coded-charset attribute of a character.
1954         (Fput_char_attribute): Use `make_older_vector' instead of
1955         `make_vector'; use encoding_table of each coded-charset to store
1956         value of coded-charset attribute of a character.
1957         (Fremove_char_attribute): Use encoding_table of each coded-charset
1958         to store value of coded-charset attribute of a character.
1959         (mark_charset): Mark `cs->encoding_table'; don't mark
1960         `cs->decoding_table'.
1961         (charset_description): Add description of new member
1962         `encoding_table'.
1963         (make_charset): Initialize `encoding_table'.
1964
1965         * char-ucs.h (struct Lisp_Charset): Add new member
1966         `encoding_table'.
1967         (CHARSET_ENCODING_TABLE): New macro.
1968         (XCHARSET_ENCODING_TABLE): New macro.
1969         (charset_code_point): New implementation.
1970         (encode_char_1): Likewise.
1971
1972         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
1973         (disksave_object_finalization_1): Call finalizers of
1974         `all_older_lcrecords' in UTF-2000.
1975         (make_older_vector): New function in UTF-2000.
1976         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
1977         UTF-2000.
1978
1979         * lisp.h (make_older_vector): New prototype in UTF-2000.
1980
1981 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1982
1983         * lrecord.h (enum lrecord_type): Rename
1984         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
1985
1986         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
1987         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
1988         `get_char_code_table'.
1989
1990         * mule-charset.c (mark_char_id_table): Renamed from
1991         `mark_char_code_table'.
1992         (char_id_table_equal): Renamed from `char_code_table_equal'.
1993         (char_id_table_hash): Renamed from `char_code_table_hash'.
1994         (make_char_id_table): Renamed from `make_char_code_table'.
1995         (copy_char_id_table): Renamed from `copy_char_code_table'.
1996         (get_char_id_table): Renamed from `get_char_code_table'.
1997         (put_char_id_table): Renamed from `put_char_code_table'.
1998         (to_char_id): Renamed from `to_char_code'.
1999
2000         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
2001         `Lisp_Char_Code_Table'.
2002         (char_id_table): Renamed from `char_code_table'.
2003         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
2004         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
2005         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
2006         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
2007         (get_char_id_table): Renamed from `get_char_code_table'.
2008
2009 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2010
2011         * lrecord.h (enum lrecord_type): Rename
2012         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
2013
2014         * mule-charset.c (mark_byte_table): Renamed from
2015         `mark_char_byte_table'.
2016         (byte_table_equal): Renamed from `char_byte_table_equal'.
2017         (byte_table_hash): Renamed from `byte_table_hash'.
2018         (make_byte_table): Renamed from `make_byte_table'.
2019         (copy_byte_table): Renamed from `copy_char_byte_table'.
2020
2021         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
2022         `Lisp_Char_Byte_Table'.
2023         (byte_table): Renamed from `char_byte_table'.
2024         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
2025         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
2026         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
2027         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
2028
2029 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2030
2031         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
2032         (dfc_convert_to_internal_format): Likewise.
2033         
2034         * text-coding.c (Fcoding_system_canonical_name_p): New function.
2035         * text-coding.c (Fcoding_system_alias_p): New function.
2036         * text-coding.c (Fcoding_system_aliasee): New function.
2037         * text-coding.c (append_suffix_to_symbol): New function.
2038         * text-coding.c (dangling_coding_system_alias_p): New function.
2039         * text-coding.c (Ffind_coding_system):
2040         * text-coding.c (Fcopy_coding_system):
2041         * text-coding.c (encode_coding_no_conversion):
2042         * text-coding.c (syms_of_file_coding):
2043         * text-coding.c (vars_of_file_coding):
2044         Rewrite coding system alias code.
2045         Allow nested aliases, like symbolic links.
2046         Allow redefinition of coding system aliases.
2047         Prevent existence of dangling coding system aliases.
2048         Eliminate convert_to_external_format.
2049         Eliminate convert_to_internal_format.
2050         
2051         * text-coding.c: Change enum eol_type to eol_type_t.
2052
2053 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2054
2055         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
2056         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
2057
2058         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
2059         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
2060
2061 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2062
2063         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
2064         `ideograph-daikanwa'.
2065
2066         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
2067         (Vcharset_ucs_bmp): Likewise.
2068         (Vcharset_mojikyo): Add new extern variable definition.
2069         (Vcharset_latin_iso8859_2): Deleted because it is not used.
2070         (Vcharset_latin_iso8859_3): Likewise.
2071         (Vcharset_latin_iso8859_4): Likewise.
2072         (Vcharset_latin_iso8859_9): Likewise.
2073         (Vcharset_latin_viscii_lower): Likewise.
2074         (Vcharset_latin_viscii_upper): Likewise.
2075         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
2076         `mojikyo' code-point is used to decode.
2077         (encode_char_2): New function [to convert `mojikyo' code-point to
2078         Mojikyo font encoding].
2079         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
2080         (breakup_char_1): Likewise.
2081         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
2082
2083 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2084
2085         * text-coding.c (Fmake_coding_system): Add document about
2086         `disable-composition' property.
2087
2088 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2089
2090         * text-coding.c (Qdisable_composition): New variable; delete
2091         `Qcomposite'.
2092         (Fmake_coding_system): Add new property `disable-composite';
2093         delete property `composite'.
2094         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
2095         instead of `!CODING_SYSTEM_COMPOSITE'.
2096         (syms_of_file_coding): Add new symbol `disable-composition';
2097         delete symbol `composite'.
2098
2099         * file-coding.h (struct Lisp_Coding_System): Add
2100         `disable_composition'; delete `enable_composition'.
2101         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
2102         `CODING_SYSTEM_COMPOSITE'.
2103         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
2104         `XCODING_SYSTEM_COMPOSITE'.
2105
2106 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2107
2108         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2109         to 0.15.
2110
2111 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2112
2113         * text-coding.c (Qcomposite): New variable.
2114         (Fmake_coding_system): Add new property `composite'.
2115         (struct decoding_stream): Add `combined_char_count',
2116         `combined_chars' and `combining_table' in UTF-2000.
2117         (COMPOSE_FLUSH_CHARS): New macro.
2118         (COMPOSE_ADD_CHAR): New macro.
2119         (reset_decoding_stream): Reset `str->combined_char_count' and
2120         `str->combining_table' in UTF-2000.
2121         (decode_coding_iso2022): Modify for character-decomposition.
2122         (syms_of_file_coding): Add new symbol `composite'.
2123
2124 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2125
2126         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
2127         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
2128         of `Vcharacter_composition_table' if `->decomposition' property
2129         has only 1 element.
2130         (Qlatin_tcvn5712): New variable.
2131         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
2132         (complex_vars_of_mule_charset): Add new coded-charset
2133         `latin-tcvn5712'.
2134
2135         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
2136
2137 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2138
2139         * file-coding.h (struct Lisp_Coding_System): Add
2140         `enable_composition'.
2141         (CODING_SYSTEM_COMPOSITE): New macro.
2142         (XCODING_SYSTEM_COMPOSITE): New macro.
2143
2144 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
2145
2146         * mule-canna.c (c2mu): Fix problem with UTF-2000.
2147
2148 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
2149
2150         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
2151         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
2152
2153 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
2154
2155         * mule-charset.c (Vcharset_mojikyo): New variable.
2156         (Fdefine_char): Don't use coded-charset which does not have
2157         non-builtin character range to allocate character-id.
2158         (Qmojikyo): New variable.
2159         (syms_of_mule_charset): Add new symbol `mojikyo'.
2160         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
2161
2162         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
2163         (LEADING_BYTE_MOJIKYO): New macro.
2164         (MIN_CHAR_MOJIKYO): New macro.
2165         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
2166         (MAX_CHAR_MOJIKYO): New macro.
2167
2168 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
2169
2170         * mule-charset.c (remove_char_attribute): Fixed.
2171
2172 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
2173
2174         * mule-charset.c (remove_char_attribute): New function.
2175         (Fremove_char_attribute): New function.
2176         (encode_builtin_char_1): Comment out builtin-support for
2177         greek-iso8859-7 and cyrillic-iso8859-5.
2178         (Fdecode_char): Check `code' is an integer.
2179         (syms_of_mule_charset): Add `remove-char-attribute'.
2180         (MIN_CHAR_GREEK): Deleted.
2181         (MAX_CHAR_GREEK): Likewise.
2182         (MIN_CHAR_CYRILLIC): Likewise.
2183         (MAX_CHAR_CYRILLIC): Likewise.
2184         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
2185         MAX_CHAR_GREEK for `greek-iso8859-7'.
2186
2187         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
2188         (MAX_CHAR_GREEK): Likewise.
2189         (MIN_CHAR_CYRILLIC): Likewise.
2190         (MAX_CHAR_CYRILLIC): Likewise.
2191
2192 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
2193
2194         * mule-charset.c (Fdefine_char): Fix problem when new code-point
2195         format is used without `ucs' property.
2196         (Fdecode_char): Fix problem with GR representation.
2197         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
2198         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
2199
2200 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
2201
2202         * mule-charset.c (make_builtin_char): New function.
2203         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
2204         (Fset_charset_mapping_table): Modify for new representation of
2205         code-point.
2206         (Fdecode_char): New function.
2207         (syms_of_mule_charset): Add new builtin function `decode-char' in
2208         UTF-2000.
2209
2210         * char-ucs.h (make_builtin_char): New prototype.
2211         (DECODE_CHAR): New inline function.
2212         (MAKE_CHAR): Use `DECODE_CHAR'.
2213
2214 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
2215
2216         * text-coding.c (parse_charset_conversion_specs): Use
2217         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
2218         `XCHARSET_TYPE'.
2219         (iso2022_designate): Likewise.
2220
2221         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
2222         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
2223
2224         * mule-charset.c (Vcharset_ucs): New variable.
2225         (print_charset): Change design; use `CHARSET_CHARS' and
2226         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
2227         (make_charset): Change signature to specify `chars' and
2228         `dimension' instead of `type'.
2229         (range_charset_code_point): Modify for 256^n-set.
2230         (encode_builtin_char_1): Encode as `ucs' in default.
2231         (Fmake_charset): Modify for `make_charset'.
2232         (Fmake_reverse_direction_charset): Likewise.
2233         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
2234         UTF-2000.
2235         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
2236         for `make_charset'.
2237
2238         * char-ucs.h (Vcharset_ucs): New variable.
2239         (LEADING_BYTE_UCS): New macro.
2240         (struct Lisp_Charset): Delete `type'; change type of `dimension'
2241         and `chars' to `unsigned short' from `unsigned int'.
2242         (CHARSET_TYPE): Deleted.
2243         (XCHARSET_TYPE): Deleted.
2244
2245 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
2246
2247         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
2248
2249         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
2250         (ENCODE_CHAR): New macro.
2251
2252 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
2253
2254         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2255         to 0.14 (Kawachi-Katakami).
2256
2257 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
2258
2259         * text-coding.c (char_encode_shift_jis): Modify for
2260         `charset_code_point'.
2261         (char_encode_iso2022): Likewise.
2262
2263         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
2264         (integer) instead of list of <Lisp_Object>s (integers) as the
2265         format of code-point of a coded-charset.
2266         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
2267         (encode_builtin_char_1): New function; delete
2268         `split_builtin_char'.
2269         (charset_code_point): Return <int> instead of <Lisp_Object>.
2270         (Fsplit_char): Don't use `SPLIT_CHAR'.
2271
2272         * char-ucs.h (encode_builtin_char_1): New prototype; delete
2273         prototype for `split_builtin_char'.
2274         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
2275         (charset_code_point): Likewise.
2276         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
2277         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
2278
2279 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
2280
2281         * mule-charset.c (complex_vars_of_mule_charset): Don't define
2282         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
2283
2284 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2285
2286         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
2287
2288         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
2289         (MAX_CHAR_OBS_94x94): Deleted.
2290
2291 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2292
2293         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
2294
2295         * char-ucs.h (MAX_CHAR_BMP): New macro.
2296
2297 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
2298
2299         * text-coding.c: Sync with r21-2-24.
2300
2301 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
2302
2303         * file-coding.c: Modify for UTF-2000.
2304
2305 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
2306
2307         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2308         to 0.13 (Takaida).
2309
2310 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
2311
2312         * mule-charset.c (split_builtin_char): Delete builtin support for
2313         `katakana-jisx0201'.
2314         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
2315         BMP area in builtin representation.
2316
2317         * char-ucs.h (MAKE_CHAR): Delete builtin support for
2318         `Vcharset_katakana_jisx0201'.
2319
2320 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
2321
2322         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
2323         (Qisolated): New variable.
2324         (Qinitial): New variable.
2325         (Qmedial): New variable.
2326         (Qfinal): New variable.
2327         (Qvertical): New variable.
2328         (Qsmall): New variable.
2329         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
2330         `Qvertical' and `Qsmall'.
2331         (Qmojikyo_pj_[1 .. 21]): New variable.
2332         (syms_of_mule_charset): Add new symbols `isolated', `initial',
2333         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
2334         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
2335         .. 21]'.
2336
2337 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
2338
2339         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
2340         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
2341         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
2342
2343 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
2344
2345         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
2346         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
2347         BMP.
2348         (Qjapanese_jisx0208_1990): New variable.
2349         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
2350         (complex_vars_of_mule_charset): Add new coded-charset
2351         `japanese-jisx0208-1990'.
2352
2353         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
2354         (MIN_CHAR_JIS_X0208_1990): New macro.
2355         (MAX_CHAR_JIS_X0208_1990): New macro.
2356
2357 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2358
2359         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
2360         coded-charset is not found.
2361
2362 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2363
2364         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
2365         (Fdefine_char): Use `Fmake_char'.
2366
2367 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2368
2369         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
2370         (Vcharset_hiragana_jisx0208): Deleted.
2371         (Vcharset_katakana_jisx0208): Deleted.
2372         (Qideograph_daikanwa): New variable.
2373         (Qhiragana_jisx0208): Deleted.
2374         (Qkatakana_jisx0208): Deleted.
2375         (split_builtin_char): Split `ideograph-daikanwa'.
2376         (Fsplit_char): New implementation for UTF-2000.
2377         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
2378         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
2379         (complex_vars_of_mule_charset): Add new coded-charset
2380         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
2381         `katakana-jisx0208'.
2382
2383         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
2384         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
2385         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
2386         (MIN_CHAR_DAIKANWA): New macro.
2387         (MAX_CHAR_DAIKANWA): New macro.
2388
2389 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2390
2391         * data.c (Fstring_to_number): Don't recognize floating point if
2392         base is not 10.
2393
2394 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2395
2396         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
2397
2398 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2399
2400         * mule-charset.c (Qsquare): New variable.
2401         (to_char_code): Add `Qsquare'.
2402         (syms_of_mule_charset): Add new symbol `square'.
2403
2404 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2405
2406         * mule-charset.c (Qcircle): New variable.
2407         (to_char_code): Add `Qcircle'.
2408         (syms_of_mule_charset): Add new symbol `circle'.
2409
2410 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2411
2412         * mule-charset.c (Qfont): New variable.
2413         (to_char_code): Add `Qfont'.
2414         (syms_of_mule_charset): Add new symbol `font'.
2415
2416 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2417
2418         * mule-charset.c (Qsub): New variable.
2419         (to_char_code): Add `Qsub'.
2420         (syms_of_mule_charset): Add new symbol `sub'.
2421
2422 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2423
2424         * mule-charset.c (Fput_char_attribute): Convert each element of
2425         VALUE to GL position if ATTRIBUTE is a GR-set,
2426
2427 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2428
2429         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
2430         coded-charset is a GR-set.
2431
2432 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2433
2434         * mule-charset.c (Fput_char_attribute): Check each element of
2435         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
2436
2437 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2438
2439         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
2440         UTF-2000.
2441         (Qethiopic_ucs): New variable in UTF-2000.
2442         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
2443         (complex_vars_of_mule_charset): Add new coded-charset
2444         `ethiopic-ucs' in UTF-2000.
2445
2446         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
2447         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
2448         9)'.
2449         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
2450         10)'.
2451         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
2452
2453 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
2454
2455         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
2456         `ascii'.
2457
2458 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2459
2460         * mule-charset.c (Vcharacter_variant_table): New variable.
2461         (Q_ucs): New variable.
2462         (Fchar_variants): New function.
2463         (Fput_char_attribute): Register `->ucs' value to
2464         `Vcharacter_variant_table'.
2465         (syms_of_mule_charset): Add new function `char-variants' and new
2466         symbol `->ucs'.
2467         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
2468
2469 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2470
2471         * mule-charset.c (get_char_code_table): Allow negative character
2472         code.
2473         (put_char_code_table): Likewise.
2474         (Vcharacter_composition_table): New variable.
2475         (Q_decomposition): New variable.
2476         (Qwide): New variable.
2477         (Qnarrow): New variable.
2478         (Qcompat): New variable.
2479         (QnoBreak): New variable.
2480         (Qsuper): New variable.
2481         (Qfraction): New variable.
2482         (to_char_code): New function.
2483         (Fget_composite_char): New function.
2484         (Fput_char_attribute): Register `->decomposition' value to
2485         `Vcharacter_composition_table'.
2486         (syms_of_mule_charset): Add new function `get-composite-char', new
2487         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
2488         `super' and `fraction'.
2489         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
2490
2491 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2492
2493         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
2494         character; copy the return value.
2495
2496 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2497
2498         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
2499
2500         * mule-charset.c (range_charset_code_point): Must use make_int.
2501         (split_builtin_char): New function.
2502
2503 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2504
2505         * mule-charset.c (char_byte_table): Change name from
2506         "char-code-table" to "char-byte-table".
2507         (mark_char_code_table): New function.
2508         (char_code_table_equal): New function.
2509         (char_code_table_hash): New function.
2510         (char_code_table_description): New constant.
2511         (char_code_table): New type.
2512         (make_char_code_table): New function.
2513         (copy_char_code_table): New function.
2514         (get_char_code_table): Modify for `char_code_table' type.
2515         (put_char_code_table): Likewise.
2516         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
2517         (Kashiwara).
2518
2519         * char-ucs.h (char_code_table): New type.
2520         (XCHAR_CODE_TABLE): New macro.
2521         (XSETCHAR_CODE_TABLE): New macro.
2522         (CHAR_CODE_TABLE_P): New macro.
2523         (GC_CHAR_CODE_TABLE_P): New macro.
2524         (struct Lisp_Char_Code_Table): New structure.
2525
2526 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2527
2528         * mule-charset.c (Fmake_charset): Setup byte_offset for
2529         {94|96}^n-set.
2530
2531 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2532
2533         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
2534         character.
2535
2536 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2537
2538         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
2539         is found.
2540
2541 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2542
2543         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
2544         charset, it is regarded as a charset.
2545         (put_char_attribute): New function in UTF-2000.
2546         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
2547         charset, mapping-table of the charset is modified.
2548         (Fdefine_char): New function in UTF-2000.
2549         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
2550         `Fput_char_attribute'.
2551         (syms_of_mule_charset): Add new function `define-char' and new
2552         symbol `ucs' in UTF-2000.
2553         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
2554
2555 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
2556
2557         * mule-charset.c (Fcharset_name): Define `byte_offset' in
2558         non-UTF-2000 configuration.
2559
2560 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
2561
2562         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
2563         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
2564
2565         * mule-charset.c (mark_charset): `cs->encoding_table' has been
2566         deleted.
2567         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
2568         (Fset_charset_mapping_table): Likewise.
2569
2570         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
2571         (CHARSET_ENCODING_TABLE): Delete.
2572         (XCHARSET_ENCODING_TABLE): Delete.
2573         (charset_code_point): New interface.
2574
2575 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
2576
2577         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
2578         instead of `charset_get_byte1' and `charset_get_byte2'.
2579
2580         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
2581         (charset_get_byte2): Deleted.
2582
2583 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
2584
2585         * char-ucs.h (SPLIT_CHAR): New inline function.
2586         (breakup_char_1): Use `SPLIT_CHAR'.
2587
2588         * mule-charset.c (range_charset_code_point): New function.
2589         (charset_code_point): New function.
2590
2591         * char-ucs.h (range_charset_code_point): New interface.
2592         (breakup_char_1): Use `range_charset_code_point'.
2593
2594 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
2595
2596         * mule-charset.c (Fmake_charset): Delete unused local variable
2597         `code_offset'.
2598
2599         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
2600         (breakup_char_1): Find a charset and code-point in
2601         `Vcharacter_attribute_table'.
2602
2603 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
2604
2605         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2606         to 0.10 (Yao).
2607
2608 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
2609
2610         * mule-charset.c (Vcharacter_attribute_table): New variable.
2611         (Fchar_attribute_alist): New function.
2612         (Fget_char_attribute): New function.
2613         (Fput_char_attribute): New function.
2614         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
2615         too.
2616         (syms_of_mule_charset): Add new function `char-attribute-alist',
2617         `get-char-attribute' and `put-char-attribute'.
2618         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
2619
2620 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
2621
2622         * mule-charset.c (Fmake_charset): Just use
2623         `get_unallocated_leading_byte'.
2624
2625         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
2626         sets; don't use final-byte based number for private sets.
2627
2628 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2629
2630         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
2631         integer.
2632
2633 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2634
2635         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2636         to 0.9.
2637
2638 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2639
2640         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
2641         of `CHAR_LEADING_BYTE' in UTF-2000.
2642
2643         * insdel.c (find_charsets_in_bufbyte_string): Use
2644         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
2645         (find_charsets_in_emchar_string): Likewise.
2646
2647         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
2648         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
2649
2650         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
2651         (CHAR_CHARSET_ID): New macro.
2652
2653 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2654
2655         * chartab.c (get_char_table): Don't use type `Charset_ID' for
2656         charset-id - MIN_LEADING_BYTE.
2657         (put_char_table): Likewise.
2658
2659 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2660
2661         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
2662         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
2663         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
2664         (CHARSET_ID_OFFSET): New macro.
2665         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
2666         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
2667         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
2668         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
2669         4).
2670         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
2671         5).
2672         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
2673         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
2674         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
2675         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
2676         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
2677
2678 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2679
2680         * mule-charset.c (next_allocated_leading_byte): New variable in
2681         UTF-2000.
2682         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
2683         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
2684         (get_unallocated_leading_byte): Simply use
2685         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
2686         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
2687         UTF-2000.
2688
2689         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
2690         (MAX_LEADING_BYTE_PRIVATE): New macro.
2691         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
2692         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
2693
2694 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2695
2696         * mule-charset.c (Fmake_charset): Allocate final-byte based
2697         charset-id for 94-set, 96-set and 94x94-set.
2698
2699 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2700
2701         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
2702         ambiguous `else'.
2703         (Fmake_charset): Likewise.
2704         (complex_vars_of_mule_charset): Modify the font registry of
2705         `ucs-bmp' not to match `Ethiopic-Unicode'.
2706
2707 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2708
2709         * mule-charset.c (complex_vars_of_mule_charset): Add font
2710         registory of `ucs-bmp'.
2711
2712 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2713
2714         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
2715         coded-charsets in `default-coded-charset-priority-list' when
2716         breaking up a character.
2717
2718         * mule-charset.c (Vcharset_latin_viscii): New variable.
2719         (Qlatin_viscii): New variable.
2720         (make_charset): Don't use `decoding_table'.
2721         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
2722         byte_offset.
2723         (Fset_charset_mapping_table): New implementation.
2724         (syms_of_mule_charset): Add new symbol `latin-viscii'.
2725         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
2726         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
2727         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
2728         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
2729         charset `latin_viscii'.
2730
2731         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
2732         (CHARSET_TYPE_94X94): Change to 1 from 2.
2733         (CHARSET_TYPE_96): Change to 2 from 1.
2734         (CHARSET_TYPE_128): New macro.
2735         (CHARSET_TYPE_128X128): Change to 5 from 4.
2736         (CHARSET_TYPE_256): New macro.
2737         (CHARSET_TYPE_256X256): Change to 7 from 5.
2738         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
2739
2740 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2741
2742         * text-coding.c (char_encode_shift_jis): Refer
2743         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
2744         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
2745
2746         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
2747         (char_byte_table_equal): New function in UTF-2000.
2748         (char_byte_table_hash): New function in UTF-2000.
2749         (char_byte_table_description): New constant in UTF-2000.
2750         (char_byte_table): New type in UTF-2000.
2751         (make_char_byte_table): New function in UTF-2000.
2752         (copy_char_byte_table): New function in UTF-2000.
2753         (make_char_code_table): New macro in UTF-2000.
2754         (get_char_code_table): New function in UTF-2000.
2755         (put_char_code_table): New function in UTF-2000.
2756         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
2757         (charset_description): Add setting in UTF-2000.
2758         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
2759         `CHARSET_TO_BYTE1_TABLE(cs)'.
2760         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
2761         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
2762         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
2763         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
2764         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
2765         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
2766         `CHARSET_TO_BYTE2_TABLE(cs)'.
2767
2768         * char-ucs.h (char_byte_table): New type.
2769         (XCHAR_BYTE_TABLE): New macro.
2770         (XSETCHAR_BYTE_TABLE): New macro.
2771         (CHAR_BYTE_TABLE_P): New macro.
2772         (GC_CHAR_BYTE_TABLE_P): New macro.
2773         (struct Lisp_Char_Byte_Table): New structure.
2774         (get_char_code_table): New interface.
2775         (Emchar_to_byte_table): Deleted.
2776         (get_byte_from_character_table): Deleted.
2777         (struct Lisp_Charset): Add `encoding_table'; delete
2778         `to_byte1_table' and `to_byte2_table'.
2779         (CHARSET_ENCODING_TABLE): New macro.
2780         (CHARSET_TO_BYTE1_TABLE): Deleted.
2781         (CHARSET_TO_BYTE2_TABLE): Deleted.
2782         (XCHARSET_ENCODING_TABLE): New macro.
2783         (XCHARSET_TO_BYTE1_TABLE): Deleted.
2784         (XCHARSET_TO_BYTE2_TABLE): Deleted.
2785
2786 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
2787
2788         * mule-charset.c (syms_of_mule_charset): Delete charset alias
2789         `vietnamese-viscii-*'.
2790
2791 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
2792
2793         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
2794         (Qvietnamese_viscii_upper): New variable.
2795         (Fdefine_charset_alias): New function.
2796         (syms_of_mule_charset): Add new function `define-charset-alias'.
2797         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
2798         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
2799         `latin-viscii-*'.
2800
2801 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
2802
2803         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
2804         (MAX_CHAR_OBS_94x94): New macro.
2805         (breakup_char_1): Support obsolete XEmacs-UCS private code space
2806         for 94x94 sets.
2807
2808         * mule-charset.c (put_byte_from_character_table): Change unit size
2809         from 128 to 256.
2810         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
2811         not defined.
2812         (Fmake_reverse_direction_charset): Modify dummy argument of
2813         `make_charset' for non-UTF-2000 environment.
2814
2815 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2816
2817         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
2818
2819         * mule-charset.c (destroy_byte_from_character_table): New macro.
2820         (latin_jisx0201_to_ucs): Deleted.
2821         (latin_iso8859_2_to_ucs): Deleted.
2822         (latin_iso8859_3_to_ucs): Deleted.
2823         (latin_iso8859_4_to_ucs): Deleted.
2824         (latin_iso8859_9_to_ucs): Deleted.
2825         (latin_viscii_lower_to_ucs): Deleted.
2826         (latin_viscii_upper_to_ucs): Deleted.
2827         (mark_charset): Mark `cs->decoding_table'.
2828         (Fcharset_mapping_table): Fix DOC-string.
2829         (Fset_charset_mapping_table): New function.
2830         (syms_of_mule_charset): Add nwe function
2831         `set-charset-mapping-table'.
2832         (complex_vars_of_mule_charset): Don't setup and use
2833         `latin_*_to_ucs'.
2834
2835 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2836
2837         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
2838         charset.
2839
2840 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2841
2842         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
2843         (Vcharset_katakana_jisx0208): New variable.
2844         (Qhiragana_jisx0208): New variable.
2845         (Qkatakana_jisx0208): New variable.
2846         (make_charset): Add new argument `byte_offset'.
2847         (charset_get_byte1): Modify for new coded-charset definition; use
2848         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
2849         `XCHARSET_BYTE_OFFSET'.
2850         (Fmake_charset): Modify for `make_charset'.
2851         (Fmake_reverse_direction_charset): Likewise.
2852         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
2853         `katakana-jisx0208'.
2854         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
2855         `.'  in font registry of charset `katakana-jisx0201',
2856         `latin-jisx0201', `vietnamese-viscii-lower' and
2857         `vietnamese-viscii-upper'; modify DOC-string of charset
2858         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
2859         registry of charset `japanese-jisx0208' not to use font for JIS
2860         X0208:1990; add new charset `hiragana-jisx0208' and
2861         `katakana-jisx0208'.
2862
2863         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
2864         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
2865         (struct Lisp_Charset): Add `byte_offset'.
2866         (CHARSET_BYTE_OFFSET): New macro.
2867         (XCHARSET_UCS_MIN): New macro.
2868         (XCHARSET_UCS_MAX): New macro.
2869         (XCHARSET_CODE_OFFSET): New macro.
2870         (XCHARSET_BYTE_OFFSET): New macro.
2871         (MIN_CHAR_HIRAGANA): New macro.
2872         (MAX_CHAR_HIRAGANA): New macro.
2873         (MIN_CHAR_KATAKANA): New macro.
2874         (MAX_CHAR_KATAKANA): New macro.
2875         (MAKE_CHAR): Modify for new coded-charset definition; use
2876         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
2877         `XCHARSET_BYTE_OFFSET'.
2878
2879 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
2880
2881         * mule-charset.c (CHAR96): Deleted.
2882         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
2883         <Lisp_Object>.
2884         (latin_iso8859_2_to_ucs): Likewise.
2885         (latin_iso8859_3_to_ucs): Likewise.
2886         (latin_iso8859_4_to_ucs): Likewise.
2887         (latin_iso8859_9_to_ucs): Likewise.
2888         (latin_viscii_lower_to_ucs): Likewise.
2889         (latin_viscii_upper_to_ucs): Likewise.
2890         (latin_tcvn5712_to_ucs): Commented out.
2891         (make_charset): Change type of argument `decoding_table' from
2892         <Emchar*> to <Lisp_Object> [vector of characters].
2893         (Fmake_charset): Modify for `make_charset'.
2894         (Fmake_reverse_direction_charset): Likewise.
2895         (Fcharset_mapping_table): New function in UTF-2000.
2896         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
2897         UTF-2000.
2898         (complex_vars_of_mule_charset): Modify for type change of
2899         `*_to_ucs'; modify for `make_charset'.
2900
2901         * char-ucs.h (struct Lisp_Charset): Change type of
2902         `decoding_table' from <Emchar*> to <Lisp_Object>.
2903         (MAKE_CHAR): Modify for new specification of `decoding_table'.
2904
2905 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
2906
2907         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
2908         error with non-UTF-2000-Mule.
2909
2910 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
2911
2912         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
2913         in lisp again].
2914         (Vcharset_chinese_cns11643_4): Likewise.
2915         (Vcharset_chinese_cns11643_5): Likewise.
2916         (Vcharset_chinese_cns11643_6): Likewise.
2917         (Vcharset_chinese_cns11643_7): Likewise.
2918         (Qchinese_cns11643_3): Likewise.
2919         (Qchinese_cns11643_4): Likewise.
2920         (Qchinese_cns11643_5): Likewise.
2921         (Qchinese_cns11643_6): Likewise.
2922         (Qchinese_cns11643_7): Likewise.
2923         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
2924         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
2925         and `chinese-cns11643-7' to lisp/mule/chinese.el.
2926         (complex_vars_of_mule_charset): Likewise.
2927
2928 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
2929
2930         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
2931         96-set.
2932         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
2933         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
2934
2935 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
2936
2937         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
2938         0xFF60.
2939         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
2940         (breakup_char_1): Likewise.
2941
2942         * text-coding.c (char_encode_iso2022): Keep designated charsets if
2943         one of them includes the specified character.
2944
2945 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
2946
2947         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
2948
2949 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
2950
2951         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
2952
2953 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
2954
2955         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
2956         definition for non-UTF-2000 Mule.
2957         (latin_iso8859_3_to_ucs): Likewise.
2958         (latin_iso8859_4_to_ucs): Likewise.
2959         (latin_iso8859_9_to_ucs): Likewise.
2960         (latin_jisx0201_to_ucs): Likewise.
2961         (MIN_CHAR_THAI): Likewise.
2962         (MAX_CHAR_THAI): Likewise.
2963         (MIN_CHAR_GREEK): Likewise.
2964         (MAX_CHAR_GREEK): Likewise.
2965         (MIN_CHAR_HEBREW): Likewise.
2966         (MAX_CHAR_HEBREW): Likewise.
2967         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
2968         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
2969         (MIN_CHAR_CYRILLIC): Likewise.
2970         (MAX_CHAR_CYRILLIC): Likewise.
2971
2972 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
2973
2974         * char-ucs.h (breakup_char_1): Use
2975         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
2976         thai-tis620 and katakana-jisx0201 area.
2977
2978 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2979
2980         * char-ucs.h (breakup_char_1): Use
2981         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
2982         area.
2983
2984         * text-coding.c (reset_encoding_stream): Fixed.
2985         (char_encode_ucs4): Delete `& 255'.
2986
2987         * char-ucs.h (breakup_char_1): Use
2988         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
2989
2990 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2991
2992         * file-coding.c (Fmake_coding_system): Don't set up
2993         `codesys->fixed.size'.
2994         (encode_coding_no_conversion): Don't refer
2995         `str->codesys->fixed.size'.
2996
2997 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2998
2999         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
3000         (latin_a_char_to_byte1): Deleted.
3001         (latin_a_char_to_byte2): Deleted.
3002
3003 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3004
3005         * mule-charset.c (make_charset): Add new argument `ucs_min',
3006         `ucs_max' and `code_offset'.
3007         (charset_get_byte1): New implementation [delete specific charset
3008         depended implementations].
3009         (Fmake_charset): Modify for `make_charset'.
3010         (Fmake_reverse_direction_charset): Likewise.
3011         (complex_vars_of_mule_charset): Likewise.
3012
3013         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
3014         `code_offset'.
3015         (CHARSET_UCS_MIN): New macro.
3016         (CHARSET_UCS_MAX): New macro.
3017         (CHARSET_CODE_OFFSET): New macro.
3018         (MAKE_CHAR): Delete charset depended definitions [except
3019         katakana-jisx0201].
3020
3021 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
3022
3023         * char-ucs.h (breakup_char_1): Use
3024         `Vdefault_coded_charset_priority_list' for C0-Controls,
3025         Basic-Latin, C1-Controls and Latin-1-Supplement area.
3026
3027 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3028
3029         * char-ucs.h (charset_get_byte1): New function.
3030         (XCHARSET_GET_BYTE1): Deleted.
3031         (charset_get_byte2): New function.
3032         (XCHARSET_GET_BYTE2): Deleted.
3033         (Vdefault_coded_charset_priority_list): New external variable.
3034         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
3035         `Vdefault_preferred_coded_charset_list'.
3036
3037         * mule-charset.c (charset_get_byte1): New function.
3038         (charset_get_byte2): New function.
3039         (Vdefault_coded_charset_priority_list): New variable.
3040         (vars_of_mule_charset): Add new variable
3041         `default-coded-charset-priority-list'.
3042
3043 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3044
3045         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
3046         (XCHARSET_GET_BYTE2): New inline function.
3047         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
3048         `XCHARSET_GET_BYTE2'.
3049
3050 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3051
3052         * mule-charset.c (make_charset): Initialize
3053         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
3054         NULL if table is not defined.
3055
3056 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3057
3058         * text-coding.c (char_encode_shift_jis): Use
3059         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
3060         `ucs_to_latin_jisx0201'.
3061
3062         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
3063         (ucs_to_latin_iso8859_2): Deleted.
3064         (ucs_to_latin_iso8859_3): Deleted.
3065         (ucs_to_latin_iso8859_4): Deleted.
3066         (ucs_to_latin_iso8859_9): Deleted.
3067         (ucs_to_latin_viscii_lower): Deleted.
3068         (ucs_to_latin_viscii_upper): Deleted.
3069         (ucs_to_latin_tcvn5712): Deleted.
3070         (make_charset): Add new argument `decoding_table'; set up
3071         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
3072         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
3073         `decoding_table' is defined in UTF-2000.
3074         (Fmake_charset): Modify for `make_charset'.
3075         (Fmake_reverse_direction_charset): Likewise.
3076         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
3077         and `GENERATE_96_SET'.
3078
3079         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
3080         (ucs_to_latin_jisx0201): Deleted.
3081         (latin_iso8859_2_to_ucs): Deleted.
3082         (ucs_to_latin_iso8859_2): Deleted.
3083         (latin_iso8859_3_to_ucs): Deleted.
3084         (ucs_to_latin_iso8859_3): Deleted.
3085         (latin_iso8859_4_to_ucs): Deleted.
3086         (ucs_to_latin_iso8859_4): Deleted.
3087         (latin_iso8859_9_to_ucs): Deleted.
3088         (ucs_to_latin_iso8859_9): Deleted.
3089         (latin_viscii_lower_to_ucs): Deleted.
3090         (ucs_to_latin_viscii_lower): Deleted.
3091         (latin_viscii_upper_to_ucs): Deleted.
3092         (ucs_to_latin_viscii_upper): Deleted.
3093         (struct Lisp_Charset): Renamed `encoding_table' to
3094         `to_byte1_table'; add `to_byte2_table'.
3095         (CHARSET_DECODING_TABLE): New macro.
3096         (CHARSET_TO_BYTE1_TABLE): New macro.
3097         (CHARSET_TO_BYTE2_TABLE): New macro.
3098         (XCHARSET_DECODING_TABLE): New macro.
3099         (XCHARSET_TO_BYTE1_TABLE): New macro.
3100         (XCHARSET_TO_BYTE2_TABLE): New macro.
3101         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
3102         tables.
3103         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
3104         don't use `ucs_to_*' tables.
3105
3106 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3107
3108         * text-coding.c (Fmake_coding_system): Don't set up
3109         `codesys->fixed.size'.
3110         (encode_coding_no_conversion): Use `if' instead of `switch'.
3111
3112         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
3113
3114 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3115
3116         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
3117         (Fmake_charset): Modify for `make_charset'.
3118         (Fmake_reverse_direction_charset): Likewise.
3119         (complex_vars_of_mule_charset): Likewise.
3120
3121 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3122
3123         * text-coding.c (char_encode_shift_jis): Use table
3124         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
3125
3126 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3127
3128         * text-coding.c (text_encode_generic): Use `if' instead of
3129         `switch'.
3130         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
3131         decode JIS-Latin.
3132
3133 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3134
3135         * text-coding.c (encode_coding_sjis): Deleted.
3136         (char_encode_shift_jis): New function.
3137         (char_finish_shift_jis): New function.
3138         (reset_encoding_stream): Set up `encode_char' and `finish' for
3139         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
3140         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
3141         (char_encode_utf8): Treat `eol_type'.
3142
3143 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3144
3145         * file-coding.c (decode_coding_iso2022): Use
3146         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
3147
3148 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3149
3150         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3151         to 0.7 (Hirano).
3152
3153 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3154
3155         * char-lb.h (CHAR_COLUMNS): New macro.
3156
3157 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3158
3159         * text-coding.c (char_encode_ucs4): New function.
3160         (char_finish_ucs4): New function.
3161         (encode_coding_ucs4): Deleted.
3162         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
3163         (text_encode_generic): Delete local variable `charset' and `half'.
3164         (ucs_to_mule_table): Deleted.
3165         (mule_to_ucs_table): Deleted.
3166         (Fset_ucs_char): Deleted.
3167         (ucs_to_char): Deleted.
3168         (Fucs_char): Deleted.
3169         (Fset_char_ucs): Deleted.
3170         (Fchar_ucs): Deleted.
3171         (decode_ucs4): Deleted.
3172         (mule_char_to_ucs4): Deleted.
3173         (encode_ucs4): Deleted.
3174         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
3175         (decode_coding_utf8): Likewise.
3176         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
3177         (char_encode_iso2022): Fixed.
3178         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
3179         `Fset_char_ucs' and `Fchar_ucs'.
3180         (complex_vars_of_file_coding): Don't initialize
3181         `ucs_to_mule_table'.
3182
3183         * objects-tty.c (tty_initialize_font_instance): Don't use
3184         `XCHARSET_COLUMNS'.
3185
3186         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
3187         UTF-2000.
3188
3189         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
3190         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3191
3192         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
3193         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3194         (emchar_string_displayed_columns): Likewise.
3195
3196         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
3197         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3198         (string_column_at_point): Likewise.
3199         (Fmove_to_column): Likewise.
3200
3201         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
3202         `encoding_table' and `decoding_table'.
3203         (CHARSET_REP_BYTES): Deleted.
3204         (XCHARSET_REP_BYTES): Deleted.
3205         (XCHARSET_COLUMNS): Deleted.
3206         (CHAR_COLUMNS): New macro.
3207         (lookup_composite_char): Deleted unconditionally.
3208         (composite_char_string): Likewise.
3209
3210 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3211
3212         * char-ucs.h (Emchar_to_byte_table): New type.
3213         (get_byte_from_character_table): New function interface.
3214         (Vcharset_latin_jisx0201): New variable.
3215         (latin_jisx0201_to_ucs): New variable.
3216         (ucs_to_latin_jisx0201): New variable.
3217         (Vcharset_latin_iso8859_2): New variable.
3218         (latin_iso8859_2_to_ucs): New variable.
3219         (ucs_to_latin_iso8859_2): New variable.
3220         (Vcharset_latin_iso8859_3): New variable.
3221         (latin_iso8859_3_to_ucs): New variable.
3222         (ucs_to_latin_iso8859_3): New variable.
3223         (Vcharset_latin_iso8859_4): New variable.
3224         (latin_iso8859_4_to_ucs): New variable.
3225         (ucs_to_latin_iso8859_4): New variable.
3226         (Vcharset_latin_iso8859_9): New variable.
3227         (latin_iso8859_9_to_ucs): New variable.
3228         (ucs_to_latin_iso8859_9): New variable.
3229         (Vcharset_latin_viscii_lower): New variable.
3230         (latin_viscii_lower_to_ucs): New variable.
3231         (ucs_to_latin_viscii_lower): New variable.
3232         (Vcharset_latin_viscii_upper): New variable.
3233         (latin_viscii_upper_to_ucs): New variable.
3234         (ucs_to_latin_viscii_upper): New variable.
3235         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
3236         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
3237         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
3238         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
3239         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
3240         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
3241         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
3242         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
3243         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
3244         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
3245
3246         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
3247         (Vcharset_latin_viscii_upper): New variable.
3248         (make_byte_from_character_table): New function.
3249         (put_byte_from_character_table): New function.
3250         (get_byte_from_character_table): New function.
3251         (CHAR96): New macro.
3252         (ucs_to_latin_jisx0201): New variable.
3253         (latin_jisx0201_to_ucs): New variable.
3254         (ucs_to_latin_iso8859_2): New variable.
3255         (latin_iso8859_2_to_ucs): New variable.
3256         (ucs_to_latin_iso8859_3): New variable.
3257         (latin_iso8859_3_to_ucs): New variable.
3258         (ucs_to_latin_iso8859_4): New variable.
3259         (latin_iso8859_4_to_ucs): New variable.
3260         (ucs_to_latin_iso8859_9): New variable.
3261         (latin_iso8859_9_to_ucs): New variable.
3262         (ucs_to_latin_viscii_lower): New variable.
3263         (latin_viscii_lower_to_ucs): New variable.
3264         (ucs_to_latin_viscii_upper): New variable.
3265         (latin_viscii_upper_to_ucs): New variable.
3266         (ucs_to_latin_tcvn5712): New variable.
3267         (latin_tcvn5712_to_ucs): New variable.
3268         (Qlatin_viscii_lower): New variable.
3269         (Qlatin_viscii_upper): New variable.
3270         (syms_of_mule_charset): Set up new symbol
3271         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
3272         (complex_vars_of_mule_charset): Set up new charset
3273         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
3274         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
3275         `ucs_to_<CHARSET>' tables.
3276
3277 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
3278
3279         * text-coding.c: New file.
3280
3281 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
3282
3283         * mule-charset.c (Fmake_char): Fix problem of 256-set.
3284
3285         * char-ucs.h (Vcharset_ucs_bmp): New variable.
3286         (MAKE_CHAR): Modify for `ucs-bmp'.
3287         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
3288         non-MULE characters of BMP.
3289
3290 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
3291
3292         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3293         to 0.6.
3294
3295 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3296
3297         * lstream.h:
3298         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
3299         - Include character.h for `CHAR_ASCII_P'.
3300
3301         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
3302
3303         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
3304         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
3305
3306         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
3307         (BYTE_C0_P): Likewise.
3308         (BYTE_C1_P): Likewise.
3309         (Lstream_get_emchar_1): Likewise.
3310         (Lstream_fput_emchar): Likewise.
3311         (Lstream_funget_emchar): Likewise.
3312         (copy_internal_to_external): Likewise.
3313         (copy_external_to_internal): Likewise.
3314
3315         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
3316         (BYTE_C0_P): Likewise.
3317         (BYTE_C1_P): Likewise.
3318         (Lstream_get_emchar_1): Likewise.
3319         (Lstream_fput_emchar): Likewise.
3320         (Lstream_funget_emchar): Likewise.
3321         (copy_internal_to_external): Likewise.
3322         (copy_external_to_internal): Likewise.
3323
3324         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
3325         (REP_BYTES_BY_FIRST_BYTE): Likewise.
3326
3327         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
3328         (BYTE_ASCII_P): Moved to mb-1byte.h.
3329
3330 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3331
3332         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
3333
3334         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
3335         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
3336         (VALID_CHARPTR_P): Moved to mb-*byte.h.
3337         (VALIDATE_CHARPTR_BACKWARD): Likewise.
3338         (VALIDATE_CHARPTR_FORWARD): Likewise.
3339         (simple_charptr_emchar): Moved to mb-multibyte.h.
3340         (simple_set_charptr_emchar): Likewise.
3341         (simple_charptr_copy_char): Likewise.
3342         (non_ascii_charptr_emchar): Likewise.
3343         (non_ascii_set_charptr_emchar): Likewise.
3344         (non_ascii_charptr_copy_char): Likewise.
3345         (charptr_emchar): Moved to mb-*byte.h.
3346         (set_charptr_emchar): Likewise.
3347         (charptr_copy_char): Likewise.
3348
3349         * mb-1byte.h, mb-multibyte.h: New files.
3350
3351 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3352
3353         * mb-utf-8.h (MULTIBYTE): New macro.
3354         (MAX_EMCHAR_LEN): Moved from buffer.h.
3355         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
3356
3357         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
3358
3359         * mb-lb.h, multibyte.h: New files.
3360
3361         * char-1byte.h (Charset_ID): Moved from buffer.h.
3362         (MIN_LEADING_BYTE): Likewise.
3363         (LEADING_BYTE_ASCII): Likewise.
3364         (NUM_LEADING_BYTES): Likewise.
3365         (CHARSETP): Likewise.
3366         (CHARSET_BY_LEADING_BYTE): Likewise.
3367         (XCHARSET_LEADING_BYTE): Likewise.
3368         (XCHARSET_GRAPHIC): Likewise.
3369         (XCHARSET_COLUMNS): Likewise.
3370         (XCHARSET_DIMENSION): Likewise.
3371         (CHAR_CHARSET): Likewise.
3372         (CHAR_LEADING_BYTE): Likewise.
3373         (BREAKUP_CHAR): Likewise.
3374         (Vcharset_ascii): Likewise.
3375
3376         * buffer.h: Include multibyte.h unconditionally.
3377         (VALID_CHARPTR_P): Moved to multibyte.h.
3378         (ASSERT_VALID_CHARPTR): Likewise.
3379         (REAL_INC_CHARPTR): Likewise.
3380         (REAL_INC_CHARBYTIND): Likewise.
3381         (REAL_DEC_CHARPTR): Likewise.
3382         (INC_CHARPTR): Likewise.
3383         (INC_CHARBYTIND): Likewise.
3384         (DEC_CHARPTR): Likewise.
3385         (VALIDATE_CHARPTR_BACKWARD): Likewise.
3386         (VALIDATE_CHARPTR_FORWARD): Likewise.
3387         (charptr_n_addr): Likewise.
3388         (MAX_EMCHAR_LEN): Moved to mb-*.h.
3389         (simple_charptr_emchar): Moved to multibyte.h.
3390         (simple_set_charptr_emchar): Likewise.
3391         (simple_charptr_copy_char): Likewise.
3392         (non_ascii_charptr_emchar): Likewise.
3393         (non_ascii_set_charptr_emchar): Likewise.
3394         (non_ascii_charptr_copy_char): Likewise.
3395         (charptr_emchar): Likewise.
3396         (set_charptr_emchar): Likewise.
3397         (charptr_copy_char): Likewise.
3398         (charptr_emchar_n): Likewise.
3399         (Charset_ID): Moved to char-1byte.h.
3400         (Vcharset_ascii): Likewise.
3401         (CHAR_CHARSET): Likewise.
3402         (CHAR_LEADING_BYTE): Likewise.
3403         (LEADING_BYTE_ASCII): Likewise.
3404         (NUM_LEADING_BYTES): Likewise.
3405         (MIN_LEADING_BYTE): Likewise.
3406         (CHARSETP): Likewise.
3407         (CHARSET_BY_LEADING_BYTE): Likewise.
3408         (XCHARSET_LEADING_BYTE): Likewise.
3409         (XCHARSET_GRAPHIC): Likewise.
3410         (XCHARSET_COLUMNS): Likewise.
3411         (XCHARSET_DIMENSION): Likewise.
3412         (BREAKUP_CHAR): Likewise.
3413
3414 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3415
3416         * character.h: Add document about interface for characters.
3417
3418         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
3419         (MAKE_CHAR): Delete comment about
3420         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
3421         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
3422         (BREAKUP_CHAR): Modify name of arguments.
3423         (CHAR_CHARSET): Modify name of argument.
3424
3425         * buffer.h: Delete document about Emchar accessors.
3426
3427 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3428
3429         * character.h (CHAR_INTP): Moved from buffer.h
3430         (CHAR_OR_CHAR_INTP): Likewise.
3431         (XCHAR_OR_CHAR_INT): Likewise.
3432         (CHECK_CHAR_COERCE_INT): Likewise.
3433
3434         * buffer.h (CHAR_INTP): Moved to character.h
3435         (CHAR_OR_CHAR_INTP): Likewise.
3436         (XCHAR_OR_CHAR_INT): Likewise.
3437         (CHECK_CHAR_COERCE_INT): Likewise.
3438
3439 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3440
3441         * character.h:
3442         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
3443         - Include char-1byte.h, char-lb.h or char-ucs.h.
3444
3445         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
3446
3447         * buffer.h: Include character unconditionally.
3448         (valid_char_p): Moved to char-*.h.
3449         (non_ascii_valid_char_p): Moved to char-lb.h.
3450
3451         * char-1byte.h, char-lb.h, char-ucs.h: New files.
3452
3453 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3454
3455         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
3456         in UTF-2000 because it is not ported yet and not to use
3457         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
3458         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
3459         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
3460
3461         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
3462         (CHAR_ASCII_P): Moved from character.h.
3463
3464         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
3465         (CHAR_ASCII_P): Likewise.
3466         (CHAR_FIELD1_MASK): Deleted.
3467         (CHAR_FIELD2_MASK): Deleted.
3468         (CHAR_FIELD3_MASK): Deleted.
3469         (MAX_CHAR_BASIC_LATIN): New macro.
3470         (CHAR_FIELD1): Deleted.
3471         (CHAR_FIELD2_INTERNAL): Deleted.
3472         (CHAR_FIELD3_INTERNAL): Deleted.
3473         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
3474         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
3475         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
3476         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
3477         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
3478         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
3479         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
3480         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
3481         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
3482         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
3483         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
3484         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
3485         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
3486         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
3487         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
3488         (MIN_CHAR_COMPOSITION): Deleted.
3489         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
3490         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
3491
3492 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
3493
3494         * buffer.h: Include mb-utf-8.h in UTF-2000.
3495
3496         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
3497
3498         * mb-utf-8.h: New file.
3499
3500 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
3501
3502         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
3503         instead of `int'.
3504
3505         * mule-charset.h, buffer.h (Charset_ID): New type.
3506
3507 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
3508
3509         * mule-canna.c (c2mu): Use `MAKE_CHAR',
3510         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
3511         instead of `MULE_CHAR_PRIVATE_OFFSET',
3512         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
3513         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
3514         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
3515
3516         * character.h (Vcharset_japanese_jisx0212): New variable
3517         definition.
3518
3519 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
3520
3521         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
3522         (charset_by_attributes): Delete array about direction.
3523         (latin_a_char_to_charset): New variable in UTF-2000.
3524         (latin_a_char_to_byte1): New variable in UTF-2000.
3525         (latin_a_char_to_byte2): New variable in UTF-2000.
3526         (Qucs_bmp): New variable.
3527         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
3528         `Bufbyte'.
3529         (next_allocated_2_byte_leading_byte): Likewise.
3530         (non_ascii_set_charptr_emchar): Likewise.
3531         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
3532         `CHARSET_TYPE_256X256' in UTF-2000; modify for
3533         `charset_by_attributes'.
3534         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
3535         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
3536         and `CHARSET_BY_LEADING_BYTE'.
3537         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
3538         `utf-2000-version' to `vars_of_mule_charset'.
3539         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
3540         define `leading-code-private-11' in UTF-2000; move setting of
3541         `utf-2000-version' from `syms_of_mule_charset'.
3542         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
3543         UTF-2000.
3544
3545         * character.h (Charset_ID): New type.
3546         (LEADING_BYTE_UCS_BMP): New macro.
3547         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
3548         (CHARSET_ID_OFFSET_94): New macro.
3549         (MIN_CHARSET_ID_PRIVATE_94): New macro.
3550         (MAX_CHARSET_ID_PRIVATE_94): New macro.
3551         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
3552         final-byte.
3553         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
3554         (LEADING_BYTE_LATIN_JISX0201): Likewise.
3555         (CHARSET_ID_OFFSET_96): New macro.
3556         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
3557         CHARSET_ID_OFFSET_96 and final-byte.
3558         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
3559         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
3560         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
3561         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
3562         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
3563         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
3564         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
3565         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
3566         (LEADING_BYTE_THAI_TIS620): Likewise.
3567         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
3568         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
3569         (CHARSET_ID_OFFSET_94x94): New macro.
3570         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
3571         CHARSET_ID_OFFSET_94x94 and final-byte.
3572         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
3573         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
3574         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
3575         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
3576         (LEADING_BYTE_CHINESE_GB2312): Likewise.
3577         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
3578         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
3579         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
3580         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
3581         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
3582         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
3583         (CHARSET_TYPE_128X128): New macro.
3584         (CHARSET_TYPE_256X256): New macro.
3585         (XCHARSET_PRIVATE_P): Delete unconditionally.
3586         (charset_by_attributes): Delete array about direction.
3587         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
3588         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
3589         (MIN_CHAR_94): New macro.
3590         (MAX_CHAR_94): New macro.
3591         (MIN_CHAR_96): New macro.
3592         (MAX_CHAR_96): New macro.
3593         (MIN_CHAR_94x94): New macro.
3594         (MAX_CHAR_94x94): New macro.
3595         (MIN_CHAR_96x96): New macro.
3596         (MAX_CHAR_96x96): New macro.
3597         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
3598         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
3599         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
3600         - 32)'.
3601         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
3602         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
3603         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
3604         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
3605         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
3606         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
3607         `XCHARSET_LEADING_BYTE' to make code-point.
3608         (latin_a_char_to_charset): New variable.
3609         (latin_a_char_to_byte1): New variable.
3610         (latin_a_char_to_byte2): New variable.
3611         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
3612         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
3613         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
3614
3615         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
3616         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
3617         (find_charsets_in_emchar_string): Likewise.
3618         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
3619
3620         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
3621         `int'.
3622         (decode_coding_iso2022): Likewise.
3623
3624         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
3625         of `unsigned char'.
3626
3627         * redisplay.c (redisplay_text_width_emchar_string): Use
3628         `Charset_ID' instead of `unsigned char'.
3629         (redisplay_frame_text_width_string): Likewise.
3630
3631         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
3632         `unsigned char'.
3633
3634         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
3635         instead of `unsigned char'.
3636         (face_cachel_charset_font_metric_info): Likewise.
3637
3638         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
3639         (get_non_ascii_char_table_value): Likewise.
3640         (get_char_table): Likewise.
3641         (put_char_table): Likewise.
3642         (map_over_other_charset): Likewise.
3643         (map_char_table): Likewise.
3644
3645         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
3646         instead of `unsigned char'.
3647
3648 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
3649
3650         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
3651         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
3652
3653         * mule-charset.c (leading_code_private_11): Don't define in
3654         UTF-2000.
3655
3656         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
3657         in UTF-2000 because it is not ported yet and not to use
3658         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
3659
3660 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
3661
3662         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
3663
3664 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3665
3666         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
3667         in UTF-2000.
3668
3669         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
3670         of unsigned char to store leading-byte.
3671
3672         * chartab.c (get_non_ascii_char_table_value): Don't use
3673         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
3674
3675         * file-coding.c (encode_coding_big5): Delete bogus implementation
3676         in UTF2000.
3677
3678         * character.h (LEADING_BYTE_*): Delete definition for
3679         non-UTF-2000.
3680         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
3681         (LEADING_BYTE_PREFIX_P): Deleted.
3682         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
3683         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
3684         (BUFBYTE_LEADING_BYTE_P): Deleted.
3685         (CHARSET_PRIVATE_P): Deleted unconditionally.
3686         (rep_bytes_by_first_byte): Deleted unconditionally.
3687         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
3688         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
3689         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
3690         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
3691         (CHAR_FIELD2): Deleted.
3692         (CHAR_FIELD3): Deleted.
3693         (MAKE_CHAR): Delete definition for non-UTF-2000.
3694         (BREAKUP_CHAR_1_UNSAFE): Deleted.
3695         (breakup_char_1): New implementation.
3696         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
3697         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
3698
3699 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3700
3701         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
3702         condition.
3703
3704 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3705
3706         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
3707         (CHARSET_PRIVATE_P): Likewise.
3708         (XCHARSET_PRIVATE_P): Likewise.
3709         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
3710
3711         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
3712         UTF2000.
3713         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
3714
3715 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3716
3717         * character.h (LEADING_BYTE_*): Changed in UTF2000.
3718         (NUM_LEADING_BYTES): Changed from 128 to 256.
3719         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
3720         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
3721         UTF2000.
3722         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
3723
3724         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
3725         UTF2000.
3726         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
3727         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
3728         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
3729         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
3730         (Qchinese_cns11643_3): New variable in UTF2000.
3731         (Qchinese_cns11643_4): New variable in UTF2000.
3732         (Qchinese_cns11643_5): New variable in UTF2000.
3733         (Qchinese_cns11643_6): New variable in UTF2000.
3734         (Qchinese_cns11643_7): New variable in UTF2000.
3735         (syms_of_mule_charset): Define `chinese-cns11643-3',
3736         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
3737         and `chinese-cns11643-7' in UTF2000.
3738         (vars_of_mule_charset): Initialize
3739         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
3740         + 1 in UTF2000.
3741         (complex_vars_of_mule_charset): Setup charset
3742         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
3743         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
3744
3745 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3746
3747         * mule-charset.c: Move setting for `leading-code-private-11' from
3748         `syms_of_mule_charset' to `vars_of_mule_charset'.
3749
3750 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3751
3752         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
3753         and `NUM_LEADING_BYTES' in assert.
3754
3755 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3756
3757         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
3758         instead of 128.
3759         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
3760         `NUM_LEADING_BYTES' instead of 128.
3761
3762 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3763
3764         * mule-charset.h (charset_by_leading_byte): Use
3765         `NUM_LEADING_BYTES' instead of 128.
3766         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
3767
3768         * mule-charset.c (charset_by_leading_byte): Use
3769         `NUM_LEADING_BYTES' instead of 128.
3770         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
3771
3772         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
3773         128.
3774
3775 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
3776
3777         * mule-charset.c (syms_of_mule_charset): Update to
3778         0.4 (Shin-Imamiya).
3779
3780 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
3781
3782         * file-coding.c (encode_coding_sjis): New implementation for
3783         UTF2000.  (decode_coding_sjis): Ditto.
3784
3785 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
3786
3787         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
3788         Don't define in UTF2000.
3789
3790         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
3791         defined.
3792
3793         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
3794         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
3795         MULE.
3796
3797 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
3798
3799         * config.h.in (CHAR_IS_UCS4): New macro.
3800
3801         * mule-charset.c (rep_bytes_by_first_byte): Modify for
3802         conventional MULE representation.
3803         (syms_of_mule_charset): Update to 0.3 (Imamiya).
3804
3805         * mule-charset.h: Reverted to original.
3806
3807         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
3808         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
3809         "mule-charset.h" if CHAR_IS_UCS4 is defined.
3810
3811         * character.h: New file.
3812
3813         * file-coding.c (Fmake_coding_system): Set 1 to
3814         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
3815         defined.
3816         (encode_coding_no_conversion): New implementation for UTF2000.
3817
3818         * file-coding.h (struct Lisp_Coding_System): Add new member
3819         `fixed.size'.
3820
3821 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
3822
3823         * file-coding.c (decode_coding_iso2022): Code-point arguments of
3824         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
3825         (encode_coding_iso2022): New implementation for UTF2000.
3826
3827 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3828
3829         * mule-canna.c (c2mu): New implementation for UTF2000.
3830         (m2c): Likewise.
3831
3832 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3833
3834         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
3835
3836 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3837
3838         * file-coding.c (reset_encoding_stream): Set 0 to
3839         `str->iso2022.current_char_boundary' in UTF2000.
3840         (encode_utf8): Don't define in UTF2000.
3841         (encode_coding_utf8): New implementation for UTF-8 representation
3842         of UTF2000.
3843         (complex_vars_of_file_coding): Define coding-system `utf-8'.
3844
3845 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3846
3847         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
3848
3849         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
3850         UTF2000.
3851         (REP_BYTES_BY_FIRST_BYTE): Likewise.
3852
3853         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
3854
3855         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
3856         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
3857         as UTF-8 in UTF2000.
3858         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
3859         (non_ascii_valid_char_p): Don't define in UTF2000.
3860         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
3861         (Lstream_get_emchar_1): Likewise.
3862         (utf-2000-version): New variable in UTF2000.
3863
3864         * lread.c (read_escape): Add new reader `u'.
3865
3866         * insdel.c (three_to_one_table): Don't define in UTF2000.
3867         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
3868         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
3869         UTF2000.
3870         (bytind_to_bufpos_func): Likewise.
3871         (buffer_mule_signal_inserted_region): Likewise.
3872         (vars_of_insdel): Don't initialize `three_to_one_table'.
3873         (init_buffer_text): Use `buf->text->mule_size' instead of
3874         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
3875         UTF2000.
3876
3877         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
3878         UTF-8 representation in UTF2000.
3879         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
3880         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
3881         (decode_coding_iso2022): Don't define local variable `lb' in
3882         UTF2000; don't use LEADING_BYTE in UTF2000; use
3883         `DECODE_ADD_UCS_CHAR' in UTF2000.
3884         (convert_to_external_format): Decode as UTF-8 in UTF2000.
3885
3886         * config.h.in (UTF2000): New macro.
3887
3888         * buffer.h (struct buffer_text): Add new member `mule_size' and
3889         don't add `mule_shifter' and `mule_three_p' in UTF2000.
3890         (valid_char_p): Return always 1 in UTF2000.
3891         (MAX_EMCHAR_LEN): 6 in UTF2000.
3892         (three_to_one_table): Don't define in UTF2000.
3893         (real_bufpos_to_bytind): Modify for UTF-8 representation in
3894         UTF2000.
3895         (real_bytind_to_bufpos): Likewise.
3896
3897         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
3898
3899 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3900
3901         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
3902         representation change.
3903         (Vutf_2000_version): New variable.
3904         (leading_code_private_11): New variable.
3905         (syms_of_mule_charset): Add new variables `utf-2000-version' and
3906         `leading-code-private-11'.
3907
3908         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
3909         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
3910         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
3911         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
3912         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
3913         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
3914         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
3915         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
3916         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
3917         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
3918         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
3919         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
3920         (MIN_CHAR_GREEK): New macro.
3921         (MAX_CHAR_GREEK): New macro.
3922         (MIN_CHAR_CYRILLIC): New macro.
3923         (MAX_CHAR_CYRILLIC): New macro.
3924         (MIN_CHAR_HEBREW): New macro.
3925         (MAX_CHAR_HEBREW): New macro.
3926         (MIN_CHAR_THAI): New macro.
3927         (MAX_CHAR_THAI): New macro.
3928         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
3929         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
3930         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
3931         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
3932         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
3933         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
3934         (CHAR_FIELD2): New inline function.
3935         (CHAR_FIELD3): New inline function.
3936         (MULE_CHAR_PRIVATE_OFFSET): New macro.
3937         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
3938         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
3939         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
3940         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
3941         (MIN_CHAR_COMPOSITION): Likewise.
3942         (CHAR_LEADING_BYTE): Modified for character representation change.
3943         (MAKE_CHAR): Likewise.
3944
3945         * lisp.h (Vcharset_latin_iso8859_1): New variable.
3946         (Vcharset_greek_iso8859_7): Likewise.
3947         (Vcharset_cyrillic_iso8859_5): Likewise.
3948         (Vcharset_hebrew_iso8859_8): Likewise.
3949         (Vcharset_thai_tis620): Likewise.
3950         (Vcharset_katakana_jisx0201): Likewise.
3951
3952 2001-02-08  Martin Buchholz <martin@xemacs.org>
3953
3954         * XEmacs 21.2.44 "Thalia" is released.
3955
3956 2001-02-06  Martin Buchholz  <martin@xemacs.org>
3957
3958         Fixes crashes in kill-emacs on some systems.
3959         * process-unix.c (unix_kill_child_process):
3960         It's OK for kill() to fail with ESRCH.
3961
3962 2001-02-07  Martin Buchholz  <martin@xemacs.org>
3963
3964         Contortions to make .gdbinit tricks work on most systems.
3965         * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
3966         * alloc.c (dbg_valmask): Make non-const.
3967         * alloc.c (dbg_typemask): Make non-const.
3968         * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
3969         * alloc.c (dbg_valbits): Make non-const.
3970         * alloc.c (dbg_gctypebits): Make non-const.
3971         * .gdbinit (decode_object): Make it work with AIX cc.
3972
3973 2001-02-06  Martin Buchholz  <martin@xemacs.org>
3974
3975         * elhash.c (make_general_lisp_hash_table):
3976         Use simpler and more efficient calloc to clear entries.
3977
3978 2001-02-07  Martin Buchholz  <martin@xemacs.org>
3979
3980         * window.c (window_scroll): Work around an AIX C compiler bug.
3981         Fixes 'scroll-up' does nothing problem with xlC.
3982
3983 2001-02-05  Martin Buchholz  <martin@xemacs.org>
3984
3985         * .gdbinit: Remove obsolete comment.
3986
3987 2001-01-31  Mike Alexander  <mta@arbortext.com>
3988
3989         * select.c (Fown_selection_internal): Set owned_p for device
3990         method correctly.
3991
3992 2001-02-01  Martin Buchholz  <martin@xemacs.org>
3993
3994         Port to g++ 2.97.
3995         "not" cannot be used as a macro name as it is an operator in C++
3996         * config.h.in: Stop #defining `not'.
3997         * chartab.c (check_category_char): not ==> not_p
3998         * chartab.h: Likewise.
3999         * regex.c (re_match_2_internal): Likewise.
4000
4001 2001-02-02  Martin Buchholz  <martin@xemacs.org>
4002
4003         * lisp-disunion.h: Fix up comments.
4004
4005 2001-01-31  Martin Buchholz  <martin@xemacs.org>
4006
4007         * keymap.c (define_key_check_and_coerce_keysym):
4008         (syms_of_keymap):
4009         Support mouse-6 and mouse-7 bindings in the obvious way.
4010
4011 2001-02-01  Martin Buchholz  <martin@xemacs.org>
4012
4013         * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
4014
4015 2001-01-30  Martin Buchholz  <martin@xemacs.org>
4016
4017         Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
4018         Previous patch missed DEFVAR_INT_MAGIC.
4019         Make sure future DEFVAR_foo use correct types.
4020         * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
4021         * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
4022         * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
4023         * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
4024         * (DEFVAR_INT): Likewise.
4025         * redisplay.c (vertical_clip): Should be of type Fixnum.
4026         * redisplay.c (horizontal_clip): Likewise.
4027         * lisp.h (dump_add_opaque_int): New.
4028         (dump_add_opaque_fixnum): New.
4029
4030 2001-01-29  Andy Piper  <andy@xemacs.org>
4031
4032         * glyphs-widget.c (check_valid_int_or_function): allow symbols
4033         since they can be eval'ed
4034
4035 2001-01-29  Martin Buchholz  <martin@xemacs.org>
4036
4037         * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
4038         Oops, XEmacs redefines `class'.  Use `typename' instead.
4039
4040 2001-01-28  Martin Buchholz  <martin@xemacs.org>
4041
4042         * dumper.c: Fix C++ compile errors.
4043
4044 2001-01-29  Martin Buchholz  <martin@xemacs.org>
4045
4046         * tparam.c: Use correct prototypes.
4047
4048 2001-01-28  Martin Buchholz  <martin@xemacs.org>
4049
4050         * sysproc.h: #include util.h for NetBSD's openpty.
4051
4052 2001-01-27  Martin Buchholz  <martin@xemacs.org>
4053
4054         More 64-bit correctness.
4055         The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
4056         Use a typedef `fixnum' for the type used for DEFVAR_INT.
4057         Fix up comments.
4058         This finally finishes the 64-bit SGI port.
4059         Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
4060         * symbols.c: Fix up comments and type casts.
4061         * symbols.c (do_symval_forwarding): s/int/Fixnum/g
4062         * symbols.c (store_symval_forwarding): s/int/Fixnum/g
4063         * symeval.h (Fixnum): New type.
4064         * symeval.h (symbol_value_type): Fix up comment.
4065
4066         * commands.h:
4067         * nt.c:
4068         * emacs.c:
4069         * data.c:
4070         * redisplay.c:
4071         * abbrev.c:
4072         * dired-msw.c:
4073         * event-Xt.c:
4074         * eldap.c:
4075         * window.c:
4076         * sound.c:
4077         * event-stream.c:
4078         * eval.c:
4079         * buffer.c:
4080         * mule-canna.c: A million DEFVAR_INTs here...
4081         * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
4082         * extents.c:
4083         * cmdloop.c:
4084         * lisp.h:
4085         * select-x.c:
4086         * console-x.h:
4087         * event-msw.c:
4088         * mule-wnnfns.c:
4089         * hpplay.c:
4090         * ralloc.c:
4091         * alloc.c:
4092         * keymap.c:
4093         * profile.c:
4094         s/int/Fixnum/g in DEFVAR_INT declarations.
4095
4096 2001-01-26  Martin Buchholz  <martin@xemacs.org>
4097
4098         Port pdump to SGI alignment-sensitive environment.
4099         Lisp Object sizeof methods now return aligned sizes.  Rely on that.
4100         Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
4101         properly aligned.
4102         Define and use aligned reading and writing macros.
4103         Use buffered stdio instead of posix i/o for faster dumping.
4104         Eliminate kludgy 256 byte space for header.
4105         Read and write from dump file using structs for alignment safety.
4106         * dumper.c (pdump_align_stream): New.
4107         * dumper.c (PDUMP_ALIGN_OUTPUT): New.
4108         * dumper.c (PDUMP_READ_ALIGNED): New.
4109         * dumper.c (PDUMP_WRITE_ALIGNED): New.
4110         * dumper.c (pdump_static_Lisp_Object): New struct.
4111         * dumper.c (pdump_static_pointer): New struct.
4112         * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
4113         * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
4114         * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
4115         * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
4116
4117         * dumper.c (pdump_backtrace):
4118         * dumper.c (pdump_get_indirect_count):
4119         * dumper.c (pdump_register_object):
4120         * dumper.c (pdump_register_struct):
4121         * dumper.c (pdump_reloc_one):
4122         * dumper.c (pdump_scan_by_alignment):
4123         * dumper.c (pdump_dump_from_root_struct_ptrs):
4124         * dumper.c (pdump_dump_opaques):
4125         * dumper.c (pdump_dump_rtables):
4126         * dumper.c (pdump_dump_from_root_objects):
4127         * dumper.c (pdump):
4128         * dumper.c (pdump_load_finish):
4129         Use aligned reading and writing.
4130
4131         * dumper.c (pdump_free): Make static.
4132         * dumper.c (pdump_hFile): Likewise.
4133         * dumper.c (pdump_hMap): Likewise.
4134
4135 2001-01-26  Martin Buchholz <martin@xemacs.org>
4136
4137         * XEmacs 21.2.43 "Terspichore" is released.
4138
4139 2001-01-25  Martin Buchholz  <martin@xemacs.org>
4140
4141         Type fiddling for window_config.saved_windows_count
4142         * window.c (struct window_config): 
4143         Make saved_windows_count member unsigned.
4144         * window.c (sizeof_window_config_for_n_windows): 
4145         Make parameter unsigned.
4146         * window.c (mark_window_config):
4147         * window.c (window_config_equal):
4148         * window.c (free_window_configuration):
4149         * window.c (Fset_window_configuration):
4150         * window.c (count_windows):
4151         * window.c (Fcurrent_window_configuration):
4152         * window.c (reinit_vars_of_window):
4153         Update all callers and users.
4154
4155 2001-01-25  Martin Buchholz  <martin@xemacs.org>
4156
4157         Alignment correctness for flexible arrays.
4158         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
4159         Make alignment-correct. Add interesting comments.
4160         * alloc.c (size_vector):
4161         * alloc.c (make_vector_internal):
4162         * alloc.c (make_bit_vector_internal):
4163         * alloc.c (sweep_bit_vectors_1):
4164         * fns.c (size_bit_vector):
4165         Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
4166         * window.c (sizeof_window_config_for_n_windows): 
4167         Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
4168
4169 2001-01-24  Martin Buchholz  <martin@xemacs.org>
4170
4171         * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
4172
4173 2001-01-23  Andy Piper  <andy@xemacs.org>
4174
4175         * select.c (Fown_selection_internal): pass owned_p
4176
4177         * select-msw.c (mswindows_own_selection): New Signature.
4178
4179         * console.h (struct console_methods): add owned_p to
4180         _own_selection.
4181
4182         * select-x.c (x_own_selection): pass owned_p
4183         (hack_motif_clipboard_selection): use owned_p
4184         (vars_of_select_x): new variable -
4185         x_selection_strict_motif_ownership.
4186
4187 2001-01-23  Martin Buchholz  <martin@xemacs.org>
4188
4189         * specifier.h (specifier_data_offset): Remove pointless parens.
4190         * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
4191
4192 2001-01-24  Martin Buchholz  <martin@xemacs.org>
4193
4194         Make Lisp_Object sizeof methods be alignment-correct.
4195         pdump must restore objects to the same alignment as the C compiler
4196         assumes.  It really matters on SGIs.
4197         * lstream.c (aligned_sizeof_lstream): New.
4198         (sizeof_lstream): Use aligned_sizeof_lstream.
4199         (Lstream_new): Likewise.
4200         * opaque.c (aligned_sizeof_opaque): New.
4201         (sizeof_opaque): Use aligned_sizeof_opaque.
4202         (make_opaque): Likewise.
4203         * specifier.c (aligned_sizeof_specifier): New.
4204         (sizeof_specifier): Use aligned_sizeof_specifier.
4205         (make_specifier_internal): Likewise.
4206
4207 2001-01-23  Martin Buchholz  <martin@xemacs.org>
4208
4209         * lstream.h (struct lstream): Use max_align_t for trailing data.
4210         * specifier.h (struct Lisp_Specifier): Likewise.
4211
4212 2001-01-22  Martin Buchholz  <martin@xemacs.org>
4213
4214         * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
4215         (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
4216         (CCL_SUSPEND): Likewise.
4217         (CCL_INVALID_CMD): Likewise.
4218         (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
4219         (ccl_driver): Likewise.
4220         (CCL_WRITE_CHAR): Macro hygiene.
4221         (CCL_WRITE_STRING): Macro hygiene.
4222
4223 2001-01-22  Martin Buchholz  <martin@xemacs.org>
4224
4225         Port "portable" dumper to SunOS 4 and HP-UX.
4226         * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
4227         * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
4228         * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
4229
4230 2001-01-22  Martin Buchholz  <martin@xemacs.org>
4231
4232         * lisp.h (ALIGNOF): A better definition for C++.
4233
4234 2001-01-20  Martin Buchholz  <martin@xemacs.org>
4235
4236         Macro hygiene.
4237         Fix printf warnings: int format, long int arg.
4238         * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
4239         (PUSH_FAILURE_POINT): Use correct printf formats.
4240         (POP_FAILURE_POINT): Use correct printf formats.  
4241         Use do {...} while (0)
4242
4243 2001-01-20  Martin Buchholz <martin@xemacs.org>
4244
4245         * XEmacs 21.2.42 "Poseidon" is released.
4246
4247 2001-01-20  Martin Buchholz  <martin@xemacs.org>
4248
4249         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
4250
4251 2001-01-19  Martin Buchholz  <martin@xemacs.org>
4252
4253         De-kludgify FIXED_TYPE free list frobbing.
4254         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
4255         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
4256         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
4257         * alloc.c (Lisp_Free): New pseudo lisp object definition.
4258         * alloc.c (LRECORD_FREE_P): New.
4259         * alloc.c (MARK_LRECORD_AS_FREE): New.
4260         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
4261         * alloc.c (STRUCT_FREE_P): Deleted.
4262         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
4263         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
4264         * alloc.c (STRING_CHARS_FREE_P): New.
4265         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
4266         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
4267         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
4268         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
4269         * alloc.c (resize_string): Use new definitions.
4270         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
4271         * alloc.c (verify_string_chars_integrity): Use new definitions.
4272         * alloc.c (compact_string_chars): Use new definitions.
4273         * alloc.c: Update monster comments.
4274         * lrecord.h (lrecord_type): Add some new lrecord types for
4275         alloc.c's use.
4276
4277 2001-01-18  Martin Buchholz  <martin@xemacs.org>
4278
4279         Improve alignment hackery.
4280         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
4281         (max_align_t): Moved from opaque.h - general purpose.
4282         (ALIGN_PTR): Use size_t, not long.
4283         * opaque.h (max_align_t): Move to lisp.h.
4284
4285 2001-01-18  Norbert Koch  <nk@LF.net>
4286
4287         * gui.h: Fix and add prototypes to fix build problems.
4288
4289 2001-01-18  Martin Buchholz  <martin@xemacs.org>
4290
4291         temacs is going away, so `dump-temacs' is now a bad name.
4292         * .dbxrc (dump-temacs): Rename to `dmp'.
4293         * .gdbinit (dump-temacs): Rename to `dmp'.
4294
4295 2001-01-17  Andy Piper  <andy@xemacs.org>
4296
4297         * glyphs.c (print_image_instance): comment to make martin happy.
4298
4299         * glyphs-x.c (x_redisplay_widget): update faces after a frame
4300         change.
4301
4302         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
4303         activation.
4304         (mswindows_tab_control_redisplay): warning suppression.
4305
4306         * glyphs-widget.c (widget_update): re-write to cope with updated
4307         items.
4308         (widget_instantiate): use new gui_item functions.
4309         (tab_control_update): deleted.
4310         (progress_gauge_update): deleted.
4311         (image_instantiator_progress_guage): take out update reference.
4312         (image_instantiator_tree_view): ditto.
4313         (image_instantiator_tab_control): ditto.
4314
4315         * gui.c (widget_gui_parse_item_keywords): new function. Do things
4316         Right the new way.
4317         (gui_item_add_keyval_pair): re-write to cope with descriptors and
4318         return whether anything was changed.
4319         (update_gui_item_keywords): as it sounds.
4320
4321         * gui.h: declare widget_gui_parse_item_keywords.
4322
4323         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
4324         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
4325
4326 2001-01-17  Martin Buchholz <martin@xemacs.org>
4327
4328         * XEmacs 21.2.41 "Polyhymnia" is released.
4329
4330 2001-01-16  Didier Verna  <didier@xemacs.org>
4331
4332         * glyphs.c (image_instantiate): don't use fallbacks when
4333         instantiating a face's background pixmap by inheritance.
4334
4335 2001-01-14  Mike Sperber <mike@xemacs.org>
4336
4337         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
4338         Conditionalize accordingly.
4339
4340 2001-01-16  Martin Buchholz  <martin@xemacs.org>
4341
4342         * dumper.c (pdump_file_get): Fix a compiler warning.
4343
4344 2001-01-15  Martin Buchholz  <martin@xemacs.org>
4345
4346         Make Purify happy when pdumping.
4347         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
4348         iniitalizing all bits of new lisp object memory.
4349         * symbols.c (Fmake_local_variable): Likewise.
4350         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
4351         * symbols.c (Fdefvaralias): Likewise.
4352         * mule-charset.c (vars_of_mule_charset): Likewise.
4353
4354 2001-01-15  Martin Buchholz  <martin@xemacs.org>
4355         Add the `-nd' flag when running pre-dump operations under the debugger.
4356         * .dbxrc (run-temacs): Add `-nd'.
4357         * .dbxrc (update-elc): Likewise.
4358         * .dbxrc (dump-temacs): Likewise.
4359         * .gdbinit (run-temacs): Likewise.
4360         * .gdbinit (check-temacs): Likewise.
4361         * .gdbinit (update-elc): Likewise.
4362         * .gdbinit (dump-temacs): Likewise.
4363
4364 2001-01-14  Martin Buchholz  <martin@xemacs.org>
4365
4366         Allow building 64-bit executables on AIX with GNU malloc, e.g.
4367         export OBJECT_MODE=64
4368         configure --pdump --use-union-type=no
4369         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
4370         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
4371
4372         * miscplay.c (sndcnv8U_2mono):
4373         Avoid two uses of `++' in the same expression.
4374         Suppresses a GCC warning.
4375
4376 2001-01-13  Martin Buchholz  <martin@xemacs.org>
4377
4378         Make sure future compilers don't miscompile alloc.c.
4379         * alloc.c:
4380         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
4381         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
4382
4383 2001-01-12  Martin Buchholz  <martin@xemacs.org>
4384
4385         * dumper.c: A little post-pdump-rename comment fixup.
4386
4387 2001-01-09  Jerry James  <james@eecs.ku.edu>
4388
4389         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
4390
4391 2001-01-13  Martin Buchholz  <martin@xemacs.org>
4392
4393         * *.[ch]: Globally rename symbols using the following `pdump-rename'
4394         script:
4395         #!/bin/sh
4396         replace_symbol () {
4397           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
4398         }
4399
4400         replace_symbol pdump_wire_lists pdump_weak_object_chains
4401         replace_symbol pdump_wire_list dump_add_weak_object_chain
4402
4403         replace_symbol pdump_wires pdump_root_objects
4404         replace_symbol pdump_wire dump_add_root_object
4405
4406         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
4407         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
4408
4409         replace_symbol dumpstructinfos pdump_root_struct_ptrs
4410         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
4411         replace_symbol dumpstructinfo pdump_root_struct_ptr
4412         replace_symbol dumpstruct dump_add_root_struct_ptr
4413
4414         replace_symbol dumpopaque dump_add_opaque
4415         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
4416         replace_symbol dumpopaqueinfos pdump_opaques
4417         replace_symbol dumpopaqueinfo pdump_opaque
4418
4419         replace_symbol nb_structdump nb_root_struct_ptrs
4420         replace_symbol nb_opaquedump nb_opaques
4421
4422         replace_symbol align_table pdump_align_table
4423         replace_symbol dump_header pdump_header
4424
4425         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
4426         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
4427
4428
4429 2001-01-12  Martin Buchholz  <martin@xemacs.org>
4430
4431         * s/aix4.h: Keep the C for AIX compiler from overaggressively
4432         optimizing bytecount_to_charcount().
4433
4434 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
4435
4436         * config.h.in:
4437         (HAVE_DLFCN_H): Removed.
4438         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
4439
4440 2001-01-06  Martin Buchholz  <martin@xemacs.org>
4441
4442         Portable dumper maintainability improvements.
4443         * alloc.c (staticpro):
4444         * alloc.c (staticpro_nodump):
4445         * alloc.c (garbage_collect_1):
4446         * alloc.c (reinit_alloc_once_early):
4447         * alloc.c (init_alloc_once_early):
4448         * alloc.c: Move dumper functions to alloc.c.
4449         * dumper.c (pdump_backtrace):
4450         * dumper.c (pdump_dump_structs):
4451         * dumper.c (pdump_dump_opaques):
4452         * dumper.c (pdump_dump_rtables):
4453         * dumper.c (pdump_dump_wired):
4454         * dumper.c (pdump):
4455         * dumper.c (pdump_load_check):
4456         * dumper.c (pdump_load_finish):
4457         * dumper.c (pdump_file_unmap):
4458         * dumper.c (pdump_file_get):
4459         * dumper.c (pdump_resource_free):
4460         * dumper.c (pdump_resource_get):
4461         * dumper.c (pdump_file_free):
4462         * dumper.c (pdump_file_try):
4463         * dumper.c (pdump_load):
4464         Remove fixed size limits on staticpro(), staticpro_nodump(),
4465         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
4466         Remove custom code for dumping lrecord_implementations_table - use
4467         dumpopaque instead.
4468         Remove (most of the) custom code for dumping staticpros - dump it
4469         like any other dynarr.
4470
4471         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
4472         * dumper.c: Moved functions from alloc.c.
4473         * alloc.c (dumpstruct): Moved to dumper.c.
4474         * alloc.c (dumpopaque): Likewise.
4475         * alloc.c (pdump_wire): Likewise.
4476         * alloc.c (pdump_wire_list): Likewise.
4477
4478         * lisp.h (Dynarr_sizeof): New.
4479         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
4480         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
4481         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
4482
4483         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
4484         * lisp.h (dumpopaque): ditto.
4485         * lisp.h (pdump_wire): ditto.
4486         * lisp.h (pdump_wire_list): ditto.
4487
4488 2001-01-09  Martin Buchholz  <martin@xemacs.org>
4489
4490         * make-src-depend (PrintPatternDeps):
4491         Use `sort' to make output independent of perl version.
4492
4493 2001-01-08  Martin Buchholz  <martin@xemacs.org>
4494
4495         Port to Netbsd 1.5.
4496         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
4497         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
4498
4499 2001-01-03  Didier Verna  <didier@xemacs.org>
4500
4501         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
4502         that `focus_frame' is alive before thinking of calling
4503         `redisplay_redraw_cursor' on it.
4504
4505 2001-01-08  Martin Buchholz <martin@xemacs.org>
4506
4507         * XEmacs 21.2.40 is released.
4508
4509 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
4510
4511         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
4512
4513 2001-01-06  Martin Buchholz  <martin@xemacs.org>
4514
4515         * alloc.c (dbg_valmask): Make const.
4516         * alloc.c (dbg_typemask): Make const.
4517         * alloc.c (dbg_USE_UNION_TYPE): Make const.
4518         * alloc.c (dbg_valbits): Make const.
4519         * alloc.c (dbg_gctypebits): Make const.
4520
4521 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
4522
4523         * redisplay-x.c (x_bevel_area):
4524         redisplay.h (struct rune):
4525         Typo fixes in comments.
4526
4527 2001-01-05  Andy Piper  <andy@xemacs.org>
4528
4529         * glyphs-x.c (x_redisplay_widget): use size changed for offset
4530         adjustment.
4531
4532         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
4533
4534 2001-01-05  Martin Buchholz  <martin@xemacs.org>
4535
4536         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
4537
4538         * mule-ccl.c (stack_idx_of_map_multiple):
4539         Non const global data must not be initialized!
4540         Found by MIYASHITA Hisashi.
4541
4542 2001-01-02  Andy Piper  <andy@xemacs.org>
4543
4544         * frame.c (change_frame_size): make sure frame size is always
4545         marked as changed.
4546
4547         * glyphs.c (image_instance_layout): minor code reuse.
4548
4549         * window.c (Fcurrent_window_configuration): revert previous
4550         change.
4551
4552 2001-01-02  Martin Buchholz  <martin@xemacs.org>
4553
4554         * glyphs.h:
4555         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
4556
4557 2000-12-31  Andy Piper  <andy@xemacs.org>
4558
4559         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
4560         when widget gets unmapped.
4561
4562         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
4563         function. Make sure widgets losing focus don't just drop it.
4564         (handle_focus_event_1): record the widget with focus.
4565
4566 2000-12-31  Andy Piper  <andy@xemacs.org>
4567
4568         * window.c (allocate_window): use
4569         make_image_instance_cache_hash_table.
4570         (make_dummy_parent): ditto.
4571         (Fset_window_configuration): ditto.
4572
4573         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
4574
4575         * glyphs.c (process_image_string_instantiator): use
4576         INSTANTIATOR_TYPE.
4577         (get_image_instantiator_governing_domain): ditto.
4578         (normalize_image_instantiator): ditto.
4579         (instantiate_image_instantiator): ditto.
4580         (make_image_instance_1): ditto.
4581         (image_instantiate): ditto. Key on glyph *and* instantiator type.
4582         (instantiator_eq_equal): new function for use with instance hash
4583         tables.
4584         (instantiator_eq_hash): ditto.
4585         (make_image_instance_cache_hash_table): create a suitable hash
4586         table for storing image instances.
4587
4588         * elhash.h (hash_table_weakness): new internal weakness type
4589         HASH_TABLE_KEY_CAR_VALUE_WEAK.
4590         declare new functions.
4591
4592         * elhash.c (finish_marking_weak_hash_tables): introduce yet
4593         another weakness type for glyphs.
4594         (make_standard_lisp_hash_table): new function split out from
4595         make_general_lisp_hash_table.
4596         (make_lisp_hash_table): call make_standard_lisp_hash_table.
4597         (hash_table_instantiate): ditto.
4598         (Fmake_hash_table): ditto.
4599
4600 2000-12-31  Martin Buchholz <martin@xemacs.org>
4601
4602         * XEmacs 21.2.39 is released.
4603
4604 2000-12-29  Andy Piper  <andy@xemacs.org>
4605
4606         * menubar.c (menubar_visible_p_changed): signal the frame changed.
4607
4608         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
4609         the frame has changed so that we pick up geometry changes such as
4610         menubar visibility.
4611
4612 2000-12-28  Andy Piper  <andy@xemacs.org>
4613
4614         * lastfile.c (my_ebss): make a char array so we can pad the
4615         bss. Fixes cygwin unexec.
4616
4617         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
4618
4619 2000-12-26  Andy Piper  <andy@xemacs.org>
4620
4621         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
4622         comments and try and be more precise about a non-/SIGIO world.
4623         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
4624         SIGIO.
4625
4626         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
4627         we don't normalize to zero width or height.
4628
4629 2000-12-24  Andy Piper  <andy@xemacs.org>
4630
4631         * Makefile.in.in (ldflags): add -mwindows when appropriate.
4632
4633 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
4634
4635         * s/sco5.h: SCO 5 has pty support.
4636
4637 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
4638
4639         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
4640         input-method-xlib.c contains whole contents of input-method-xfs.c,
4641         so we can use input-method-xlib.c's code for USE_XFONTSET
4642         using #ifdefs.
4643         * input-method-xfs.c: removed.
4644
4645 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
4646
4647         * file-coding.h (enum coding_category_type): reorder enumerators to
4648         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
4649         (now one greater than largest real coding_category_type enumerator).
4650         * file-coding.c (coding_category_symbol, coding_category_by_priority,
4651         coding_category_system, fcd_descriptihon_1, decode_coding_category,
4652         Fcoding_category_list, Fset_coding_priority_list,
4653         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
4654         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
4655
4656 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
4657
4658         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
4659         * redisplay-output.c (redisplay_output_window): Clear top of window
4660         when face is changed.
4661         * redisplay-x.c (x_redraw_exposed_window): Call
4662         redisplay_clear_top_of_window.
4663         * redisplay.h: Publish redisplay_clear_top_of_window.
4664
4665 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
4666
4667         * buffer.c (Fkill_buffer): Map over all devices.
4668         * window.c (window_loop): Remove UNSHOW_BUFFER code.
4669         (list_windows): New function.
4670         (list_all_windows): Ditto.
4671         (Freplace_buffer_in_windows): Use them.
4672
4673 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
4674
4675         * database.c (berkdb_subtype): Recognize new subtype `queue'.
4676         (Fopen_database): Use `db_create' instead of `db_open'.
4677         (syms_of_database): Initialize Qqueue.
4678
4679 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
4680
4681         * buffer.c (common_init_complex_vars_of_buffer): Initialize
4682         buffer_local_face_property.
4683         * buffer.h (struct buffer): New member buffer_local_face_property.
4684         * window.c (Fset_window_buffer):  Mark window's face as changed
4685         when buffer has buffer local face.
4686         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
4687         * objects.c (color_after_change): Set buffer_local_face_property
4688         when locale of face specifier is buffer.
4689         * objects.c (font_after_change): Ditto.
4690         * objects.c (face_boolean_after_change): Ditto.
4691         * glyphs.c (image_after_change): Ditto.
4692
4693 2000-12-09  Dan Holmsand  <dan@eyebee.com>
4694
4695         * nt.c (mswindows_fstat): Report file permissions, volume serial
4696         number, etc. Code adapted from FSF Emacs 20.7.
4697
4698 2000-12-09  Dan Holmsand  <dan@eyebee.com>
4699
4700         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
4701         of stat when we don't have symbolic links, to make sure
4702         mswindows_stat is called on mswindows.
4703
4704 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
4705
4706         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
4707
4708 2000-12-12  Martin Buchholz  <martin@xemacs.org>
4709
4710         * doprnt.c (emacs_doprnt_1): More printing fixes.
4711         Make printing of numbers compatible with libc and FSF Emacs.
4712         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
4713         Use the system printf to do most of the hard work of formatting,
4714         instead of doprnt_1().
4715         Calculate memory to allocate for format string.
4716         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
4717         (doprnt_1): Cleaner code and documentation.
4718
4719 2000-12-01  Jerry James  <james@eecs.ukans.edu>
4720
4721         * Makefile.in.in: Use the loop variable to install headers.
4722
4723 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
4724
4725         * window.c (Fsplit_window): Don't invalidate face cache.
4726
4727 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
4728
4729         * minibuf.c (Fall_completions): Undo the previous change
4730         which removed checking elements start with space.
4731
4732 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
4733
4734         * mule-canna.c: Didier suppression.
4735
4736 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
4737
4738         * mule-canna.c: rename static unsigned char buf[] to key_buffer
4739         (warning suppression).  Add English comment translations.
4740
4741 2000-12-05  Martin Buchholz  <martin@xemacs.org>
4742
4743         * unexelfsgi.c (unexec): Better test for mmap failure.
4744
4745 2000-12-05  Martin Buchholz <martin@xemacs.org>
4746
4747         * XEmacs 21.2.38 is released.
4748
4749 2000-12-05  Martin Buchholz  <martin@xemacs.org>
4750
4751         * redisplay.c (bar-cursor): Make a user variable.
4752
4753         * symsinit.h: Add init_postgresql_from_environment.
4754
4755 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
4756
4757         * regex.c: Convert to clean C.
4758
4759 2000-12-05  Dan Holmsand  <dan@eyebee.com>
4760
4761         * realpath.c:
4762         Don't #include sysfile.h. Revert to duplicating PATH_MAX
4763         initialization.
4764         (sys_readlink): renamed to system_readlink to avoid conflict with
4765         the other sys_readlink.
4766
4767 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
4768
4769         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
4770
4771 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
4772
4773         * postgresql.c (init_postgresql_from_environment): new function.
4774         (vars_of_postgresql): Move code initializing Lisp variables out and
4775         into init_postgresql_from_environment.
4776         emacs.c (main_1): Call init_postgresql_from_environment if and only
4777         if running a dumped XEmacs.
4778
4779 2000-08-31  Dan Holmsand  <dan@eyebee.com>
4780
4781         * buffer.c: Make find-file-compare-truenames default to true on
4782         windows.
4783
4784         * realpath.c (win32_abs_start):
4785         (cygwin_readlink):
4786         (win32_readlink): New functions.
4787         (xrealpath): Return really real filenames on windows.
4788
4789         * fileio.c (Ffile_truename): Make file-truename work on windows.
4790
4791 2000-11-29  Didier Verna  <didier@xemacs.org>
4792
4793         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
4794         * faces.c (update_face_cachel_data): use it.
4795         * faces.c (add_face_cachel): use it. Complete background pixmap
4796         frobbing in face cache if `update_face_cachel_data' has not done so.
4797
4798 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
4799
4800         * search.c (string_match_1): Don't set last_thing_searched
4801         when search failed.
4802
4803 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
4804
4805         * buffer.c: Include casetab.h
4806         (common_init_complex_vars_of_buffer): Use new case-table object.
4807         * buffer.h: Include casetab.h
4808         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
4809         (DOWNCASE_TABLE_OF): Ditto.
4810         * bufslots.h: Remove char-tables and add case-table.
4811         * casetab.c: Include casetab.h
4812         (CASE_TABLE_P): Removed.
4813         (mark_case_table): New function.
4814         (allocate_case_table): New function.
4815         (Fcase_table_p): Use new case-table.
4816         (case_table_char): New function.
4817         (Fget_case_table): Ditto.
4818         (Fput_case_table): Ditto.
4819         (Fput_case_table_pair): Ditto.
4820         (Fcopy_case_table): Ditto.
4821         (Fcurrent_case_table): Return case-table.
4822         (Fstandard_case_table): Return case-table.
4823         (Fset_case_table): Fix doc-string.
4824         (set_case_table): Use case-table
4825         (syms_of_casetab): DEFSUBR new functions.
4826         (complex_vars_of_casetab): Set up standard case-table.
4827         * casetab.h: New file.
4828         * editfns.c: Include casetab.h
4829         (Fcompare_buffer_substrings): Use case-table.
4830         * inline.c: Include casetab.h
4831         * lisp.h: Remove bogus extern.
4832         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
4833         * search.c: Include casetab.h
4834         (TRANSLATE_ASCII): Removed.
4835         (TRANSLATE): Unconditionally translate character.
4836         (looking_at_1): Use case-table.
4837         (string_match_1): Ditto.
4838         (fast_string_match): Ditto.
4839         (search_command): Ditto.
4840         (search_buffer): Separate boyer_moore.  Check whether
4841         boyer_moore is possible.
4842         (simple_search): New function.
4843         (boyer_moore): Separated from search_buffer. Translate char.
4844
4845 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
4846
4847         * regex.c (RE_TR_ASCII): Removed.
4848         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
4849         (PATFETCH): Call PATFETCH_RAW.
4850         (PATFETCH_RAW): Fetch Emchar.
4851         (PATUNFETCH): Decrement charptr.
4852         (GET_BUFFER_SPACE): Rename b to buf_end.
4853         (BUF_PUSH): Ditto.
4854         (BUF_PUSH_2): Ditto.
4855         (BUF_PUSH_3): Ditto.
4856         (EXTEND_BUFFER): Ditto.
4857         (SET_LIST_BIT): Ditto.
4858         (regex_compile): Ditto.  Translate non ASCII char.
4859         (compile_range): Ditto.
4860         (re_search_2): Ditto.
4861         (re_match_2_internal): Compare Emchar.
4862         (bcmp_translate): Ditto.
4863
4864 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
4865
4866         * lisp.h (basic char/int typedefs):  comment improvement.
4867
4868 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
4869
4870         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
4871         unstomp inhibit_site_lisp.  Improve comments.
4872
4873 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
4874
4875         * mule-charset.c (Fcharset_property):  improve type checking, comments.
4876
4877 2000-11-28  Andy Piper  <andy@xemacs.org>
4878
4879         * redisplay-output.c (redisplay_output_subwindow): make sure we do
4880         clipped display for windows in the gutter also.
4881         (redisplay_display_boxes_in_window_p): change semantics of return
4882         codes to be more intuitive.
4883
4884         * gutter.h: declare display_boxes_in_gutter_p.
4885
4886         * gutter.c (display_boxes_in_gutter_p): new function for
4887         redisplay.
4888
4889 2000-11-22  Andy Piper  <andy@xemacs.org>
4890
4891         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
4892         autodetect domain.
4893
4894 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
4895
4896         * callproc.c (Fold_call_process_internal):
4897         * gpm.c (Freceive_gpm_event):
4898         (tty_get_foreign_selection): Might be just warning supression.
4899         * fileio.c (Fwrite_region_internal):
4900         (Fset_visited_file_modtime):
4901         * keymap.c (event_matches_key_specifier_p):
4902         Initialize GCPROed variable.
4903
4904         * menubar-x.c (command_builder_find_menu_accelerator):
4905         Initialize before use.
4906
4907 2000-11-23  Andy Piper  <andy@xemacs.org>
4908
4909         * unexcw.c (unexec): make the resulting executable executable.
4910
4911 2000-11-21  Martin Buchholz  <martin@xemacs.org>
4912
4913         * doc.c (get_doc_string):
4914         Use size_t, not int, for result of XSTRING_LENGTH.
4915
4916         * cmds.c (Fdelete_char):
4917         * cmds.c (Fpoint_at_eol):
4918         * cmds.c (Fself_insert_command):
4919         Use EMACS_INT, not int, for result of XINT.
4920         Someday, someone will want to insert more than 2**31 identical characters.
4921
4922         * cmds.c (Fdelete_char):
4923         * cmds.c (Fdelete_backward_char):
4924         * syntax.c (Fforward_word):
4925         * syntax.c (Fforward_comment):
4926         Make COUNT argument optional, for consistency with forward-char et al.
4927
4928 2000-11-22  Martin Buchholz  <martin@xemacs.org>
4929
4930         * lisp.h:
4931         * print.c (long_to_string):
4932         Return a useful value: the pointer at end of data written.
4933
4934         * doprnt.c:
4935         Use `static const char * const' for constant strings.
4936         (union printf_arg): Delete `i', `ui' members.
4937         (get_doprnt_args):
4938         (emacs_doprnt_1):
4939         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
4940         Do all printf-ing via the `l' specifier.
4941         Use EMACS_INT instead of int.
4942         Optimize.
4943
4944 2000-11-20  Didier Verna  <didier@xemacs.org>
4945
4946         * faces.c (update_face_cachel_data): don't frob the background
4947         pixmap when the window is being created. The face is needed but
4948         does not exist yet.
4949
4950 2000-11-20  Andy Piper  <andy@xemacs.org>
4951
4952         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
4953         messing with a debug environment.
4954
4955 2000-11-20  Martin Buchholz  <martin@xemacs.org>
4956
4957         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
4958
4959 2000-11-20  Martin Buchholz  <martin@xemacs.org>
4960
4961         * casetab.c (Fcase_table_p): Fix compile error and crash.
4962
4963 2000-11-18  Philip Aston  <philipa@mail.com>
4964
4965         * s/cygwin32.h: Cygwin has SVR4-like pty support.
4966
4967 2000-11-18  Martin Buchholz  <martin@xemacs.org>
4968
4969         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
4970         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
4971
4972 2000-11-17  Martin Buchholz  <martin@xemacs.org>
4973
4974         * config.h.in: Define HAVE_ELF_H if elf.h exists.
4975         * unexelf.c: Use HAVE_ELF_H.
4976         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
4977         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
4978         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
4979         Greg Harrington <greg_harrington@hotmail.com> provided a machine
4980         for testing.
4981         So this is an unexelfsgi.c from a different line of development.
4982
4983 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
4984
4985         * regex.c (RE_TR_ASCII): New function.
4986         (RE_TRANSLATE): Call it.
4987
4988 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
4989
4990         * buffer.h (TRT_TABLE_OF): Remove assert.
4991         (IN_TRT_TABLE_DOMAIN): Removed.
4992
4993 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
4994
4995         * free-hook.c (log_gcpro):
4996         (show_gcprohist): Add support for GCPRO5.
4997
4998 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
4999
5000         * emacs.c (main_1): Improve -sd error message when --pdump=no.
5001
5002 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
5003
5004         * symeval.h: Declare flush_all_buffer_local_cache.
5005
5006         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
5007         (flush_buffer_local_cache): Added.
5008         (flush_all_buffer_local_cache): Added.
5009
5010         * lrecord.h: Remove unused XD_LO_RESET_NIL.
5011
5012         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
5013         (pdump_dump_data): Ditto.
5014         (pdump_reloc_one): Ditto.
5015         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
5016         before dumping.
5017
5018
5019 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
5020
5021         * buffer.c: Remove if 0'ed entry.
5022         * buffer.h: Rewrite TRT to use char-table.
5023         * bufslots.h: Remove mirror tables.
5024         * casetab.c: Remove mirror tables.
5025         (CASE_TABLE_P): New macro.
5026         (Fcase_table_p): Element of a case table is string or char-table.
5027         (make_mirror_trt_table): Removed.
5028         (set_case_table): Setup char-table from strings for backward
5029         compatibility.
5030         * dired.c (Fdirectory_files):
5031         * dired-msw.c: (mswindows_get_files):
5032         * lisp.h: Change prototype of re_pattern_buffer.
5033         * regex.c: (RE_TRANSLATE): New macro.
5034         (TRANSLATE_P): Ditto.
5035         Change translate to type RE_TRANSLATE_TYPE.
5036         * regex.h: Define RE_TRANSLATE_TYPE
5037         * search.c (TRANSLATE): New macro.
5038         (TRANSLATE_ASCII): New macro.
5039         Translate table is changed to Lisp_Object.
5040         (signal_failure): Inhibit return.
5041
5042 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
5043
5044         * device-msw.c:
5045         * eldap.c:
5046         * event-Xt.c:
5047         * event-stream.c:
5048         * print.c:
5049         Do UNGCPRO before return.
5050
5051 2000-11-14  Martin Buchholz <martin@xemacs.org>
5052
5053         * XEmacs 21.2.37 is released.
5054
5055 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
5056
5057         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
5058         Add comments about discarded return value.
5059
5060 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
5061
5062         * callint.c:
5063         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
5064
5065 2000-10-27  Andy Piper  <andy@xemacs.org>
5066
5067         * gutter.c (Fset_default_gutter_position): default left and right
5068         gutters to visible.
5069         (calculate_gutter_size): calculate resonable heuristic for left
5070         and right gutter sizes.
5071         (specifier_vars_of_gutter): change left and right gutter sizes to
5072         autodetect.
5073         (calculate_gutter_size_from_display_lines): new function.
5074         (output_gutter): check for resizing on left and right gutters.
5075         (clear_gutter): don't special case top and left gutters.
5076         (specifier_vars_of_gutter): use new signature for
5077         set_specifier_caching.
5078
5079         * glyphs-x.c (x_redisplay_widget): spelling fix.
5080         * glyphs.c (specifier_vars_of_glyphs):
5081         * menubar.c (specifier_vars_of_menubar):
5082         * redisplay.c (specifier_vars_of_redisplay):
5083         * toolbar.c (specifier_vars_of_toolbar):
5084         * window.c (specifier_vars_of_window):
5085         * scrollbar.c (specifier_vars_of_scrollbar):
5086         (complex_vars_of_scrollbar): use new signature for
5087         set_specifier_caching.
5088
5089         * specifier.c (set_specifier_caching): include recompute flag.
5090         (recompute_one_cached_specifier_in_window): always recompute if
5091         flag set.
5092         (recompute_one_cached_specifier_in_frame): ditto.
5093
5094         * specifier.h (struct specifier_caching): add recompute flag.
5095
5096 2000-10-24  Andy Piper  <andy@xemacs.org>
5097
5098         * unexcw.c (copy_executable_and_dump_data_section): add new
5099         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
5100         5.0 happy.
5101
5102 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
5103
5104         * console-x.h (x_device): New member modifier_release_time.
5105         * event-Xt.c (x_handle_sticky_modifiers):
5106         Bound interval modifier keys are sticky.
5107         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
5108         * events.h: extern it.
5109
5110 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
5111
5112         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
5113
5114 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
5115
5116         * event-stream.c (execute_command_event): Preserve current_events
5117         and the like when event is misc-user-event.
5118         Inhibit quit during the call to maybe_echo_keys.
5119
5120 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
5121
5122         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
5123         symlink when buffer is killed.
5124         (inhibit_clash_detection): New variable.
5125
5126 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
5127
5128         * console.c (Fset_input_method): Trigger redisplay on tty.
5129
5130 2000-11-07  Martin Buchholz  <martin@xemacs.org>
5131
5132         * process.c (Fprocess_status): Revert to previous behavior:
5133         (process-status "nosuchprocess") ==> nil
5134
5135 2000-11-06  Martin Buchholz  <martin@xemacs.org>
5136
5137         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
5138         Work around another GCC 2.95.2 optimizer bug.
5139
5140 2000-11-02  Martin Buchholz  <martin@xemacs.org>
5141
5142         * process.c (Fget_process): Use LIST_LOOP_2.
5143         (kill_buffer_processes): Use LIST_LOOP_2.
5144
5145         * minibuf.c (Fall_completions):
5146         Delete old non-functional code for FSF fourth argument.
5147
5148         * frame.c (frame_matches_frame_spec):
5149         Renamed from `frame_matches_frametype'.  Update all callers.
5150         (device_matches_device_spec):
5151         Renamed from 'device_matches_console_spec'.  Update all callers.
5152
5153         * doc.c (Fsubstitute_command_keys):
5154         Remove buffer overflow crash.  Small code cleanups.
5155
5156         * casetab.c (check_case_table): Simpler code.
5157
5158         * window.c (Freplace_buffer_in_windows):
5159         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
5160         (and similar implementation) as Fdelete_windows_on.
5161         Update all callers.
5162
5163         * alloc.c (Fmake_list):
5164         * alloc.c (make_vector):
5165         * alloc.c (Fmake_vector):
5166         * alloc.c (make_bit_vector):
5167         * alloc.c (Fmake_bit_vector):
5168         * alloc.c (Fbit_vector):
5169         * alloc.c (Fmake_string):
5170         * alloc.c (Fpurecopy):
5171         * alloc.c (Fmemory_limit):
5172         * buffer.c:
5173         * buffer.c (Fget_buffer):
5174         * buffer.c (Fkill_buffer):
5175         * buffer.c (complex_vars_of_buffer):
5176         * bytecode.c (Fcompiled_function_stack_depth):
5177         * callint.c (Fprefix_numeric_value):
5178         * event-stream.c:
5179         * event-stream.c (Fread_key_sequence):
5180         * casetab.c:
5181         * casetab.c (Fcase_table_p):
5182         * casetab.c (check_case_table):
5183         * casetab.c (Fset_case_table):
5184         * casetab.c (Fset_standard_case_table):
5185         * chartab.c:
5186         * chartab.c (Fchar_table_type):
5187         * chartab.c (Freset_char_table):
5188         * chartab.c (Fget_char_table):
5189         * chartab.c (Fget_range_char_table):
5190         * chartab.c (Fput_char_table):
5191         * chartab.c (Fmap_char_table):
5192         * chartab.c (Fcategory_table_p):
5193         * chartab.c (Fcheck_category_at):
5194         * chartab.c (Fchar_in_category_p):
5195         * chartab.c (Fcategory_table):
5196         * chartab.c (Fcopy_category_table):
5197         * chartab.c (Fset_category_table):
5198         * chartab.c (Fcategory_designator_p):
5199         * chartab.c (Fcategory_table_value_p):
5200         * cmds.c (Fdelete_char):
5201         * cmds.c (Fdelete_backward_char):
5202         * cmds.c (Fself_insert_command):
5203         * cmds.c (Fself_insert_internal):
5204         * console.c (Fvalid_console_type_p):
5205         * console.c (Fcdfw_console):
5206         * console.c (Fconsole_type):
5207         * console.c (Fconsole_name):
5208         * console.c (Fconsole_device_list):
5209         * console.c (Fconsole_on_window_system_p):
5210         * data.c:
5211         * data.c (Feq):
5212         * data.c (Fold_eq):
5213         * data.c (Fsubr_interactive):
5214         * data.c (Fchar_to_int):
5215         * data.c (Fint_to_char):
5216         * data.c (Fsetcar):
5217         * data.c (Fsetcdr):
5218         * data.c (Fnumber_to_string):
5219         * data.c (Fstring_to_number):
5220         * data.c (Frem):
5221         * database.c (mark_database):
5222         * database.c (finalize_database):
5223         * database.c (Fdatabase_live_p):
5224         * database.c (Fdatabasep):
5225         * device-x.c (Fx_get_resource):
5226         * device.c (Fdfw_device):
5227         * dired.c:
5228         * dired.c (Ffile_name_completion):
5229         * dired.c (Ffile_name_all_completions):
5230         * dired.c (Fuser_name_completion):
5231         * dired.c (Fuser_name_completion_1):
5232         * dired.c (Fuser_name_all_completions):
5233         * doc.c (Fdocumentation):
5234         * doc.c (Fdocumentation_property):
5235         * doc.c (Fsubstitute_command_keys):
5236         * editfns.c:
5237         * editfns.c (Fchar_to_string):
5238         * editfns.c (Fstring_to_char):
5239         * editfns.c (Ftemp_directory):
5240         * editfns.c (Finsert_char):
5241         * editfns.c (Fbuffer_substring_no_properties):
5242         * editfns.c (Fnarrow_to_region):
5243         * editfns.c (Fchar_equal):
5244         * editfns.c (Fchar_Equal):
5245         * editfns.c (Ftranspose_regions):
5246         * emacs.c (Fdump_emacs):
5247         * eval.c (Fthrow):
5248         * eval.c (Fcommand_execute):
5249         * eval.c (Fautoload):
5250         * eval.c (Fbacktrace):
5251         * eval.c (Fbacktrace_frame):
5252         * events.c:
5253         * events.c (Fcopy_event):
5254         * events.c (Fcharacter_to_event):
5255         * events.c (Fevent_button):
5256         * events.c (Fevent_process):
5257         * extents.c:
5258         * extents.c (Fnext_extent_change):
5259         * extents.c (Fextent_property):
5260         * faces.c (Ffacep):
5261         * faces.c (Fmake_face):
5262         * file-coding.c:
5263         * file-coding.c (Fencode_shift_jis_char):
5264         * file-coding.c (Fencode_big5_char):
5265         * fileio.c (Ffile_name_directory):
5266         * fileio.c (Ffile_name_nondirectory):
5267         * fileio.c (Ffile_name_as_directory):
5268         * fileio.c (Fdirectory_file_name):
5269         * fileio.c (Ffile_truename):
5270         * fileio.c (Fsubstitute_in_file_name):
5271         * fileio.c (Ffile_modes):
5272         * fileio.c (Fset_file_modes):
5273         * fileio.c (Fset_default_file_modes):
5274         * fileio.c (Fverify_visited_file_modtime):
5275         * floatfns.c (Facos):
5276         * floatfns.c (Fasin):
5277         * floatfns.c (Fatan):
5278         * floatfns.c (Fcos):
5279         * floatfns.c (Fsin):
5280         * floatfns.c (Ftan):
5281         * floatfns.c (Fbessel_j0):
5282         * floatfns.c (Fbessel_j1):
5283         * floatfns.c (Fbessel_jn):
5284         * floatfns.c (Fbessel_y0):
5285         * floatfns.c (Fbessel_y1):
5286         * floatfns.c (Fbessel_yn):
5287         * floatfns.c (Ferf):
5288         * floatfns.c (Ferfc):
5289         * floatfns.c (Flog_gamma):
5290         * floatfns.c (Fexp):
5291         * floatfns.c (Fexpt):
5292         * floatfns.c (Flog):
5293         * floatfns.c (Flog10):
5294         * floatfns.c (Fsqrt):
5295         * floatfns.c (Fcube_root):
5296         * floatfns.c (Facosh):
5297         * floatfns.c (Fasinh):
5298         * floatfns.c (Fatanh):
5299         * floatfns.c (Fcosh):
5300         * floatfns.c (Fsinh):
5301         * floatfns.c (Ftanh):
5302         * floatfns.c (Fabs):
5303         * floatfns.c (Ffloat):
5304         * floatfns.c (Flogb):
5305         * floatfns.c (Fceiling):
5306         * floatfns.c (Ffloor):
5307         * floatfns.c (Fround):
5308         * floatfns.c (Ftruncate):
5309         * floatfns.c (Ffceiling):
5310         * floatfns.c (Fffloor):
5311         * floatfns.c (Ffround):
5312         * floatfns.c (Fftruncate):
5313         * fns.c (Fstring_equal):
5314         * fns.c (Fstring_lessp):
5315         * fns.c (concat2):
5316         * fns.c (concat3):
5317         * fns.c (vconcat2):
5318         * fns.c (vconcat3):
5319         * fns.c (Fsubstring):
5320         * fns.c (Fassoc):
5321         * fns.c (Fold_assoc):
5322         * fns.c (assoc_no_quit):
5323         * fns.c (Fassq):
5324         * fns.c (Fold_assq):
5325         * fns.c (assq_no_quit):
5326         * fns.c (Frassoc):
5327         * fns.c (Fold_rassoc):
5328         * fns.c (Frassq):
5329         * fns.c (Fold_rassq):
5330         * fns.c (rassq_no_quit):
5331         * fns.c (Fremassoc):
5332         * fns.c (remassoc_no_quit):
5333         * fns.c (Fremassq):
5334         * fns.c (remassq_no_quit):
5335         * fns.c (Fremrassoc):
5336         * fns.c (Fremrassq):
5337         * fns.c (remrassq_no_quit):
5338         * fns.c (Fsort):
5339         * fns.c (Fplist_get):
5340         * fns.c (Fplist_put):
5341         * fns.c (Fplist_remprop):
5342         * fns.c (Fplist_member):
5343         * fns.c (Flax_plist_get):
5344         * fns.c (Flax_plist_put):
5345         * fns.c (Flax_plist_remprop):
5346         * fns.c (Flax_plist_member):
5347         * fns.c (Fequal):
5348         * fns.c (Fold_equal):
5349         * fns.c (Frequire):
5350         * fns.c (Fbase64_encode_region):
5351         * fns.c (Fbase64_encode_string):
5352         * fns.c (Fbase64_decode_region):
5353         * frame.c:
5354         * frame.c (frame_matches_frame_spec):
5355         * frame.c (device_matches_device_spec):
5356         * frame.c (next_frame):
5357         * frame.c (previous_frame):
5358         * frame.c (Fnext_frame):
5359         * frame.c (Fprevious_frame):
5360         * frame.c (Fframe_property):
5361         * frame.c (Fset_frame_height):
5362         * frame.c (Fset_frame_size):
5363         * frame.h:
5364         * glyphs.c:
5365         * glyphs.c (if):
5366         * glyphs.c (decode_error_behavior_flag):
5367         * glyphs.c (Fmake_image_instance):
5368         * indent.c (Findent_to):
5369         * intl.c (Fignore_defer_gettext):
5370         * keymap.c (Fkeymapp):
5371         * keymap.c (Flookup_key):
5372         * lread.c:
5373         * lread.c (Fload_internal):
5374         * lread.c (Feval_buffer):
5375         * lread.c (Feval_region):
5376         * macros.c (Fexecute_kbd_macro):
5377         * marker.c (set_marker_internal):
5378         * marker.c (Fset_marker):
5379         * marker.c (set_marker_restricted):
5380         * marker.c (Fcopy_marker):
5381         * marker.c (noseeum_copy_marker):
5382         * menubar.c:
5383         * menubar.c (Fpopup_menu):
5384         * minibuf.c:
5385         * mule-charset.c (Fcharset_name):
5386         * mule-charset.c (Fchar_charset):
5387         * mule-charset.c (Fchar_octet):
5388         * mule-charset.c (Fsplit_char):
5389         * mule-wnnfns.c (Fwnn_open):
5390         * mule-wnnfns.c (Fwnn_dict_comment):
5391         * mule-wnnfns.c (Fwnn_quit_henkan):
5392         * mule-wnnfns.c (Fwnn_word_toroku):
5393         * mule-wnnfns.c (Fwnn_word_sakujo):
5394         * mule-wnnfns.c (Fwnn_word_use):
5395         * mule-wnnfns.c (Fwnn_hindo_set):
5396         * objects.c:
5397         * objects.c (Fmake_color_instance):
5398         * objects.c (Fmake_font_instance):
5399         * print.c (Fwrite_char):
5400         * process.c:
5401         * process.c (mark_process):
5402         * process.c (print_process):
5403         * process.c (get_process_from_usid):
5404         * process.c (Fprocessp):
5405         * process.c (Fprocess_live_p):
5406         * process.c (Fget_process):
5407         * process.c (Fget_buffer_process):
5408         * process.c (get_process):
5409         * process.c (Fprocess_id):
5410         * process.c (Fprocess_name):
5411         * process.c (Fprocess_command):
5412         * process.c (init_process_io_handles):
5413         * process.c (start_process_unwind):
5414         * process.c (Fstart_process_internal):
5415         * process.c (Fopen_multicast_group_internal):
5416         * process.c (Fset_process_window_size):
5417         * process.c (read_process_output):
5418         * process.c (send_process):
5419         * process.c (Fprocess_tty_name):
5420         * process.c (Fset_process_buffer):
5421         * process.c (Fprocess_buffer):
5422         * process.c (Fprocess_mark):
5423         * process.c (set_process_filter):
5424         * process.c (Fset_process_filter):
5425         * process.c (Fprocess_filter):
5426         * process.c (Fprocess_send_region):
5427         * process.c (Fprocess_send_string):
5428         * process.c (exec_sentinel):
5429         * process.c (Fset_process_sentinel):
5430         * process.c (Fprocess_sentinel):
5431         * process.c (status_notify):
5432         * process.c (Fprocess_status):
5433         * process.c (Fprocess_exit_status):
5434         * process.c (process_send_signal):
5435         * process.c (Fprocess_send_eof):
5436         * process.c (deactivate_process):
5437         * process.c (remove_process):
5438         * process.c (Fdelete_process):
5439         * process.c (kill_buffer_processes):
5440         * process.c (Fprocess_kill_without_query):
5441         * process.c (Fprocess_kill_without_query_p):
5442         * rangetab.c:
5443         * rangetab.c (Fget_range_table):
5444         * rangetab.c (Fput_range_table):
5445         * rangetab.c (Fremove_range_table):
5446         * rangetab.c (Fclear_range_table):
5447         * search.c:
5448         * search.c (Fskip_chars_forward):
5449         * search.c (Fskip_chars_backward):
5450         * search.c (Fskip_syntax_forward):
5451         * search.c (Fskip_syntax_backward):
5452         * search.c (search_command):
5453         * search.c (Freplace_match):
5454         * search.c (Fregexp_quote):
5455         * select.c (Fown_selection_internal):
5456         * select.c (Fselection_owner_p):
5457         * select.c (Fselection_exists_p):
5458         * select.c (Fget_selection_internal):
5459         * specifier.c:
5460         * symbols.c:
5461         * symbols.c (Fintern):
5462         * symbols.c (Fintern_soft):
5463         * symbols.c (Funintern):
5464         * symbols.c (Fapropos_internal):
5465         * symbols.c (Fset_default):
5466         * syntax.c:
5467         * syntax.c (Fsyntax_table_p):
5468         * syntax.c (Fcopy_syntax_table):
5469         * syntax.c (Fset_syntax_table):
5470         * syntax.c (Fchar_syntax):
5471         * syntax.c (syntax_match):
5472         * syntax.c (Fmatching_paren):
5473         * syntax.c (Fforward_word):
5474         * syntax.c (scan_lists):
5475         * syntax.c (Fscan_lists):
5476         * syntax.c (Fscan_sexps):
5477         * syntax.c (Fparse_partial_sexp):
5478         * toolbar.c (Fcheck_toolbar_button_syntax):
5479         * tooltalk.doc:
5480         * window.c:
5481         * window.c (Fwindowp):
5482         * window.c (Fwindow_live_p):
5483         * window.c (Fwindow_point):
5484         * window.c (Fdelete_window):
5485         * window.c (Fnext_window):
5486         * window.c (Fprevious_window):
5487         * window.c (Fother_window):
5488         * window.c (window_loop):
5489         * window.c (Fget_lru_window):
5490         * window.c (Fsplit_window):
5491         * window.c (Fenlarge_window):
5492         * window.c (Fenlarge_window_pixels):
5493         * window.c (Fshrink_window):
5494         * window.c (Fshrink_window_pixels):
5495         * window.c (change_window_height):
5496         * window.c (Fwindow_configuration_p):
5497         * window.c (Fcurrent_window_configuration):
5498         * window.h:
5499         * casefiddle.c (casify_object):
5500         * casefiddle.c (Fupcase):
5501         * casefiddle.c (Fdowncase):
5502         * casefiddle.c (Fcapitalize):
5503         * casefiddle.c (Fupcase_initials):
5504         * casefiddle.c (casify_region_internal):
5505         * casefiddle.c (casify_region):
5506         * casefiddle.c (Fupcase_region):
5507         * casefiddle.c (Fdowncase_region):
5508         * casefiddle.c (Fcapitalize_region):
5509         * casefiddle.c (Fupcase_initials_region):
5510         * casefiddle.c (Fupcase_word):
5511         * casefiddle.c (Fdowncase_word):
5512         * casefiddle.c (Fcapitalize_word):
5513         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
5514         Replace 0 with '\0' when working with bytes.
5515         Replace initial "(" with "\(" in docstrings.
5516
5517 2000-11-01  Martin Buchholz  <martin@xemacs.org>
5518
5519         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
5520
5521         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
5522
5523 2000-10-31  Martin Buchholz  <martin@xemacs.org>
5524
5525         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
5526
5527 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
5528
5529         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
5530         correctly.
5531
5532 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
5533
5534         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
5535         (inhibit_auto_save_session): New variable.
5536         (vars_of_fileio): Declare and initialize them.
5537         * fileio.c (Fdo_auto_save): Don't create session file if
5538         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
5539
5540 2000-10-31  Martin Buchholz  <martin@xemacs.org>
5541
5542         * sgiplay.c (play_internal): C++ compilability.
5543         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
5544         * callproc.c (Fold_call_process_internal):
5545         Remove unused vars `env', `first'.
5546         * scrollbar.c (update_scrollbar_instance):
5547         #### unused var `current_window'.
5548         * redisplay-tty.c: Put currently unused vars insert_mode_on,
5549         etc. within #ifdef NOT_YET.
5550         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
5551         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
5552         * specifier.c (specifier_instance):
5553         #### unused var `tag'.
5554         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
5555
5556 2000-10-27  Martin Buchholz  <martin@xemacs.org>
5557
5558         * fns.c (Fbutlast):
5559         * fns.c (list_sort):
5560         * fns.c (Ffillarray):
5561         * fns.c (bytecode_nconc2):
5562         * fns.c (Fnconc):
5563         * fns.c (mapcar1):
5564         * fns.c (Fmapconcat):
5565         Be pedantically 64-bit correct.  For the time when someone will
5566         want to have a list with length > 2**32.
5567
5568         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
5569         Work around MIPSpro compiler bug.
5570
5571         * process-unix.c (unix_kill_child_process): Add snarky comment.
5572         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
5573
5574         * config.h.in: Oops, _getpt ==> _getpty
5575
5576 2000-10-26  Martin Buchholz  <martin@xemacs.org>
5577
5578         * config.h.in:
5579         * regex.c:
5580         Use void*, not char*, as return type of alloca().
5581
5582         * alloc.c (free_marker): Side effect inside assert expression!
5583
5584 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
5585
5586         * mule-charset.c (Fset_charset_ccl_program): To check
5587         if the given ccl program is valid, use setup_ccl_program()
5588         instead of CHECK_VECTOR().
5589         (Fmake_charset): Likewise.
5590
5591 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
5592
5593         * faces.c (get_extent_fragment_face_cache_index):
5594         Fix cachel.merged_faces memory leak.
5595
5596 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
5597
5598         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
5599         Reset MSB of octets obtained by DECODE_SJIS
5600         because of the incompatibility with Emacs.
5601         (ccl_driver)<CCL_ENCODE_SJIS>:
5602         Set MSB of octets before passing them to
5603         ENCODE_SJIS because of the incompatibility
5604         with Emacs.
5605
5606 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
5607
5608         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
5609         (DECLARE_LRECORD): Undo the last change.
5610         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
5611
5612 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
5613
5614         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
5615         the implementation to lrecord_implementations_table.
5616
5617 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
5618
5619         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
5620         initial value of `lrecord_type_##c_name' and
5621         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
5622         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
5623         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
5624         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
5625         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
5626
5627 2000-10-17  Martin Buchholz  <martin@xemacs.org>
5628
5629         * miscplay.c (sndcnv8S_2mono):
5630         (sndcnv2monounsigned):
5631         (sndcnvULaw_2linear):
5632         (sndcnv16swap):
5633         Remove implementation-defined behavior.
5634
5635 2000-10-12  Martin Buchholz  <martin@xemacs.org>
5636
5637         * input-method-xlib.c: Warning suppression.
5638
5639 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
5640
5641         * mule-ccl.c: Sync up with Emacs 21.0.90.
5642         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
5643         Do nothing.
5644         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
5645         Likewise.
5646         (ccl_driver[WriteMultibyteChar2]): Bug fix.
5647         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
5648         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
5649         leading char belongs to official 2-dimensional charset.
5650         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
5651         write the given character as is.  Otherwise,
5652         if it is a multibyte char, convert it by
5653         non_ascii_set_charptr_emchar, then write it.
5654         (CCL_WRITE_STRING): Likewise.
5655         (ccl_get_compiled_code): New function.
5656         (setup_ccl_program): When ccl_prog is invalid,
5657         return -1.
5658         (Fregister_code_conversion_map): New function.
5659         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
5660
5661         * mule-ccl.h: Sync up with Emacs 21.0.90.
5662         (Fregister_ccl_program): export it.
5663
5664         * redisplay-msw.c (separate_textual_runs):
5665         If ccl program is not valid, don't do ccl conversion.
5666
5667         * redisplay-x.c (separate_textual_runs): Ditto.
5668
5669         * file-coding.c (Fmake_coding_system):
5670         When type is ccl and value is vector, register it
5671         with a proper symbol.  And checks whether the
5672         given ccl program is valid.
5673         (mule_decode): When calling ccl_driver, if src indicates
5674         NULL pointer, set an empty string instead.
5675         (mule_encode): Likewise.
5676
5677 2000-10-11  Martin Buchholz  <martin@xemacs.org>
5678
5679         The following large batch of changes gets us back to a state of
5680         C++ compilability.  Extbyte is now a char, which means that
5681         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
5682
5683         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
5684
5685         * sound.c (Fplay_sound): Type correctness.
5686
5687         * select-x.c (hack_motif_clipboard_selection): Type correctness.
5688         (x_get_window_property): Type correctness.
5689         (receive_incremental_selection): unsigned char ==> Extbyte
5690         (selection_data_to_lisp_data): unsigned char ==> Extbyte
5691         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
5692         (Fx_store_cutbuffer_internal): Type correctness.
5693
5694         * process-unix.c (try_to_initialize_subtty): Type correctness.
5695
5696         * objects-x.c (x_print_color_instance): Type correctness.
5697         (x_print_font_instance): Type correctness.
5698         (x_list_fonts): SExtbyte ==> Extbyte.
5699         (valid_x_font_name_p): SExtbyte ==> Extbyte.
5700         (x_find_charset_font): SExtbyte ==> Extbyte.
5701         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
5702         (truename_via_XListFonts): SExtbyte ==> Extbyte.
5703         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
5704         Use bufbyte_strcmp.
5705
5706         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
5707         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
5708         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
5709         (BYTE_C0_P): Use bit ops for char-signedness safety.
5710         (BYTE_C1_P): Use bit ops for char-signedness safety.
5711         (CHARSET_BY_LEADING_BYTE):
5712         (CHARSET_BY_ATTRIBUTES):
5713         Always use inline function.
5714         Use type_checking_assert.
5715         Hide chlook.
5716
5717         * mule-charset.c (non_ascii_charptr_copy_char):
5718         Modify to work with both ASCII and non-ASCII characters.
5719         Improve docs and variable names.
5720         Replace over-clever fall-through switch with a simple loop.
5721         (Lstream_get_emchar_1):
5722         Replace over-clever fall-through switch with a simple loop.
5723
5724         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
5725         Warning suppression.
5726
5727         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
5728         the return value of Lstream_getc, which could be EOF as well.
5729
5730         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
5731
5732         * lisp.h: Make Extbyte a char, not unsigned char, so that external
5733         APIs can be used on Extbytes without casts.  Risky!
5734         (SExtbyte): Remove.
5735         (UExtbyte): Remove.
5736
5737         * input-method-xlib.c (XIM_init_device):
5738         Use Xlib.h instead of IntrinsicP.h.
5739         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
5740         which will break in X11R7.
5741         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
5742         to call XRegisterIMInstantiateCallback with correct types.
5743
5744         * gui-x.c (button_item_to_widget_value): Type correctness.
5745
5746         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
5747
5748         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
5749         (xbm_instantiate_1): Type correctness.
5750         (BUILD_GLYPH_INST):  Type correctness.
5751
5752         * fileio.c (Fsubstitute_in_file_name): Type correctness.
5753
5754         * file-coding.c:
5755         (decode_coding_sjis):
5756         (decode_coding_big5):
5757         (decode_coding_ucs4):
5758         (decode_coding_utf8):
5759         (decode_coding_iso2022):
5760         (decode_coding_no_conversion):
5761         Make all decoding functions take an Extbyte * arg.
5762         (encode_coding_sjis):
5763         (encode_coding_big5):
5764         (encode_coding_ucs4):
5765         (encode_coding_utf8):
5766         (encode_coding_iso2022):
5767         (encode_coding_no_conversion):
5768         Make all encoding functions take a Bufbyte * arg.
5769         Use size_t instead of unsigned int for memory sizes.
5770         Only cast to unsigned char whenever dereferencing Extbyte *.
5771
5772         * doc.c (unparesseuxify_doc_string): Type correctness.
5773
5774         * console-x.c (split_up_display_spec):
5775         Rewrite without using details of internal string representation.
5776         (x_semi_canonicalize_device_connection): Type correctness.
5777
5778         * config.h.in:
5779         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
5780         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
5781         (HAVE_XFREE386): Removed.
5782
5783         * buffer.h (DEC_CHARPTR): `const' correctness.
5784         (bufbyte_strcmp): New.
5785         (bufbyte_memcmp): New.
5786
5787         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
5788
5789         * buffer.h (XCHAR_OR_CHAR_INT):
5790         Always use inline function.
5791         Remove redundant type checking assert() - XINT will abort quite nicely.
5792
5793 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
5794
5795         * search.c (Freplace_match): Set newtext to an empty string.
5796
5797 2000-10-10  Martin Buchholz  <martin@xemacs.org>
5798
5799         * s/decosf1-3.h: Remove #include of stropts.h
5800         * s/ptx.h: Remove #include of stropts.h
5801         * s/usg5-4.h: Remove #include of stropts.h
5802         * sysproc.h:
5803         * config.h.in:
5804         Use stropts.h, not sys/stropts.h.
5805         Use strtio.h, not sys/strtio.h.
5806
5807 2000-10-04  Martin Buchholz <martin@xemacs.org>
5808
5809         * XEmacs 21.2.36 is released.
5810
5811 2000-09-21  Andy Piper  <andy@xemacs.org>
5812
5813         * glyphs-x.c (x_redisplay_widget): make sure non-structural
5814         changes still involve copying the widget tree.
5815         (update_widget_face): make sure a change is register in the widget
5816         tree. Call update_tab_widget_face appropriately.
5817         (update_tab_widget_face): ditto.
5818         (x_tab_control_redisplay): make sure non-structural changes still
5819         involve copying the widget tree.
5820
5821 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
5822
5823         * lread.c (locate_file): Check the path element is non-nil.
5824
5825 2000-10-02  Martin Buchholz  <martin@xemacs.org>
5826
5827         * lisp.h: Warning suppression for SCO compilers.
5828
5829         * redisplay-tty.c (reset_tty_modes): Fix crash.
5830         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
5831
5832 2000-09-27  Martin Buchholz  <martin@xemacs.org>
5833
5834         Big signal/process handling overhaul.  Bugs fixed:
5835         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
5836         M-x comint-kill-subjob should work for both values nil and t of
5837         process-connection-type. It was broken on most platforms.
5838         Testing on Irix and Cygwin still needed.  Other plaforms tested.
5839         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
5840         * process-unix.c: Signal/Process handling overhaul.
5841         (pty_name): make 64 bytes, as `expect' does, for paranoia.
5842         (allocate_pty): Use all available modern methods of allocating
5843         ptys, falling back to old style BSD allocation as a last resort.
5844         Use allegedly more secure Unix98 pty allocation by default.
5845         (allocate_pty_the_old_fashioned_way): New. the last resort.
5846         (unix_create_process): Push ptem, ldterm, ttcompat where
5847         available.  Autoconfiscate.
5848         (try_to_initialize_subtty): New.
5849         (unix_kill_child_process): Proper signal handling for ptys on most
5850         platforms, using special knowledge of AIX, BSD, etc...
5851         (unix_create_process): Always disconnect_controlling_terminal() for
5852         subprocesses, whether using ptys or not.
5853         * process.h: Remove old getpt-dependent PTY code.
5854         * process.c (Fprocess_send_signal): New, obvious generic function.
5855         (decode_signal): New.
5856         (Finterrupt_process):
5857         (Fkill_process):
5858         (Fquit_process):
5859         (Fstop_process):
5860         (Fcontinue_process):
5861         (Fsignal_process): Use decode_signal.
5862         (process_send_signal):
5863         Many docstring corrections.
5864         Allow any signal to be sent to a process object.
5865         * config.h.in: Add symbols for big signal/process overhaul.
5866         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
5867         * sysproc.h: Include process-related headers, where available:
5868         sys/stropts.h sys/strtio.h pty.h libutil.h
5869         * s/irix4-0.h:
5870         * s/irix5-0.h:
5871         * s/cygwin32.h:
5872         * s/gnu.h:
5873         * s/linux.h:
5874         * s/hpux.h:
5875         * s/aix3-1.h:
5876         Remove old S&M pty stuff.
5877         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
5878         * systty.h: Simplify cpp hackery, improve comments.
5879         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
5880
5881         * editfns.c (Fformat_time_string):
5882         Be a little more paranoid with the return value of ctime.
5883
5884         * fileio.c (check_executable):
5885         (check_writable):
5886         Use symbolic constants X_OK, W_OK.
5887
5888         * console-x.c (split_up_display_spec): Fix a warning.
5889
5890 2000-10-02  Martin Buchholz  <martin@xemacs.org>
5891
5892         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
5893         * ntproc.c (sys_spawnve): make_string ==> build_string
5894         Small clarity improvements.
5895
5896 2000-09-30  Martin Buchholz  <martin@xemacs.org>
5897
5898         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
5899
5900         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
5901
5902         * config.h.in (HAVE_STRCASECMP): Remove.
5903
5904 2000-09-29  Martin Buchholz  <martin@xemacs.org>
5905
5906         * redisplay-output.c (redisplay_output_pixmap):
5907         Cleaner and possibly more 64-bit correct code.
5908
5909 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
5910
5911         * dumper.c (pdump_load_finish): move restoration of
5912         `noninteractive1' to emacs.c (main_1).
5913         * emacs.c (main_1): protect LISP-visible command-line flags
5914         from pdump_load().
5915
5916 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
5917
5918         * Makefile.in.in (versionclean):  Use EXE_TARGET and
5919         DUMP_TARGET instead of literal program names.
5920
5921 2000-09-20  Martin Buchholz  <martin@xemacs.org>
5922
5923         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
5924
5925 2000-09-19  Martin Buchholz  <martin@xemacs.org>
5926
5927         * *: Spelling mega-patch
5928
5929 2000-09-19  Martin Buchholz  <martin@xemacs.org>
5930
5931         * fns.c (bad_bad_turtle):
5932         Delete "Eek!" comment, since we fixed the bug to which it refers.
5933
5934 2000-09-16  Martin Buchholz  <martin@xemacs.org>
5935
5936         * alloca.c: Replace REGISTER with register.
5937
5938 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
5939
5940         * file-coding.c (ucs_to_char): Use countof.
5941
5942 2000-09-16  Martin Buchholz  <martin@xemacs.org>
5943
5944         * file-coding.c: (ucs_to_char):
5945         (complex_vars_of_file_coding):
5946         Use countof instead of sizeof.
5947         Use CHECK_NATNUM instead of CHECK_INT.
5948
5949         * sysdep.c (strcasecmp): Remove.
5950         * device-x.c (ascii_strcasecmp): New.
5951         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
5952         Avoid using non-standard non-portable strcasecmp.
5953
5954 2000-09-16  Martin Buchholz  <martin@xemacs.org>
5955
5956         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
5957         * font-lock.c: remove reference to emacsfns.h.
5958         * search.c: small doc improvement.
5959         * event-Xt.c: correct file names in comments.
5960         * console-x.h Correct file names in comments.
5961         * frame.c: Correct file names in comments.
5962         * event-stream.c: remove Energize from comments.
5963
5964 2000-09-15  Martin Buchholz  <martin@xemacs.org>
5965
5966         * symeval.h (DEFERROR_STANDARD):
5967         (DEFERROR):
5968         (DEFSYMBOL):
5969         (DEFSYMBOL_NO_DUMP):
5970         (DEFSYMBOL_MULTIWORD_PREDICATE):
5971         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
5972         (DEFKEYWORD):
5973         The construct &##name is not sensible C.
5974         Fixes compilation errors with Unixware native compiler.
5975
5976 2000-09-14  Martin Buchholz  <martin@xemacs.org>
5977
5978         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
5979         (next_frame_internal): Removed.  We now just have next_frame.
5980         (next_frame):
5981         Write a simpler and cleaner one-pass algorithm.
5982         Remove called_from_delete_device arg and #ifdefed-out code.
5983         (previous_frame):
5984         Renamed from prev_frame.  Update callers.
5985         Cleaned up to have an analogous implementation to next_frame.
5986         (other_visible_frames_internal): Remove the
5987         called_from_delete_device bogus arg, and hence, remove this
5988         function.  Just use other_visible_frames().
5989
5990         * window.c (Fnext_window):
5991         Prettify docstring.
5992         Since next_frame() is guaranteed to return a frame, remove check
5993         for nil inserted in previous patch.
5994         (Fprevious_window):
5995         Prettify docstring.
5996         Make code look more like Fnext_window.
5997         (window_loop):
5998         Respect the `console' arg when iterating through windows.
5999         Fixes bug: (get-buffer-window buffer t device) not respecting
6000         the `device' arg.
6001         This function needs more work, as others have pointed out.
6002
6003         * frame.h: Rename prev_frame to previous_frame.
6004         device_matches_console_spec no longer takes a `frame' arg.
6005
6006         * s/gnu.h:
6007         * s/linux.h:
6008         * s/hpux.h:
6009         Use EMACS_BLOCK_SIGNAL instead of sigblock.
6010         From "Golubev I. N." <gin@mo.msk.ru>.
6011
6012         * make-src-depend: Fix typo.
6013
6014 2000-09-13  Martin Buchholz  <martin@xemacs.org>
6015
6016         * window.c (Fnext_window):
6017         next_frame() might return nil, not a frame.
6018         Fixes this crash:
6019         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
6020
6021         * frame.c (next_frame_internal):
6022         We've passed a frame if we've passed its device.
6023         Fixes this crash:
6024         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
6025 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
6026
6027 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
6028
6029         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
6030         Allow option to suppress accelerators in menu/dialog items.
6031         (populate_or_checksum_helper): Pass dialog title through above.
6032
6033 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
6034
6035         * event-msw.c (mswindows_key_to_emacs_keysym):
6036         Add "pause" key, fix "menu" key.
6037
6038 2000-09-09  Martin Buchholz  <martin@xemacs.org>
6039
6040         * eval.c (reinit_vars_of_eval):
6041         Increase max_lisp_eval_depth to 1000,
6042         required for thai-xtis.el to byte-compile under some circumstances.
6043
6044 2000-09-04  Martin Buchholz  <martin@xemacs.org>
6045
6046         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
6047         From Kenichi Handa.
6048
6049 2000-09-01  Martin Buchholz  <martin@xemacs.org>
6050
6051         * make-src-depend: Make the generated Makefiles smaller.
6052
6053         * s/hpux.h (SETUP_SLAVE_PTY):
6054         Provide a %d in the format string for the errno argument.
6055
6056         * editfns.c (Ftemp_directory):
6057         Warning fix.
6058         Avoid buffer overrun on very long file name.
6059
6060         * input-method-xlib.c (XIM_init_device):
6061         6th parameter of XRegisterIMInstantiateCallback has different
6062         pointer types on different OSes, so simply cast to (void *).
6063
6064         * unexhp9k800.c: Warning fixes.  Fiddly changes.
6065
6066         * sysdll.c (dll_open):
6067         shl_load will hang hard if passed a NULL filename.
6068         Simply return NULL for compatibility with dlopen.
6069         * sysdll.c: Conform to XEmacs coding standards.
6070
6071         * sysdep.c (get_pty_max_bytes):
6072         Support pty input lines longer than 512 bytes on HP-UX 10.20.
6073
6074 2000-08-31  Martin Buchholz  <martin@xemacs.org>
6075
6076         * tooltalk.c: Add #include <syssignal.h>
6077
6078 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
6079
6080         * s/hpux.h: Don't use undefined function sigunblock().
6081
6082 2000-08-31  Martin Buchholz  <martin@xemacs.org>
6083
6084         * config.h.in: Add HAVE_BALLOON_HELP.
6085         * emacs.c: Use HAVE_BALLOON_HELP.
6086         * Makefile.in.in (x_objs):
6087         Make Balloon Help conditional on finding shape.h.
6088
6089 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
6090
6091         * syntax.c (regex_emacs_buffer_p): New variable.
6092         * syntax.h (regex_emacs_buffer_p): extern.
6093         * search.c (looking_at_1):
6094         (string_match_1):
6095         (fast_string_match):
6096         (search_buffer): Set regex_emacs_buffer_p.
6097         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
6098         when before_dot, at_dot, after_dot.
6099
6100 2000-08-23  Andy Piper  <andy@xemacs.org>
6101
6102         * gui-x.c (popup_selection_callback): Only set action_occurred
6103         when we really have an image instance.
6104         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
6105
6106 2000-08-23  Andy Piper  <andy@xemacs.org>
6107
6108         * gui-msw.c (mswindows_handle_gui_wm_command): set
6109         action_occurred.
6110         * gui-x.c (popup_selection_callback): ditto.
6111
6112         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
6113         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
6114         (struct Lisp_Image_Instance): add action_occurred flag.
6115
6116         * glyphs.c (redisplay_subwindow): use action_occurred flag.
6117         (image_instance_changed): ditto.
6118         (reset_frame_subwindow_instance_cache): only unmap windows - do
6119         not remove them from the cache also.
6120
6121         * glyphs-widget.c (tab_control_update): better debug.
6122         (progress_gauge_update): ditto.
6123         (layout_update): ditto.
6124         (layout_instantiate): ditto.
6125         (tab_control_order_only_changed): cope with null pending items.
6126
6127         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
6128         debug. Force selection of an item when an action occurred. Cope
6129         with null pending_items.
6130         (mswindows_progress_gauge_redisplay): better debug.
6131         * glyphs-x.c (x_tab_control_redisplay): ditto.
6132
6133         * redisplay.c (redisplay_frame): reset the frame cache if the
6134         frame is garbaged.
6135
6136         * window.c (Fset_window_configuration): potentially re-enable
6137         frame cache reset.
6138         (window_unmap_subwindows): need to finalize instances here since
6139         it is only used in mark_window_as_deleted.
6140
6141 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
6142
6143         * nas.c (SndOpenDataForReading):
6144         nas.c (WaveOpenDataForReading):
6145         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
6146         Somehow escaped from the 2000-08-14 patch.
6147
6148 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
6149
6150         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
6151         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
6152
6153 2000-08-21  Andy Piper  <andy@xemacs.org>
6154
6155         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
6156         window if it is not already displayed.
6157
6158         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
6159         it is not already displayed.
6160
6161         * window.c (Fset_window_configuration): don't reset the frame
6162         cache.
6163
6164         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
6165         instances from the frame cache if we are actually finalizing them.
6166         (reset_frame_subwindow_instance_cache): reset frame cache only
6167         after unmapping everything.
6168         (map_subwindow): set displayed flag after mapping.
6169
6170 2000-08-21  Martin Buchholz  <martin@xemacs.org>
6171
6172         * data.c (indirect_function):
6173         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
6174
6175         * eval.c (function_argcount):
6176         Use original function when signaling errors.
6177
6178 2000-08-18  Andy Piper  <andy@xemacs.org>
6179
6180         * frame.c (delete_frame_internal): use new
6181         free_frame_subwindow_instances name.
6182
6183         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
6184         (add_tab_item): make return type correct.
6185         (mswindows_tab_control_instantiate): assert index of tab.
6186         (mswindows_tab_control_redisplay): Re-code to use
6187         gui_item_equal_sans_selected and gui_item_list_find_selected.
6188
6189         * glyphs-widget.c (tab_control_update): Correct comment.
6190
6191         * window.c (window_unmap_subwindows): use new
6192         unmap_subwindow_instance_cache_mapper.
6193         (window_unmap_subwindows_cache_mapper): deleted.
6194         (Fset_window_configuration): comparisons should now be with
6195         EQ. Preserve the subwindow instance cache across configuration
6196         changes.
6197         (allocate_window): ditto.
6198         (make_dummy_parent): ditto.
6199
6200         * glyphs.c (free_frame_subwindow_instances): rename from
6201         free_frame_subwindow_instance_cache. finalize all instances rather
6202         than just those in the display cache.
6203         (finalize_all_subwindow_instances): walk windows unmapping and
6204         finalizing subwindows.
6205         (unmap_subwindow_instance_cache_mapper): moved from
6206         window.c. Allow finalization as well as unmapping.
6207
6208         * gui.c (gui_item_list_find_selected): new function.
6209
6210         * gui.h (gui_item_list_find_selected): declare.
6211
6212         * glyphs-x.c (x_tab_control_redisplay): pick tab
6213         explicitly. Re-code to use gui_item_equal_sans_selected and
6214         gui_item_list_find_selected.
6215
6216         * glyphs-x.h: add lwlib-utils.h
6217
6218         * buffer.c (Frecord_buffer): undo previous change.
6219
6220 2000-08-09  Vin Shelton  <acs@xemacs.org>
6221
6222         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
6223         possible.  Create temporary files more securely.  The patch was
6224         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
6225         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
6226         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
6227         for details.
6228
6229 2000-08-07  Ben Wing  <ben@xemacs.org>
6230
6231         * getloadavg.c: remove duplicate (and windows-breaking)
6232         includes of fcntl.h and sys/file.h.
6233
6234         * nt.c: remove duplicate getloadavg() definition.
6235
6236         * sysdll.h (Qdll_filename_encoding): add missing stand-in
6237         encodings.
6238
6239 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
6240
6241         * eval.c (function_argcount): If function needs to be autoloaded
6242         actually use the loaded definition.
6243         GCPRO function.
6244
6245 2000-08-05  Ben Wing  <ben@xemacs.org>
6246
6247         * getloadavg.c: add prototype for getloadavg().  remove
6248         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
6249         of the code).  remove duplicate header includes.
6250
6251         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
6252
6253         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
6254         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
6255         useful load average.
6256
6257         * alloc.c (reinit_alloc_once_early): removed references to
6258         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
6259         the lisp vars are the only things referencing the malloc_sbrk_*
6260         vars, and they were already if 0'd out.  these vars only exist
6261         in the older malloc.c, which is basically unused, and they're
6262         only for informational purposes.
6263
6264         * m\*.h: removed useless VIRT_ADDR_VARIES.
6265
6266         * m\powerpc.h: removed stray NO_ARG_ARRAY.
6267
6268 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
6269
6270         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
6271         color if the image is a mono pixmap.
6272
6273 2000-07-30  Ben Wing  <ben@xemacs.org>
6274
6275         * Makefile.in.in (release):
6276         Remove stray @.
6277
6278         * buffer.c (directory_is_current_directory):
6279         * dired-msw.c (mswindows_get_files):
6280         * dired.c:
6281         * dired.c (Fdirectory_files):
6282         * dired.c (file_name_completion_stat):
6283         * dired.c (Ffile_attributes):
6284         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
6285         preprocessor tricks, to avoid problems on some machines
6286         (e.g. SCO).
6287
6288         * callproc.c (egetenv): GC docs.
6289
6290         * console-msw.h:
6291         * console-msw.h (struct mswindows_dialog_id):
6292         * lrecord.h (lrecord_type):
6293         New object for use with MSW dialogs.
6294
6295         * console.h (struct console_methods):
6296         New enable/disable frame methods, for proper modal dialogs.
6297
6298         * device-msw.c (msprinter_default_printer): Fix to follow
6299         proper Mule conventions.
6300
6301         * device-msw.c:
6302         * device-msw.c (signal_open_printer_error):
6303         * device-msw.c (msprinter_init_device):
6304         * device-msw.c (ensure_not_printing):
6305         * device-msw.c (plist_get_margin):
6306         * device-msw.c (Fmsprinter_select_settings):
6307         * device-msw.c (finalize_devmode):
6308         * device-msw.c (Fmsprinter_settings_despecialize):
6309         * device-msw.c (signal_enum_priner_error):
6310         * extents.c (decode_extent):
6311         * extents.c (decode_map_extents_flags):
6312         * extents.c (decode_extent_at_flag):
6313         * extents.c (Fextent_at):
6314         * extents.c (Fextents_at):
6315         * extents.c (symbol_to_glyph_layout):
6316         [[[[2]]]] Use structured errors.
6317
6318         * dialog-msw.c:
6319         * dialog-msw.c (mswindows_is_dialog_msg):
6320         * dialog-msw.c (mark_mswindows_dialog_id):
6321         * dialog-msw.c (dialog_proc):
6322         * dialog-msw.c (handle_question_dialog_box):
6323         * dialog-msw.c (syms_of_dialog_mswindows):
6324         Define new object to clean up marking; use it as a dialog identifier.
6325         Call new delete-dialog-box-hook.
6326
6327         * dialog-x.c (dbox_selection_callback):
6328         * dialog-x.c (dbox_descriptor_to_widget_value):
6329         * dialog-x.c (x_make_dialog_box_internal):
6330         Call new delete-dialog-box-hook.
6331         Return an id.
6332
6333         * dialog.c:
6334         * dialog.c (syms_of_dialog):
6335         * dialog.c (vars_of_dialog):
6336         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
6337
6338         * eval.c:
6339         * eval.c (signal_call_debugger):
6340         when noninteractive, output stack traces on the console instead
6341         of in a (never-seen) buffer.
6342
6343         * eval.c (signal_type_error):
6344         * eval.c (invalid_argument_2):
6345         * lisp.h:
6346         new funs for use w/structured errors.
6347
6348         * event-Xt.c:
6349         * event-Xt.c (x_to_emacs_keysym):
6350         * event-Xt.c (describe_event):
6351         * event-Xt.c (emacs_Xt_event_handler):
6352         * event-Xt.c (vars_of_event_Xt):
6353         * event-msw.c:
6354         * event-msw.c (mswindows_wnd_proc):
6355         * event-msw.c (vars_of_event_mswindows):
6356         rename {x,mswindows}-debug-events to debug-{}-events for
6357         consistency with other debug-foo variables.
6358
6359         * event-stream.c:
6360         document next-event more clearly.
6361
6362         * fileio.c (Ffile_name_directory):
6363         * fileio.c (Ffile_name_nondirectory):
6364         * fileio.c (Funhandled_file_name_directory):
6365         * fileio.c (file_name_as_directory):
6366         * fileio.c (Ffile_name_as_directory):
6367         * fileio.c (directory_file_name):
6368         * fileio.c (Fdirectory_file_name):
6369         * fileio.c (Fmake_temp_name):
6370         * fileio.c (Ffile_truename):
6371         * fileio.c (Fsubstitute_in_file_name):
6372         * fileio.c (expand_and_dir_to_file):
6373         * fileio.c (barf_or_query_if_file_exists):
6374         * fileio.c (check_executable):
6375         * fileio.c (Ffile_exists_p):
6376         * fileio.c (Ffile_writable_p):
6377         * fileio.c (Ffile_directory_p):
6378         * fileio.c (Ffile_regular_p):
6379         * fileio.c (Ffile_modes):
6380         * fileio.c (Ffile_newer_than_file_p):
6381         * fileio.c (Fverify_visited_file_modtime):
6382         * fileio.c (Fset_visited_file_modtime):
6383         * fileio.c (auto_save_1):
6384         (1). (2).
6385         fix up gcpro's.
6386
6387         * frame-msw.c:
6388         * frame-msw.c (mswindows_init_frame_1):
6389         * frame-msw.c (mswindows_enable_frame):
6390         * frame-msw.c (error_frame_unsizable):
6391         * frame-msw.c (msprinter_init_frame_1):
6392         * frame-msw.c (msprinter_init_frame_3):
6393         * frame-msw.c (console_type_create_frame_mswindows):
6394         (2).
6395         implement new enable/disable frame methods.
6396
6397         * frame-x.c:
6398         * frame-x.c (x_enable_frame):
6399         * frame-x.c (console_type_create_frame_x):
6400         implement new enable/disable frame methods.
6401
6402         * frame.c:
6403         * frame.c (Fdisable_frame):
6404         * frame.c (syms_of_frame):
6405         * frame.h (struct frame):
6406         implement new enable/disable frame methods/functions.
6407
6408         * general-slots.h:
6409         add initial-focus.
6410
6411         * glyphs-msw.c (mswindows_widget_instantiate):
6412         comment that initial-focus should be implemented.
6413
6414         * glyphs-widget.c:
6415         * glyphs-widget.c (check_valid_instantiator):
6416         * glyphs-widget.c (check_valid_orientation):
6417         * glyphs-widget.c (check_valid_tab_orientation):
6418         * glyphs-widget.c (check_valid_justification):
6419         * glyphs-widget.c (check_valid_border):
6420         * glyphs-widget.c (check_valid_callback):
6421         * glyphs-widget.c (check_valid_int_or_function):
6422         * glyphs-widget.c (check_valid_string_or_vector):
6423         * glyphs-widget.c (check_valid_item_list_1):
6424         * glyphs-widget.c (widget_validate):
6425         * glyphs-widget.c (combo_box_validate):
6426         * glyphs-widget.c (widget_instantiate):
6427         * glyphs-widget.c (syms_of_glyphs_widget):
6428         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
6429         * glyphs-widget.c (image_instantiator_combo_box):
6430         * glyphs-widget.c (image_instantiator_scrollbar):
6431         * glyphs-widget.c (image_instantiator_tab_control):
6432         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
6433         (2).
6434         support (unimplemented) keyword initial-focus.
6435         reindent long macros.
6436
6437         * glyphs-x.c (x_redisplay_widget):
6438         * glyphs-x.c (x_button_instantiate):
6439         * glyphs-x.c (x_button_redisplay):
6440         * glyphs-x.c (x_progress_gauge_instantiate):
6441         * glyphs-x.c (x_edit_field_instantiate):
6442         * glyphs-x.c (x_combo_box_instantiate):
6443         * glyphs-x.c (x_tab_control_instantiate):
6444         * glyphs-x.c (x_label_instantiate):
6445         * gui-x.c:
6446         * gui-x.c (button_item_to_widget_value):
6447         * gui-x.c (gui_items_to_widget_values_1):
6448         * gui-x.c (gui_item_children_to_widget_values):
6449         * gui-x.c (gui_items_to_widget_values):
6450         * gui-x.h:
6451         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
6452         add new flag to gui-parsing routines to indicate whether
6453         accelerator specs should be supported.
6454
6455         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
6456
6457         * glyphs.h (struct Lisp_Image_Instance):
6458         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
6459         add initial-focus flag.
6460
6461         * gui.c:
6462         * gui.c (syms_of_gui):
6463         * gui.c (vars_of_gui):
6464         clean up menu-no-selection-hook.
6465
6466         * gui.h:
6467         support delete-dialog-box-hook.
6468
6469         * lread.c (Fload_internal):
6470         * lread.c (locate_file_in_directory_mapper):
6471         (1).
6472
6473         * lrecord.h:
6474         * lrecord.h (struct toolbar_button):
6475         * lrecord.h (syms_of_toolbar):
6476         document how to create a new object.
6477
6478         * menubar-msw.c (mswindows_char_is_accelerator):
6479         may be called on frames w/o menus.
6480
6481         * menubar.c (vars_of_menubar):
6482         clean up :filter docs.
6483
6484         * nt.c (readdir):
6485         * ntproc.c:
6486         (1).
6487
6488         * process-nt.c:
6489         * process-nt.c (validate_signal_number):
6490         * process-nt.c (signal_cannot_launch):
6491         * process-nt.c (nt_create_process):
6492         * process-nt.c (nt_send_process):
6493         * process-nt.c (nt_kill_child_process):
6494         * process-nt.c (nt_open_network_stream):
6495         * process-nt.c (syms_of_process_nt):
6496         (2).
6497         delete quote-handling.  call new lisp code that does it better.
6498
6499         * process-unix.c (connect_to_file_descriptor):
6500         * process-unix.c (allocate_pty):
6501         * process-unix.c (unix_send_process):
6502         * process-unix.c (unix_kill_child_process):
6503         * process-unix.c (unix_open_network_stream):
6504         * process-unix.c (unix_open_multicast_group):
6505         (1). (2).
6506
6507         * process.c:
6508         * process.c (Fstart_process_internal):
6509         (2).  need to canonicalize process path even if absolute.
6510
6511         * select-msw.c (symbol_to_ms_cf):
6512         * select-msw.c (ms_cf_to_symbol):
6513         * select-msw.c (cf_is_autofreed):
6514         * select-msw.c (mswindows_destroy_selection):
6515         * select.c:
6516         * select.c (syms_of_select):
6517         * select.h:
6518         support dibv5, fix bugs. (from Mike Alexander)
6519
6520         * select.c (Fget_selection_internal):
6521         * select.c (select_convert_out):
6522
6523         * sysdep.c:
6524         * sysdep.c (xemacs_stat):
6525         renamed.
6526
6527         * sysdep.c (mkdir):
6528         * sysdep.c (rmdir):
6529         but keep original stat() here because we provide encapsulation
6530         around these funs.
6531
6532         * sysfile.h:
6533         * sysfile.h (fstat):
6534         remove stat garbage.
6535
6536         * syswindows.h:
6537         fix X/MSW conflict.
6538         don't include tchar.h.  it's inappropriate because it makes
6539         compile-time distinctions when we want runtime distinctions.
6540         (we provide our own tchar replacements)
6541
6542         * toolbar.c:
6543         use default object printer for toolbar-button.
6544
6545         * unexcw.c:
6546         make sure we don't encapsulate.
6547
6548         * window.c (vars_of_window):
6549         emphasize that temp-buffer-show-hook is obsolete.
6550
6551 2000-08-05  Martin Buchholz  <martin@xemacs.org>
6552
6553         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
6554         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
6555
6556         * events.c (Fevent_timestamp_lessp):
6557         Not 64-bit clean.  Use EMACS_INT, not int.
6558
6559 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
6560
6561         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
6562         unsigned int and changed the last enum to
6563         lrecord_type_last_built_in_type.
6564         (lrecord_implementations_table): changed prototype to know how
6565         long the array is supposed to be.
6566         (lrecord_type_count): new unsigned int to keep track of the
6567         current number of lisp lrecord types.
6568         (DEFINE_EXTERNAL_LRECORD):
6569         (DECLARE_EXTERNAL_LRECORD): Added these two for external
6570         dynamic-modules to declare new lisp types. They are the same
6571         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
6572         int for each new type, and increment lrecord_type_count by 1.
6573
6574         * alloc.c (lrecord_implementations_table): Changed to reference
6575         lrecord_type_last_built_in_type for the size of the array.
6576         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
6577
6578 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
6579
6580         * glyphs.h (check_valid_item_list): Renamed from
6581         check_valid_item_list_1.
6582
6583 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
6584
6585         * select.c (Qselect_coerce): New.
6586         * select.c (Vselection_coercion_alist): New.
6587         * select.c (syms_of_select): Declare.
6588         * select.c (get-selection-internal): Use it.
6589         Use the new select-coerce functionality.
6590
6591         * select.c (select_coerce): New.
6592         * select.h (select_coerce): Declare.
6593         New function to coerce one type of data into another.
6594
6595 2000-08-03  Martin Buchholz  <martin@xemacs.org>
6596
6597         * callproc.c (Fcall_process_internal):
6598         (Fcall_process_internal):
6599         * process-unix.c (unix_create_process):
6600         Save and restore the value of errno, so that error messages are accurate.
6601
6602 2000-08-01  Martin Buchholz  <martin@xemacs.org>
6603
6604         * elhash.c (print_hash_table):
6605         Fix printing of hash tables to also use `key-and-value' instead of `t'.
6606         Prettify docstrings and indentation.
6607
6608 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
6609
6610         * window.c (Fwindow_pixel_edges): Subtract frame border and
6611         gutter size.
6612
6613 2000-07-31  Andy Piper  <andy@xemacs.org>
6614
6615         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
6616         will acknowledge the change.
6617
6618         * glyphs.h: declare tab_control_order_only_changed.
6619
6620         * glyphs-x.c (x_tab_control_redisplay): use
6621         tab_control_order_only_changed.
6622
6623         * glyphs-widget.c (tab_control_order_only_changed): new function.
6624
6625         * glyphs-msw.c (mswindows_tab_control_redisplay): use
6626         tab_control_order_only_changed.
6627
6628         * gui.c (gui_item_equal_sans_selected): new function.
6629         (gui_item_equal): use it.
6630
6631         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
6632         :properties in favor of :items..
6633
6634         * glyphs-widget.c (check_valid_item_list): rename from
6635         check_valid_item_list_1.
6636         (check_valid_item_list_1): renamed.
6637         (combo_box_validate): deprecate :properties in favor of :items.
6638         (widget_instantiate): ditto.
6639         (tab_control_update): ditto.
6640         (image_instantiator_combo_box): ditto.
6641         (image_instantiator_tree_view): ditto.
6642         (image_instantiator_tab_control): ditto.
6643         (layout_post_instantiate): remove dead code.
6644
6645         * print.c (debug_print_no_newline): only write to debugger if in
6646         WIN32_NATIVE.
6647
6648         * elhash.c (Fmake_hash_table): update doc string.
6649
6650         * event-msw.c (mswindows_wnd_proc): don't allow processing of
6651         messages whilst in GC. This at least stops XEmacs crashing but has
6652         the potential for wierd behaviour.
6653
6654 2000-07-31  Martin Buchholz  <martin@xemacs.org>
6655
6656         * config.h.in:
6657         Make existence of s&m files optional.
6658
6659         * s/bsd386.h: Remove HAVE_GETLOADAVG.
6660         * s/freebsd.h: Remove HAVE_GETLOADAVG.
6661         * s/gnu.h: Remove HAVE_GETLOADAVG.
6662         * s/netbsd.h: Remove HAVE_GETLOADAVG.
6663         * s/sol2.h: Remove HAVE_GETLOADAVG.
6664         * lisp.h: Remove getloadavg() declaration.
6665         * fns.c:
6666         Include <sys/loadavg.h> if available.
6667         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
6668         * config.h.in:  Group together getloadavg()-related macros.
6669         Use only configure-time tests to detect getloadavg().
6670
6671 2000-07-30  Martin Buchholz  <martin@xemacs.org>
6672
6673         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
6674
6675 2000-07-25  Andy Piper  <andy@xemacs.org>
6676
6677         * syswindows.h: add tchar.h for native builds.
6678
6679         * frame.c (syms_of_frame): remove set-glyph-image.
6680
6681         * general-slots.h: add Qset_glyph_image.
6682
6683         * glyphs-widget.c (layout_update): add domain arg to
6684         set-glyph-image.
6685         (syms_of_glyphs_widget): remove set-glyph-image.
6686
6687 2000-07-23  Ben Wing  <ben@xemacs.org>
6688
6689         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
6690         Vpopup_frame_list.
6691
6692 2000-07-22  Andy Piper  <andy@xemacs.org>
6693
6694         * symsinit.h: add syms_of_win32().
6695
6696         * gui-msw.c (syms_of_gui_mswindows): remove
6697         Fmswindows_shell_execute.
6698         (Fmswindows_shell_execute): moved to win32.c.
6699
6700         * emacs.c (main_1): add syms_of_win32 ().
6701
6702         * win32.c (init_potentially_nonexistent_functions): rewrite in
6703         compiler-friendly terms.
6704         (Fmswindows_shell_execute): move here from gui-msw.c.
6705         (syms_of_win32): new.
6706
6707         * device-msw.c (Fmswindows_printer_list): clean up args to
6708         EnumPrinters.
6709         Don't include tchar under cygwin or mingw.
6710         (msprinter_default_printer): make cygwin-friendly.
6711
6712 2000-07-21  Andy Piper  <andy@xemacs.org>
6713
6714         * glyphs-widget.c (image_instantiator_tree_view): use tab
6715         control's update function.
6716         (layout_property): new function. Retrieve items.
6717
6718         * glyphs-msw.c (mswindows_tree_view_redisplay): new
6719         function. Re-populate the tree view from the pending items.
6720
6721         * glyphs.c (instantiate_image_instantiator): Make sure the domain
6722         is designated the parent if the domain is an image instance. This
6723         is needed so that dirtiness can be cascade up the hierarchy and
6724         thus for layout children to be redisplayed correctly.
6725         (allocate_image_instance): rename glyph -> parent.
6726
6727         * redisplay.h: change redisplay_output_layout signature.
6728
6729         * redisplay-msw.c (mswindows_output_display_block): use domain
6730         arg.
6731
6732         * redisplay-x.c (x_output_display_block): use domain arg.
6733
6734 2000-07-10  Andy Piper  <andy@xemacs.org>
6735
6736         * window.c (Fset_window_configuration): add comment.
6737
6738         * redisplay-output.c (compare_runes):
6739         (redisplay_output_subwindow): redisplay rather than update subwindow.
6740         (redisplay_output_layout): ditto.
6741
6742         * redisplay-msw.c (mswindows_frame_output_end):
6743         (mswindows_frame_output_end): make defer window pos optional.
6744
6745         * lisp.h: add Flast.
6746
6747         * glyphs.h (struct image_instantiator_methods): add dest_mask top
6748         normalize method. Change update method to be for changed
6749         instantiators. Add redisplay method. Change signature of layout
6750         method.
6751         (struct Lisp_Image_Instance): add instantiator.
6752         (IMAGE_INSTANCE_INSTANTIATOR): new.
6753         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
6754         (XIMAGE_INSTANCE_INSTANTIATOR): new.
6755         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
6756
6757         * glyphs.c:
6758         (find_instantiator_differences): new function.
6759         (Fset_instantiator_property): new convenience function.
6760         (check_image_instance_structure): strictly check for vector
6761         instantiators.
6762         (normalize_image_instantiator): make non-static.
6763         (instantiate_image_instantiator): pass on dest_mask and use new
6764         signatures for image_instance_layout and friends.
6765         (mark_image_instance): mark the instantiator. Mark the subwindow
6766         face not the widget face.
6767         (image_instance_equal): add instantiator.
6768         (image_instance_hash): ditto.
6769         (allocate_image_instance): ditto.
6770         (Fset_image_instance_property): removed.
6771         (Fimage_instance_file_name): ditto.
6772         (Fcolorize_image_instance): ditto.
6773         (image_instance_layout): add offsets to be set.
6774         (update_image_instance): new function. update an image instance
6775         from its changed instantiator.
6776         (inherit_normalize): add dest_mask.
6777         (xbm_normalize): ditto.
6778         (xface_normalize): ditto.
6779         (xpm_normalize): ditto.
6780         (text_update): set_property -> update.
6781         (image_instantiate): use the glyph identity as a hash key, not the
6782         instantiator.
6783         (glyph_width): use new image_instance_layout signature.
6784         (glyph_ascent): ditto.
6785         (glyph_descent): ditto.
6786         (glyph_height): ditto.
6787         (glyph_query_geometry): ressurrect.
6788         (glyph_layout): ditto.
6789         (redisplay_subwindow): update -> redisplay.
6790         (syms_of_glyphs): add Fset_instantiator_property.
6791         (image_instantiator_format_create): set_property -> update.
6792
6793         * glyphs-x.c:
6794         (autodetect_normalize): add dest_maks to signature.
6795         (x_redisplay_subwindow): update -> redisplay.
6796         (x_redisplay_widget): ditto.
6797         (x_button_redisplay): ditto.
6798         (x_progress_gauge_redisplay): ditto.
6799         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
6800         stacking order.
6801         (console_type_create_glyphs_x): update -> redisplay.
6802         (image_instantiator_format_create_glyphs_x): ditto.
6803
6804         * glyphs-widget.c:
6805         (check_valid_instantiator): disallow glyphs in the instantiator,
6806         they must now be vectors.
6807         (check_valid_instantiator_list): ditto.
6808         (glyph_instantiator_to_glyph): use internal symbol rather than
6809         intern.
6810         (widget_update): renamed from widget_set_property. Call cascaded
6811         update methods.
6812         (redisplay_widget): renamed from update_widget.
6813         (widget_layout): image_instance_layout now takes position as well
6814         as size.
6815         (widget_normalize): ditto.
6816         (widget_instantiate): ditto.
6817         (tab_control_query_geometry) ditto.:
6818         (tab_control_update): renamed from tab_control_set_property.
6819         (progress_gauge_update): set_property -> update.
6820         (layout_normalize): rewrite so that child instantiators are
6821         normalized also.
6822         (layout_update): new function. Create glyphs from the normalized
6823         children and cope with any other layout keywords. We do not
6824         instantiate children here that will be take care of by
6825         redisplay_output_layout.
6826         (layout_instantiate): call layout_update and not much else.
6827         (layout_post_instantiate): not sure whether this is needed
6828         anymore.
6829         (layout_query_geometry): query glyph geometry rather than
6830         image_instance geometry.
6831         (layout_layout): set offsets from pass in parameters. Use glyph
6832         geometry and layout functions rather than image instance ones.
6833         (native_layout_layout): ditto.
6834         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
6835         (image_instantiator_widget): set_property -> update.
6836         (image_instantiator_buttons): ditto.
6837         (image_instantiator_progress_guage): ditto.
6838         (image_instantiator_tab_control): ditto.
6839         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
6840         (image_instantiator_layout): add update method.
6841
6842         * glyphs-msw.c (bmp_normalize):
6843         (mswindows_resource_normalize): add dest_mask so that it can be
6844         proprogated by layout_normalize.
6845         (begin_defer_window_pos): make optional because it may not be the
6846         right thing to do and it introduces differences with X.
6847         (mswindows_unmap_subwindow): ditto.
6848         (mswindows_map_subwindow): ditto.
6849         (mswindows_redisplay_subwindow): renamed from
6850         mswindows_update_subwindow.
6851         (mswindows_redisplay_widget): ditto.
6852         (mswindows_button_redisplay): renamed from
6853         mswindows_button_update. Update is now what the instantiation
6854         function does for a changed instantiator.
6855         (mswindows_progress_gauge_instantiate): set the progress value
6856         here if appropriate.
6857         (mswindows_tab_control_redisplay): cope with re-ordering of the
6858         members of the tab widget by simply selecting the new top
6859         widget. This makes things appear ok if you click on a tab.
6860         (mswindows_combo_box_instantiate): image_instance_layout now takes
6861         position as well as size.
6862         (mswindows_progress_gauge_redisplay): renamed from
6863         mswindows_progress_gauge_update.
6864         (console_type_create_glyphs_mswindows): fix update -> redisplay.
6865         (image_instantiator_format_create_glyphs_mswindows): ditto.
6866
6867         * glyphs-eimage.c (jpeg_normalize):
6868         (gif_normalize):
6869         (png_normalize):
6870         (tiff_normalize): add dest_mask so that it can be proprogated by
6871         layout_normalize.
6872
6873         * elhash.c:
6874         (print_hash_table):
6875         (hash_table_weakness_validate):
6876         (decode_hash_table_weakness):
6877         (Fhash_table_weakness):
6878         (Fhash_table_type):
6879         (syms_of_elhash): use Ben's naming scheme for hashtable types..
6880
6881         * console.h (struct console_methods): move update_* to
6882         redisplay_*.
6883
6884 2000-07-20  Ben Wing  <ben@xemacs.org>
6885
6886         * *.[ch] (XSETOBJ): remove unused middle argument.
6887         lisp-disunion.h: correct wrap_object() to one argument.
6888
6889 2000-07-15  Ben Wing  <ben@xemacs.org>
6890
6891         * s/cygwin32.h:
6892         * s/cygwin32.h (CYGWIN_CONV_PATH):
6893         Add missing logb prototype for v1.1.
6894         Use post-b20 names and alias to pre-b20 names when pre-b20.
6895
6896         * s/windowsnt.h: [5].
6897
6898 2000-07-15  Ben Wing  <ben@xemacs.org>
6899
6900         * Makefile.in.in (x_objs):
6901         * Makefile.in.in (sheap_objs):
6902         * Makefile.in.in (objs):
6903         added win32.o, cosmetic cleanups.
6904
6905         * alloc.c (Fmake_byte_code):
6906         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
6907         etc. macros which declare their own args now.
6908
6909         * alloc.c (syms_of_alloc):
6910         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
6911
6912         * buffer.c:
6913         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
6914
6915         * buffer.c (Fget_file_buffer):
6916         Fixed GCPRO problem.
6917
6918         * buffer.c (get_truename_buffer):
6919         Fixed comment about GC checking.
6920
6921         * buffer.c (syms_of_buffer):
6922         Undeclared those dedicated frame funs.
6923         [2].
6924
6925         * buffer.h:
6926         Define convenience macros for internal/external conversions.
6927         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
6928         and Qenvironment_variable_encoding for cleaner code.
6929
6930         * bufslots.h:
6931         Remove dedicated-frame; in lisp.
6932
6933         * bytecode.c (funcall_compiled_function):
6934         [1].
6935
6936         * bytecode.c (syms_of_bytecode):
6937         [2].
6938
6939         * console-msw.c:
6940         * console-msw.c (mswindows_show_console): Rewrote.
6941
6942         * console-msw.c (Fmswindows_debugging_output): New.
6943         Sends to OutputDebugString (special MSWin debugger interface).
6944
6945         * console-msw.c (Fmswindows_message_box):
6946         Fixed stupid bugs so it works when called from kill-emacs.
6947
6948         * console-msw.c (syms_of_console_mswindows):
6949         Declare Fmswindows_debugging_output.
6950
6951         * console-msw.h:
6952         New MSWin prototypes.
6953
6954         * console-msw.h (struct mswindows_frame):
6955         New entry last-click-mods for improved button-modifier support.
6956
6957         * console-msw.h (FRAME_MSWINDOWS_POPUP):
6958         New struct entry `popup' with corresponding accessor.
6959
6960         * console-x.c:
6961         * console-x.c (split_up_display_spec):
6962         * console-x.c (get_display_arg_connection):
6963         * console-x.c (x_semi_canonicalize_console_connection):
6964         * console-x.c (x_canonicalize_device_connection):
6965         [[[6]]]: Change char to more specific type.
6966         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
6967
6968         * console-x.c (x_semi_canonicalize_console_connection):
6969         * console-x.c (x_canonicalize_device_connection):
6970         [[[9]]]: Fix up error signalling to use new structured error system.
6971
6972         * console-x.h:
6973         [[[4]]]: Define codesys aliases:
6974         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
6975         Qx_color_name_encoding, Qx_display_name_encoding.
6976
6977         * console.h (struct console_methods):
6978         New method make_dialog_box_internal supersedes older
6979         popup_dialog_box method.
6980
6981         * data.c:
6982         Define many new errors, part of new structured errors.
6983
6984         * data.c (init_errors_once_early):
6985         * data.c (syms_of_data):
6986         [2].
6987
6988         * device-msw.c (mswindows_init_device):
6989         [[[5]]]: Cleanup to support NT 3.51.
6990
6991         * device-msw.c (decode_devmode): Cleanup.
6992
6993         * device-msw.c (mswindows_handle_print_setup_dialog_box):
6994         * device-msw.c (mswindows_handle_print_dialog_box):
6995         * device-msw.c (mswindows_handle_page_setup_dialog_box):
6996         * device-msw.c (syms_of_device_mswindows):
6997         Delete the dialog box primitives recently introduced by Kirill and
6998         instead interface to general dialog box interface.
6999
7000         * device-x.c:
7001         * device-x.c (compute_x_app_name):
7002         * device-x.c (x_init_device):
7003         * device-x.c (Fx_valid_keysym_name_p):
7004         * device-x.c (Fx_set_font_path):
7005         [6].
7006         [7].
7007
7008         * device.h (wrap_device): New.
7009         First of its kind; meant to replace XSETDEVICE.
7010
7011         * dialog-msw.c: Many file-dialog symbols.
7012
7013         * dialog-msw.c (mswindows_register_popup_frame): New.
7014         * dialog-msw.c (mswindows_is_dialog_msg): New.
7015         For supporting kbd traversal in dialog boxes.
7016
7017         * dialog-msw.c (dialog_proc):
7018         Support hitting ESC in dialogs.
7019
7020         * dialog-msw.c (struct):
7021         Common dialog box errors.
7022
7023         * dialog-msw.c (handle_file_dialog_box): New.
7024         Add file dialog code.
7025
7026         * dialog-msw.c (handle_question_dialog_box):
7027         Redo existing code to support new question dialog syntax.
7028
7029         * dialog-msw.c (console_type_create_dialog_mswindows):
7030         We support new dialog console method.
7031
7032         * dialog-msw.c (syms_of_dialog_mswindows):
7033         * dialog-msw.c (vars_of_dialog_mswindows):
7034         New file dialog symbols, vars.
7035
7036         * dialog-x.c:
7037         * dialog-x.c (maybe_run_dbox_text_callback):
7038         * dialog-x.c (dbox_descriptor_to_widget_value):
7039         * dialog-x.c (x_make_dialog_box_internal):
7040         * dialog-x.c (console_type_create_dialog_x):
7041         Mule-ize entire file.
7042         Redo to support question dialog syntax.
7043         [6].
7044
7045         * dialog.c:
7046         * dialog.c (Fmake_dialog_box_internal):
7047         * dialog.c (syms_of_dialog):
7048         Kill old popup-dialog-box, replace with new primitive.
7049         Just call device method or signal error.
7050
7051         * eldap.c (Fldap_open):
7052         * eldap.c (Fldap_search_basic):
7053         * eldap.c (Fldap_add):
7054         * eldap.c (Fldap_modify):
7055         [1].
7056         [7].
7057
7058         * emacs.c:
7059         * emacs.c (make_arg_list_1):
7060         * emacs.c (make_arg_list):
7061         Mule-ize call to dll_init().
7062         [6].
7063         [8].
7064
7065         * emacs.c (make_argc_argv):
7066         * emacs.c (free_argc_argv):
7067         * emacs.c (init_cmdargs):
7068         * emacs.c (main_1):
7069         * emacs.c (Fkill_emacs):
7070         * emacs.c (Fdump_emacs):
7071         Update comments about what can be used in syms_* etc.
7072         Call init_win32() when necessary.
7073         Fix up MS Win dialog box in kill-buffer to actually work right.
7074         [7].
7075
7076         * eval.c:
7077         * eval.c (For):
7078         * eval.c (Fand):
7079         * eval.c (Fprogn):
7080         * eval.c (Fprog1):
7081         * eval.c (Fprog2):
7082         * eval.c (FletX):
7083         * eval.c (Flet):
7084         * eval.c (condition_case_3):
7085         * eval.c (Feval):
7086         * eval.c (function_argcount):
7087         * eval.c (funcall_lambda):
7088         [1].
7089
7090         * eval.c (type_error): New.
7091         * eval.c (maybe_type_error): New.
7092         * eval.c (continuable_type_error): New.
7093         * eval.c (maybe_continuable_type_error): New.
7094         * eval.c (type_error_with_frob): New.
7095         * eval.c (maybe_type_error_with_frob): New.
7096         * eval.c (continuable_type_error_with_frob): New.
7097         * eval.c (maybe_continuable_type_error_with_frob): New.
7098         New functions for use with structured errors.
7099
7100         * event-Xt.c:
7101         * event-Xt.c (x_event_to_emacs_event):
7102         Buttons are now modifiers too.
7103
7104         * event-Xt.c (emacs_Xt_current_event_timestamp):
7105         Implement new event method.
7106         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
7107
7108         * event-msw.c:
7109         * event-msw.c (ntpipe_shove_writer): [5].
7110         * event-msw.c (mswindows_enqueue_mouse_button_event):
7111         * event-msw.c (mswindows_drain_windows_queue):
7112         * event-msw.c (mswindows_wnd_proc): [7].
7113         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
7114         * event-msw.c (mswindows_modifier_state):
7115         Throughout: support new button modifiers.
7116
7117         * event-msw.c (emacs_mswindows_current_event_timestamp):
7118         Implement new event method.
7119         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
7120
7121         * event-stream.c:
7122         * event-stream.c (event_stream_current_event_timestamp): New.
7123         * event-stream.c (maybe_kbd_translate): New functionality.
7124         * event-stream.c (vars_of_event_stream):
7125         Document new kbd-translate-table functionality.
7126
7127         * event-stream.c (Fcurrent_event_timestamp): New.
7128         New primitive for use in fabricated events.
7129         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
7130
7131         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
7132
7133         * events.c:
7134         * events.c (Fmake_event):
7135         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
7136         [1].
7137         [9].
7138
7139         * events.c (format_event_object): fix gcc warnings.
7140
7141         * events.c (Fevent_timestamp): Document new primitives.
7142
7143         * events.c (TIMESTAMP_HALFSPACE): New.
7144
7145         * events.c (Fevent_timestamp_lessp): New.  New primitive for
7146         comparing timestamps correctly (half-space algorithm).
7147
7148         * events.c (Fevent_modifier_bits): Doc fix.
7149
7150         * events.c (Fevent_modifiers): Major doc addition.
7151         * events.c (event_x_y_pixel_internal): Typo fix.
7152         * events.c (syms_of_events): Declare new primitives.
7153
7154         * events.h:
7155         Update long comment for button modifiers, timestamps.
7156
7157         * events.h (struct event_stream):
7158         New current_event_timestamp method.
7159
7160         * extents.c:
7161         * extents.c (extent_in_region_p):
7162         * extents.c (decode_extent):
7163         * extents.c (Fset_extent_parent):
7164         * extents.c (decode_map_extents_flags):
7165         Fix gcc warnings.
7166         [9].
7167
7168         * extents.c (struct extent_at_arg):
7169         * extents.c (decode_extent_at_flag):
7170         * extents.c (extent_at_mapper):
7171         * extents.c (extent_at_bytind):
7172         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
7173         * extents.c (Fextents_at): New primitive. [9].
7174         * extents.c (symbol_to_glyph_layout): [9].
7175         Support new primitive `extents-at'.
7176
7177
7178         * extents.c (get_text_property_bytind):
7179         extent_at_bytind has another arg.
7180         [9].
7181
7182         * extents.c (syms_of_extents): New primitive.
7183
7184         * file-coding.c (Fmake_coding_system): [1].
7185         * file-coding.c (subsidiary_coding_system): fix gcc warning
7186         * file-coding.c (syms_of_file_coding): [2].
7187
7188         * fileio.c (Fexpand_file_name):
7189         * fileio.c (Fsysnetunam):
7190         * fileio.c (Ffile_exists_p):
7191         * fileio.c (Ffile_executable_p):
7192         * fileio.c (Fverify_visited_file_modtime):
7193         Clean up GCPROing.
7194
7195         * fileio.c (syms_of_fileio): [2].
7196
7197         * filelock.c (lock_file_1):
7198         * filelock.c (current_lock_owner):
7199         * filelock.c (lock_if_free):
7200         * filelock.c (lock_file):
7201         * filelock.c (unlock_file):
7202         Clean up GCPROing.
7203
7204         * fns.c (concat): Fix gcc warning.
7205
7206         * fns.c (Fmember):
7207         * fns.c (Fold_member):
7208         * fns.c (Fmemq):
7209         * fns.c (Fold_memq):
7210         * fns.c (memq_no_quit):
7211         * fns.c (Fassoc):
7212         * fns.c (Fold_assoc):
7213         * fns.c (Fassq):
7214         * fns.c (Fold_assq):
7215         * fns.c (assq_no_quit):
7216         * fns.c (Frassoc):
7217         * fns.c (Fold_rassoc):
7218         * fns.c (Frassq):
7219         * fns.c (Fold_rassq):
7220         * fns.c (rassq_no_quit):
7221         * fns.c (Fdelete):
7222         * fns.c (Fold_delete):
7223         * fns.c (Fdelq):
7224         * fns.c (Fold_delq):
7225         * fns.c (delq_no_quit):
7226         * fns.c (Fremassoc):
7227         * fns.c (Fremassq):
7228         * fns.c (remassq_no_quit):
7229         * fns.c (Fremrassoc):
7230         * fns.c (Fremrassq):
7231         * fns.c (remrassq_no_quit):
7232         * fns.c (Freverse):
7233         * fns.c (mapcar1):
7234         [1].
7235
7236         * frame-msw.c (mswindows_init_frame_1):
7237         * frame-msw.c (mswindows_delete_frame):
7238         Register popups with dialog code so keyboard traversing works.
7239
7240         * frame-tty.c (tty_raise_frame_no_select): [1].
7241
7242         * frame-x.c:
7243         * frame-x.c (x_set_frame_text_value):
7244         * frame-x.c (x_set_frame_properties):
7245         * frame-x.c (x_create_widgets):
7246         [7].
7247
7248         * frame.c:
7249         * frame.c (Fmouse_pixel_position): Minor doc fixes.
7250
7251         * frame.h (wrap_frame): New.
7252         Macro like wrap_device.
7253
7254         * general.c:
7255         * general.c (SYMBOL):
7256         * general.c (syms_of_general):
7257         Major reorg.  This is now just a wrapper and symbols themselves
7258         are listed in general-slots.h.
7259
7260         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
7261         * glyphs-msw.c (mswindows_resource_instantiate): [5].
7262
7263         * glyphs-msw.c (mswindows_native_layout_instantiate):
7264         Add DS_CONTROL so keyboard traversal will work.
7265
7266         * glyphs-widget.c:
7267         * glyphs-widget.c (syms_of_glyphs_widget):
7268         Move some symbols to general-slots.h.
7269
7270         * glyphs-x.c:
7271         * glyphs-x.c (xbm_instantiate_1):
7272         * glyphs-x.c (x_xbm_instantiate):
7273         * glyphs-x.c (x_xface_instantiate):
7274         * glyphs-x.c (autodetect_instantiate):
7275         * glyphs-x.c (cursor_font_instantiate):
7276         * glyphs-x.c (x_update_widget):
7277         * glyphs-x.c (x_widget_instantiate):
7278         * glyphs.c (bitmap_to_lisp_data):
7279         * glyphs.c (pixmap_to_lisp_data):
7280         [7].
7281
7282         * glyphs.c (syms_of_glyphs):
7283         [2].
7284
7285         * gui-x.c:
7286         * gui-x.c (print_widget_value):
7287         * gui-x.c (menu_separator_style_and_to_external):
7288         * gui-x.c (add_accel_and_to_external):
7289         * gui-x.c (button_item_to_widget_value):
7290         * gui-x.c (gui_items_to_widget_values_1):
7291         * gui-x.c (gui_items_to_widget_values):
7292         * gui-x.c (syms_of_gui_x):
7293         * gui-x.c (vars_of_gui_x):
7294         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
7295         [9].
7296
7297         * gui-x.h:
7298         Muleize, prototype changes matching gui-x.c.
7299
7300         * gui.c:
7301         * gui.c (separator_string_p):
7302         * gui.c (gui_item_add_keyval_pair):
7303         * gui.c (make_gui_item_from_keywords_internal):
7304         * gui.c (signal_too_long_error):
7305         * gui.c (parse_gui_item_tree_item):
7306         * gui.c (syms_of_gui):
7307         * gui.c (vars_of_gui):
7308         * gui.h:
7309         menu-no-selection-hook moved here (used by MSWin).
7310         Move some symbols to general-slots.h.
7311         [6].
7312         [9].
7313
7314         * insdel.c (get_buffer_pos_char):
7315         * insdel.c (get_buffer_range_char):
7316         Add GC comments.
7317
7318         * keymap.c (keymap_lookup_directly):
7319         * keymap.c (keymap_store):
7320         * keymap.c (ensure_meta_prefix_char_keymapp):
7321         * keymap.c (describe_map):
7322         * keymap.h:
7323         Support new button modifiers.
7324
7325         * lisp-disunion.h (wrap_object):
7326         * lisp-disunion.h (XSETOBJ):
7327         Rename make_obj to wrap_object.
7328
7329         * lisp-union.h:
7330         * lisp-union.h (make_int):
7331         * lisp-union.h (make_char):
7332         Support wrap_object.
7333
7334         * lisp.h:
7335         * lisp.h (LIST_LOOP):
7336         * lisp.h (EXTERNAL_LIST_LOOP):
7337         * lisp.h (LIST_LOOP_2):
7338         * lisp.h (EXTERNAL_LIST_LOOP_1):
7339         * lisp.h (EXTERNAL_LIST_LOOP_2):
7340         * lisp.h (EXTERNAL_LIST_LOOP_3):
7341         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
7342         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
7343         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
7344         * lisp.h (EXTERNAL_ALIST_LOOP_5):
7345         * lisp.h (EXTERNAL_ALIST_LOOP_6):
7346         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
7347         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
7348         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
7349         * lisp.h (struct Lisp_Symbol):
7350         * lisp.h (maybe_continuable_error_with_frob):
7351         Fix up section comments.
7352         Add new types for char to indicate usage.
7353         Delete symbols auto-generated from general-slots.h.
7354         Add prototypes for structured error functions.
7355         Add long comments describing looping macros and change interface
7356         so that lvalues are automatically declared.
7357         Add NO_DECLARE macro in case callers want to declare lvalues
7358         themselves.
7359
7360         * lread.c (read_syntax_error):
7361         * lread.c (continuable_read_syntax_error):
7362         * lread.c (read_structure):
7363         * lread.c (sequence_reader):
7364         * lread.c (read_list_conser):
7365         * lread.c (read_compiled_function):
7366         Rename syntax_error and continuable_syntax_error to avoid clash
7367         with same-named structured error functions.
7368
7369         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
7370         * menubar-msw.c (populate_menu_add_item):
7371         * menubar-msw.c (populate_or_checksum_helper):
7372         [5].
7373         [9].
7374
7375         * menubar-x.c:
7376         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
7377         Mule-ize whole file.
7378
7379         * menubar.c (Fnormalize_menu_item_name): Add optimization.
7380
7381         * mule-charset.c (Fmake_charset):
7382         * mule-wnnfns.c (Fwnn_set_param):
7383         [1].
7384
7385         * ntproc.c (create_child):
7386         * ntproc.c (Fwin32_set_current_locale):
7387         Add comments portending doom.
7388
7389         * objects-msw.c:
7390         * objects-msw.c (old_font_enum_callback_2):
7391         * objects-msw.c (font_enum_callback_1):
7392         * objects-msw.c (mswindows_enumerate_fonts):
7393         [5].
7394
7395         * objects-x.c:
7396         * objects-x.c (allocate_nearest_color):
7397         * objects-x.c (x_parse_nearest_color):
7398         * objects-x.c (x_initialize_color_instance):
7399         * objects-x.c (x_print_color_instance):
7400         * objects-x.c (x_finalize_color_instance):
7401         * objects-x.c (x_valid_color_name_p):
7402         * objects-x.c (x_initialize_font_instance):
7403         * objects-x.c (x_print_font_instance):
7404         * objects-x.c (valid_x_font_name_p):
7405         * objects-x.c (truename_via_FONT_prop):
7406         * objects-x.c (truename_via_random_props):
7407         * objects-x.c (truename_via_XListFonts):
7408         * objects-x.c (x_font_truename):
7409         * objects-x.c (x_font_instance_truename):
7410         * objects-x.c (x_font_instance_properties):
7411         * objects-x.c (x_list_fonts):
7412         * objects-x.c (x_find_charset_font):
7413         Mule-ize entire file.
7414         [7].
7415
7416         * objects-x.h:
7417         Mule-verify.
7418
7419         * print.c:
7420         * print.c (std_handle_out_external):
7421         * print.c (debug_print_no_newline):
7422         * print.c (syms_of_print):
7423         Output to all debugger kinds in debug-print.
7424         Fix console-output code under MSWin to actually work.
7425
7426         * process-nt.c (send_signal):
7427         * process-nt.c (nt_create_process):
7428         Use newer Unicode macros.
7429
7430         * process-unix.c (unix_create_process):
7431         * process-unix.c (unix_canonicalize_host_name):
7432         * process-unix.c (unix_open_network_stream):
7433         [7].
7434
7435         * scrollbar-x.c:
7436         Mule-verify.
7437
7438         * search.c (syms_of_search):
7439         [2].
7440
7441         * select-msw.c (mswindows_destroy_selection):
7442         Use LIST_LOOP_2.
7443
7444         * select-x.c (symbol_to_x_atom):
7445         [7].
7446
7447         * select.c (syms_of_select):
7448         [2].
7449
7450         * sound.c (Fplay_sound_file):
7451         [7].
7452
7453         * specifier.c:
7454         * specifier.c (decode_specifier_type):
7455         * specifier.c (Fvalid_specifier_locale_type_p):
7456         * specifier.c (check_valid_locale_or_locale_type):
7457         * specifier.c (decode_locale):
7458         * specifier.c (decode_locale_type):
7459         * specifier.c (decode_locale_list):
7460         * specifier.c (check_valid_domain):
7461         * specifier.c (decode_specifier_tag_set):
7462         * specifier.c (Fcanonicalize_tag_set):
7463         * specifier.c (Fdefine_specifier_tag):
7464         * specifier.c (Fspecifier_tag_predicate):
7465         * specifier.c (check_valid_inst_list):
7466         * specifier.c (check_valid_spec_list):
7467         * specifier.c (decode_how_to_add_specification):
7468         * specifier.c (check_modifiable_specifier):
7469         * specifier.c (specifier_add_spec):
7470         * specifier.c (boolean_validate):
7471         * specifier.c (display_table_validate):
7472         [9].
7473
7474         * specifier.c (syms_of_specifier):
7475         Move some symbols to general-slots.h.
7476         [2].
7477
7478         * symbols.c:
7479         * symbols.c (Fmapatoms):
7480         * symbols.c (Fapropos_internal):
7481         Add GCPROs.
7482
7483         * symbols.c (set_default_buffer_slot_variable):
7484         * symbols.c (set_default_console_slot_variable):
7485         [1].
7486
7487         * symbols.c (defsymbol_massage_name_1):
7488         * symbols.c (defkeyword_massage_name):
7489         * symbols.c (deferror_1):
7490         * symbols.c (deferror):
7491         * symbols.c (deferror_massage_name_and_message):
7492         * symeval.h:
7493         * symeval.h (DEFSYMBOL):
7494         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
7495
7496         * symbols.c (syms_of_symbols):
7497         [2].
7498
7499         * symsinit.h:
7500         * symsinit.h (init_win32): New.
7501         Also new is syms_of_dialog_mswindows.
7502
7503         * syswindows.h:
7504         Add new Unicode macros, missing Cygwin wide-char functions,
7505         convenience conversion macros for Qmswindows_tstr, macros for
7506         encapsulating required MSWin <-> Cygwin filename conversions,
7507         prototype for dynamically-extracted (not in NT 3.51) functions.
7508
7509         * toolbar-x.c:
7510         Mule-verify.
7511
7512         * tooltalk.c (Fadd_tooltalk_message_arg):
7513         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
7514         * tooltalk.c (Fadd_tooltalk_pattern_arg):
7515         [7].
7516
7517         * tooltalk.c (syms_of_tooltalk):
7518         [2].
7519
7520         * unexnt.c:
7521         * unexnt.c (unexec):
7522         Fix up headers, declaration of unexec() to be more standard.
7523
7524 2000-07-20  Martin Buchholz  <martin@xemacs.org>
7525
7526         * offix.h: Revert change to guard macros - they're used in offix.c!
7527
7528 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7529
7530         * lisp.h: Defsubred Fdelete.
7531
7532         * console-msw.h:  (msprinter_default_printer): Added.
7533
7534         * console-msw.c (msprinter_canonicalize_console_connection):
7535         (msprinter_canonicalize_device_connection): Added.
7536
7537         * device-msw.c (msprinter_default_printer):
7538         (Fmswingows_get_default_printer):
7539         (signal_enum_priner_error):
7540         (Fmswingows_printer_list): Added.
7541
7542 2000-07-19  Martin Buchholz <martin@xemacs.org>
7543
7544         * XEmacs 21.2.35 is released.
7545
7546 2000-07-19  Martin Buchholz  <martin@xemacs.org>
7547
7548         * select-x.c (x_handle_selection_request):
7549         Text selected in xemacs and pasted into xterm failed to appear.
7550         Spelling fixes and cosmetic changes.
7551
7552 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7553
7554         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
7555         XEmacs frame (fix for doubling chars in dialog boxes).
7556
7557 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
7558
7559         * select.c (select_convert_in, select_convert_out):
7560         Don't call intern() every time.
7561
7562         * select.c (Qselect_convert_in, Qselect_convert_out): New.
7563         * select.c (vars_of_select): Initialise them.
7564
7565 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
7566
7567         * select.c (selection-coercible-types): New.
7568
7569         * select.c (own-selection-internal):
7570         * select.c (get-selection-internal):
7571         MULE bug fix - these should default to COMPOUND_TEXT and not
7572         STRING for MULE. I think.
7573
7574         * select.c (select_convert_out): Use selection-coercible-types
7575         to find types that we can attempt to perform coercions on.
7576
7577 2000-07-18  Martin Buchholz  <martin@xemacs.org>
7578
7579         * mule-wnnfns.c:
7580         * mule-canna.c:
7581         Add coding: cookie to identify encoding.
7582
7583         * mule-canna.c (CANNA_mode_keys): make static.
7584         Use proper prototypes, even for functions of no arguments.
7585         Remove external prototype for Fding().
7586
7587         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
7588
7589         * select.c (syms_of_select): Add missing DEFSUBR.
7590
7591 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
7592
7593         * select.c (get_selection_internal, own_selection_internal):
7594         Make the type default to STRING, rather than placing a nil type
7595         into Vselection_alist.
7596
7597 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
7598
7599         * gpmevent.c (tty_selection_exists_p):
7600         * gpmevent.c (tty_own_selection):
7601         Updated parameter lists.
7602
7603 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
7604
7605         * select.h (selection-alist): Removed declaration.
7606
7607         * select.h (get_local_selection):
7608         * select.c (get_local_selection):
7609         Made static.
7610
7611         * select.h (convert_selection): Removed declaration.
7612         * select.c (convert_selection): Removed.
7613         This function belongs in Lisp.
7614
7615         * select.h (select_convert_in): Declare.
7616         * select.h (select_convert_out): Declare.
7617         * select.c (select_convert_in): New.
7618         * select.c (select_convert_out): New.
7619         New conversion functions for other files to call.
7620
7621         * select.h (select_notify_buffer_kill): Declare.
7622         * select.c (select_notify_buffer_kill): New.
7623         New functions that get called from kill-buffer.
7624
7625         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
7626         X-specific lisp code.
7627
7628         * select.h: Declare some of the lisp-visible functions for
7629         external use.
7630
7631         * select.c (clean_local_selection_data): Removed. This was
7632         a disgusting function, and previously should have been in
7633         select-x.c in any case. The functionality is now provided
7634         in select-convert-from-integer (select.el).
7635
7636         * select.c (available-selection-types): Fixed stupidity where
7637         INTEGER and ATOM got added twice. Also add STRING when we see an
7638         extent.
7639
7640         * select.c (get-selection-internal): Removed symbol stripping. No
7641         longer causes conversion when data comes from the internal cache.
7642
7643         * select.c (syms_of_select): Added new functions.
7644
7645         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
7646         error checking - previously this called abort!
7647
7648         * select-x.c (x_own_selection): Changed comment.
7649
7650         * select-x.c (x_handle_selection_request): Use select_convert_out.
7651         Don't mess with selection-alist; it's an internal variable of select.c.
7652
7653         * select-x.c (x_get_foreign_selection): Use select_convert_in.
7654
7655         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
7656         rather than messing with selection-alist.
7657
7658         * select-msw.c (mswindows_get_foreign_selection):
7659         Use TO_INTERNAL_FORMAT rather than hacking.
7660
7661 2000-07-14  Martin Buchholz  <martin@xemacs.org>
7662
7663         * process-unix.c (unix_open_multicast_group):
7664         (unix_open_multicast_group): Remove useless casts.
7665
7666 2000-07-13  Martin Buchholz  <martin@xemacs.org>
7667
7668         * sound.c (Fplay_sound): Fix `unused variable' warning.
7669
7670         * emacs.c (main): Use correct type for _environ on SCO5.
7671
7672 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
7673
7674         * console.h (own_selection_method):
7675         * console.h (selection_exists_p_method):
7676         * console.h (available_selection_types_method): New.
7677         * console.h (register_selection_data_type_method): New.
7678         * console.h (selection_data_type_name): New.
7679
7680         * console-msw.h (mswindows_destroy_selection): Declare it.  New
7681         function & alist to track GlobalAlloc()'d handles that need
7682         releasing when the clipboard data gets replaced or emptied.
7683
7684         * event-msw.c (mswindows_wnd_proc): Call it.
7685
7686         * lisp.h, general.c (Qappend): New symbol representing a
7687         `how-to-add' mode.
7688
7689         * select.c (own-selection-internal):
7690         * select.c (selection-exists-p):
7691         * select.c (available-selection-types): New.
7692         * select.c (register-selection-data-type): New.
7693         * select.c (selection-data-type-name): New.  New functions to deal
7694         with device-specific selection data formats.
7695         * select.c (selection-converter-out-alist): Renamed.
7696         * select.c (selection-converter-in-alist): New.
7697         * select.c (selection-appender-alist): New.  Added new alists.
7698         * select.c (syms_of_select, vars_of_select): Added new symbols &
7699         variables.
7700         * select.c (get_local_selection): Split.
7701         * select.c: Removed spurious type checking - selections may now be
7702         of any type, not just strings.
7703         * select.c (own-selection-internal):
7704
7705         * select.h, select.c (convert_selection): New. Created
7706         convert_selection() function based on get_local_selection().
7707         * select.h, select.c (QCF_*): New symbols representing mswindows
7708         clipboard formats.
7709         * select.h, select.c (Qreplace_all, Qreplace_existing): New
7710         symbols representing `how-to-add' modes.
7711
7712         * select-msw.c (x_sym_p): New.
7713         * select-msw.c (symbol_to_ms_cf): New.
7714         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
7715         symbols & clipboard formats. Can also handle string names.
7716         * select-msw.c (mswindows_own_selection):
7717         * select-msw.c (mswindows_selection_exists_p):
7718         Added `data-type' parameter. Use it.
7719         * select-msw.c (mswindows_available_selection_types): New.
7720         * select-msw.c (mswindows_register_selection_data_type): New.
7721         * select-msw.c (mswindows_selection_data_type_name): New.
7722         * select-msw.c (mswindows_own_selection):
7723         * select-msw.c (mswindows_get_foreign_selection):
7724         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
7725         * select-msw.c (console_create_select_mswindows): Added new methods.
7726         * select-msw.c (mswindows_destroy_selection): New.
7727         * select-msw.c (Vhandle_alist): New list.
7728         * select-msw.c (mswindows_own_selection):
7729
7730         * select-x.c (x_own_selection):
7731         * select-x.c (x_selection_exists_p):
7732         * select-x.c: Added some comments about maybe using new
7733         functionality.
7734         * select-x.c (x_own_selection):
7735
7736         * specifier.c: Remove definition of Qappend (now in general.c)
7737         * specifier.c (syms_of_specifier): Remove Qappend.
7738
7739 2000-07-12  Martin Buchholz  <martin@xemacs.org>
7740
7741         * config.h.in: Add socklen_t.
7742
7743         * s/decosf4-0.h: No special compiler flags needed or desired.
7744         In particular, undefine _BSD for DEC OSF 4.0.
7745
7746 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7747
7748         * redisplay-msw.c (msprinter_frame_output_end): Added.
7749         (console_type_create_redisplay_mswindows): Referred the above.
7750
7751         * frame.c (setup_frame_without_minibuffer): Do not create a
7752         default minibuffer frame on a printer device.
7753
7754         * frame-msw.c (apply_dc_geometry): Added.
7755         (msprinter_start_page):
7756         (msprinter_init_frame_3):
7757         (msprinter_eject_page): Use it.
7758
7759         * console-msw.h (struct msprinter_frame): Added pix_left and top,
7760         and removed residual duplex and orientation properties.
7761
7762 2000-07-11  Martin Buchholz  <martin@xemacs.org>
7763
7764         * eval.c (function_argcount): Work around a DEC CC compiler bug.
7765
7766         * unexalpha.c: Remove system prototypes from C sources!
7767
7768 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
7769
7770         * eval.c: Remove references to M-x edit-options in DEFUNs for
7771         `defvar' and `defconst'.
7772
7773 2000-07-09  Martin Buchholz  <martin@xemacs.org>
7774
7775         * config.h.in: Remove SMART_INCLUDE hackery.
7776
7777         PostgreSQL hacking:
7778         * config.h.in: Don't use SMART_INCLUDE.
7779
7780         * postgresql.h: Include libpq-fe.h here.  Fix typo.
7781         * inline.c: Simply #include "postgresql.h"
7782         * postgresql.c:
7783         - Don't use SMART_INCLUDE
7784         - Use simply "const".
7785         - Use standard doc string conventions.
7786         - Use correct type for result of PQstatus.
7787
7788 2000-07-09  Martin Buchholz  <martin@xemacs.org>
7789
7790         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
7791
7792         C++ compilation changes.
7793         * config.h.in (EXTERN_C): Define.
7794         * config.h.in (not): This is also a C++ keyword.
7795         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
7796         * cm.c: Use EXTERN_C.
7797         * redisplay-tty.c: Use EXTERN_C.
7798         * sysdep.c: Use EXTERN_C.  Remove Gould support.
7799
7800 2000-07-09  Martin Buchholz  <martin@xemacs.org>
7801
7802         * general.c: Remove duplicate definition for Qfunction.
7803
7804 2000-07-08  Ben Wing  <ben@xemacs.org>
7805
7806         * device-msw.c (msprinter_init_device):
7807         * device-msw.c (sync_printer_with_devmode):
7808         * device-msw.c (handle_devmode_changes):
7809         * device-msw.c (print_dialog_worker):
7810         * device-msw.c (Fmsprinter_apply_settings):
7811         * device-msw.c (hash_devmode):
7812         * device-msw.c (Fmsprinter_settings_despecialize):
7813         use Qmswindows_tstr, not Qctext.
7814
7815         * vm-limit.c (check_memory_limits):
7816         avoid infinite loop printing warning messages.
7817
7818 2000-07-05  Craig Lanning  <lanning@scra.org>
7819
7820         * Makefile.in.in: Add support for including the Windows resources
7821         when building with the cygwin and mingw targets.
7822
7823         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
7824         not set or not correct.
7825         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
7826         (init_initial_directory): Don't try to use $PWD on the
7827         WIN32_NATIVE target.
7828
7829         * s\cygwin32.h:
7830         [[Add -mwindows to eliminate console window.]] not required --ben
7831         (HAVE_NATIVE_SOUND): removed; now handled by configure.
7832         (MAIL_USE_POP): removed; now handled by configure.
7833
7834         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
7835         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
7836         (HAVE_NATIVE_SOUND): removed; now handled by configure.
7837         (MAIL_USE_POP): removed; now handled by configure.
7838         (ENCAPSULATE_STAT): from Dan Holmsand, added.
7839         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
7840         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
7841         constant string.
7842         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
7843         up from <winsock.h> via systime.h.
7844         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
7845         (getpagesize): from Dan Holmsand, added.
7846         Added #endif which was left dangling by Ben's mega patch; added
7847         comment to help prevent this in the future.
7848
7849         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
7850
7851 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7852
7853         * console-msw.h (struct mswindows_device): Removed unnecessary
7854         cached device geometry values.
7855         Added update_tick and an accessor macro.
7856         (Lisp_Devmode): Added lrecord declaration.
7857         (struct msprinter_device): Contain devmode as a Lisp object.
7858         Added mswindows_get_selected_frame_hwnd();
7859
7860         * console.h (struct console_methods): Indentation nitpicking.
7861
7862         * device-msw.c (mswindows_init_device): Do not initialize geometry
7863         cache. Initialize update tick.
7864         (mswindows_device_system_metrics): Ask the device for its geometry.
7865         (global_free_2_maybe):
7866         (devmode_to_hglobal):
7867         (handle_printer_changes):
7868         (ensure_not_printing):
7869         (print_dialog_worker):
7870         (Fmsprinter_print_setup_dialog):
7871         (Fmsprinter_print_dialog):
7872         (plist_get_margin):
7873         (plist_set_margin):
7874         (Fmsprinter_page_setup_dialog): Added functions.
7875         (sync_printer_with_devmode):
7876         (handle_devmode_changes):
7877         (Fmsprinter_get_settings):
7878         (Fmsprinter_select_settings):
7879         (Fmsprinter_apply_settings):
7880         (allocate_devmode):
7881         (Fmsprinter_settings_copy):
7882         (Fmsprinter_settings_despecialize):
7883         (print_devmode):
7884         (finalize_devmode):
7885         (equal_devmode):
7886         (hash_devmode): Added functions
7887         (syms_of_device_mswindows): Init devmode lrecord class.
7888
7889         * device.h: Added an exfun for find-device.
7890
7891         * event-msw.c (mswindows_wnd_proc): Do not update the cached
7892         geometry; although, recreate the device compatible DC.
7893
7894         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
7895         (msprinter_init_frame_3):
7896         (msprinter_frame_property):
7897         (msprinter_internal_frame_property_p):
7898         (msprinter_frame_properties):
7899         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
7900         print job properties (will move to device settings).
7901
7902         * lisp.h: Added symbols.
7903
7904         * general.c (syms_of_general): Declared them.
7905
7906         * hash.c (string_hash): Added.
7907
7908         * lrecord.h (lrecord_type): Added devmode lrecord type.
7909
7910 2000-07-02  Mike Sperber <mike@xemacs.org>
7911
7912         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
7913         FreeBSD 4.0.
7914
7915 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
7916
7917         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
7918         integer.
7919
7920 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
7921
7922         * data.c (Fstring_to_number): Don't recognize floating point if
7923         base is not 10.
7924
7925 2000-06-22  Martin Buchholz  <martin@xemacs.org>
7926
7927         * glyphs-widget.c (tab_control_query_geometry):
7928         (widget_query_geometry):
7929         (button_query_geometry):
7930         * glyphs.c (text_query_geometry):
7931         Enforce type correctness.
7932
7933 2000-06-18  Martin Buchholz  <martin@xemacs.org>
7934
7935         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
7936         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
7937
7938 2000-06-17  Martin Buchholz  <martin@xemacs.org>
7939
7940         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
7941         conflicts with gcc's fixincluded version of FOO.h.
7942
7943         * glyphs.h (image_instance_geometry): Remove trailing `,'
7944
7945 2000-06-08  Mike Alexander  <mta@arbortext.com>
7946
7947         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
7948         (shove_thread): Don't write the same output twice
7949         (make_ntpipe_output_stream): Increase priority of shove thread
7950         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
7951         chance to run
7952         (ntpipe_shove_closer): Don't delete the pipe until we're done with
7953         it.
7954
7955 2000-06-12  Ben Wing  <ben@xemacs.org>
7956
7957         * s\mingw32.h (sigset):
7958         * s\windowsnt.h (sigset):
7959         rename msw_ to mswindows_ for consistency with general convention.
7960
7961 2000-06-12  Ben Wing  <ben@xemacs.org>
7962
7963         * console-msw.c:
7964         * console-msw.c (mswindows_get_console_hwnd):
7965         * console-msw.c (mswindows_ensure_console_allocated):
7966         * console-msw.c (mswindows_hide_console):
7967         * console-msw.c (mswindows_show_console):
7968         * console-msw.c (mswindows_ensure_console_buffered):
7969         * console-msw.c (mswindows_output_console_string):
7970         * console-msw.c (mswindows_windows9x_p):
7971         * console-msw.h:
7972         * device-msw.c (mswindows_get_workspace_coords):
7973         * device-msw.c (mswindows_device_system_metrics):
7974         * dialog-msw.c (mswindows_popup_dialog_box):
7975         * event-msw.c (mswindows_wnd_proc):
7976         * frame-msw.c (mswindows_size_frame_internal):
7977         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
7978         * menubar-msw.c (displayable_menu_item):
7979         * menubar-msw.c (mswindows_char_is_accelerator):
7980         * nt.c:
7981         * nt.c (mswindows_sigset):
7982         * nt.c (mswindows_sigrelse):
7983         * nt.c (mswindows_sigpause):
7984         * nt.c (mswindows_raise):
7985         * nt.c (timer_proc):
7986         * ntproc.c:
7987         * ntproc.c (find_child_console):
7988         * ntproc.c (sys_kill):
7989         * print.c:
7990         * print.c (std_handle_out_external):
7991         * process-nt.c (find_child_console):
7992         * process-nt.c (send_signal_the_95_way):
7993         * process-nt.c (ensure_console_window_exists):
7994         * process-nt.c (nt_create_process):
7995         * syssignal.h:
7996         rename msw_ to mswindows_ for consistency with general convention.
7997
7998         * emacs.c:
7999         * dumper.c:
8000         include nt.h, not syswindows.h.
8001
8002         * nt.c (mswindows_fstat):
8003         * nt.c (mswindows_stat):
8004         prefix mswindows_ instead of attempting to directly override the
8005         library functions.  fix declarations.
8006
8007         * nt.h:
8008         include syswindows.h.  move some sysdep.h stuff here.
8009
8010         * ntheap.h:
8011         include syswindows.h, not <windows.h>.
8012
8013         * ntplay.c:
8014         clean up headers.
8015
8016         * sysdep.c:
8017         clean up headers.
8018
8019         * sysdep.c (sys_fstat):
8020         * sysdep.c (sys_stat):
8021         call mswindows versions when appropriate.
8022
8023         * sysdep.h:
8024         move mswin decls to nt.h.
8025
8026         * syswindows.h:
8027         add long comment describing appropriate use of the various windows
8028         headers.
8029
8030 2000-06-11  Ben Wing  <ben@xemacs.org>
8031
8032         * device-x.c: Correct doc string for sixth arg of x-get-resource.
8033
8034 2000-06-10  Ben Wing  <ben@xemacs.org>
8035
8036         * Makefile.in.in (release):
8037         Correction to make sure xemacs.exe always dumped when correct.
8038
8039         * alloca.c:
8040         * balloon_help.c:
8041         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
8042
8043         * buffer.c (set_buffer_internal):
8044         [[[[2]]]]: Remove HAVE_FEP code.
8045
8046         * buffer.c (init_initial_directory):
8047         [3].
8048
8049         * bytecode.c:
8050         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
8051         individual files.
8052
8053         * callproc.c:
8054         * callproc.c (call_process_cleanup):
8055         * callproc.c (Fold_call_process_internal):
8056         * callproc.c (child_setup):
8057         * callproc.c (getenv_internal):
8058         * callproc.c (init_callproc):
8059         * callproc.c (vars_of_callproc):
8060         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
8061         __CYGWIN32__ -> CYGWIN.
8062         DOS_NT -> WIN32_NATIVE.
8063         Remove MSDOS support/references, converting to WIN32_NATIVE
8064           where correct.
8065         __MINGW32__ -> MINGW.
8066         Fix windows.h includes.
8067         Remove bogus HAVE_NTGUI.
8068
8069         * config.h.in:
8070         [2].
8071
8072         * console-msw.c:
8073         mswindows_message_outputted added for use in allowing startup
8074         errors on the console to be seen.
8075
8076         * console-msw.c (msw_ensure_console_allocated):
8077         * console-msw.c (msw_output_console_string):
8078         * console-msw.c (DHEADER):
8079         * console-msw.c (DOPAQUE_DATA):
8080         * console-msw.c (DEVENT):
8081         * console-msw.c (DCONS):
8082         * console-msw.c (DCONSCDR):
8083         * console-msw.c (DSTRING):
8084         * console-msw.c (DVECTOR):
8085         * console-msw.c (DSYMBOL):
8086         * console-msw.c (DSYMNAME):
8087         Fix warnings.
8088
8089         * console-stream.c (stream_init_console):
8090         Fix text/binary problems.
8091
8092         * device-msw.c:
8093         * device-msw.c (mswindows_finish_init_device):
8094         * device-msw.c (mswindows_delete_device):
8095         [1].
8096
8097         * device.c (handle_asynch_device_change):
8098         [3].
8099
8100         * dgif_lib.c:
8101         * dgif_lib.c (DGifOpenFileName):
8102         * dgif_lib.c (DGifOpenFileHandle):
8103         * dgif_lib.c (DGifGetLine):
8104         * dgif_lib.c (DGifGetPixel):
8105         Added config.h/lisp.h, fix up includes.
8106         [1].
8107
8108         * dired-msw.c:
8109         [4].
8110
8111         * dired.c:
8112         * dired.c (file_name_completion):
8113         * dired.c (Ffile_attributes):
8114         * dired.c (syms_of_dired):
8115         [1].
8116
8117         * dumper.c:
8118         * dumper.c (pdump_file_unmap):
8119         * dumper.c (pdump_load):
8120         [1].
8121
8122         * editfns.c:
8123         * editfns.c (Ftemp_directory):
8124         * editfns.c (user_login_name):
8125         * editfns.c (Fuser_real_login_name):
8126         * editfns.c (get_home_directory):
8127         [1].
8128
8129         * elhash.c (finish_marking_weak_hash_tables):
8130         [[[[5]]]]: Fix GCC warnings.
8131
8132         * emacs.c:
8133         * emacs.c (mswindows_handle_hardware_exceptions):
8134         * emacs.c (make_arg_list_1):
8135         * emacs.c (main_1):
8136         * emacs.c (Fkill_emacs):
8137         * emacs.c (Fdump_emacs):
8138         [1].
8139         Fix problems with nested crashes, add long comment.
8140
8141         * event-Xt.c (init_event_Xt_late):
8142         [1].
8143
8144         * event-msw.c:
8145         * event-msw.c (mswindows_dde_callback):
8146         * event-msw.c (mswindows_handle_sticky_modifiers):
8147         * event-msw.c (mswindows_wnd_proc):
8148         [1].
8149         [5].
8150
8151         * events.c (character_to_event):
8152         [1].
8153
8154         * fileio.c:
8155         * fileio.c (Ffile_name_directory):
8156         * fileio.c (Ffile_name_nondirectory):
8157         * fileio.c (directory_file_name):
8158         * fileio.c (Fexpand_file_name):
8159         * fileio.c (Fsubstitute_in_file_name):
8160         * fileio.c (Ffile_name_absolute_p):
8161         * fileio.c (check_executable):
8162         * fileio.c (Ffile_readable_p):
8163         * fileio.c (Ffile_accessible_directory_p):
8164         * fileio.c (Ffile_modes):
8165         * fileio.c (Funix_sync):
8166         * fileio.c (vars_of_fileio):
8167         [1]. [4].
8168
8169         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
8170
8171         Expand getdefdir defn.
8172         Fix bogus rename() comment.
8173
8174         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
8175         to use standard XEmacs include files, e.g. sysfile.h, rather
8176         than system-specific includes.
8177
8178         * fns.c:
8179         * fns.c (Fsubseq):
8180         [5]. [6].
8181
8182         * frame.c (vars_of_frame):
8183         [1].
8184
8185         * getloadavg.c:
8186         * getloadavg.c (getloadavg):
8187         [1]. [6].
8188         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
8189         (We don't use it elsewhere in the code; just add a comment.)
8190
8191         * gif_io.c:
8192         [6].
8193         Add config.h.
8194
8195         * glyphs-msw.c:
8196         * glyphs-msw.c (mswindows_resource_instantiate):
8197         [1].
8198
8199         * glyphs-x.c (x_native_layout_instantiate):
8200         [5].
8201
8202         * gui-msw.c (Fmswindows_shell_execute):
8203         [1].
8204
8205         * insdel.c:
8206         [4].
8207
8208         * lisp.h:
8209         [4]. [5].
8210
8211         * lread.c (locate_file_in_directory_mapper):
8212         [1].
8213
8214         * lstream.c:
8215         [4].
8216
8217         * mem-limits.h:
8218         * mem-limits.h (get_lim_data):
8219         [1].
8220
8221         * menubar-msw.c:
8222         [4].
8223
8224         * ndir.h:
8225         [1].
8226
8227         * nt.c:
8228         * nt.c (getwd):
8229         * nt.c (closedir):
8230         * nt.c (rva_to_section):
8231         * nt.c (mswindows_executable_type):
8232         [1]. [6].
8233         Fix closedir() defn.
8234
8235         * nt.h:
8236         [[[[8]]]]: *_OK defs moved to sysfile.h.
8237
8238         * ntproc.c:
8239         [6]. [7].
8240
8241         * objects-x.c:
8242         [4].
8243
8244         * print.c:
8245         * print.c (std_handle_out_external):
8246         [1]. [4].
8247
8248         * process-nt.c:
8249         * process-nt.c (nt_create_process):
8250         [6].
8251         try to fix process quoting somewhat.
8252
8253         * process-unix.c (unix_create_process):
8254         [1].
8255
8256         * process.c:
8257         * process.c (vars_of_process):
8258         Add Vnull_device.
8259
8260         * process.h:
8261         [1].
8262
8263         * realpath.c:
8264         * realpath.c (xrealpath):
8265         [1].
8266
8267         * redisplay-tty.c (init_tty_for_redisplay):
8268         [3].
8269
8270         * redisplay.c:
8271         [4]. [6].
8272
8273         * scrollbar-msw.c:
8274         [4].
8275
8276         * sheap.c:
8277         * sheap.c (more_static_core):
8278         * sheap.c (report_sheap_usage):
8279         [5]. [6].
8280
8281         * signal.c:
8282         * signal.c (alarm_signal):
8283         [1]. [6].
8284
8285         * sound.c:
8286         [6].
8287
8288         * strftime.c:
8289         * strftime.c (zone_name):
8290         [1]. [5].
8291
8292         * symsinit.h (init_sunpro):
8293         [1].
8294
8295         * syscommctrl.h:
8296         commctrl.h not in Cygwin b20.1.
8297
8298         * sysdep.c:
8299         * sysdep.c (endif):
8300         * sysdep.c (sys_subshell):
8301         * sysdep.c (init_baud_rate):
8302         * sysdep.c (emacs_get_tty):
8303         * sysdep.c (emacs_set_tty):
8304         * sysdep.c (tty_init_sys_modes_on_device):
8305         * sysdep.c (init_system_name):
8306         * sysdep.c (sys_open):
8307         * sysdep.c (interruptible_open):
8308         * sysdep.c (sys_fopen):
8309         * sysdep.c (sys_mkdir):
8310         * sysdep.c (sys_rename):
8311         * sysdep.c (get_process_times_1):
8312         [1]. [6].
8313
8314         * sysdep.h:
8315         [1].
8316
8317         * sysdir.h:
8318         * sysdir.h (DIRENTRY_NONEMPTY):
8319         [1]. [6].
8320
8321         * sysdll.c (dll_init):
8322         * sysdll.h:
8323         [1].
8324
8325         * sysfile.h:
8326         [1]. [6]. [8].
8327         added text/binary defs.
8328
8329         * sysfloat.h:
8330         [1].
8331
8332         * sysproc.h:
8333         * sysproc.h (EDESTADDRREQ):
8334         * sysproc.h (poll_fds_for_input):
8335         [1]. [6].
8336
8337         * syspwd.h:
8338         [6].
8339
8340         * syssignal.h:
8341         [1].
8342
8343         * systime.h:
8344         [1]. [6].
8345
8346         * systty.h:
8347         [1].
8348
8349         * syswindows.h:
8350         [1].
8351         Always define WIN32_LEAN_AND_MEAN.
8352
8353         * unexcw.c (unexec):
8354         [5].
8355
8356         * unexec.c:
8357         * unexec.c (copy_text_and_data):
8358         * unexec.c (adjust_lnnoptrs):
8359         [1].
8360
8361         * unexnt.c:
8362         * unexnt.c (_start):
8363         [1].
8364
8365 2000-06-07  Ben Wing  <ben@xemacs.org>
8366
8367         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
8368         was used only as a model.  We've long since extracted any useful
8369         logic or code out of this. (I just did an exhaustive search.)
8370
8371         * s\msdos.h: Removed.
8372
8373         * s\windows95.h: Removed.
8374
8375 2000-06-10  Ben Wing  <ben@xemacs.org>
8376
8377         * s\cygwin32.h:
8378         [1]. [5].
8379         Don't use extern with fun defs.
8380
8381         * s\mingw32.h:
8382         [1]. [7].
8383         Remove nt\inc include.
8384         Remove getdisk, getdefdir. (The former is unused, the latter
8385         expanded in fileio.h.)
8386
8387         * s\windowsnt.h:
8388         * s\windowsnt.h (WIN32_NATIVE):
8389         * s\windowsnt.h (HAVE_STRCASECMP):
8390         [1]. [7].
8391         Add long comment about preprocessor changes.
8392         Remove getdisk, getdefdir. (The former is unused, the latter
8393         expanded in fileio.h.)
8394
8395 2000-06-10  Ben Wing  <ben@xemacs.org>
8396
8397         * m\arm.h:
8398         * m\delta.h:
8399         * m\intel386.h:
8400         * m\sequent.h:
8401         * m\template.h:
8402         * m\windowsnt.h:
8403         [1].
8404         Remove bogus/unused NO_SOCK_SIGIO.
8405
8406 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
8407
8408         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
8409         not an Emchar.
8410
8411 2000-06-04  Mike Sperber <mike@xemacs.org>
8412
8413         * casetab.c (set_case_table): For `set-standard-case-table',
8414         actually deposit the new case tables where the rest of XEmacs can
8415         see them.
8416
8417 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
8418
8419         * data.c (Faset): Don't cast XCHAR() to unsigned char.
8420
8421 2000-06-05  Ben Wing  <ben@xemacs.org>
8422
8423         * callproc.c (child_setup): Don't do close_load_descs() under
8424         MS Windows.  Put in a comment explaining why.
8425
8426 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
8427
8428         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
8429         Toolkit shell" which breaks `kill-compilation' on Windows NT
8430         native, retaining STDERR handling improvements.
8431
8432 2000-06-01  Andreas Jaeger  <aj@suse.de>
8433
8434         * s/s390.h: Support for S390, based on a patch by Martin
8435         Schwidefsky <schwidefsky@de.ibm.com>.
8436
8437 2000-05-30  Andy Piper  <andy@xemacs.org>
8438
8439         * window.c (allocate_window):
8440         (make_dummy_parent):
8441         (Fset_window_configuration): use new hashtable type.
8442
8443         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
8444         (struct image_instantiator_methods):
8445         (struct Lisp_Image_Instance): make instance geometry signed.
8446
8447         * glyphs.c (instantiate_image_instantiator):
8448         (image_instance_query_geometry):
8449         (image_instance_layout):
8450         (image_instance_layout):
8451         (query_string_geometry):
8452         (text_query_geometry):
8453         (image_instantiate):
8454         (image_instantiate):
8455         (cache_subwindow_instance_in_frame_maybe):
8456         (subwindow_query_geometry): make instance geometry signed.
8457
8458         * glyphs-widget.c (widget_query_geometry):
8459         (widget_layout):
8460         (button_query_geometry):
8461         (tree_view_query_geometry):
8462         (tab_control_query_geometry):
8463         (layout_query_geometry):
8464         (layout_layout):
8465         (native_layout_layout): make instance geometry signed.
8466
8467 2000-05-29  Olivier Galibert  <galibert@pobox.com>
8468
8469         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
8470         constant.
8471
8472         * general.c (syms_of_general): Add Qfull_assoc symbol.
8473
8474         * data.c (finish_marking_weak_lists): Mark full-assoc lists
8475         correctly.
8476         (decode_weak_list_type): Decode full-assoc type.
8477         (encode_weak_list_type): Encode full-assoc type.
8478         (Fmake_weak_list): Update doc string.
8479
8480 2000-05-30  Andy Piper  <andy@xemacs.org>
8481
8482         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
8483
8484         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
8485         (decode_hash_table_weakness): ditto.
8486         (Fhash_table_weakness): ditto.
8487         (Fhash_table_type): ditto.
8488         (finish_marking_weak_hash_tables): ditto.
8489         (hash_table_weakness_validate): ditto.
8490         (syms_of_elhash): ditto.
8491
8492 2000-05-28  Martin Buchholz <martin@xemacs.org>
8493
8494         * XEmacs 21.2.34 is released.
8495
8496 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
8497
8498         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
8499         start cache.
8500         (updating_line_start_cache): Gone.
8501         (regenerate_window): Replace resetting of VERTICAL_CLIP by
8502         generic code to force a minimum of 1 line laid out in the
8503         CMOTION_DISP case.
8504
8505 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
8506
8507         * glyphs.c (instantiate_image_instantiator): Check for initialized
8508         height & width no longer special cases IMAGE_NOTHING.
8509         (nothing_instantiate): Set height and width of instance.
8510
8511 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
8512
8513         * unexelf.c (unexec): Search for ".data" section.
8514         Initialize new_data2_offset from old_data_index.
8515         Remove redundant check for ElfW.
8516
8517 2000-05-23  Andy Piper  <andy@xemacs.org>
8518
8519         * glyphs.c (get_image_instantiator_governing_domain): allow more
8520         specific domains as the governing domain rather than expecting an
8521         exact match. This fixes problems with layouts.
8522
8523 2000-05-22  Andy Piper  <andy@xemacs.org>
8524
8525         * redisplay-output.c (compare_runes): check for non-images
8526
8527         * glyphs.c (set_glyph_dirty_p): ditto.
8528         (update_glyph_cachel_data): ditto.
8529
8530         * glyphs-widget.c (layout_post_instantiate): ditto.
8531         (layout_post_instantiate): ditto.
8532
8533         * event-msw.c (mswindows_wnd_proc): warning removal.
8534
8535 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
8536
8537         * s\mingw32.h: Added #undef for CLASH_DETECTION.
8538
8539         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
8540
8541         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
8542
8543         * nt.c (rva_to_section): mingw32 needs rva_to_section.
8544         (mswindows_executable_type): mingw32 now has enough headers for
8545         this to work.
8546
8547 2000-05-20  Andy Piper  <andy@xemacs.org>
8548
8549         * console-msw.c (mswindows_output_last_error): ; -> ,
8550
8551 2000-05-12  Andy Piper  <andy@xemacs.org>
8552
8553         * console-msw.c (FROB): compare ints with ints.
8554
8555 2000-05-11  Andy Piper  <andy@xemacs.org>
8556
8557         * glyphs-x.c (x_finalize_image_instance): make minimal build
8558         happy.
8559
8560 2000-05-20  Ben Wing  <ben@xemacs.org>
8561
8562         * event-Xt.c:
8563         * event-Xt.c (vars_of_event_Xt):
8564         move modifier-keys-are-sticky to event-stream.c.
8565
8566         * event-msw.c:
8567         * event-msw.c (mswindows_enqueue_mouse_button_event):
8568         * event-msw.c (key_needs_default_processing_p):
8569         * event-msw.c (XEMSW_LCONTROL):
8570         * event-msw.c (mswindows_handle_sticky_modifiers):
8571         * event-msw.c (FROB):
8572         * event-msw.c (clear_sticky_modifiers):
8573         * event-msw.c (output_modifier_keyboard_state):
8574         * event-msw.c (output_alt_keyboard_state):
8575         * event-msw.c (mswindows_wnd_proc):
8576         * event-msw.c (mswindows_modifier_state):
8577         * event-msw.c (emacs_mswindows_handle_magic_event):
8578         implement sticky modifiers.
8579
8580         * event-stream.c:
8581         * event-stream.c (vars_of_event_stream):
8582         move modifier-keys-are-sticky here.
8583
8584         * lisp.h:
8585         add CHECK_FUNCTION.
8586
8587         * rangetab.c:
8588         implement map-range-table.
8589
8590
8591 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
8592
8593         * redisplay-tty.c (reset_tty_modes):
8594         (tty_redisplay_shutdown): Adjust argument type to
8595         tty_frame_output_end.
8596
8597 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
8598
8599         * eval.c (Fbacktrace): Don't output a line with only right
8600         parenthesis.
8601
8602 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
8603
8604         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
8605         (Fpq_reset_poll): Ditto.
8606
8607 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
8608
8609         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
8610
8611 2000-05-16  Ben Wing  <ben@xemacs.org>
8612
8613         * buffer.c:
8614         * buffer.c (dfc_convert_to/from_internal_format):
8615         * buffer.c (reinit_vars_of_buffer):
8616         Fix conversion functions to allow reentrancy.
8617
8618         * console-msw.c:
8619         * console-msw.c (mswindows_output_last_error):
8620         New fun, generally useful -- output a human-readable
8621         version of GetLastError() on the console.
8622
8623         * console-msw.h:
8624         * console-msw.h (struct mswindows_frame):
8625         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
8626
8627         * console-stream.c (stream_output_begin):
8628         * console-stream.c (stream_output_end):
8629         * console-stream.c (stream_output_vertical_divider):
8630         * console-stream.c (stream_clear_region):
8631         * console-stream.c (stream_flash):
8632         * console-stream.c (console_type_create_stream):
8633         Delete blank stream methods, not needed.
8634
8635         * console.h (struct console_methods):
8636         Split begin/end methods into window and frame.
8637
8638         * event-msw.c:
8639         * event-msw.c (mswindows_handle_paint):
8640         * event-msw.c (output_alt_keyboard_state):
8641         * event-msw.c (mswindows_wnd_proc):
8642         * event-msw.c (vars_of_event_mswindows):
8643         Comment about problems with ignored-expose.
8644         Define mswindows-debug-events; not really implemented.
8645
8646         * frame-msw.c (mswindows_init_frame_1):
8647         random cleanups.
8648
8649         * glyphs-msw.c:
8650         * glyphs-msw.c (begin_defer_window_pos):
8651         * glyphs-msw.c (mswindows_unmap_subwindow):
8652         * glyphs-msw.c (mswindows_map_subwindow):
8653         * glyphs-msw.c (mswindows_resize_subwindow):
8654         Use DeferWindowPos to reduce flashing when mapping/unmapping.
8655
8656         * glyphs.c (make_image_instance_1):
8657         Fix crash.
8658
8659         * gutter.c (Fredisplay_gutter_area):
8660         Use new begin/end methods.
8661
8662         * lisp.h (Dynarr_new2):
8663         New creation fun.
8664
8665         * redisplay-msw.c:
8666         * redisplay-msw.c (mswindows_frame_output_begin):
8667         * redisplay-msw.c (mswindows_frame_output_end):
8668         * redisplay-msw.c (console_type_create_redisplay_mswindows):
8669         New begin/end methods -- handle DeferWindowPos.
8670
8671         * redisplay-output.c (redisplay_move_cursor):
8672         * redisplay-output.c (redraw_cursor_in_window):
8673         * redisplay-output.c (redisplay_update_line):
8674         * redisplay-output.c (redisplay_output_window):
8675         New begin/end methods.
8676
8677         * redisplay-tty.c:
8678         * redisplay-tty.c (tty_frame_output_begin):
8679         * redisplay-tty.c (tty_frame_output_end):
8680         * redisplay-tty.c (console_type_create_redisplay_tty):
8681         New begin/end methods.
8682
8683         * redisplay-x.c:
8684         * redisplay-x.c (x_window_output_begin):
8685         * redisplay-x.c (x_window_output_end):
8686         * redisplay-x.c (console_type_create_redisplay_x):
8687         New begin/end methods.
8688
8689         * redisplay.c (redisplay_frame):
8690         * redisplay.c (Fredisplay_echo_area):
8691         New begin/end methods.
8692         use MAYBE_DEVMETH for clear_frame; it may not exist.
8693
8694         * window.h (WINDOW_XFRAME):
8695         WINDOW_XFOO macros -- get locale and decode struct pointer.
8696
8697
8698 2000-05-12  Ben Wing  <ben@xemacs.org>
8699
8700         * emacs.c:
8701         * emacs.c (ensure_no_quitting_from_now_on):
8702         * emacs.c (fatal_error_signal):
8703         * emacs.c (mswindows_handle_hardware_exceptions):
8704         * emacs.c (main):
8705         * emacs.c (Fkill_emacs):
8706         * emacs.c (shut_down_emacs):
8707         * emacs.c (assert_failed):
8708         various improvements in fatal error handling.
8709
8710         * eval.c:
8711         move preparing_for_armageddon to emacs.c.
8712
8713         * lisp.h:
8714         declare fatal_error_in_progress.
8715
8716         * print.c:
8717         * print.c (std_handle_out_external):
8718         * print.c (std_handle_out_va):
8719         * print.c (stderr_out):
8720         * print.c (stdout_out):
8721         use console under mswin when no standard output.
8722         don't do code conversion during fatal error.
8723
8724         * scrollbar.c (Fscrollbar_page_up):
8725         * scrollbar.c (Fscrollbar_page_down):
8726         fix missing else.  reindent.
8727
8728 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
8729
8730         Emergency fix.
8731
8732         * glyphs.h (GLYPH_CACHEL_DESCENT):
8733         (GLYPH_CACHEL_DESCENT):
8734         (GLYPH_CACHEL_DESCENT):
8735         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
8736         used in case these are inline functions.
8737         Use more absurd values to error check.
8738
8739         include window.h for error check functions.
8740
8741 2000-05-11  Ben Wing  <ben@xemacs.org>
8742
8743         * cmdloop.c (Freally_early_error_handler):
8744         Display message box under windows; otherwise, message will disappear
8745         before it can be viewed.
8746
8747         * console-msw.c:
8748         * console-msw.c (Fmswindows_message_box):
8749         * console-msw.c (FROB):
8750         * console-msw.c (syms_of_console_mswindows):
8751         Define new fun `mswindows-message-box'.
8752         #### I will merge this into `popup-dialog-box'; just give me
8753         a bit of time.
8754
8755         * general.c:
8756         * general.c (syms_of_general):
8757         Some new symbols used in `mswindows-message-box'.
8758
8759         * glyphs.c:
8760         * glyphs.c (Fset_image_instance_property):
8761         put warning in this fun.
8762
8763         * glyphs.h:
8764         * glyphs.h (GLYPH_CACHEL_WIDTH):
8765         * glyphs.h (GLYPH_CACHEL_ASCENT):
8766         * glyphs.h (GLYPH_CACHEL):
8767         * glyphs.h (GLYPH_CACHEL_GLYPH):
8768         define error-checking versions to try to catch a bug i've seen --
8769         redisplay gets in an infinite loop because the glyph width of the
8770         continuation glyph is 65535.
8771
8772         * lisp.h:
8773         Extern message-box stuff.
8774
8775         * window.c (allocate_window):
8776         * window.c (make_dummy_parent):
8777         * window.c (Fset_window_configuration):
8778         Use EQUAL not EQ for subwindow caches to make them work a bit
8779         better. (Something is still very broken.)
8780
8781
8782 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
8783
8784         * glyphs.c (image_instantiate): Suppress gcc warnings.
8785         (Fmake_image_instance): Fix doc string.
8786         * specifier.c (Fmake_specifier): Ditto.
8787
8788 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
8789
8790         * paths.h.in (PATH_LOCK): Removed.
8791         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
8792         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
8793
8794 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
8795
8796         * fns.c (Ffeaturep): Update e-mail address in doc-string.
8797         Document (featurep '(and xemacs 21.02)).
8798
8799 2000-05-09  Ben Wing  <ben@xemacs.org>
8800
8801         * buffer.c (complex_vars_of_buffer):
8802         update modeline-format doc.
8803
8804         * device.h:
8805         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
8806
8807         * emacs.c:
8808         timeline of all released versions of Emacs, for use in creating
8809         authorship comments and in synching up.
8810
8811         * glyphs-widget.c (image_instantiator_buttons):
8812         * glyphs-widget.c (image_instantiator_edit_fields):
8813         * glyphs-widget.c (image_instantiator_combo_box):
8814         * glyphs-widget.c (image_instantiator_scrollbar):
8815         * glyphs-widget.c (image_instantiator_progress_guage):
8816         * glyphs-widget.c (image_instantiator_tree_view):
8817         * glyphs-widget.c (image_instantiator_tab_control):
8818         * glyphs-widget.c (image_instantiator_labels):
8819         * glyphs-widget.c (image_instantiator_layout):
8820         * glyphs-widget.c (image_instantiator_native_layout):
8821         rename decode_domain method to governing_domain.
8822
8823         * glyphs.c:
8824         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
8825         * glyphs.c (add_entry_to_device_ii_format_list):
8826         make sure we don't put an entry more than once into the list.
8827         * glyphs.c (check_instance_cache_mapper):
8828         *************************************************************
8829         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
8830         HAVE BEEN GETTING.
8831         *************************************************************
8832         * glyphs.c (get_image_instantiator_governing_domain):
8833         clean up, expand on new concept of governing domain.
8834         * glyphs.c (instantiate_image_instantiator):
8835         * glyphs.c (allocate_image_instance):
8836         use governing_domain instead of cache_domain in naming.
8837         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
8838         * glyphs.c (make_image_instance_1):
8839         * glyphs.c (Fmake_image_instance):
8840         allow for any domain (not just device), and process the
8841         governing domain correctly.  very big doc fix.
8842         * glyphs.c (Fimage_instance_domain):
8843         new primitive, to retrieve the governing domain of an image instance.
8844         * glyphs.c (image_instantiate):
8845         use new governing_domain stuff.  this fixes a crash you could get
8846         by instantiating certain widget glyphs in frame locales. (should
8847         signal an error instead of crashing.)
8848         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
8849         * glyphs.c (Fglyphp): clean up doc.
8850         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
8851         * glyphs.c (syms_of_glyphs):
8852         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
8853         * glyphs.c (image_instantiator_format_create): add some comments about
8854         bogus code.
8855         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
8856         for current-display-table. (Apparently Hrjove implemented in 1998 a
8857         design I wrote up in 1996, but didn't update the doc string.)
8858
8859         * glyphs.h: clean up a doc string.
8860         * glyphs.h (governing_domain):
8861         * glyphs.h (struct image_instantiator_methods):
8862         changes for governing_domain stuff.
8863
8864         * gutter.c:
8865         * gutter.c (Fgutter_specifier_p):
8866         * gutter.c (Fgutter_size_specifier_p):
8867         * gutter.c (Fgutter_visible_specifier_p):
8868         * objects.c:
8869         * objects.c (Fcolor_specifier_p):
8870         * objects.c (Ffont_specifier_p):
8871         * objects.c (Fface_boolean_specifier_p):
8872         doc strings moved to make-*-specifier.
8873
8874         * redisplay.c (add_disp_table_entry_runes_1):
8875         * redisplay.c (generate_fstring_runes):
8876         * redisplay.c (screen):
8877         add random comments and doc strings.
8878
8879         * specifier.c:
8880         * specifier.c (Fmake_specifier):
8881         major overhaul of this doc string.
8882
8883         * specifier.c (Fvalid_specifier_domain_p):
8884         comment about the bogosity of image instances being domains.
8885         * specifier.c (decode_domain):
8886         now non-static, used in glyphs.c.
8887         * specifier.c (specifier_instance):
8888         comment about the bogosity of image instances being domains.
8889         * specifier.c (Fgeneric_specifier_p):
8890         move doc string to make-generic-specifier.
8891         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
8892         rebackslashify.
8893
8894         * specifier.h:
8895         * specifier.h (DOMAIN_FRAME):
8896         * specifier.h (DOMAIN_LIVE_P):
8897         * specifier.h (DOMAIN_XDEVICE):
8898         rebackslashify.
8899         add comments about problems with these macros.
8900         prototype for decode_domain.
8901
8902         * toolbar.c:
8903         * toolbar.c (Ftoolbar_specifier_p):
8904         move doc string to `make-toolbar-specifier'.
8905
8906         * window.c (window_unmap_subwindows_cache_mapper):
8907         *************************************************************
8908         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
8909         HAVE BEEN GETTING.
8910         *************************************************************
8911
8912 2000-05-09  Andy Piper  <andy@xemacs.org>
8913
8914         * glyphs.h: declare reset_frame_subwindow_instance_cache.
8915
8916         * window.c (Fset_window_configuration): reset the frame subwindow
8917         cache and re-initialize the window subwindow caches.
8918
8919         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
8920
8921 2000-05-09  Ben Wing  <ben@xemacs.org>
8922
8923         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
8924         DWORD.
8925
8926 2000-04-26  Mike Woolley  <mike@bulsara.com>
8927
8928         * ntheap.c: Changed recreate_heap to limit the amount reserved
8929         for the heap to that which is actually available. Also now
8930         displays a message box (with some dignostics) in the event that
8931         it still can't start.
8932
8933 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
8934
8935         * callproc.c (Fold_call_process_internal): GCPRO path
8936
8937 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
8938
8939         Patch by Bill Perry.
8940
8941         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
8942         back data instead of #ifdef.
8943         (Fscrollbar_page_down): ditto.
8944
8945 2000-05-07  Ben Wing  <ben@xemacs.org>
8946
8947         * buffer.h:
8948         Kludge for defining Qmswindows_tstr.
8949
8950         * nt.c:
8951         * nt.c (open_input_file):
8952         * nt.c (open_output_file):
8953         * nt.c (rva_to_section):
8954         * nt.c (mswindows_executable_type):
8955         Move all memory-mapped-file routines here (some were in unexnt.c,
8956         which is bad because they are used by process-nt.c, and unexnt
8957         won't be around when portable dumping).  Synched the above routines
8958         with FSF 20.6.
8959
8960         * nt.h:
8961         Removed ifdef'd out bogus code.
8962         Fixed some prototypes.
8963
8964         * nt.h (file_data):
8965         * nt.h (OFFSET_TO_RVA):
8966         * nt.h (RVA_TO_OFFSET):
8967         * nt.h (RVA_TO_PTR):
8968         Moved the memory-mapped-file structures, macros and prototypes
8969         here, to parallel nt.c.  ntheap.h should really be removed
8970         entirely, and it's a non-portable-dumper specific file.
8971
8972         * ntheap.h (round_to_next):
8973         Moved the memory-mapped-file structures, macros and prototypes
8974         to nt.h.
8975
8976         * ntproc.c (compare_env):
8977         Moved rva_to_section and mswindows_executable_type to nt.c.
8978         Moved compare_env to process-nt.c.
8979         ntproc.c will die, one day.
8980
8981         * ntproc.c (sys_spawnve):
8982         Account for win32_ -> mswindows_.
8983
8984         * process-nt.c:
8985         * process-nt.c (struct nt_process_data):
8986         * process-nt.c (ensure_console_window_exists):
8987         * process-nt.c (compare_env):
8988         * process-nt.c (nt_create_process):
8989         * process-nt.c (nt_kill_process_by_pid):
8990         * process-nt.c (syms_of_process_nt):
8991         * process-nt.c (vars_of_process_nt):
8992         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
8993         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
8994         changes).  Eliminate our old `nt-quote-process-args' mechanism.
8995         Synch up nt_create_process with FSF 20.6 sys_spawnve.
8996         Move compare_env here from ntproc.c.
8997
8998         * process.c (Fprocess_send_region):
8999         Takes an optional fourth argument, BUFFER, which should fix some
9000         problems with call-process.
9001
9002         * syscommctrl.h:
9003         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
9004
9005         * syswindows.h:
9006         Move ICC_BAR_CLASSES to syscommctrl.h.
9007         Add preliminary macros for MSWindows/Mule.  More to come.
9008
9009         * unexnt.c:
9010         * unexnt.c (unexec):
9011         open_output_file moved to nt.c.
9012
9013
9014 2000-05-05  Andy Piper  <andy@xemacs.org>
9015
9016         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
9017         instance from the frame cache also since GC may catch up too late
9018         to make frame deletion sane.
9019
9020 2000-05-04  Andy Piper  <andy@xemacs.org>
9021
9022         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
9023         (x_finalize_image_instance): ungcpro on deletion.
9024
9025         * glyphs.c (image_instantiator_format_create): give pointers a
9026         query geometry method so that the geometry is at least set.
9027
9028         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
9029         initialize layouts if using widgets.
9030
9031 2000-05-03  Andy Piper  <andy@xemacs.org>
9032
9033         * nt.c: remove bogus reference to sysmmsystem.h
9034
9035         * gui-x.c (popup_selection_callback): fix no selection abort.
9036
9037 2000-05-02  Andy Piper  <andy@xemacs.org>
9038
9039         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
9040         (mswindows_widget_instantiate): ditto.
9041
9042         * glyphs-widget.c (initialize_widget_image_instance): initialize
9043         children correctly.
9044         (widget_instantiate): cope with children and items in the same
9045         instance.
9046
9047         * glyphs.c (mark_image_instance): cope with children as a first
9048         class member.
9049         (image_instance_equal): ditto.
9050         (image_instance_hash): ditto.
9051         (image_instance_changed): ditto.
9052
9053 2000-04-30  Andy Piper  <andy@xemacs.org>
9054
9055         * glyphs.c (subwindow_query_geometry): new function. Return some
9056         defaults.
9057         (subwindow_instantiate): don't assign dimensions if none have been
9058         given.
9059         (image_instantiator_format_create): add subwindow_query_geometry.
9060         (print_image_instance): cope with layouts as widgets.
9061
9062 2000-04-29  Andy Piper  <andy@xemacs.org>
9063
9064         * frame.c (delete_frame_internal): call
9065         free_frame_subwindow_instance_cache so that all subwindows are
9066         finalized before their parent.
9067         (mark_frame): remove subwindow_cachels.
9068         (Fmake_frame): remove subwindow_cachel manipulation.
9069         (allocate_frame_core): subwindow_instance_cache is a weak list.
9070         (delete_frame_internal): set subwindow_instance_cache to nil.
9071
9072         * glyphs-msw.c (mswindows_finalize_image_instance): make double
9073         finalization safe.
9074         (mswindows_finalize_image_instance): use the device
9075         not the domain as the domain may have died already.
9076
9077         * glyphs-x.c (x_finalize_image_instance): ditto.
9078         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
9079         HEIGHT.
9080
9081         * redisplay-output.c (redisplay_unmap_subwindows): update for
9082         subwindow instance cache as a weak list.
9083         (redisplay_unmap_subwindows_maybe): ditto.
9084         (redisplay_unmap_subwindows_except_us): ditto.
9085
9086         * glyphs.c (unmap_subwindow): error checking will check the domain
9087         so don't deal with it here. Don't use cachels anymore.
9088         (map_subwindow): ditto.
9089         (update_subwindow_cachel_data): remove old accessor names.
9090         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
9091         (Fresize_subwindow): don't update cachel.
9092         (mark_subwindow_cachels):
9093         (update_subwindow_cachel_data):
9094         (add_subwindow_cachel):
9095         (get_subwindow_cachel_index):
9096         (update_subwindow_cachel):
9097         (reset_subwindow_cachels):
9098         (mark_subwindow_cachels_as_not_updated): deleted.
9099         (cache_subwindow_instance_in_frame_maybe): new function. Add a
9100         subwindow instance to the frame cache.
9101         (find_matching_subwindow): update for subwindow instance cache as
9102         a weak list.
9103         (update_widget_instances): ditto.
9104         (image_instance_type_to_mask):inlined.
9105         (free_frame_subwindow_instance_cache): new function. finalize all
9106         subwindows that are instantiated.
9107
9108         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
9109         of cachel information.
9110         (IMAGE_INSTANCE_DISPLAY_X):
9111         (IMAGE_INSTANCE_DISPLAY_Y):
9112         (IMAGE_INSTANCE_DISPLAY_WIDTH):
9113         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
9114         (XIMAGE_INSTANCE_DISPLAY_X):
9115         (XIMAGE_INSTANCE_DISPLAY_Y):
9116         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
9117         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
9118         remove subwindow_cachel structure and function references.
9119         (image_instance_type_to_mask): inline from glyphs.c
9120
9121         * redisplay.c (redisplay_frame): remove subwindow_cachel
9122         references.
9123
9124         * frame.h (struct frame): remove subwindow_cachels.
9125         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
9126
9127         * frameslots.h: add subwindow_instance_cache.
9128
9129         * window.c (replace_window): check subwindow cache of replacement.
9130         (window_unmap_subwindows_cache_mapper):
9131         (window_unmap_subwindows): new functions. Unmap all subwindows
9132         cached on this window.
9133         (mark_window_as_deleted): unmap all subwindows.
9134
9135 2000-04-27  Andy Piper  <andy@xemacs.org>
9136
9137         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
9138
9139         * glyphs-widget.c (widget_layout): return something.
9140         (layout_layout): return something. Fail if not initialized.
9141         (layout_query_geometry): ditto.
9142         (image_instantiator_native_layout): new function. Initialized the
9143         native layout type.
9144         (widget_instantiate): don't do layout stuff here.
9145
9146         * glyphs.c (instantiate_image_instantiator): reorded calling or
9147         instantiate and post_instantiate with layout in between.
9148         (image_instance_layout): be more selective about deciding whether
9149         the layout has been done or not.
9150
9151         * glyphs.h (struct image_instantiator_methods): return a value
9152         from layout_method.
9153
9154 2000-04-26  Andy Piper  <andy@xemacs.org>
9155
9156         * glyphs.c (allocate_image_instance): make initial width and
9157         height unspecified. Set initialized to 0.
9158
9159         * syscommctrl.h new file. Encapsulates commctrl.h.
9160
9161         * syswindows.h new file. Encapsulates windows.h.
9162
9163         * ntplay.c: use new syswindows.h and syscommctrl.h header.
9164         * nt.c: ditto.
9165         * console-msw.h: ditto.
9166
9167         * redisplay-tty.c (tty_output_display_block): remove layout references.
9168
9169         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
9170         window handle rather than just the frame.
9171
9172         * glyphs.c (mark_image_instance): remove layout references.
9173         (print_image_instance): ditto.
9174         (image_instance_equal): ditto.
9175         (image_instance_hash): ditto.
9176         (decode_image_instance_type): ditto.
9177         (encode_image_instance_type): ditto.
9178         (image_instantiate): ditto.
9179         (allocate_glyph): ditto.
9180         (Fimage_instance_height): ditto.
9181         (Fimage_instance_width): ditto.
9182         (update_subwindow): ditto.
9183
9184         * redisplay-x.c (x_output_display_block): recode for layouts as
9185         widgets.
9186
9187         * redisplay-output.c (redisplay_output_layout): recode for layouts
9188         as widgets.
9189         (compare_runes): remove layout references.
9190
9191         * redisplay-msw.c (mswindows_output_display_block): recode for
9192         layouts as widgets.
9193
9194         * glyphs-widget.c (image_instantiator_layout): remove
9195         layout_possible_dest_types.
9196         (layout_possible_dest_types): deleted.
9197
9198         * glyphs.h (image_instance_type): remove layout references.
9199         (struct Lisp_Image_Instance): ditto. Add initialized flag.
9200         (IMAGE_INSTANCE_INITIALIZED): new accessor.
9201         (XIMAGE_INSTANCE_INITIALIZED): ditto.
9202
9203 2000-04-25  Andy Piper  <andy@xemacs.org>
9204
9205         * glyphs-widget.c (image_instantiator_buttons):
9206         (image_instantiator_edit_fields):
9207         (image_instantiator_combo_box):
9208         (image_instantiator_scrollbar):
9209         (image_instantiator_progress_guage):
9210         (image_instantiator_tree_view):
9211         (image_instantiator_tab_control):
9212         (image_instantiator_labels):
9213         (image_instantiator_layout): call default post_instantiate method.
9214         (widget_post_instantiate): new function. Simply lays out the
9215         widgets.
9216
9217         * glyphs.h (struct image_instantiator_methods): add
9218         post_instantiate method.
9219
9220         * glyphs.c (instantiate_image_instantiator): add post_instantiate
9221         method calls.
9222
9223 2000-04-23  Andy Piper  <andy@xemacs.org>
9224
9225         * glyphs.h (struct image_instantiator_methods): add
9226         decode_domain_method.
9227         (struct Lisp_Image_Instance): remove subwindow frame - it can be
9228         derived from the domain.
9229         (IMAGE_INSTANCE_FRAME): new accessor.
9230         (XIMAGE_INSTANCE_FRAME): ditto.
9231
9232         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
9233         instead of _SUBWINDOW_FRAME.
9234         (finalize_image_instance): ditto.
9235         (Fimage_instance_foreground): ditto.
9236         (Fimage_instance_background): ditto.
9237         (image_instantiate): ditto.
9238         (update_subwindow_cachel): ditto.
9239         (update_subwindow): ditto.
9240         (unmap_subwindow): ditto.
9241         (map_subwindow): ditto
9242         (subwindow_instantiate): ditto.
9243         * glyphs-msw.c (mswindows_update_widget): ditto.
9244         (mswindows_progress_gauge_instantiate): ditto.
9245         (mswindows_tab_control_update): ditto.
9246         * glyphs-x.c (x_update_widget): ditto.
9247         (x_widget_instantiate): ditto.
9248         (x_tab_control_instantiate): ditto.
9249         (x_tab_control_update): ditto.
9250         * event-msw.c (mswindows_wnd_proc): ditto
9251
9252         * glyphs-widget.c (image_instantiator_layout): use
9253         subwindow_decode_domain.
9254         (image_instantiator_buttons): ditto.
9255         (image_instantiator_edit_fields): ditto.
9256         (image_instantiator_combo_box): ditto.
9257         (image_instantiator_scrollbar): ditto.
9258         (image_instantiator_progress_guage): ditto.
9259         (image_instantiator_tree_view): ditto.
9260         (image_instantiator_tab_control): ditto.
9261         (image_instantiator_labels): ditto.
9262         (image_instantiator_layout): ditto.
9263
9264         * glyphs.c: add instance error checking to many functions.
9265         (instantiate_image_instantiator): decode device from cache_domain.
9266         (image_instantiate): partially rewrite by using
9267         decode_image_instantiator_domain to determine what domain the
9268         instance needs to be cached in.
9269         (decode_image_instantiator_domain): new function. Determine what
9270         domain the image needs to be cached in.
9271         (check_window_subwindow_cache): new error checking function.
9272         (check_instance_cache_mapper): ditto.
9273         (check_image_instance_structure): ditto.
9274         (subwindow_decode_domain): new function. Encodes a window as a
9275         subwindow's cache domain.
9276         (image_instantiator_format_create): use it for text and
9277         subwindows.
9278
9279 2000-04-21  Andy Piper  <andy@xemacs.org>
9280
9281         * glyphs.c (image_instance_device): new function.
9282         (image_instance_frame): new function.
9283         (image_instance_window): new function.
9284         (image_instance_live_p): new function.
9285
9286         * window.c (mark_window_as_deleted): reset the subwindow_instance_
9287         cache to nil.
9288
9289         * glyphs.h (struct Lisp_Image_Instance): device->domain.
9290         (IMAGE_INSTANCE_DOMAIN): new accessor.
9291         (XIMAGE_INSTANCE_DOMAIN): ditto.
9292
9293         * glyphs-x.c (x_finalize_image_instance): device->domain.
9294
9295         * glyphs-msw.c (init_image_instance_geometry): device->domain.
9296         (mswindows_finalize_image_instance): ditto.
9297
9298         * glyphs-eimage.c (jpeg_instantiate): device->domain.
9299         (gif_instantiate): ditto.
9300         (png_instantiate): ditto.
9301         (tiff_instantiate): ditto.
9302
9303         * glyphs.c (instantiate_image_instantiator): use domain rather
9304         than device.
9305         (mark_image_instance): device -> domain.
9306         (print_image_instance): ditto.
9307         (finalize_image_instance): ditto.
9308         (image_instance_equal): ditto.
9309         (allocate_image_instance): ditto.
9310         (Fcolorize_image_instance): ditto.
9311         (query_string_geometry): ditto.
9312         (image_instantiate): ditto
9313         (query_string_font): ditto.
9314         (image_instantiate): ditto.
9315         (update_subwindow): ditto.
9316         (unmap_subwindow): ditto.
9317         (map_subwindow): ditto.
9318         (subwindow_instantiate): ditto.
9319
9320         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
9321         (DOMAIN_FRAME): ditto.
9322         (DOMAIN_WINDOW): ditto.
9323         (DOMAIN_LIVE_P): ditto.
9324         (XDOMAIN_DEVICE): ditto.
9325         (XDOMAIN_FRAME): ditto.
9326         (XDOMAIN_WINDOW): ditto.
9327
9328         * specifier.c (Fvalid_specifier_domain_p): add image instances as
9329         a valid specifier domain.
9330
9331 2000-04-19  Andy Piper  <andy@xemacs.org>
9332
9333         * glyphs-widget.c (syms_of_glyphs_widget): remove
9334         widget-callback-current-channel.
9335         (vars_of_glyphs_widget): ditto.
9336         * glyphs.h: ditto
9337
9338         * gui.c (get_gui_callback): revert to previous behaviour.
9339
9340 2000-04-18  Andy Piper  <andy@xemacs.org>
9341
9342         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
9343         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
9344         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
9345
9346         * glyphs.c (image_instance_equal): add margin_width.
9347         (image_instance_hash): ditto.
9348
9349         * glyphs-widget.c (widget_instantiate): deal with margin-width.
9350         (layout_query_geometry): ditto.
9351         (layout_layout): ditto.
9352         (syms_of_glyphs_widget): add margin-width.
9353         (image_instantiator_layout): allow margin-width.
9354
9355         * glyphs.c (update_widget_instances): make a normal function.
9356         (syms_of_glyphs): remove Qupdate_widget_instances.
9357         * glyphs.h: ditto.
9358
9359         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
9360         so that we don't corrupt ideas about the last event or
9361         command. Remove widget-callback-current-channel fiddling.
9362         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
9363
9364 2000-05-01  Martin Buchholz <martin@xemacs.org>
9365
9366         * XEmacs 21.2.33 is released.
9367
9368 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
9369
9370         * make-src-depend: Allow dots in header file name.
9371
9372 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
9373
9374         * mule-charset.h (struct charset_lookup): Add
9375         next_allocated_1_byte_leading_byte and
9376         next_allocated_2_byte_leading_byte.
9377         * mule-charset.c: Move above two variables so that those values
9378         will be dumped.
9379
9380 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
9381
9382         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
9383         when string length is zero.
9384         (find_charsets_in_emchar_string): Ditto.
9385
9386 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
9387
9388         * lisp.h: extern Qdialog and Qmenubar.
9389
9390         * gui-x.c: added events.h.
9391                 also fixed typo which made the file uncompilable.
9392
9393         * general.c: Added Qmenubar and Qdialog
9394
9395 2000-04-28  Ben Wing  <ben@xemacs.org>
9396
9397         * frame-msw.c (mswindows_init_frame_1):
9398         * frame-msw.c (mswindows_mark_frame):
9399         * event-msw.c (mswindows_enqueue_dispatch_event):
9400         * console-msw.h:
9401         * console-msw.h (struct mswindows_frame):
9402         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
9403         there are now three hash tables for callbacks.
9404         mswindows_enqueue_dispatch_event is no longer static.
9405
9406         * dialog-x.c (maybe_run_dbox_text_callback):
9407         * dialog-x.c (dbox_descriptor_to_widget_value):
9408         switch to new cons3 form for callbacks.
9409
9410         * glyphs-msw.c (mswindows_register_gui_item):
9411         * glyphs-msw.c (mswindows_widget_instantiate):
9412         * glyphs-msw.c (add_tree_item):
9413         * glyphs-msw.c (add_tab_item):
9414         new image instance parameter, so it can be passed to callback-ex.
9415         respect :callback-ex as well as :callback.
9416
9417         * glyphs-widget.c (VALID_GUI_KEYWORDS):
9418         add :callback-ex.
9419
9420         * glyphs.c (print_image_instance):
9421         prettify, e.g. now prints widget type.
9422
9423         * gui-x.h:
9424         certain funs have new image instance parameter.
9425
9426         * gui.c:
9427         * gui.c (get_gui_callback):
9428         * gui.c (gui_item_add_keyval_pair):
9429         * gui.c (gui_item_init):
9430         * gui.c (gui_add_item_keywords_to_plist):
9431         * gui.c (mark_gui_item):
9432         * gui.c (gui_item_hash):
9433         * gui.c (gui_item_equal):
9434         * gui.c (copy_gui_item):
9435         * gui.c (syms_of_gui):
9436         recognize callback-ex in a number of places.
9437         also, fix the annoying "can't get out of yes-no dialog" bug.
9438
9439         * gui.h:
9440         * gui.h (struct Lisp_Gui_Item):
9441         recognize callback-ex in a number of places.
9442
9443         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9444         new parameter in button_item_to_widget_value.
9445
9446         * glyphs-x.c (x_update_widget):
9447         * glyphs-x.c (x_button_instantiate):
9448         * glyphs-x.c (x_button_update):
9449         * glyphs-x.c (x_progress_gauge_instantiate):
9450         * glyphs-x.c (x_edit_field_instantiate):
9451         * glyphs-x.c (x_combo_box_instantiate):
9452         * glyphs-x.c (x_tab_control_instantiate):
9453         * glyphs-x.c (x_label_instantiate):
9454         new image instance parameter in various places.
9455
9456         * event-Xt.c:
9457         * event-Xt.c (enqueue_Xt_dispatch_event):
9458         this fun gets exported.
9459
9460         * gui-msw.c:
9461         * gui-msw.c (mswindows_handle_gui_wm_command):
9462         handle both :callback and :callback-ex, and generate our own
9463         event because it's one of the callback-ex arguments.
9464
9465         * gui-x.c:
9466         * gui-x.c (popup_selection_callback):
9467         handle both :callback and :callback-ex, and generate our own
9468         event because it's one of the callback-ex arguments.
9469         * gui-x.c (button_item_to_widget_value):
9470         * gui-x.c (gui_items_to_widget_values_1):
9471         * gui-x.c (gui_item_children_to_widget_values):
9472         * gui-x.c (gui_items_to_widget_values):
9473         new image instance parameter in various places.
9474
9475         * fns.c (Freplace_list):
9476         fix small typo in doc string.
9477
9478         * lisp.h:
9479         declare enqueue_Xt_dispatch_event.
9480
9481 2000-04-28  Ben Wing  <ben@xemacs.org>
9482
9483         * buffer.c:
9484         * buffer.c (Frecord_buffer):
9485         * buffer.c (syms_of_buffer):
9486         delete record-buffer-hook.
9487
9488         * fns.c:
9489         * fns.c (Freplace_list):
9490         * fns.c (syms_of_fns):
9491         new primitive replace-list.
9492
9493         * frameslots.h:
9494         slot for old buffer-alist.
9495
9496         * lisp.h:
9497         exfun replace-list.
9498
9499         * redisplay.c:
9500         * redisplay.c (redisplay_frame):
9501         * redisplay.c (syms_of_redisplay):
9502         * redisplay.c (vars_of_redisplay):
9503         new hook buffer-list-changed-hook.
9504         call it.
9505
9506 2000-04-27  Ben Wing  <ben@xemacs.org>
9507
9508         * extents.h: extern in_modeline_generation.
9509
9510         * redisplay.c (generate_formatted_string_db): set
9511         in_modeline_generation.
9512
9513         * extents.c (extent_changed_for_redisplay): don't mark redisplay
9514         flags if in modeline generation.  otherwise frame-modified-tick
9515         is ticked far too often.
9516         Declare in_modeline_generation.
9517
9518 2000-04-26  Ben Wing  <ben@xemacs.org>
9519
9520         * emacs.c (vars_of_emacs): document quick-build "error-checking"
9521         option.
9522         (vars_of_emacs): add quick-build as an error-checking option.
9523         A bit kludgy, but there doesn't seem much point in creating
9524         a real var for this.
9525
9526         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
9527
9528 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9529
9530         * redisplay.h (struct display_line): Add a new variable,
9531         line_continuation.
9532
9533         * redisplay.c (create_text_block): Set dl->line_continuation if
9534         the line continues.
9535         (create_string_text_block): Ditto.
9536         (regenerate_window_incrementally): Use line_continuation instead
9537         of searching continuation glyph.
9538         (add_margin_runes): Call add_glyph_rune.
9539         (add_glyph_rune): Handle margin glyph.
9540
9541 2000-04-20  Martin Buchholz  <martin@xemacs.org>
9542
9543         * filelock.c (fill_in_lock_file_name):
9544         ANSIfy.
9545         Check for IS_ANY_SEP instead of '/'.
9546         (lock_file_1):
9547         Avoid generating gratuitous garbage.  Call user_login_name() directly.
9548         Never check errno without first seeing that system call failed.
9549         (unlock_file): Add GCPRO.
9550         (Flock_buffer): Fix docstring.
9551         (Ffile_locked_p): Fix docstring.  Add GCPRO.
9552
9553 2000-04-19  Martin Buchholz  <martin@xemacs.org>
9554
9555         * sysdep.c (get_pty_max_bytes):
9556         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
9557         strings longer than 252 bytes.
9558
9559         * md5.c: Unconditionally include ANSI header <limits.h>
9560
9561         * glyphs-x.c (convert_EImage_to_XImage):
9562         * lisp-union.h (union Lisp_Object):
9563         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
9564
9565 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
9566
9567         * filelock.c (current_lock_owner): Remove unused variable o, p.
9568
9569 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
9570
9571         * callint.c: Remove multiply defined symbol Qlet
9572         (syms_of_callint): ditto.
9573
9574 2000-04-14  Andy Piper  <andy@xemacs.org>
9575
9576         * general.c (syms_of_general): add last-command, this-command, let
9577         and funcall.
9578
9579         * lisp.h: declare various symbols.
9580
9581         * glyphs.h: declare Qwidget_callback_current_channel;
9582
9583         * glyphs-widget.c (syms_of_glyphs_widget): add
9584         Qgui_callback_current_channel.
9585         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
9586
9587         * gui-msw.c (mswindows_handle_gui_wm_command): bind
9588         widget-callback-current-channel when invoking the interactive
9589         arg. Also bind last-command and next-command when invoking the
9590         widget updates.
9591         * gui-x.c (popup_selection_callback): ditto.
9592
9593         * gui.c (get_gui_callback): massage args so that we are always
9594         calling eval. This allows us to add our own variable bindings
9595         outside.
9596
9597         * glyphs-x.c (x_button_instantiate): use
9598         gui_items_to_widget_values since this is GC safe.
9599         (x_progress_gauge_instantiate): ditto.
9600         (x_edit_field_instantiate): ditto.
9601         (x_label_instantiate): ditto.
9602
9603         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
9604         (emacs_Xt_event_widget_focus_out): new function
9605         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
9606         focus.
9607         (emacs_Xt_event_add_widget_actions): new function. add focus
9608         functions as actions.
9609         (init_event_Xt_late): use it.
9610
9611 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
9612
9613         * event-stream.c (Fdispatch_event): Doc fix.
9614
9615 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
9616
9617         * postgresql.c: Remove all references to PQsetenv*.
9618
9619         * postgresql.h: Remove references to PGsetenvHandler object.
9620         * lrecord.h (lrecord_type): Ditto.
9621
9622 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
9623
9624         * glyphs-msw.h (struct mswindows_image_instance_data): Added
9625         real_heigh and real_width members, and accessor macros for these.
9626
9627         * glyphs-msw.c (init_image_instance_geometry): New function.
9628         (init_image_instance_from_dibitmap): Use it.
9629         (mswindows_resource_instantiate): Use it.
9630         (init_image_instance_from_xbm_inline): Use it.
9631         (mswindows_initialize_image_instance_mask): Use real bitmap
9632         geometry.
9633         (mswindows_create_resized_bitmap): Ditto.
9634         (mswindows_create_resized_mask): Ditto.
9635
9636         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
9637         and bitmap to their surface size.
9638
9639 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
9640
9641         * process-unix.c (unix_send_process): Guard against process MIA
9642         after Faccept_process_output.
9643
9644 2000-04-11  Ben Wing  <ben@xemacs.org>
9645
9646         * eval.c (unbind_to_hairy): fix brokenness introduced by
9647         nanosecond speed improvements.
9648
9649 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
9650
9651         * sunplay.c (init_device): To play sounds correctly, the device
9652         apparently needs to be initialized at least once by XEmacs.  Make
9653         it so.
9654
9655 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9656
9657         * redisplay.c (add_margin_runes): Add text image glyph
9658           handling.
9659
9660 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
9661
9662         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
9663         gcc is newer than 2.5.
9664
9665 2000-04-06  Colin Rafferty  <colin@xemacs.org>
9666
9667         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
9668
9669         * fns.c (size_bit_vector):
9670         * alloc.c (size_vector):
9671         (make_vector_internal):
9672         (make_bit_vector_internal):
9673         (sweep_bit_vectors_1):
9674         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
9675
9676 2000-04-06  Andy Piper  <andy@xemacs.org>
9677
9678         * gmalloc.c (malloc): undo previous change.
9679         (malloc): ditto.
9680         (free): ditto.
9681         (realloc): ditto.
9682
9683 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
9684
9685         * line-number.c (buffer_line_number): Revert to former version.
9686
9687 2000-04-06  Andy Piper  <andy@xemacs.org>
9688
9689         * gmalloc.c (malloc): add error checking.
9690         (malloc): ditto.
9691         (free): ditto.
9692         (realloc): ditto.
9693
9694         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
9695         button_item_to_widget_value arg.
9696
9697         * glyphs-x.c (x_button_instantiate): add extra
9698         button_item_to_widget_value arg.
9699         (x_progress_gauge_instantiate): ditto.
9700         (x_edit_field_instantiate): ditto.
9701         (x_label_instantiate): ditto.
9702
9703         * gui-x.c (gui_items_to_widget_values_1): add extra
9704         button_item_to_widget_value arg.
9705         (button_item_to_widget_value): add extra menu_item_p arg.
9706
9707         * gui-x.h: change signature of button_item_to_widget_value.
9708
9709         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
9710         button_item_to_widget_value arg.
9711
9712 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
9713
9714         * buffer.h (struct buffer): auto_save_modified should be long.
9715
9716 2000-04-05  Andy Piper  <andy@xemacs.org>
9717
9718         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
9719         type.
9720         (button_query_geometry): give a little more room so that athena
9721         buttons fit.
9722
9723 2000-04-05  Andy Piper  <andy@xemacs.org>
9724
9725         * faces.c (complex_vars_of_faces): The widget face should inherit
9726         the font of the gui-element face.
9727
9728 2000-04-04  Andy Piper  <andy@xemacs.org>
9729
9730         * glyphs-x.c (x_button_update): new function. unconditionally
9731         update a button's state when the instance is dirty.
9732         (image_instantiator_format_create_glyphs_x): add x_button_update.
9733         (x_widget_instantiate): remove old resize cruft.
9734
9735 2000-04-02  Andy Piper  <andy@xemacs.org>
9736
9737         * frame.c (change_frame_size_1): The introduction of gutters means
9738         that we need to allow 0 as a potential frame dimension.
9739
9740 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9741
9742         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
9743         image glyph if allow_cursor.
9744         (add_hscroll_rune): Don't allow cursor to border glyph.
9745         (create_text_block): Ditto.
9746
9747         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
9748         text not in buffer.
9749         (redisplay_output_layout): Call ensure_face_cachel_complete for
9750         text image glyph.
9751
9752
9753 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9754
9755         * redisplay.c (add_glyph_rune): Adding text image as text runes.
9756
9757         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
9758         not in buffer
9759
9760         * redisplay-tty.c (tty_output_display_block): Delete the routine
9761         for text image glyph
9762         * redisplay-x.c (x_output_display_block): ditto
9763         * redisplay-msw.c (mswindows_output_display_block): ditto
9764
9765 2000-02-02  Mike Alexander  <mta@arbortext.com>
9766
9767         Note: Some of these were committed by accident as part of other
9768         patches.
9769
9770         * regex.c (regex_compile): Avoid compiler warnings.
9771
9772         * ntproc.c (sys_spawnve): Avoid compiler warnings.
9773
9774         * nt.h: Declare term_ntproc correctly.
9775
9776         * nt.c: Remove incorrect declaration of get_home_directory which
9777         is declared correctly in lisp.h.
9778
9779         * keymap.c (get_keyelt): Avoid compiler warnings.
9780         (raw_lookup_key_mapper): Avoid compiler warnings.
9781
9782         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
9783
9784         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
9785
9786         * filemode.c (mode_string): Avoid compiler warnings.
9787
9788         * file-coding.c (Fcoding_system_aliasee): Add return statement to
9789         avoid warning.
9790
9791         * events-mod.h: Undef some things that winuser.h defines differently.
9792
9793         * data.c (Faset): Avoid compiler warnings.
9794
9795         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
9796
9797 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
9798
9799         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
9800         Fall through to simple beep on error.
9801         Replace "extern" by real header file.
9802
9803         * linuxplay.c: Use nativesound.h
9804         (play_sound_data): Return error code. Be less verbose on error.
9805
9806         * sunplay.c: Use nativesound.h
9807         (play_sound_data): Return error code. Be less verbose on error.
9808
9809         * ntplay.c: Use nativesound.h
9810         (play_sound_data): Return fake error code
9811
9812         * sgiplay.c: Use nativesound.h
9813         (play_sound_data): Return error code
9814
9815         * hpplay.c: Use nativesound.h, partially implement
9816         new error code. Break compilation until finished.
9817         (play_sound_data): error code.
9818
9819         * nativesound.h (play_sound_file):
9820           (play_sound_data): Prototype in new header.
9821
9822 2000-03-31  Andy Piper  <andy@xemacs.org>
9823
9824         * glyphs-widget.c: (button_query_geometry): new function. Adjust
9825         for toggle and radio buttons.
9826         (image_instantiator_buttons): use it.
9827
9828 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
9829
9830         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
9831         (x_update_horizontal_scrollbar_callback): Return if no mirror was
9832         found. Scrollbar event probably belonged to some old config.
9833
9834 2000-03-31  Andy Piper  <andy@xemacs.org>
9835
9836         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
9837         than 1.
9838         (initialize_widget_image_instance): default layout to
9839         LAYOUT_HORIZONTAL rather than 0.
9840         (widget_instantiate): reverse the item list at the end rather than
9841         every iteration.
9842         (layout_layout): re-code for the border text at the front of the
9843         item list rather than at the end.
9844         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
9845         provided by the user.
9846         (widget_query_geometry): comment.
9847
9848 2000-03-30  Andy Piper  <andy@xemacs.org>
9849
9850         * glyphs-widget.c (image_instantiator_layout): allow standard
9851         widget keywords in layouts.
9852
9853         * gutter.c (output_gutter): cope with nil gutter contents.
9854
9855         * frame.c (Fset_frame_properties): add gutter docs.
9856
9857 2000-03-29  Andy Piper  <andy@xemacs.org>
9858
9859         * toolbar-msw.c (TBSTYLE_FLAT): add.
9860         (mswindows_output_toolbar): minor fiddling.
9861
9862 2000-03-29  Andy Piper  <andy@xemacs.org>
9863
9864         * gutter.c (output_gutter): force gutter size recalculation if
9865         what we are trying to display won't fit.
9866         (update_gutter_geometry): new function. A per-gutter version of
9867         update_frame_gutter_geometry.
9868         (update_frame_gutter_geometry): use it.
9869         (redraw_exposed_gutter): add extra debugging output.
9870
9871 2000-03-28  Mike Alexander  <mta@arbortext.com>
9872
9873         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
9874         (pdump_file_unmap): Implement it on Windows
9875         (pdump_file_get): Save alocated handles for pdump_file_unmap
9876
9877 2000-03-28  Andy Piper  <andy@xemacs.org>
9878
9879         * gui.c (get_gui_callback): treat Quit specially.
9880
9881 2000-03-27  Andy Piper  <andy@xemacs.org>
9882
9883         * glyphs.c (image_instantiate): be careful to check in the same
9884         way we assigned.
9885
9886 2000-03-27  Didier Verna  <didier@xemacs.org>
9887
9888         * config.h.in: define the proper SMART_INCLUDE macro.
9889         handle renaming of `foo_h_path' to `foo_h_file'.
9890
9891         * database.c: ditto.
9892
9893         * emacs.c: ditto.
9894
9895         * linuxplay.c: ditto.
9896
9897         * terminfo.c: ditto.
9898
9899         * tooltalk.h: ditto.
9900
9901 2000-03-27  Andy Piper  <andy@xemacs.org>
9902
9903         * glyphs-msw.c (mswindows_update_widget): make sure the widget
9904         gets updated whenever the face might have changed.
9905
9906 2000-03-26  Mike Alexander  <mta@arbortext.com>
9907
9908         * dumper.c (pdump_resource_free): Fix the comment.
9909
9910 2000-03-21  Olivier Galibert  <galibert@pobox.com>
9911
9912         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
9913
9914 2000-03-22  Mike Alexander  <mta@arbortext.com>
9915
9916         * dumper.c: Include Windows headers on Windows
9917         (pdump_resource_free): Add a body to the function
9918         (pdump_load): exe_name -> exe_path and add some comments.
9919
9920 2000-03-25  Mike Alexander  <mta@arbortext.com>
9921
9922         * gui.c (copy_gui_item_tree): Return a value in all cases
9923
9924 2000-03-21  Didier Verna  <didier@xemacs.org>
9925
9926         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
9927         lwlib/config.h.in.
9928         (SMART_INCLUDE): new macro.
9929         (POSTGRES_INCLUDE): new macro to include postgresql headers from
9930         the proper location.
9931
9932         * postgresql.c: use it.
9933
9934         * inline.c: ditto.
9935
9936 2000-03-24  Andy Piper  <andy@xemacs.org>
9937
9938         * gutter.c (redraw_exposed_gutters): must be "in display" when we
9939         do this.
9940
9941 2000-03-24  Andy Piper  <andy@xemacs.org>
9942
9943         * redisplay-output.c (compare_runes): use image_instance_changed
9944         to detect changes. Do not depend on glyphs_changed, only depend on
9945         dirtiness.
9946          (redisplay_output_layout): add debug messages.
9947         (compare_runes): ditto.
9948
9949         * glyphs.h: declare new functions.
9950         (struct Lisp_Image_Instance): remove percent and associated
9951         accessors.
9952
9953         * gui.h: declare new copying functions.
9954
9955         * gui.c (copy_gui_item_tree): new function.
9956         (copy_gui_item): new function.
9957         (gui_item_id_hash): revert to standard hash.
9958         (gui_item_hash): ditto.
9959         (gui_item_hash_internal): deleted.
9960         (mark_gui_item): mark value.
9961         (gui_item_add_keyval_pair): add value.
9962         (gui_item_init): ditto.
9963         (gui_add_item_keywords_to_plist): ditto.
9964         (gui_item_equal): ditto.
9965         (syms_of_gui): add Q_value.
9966
9967         * glyphs-x.c (x_progress_gauge_update): use pending items and
9968         value for setting the state.
9969         (x_update_widget): don't set items from pending here.
9970
9971         * glyphs-widget.c (update_widget): update items here.
9972         (progress_gauge_set_property): use items for storing value. Put
9973         new value in pending items.
9974
9975         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
9976         items for new value. Convert percent -> value.
9977         (mswindows_tab_control_update): don't update items here.
9978
9979         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
9980         (update_subwindow): ditto.
9981         (image_instance_changed): new function. Compare hash values and
9982         past and present widget items.
9983         (image_instantiate): We more careful about where we instantiate
9984         things.
9985         (image_instantiate): add error checking.
9986
9987         * gutter.c (syms_of_gutter): use -hook.
9988
9989 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
9990
9991         * console-tty.c (Fset_console_tty_input_coding_system): Use
9992         Qkeyboard.
9993         (Fset_console_tty_output_coding_system): Use Qterminal.
9994         (tty_init_console): Use Qkeyboard and Qterminal.
9995
9996 2000-03-21  Ben Wing  <ben@xemacs.org>
9997
9998         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
9999         From Mike Alexander <mta@arbortext.com>.
10000
10001 2000-03-21  Ben Wing  <ben@xemacs.org>
10002
10003         * event-msw.c (mswindows_need_event): Horrible kludge to fix
10004         process brokenness.  Proper implementation to come.
10005         * callproc.c:
10006         Rename call-process-internal to old-call-process-internal.
10007         New impl. in process.el.
10008
10009 2000-03-21  Martin Buchholz  <martin@xemacs.org>
10010
10011         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
10012
10013 2000-03-20  Andy Piper  <andy@xemacs.org>
10014
10015         * glyphs.c (full_list_hash): make hashes of the same elements in
10016         different orders return different values.
10017
10018 2000-03-20  Martin Buchholz <martin@xemacs.org>
10019
10020         * XEmacs 21.2.32 is released.
10021
10022 2000-03-20  Martin Buchholz  <martin@xemacs.org>
10023
10024         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
10025         (DFC_MALLOC_USE_CONVERTED_DATA):
10026         Add aliasing-safe casts to allow use with char* or unsigned char*
10027         lvalues.
10028
10029         * eldap.c (Fldap_open):
10030         (Fldap_search_basic):
10031         (Fldap_add):
10032         (Fldap_modify):
10033         Make C++-compilable.
10034         Make sure GCPRO'ed variables are initialized.
10035         Use temp variables to avoid repeated calls to Flength.
10036
10037 2000-03-16  Martin Buchholz  <martin@xemacs.org>
10038
10039         * sysfile.h:
10040         Make sure PATH_MAX is always defined.
10041         Include limits.h for PATH_MAX.
10042         Deprecate use of MAXPATHLEN.
10043
10044 2000-03-10  Martin Buchholz  <martin@xemacs.org>
10045
10046         * emacs.c: Add reinit_vars_of_fileio.
10047         * symsinit.h: Add reinit_vars_of_fileio.
10048         * fileio.c (reinit_vars_of_fileio): New.
10049         * fileio.c (Fmake_temp_name):
10050         Initialize temp_name random number from microseconds to make
10051         collisions even less likely.  Initialize always at process startup
10052         time.  (make-temp-name) used to return the same file name twice in
10053         a row when PDUMP.
10054         Random stylistic fiddling.
10055         Comment fixes.
10056
10057 2000-03-20  Andy Piper  <andy@xemacs.org>
10058
10059         * glyphs.c (image_instantiate): allow text glyphs to be
10060         instantiated in the minibuffer window.
10061
10062 2000-03-19  Andy Piper  <andy@xemacs.org>
10063
10064         * glyphs.c (image_instance_hash): be careful about which items we
10065         hash on.
10066
10067         * glyphs-widget.c (tab_control_set_property): record into pending
10068         items rather than the actual items.
10069
10070         * glyphs-x.c (x_update_widget): use pending items to update with.
10071
10072         * glyphs-msw.c (mswindows_tab_control_update): use pending items
10073         to update with.
10074
10075         * glyphs.c (mark_image_instance): mark pending items.
10076
10077         * window.c (Fset_window_configuration): record the buffer.
10078         (Fselect_window): totally revert previous change which breaks many
10079         things.
10080
10081 2000-03-18  Andy Piper  <andy@xemacs.org>
10082
10083         * glyphs-msw.c (mswindows_tab_control_update): force selected
10084         item.
10085
10086         * glyphs.c (image_instantiate): don't allow the minibuffer as a
10087         window domain cache, otherwise we get inconsistencies at
10088         startup. There is something fishy at startup which can lead to the
10089         minibuffer being the selected window when the gutter content is
10090         instantiated.
10091
10092         * gui.c (parse_gui_item_tree_list): add probably unnecessary
10093         gcpros.
10094         (parse_gui_item_tree_children): ditto.
10095         (parse_gui_item_tree_item): ditto.
10096
10097         * glyphs.c (Fupdate_widget_instances): return something.
10098
10099 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
10100
10101         * window.c (Fselect_window): Undo 2000-03-17 change.
10102
10103 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
10104
10105         * postgresql.c (Fpq_setenv): Remove this turkey when linking
10106         against v7.0 libraries.  Insta-coredump city until the postgres
10107         folks fix it.
10108
10109 2000-03-17  Andy Piper  <andy@xemacs.org>
10110
10111         * faces.c (complex_vars_of_faces): don't give the widget face an
10112         inherited background pixmap.
10113
10114         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
10115         selected item.
10116
10117         * event-stream.c (Fdispatch_non_command_events): return something.
10118
10119         * gutter.c (output_gutter): use widget face.
10120         (clear_gutter): ditto.
10121
10122         * NEWS: adjust again.
10123
10124         * window.c (Fselect_window): make sure this runs to completion to
10125         avoid oddities with Fset_window_configuration.
10126         (Fcurrent_window_configuration): in general do not save the
10127         minibuffer as the selected window.
10128
10129         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
10130
10131 2000-03-16  Olivier Galibert  <galibert@pobox.com>
10132
10133         * emacs.c (Frunning_temacs_p): Revert previous patch.
10134         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
10135
10136 2000-03-16  Andy Piper  <andy@xemacs.org>
10137
10138         * glyphs-x.c (x_tab_control_update): if no widget values then
10139         return.
10140
10141         * NEWS: update for new features.
10142
10143         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
10144         synthetic event to the native system.
10145         (reinit_vars_of_event_Xt): set force_event_pending to
10146         emacs_Xt_force_event_pending.
10147
10148         * events.h (struct event_stream): add force_event_pending.
10149
10150         * specifier.c (recompute_one_cached_specifier_in_window): add
10151         comment.
10152
10153         * redisplay.c (redisplay_frame): don't call
10154         update_frame_subwindows. Reset subwindow cachels when
10155         subwindows_changed, removing this was an optimization too far.
10156
10157         * redisplay-output.c (compare_runes): reorganize so that we catch
10158         glyph changes when we want them. Set optimize_output when this
10159         would help layouts.
10160         (redisplay_output_layout): remove frame_really_changed, use
10161         optimize_output instead.
10162
10163         * redisplay-msw.c (mswindows_output_display_block): reset
10164         optimize_output after outputting a glyph.
10165         * redisplay-x.c (x_output_display_block): ditto.
10166         * redisplay-tty.c (tty_output_display_block): ditto.
10167
10168         * gutter.c: (specifier_vars_of_gutter): use new spec changed
10169         functions.
10170         (gutter_specs_changed): do specific gutter positions.
10171         (top_gutter_specs_changed): new function. Only update the
10172         specified gutter specs.
10173         (bottom_gutter_specs_changed): ditto.
10174         (left_gutter_specs_changed): ditto.
10175         (right_gutter_specs_changed): ditto.
10176
10177         * gui.c (gui_item_hash_internal): new function, does a real hash.
10178         (gui_item_id_hash): use it.
10179         (gui_item_hash): hash the eval'ed gui_item.
10180
10181         * gui-x.c (popup_selection_callback): send an eval event to call
10182         Fupdate_widget_instances.
10183
10184         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
10185         to call Fupdate_widget_instances.
10186
10187         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
10188         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
10189
10190         * glyphs.c: (update_frame_subwindows): deleted.
10191         (Fupdate_widget_instances): new function for updating the dirty
10192         state of widgets that might have changed.
10193         (syms_of_glyphs): add Qupdate_widget_instances.
10194         (full_list_hash): hash a list completely.
10195         (image_instance_hash): use it for items and properties.
10196
10197         * frame-msw.c (mswindows_size_frame_internal): remove unused
10198         variable.
10199
10200         * faces.h (struct face_cachel): fix comment.
10201
10202         * event-stream.c (Fdispatch_non_command_events): new
10203         function. Process non-command events, forcing an event cycle
10204         beforehand.
10205         (syms_of_event_stream): declare.
10206         (event_stream_force_event_pending): new function. Force an event
10207         on the native event queue so that an event cycle will occur next
10208         time we check.
10209
10210         * event-msw.c:
10211         (struct ntpipe_shove_stream):
10212         (mswindows_enqueue_dispatch_event):
10213         (mswindows_dequeue_dispatch_event):
10214         (mswindows_cancel_dispatch_event):
10215         (mswindows_pump_outstanding_events):
10216         (mswindows_drain_windows_queue):
10217         (mswindows_handle_paint):
10218         (mswindows_wnd_proc):
10219         (mswindows_key_to_emacs_keysym):
10220         (get_process_input_waitable):
10221         (emacs_mswindows_delete_stream_pair): re-indent file.
10222         (mswindows_need_event): do not process further fds if the windows
10223         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
10224         fixes the 100% cpu problem.
10225         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
10226
10227 2000-03-15  Olivier Galibert  <galibert@pobox.com>
10228
10229         * alloc.h: New.
10230         * dumper.h: New.
10231         * dumper.c: New.
10232
10233         * emacs.c: Moved dump file searching to dumper.c.
10234         (Frunning_temacs_p): Fixed.
10235
10236         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
10237         last_lrecord_type_index_assigned.
10238
10239 2000-02-20  Olivier Galibert  <galibert@pobox.com>
10240
10241         * symsinit.h: Added reinit parameter to init_console_stream
10242         declaration.
10243
10244         * lisp.h: Added file parameter to pdump_load declaration.
10245
10246         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
10247         support.  Added dump file searching.
10248
10249         * config.h.in: Added EMACS_PROGNAME.
10250
10251         * console-stream.c (init_console_stream): Fix reinitialisation
10252         when running from temacs.
10253
10254         * alloc.c (pdump): Add id support.
10255         (pdump_load): Add file parameter and signature/id support.
10256
10257         * Makefile.in.in: Add full pdump support.
10258
10259 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
10260
10261         * postgresql.c: Update documentation to reflect latest code
10262         status.
10263         (print_result): Show tuple counts in printed representation when
10264         appropriate.
10265         (Fpq_put_nbytes): MULE-ize.
10266         (Fpq_get_line_async): Ditto.
10267
10268 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
10269
10270         * postgresql.c (Fpq_lo_import): Fix return value.
10271         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
10272
10273 2000-03-13  Ben Wing  <ben@xemacs.org>
10274
10275         * alloc.c (pdump_load):
10276         Fix compile warning under mswin.
10277
10278 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
10279
10280         * postgresql.c: Mule-ization, bug fixes.
10281         Use PG_CODING to encapsulate coding system name changes.
10282         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
10283         (pg-coding-system): Create.
10284
10285         (Fpq_conn_defaults): Mule-ize.
10286         (Fpq_connectdb): Mule-ize & bug fix.
10287         (Fpq_connect_start): Mule-ize.
10288         (Fpq_set_client_encoding): Mule-ize.
10289         (Fpq_finish): Document `DEAD' connection status.
10290         (Fpq_clear): Ditto.
10291         (Fpq_pgconn): Mule-ize.
10292         (Fpq_exec): Mule-ize & bug fix.
10293         (Fpq_send_query): Ditto.
10294         (Fpq_get_result): Ditto.
10295         (Fpq_res_status): Mule-ize.
10296         (Fpq_result_error_message): Mule-ize.
10297         (Fpq_ntuples): fix comments.
10298         (Fpq_fname): Mule-ize.
10299         (Fpq_fnumber): Mule-ize.
10300         (Fpq_ftype): fix comments.
10301         (Fpq_get_value): Mule-ize.
10302         (Fpq_cmd_status): Ditto.
10303         (Fpq_cmd_tuples): Ditto.
10304         (Fpq_oid_value): Ditto.
10305         (Fpq_notifies): Ditto.
10306         (Fpq_lo_import): Ditto.
10307         (Fpq_lo_export): Ditto.
10308         (Fpq_get_line): Ditto.
10309         (Fpq_put_line): Mule-ize and bug fix.
10310         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
10311
10312 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
10313
10314         * postgresql.c (vars_of_postgresql): Mule-ize.
10315         (Fpq_conn_defaults): Ditto.
10316
10317 2000-03-12  Ben Wing  <ben@xemacs.org>
10318
10319         * alloc.c (Fmake_byte_code):
10320         * alloc.c (debug_string_purity_print):
10321         * alloc.c (pdump_backtrace):
10322         * alloc.c (pdump_get_indirect_count):
10323         * alloc.c (pdump_register_sub):
10324         * alloc.c (pdump_register_object):
10325         * alloc.c (pdump_register_struct):
10326         * alloc.c (pdump_dump_data):
10327         * alloc.c (pdump_reloc_one):
10328         Minor cleanups.
10329
10330         * console-msw.c:
10331         * console-msw.c (GetConsoleHwnd):
10332         * console-msw.c (msw_hide_console):
10333         * console-msw.c (msw_show_console):
10334         * console-msw.c (msw_ensure_console_buffered):
10335         * console-msw.c (msw_output_console_string):
10336         * console-msw.c (console_type_create_mswindows):
10337
10338         a) Added functions to manipulate the console window for use with
10339         shell support.
10340
10341         b) Added support for writing text to the console, which is now
10342         used under Windows when xemacs is not being run non-interactively,
10343         to write text that would otherwise be destined for stdout because
10344         under these circumstances, text written to stdout tends to
10345         disappear and not be seen.
10346
10347         * console-msw.h:
10348         * event-Xt.c:
10349         * event-Xt.c (x_event_to_emacs_event):
10350         * event-Xt.c (describe_event_window):
10351         * events-mod.h (XEMACS_MOD_CONTROL):
10352         * events.c:
10353         * events.c (Fmake_event):
10354         * events.c (character_to_event):
10355         * events.c (event_to_character):
10356         * events.c (format_event_object):
10357         * events.c (Fevent_modifiers):
10358         * events.h:
10359         * events.h (struct key_data):
10360         * events.h (struct button_data):
10361         * events.h (struct misc_user_data):
10362         * frame-x.c (Fcde_start_drag_internal):
10363         * frame-x.c (Foffix_start_drag_internal):
10364         * gpmevent.c (Freceive_gpm_event):
10365         * keymap.c:
10366         * keymap.c (bucky_sym_to_bucky_bit):
10367         * keymap.c (control_meta_superify):
10368         * keymap.c (make_key_description):
10369         * keymap.c (keymap_lookup_directly):
10370         * keymap.c (create_bucky_submap):
10371         * keymap.c (keymap_store):
10372         * keymap.c (define_key_check_and_coerce_keysym):
10373         * keymap.c (define_key_parser):
10374         * keymap.c (define_key_alternate_name):
10375         * keymap.c (Fdefine_key):
10376         * keymap.c (raw_lookup_key_mapper):
10377         * keymap.c (struct map_keymap_unsorted_closure):
10378         * keymap.c (map_keymap_unsorted_mapper):
10379         * keymap.c (map_keymap_sort_predicate):
10380         * keymap.c (map_keymap_sorted):
10381         * keymap.c (accessible_keymaps_mapper_1):
10382         * keymap.c (where_is_recursive_mapper):
10383         * keymap.c (describe_map_mapper):
10384         * keymap.c (describe_map_sort_predicate):
10385         * keymap.c (describe_map):
10386         * keymap.c (complex_vars_of_keymap):
10387         And a number of other files, the key modifier preprocessor
10388         constants that xemacs uses have names that conflict with constants
10389         defined under MS Windows for other purposes, so they were renamed
10390         to begin with the prefix XEMACS_. The variables that hold such
10391         modifiers were changed to consistently be of type int to fix
10392         various compile warnings.
10393
10394         * console.c (complex_vars_of_console):
10395         * device.c:
10396         * device-msw.c:
10397         * device-msw.c (mswindows_finish_init_device):
10398         * device-msw.c (msw_get_workspace_coords):
10399         * device-msw.c (mswindows_device_system_metrics):
10400         and various other files, added support for a new
10401         device property called offset-workspace which returns the position
10402         of the upper left corner of the workspace area and goes along with
10403         the existing size-workspace property.
10404
10405         * dialog-msw.c:
10406         * dialog-msw.c (push_bufbyte_string_as_unicode):
10407         * dialog-msw.c (mswindows_popup_dialog_box):
10408         Added support for XEmacs-style accelerator specifications in
10409         button text.  Note: I didn't add support for this under X Windows,
10410         and somebody needs to do this.
10411
10412         * dialog.c:
10413         * dialog.c (Fpopup_dialog_box):
10414         Documented the support for accelerators that was just mentioned.
10415
10416         editfns.c (get_home_directory): Changed behavior under Windows
10417         when HOME not defined; former behavior was irretrievably broken.
10418
10419         * emacs.c:
10420         * emacs.c (main_1):
10421         * emacs.c (main):
10422         * minibuf.c (clear_echo_area_internal):
10423         * minibuf.c (echo_area_append):
10424         * print.c:
10425         * print.c (std_handle_out_external):
10426         * print.c (std_handle_out_va):
10427         * print.c (fatal):
10428         * print.c (write_string_to_stdio_stream):
10429         * print.c (output_string):
10430         * print.c (debug_print):
10431         * print.c (debug_backtrace):
10432         * print.c (debug_short_backtrace):
10433         Cleaned up the code that prints text to stdout so that this can be
10434         changed to output into a console window instead under MS Windows,
10435         as described above.
10436
10437         * eval.c:
10438         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
10439         * eval.c (internal_catch):
10440         * eval.c (unwind_to_catch):
10441         * eval.c (throw_or_bomb_out):
10442         * eval.c (condition_case_1):
10443         * eval.c (signal_1):
10444         * eval.c (check_error_state_sanity):
10445         * eval.c (call_with_suspended_errors_1):
10446         * eval.c (call_with_suspended_errors):
10447         * eval.c (reinit_vars_of_eval):
10448         Added code to catch throw loops and check for a pesky bug that may
10449         be gone now.
10450
10451         * event-msw.c:
10452         * event-msw.c (key_needs_default_processing_p):
10453         * event-msw.c (mswindows_wnd_proc):
10454         * event-msw.c (mswindows_modifier_state):
10455         * event-msw.c (emacs_mswindows_quit_p):
10456         * event-msw.c (vars_of_event_mswindows):
10457         a) Added support for using the alt key to select menu items as is
10458         standard under MS Windows.  This is controlled using the variable
10459         menu-accelerator-enabled, just like under X Windows.  There is an
10460         option on the options menu to turn this support on.  I really
10461         think that it should be on by default under Windows, but I'm not
10462         going to make this change yet.
10463
10464         b)  Added support for dynamic display size changes under Windows.
10465
10466         * event-stream.c:
10467         * event-stream.c (maybe_echo_keys):
10468         * event-stream.c (Fnext_event):
10469         * event-stream.c (command_builder_find_leaf):
10470         * event-stream.c (lookup_command_event):
10471         * event-stream.c (execute_command_event):
10472         * event-stream.c (pre_command_hook):
10473         * event-stream.c (post_command_hook):
10474         * event-stream.c (syms_of_event_stream):
10475         * event-stream.c (vars_of_event_stream):
10476         * event-stream.c (complex_vars_of_event_stream):
10477         * events.h (struct command_builder):
10478
10479         a) Tried to clean up a little bit the horribly written x-specific
10480         accelerator code that crept into this file.  I moved this code
10481         into menubar-x.c where it belongs. I also needed to move the
10482         command builder structure into the file events.h because it is
10483         accessed directly by this accelerator code.  What I didn't do, but
10484         which should be done at some point, is to properly abstract this
10485         code using device methods instead of the kludgy way that it
10486         currently hooks into the event code.
10487
10488         b) Added the lisp variables this-command-properties and
10489         last-command- properties, which should be used to synchronize two
10490         adjacent commands in preference to playing games with the variable
10491         this-command, which is typically what happens.
10492
10493         c) Added some slightly nasty code to hook into the lisp support
10494         for shifted- motion-key selection.  This is actually necessary for
10495         somewhat complicated reasons, which are described in
10496         simple.el. (NB: I think the proper thing would be to have the code
10497         that calls the pre and post command hooks also call out to generic
10498         lisp functions in simple.el, where all built-in stuff could be
10499         added.  I will think about this more.)
10500
10501         * event-unixoid.c (poll_fds_for_input):
10502         * lread.c (readchar):
10503         * redisplay-tty.c (tty_clear_frame):
10504         * redisplay-x.c (x_get_gc):
10505         * signal.c (interrupt_signal):
10506         And a whole bunch of other files: fixed up places that printed
10507         directly to stderr to instead call the function stderr_out so that
10508         the changes I made under Windows work correctly.
10509
10510         * filemode.c (mode_string):
10511         Warning fixes.
10512
10513         * frame-msw.c:
10514         * frame-msw.c (mswindows_size_frame_internal):
10515         Fixed the computation of frame size and position to keep the frame
10516         within the workspace area, rather than within the physical
10517         dimensions of the screen, so that the frame doesn't overlap window
10518         manager decorations, such as the start menu and toolbar, typically
10519         at the bottom of the screen.
10520
10521         * frame.c (vars_of_frame):
10522         Changed the default frame title format under MS Windows to consist
10523         of buffername-XEmacs, which is standard under MS Windows.  I think
10524         it might be a good idea to change this everywhere because I think
10525         it is superior to the current frame title format, but this is the
10526         kind of change that is likely to cause some people to get annoyed,
10527         so I'm not making it.
10528
10529         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
10530
10531         * gui-msw.c (mswindows_handle_gui_wm_command):
10532         Fixed compile warnings.
10533
10534         * gui-x.c:
10535         * gui-x.c (strdup_and_add_accel):
10536         * gui-x.c (button_item_to_widget_value):
10537         * gui-x.h:
10538         Added code to automatically put an accelerator onto the beginning
10539         of menu items that don't have one as is now the standard, and is
10540         described more later.  Also fixed things so that the menu item
10541         name can be an evaluated expression, again a new standard.
10542
10543         * gui.c:
10544         * gui.c (gui_item_add_keyval_pair):
10545         * gui.c (make_gui_item_from_keywords_internal):
10546         * gui.c (gui_add_item_keywords_to_plist):
10547         * gui.c (gui_item_accelerator):
10548         * gui.c (gui_name_accelerator):
10549         * gui.c (gui_item_included_p):
10550         * gui.c (gui_item_display_flush_left):
10551         * gui.c (gui_item_display_flush_right):
10552         * gui.c (parse_gui_item_tree_item):
10553         * gui.c (parse_gui_item_tree_children):
10554         * gui.c (parse_gui_item_tree_list):
10555         Mule-ized.  Cleanup.  GCPRO addition.
10556
10557         * line-number.c (buffer_line_number):
10558         * lisp.h:
10559         * lisp.h (EMACS_INT_MAX):
10560         Added the manifest constant EMACS_INT_MIN corresponding to the
10561         existing constant EMACS_INT_MAX.  This is partially to fix compile
10562         warnings under Windows, and partly for cleanliness.
10563
10564         * menubar-msw.c:
10565         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
10566         * menubar-msw.c (msw_translate_menu_or_dialog_item):
10567         * menubar-msw.c (displayable_menu_item):
10568         * menubar-msw.c (populate_menu_add_item):
10569         * menubar-msw.c (populate_or_checksum_helper):
10570         * menubar-msw.c (populate_menu):
10571         * menubar-msw.c (update_frame_menubar_maybe):
10572         * menubar-msw.c (prune_menubar):
10573         * menubar-msw.c (msw_char_is_accelerator):
10574         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
10575         * menubar-msw.c (mswindows_handle_wm_command):
10576         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
10577         * menubar-msw.c (mswindows_handle_wm_initmenu):
10578         * menubar-msw.c (mswindows_update_frame_menubars):
10579         * menubar-msw.c (mswindows_free_frame_menubars):
10580         * menubar-msw.c (mswindows_popup_menu):
10581         Fixed a bug in handling accelerators where an extra character
10582         would be displayed in the menu item.  Also generalized the
10583         function displayable_menu_item because it is now used by the
10584         dialog box code as well.  And finally, added code in the functions
10585         that create the menubar to extract a list of accelerators for the
10586         top level menubar, which is used in the event code to determine
10587         whether a particular alt-key combination should be used to invoke
10588         a menu item, or should be passed through to access the standard
10589         XEmacs keymap binding for this key combination.
10590
10591         Much needed GCPROing.
10592
10593         * menubar-x.c:
10594         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10595         * menubar-x.c (menu_item_descriptor_to_widget_value):
10596         * menubar-x.c (restore_in_menu_callback):
10597         * menubar-x.c (x_popup_menu):
10598         * menubar-x.c (menu_move_up):
10599         * menubar-x.c (menu_move_down):
10600         * menubar-x.c (menu_move_left):
10601         * menubar-x.c (menu_move_right):
10602         * menubar-x.c (menu_select_item):
10603         * menubar-x.c (command_builder_operate_menu_accelerator):
10604         * menubar-x.c (menu_accelerator_junk_on_error):
10605         * menubar-x.c (command_builder_find_menu_accelerator):
10606         * menubar-x.c (Faccelerate_menu):
10607         * menubar.h:
10608         Moved a whole bunch of code here that was previously in
10609         event-stream.c as described above.  There is also code connected
10610         to the new standard of adding an accelerator to the beginning of
10611         menu items that don't have one as described above and below.
10612
10613         * menubar.c:
10614         * menubar.c (menu_parse_submenu_keywords):
10615         * menubar.c (Fmenu_find_real_submenu):
10616         * menubar.c (Fnormalize_menu_item_name):
10617         * menubar.c (syms_of_menubar):
10618         * menubar.c (vars_of_menubar):
10619         * menubar.c (complex_vars_of_menubar):
10620
10621         a) Cleaned up a bunch of documentation and improved it.
10622
10623         b) XEmacs now automatically adds an accelerator onto the beginning
10624         of any menu items that don't have one.  I did this because there
10625         will inevitably be some menu items on the main menubar that don't
10626         have accelerators on them because the package that adds that
10627         particular menu item hasn't yet been fixed up to have accelerators
10628         in them and it looked rather strange to have some items with and
10629         some items without accelerators, especially since even in items
10630         without accelerators, you can, at least under windows, still
10631         access the item through an accelerator corresponding to the first
10632         character in the item's name.  If people don't like this behavior,
10633         I can add a variable to turn it off optionally, but I'm not sure
10634         this is a good idea because we really do need to have accelerators
10635         on all of the menu items, and if a package doesn't like the
10636         accelerators being put on the first character, then it should put
10637         the accelerators where they belong.
10638
10639         c) I made a behavior change, which is that the descriptor that
10640         specifies the text of the menu item, which formerly was just a
10641         string, can now also be an evaluated expression.  This makes this
10642         descriptor parallel with all of the others, which could also be
10643         evaluated expressions.  This also obviates the need for the
10644         keyword :label, which was previously listed in the documentation
10645         as unimplemented, and which was for the same purpose.
10646
10647         d) GCPROing.
10648
10649         * ntproc.c:
10650         * ntproc.c (new_child):
10651         * ntproc.c (sys_spawnve):
10652         * ntproc.c (find_child_console):
10653         * ntproc.c (sys_kill):
10654         Fixed compile warnings.  By the way, this file should really go
10655         away entirely, and this will happen as soon as Kirill makes his
10656         final round of process cleanups, which affect the function
10657         call-process.
10658
10659         * process-nt.c:
10660         * process-nt.c (struct nt_process_data):
10661         * process-nt.c (find_process_from_pid):
10662         * process-nt.c (send_signal_the_nt_way):
10663         * process-nt.c (enable_child_signals):
10664         * process-nt.c (find_child_console):
10665         * process-nt.c (send_signal_the_95_way):
10666         * process-nt.c (nt_finalize_process_data):
10667         * process-nt.c (ensure_console_window_exists):
10668         * process-nt.c (nt_create_process):
10669         * process-nt.c (nt_kill_child_process):
10670         * process-nt.c (nt_kill_process_by_pid):
10671         * process-nt.c (nt_open_network_stream):
10672         * process-nt.c (vars_of_process_nt):
10673         Copied over code from Emacs 20.5 to correctly send signals to sub-
10674         processes under Windows 95.  Also added code to automatically
10675         create and hide console window when a sub-process is created under
10676         Windows 95, which obviates the need for the separate runemacs.exe
10677         executable, and finally implemented some variables that were
10678         implemented in Emacs 20.5, but previously not in XEmacs.  These
10679         include mswindows- start-process-share-console and
10680         mswindows-start-process-inherit-error-mode. (Both of these only
10681         apply to Windows 95.)
10682
10683         * regex.c (regex_compile): Fixed a compile warning.
10684
10685         * select-msw.c:
10686         * select-msw.c (mswindows_own_selection):
10687         * select-msw.c (mswindows_get_foreign_selection):
10688         * select-msw.c (mswindows_disown_selection):
10689         * select-msw.c (console_type_create_select_mswindows):
10690         * select-msw.c (syms_of_select_mswindows):
10691         Cleaned up the file and implemented the device method
10692         selection_exists_p, which had accidentally been left out.  Also
10693         removed four lisp functions that were remnants from before the
10694         time when the selection code was properly device abstracted.
10695         These functions are no longer needed because there are generic
10696         equivalents, and because they were added recently and don't exist
10697         in FSF Emacs, I don't think there's any problem with just deleting
10698         them.
10699
10700         * sysdep.c:
10701         * sysdep.c (sys_subshell):
10702         Fixed a compile warning, although in this case there's probably
10703         something wrong with this code, and it ought to be looked into
10704         more thoroughly by somebody who understands it.
10705
10706         * window.c:
10707         * window.c (Fwindow_text_area_height):
10708         * window.c (Fwindow_width):
10709         * window.c (Fwindow_full_width):
10710         * window.c (Fwindow_pixel_width):
10711         * window.c (debug_print_window):
10712         * window.c (syms_of_window):
10713         Added functions window-text-area-height and window-full-width,
10714         which are functions for returning various width and height
10715         characteristics of a window. (One of these functions is necessary
10716         for making the file dialog box work correctly, and the other one
10717         was added for completeness.)  Also added a table to the
10718         documentation for window-height which describes the entire scheme
10719         for accessing width and height characteristics of a window.
10720
10721 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10722
10723         * nt.c (fstat): Added a comment for another problem with
10724         non-encapsulated [f]stat(), reported by Adrian Aichner
10725         <aichner@ecf.teradyne.com>.
10726
10727 2000-03-11  Andy Piper  <andy@xemacs.org>
10728
10729         * window.c (make_dummy_parent): initialize subwindow instance
10730         cache.
10731         (Fset_window_configuration): zero extent_modiff.
10732
10733 2000-03-10  Andy Piper  <andy@xemacs.org>
10734
10735         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
10736         more changes can be triggered.
10737         (Fredisplay_frame): ditto.
10738         (Fredraw_device): ditto.
10739         (Fredisplay_device): ditto.
10740         (redisplay_frame): make non-static.
10741         (redisplay_frame): call update_frame_gutter_geometry outside of
10742         display proper.
10743
10744         * gutter.h: declare update_frame_gutter_geometry.
10745
10746         * redisplay.h: declare redisplay_frame.
10747
10748         * gutter.c (update_frame_gutter_geometry): move geometry changes
10749         in update_frame_gutters here. Geometry changes can only occur
10750         outside of redisplay.
10751         (update_frame_gutters): remove geometry change code.
10752         (Fredisplay_gutter_area): make sure that we are in display when we
10753         update and that we have flushed any size changes.
10754
10755 2000-03-11  Andy Piper  <andy@xemacs.org>
10756
10757         * alloc.c (pdump_dump_data): remove i & count shadows.
10758
10759 2000-02-27  Mike Alexander  <mta@arbortext.com>
10760
10761         * sysdep.h: Declare pdump_read_file
10762
10763         * sysdep.c (pdump_read_file): New function
10764
10765         * alloc.c (pdump_load): Call pdump_read_file to get the portable
10766         dump data
10767
10768 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
10769
10770         * lrecord.h: add `lrecord_type_pgsetenv'.
10771
10772 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
10773
10774         * symsinit.h: declare (vars|syms)_of* functions.
10775         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
10776
10777 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
10778
10779         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
10780
10781         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
10782         GCCs.
10783
10784         * emacs.c (main_1): Call postgres initialization code.
10785
10786         * postgresql.h: New file.  PostgreSQL RDBMS support.
10787         * postgresql.c: New file.
10788
10789 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
10790
10791         * redisplay-output.c (redisplay_output_display_block): Disable
10792         redundant code.
10793
10794 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
10795
10796         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
10797         (Fcanna_henkan_next): Ditto.
10798         (Fcanna_bunsetu_henkou): Ditto.
10799         (Fcanna_henkan_kakutei): Ditto.
10800         (Fcanna_henkan_end): Ditto.
10801         (Fcanna_henkan_quit): Ditto.
10802         (Fcanna_henkan_next): Set retun value correctly.
10803         (c2mu): Use unsigned char instead of signed char.
10804
10805 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
10806
10807         * emacs.c (main_1): Always call syms_of_gui.
10808         * inline.c: include gui.h
10809
10810 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
10811
10812         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
10813         converted to Lisp_Object.
10814         (Qtop_bottom): New variable.
10815         (syms_of_redisplay): Initialize it.
10816         * redisplay.h (Vvisible_bell): Ditto.
10817         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
10818         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
10819         only flash top and bottom.
10820
10821 2000-03-08  Andy Piper  <andy@xemacs.org>
10822
10823         * buffer.c (Frename_buffer): record new buffer name the right way.
10824
10825 2000-03-08  Andy Piper  <andy@xemacs.org>
10826
10827         * glyphs.c (update_subwindow): increase hash depth so that widget
10828         items get picked up properly.
10829
10830         * redisplay-output.c (compare_runes): increase hash depth so that
10831         widget items get picked up properly.
10832
10833 2000-03-08  Andy Piper  <andy@xemacs.org>
10834
10835         * gutter.c (output_gutter): add some debug.
10836
10837         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
10838         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
10839         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
10840
10841         * redisplay-output.c (compare_runes): use display_hash to
10842         determine if glyphs really are not the same.
10843
10844         * glyphs.c (update_subwindow): check display_hash to see if
10845         anything really needs to be updated. If not then do
10846         nothing. Record the display_hash after updating.
10847         (image_instance_equal): compare the image_instance face also.
10848
10849 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
10850
10851         * redisplay.h: Fix comment style.
10852
10853 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10854
10855         * consle-msw.h (struct mswindows_frame):
10856         Added new member paint_pending to indicate whether a WM_PAINT
10857         magic event has been queued for this frame.
10858
10859         * event-msw.c (mswindows_drain_windows_queue):
10860         Don't queue a WM_PAINT magic event if one is already queued.
10861         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
10862
10863         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
10864
10865 2000-03-07  Didier Verna  <didier@xemacs.org>
10866
10867         * dired.c: #include `regex.h' after `sysfile.h'.
10868
10869 2000-03-06  Martin Buchholz  <martin@xemacs.org>
10870
10871         * sound.c (init_nas_sound): Fix compiler warning.
10872
10873         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
10874         (FREE_STRUCT_P):
10875         (MARK_STRUCT_AS_FREE):
10876         (MARK_STRUCT_AS_NOT_FREE):
10877         Make `gcc -fstrict-aliasing' work properly.
10878
10879 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10880
10881         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
10882         (mswindows_delete_device): Call CoUnnitialize().
10883
10884         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
10885
10886 2000-02-25    <CraigL@DyCon.com>
10887
10888         * process-nt.c: MinGW now has <shellapi.h>, but still needs
10889         <errno.h>.
10890
10891         * sysdep.c: This extern declaration for environ prevents MinGW
10892         from finding the variable in CRTDLL.DLL.
10893
10894         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
10895         windows headers.
10896         (SHGFI_EXETYPE): ..
10897         (WM_MOUSEWHEEL): ..
10898         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
10899         definitions.
10900         (MMRESULT): Removed, now defined in cygwin's windows headers.
10901         (TIMECAPS): ..
10902         (uid_t,gid_t,pid_t,ssize_t): ..
10903         (_timeb): Removed, MinGW defines both _timeb and timeb.
10904         (HAVE_H_ERRNO): Added.
10905         (HAVE_TZNAME): Added, configure is not detecting this.
10906
10907 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
10908
10909         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
10910         * syntax.c (syntax_match): Use it.
10911
10912         * cmds.c: Import auto-fill-chars from FSF Emacs.
10913         (Vauto_fill_chars): New variables.
10914         (internal_self_insert): Check Vauto_fill_chars.
10915         (vars_of_cmds):
10916         Declare auto-fill-chars as a Lisp variable and initialize it.
10917
10918 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10919
10920         * fileio.c (Fmake_symbolic_link):
10921         (Ffile_symlink_p):
10922         Run handlers even if local machine doesn't have symlinks.
10923
10924 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10925
10926         * event-msw.c (mswindows_drain_windows_queue):
10927         Don't generate paint magic events for non-XEmacs frames.
10928
10929 2000-03-05  Andy Piper  <andy@xemacs.org>
10930
10931         * redisplay.c (redisplay_frame): generate_displayable_area and
10932         friends assumes that we are not in GC, we therefore have to make
10933         sure that this doesn't happen.
10934
10935         * gutter.c (calculate_gutter_size): generate_displayable_area
10936         assumes that we are not in GC, we therefore have to make sure that
10937         this doesn't happen.
10938
10939 2000-03-05  Martin Buchholz  <martin@xemacs.org>
10940
10941         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
10942
10943 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
10944
10945         * redisplay.c (regenerate_window): Make sure we set a sane value
10946         for end_pos even if we jump out of the loop.
10947         (regenerate_window): Answer Ben's question :-).
10948         (start_end_of_last_line): Add may_error argument.
10949         (start_of_last_line):
10950         (end_of_last_line): Pass may_error = 0.
10951         (end_of_last_line_may_error): New function.
10952         (pixel_to_glyph_translation): Use it, so we don't crash in
10953         event_to_glyph.
10954
10955 2000-03-04  Andy Piper  <andy@xemacs.org>
10956
10957         * window.h (struct window): add gutter_extent_modiff.
10958
10959         * window.c (allocate_window): zero out gutter_extent_modiff.
10960
10961         * redisplay.h: declare sync_display_line_structs.
10962
10963         * redisplay.c (add_glyph_rune): add a better comment.
10964
10965         * redisplay-output.c (sync_display_line_structs): made non-static.
10966         (compare_runes): remove unneccesary glyph cachel access.
10967
10968         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
10969
10970         * gutter.c (output_gutter): don't output the gutter if extent
10971         changes only involve extents in buffers. use 4 sets of display
10972         lines.
10973         (gutter_extent_signal_changed_region_maybe): new function. Mark
10974         extents in gutters as changed.
10975         (update_frame_gutters): use 4 sets of display lines.
10976         (reset_gutter_display_lines): ditto.
10977         (free_frame_gutters): ditto.
10978         (redraw_exposed_gutter): force output of gutters.
10979
10980         * frame.h (struct frame): add 4 sets of gutter display lines.
10981
10982         * extents.c: (extent_changed_for_redisplay): signal changes to
10983         extents in strings in the gutter as well as extents in buffers.
10984
10985 2000-03-02  Andy Piper  <andy@xemacs.org>
10986
10987         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
10988
10989         * frame.c (Fmake_frame): make sure the gutters get initialized
10990         after the frame is visible.
10991         (set_frame_selected_window): re-arrange compilation macros a
10992         little.
10993         (change_frame_size_1): mark gutters changed.
10994
10995         * device.c (Fset_device_class): mark gutters changed.
10996
10997 2000-03-01  Andy Piper  <andy@xemacs.org>
10998
10999         * window.c (window_top_frame_gutter_height): deleted.
11000         (window_bottom_frame_gutter_height): ditto.
11001         (window_left_frame_gutter_height): ditto.
11002         (window_right_frame_gutter_height): ditto.
11003         (window_top_gutter_height): don't use them.
11004         (window_bottom_gutter_height): ditto.
11005         (window_left_gutter_width): ditto.
11006         (window_right_gutter_width): ditto.
11007         (Fsplit_window): ditto.
11008         (Fwindow_pixel_edges): don't use border dimensions here.
11009
11010         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
11011         (update_scrollbar_instance): ditto.
11012
11013         * redisplay.c (generate_modeline): don't take gutters into account.
11014         (generate_modeline): ditto.
11015         (redisplay_frame): small gutter display optimization.
11016
11017         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
11018
11019         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
11020         gutters into account.
11021
11022         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
11023         for window position and type.
11024
11025         * gutter.c (get_gutter_coords): fix for frame gutters.
11026         (update_frame_gutters): update frame geometry if the gutters have
11027         changed.
11028         (init_frame_gutters): record current gutter geometries.
11029
11030         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
11031         var.
11032         (mswindows_widget_instantiate): ditto.
11033
11034         * frame.h (struct frame): add current_gutter_bounds.
11035
11036         * frame.c (change_frame_size_1): position window and minibuffer
11037         appropriately taking into account the frame gutters.
11038
11039         * frame-x.c: (x_initialize_frame_size): take into account the
11040         frame gutters.
11041
11042 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
11043
11044         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
11045
11046 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
11047
11048         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
11049
11050 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
11051
11052         * file-coding.c (reset_decoding_stream): Clear previous
11053         detection state when autodetect.
11054
11055 2000-02-29  Didier Verna  <didier@xemacs.org>
11056
11057         * extents.c (set_extent_glyph_1): don't require extents to be
11058         attached.
11059
11060 2000-02-27  Andy Piper  <andy@xemacs.org>
11061
11062         * gutter.c (Fset_default_gutter_position): don't default left and
11063         right gutter visibility to t.
11064         (Fset_default_gutter_position): run
11065         default-gutter-position-changed-hook.
11066         (syms_of_gutter): add default-gutter-position-changed-hook.
11067
11068 2000-02-26  Andy Piper  <andy@xemacs.org>
11069
11070         * specifier.c (Fmake_specifier): add gutter references.
11071
11072         * gutter.h (RAW_WINDOW_GUTTER): new macro.
11073
11074         * lisp.h: declare Fvalid_plist_p.
11075
11076         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
11077         as changed.
11078         (default_gutter_visible_p_changed_in_window): invalidate gutter as
11079         well as its visibility so that it gets reconstructed.
11080         (construct_window_gutter_spec): new function. Construct a string
11081         to be displayed in the gutter from a plist of strings. Take care
11082         to only use elements that are declared as visible.
11083         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
11084         WINDOW_GUTTER.
11085         (gutter_validate): allow plists of strings in the specifier.
11086         (gutter_specs_changed): construct the real_gutter from the gutter
11087         specs using construct_window_gutter_spec.
11088         (gutter_visible_validate): gutter-visible is a new specifier type.
11089         (Fgutter_visible_specifier_p): new function for the new specifier.
11090         (syms_of_gutter): declare gutter-visible and
11091         Fgutter_visible_specifier_p.
11092         (specifier_type_create_gutter): intitalize new gutter-visible
11093         specifier.
11094         (reinit_specifier_type_create_gutter): ditto.
11095         (specifier_vars_of_gutter): use new specifier type for gutter
11096         visibility.
11097         (init_frame_gutters): construct real_gutter correctly.
11098         (Fgutter_specifier_p): beef up documentation.
11099         (Fgutter_size_specifier_p): ditto.
11100
11101         * winslots.h: add real_gutter slots.
11102
11103 2000-02-25  Andy Piper  <andy@xemacs.org>
11104
11105         * device-msw.c: Be kind to older cygwin versions. From Raymond
11106         Toy <toy@rtp.ericsson.se>.
11107
11108         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
11109         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
11110
11111 2000-02-25  Martin Buchholz  <martin@xemacs.org>
11112
11113         * elhash.c (MARK_OBJ): Practice macro hygiene.
11114
11115 2000-02-24  Martin Buchholz  <martin@xemacs.org>
11116
11117         * miscplay.c: s/__inline__/inline/g;
11118         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
11119         (get_device_compdc): INLINE ==> static inline
11120         * *.[ch]: Change INLINE to INLINE_HEADER globally.
11121         find -name '*.h' | \
11122         xargs global-replace \
11123         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
11124
11125 2000-02-25  Andy Piper  <andy@xemacs.org>
11126
11127         * window.c (window_top_frame_gutter_height): new function.
11128         (window_top_window_gutter_height): ditto.
11129         (window_top_gutter_height): use them.
11130         (window_bottom_frame_gutter_height): new function.
11131         (window_bottom_window_gutter_height): ditto.
11132         (window_bottom_gutter_height): use them.
11133         (window_left_window_gutter_width): new function.
11134         (window_left_frame_gutter_width): ditto.
11135         (window_left_gutter_width): use them.
11136         (window_right_window_gutter_width): new function.
11137         (window_right_frame_gutter_width): ditto.
11138         (window_right_gutter_width): use them.
11139         (window_pixel_height): new function. calulate window pixel height
11140         with frame gutter involvement.
11141         (Fsplit_window): calculate new sizes taking frame gutters into
11142         account.
11143         (window_char_height_to_pixel_height): don't include frame gutters.
11144         (window_char_height): use window_pixel_height.
11145         (window_pixheight): rename from window_pixel_height.
11146         (change_window_height): use it.
11147         (window_pixel_height_to_char_height): don't include frame gutters.
11148         (window_char_width_to_pixel_width): ditto.
11149
11150 2000-02-25  Andy Piper  <andy@xemacs.org>
11151
11152         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
11153         if it is.
11154
11155 2000-02-24  Martin Buchholz  <martin@xemacs.org>
11156
11157         * alloc.c (staticpro):
11158         (staticpro_nodump):
11159         (dumpstruct):
11160         (dumpopaque):
11161         (pdump_wire):
11162         (pdump_wire_list):
11163         (compact_string_chars):
11164         (pdump_dump_wired):
11165         Convert:  if (foo) abort();  ==>  assert (! foo);
11166
11167         * eldap.c (Fldap_search_basic):
11168         (Fldap_add):
11169         (Fldap_modify):
11170         (Fldap_delete):
11171         Fix compiler warnings, and possible crashes if (random) return
11172         value were to be used.
11173
11174 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11175
11176         * device-msw.c: Workaround ResetDC failure.
11177
11178         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
11179         applying a devmode.
11180
11181         * redisplay-msw.c (get_frame_dc): Added start_page_p.
11182         (mswindows_text_width): Do not start printer page.
11183
11184         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
11185
11186         * glyphs-msw.c: Added image methods to msprinter console and
11187         msprinter-specific image instantiation.
11188
11189 2000-02-20  Mike Alexander  <mta@arbortext.com>
11190
11191         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
11192         to avoid crashes when selection-sets-clipboard is on
11193         (mswindows_own_selection): ditto
11194
11195 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11196
11197         * glyphs-msw.c:
11198         * redisplay-msw.c (get_frame_dc):
11199         (get_frame_compdc):
11200         * console-msw.h:
11201         * device-msw.c (mswindows_init_device):
11202         (mswindows_delete_device):
11203         (msprinter_init_device):
11204         (msprinter_delete_device):
11205         * frame-msw.c (mswindows_init_frame_1):
11206         (mswindows_delete_frame):
11207         (msprinter_init_frame_3):
11208         (msprinter_delete_frame): Move compatible DC to device object from
11209         frame object, for both mswindows and msprinter. Only one at a time
11210         is needed, it is a real waste to have one per frame!
11211
11212 2000-02-23  Andy Piper  <andy@xemacs.org>
11213
11214         * glyphs.c: add dynamic width and height elements.
11215         (image_instance_equal): ditto.
11216
11217         * glyphs-widget.c (widget_query_geometry): calculate width and
11218         height dynamically if required.
11219         (initialize_widget_image_instance): initialize dynamic dimensions.
11220         (widget_instantiate): pick-up dynamic dimensions.
11221
11222         * glyphs.h (struct Lisp_Image_Instance): add width and height for
11223         dynamic determination. Add appropriate macros.
11224
11225         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
11226         dimensions safe.
11227         (WINDOW_GUTTER_SIZE): ditto.
11228         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
11229
11230         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
11231         inline.
11232         (get_frame_dc): ditto.
11233
11234         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
11235         here.
11236
11237 2000-02-23  Martin Buchholz <martin@xemacs.org>
11238
11239         * XEmacs 21.2.31 is released.
11240
11241 2000-02-22  Ben Wing <ben@xemacs.org>
11242
11243         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
11244
11245 2000-02-22  Andy Piper  <andy@xemacs.org>
11246
11247         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
11248
11249 2000-02-21  Mike Sperber <mike@xemacs.org>
11250
11251         * .dbxrc:
11252         * .gdbinit:
11253         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
11254         variables.
11255
11256 2000-02-21  Mike Sperber <mike@xemacs.org>
11257
11258         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
11259
11260 2000-02-21  Martin Buchholz <martin@xemacs.org>
11261
11262         * XEmacs 21.2.30 is released.
11263
11264 2000-02-20  Martin Buchholz  <martin@xemacs.org>
11265
11266         Performance hacking.
11267         * *.c (syms_of_*):
11268         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
11269         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
11270         * emacs.c (main_1):
11271         * lisp.h (DEFUN):
11272         * console.c (DEFVAR_CONSOLE_LOCAL_1):
11273         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
11274         * symeval.h (DEFVAR_SYMVAL_FWD):
11275         * symbols.c (guts_of_unbound_marker):
11276         Make all c_readonly objects also lisp_readonly and marked for life.
11277         * lrecord.h (struct lrecord_implementation):
11278         Document flags better.
11279         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
11280         * lrecord.h (DECLARE_LRECORD):
11281         * lrecord.h (XSETRECORD):
11282         * lrecord.h (RECORDP):
11283         * lrecord.h (RECORD_TYPEP):
11284         * lrecord.h (RECORD_MARKER): New.
11285         * lrecord.h (error_check_*):
11286         * lrecord.h (CONCHECK_NONRECORD):
11287         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
11288         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
11289         * lrecord.h (set_lheader_implementation):
11290         * lrecord.h (enum lrecord_type): New.
11291         * symeval.h (SYMBOL_VALUE_MAGIC_P):
11292         * alloc.c (disksave_object_finalization_1):
11293         * alloc.c (mark_object):
11294         * alloc.c (lrecord_type_index):
11295         * alloc.c (tick_lcrecord_stats):
11296         * alloc.c (Fgarbage_collect):
11297         * alloc.c (init_alloc_once_early):
11298         * alloc.c (pdump_load):
11299         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
11300         * alloc.c (lrecord_type_index): Delete.
11301         Make lisp object type indexes be constant.
11302           Makes (byte-compile) 5% faster.
11303         Put all marker functions into their own array.
11304           Makes (garbage-collect) 5% faster.
11305         Optimize SYMBOL_VALUE_MAGIC_P.
11306           Makes (byte-compile) 2-3% faster.
11307         * config.h.in (gc_checking_assert): New.
11308         * alloc.c: Use gc_checking_assert().
11309         * .dbxrc: Make compatible with new object type implementation.
11310         * .gdbinit: Make compatible with new object type implementation.
11311         * alloc.c: Delete all symbols defined only for debugging, such as
11312         Lisp_Type_Vector and lrecord_charset.
11313
11314 2000-02-21  Andy Piper  <andy@xemacs.org>
11315
11316         * gui-msw.c (Fmswindows_shell_execute): fix file location
11317         problems.
11318
11319         * buffer.c (Fkill_buffer): remove buffer from alist buffer
11320         unshowing so that set_window_buffer doesn't undo
11321         kill_buffer_hook's hard work.
11322
11323         * glyphs-widget.c (tab_control_query_geometry): don't count the
11324         first item when calculating geometry.
11325
11326         * glyphs.c (map_subwindow): remove redundant code.
11327         (update_frame_subwindows): be more circumspect about when to
11328         update subwindows.
11329
11330         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
11331         when items haven't changed. Update faces if faces have changed as
11332         well as just the widget face.
11333         (x_tab_control_update): Update faces if faces have changed as well
11334         as just the widget face.
11335
11336 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11337
11338         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
11339         registration.
11340         (build_syscolor_string): Use mswindows_color_to_string to try to
11341         get a named color.
11342         (mswindows_device_system_metrics): Reverse the foreground and
11343         background colors so that they match the documentation.
11344
11345         * objects-msw.c: (mswindows_X_color_map): tweak some values so
11346         they match the default Windows palette.
11347         (mswindows_color_to_string): New function.
11348
11349 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11350
11351         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
11352
11353 2000-02-18  Olivier Galibert  <galibert@pobox.com>
11354
11355         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
11356         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
11357
11358         * symbols.c (init_symbols_once_early): Removed obsolete
11359         DATA_SEG_BITS related kludge.
11360         (defvar_magic): Ditto.
11361
11362         * malloc.c: Removed obsolete DATA_SEG_BITS
11363         * ralloc.c: Ditto.
11364         * mem-limits.h: Ditto.
11365
11366         * Makefile.in.in: Removed obsolete HAVE_SHM
11367         * emacs.c: Ditto.
11368
11369 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11370
11371         *  device-msw.c (mswindows_delete_device): Free DDE string
11372         handles.
11373
11374 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11375
11376         * keymap.c (get_keyelt):
11377         * unexnt.c (unexec):
11378         * vm-limit.c (memory_warnings):
11379         * ntheap.c (recreate_heap):
11380         * ntheap.h (UNINIT_PTR):
11381         * select-msw.c (Fmswindows_get_clipboard):
11382         (Fmswindows_set_clipboard):
11383         * objects-msw.h (MSWINDOWS_BAD_HFONT):
11384         * objects-msw.c:
11385         * menubar-msw.c (displayable_menu_item):
11386         * glyphs-msw.c:
11387         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
11388         * sysdep.c (sys_subshell):
11389         * process-nt.c (nt_create_process):
11390         * nt.c (normalize_filename):
11391         (dostounix_filename):
11392         (unixtodos_filename):
11393         * ntproc.c (win32_executable_type):
11394         * ntplay.c (play_sound_data_1):
11395         (play_sound_file):
11396         * editfns.c (get_home_directory):
11397         * event-msw.c (struct winsock_stream):
11398         (mswindows_dde_callback):
11399         * device-msw.c (msprinter_init_device):
11400         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
11401
11402         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
11403         mswindows_clear_toolbar were swapped!
11404
11405         * objects-msw.c:(colormap_t):
11406         (fontmap_t):
11407         * emacs.c (struct standard_args): Fixed const jumble.
11408
11409         * glyphs-widget.c (update_widget): Fixed comparison notation.
11410
11411         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
11412
11413         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
11414         __declspec(noreturn) syntax.
11415
11416 2000-02-19  Martin Buchholz  <martin@xemacs.org>
11417
11418         * eldap.c (Fldap_open):
11419         (Fldap_search_basic):
11420         (Fldap_add):
11421         (Fldap_modify):
11422         Use new coding system conversion macros.
11423
11424 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
11425
11426         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
11427
11428 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
11429
11430         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
11431         (Fldap_add, Fldap_modify, Fldap_delete): New functions
11432
11433         * eldap.c (Qadd, Qreplace): New constant symbols
11434         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
11435         interruptions by XEmacs signals
11436         Remove unnecessary calls to slow_down_interrupts and
11437         speed_up_interrupts
11438         (Fldap_search_basic): Renamed from Fldap_search_internal
11439         Added new optional parameter VERBOSE that triggers the
11440         display of progress messages
11441         Remove unnecessary calls to slow_down_interrupts and
11442         speed_up_interrupts
11443         LDAP result code analysis rewritten
11444         (Fldap_add, Fldap_modify, Fldap_delete): New functions
11445         (syms_of_eldap): Define the new symbols and functions
11446
11447
11448 2000-02-17  Martin Buchholz  <martin@xemacs.org>
11449
11450         * realpath.c: Determine PATH_MAX maximally portably.
11451
11452         * insdel.c (bytecount_to_charcount): Optimize.
11453         The function used to be optimized for entirely ASCII sequences.
11454         Now it is optimized for successive characters from the same
11455         charset.  This also wins big for _mostly_ ASCII sequences.
11456
11457         * fileio.c (Ffile_truename): convert return from realpath() using
11458         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
11459         - Rewrite GCPROing slightly.
11460
11461         * sysdep.c (sys_open): Do filename conversion, like all other
11462         sys_* functions.  Fixes bug:
11463         (let ((file-name-coding-system 'iso-8859-2))
11464            (write-region x y latin2-name))
11465         ==> writes filename using internal encoding.
11466
11467 2000-02-18  Martin Buchholz  <martin@xemacs.org>
11468
11469         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
11470         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
11471         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
11472         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
11473         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
11474         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
11475         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
11476         (CONST_IF_NOT_DEBUG): Delete.
11477         * alloc.c (this_one_is_unmarkable): Delete.
11478         (mark_object): Don't check for this_one_is_unmarkable. Use the
11479         c_readonly flag instead.
11480         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
11481
11482 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11483
11484         * event-msw.c (mswindows_drain_windows_queue):
11485         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
11486         away redundant repaint events.
11487
11488 2000-02-17  Andy Piper  <andy@xemacs.org>
11489
11490         * redisplay.h: declare mark_redisplay_structs.
11491
11492         * redisplay.c (redisplay_window):
11493         (redisplay_frame): don't check subwindows_state_changed.
11494         (mark_redisplay): mark gutters here.
11495
11496         * glyphs.c: (instantiate_image_instantiator): always layout if we
11497         haven't done so already.
11498         (allocate_image_instance): don't mark as dirty.
11499         (update_subwindow): bind inhibit_quit.
11500
11501         * gutter.c (mark_gutters): new function.
11502
11503         * glyphs-x.c (x_update_widget): Always resize to get round a
11504         widget bug.
11505
11506         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
11507         breaking absolutely everything.
11508
11509         * gutter.h: declare mark_gutters.
11510
11511 2000-02-16  Martin Buchholz <martin@xemacs.org>
11512
11513         * XEmacs 21.2.29 is released.
11514
11515 2000-02-15  Olivier Galibert  <galibert@pobox.com>
11516
11517         * fns.c (size_bit_vector): Fix computation of the size.
11518
11519 2000-02-15  Martin Buchholz  <martin@xemacs.org>
11520
11521         * *.[ch]: Change CONST to const globally.
11522         find -name '*.[ch]' | \
11523         xargs global-replace \
11524         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
11525         - Remove vestigial references to CONST_IS_LOSING
11526
11527 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11528
11529         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
11530         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
11531         events instead of dispatching them directly.
11532         (mswindows_handle_paint): New function to do repainting.
11533         (mswindows_wnd_proc):
11534         (emacs_mswindows_handle_magic_event): Call above function.
11535
11536 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11537
11538         * objects-msw.c (mswindows_create_font_variant): Return the new
11539         font handle.
11540         (initialize_font_instance): Get font metrics from the underlined
11541         variant of the font to cope with the case where the underlined
11542         font has a bigger descent.
11543
11544 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
11545
11546         * gui.c (gui_item_accelerator): Return the first underlined
11547         character in item name.
11548
11549 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11550
11551         * lisp.h: Added Qprinter.
11552
11553         * general.c (syms_of_general): Initialized it.
11554
11555         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
11556         (get_frame_dc):
11557         (get_frame_compdc): Made inline.
11558
11559         * console.h (struct console_methods): Added eject_page method.
11560
11561         * frame.h: Added FRAME_DISPLAY_P and friends.
11562         Aligned backslahes in many macros in more readable fashion.
11563         Added page_number to struct frame, and an accessor macro
11564         for it.
11565
11566         * defice.h: Added DEVICE_DISPLAY_P and friends.
11567
11568         * device.c (Fdevice_printer_p): Used these.
11569
11570         * frame.c (allocate_frame_core): Initialize page number.
11571         (Fprint_job_page_number):
11572         (Fprint_job_eject_page): Implemented.
11573
11574         * frame-msw.c (msprinter_eject_page): Added method.
11575         (msprinter_start_page): Added.
11576
11577         * window.c (Fwindow_truncated_p): Fixed docstring.
11578         (Fwindow_last_line_visible_height): Implemented.
11579
11580 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
11581
11582         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
11583
11584 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
11585
11586         * syntax.c (scan_words): Always advance at least one character.
11587
11588 2000-02-13  Andy Piper  <andy@xemacs.org>
11589
11590         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
11591         to make sure the glyph is in the cachels.
11592
11593         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
11594         global image instance flag.
11595         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
11596         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
11597
11598         * glyphs.c (allocate_image_instance): set dirty bits correctly.
11599         (Fset_image_instance_property): mark layout as changed.
11600         (invalidate_glyph_geometry_maybe): mark layout as changed.
11601         (glyph_width): use new NEEDS_LAYOUT macro.
11602         (glyph_ascent): ditto.
11603         (glyph_descent): ditto.
11604         (glyph_height): ditto.
11605         (image_instance_layout): mark layout as clean after laying out.
11606         (update_subwindow): don't mark layout as clean here.
11607
11608         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
11609         should no longer be needed.
11610
11611         * glyphs-x.c (x_update_widget): sanitize asserts.
11612         (x_finalize_image_instance): sanitize assignment to widgets.
11613
11614         * glyphs-widget.c (widget_instantiate): don't need to clear the
11615         layout flag here.
11616
11617 2000-02-13  Martin Buchholz  <martin@xemacs.org>
11618
11619         * sysdep.c (getcwd): Use standard prototype.
11620         * sysdep.h (getcwd): Use standard prototype.
11621
11622         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
11623         (sequence, start, end).
11624         Remove redundant type checking.
11625         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
11626         view of `caller-protects') to avoid a crash where the real fix was
11627         found elsewhere.
11628
11629 2000-02-12  Martin Buchholz  <martin@xemacs.org>
11630
11631         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
11632
11633         * s/sol2.h: Remove feature macro initialization.
11634
11635         * alloc.c (alloc_lcrecord): Add more type checking assertions.
11636         (vector_hash): New.  Code from internal_hash.
11637         * lrecord.h:
11638         Fix up allocation subsystem comments.
11639
11640         * config.h.in: Add __EXTENSIONS__ for Solaris.
11641
11642         * systime.h (EMACS_GETTIMEOFDAY): New.
11643         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
11644         Remove Solaris-specific code.
11645         Use void* for the (ignored) second arg for gettimeofday().
11646
11647         * elhash.c (hash_table_hash): Implement it, finally.
11648         * elhash.c:  Use hashcode_t.
11649
11650         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
11651         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
11652
11653         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
11654         * fns.c (size_bit_vector):
11655         * alloc.c (size_vector):
11656         (make_vector_internal):
11657         (make_bit_vector_internal):
11658         (sweep_bit_vectors_1):
11659         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
11660
11661 2000-02-10  Martin Buchholz  <martin@xemacs.org>
11662
11663         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
11664         Include strings.h to avoid warnings for bzero and strcasecmp.
11665
11666 2000-02-10  Olivier Galibert  <galibert@pobox.com>
11667
11668         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
11669         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
11670
11671         * fns.c (size_bit_vector): New.  Declare bit vectors as a
11672         sequence.
11673
11674 2000-02-10  Olivier Galibert  <galibert@pobox.com>
11675
11676         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
11677         use a value field instead.
11678         (symbol_value_forward_forward): Use value field.
11679         (DEFVAR_SYMVAL_FWD): Use value field.
11680         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
11681         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
11682         (DEFVAR_CONST_INT): Ditto.
11683         (DEFVAR_BOOL): Ditto.
11684         (DEFVAR_CONST_BOOL): Ditto.
11685         (DEFVAR_INT_MAGIC): Ditto.
11686         (DEFVAR_BOOL_MAGIC): Ditto.
11687
11688         * symbols.c (guts_of_unbound_marker): Use value field.
11689         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
11690         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
11691
11692         * lisp.h: Declare dumpopaque and noninteractive1.
11693
11694         * alloc.c (dumpopaque): Added.
11695         (pdump_dump_opaquevec): Added.
11696         (pdump): Call pdump_dump_opaquevec to dump opaque data.
11697         (pdump_load): Reload opaque data.  Sync noninteractive1 with
11698         noninteractive.
11699
11700 2000-02-10  Andy Piper  <andy@xemacs.org>
11701
11702         * glyphs.c (image_instance_layout): if the size changes, mark it
11703         as such.
11704
11705         * redisplay-output.c (redisplay_output_layout): Update the
11706         subwindow here.
11707         (redisplay_output_subwindow): ditto.
11708
11709         * glyphs.c (update_subwindow): make sure we reset flags for
11710         layouts as well as everything else.
11711
11712         * glyphs-widget.c (layout_layout): don't need to set the instances
11713         dimensions here.
11714
11715 2000-02-09  Martin Buchholz  <martin@xemacs.org>
11716
11717         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
11718         not HAVE_DLOPEN, which is a lower-level thing.
11719
11720         * .cvsignore: Ignore gmon.out
11721
11722 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
11723
11724         * .cvsignore: Ignore portable dumper xemacs.dmp file
11725
11726 2000-02-09  Andy Piper  <andy@xemacs.org>
11727
11728         * redisplay-output.c (redisplay_output_layout): be more clever
11729         about when we output based on the changed flags.
11730
11731         * glyphs.h (struct image_instantiator_methods): add update_method.
11732         (struct Lisp_Image_Instance): add changed flags. Declare new
11733         macros for manipulating them.
11734
11735         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
11736         (image_instance_parent_glyph): find an image_instance's parent
11737         glyph or image_instance.
11738         (image_instance_layout): mark the size as changed.
11739         (set_image_instance_dirty_p): new function. mark an image
11740         instance, plus all of its parents, as dirty.
11741         (Fset_image_instance_property): use it.
11742         (Fglyph_animated_timeout_handler): use it.
11743         (update_subwindow): call update_widget and device methods for
11744         update_subwindow. Mark all changed flags as clean.
11745         (Fresize_subwindow): mark size as changed.
11746
11747         * glyphs-x.c (x_finalize_image_instance): try and detect gc
11748         failures.
11749         (x_update_subwindow): only resize subwindows here.
11750         (x_update_widget): new function. Update all changed properties of
11751         a widget.
11752         (x_resize_subwindow): deleted.
11753         (x_widget_set_property): deleted.
11754         (x_progress_gauge_set_property): deleted.
11755         (x_progress_gauge_update): new function. Implement recorded
11756         changes.
11757         (x_tab_control_update): ditto.
11758         (x_tab_control_set_property): deleted.
11759         (console_type_create_glyphs_x): declare new functions.
11760         (image_instantiator_format_create_glyphs_x): ditto.
11761
11762         * glyphs-widget.c (widget_set_property): mark text changed.
11763         (update_widget): new function. Update properties of a widget.
11764         (widget_instantiate): for layouts make sure we set their
11765         children's parent correctly.
11766         (tab_control_set_property): new function. Record changes that will
11767         take place under redisplay's control.
11768         (progress_gauge_set_property): ditto.
11769         (image_instantiator_progress_guage): declare new functions.
11770         (image_instantiator_tab_control): ditto.
11771
11772         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
11773         now.
11774         (mswindows_update_widget): new function. Update all properties on
11775         a widget that have changed.
11776         (mswindows_button_update): new function. Update a button's set
11777         state.
11778         (mswindows_tab_control_update): new function. Update the items in
11779         a tab.
11780         (mswindows_tab_control_set_property): deleted.
11781         (mswindows_progress_gauge_update): new function. Update the
11782         progress gauge's progress.
11783         (mswindows_widget_set_property): deleted. This is all done
11784         asynchronously now.
11785         (mswindows_progress_gauge_set_property): ditto.
11786         (console_type_create_glyphs_mswindows): declare new methods.
11787         (image_instantiator_format_create_glyphs_mswindows): ditto.
11788
11789         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
11790         (msprinter_set_frame_properties): ditto.
11791
11792         * console.h (struct console_methods): Add update_widget_method.
11793
11794 2000-02-09  Andy Piper  <andy@xemacs.org>
11795
11796         * gui-msw.c (Fmswindows_shell_execute): Make
11797         mswindows-shell-execute industrial strength.
11798
11799 2000-02-08  Martin Buchholz  <martin@xemacs.org>
11800
11801         * lrecord.h: Make macro argument `props' match member function `plist'.
11802         * fns.c (Fget):
11803         * fns.c (Fput):
11804         * fns.c (Fremprop):
11805         * fns.c (Fobject_plist):
11806         * alloc.c:
11807         * symbols.c:
11808         Object property list frobbing cleanup.
11809         - Allow any lisp object (compared with `eq'), not just symbols, as
11810           keys in object plists.
11811         - Move symbol plist frobbing into symbols.c, where it belongs.
11812         - Move string plist frobbing into alloc.c, where it belongs.
11813         - Everything's an lrecord now, so no need to test for symbolp, etc.
11814         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
11815
11816         * extents.c: Reorder code to remove declarations.
11817
11818         * frame.h (store_in_alist): Remove useless declaration.
11819
11820 2000-02-07  Martin Buchholz  <martin@xemacs.org>
11821
11822         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
11823         * config.h.in: Add HAVE_XCONVERTCASE.
11824
11825 2000-02-07  Andy Piper  <andy@xemacs.org>
11826
11827         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
11828         it breaks many things.
11829
11830 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
11831
11832         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
11833         actually can start a common comment type.
11834         * src/syntax.h (SYNTAX_END_P): ditto for end.
11835
11836 2000-02-07  Martin Buchholz <martin@xemacs.org>
11837
11838         * XEmacs 21.2.28 is released.
11839
11840 2000-02-06  Martin Buchholz  <martin@xemacs.org>
11841
11842         * event-Xt.c (x_keysym_to_character): New.
11843         (maybe_define_x_key_as_self_inserting_character): New.
11844         (x_has_keysym): New.
11845         Auto-define all keys on the keyboard as self-insert-key.
11846
11847 2000-02-02  Martin Buchholz  <martin@xemacs.org>
11848
11849         * menubar.c (vars_of_menubar): A small code simplification.
11850
11851         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
11852
11853         * ExternalShell.c:
11854         * ExternalClient.c:
11855         * EmacsShell-sub.c:
11856         * EmacsManager.c:
11857         * EmacsFrame.c:
11858         Use consistent style for specifying X resources.
11859
11860         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
11861         This makes (dontusethis-set-symbol-value-handler) actually usable.
11862
11863         * lrecord.h (lrecord_decription_type):
11864         * alloc.c (pdump_register_sub):
11865         (pdump_dump_data):
11866         (pdump_reloc_one):
11867         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
11868         Comply with XEmacs coding style.
11869         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
11870         args, and XD_LISP_OBJECT_ARRAY with 3 args.
11871
11872         * keymap.c (Faccessible_keymaps):
11873         Make (accessible-keymaps map "\C-h") do the Right Thing.
11874         Make (accessible-keymaps map []) do the Right Thing.
11875         Make (accessible-keymaps map "") do the Right Thing.
11876         (check_keymap_definition_loop): New function.
11877         (keymap_store_internal): Keep luser from shooting self in foot,
11878           via (define-key ctl-x-4-map "p" global-map).
11879         Remove fullness slot from struct Lisp_Keymap, since hash tables
11880         are now reliable.
11881         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
11882
11883 2000-01-30  Martin Buchholz  <martin@xemacs.org>
11884
11885         * redisplay.c (init_redisplay): Fix small memory leak.
11886         * elhash.h:
11887         * elhash.c (pdump_reorganize_hash_table):
11888         Rename from reorganize_hash_table. Change prototype.
11889         Reuse the original memory for hentries.  Save 100k.
11890         * alloc.c (PDUMP_READ): new macro.
11891         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
11892         * alloc.c: No need to #ifndef before #undef.
11893
11894         * print.c: Allow debug_print() to print readably by modifying
11895         debug_print_readably.  Use consistent variable names.
11896
11897         * .dbxrc: Try to get things to work even if stopped in a function
11898         without source available by explicitly specifying source files.
11899 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11900
11901         * unexnt.c (_start): Removed bogus code which caused loading heap
11902         from differrent executable file.
11903         Removed bogus assignment to _fmode, which caused inconsistencies.
11904
11905 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11906
11907         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
11908         Have spawnve encapsulation regard DONT_ENCAPSULATE.
11909         Do not preliminary `#define signal sigset'.
11910
11911         * systime.h: Do not prototype environ on windows nt and cygwin,
11912         this conflicts with system header.
11913
11914         * syssignal.h: Use correct define for WINDOWSNT
11915
11916         * sysdep.h: Do not prototype environ on windows nt, this conflicts
11917         with system header.
11918
11919         * sysdep.c (near start of file): Fixed commentary and rearranged
11920         ifdefs in readable order.
11921         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
11922         (start_of_text):
11923         (end_of_text):
11924         (end_of_data): Do not compile in if using PDUMP.
11925
11926         * symsinit.h: Prototyped vars_of_nt().
11927
11928         * ntproc.c (windows9x_p): Added, instead of os_subtype.
11929         (find_child_console): Use it.
11930         (sys_kill): Use it.
11931
11932         * ntheap.h: Do not extern os_subtype.
11933
11934         * ntheap.c (cache_system_info): Do not cache unneeded:
11935         nt_major_version, nt_minor_version and os_subtype.
11936         (recreate_heap): Do not compile in when PDUMPing.
11937
11938         * nt.c (geteuid and friends): Use the new varibale
11939         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
11940         (init_user_info): Removed the above mentioned hackery.
11941         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
11942         stat has been fixed in the C runtime.
11943         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
11944
11945         * file-coding.c (struct file_coding_dump): Do not define
11946         ucs_to_mule_table in the struct if not MULE.
11947         (struct struct lrecord_description fcd_description_1): Do not dump
11948         the above.
11949
11950         * emacs.c (main_1): Call vars_of_nt().
11951         (right before Fdump_emacs_data): Don't need lastfile if using both
11952         portabe dumper and system malloc.
11953
11954         * alloc.c (Fmemory_limit): Conditionalized out.
11955         (pdump): Use OPEN_BINARY for the portable dump file.
11956         (pdump_load): Ditto.
11957
11958 2000-02-02  Mike Alexander  <mta@arbortext.com>
11959
11960         * nt.c (convert_time): Set tm_isdst before calling mktime and
11961         avoid calling it at all if the compiler supports 64 bit integers.
11962         Also initialize utc_base_ft before using it.
11963
11964 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
11965
11966         * frame.c (change_frame_size_1): Take f->internal_border_width
11967         into consideration when calculating the width of the frame.
11968
11969 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11970
11971         * window.c (frame_min_height):
11972         (frame_size_valid_p):
11973         (frame_pixsize_valid_p): Added.
11974         (check_frame_size): Generalized.
11975
11976         * window.h: Prototyped the above.
11977
11978         * lisp.h:
11979         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
11980         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
11981         Deleted Vwin32_* and Vbinary_process_* unused variables.
11982
11983         * device-msw.c (msprinter_init_device): Do not get printer font
11984         list; Added DEVMODE functions.
11985
11986         * frame-msw.c: Added lots of printer code.
11987
11988         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
11989         general.c.
11990
11991         * console-msw.h: Added more msprinter device private slots.
11992
11993 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11994
11995         * event-msw.c (key_needs_default_processing_p): Added.
11996         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
11997
11998 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11999
12000         * glyphs.c (image_instance_layout): Mark image instance as clean
12001         after layout.
12002         (glyph_dirty_p): Removed redundant function.
12003         (invalidate_glyph_geometry_maybe): Added.
12004         (update_glyph_cachel_data): Call it.
12005
12006         * glyphs.h: Prototyped it.
12007
12008         * redisplay.c (add_glyph_rune): Call it.
12009         (redisplay_window): Reset glyphs cachels when frame faces have
12010         changed, thus forcing recomputation of built-in border glyphs.
12011
12012 2000-01-30  Martin Buchholz  <martin@xemacs.org>
12013
12014         * Makefile.in.in: Make portable dumper and purify play well together.
12015         Add imperfect, but better than nothing, support for pdump.
12016         Remove xemacs.dmp when temacs is re-generated.
12017         Don't ignore errors when dumping xemacs.
12018
12019         * symbols.c (maybe_call_magic_handler): Remove one magic number.
12020
12021 2000-01-28  Andy Piper  <andy@xemacs.org>
12022
12023         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
12024         (setup_normal_frame): ditto.
12025         (setup_frame_without_minibuffer): ditto.
12026         (setup_minibuffer_frame): ditto.
12027         (delete_frame_internal): ditto.
12028         (Fmake_frame_invisible): ditto.
12029         (Ficonify_frame): ditto.
12030
12031         * window.h: change Fset_window_buffer signature.
12032
12033         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
12034         (Fset_window_buffer): allow recording of buffer if the window is
12035         the selected window.
12036         (window_loop): Use new Fset_window signature.
12037
12038 2000-01-23  Daniel Pittman  <daniel@danann.net>
12039
12040         * config.h.in: Added template for `HAVE_ATHENA_3D'
12041
12042 2000-01-29  Andy Piper  <andy@xemacs.org>
12043
12044         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
12045
12046         * gutter.c (output_gutter): Don't output if the window isn't live.
12047
12048 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12049
12050         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
12051         of 01/12/00: Moved SetFocus back here where it belongs.
12052
12053 2000-01-23  Andy Piper  <andy@xemacs.org>
12054
12055         * s/cygwin32.h: declare printer things.
12056
12057 2000-01-26  Andy Piper  <andy@xemacs.org>
12058
12059         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
12060         Alexander.
12061
12062 2000-01-24  Andy Piper  <andy@xemacs.org>
12063
12064         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
12065         (mswindows_button_instantiate): Make sure glyph is a pixmap.
12066
12067         * glyphs-widget.c (widget_instantiate): Avoid shadows.
12068
12069         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
12070
12071         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
12072
12073         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
12074         (mswindows_output_display_block): Avoid local shadows.
12075
12076         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
12077         (mswindows_enqueue_mouse_button_event): ditto.
12078         (mswindows_handle_gui_wm_command): remove declaration.
12079
12080         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
12081         warnings.
12082
12083         * console-msw.h: Avoid shadows.
12084         (mswindows_get_toolbar_button_text):
12085         (emacs_mswindows_create_stream_pair):
12086         (emacs_mswindows_delete_stream_pair):
12087         (mswindows_handle_toolbar_wm_command): declare.
12088
12089         * device-msw.c (build_syscolor_string): Avoid shadows.
12090
12091 2000-01-23  Andy Piper  <andy@xemacs.org>
12092
12093         * glyphs-widget.c (widget_instantiate): reverse the items for
12094         layouts so that children are in the expected order.
12095
12096 2000-01-28  Martin Buchholz  <martin@xemacs.org>
12097
12098         * ralloc.c: safe_bcopy ==> memmove
12099         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
12100         * s/msdos.h: Remove BCOPY macros.
12101         * insdel.c (gap_right): Remove BCOPY conditional code.
12102         * insdel.c (gap_left): Remove BCOPY conditional code.
12103         XEmacs demands a working ANSI C compiler - hence memmove.
12104
12105         * regex.c (regex_compile): Remove accidental use of trigraphs.
12106
12107 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12108
12109         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
12110         event timestamp.
12111
12112 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12113
12114         * event-msw.c (mswindows_drain_windows_queue): Added the
12115         parameter.
12116         (mswindows_need_event): Commented the call to
12117         mswindows_drain_windows_queue().
12118         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
12119         only.
12120
12121         * console-msw.h: Moved a few function prototypes here from
12122         event-msw.c.
12123
12124         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
12125         parameter from unsigned short to unsigned long.
12126         (Fmswindows_shell_execute): Added return value.
12127
12128 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
12129
12130         * sysdep.c (init_system_name):
12131           process-unix.c (unix_canonicalized_host_name):
12132         Don't call freeaddrinfo() if getaddrinfo() fails.
12133
12134         * process-unix.c (unix_open_unix_network_stream):
12135         Moved the code to get a port # into address loop.
12136
12137 2000-01-27  Martin Buchholz  <martin@xemacs.org>
12138
12139         * buffer.c (reinit_vars_of_buffer):
12140         The right place to initialize conversion_in_dynarr and
12141         conversion_out_dynarr.
12142
12143         * alloc.c (pdump): Use the real open() till sys_open() is functional.
12144
12145         * process-unix.c (unix_canonicalize_host_name): Muleize.
12146         (unix_open_network_stream): Muleize.
12147
12148         * buffer.h: Fix up prototypes for ralloc.c functions.
12149
12150 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
12151         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
12152         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
12153                 instead of gethostbyname()
12154         * process-unix.c: In unix_canonicalize_host_name() and
12155                 unix_open_network_stream(), add code to use getaddrinfo()
12156                 instead of gethostbyname().
12157
12158 2000-01-27  Daniel Pittman <daniel@danann.net>
12159
12160         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
12161         libs when built with flat Athena.
12162
12163 2000-01-27  Martin Buchholz  <martin@xemacs.org>
12164
12165         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
12166         Use coding standards for function prototypes.
12167
12168 2000-01-25  Martin Buchholz  <martin@xemacs.org>
12169
12170         * dialog-msw.c (push_lisp_string_as_unicode):
12171         * doc.c (unparesseuxify_doc_string):
12172         * dired.c (Fuser_name_completion_1):
12173         * dired.c (Fuser_name_all_completions):
12174         * dired.c (free_user_cache):
12175         * dired.c (user_name_completion):
12176         * console-x.c (get_display_arg_connection):
12177         * minibuf.c (clear_echo_area_internal):
12178         * minibuf.c (echo_area_append):
12179         * eldap.c (Fldap_open):
12180         * eldap.c (Fldap_search_internal):
12181         * frame-x.c (x_set_frame_text_value):
12182         * frame-x.c (x_set_frame_properties):
12183         * frame-x.c (x_create_widgets):
12184         * redisplay-tty.c (term_get_fkeys_1):
12185         * objects-x.c (x_parse_nearest_color):
12186         * objects-x.c (x_valid_color_name_p):
12187         * objects-x.c (x_initialize_font_instance):
12188         * objects-x.c (x_list_fonts):
12189         * objects-x.c (x_find_charset_font):
12190         * tooltalk.c (Fadd_tooltalk_message_arg):
12191         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
12192         * tooltalk.c (Fadd_tooltalk_pattern_arg):
12193         * process-unix.c (unix_create_process):
12194         * ntproc.c (sys_spawnve):
12195         * sound.c (Fplay_sound_file):
12196         * sound.c (Fplay_sound):
12197         * buffer.c (init_initial_directory):
12198         * buffer.c (init_buffer):
12199         * editfns.c (init_editfns):
12200         * editfns.c (Ftemp_directory):
12201         * editfns.c (Fuser_full_name):
12202         * editfns.c (uncache_home_directory):
12203         * editfns.c (get_home_directory):
12204         * editfns.c (Fuser_home_directory):
12205         * editfns.c (Fformat_time_string):
12206         * editfns.c (Fcurrent_time_string):
12207         * gui-x.c (button_item_to_widget_value):
12208         * database.c (Fopen_database):
12209         * event-Xt.c (x_to_emacs_keysym):
12210         * event-Xt.c (x_event_to_emacs_event):
12211         * event-Xt.c (describe_event_window):
12212         * event-msw.c (mswindows_wnd_proc):
12213         * glyphs-eimage.c (jpeg_instantiate):
12214         * glyphs-eimage.c (gif_instantiate):
12215         * glyphs-eimage.c (png_instantiate):
12216         * glyphs-eimage.c (tiff_instantiate):
12217         * glyphs-x.c (xbm_instantiate_1):
12218         * glyphs-x.c (x_xbm_instantiate):
12219         * glyphs-x.c (x_xface_instantiate):
12220         * glyphs-x.c (autodetect_instantiate):
12221         * glyphs-x.c (cursor_font_instantiate):
12222         * glyphs-x.c (x_widget_instantiate):
12223         * glyphs-x.c (x_widget_set_property):
12224         * glyphs-x.c (x_widget_property):
12225         * glyphs-x.c (BUILD_GLYPH_INST):
12226         * print.c (write_string_to_stdio_stream):
12227         * print.c (output_string):
12228         * print.c (Falternate_debugging_output):
12229         * print.c (Fexternal_debugging_output):
12230         * glyphs-msw.c (extract_xpm_color_names):
12231         * glyphs-msw.c (mswindows_xpm_instantiate):
12232         * glyphs-msw.c (bmp_instantiate):
12233         * glyphs-msw.c (resource_name_to_resource):
12234         * glyphs-msw.c (mswindows_resource_instantiate):
12235         * glyphs-msw.c (xbm_instantiate_1):
12236         * glyphs-msw.c (mswindows_xbm_instantiate):
12237         * glyphs-msw.c (mswindows_xface_instantiate):
12238         * glyphs-msw.c (mswindows_widget_instantiate):
12239         * glyphs-msw.c (add_tree_item):
12240         * glyphs-msw.c (add_tab_item):
12241         * glyphs-msw.c (mswindows_combo_box_instantiate):
12242         * glyphs-msw.c (mswindows_widget_property):
12243         * glyphs-msw.c (mswindows_combo_box_property):
12244         * glyphs-msw.c (mswindows_widget_set_property):
12245         * console.c (stuff_buffered_input):
12246         * objects-msw.c (mswindows_initialize_color_instance):
12247         * objects-msw.c (mswindows_valid_color_name_p):
12248         * objects-msw.c (mswindows_list_fonts):
12249         * objects-msw.c (mswindows_font_instance_truename):
12250         * bytecode.c (optimize_compiled_function):
12251         * select-x.c (symbol_to_x_atom):
12252         * select-x.c (x_atom_to_symbol):
12253         * select-x.c (hack_motif_clipboard_selection):
12254         * select-x.c (selection_data_to_lisp_data):
12255         * select-x.c (lisp_data_to_selection_data):
12256         * select-x.c (Fx_get_cutbuffer_internal):
12257         * select-x.c (Fx_store_cutbuffer_internal):
12258         * buffer.h (TO_EXTERNAL_FORMAT): New function.
12259         * buffer.h (TO_INTERNAL_FORMAT): New function.
12260         * emacs.c (make_arg_list_1):
12261         * emacs.c (make_argc_argv):
12262         * emacs.c (main_1):
12263         * emacs.c (Fdump_emacs):
12264         * emacs.c (split_string_by_emchar_1):
12265         * file-coding.h:
12266         * lisp.h:
12267         * lstream.h:
12268         * symsinit.h:
12269         * device-x.c (x_init_device):
12270         * device-x.c (Fx_valid_keysym_name_p):
12271         * device-x.c (Fx_get_font_path):
12272         * device-x.c (Fx_set_font_path):
12273         * glyphs.c (bitmap_to_lisp_data):
12274         * glyphs.c (pixmap_to_lisp_data):
12275         * alloc.c (make_ext_string): Use coding system arguments.  Update
12276         all callers.
12277         * alloc.c (build_string):
12278         * callproc.c (child_setup):
12279         * callproc.c (init_callproc):
12280         * fileio.c (lisp_strerror):
12281         * fileio.c (directory_file_name):
12282         * fileio.c (Fexpand_file_name):
12283         * fileio.c (Ffile_truename):
12284         * fileio.c (Fsysnetunam):
12285         * fileio.c (Fdo_auto_save):
12286         * sysdep.c (sys_readdir):
12287         * tests.c: New file.  Allow adding C tests.
12288         Replace GET_* macros with a more comprehensible and flexible
12289         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
12290         Modify all calls.
12291         Any coding system can be used to do format conversion.
12292         Eliminate enum external_data_format.
12293         Eliminate convert_to_external_format.
12294         Eliminate convert_to_internal_format.
12295         Make sure file-name, keyboard, terminal, and ctext are always
12296         defined as coding systems or aliases.  Make
12297         file-name-coding-system, terminal-coding-system, and
12298         keyboard-coding-system magical variables that are equivalent to
12299         defining the corresponding coding system aliases.
12300
12301         * file-coding.c (Fcoding_system_canonical_name_p): New function.
12302         * file-coding.c (Fcoding_system_alias_p): New function.
12303         * file-coding.c (Fcoding_system_aliasee): New function.
12304         * file-coding.c (append_suffix_to_symbol): New function.
12305         * file-coding.c (dangling_coding_system_alias_p): New function.
12306         * file-coding.c (Ffind_coding_system):
12307         * file-coding.c (Fcopy_coding_system):
12308         * file-coding.c (encode_coding_no_conversion):
12309         * file-coding.c (syms_of_file_coding):
12310         * file-coding.c (vars_of_file_coding):
12311         Rewrite coding system alias code.
12312         Allow nested aliases, like symbolic links.
12313         Allow redefinition of coding system aliases.
12314         Prevent existence of dangling coding system aliases.
12315
12316         * dired.c (Fuser_name_completion_1):
12317         * dired.c (Fuser_name_all_completions):
12318         A crash would happen if user did QUIT in the middle of building
12319         user_name_cache.  Remove redundant code in mainline and unwind_protect.
12320
12321         * lisp.h:
12322         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
12323
12324         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
12325         an unsigned char *.  Update all callers.
12326
12327 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12328
12329         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
12330
12331 2000-01-25  Martin Buchholz  <martin@xemacs.org>
12332
12333         * elhash.c (hentry_description): Use more portable definition.
12334         (resize_hash_table): Initialize new hentries using
12335         xnew_array_and_zero, thereby simplifying the code.
12336
12337         * mule-charset.c (make_charset): Make sure entire object is
12338         initialized, to avoid Purify warnings.
12339
12340         * alloc.c (resize_string): Fix unlikely crash with big strings.
12341
12342 2000-01-24  Martin Buchholz  <martin@xemacs.org>
12343
12344         * realpath.c (xrealpath):
12345         Don't call getwd().
12346
12347 2000-01-25  Martin Buchholz  <martin@xemacs.org>
12348
12349         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
12350
12351 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
12352
12353         * unexelfsgi.c (unexec): Change the way we decide which segment
12354         should be extended.
12355
12356         Assumption that .bss section should be outside the PT_LOADable
12357         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
12358         it's present) is inside the 'data' segment. This would fail the
12359         test which was used to find a segment to grow and cover new
12360         heap. Instead of this assumption, I created another one - on IRIX
12361         the segment to grow should start below .bss and it's address
12362         should extent above the end of .bss. Once this segment is
12363         identified, it's grown to accommodate the new heap and new
12364         zero-length .bss section is added at the end of .data2.
12365
12366 2000-01-25  Martin Buchholz  <martin@xemacs.org>
12367
12368         * eval.c (Feval): Wrong number of arguments should use original
12369         function, not the indirect_function version of it.
12370
12371 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
12372
12373         * glyphs-x.c (x_button_instantiate): Don't add image if
12374         it is not a pixmap.
12375         (x_locate_pixmap_file): Call Fexpand_file_name when file name
12376         is relative.
12377
12378 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
12379
12380         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
12381         declaration.
12382         (DEFVAR_INT_MAGIC): Ditto.
12383         (DEFVAR_BOOL_MAGIC): Ditto.
12384         * glyphs.h: Reindent backslash.
12385
12386 2000-01-24  Martin Buchholz  <martin@xemacs.org>
12387
12388         * glyphs-widget.c (layout_query_geometry):
12389         (layout_layout): Use correct types for gheight, gwidth.
12390
12391 2000-01-24  Martin Buchholz  <martin@xemacs.org>
12392
12393         * EmacsManager.c (QueryGeometry): Purified.
12394
12395 2000-01-23  Martin Buchholz  <martin@xemacs.org>
12396
12397         * alloc.c (make_float): Make sure entire object is initialized, to
12398         avoid Purify warnings.
12399         (pdump_register_sub): Remove useless assignment.
12400         (pdump): Use xmalloc, not malloc.
12401         (pdump_load): Use xmalloc, not malloc.
12402
12403 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12404
12405         * callproc.c:
12406         * dired-msw.c:
12407         * fileio.c:
12408         * process-nt.c:
12409         * redisplay-msw.c:
12410         * sysdep.c: Removed redundant #include <windows.h>
12411
12412 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12413
12414         * frame.c (delete_frame_internal): Do not delete device when its
12415         implementation so declares.
12416         (delete_frame_internal): Set device selected frame to nil when
12417         last frame goes away.
12418
12419         * device-msw.c (msprinter_device_system_metrics): Implemented.
12420         (mswindows_device_system_metrics): Added 'device-dpi property.
12421
12422         * device.c: (Fdevice_printer_p): Added.
12423         Added 'offset-workspace device metric.
12424
12425         * console.h (device_metrics): Declared DM_offset_workspace.
12426
12427 2000-01-23  Martin Buchholz  <martin@xemacs.org>
12428
12429         * fileio.c (Ffile_truename): Remove pointless and confusing
12430         initialization of elen.
12431
12432         * glyphs-widget.c: Compiler warning fixes.
12433
12434 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
12435
12436         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
12437         instead of a Lisp_Object as argument to make it consistent with
12438         the other LIVE_P macros.
12439         (CHECK_LIVE_PROCESS): New macro.
12440
12441         * process.c: Declare Qprocess_live_p.
12442         (Fprocess_live_p): New function.
12443         (create_process): Use PROCESS_LIVE_P.
12444         (read_process_output): Ditto.
12445         (set_process_filter): Ditto.
12446         (Fdelete_process): Ditto.
12447         (kill_buffer_processes): Ditto
12448         (process_send_signal): Use CHECK_LIVE_PROCESS.
12449         (Fprocess_input_coding_system): Check whether process is still
12450         alive (fix PR#1061).
12451         (Fprocess_output_coding_system): Ditto.
12452         (Fprocess_coding_system): Ditto.
12453         (Fset_process_input_coding_system): Ditto.
12454         (Fset_process_output_coding_system): Ditto.
12455
12456 2000-01-23  Andy Piper  <andy@xemacs.org>
12457
12458         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
12459         layout and widget.
12460
12461         * glyphs.c (mark_image_instance): take into account changed
12462         image_instance format.
12463         (image_instance_equal): ditto.
12464         (image_instance_hash): ditto.
12465
12466         * glyphs-widget.c (widget_instantiate): Incorporate layout
12467         instantiation here. Delay layout of the layout until later.
12468         (layout_instantiate): deleted.
12469         (layout_query_geometry): new function. get the geometry of a
12470         layout.
12471         (layout_layout): layout a layout dynamically.
12472         (image_instantiator_widget): New function - splitting up
12473         image_instantiator_format_create_glyphs_widget for netwinder
12474         compilation.
12475         (image_instantiator_buttons):
12476         (image_instantiator_edit_fields):
12477         (image_instantiator_combo_box):
12478         (image_instantiator_scrollbar):
12479         (image_instantiator_progress_guage):
12480         (image_instantiator_tree_view):
12481         (image_instantiator_tab_control):
12482         (image_instantiator_labels):
12483         (image_instantiator_layout): ditto.
12484         (image_instantiator_format_create_glyphs_widget): Call preceding
12485         functions.
12486
12487 2000-01-22  Martin Buchholz  <martin@xemacs.org>
12488
12489         * process.c (Fset_process_coding_system):
12490         * device-x.c (Fx_keysym_hash_table):
12491         Docstring fixes.
12492
12493         * lstream.c (Lstream_write): Return documented value, not 0.
12494
12495         * fileio.c (directory_file_name):
12496         (Fsubstitute_in_file_name):
12497         (Fsubstitute_insert_file_contents_internal):
12498         (Fwrite_region_internal):
12499         * emacs.c:
12500         * sysdep.c:
12501         * getloadavg.c:
12502         * systty.h:
12503         Remove vestigial APOLLO-conditional code.
12504
12505 2000-01-21  Martin Buchholz  <martin@xemacs.org>
12506
12507         * getpagesize.h: Add guard macros.
12508         * libsst.h: Add guard macros.
12509         * libst.h: Add guard macros.
12510         * line-number.h: Add guard macros.
12511         * ndir.h: Add guard macros.
12512         * sysfloat.h: Add guard macros.
12513         * sysfile.h: Add guard macros.
12514         * sysproc.h: Add guard macros.
12515         * syswait.h: Add guard macros.
12516         * xintrinsic.h: Add guard macros.
12517         * xintrinsicp.h: Add guard macros.
12518         * xmmanager.h: Add guard macros.
12519         * xmmanagerp.h: Add guard macros.
12520         * xmprimitive.h: Add guard macros.
12521         * xmu.h: Add guard macros.
12522         * gpmevent.h: Add copyright statement. Add guard macros.
12523         * miscplay.h: Add guard macros.
12524         * *.h: Use consistent C-standards-approved guard macro names.
12525
12526         * opaque.c (make_opaque): Switch parameter order.
12527         * opaque.h (make_opaque): Switch parameter order.
12528         Update all callers.
12529         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
12530
12531         * config.h.in (type_checking_assert): Added.
12532         (bufpos_checking_assert): Added.
12533
12534 2000-01-21  Martin Buchholz  <martin@xemacs.org>
12535
12536         * alloc.c: Harmless pdump changes.
12537         - Use countof().
12538         - spell alignment correctly.
12539         * sysdep.c: Use countof()
12540
12541 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12542
12543         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
12544         initially_selected_for_input() console method, default to 0.
12545         (semi_canonicalize_console_connection): Try to delegate to
12546         canonicalize_console_connection if no such console method.
12547         (canonicalize_console_connection): Vice versa.
12548         (print_console): Do not print nil connection.
12549
12550         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
12551         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
12552         (XDEVIMPF_FRAMELESS_OK): Added.
12553         (CONSOLE_INHERITS_METHOD): Added.
12554
12555         * console-msw.c (mswindows_canonicalize_console_connection):
12556         Added.
12557         (mswindows_canonicalize_device_connection): Added.
12558
12559         * console-msw.h (struct msprinter_device): Added this struct and
12560         accessor macros.
12561         (mswindows_device): Made fontlist a lisp object.
12562
12563         * device.c (semi_canonicalize_device_connection):  Try to delegate
12564         to canonicalize_device_connection if no such console method.
12565         (canonicalize_device_connection): Vice versa.
12566         (print_device): Do not print nil connection.
12567
12568         * device-msw.c (mswindows_init_device): Call InitCommonControls
12569         when have widgets.
12570         (mswindows_delete_device): Removed fontlist deallocation.
12571         (mswindows_mark_device): Added.
12572
12573         * events.c (event_equal): Added abort() at unreached code.
12574         (event_hash): Ditto.
12575
12576         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
12577         fallback tags of Windows devices.
12578
12579         * general.c (syms_of_general): Initialized Qmsprinter.
12580
12581         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
12582         of fallback tags of Windows devices.
12583
12584         * lisp.h: Declared Qmsprinter.
12585
12586         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
12587         of strings.
12588         (mswindows_list_fonts): Ditto.
12589         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
12590         that it can be used by both mswindows and msprinter devices.
12591         (initialize_font_instance): Added.
12592         (mswindows_initialize_font_instance): Use it.
12593         (msprinter_initialize_font_instance): Added.
12594
12595         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
12596         and implementation flags check.
12597         (redisplay_without_hooks): Changed the call to the above.
12598         (Fredraw_device): Ditto.
12599         (Fredisplay_device): Ditto.
12600
12601         * redisplay-msw.c (get_frame_dc): Implemented.
12602         (get_frame_compdc): Implemented.
12603         (many functions): Use the two functions above to get device
12604         contexts, ether for a window or a printer.
12605
12606 2000-01-21  Olivier Galibert  <galibert@pobox.com>
12607
12608         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
12609         initialization here.
12610         (init_symbols_once_early): Call it.
12611         * emacs.c (main_1): Call it.
12612         * symsinit.h: Declare it.
12613
12614 2000-01-19  Olivier Galibert  <galibert@pobox.com>
12615
12616         * alloc.c: Use a lrecord_header * in the backtrace instead of a
12617         Lisp_Object.
12618         (pdump_backtrace): Ditto.
12619         (pdump_register_object): Ditto.  Cleanup use of the pointers.
12620         (pdump_get_entry): Abort if trying to register a null pointer.
12621         (pdump_dump_data): Cleanup types when relocating.
12622         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
12623         (pdump_dump_rtables): Remove bad casts.
12624         (pdump_load): Cleanup relocation w.r.t union type.  Use a
12625         Lisp_Object instead of a EMACS_INT for the hashtable
12626         reorganization.
12627
12628 2000-01-20  Martin Buchholz  <martin@xemacs.org>
12629
12630         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
12631
12632         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
12633
12634         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
12635
12636         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
12637
12638 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12639
12640         * faces.h (FACE_STRIKETHRU_P): Added.
12641
12642         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
12643         of font variants.
12644
12645         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
12646         (mswindows_set_dc_font): New function, aware of font variants,
12647         separated from mswindows_update_dc.
12648
12649         * objects-msw.h (struct mswindows_font_instance_data): Added
12650         definition.
12651
12652         * objects-msw.c (mswindows_finalize_font_instance): Delete all
12653         cached fonts and the data structure.
12654         (mswindows_initialize_font_instance): Added creation of font data
12655         structure.
12656         (mswindows_print_font_instance): Print at least something.
12657         (mswindows_create_font_variant): Implemented.
12658         (mswindows_get_hfont): Implemented.
12659
12660 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
12661
12662         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
12663         prototyping problem with msvc.
12664
12665         * emacs.c (main_1): added syms_of_gui_mswindows() call
12666
12667         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
12668         syms_of_gui_mswindows() function
12669
12670         * symsinit.h: added the prototype for syms_of_gui_mswindows()
12671
12672 2000-01-18  Martin Buchholz <martin@xemacs.org>
12673
12674         * XEmacs 21.2.27 is released.
12675
12676 2000-01-18  Martin Buchholz  <martin@xemacs.org>
12677
12678         * glyphs-eimage.c (struct tiff_error_struct):
12679         (tiff_error_func):
12680         (tiff_warning_func):
12681         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
12682
12683         * unexmips.c:
12684         * unexhp9k3.c:
12685         * unexfreebsd.c:
12686         * unexec.c: Remove vestigial Lucid C code.
12687         * unexalpha.c:
12688         * unexaix.c:
12689         * termcap.c:
12690         * libsst.c: Ansify.
12691         Remove declarations of errno and strerror().
12692
12693         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
12694
12695         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
12696
12697 2000-01-16  Martin Buchholz  <martin@xemacs.org>
12698
12699         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
12700         Optimize.
12701
12702 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
12703
12704         * md5.c:
12705         * file-coding.c:
12706         * file-coding.h:
12707         Change enum eol_type to eol_type_t.
12708
12709 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
12710
12711         * gui.c (get_gui_callback): Check cons before accessing car.
12712
12713 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
12714
12715         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
12716         (XSETSPECIFIER_TYPE): Ditto.
12717
12718 2000-01-17  Didier Verna  <didier@xemacs.org>
12719
12720         * redisplay.c (generate_fstring_runes): compute string size in
12721         characters, not bytes.
12722
12723 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
12724
12725         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
12726
12727 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
12728
12729         * print.c (print_error_message): Call print_prepare().
12730
12731 2000-01-14  Martin Buchholz  <martin@xemacs.org>
12732
12733         * .dbxrc: Renamed from dbxrc.
12734
12735         * events.c (event_to_character):
12736         Use `assert (foo)' instead of `if (!foo) abort()'
12737
12738         * .gdbinit (xtype): Add documentation.
12739         * .gdbinit (check-temacs): New function.
12740         * .gdbinit (check-xemacs): New function.
12741         * dbxrc (check-xemacs): New function.
12742         * dbxrc (check-xemacs): New function.
12743
12744 2000-01-14  Andy Piper  <andy@xemacs.org>
12745
12746         * glyphs-widget.c (widget_query_geometry): Make sure that we
12747         calculate default dimensions correctly.
12748
12749 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12750
12751         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
12752
12753         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
12754         pdump_wire'd variable.
12755
12756         * emacs.c: (main_1): Conditionalized calls to
12757         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
12758
12759 2000-01-13  Martin Buchholz  <martin@xemacs.org>
12760
12761         * window.c (Fset_window_configuration):
12762         * sysdep.c (_start):
12763         * input-method-motif.c (res):
12764         * event-Xt.c (Xt_process_to_emacs_event):
12765         Simple compiler warning fixes.
12766
12767         * bytecode.c (funcall_compiled_function): Use the original
12768         function symbol on the backtrace list in preference to the
12769         compiled_function object in error messages.
12770
12771 2000-01-13  Andy Piper  <andy@xemacs.org>
12772
12773         * glyphs-x.c (update_widget_face): Make sure we update the widget
12774         background as well as foreground.
12775
12776 2000-01-13  Andy Piper  <andy@xemacs.org>
12777
12778         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
12779         fields to subwindow.
12780         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
12781         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
12782         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
12783         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
12784
12785         * glyphs-widget.c (check_valid_tab_orientation): new function.
12786         (initialize_widget_image_instance): zero orientation and
12787         justification.
12788         (widget_instantiate): pick up orientation.
12789         (tab_control_query_geometry): return appropriate values for
12790         vertical tabs.
12791
12792         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
12793         appropriate creation flags for left, right and bottom tabs.
12794
12795         * s/cygwin32.h: add tab definitions.
12796
12797 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12798
12799         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
12800         frame upon hiding a subwindow.
12801         (mswindows_button_instantiate): Changed the push button style to
12802         BS_PUSHBUTTON.
12803         (mswindows_button_instantiate): Removed button BS_NOTIFY
12804         style.
12805         (mswindows_button_instantiate): Removed redundant check for
12806         a disabled gui item.
12807         (mswindows_button_instantiate): Made use of WS_TABSTOP
12808         consistent: "operable" controls (edit, button, tree, scroll) have
12809         this style, "display-only" ones (static, progress gauge) do
12810         not. This style is currently ignored by XEmacs though. Also,
12811         removed the WS_EX_CONTROLPARENT style - it is not for children,
12812         it is for their parents!
12813         (mswindows_edit_field_instantiate): Ditto.
12814         (mswindows_progress_gauge_instantiate): Ditto.
12815         (mswindows_tree_view_instantiate): Ditto.
12816         (mswindows_tab_control_instantiate): Ditto.
12817         (mswindows_scrollbar_instantiate): Ditto.
12818         (mswindows_combo_box_instantiate): Ditto.
12819         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
12820         style to the "clip" window.
12821         (mswindows_button_instantiate): Removed compilation warning by
12822         equally typing terms of the ?: operator.
12823
12824 2000-01-12  Didier Verna  <didier@xemacs.org>
12825
12826         * redisplay.c (generate_fstring_runes): new parameter holding the
12827         last modeline-format extent.
12828         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
12829         extent, fill the glyph block with it.
12830         (generate_fstring_runes): handle these parameters.
12831         (generate_formatted_string_db): ditto.
12832
12833         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
12834         glyphs'extents in the modeline.
12835
12836 1999-01-11  Mike Woolley  <mike@bulsara.com>
12837
12838         * ntheap.c: Reduced the reserved heap space from 1Gb down to
12839         256Mb, as a workaround for the non-starting problem many people
12840         have experienced.
12841
12842 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
12843
12844         * console-tty.c (Fset_console_tty_output_coding_system):
12845         Force redrawing tty frame.
12846
12847 2000-01-10  Didier Verna  <didier@xemacs.org>
12848
12849         * redisplay.c (generate_fstring_runes): fix size computation bug.
12850
12851 2000-01-09  William M. Perry <wmperry@aventail.com>
12852
12853         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
12854
12855 2000-01-09  Andy Piper  <andy@xemacs.org>
12856
12857         * glyphs-msw.c: index -> i to avoid shadows.
12858         (xbm_create_bitmap_from_data): make static.
12859         (check_valid_string_or_int): deleted.
12860         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
12861
12862         * glyphs-x.c (x_update_subwindow): remove unused args.
12863
12864         * glyphs.c (glyph_image_instance): return the thing. Don't set the
12865         back pointer - this is done in allocate_image_instance.
12866         (query_string_font): return Qnil to make the compiler happy.
12867         (unmap_subwindow): set to ~0 to make the compiler happy.
12868         (glyph_query_geometry): comment out until used.
12869         (glyph_layout): ditto.
12870
12871 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
12872
12873         * insdel.c (signal_after_change): Remove extraneous unbind_to().